query
stringlengths
7
5.25k
document
stringlengths
15
1.06M
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Function used to get response from API (POST Method)
public function post($slug, $params) { $post_parameters = http_build_query($params); curl_setopt($this->handle, CURLOPT_URL, $this->base_uri . $slug); curl_setopt($this->handle, CURLOPT_POST, count($post_parameters)); curl_setopt($this->handle, CURLOPT_POSTFIELDS, $post_parameters); $this->response = curl_exec($this->handle); $this->response_code = curl_getinfo($this->handle, CURLINFO_HTTP_CODE); curl_close($this->handle); return $this->jsonToArray($this->response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getResponse() {}", "public function getResponse() {}", "public function getResponse();", "public function getResponse();", "public function getResponse();", "public function getResponse();", "public function getResponse();", "public function getResponse();", "public function getResponse();", "public function getResponse();", "public function getResponse();", "public function getResponse();", "public function getResponse();", "public function & GetResponse ();", "function getResponse();", "function getResponse();", "public function getResponse() {\n }", "public function requestData() {\n\t\t// Set up cURL \n\t\t$curl = curl_init($this->query); \n\t\tcurl_setopt($curl, CURLOPT_POST, false); \n\t\tcurl_setopt($curl, CURLOPT_RETURNTRANSFER, true);\n\t\t$response = curl_exec($curl);\n\t\tcurl_close($curl);\n\t\t\t\n\t\treturn $this->parseAPIResponse($response);\n\t}", "public function getResponse()\n {\n }", "public function getResponse() {\n\t}", "public function response();", "public function response ();", "abstract public function response();", "public function getResponse()\n {\n // TODO: Implement getResponse() method.\n }", "abstract function parse_api_response();", "public function getResponseData();", "public function getHttpResponse();", "private function POST() {\n global $_POST;\n $postData = array();\n foreach($_POST as $key => $value) {\n $postData[$key] = $value;\n }\n $this -> response[\"response\"] = $postData;\n return;\n }", "public function get_response()\n {\n return $this->response; \n }", "function get_response() {\n return $this->response;\n }", "public function getResponse(){\n \n return $this->response;\n \n }", "public function post()\n {\n #HTTP method in uppercase (ie: GET, POST, PATCH, DELETE)\n $sMethod = 'POST';\n $sTimeStamp = gmdate('c');\n\n #Creating the hash\n\t\t$oHash = new Hash($this->getSecretKey());\n\t\t$oHash->addData($this->getPublicKey());\n\t\t$oHash->addData($sMethod);\n\t\t$oHash->addData($this->getApiResource());\n\t\t$oHash->addData($this->getData());\n\t\t$oHash->addData($sTimeStamp);\n\n\t\t$sHash = $oHash->hash();\n\n $rCurlHandler = curl_init();\n curl_setopt($rCurlHandler, CURLOPT_URL, $this->getApiRoot() . $this->getApiResource());\n curl_setopt($rCurlHandler, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($rCurlHandler, CURLOPT_POSTFIELDS, $this->getData());\n curl_setopt($rCurlHandler, CURLOPT_CUSTOMREQUEST, $sMethod);\n curl_setopt($rCurlHandler, CURLOPT_SSL_VERIFYPEER, 0);\n curl_setopt($rCurlHandler, CURLOPT_SSL_VERIFYHOST, 0);\n\n curl_setopt($rCurlHandler, CURLOPT_HTTPHEADER, [\n \"x-date: \" . $sTimeStamp,\n \"x-hash: \" . $sHash,\n \"x-public: \" . $this->getPublicKey(),\n \"Content-Type: text/json\",\n ]);\n $sOutput = curl_exec($rCurlHandler);\n $iHTTPCode = curl_getinfo($rCurlHandler, CURLINFO_HTTP_CODE);\n curl_close($rCurlHandler);\n\n Log::write('WebRequest', 'POST::REQUEST', $this->getApiRoot() . $this->getApiResource());\n Log::write('WebRequest', 'POST::DATA', $this->getData());\n Log::write('WebRequest', 'POST::HTTPCODE', $iHTTPCode);\n Log::write('WebRequest', 'POST::RESPONSE', $sOutput);\n\n $this->setData('');\n\n if (!in_array($iHTTPCode, [200, 201, 204])) {\n throw new InvalidApiResponse('HttpCode was ' . $iHTTPCode . '. Expected 200|201 on [POST] ' . $this->getApiRoot() . $this->getApiResource());\n }\n return $sOutput;\n }", "public function getResponse(): array;", "public function getResponse() {\n $url = self::API_URL . $this->urlPath;\n \ttry {\n \t $client = \\Drupal::httpClient();\n $request = $client->get($url, array('headers' => array('Content-Type' => 'application/json', 'Authorization' => self::API_KEY)));\n $data = json_decode((string) $request->getBody(), true);\n if (empty($data)) {\n return FALSE;\n }\n }\n catch (RequestException $e) {\n return FALSE;\n }\n return $data;\n }", "private function getResponse() {\n $this->response['status_code'] = $this->status->getStatusCode();\n $this->response['reason_phrase'] = $this->status->getReasonPhrase();\n \n $this->readHeaders();\n }", "public static function getApiResponse($url){\n\n $ch = curl_init();\n curl_setopt($ch,CURLOPT_URL,$url);\n curl_setopt($ch,CURLOPT_POST, 1);\n curl_setopt($ch,CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch,CURLOPT_CONNECTTIMEOUT ,3);\n curl_setopt($ch,CURLOPT_TIMEOUT, 20);\n\n $response = curl_exec($ch);\n\n return strval($response);\n }", "public function postData(){\n\t\t$url = $this->host . \"/rest/v1/leads.json?access_token=\" . $this->getToken();\n\t\t$ch = curl_init($url);\n\t\t$requestBody = $this->bodyBuilder();\n\t\t//debug\n\t\t//print_r($requestBody);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, array('accept: application/json','Content-Type: application/json'));\n\t\tcurl_setopt($ch, CURLOPT_POST, 1);\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $requestBody);\n\t\tcurl_getinfo($ch);\n\t\t$response = curl_exec($ch);\n\t\treturn $response;\n\t}", "public function getResponse($input);", "function GetAPIResponse($url, $jsonbody) {\n\t$ch = curl_init();\n\tcurl_setopt($ch,CURLOPT_URL, $url);\n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); \n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);\n\tcurl_setopt($ch,CURLOPT_RETURNTRANSFER, true);\n\tcurl_setopt($ch,CURLOPT_CONNECTTIMEOUT, 10);\n\tcurl_setopt($ch,CURLOPT_TIMEOUT, 20);\n\n\tif($jsonbody) {\n\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));\n\t\tcurl_setopt($ch, CURLOPT_POST, 1);\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $jsonbody);\n\t}\n\n\t$response = curl_exec($ch);\n\tcurl_close ($ch);\n\treturn $response;\n}", "function api_response($res)\n{\n $response_code = $res['code'];\n $response_data = $res['data'];\n\n header('Content-Type: application/json');\n if(DEBUG)\n {\n exit('<pre>' . print_r(\n array(\n 'response'=>$response_code,\n 'data'=>$response_data\n\n ),true));\n }\n exit(json_encode(\n array(\n 'response'=>$response_code,\n 'data'=>$response_data\n )\n ));\n}", "public function getResponse() : array;", "function loginAPIResponse(){\n \n $authentication = new Authentication();\n\n if(isset($_POST['username'], $_POST['password'])){\n \n $username = $_POST['username'];\n $password = $_POST['password'];\n\n $validaton = $authentication->login($username, $password);\n\n //Invalid credentials\n if($validaton === LoginConstants::INVALID_CREDENTIALS){\n \n $return = array(\n 'status' => 401 ,\n 'message' => \"Invalid credentials!\"\n );\n\n http_response_code(401);\n\n }\n //User is locked out\n else if ($validaton === LoginConstants::TOO_MANY_BAD_LOGINS){\n\n $return = array(\n 'status' => 403 ,\n 'message' => \"Unable to login please try again later.\"\n );\n\n http_response_code(403);\n\n }\n //Credentials were correct and user is logged in\n else {\n\n $return = array(\n 'status' => 200 ,\n 'message' => \"Login for $username was successful.\"\n );\n\n http_response_code(200);\n\n }\n\n }\n else {\n\n $return = array(\n 'status' => 400,\n 'message' => \"Missing params to post.\"\n );\n\n http_response_code(400);\n\n }\n\n //Send back response to client. \n print_r(json_encode($return));\n\n}", "public function process()\n {\n \t$client = $this->client->getClient();\n\n \ttry {\n $response = $client->get($this->buildUrl());\n return new ResponseJson((string)$response->getBody(), true);\n } catch (RequestException $e) {\n return new ResponseJson((string)$e->getResponse()->getBody(), false);\n }\n }", "public function getResponse($response) {\r\n\r\n\r\n }", "public function sendRequestToEndpoint(): Response;", "public function getResponse(): string\n {\n return $this->response;\n }", "public function get_response()\n\t{\n\t\treturn $this->response;\n\t}", "public function get_response()\n\t{\n\t\treturn $this->response;\n\t}", "public function getResponse(): ResponseInterface;", "public function getResponse(): ResponseInterface;", "protected function getResponse()\n {\n return $this->response;\n }", "public function getResponse() {\n return $this->response;\n }", "public function getResponse() {\n return $this->response;\n }", "public function getResponse() {\n return $this->response;\n }", "public function getResponseAsString(): string;", "public function getResponse()\n {\n return $this->response;\n }", "public function request(){\n\t\t$request = file_get_contents('php://input');\n\t\treturn json_decode($request,true);\n\t}", "function responseApi(Array $req)\n{\n\treturn json_encode(callApiRequest($req));\n}", "public function getResponse()\r\n\t{\r\n\t\treturn $this -> response;\r\n\t}", "function callRemitaApiPost($endPoint, $postData) {\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $endPoint);\n curl_setopt($ch, CURLOPT_HEADER, 0);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($postData));\n curl_setopt($ch, CURLOPT_HTTPHEADER, array(\n 'Content-Type: application/json',\n 'Content-Length: ' . strlen(json_encode($postData)))\n );\n $output = curl_exec($ch);\n return $output;\n}", "public function getResponse()\n\t{\n $this->send();\n if ( $this->hasError() ) {\n \treturn $this->getError();\n }\n return $this->response;\n\t}", "public function requestFromApi() \n {\n $clientApi = new \\GuzzleHttp\\Client([\n \"base_uri\" => \"https://services.mysublime.net/st4ts/data/get/type/\",\n \"timeout\" => 4.0]);\n \n try { \n $response = $clientApi->request(\"GET\", $this->_urlEndPoint);\n if ($response->getStatusCode() == \"200\") {\n $body = $response->getBody();\n $this->_jsonRequestedArr = json_decode($body); \n }\n else { \n $this->_error .= \"Bad status code: . \" . $response->getStatusCode(); \n }\n }\n catch (Exception $exc) {\n $this->_error .= $exc->getMessage();\n }\n\n }", "public function get() {\n // $this->isAdmin();\n\n $data = \"This is a test\";\n\n $this->sendHeaders();\n \n $resBody = (object) array();\n $resBody->status = \"200\";\n $resBody->message = \"valid request\";\n $resBody->data = \"This is the data\";\n echo json_encode($resBody);\n\n }", "public function getResponse()\n {\n return $this->get('response');\n }", "public function getResponse()\n {\n return $this->get('response');\n }", "function api_response($res)\n{\nheader('Content-Type: application/json');\n if(ENABLE_DEBUG)\n {\n exit('<pre>' . print_r(\n $res,true));\n }\n exit(json_encode(\n $res\n ));\n}", "function __apiCall($url, $post_parameters = FALSE) {\n \n \t// Initialize the cURL session\n\t $curl_session = curl_init();\n\t \t\n\t // Set the URL of api call\n\t\tcurl_setopt($curl_session, CURLOPT_URL, $url);\n\t\t \n\t\t// If there are post fields add them to the call\n\t\tif($post_parameters !== FALSE) {\n\t\t\tcurl_setopt ($curl_session, CURLOPT_POSTFIELDS, $post_parameters);\n\t\t}\n\t\t \n\t\t// Return the curl results to a variable\n\t curl_setopt($curl_session, CURLOPT_RETURNTRANSFER, 1);\n\t\t \n\t // Execute the cURL session\n\t $contents = curl_exec ($curl_session);\n\t\t \n\t\t// Close cURL session\n\t\tcurl_close ($curl_session);\n\t\t \n\t\t// Return the response\n\t\treturn json_decode($contents);\n \n }", "public function post_post()\n\t{\n\t\ttry {\n\t\t\t$results = Articles::regist( self::$_JSON );\n\t\t\t//\\Log::warning(print_r($results, true));\n\n\t\t\treturn $this->response($results, 200);\n\t\t} catch (\\MarcoPandaException $e) {\n\t\t\t$this->error($e);\n\t\t}\n\t}", "public function getResponse ()\n {\n return $this->response;\n }", "function deliver_response($api_response){\r\n \r\n // Set HTTP Response\r\n header('HTTP/1.1 200 OK');\r\n\r\n // Set HTTP Response Content Type\r\n header('Content-Type: application/json; charset=utf-8');\r\n \r\n // Format data into a JSON response\r\n $json_response = json_encode($api_response);\r\n\r\n // Deliver formatted data\r\n echo $json_response;\r\n \r\n // End script process\r\n exit;\r\n \r\n}", "public function getGatewayResponse();", "function call($postfields) {\r\n\t\t$postfields[\"username\"] = $this->api_user;\r\n\t\t$postfields[\"password\"] = md5($this->api_pass);\r\n\r\n\t\t// Make curl request\r\n\t\t$ch = curl_init();\r\n\t\tcurl_setopt($ch, CURLOPT_URL, $this->api_url);\r\n\t\tcurl_setopt($ch, CURLOPT_POST, 1);\r\n\t\tcurl_setopt($ch, CURLOPT_TIMEOUT, 100);\r\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\r\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);\r\n\t\t$data = curl_exec($ch);\r\n\t\tcurl_close($ch);\r\n\r\n\t\t// Format response\r\n\t\t$data = explode(\";\",$data);\r\n\t\tforeach ($data AS $temp) {\r\n\t\t $temp = explode(\"=\",$temp);\r\n\t\t $key = trim($temp[0]);\r\n\t\t $value = trim($temp[1]);\r\n\t\t $results[$key] = $value;\r\n\t\t}\r\n\t\t\r\n\t\t// Returns array with response\r\n\t\treturn $results;\r\n\t}", "public function getRawResponse();", "public function getResponse(){\n switch($this->format){\n case 'json':\n $this->response_type = 'application/json';\n return $this -> getJSON();\n break;\n case 'xml':\n $this->response_type = 'text/xml';\n return $this -> getXML();\n break;\n default:\n $this->response_type = 'application/json';\n return $this -> getJSON();\n break;\n }\n }", "public function getResponse()\r\n {\r\n return $this->response;\r\n }", "public function getResponse()\n {\n return $this->result->getResponse();\n }", "public function getResponse() {\n\t\treturn $this->data->getResponse();\n\t}", "public function callbackResponse()\n {\n return json_decode(file_get_contents('php://input'));\n }", "function registerAPIResponse(){\n \n $authentication = new Authentication();\n \n if(isset($_POST['username'], $_POST['password'])){\n \n $username = $_POST['username'];\n $password = $_POST['password'];\n\n //Username is too long or short\n if(strlen($username) > 50 || strlen($username) < 1){\n\n $return = array(\n 'status' => 409,\n 'message' => \"Unable to register $username. Username must be between 1 and 50 characters.\"\n );\n\n http_response_code(409);\n\n }\n //Password is too long or short\n else if(strlen($password) > 255 || strlen($password) < 8){\n\n $return = array(\n 'status' => 409,\n 'message' => \"Unable to register $username. Password must be between 8 and 255 characters.\"\n );\n\n http_response_code(409);\n\n }\n else {\n\n $registerValidaton = $authentication->register($username, $password);\n \n //Unable to register\n if($registerValidaton === LoginConstants::UNABLE_REGISTER){\n \n $return = array(\n 'status' => 409,\n 'message' => \"Unable to register $username. This may be due to the username being already taken or an error.\"\n );\n \n http_response_code(409);\n \n \n }\n else {\n \n $return = array(\n 'status' => 200 ,\n 'message' => \"Register for $username was successful. Please login.\"\n );\n \n http_response_code(200);\n \n }\n\n }\n }\n \n //Send back response to client. \n print_r(json_encode($return));\n \n}", "public function sendResponse();", "public function getResponseCallFunc(): string;", "public function getResponse()\n {\n $url = $this->_url;\n\n if (count($this->_params)) {\n $query_string = http_build_query($this->_params);\n $url .= '?' . $query_string;\n }\n\n $ch = curl_init();\n\n // set some default values\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 1);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);\n curl_setopt($ch, CURLOPT_TIMEOUT, 30);\n\n // set user generated values\n foreach ($this->_options as $key => $value) {\n curl_setopt($ch, $key, $value);\n }\n\n curl_setopt($ch, CURLOPT_URL, $url);\n\n $result = curl_exec($ch);\n\n curl_close($ch);\n\n return $result;\n }", "abstract function do_api_request();", "function getResponse() {\n\t\treturn $this->m_response;\n\t}", "private function execute()\n {\n // executes a cURL session for the request, and sets the result variable\n $result = Request::get($this->getRequestURL())->send();\n // return the json result\n return $result->raw_body;\n }", "function post_request($url, $param)\n{\n //リクエスト時のオプション指定\n $options = array(\n 'http' => array(\n 'method' => 'POST', //ここでPOSTを指定\n 'header' => array(\n 'Content-type: application/x-www-form-urlencoded',\n 'User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20100101 Firefox/13.0.1'\n ),\n 'content' => http_build_query($param),\n 'ignore_errors' => true,\n 'protocol_version' => '1.1'\n ),\n 'ssl' => array(\n 'verify_peer' => false,\n 'verify_peer_name' => false\n )\n );\n\n //リクエスト実行\n $contents = @file_get_contents($url, false, stream_context_create($options));\n\n //ステータスコード抜粋\n preg_match('/HTTP\\/1\\.[0|1|x] ([0-9]{3})/', $http_response_header[0], $matches);\n $statusCode = (int)$matches[1];\n\n //配列で返すためにjsonのエンコード\n $contents_array = array();\n if($statusCode === 200){\n $contents_array = json_decode($contents);\n }\n return $contents_array;\n}", "public function getResponse()\n {\n return $this->response;\n }", "public function getResponse()\n {\n return $this->response;\n }", "public function getResponse()\n {\n return $this->response;\n }", "public function getResponse()\n {\n return $this->response;\n }", "public function getResponse()\n {\n return $this->response;\n }", "public function getResponse()\n {\n return $this->response;\n }", "public function getResponse()\n {\n return $this->response;\n }", "public function getResponse()\n {\n return $this->response;\n }", "public function getResponse()\n {\n return $this->response;\n }", "public function getResponse()\n {\n return $this->response;\n }", "public function getResponse()\n {\n return $this->response;\n }", "public function getResponse()\n {\n return $this->response;\n }", "public function getResponse()\n {\n return $this->response;\n }", "public function getResponse()\n {\n return $this->response;\n }", "public function getResponse()\n {\n return $this->response;\n }" ]
[ "0.7533215", "0.7533215", "0.74866843", "0.74866843", "0.74866843", "0.74866843", "0.74866843", "0.74866843", "0.74866843", "0.74866843", "0.74866843", "0.74866843", "0.74866843", "0.73141325", "0.7258936", "0.7258936", "0.7215269", "0.7164545", "0.707953", "0.7068367", "0.6778087", "0.67629015", "0.6721577", "0.6715146", "0.66874593", "0.6637608", "0.66180736", "0.6616259", "0.65782726", "0.6576515", "0.6570405", "0.6553799", "0.65435", "0.65354717", "0.6523974", "0.64860034", "0.6478694", "0.6428307", "0.6406368", "0.63940835", "0.63696116", "0.63594687", "0.6347711", "0.63374764", "0.63234705", "0.6291871", "0.62809014", "0.62809014", "0.6271269", "0.6271269", "0.62704504", "0.6261395", "0.6261395", "0.6261395", "0.62602013", "0.6259827", "0.6252244", "0.624708", "0.6246317", "0.62408036", "0.6226009", "0.62254834", "0.62179375", "0.62161404", "0.62161404", "0.62070113", "0.62049836", "0.6204649", "0.6195815", "0.61880165", "0.61851025", "0.61848426", "0.6183671", "0.6174614", "0.61658657", "0.61622196", "0.6146073", "0.614549", "0.6134787", "0.61288446", "0.612775", "0.61193186", "0.6116282", "0.6114897", "0.610871", "0.61015797", "0.6092851", "0.6092851", "0.6092851", "0.6092851", "0.6092851", "0.6092851", "0.6092851", "0.6092851", "0.6092851", "0.6092851", "0.6092851", "0.6092851", "0.6092851", "0.6092851", "0.6092851" ]
0.0
-1
Function used convert json to array
public function jsonToArray($data, $flag = false) { return $flag ? json_decode($data, true) : json_decode($data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function convert_json_to_array($json)\n\t\t{\t\t \n\t\t\treturn json_decode($json,true);\n\t\t}", "public function convert(string $json): array;", "public static function arr($json)\n {\n return self::decode($json,TRUE);\n }", "function json2Array($json){\n if($json==null) return array();\n $arr = json_decode($json, true);\n if( json_last_error() != JSON_ERROR_NONE) return array();\n return $arr;\n}", "public function getArrayFromJson($json) {\n\t\treturn json_decode($json, true);\n\t}", "public function toArray()\n\t{\n\t\treturn (array) json_decode($this->json);\n\t}", "public function decode(string $json): array;", "public function asArray(): array\n {\n return json_decode($this->result, true);\n }", "public function jsonSerialize(): array;", "protected function asArray()\n\t{\n\t\treturn \\json_decode($this->response, true);\n\t}", "function to_json_array($stg){\n $result = str_replace(\"[\",\"\",$stg);\n $result = str_replace(\"]\",\"\",$result);\n $details_array = json_decode($result, true);\n return $details_array;\n}", "public function GetArrayFromJson()\n {\n $objects = MTJson::Decode( $this->ConfigJson);\n if ($objects == null) return null;\n $result = array();\n //---\n foreach ($objects as $obj)\n {\n $info = MTDealJson::GetFromJson($obj);\n //---\n $result[] = $info;\n }\n //---\n $objects = null;\n //---\n return $result;\n }", "function convertJsonToPostList($json){\n\t\treturn array_map(\"jsonToPost\", $json);\n\t}", "private function toArray($data)\n {\n \t\t$resultArray = json_decode(json_encode($data), true);\n\n \t\treturn $resultArray;\n \t}", "public function getJsonArray(){\n return json_decode(file_get_contents($this->jsonFileLink), true); //return [Array]\n }", "function bodyJsonToArray($bodyJson){\n $bodyArray = json_decode(stripslashes($bodyJson), true);\n if($bodyArray === NULL || !$bodyArray){\n $array = false;\n return $array;\n }else{\n $array = $bodyArray;\n return $array;\n }\n}", "abstract public function data2Array($data);", "public function jsonTo($json){\n\t\t$array = json_decode($json, true);\n\t\t$this->arrayTo($array);\n\t}", "protected function decodeArrrayJsonContent()\n {\n return json_decode($this->getJsonContent(), true);\n }", "public function getAsArray(): array\n {\n return \\GuzzleHttp\\json_decode(\\GuzzleHttp\\json_encode($this->values), true);\n }", "public function convert(string $json) : array\n {\n $objects = json_decode($json);\n\n $response = array();\n\n foreach ($objects as &$object) {\n if ($object->category->cls != QuickSearchResult::CLS) {\n continue;\n }\n \n $id = $this->getID($object->url);\n $url = QuickSearchParser::BASE_URL . $object->url;\n $hungarianTitle = $object->name;\n $year = $this->getYear($object->subtitle);\n $hasYear = $year != -1;\n $poster = $object->thumbnail;\n\n array_push(\n $response,\n new QuickSearchResult($id, $url, $hungarianTitle, $hasYear, $year, $poster)\n );\n }\n\n return $response;\n }", "function jsonToList($json) {\n $res = array();\n foreach($json as $metadataJson) {\n $res[count($res)] = ElementMetadata::createFromJson($metadataJson);\n }\n\n return $res;\n}", "public function JsonToArray($obj) {\n $arr = array();\n foreach ($obj as $k => $v) {\n $a = json_decode($v, TRUE);\n $arr[$k] = ($a) ? $a : $v;\n }\n return $arr;\n }", "public function convertItemArray() {}", "private function extract_json($json)\n\t{\n\t\t$array = json_decode($json);\n\t\t\n\t\tif(is_object($array))\n\t\t{\n\t\t\t$temp_array = array();\n\t\t\t\n\t\t\tforeach($array as $key => $value)\n\t\t\t\t$temp_array[$key] = $value;\n\t\t\t\n\t\t\t$array = $temp_array;\n\t\t}\n\t\t\n\t\treturn $array;\n\t}", "function jsonDecode($json){\n return json_decode($json) ?? [];\n}", "public function asArray();", "public function asArray();", "public function asArray();", "public function asArray();", "public function asArray();", "public function asArray();", "protected static function data_to_array($data)\n {\n return json_decode(json_encode($data), true);\n }", "function json2AssocArrayX() {\n $args = func_get_args();\n foreach($args as $arg) {\n json2AssocArray($arg);\n }\n}", "public static function JsonInAr($json)\n {\n $data = json_decode($json);\n $error = json_last_error();\n\n if ($error == JSON_ERROR_NONE)\n {\n return [$data, True];\n }else{\n return [json_last_error_msg(), False];\n }\n }", "private static function getJsonArray() : array {\n\t\ttry {\n\t\t\t$json = file_get_contents( self::JSON_ENDPOINT_URL );\n\t\t\t$jsonArray = json_decode( $json );\n\t\t}\n\t\tcatch( Exception $exception ) {\n\t\t\terror_log( $exception->getMessage() );\n\t\t\treturn [];\n\t\t}\n\n\t\tif( empty( $jsonArray ) || ! is_array( $jsonArray ) ) {\n\t\t\treturn [];\n\t\t}\n\n\t\treturn $jsonArray;\n\t}", "abstract public function to_array();", "public function getAsArray();", "public function toObjectArray($json) {\r\n\r\n\r\n\t\t$obj_arr = json_decode($json);\r\n\t\t$course_info = $obj_arr->courses;\r\n\r\n\r\n\t\t\tif(empty($course_info)) {\r\n\t\t\t\t\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\treturn $course_info;\r\n\r\n\r\n\t//\t\techo '<pre>';\r\n\t//\t\t print_r($course_info);\r\n\t//\t\techo '</pre>';\r\n\r\n\t}", "private function arrayFromBlob($blob){\n return json_decode($blob, true);\n }", "function jsonSerialize()\r\n {\r\n return $this->to_array();\r\n }", "function object_to_array($data)\r\n{\r\n if (is_array($data) || is_object($data))\r\n {\r\n $result = array();\r\n foreach ($data as $key => $value)\r\n {\r\n $result[$key] = object_to_array($value);\r\n }\r\n return $result;\r\n }\r\n return $data;\r\n}", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "abstract protected function toArray();", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public static function to_array($obj){\n if ( is_string($obj) ){\n return json_decode($obj, 1);\n }\n if ( is_object($obj) || is_array($obj) ){\n foreach ( $obj as $i => $o ){\n if ( is_array($o) || is_object($o) ){\n if ( is_array($obj) ){\n $obj[$i] = self::to_array($o);\n }\n else{\n $obj->$i = self::to_array($o);\n }\n }\n }\n }\n return (array) $obj;\n }", "public function toArray(){\n\t\treturn json_decode(json_encode($this->rows), true);\n\t}" ]
[ "0.829026", "0.8062009", "0.79715663", "0.7846958", "0.752597", "0.7492974", "0.71999127", "0.718822", "0.70813465", "0.70300907", "0.70248795", "0.68863624", "0.68480635", "0.68254", "0.67642266", "0.66721636", "0.664401", "0.6634506", "0.6599843", "0.6595275", "0.65924424", "0.65658414", "0.6558565", "0.65503156", "0.65287644", "0.65275645", "0.6515654", "0.6515654", "0.6515654", "0.6515654", "0.6515654", "0.6515654", "0.64901423", "0.6461018", "0.6439326", "0.6428536", "0.640284", "0.6360587", "0.6357032", "0.63507503", "0.6347103", "0.6344622", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.63106066", "0.6303011", "0.629745", "0.629745", "0.629745", "0.629745", "0.62968814", "0.62968814", "0.62965584", "0.62965584", "0.62965584", "0.62965584", "0.62965584", "0.62965584", "0.62965584", "0.62965584", "0.62965584", "0.62965584", "0.6296371", "0.6282054" ]
0.0
-1
Array of property to type mappings. Used for (de)serialization
public static function swaggerTypes() { return [ 'tenant_id' => 'string', 'expires_in' => 'int', 'scopes' => 'string[]' ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTypes()\n {\n $types = PropertyType::all();\n $values = [];\n foreach ($types as $key) {\n $values[] = $key->id;\n }\n return $values;\n }", "public function getTypes(): array\n {\n return $this->types;\n }", "public static function getTypeMap() {\n return [\n 'session_id' => self::FIELD_INT,\n 'user_id' => self::FIELD_INT,\n 'session_string' => self::FIELD_STRING,\n 'create_date' => self::FIELD_EPOCH,\n 'update_date' => self::FIELD_EPOCH,\n ];\n }", "public static function getTypesMap(): array\n {\n return self::$typesMap;\n }", "public static function getTypeMap() {\n return [\n 'charge_id' => self::FIELD_INT,\n 'user_id' => self::FIELD_INT,\n 'amount' => self::FIELD_INT,\n 'description' => self::FIELD_STRING,\n 'charge_date' => self::FIELD_EPOCH,\n 'create_date' => self::FIELD_EPOCH,\n 'update_date' => self::FIELD_EPOCH,\n ];\n }", "static protected function getPropertyTypes($typeArray) {\n\n\t\t$types = array();\n\t\t// Types are mapped to this entry by typoscript\n\t\t// (e.g. postProcessor.1.properties.1.type.1 = WORK)\n\t\t$typeKeys = \\TYPO3\\CMS\\Core\\TypoScript\\TemplateService::sortedKeyList($typeArray);\n\n\t\tforeach ($typeKeys as $typeKey) {\n\t\t\tif (!intval($typeKey) || strpos($typeKey, '.') !== FALSE) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$types[] = strtoupper($typeArray[$typeKey]);\n\t\t}\n\t\treturn $types;\n\t}", "public function get_types()\n\t{\n\t\treturn array();\n\t}", "public function getTypes() : array\n {\n return \\array_map(function ($t) {\n return $t instanceof self ? $t : new self([$t]);\n }, $this->types);\n }", "public static function getPropertyTypes() {\n\t\treturn self::$PROPERTY_TYPES;\n\t}", "public static function getPropertyTypes() {\n\t\treturn self::$PROPERTY_TYPES;\n\t}", "public static function getPropertyTypes() {\n\t\treturn self::$PROPERTY_TYPES;\n\t}", "public function getTypeMap()\n {\n }", "public function getTypeMap()\n {\n return $this->typeMap;\n }", "public function getTypes(): array;", "public function getTypes(): array;", "function getTypes() {\n\t\treturn $this->types;\n\t}", "static function getTypes(): array\n\t{\n return self::$types;\n }", "public function getTypes()\n {\n return $this->types;\n }", "public function getTypes()\n {\n return $this->types;\n }", "public static function getTypeArray()\n {\n return [\n self::TYPE_GENERIC => Yii::t('app', 'Generic'),\n ];\n }", "public function getTypes() {\n\t\treturn $this->types;\n\t}", "public function getTypeArr(){\n\t\treturn [\n\t\t\t'normal' =>'Normal',\n\t\t\t'ip'\t =>'IP',\n\t\t\t'iprange'=>'IP Bereich'\n\t\t];\n\t}", "public function typesProvider()\n {\n return [\n '1 Type' => ['Type1'],\n '2 Type' => [['Type1', 'Type2']],\n ];\n }", "public function types()\n {\n return $this->types;\n }", "protected function getTypes() {}", "public static function getTypesMap()\n {\n return self::$typesMap;\n }", "public static function getTypes()\n {\n return [\n ModelRegistry::TRANSACTION => ModelRegistry::getById(ModelRegistry::TRANSACTION)->label,\n ModelRegistry::PRODUCT => ModelRegistry::getById(ModelRegistry::PRODUCT)->label,\n ];\n }", "public function getTypes()\n {\n return $this->getTypesCollection()->getArrayCopy();\n }", "public function validPropertyTypes()\n {\n return [\n ['integer'],\n ['int'],\n ['float'],\n ['boolean'],\n ['bool'],\n ['string'],\n ['DateTime'],\n ['array'],\n ['ArrayObject'],\n ['SplObjectStorage'],\n ['Neos\\Flow\\Foo'],\n ['\\Neos\\Flow\\Bar'],\n ['\\Some\\Object'],\n ['SomeObject'],\n ['array<string>'],\n ['array<Neos\\Flow\\Baz>'],\n ['?string'],\n ['null|string'],\n ['string|null'],\n ['?\\Some\\Object'],\n ['\\Some\\Object|null'],\n ['?array<Neos\\Flow\\Baz>'],\n ['null|array<Neos\\Flow\\Baz>']\n ];\n }", "public function getTypes()\n {\n return $this->getData(self::TYPES);\n }", "protected function types()\n {\n return [\n 'bigint',\n 'blob',\n 'boolean',\n 'date',\n 'decimal',\n 'integer',\n 'longText',\n 'smallint',\n 'text',\n 'time',\n 'timestamp',\n 'timestamptz',\n ];\n }", "protected function _listTypes()\n {\n global $config;\n $types = objects::types();\n\n $result = array();\n foreach ($types as $type) {\n $infos = objects::infos($type);\n $result[$type] = $infos['name'];\n }\n return $result;\n }", "public function toArray()\n {\n $data = parent::toArray();\n if (isset($this->type)) {\n $data['type'] = $this->type;\n }\n return $data;\n }", "public function getTypes();", "public function getTypes();", "public function getTypes();", "public function getTypes();", "protected function getPropertyTypeAttributes()\n {\n return array_merge(\n $this->getCommonAttributes(),\n array(\n 'multiple' => array('values' => array('*', 'mul', 'multiple'), 'variant' => true),\n 'queryops' => array('values' => array('qop', 'queryops'), 'variant' => true), // Needs special handling !\n 'nofulltext' => array('values' => array('nof', 'nofulltext'), 'variant' => true),\n 'noqueryorder' => array('values' => array('nqord', 'noqueryorder'), 'variant' => true),\n )\n );\n }", "public function getTypes()\n {\n return get_object_vars($this);\n }", "public function getTypeMapper();", "public static function mapping()\r\n {\r\n return [\r\n self::BUS_TICKET_NAME => self::BUS_TICKET_CLASS,\r\n self::AIRPORTBUS_TICKET_NAME => self::AIRPORTBUS_TICKET_CLASS,\r\n self::TRAIN_TICKET_NAME => self::TRAIN_TICKET_CLASS,\r\n self::FLIGHT_TICKET_NAME => self::FLIGHT_TICKET_CLASS,\r\n ];\r\n }", "public function get_types()\n {\n return self::$TYPES;\n }", "public function typeProvider()\n {\n return array(\n array(true, false),\n array(12, false),\n array(24.50, false),\n array(new \\stdClass(), false),\n array('string', true),\n );\n }", "public function dataTypeMap()\n {\n return config('codegenerator.eloquent_type_to_method');\n }", "protected function property_map() { return array(); }", "public function getMimetypeMapping()\n {\n if (isset($this->raw->mimetypes)) {\n return (array) $this->raw->mimetypes;\n }\n\n return array();\n }", "public static function getTypes(): array\n {\n return self::getRelevancyTypes();\n }", "public static function types()\n {\n return self::$types;\n }", "public static function getArrayTypes() {\n return array(\n self::TYPE_NEWS => DomainConst::CONTENT00472,\n self::TYPE_OTHER => DomainConst::CONTENT00031,\n );\n }", "public function types(): array\n {\n return collect($this->modelSchemas)->map(function ($modelSchema) {\n return $modelSchema instanceof RootType\n ? $modelSchema\n : $this->registry->type($this->registry->getModelSchema($modelSchema)->typename());\n })->toArray();\n }", "public function getTypes(): array\n {\n return $this->map(static function (DataSetColumn $column) {\n return $column->getType();\n })->toArray();\n }", "public function get_types()\n {\n }", "public function invalidPropertyTypes()\n {\n return [\n ['string<string>'],\n ['int<Neos\\Flow\\Baz>']\n ];\n }", "public static function getTypes()\n\t{\n\t\t\n\t\treturn [\n\t\t\tself::TYPE_SHARES\t\t\t =>\t\"Shares\",\n\t\t\tself::TYPE_PROPERTY\t\t\t =>\t\"Property\",\n\t\t];\n\t\t\n\t}", "public function get(): array\n {\n if ($this->types === []) {\n return self::$allowedTypes;\n }\n return $this->types;\n }", "public function types(): array\n {\n $json = $this->parent->performAPICallWithJsonResponse('get', 'artwork/types');\n return DataParser::parseDataArray($json, ArtworkType::class);\n }", "public static function types() : array\n {\n return ['questions', 'pictures', 'video'];\n }", "protected function loadPropertyTypes() {\n\t\tif (empty($this->cachedPropertyTypes)) {\n\t\t\t$completePropertyTypeConfiguration = $this->configurationManager->getConfiguration('PropertyTypes');\n\t\t\tforeach (array_keys($completePropertyTypeConfiguration) as $propertyTypeName) {\n\t\t\t\t$this->loadPropertyType($propertyTypeName, $completePropertyTypeConfiguration);\n\t\t\t}\n\t\t}\n\t}", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'settingDefinitionId' => fn(ParseNode $n) => $o->setSettingDefinitionId($n->getStringValue()),\n 'settingInstanceTemplateReference' => fn(ParseNode $n) => $o->setSettingInstanceTemplateReference($n->getObjectValue([DeviceManagementConfigurationSettingInstanceTemplateReference::class, 'createFromDiscriminatorValue'])),\n ];\n }", "public static function getTypes(): array {\n\t\treturn ['pizza'];\n\t}", "public static function getTypesList()\n {\n return ArrayHelper::map(Yii::$app->get('cms')->getPageTypes(), 'type', 'name');\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'attributeMappings' => fn(ParseNode $n) => $o->setAttributeMappings($n->getCollectionOfObjectValues([AttributeMapping::class, 'createFromDiscriminatorValue'])),\n 'enabled' => fn(ParseNode $n) => $o->setEnabled($n->getBooleanValue()),\n 'flowTypes' => fn(ParseNode $n) => $o->setFlowTypes($n->getEnumValue(ObjectFlowTypes::class)),\n 'metadata' => fn(ParseNode $n) => $o->setMetadata($n->getCollectionOfObjectValues([ObjectMappingMetadataEntry::class, 'createFromDiscriminatorValue'])),\n 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'scope' => fn(ParseNode $n) => $o->setScope($n->getObjectValue([Filter::class, 'createFromDiscriminatorValue'])),\n 'sourceObjectName' => fn(ParseNode $n) => $o->setSourceObjectName($n->getStringValue()),\n 'targetObjectName' => fn(ParseNode $n) => $o->setTargetObjectName($n->getStringValue()),\n ];\n }", "public function getPropertyTypes()\n\t{\n\t\treturn $this->hasOne(PropertyTypes:: className(), ['id' => 'property_type_id']);\n\t}", "public static function get_types()\n {\n return self::$TYPES;\n }", "public function toArray(): array\n {\n return [\n 'type' => self::typeToString($this->type),\n 'required' => $this->required,\n 'list' => $this->list,\n 'hidden' => $this->hidden\n ];\n }", "public function toJson() {\n\t\t$array = array(\"types\"=>array());\n\t\tforeach ($this->types as $type) {\n\t\t\t$array[\"types\"][] = $type->toJson();\n\t\t}\n\t\tif ($this->warningMessage) {\n\t\t\t$array[\"warning\"] = $this->warningMessage;\n\t\t}\n\t\treturn $array;\n\t}", "public function types()\n {\n return [\n static::TYPE_APP,\n static::TYPE_GALLERY,\n static::TYPE_PHOTO,\n static::TYPE_PLAYER,\n static::TYPE_PRODUCT,\n static::TYPE_SUMMARY,\n static::TYPE_SUMMARY_LARGE_IMAGE,\n ];\n }", "public static function types(): array\n {\n $all = self::getAll();\n\n return array_keys($all);\n }", "protected static function _getDataTypes()\n {\n return [];\n }", "public function getTypes()\n {\n $oDb = Factory::service('Database');\n $oResult = $oDb->query('SHOW COLUMNS FROM `' . $this->table . '` LIKE \"type\"')->row();\n $sTypes = $oResult->Type;\n $sTypes = preg_replace('/enum\\((.*)\\)/', '$1', $sTypes);\n $sTypes = str_replace(\"'\", '', $sTypes);\n $aTypes = explode(',', $sTypes);\n\n $aOut = [];\n\n foreach ($aTypes as $sType) {\n $aOut[$sType] = ucwords(strtolower($sType));\n }\n\n return $aOut;\n }", "public static function types()\n\t{\n\t\t$states = array(\n\t\t\t'blog' => __('Blog'),\n\t\t\t'page' => __('Page'),\n\t\t\t'user' => __('User')\n\t\t);\n\n\t\t$values = Module::action('gleez_types', $states);\n\n\t\treturn $values;\n\t}", "public static function getTypeList() {\n return array(\n self::TYPE_CODE_1=>self::TYPE_STRING_1,\n self::TYPE_CODE_2=>self::TYPE_STRING_2,\n self::TYPE_CODE_3=>self::TYPE_STRING_3,\n self::TYPE_CODE_4=>self::TYPE_STRING_4,\n self::TYPE_CODE_5=>self::TYPE_STRING_5,\n self::TYPE_CODE_6=>self::TYPE_STRING_6\n );\n }", "protected static function getPossibleVarTypes() {\n\t\treturn [\n\t\t\tPropertiesInterface::DTYPE_DEP_CURRENCY => CurrencyType::class,\n\t\t\tPropertiesInterface::DTYPE_DEP_EMAIL => EmailType::class,\n\t\t\tPropertiesInterface::DTYPE_DEP_FILE => FileType::class,\n\t\t\tPropertiesInterface::DTYPE_DEP_FORM_SECTION => FormSectionType::class,\n\t\t\tPropertiesInterface::DTYPE_DEP_FORM_SECTION_CLOSE => FormSectionCloseType::class,\n\t\t\tPropertiesInterface::DTYPE_DEP_IMAGE => ImageType::class,\n\t\t\tPropertiesInterface::DTYPE_DEP_MTIME => MtimeType::class,\n\t\t\tPropertiesInterface::DTYPE_DEP_SOURCE => SourceType::class,\n\t\t\tPropertiesInterface::DTYPE_DEP_STIME => StimeType::class,\n\t\t\tPropertiesInterface::DTYPE_DEP_TIME_ONLY => TimeOnlyType::class,\n\t\t\tPropertiesInterface::DTYPE_DEP_TXTBOX => TxtboxType::class,\n\t\t\tPropertiesInterface::DTYPE_DEP_URL => UrlType::class,\n\t\t\tPropertiesInterface::DTYPE_DEP_URLLINK => UrllinkType::class,\n\t\t\tPropertiesInterface::DTYPE_ARRAY => ArrayType::class,\n\t\t\tPropertiesInterface::DTYPE_BOOLEAN => BooleanType::class,\n\t\t\tPropertiesInterface::DTYPE_DATETIME => DateTimeType::class,\n\t\t\tPropertiesInterface::DTYPE_FILE => \\Imponeer\\Properties\\Types\\FileType::class,\n\t\t\tPropertiesInterface::DTYPE_FLOAT => FloatType::class,\n\t\t\tPropertiesInterface::DTYPE_INTEGER => IntegerType::class,\n\t\t\tPropertiesInterface::DTYPE_LIST => ListType::class,\n\t\t\tPropertiesInterface::DTYPE_OBJECT => ObjectType::class,\n\t\t\tPropertiesInterface::DTYPE_OTHER => OtherType::class,\n\t\t\tPropertiesInterface::DTYPE_STRING => StringType::class\n\t\t];\n\t}", "function get_field_mapping_types() {\n return drupal_map_assoc([\n 'string',\n 'keyword',\n 'date',\n 'long',\n 'double',\n 'boolean',\n 'ip',\n 'object',\n 'nested',\n 'geo_point',\n 'geo_shape',\n 'completion',\n ]);\n}", "public function getObjectMaps()\n {\n return array(\n 'id' => self::TYPE_STRING,\n 'self' => self::TYPE_STRING,\n 'author' => self::TYPE_USER,\n 'comment' => self::TYPE_STRING,\n 'timeSpentSeconds' => 'integer',\n 'billedSeconds' => 'integer',\n 'dateStarted' => 'datatime',\n 'issue' => self::TYPE_ISSUE,\n// 'workAttributeValues'\n );\n }", "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}", "function FieldTypesArray() {}", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'response' => fn(ParseNode $n) => $o->setResponse($n->getEnumValue(ResponseType::class)),\n 'time' => fn(ParseNode $n) => $o->setTime($n->getDateTimeValue()),\n ];\n }", "public static function types()\n {\n return [\n self::TYPE_PERSONAL => Yii::t('app', 'Personal'),\n self::TYPE_BUSINESS => Yii::t('app', 'Business'),\n self::TYPE_CUSTOM => Yii::t('app', Yii::$app->holidaySettings->customHolidayName)\n ];\n }", "public function getMapPaymentTypes()\n {\n return $this->map_payment_types;\n }", "private function &getSerializableAttributeTypesFromCache(): array {\n $key = \\get_class($this);\n if (!isset(self::$__attrTypeCache[$key])) {\n self::$__attrTypeCache[$key] = $this->getSerializableAttributeTypes();\n }\n return self::$__attrTypeCache[$key];\n }", "public function getTypeFields(): array\n {\n return array_merge(\n $this->getAttributesFields(),\n $this->getTypeRelations(),\n $this->getAggregatedFields(),\n $this->getOptionalFields()\n );\n }", "public function getDataClasses()\n {\n return $this->data_types;\n }", "protected function get_array_field_types() {\n\t\treturn array( 'multicheck' );\n\t}", "function getFieldTypesAction()\n {\n $this->_helper->viewRenderer->setNoRender();\n Zend_Loader::loadClass('Table_FieldType');\n Zend_Loader::loadClass('FieldType');\n $fieldTypesTable = new Table_FieldType();\n $rows = $fieldTypesTable->fetchAll();\n $fieldTypes = array();\n $i = 0;\n foreach ($rows as $row) \n {\n $fieldTypes[$i] = new FieldType($row);\n ++$i;\n }\n header('Content-Type: application/json; charset=utf8');\n echo Zend_Json::encode($fieldTypes);\n }", "protected function getTypeMapping()\n {\n return self::$mysqlTypeMap;\n }", "public static function getTypeArray() {\n return array( \n 'to' => 'EthD20',\n 'from' => 'EthD20',\n 'gas' => 'EthQ',\n 'gasPrice' => 'EthQ',\n 'value' => 'EthQ',\n 'data' => 'EthD',\n 'nonce' => 'EthQ',\n );\n }", "public function getFieldTypeClasses() : array\n {\n return [TableType::class];\n }", "public function toArray(): array\n {\n return [\n 'name' => $this->name,\n 'type' => $this->type,\n ];\n }", "public static function getTypeList()\n {\n return [\n self::TYPE_TEXT_FIELD => '',\n self::TYPE_DROP_DOWN => '',\n ];\n }", "public function getClassMap()\n {\n return array();\n }", "public function attributeCustomTypes()\n {\n $flagEnabled = \\common\\components\\Consts::STATUS_ENABLED;\n return array(\n 'id' => array('data-options' => array('checkbox'=>'true'), 'key' => true),\n 'type' => array('width' => 100),\n 'office_id' => array('width' => 100),\n 'int_value' => array('width' => 100),\n 'float_value' => array('width' => 100),\n 'str_value' => array('width' => 100),\n 'flag' => array('width' => 100, 'formatter'=>\"function(value,row){ return '0x'+parseInt(value).toString(16); }\"),\n 'status' => array('width' => 80, 'sortable' => 'true',\n 'formatter' => \"function(value,row){ if (value == {$flagEnabled}) { return $.custom.lan.defaults.role.enabled; } else { return $.custom.lan.defaults.role.disabled; };}\"),\n 'edit_user_id' => array('width' => 100, 'sortable' => 'true', 'formatter' => \"function(value,row){ return row.edit_user_disp; }\"),\n 'created_at' => array('width' => 140, 'sortable' => 'true', 'formatter' => \"function(value,row){return $.custom.utils.humanTime(value);}\"),\n 'updated_at' => array('width' => 140, 'sortable' => 'true', 'formatter' => \"function(value,row){return $.custom.utils.humanTime(value);}\"),\n 'operation' => array('width' => 160, \n 'buttons' => array(\n ),\n ),\n );\n }", "public static function getTypeArray() {\n\t\treturn array( \n\t\t\t'hash' => 'EthD32',\n\t\t\t'nonce' => 'EthQ',\n\t\t\t'blockHash' => 'EthD32',\n\t\t\t'blockNumber' => 'EthQ',\n\t\t\t'transactionIndex' => 'EthQ',\n\t\t\t'from' => 'EthD20',\n\t\t\t'to' => 'EthD20',\n\t\t\t'value' => 'EthQ',\n\t\t\t'gasPrice' => 'EthQ',\n\t\t\t'gas' => 'EthQ',\n\t\t\t'input' => 'EthD',\n\t\t);\n\t}", "public function get_post_types() {\n\n\t\treturn [\n\t\t\tPost_Type_Movie::SLUG,\n\t\t];\n\n\t}", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'attributeDestination' => fn(ParseNode $n) => $o->setAttributeDestination($n->getObjectValue([AccessPackageResourceAttributeDestination::class, 'createFromDiscriminatorValue'])),\n 'attributeName' => fn(ParseNode $n) => $o->setAttributeName($n->getStringValue()),\n 'attributeSource' => fn(ParseNode $n) => $o->setAttributeSource($n->getObjectValue([AccessPackageResourceAttributeSource::class, 'createFromDiscriminatorValue'])),\n 'id' => fn(ParseNode $n) => $o->setId($n->getStringValue()),\n 'isEditable' => fn(ParseNode $n) => $o->setIsEditable($n->getBooleanValue()),\n 'isPersistedOnAssignmentRemoval' => fn(ParseNode $n) => $o->setIsPersistedOnAssignmentRemoval($n->getBooleanValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n ];\n }", "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 }", "public function transform(Type $type) : array\n {\n return [\n 'id' => (int) $type->id,\n 'name' => (string) $type->name,\n 'slug' => (string) $type->slug\n ];\n }", "public static function getTypes();", "public function toArray()\n {\n return [\n 'type' => 'object',\n 'properties' => [\n 'email' => ['type' => 'string'],\n 'key' => ['type' => 'string'],\n 'name' => ['type' => 'string'],\n 'picture' => ['type' => 'string'],\n 'phone' => ['type' => 'string'],\n 'balance' => ['type' => 'integer', 'format' => 'int32'],\n 'codes' => ['type' => 'array', 'items' => ['type' => 'string']],\n 'order_comment_tracking_code' => ['type' => 'string'],\n 'title' => ['type' => 'string'],\n ],\n 'required' => ['email', 'key', 'name', 'phone', 'balance', 'codes', 'order_comment_tracking_code', 'title'],\n ];\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'file' => fn(ParseNode $n) => $o->setFile($n->getBinaryContent()),\n 'sensitiveTypeIds' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setSensitiveTypeIds($val);\n },\n ]);\n }", "public function serializeProperties(\n VisitorInterface $visitor,\n Properties $properties,\n array $type,\n Context $context\n ): array {\n $type['name'] = 'array';\n $type['params'] = [\n 'name' => 'string'\n ];\n\n return $visitor->visitArray($properties->toArray(), $type, $context);\n }" ]
[ "0.6779591", "0.6607671", "0.6598399", "0.65871716", "0.65820396", "0.6517233", "0.6510976", "0.6476572", "0.6432348", "0.6432348", "0.6432348", "0.6400341", "0.62290716", "0.6181703", "0.6181703", "0.6134249", "0.61259305", "0.6116482", "0.6116482", "0.61130923", "0.6104262", "0.61034846", "0.60908586", "0.60496855", "0.6043802", "0.60386765", "0.60225236", "0.6009802", "0.6003993", "0.59748334", "0.59642416", "0.5954874", "0.5930587", "0.5899609", "0.5899609", "0.5899609", "0.5899609", "0.58945465", "0.5890869", "0.58701736", "0.5863934", "0.58444214", "0.5838445", "0.5828594", "0.58144826", "0.58129823", "0.5804292", "0.5796741", "0.57568073", "0.57505006", "0.5743685", "0.5736511", "0.5734564", "0.57273227", "0.5707013", "0.56975174", "0.56946456", "0.5693727", "0.5687955", "0.5665236", "0.56430435", "0.56408566", "0.563402", "0.5630481", "0.56080776", "0.5599476", "0.55915767", "0.5585394", "0.558386", "0.55776054", "0.55675316", "0.55663115", "0.55482644", "0.5546505", "0.5545644", "0.5541277", "0.55396307", "0.55380726", "0.55341345", "0.55281776", "0.5522627", "0.55183494", "0.5511188", "0.5490826", "0.5490577", "0.54898953", "0.54841906", "0.5483675", "0.5483026", "0.5479314", "0.54746664", "0.5474101", "0.546709", "0.54619867", "0.5456936", "0.5456295", "0.54499793", "0.54478484", "0.5443354", "0.5429377", "0.5426228" ]
0.0
-1
Array of property to format mappings. Used for (de)serialization
public static function swaggerFormats() { return [ 'tenant_id' => null, 'expires_in' => 'int32', 'scopes' => null ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFormats()\n {\n\t $format_field = $this->getValue('format');\n\t return wed_decodeJSON($format_field,true);\n }", "public function provideSetFormat()\n {\n return [\n 'json' => [\n 'format' => 'json',\n ],\n 'html' => [\n 'format' => 'html',\n ],\n 'plain' => [\n 'format' => 'text',\n ],\n 'xml' => [\n 'format' => 'xml',\n ],\n ];\n }", "protected function getFormats(): array\n {\n return [self::FORMAT_JSON, self::FORMAT_XML];\n }", "public static function getFormats() {\n return array(\n 'none',\n 'pretty',\n 'php',\n 'php-data',\n 'json-pretty',\n 'json-strict',\n 'serialize',\n 'shell',\n );\n }", "public function format() {\n\n /* * Add the mandatary props* */\n if (!is_null($this->name)) {\n $result[self::NAME_KEY] = $this->name;\n }\n\n /* * Add the optional props if any* */\n if (!is_null($this->optionalProperties)) {\n $result = array_merge($result, $this->optionalProperties);\n }\n\n\n return $result;\n }", "public function toArray() {\n $output = array();\n foreach($this->_magicProperties as $key => $value) {\n if (in_array($key,$this->translation)) {\n $output[array_search($key,$this->translation)] = $value;\n }else{\n $output[$key] = $value;\n }\n }\n return $this->_postarray($output);\n }", "public function getFormatKeys()\n {\n return $this->formatKeys;\n }", "public function getFormats()\n {\n return $this->_formats;\n }", "public function getFormat(): array;", "public function getFormatList()\n {\n return $this->formatList;\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'format' => fn(ParseNode $n) => $o->setFormat($n->getObjectValue([WorkbookChartSeriesFormat::class, 'createFromDiscriminatorValue'])),\n 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),\n 'points' => fn(ParseNode $n) => $o->setPoints($n->getCollectionOfObjectValues([WorkbookChartPoint::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "protected function property_map() { return array(); }", "public function format(): array\n {\n $result[self::FROM_EMAIL_KEY] = $this->fromEmail;\n\n return array_merge($result, $this->optionalProperties);\n }", "public function toArray()\n {\n return [\n 'PDF_10x15_300dpi' => '10x15 300dpi',\n 'PDF_A4_300dpi' => 'A4 300dpi',\n ];\n }", "public function getFormatList() {\r\n\t\treturn $this->formatList;\r\n\t}", "public static function getFormats()\n {\n return self::$formats;\n }", "protected function toArray()\n {\n $properties = array();\n\n foreach ( $this as $property => $value ) {\n $properties[$property] = $value;\n }\n\n return $properties;\n }", "public static function formats()\n {\n return self::$formats;\n }", "public function formatToArray(){\n return [\n 'nombre' => $this->name,\n 'ciudad' => $this->cityId,\n 'email' => $this->email,\n 'telefono' => $this->tel,\n 'tipo_documento' => $this->typeDoc,\n 'documento' => $this->doc,\n 'direccion' => $this->addr,\n 'direccion_referencia' => $this->addRef,\n 'coordenadas' => $this->addrCoo,\n 'ruc' => $this->ruc,\n 'razon_social' => $this->socialReason,\n ];\n }", "public function getValueFormatersNames(): array;", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'format' => fn(ParseNode $n) => $o->setFormat($n->getObjectValue([WorkbookChartAxisFormat::class, 'createFromDiscriminatorValue'])),\n 'majorGridlines' => fn(ParseNode $n) => $o->setMajorGridlines($n->getObjectValue([WorkbookChartGridlines::class, 'createFromDiscriminatorValue'])),\n 'majorUnit' => fn(ParseNode $n) => $o->setMajorUnit($n->getObjectValue([Json::class, 'createFromDiscriminatorValue'])),\n 'maximum' => fn(ParseNode $n) => $o->setMaximum($n->getObjectValue([Json::class, 'createFromDiscriminatorValue'])),\n 'minimum' => fn(ParseNode $n) => $o->setMinimum($n->getObjectValue([Json::class, 'createFromDiscriminatorValue'])),\n 'minorGridlines' => fn(ParseNode $n) => $o->setMinorGridlines($n->getObjectValue([WorkbookChartGridlines::class, 'createFromDiscriminatorValue'])),\n 'minorUnit' => fn(ParseNode $n) => $o->setMinorUnit($n->getObjectValue([Json::class, 'createFromDiscriminatorValue'])),\n 'title' => fn(ParseNode $n) => $o->setTitle($n->getObjectValue([WorkbookChartAxisTitle::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()),\n 'templateId' => fn(ParseNode $n) => $o->setTemplateId($n->getStringValue()),\n 'values' => fn(ParseNode $n) => $o->setValues($n->getCollectionOfObjectValues([SettingValue::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function dataProviderFormat()\n {\n return [\n [RefData::EBSR_STATUS_PROCESSING, 'orange', 'processing'],\n [RefData::EBSR_STATUS_VALIDATING, 'orange', 'processing'],\n [RefData::EBSR_STATUS_SUBMITTED, 'orange', 'processing'],\n [RefData::EBSR_STATUS_PROCESSED, 'green', 'successful'],\n [RefData::EBSR_STATUS_FAILED, 'red', 'failed'],\n ];\n }", "public function toArray(): array\n {\n return [\n 'background' => __('Background'),\n 'center' => __('Center'),\n ];\n }", "public function getExportFormats(): array;", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()),\n 'platformType' => fn(ParseNode $n) => $o->setPlatformType($n->getEnumValue(PolicyPlatformType::class)),\n 'settingCount' => fn(ParseNode $n) => $o->setSettingCount($n->getIntegerValue()),\n 'settingStates' => fn(ParseNode $n) => $o->setSettingStates($n->getCollectionOfObjectValues([ManagedDeviceMobileAppConfigurationSettingState::class, 'createFromDiscriminatorValue'])),\n 'state' => fn(ParseNode $n) => $o->setState($n->getEnumValue(ComplianceStatus::class)),\n 'userId' => fn(ParseNode $n) => $o->setUserId($n->getStringValue()),\n 'userPrincipalName' => fn(ParseNode $n) => $o->setUserPrincipalName($n->getStringValue()),\n 'version' => fn(ParseNode $n) => $o->setVersion($n->getIntegerValue()),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'bold' => fn(ParseNode $n) => $o->setBold($n->getBooleanValue()),\n 'color' => fn(ParseNode $n) => $o->setColor($n->getStringValue()),\n 'italic' => fn(ParseNode $n) => $o->setItalic($n->getBooleanValue()),\n 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),\n 'size' => fn(ParseNode $n) => $o->setSize($n->getFloatValue()),\n 'underline' => fn(ParseNode $n) => $o->setUnderline($n->getStringValue()),\n ]);\n }", "public function jsonSerialize(): array\n {\n return array_merge([\n 'value' => $this->resolveTransformedValue($this->value),\n 'previous' => $this->resolveTransformedValue($this->previous),\n 'percent_changed' => $percentChanged = $this->percentChanged(),\n 'positive_change' => $percentChanged >= 0,\n // 'previousLabel' => $this->previousLabel,\n 'prefix' => $this->prefix,\n 'suffix' => $this->suffix,\n // 'suffixInflection' => $this->suffixInflection,\n // 'format' => $this->format,\n 'zero_result' => $this->zeroResult,\n ], parent::jsonSerialize());\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'filter' => fn(ParseNode $n) => $o->setFilter($n->getObjectValue([WorkbookFilter::class, 'createFromDiscriminatorValue'])),\n 'index' => fn(ParseNode $n) => $o->setIndex($n->getIntegerValue()),\n 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),\n 'values' => fn(ParseNode $n) => $o->setValues($n->getObjectValue([Json::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function toArray()\n {\n return [\n LSR::STORE_HOURS_TIME_FORMAT_24HRS => __('24 Hours'),\n LSR::STORE_HOURS_TIME_FORMAT_12HRS => __('12 Hours')\n ];\n }", "public function jsonSerialize()\n {\n $output = [];\n foreach ($this::getReflection()->getProperties() as $propertyName => $property) {\n\n $value = $this->{$propertyName};\n if ($value instanceof Entity\\Collection || $value instanceof Entity) {\n $output[$propertyName] = $value->jsonSerialize();\n } elseif ($value instanceof \\DateTime\n && $property->getType() === Entity\\Reflection\\Property::TYPE_DATE\n ) {\n $output[$propertyName] = (array) $value;\n $output[$propertyName][\"date\"] = $value->format(self::$dateFormat);\n } else {\n $output[$propertyName] = $value;\n }\n }\n\n return $output;\n }", "public function &GetFormats()\n {\n // phpcs:enable PSR1.Methods.CamelCapsMethodName.NotCamelCaps\n return $this->_formats;\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'action' => fn(ParseNode $n) => $o->setAction($n->getEnumValue(OnenotePatchActionType::class)),\n 'content' => fn(ParseNode $n) => $o->setContent($n->getStringValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'position' => fn(ParseNode $n) => $o->setPosition($n->getEnumValue(OnenotePatchInsertPosition::class)),\n 'target' => fn(ParseNode $n) => $o->setTarget($n->getStringValue()),\n ];\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'settingDefinitionId' => fn(ParseNode $n) => $o->setSettingDefinitionId($n->getStringValue()),\n 'settingInstanceTemplateReference' => fn(ParseNode $n) => $o->setSettingInstanceTemplateReference($n->getObjectValue([DeviceManagementConfigurationSettingInstanceTemplateReference::class, 'createFromDiscriminatorValue'])),\n ];\n }", "public static function axerveFormats()\n {\n return self::$axerveFormats;\n }", "public static function getDateFormats() {\n $settings = self::getSettings();\n \n $dateformats = array();\n $dateformats[$settings->language] = json_decode($settings->dateformat, true);\n \n $translations = self::getTranslations();\n foreach($translations as $language => $df) {\n $dateformats[$language] = $df;\n }\n return $dateformats;\n }", "public function jsonSerialize()\n {\n return array_merge([\n 'component' => $this->component(),\n 'prefixComponent' => true,\n 'INDEX' => self::INDEX,\n 'ATTRIBUTE_PREFIX' => self::ATTRIBUTE_PREFIX,\n 'UNCHANGED' => self::UNCHANGED,\n 'CREATED' => self::CREATED,\n 'REMOVED' => self::REMOVED,\n 'UPDATED' => self::UPDATED,\n 'STATUS' => self::STATUS,\n 'PREFIX' => self::PREFIX,\n 'name' => $this->name,\n 'singularName' => str_singular($this->name),\n ], $this->meta());\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'mailExchange' => fn(ParseNode $n) => $o->setMailExchange($n->getStringValue()),\n 'preference' => fn(ParseNode $n) => $o->setPreference($n->getIntegerValue()),\n ]);\n }", "public function toArray()\n {\n return (array)$this->properties;\n }", "public function format()\n {\n return json_decode($this->renderer->format(), false, JSON_FORCE_OBJECT);\n }", "public function sectionSerialize()\n {\n $templatePrefix = $this->getTranslationTemplate();\n\n $properties = array_combine(\n array_map(function ($k) use ($templatePrefix) {\n return $templatePrefix . $k;\n },\n array_keys(get_object_vars($this))),\n get_object_vars($this)\n );\n return $properties;\n }", "public static function get_prop_array( array $mf, $properties, $args = null ) {\n\t\tif ( ! self::is_microformat( $mf ) ) {\n\t\t\treturn array();\n\t\t}\n\n\t\t$data = array();\n\t\tforeach ( $properties as $p ) {\n\t\t\tif ( array_key_exists( $p, $mf['properties'] ) ) {\n\t\t\t\tforeach ( $mf['properties'][ $p ] as $v ) {\n\t\t\t\t\tif ( self::is_microformat( $v ) ) {\n\t\t\t\t\t\t$v = self::parse_item( $v, $mf, $args );\n\t\t\t\t\t}\n\t\t\t\t\t$data[ $p ] = $v;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $data;\n\t}", "public function toArray() \n\t{\n\t\t$properties = array_merge(parent::toArray(), $this->properties);\n\t\tforeach ($properties as $name => $rawValue) {\n\t\t\t$value = $this->get($name, $rawValue);\n\t\t\t\n\t\t\tif ($value instanceof \\Bliss\\Component || $value instanceof \\Bliss\\Collection) {\n\t\t\t\t$properties[$name] = $value->toArray();\n\t\t\t} else {\n\t\t\t\t$properties[$name] = $value;\n\t\t\t}\n\t\t}\n\t\treturn $properties;\n\t}", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'deviceCount' => fn(ParseNode $n) => $o->setDeviceCount($n->getIntegerValue()),\n 'medianImpactInMs' => fn(ParseNode $n) => $o->setMedianImpactInMs($n->getIntegerValue()),\n 'processName' => fn(ParseNode $n) => $o->setProcessName($n->getStringValue()),\n 'productName' => fn(ParseNode $n) => $o->setProductName($n->getStringValue()),\n 'publisher' => fn(ParseNode $n) => $o->setPublisher($n->getStringValue()),\n 'totalImpactInMs' => fn(ParseNode $n) => $o->setTotalImpactInMs($n->getIntegerValue()),\n ]);\n }", "public function toArray()\n {\n return ['Lax' => __('Lax'), 'Strict' => __('Strict'), 'None' => __('Strict')];\n }", "public static function listFormats(){\n $list = array();\n foreach(self::$_resultFormats as $key => $item){\n $list[$key] = $item['description'];\n }\n return $list;\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'deliveryFrequency' => fn(ParseNode $n) => $o->setDeliveryFrequency($n->getEnumValue(NotificationDeliveryFrequency::class)),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'classification' => fn(ParseNode $n) => $o->setClassification($n->getEnumValue(WindowsQualityUpdateClassification::class)),\n 'isExpeditable' => fn(ParseNode $n) => $o->setIsExpeditable($n->getBooleanValue()),\n 'kbArticleId' => fn(ParseNode $n) => $o->setKbArticleId($n->getStringValue()),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'assignees' => fn(ParseNode $n) => $o->setAssignees($n->getCollectionOfObjectValues([WorkbookEmailIdentity::class, 'createFromDiscriminatorValue'])),\n 'changes' => fn(ParseNode $n) => $o->setChanges($n->getCollectionOfObjectValues([WorkbookDocumentTaskChange::class, 'createFromDiscriminatorValue'])),\n 'comment' => fn(ParseNode $n) => $o->setComment($n->getObjectValue([WorkbookComment::class, 'createFromDiscriminatorValue'])),\n 'completedBy' => fn(ParseNode $n) => $o->setCompletedBy($n->getObjectValue([WorkbookEmailIdentity::class, 'createFromDiscriminatorValue'])),\n 'completedDateTime' => fn(ParseNode $n) => $o->setCompletedDateTime($n->getDateTimeValue()),\n 'createdBy' => fn(ParseNode $n) => $o->setCreatedBy($n->getObjectValue([WorkbookEmailIdentity::class, 'createFromDiscriminatorValue'])),\n 'createdDateTime' => fn(ParseNode $n) => $o->setCreatedDateTime($n->getDateTimeValue()),\n 'percentComplete' => fn(ParseNode $n) => $o->setPercentComplete($n->getIntegerValue()),\n 'priority' => fn(ParseNode $n) => $o->setPriority($n->getIntegerValue()),\n 'startAndDueDateTime' => fn(ParseNode $n) => $o->setStartAndDueDateTime($n->getObjectValue([WorkbookDocumentTaskSchedule::class, 'createFromDiscriminatorValue'])),\n 'title' => fn(ParseNode $n) => $o->setTitle($n->getStringValue()),\n ]);\n }", "public function toArray(): array\n {\n $serialized = collect($this->properties);\n\n //partial serialization only for initialized properties\n if ($this->isPartial) {\n $serialized = $serialized->intersectByKeys(array_flip($this->initializedProperties));\n }\n\n $serialized = $serialized->mapWithKeys(function ($value, $property) {\n if ($value instanceof Arrayable) {\n $value = $value->toArray();\n }\n\n if ($this->snakeOnSerialize) {\n $property = Str::snake($property);\n }\n\n return [$property => $value];\n });\n\n $this->resetSerializationConditions();\n\n return $serialized->toArray();\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()),\n 'endDate' => fn(ParseNode $n) => $o->setEndDate($n->getDateValue()),\n 'expirationDate' => fn(ParseNode $n) => $o->setExpirationDate($n->getDateValue()),\n 'offer' => fn(ParseNode $n) => $o->setOffer($n->getStringValue()),\n 'offerDisplayName' => fn(ParseNode $n) => $o->setOfferDisplayName($n->getStringValue()),\n 'publisher' => fn(ParseNode $n) => $o->setPublisher($n->getStringValue()),\n 'recommendedSku' => fn(ParseNode $n) => $o->setRecommendedSku($n->getStringValue()),\n 'sizeInGB' => fn(ParseNode $n) => $o->setSizeInGB($n->getIntegerValue()),\n 'sku' => fn(ParseNode $n) => $o->setSku($n->getStringValue()),\n 'skuDisplayName' => fn(ParseNode $n) => $o->setSkuDisplayName($n->getStringValue()),\n 'startDate' => fn(ParseNode $n) => $o->setStartDate($n->getDateValue()),\n 'status' => fn(ParseNode $n) => $o->setStatus($n->getEnumValue(CloudPcGalleryImageStatus::class)),\n ]);\n }", "public function applicable_formats() {\n return array('my' => true);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()),\n 'regionGroup' => fn(ParseNode $n) => $o->setRegionGroup($n->getEnumValue(CloudPcRegionGroup::class)),\n 'regionStatus' => fn(ParseNode $n) => $o->setRegionStatus($n->getEnumValue(CloudPcSupportedRegionStatus::class)),\n 'supportedSolution' => fn(ParseNode $n) => $o->setSupportedSolution($n->getEnumValue(CloudPcManagementService::class)),\n ]);\n }", "public static function getProperties()\n {\n return [\n 'Description' => [false, self::PROPERTY_TYPE_STRING, null, false, false],\n 'Note' => [false, self::PROPERTY_TYPE_STRING, null, false, false],\n 'Code' => [false, self::PROPERTY_TYPE_STRING, null, false, false],\n 'Billable' => [false, self::PROPERTY_TYPE_STRING, null, false, false],\n 'Quantity' => [false, self::PROPERTY_TYPE_FLOAT, null, false, false],\n 'UnitCost' => [false, self::PROPERTY_TYPE_FLOAT, null, false, false],\n 'UnitPrice' => [false, self::PROPERTY_TYPE_FLOAT, null, false, false],\n 'Amount' => [false, self::PROPERTY_TYPE_FLOAT, null, false, false],\n 'AmountTax' => [false, self::PROPERTY_TYPE_FLOAT, null, false, false],\n 'AmountIncludingTax' => [false, self::PROPERTY_TYPE_FLOAT, null, false, false],\n ];\n }", "public static function getProperties()\n {\n return [\n 'id' => [true, self::PROPERTY_TYPE_STRING, null, false, false],\n 'endDate' => [false, self::PROPERTY_TYPE_DATE, null, false, false],\n 'startDate' => [true, self::PROPERTY_TYPE_DATE, null, false, false],\n 'status' => [true, self::PROPERTY_TYPE_ENUM, null, false, false],\n 'price' => [true, self::PROPERTY_TYPE_OBJECT, '\\\\Price', false, false],\n 'product' => [true, self::PROPERTY_TYPE_OBJECT, '\\\\Product', false, false],\n ];\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'archiveFolder' => fn(ParseNode $n) => $o->setArchiveFolder($n->getStringValue()),\n 'automaticRepliesSetting' => fn(ParseNode $n) => $o->setAutomaticRepliesSetting($n->getObjectValue([AutomaticRepliesSetting::class, 'createFromDiscriminatorValue'])),\n 'dateFormat' => fn(ParseNode $n) => $o->setDateFormat($n->getStringValue()),\n 'delegateMeetingMessageDeliveryOptions' => fn(ParseNode $n) => $o->setDelegateMeetingMessageDeliveryOptions($n->getEnumValue(DelegateMeetingMessageDeliveryOptions::class)),\n 'language' => fn(ParseNode $n) => $o->setLanguage($n->getObjectValue([LocaleInfo::class, 'createFromDiscriminatorValue'])),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'timeFormat' => fn(ParseNode $n) => $o->setTimeFormat($n->getStringValue()),\n 'timeZone' => fn(ParseNode $n) => $o->setTimeZone($n->getStringValue()),\n 'userPurpose' => fn(ParseNode $n) => $o->setUserPurpose($n->getEnumValue(UserPurpose::class)),\n 'userPurposeV2' => fn(ParseNode $n) => $o->setUserPurposeV2($n->getEnumValue(MailboxRecipientType::class)),\n 'workingHours' => fn(ParseNode $n) => $o->setWorkingHours($n->getObjectValue([WorkingHours::class, 'createFromDiscriminatorValue'])),\n ];\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'classification' => fn(ParseNode $n) => $o->setClassification($n->getEnumValue(PermissionClassificationType::class)),\n 'permissionId' => fn(ParseNode $n) => $o->setPermissionId($n->getStringValue()),\n 'permissionName' => fn(ParseNode $n) => $o->setPermissionName($n->getStringValue()),\n ]);\n }", "public function toArray()\n {\n return array(\n \"field_name\" => $this->fieldName,\n \"direction\" => $this->direction,\n );\n }", "public function getToStringFields()\n {\n $out = array();\n foreach($this->_map as $alias => $options)\n {\n if(!empty($options[self::MAP_TO_STRING]))\n {\n $out[] = $alias;\n }\n }\n return $out;\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'attributeMappings' => fn(ParseNode $n) => $o->setAttributeMappings($n->getCollectionOfObjectValues([AttributeMapping::class, 'createFromDiscriminatorValue'])),\n 'enabled' => fn(ParseNode $n) => $o->setEnabled($n->getBooleanValue()),\n 'flowTypes' => fn(ParseNode $n) => $o->setFlowTypes($n->getEnumValue(ObjectFlowTypes::class)),\n 'metadata' => fn(ParseNode $n) => $o->setMetadata($n->getCollectionOfObjectValues([ObjectMappingMetadataEntry::class, 'createFromDiscriminatorValue'])),\n 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'scope' => fn(ParseNode $n) => $o->setScope($n->getObjectValue([Filter::class, 'createFromDiscriminatorValue'])),\n 'sourceObjectName' => fn(ParseNode $n) => $o->setSourceObjectName($n->getStringValue()),\n 'targetObjectName' => fn(ParseNode $n) => $o->setTargetObjectName($n->getStringValue()),\n ];\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()),\n 'number' => fn(ParseNode $n) => $o->setNumber($n->getStringValue()),\n 'type' => fn(ParseNode $n) => $o->setType($n->getEnumValue(PhoneType::class)),\n ]);\n }", "public static function serialFormats()\n {\n return self::$serialFormats;\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'attributeDestination' => fn(ParseNode $n) => $o->setAttributeDestination($n->getObjectValue([AccessPackageResourceAttributeDestination::class, 'createFromDiscriminatorValue'])),\n 'attributeName' => fn(ParseNode $n) => $o->setAttributeName($n->getStringValue()),\n 'attributeSource' => fn(ParseNode $n) => $o->setAttributeSource($n->getObjectValue([AccessPackageResourceAttributeSource::class, 'createFromDiscriminatorValue'])),\n 'id' => fn(ParseNode $n) => $o->setId($n->getStringValue()),\n 'isEditable' => fn(ParseNode $n) => $o->setIsEditable($n->getBooleanValue()),\n 'isPersistedOnAssignmentRemoval' => fn(ParseNode $n) => $o->setIsPersistedOnAssignmentRemoval($n->getBooleanValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n ];\n }", "public function toJSON()\n\t{\n\t\t$columns = array();\n\t\t\n\t\t$rf = new ReflectionClass($this);\n\t\t$props = $rf->getProperties();\n\t\tforeach ($props as $prop)\n\t\t{\n\t\t\t$column = AttributeReader::PropertyAttributes($this,$prop->getName())->Column;\n\t\t\t$columns[$column] = $prop->getValue($this);\n\t\t}\n\n\t\treturn json_encode($columns);\n\t}", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'recipientActionDateTime' => fn(ParseNode $n) => $o->setRecipientActionDateTime($n->getDateTimeValue()),\n 'recipientActionMessage' => fn(ParseNode $n) => $o->setRecipientActionMessage($n->getStringValue()),\n 'recipientUserId' => fn(ParseNode $n) => $o->setRecipientUserId($n->getStringValue()),\n 'senderShiftId' => fn(ParseNode $n) => $o->setSenderShiftId($n->getStringValue()),\n ]);\n }", "public function getDisplayFormatTypeAllowableValues()\n {\n return [\n self::DISPLAY_FORMAT_TYPE__DEFAULT,\n self::DISPLAY_FORMAT_TYPE_DATE,\n self::DISPLAY_FORMAT_TYPE_NUMBER,\n ];\n }", "public static function getProperties()\n {\n return [\n 'NumberOfUnits' => [false, self::PROPERTY_TYPE_STRING, null, false, false],\n 'PayPeriodEndDate' => [false, self::PROPERTY_TYPE_DATE, '\\\\DateTimeInterface', false, false],\n 'PayPeriodStartDate' => [false, self::PROPERTY_TYPE_DATE, '\\\\DateTimeInterface', false, false],\n 'LeavePeriodStatus' => [false, self::PROPERTY_TYPE_ENUM, null, false, false],\n ];\n }", "public function toArray()\n {\n return [\n 'field-changes' => $this->fieldChanges,\n 'index-changes' => $this->indexChanges,\n 'add-timestamp' => $this->addTimestamps,\n 'add-soft-delete' => $this->addSoftDelete,\n 'drop-timestamp' => $this->dropTimestamps,\n 'drop-soft-delete' => $this->dropSoftDelete,\n ];\n }", "public function toArray()\n {\n return array(\n \"httpGet\" => $this->httpGet,\n \"httpPost\" => $this->httpPost,\n \"formats\" => $this->formats\n );\n }", "public function toArray()\n {\n return [\n 'xsmall' => __('Extra small'),\n 'small' => __('Small'),\n 'medium' => __('Medium'),\n 'large' => __('Large'),\n 'xlarge' => __('Extra large'),\n ];\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'endDateTime' => fn(ParseNode $n) => $o->setEndDateTime($n->getDateTimeValue()),\n 'startDateTime' => fn(ParseNode $n) => $o->setStartDateTime($n->getDateTimeValue()),\n ]);\n }", "public function toArray()\n {\n return [\n Import::BEHAVIOR_ADD_UPDATE => __('Add/Update'),\n Import::BEHAVIOR_REPLACE => __('Replace'),\n Import::BEHAVIOR_DELETE => __('Delete')\n ];\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'completionDateTime' => fn(ParseNode $n) => $o->setCompletionDateTime($n->getDateTimeValue()),\n 'creationDateTime' => fn(ParseNode $n) => $o->setCreationDateTime($n->getDateTimeValue()),\n 'error' => fn(ParseNode $n) => $o->setError($n->getObjectValue([ClassificationError::class, 'createFromDiscriminatorValue'])),\n 'lastUpdatedDateTime' => fn(ParseNode $n) => $o->setLastUpdatedDateTime($n->getDateTimeValue()),\n 'startDateTime' => fn(ParseNode $n) => $o->setStartDateTime($n->getDateTimeValue()),\n ]);\n }", "public static function _getPropertyNames(): array\n {\n return [\n 'url',\n ];\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'description' => fn(ParseNode $n) => $o->setDescription($n->getStringValue()),\n 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()),\n 'members' => fn(ParseNode $n) => $o->setMembers($n->getCollectionOfObjectValues([Identity::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function getFormatters(): ArrayObject\n {\n $arr = new ArrayObject();\n foreach ($this->columns as $key => $column) {\n if (($formatter = $column->getFormatter()) !== null) {\n $arr->offsetSet($key, $formatter);\n }\n }\n\n return $arr;\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'addedDateTime' => fn(ParseNode $n) => $o->setAddedDateTime($n->getDateTimeValue()),\n 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'verifiedPublisherId' => fn(ParseNode $n) => $o->setVerifiedPublisherId($n->getStringValue()),\n ];\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'comparisonValue' => fn(ParseNode $n) => $o->setComparisonValue($n->getStringValue()),\n 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()),\n 'enforceSignatureCheck' => fn(ParseNode $n) => $o->setEnforceSignatureCheck($n->getBooleanValue()),\n 'operationType' => fn(ParseNode $n) => $o->setOperationType($n->getEnumValue(Win32LobAppPowerShellScriptRuleOperationType::class)),\n 'operator' => fn(ParseNode $n) => $o->setOperator($n->getEnumValue(Win32LobAppRuleOperator::class)),\n 'runAs32Bit' => fn(ParseNode $n) => $o->setRunAs32Bit($n->getBooleanValue()),\n 'runAsAccount' => fn(ParseNode $n) => $o->setRunAsAccount($n->getEnumValue(RunAsAccountType::class)),\n 'scriptContent' => fn(ParseNode $n) => $o->setScriptContent($n->getStringValue()),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'deletedChats' => fn(ParseNode $n) => $o->setDeletedChats($n->getCollectionOfObjectValues([DeletedChat::class, 'createFromDiscriminatorValue'])),\n 'deletedTeams' => fn(ParseNode $n) => $o->setDeletedTeams($n->getCollectionOfObjectValues([DeletedTeam::class, 'createFromDiscriminatorValue'])),\n 'devices' => fn(ParseNode $n) => $o->setDevices($n->getCollectionOfObjectValues([TeamworkDevice::class, 'createFromDiscriminatorValue'])),\n 'teamsAppSettings' => fn(ParseNode $n) => $o->setTeamsAppSettings($n->getObjectValue([TeamsAppSettings::class, 'createFromDiscriminatorValue'])),\n 'teamTemplates' => fn(ParseNode $n) => $o->setTeamTemplates($n->getCollectionOfObjectValues([TeamTemplate::class, 'createFromDiscriminatorValue'])),\n 'workforceIntegrations' => fn(ParseNode $n) => $o->setWorkforceIntegrations($n->getCollectionOfObjectValues([WorkforceIntegration::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "function custom_field_formats_for_select() {\n $model = ClassRegistry::init('CustomField');\n $formats = $model->FIELD_FORMATS;\n uasort($formats, array($this, '__sort_custom_field_formats_for_select'));\n $select = array();\n foreach ($formats as $k=>$format) {\n $select[$k] = __($format['name']);\n }\n return $select;\n }", "protected static function getCardFormats() : array\n {\n return Formats::getList();\n }", "public function toArray(): array\n {\n $array = [];\n $str = new Str();\n\n foreach (\\get_object_vars($this) as $property => $value) {\n $array[$str->snake($property)] = $value;\n }\n\n return $array;\n }", "public function format()\n {\n $result = array();\n\n foreach ($this->groups as $group) {\n $result[] = array(\n 'id' => $group->getInternalId(),\n 'external_id' => $group->getExternalId(),\n 'value' => $group->getName(),\n 'label' => $group->getName(),\n );\n }\n\n return $result;\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'operation' => fn(ParseNode $n) => $o->setOperation($n->getEnumValue(RuleOperation::class)),\n 'property' => fn(ParseNode $n) => $o->setProperty($n->getStringValue()),\n 'values' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setValues($val);\n },\n 'valuesJoinedBy' => fn(ParseNode $n) => $o->setValuesJoinedBy($n->getEnumValue(BinaryOperator::class)),\n ];\n }", "public static function _getPropertyNames(): array\n {\n return [\n 'name',\n ];\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'comment' => fn(ParseNode $n) => $o->setComment($n->getStringValue()),\n 'createdBy' => fn(ParseNode $n) => $o->setCreatedBy($n->getObjectValue([IdentitySet::class, 'createFromDiscriminatorValue'])),\n 'createdDateTime' => fn(ParseNode $n) => $o->setCreatedDateTime($n->getDateTimeValue()),\n 'items' => fn(ParseNode $n) => $o->setItems($n->getCollectionOfObjectValues([DocumentSetVersionItem::class, 'createFromDiscriminatorValue'])),\n 'shouldCaptureMinorVersion' => fn(ParseNode $n) => $o->setShouldCaptureMinorVersion($n->getBooleanValue()),\n ]);\n }", "public function get_field_properties() {\n return array(PARAM_RAW, NULL_NOT_ALLOWED);\n }", "public function toArray()\r\n\t{\r\n\t\t$attributes = parent::toArray();\r\n\r\n\t\tif (! $this->autoTranslations) return $attributes;\r\n\r\n\t\tforeach ($this->translatableAttributes as $field) {\r\n\t\t\t$attributes[$field] = $this->getTranslation($field);\r\n\t\t}\r\n\r\n\t\treturn $attributes;\r\n\t}", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'accessRecommendation' => fn(ParseNode $n) => $o->setAccessRecommendation($n->getStringValue()),\n 'accessReviewId' => fn(ParseNode $n) => $o->setAccessReviewId($n->getStringValue()),\n 'appliedBy' => fn(ParseNode $n) => $o->setAppliedBy($n->getObjectValue([UserIdentity::class, 'createFromDiscriminatorValue'])),\n 'appliedDateTime' => fn(ParseNode $n) => $o->setAppliedDateTime($n->getDateTimeValue()),\n 'applyResult' => fn(ParseNode $n) => $o->setApplyResult($n->getStringValue()),\n 'justification' => fn(ParseNode $n) => $o->setJustification($n->getStringValue()),\n 'reviewedBy' => fn(ParseNode $n) => $o->setReviewedBy($n->getObjectValue([UserIdentity::class, 'createFromDiscriminatorValue'])),\n 'reviewedDateTime' => fn(ParseNode $n) => $o->setReviewedDateTime($n->getDateTimeValue()),\n 'reviewResult' => fn(ParseNode $n) => $o->setReviewResult($n->getStringValue()),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'availability' => fn(ParseNode $n) => $o->setAvailability($n->getCollectionOfObjectValues([ShiftAvailability::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'assignmentFilterType' => fn(ParseNode $n) => $o->setAssignmentFilterType($n->getEnumValue(DeviceAndAppManagementAssignmentFilterType::class)),\n 'groupId' => fn(ParseNode $n) => $o->setGroupId($n->getStringValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'payloadId' => fn(ParseNode $n) => $o->setPayloadId($n->getStringValue()),\n 'payloadType' => fn(ParseNode $n) => $o->setPayloadType($n->getEnumValue(AssociatedAssignmentPayloadType::class)),\n ];\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'errors' => fn(ParseNode $n) => $o->setErrors($n->getIntegerValue()),\n 'groups' => fn(ParseNode $n) => $o->setGroups($n->getIntegerValue()),\n 'matchedPeopleByRole' => fn(ParseNode $n) => $o->setMatchedPeopleByRole($n->getCollectionOfObjectValues([IndustryDataRunRoleCountMetric::class, 'createFromDiscriminatorValue'])),\n 'memberships' => fn(ParseNode $n) => $o->setMemberships($n->getIntegerValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'organizations' => fn(ParseNode $n) => $o->setOrganizations($n->getIntegerValue()),\n 'people' => fn(ParseNode $n) => $o->setPeople($n->getIntegerValue()),\n 'unmatchedPeopleByRole' => fn(ParseNode $n) => $o->setUnmatchedPeopleByRole($n->getCollectionOfObjectValues([IndustryDataRunRoleCountMetric::class, 'createFromDiscriminatorValue'])),\n 'warnings' => fn(ParseNode $n) => $o->setWarnings($n->getIntegerValue()),\n ];\n }", "public function toArray()\n {\n return [\n 'type' => 'object',\n 'properties' => [\n 'email' => ['type' => 'string'],\n 'key' => ['type' => 'string'],\n 'name' => ['type' => 'string'],\n 'picture' => ['type' => 'string'],\n 'phone' => ['type' => 'string'],\n 'balance' => ['type' => 'integer', 'format' => 'int32'],\n 'codes' => ['type' => 'array', 'items' => ['type' => 'string']],\n 'order_comment_tracking_code' => ['type' => 'string'],\n 'title' => ['type' => 'string'],\n ],\n 'required' => ['email', 'key', 'name', 'phone', 'balance', 'codes', 'order_comment_tracking_code', 'title'],\n ];\n }", "public function applicable_formats() {\n return array('all'=>true);\n }", "protected function properties()\n {\n return [\n 'title' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::text(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__LOGBOOK__TITLE',\n C__PROPERTY__INFO__DESCRIPTION => 'Title'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_cats_net_list__title'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATS__NET__TITLE'\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__LIST => false,\n C__PROPERTY__PROVIDES__SEARCH => false,\n C__PROPERTY__PROVIDES__IMPORT => false,\n C__PROPERTY__PROVIDES__EXPORT => false,\n C__PROPERTY__PROVIDES__REPORT => false\n ]\n ]\n ),\n 'type' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::dialog(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATS__NET__TYPE',\n C__PROPERTY__INFO__DESCRIPTION => 'Type'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_cats_net_list__isys_net_type__id',\n C__PROPERTY__DATA__REFERENCES => [\n 'isys_net_type',\n 'isys_net_type__id'\n ]\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATS__NET__TYPE',\n C__PROPERTY__UI__PARAMS => [\n 'p_bDisabled' => '1',\n 'p_strTable' => 'isys_net_type',\n 'p_bDbFieldNN' => '1'\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__SEARCH => false\n ]\n ]\n ),\n 'address' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::text(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATS__NET',\n C__PROPERTY__INFO__DESCRIPTION => 'Net'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_cats_net_list__address'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATS__NET__NET_V4',\n C__PROPERTY__UI__PARAMS => [\n 'p_bReadonly' => '',\n 'p_strClass' => 'input input-mini'\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__LIST => false\n ]\n ]\n ),\n 'netmask' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::text(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATS__NET__MASK',\n C__PROPERTY__INFO__DESCRIPTION => 'Netmask'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_cats_net_list__mask'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATS__NET__MASK_V4',\n C__PROPERTY__UI__PARAMS => [\n 'p_strClass' => 'input input-mini',\n 'p_bReadonly' => ''\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__LIST => false\n ]\n ]\n ),\n 'gateway' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::dialog(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATS__NET__DEF_GW',\n C__PROPERTY__INFO__DESCRIPTION => 'Default Gateway'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_cats_net_list__isys_catg_ip_list__id'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATS__NET__DEF_GW_V4',\n C__PROPERTY__UI__PARAMS => [\n 'p_arData' => new isys_callback(\n [\n 'isys_cmdb_dao_category_s_net',\n 'callback_property_gateway'\n ]\n )\n ]\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n 'isys_export_helper',\n 'get_gateway'\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__REPORT => false,\n C__PROPERTY__PROVIDES__LIST => false\n ]\n ]\n ),\n 'range_from' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::text(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATS__NET__ADDRESS_FROM',\n C__PROPERTY__INFO__DESCRIPTION => 'DHCP from'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_cats_net_list__address_range_from'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATS__NET__ADDRESS_RANGE_FROM'\n ]\n ]\n ),\n 'range_to' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::text(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATS__NET__ADDRESS_TO',\n C__PROPERTY__INFO__DESCRIPTION => 'DHCP to'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_cats_net_list__address_range_to'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATS__NET__ADDRESS_RANGE_TO'\n ]\n ]\n ),\n 'dns_server' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::object_browser(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATS__NET__DNS_SERVER',\n C__PROPERTY__INFO__DESCRIPTION => 'DNS server'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_cats_net_list__id',\n C__PROPERTY__DATA__REFERENCES => [\n 'isys_cats_net_list_2_isys_catg_ip_list',\n 'isys_cats_net_list__id'\n ]\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATS__NET__DNS_SERVER'\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__SEARCH => false,\n C__PROPERTY__PROVIDES__REPORT => false,\n C__PROPERTY__PROVIDES__LIST => false\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n 'isys_export_helper',\n 'get_net_dns_server'\n ]\n ]\n ]\n ),\n 'dns_domain' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::multiselect(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATS__NET__DNS_DOMAIN',\n C__PROPERTY__INFO__DESCRIPTION => 'Domain / DNS namespace'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_cats_net_list__id',\n C__PROPERTY__DATA__TABLE_ALIAS => 'dns_domain',\n C__PROPERTY__DATA__REFERENCES => [\n 'isys_cats_net_list_2_isys_net_dns_domain',\n 'isys_cats_net_list__id'\n ]\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATS__NET__DNS_DOMAIN',\n C__PROPERTY__UI__PARAMS => [\n 'p_strTable' => 'isys_net_dns_domain',\n 'placeholder' => _L('LC__CMDB__CATS__NET__DNS_DOMAIN'),\n 'emptyMessage' => _L('LC__CMDB__CATS__NET__NO_DNS_DOMAINS_FOUND'),\n 'p_onComplete' => \"idoit.callbackManager.triggerCallback('cmdb-cats-net-dns_domain-update', selected);\",\n 'multiselect' => true\n //'p_arData' => new isys_callback(array('isys_cmdb_dao_category_s_net', 'callback_property_dns_domain'))\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__SEARCH => false,\n C__PROPERTY__PROVIDES__LIST => false,\n C__PROPERTY__PROVIDES__VALIDATION => false,\n C__PROPERTY__PROVIDES__REPORT => false\n ],\n C__PROPERTY__CHECK => [\n C__PROPERTY__CHECK__MANDATORY => false,\n C__PROPERTY__CHECK__VALIDATION => false\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n 'isys_export_helper',\n 'dialog_multiselect'\n ]\n ]\n ]\n ),\n 'cidr_suffix' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::int(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATS__NET__CIDR_SUFFIX',\n C__PROPERTY__INFO__DESCRIPTION => 'CIDR-Suffix'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_cats_net_list__cidr_suffix'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATS__NET__CIDR',\n C__PROPERTY__UI__PARAMS => [\n 'p_bReadonly' => '',\n 'p_strClass' => 'input input-mini'\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__SEARCH => false\n ]\n ]\n ),\n 'reverse_dns' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::text(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CATS__NET__REVERSE_DNS',\n C__PROPERTY__INFO__DESCRIPTION => 'Reverse dns'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_cats_net_list__reverse_dns'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATS__NET__REVERSE_DNS'\n ]\n ]\n ),\n 'layer2_assignments' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::object_browser(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATS__NET__LAYER2_NET',\n C__PROPERTY__INFO__DESCRIPTION => 'Layer-2-net assignments'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_obj__id'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATS__NET__LAYER2',\n C__PROPERTY__UI__PARAMS => [\n isys_popup_browser_object_ng::C__TITLE => 'LC__BROWSER__TITLE__NET',\n isys_popup_browser_object_ng::C__MULTISELECTION => true,\n isys_popup_browser_object_ng::C__CAT_FILTER => 'C__CATS__LAYER2_NET'\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__SEARCH => false,\n C__PROPERTY__PROVIDES__REPORT => false,\n C__PROPERTY__PROVIDES__LIST => false\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n 'isys_export_helper',\n 'layer_2_assignments'\n ]\n ]\n ]\n ),\n 'address_v6' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::virtual(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATS__NET',\n C__PROPERTY__INFO__DESCRIPTION => 'Net v6'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CATS__NET__NET_V6'\n ]\n ]\n ),\n 'description' => array_replace_recursive(\n isys_cmdb_dao_category_pattern::commentary(),\n [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__LOGBOOK__DESCRIPTION',\n C__PROPERTY__INFO__DESCRIPTION => 'Description'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_cats_net_list__description'\n ],\n C__PROPERTY__UI => [\n C__PROPERTY__UI__ID => 'C__CMDB__CAT__COMMENTARY_' . C__CMDB__CATEGORY__TYPE_SPECIFIC . C__CATS__NET\n ]\n ]\n )\n ];\n }", "public function toArray()\n {\n return [\n 'location' => $this->location(),\n 'from' => $this->from(),\n 'to' => $this->to(),\n 'pencil' => $this->pencil\n ];\n }", "public function getStandardJsonFormat(){\n return VoucherValidationLogTransformer::transform($this->prepareVoucherValidationLogGreedyData());\n }", "public function properties(){\n \t\treturn CMap::mergeArray(\n \t\t\tparent::properties(),\n \t\t\tarray(\n\t\t\t\t'inboundMessageID' => array('type' => 'string'),\n\t\t\t\t'sourceAddress' => array('type' => 'string'),\n\t\t\t\t'messageContent' => array('type' => 'string'),\n\t\t\t\t'externalTransactionID' => array('type' => 'string'),\n\t\t\t\t'status' => array('type' => 'string'),\n\t\t\t\t'dateCreated' => array('type' => 'string'),\n\t\t\t\t'dateModified' => array('type' => 'string'),\n \t\t\t)\n \t\t);\n \t}", "public static function _getPropertyNames(): array\n {\n return [\n ];\n }" ]
[ "0.6251412", "0.61815494", "0.61307067", "0.60938716", "0.60423416", "0.60406804", "0.5927783", "0.59181404", "0.5906242", "0.58856034", "0.5882179", "0.5819605", "0.58044976", "0.57932156", "0.57928187", "0.5792361", "0.5774231", "0.57428837", "0.5727723", "0.5719939", "0.57093185", "0.5637966", "0.5626646", "0.56260175", "0.561583", "0.5601182", "0.557865", "0.557765", "0.5576167", "0.5551215", "0.55344206", "0.55230916", "0.5518155", "0.5511368", "0.5496428", "0.549522", "0.5494189", "0.5491785", "0.5477578", "0.5476344", "0.54680777", "0.54623544", "0.5453306", "0.543561", "0.5433375", "0.5429783", "0.54295635", "0.5423265", "0.5420728", "0.5419225", "0.54134506", "0.54134506", "0.54084915", "0.5401707", "0.53970027", "0.5393895", "0.53937006", "0.5386038", "0.53819686", "0.537329", "0.53687495", "0.5368146", "0.5359283", "0.53534013", "0.5344417", "0.53300565", "0.53273654", "0.5325964", "0.53253245", "0.53242695", "0.53186584", "0.5315978", "0.5311256", "0.5308508", "0.5304128", "0.53000146", "0.5299867", "0.52943945", "0.52913225", "0.528979", "0.5289619", "0.5288342", "0.5288108", "0.52823645", "0.52816087", "0.5280012", "0.5275689", "0.527348", "0.527323", "0.52729243", "0.52705264", "0.5260292", "0.52589923", "0.52581984", "0.5257866", "0.5255063", "0.5253714", "0.5251468", "0.5248275", "0.5248193", "0.52432287" ]
0.0
-1
Array of attributes where the key is the local name, and the value is the original name
public static function attributeMap() { return [ 'tenant_id' => 'tenant_id', 'expires_in' => 'expires_in', 'scopes' => 'scopes' ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function changedAttributesName(): array\n {\n $changedAttributes = [];\n $attributes = $this->toArray();\n foreach ($attributes as $key => $value) {\n if (isset($this->originals[$key]) && $value !== $this->originals[$key] && ! ((is_array($this->originals[$key]) || is_object($this->originals[$key])))) {\n $changedAttributes[] = $key;\n }\n }\n return $changedAttributes;\n }", "public function attributesToArray()\n {\n return Helper::toCamelCase($this->attributes());\n }", "private function getApiAttributeNamesArray()\n {\n $array = [\n 'firstname',\n 'lastname',\n 'email',\n 'id',\n 'website_id',\n 'group_id',\n 'prefix',\n 'middlename',\n 'suffix',\n 'dob',\n 'taxvat',\n 'gender',\n 'is_active',\n 'company',\n 'city',\n 'country_id',\n 'region',\n 'postcode',\n 'telephone',\n 'fax',\n 'vat_id',\n 'street_1',\n 'street_2',\n 'subaccounts',\n 'manage_subaccounts',\n 'account_data_modification_permission',\n 'account_order_history_view_permission',\n 'checkout_order_create_permission',\n 'checkout_order_approval_permission',\n 'checkout_cart_view_permission',\n 'checkout_view_permission',\n 'checkout_order_placed_notification_permission',\n 'force_usage_parent_company_name_permission',\n 'force_usage_parent_vat_permission',\n 'force_usage_parent_addresses_permission',\n 'password',\n 'parent_email',\n 'promote',\n 'can_manage_subaccounts',\n ];\n\n return $array;\n }", "abstract public function attributeNames();", "public function attributeNames() {\n\t\treturn array(\n\t\t\t'name',\n\t\t\t'path',\n\t\t);\n\t}", "private function attrNames()\n {\n $dimAttr = [\n 'length' => 'length',\n 'width' => 'width',\n 'height' => 'height',\n ];\n $dsAttr = [\n 'dropship' => 'dropship',\n 'dropship_location' => 'dropship_location'\n ];\n\n $this->attrNames = ($this->mageVersion >= '2.2.5') ? $dsAttr : array_merge($dsAttr, $dimAttr);\n }", "public function getAttributes($name);", "public function attributes(): array\n {\n return [\n $this->attributePrefix.'target' => $this->target(),\n $this->attributePrefix.'filterByType' => $this->filterByType,\n ];\n }", "public static function dataAttributes(array $attributes): array {\n\t\treturn ArrayTools::flatten(ArrayTools::filterKeyPrefixes(ArrayTools::keysReplace(array_change_key_case($attributes), '_', '-'), 'data-', true));\n\t}", "public function attributes()\n {\n return collect(array_keys($this->rules()))\n ->mapWithKeys(function ($key) {\n return [$key => str_replace(['.', '_'], ' ', $key)];\n })\n ->toArray();\n }", "public function attributes() // atribūtu savi nosaukumi\n {\n return[ \n 'fname' => 'Vārds',\n 'lname' => 'Uzvārds',\n 'email' => 'E-pasts',\n 'oldpassword' => 'Paroles lauks',\n 'password' => 'Jaunas paroles lauks',\n 'buttontitle' => 'Pogas virsraksts',\n 'buttonlink' => 'Pogas links',\n 'reciever' => 'Saņēmēju lauks',\n 'emailtitle' => 'Ziņas virsrsksts',\n 'emailtext' => 'Ziņas teksts',\n 'transport' => 'Pasākumu lauks'\n ];\n }", "public function separateTranslationsFromAttributes(): array\n\t{\n\t\t$attributes = collect($this->attributes);\n\n\t\t// Extract the translated values\n\t\t$translatables = $attributes->only($this->translatable);\n\t\t$this->translatedAttributes = $translatables->toArray();\n\n\t\t// Keep only the non-translatable attributes\n\t\t$this->attributes = $attributes->forget($this->translatable)->toArray();\n\n\t\treturn $this->translatedAttributes;\n\t}", "public function getAttributes()\n {\n $return = [];\n foreach ($this->attr as $attr => $info) {\n $return[$attr] = $this->getAttribute($attr);\n }\n\n return $return;\n }", "public function getAttributes(): array;", "public function getAttributes(): array;", "public function getAttributes(): array;", "public function getAttributes(): array;", "public function attribute_names() {\n\t\n\t\treturn array_keys( $this->attributes );\n\t\t\n\t}", "public function getValidNameAttributes(): array\n {\n return [\n 'Starts with _' => [\n 'attribute_name_0001.xsd', '_foo', \n ], \n 'Starts with letter' => [\n 'attribute_name_0002.xsd', 'f', \n ], \n 'Contains letter' => [\n 'attribute_name_0003.xsd', 'foo', \n ], \n 'Contains digit' => [\n 'attribute_name_0004.xsd', 'f00', \n ], \n 'Contains .' => [\n 'attribute_name_0005.xsd', 'f.bar', \n ], \n 'Contains -' => [\n 'attribute_name_0006.xsd', 'f-bar', \n ], \n 'Contains _' => [\n 'attribute_name_0007.xsd', 'f_bar', \n ], \n 'Surrounded by whitespaces' => [\n 'attribute_name_0008.xsd', 'foo_bar', \n ], \n ];\n }", "public function getAttributes() {\n $attr = array();\n \n $attr[\"id\"] = $this->id_;\n $attr[\"taxonId\"] = $this->taxonId_;\n $attr[\"dbh\"] = $this->dbh_;\n $attr[\"lat\"] = $this->lat_;\n $attr[\"lng\"] = $this->lng_;\n $attr[\"layers\"] = $this->layers_;\n \n return $attr;\n }", "abstract function attributes(): array;", "public function getAttributes()\n {\n return array();\n }", "public function getAttributes()\n {\n return array();\n }", "public function getAttributes()\n {\n return array();\n }", "public function getAttributes()\n {\n return array();\n }", "public function attributeNames()\n {\n return array_merge_recursive(parent::attributeNames(), array(\n 'markup',\n 'name',\n 'plaintext_markup',\n 'subject_markup',\n 'base',\n ));\n }", "public function attributes()\n {\n return [\n 'name' => __('main.name'),\n ];\n }", "private function mapAttributes() {\n\t\t$attributes = [];\n\t\t$originalAttrs = $this->subscribedTopic->getRoute()->getAttributes();\n\n\t\tif (!count($originalAttrs)) {\n\t\t\treturn $attributes;\n\t\t}\n\n\t\tforeach ($originalAttrs as $attr => $obj) {\n\t\t\t$routeParts = explode('/', $this->route);\n\n\t\t\tif (!isset($routeParts[$obj->index])) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$attributes[$attr] = $routeParts[$obj->index];\n\t\t}\n\n\t\treturn $attributes;\n\t}", "public function attributes() : array;", "public function attributeNames()\n\t{\n\t\t$class = get_class($this);\n\t\tif(!isset(self::$_names[$class]))\n\t\t{\n\t\t\tself::$_names[$class] = array_merge(array('id'), $this->getNames($this->arrayStructure()));\n\t\t}\n\t\t\n\t\treturn self::$_names[$class];\n\t}", "public static function attributeMap()\n {\n return [\n 'status' => 'status',\n 'quota' => 'quota'\n ];\n }", "public static function attributeMap()\n {\n return [\n 'status' => 'status',\n 'time' => 'time'\n ];\n }", "public function toArray() {\n $attrs = $this->_private_attributes;\n $result = array();\n foreach ($attrs as $key => $attr) {\n if (method_exists($this, \"get\" . underscore_to_camel_case($key, true))) {\n eval('$result[\"' . $key . '\"] = $this->get' . underscore_to_camel_case($key, true) . '();');\n } else {\n $result[$key] = $attr;\n }\n }\n return $result;\n }", "public function attributeNames() {\n\t\t$attributeNames = array(\n\t\t\t'name',\n\t\t\t'category_name',\n\t\t\t'default_content',\n\t\t);\n\t\t$attributeNames = array_merge($attributeNames, $this->contentAttributeNames());\n\t\treturn $attributeNames;\n\t}", "public function getChangedAttributes()\n {\n $output = array();\n\n foreach ($this->attributes as $name => $value) {\n if ($this->hasChanged($name)) {\n $output[$name] = $value;\n }\n }\n\n return $output;\n }", "public function getAttributes()\n {\n return array_merge(\n $this->attributes,\n [\n 'args' => $this->args(),\n 'type' => $this->type(),\n 'resolve' => $this->getResolver(),\n ]\n );\n }", "public function attributeNames() {\n\t\t$attributeNames = array(\n\t\t\t'name',\n\t\t\t'width',\n\t\t\t'height',\n\t\t);\n\t\t$attributeNames = array_merge($attributeNames, $this->existAttributeNames());\n\t\treturn $attributeNames;\n\t}", "public function getUnchangedAttributes()\n {\n $output = array();\n\n foreach ($this->attributes as $name => $value) {\n if (!$this->hasChanged($name)) {\n $output[$name] = $value;\n }\n }\n\n return $output;\n }", "public function getChanges(): array\n {\n $changes = [];\n\n foreach ($this->changedAttributesName() as $key) {\n $changes[$key] = $this->originals[$key];\n }\n\n return $changes;\n }", "public function getAttributeNames ()\n {\n\n return array_keys($this->attributes);\n\n }", "public function attributes(): array\n {\n return [\n 'name' => '角色名称',\n 'staff' => '关联员工',\n 'brand' => '关联品牌',\n 'department' => '关联部门',\n ];\n }", "public function attributes()\n {\n return [\n 'external_id' => 'Third Party Identifier',\n 'name_first' => 'First Name',\n 'name_last' => 'Last Name',\n 'root_admin' => 'Root Administrator Status',\n ];\n }", "public function toArray(): array\n {\n return [\n $this->attribute->getName(),\n $this->name,\n ];\n }", "public function attributeNames()\n {\n $className = get_class($this);\n if (!isset(self::$_names[$className])) {\n $class = new ReflectionClass(get_class($this));\n $names = array();\n foreach ($class->getProperties() as $property) {\n $name = $property->getName();\n if ($property->isPublic() && !$property->isStatic())\n $names[] = $name;\n }\n return self::$_names[$className] = $names;\n } else\n return self::$_names[$className];\n }", "public function toArray()\n {\n $attributes = parent::toArray();\n \n foreach ($this->getTranslatableAttributes() as $name) {\n $attributes[$name] = $this->getTranslation($name, app()->getLocale());\n }\n \n return $attributes;\n }", "protected function prepareAttributes(array $attributes)\n\t{\n\t\t$result = array();\n\n\t\tforeach ($attributes as $key => $attributeValue)\n\t\t{\n\t\t\t$newKey = mb_strtolower($key);\n\t\t\t$newKey = str_replace('_', '-', $newKey);\n\n\t\t\tif (is_array($attributeValue))\n\t\t\t{\n\t\t\t\t$newAttribute = $this->prepareAttributes($attributeValue);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$newAttribute = $attributeValue;\n\t\t\t}\n\n\t\t\t$result[$newKey] = $newAttribute;\n\t\t}\n\n\t\treturn $result;\n\t}", "public function toArray()\r\n\t{\r\n\t\t$attributes = parent::toArray();\r\n\r\n\t\tif (! $this->autoTranslations) return $attributes;\r\n\r\n\t\tforeach ($this->translatableAttributes as $field) {\r\n\t\t\t$attributes[$field] = $this->getTranslation($field);\r\n\t\t}\r\n\r\n\t\treturn $attributes;\r\n\t}", "protected function getAttributes()\n {\n return [];\n }", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function attributes()\n {\n return [\n 'client_id' => trans('financials.client'),\n 'name' => trans('persona.name'),\n 'email' => trans('persona.email'),\n 'password' => trans('auth.password'),\n 'password_confirmation' => trans('auth.password:confirmation'),\n 'role' => trans('persona.title'),\n 'stored_file' => trans('persona.image'),\n ];\n }", "public function attributes()\n {\n return [\n ];\n }", "public function attributes(): array\n {\n return [\n //\n ];\n }", "public function attributes(): array\n {\n return [\n //\n ];\n }", "public function getAttributes()\n\t{\n\t\treturn array(\n\t\t\t'usuario' => $this->usuario,\n\t\t\t'correo' => $this->correo,\n\t\t\t'cedula'=>$this->cedula,\n\t\t\t//'firstName' => $this->firstName,\n\t\t\t//'lastName' => $this->lastName,\n\t\t);\n\t}", "private function _processAttributes($attributes){\r\n\r\n if(Help::isAssoc($attributes)){\r\n\r\n foreach($attributes as $key => $value){\r\n $attrs[] = $key.'('.$value.')';\r\n }\r\n }\r\n else{\r\n $attrs = $attributes;\r\n }\r\n\r\n return $attrs;\r\n }", "public function attributes()\n {\n return array_merge(\n parent::attributes(),\n ['date', 'origin', 'originName', 'total']\n );\n }", "public function getCustomAttributes(): array;", "public static function attributeMap()\n {\n return [\n 'application_id' => 'application_id',\n 'is_default' => 'is_default',\n 'role' => 'role',\n 'type' => 'type',\n '_issues' => '_issues'\n ];\n }", "public static function attributeMap();", "public function getAttributesNames(){\n\t\t$this->_connect();\n\t\treturn ActiveRecordMetaData::getAttributes($this->_source, $this->_schema);\n\t}", "public function attributes()\n {\n return [];\n }", "public function attributes()\n {\n return [];\n }", "public function attributes()\n {\n return [];\n }", "protected static function keyToAttributeMapping()\n {\n return array();\n }", "public function getOldAttributes()\n {\n return $this->_oldAttributes === null ? [] : $this->_oldAttributes;\n }", "public function getAttributes() {}", "public function getAttributes() {}", "public function attributes()\n {\n return [\n 'name' => __('basic::elf.name'),\n 'slug' => __('basic::elf.slug'),\n 'image' => __('basic::elf.image'),\n 'preview' => __('basic::elf.preview'),\n 'thumbnail' => __('basic::elf.thumbnail'),\n 'description' => __('basic::elf.description'),\n 'additional_text' => __('gallery::elf.additional_text'),\n 'option' => __('gallery::elf.option'),\n 'active' => __('basic::elf.active'),\n 'link' => __('basic::elf.link'),\n ];\n }", "public function attributes()\n {\n return [\n 'name' => 'nombre',\n 'last_name' => 'apellido',\n 'num_id' => 'cédula',\n 'email' => 'correo',\n 'birthdate' => 'fecha',\n 'sex' => 'sexo',\n 'place_birthdate' => 'lugar de nacimiento',\n 'blood_group' => 'grupo sanguineo',\n 'phone_person' => 'telefono personal',\n 'location_home' => 'lugar donde vive',\n 'phone_home' => 'telefono de casa',\n 'location_work' => 'lugar de trabajo ',\n 'phone_work' => 'telefono de trabajo',\n 'profession' => 'profesión',\n 'current_occupation' => 'ocupación',\n 'observation' => 'observación',\n ];\n }", "public function getAttributeNames()\n {\n return array_keys($this->attributes);\n }", "public function getAddAttrArray()\n {\n $custom = $this->select(Customization::ADD_ATTR)->get();\n $result = array_values($custom->toArray()[0]);\n array_unshift($result, __('general.select_attr'));\n return $result;\n }", "function get_attr()\n\t{\n\t\t$a = array();\n\t\twhile (($s = array_shift($this->pieces))) {\n\t\t\tif (($i = strpos($s,\":\")) >= 1) {\n\t\t\t\t$attr = substr($s,0,$i);\n\t\t\t\t$val = substr($s,$i+1);\n\t\t\t\tif (($j = strpos($val,\"(\"))\n\t\t\t\t && ($k = strpos($val,\")\"))\n\t\t\t\t && ($k > $j)) {\n\t\t\t\t\t$a[\"arg:\".$attr] = substr($val,$j+1,$k-($j+1));\n\t\t\t\t\t$val = substr($val,0,$j);\n\t\t\t\t}\n\t\t\t\t$a[$attr] = $val;\n\t\t\t} elseif (intval($s) > 0) {\n\t\t\t if ($a['$scale'] != \"\")\n\t\t\t\t$a['scale'] = intval($s);\n\t\t\t}\n\t\t}\n\t\treturn $a;\n\t}", "public function getAttributes() {\n $toReturn = array();\n $toReturn[\"id\"] = $this->id_;\n $toReturn[\"username\"] = $this->username_;\n $toReturn[\"email\"] = $this->email_;\n $toReturn[\"displayName\"] = $this->displayName_;\n $toReturn[\"firstName\"] = $this->firstName_;\n $toReturn[\"lastName\"] = $this->lastName_;\n $toReturn[\"postalCode\"] = $this->postalCode_;\n if ($this->privileges_ !== null) {\n $toReturn[\"privileges\"] = $this->privileges_;\n } else {\n $toReturn[\"privileges\"] = array();\n }\n \n $toReturn[\"isVerified\"] = $this->isVerified_;\n return $toReturn;\n }", "function getAttrList() {\n return array_keys($this->attributes);\n }", "protected function getSerializableAttributeNames(): array {\n return array_keys(get_object_vars($this));\n }", "protected function getAttributesToObfuscate(): array\n {\n return config('logbook.obfuscated_fields');\n }", "function getAttributes()\r\n\t{\r\n\t\t$result = array();\r\n\t\t$attributes = $this->object->getAttributes();\r\n\t\t\r\n\t\tforeach( $attributes as $key => $attribute )\r\n\t\t{\r\n\t\t\tif ( $key == 'OrderNum' ) continue;\r\n\t\t\tif ( $key == 'RecordCreated' ) continue;\r\n\t\t\tif ( $key == 'RecordModified' ) continue;\r\n\t\t\t\t\r\n\t\t\tarray_push( $result, $key );\r\n\t\t}\r\n\t\t\r\n\t\treturn $result;\r\n\t}", "public function attributes()\n {\n return [\n 'name' => '商品名',\n 'price' => '価格',\n 'description' => '説明文',\n 'tag_for_search' => '検索用タグ',\n 'img' => '画像',\n 'stock' => '在庫数'\n ];\n }", "public function dataProviderNormalizeUserAttributes()\n {\n return [\n [\n [\n 'name' => 'raw/name',\n 'email' => 'raw/email',\n ],\n [\n 'raw/name' => 'name value',\n 'raw/email' => 'email value',\n ],\n [\n 'name' => 'name value',\n 'email' => 'email value',\n ],\n ],\n [\n [\n 'name' => function ($attributes) {\n return $attributes['firstName'] . ' ' . $attributes['lastName'];\n },\n ],\n [\n 'firstName' => 'John',\n 'lastName' => 'Smith',\n ],\n [\n 'name' => 'John Smith',\n ],\n ],\n [\n [\n 'email' => ['emails', 'prime'],\n ],\n [\n 'emails' => [\n 'prime' => '[email protected]'\n ],\n ],\n [\n 'email' => '[email protected]',\n ],\n ],\n [\n [\n 'email' => ['emails', 0],\n 'secondaryEmail' => ['emails', 1],\n ],\n [\n 'emails' => [\n '[email protected]',\n ],\n ],\n [\n 'email' => '[email protected]',\n ],\n ],\n [\n [\n 'name' => 'file_get_contents',\n ],\n [\n 'file_get_contents' => 'value',\n ],\n [\n 'name' => 'value',\n ],\n ],\n ];\n }", "public function getFlatAttributes() {\n $attrib = array();\n foreach($this->attributes as $a) {\n $attrib = $attrib + $a;\n }\n return $attrib;\n }", "public function defineAttributes()\n\t{\n\t\treturn array();\n\t}", "public function getAttributeNames()\n {\n $names = array_keys($this->_attrs);\n sort($names);\n return $names;\n }", "protected function attributes()\n {\n return [];\n }", "public function getAttributes() {\n return $this->attributes->getArray();\n }", "public function attributes()\n {\n return [\n //\n ];\n }", "public function attributes()\n {\n return [\n //\n ];\n }", "public function attributes()\n {\n return [\n //\n ];\n }", "public function attributes()\n {\n return [\n //\n ];\n }", "public function attributes()\n {\n return [\n //\n ];\n }", "public function attributes()\n {\n return [\n //\n ];\n }", "public function attributes()\n {\n return [\n //\n ];\n }", "public function attributes()\n {\n return [\n //\n ];\n }", "public function attributes()\n {\n return [\n //\n ];\n }" ]
[ "0.73336", "0.68268436", "0.65760714", "0.65756506", "0.65030116", "0.6489458", "0.64807576", "0.6445652", "0.64143735", "0.63852084", "0.6381065", "0.6349757", "0.62795633", "0.6254031", "0.6254031", "0.6254031", "0.6254031", "0.62487864", "0.6192782", "0.61687446", "0.61621976", "0.61337525", "0.61337525", "0.61337525", "0.61337525", "0.61080104", "0.61067927", "0.61017734", "0.61005735", "0.6098226", "0.60923576", "0.60829395", "0.6071283", "0.6057216", "0.6056825", "0.6038051", "0.603803", "0.60321957", "0.6012105", "0.60005033", "0.59993994", "0.59896296", "0.59756994", "0.5953592", "0.5934222", "0.59249204", "0.59192836", "0.59164405", "0.5911171", "0.5911171", "0.5911171", "0.5911171", "0.5911171", "0.5911171", "0.5911171", "0.5911171", "0.5911171", "0.5899692", "0.5898575", "0.5893561", "0.5893561", "0.58876544", "0.5880664", "0.58755046", "0.58674294", "0.5863127", "0.5859776", "0.58524966", "0.5851779", "0.5851779", "0.5851779", "0.58459735", "0.5830237", "0.5827107", "0.58263385", "0.5822662", "0.58211565", "0.5812358", "0.5810034", "0.5801915", "0.5797703", "0.57963604", "0.5793313", "0.5790889", "0.5781644", "0.5768648", "0.5766543", "0.5762364", "0.5762052", "0.5759843", "0.5759753", "0.57538253", "0.5752608", "0.5752608", "0.5752608", "0.5752608", "0.5752608", "0.5752608", "0.5752608", "0.5752608", "0.5752608" ]
0.0
-1
Array of attributes to setter functions (for deserialization of responses)
public static function setters() { return [ 'tenant_id' => 'setTenantId', 'expires_in' => 'setExpiresIn', 'scopes' => 'setScopes' ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAttributes();", "public static function setters();", "public static function setters()\n {\n return [\n 'status' => 'setStatus',\n 'quota' => 'setQuota'\n ];\n }", "public function setAttributes(array $attributes);", "public function setAttributes(array $attributes);", "public function setAttributes(array $attributes);", "public static function setters()\n {\n return [\n 'application_id' => 'setApplicationId',\n 'is_default' => 'setIsDefault',\n 'role' => 'setRole',\n 'type' => 'setType',\n '_issues' => 'setIssues'\n ];\n }", "public function setAttributes($attributes){ }", "public static function setters()\n {\n return [\n 'status' => 'setStatus',\n 'time' => 'setTime'\n ];\n }", "public function __construct($daten = array())\n{\n if ($daten) {\n foreach ($daten as $k => $v) {\n $setterName = 'set' . ucfirst($k);\n // wenn ein ungültiges Attribut übergeben wurde\n // (ohne Setter), ignoriere es\n if (method_exists($this, $setterName)) {\n $this->$setterName($v);\n }\n }\n }\n}", "public function setAttributes($arr) {\n foreach($arr as $key => $val) {\n switch($key) {\n case \"id\":\n case \"user_id\":\n //casting null to int will return 0; don't want that\n if ($val !== null) {\n $this->id_ = (int) $val;\n }\n break; \n case \"username\":\n $this->username_ = $val;\n break; \n case \"email\":\n $this->email_ = $val;\n break; \n case \"displayName\":\n case \"display_name\":\n $this->displayName_ = $val;\n break; \n case \"firstName\":\n case \"first_name\":\n $this->firstName_ = $val;\n break; \n case \"lastName\":\n case \"last_name\":\n $this->lastName_ = $val;\n break; \n case \"postalCode\":\n case \"postal_code\":\n $this->postalCode_ = $val;\n break; \n case \"isVerified\":\n case \"is_verified\":\n $this->isVerified_ = (int) $val;\n break; \n case \"privileges\":\n //might be a string of comma-separated numbers, or an array\n if (is_array($val)) {\n $this->privileges_ = $val;\n } else if ($val !== null) {\n //clear array first\n unset($this->privileges_);\n $this->privileges_ = array();\n $tmp = explode(\",\", $val);\n foreach($tmp as $v){\n if (is_numeric($v)) {\n //$this->privileges_[(int) $v] = 1;\n $this->privileges_[] = (int) $v;\n }\n }\n \n }\n break;\n\n default:\n //ignore any others\n }\n }\n }", "public static function setters()\n {\n return parent::setters() + self::$setters;\n }", "public static function setters()\n {\n return parent::setters() + self::$setters;\n }", "public static function setters()\n {\n return parent::setters() + self::$setters;\n }", "public static function setters()\n {\n return parent::setters() + self::$setters;\n }", "public static function setters()\n {\n return parent::setters() + self::$setters;\n }", "public static function setters()\n {\n return parent::setters() + self::$setters;\n }", "public static function setters()\n {\n return parent::setters() + self::$setters;\n }", "public static function setters()\n {\n return parent::setters() + self::$setters;\n }", "public static function setters()\n {\n return parent::setters() + self::$setters;\n }", "public static function setters()\n {\n return parent::setters() + self::$setters;\n }", "public static function setters()\n {\n return parent::setters() + self::$setters;\n }", "public static function setters()\n {\n return parent::setters() + self::$setters;\n }", "public static function setters()\n {\n return parent::setters() + self::$setters;\n }", "public function setAttributes($values)\n {\n if (is_array($values)) {\n foreach ($values as $name => $value) {\n $setter = 'set' . ucfirst($name);\n if (method_exists($this, $setter)) {\n // set property\n $this->$setter($value);\n }\n }\n }\n }", "public function setAttributes($attributes);", "public function setAttributes($attributes)\n {\n foreach($attributes as $key => $value) {\n $this->$key = $value;\n }\n }", "abstract protected function setRequiredGetters();", "abstract protected function setValidationCustomAttributes(): array;", "protected abstract function initializeAttributes(): array;", "public function setAttrs($attrs);", "public function __construct(array $attributes)\n {\n foreach ($attributes as $attribute => $value){\n $this->$attributes = $value;\n }\n }", "abstract function attributes(): array;", "public function setRawAttributes($attributes) {\n $regex_attributes = \"/(?P<key>[a-z0-9-]+)=?(?P<value> [a-z0-9-]+)?,?/ix\";\n $attrib = array();\n if($attributes != '') {\n $parts = array();\n $result = preg_match_all($regex_attributes, $attributes, $parts);\n if(!$result) {\n $this->attributes = $attrib;\n return $this;\n }\n $keys = $parts['key'];\n $values = $parts['value'];\n $allowed_keys = $this->getAllowedAttributes();\n $allowed_values = $this->getAllowedAttributeValues();\n foreach ($keys as $index => $key) {\n $key = strtolower($key);\n // The key is in the allowed_keys array\n if(in_array($key, $allowed_keys)) {\n $value = strtolower($values[$index]);\n if(array_key_exists($key, $allowed_values)) {\n // For this key exists a allowed values array\n if(in_array($value, $allowed_values[$key])) {\n // Otherwise we check if the value is in the array\n $attrib[$key][] = $value; \n } else {\n // OK, we found a key wich is not allowed\n $allowedValues = implode(', ', $allowed_values[$key]);\n throw new Exception(\"$this->class: '$value' not allowed for attribute '$key'! Allowed values are: $allowedValues\");\n } \n } else {\n // For this key, no array with allowed values exist. we just save the key and asume any value is allowed\n $attrib[$key][] = $value;\n //throw new Exception(\"$this->class: '$value' not allowed for attribute '$key'! Allowed values are: $allowedValues\");\n }\n } else {\n $keyIsAllowed = false;\n foreach($allowed_values as $otherKey => $otherValues) {\n if(in_array($key, $otherValues)) {\n $attrib[$otherKey][] = $key;\n $keyIsAllowed = true;\n }\n }\n if(!$keyIsAllowed) {\n throw new Exception(sprintf(\"%s: '%s' not allowed as attribute!\", $this->class, $key));\n }\n }\n }\n }\n $this->attributes = $attrib;\n return $this;\n }", "function update_attributes($array = array())\n {\n foreach ($array as $key => $value) {\n $this->_stdObject->{$key} = $value;\n }\n }", "public function setAttributes(array $attributes)\n\t{\n\t\t$allowedAttributes = array('usuario','correo','cedula');\n\t\tforeach($attributes as $name=>$value) {\n\t\t\tif (in_array($name, $allowedAttributes))\n\t\t\t\t\t$this->$name = $value;\n\t\t}\n\t\treturn true;\n\t}", "public function prepAttributesForUse()\n\t{\n\t\t$attributes = $this->defineAttributes();\n\t\t$attributes['dateUpdated'] = array('0' => AttributeType::DateTime, 'required' => true);\n\t\t$attributes['dateCreated'] = array('0' => AttributeType::DateTime, 'required' => true);\n\n\t\tforeach ($attributes as $name => $config)\n\t\t{\n\t\t\t$config = ModelHelper::normalizeAttributeConfig($config);\n\t\t\t$value = $this->getAttribute($name);\n\n\t\t\tswitch ($config['type'])\n\t\t\t{\n\t\t\t\tcase AttributeType::DateTime:\n\t\t\t\t{\n\t\t\t\t\tif ($value)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (DateTimeHelper::isValidTimeStamp($value))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$dateTime = new DateTime('@'.$value);\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// TODO: MySQL specific.\n\t\t\t\t\t\t\t$dateTime = DateTime::createFromFormat(DateTime::MYSQL_DATETIME, $value);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$this->setAttribute($name, $dateTime);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase AttributeType::Mixed:\n\t\t\t\t{\n\t\t\t\t\tif (!empty($value) && is_string($value))\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->setAttribute($name, JsonHelper::decode($value));\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->setAttribute($name, array());\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function testMagicMethodSetThrowsExceptionValuesNotAnArray()\n\t{\n\t\t$stub = new \\Orchestra\\Support\\Form\\Fieldset(function ($f) {});\n\n\t\t$stub->attributes = 'foo';\n\t}", "public function set()\n {\n $args = func_get_args();\n\n if ( count($args) == 2 )\n {\n $this->attributes[$args[0]] = $args[1];\n }\n elseif ( count($args) == 1 && is_array($args[0]) ) \n {\n $this->attributes = ( array_merge($this->attributes, $args[0]) );\n }\n\n return $this;\n }", "public function hydrate($donnees){\n foreach($donnees as $key => $value){\n //on delcare la varible method\n $method = 'set'.ucfirst($key);\n//on verifie si la methode existe\n if(method_exists($this,$method)){\n $this->$method($value);\n }\n }\n\n}", "public static function setters() : array\n {\n return self::$setters;\n }", "public static function setters() : array\n {\n return self::$setters;\n }", "public static function setters() : array\n {\n return self::$setters;\n }", "public static function setters() : array\n {\n return self::$setters;\n }", "public static function setters() : array\n {\n return self::$setters;\n }", "public static function setters() : array\n {\n return self::$setters;\n }", "public function initAttribute();", "abstract protected function attributes();", "public function setProperties( ArrayObject $params )\n {\n foreach ( $this->attributeTypes as $attr => $type )\n {\n // 1: fijarse si esta en params\n // 2: verificar si el valor que tiene en params es del mismo tipo que el atributo\n // - Si el tipo es numerico, y el valor es string, ver que sea un string numerico. http://www.php.net/is_numeric (ojo con numeros negativos o si empiezan con \".\" o \",\", probar!!!)\n // - Si el tipo es date o time, y el tipo es un string, ver que el string tiene forma de date o time.\n // - Distinguir entre valor cero y valor null.\n\n // TODO: Ver como se podrian tambien setear listas de \"objetos simples\" (no es la idea que esto setee atributos que son PO, solo atributos simples)\n if (isset($params[$attr]) && !$this->isInyectedAttribute($attr)) // IMPORTANTE: id, class, deleted no se pueden setear por set properties!!!\n {\n // Esto es set$attr pero mas rapido!\n // TODO: Chekeos de tipos...\n // WARNING: Esto solo setea atributos simples! Hay que ver si puedo hacer el tema de setear atributos de clases asociadas... (depende de la notacion de las keys de params)\n // SI HAGO TODO EL CHEKEO EN setAttributeValue, solo llamo a esa y listo...\n \n $this->attributeValues[$attr] = (is_string($params[$attr]) ? trim($params[$attr]) : $params[$attr]);\n \n // Si attr el un id de un hasOne, y viene un string vacio, me tira un error en DatabaseXXX\n // al intentar poner un '' en un campo INT id, pero NULL le puedo poner. Asi que si viene\n // un valor vacio, le pongo NULL.\n if ($this->attributeValues[$attr] === '') $this->attributeValues[$attr] = NULL;\n \n \n // FIXME: deberia garantizar que solo vienen valores simples en params.\n \n // Marco como dirty en atributos simples (asignar en cada loop del for es mas barato\n // que estar chequeando si se modifico un campo y setear afuera del loop).\n $this->dirty = true;\n }\n }\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'bold' => fn(ParseNode $n) => $o->setBold($n->getBooleanValue()),\n 'color' => fn(ParseNode $n) => $o->setColor($n->getStringValue()),\n 'italic' => fn(ParseNode $n) => $o->setItalic($n->getBooleanValue()),\n 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),\n 'size' => fn(ParseNode $n) => $o->setSize($n->getFloatValue()),\n 'underline' => fn(ParseNode $n) => $o->setUnderline($n->getStringValue()),\n ]);\n }", "function set(array $array){\n foreach($this as $atributo => $valor){\n if(isset($array[$atributo])){\n $this->$atributo = $array[$atributo];\n }\n }\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'updateCategory' => fn(ParseNode $n) => $o->setUpdateCategory($n->getEnumValue(UpdateCategory::class)),\n ]);\n }", "public function set_attributes($attributes)\n {\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'mailExchange' => fn(ParseNode $n) => $o->setMailExchange($n->getStringValue()),\n 'preference' => fn(ParseNode $n) => $o->setPreference($n->getIntegerValue()),\n ]);\n }", "protected function hydrate($array){\r\n\t\tforeach ($array as $key => $value) {\r\n\t\t\t$methodName = 'set'.ucfirst($key);\r\n\t\t\tif(method_exists($this, $methodName)){\r\n\t\t\t\t$this->$methodName($value);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function setValues($array){\r\n\t\tforeach($array as $key => $val){\r\n\t\t\t$key = lcfirst(str_replace(\" \",\"\",ucwords(str_replace(\"_\",\" \",$key))));\r\n\t\t\tif(property_exists($this,$key))\r\n\t\t\t\t$this->$key = $val;\r\n\t\t}\r\n\t}", "function setValues($array){\r\n\t\tforeach($array as $key => $val){\r\n\t\t\t$key = lcfirst(str_replace(\" \",\"\",ucwords(str_replace(\"_\",\" \",$key))));\r\n\t\t\tif(property_exists($this,$key))\r\n\t\t\t\t$this->$key = $val;\r\n\t\t}\r\n\t}", "public function setAttributes($values)\n {\n if (!empty($values)) {\n foreach ($values as $name => $value) {\n $this->setAttribute($name, $value);\n }\n }\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'urls' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setUrls($val);\n },\n ]);\n }", "public function getCustomAttributes(): array;", "public function setAttributes($values, $safeOnly = true)\n\t{\n\t\tparent::setAttributes($values, $safeOnly);\n\n\t\t// Looking only for file attributes (and fix null error on fly)\n\t\tif ( is_array($values) )\n\t\t{\n\t\t\t$attributes = array_flip($safeOnly ? $this->safeAttributes() : $this->attributes());\n\n\t\t\t$class = StringHelper::basename(get_called_class());\n\n\t\t\tforeach ($values as $name => $value)\n\t\t\t{\n\t\t\t\tif ( isset( $attributes[$name] ) )\n\t\t\t\t{\n\t\t\t\t\tif ( isset($_FILES[$class]['name'][$name]) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$uploadedFile = UploadedFile::getInstance($this, $name);\n\n\t\t\t\t\t\tif ( $uploadedFile )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->$name = $uploadedFile;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telseif ( ! $this->isNewRecord )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->$name = $this->oldAttributes[$name];\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}", "public function setAttributes($values, $safeOnly = true)\n\t{\n\t\tparent::setAttributes($values, $safeOnly);\n\n\t\t// Looking only for file attributes (and fix null error on fly)\n\t\tif ( is_array($values) )\n\t\t{\n\t\t\t$attributes = array_flip($safeOnly ? $this->safeAttributes() : $this->attributes());\n\n\t\t\t$class = StringHelper::basename(get_called_class());\n\n\t\t\tforeach ($values as $name => $value)\n\t\t\t{\n\t\t\t\tif ( isset( $attributes[$name] ) )\n\t\t\t\t{\n\t\t\t\t\tif ( isset($_FILES[$class]['name'][$name]) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$uploadedFile = UploadedFile::getInstance($this, $name);\n\n\t\t\t\t\t\tif ( $uploadedFile )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->$name = $uploadedFile;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telseif ( ! $this->isNewRecord )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->$name = $this->oldAttributes[$name];\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}", "public function defineAttributes()\n\t{\n\t\treturn array();\n\t}", "public function setAttributes(array $params)\n {\n foreach($params as $name => $value) {\n $this->setAttribute($name, $value);\n }\n }", "public function hydrate( array $attributes ) {\n\n\t\t// Set all the field from $data\n\t\tforeach ( $attributes as $fieldName => $fieldValue ) {\n\t\t\t$this->set( $fieldName, $fieldValue );\n\t\t}\n\n\t}", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'recipientActionDateTime' => fn(ParseNode $n) => $o->setRecipientActionDateTime($n->getDateTimeValue()),\n 'recipientActionMessage' => fn(ParseNode $n) => $o->setRecipientActionMessage($n->getStringValue()),\n 'recipientUserId' => fn(ParseNode $n) => $o->setRecipientUserId($n->getStringValue()),\n 'senderShiftId' => fn(ParseNode $n) => $o->setSenderShiftId($n->getStringValue()),\n ]);\n }", "public function getAttributes(): array\n {\n // Get all attributes using all the getters.\n $attributes = [];\n foreach(\\array_keys(\\get_object_vars($this)) as $attribute) {\n\n // Construct the getter name.\n $getter = \\lcfirst(\\str_replace('_', '', \\ucwords($attribute, '_')));\n\n // Get the attribute's value from the getter.\n $attributes[$attribute] = $this->{$getter}();\n }\n\n return $attributes;\n }", "public function attributes()\n {\n return $this->morphToMany(Attribute::class, 'attribute_able');\n }", "public function __construct($daten = array())\n {\n if ($daten) {\n foreach ($daten as $k => $v) {\n $setterName = 'set' . ucfirst($k);\n // wenn ein ungültiges Attribut übergeben wurde\n // (ohne Setter), ignoriere es\n if (method_exists($this, $setterName)) {\n $this->$setterName($v);\n }\n }\n }\n }", "public function setAttr($attributes = array())\n {\n foreach ($attributes as $key => $value) {\n if (property_exists(get_class($this), $key))\n $this->$key = $value;\n }\n return $this;\n }", "function setValues($array){\r\n\t\tforeach($array as $key => $val)\r\n\t\t\tif(property_exists($this,$key))\r\n\t\t\t\t$this->$key = $val;\r\n\t}", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'response' => fn(ParseNode $n) => $o->setResponse($n->getEnumValue(ResponseType::class)),\n 'time' => fn(ParseNode $n) => $o->setTime($n->getDateTimeValue()),\n ];\n }", "public function attributes() : array;", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'callEventType' => fn(ParseNode $n) => $o->setCallEventType($n->getEnumValue(TeamworkCallEventType::class)),\n 'callId' => fn(ParseNode $n) => $o->setCallId($n->getStringValue()),\n 'initiator' => fn(ParseNode $n) => $o->setInitiator($n->getObjectValue([IdentitySet::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function fill(array $attributes)\n {\n $existingAttributes = get_object_vars($this);\n\n foreach ($existingAttributes as $attributeName => $oldAttributeValue) {\n array_key_exists($attributeName, $attributes) ? $this->$attributeName = $attributes[$attributeName] : NULL;\n }\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'assignmentState' => fn(ParseNode $n) => $o->setAssignmentState($n->getStringValue()),\n 'duration' => fn(ParseNode $n) => $o->setDuration($n->getStringValue()),\n 'reason' => fn(ParseNode $n) => $o->setReason($n->getStringValue()),\n 'requestedDateTime' => fn(ParseNode $n) => $o->setRequestedDateTime($n->getDateTimeValue()),\n 'roleId' => fn(ParseNode $n) => $o->setRoleId($n->getStringValue()),\n 'roleInfo' => fn(ParseNode $n) => $o->setRoleInfo($n->getObjectValue([PrivilegedRole::class, 'createFromDiscriminatorValue'])),\n 'schedule' => fn(ParseNode $n) => $o->setSchedule($n->getObjectValue([GovernanceSchedule::class, 'createFromDiscriminatorValue'])),\n 'status' => fn(ParseNode $n) => $o->setStatus($n->getStringValue()),\n 'ticketNumber' => fn(ParseNode $n) => $o->setTicketNumber($n->getStringValue()),\n 'ticketSystem' => fn(ParseNode $n) => $o->setTicketSystem($n->getStringValue()),\n 'type' => fn(ParseNode $n) => $o->setType($n->getStringValue()),\n 'userId' => fn(ParseNode $n) => $o->setUserId($n->getStringValue()),\n ]);\n }", "private function fillArray($array) {\n\t\t$result = array();\n\t\tforeach ($array as $attr => $val) {\n\t\t\t$setMethod = 'set' . ucfirst($attr);\n\t\t\t$returnType = $this->getReturnTypeOfSetMethod($setMethod);\n\t\t\tif ($returnType) {\n\t\t\t\t$result[$attr] = new $returnType(); \n\t\t\t} else {\n\t\t\t\t$result[$attr] = 'abc';\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "function update_attributes($attributes) {\n\t\t\tif(is_array($attributes)) {\n\t\t \t \t// Test each attribute to be updated\n\t\t \t \t// and process according to its type\n\t\t\t\tforeach($attributes as $field => $value) {\n\t\t\t\t\t# datetime / date parts check\n\t\t\t\t\tif(preg_match('/^\\w+\\(.*i\\)$/i', $field)) {\n\t\t\t\t\t\t// The name of this attribute ends in '(?i)'\n\t\t\t\t\t\t// indicating that it's part of a date or time\n\t\t\t\t\t\t$datetime_field = substr($field, 0, strpos($field, '('));\n\t\t\t\t\t\tif(!in_array($datetime_field, $datetime_fields)) {\n\t\t\t\t\t\t\t$datetime_fields[] = $datetime_field;\n\t\t\t\t\t\t}\n\t\t\t\t\t} elseif(is_object($value) && get_parent_class($value) == __CLASS__ && $this->auto_save_associations) {\n\t\t\t\t\t\t# this elseif checks if first its an object if its parent is ActiveRecord\n\t\t\t\t\t\tif($association_type = $this->get_association_type($field)) {\n\t\t\t\t\t\t\t$this->save_associations[$association_type][] = $value;\n\t\t\t\t\t\t\tif($association_type == \"belongs_to\") {\n\t\t\t\t\t\t\t\t$foreign_key = Inflector::singularize($value->table_name).\"_id\";\n\t\t\t\t\t\t\t\t$this->$foreign_key = $value->id;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} elseif(is_array($value) && $this->auto_save_associations) {\n\t\t\t\t\t\t# this elseif checks if its an array of objects and if its parent is ActiveRecord\n\t\t\t\t\t\tif($association_type = $this->get_association_type($field)) {\n\t\t\t\t\t\t\t$this->save_associations[$association_type][] = $value;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$this->$field = $value;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t \t \t \t\t// Just a simple attribute, copy it\n\t\t\t\t\t\t$this->$field = $value;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// If any date/time fields were found, assign the\n\t\t\t\t// accumulated values to corresponding attributes\n\t\t\t\tif(count($datetime_fields)) {\n\t\t\t\t\tforeach($datetime_fields as $datetime_field) {\n\t\t\t\t\t\t$datetime_format = '';\n\t\t\t\t\t\t$datetime_value = '';\n\n\t\t\t\t\t\tif($attributes[$datetime_field.'(1i)']\n\t\t\t\t\t\t\t&& $attributes[$datetime_field.'(2i)']\n\t\t\t\t\t\t\t&& $attributes[$datetime_field.'(3i)']) {\n\t\t\t\t\t\t\t$datetime_value = $attributes[$datetime_field.'(1i)']\n\t\t\t\t\t\t\t. '-' . $attributes[$datetime_field.'(2i)']\n\t\t\t\t\t\t\t. '-' . $attributes[$datetime_field.'(3i)'];\n\t\t\t\t\t\t\t$datetime_format = $this->date_format;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$datetime_value .= ' ';\n\n\t\t\t\t\t\tif($attributes[$datetime_field.'(4i)']\n\t\t\t\t\t\t\t&& $attributes[$datetime_field.'(5i)']) {\n\t\t\t\t\t\t\t$datetime_value .= $attributes[$datetime_field.'(4i)']\n\t\t\t\t\t\t\t. ':' . $attributes[$datetime_field.'(5i)'];\n\t\t\t\t\t\t\t$datetime_format .= ' '.$this->time_format;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($datetime_value = trim($datetime_value)) {\n\t\t\t\t\t\t\t$datetime_value = date($datetime_format, strtotime($datetime_value));\n\t\t\t\t\t\t\t//error_log('($field) $datetime_field = $datetime_value');\n\t\t\t\t\t\t\t$this->$datetime_field = $datetime_value;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$this->set_habtm_attributes($attributes);\n\t\t\t}\n\t\t}", "function __set($attr_name, $value) {\n // in $attr_name, replace _ with \" \"\n $attr_name = str_replace('_', ' ', $attr_name);\n $attr_name = ucwords($attr_name);\n $attr_name = str_replace(' ', '', $attr_name);\n $function = \"set$attr_name\";\n //var_dump($function);\n $this->$function($value);\n }", "public function hydrate($data)\n\t{\n\t\tforeach ($data as $attribut => $value)\n\t\t{\n\t\t\t$methode = 'set'.ucfirst($attribut);\n\t\t\tif (is_callable([$this, $methode]))\n\t\t\t{\n\t\t\t\t$this->$methode($value);\n\t\t\t}\n\t\t}\n\t}", "public function __construct($daten = array())\n {\n if ($daten) {\n foreach ($daten as $k => $v) {\n $setterName = 'set' . ucfirst($k);\n // wenn ein ungültiges Attribut übergeben wurde\n // (ohne Setter), ignoriere es\n if (method_exists($this, $setterName)) {\n $this->$setterName($v);\n }\n }\n }\n // $this->setEncoding();\n }", "function set_attrs($attrs)\n {\n foreach($attrs as $key => $value) {\n if ($key == \"meta_name\") { continue; }\n if ($key == \"vocab\") { continue; }\n if ($key == \"text\") { continue; }\n if ($key == \"lang\") { continue; }\n $this->attrs[$key] = $value; \n }\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'clickAction' => fn(ParseNode $n) => $o->setClickAction($n->getStringValue()),\n 'clickDateTime' => fn(ParseNode $n) => $o->setClickDateTime($n->getDateTimeValue()),\n 'id' => fn(ParseNode $n) => $o->setId($n->getStringValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'sourceId' => fn(ParseNode $n) => $o->setSourceId($n->getStringValue()),\n 'uriDomain' => fn(ParseNode $n) => $o->setUriDomain($n->getStringValue()),\n 'verdict' => fn(ParseNode $n) => $o->setVerdict($n->getStringValue()),\n ];\n }", "public function getAttributes()\n {\n return array_merge(\n $this->attributes,\n [\n 'args' => $this->args(),\n 'type' => $this->type(),\n 'resolve' => $this->getResolver(),\n ]\n );\n }", "public function setAttributes(Array $attributes): self\n {\n\t\tforeach($attributes as $k => $v) {\n\t\t\t$this->setAttribute($k, $v);\n\t\t}\n\t\treturn $this;\n\t}", "function set(array $data) {\n\t\tforeach ($data as $key => $value) {\n\t\t\t$this->$key = $value;\n\t\t}\n\t}", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'additionalInformation' => fn(ParseNode $n) => $o->setAdditionalInformation($n->getStringValue()),\n 'creationDateTime' => fn(ParseNode $n) => $o->setCreationDateTime($n->getDateTimeValue()),\n 'expirationDateTime' => fn(ParseNode $n) => $o->setExpirationDateTime($n->getDateTimeValue()),\n 'referenceKey' => fn(ParseNode $n) => $o->setReferenceKey($n->getStringValue()),\n 'referenceSystem' => fn(ParseNode $n) => $o->setReferenceSystem($n->getStringValue()),\n 'requestorId' => fn(ParseNode $n) => $o->setRequestorId($n->getStringValue()),\n 'requestorName' => fn(ParseNode $n) => $o->setRequestorName($n->getStringValue()),\n 'requestType' => fn(ParseNode $n) => $o->setRequestType($n->getStringValue()),\n 'roleId' => fn(ParseNode $n) => $o->setRoleId($n->getStringValue()),\n 'roleName' => fn(ParseNode $n) => $o->setRoleName($n->getStringValue()),\n 'tenantId' => fn(ParseNode $n) => $o->setTenantId($n->getStringValue()),\n 'userId' => fn(ParseNode $n) => $o->setUserId($n->getStringValue()),\n 'userMail' => fn(ParseNode $n) => $o->setUserMail($n->getStringValue()),\n 'userName' => fn(ParseNode $n) => $o->setUserName($n->getStringValue()),\n ]);\n }", "public function getSetters() {\n $fqsen = $this->fqsen;\n $setters = [];\n $propertiesPropertyFound = false;\n do {\n //var_dump($fqsen);\n $class = $this->fqsenToClass($fqsen);\n $methods = $class->getMethods();\n foreach ($methods as $method) {\n if (preg_match('/^set([A-Z0-9].*)$/', $method->getName(), $matches) && !array_key_exists($matches[1], $setters)) {\n $setters[lcfirst($matches[1])] = null;\n }\n }\n if (!$propertiesPropertyFound) {\n $properties = $this->classGetProperty($class, \"properties\");\n if ($properties) {\n $properties = $properties->getDefault();\n $properties = $this->arrayTokenScanner->scan($properties);\n foreach ($properties as $propertyKey => $propertyValue) {\n if (!array_key_exists($propertyKey, $setters)) {\n $setters[$propertyKey] = $propertyValue;\n }\n }\n $propertiesPropertyFound = true;\n }\n }\n $fqsen = strval($class->getParent());\n } while ($fqsen);\n return $setters;\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'activityGroupNames' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setActivityGroupNames($val);\n },\n 'address' => fn(ParseNode $n) => $o->setAddress($n->getStringValue()),\n 'azureSubscriptionId' => fn(ParseNode $n) => $o->setAzureSubscriptionId($n->getStringValue()),\n 'azureTenantId' => fn(ParseNode $n) => $o->setAzureTenantId($n->getStringValue()),\n 'countHits' => fn(ParseNode $n) => $o->setCountHits($n->getIntegerValue()),\n 'countHosts' => fn(ParseNode $n) => $o->setCountHosts($n->getIntegerValue()),\n 'firstSeenDateTime' => fn(ParseNode $n) => $o->setFirstSeenDateTime($n->getDateTimeValue()),\n 'ipCategories' => fn(ParseNode $n) => $o->setIpCategories($n->getCollectionOfObjectValues([IpCategory::class, 'createFromDiscriminatorValue'])),\n 'ipReferenceData' => fn(ParseNode $n) => $o->setIpReferenceData($n->getCollectionOfObjectValues([IpReferenceData::class, 'createFromDiscriminatorValue'])),\n 'lastSeenDateTime' => fn(ParseNode $n) => $o->setLastSeenDateTime($n->getDateTimeValue()),\n 'riskScore' => fn(ParseNode $n) => $o->setRiskScore($n->getStringValue()),\n 'tags' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setTags($val);\n },\n 'vendorInformation' => fn(ParseNode $n) => $o->setVendorInformation($n->getObjectValue([SecurityVendorInformation::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'subscriptionId' => fn(ParseNode $n) => $o->setSubscriptionId($n->getStringValue()),\n 'subscriptionName' => fn(ParseNode $n) => $o->setSubscriptionName($n->getStringValue()),\n ]);\n }", "public function setAttributes ($attributes)\n {\n\n $this->attributes = array_merge($this->attributes, $attributes);\n\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'email' => fn(ParseNode $n) => $o->setEmail($n->getStringValue()),\n 'identity' => fn(ParseNode $n) => $o->setIdentity($n->getObjectValue([CommunicationsUserIdentity::class, 'createFromDiscriminatorValue'])),\n 'presenterDetails' => fn(ParseNode $n) => $o->setPresenterDetails($n->getObjectValue([VirtualEventPresenterDetails::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function setAttributes(array $attributes, $merge = false);", "public function copyAttributesToValues()\n\t{\n\t\tforeach( $this->values as $field=>$value )\n\t\t{\n\t\t\t$this->values[$field] = $this->$field ;\n\t\t}\n\t}", "protected function castAttributes(array $fields): void\n {\n // Loops through all the supplied Field's list.\n foreach ($fields as $field => $value) {\n // Builds up the Mutator's name.\n $mutator = $this->createMutatorName(self::$CASTPREFIX, $field);\n\n // Checks if the mutator exists in the instance, and if so, loads the value into it.\n if (\\array_search($mutator, $this->castList) !== false) {\n $this->{$mutator}($value);\n }\n }\n }", "public function set_attributes( $attributes = array(), $override = true ) {\n\t\n\t\tif ( true == $override ) {\n\t\t\t$this->attributes = array_merge( $this->attributes, $attributes );\n\t\t}\n\t\telse {\n\t\t\t$this->attributes = array_merge( $attributes, $this->attributes );\n\t\t}\n\t\n\t}", "public function testSetters()\n {\n foreach ($this->expectedSetters as $method => $parameter) {\n $this->entity->$method($parameter);\n }\n\n $actualResult = $this->entity->toArray();\n\n $this->assertArraysAreSimilar($this->testData, $actualResult, 'toArray');\n }", "public function setAttributes($values, $safeOnly = true){\n $params = $this->limpiarParametrosConEspacios($values);\n parent::setAttributes($params, $safeOnly);\n $this->barrio = strtolower($this->barrio);\n $this->calle = strtolower($this->calle);\n }", "abstract protected function getDirectGetters();", "public function getCustomAttributes() {}" ]
[ "0.680262", "0.66679907", "0.6505545", "0.64688873", "0.64688873", "0.64688873", "0.64303744", "0.63683504", "0.63627255", "0.63459826", "0.63396704", "0.61683947", "0.61683947", "0.61683947", "0.61683947", "0.61683947", "0.61683947", "0.61683947", "0.61683947", "0.61683947", "0.61683947", "0.61683947", "0.61683947", "0.61683947", "0.61455905", "0.60965043", "0.6064889", "0.60280144", "0.59300935", "0.5861647", "0.5857414", "0.583125", "0.58289456", "0.5802956", "0.57730716", "0.5769649", "0.57669306", "0.57439446", "0.57416034", "0.5712461", "0.5712227", "0.5712227", "0.5712227", "0.5712227", "0.5712227", "0.5712227", "0.5693902", "0.5689162", "0.5666289", "0.5662849", "0.5661436", "0.563428", "0.5614137", "0.56094044", "0.56041044", "0.5598898", "0.5598898", "0.5595137", "0.557315", "0.5562302", "0.55468214", "0.55468214", "0.5544497", "0.554371", "0.5530686", "0.5527515", "0.55244553", "0.5513968", "0.5511702", "0.5510402", "0.5506593", "0.55063456", "0.550503", "0.55007327", "0.54983866", "0.5498155", "0.5491734", "0.5489885", "0.5485283", "0.547875", "0.54760724", "0.5474538", "0.54676914", "0.54661655", "0.5464422", "0.54623854", "0.54590654", "0.5444538", "0.54367185", "0.54365623", "0.5433229", "0.54249495", "0.5423897", "0.54130095", "0.5410177", "0.54087967", "0.5407178", "0.5403355", "0.5403267", "0.5402394" ]
0.6124729
25
Array of attributes to getter functions (for serialization of requests)
public static function getters() { return [ 'tenant_id' => 'getTenantId', 'expires_in' => 'getExpiresIn', 'scopes' => 'getScopes' ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAttributes(): array\n {\n // Get all attributes using all the getters.\n $attributes = [];\n foreach(\\array_keys(\\get_object_vars($this)) as $attribute) {\n\n // Construct the getter name.\n $getter = \\lcfirst(\\str_replace('_', '', \\ucwords($attribute, '_')));\n\n // Get the attribute's value from the getter.\n $attributes[$attribute] = $this->{$getter}();\n }\n\n return $attributes;\n }", "abstract protected function getDirectGetters();", "public function toArray() {\n $attrs = $this->_private_attributes;\n $result = array();\n foreach ($attrs as $key => $attr) {\n if (method_exists($this, \"get\" . underscore_to_camel_case($key, true))) {\n eval('$result[\"' . $key . '\"] = $this->get' . underscore_to_camel_case($key, true) . '();');\n } else {\n $result[$key] = $attr;\n }\n }\n return $result;\n }", "public function getAttributes(): array;", "public function getAttributes(): array;", "public function getAttributes(): array;", "public function getAttributes(): array;", "abstract function attributes(): array;", "public static function getters();", "public static function getters()\n {\n return [\n 'status' => 'getStatus',\n 'quota' => 'getQuota'\n ];\n }", "public static function getters()\n {\n return [\n 'status' => 'getStatus',\n 'time' => 'getTime'\n ];\n }", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes(){ }", "public function getAttributes() {}", "public function getAttributes() {}", "public function attributes() : array;", "public function getAttributes()\n {\n }", "function getAttributes()\n {\n }", "public function getCustomAttributes(): array;", "protected function getAttributeSavedMethods()\n {\n $attributes = [];\n foreach($this->getDirty() as $attribute => $value) {\n if($this->hasAttributeSavedMethod($attribute)) {\n $attributes[] = $attribute;\n }\n }\n return $attributes;\n }", "public static function attributes()\n {\n $class = self::loadDelegationClass();\n \n return call_user_func($class.'::attributes');\n }", "public function getAttributes(): iterable;", "public static function getters()\n {\n return parent::getters() + self::$getters;\n }", "public static function getters()\n {\n return parent::getters() + self::$getters;\n }", "public static function getters()\n {\n return parent::getters() + self::$getters;\n }", "public static function getters()\n {\n return parent::getters() + self::$getters;\n }", "public static function getters()\n {\n return parent::getters() + self::$getters;\n }", "public static function getters()\n {\n return parent::getters() + self::$getters;\n }", "public static function getters()\n {\n return parent::getters() + self::$getters;\n }", "public static function getters()\n {\n return parent::getters() + self::$getters;\n }", "public static function getters()\n {\n return parent::getters() + self::$getters;\n }", "public static function getters()\n {\n return parent::getters() + self::$getters;\n }", "public static function getters()\n {\n return parent::getters() + self::$getters;\n }", "public static function getters()\n {\n return parent::getters() + self::$getters;\n }", "public static function getters()\n {\n return parent::getters() + self::$getters;\n }", "public static function getters()\n {\n return [\n 'application_id' => 'getApplicationId',\n 'is_default' => 'getIsDefault',\n 'role' => 'getRole',\n 'type' => 'getType',\n '_issues' => 'getIssues'\n ];\n }", "public function getCustomAttributes() {}", "public static function getters() : array\n {\n return self::$getters;\n }", "public static function getters() : array\n {\n return self::$getters;\n }", "public static function getters() : array\n {\n return self::$getters;\n }", "public static function getters() : array\n {\n return self::$getters;\n }", "public static function getters() : array\n {\n return self::$getters;\n }", "public static function getters() : array\n {\n return self::$getters;\n }", "public static function attributeMap();", "public function attributes();", "public function get_attributes()\n {\n }", "public function get_attributes()\n {\n }", "protected function getAttributes()\n {\n return [];\n }", "public function getRestHookableAttributes(): array\n {\n return [];\n }", "public function getAttributes() {\n $attr = array();\n \n $attr[\"id\"] = $this->id_;\n $attr[\"taxonId\"] = $this->taxonId_;\n $attr[\"dbh\"] = $this->dbh_;\n $attr[\"lat\"] = $this->lat_;\n $attr[\"lng\"] = $this->lng_;\n $attr[\"layers\"] = $this->layers_;\n \n return $attr;\n }", "public function getData ()\n {\n\n $data = [];\n\n foreach ($this as $key => $value) {\n\n $method = 'get' . ucfirst(camel_case($key));\n\n if (method_exists($this, $method)) {\n\n $data[$key] = $this->{$method}();\n\n }\n\n }\n\n $data['request_data'] = $this->hideProtectedFields($data['request_data']);\n\n return $data;\n }", "public function attributes(): array\n {\n return [\n //\n ];\n }", "public function attributes(): array\n {\n return [\n //\n ];\n }", "protected function attributes() {\n\t $attributes = array();\n\t foreach(static::$table_fields as $field) {\n\t if(property_exists( $this, $field)) {\n\t $attributes[$field] = $this->$field;\n\t }\n\t }\n\t return $attributes;\n }", "public function getAttributes()\n {\n return array_merge(\n $this->attributes,\n [\n 'args' => $this->args(),\n 'type' => $this->type(),\n 'resolve' => $this->getResolver(),\n ]\n );\n }", "public function getAttributes()\n {\n return array();\n }", "public function getAttributes()\n {\n return array();\n }", "public function getAttributes()\n {\n return array();\n }", "public function getAttributes()\n {\n return array();\n }", "abstract protected function attributes();", "abstract public function attributeNames();", "public function __get($method)\n\t{\n\t\treturn array($this, $method);\t\t\n\t}", "public function attr() {\n\t\treturn utils::attr($this->attr, func_get_args());\n\t}", "function GetAttributes();", "protected function attributes() {\n $attributes = array();\n foreach(static::$db_fields as $field) {\n if(property_exists($this, $field)) {\n $attributes[$field] = $this->$field;\n }\n }\n return $attributes;\n }", "public function getGetterNames(): array\n {\n return [['document'], ['documentManager']];\n }", "public function getAttributes() {\n return array_merge($this->getFields(), $this->getProperties());\n }", "abstract protected function setRequiredGetters();", "public function getAttributeList(): array;", "private function getApiAttributeNamesArray()\n {\n $array = [\n 'firstname',\n 'lastname',\n 'email',\n 'id',\n 'website_id',\n 'group_id',\n 'prefix',\n 'middlename',\n 'suffix',\n 'dob',\n 'taxvat',\n 'gender',\n 'is_active',\n 'company',\n 'city',\n 'country_id',\n 'region',\n 'postcode',\n 'telephone',\n 'fax',\n 'vat_id',\n 'street_1',\n 'street_2',\n 'subaccounts',\n 'manage_subaccounts',\n 'account_data_modification_permission',\n 'account_order_history_view_permission',\n 'checkout_order_create_permission',\n 'checkout_order_approval_permission',\n 'checkout_cart_view_permission',\n 'checkout_view_permission',\n 'checkout_order_placed_notification_permission',\n 'force_usage_parent_company_name_permission',\n 'force_usage_parent_vat_permission',\n 'force_usage_parent_addresses_permission',\n 'password',\n 'parent_email',\n 'promote',\n 'can_manage_subaccounts',\n ];\n\n return $array;\n }", "public function getAttributesFields(): array\n {\n $fields = [];\n\n // Only fields without relations\n foreach ($this->fieldsArray(false) as $attribute) {\n $fields[$attribute] = [\n 'name' => $attribute,\n 'type' => $this->overrideMethod(\n 'set'.Str::studly($attribute).'Type',\n [$this, 'callGraphQLType'],\n $attribute\n ),\n 'privacy' => function (array $args) use ($attribute): bool {\n $method = 'get'.Str::studly($attribute).'Privacy';\n\n return $this->$method($args);\n },\n ];\n }\n\n return $fields;\n }", "public function serializers()\n {\n // Each entry represents a function call.\n return array(\n // Each entry represents an argument for the function call.\n array(new \\Nayru\\Serializer\\JsonConf),\n array(new \\Nayru\\Serializer\\Php)\n );\n }", "protected function attributes() {\n\t\t$attributes = array();\n\t\tforeach(self::$db_fields as $field) {\n\t\t\tif(property_exists($this, $field)){\n\t\t\t\t$attributes[$field] = $this->$field;\n\t\t\t}\n\t\t}\n\t\treturn $attributes;\n\t}", "public function getAttributesList()\n {\n }", "public function attributes()\n {\n $attributes = array();\n foreach(self::$db_fields as $field)\n {\n if(property_exists($this,$field))\n {\n $attributes[$field] = $this->$field;\n }\n }\n return $attributes;\n }", "public function attributes()\n {\n return [];\n }", "public function attributes()\n {\n return [];\n }", "public function attributes()\n {\n return [];\n }", "public function get(...$keys)\n {\n if (count($keys) == 1 && trait_exists($keys[0])) {\n $trait = new ReflectionClass($keys[0]);\n $keys = collect(array_merge($trait->getProperties(), $trait->getMethods()))->map(function ($reflect) {\n // Looking for abstract public or public methods or properties.\n if (\n $reflect->getModifiers() != ReflectionMethod::IS_PUBLIC\n && $reflect->getModifiers() != ReflectionMethod::IS_PUBLIC + ReflectionMethod::IS_ABSTRACT\n ) {\n return;\n }\n\n return $reflect->name;\n })->filter()->toArray();\n }\n $attributes = [];\n\n foreach ($keys as $key) {\n $attributes[$key] = $this->getAttribute($key);\n }\n\n return collect($attributes);\n }", "private function requestedAttributes()\n {\n\n $default = [\n 'id',\n 'name',\n 'level',\n 'rarity',\n 'image',\n 'category.0',\n 'category.1',\n 'vendor_price',\n 'buy.quantity',\n 'buy.price',\n 'buy.last_change.time',\n 'buy.last_change.quantity',\n 'buy.last_change.price',\n 'sell.quantity',\n 'sell.price',\n 'sell.last_change.time',\n 'sell.last_change.quantity',\n 'sell.last_change.price',\n 'last_update'\n ];\n\n $requested = $this->getInput('attributes') ?: $default;\n\n if (!is_array($requested)) {\n $requested = explode(',', $requested);\n }\n\n return $requested;\n\n }", "protected function attributes() {\n\t $attributes = array();\n\t foreach(self::$db_fields as $field) {\n\t if(property_exists($this, $field)) {\n\t $attributes[$field] = $this->$field;\n\t }\n\t }\n\t return $attributes;\n\t}", "public function getMethods(): array;", "public function getMethods(): array;", "protected function attributes() {\n\t\t$attributes = array();\n\t\tforeach (self::$db_fields as $field) {\n\t\t\tif (property_exists($this, $field)) {\n\t\t\t\t$attributes[$field] = $this->$field;\n\t\t\t}\n\t\t}\n\t\treturn $attributes;\n\t}", "function read(){\n foreach($this as $attribute => $valor){\n $this->$attribute = Request::read($attribute);\n } \n }", "protected function attributes()\n {\n return [];\n }", "public function getAttributes()\n {\n $return = [];\n foreach ($this->attr as $attr => $info) {\n $return[$attr] = $this->getAttribute($attr);\n }\n\n return $return;\n }", "public function __get($attr)\n\t{\n\t\t$functionName = \"get\".$attr;\n\t\treturn $this->$functionName();\n\t}", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'clickAction' => fn(ParseNode $n) => $o->setClickAction($n->getStringValue()),\n 'clickDateTime' => fn(ParseNode $n) => $o->setClickDateTime($n->getDateTimeValue()),\n 'id' => fn(ParseNode $n) => $o->setId($n->getStringValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'sourceId' => fn(ParseNode $n) => $o->setSourceId($n->getStringValue()),\n 'uriDomain' => fn(ParseNode $n) => $o->setUriDomain($n->getStringValue()),\n 'verdict' => fn(ParseNode $n) => $o->setVerdict($n->getStringValue()),\n ];\n }", "public function attributes()\n {\n return [\n ];\n }", "public function attributes() // atribūtu savi nosaukumi\n {\n return[ \n 'fname' => 'Vārds',\n 'lname' => 'Uzvārds',\n 'email' => 'E-pasts',\n 'oldpassword' => 'Paroles lauks',\n 'password' => 'Jaunas paroles lauks',\n 'buttontitle' => 'Pogas virsraksts',\n 'buttonlink' => 'Pogas links',\n 'reciever' => 'Saņēmēju lauks',\n 'emailtitle' => 'Ziņas virsrsksts',\n 'emailtext' => 'Ziņas teksts',\n 'transport' => 'Pasākumu lauks'\n ];\n }", "public static function attributeMap()\n {\n return [\n 'tenant_id' => 'tenant_id',\n 'expires_in' => 'expires_in',\n 'scopes' => 'scopes'\n ];\n }" ]
[ "0.7071254", "0.6628055", "0.6581621", "0.65085584", "0.65085584", "0.65085584", "0.65085584", "0.6499994", "0.64624524", "0.63637143", "0.6363414", "0.6315606", "0.6315606", "0.6315606", "0.6315606", "0.6315606", "0.6315606", "0.6315606", "0.6315606", "0.6315606", "0.62876564", "0.6267457", "0.6267354", "0.6248464", "0.6241648", "0.62360954", "0.623109", "0.6217279", "0.61675936", "0.615824", "0.60485387", "0.60485387", "0.60485387", "0.60485387", "0.60485387", "0.60485387", "0.60485387", "0.60485387", "0.60485387", "0.60485387", "0.60485387", "0.60485387", "0.60485387", "0.604714", "0.60269815", "0.59508437", "0.59508437", "0.59508437", "0.59508437", "0.59508437", "0.59508437", "0.5949961", "0.59332705", "0.5921448", "0.5921448", "0.58889675", "0.5883016", "0.58548725", "0.58483315", "0.5835835", "0.5835835", "0.5830045", "0.5811857", "0.5797117", "0.5797117", "0.5797117", "0.5797117", "0.57843965", "0.5783929", "0.57823", "0.57805383", "0.57761973", "0.5760105", "0.575843", "0.5753376", "0.5743079", "0.5742538", "0.5735495", "0.5734641", "0.5715958", "0.5711641", "0.5709014", "0.5703054", "0.5688089", "0.5688089", "0.5688089", "0.5687686", "0.56864893", "0.5683283", "0.56796813", "0.56796813", "0.5674506", "0.5672195", "0.5666733", "0.56622463", "0.5658593", "0.56384563", "0.5619268", "0.56180435", "0.56154925" ]
0.60473317
43
Array of attributes to checkers functions (for deserialization of responses)
public static function checkers() { return [ 'tenant_id' => 'hasTenantId', 'expires_in' => 'hasExpiresIn', 'scopes' => 'hasScopes' ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function checkers()\n {\n return [\n 'status' => 'hasStatus',\n 'time' => 'hasTime'\n ];\n }", "public static function checkers()\n {\n return [\n 'status' => 'hasStatus',\n 'quota' => 'hasQuota'\n ];\n }", "public static function checkers()\n {\n return [\n 'application_id' => 'hasApplicationId',\n 'is_default' => 'hasIsDefault',\n 'role' => 'hasRole',\n 'type' => 'hasType',\n '_issues' => 'hasIssues'\n ];\n }", "abstract protected function setValidationCustomAttributes(): array;", "public function getCustomAttributes(): array;", "public function init(): array {\r\n return [\r\n 'wussy' => [\r\n 'methods' => ['GET'],\r\n 'get' => [],\r\n 'acl' => ['public']\r\n ],\r\n 'checkName' => [\r\n 'methods' => ['GET'],\r\n 'get' => ['lastName' => 'alpha'],\r\n 'acl' => ['public']\r\n ],\r\n 'checkEmail' => [\r\n 'methods' => ['POST'],\r\n 'post' => 'Email',\r\n 'acl' => ['public']\r\n ],\r\n 'checkIp' => [\r\n 'methods' => ['POST'],\r\n 'post' => 'Ip',\r\n 'acl' => ['public']\r\n ],\r\n 'checkPipl' => [\r\n 'methods' => ['POST'],\r\n 'post' => 'Pipl',\r\n 'acl' => ['public']\r\n ],\r\n 'checkPiplTest' => [\r\n 'methods' => ['GET'],\r\n 'get' => [],\r\n 'acl' => ['public']\r\n ]\r\n ];\r\n }", "abstract function attributes(): array;", "public function getAttributes(): array;", "public function getAttributes(): array;", "public function getAttributes(): array;", "public function getAttributes(): array;", "public function getRestHookableAttributes(): array\n {\n return [];\n }", "public static function validators() {\n return [\n 'status' => 'validateStatus',\n 'time' => 'validateTime'\n ];\n }", "public static function validators() {\n return [\n 'status' => 'validateStatus',\n 'quota' => 'validateQuota'\n ];\n }", "public function attributes() : array;", "public function getCustomAttributes() {}", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'availability' => fn(ParseNode $n) => $o->setAvailability($n->getCollectionOfObjectValues([ShiftAvailability::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function getMatchers(): array;", "public static function supportedAttributes();", "public function commonRules()\n {\n Validator::extend('isvalidtimestamp', function ($attribute, $timestamp, $parameters, $validator) {\n \n return ((int) $timestamp === $timestamp)\n && ($timestamp <= PHP_INT_MAX)\n && ($timestamp >= ~PHP_INT_MAX);\n });\n \n Validator::extend('isvalidhash', function ($attribute, $hash, $parameters, $validator) {\n\n $temp_json = $validator->getData();\n // $temp_json = Input::json()->all();\n // echo \"<pre>\";print_r($temp_json);echo \"</pre>\";exit;\n unset($temp_json['hash']);\n if($hash == hash_hmac('SHA256', json_encode($temp_json), 'gramgoldlab888')){\n return TRUE;\n }\n else return FALSE;\n \n });\n\n return [\n 'hash' => 'required|isvalidhash',\n 'timestamp' => 'required|isvalidtimestamp',\n 'sessionId' => 'required|string|max:32',\n 'partnerPlayerId' => 'required|string',\n 'currency' => 'required|string',\n 'gameId' => 'required|string',\n 'token' => 'string',\n 'operatorName' => 'string',\n 'action' => 'required|string',\n 'playerIp' => 'required|ip'\n ];\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'comparisonValue' => fn(ParseNode $n) => $o->setComparisonValue($n->getStringValue()),\n 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()),\n 'enforceSignatureCheck' => fn(ParseNode $n) => $o->setEnforceSignatureCheck($n->getBooleanValue()),\n 'operationType' => fn(ParseNode $n) => $o->setOperationType($n->getEnumValue(Win32LobAppPowerShellScriptRuleOperationType::class)),\n 'operator' => fn(ParseNode $n) => $o->setOperator($n->getEnumValue(Win32LobAppRuleOperator::class)),\n 'runAs32Bit' => fn(ParseNode $n) => $o->setRunAs32Bit($n->getBooleanValue()),\n 'runAsAccount' => fn(ParseNode $n) => $o->setRunAsAccount($n->getEnumValue(RunAsAccountType::class)),\n 'scriptContent' => fn(ParseNode $n) => $o->setScriptContent($n->getStringValue()),\n ]);\n }", "public function rules(): array\n {\n return [\n 'type' => 'integer|in:' . implode(',', array_keys(Advert::availableParams('type'))),\n 'status' => 'integer|in:' . implode(',', array_keys(UserAdverts::availableParams('status')))\n ];\n }", "protected abstract function initializeAttributes(): array;", "public function validateDataProvider()\n {\n // the rule uses PHP's filter_var and I assume that that's already tested.\n return [\n [\n '[email protected]',\n true\n ],\n [\n 'johndoe',\n false\n ],\n ];\n }", "public function rules()\n {\n return [\n 'name' => 'required|max:255',\n 'desc' => 'max:255',\n 'color' => 'max:7',\n 'user_id' => 'numeric',\n 'users' => function ($attribute, $values, $parameters) {\n if($values == null) {\n return true;\n }\n if(! is_array($values)) {\n return false;\n }\n \n foreach($values as $v) {\n if(! is_numeric($v)) {\n return false;\n }\n }\n \n return true;\n },\n ];\n }", "public function getAttributes() {}", "public function getAttributes() {}", "public function provideTargetsToFilter()\n {\n // doesn't affect the return values\n return [\n [ CallableMethodsListTest_Target1::class, [ 'staticMethod1' => 'staticMethod1' ] ],\n [ CallableMethodsListTest_Target1::class, [ 'staticMethod1' => 'staticMethod1' ] ],\n [ new \\stdClass, [ ] ],\n [ new \\stdClass, [ ] ],\n [ new CallableMethodsListTest_Target1, [ 'objectMethod1' => 'objectMethod1' ] ],\n [ new CallableMethodsListTest_Target1, [ 'objectMethod1' => 'objectMethod1' ] ],\n ];\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'isRegistrationRequired' => fn(ParseNode $n) => $o->setIsRegistrationRequired($n->getBooleanValue()),\n 'targetType' => fn(ParseNode $n) => $o->setTargetType($n->getEnumValue(AuthenticationMethodTargetType::class)),\n ]);\n }", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'urls' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setUrls($val);\n },\n ]);\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'POST':\n {\n return [\n 'mobile' => ['required','max:11','min:11'],\n 'code' => ['required','max:6','min:6'],\n 'avatar' => ['required'],\n 'wx_oauth' => ['required'],\n 'password' => ['nullable','min:6','max:20']\n ];\n }\n case 'PUT':\n case 'PATCH':\n case 'DELETE':\n default: {\n return [];\n }\n }\n }", "public function getAttributes(){ }", "public function getAttributes(): iterable;", "public function rules()\n {\n $methods = arrayKeyString(BreachData::$methods);\n $dataTypes = arrayKeyString(BreachData::$dataTypes);\n\n $responseStance = arrayKeyString(BreachData::$responseStances);\n $responsePatched = arrayKeyString(BreachData::$responsePatched);\n $responseCustomersInformed = arrayKeyString(BreachData::$responseCustomersInformed);\n\n return [\n 'previous_id' => 'numeric',\n 'method' => 'required|in:' . $methods,\n 'date_occurred' => 'required|date',\n 'summary' => 'required|string|max:1000',\n 'people_affected' => 'numeric',\n 'data_leaked' => 'array|in:' . $dataTypes,\n 'previously_known' => '',\n 'response_stance' => 'required|in:' . $responseStance,\n 'response_patched' => 'required|in:' . $responsePatched,\n 'response_customers_informed' => 'required|in:' . $responseCustomersInformed,\n 'more_url' => 'url|max:500',\n 'source_name' => 'required|string|max:100',\n 'source_url' => 'required|url|max:500',\n ];\n }", "public function rules()\n {\n switch ($this->getRequestMethod()) {\n case 'index':\n return [\n 'full_name' => 'nullable|string',\n 'phone' => 'nullable|string',\n ];\n break;\n case 'store':\n return [\n 'crm_resource_id' => 'required|exists:crm_resources,id',\n 'channel' => 'required|in:' . get_validate_in_string(CrmResourceCallLog::$channel),\n 'call_status' => 'required|in:' . get_validate_in_string(CrmResourceCallLog::$call_statuses),\n ];\n break;\n default:\n return [];\n break;\n }\n }", "public function getAttributes()\n {\n }", "public function getRestUnHookableAttributes(): array\n {\n return [];\n }", "public function rules()\n {\n $customAttributeRequest = app()->make(CustomAttributeServices::class)->parseRequestForCustomAttributeByConditions(\n [\n [\n 'type_entity', '=', strtolower(CustomAttributeConfig::REFERENCE_CUSTOM_ATTRIBUTE_TYPE_ENTITY_PRODUCT)\n ]\n ]\n );\n\n return array_merge([\n 'name' => 'required',\n 'sku' => 'required',\n 'category_id' => 'required',\n 'manufacturer_id' => 'required',\n 'image_gallery' => 'required',\n 'image_feature' => 'required',\n 'discount_percent' => 'required|numeric|min:0|max:100',\n 'wholesale_discount' => 'required|numeric|min:0|max:100',\n 'purchase_discount' => 'required|numeric|min:0|max:100',\n 'online_discount' => 'required|numeric|min:0|max:100',\n 'vat' => 'required|numeric|min:0|max:100',\n ], $customAttributeRequest);\n }", "public function rules(): array\n {\n return [\n 'name' => ['sometimes', 'string'],\n 'email' => ['sometimes', 'email', 'string'],\n 'country' => ['sometimes', 'string'],\n 'phone' => ['sometimes', 'string'],\n 'date' => ['sometimes', 'date'],\n 'trip' => ['sometimes', 'string'],\n 'adults' => ['sometimes', 'string'],\n 'children' => ['sometimes', 'string'],\n 'location' => ['sometimes', 'string'],\n \n ];\n }", "public function valuesForSerializationFailuresDataProvider()\n {\n $eavType1 = new EavType();\n\n $eavType2 = new EavType();\n $eavType2->setAttributes(['some_attribute' => ['required' => true]]);\n\n return [\n [\n null,\n ],\n [\n $eavType1,\n ],\n [\n $eavType2,\n ],\n ];\n }", "abstract protected function getAdditionalValidators(): array;", "function getAttributes()\n {\n }", "private function arrayValidator()\n {\n\n\n\n $rules = [\n 'name' => ['required', 'string'],\n 'email' => ['required', 'string', 'unique:users'],\n 'ConfigPassword' => ['required', 'string', 'min:8'],\n 'password' => ['required_with:ConfigPassword', 'same:ConfigPassword', 'min:8'],\n 'phone' => ['required'],\n 'nickname' => ['required'],\n \"gender\" => ['required'],\n \"profile_picture\" => ['required', 'mimes:jpeg,bmp,png,jpg'],\n \"birthday\" => ['required'],\n \"position\" => ['required'],\n \"weight\" => ['required'],\n \"height\" => ['required'],\n \"footPlay\" => ['required'],\n \"living_location\" => ['required'],\n \"previous_clubs\" => ['required'],\n \"strength_point\" => ['required'],\n \"scientificl_level\" => ['required'],\n \"level\" => ['required'],\n\n\n ];\n\n return $rules;\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'classification' => fn(ParseNode $n) => $o->setClassification($n->getEnumValue(PermissionClassificationType::class)),\n 'permissionId' => fn(ParseNode $n) => $o->setPermissionId($n->getStringValue()),\n 'permissionName' => fn(ParseNode $n) => $o->setPermissionName($n->getStringValue()),\n ]);\n }", "public function rules()\n {\n Validator::extend('mail_address_available', function($attribute, $value, $parameters, $validator){\n return MailAddressSpec::isAvailable($value);\n });\n Validator::extend('password_available', function($attribute, $value, $parameters, $validator){\n return PassWordSpec::isAvailable($value);\n });\n\n return [\n 'mail_address' => [\n 'required',\n 'mail_address_available'\n ],\n 'password' => [\n 'required',\n 'password_available',\n ],\n ];\n }", "public function fakeAttributes()\n {\n $attributes = array();\n foreach ($this->blueprint->getAttributes() as $attribute) {\n $fakingRule = array_get($this->rules, $attribute->getName());\n\n // if no rule exists set NULL\n if (is_null($fakingRule))\n {\n $attributes[$attribute->getName()] = null;\n }\n // if rules is set to custom -> look for a value generator method in faker class\n else if ($fakingRule->isCustom())\n {\n $attributeName = $attribute->getName();\n $methodName = $this->getValueGeneratorMethodName($attributeName);\n if (!ff_method_exists($this, $methodName))\n {\n throw new InvalidFactoryConfigurationException(\"Attribute '$attributeName' has a custom faking rule but it's Faker class (\" . get_class($this) . \") is missing the $methodName method\");\n }\n // run faker method to get fake value\n $attributes[$attributeName] = ff_call_user_func(array($this, $methodName), $this->f);\n }\n else\n // value is a valid faker rule\n {\n $attributes[$attribute->getName()] = $this->fakeFieldValue($fakingRule);\n }\n }\n return $attributes;\n }", "public function fieldValidationArray()\n {\n return [\n 'name' => 'required|codename|min:2|max:255',\n 'label' => 'string',\n 'description' => 'string',\n 'required' => 'boolean',\n 'mode' => 'string|in:prefer_local,prefer_external,only_local,only_external',\n 'script' => 'string'\n ];\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE': {\n return [];\n }\n case 'POST':\n case 'PUT':\n case 'PATCH': {\n return [\n 'name' => 'required|string|max:255',\n 'iso_code_2' => 'required|string|size:2',\n 'iso_code_3' => 'required|string|size:3',\n ];\n }\n default:\n return [];\n }\n }", "public function attributes(): array\n {\n return [\n //\n ];\n }", "public function attributes(): array\n {\n return [\n //\n ];\n }", "public static function validators() {\n return [\n 'tenant_id' => 'validateTenantId',\n 'expires_in' => 'validateExpiresIn',\n 'scopes' => 'validateScopes'\n ];\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'check32BitOn64System' => fn(ParseNode $n) => $o->setCheck32BitOn64System($n->getBooleanValue()),\n 'detectionType' => fn(ParseNode $n) => $o->setDetectionType($n->getEnumValue(Win32LobAppFileSystemDetectionType::class)),\n 'detectionValue' => fn(ParseNode $n) => $o->setDetectionValue($n->getStringValue()),\n 'fileOrFolderName' => fn(ParseNode $n) => $o->setFileOrFolderName($n->getStringValue()),\n 'operator' => fn(ParseNode $n) => $o->setOperator($n->getEnumValue(Win32LobAppDetectionOperator::class)),\n 'path' => fn(ParseNode $n) => $o->setPath($n->getStringValue()),\n ]);\n }", "public function rules() : array\n {\n return [\n 'limit' => 'integer',\n 'offset' => 'integer',\n 'order_by' => 'array',\n 'order_by_dir' => 'in:DESC,ASC',\n 'filter' => 'array',\n 'filter.user' => 'string|max:18',\n 'filter.custom' => 'boolean',\n 'filter.available' => 'boolean',\n ];\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'callEventType' => fn(ParseNode $n) => $o->setCallEventType($n->getEnumValue(TeamworkCallEventType::class)),\n 'callId' => fn(ParseNode $n) => $o->setCallId($n->getStringValue()),\n 'initiator' => fn(ParseNode $n) => $o->setInitiator($n->getObjectValue([IdentitySet::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'distributeForStudentWork' => fn(ParseNode $n) => $o->setDistributeForStudentWork($n->getBooleanValue()),\n 'resource' => fn(ParseNode $n) => $o->setResource($n->getObjectValue([EducationResource::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function rules()\n {\n return [\n \"info.gravatar\" => \"boolean|nullable\",\n \"info.first_name\" => \"string|nullable|max:100\",\n \"info.last_name\" => \"string|nullable|max:100\",\n \"info.gender\" => \"string|nullable|max:10\",\n \"info.birthday\" => \"string|nullable|max:10\",\n \"info.mobile_phone\" => \"string|nullable|max:25\",\n \"info.address\" => \"string|nullable|max:100\",\n \"info.city\" => \"string|nullable|max:100\",\n \"info.country\" => \"string|nullable|max:100\",\n\n \"info.username\" => \"string|nullable|max:100\",\n \"info.displayname\" => \"string|nullable|max:100\",\n \"info.email\" => \"string|email|nullable|max:100\",\n \"info.password\" => \"string|nullable|max:100\",\n\n \"action\" => \"string|nullable|max:25\",\n \"_token\" => \"string|nullable|max:100\",\n \"_method\" => \"string|nullable|max:10\"\n ];\n }", "public function serializers()\n {\n // Each entry represents a function call.\n return array(\n // Each entry represents an argument for the function call.\n array(new \\Nayru\\Serializer\\JsonConf),\n array(new \\Nayru\\Serializer\\Php)\n );\n }", "public function rules(): array\n {\n return [\n $this->prefix . 'name' => ['string'],\n $this->prefix . 'serial' => ['string'],\n $this->prefix . 'emitted_at' => 'date_format:d/m/Y',\n $this->prefix . 'expires_at' => 'date_format:d/m/Y|after:'.$this->prefix.'emitted_at',\n ];\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'appDisplayName' => fn(ParseNode $n) => $o->setAppDisplayName($n->getStringValue()),\n 'dataType' => fn(ParseNode $n) => $o->setDataType($n->getStringValue()),\n 'isMultiValued' => fn(ParseNode $n) => $o->setIsMultiValued($n->getBooleanValue()),\n 'isSyncedFromOnPremises' => fn(ParseNode $n) => $o->setIsSyncedFromOnPremises($n->getBooleanValue()),\n 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),\n 'targetObjects' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setTargetObjects($val);\n },\n ]);\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n return [\n 'ids' => ['nullable', 'string',\n function ($attribute, $value, $fail) {\n $ids = explode(',', $value);\n $count = Category::whereIn('id',$ids)->count();\n\n if (count($ids) != $count) {\n $fail('你搞事情??');\n }\n }\n ],\n ];\n case 'POST':\n return [];\n case'PUT':\n case'PATCH':\n return [];\n }\n }", "public function provideValidator()\n {\n return [\n [[111111, 234567], true],\n [[222222, 111111], false],\n [[\"12345v\", 234567], false],\n [[123456, \"12345b\"], false],\n [['asdfgh', 'asdfgh'], false]\n ];\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'failedTasks' => fn(ParseNode $n) => $o->setFailedTasks($n->getIntegerValue()),\n 'failedUsers' => fn(ParseNode $n) => $o->setFailedUsers($n->getIntegerValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'successfulUsers' => fn(ParseNode $n) => $o->setSuccessfulUsers($n->getIntegerValue()),\n 'totalTasks' => fn(ParseNode $n) => $o->setTotalTasks($n->getIntegerValue()),\n 'totalUsers' => fn(ParseNode $n) => $o->setTotalUsers($n->getIntegerValue()),\n ];\n }", "public function rules()\n {\n return [\n 'password' => function($attribute, $value, $fail) {\n if(!$this->request->has('password')){\n $fail(Lang::get('trainers.message_password_required'));\n }\n $trainer = Trainer::where('password', md5($this->request->get('password')))->first();\n if(!$trainer) {\n $fail(Lang::get('trainers.message_password_exists'));\n }\n },\n 'new_password' => function($attribute, $value, $fail) {// Должно быть 3 параметра: в 1-попадает password (name поля), во 2-значение, в 3-сообщение\n if($value != request('new_replay_password')) {\n $fail(Lang::get('trainers.message_passwords'));\n }\n },\n ];\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'classification' => fn(ParseNode $n) => $o->setClassification($n->getEnumValue(WindowsQualityUpdateClassification::class)),\n 'isExpeditable' => fn(ParseNode $n) => $o->setIsExpeditable($n->getBooleanValue()),\n 'kbArticleId' => fn(ParseNode $n) => $o->setKbArticleId($n->getStringValue()),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'bold' => fn(ParseNode $n) => $o->setBold($n->getBooleanValue()),\n 'color' => fn(ParseNode $n) => $o->setColor($n->getStringValue()),\n 'italic' => fn(ParseNode $n) => $o->setItalic($n->getBooleanValue()),\n 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),\n 'size' => fn(ParseNode $n) => $o->setSize($n->getFloatValue()),\n 'underline' => fn(ParseNode $n) => $o->setUnderline($n->getStringValue()),\n ]);\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'PUT': return [\n Customer::NAME => 'required|alpha_dash|max:255',\n Customer::CITY => 'alpha_dash|max:255|nullable',\n Customer::VISITS_MADE => 'numeric|max:2147483647|min:0',\n Customer::LAST_VISIT_TIME => 'date|nullable',\n ];\n case 'POST': return [\n Customer::NAME => 'alpha_dash|max:255',\n Customer::CITY => 'alpha_dash|max:255|nullable',\n Customer::VISITS_MADE => 'numeric|max:2147483647|min:0',\n Customer::LAST_VISIT_TIME => 'date|nullable',\n ];\n default:\n return[];\n }\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'file' => fn(ParseNode $n) => $o->setFile($n->getBinaryContent()),\n 'sensitiveTypeIds' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setSensitiveTypeIds($val);\n },\n ]);\n }", "abstract protected static function defineComparableAttributes(): array;", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'availabilityEndDateTime' => fn(ParseNode $n) => $o->setAvailabilityEndDateTime($n->getDateTimeValue()),\n 'availabilityStartDateTime' => fn(ParseNode $n) => $o->setAvailabilityStartDateTime($n->getDateTimeValue()),\n 'groupIds' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setGroupIds($val);\n },\n 'isSuggested' => fn(ParseNode $n) => $o->setIsSuggested($n->getBooleanValue()),\n 'keywords' => fn(ParseNode $n) => $o->setKeywords($n->getObjectValue([AnswerKeyword::class, 'createFromDiscriminatorValue'])),\n 'languageTags' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setLanguageTags($val);\n },\n 'platforms' => fn(ParseNode $n) => $o->setPlatforms($n->getCollectionOfEnumValues(DevicePlatformType::class)),\n 'state' => fn(ParseNode $n) => $o->setState($n->getEnumValue(AnswerState::class)),\n 'targetedVariations' => fn(ParseNode $n) => $o->setTargetedVariations($n->getCollectionOfObjectValues([AnswerVariant::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'recipientActionDateTime' => fn(ParseNode $n) => $o->setRecipientActionDateTime($n->getDateTimeValue()),\n 'recipientActionMessage' => fn(ParseNode $n) => $o->setRecipientActionMessage($n->getStringValue()),\n 'recipientUserId' => fn(ParseNode $n) => $o->setRecipientUserId($n->getStringValue()),\n 'senderShiftId' => fn(ParseNode $n) => $o->setSenderShiftId($n->getStringValue()),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'clickAction' => fn(ParseNode $n) => $o->setClickAction($n->getStringValue()),\n 'clickDateTime' => fn(ParseNode $n) => $o->setClickDateTime($n->getDateTimeValue()),\n 'id' => fn(ParseNode $n) => $o->setId($n->getStringValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'sourceId' => fn(ParseNode $n) => $o->setSourceId($n->getStringValue()),\n 'uriDomain' => fn(ParseNode $n) => $o->setUriDomain($n->getStringValue()),\n 'verdict' => fn(ParseNode $n) => $o->setVerdict($n->getStringValue()),\n ];\n }", "public static function validators() {\n return [\n 'application_id' => 'validateApplicationId',\n 'is_default' => 'validateIsDefault',\n 'role' => 'validateRole',\n 'type' => 'validateType',\n '_issues' => 'validateIssues'\n ];\n }", "protected function listifyAttr( $array ) {\n\t\tksort( $array );\n\t\t$list = array();\n\t\tforeach ( $array as $name => $obj ) {\n\t\t\tif ( $obj === false ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$list[] = \"$name&nbsp;=&nbsp;<i>\" . $this->getClass( $obj, 'AttrDef_' ) . '</i>';\n\t\t}\n\n\t\treturn $this->listify( $list );\n\t}", "protected function validDataFromRequest()\n {\n return array_merge([\n // Current object\n 'obj_type', 'obj_id', 'property',\n // elFinder instance\n 'assets', 'callback'\n ], parent::validDataFromRequest());\n }", "public function getValidationCreateRules(): array\n {\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'failedDeviceCount' => fn(ParseNode $n) => $o->setFailedDeviceCount($n->getIntegerValue()),\n 'failedUserCount' => fn(ParseNode $n) => $o->setFailedUserCount($n->getIntegerValue()),\n 'installedDeviceCount' => fn(ParseNode $n) => $o->setInstalledDeviceCount($n->getIntegerValue()),\n 'installedUserCount' => fn(ParseNode $n) => $o->setInstalledUserCount($n->getIntegerValue()),\n 'notInstalledDeviceCount' => fn(ParseNode $n) => $o->setNotInstalledDeviceCount($n->getIntegerValue()),\n 'notInstalledUserCount' => fn(ParseNode $n) => $o->setNotInstalledUserCount($n->getIntegerValue()),\n ]);\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return [\n 'username' => 'required|max:255',\n 'user_id' => 'required',\n 'mobile' => 'required|regex:/^1[34578][0-9]{9}$/',\n 'birthday' => 'required',\n 'cycle_id' => 'required',\n 'expired_at' => 'required',\n 'card_price' => 'required',\n ];\n case 'PUT':\n return [\n 'username' => 'required|max:255',\n 'user_id' => 'required',\n 'mobile' => 'required|regex:/^1[34578][0-9]{9}$/',\n 'birthday' => 'required',\n 'cycle_id' => 'required',\n 'expired_at' => 'required',\n 'card_price' => 'required',\n ];\n }\n }", "public function rules() : array\n {\n if ( in_array( $this -> getMethod (), [ 'PUT', 'PATCH' ] ) )\n {\n return $rules =\n [\n 'data' => [ 'required' ],\n 'data.type' => [ 'required', 'string', 'in:Agent' ],\n ];\n }\n\n return\n [\n 'data' => [ 'required' ],\n 'data.type' => [ 'required', 'string', 'in:Agent' ],\n ];\n }", "public function rules()\n {\n switch ($this->method()){\n case 'GET':\n case 'DELETE':\n return [];\n\n case 'POST':\n return [\n 'logo' => 'required|image',\n 'number' => 'required|numeric',\n 'iban_number' => 'required|string:24',\n 'name' => 'required',\n\n\n ];\n\n case 'PUT':\n case 'PATCH':\n return [\n 'logo' => 'image',\n 'number' => 'required|numeric',\n 'iban_number' => 'required|string:24',\n 'name' => 'required',\n\n ];\n\n }\n }", "public function rules()\n {\n return [\n [['token', 'nickname'], 'required'],\n ['email', 'email'],\n [['token', 'nickname', 'passwd', 'secret', 'salt'], 'string', 'max' => 32],\n [['pic', 'bio', 'link'], 'string', 'max' => 255],\n ['phone', 'string', 'max' => 64],\n [['name', 'passwd_reset'], 'string', 'max' => 128],\n [['pic_id', 'created', 'updated', 'reset_expires', 'is_paid'], 'integer'],\n ['state', 'in', 'range' => ['pending', 'active', 'disabled']]\n ];\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'aliases' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setAliases($val);\n },\n 'isExactMatchRequired' => fn(ParseNode $n) => $o->setIsExactMatchRequired($n->getBooleanValue()),\n 'isQueryable' => fn(ParseNode $n) => $o->setIsQueryable($n->getBooleanValue()),\n 'isRefinable' => fn(ParseNode $n) => $o->setIsRefinable($n->getBooleanValue()),\n 'isRetrievable' => fn(ParseNode $n) => $o->setIsRetrievable($n->getBooleanValue()),\n 'isSearchable' => fn(ParseNode $n) => $o->setIsSearchable($n->getBooleanValue()),\n 'labels' => fn(ParseNode $n) => $o->setLabels($n->getCollectionOfEnumValues(Label::class)),\n 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'rankingHint' => fn(ParseNode $n) => $o->setRankingHint($n->getObjectValue([RankingHint::class, 'createFromDiscriminatorValue'])),\n 'type' => fn(ParseNode $n) => $o->setType($n->getEnumValue(PropertyType::class)),\n ];\n }", "public function validate($attributes);", "public static function get_checks( $args = array() ) {\n\t\tif ( ! empty( $args['name'] ) ) {\n\t\t\t$checks = array();\n\t\t\t$names = is_array( $args['name'] ) ? $args['name'] : array( $args['name'] );\n\t\t\tforeach ( $names as $name ) {\n\t\t\t\tif ( isset( self::$instance->checks[ $name ] ) ) {\n\t\t\t\t\t$checks[ $name ] = self::$instance->checks[ $name ];\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $checks;\n\t\t}\n\t\treturn self::get_instance()->checks;\n\t}", "public function rules() : array\n {\n return [\n 'count' => 'required|numeric|min:1|max:10000',\n 'type' => [\n 'required',\n function ($attribute, $value, $fail) {\n if ( !in_array($value, ObjectType::all()->pluck('name')->toArray())) {\n $fail('The ' . $attribute . ' is invalid.');\n }\n },\n ],\n ];\n }", "public function getValidationUpdateRules(): array\n {\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'response' => fn(ParseNode $n) => $o->setResponse($n->getEnumValue(ResponseType::class)),\n 'time' => fn(ParseNode $n) => $o->setTime($n->getDateTimeValue()),\n ];\n }", "public function rules()\n {\n return [\n \"data\" => \"required|array\",\n \"data.type\" => \"required|in:users\",\n \"data.attributes\" => \"required|array\",\n \"data.attributes.first_name\" => \"required|string\",\n \"data.attributes.last_name\" => \"required|string\",\n \"data.attributes.email\" => \"required|unique:users,email|string\",\n \"data.attributes.phonenumber\" => \"required|unique:users,phonenumber|digits:11\",\n ];\n }", "protected function getRules(): array\n {\n return [\n 'getFileExtensions' => [self::RULE_ARRAY, self::RULE_REQUIRED],\n 'isFileValid' => self::RULE_BOOL,\n 'getInternalRefNumber' => [self::RULE_STRING, self::RULE_REQUIRED],\n 'getExternalRefNumber' => [self::RULE_STRING, self::RULE_REQUIRED],\n 'getAssistantTitle' => [self::RULE_STRING, self::RULE_REQUIRED],\n 'getPatientContacts' => self::RULE_STRING,\n 'getPatientName' => [self::RULE_STRING, self::RULE_REQUIRED],\n 'getPatientBirthday' => [self::RULE_STRING, self::RULE_DATE],\n 'getParentAccidentMarkers' => self::RULE_ARRAY,\n 'getVisitTime' => [self::RULE_STRING, self::RULE_DATE],\n 'getVisitDate' => [self::RULE_STRING, self::RULE_REQUIRED, self::RULE_DATE],\n 'getCaseCreationDate' => [self::RULE_STRING, self::RULE_REQUIRED, self::RULE_DATE],\n 'getVisitCountry' => self::RULE_STRING,\n 'getVisitRegion' => self::RULE_STRING,\n 'getVisitCity' => self::RULE_STRING,\n 'getPatientSymptoms' => [self::RULE_STRING, self::RULE_REQUIRED],\n 'getDoctorInvestigation' => [self::RULE_STRING, self::RULE_REQUIRED],\n 'getDoctorRecommendation' => [self::RULE_STRING, self::RULE_REQUIRED],\n 'getDoctorDiagnostics' => self::RULE_ARRAY,\n 'getDoctorName' => [self::RULE_STRING, self::RULE_REQUIRED],\n 'getDoctorMedicalBoardingNum' => self::RULE_STRING,\n 'getDoctorGender' => [self::RULE_STRING, self::RULE_REQUIRED],\n 'getImages' => self::RULE_ARRAY,\n 'getCaseableType' => [self::RULE_STRING, self::RULE_REQUIRED],\n 'getIncomePrice' => self::RULE_FLOAT,\n 'getCurrency' => self::RULE_STRING\n ];\n }", "public static function validationArray():array {\n $validation = array (\n \"likedDate\" => 'required',\n\n );\n\n return $validation;\n }", "public function rules()\n {\n return [\n \"name\" => [\"required\",\"regex:/^[\\w\\s]{1,80}$/\"],\n \"price\" => [\"required\",\"numeric\",\"between:0,4000\"],\n \"iconClassName\" => [\"required\",\"regex:/^[\\w\\s-]{1,255}$/\"],\n \"description\" => [\"required\",\"regex:/^[A-Za-z0-9 .'?!,@$#-_\\n\\r\\s]{10,1850}$/\"]\n ];\n }", "abstract protected function attributes();" ]
[ "0.6367499", "0.61115116", "0.59746855", "0.5890195", "0.58341813", "0.58154964", "0.5687151", "0.55934197", "0.55934197", "0.55934197", "0.55934197", "0.5588508", "0.5416173", "0.54105866", "0.5399686", "0.5370537", "0.53153825", "0.529721", "0.5274143", "0.52711713", "0.5250402", "0.5225573", "0.5221794", "0.5181982", "0.5170663", "0.51691854", "0.5168786", "0.51630485", "0.51595604", "0.5153316", "0.5153316", "0.5153316", "0.5153316", "0.5153316", "0.5153316", "0.5153316", "0.5153316", "0.5153316", "0.5151184", "0.5147491", "0.51393986", "0.5134079", "0.5128011", "0.51270944", "0.5125724", "0.5123352", "0.5123331", "0.5120056", "0.5115647", "0.5111898", "0.5106118", "0.510129", "0.5101168", "0.5094757", "0.5091141", "0.5089905", "0.50887233", "0.50843006", "0.50843006", "0.50752825", "0.50735885", "0.50719935", "0.50670236", "0.5065847", "0.506087", "0.5057877", "0.5048895", "0.5044024", "0.50404155", "0.5039766", "0.5038366", "0.5037689", "0.5035425", "0.5032442", "0.5026677", "0.502504", "0.5024851", "0.5022852", "0.5022808", "0.50196886", "0.50189924", "0.50119525", "0.5011934", "0.50115764", "0.50097936", "0.50054044", "0.5004036", "0.50026375", "0.4992513", "0.49910358", "0.49871433", "0.49815318", "0.49803475", "0.4978639", "0.49779305", "0.49728113", "0.49658212", "0.49622387", "0.49601993", "0.49593937" ]
0.6059545
2
Array of attributes to validators functions (for deserialization of responses)
public static function validators() { return [ 'tenant_id' => 'validateTenantId', 'expires_in' => 'validateExpiresIn', 'scopes' => 'validateScopes' ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function validators() {\n return [\n 'status' => 'validateStatus',\n 'time' => 'validateTime'\n ];\n }", "public static function validators() {\n return [\n 'status' => 'validateStatus',\n 'quota' => 'validateQuota'\n ];\n }", "public static function validators() {\n return [\n 'application_id' => 'validateApplicationId',\n 'is_default' => 'validateIsDefault',\n 'role' => 'validateRole',\n 'type' => 'validateType',\n '_issues' => 'validateIssues'\n ];\n }", "public function validate($attributes);", "abstract protected function setValidationCustomAttributes(): array;", "public function setCustomAttributes(array $customAttributes): ValidatorInterface;", "abstract protected function getAdditionalValidators(): array;", "public function rules()\n {\n Validator::extend('mail_address_available', function($attribute, $value, $parameters, $validator){\n return MailAddressSpec::isAvailable($value);\n });\n Validator::extend('password_available', function($attribute, $value, $parameters, $validator){\n return PassWordSpec::isAvailable($value);\n });\n\n return [\n 'mail_address' => [\n 'required',\n 'mail_address_available'\n ],\n 'password' => [\n 'required',\n 'password_available',\n ],\n ];\n }", "public function rules()\n {\n return [\n 'name' => 'required|max:255',\n 'desc' => 'max:255',\n 'color' => 'max:7',\n 'user_id' => 'numeric',\n 'users' => function ($attribute, $values, $parameters) {\n if($values == null) {\n return true;\n }\n if(! is_array($values)) {\n return false;\n }\n \n foreach($values as $v) {\n if(! is_numeric($v)) {\n return false;\n }\n }\n \n return true;\n },\n ];\n }", "public function rules()\n {\n return [\n 'data.*.attributes.object_id' => 'required_with:data.attributes',\n 'data.*.attributes.object_domain' => 'required_with:data.attributes',\n ];\n }", "public function getValidators();", "public function getValidators();", "public function getValidators();", "public function getValidators()\n\t{\n\t\treturn array();\n\t}", "public function rules()\n {\n return [\n \"data\" => \"required|array\",\n \"data.type\" => \"required|in:users\",\n \"data.attributes\" => \"required|array\",\n \"data.attributes.first_name\" => \"required|string\",\n \"data.attributes.last_name\" => \"required|string\",\n \"data.attributes.email\" => \"required|unique:users,email|string\",\n \"data.attributes.phonenumber\" => \"required|unique:users,phonenumber|digits:11\",\n ];\n }", "public function fieldValidationArray()\n {\n return [\n 'name' => 'required|codename|min:2|max:255',\n 'label' => 'string',\n 'description' => 'string',\n 'required' => 'boolean',\n 'mode' => 'string|in:prefer_local,prefer_external,only_local,only_external',\n 'script' => 'string'\n ];\n }", "public function rules() : array\n {\n return [\n 'count' => 'required|numeric|min:1|max:10000',\n 'type' => [\n 'required',\n function ($attribute, $value, $fail) {\n if ( !in_array($value, ObjectType::all()->pluck('name')->toArray())) {\n $fail('The ' . $attribute . ' is invalid.');\n }\n },\n ],\n ];\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE': {\n return [];\n }\n case 'POST':\n case 'PUT':\n case 'PATCH': {\n return [\n 'name' => 'required|string|max:255',\n 'iso_code_2' => 'required|string|size:2',\n 'iso_code_3' => 'required|string|size:3',\n ];\n }\n default:\n return [];\n }\n }", "public function rules()\n {\n $customAttributeRequest = app()->make(CustomAttributeServices::class)->parseRequestForCustomAttributeByConditions(\n [\n [\n 'type_entity', '=', strtolower(CustomAttributeConfig::REFERENCE_CUSTOM_ATTRIBUTE_TYPE_ENTITY_PRODUCT)\n ]\n ]\n );\n\n return array_merge([\n 'name' => 'required',\n 'sku' => 'required',\n 'category_id' => 'required',\n 'manufacturer_id' => 'required',\n 'image_gallery' => 'required',\n 'image_feature' => 'required',\n 'discount_percent' => 'required|numeric|min:0|max:100',\n 'wholesale_discount' => 'required|numeric|min:0|max:100',\n 'purchase_discount' => 'required|numeric|min:0|max:100',\n 'online_discount' => 'required|numeric|min:0|max:100',\n 'vat' => 'required|numeric|min:0|max:100',\n ], $customAttributeRequest);\n }", "public function rules()\n {\n /**\n * This is the original way, expecting post params for each user value\n */\n return [\n 'firstName' => 'required|min:2|max:255',\n 'lastName' => 'required|min:2|max:255',\n 'phone' => 'min:9|max:25',\n 'gender' => 'in:M,V',\n 'dateOfBirth' => 'before:today|after:1890-01-01',\n 'email' => 'email|min:12|max:255',\n ];\n }", "public function rules(): array\n {\n return [\n 'name' => [\n 'required',\n 'string',\n 'max:255',\n ],\n 'column' => [\n 'required',\n 'string',\n 'max:255',\n Rule::notIn([\n 'id',\n 'created_at',\n 'updated_at',\n ]),\n 'regex:/^[a-z][a-z0-9_]*$/',\n Rule::unique((new Attribute)->getTable())->where(function ($query) {\n return $query->where('entity_id', Arr::get($this->validationData(), 'entity.id'));\n })->ignore($this->model()),\n ],\n 'dataType' => [\n 'required',\n 'string',\n Rule::in([\n // TODO\n 'text',\n 'string',\n 'integer',\n 'boolean',\n 'date',\n 'time',\n 'datetime',\n 'arraylist',\n 'arrayhash',\n ]),\n ],\n 'default' => [\n // TODO\n ],\n 'nullable' => [\n 'nullable',\n 'boolean',\n ],\n\n 'entity' => [\n 'required',\n JsonApiRule::toOne(),\n ],\n ];\n }", "public function getValidators() {}", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'POST':\n {\n return [\n 'mobile' => ['required','max:11','min:11'],\n 'code' => ['required','max:6','min:6'],\n 'avatar' => ['required'],\n 'wx_oauth' => ['required'],\n 'password' => ['nullable','min:6','max:20']\n ];\n }\n case 'PUT':\n case 'PATCH':\n case 'DELETE':\n default: {\n return [];\n }\n }\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return [\n 'username' => 'required|max:255',\n 'user_id' => 'required',\n 'mobile' => 'required|regex:/^1[34578][0-9]{9}$/',\n 'birthday' => 'required',\n 'cycle_id' => 'required',\n 'expired_at' => 'required',\n 'card_price' => 'required',\n ];\n case 'PUT':\n return [\n 'username' => 'required|max:255',\n 'user_id' => 'required',\n 'mobile' => 'required|regex:/^1[34578][0-9]{9}$/',\n 'birthday' => 'required',\n 'cycle_id' => 'required',\n 'expired_at' => 'required',\n 'card_price' => 'required',\n ];\n }\n }", "public function rules()\n {\n\t\tswitch($this->method()) {\n\t\t\tcase 'POST':\n\t\t\t\t{\n\t\t\t\t\treturn [\n\t\t\t\t\t\t'field_id' => 'integer|required',\n\t\t\t\t\t\t'label' => 'string|required',\n\t\t\t\t\t\t'value' => 'alpha_dash|required',\n\t\t\t\t\t\t'selected' => 'boolean',\n\t\t\t\t\t\t'actif' => 'boolean',\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\tcase 'PUT':\n\t\t\t\t{\n\t\t\t\t\treturn [\n\t\t\t\t\t\t'field_id' => 'integer|required',\n\t\t\t\t\t\t'label' => 'string|required',\n\t\t\t\t\t\t'value' => 'alpha_dash|required',\n\t\t\t\t\t\t'selected' => 'boolean',\n\t\t\t\t\t\t'actif' => 'boolean',\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\tdefault:break;\n\t\t}\n }", "public function commonRules()\n {\n Validator::extend('isvalidtimestamp', function ($attribute, $timestamp, $parameters, $validator) {\n \n return ((int) $timestamp === $timestamp)\n && ($timestamp <= PHP_INT_MAX)\n && ($timestamp >= ~PHP_INT_MAX);\n });\n \n Validator::extend('isvalidhash', function ($attribute, $hash, $parameters, $validator) {\n\n $temp_json = $validator->getData();\n // $temp_json = Input::json()->all();\n // echo \"<pre>\";print_r($temp_json);echo \"</pre>\";exit;\n unset($temp_json['hash']);\n if($hash == hash_hmac('SHA256', json_encode($temp_json), 'gramgoldlab888')){\n return TRUE;\n }\n else return FALSE;\n \n });\n\n return [\n 'hash' => 'required|isvalidhash',\n 'timestamp' => 'required|isvalidtimestamp',\n 'sessionId' => 'required|string|max:32',\n 'partnerPlayerId' => 'required|string',\n 'currency' => 'required|string',\n 'gameId' => 'required|string',\n 'token' => 'string',\n 'operatorName' => 'string',\n 'action' => 'required|string',\n 'playerIp' => 'required|ip'\n ];\n }", "public function rules()\n {\n return [\n 'data' => 'required|array',\n 'data.type' => 'required|in:movies',\n 'data.attributes' => 'required|array',\n 'data.attributes.title' => 'required|string|max:255',\n 'data.attributes.storyline' => 'required|string|max:550',\n 'data.attributes.genre' => 'required|string|max:255',\n 'data.attributes.release_year' => 'required|integer',\n 'data.attributes.runtime' => 'required|integer',\n ];\n }", "public function rules()\n {\n return [\n 'year' => [\n 'bail',\n 'required',\n 'regex:/^(19[0-9]{2}|2[0-9]{3})$/'\n ],\n 'month' => [\n 'bail',\n 'required',\n 'regex:/^([1-9]|1[0-2])$/'\n ]\n ];\n }", "private function arrayValidator()\n {\n\n\n\n $rules = [\n 'name' => ['required', 'string'],\n 'email' => ['required', 'string', 'unique:users'],\n 'ConfigPassword' => ['required', 'string', 'min:8'],\n 'password' => ['required_with:ConfigPassword', 'same:ConfigPassword', 'min:8'],\n 'phone' => ['required'],\n 'nickname' => ['required'],\n \"gender\" => ['required'],\n \"profile_picture\" => ['required', 'mimes:jpeg,bmp,png,jpg'],\n \"birthday\" => ['required'],\n \"position\" => ['required'],\n \"weight\" => ['required'],\n \"height\" => ['required'],\n \"footPlay\" => ['required'],\n \"living_location\" => ['required'],\n \"previous_clubs\" => ['required'],\n \"strength_point\" => ['required'],\n \"scientificl_level\" => ['required'],\n \"level\" => ['required'],\n\n\n ];\n\n return $rules;\n }", "public function rules()\n {\n $unique = Rule::unique('attribute_values')->where('attributes_id', request()->get('attributeId'));\n\n return [\n 'attributeId' => 'integer',\n 'value_ru' => ['required', 'string', 'max:128', $unique],\n 'value_uk' => ['required', 'string', 'max:128', $unique],\n 'url' => ['required', 'string', 'max:256', $unique],\n 'image' => 'nullable|image',\n ];\n }", "public function rules()\n {\n return [\n 'attribute_id' => 'required|exists:attributes,id',\n 'value' => 'required|numeric',\n ];\n }", "public function rules()\n {\n return [\n 'order_by' => [\n 'array',\n function ($attribute, $value, $fail) {\n if (count(array_diff_key($value, array_flip(self::ALLOWED_FIELDS))) > 0) {\n $fail($attribute . ' contains disallowed field ids.');\n }\n }\n ],\n 'order_by.*' => [\n 'in:asc,desc'\n ],\n 'filter' => [\n 'array',\n function ($attribute, $value, $fail) {\n if (count(array_diff_key($value, array_flip(self::ALLOWED_FILTER_OPERATORS))) > 0) {\n $fail($attribute . ' contains disallowed operator.');\n }\n }\n ],\n 'filter.*' => [\n function ($attribute, $value, $fail) {\n if (count(array_diff_key($value, array_flip(self::ALLOWED_FIELDS))) > 0) {\n $fail($attribute . ' contains disallowed field ids.');\n }\n }\n ],\n 'filter.*.*' => [\n function ($attribute, $value, $fail) {\n if (is_array($value) === false && is_numeric($value) === false) {\n $fail($attribute . ' must be a number or array.');\n }\n }\n ],\n 'filter.*.*.*' => [\n 'numeric'\n ]\n ];\n }", "private function getValidation() {\n return [\n 'title' => 'required|min:4|max:50',\n 'poster' => 'required|max:255',\n 'price' => 'required',\n 'start_date' => 'required',\n ];\n }", "public function rules()\n\t{\n\t\treturn [\n\t\t\t\"firstname\" => [\"required\", \"string\", \"max:16\"],\n\t\t\t\"lastname\" => [\"required\", \"string\", \"max:16\"],\n\t\t\t\"fullname_cn\" => [\"required\", \"string\", \"max:32\"],\n\t\t\t\"bornAt\" => [\"required\", \"date:Y-m-d\", \"before:today\"],\n\t\t\t\"city_code\" => [\"required\", \"regex:/^\\d{5}$/\"],\n\t\t\t\"first_wechat_id\" => [\"nullable\", \"string\", \"max:32\"],\n\t\t\t\"first_phone\" => ['required', \"regex:/^\\+?[0-9 ]{10,16}$/\"],\n\t\t\t\"second_phone\" => ['required', \"regex:/^\\+?[0-9 ]{10,16}$/\"],\n\t\t];\n\t}", "public function rules()\n {\n $user_roles = UserRole::all()->implode('id', ',');\n $interest_tags = InterestTag::all()->implode('id', ',');\n return [\n 'username' => 'required|max:190',\n 'email' => 'required|email|unique:users|max:190',\n 'password' => 'required|confirmed|max:190|min:8|alpha_num',\n 'birth_date' => 'date',\n 'gender' => 'in:m,f',\n 'avatar' => 'encoded_str_imagable',\n 'role' => 'required|in:'.$user_roles,\n 'tags.*' => 'in:'.$interest_tags\n ];\n }", "public function rules()\n {\n return [\n \"name\" => [\"required\",\"regex:/^[\\w\\s]{1,80}$/\"],\n \"price\" => [\"required\",\"numeric\",\"between:0,4000\"],\n \"iconClassName\" => [\"required\",\"regex:/^[\\w\\s-]{1,255}$/\"],\n \"description\" => [\"required\",\"regex:/^[A-Za-z0-9 .'?!,@$#-_\\n\\r\\s]{10,1850}$/\"]\n ];\n }", "public function rules()\n {\n $rule = [\n 'first_name' => 'required',\n 'last_name' => 'required',\n 'birthday' =>'required|before:today',\n 'email' => 'required|regex:/(.+)@(.+)\\.(.+)/i|email|unique:customers',\n 'phone' =>'required|regex:/(0)[0-9]/|digits_between:10,15',\n ];\n \n if (in_array($this->method(), ['PUT', 'PATCH'])) {\n \n $rule['email'] = 'required|regex:/(.+)@(.+)\\.(.+)/i|unique:customers,email,'.$this->customer['id'];\n }\n\n return $rule;\n \n }", "public function rules()\n {\n return [\n 'year' => ['required', 'numeric', 'digits:4', 'min:1900', 'max:'.date(\"Y\")],\n 'month' => ['required', 'numeric', 'min:1', 'max:12']\n ];\n }", "public function rules()\n {\n switch ($this->route()->getActionMethod()) {\n case 'login': {\n if ($this->request->has('access_token')) {\n return [\n 'access_token' => 'required',\n 'driver' => 'required|in:facebook,github,google',\n ];\n }\n return [\n 'email' => 'required|email',\n 'password' => 'required|min:6',\n ];\n }\n case 'register': {\n return [\n 'email' => 'required|email|unique:users,email',\n 'password' => 'required|min:6',\n 'name' => 'required',\n ];\n }\n default: return [];\n }\n }", "public function rules()\n {\n $rules = [\n 'users' => 'required|array',\n ];\n\n foreach($this->request->get('users') as $key => $user) {\n $rules['users.'. $key . '.name'] = 'required|string|min:3|max:255';\n $rules['users.'. $key . '.phone'] = 'required|regex:/^[0-9\\+\\s]+$/|min:10|max:17';\n $rules['users.'. $key . '.country'] = 'required|string|min:2:max:3';\n }\n\n return $rules;\n }", "public static function getValidationRules(): array\n {\n return [\n 'name' => 'required|string|min:1|max:255',\n 'version' => 'required|float',\n 'type' => 'required|string',\n ];\n }", "public function rules()\n {\n return [\n 'name'=>'required',\n 'price'=>['required',\n function ($attribute, $value, $fail) {\n if ($value < 100) {\n $fail ('The '.$attribute.' should be at least 100 mmk');\n }\n },\n ],\n 'category'=>'required',\n 'phone' => ['required','regex:/^([0-9\\s\\-\\+\\(\\)]*)$/','min:10','max:15','ends_with:0,1,2,3,4,5,6,7,8,9',\n function ($attribute, $value, $fail) {\n if (Str::substrCount($value, '-',) > 1) {\n $fail ('The '.$attribute.' number must contain only one special character');\n }\n },\n function ($attribute, $value, $fail) {\n if (Str::substrCount($value, '+',) > 1) {\n $fail ('The '.$attribute.' number must contain only one special character');\n }\n },\n ],\n 'address'=>'required',\n ];\n }", "public function rules(): array\n {\n return [\n 'attribute_id' => 'nullable|integer|exists:attributes,id',\n 'value' => 'required|string|max:255',\n 'url' => 'url|max:255',\n ];\n }", "public function rules()\n {\n return [\n 'name' => ['required', 'min:10', 'max:500'],\n 'year' => ['required', 'size:4', 'regex:/(20[0-9]{2}$)/']\n ];\n }", "public function rules()\n {\n $this->sanitize();\n return [\n 'event_id' => 'required',\n 'member_id' => 'required',\n 'guild_pts' => 'required',\n 'position' => 'required',\n 'solo_pts' => 'required',\n 'league_id' => 'required',\n 'solo_rank' => 'required',\n 'global_rank' => 'required',\n ];\n }", "public function rules() {\n if($this->method() == 'POST') {\n return [\n 'name_ar' => 'required|string|max:191',\n 'name_en' => 'required|string|max:191',\n 'country_code' => 'required|string|max:191',\n 'mobile_length' => 'required|integer',\n 'flag' => 'nullable|mimes:jpeg,jpg,png,gif|max:20000',\n ];\n }\n else if($this->method() == 'PUT')\n {\n return [\n 'name_ar' => 'required|string|max:191',\n 'name_en' => 'required|string|max:191',\n 'country_code' => 'required|string|max:191',\n 'mobile_length' => 'required|integer',\n 'flag' => 'nullable|mimes:jpeg,jpg,png,gif|max:20000',\n 'is_active' => 'required|in:0,1',\n ];\n }\n return [];\n }", "public function provideValidator()\n {\n return [\n [[111111, 234567], true],\n [[222222, 111111], false],\n [[\"12345v\", 234567], false],\n [[123456, \"12345b\"], false],\n [['asdfgh', 'asdfgh'], false]\n ];\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE':\n return [];\n case 'POST':\n return [\n 'name' => 'required|string',\n 'lastName' => 'string',\n 'gender' => 'boolean',\n 'avatar' => 'sometimes|mimes:jpg,png,jpeg|max:3048'\n ];\n case 'PUT':\n case 'PATCH':\n return [\n 'oldPassword' => 'required|string',\n 'newPassword' => 'required|string',\n ];\n default:\n break;\n }\n }", "public function rules(): array\n {\n return [\n 'id' => 'required|integer',\n 'name' => 'required|string',\n 'surname' => 'required|string',\n 'email' => 'required|email',\n 'country' => 'required|string|in:'.implode(',', CountryCode::names()),\n 'createAt' => 'required|date_format:Y-m-d',\n 'activateAt' => 'required|date_format:Y-m-d',\n 'chargerId' => 'required|integer',\n ];\n }", "public function rules()\n {\n return [\n 'name' => [\n 'alpha',\n 'max:25',\n 'required'\n ],\n 'surname' => [\n 'alpha',\n 'max:25',\n 'required'\n ],\n 'birthdate' => [\n 'required'\n ],\n 'height' => [\n 'required'\n ],\n 'club_member' => [\n 'required'\n ],\n ];\n }", "public function rules()\n {\n $rules = [];\n\n foreach ($this->request->get('barcode') as $key => $value) {\n $rules['barcode.' . $key] = 'bail|required|min:15|max:15';\n $rules['jumlah.' . $key] = 'bail|required|numeric';\n }\n\n return $rules;\n }", "private function firmRules()\n {\n return [\n 'country' => 'required_with_all:region,city|required_if:status,Enable',\n 'region' => 'required_with_all:country,city',\n 'city' => 'required_with_all:country,region',\n 'address' => 'nullable|string|between:0,255',\n 'status' => 'required|integer',\n ];\n }", "public function rules()\n {\n if ($this->isMethod('POST')) {\n return [\n 'car_type_id' => 'required',\n 'merk' => 'required|string',\n 'no_plat' => 'required|string',\n 'color' => 'required|string',\n 'year' => 'required|numeric',\n 'price' => 'required',\n 'fine' => 'required',\n 'image' => 'required|mimes:jpg,jpeg,png|max:3072',\n ];\n }\n\n if ($this->isMethod('PUT')) {\n return [\n 'car_type_id' => 'required',\n 'merk' => 'required|string',\n 'no_plat' => 'required|string',\n 'color' => 'required|string',\n 'year' => 'required|numeric',\n 'price' => 'required',\n 'fine' => 'required',\n ];\n }\n }", "public function rules()\n {\n return [\n \"name\" => \"bail|required|min:2|max:30\",\n \"frequency\" => \"bail|required|min:4|max:6\",\n \"tags\" => \"bail|required|exists:tags,id\",\n \"country\" => \"bail|required|exists:countries,id\",\n \"region\" => \"bail|required|exists:regions,id\",\n \"tag_line\" => \"bail|string|min:3\",\n \"type\" => \"bail|required|in:radio,tv\",\n \"stream_id\" => \"bail|required|string|min:4|max:16\",\n \"city\" => \"bail|required|min:2\",\n \"telephone\" => \"min:10|max:12\",\n \"logo\" => \"bail|image|max:2000\"\n ];\n }", "public static function validations()\n {\n return [\n 'client' => [\n 'create' => [\n 'name' => 'required|min:4',\n 'email' => 'required|email',\n 'password' => 'required',\n ],\n 'update' => [\n 'name' => 'required|min:4',\n 'email' => 'required|email',\n 'password' => '',\n ]\n ],\n 'server' => [\n 'create' => [\n 'name' => 'required|min:4',\n 'email' => 'required|email|unique:users',\n 'password' => 'required',\n ],\n 'update' => [\n 'name' => 'required|string|min:4',\n 'lastname' => 'required|string|min:4',\n 'email' => 'required|email|unique:users,email,' . auth()->user()->id,\n 'password' => 'required',\n ]\n ],\n ];\n }", "public function rules()\n {\n $rules = [\n 'enabled' => 'required',\n 'last_modified_by' => 'required'\n ];\n\n if ($this->isMethod('PUT')) {\n $client = $this->segment(4) ? Client::find($this->segment(4)) : NULL;\n\n if ($client) {\n $rules['code'] = ['required', 'alpha_dash', 'max:60', Rule::unique('clients')->ignore($client->id)];\n $rules['client_name'] = ['required', 'alpha_dash', 'max:60', Rule::unique('clients')->ignore($client->id)];\n }\n } else {\n $rules['client_name'] = 'required|unique:clients|alpha_dash|max:60|min:2';\n $rules['code'] = 'required|unique:clients|alpha_dash|max:60';\n }\n\n return $rules;\n }", "public static function getRequestValidators()\n {\n if (isset(static::$validators)) {\n return static::$validators;\n }\n\n // To match the route, we will use a chain of responsibility pattern with the\n // validator implementations. We will spin through each one making sure it\n // passes and then we will know if the route as a whole matches request.\n return static::$validators = [\n new ValidateAgainstUri(),\n new ValidateAgainstHost(),\n new ValidateAgainstScheme(),\n new ValidateAgainstMethod()\n ];\n }", "public function rules(): array\n {\n return [\n 'email_or_phone' => ['required', 'string'],\n 'password' => ['required', 'string', 'min:8'],\n 'confirm_password' => ['required', 'string', 'min:8'],\n 'agree_services' => ['required'],\n 'agree_data' => ['required'],\n //'sex' => ['required', 'in:male,female'],\n 'type' => ['required', 'in:customer,executant'],\n ];\n }", "public function rules(): array\n {\n return [\n 'model' => 'bail|required|max:255',\n 'registration_number' => 'bail|required|alpha_num|size:6',\n 'year' => 'bail|required|integer|between:1000,' . date('Y'),\n 'color' => 'bail|required|alpha|max:255',\n 'price' => 'bail|required|numeric|min:0',\n ];\n }", "public function getValidationRules(): array\n {\n if ($this->validatorForEach) {\n return [\n new ParameterValidationRule(Validator::callback(function ($value) {\n $items = UnpackCSV::un($value, $this->separator);\n return Validator::each($this->validatorForEach->getValidator())->validate($items);\n }), $this->validatorForEach->getDescription())\n ];\n } else {\n return [];\n }\n }", "public function rules()\n {\n\t $modelName = $this->getResourceName();\n\t $model = new $modelName;\n\n return [\n\t 'agent_id' => 'required|string|unique:' . $model->getTable() .',agent_id',\n\t\t\t'agent_key' => 'required|string',\n\t\t\t'agent_code' => 'required|string|unique:' . $model->getTable() .',agent_code',\n\t\t\t'status' => 'required|in:'. $this->transformToList($this->allowedDeniedChoices()),\n\t\t\t'limit' => 'required|boolean',\n ];\n }", "public function rules()\n {\n return [\n 'type' => [new InArrayRule(['mix', 'string', 'guid', 'int'])],\n 'length' => 'numeric|min:1|max:100'\n ];\n }", "public function rules()\r\n {\r\n \r\n $validation = [\r\n \"name\" => \"required|min:4|max:50\",\r\n \"email\" => \"required|email|unique:users,email\",\r\n \"password\" =>\r\n 'required|confirmed|min:8',\r\n \"phone\" => 'required|min:10|numeric',\r\n \"qualification\" => \"required\",\r\n \"blood_group\" => \"required\",\r\n\r\n ];\r\n\r\n if ($this->isMethod(\"put\")) {\r\n $validation = [\r\n \"name\" => \"required|alpha_num|min:4|max:50\",\r\n \"password\" =>\r\n 'nullable|confirmed|min:8',\r\n 'phone' => 'required|min:10|numeric', \r\n \"qualification\" => \"required\",\r\n \"blood_group\" => \"required\", \r\n ];\r\n }\r\n\r\n return $validation;\r\n }", "public function rules()\n {\n switch($this->method()) {\n case 'POST':\n {\n return [\n 'name' => 'required|min:5',\n\t\t\t\t\t'telephone' => 'string|nullable',\n\t\t\t\t\t'website' => 'url|nullable',\n\t\t\t\t\t'address' => 'string|nullable',\n\t\t\t\t\t'city' => 'string|nullable',\n\t\t\t\t\t'country' => 'string|nullable',\n\t\t\t\t\t'avatar' => 'image|nullable',\n ];\n }\n case 'PUT':\n {\n return [\n\t\t\t\t\t'name' => 'required|min:5',\n\t\t\t\t\t'telephone' => 'string|nullable',\n\t\t\t\t\t'website' => 'url|nullable',\n\t\t\t\t\t'address' => 'string|nullable',\n\t\t\t\t\t'city' => 'string|nullable',\n\t\t\t\t\t'country' => 'string|nullable',\n\t\t\t\t\t'avatar' => 'image|nullable',\n ];\n }\n default:break;\n }\n }", "public function rules()\n {\n switch ($this->route()->getActionMethod()) {\n case 'addNameUnit':\n return [\n 'building_guid' => 'max:32',\n 'name' => 'required|max:128',\n 'name_unit' => 'required|max:128',\n 'unit' => 'max:128',\n 'unit_unit' => 'max:128'\n ];\n case 'changeNameUnit':\n return [\n 'name' => 'required|max:128',\n 'name_unit' => 'required|max:128',\n 'unit' => 'max:128',\n 'unit_unit' => 'max:128'\n ];\n default;\n return [\n\n ];\n }\n }", "public function rules()\n {\n return [\n 'lang' => 'required|max:2|string',\n 'radius' => 'required|numeric',\n 'lon' => 'required|numeric',\n 'lat' => 'required|numeric',\n 'src_geom' => 'nullable|numeric',\n 'src_attr' => 'nullable|numeric',\n 'kinds' => 'nullable|numeric',\n 'name' => 'nullable|numeric',\n 'rate' => 'nullable|numeric',\n 'format' => 'nullable|numeric',\n 'limit' => 'nullable|numeric'\n ];\n }", "public function rules(): array\n {\n return [\n 'firstname' => ['required', 'min:3', 'max:20'],\n 'lastname' => ['required', 'min:3', 'max:50'],\n 'email' => ['required', 'min:3', 'max:50'],\n 'phone' => ['required', 'min:3', 'max:10'],\n 'text' => ['required', 'min:5', 'max:255'],\n ];\n }", "public function rules()\n {\n return [\n 'name' => 'required|max:32',\n 'gender' => 'required|gender',\n 'birthday' => 'required|date_format:Y-m-d',\n 'cellphone' => 'required|cellphone',\n 'college' => 'required|max:16',\n 'class' => 'required|max:32',\n 'qq' => 'required|max:16',\n 'first_id' => 'required',\n 'second_id' => 'required',\n 'third_id' => 'required',\n 'method' => 'required|max:20',\n 'wanna_say' => 'max:300'\n ];\n }", "public function rules()\n {\n\n \\Validator::extend('space', function($attr, $value){\n return preg_match('/^\\S*$/u', $value);\n });\n\n return [\n 'username' => 'required|space|regex:/^[@].*$/u',\n 'body' => 'required'\n ];\n }", "public function rules()\n {\n if($this->method()==='POST'){\n\n $avatar = 'required|mimes:jpeg,jpg,bmp,png,gif|dimensions:min_width=208,min_height=208';\n\n }elseif($this->method()==='PATCH'){\n \n $avatar = 'mimes:jpeg,jpg,bmp,png,gif|dimensions:min_width=208,min_height=208';\n }\n return [\n 'name' => 'required|max:60',\n 'avatar' => $avatar,\n 'year' => 'required',\n 'end_date' => 'required|date',\n 'content' => 'required',\n ];\n }", "public function rules() {\n $method = strtolower($this->method()) . 'Rules';\n if (method_exists($this, $method)) {\n return $this->{$method}();\n }\n\n return [\n 'email' => 'required|email|max:255|min:2|unique:users',\n 'name' => 'required|max:255|min:2',\n ];\n }", "public function getValidationRules(): array\n {\n return [\n 'email_address' => 'required|email',\n 'email_type' => 'nullable|in:html,text',\n 'status' => 'required|in:subscribed,unsubscribed,cleaned,pending',\n 'merge_fields' => 'nullable|array',\n 'interests' => 'nullable|array',\n 'language' => 'nullable|string',\n 'vip' => 'nullable|boolean',\n 'location' => 'nullable|array',\n 'location.latitude' => ['regex:/^[-]?(([0-8]?[0-9])\\.(\\d+))|(90(\\.0+)?)$/'], \n 'location.longitude' => ['regex:/^[-]?((((1[0-7][0-9])|([0-9]?[0-9]))\\.(\\d+))|180(\\.0+)?)$/'],\n 'marketing_permissions' => 'nullable|array',\n 'tags' => 'nullable|array'\n ];\n }", "public static function validateType()\n\t{\n\t\treturn [\n\t\t\tnew LengthValidator(null, 100),\n\t\t];\n\t}", "public function rules()\n {\n if ($this->input(\"_method\") == \"PUT\")\n return [\n \"first_name\" => \"required|min:5\",\n \"last_name\" => \"required|min:5\",\n \"update_email\" => \"required|email|sometimes:unique:users\",\n \"password\" => \"sometimes|required|min:8\",\n \"password_verify\" => \"sometimes|required|same:password\"\n ];\n\n return [\n \"first_name\" => \"required|min:4\",\n \"last_name\" => \"required|min:4\",\n \"email\" => \"required|email|unique:users\",\n \"password\" => \"sometimes|required|min:8\",\n \"password_verify\" => \"sometimes|required|same:password\"\n ];\n\n }", "public function rules()\n {\n $rules = [\n '_token' => 'required'\n ];\n\n foreach($this->request->get('emails') as $key => $val) {\n $rules['emails.'.$key] = 'required|email';\n }\n\n return $rules;\n }", "public function rules()\n {\n return [\n \"name\" => [\"required\", \"string\", \"max:50\"],\n \"type\" => [\"required\", \"string\", \"max:50\"],\n \"dob\" => [\"required\", \"date\"],\n \"weight_kg\" => [\"required\", \"float\"],\n \"heigh_metres\" => [\"required\", \"float\"],\n \"biteyness\" => [\"required\", \"enum\", [\"1\", \"2\", \"3\", \"4\", \"5\"]],\n \"treatment\" => [\"required\", \"array\"],\n \"treatment.*\" => [\"string\", \"max:50\"],\n ];\n }", "public function rules()\n {\n $method = $this->method();\n switch ($method){\n case 'PUT':\n case 'PATCH':\n $rule_thumb_img = 'url';\n break;\n default:\n $rule_thumb_img = 'required|url';\n }\n return [\n 'title' => 'required|min:6|max:255',\n 'category_id' => 'array',\n 'category_id.*' => 'numeric',\n 'thumb_img' => $rule_thumb_img,\n 'published' => 'required|numeric'\n ];\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'POST': {\n return [\n 'Fiscalyear' =>'required|unique:Fiscalyear',\n 'StartDate' => 'required|date',\n 'EndDate' => 'required|date',\n 'TaxPercent' => 'numeric',\n 'TollPercent' => 'numeric',\n 'TollPercent2' => 'numeric'\n ];\n }\n case 'GET':\n case 'DELETE':\n {\n return [];\n }\n case 'PUT':\n case 'PATCH':\n {\n return [\n 'Fiscalyear' =>'required',\n 'StartDate' => 'required|date',\n 'EndDate' => 'required|date',\n 'TaxPercent' => 'numeric',\n 'TollPercent' => 'numeric',\n 'TollPercent2' => 'numeric'\n ];\n }\n default:break;\n }\n }", "public function rules()\n {\n return [\n 'dir' => 'required',\n 'data' => 'required',\n 'name' => 'required',\n 'type' => 'required',\n 'offset' => 'required',\n 'eof' => 'required'\n ];\n }", "public function rules()\n {\n return [\n 'name' => ['required', 'min:4', 'max:20'],\n 'age' => 'required',\n 'email' => 'required',\n 'phone' => 'required',\n ];\n }", "public function rules()\n {\n return [\n 'lookingfor' => 'required|in:male,female',\n 'caste' => 'regex:/^[\\pL\\s\\-]+$/u',\n 'religion' => 'regex:/^[\\pL\\s\\-]+$/u',\n 'age' => 'numeric',\n ];\n }", "public function rules()\n {\n return [\n 'name' => 'required|max:255',\n 'active' => 'required|boolean',\n 'visibility' => 'required|in:private,shared,public',\n 'description' => 'sometimes|string',\n 'tags' => 'required',\n 'style' => 'required|string',\n 'zoom' => 'required|numeric',\n 'longitude' => 'required|numeric',\n 'latitude' => 'required|numeric',\n 'pitch' => 'required|numeric',\n 'bearing' => 'required|numeric',\n ];\n }", "public function rules()\n {\n $rules = [];\n\n // Validation request for stripe keys for stripe if stripe status in active\n if($this->has('stripe_status')){\n $rules[\"api_key\"] = \"required\";\n $rules[\"api_secret\"] = \"required\";\n $rules[\"webhook_key\"] = \"required\";\n }\n\n if($this->has('razorpay_status')){\n $rules[\"razorpay_key\"] = \"required\";\n $rules[\"razorpay_secret\"] = \"required\";\n $rules[\"razorpay_webhook_secret\"] = \"required\";\n }\n\n // Validation request for paypal keys for paypal if paypal status in active\n if($this->has('paypal_status')){\n $rules[\"paypal_client_id\"] = \"required\";\n $rules[\"paypal_secret\"] = \"required\";\n $rules[\"paypal_mode\"] = \"required_if:paypal_status,on|in:sandbox,live\";\n }\n\n\n return $rules;\n }", "public function rules(): array\n {\n return [\n 'name' => ['required', 'min:3', 'string'],\n 'code' => ['required', 'min:3', 'string'],\n 'level' => ['required', 'string'],\n 'fax' => ['required', 'min:3', 'string'],\n 'principal' => ['required', 'min:5', 'string'],\n 'principal_number' => ['required', 'min:17', 'string'],\n 'logo' => ['required', 'max:10000', 'mimes:png,jpg,jpeg'],\n 'address' => ['required', 'min:3', 'string'],\n ];\n }", "public function rules()\n {\n return [\n \"address_1\" => [\"required\",new ValueTooLong()],\n \"address_2\" => [\"required\",new ValueTooLong()],\n \"city\" => \"required\",\n \"region\" => \"required\",\n \"postal_code\" => \"required\",\n \"shipping_region_id\" => [\"required\",new ShippingRegionIdIsNumber()],\n\n ];\n }", "public function rules()\n {\n switch ($this->method()) {\n case 'PUT': return [\n Customer::NAME => 'required|alpha_dash|max:255',\n Customer::CITY => 'alpha_dash|max:255|nullable',\n Customer::VISITS_MADE => 'numeric|max:2147483647|min:0',\n Customer::LAST_VISIT_TIME => 'date|nullable',\n ];\n case 'POST': return [\n Customer::NAME => 'alpha_dash|max:255',\n Customer::CITY => 'alpha_dash|max:255|nullable',\n Customer::VISITS_MADE => 'numeric|max:2147483647|min:0',\n Customer::LAST_VISIT_TIME => 'date|nullable',\n ];\n default:\n return[];\n }\n }", "public function rules()\n {\n return [\n 'sku' => 'required',\n 'vol_weight' => 'required',\n 'weight' => 'required',\n 'length' => 'required',\n 'width' => 'required',\n 'height' => 'required',\n ];\n }", "public function rules()\n {\n return [\n 'form.first_name' => 'required|string|max:40',\n 'form.last_name' => 'required|string|max:40',\n 'form.email' => 'required|email',\n 'form.telephone' => 'required|digits:10'\n ];\n }", "public static function validationRuls(): array {\n\t\treturn [\n\t\t\t'full_name' => 'required|string',\n\t\t\t'image' => 'image|dimensions:min_width=100,max_width=200,min_height=100,max_height=200|max:1024',\n\t\t\t'date_birth' => 'date|nullable',\n\t\t];\n\t}", "public function rules()\n {\n return [\n\n 'data' => ['required', 'array'],\n 'data.type' => ['required'],\n 'data.attributes' => ['required', 'array'],\n 'data.attributes.producer_id' => ['required', 'exists:producers,id', 'unique:shops,producer_id'],\n 'data.attributes.whatsapp' => ['required', 'string', 'max:255'],\n 'data.attributes.phone' => ['required', 'string', 'max:255'],\n 'data.attributes.email' => ['required', 'string', 'email', 'max:255'],\n 'data.attributes.addr_id' => ['required', 'exists:addrs,id'],\n 'data.attributes.price_per_km' => ['required', 'numeric'],\n 'data.attributes.max_shipping_distance' => ['required', 'numeric']\n ];\n }", "public function rules()\r\n {\r\n switch ($this->method()) {\r\n case 'PUT':\r\n case 'PATCH':\r\n {\r\n return [\r\n 'post_code' =>['required'],\r\n 'building_name_no' => ['required',],\r\n 'street' => ['required',],\r\n 'town' => ['required',],\r\n 'first_name' => 'required',\r\n 'last_name' => 'required|regex:/^[a-zA-Z]+$/u|max:255',\r\n 'email' => 'required|email|unique:users',\r\n 'password' => ['required',],\r\n 'phone_number' => 'required',\r\n\r\n ];\r\n }\r\n default:\r\n break;\r\n }\r\n }", "public function rules()\n {\n return [\n 'products.*.product_id' => ['exists:products,id'],\n 'products.*.amount' => ['integer'],\n 'services' => ['required','array','min:1'],\n 'services.*.service_id' => ['required','exists:services,id'],\n 'services.*.person_id' => ['nullable','exists:persons,id'],\n 'date' => ['required', function ($attribute, $value, $fail) {\n if (!validate_jalili($value)) {\n $fail($attribute.' is not jalili time.');\n }\n }],\n\n ];\n }", "public function rules()\n {\n return [\n 'channel' => 'required',\n 'kind_person' => 'required',\n 'product_service' => 'required',\n 'product_type' => 'required',\n 'product' => 'required',\n 'amount' => 'required|numeric',\n 'claim_type' => 'required',\n 'response_term' => 'required|integer',\n 'mail' => 'email',\n 'observations' => 'max:10000',\n ];\n }", "public function getValidation()\r\n {\r\n return [\r\n 'file' => 'required',\r\n 'slider_id' => 'required',\r\n ];\r\n }", "public function rules()\n {\n return [\n\t\t\t'cert_year' => 'required | integer | max: 9999',\n\t\t\t'cert_num' => 'required | string | max:10',\n\t\t\t'lname' => 'required | string | max:255',\n\t\t\t'fname' => 'required | string | max:255'\n ];\n }", "public function rules(): array\n {\n return [\n 'email' => ['required', 'email', 'max:255'],\n 'verification_code' => ['required', 'digits:6']\n ];\n }", "public function rules()\n {\n return [\n 'start_date' => [\n 'date_format:Y-m-d',\n function ($attribute, $value, $fail) {\n if(empty($value)) {\n $fail('invalid.star_date');\n }\n },\n\n ],\n 'end_date' => [\n 'date_format:Y-m-d',\n function ($attribute, $value, $fail) {\n if(empty($value)) {\n $fail('invalid.star_date');\n }\n },\n ],\n\n 'id_store' => [\n 'string',\n function ($attribute, $value, $fail) {\n if(empty($value)) {\n $fail('invalid.id_store');\n }\n },\n ],\n\n 'id_seller' => [\n 'string',\n function ($attribute, $value, $fail) {\n if(empty($value)) {\n $fail('invalid.id_seller');\n }\n },\n ],\n 'id_payment' => [\n 'string',\n function ($attribute, $value, $fail) {\n if(empty($value)) {\n $fail('invalid.id_payment');\n }\n },\n ],\n 'id_customer' => [\n 'string',\n function ($attribute, $value, $fail) {\n if(empty($value)) {\n $fail('invalid.id_payment');\n }\n },\n ],\n 'id_delivery' => [\n 'string',\n function ($attribute, $value, $fail) {\n if(empty($value)) {\n $fail('invalid.id_delivery');\n }\n },\n ],\n ];\n }", "public function rules()\n {\n return [\n 'digits' => ['required', 'string', 'digits:4'],\n 'brand' => ['required', Rule::in(CardBrand::getKeys())],\n ];\n }", "abstract public function getValidationRules(): array;", "public function rules()\n {\n $data = [\n 'title' => 'required|min:10',\n 'description' => 'required|min:200',\n 'code' => 'required',\n 'g-recaptcha-response' => 'required|captcha',\n 'tags' => 'required'\n ];\n\n $data['image'] = 'mimes:jpeg,jpg,png,gif';\n \n if ($this->method() != 'PATCH') {\n $data['image'] = 'required|mimes:jpeg,jpg,png,gif';\n }\n\n return $data;\n }" ]
[ "0.7298421", "0.7297301", "0.70108515", "0.67424077", "0.65981555", "0.6573553", "0.6400417", "0.63545716", "0.6328082", "0.632274", "0.6322361", "0.6322361", "0.6322361", "0.62947005", "0.6266664", "0.623286", "0.6224481", "0.622074", "0.62146735", "0.62031484", "0.61994165", "0.61567575", "0.6148501", "0.6136458", "0.61210924", "0.61067325", "0.60610557", "0.6060492", "0.6055012", "0.6053183", "0.6044435", "0.6033102", "0.60304624", "0.60149944", "0.60113907", "0.6010842", "0.6001195", "0.59937775", "0.5989404", "0.59876776", "0.59871346", "0.59853095", "0.5972667", "0.59724796", "0.59698224", "0.5956604", "0.5953025", "0.59508455", "0.59503967", "0.59410894", "0.59373426", "0.5925155", "0.5923635", "0.59211034", "0.59132534", "0.59079283", "0.59046257", "0.5903188", "0.59009933", "0.58996356", "0.58958745", "0.5893435", "0.5881423", "0.5877566", "0.58774155", "0.5871405", "0.58703536", "0.58696836", "0.5864406", "0.58622783", "0.5862113", "0.5852831", "0.58501637", "0.5849195", "0.5847594", "0.58462137", "0.58456445", "0.5844634", "0.5840673", "0.5840179", "0.5838938", "0.5838079", "0.583642", "0.583333", "0.58329517", "0.58251315", "0.5823577", "0.5823327", "0.5818272", "0.58168864", "0.58146113", "0.58119833", "0.5809944", "0.58050185", "0.58047074", "0.58013475", "0.57976013", "0.57954156", "0.57953894", "0.57938296" ]
0.712771
2
show all the invalid properties with reasons.
public function listInvalidProperties() { $invalid_properties = []; if (!empty($this->validateTenantId())) { $invalid_properties[] = $this->validateTenantId(); } if (!empty($this->validateExpiresIn())) { $invalid_properties[] = $this->validateExpiresIn(); } if (!empty($this->validateScopes())) { $invalid_properties[] = $this->validateScopes(); } return $invalid_properties; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listInvalidProperties();", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n $allowed_values = [\"CREDIT_CARD\", \"CASH\", \"THIRD_PARTY_CARD\", \"NO_SALE\", \"SQUARE_WALLET\", \"SQUARE_GIFT_CARD\", \"UNKNOWN\", \"OTHER\"];\n if (!in_array($this->container['event_type'], $allowed_values)) {\n $invalid_properties[] = \"invalid value for 'event_type', must be one of #{allowed_values}.\";\n }\n\n $allowed_values = [\"OTHER_BRAND\", \"VISA\", \"MASTERCARD\", \"AMERICAN_EXPRESS\", \"DISCOVER\", \"DISCOVER_DINERS\", \"JCB\", \"CHINA_UNIONPAY\", \"SQUARE_GIFT_CARD\"];\n if (!in_array($this->container['card_brand'], $allowed_values)) {\n $invalid_properties[] = \"invalid value for 'card_brand', must be one of #{allowed_values}.\";\n }\n\n $allowed_values = [\"MANUAL\", \"SCANNED\", \"SQUARE_CASH\", \"SQUARE_WALLET\", \"SWIPED\", \"WEB_FORM\", \"OTHER\"];\n if (!in_array($this->container['entry_method'], $allowed_values)) {\n $invalid_properties[] = \"invalid value for 'entry_method', must be one of #{allowed_values}.\";\n }\n\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = parent::listInvalidProperties();\n $allowedValues = $this->getStyleIdentifierAllowableValues();\n if (!in_array($this->container['style_identifier'], $allowedValues)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'style_identifier', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getTextEffectAllowableValues();\n if (!in_array($this->container['text_effect'], $allowedValues)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'text_effect', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getUnderlineAllowableValues();\n if (!in_array($this->container['underline'], $allowedValues)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'underline', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = array();\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = array();\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = array();\n return $invalid_properties;\n }", "public function listInvalidProperties() {\n\t\treturn array();\n\t}", "public function listInvalidProperties()\n {\n $invalid_properties = parent::listInvalidProperties();\n\n return $invalid_properties;\n }", "public function listInvalidProperties() {\n\n $invalidProperties = [];\n\n /*\n * Any needed validation goes here. If a property requires no validation\n * (e.g. it's OK for it to be empty) then it may be omitted.\n */\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n $allowedValues = $this->getLevelAllowableValues();\n if (!is_null($this->container['level']) && !in_array($this->container['level'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'level', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getStatusAllowableValues();\n if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'status', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n return [];\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n $allowed_values = $this->getBootOrderAllowableValues();\n if (!in_array($this->container['boot_order'], $allowed_values)) {\n $invalid_properties[] = sprintf(\n \"invalid value for 'boot_order', must be one of '%s'\",\n implode(\"', '\", $allowed_values)\n );\n }\n\n $allowed_values = $this->getFirewallAllowableValues();\n if (!in_array($this->container['firewall'], $allowed_values)) {\n $invalid_properties[] = sprintf(\n \"invalid value for 'firewall', must be one of '%s'\",\n implode(\"', '\", $allowed_values)\n );\n }\n\n $allowed_values = $this->getVideoModelAllowableValues();\n if (!in_array($this->container['video_model'], $allowed_values)) {\n $invalid_properties[] = sprintf(\n \"invalid value for 'video_model', must be one of '%s'\",\n implode(\"', '\", $allowed_values)\n );\n }\n\n $allowed_values = $this->getVncAllowableValues();\n if (!in_array($this->container['vnc'], $allowed_values)) {\n $invalid_properties[] = sprintf(\n \"invalid value for 'vnc', must be one of '%s'\",\n implode(\"', '\", $allowed_values)\n );\n }\n\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n return $invalid_properties;\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n $allowedValues = $this->getTypeAllowableValues();\r\n if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {\r\n $invalidProperties[] = sprintf(\r\n \"invalid value for 'type', must be one of '%s'\",\r\n implode(\"', '\", $allowedValues)\r\n );\r\n }\r\n\r\n $allowedValues = $this->getStatusAllowableValues();\r\n if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {\r\n $invalidProperties[] = sprintf(\r\n \"invalid value for 'status', must be one of '%s'\",\r\n implode(\"', '\", $allowedValues)\r\n );\r\n }\r\n\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n $allowedValues = $this->getTypeAllowableValues();\r\n if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {\r\n $invalidProperties[] = sprintf(\r\n \"invalid value for 'type', must be one of '%s'\",\r\n implode(\"', '\", $allowedValues)\r\n );\r\n }\r\n\r\n $allowedValues = $this->getStatusAllowableValues();\r\n if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {\r\n $invalidProperties[] = sprintf(\r\n \"invalid value for 'status', must be one of '%s'\",\r\n implode(\"', '\", $allowedValues)\r\n );\r\n }\r\n\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n if ($this->container['overview'] === null) {\n $invalidProperties[] = \"'overview' can't be null\";\n }\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = parent::listInvalidProperties();\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = parent::listInvalidProperties();\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = parent::listInvalidProperties();\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = parent::listInvalidProperties();\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = parent::listInvalidProperties();\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = parent::listInvalidProperties();\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n if ($this->container['legalName'] === null) {\n $invalidProperties[] = \"'legalName' can't be null\";\n }\n if ($this->container['registeredAddress'] === null) {\n $invalidProperties[] = \"'registeredAddress' can't be null\";\n }\n $allowedValues = $this->getTypeAllowableValues();\n if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value '%s' for 'type', must be one of '%s'\",\n $this->container['type'],\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getVatAbsenceReasonAllowableValues();\n if (!is_null($this->container['vatAbsenceReason']) && !in_array($this->container['vatAbsenceReason'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value '%s' for 'vatAbsenceReason', must be one of '%s'\",\n $this->container['vatAbsenceReason'],\n implode(\"', '\", $allowedValues)\n );\n }\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n if ($this->container['id'] === null) {\n $invalidProperties[] = \"'id' can't be null\";\n }\n if ($this->container['type'] === null) {\n $invalidProperties[] = \"'type' can't be null\";\n }\n $allowedValues = $this->getTypeAllowableValues();\n if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'type', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getResultAllowableValues();\n if (!is_null($this->container['result']) && !in_array($this->container['result'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'result', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n if ($this->container['locale'] === null) {\n $invalidProperties[] = \"'locale' can't be null\";\n }\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n $allowedValues = $this->getFieldAllowableValues();\n if (!is_null($this->container['field']) && !in_array($this->container['field'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value '%s' for 'field', must be one of '%s'\",\n $this->container['field'],\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getOpAllowableValues();\n if (!is_null($this->container['op']) && !in_array($this->container['op'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value '%s' for 'op', must be one of '%s'\",\n $this->container['op'],\n implode(\"', '\", $allowedValues)\n );\n }\n\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n $allowedValues = $this->getTypeAllowableValues();\n if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'type', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getCostTypeAllowableValues();\n if (!is_null($this->container['cost_type']) && !in_array($this->container['cost_type'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'cost_type', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n if ($this->container['text'] === null) {\r\n $invalidProperties[] = \"'text' can't be null\";\r\n }\r\n if ($this->container['textOriginal'] === null) {\r\n $invalidProperties[] = \"'textOriginal' can't be null\";\r\n }\r\n if ($this->container['textNormalised'] === null) {\r\n $invalidProperties[] = \"'textNormalised' can't be null\";\r\n }\r\n if (!is_null($this->container['score']) && ($this->container['score'] > 1E+2)) {\r\n $invalidProperties[] = \"invalid value for 'score', must be smaller than or equal to 1E+2.\";\r\n }\r\n if (!is_null($this->container['score']) && ($this->container['score'] < 0)) {\r\n $invalidProperties[] = \"invalid value for 'score', must be bigger than or equal to 0.\";\r\n }\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n return $invalidProperties;\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n if ($this->container['use_async_pattern'] === null) {\n $invalid_properties[] = \"'use_async_pattern' can't be null\";\n }\n if ($this->container['source_file_name'] === null) {\n $invalid_properties[] = \"'source_file_name' can't be null\";\n }\n if ($this->container['source_file_content'] === null) {\n $invalid_properties[] = \"'source_file_content' can't be null\";\n }\n if ($this->container['copy_metadata'] === null) {\n $invalid_properties[] = \"'copy_metadata' can't be null\";\n }\n $allowed_values = [\"English\", \"Arabic\", \"Danish\", \"German\", \"Dutch\", \"Finnish\", \"French\", \"Hebrew\", \"Hungarian\", \"Italian\", \"Norwegian\", \"Portuguese\", \"Spanish\", \"Swedish\", \"Russian\"];\n if (!in_array($this->container['language'], $allowed_values)) {\n $invalid_properties[] = \"invalid value for 'language', must be one of 'English', 'Arabic', 'Danish', 'German', 'Dutch', 'Finnish', 'French', 'Hebrew', 'Hungarian', 'Italian', 'Norwegian', 'Portuguese', 'Spanish', 'Swedish', 'Russian'.\";\n }\n\n $allowed_values = [\"Slow but accurate\", \"Faster and less accurate\", \"Fastest and least accurate\"];\n if (!in_array($this->container['performance'], $allowed_values)) {\n $invalid_properties[] = \"invalid value for 'performance', must be one of 'Slow but accurate', 'Faster and less accurate', 'Fastest and least accurate'.\";\n }\n\n $allowed_values = [\"None\", \"Whitelist\", \"Blacklist\"];\n if (!in_array($this->container['characters_option'], $allowed_values)) {\n $invalid_properties[] = \"invalid value for 'characters_option', must be one of 'None', 'Whitelist', 'Blacklist'.\";\n }\n\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalid_properties = array();\n if ($this->container['name'] === null) {\n $invalid_properties[] = \"'name' can't be null\";\n }\n if ($this->container['type'] === null) {\n $invalid_properties[] = \"'type' can't be null\";\n }\n $allowed_values = array(\"text\", \"range\", \"category\");\n if (!in_array($this->container['type'], $allowed_values)) {\n $invalid_properties[] = \"invalid value for 'type', must be one of #{allowed_values}.\";\n }\n\n if ($this->container['sort_type'] === null) {\n $invalid_properties[] = \"'sort_type' can't be null\";\n }\n $allowed_values = array(\"alphabetical\", \"count\", \"value\", \"size\");\n if (!in_array($this->container['sort_type'], $allowed_values)) {\n $invalid_properties[] = \"invalid value for 'sort_type', must be one of #{allowed_values}.\";\n }\n\n if ($this->container['values'] === null) {\n $invalid_properties[] = \"'values' can't be null\";\n }\n return $invalid_properties;\n }", "public function listInvalidProperties()\r\n {\r\n $invalidProperties = [];\r\n if ($this->container['status'] === null) {\r\n $invalidProperties[] = \"'status' can't be null\";\r\n }\r\n $allowedValues = $this->getStatusAllowableValues();\r\n if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {\r\n $invalidProperties[] = sprintf(\r\n \"invalid value for 'status', must be one of '%s'\",\r\n implode(\"', '\", $allowedValues)\r\n );\r\n }\r\n\r\n if ($this->container['reason'] === null) {\r\n $invalidProperties[] = \"'reason' can't be null\";\r\n }\r\n if ($this->container['message'] === null) {\r\n $invalidProperties[] = \"'message' can't be null\";\r\n }\r\n if ($this->container['currentVersion'] === null) {\r\n $invalidProperties[] = \"'currentVersion' can't be null\";\r\n }\r\n return $invalidProperties;\r\n }", "public function listInvalidProperties()\n {\n $invalid_properties = [];\n\n if ($this->container['name'] === null) {\n $invalid_properties[] = \"'name' can't be null\";\n }\n if ($this->container['has_thumbnail'] === null) {\n $invalid_properties[] = \"'has_thumbnail' can't be null\";\n }\n $allowed_values = [\"stl\", \"step\", \"iges\", \"obj\", \"svf2\",\"svf\", \"thumbnail\", \"ifc\"];\n if (!in_array($this->container['output_type'], $allowed_values)) {\n $invalid_properties[] = \"invalid value for 'output_type', must be one of 'stl', 'step', 'iges', 'obj', 'svf2','svf', 'thumbnail', 'ifc'.\";\n }\n\n if ($this->container['progress'] === null) {\n $invalid_properties[] = \"'progress' can't be null\";\n }\n if ($this->container['status'] === null) {\n $invalid_properties[] = \"'status' can't be null\";\n }\n $allowed_values = [\"pending\", \"inprogress\", \"success\", \"failed\", \"timeout\", \"partialsuccess\"];\n if (!in_array($this->container['status'], $allowed_values)) {\n $invalid_properties[] = \"invalid value for 'status', must be one of 'pending', 'inprogress', 'success', 'failed', 'timeout', 'partialsuccess'.\";\n }\n\n if ($this->container['children'] === null) {\n $invalid_properties[] = \"'children' can't be null\";\n }\n return $invalid_properties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n if ($this->container['last_change'] === null) {\n $invalidProperties[] = \"'last_change' can't be null\";\n }\n $allowedValues = $this->getNetworkAllowableValues();\n if (!is_null($this->container['network']) && !in_array($this->container['network'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value '%s' for 'network', must be one of '%s'\",\n $this->container['network'],\n implode(\"', '\", $allowedValues)\n );\n }\n\n if ($this->container['status'] === null) {\n $invalidProperties[] = \"'status' can't be null\";\n }\n $allowedValues = $this->getStatusAllowableValues();\n if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value '%s' for 'status', must be one of '%s'\",\n $this->container['status'],\n implode(\"', '\", $allowedValues)\n );\n }\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n $allowedValues = $this->getStatusAllowableValues();\n if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'status', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getTypeAllowableValues();\n if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'type', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n $allowedValues = $this->getStatusAllowableValues();\n if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'status', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getFilingFrequencyAllowableValues();\n if (!is_null($this->container['filing_frequency']) && !in_array($this->container['filing_frequency'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'filing_frequency', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getFilingTypeAllowableValues();\n if (!is_null($this->container['filing_type']) && !in_array($this->container['filing_type'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'filing_type', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getAccrualTypeAllowableValues();\n if (!is_null($this->container['accrual_type']) && !in_array($this->container['accrual_type'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value for 'accrual_type', must be one of '%s'\",\n implode(\"', '\", $allowedValues)\n );\n }\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n $allowedValues = $this->getFraudResultTypeAllowableValues();\n if (!is_null($this->container['fraudResultType']) && !in_array($this->container['fraudResultType'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value '%s' for 'fraudResultType', must be one of '%s'\",\n $this->container['fraudResultType'],\n implode(\"', '\", $allowedValues)\n );\n }\n\n $allowedValues = $this->getRecurringProcessingModelAllowableValues();\n if (!is_null($this->container['recurringProcessingModel']) && !in_array($this->container['recurringProcessingModel'], $allowedValues, true)) {\n $invalidProperties[] = sprintf(\n \"invalid value '%s' for 'recurringProcessingModel', must be one of '%s'\",\n $this->container['recurringProcessingModel'],\n implode(\"', '\", $allowedValues)\n );\n }\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = parent::listInvalidProperties();\n\n if (!is_null($this->container['athlete_count']) && ($this->container['athlete_count'] < 1)) {\n $invalidProperties[] = \"invalid value for 'athlete_count', must be bigger than or equal to 1.\";\n }\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }", "public function listInvalidProperties()\n {\n $invalidProperties = [];\n\n return $invalidProperties;\n }" ]
[ "0.7885589", "0.7704446", "0.7691335", "0.76856136", "0.76856136", "0.76856136", "0.7683929", "0.76756734", "0.7666285", "0.7653707", "0.7653707", "0.76334393", "0.7632623", "0.7632623", "0.7632623", "0.7632623", "0.7632623", "0.7632623", "0.76262254", "0.7612341", "0.75995564", "0.75995564", "0.75995564", "0.75995564", "0.75995564", "0.75995564", "0.75995564", "0.75995564", "0.75995564", "0.75995564", "0.75995564", "0.75995564", "0.75995564", "0.75995564", "0.75995564", "0.75995564", "0.75995564", "0.75995564", "0.75995564", "0.75786686", "0.75786686", "0.7565056", "0.7554806", "0.7554806", "0.7554806", "0.7554806", "0.7554806", "0.7554806", "0.7537941", "0.75339395", "0.752852", "0.75186086", "0.7517895", "0.75157785", "0.75157785", "0.75157785", "0.75157785", "0.7505747", "0.7505747", "0.7505747", "0.7505747", "0.7505747", "0.7505747", "0.7505747", "0.7505747", "0.7505747", "0.7505747", "0.7505747", "0.7505747", "0.7505747", "0.7505747", "0.749399", "0.7491233", "0.7483622", "0.7481498", "0.74799484", "0.7477273", "0.7470583", "0.7454461", "0.74524194", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126", "0.74500126" ]
0.0
-1
validate all the properties in the model return true if all passed
public function valid() { if (!empty($this->validateTenantId())) { return false; } if (!empty($this->validateExpiresIn())) { return false; } if (!empty($this->validateScopes())) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validate(){\n\t\t$valid = true;\n\t\t$ref = new ReflectionObject($this);\n\t\tforeach($ref->getProperties() as $prop){\n\t\t\tif(isset($this->_atributosMetadata[$prop->getName()])){\n\t\t\t\t$propMetadata = $this->_atributosMetadata[$prop->getName()];\n\t\t\t\tif($propMetadata->needValidate){\n\t\t\t\t\t$propMetadata->Validate($prop->getValue($this));\n\t\t\t\t\tif($propMetadata->isValid){\n\t\t\t\t\t\t$valid = $valid && $propMetadata->isValid; \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $valid;\t\t\n\t}", "public function isValid(): bool\n {\n return count($this->filterProperties()) === 5;\n }", "function validate_rows() {\r\n $ok = True;\r\n for ($i = 0; $i < $this->db_count; $i++) {\r\n foreach ($this->properties as $colvar=>$col) {\r\n if (!$this->validate_field($colvar,$i)) { # make sure this field is not empty\r\n $ok = False;\r\n }\r\n }\r\n }\r\n return $ok;\r\n }", "public function validate(){\n $valid = true;\n foreach($this->fields as $field){\n if(!$field->validate()) $valid = false;\n }\n $this->setIsValid($valid);\n return $valid;\n }", "public function validate()\r\n {\r\n //clean out the errors in the errors array\r\n $this->errors = array(); //set it equal to a new empty array to clear the items in the array\r\n\r\n // need find a way to check each property\r\n // lets uses a naming convention that any function that begins with 'validate_'\r\n //will be executed in this method\r\n $methods = get_class_methods($this);\r\n $validationResults = array();\r\n foreach($methods as $func)\r\n {\r\n //see if the function begins with the text 'validate_'\r\n if(strpos($func,'validate_')===0)\r\n {\r\n //call the method with the name stored in the $func variable\r\n $validationResults[] = call_user_func([$this,$func]);\r\n }\r\n }\r\n //check to see if any of the property validation functions returned false\r\n return !in_array(false,$validationResults);\r\n\r\n }", "function is_valid() {\n $valid = True;\n foreach(get_object_vars($this) as $name => $obj) {\n if ($obj != NULL) {\n #validacion errores genericos de los campos\n $obj->required_validate();\n $flag = $obj->is_valid(); \n if (!$flag) \n { \n $valid = False;\n echo $obj->name.\" \";\n }\n #echo $obj->name;\n }\n }\n #busca metodos de validacion definido por usuario\n foreach(get_class_methods($this) as $fname) {\n $pos = strpos($fname, \"clean_\");\n if ($pos !== False) {\n $flag = $this->$fname();\n if (!$flag) \n { \n $valid = False;\n echo $fname.\" \";\n }\n }\n }\n echo $valid;\n return $valid;\n }", "private function validate() {\n $this->valid = (1 === count($this->marriages));\n }", "public function validate()\n {\n return $this->validateId()\n && $this->validateCreatedAt()\n && $this->validateOnBoardingPercentage()\n && $this->validateCountApplication()\n && $this->validateCountAcceptedApplications();\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\r\n {\r\n return count($this->listInvalidProperties()) === 0;\r\n }", "public function valid()\n {\n return 0 === count($this->listInvalidProperties());\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }", "public function valid()\n {\n return count($this->listInvalidProperties()) === 0;\n }" ]
[ "0.7714811", "0.7492581", "0.73749787", "0.72615504", "0.7256669", "0.72510725", "0.7190045", "0.71770793", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.7157919", "0.71252364", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293", "0.7124293" ]
0.0
-1
Display a listing of the resource.
public function index(Request $request) { $user = Auth::user(); if($user == null){ return redirect('/'); } $dataLimite = Carbon::today(); $dataLimite->addDays(7); $manutencoes = $this->model->with(['carro', 'carro.modelo'])->where('data_manutencao', '<=', $dataLimite)->get(); // $manutencoes = Manutencao::all(); return view('manutencao.index', compact('manutencoes')); // return response()->json($manutencoes); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\n {\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n $model->u_cms_album_id = $_GET['album'];\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Show the form for creating a new resource.
public function agendar() { $user = Auth::user(); if($user == null){ return redirect('/'); } $carros = new Carro(); $user = Auth::user()->id; // dd($user); $carros = $carros->with('modelo')->where('user_id', '=', $user)->get(); return view('manutencao.agendar', compact('carros')); // return response()->json($carros); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view('resource.create');\n }", "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "public function create()\n {\n return \"Display a form for creating a new catalogue\";\n }", "public function newAction()\n {\n $entity = new Resource();\n $current = $this->get('security.context')->getToken()->getUser();\n $entity->setMember($current);\n $form = $this->createCreateForm($entity);\n\n return array(\n 'nav_active'=>'admin_resource',\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function create()\n {\n return view ('forms.create');\n }", "public function create ()\n {\n return view('forms.create');\n }", "public function create()\n\t{\n\t\treturn view('faith.form');\n\t}", "public function create(NebulaResource $resource): View\n {\n $this->authorize('create', $resource->model());\n\n return view('nebula::resources.create', [\n 'resource' => $resource,\n ]);\n }", "public function create()\n {\n return view(\"request_form.form\");\n }", "public function create()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.create\")) {\n $view = \"admin.{$this->name}.create\";\n } else {\n $view = 'admin.includes.actions.create';\n }\n\n /* Show the form for creating a new resource. */\n return view($view)\n ->with('name', $this->name);\n }", "public function newAction()\n\t{\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => 'Ajouter une nouvelle &eacute;cole'\n\t\t) ) );\n\t}", "public function create()\n {\n return view($this->forms . '.create');\n }", "public function create()\n {\n return view('restful.add');\n }", "public function create()\n {\n $resource = (new AclResource())->AclResource;\n\n //dd($resource);\n return view('Admin.acl.role.form', [\n 'resource' => $resource\n ]);\n }", "public function create()\n {\n return view('admin.createform');\n }", "public function create()\n {\n return view('admin.forms.create');\n }", "public function create()\n {\n return view('backend.student.form');\n }", "public function newAction()\n {\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Nuevo');\n\n $entity = $this->getManager()->create();\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function create()\n {\n return view('client.form');\n }", "public function create()\n {\n // Nos regresa la vista del formulario\n return view('project.form');\n }", "public function create()\n {\n return view('Form');\n }", "public function newAction(){\n \n $entity = new Resourceperson();\n $form = $this->createAddForm($entity);\n\n \n return $this->render('ABCRspBundle:rsp:add.html.twig',array('entity'=>$entity,'form'=> $form->createView()));\n }", "public function createForm()\n\t{\n\t\treturn view('post.new');\n\t}", "public function create()\n {\n return view('admin.form.create', ['form' => new Form]);\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n $title = $this->title;\n $subtitle = \"Adicionar cliente\";\n\n return view('admin.clients.form', compact('title', 'subtitle'));\n }", "public function create()\n {\n return view('backend.schoolboard.addform');\n }", "public function create()\n\t{\n\t\treturn view('info.forms.createInfo');\n\t}", "public function create()\n {\n //\n return view('form');\n }", "public function create()\n {\n return view('rests.create');\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return view(\"Add\");\n }", "public function create(){\n return view('form.create');\n }", "public function create()\n {\n // Show the page\n return view('admin.producer.create_edit');\n }", "public function create()\n {\n\n return view('control panel.student.add');\n\n }", "public function newAction() {\n\t\t\n\t\t$this->view->form = $this->getForm ( \"/admin/invoices/process\" );\n\t\t$this->view->title = $this->translator->translate(\"New Invoice\");\n\t\t$this->view->description = $this->translator->translate(\"Create a new invoice using this form.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"#\", \"label\" => $this->translator->translate('Save'), \"params\" => array('css' => null,'id' => 'submit')),\r\n\t\t\t\t\t\t\t array(\"url\" => \"/admin/invoices/list\", \"label\" => $this->translator->translate('List'), \"params\" => array('css' => null)));\n\t\t$this->render ( 'applicantform' );\n\t}", "public function create()\n {\n $data['action'] = 'pengiriman.store';\n return view('pengiriman.form', $data);\n }", "public function create()\n {\n return $this->cView(\"form\");\n }", "public function newAction()\n {\n // Création de l'entité et du formulaire.\n $client = new Client();\n $formulaire = $this->createForm(new ClientType(), $client);\n \n \n \n // Génération de la vue.\n return $this->render('KemistraMainBundle:Client:new.html.twig',\n array('formulaire' => $formulaire->createView()));\n }", "public function create()\n {\n return view(\"dresses.form\");\n }", "public function create()\n\t{\n\t\treturn View::make('new_entry');\n\t}", "public function createAction()\n {\n// $this->view->form = $form;\n }", "public function create()\n {\n return view('bank_account.form', ['mode' => 'create']);\n }", "public function create()\n {\n return view('fish.form');\n }", "public function create()\n {\n return view('users.forms.create');\n }", "public function create()\n {\n $this->setFormFields($this->getCreateFormFields());\n $form = $this->getCreateForm();\n\n return view($this->getViewName('create'), [\n 'crudSlug' => $this->slug,\n 'form' => $form,\n ]);\n }", "public function create()\n\t{\n\t\treturn view('admin.estadoflete.new');\n\t}", "public function create()\n {\n $person = new Person;\n return view('contents.personform')->with(compact('person') );\n }", "public function createAction(){\n \t$this->view->placeholder('title')->set('Create');\n \t$this->_forward('form');\n }", "public function create()\n {\n Gate::authorize('app.products.create');\n\n return view('backend.products.form');\n }", "public function create()\n {\n return view('essentials::create');\n }", "public function create()\n {\n return view('student.add');\n }", "public function create()\n\t{\n\t\treturn view('loisier/create');\n\t}", "public function create()\n {\n return view('url.form');\n }", "public function newAction()\n {\n $entity = new Facture();\n $factureType = new FactureType();\n\t\t$factureType->setUser($this->get('security.context')->getToken()->getUser());\n $form = $this->createForm($factureType, $entity);\n\n return $this->render('chevPensionBundle:Facture:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function newAction()\n {\n $entity = new Chofer();\n $form = $this->createForm(new ChoferType(), $entity, ['user' => $this->getUser()]);\n\n return $this->render('ChoferesBundle:Chofer:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'css_active' => 'chofer',\n ));\n }", "public function create()\n\t{\n\t\treturn View::make('crebos.create');\n\t}", "public function create() : View\n {\n $fieldset = $this->menuFieldset();\n\n return $this->view('create', [\n 'title' => trans('addons.Aardwolf::titles.create'),\n 'data' => [],\n 'fieldset' => $fieldset->toPublishArray(),\n 'suggestions' => [],\n 'submitUrl' => route('aardwolf.postCreate')\n ]);\n }", "public function create()\n {\n return view('libro.create');\n }", "public function create()\n {\n return view('libro.create');\n }", "public function newAction()\n {\n $entity = new Species();\n $form = $this->createForm(new SpeciesType(), $entity);\n\n return $this->render('InfectBackendBundle:Species:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view('crud/add'); }", "public function create()\n\t{\n\t\treturn View::make('supplier.create');\n\t}", "public function newAction()\n {\n $entity = new Company();\n $form = $this->createForm(new CompanyType(), $entity);\n\n return $this->render('SiteSavalizeBundle:Company:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view(\"List.form\");\n }", "public function index_onCreateForm()\n\t{\n\t\tparent::create();\n\t\treturn $this->makePartial('create');\n\t}", "public function create()\n {\n //load create form\n return view('products.create');\n }", "public function create()\n {\n return view('article.addform');\n }", "public function create()\n {\n // Mengarahkan ke halaman form\n return view('buku.form');\n }", "public function create()\n\t{\n\t\t// load the create form (app/views/material/create.blade.php)\n\t\t$this->layout->content = View::make('material.create');\n\t}", "public function create()\n {\n return view('saldo.form');\n }", "public function create()\n\t\t{\n\t\t\treturn view('kuesioner.create');\n\t\t}", "public function view_create_questioner_form() {\n \t// show all questioner\n \t// send questioner to form\n \treturn view(\"create_questioner\");\n }", "public function newAction() {\n $entity = new Question();\n $form = $this->createCreateForm($entity);\n\n return $this->render('CdlrcodeBundle:Question:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n $data['companies'] = Company::select('id', 'name')->where('status', 1)->orderBy('id', 'desc')->get();\n return view('admin.outlet.outlet_form', $data);\n }", "public function create()\n {\n return view('admin.inverty.add');\n }", "public function create()\n {\n return view('Libro.create');\n }", "public function create()\n {\n $title = trans('entry_mode.new');\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n $breadcrumb='car.create';\n return view('admin.partials.cars.form', compact('breadcrumb'));\n }", "public function create()\n {\n return view(\"familiasPrograma.create\");\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n\t{\n\t\treturn View::make('perusahaans.create');\n\t}", "public function create()\n {\n return view(\"create\");\n }", "public function create()\n\t{\n //echo 'show form';\n\t\treturn View::make('gaans.create');\n\t}", "public function create()\n {\n $title = trans('dormitorybed.new');\n $this->generateParams();\n\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n return view('forming');\n }", "public function formNew() {\n $this->data->options = array(\n 'RJ' => 'Rio de Janeiro',\n 'MG' => 'Minas Gerais',\n 'SP' => 'São Paulo',\n 'ES' => 'Espírito Santo',\n 'BA' => 'Bahia',\n 'RS' => 'Rio Grande do Sul'\n );\n $this->data->action = \"@exemplos/pessoa/save\";\n $this->render();\n }", "public function create()\n {\n \t\n \treturn view('supplies.create');\n\n }", "public function createAction()\n {\n if ($form = $this->processForm()) {\n $this->setPageTitle(sprintf($this->_('New %s...'), $this->getTopic()));\n $this->html[] = $form;\n }\n }", "public function create()\n {\n $page_title = \"Add New\";\n return view($this->path.'create', compact('page_title'));\n }", "public function create()\n {\n // not sure what to do with the form since im\n // using ame partial for both create and edit\n return view('plants.create')->with('plant', new Plant);\n }", "public function create() {\n\t\t$title = 'Create | Show';\n\n\t\treturn view('admin.show.create', compact('title'));\n\t}", "public function create()\n {\n return view('student::students.student.create');\n }", "public function newAction(){\n\t\t$entity = new Reserva();\n\t\t$form = $this->createCreateForm($entity);\n\n\t\treturn $this->render('LIHotelBundle:Reserva:new.html.twig', array(\n\t\t\t'entity' => $entity,\n\t\t\t'form' => $form->createView(),\n\t\t));\n\t}" ]
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.7174283", "0.7150356", "0.71444064", "0.71442676", "0.713498", "0.71283126", "0.7123691", "0.71158516", "0.71158516", "0.71158516", "0.7112176", "0.7094388", "0.7085711", "0.708025", "0.70800644", "0.70571953", "0.70571953", "0.70556754", "0.70396435", "0.7039549", "0.7036275", "0.703468", "0.70305896", "0.7027638", "0.70265305", "0.70199823", "0.7018007", "0.7004984", "0.7003889", "0.7000935", "0.69973785", "0.6994679", "0.6993764", "0.6989918", "0.6986989", "0.6966502", "0.69656384", "0.69564354", "0.69518244", "0.6951109", "0.6947306", "0.69444615", "0.69423944", "0.6941156", "0.6937871", "0.6937871", "0.6936686", "0.69345254", "0.69318026", "0.692827", "0.69263744", "0.69242257", "0.6918349", "0.6915889", "0.6912884", "0.691146", "0.69103104", "0.69085974", "0.69040126", "0.69014287", "0.69012105", "0.6900397", "0.68951064", "0.6893521", "0.68932164", "0.6891899", "0.6891616", "0.6891616", "0.6889246", "0.68880934", "0.6887128", "0.6884732", "0.68822503", "0.68809193", "0.6875949", "0.68739206", "0.68739134", "0.6870358", "0.6869779", "0.68696856", "0.686877" ]
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { // dd($request->all()); $rules = [ 'carro_id' => 'required', 'data_manutencao' => 'required', ]; $feedback = [ 'required' => 'o campo :attribute é obrigatório', ]; $request->validate($rules, $feedback); $carro = new Manutencao(); $carro->user_id = $request->user_id; $carro->carro_id = $request->carro_id; $carro->data_manutencao = $request->data_manutencao; // dd($request->all()); $carro->save(); return redirect('/home')->with('success', 'Agendamento criado com sucesso!'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }", "public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }", "public function createStorage();", "public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "function storeAndNew() {\n $this->store();\n }", "public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}" ]
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437" ]
0.0
-1
Display the specified resource.
public function show($id) { $manutencao = $this->model->with(['carro', 'carro.modelo'])->where('id','=',$id)->get(); // dd($manutencao); return view('manutencao.show', compact('manutencao')); // return response()->json($manutencao); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id);\n }", "private function showResourceable($resourceable)\n {\n save_resource_url();\n\n return $this->view('resources.create_edit')\n ->with('resource', $resourceable)\n ->with('photos', $resourceable->photos)\n ->with('videos', $resourceable->videos)\n ->with('documents', $resourceable->documents);\n }", "function display($resource_name, $cache_id = null, $compile_id = null) {\n\t\t$this->_getResourceInfo($resource_name); // Saves resource info to a Smarty class var for debugging\n\t\t$_t3_fetch_result = $this->fetch($resource_name, tx_smarty_div::getCacheID($cache_id), $compile_id);\n if ($this->debugging) { // Debugging will have been evaluated in fetch\n require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');\n $_t3_fetch_result .= smarty_core_display_debug_console(array(), $this);\n }\n\t\treturn $_t3_fetch_result;\n\t}", "public function show(ResourceSubject $resourceSubject)\n {\n //\n }", "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function retrieve(Resource $resource);", "public function showResource($resouceable, $id)\n {\n $model_name = str_replace('-', ' ',ucwords($resouceable));\n $model_name = str_replace(' ', '',ucwords($model_name));\n\n $resource_type = 'App\\Models\\\\'.$model_name;\n $model = app($resource_type);\n $model = $model->find($id);\n\n return $this->showResourceable($model);\n }", "public function showAction(Ressource $ressource)\n {\n $deleteForm = $this->createDeleteForm($ressource);\n\n return $this->render('ressource/show.html.twig', array(\n 'ressource' => $ressource,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function show(Dispenser $dispenser)\n {\n //\n }", "public function show($id)\n {\n $resource = Resource::find($id);\n dd($resource);\n }", "public function displayAction() {\n\t\tif(is_numeric($this->req_id)) {\n\t\t\tAPI::DEBUG(\"[DefaultController::displayAction()] Getting \" . $this->req_id, 1);\n\t\t\t$this->_view->data['info'] = $this->_model->get($this->req_id);\n\t\t\t$this->_view->data['action'] = 'edit';\n\n\t\t} else {\n\t\t\t$this->_view->data['action'] = 'new';\n\t\t}\n\t\t// auto call the hooks for this module/action\n\t\terror_log(\"Should Call: \" . $this->module .\"/\".$this->action.\"/\".\"controller.php\");\n\t\tAPI::callHooks($this->module, $this->action, 'controller', $this);\n\n\t\t$this->addModuleTemplate($this->module, 'display');\n\n\t}", "public function show(NebulaResource $resource, $item): View\n {\n $this->authorize('view', $item);\n\n return view('nebula::resources.show', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function resource(string $resource, string $controller): void\n {\n $base = $this->plural($resource);\n $entity = '/{'.$resource.'}';\n\n $this->app->get($base, $controller.'@index');\n $this->app->post($base, $controller.'@store');\n $this->app->get($base.$entity, $controller.'@show');\n $this->app->patch($base.$entity, $controller.'@update');\n $this->app->delete($base.$entity, $controller.'@destroy');\n }", "function displayCustom($resource_name, $cache_id = null, $compile_id = null)\n\t{\n\t return $this->display(DotbAutoLoader::existingCustomOne($resource_name), $cache_id, $compile_id);\n\t}", "public function show($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.show\")) {\n $view = \"admin.{$this->name}.show\";\n } else {\n $view = 'admin.includes.actions.show';\n }\n\n /* Displays the specified resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function show($id)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $rules = [\n 'id' => 'required|integer'\n ];\n\n $validator = Validator::make(['id' => $id], $rules);\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n $resource = $this->resourceRepository->fetchResource($id);\n $this->resourceRepository->storeView($id, $currentUser['id']);\n\n $data = [\n 'resource' => $resource,\n 'related_resources' => $this->resourceRepository->getResourcesRelatedTo($resource->id, $resource->mentoring_area_id)\n ];\n\n return APIHandler::response(1, \"Show Resource\", $data);\n }", "public function get(Resource $resource);", "public function showAction()\n {\n $model = $this->_getPhotoModel();\n $photo = $model->fetchEntry($this->getRequest()->getParam('id'));\n\n if (null === $photo) {\n return $this->_forward('notfound', 'error');\n }\n\n $this->view->auth = Zend_Auth::getInstance();\n $this->view->title = $photo->title;\n $this->view->photo = $photo;\n }", "public function show($id)\n {\n //\n $data=Resource::find($id);\n return view('resourceDetails',compact('data'));\n }", "function display() {\n\t\t$view = &$this->getView();\n\t\t$view->display();\n\t}", "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "function show( $resource ){\n\n $where = \"reservation_status <> 'Pending' AND id = {$resource}\";\n $reservation = where( 'reservations', $where );\n $reservation = $reservation[0];\n\n return view('admin/reservation/preview_reservation', compact( 'reservation' ));\n}", "public function show()\n {\n if ($this->twig !== false) {\n $this->twigDefaultContext();\n if ($this->controller) {\n $this->controller->display($this->data);\n }\n echo $this->twig->render($this->twig_template, $this->data);\n } else {\n $filename = $this->findTemplatePath($this->template);\n require($filename);\n }\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function show(rc $rc)\n {\n //\n }", "public function show(Resolucion $resolucion)\n {\n //\n }", "public function showAction(furTexture $furTexture)\n {\n\n return $this->render('furtexture/show.html.twig', array(\n 'furTexture' => $furTexture,\n ));\n }", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show(Resena $resena)\n {\n }", "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function showAction() {\n $docId = $this->getParam('id');\n\n // TODO verify parameter\n\n $document = new Opus_Document($docId);\n\n $this->_helper->layout()->disableLayout();\n\n $this->view->doc = $document;\n $this->view->document = new Application_Util_DocumentAdapter($this->view, $document);\n }", "public function action_display()\r\n\t{\r\n\t\t$event = ORM::factory('event', array('id' => $this->request->param('id')));\r\n\t\r\n\t\tif ( ! $event->loaded())\r\n\t\t{\r\n\t\t\tNotices::error('event.view.not_found');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Can user view this event?\r\n\t\tif ( ! $this->user->can('event_view', array('event' => $event)))\r\n\t\t{\r\n\t\t\t// Error notification\r\n\t\t\tNotices::error('event.view.not_allowed');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Pass event data to the view class\r\n\t\t$this->view->event_data = $event;\r\n\t\t$this->view->user = $this->user;\r\n\t}", "public function execute()\n {\n // HTTP Request Get\n if ($this->type == \"resource\") {\n $action = $this->getResourceAction();\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n } else {\n $action = $this->Request->action;\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n }\n }", "public function show(Resident $resident)\n {\n $this->authorize('admin.resident.show', $resident);\n\n // TODO your code goes here\n }", "public function display()\n {\n echo $this->getDisplay();\n $this->isDisplayed(true);\n }", "public function display()\n\t{\n\t\tparent::display();\n\t}", "public function get_resource();", "public function show()\n\t{\n\t\t\n\t}", "function display() {\n\n\t\t// Check authorization, abort if negative\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t// Get the view\n\t\t$view = $this->getDefaultView();\n\n\t\tif ($view == NULL) {\n\t\t\tthrow new Exception('Display task called, but there is no view assigned to that controller. Check method getDefaultView.');\n\t\t}\n\n\t\t$view->listing = true;\n\n\t\t// Wrap the output of the views depending on the way the stuff should be shown\n\t\t$this->wrapViewAndDisplay($view);\n\n\t}", "public function viewResources()\n {\n $database = new Database();\n\n $resources = $database->getAllActiveResourcesNoLimit();\n\n\n $resourceArray = array();\n $i = 1;\n\n foreach ($resources as $resource) {\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n array_push($resourceArray, $availableResource);\n $i += 1;\n }\n $resourceSize = sizeof($resourceArray);\n $this->_f3->set('resourcesByActive', $resourceArray);\n $this->_f3->set('resourcesSize', $resourceSize);\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }", "public function display($title = null)\n {\n echo $this->fetch($title);\n }", "public function display(){}", "public function show($id)\n\t{\n\t\t//\n\t\t//\n\t\n\t}", "public function viewAction()\n\t{\n\t\t//get Id param from request\n\t\tif (!$id = $this->_getParam('id')) {\n\t\t\t$this->getFlashMessenger()->addMessage('Product ID was not specified');\n\t\t\t$this->getRedirector()->gotoSimple('list');\n\t\t}\n\n\t\t//fetch requested ProductID from DB\n\t\tif (!$this->_model->fetch($id)) {\n\t\t\t$this->render('not-found');\n\t\t} else {\n\t\t\t$this->view->model = $this->_model;\n\t\t}\n\t}", "public function show($id)\n {\n // Get single person\n $person = Person::findOrFail($id);\n\n // Return single person as a resource\n return '<h1>Person Number '.$id.'</h1><br>'.json_encode(new PersonResource($person));\n }", "#[TODO] use self object?\n\tprotected function GET(ResourceObject $resource) {\n#[TODO]\t\tif ($resource->getMTime())\n#[TODO]\t\t\t$this->response->headers->set('Last-modified', gmdate('D, d M Y H:i:s ', $resource->getMTime()) . 'GMT');\n#[TODO]\t\tif ($resource->getCTime())\n#[TODO]\t\t\t$this->response->headers->set('Date', gmdate('D, d M Y H:i:s ', $resource->getCTime()) . 'GMT');\n\n\n#[TODO] handle file streams\n\t\t// get ranges\n#\t\t$ranges = WebDAV::getRanges($this->request, $this->response);\n\n\t\t// set the content of the response\n\t\tif ($resource instanceof ResourceDocument) {\n\t\t\t$this->response->content->set($resource->getContents());\n\t\t\t$this->response->content->setType($resource->getMIMEType());\n\t\t\t$this->response->content->encodeOnSubmit(true);\n\t\t}\n\t}", "public function display() {\n echo $this->render();\n }", "public function show($id)\n\t{\n\t//\n\t}", "public function show($id)\n\t{\n\t//\n\t}", "function Fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)\n {\n return $this->_smarty->fetch($resource_name, $cache_id, $compile_id, $display);\n }", "public function show($id)\n {\n //\n $this->_show($id);\n }", "public function show()\n\t{\n\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {}", "static public function showCallback(O_Dao_Renderer_Show_Params $params) {\r\n\t\t/* @var $r R_Mdl_Resource */\r\n\t\t$r = $params->record();\r\n\t\t// Setting layout title\r\n\t\t$params->layout()->setTitle($r->getPageTitle());\r\n\r\n?><h1><?=$r->title?></h1><div id=\"resource\"><?\r\n\t\tif($r->getContent()) {\r\n\t\t\t// page has its own content -- show it\r\n\t\t\t$r->getContent()->show($params->layout(), \"content\");\r\n\t\t} else {\r\n\t\t\t// It is a post unit, show all childs\r\n\t\t\tif($r->is_unit == 1) {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"content\");\r\n\r\n\t\t\t// It is a folder with several units, show paginator\r\n\t\t\t} elseif($r->show_def == \"last-units\") {\r\n\t\t\t\tlist($type, $perpage) = explode(\":\", $r->show_def_params);\r\n\t\t\t\t/* @var $p O_Dao_Paginator */\r\n\t\t\t\t$p = $r->addQueryAccessChecks($r->getChilds())->test(\"is_unit\", 1)->getPaginator(array($r, \"getPageUrl\"), $perpage);\r\n\t\t\t\t$p->show($params->layout(), $type);\r\n\t\t\t// It is a folder with subfolders, boxes, contents. Show one childs level\r\n\t\t\t} else {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"on-parent-page\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n?></div><?\r\n\t}", "public function show($id)\r\n\t{\r\n\t\t//\r\n\r\n\r\n\r\n\t}", "public function show($resourceId, $eventId)\n {\n $routes = $this->routes;\n\n $eventable = $this->getEventableRepository()->model()->findOrFail($resourceId);\n\n if (method_exists($eventable, 'events')) {\n $event = $eventable->events()->find($eventId);\n\n if ($event) {\n $apiObject = $this->event->findApiObject($event->api_id);\n\n return view('events.eventables.show', compact('routes', 'eventable', 'event', 'apiObject'));\n }\n }\n\n abort(404);\n }", "public abstract function display();", "abstract public function resource($resource);", "public function show($id)\r\r\n\t{\r\r\n\t\t//\r\r\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show(Response $response)\n {\n //\n }", "public function show()\n {\n return auth()->user()->getResource();\n }", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}" ]
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245", "0.60389996", "0.6016584", "0.598783", "0.5961788", "0.59606946", "0.5954321", "0.59295714", "0.59182066", "0.5904556", "0.59036547", "0.59036547", "0.59036547", "0.5891874", "0.58688277", "0.5868107", "0.58676815", "0.5851883", "0.58144855", "0.58124036", "0.58112013", "0.5803467", "0.58012545", "0.5791527", "0.57901084", "0.5781528", "0.5779676", "0.5757105", "0.5756208", "0.57561266", "0.57453394", "0.57435393", "0.57422745", "0.5736634", "0.5736634", "0.5730559", "0.57259274", "0.5724891", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5718969", "0.5713412", "0.57091093", "0.5706405", "0.57057405", "0.5704541", "0.5704152", "0.57026845", "0.57026845", "0.56981397", "0.5693083", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962" ]
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { $manutencao = $this->model->with(['carro', 'carro.modelo'])->where('id','=',$id)->get(); // dd($manutencao); return view('manutencao.edit', compact('manutencao')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.edit\")) {\n $view = \"admin.{$this->name}.edit\";\n } else {\n $view = 'admin.includes.actions.edit';\n }\n\n /* Displays the edit resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function edit(NebulaResource $resource, $item): View\n {\n $this->authorize('update', $item);\n\n return view('nebula::resources.edit', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function edit() {\r\n $id = $this->api->getParam('id');\r\n\r\n if ($id) {\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n }\r\n $object = $this->model->find_by_id($id);\r\n\r\n $this->api->loadView('contact-form', array('row' => $object));\r\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function edit()\n {\n return view('hirmvc::edit');\n }", "public function editformAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\n\t}", "public function edit() {\n $id = $this->parent->urlPathParts[2];\n // pass name and id to view\n $data = $this->parent->getModel(\"fruits\")->select(\"select * from fruit_table where id = :id\", array(\":id\"=>$id));\n $this->getView(\"header\", array(\"pagename\"=>\"about\"));\n $this->getView(\"editForm\", $data);\n $this->getView(\"footer\");\n }", "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "public function edit($id)\n {\n $model = $this->modelObj;\n $formObj = $model::findOrFail($id);\n $data['formObj'] = $formObj;\n return view($this->veiw_base . '.edit', $data);\n }", "public function createEditForm(Resourceperson $entity){\n \n $form = $this->createForm(new ResourcepersonType(), $entity, array(\n 'action' => $this->generateUrl('rsp_update', array('id' => $entity->getRpId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update','attr'=> array(\n 'class'=>'btn btn primary'\n )));\n\n return $form;\n }", "private function createEditForm(Resource $entity)\n {\n $form = $this->createForm(new ResourceType(), $entity, array(\n 'action' => $this->generateUrl('social_admin_resource_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => '保存','attr'=>[\n 'class'=>'btn btn-primary'\n ]));\n\n return $form;\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function editAction()\n {\n if ($form = $this->processForm()) {\n if ($this->useTabbedForms && method_exists($this, 'getSubject')) {\n $data = $this->getModel()->loadFirst();\n $subject = $this->getSubject($data);\n $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));\n } else {\n $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));\n }\n $this->html[] = $form;\n }\n }", "public function edit($id)\n {\n $this->data['entity'] = GS_Form::where('id', $id)->firstOrFail();\n return view('admin.pages.forms.edit', $this->data);\n }", "public function edit($id)\n\t{\n\t\t// get the fbf_presenca\n\t\t$fbf_presenca = FbfPresenca::find($id);\n\n\t\t\n\t\t// show the edit form and pass the fbf_presenca\n\t\t$this->layout->content = View::make('fbf_presenca.edit')\n->with('fbf_presenca', $fbf_presenca);\n\t}", "public function edit($id)\n {\n $data = $this->model->find($id);\n\n return view('admin.backends.employee.form.edit',compact('data'));\n }", "public function edit($model, $form);", "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "public function edit($id)\n\t{\n\t\t$faith = Faith::find($id);\n \n return view('faith.form')->with('faith', $faith);\n\n\t}", "public function edit()\n { \n return view('admin.control.edit');\n }", "public function edit(Form $form)\n {\n //\n }", "public function edit()\n {\n return view('common::edit');\n }", "public function edit($id)\n {\n $resource = (new AclResource())->AclResource;\n $roleResource = AclRole::where('role', $id)->get(['resource'])->toArray();\n $roleResource = Arr::pluck($roleResource, 'resource');\n return view('Admin.acl.role.form', [\n 'role' => $id,\n 'resource' => $resource,\n 'roleResource' => $roleResource,\n ]);\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\r\n {\r\n return view('petro::edit');\r\n }", "public function edit($id)\n {\n // show form edit user info\n }", "public function edit()\n {\n return view('escrow::edit');\n }", "public function edit($id)\n {\n $resource = ResourceManagement::find($id);\n\n $users = User::get();\n // Redirect to user list if updating user wasn't existed\n if ($resource == null || $resource->count() == 0) {\n return redirect()->intended('/resource-management');\n }\n\n return view('resources-mgmt/edit', ['resource' => $resource, 'users' => $users]);\n }", "public function edit()\n {\n return view('commonmodule::edit');\n }", "public function editAction()\n\t{\n\t\t$params = $this->data->getParams();\n\t\t$params = $this->valid->clearDataArr($params);\n\t\tif (isset($params['id']))\n\t\t{\n\t\t\t$this->employee->setFlag(true);\n\t\t}\n\t\tif (isset($_POST['submit']))\n\t\t{\n\t\t\t$action = $this->valid->clearDataArr($_POST);\n\t\t\t$this->employee->setDataArray($action);\n\t\t\theader('Location: ' . PATH . 'Employee/index/', true, 303);\n\t\t}\n\t\t$employee = $this->employee->setAction('edit');\n\t\t$this->view->addToReplace($employee);\n\t\t$this->listEmployee();\n\t\t$this->arrayToPrint();\n\t}", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit(form $form)\n {\n //\n }", "public function actionEdit($id) { }", "public function edit()\n {\n return view('admincp::edit');\n }", "public function edit()\n {\n return view('scaffold::edit');\n }", "public function edit($id)\n {\n $header = \"Edit\";\n\t\t$data = Penerbit::findOrFail($id);\n\t\treturn view('admin.penerbit.form', compact('data','header'));\n }", "public function edit()\n {\n return view('Person.edit');\n }", "public function edit($id)\n {\n $data = Form::find($id);\n return view('form.edit', compact('data'));\n }", "public function edit($id)\n\t{\n\t\t$career = $this->careers->findById($id);\n\t\treturn View::make('careers._form', array('career' => $career, 'exists' => true));\n\t}", "public function edit(Flight $exercise, FlightResource $resource)\n {\n return $this->viewMake('adm.smartcars.exercise-resources.edit')\n ->with('flight', $exercise)\n ->with('resource', $resource);\n }", "public function edit($id)\n\t{\n\t\t// get the material\n\t\t$material = Material::find($id);\n\n\t\t// show the edit form and pass the material\n\t\t$this->layout->content = View::make('material.edit')\n\t\t\t->with('material', $material);\n\t}", "public function edit($id, Request $request)\n {\n $formObj = $this->modelObj->find($id);\n\n if(!$formObj)\n {\n abort(404);\n } \n\n $data = array();\n $data['formObj'] = $formObj;\n $data['page_title'] = \"Edit \".$this->module;\n $data['buttonText'] = \"Update\";\n\n $data['action_url'] = $this->moduleRouteText.\".update\";\n $data['action_params'] = $formObj->id;\n $data['method'] = \"PUT\"; \n\n return view($this->moduleViewName.'.add', $data);\n }", "public function edit()\n {\n $id = $this->getId();\n return view('panel.user.form', [\n 'user' => $this->userRepository->findById($id),\n 'method' => 'PUT',\n 'routePrefix' => 'profile',\n 'route' => 'profile.update',\n 'parameters' => [$id],\n 'breadcrumbs' => $this->getBreadcrumb('Editar')\n ]);\n }", "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getParameter('id');\n\t\t$product = $this->model->product->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('product/edit', [\n\t\t\t'product' => $product\n\t\t]);\n\t}", "public function edit($id)\n {\n //\n $data = Diskon::find($id);\n\n $form = $this->form;\n $edit = $this->edit;\n $field = $this->field;\n $page = $this->page;\n $id = $id;\n $title = $this->title;\n return view('admin/page/'.$this->page.'/edit',compact('form','edit','data','field','page','id','title'));\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "public function editAction()\n {\n $robot = Robots::findFirst($this->session->get(\"robot-id\"));\n if ($this->request->isGet()) {\n $this->tag->prependTitle(\"Редактировать робота :: \");\n $user = $this->session->get(\"auth-id\");\n if (!$robot) {\n $this->flashSession->error(\n \"Робот не найден\"\n );\n return $this->response->redirect(\"users/usershow/$user->name\");\n }\n\n }\n\n $this->view->form = new RobotForm(\n $robot,\n [\n \"edit\" => true,\n ]\n );\n }", "public function editAction()\n {\n $form = new $this->form();\n\n $request = $this->getRequest();\n $param = $this->params()->fromRoute('id', 0);\n\n $repository = $this->getEm()->getRepository($this->entity);\n $entity = $repository->find($param);\n\n if ($entity) {\n\n $form->setData($entity->toArray());\n\n if ( $request->isPost() ) {\n\n $form->setData($request->getPost());\n\n if ( $form->isValid() ) {\n\n $service = $this->getServiceLocator()->get($this->service);\n $service->update($request->getPost()->toArray());\n\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n }\n } else {\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n\n return new ViewModel(array('form' => $form, 'id' => $param));\n\n }", "public function edit($id)\n\t{\n\t\t$SysApplication = \\Javan\\Dynaflow\\Domain\\Model\\SysApplication::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysApplicationForm', [\n \t'method' => 'POST',\n \t'url' => 'sysapplication/update/'.$id,\n \t'model' => $SysApplication,\n \t'data' => [ 'flow_id' => $SysApplication->flow_id]\n \t]);\n\t\treturn View::make('dynaflow::sysapplication.form', compact('form', 'SysApplication'));\n\t}", "public function editAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif (!$item) {\n\t\t\t$item = $model->createRow();\n\t\t}\n\t\t$form = $item->getForm();\n\t\tif ($this->_request->isPost()) {\n\t\t\t$newId = $form->populate($this->_request->getPost())->save();\n\t\t\tif ($newId) {\n\t\t\t\t$this->_helper->flashMessenger('Saved successfully!');\n\t\t\t\t$this->_helper->redirector('edit', null, null, array('id' => $newId, 'model' => $modelName));\n\t\t\t}\n\t\t}\n\t\t$this->view->form = $form;\n\t\t$this->view->messages = $this->_helper->flashMessenger->getMessages();\n\t}", "public function edit($id)\n {\n return view('models::edit');\n }", "public function edit()\n {\n return view('home::edit');\n }", "public function editAction()\n {\n $id = $this->params()->fromRoute('id');\n $entity = $this->entityManager->find(Entity\\CourtClosing::class, $id);\n if (! $entity) {\n // to do: deal with it\n }\n $form = $this->getForm('update');\n $form->bind($entity);\n if ($this->getRequest()->isPost()) {\n return $this->post();\n }\n\n return new ViewModel(['form' => $form]);\n }", "public function editAction($id)\n {\n $entity = $this->getManager()->find($id);\n\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Editar');\n\n if (!$entity) {\n throw $this->createNotFoundException('No se ha encontrado el elemento');\n }\n\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit(Form $form)\n {\n return view('admin.forms.edit', compact('form'));\n }", "public function editAction()\n {\n $form = MediaForm::create($this->get('form.context'), 'media');\n $media = $this->get('media_manager.manager')->findOneById($this->get('request')->get('media_id'));\n \n $form->bind($this->get('request'), $media);\n \n return $this->render('MediaManagerBundle:Admin:form.html.twig', array('form' => $form, 'media' => $media));\n }", "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CdlrcodeBundle:Question')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Question entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('CdlrcodeBundle:Question:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('consultas::edit');\n }", "public function edit(DirectorFormBuilder $form, $id)\n {\n return $form->render($id);\n }", "public function edit()\n {\n return view('dashboard::edit');\n }", "public function edit($id){\n $rfid = Rfid::find($id);\n\n //load form view\n return view('rfids.edit', ['rfid' => $rfid]);\n }", "public function edit($id)\n {\n\n // retrieve provider\n $provider = Provider::findOrFail($id);\n\n // return form with provider\n return view('backend.providers.form')->with('provider', $provider);\n }", "public function edit(Question $question)\n {\n $this->employeePermission('application' , 'edit');\n $question->chooses;\n $action = 'edit';\n return view('admin.setting.question_form', compact('action' , 'question'));\n }", "public function edit() {\n return view('routes::edit');\n }", "public function edit($id)\n {\n $this->data['product'] = Product::find($id);\n $this->data['category'] = Category::arrForSelect();\n $this->data['title'] = \" Update Prouct Details\";\n $this->data['mode'] = \"edit\";\n\n return view('product.form', $this->data);\n }", "public function edit(ClueEnFormBuilder $form, $id): Response\n {\n return $form->render($id);\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BaseBundle:Feriado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Feriado entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BaseBundle:Feriado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('cataloguemodule::edit');\n }", "public function edit($articulo_id)\n {\n $titulo = \"Editar\";\n return View(\"articulos.formulario\",compact('titulo','articulo_id'));\n }", "public function edit($id)\n {\n $resources = User::find(session('usuario_id'))->resources;\n $languages = Language::pluck('name', 'id');\n $types = Type::pluck('name', 'id');\n $method = 'PATCH';\n\n $recurso = Resource::find($id);\n $url = \"/resource/$recurso->id\";\n\n return view('resources.resources', compact('resources', 'languages', 'types', 'method', 'url', 'recurso'));\n }", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit]);\n }", "public function displayEditForm(Employee $employee){\n return view('employee.displayEditForm',['employee'=>$employee]);\n }", "public function edit()\n {\n return view('website::edit');\n }", "public function edit()\n {\n return view('inventory::edit');\n }", "public function edit()\n {\n return view('initializer::edit');\n }", "public function editAction()\n {\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "public function edit($id)\n {\n return view('backend::edit');\n }", "public function edit($id)\n {\n //dd($id);\n $familiaPrograma= FamiliaPrograma::findOrFail($id);\n return view('familiasPrograma.edit', compact('familiaPrograma'));\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n $user = User::where('id', $id)->first();\n\n\n return view('users.forms.update', compact('user'));\n }", "public function editAction($id)\n\t{\n\t\t$school = School::find( $id );\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => sprintf( 'Modifier \"%s\"', $school->name ),\n\t\t\t'entity' => $school\n\t\t) ) );\n\t}", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit ]);\n }", "public function edit(Person $person) {\n\t\t$viewModel = new PersonFormViewModel();\n\t\treturn view('person.form', $viewModel);\n\t}", "public function edit($id)\n {\n \t$product = Product::find($id);\n \treturn view('admin.products.edit')->with(compact('product')); // formulario de actualizacion de datos del producto\n }", "public function edit_person($person_id){\n \t$person = Person::find($person_id);\n \treturn view('resource_detail._basic_info.edit',compact('person'));\n }", "public function edit($id)\n {\n $professor = $this->repository->find($id);\n return view('admin.professores.edit',compact('professor'));\n }", "public function edit($id)\n {\n $data = Restful::find($id);\n return view('restful.edit', compact('data'));\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('MedecinIBundle:Fichepatient')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Fichepatient entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('MedecinIBundle:Fichepatient:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return $this->form->render('mconsole::personal.form', [\n 'item' => $this->person->query()->with('uploads')->findOrFail($id),\n ]);\n }", "public function edit($id)\n\t{\n\t\t // get the project\n $project = Project::find($id);\n\n // show the edit form and pass the project\n return View::make('logicViews.projects.edit')->with('project', $project);\n\t}" ]
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.68336326", "0.6811471", "0.68060875", "0.68047357", "0.68018645", "0.6795623", "0.6791791", "0.6791791", "0.6787701", "0.67837197", "0.67791027", "0.677645", "0.6768301", "0.6760122", "0.67458534", "0.67458534", "0.67443407", "0.67425704", "0.6739898", "0.6735328", "0.6725465", "0.6712817", "0.6693891", "0.6692419", "0.6688581", "0.66879624", "0.6687282", "0.6684741", "0.6682786", "0.6668777", "0.6668427", "0.6665287", "0.6665287", "0.66610634", "0.6660843", "0.66589665", "0.66567147", "0.66545695", "0.66527975", "0.6642529", "0.6633056", "0.6630304", "0.6627662", "0.6627662", "0.66192114", "0.6619003", "0.66153085", "0.6614968", "0.6609744", "0.66086483", "0.66060555", "0.6596137", "0.65950733", "0.6594648", "0.65902114", "0.6589043", "0.6587102", "0.65799844", "0.65799403", "0.65799177", "0.657708", "0.65760696", "0.65739626", "0.656931", "0.6567826", "0.65663105", "0.65660435", "0.65615267", "0.6561447", "0.6561447", "0.65576506", "0.655686", "0.6556527", "0.6555543", "0.6555445", "0.65552044", "0.65543956", "0.65543705", "0.6548264", "0.65475875", "0.65447706" ]
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { $rules = [ 'data_manutencao' => 'required', ]; $feedback = [ 'required' => 'o campo :attribute é obrigatório', ]; $request->validate($rules, $feedback); $manutencao = $this->model->find($id); $manutencao->fill($request->all()); $manutencao->save(); return redirect('/home')->with('success', 'Agendamento Atualizado com sucesso!'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ]\n ]);\n }", "public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required|string',\n 'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,ppt,txt',\n ]);\n\n $resource->update($request->all());\n\n if ( $request->hasFile('file') ) {\n $resource = 'resource-'.time().'.'.$request->file('file')->extension();\n $request->file->storeAs('resources', $resource,'public');\n $resource->file = $resource;\n }\n\n if ( $resource->save() ) {\n return redirect()->route('admin.resources.index')->with('success', 'Resource updated');\n } else {\n return redirect()->route('admin.resources.index')->with('error', 'Something went wrong');\n }\n }", "public function update(Request $request, Resource $resource)\n {\n //\n }", "public function updateStream($resource);", "public function update(Request $request, Storage $storage)\n {\n $storage->product_id = $request->product_id;\n $storage->amount = $request->amount;\n\n $storage->save();\n\n return redirect()->route('storages.index');\n }", "protected function updateImageResource($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n $this->deleteResource($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update(Storage $storage, UpdateStorageRequest $request)\n {\n $this->storage->update($storage, $request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource updated', ['name' => trans('product::storages.title.storages')]));\n }", "public function update(StoreStorage $request, Storage $storage)\n {\n $storage->fill($request->all())->save();\n $request->session()->flash('alert-success', 'Запись успешно обновлена!');\n return redirect()->route('storage.index');\n }", "public function update_asset($id, Request $request){\n \t\tif(!Auth::user()){\n\t\t\treturn redirect('/');\n\t\t}\n \t\t$asset = Storage::find($id);\n \t\t$asset->name = $request->name;\n \t\t$asset->quantity = $request->quantity;\n \t\t$asset->category_id = $request->category;\n \t\tif($request->file('image') != null){\n\t\t\t$image = $request->file('image');\n\t\t\t$image_name = time(). \".\" . $image->getClientOriginalExtension();\n\t\t\t$destination = \"images/\";\n\t\t\t$image->move($destination, $image_name);\n\t\t\t$asset->image_url = $destination.$image_name;\n\t\t} \n\t\t$asset->save();\n\t\tsession()->flash('success_message', 'Item Updated successfully');\n\t\treturn redirect(\"/storage\");\n \t}", "public function update(Request $request, Flight $exercise, FlightResource $resource)\n {\n $request->validate([\n 'display_name' => 'required|string|max:100',\n 'file' => 'nullable|file|max:10240|mimes:pdf',\n 'uri' => 'nullable|url|max:255',\n ]);\n\n if ($resource->type === 'file' && $request->file('file')) {\n Storage::drive('public')->delete($resource->resource);\n $resource->resource = $request->file('file')->store('smartcars/exercises/resources', ['disk' => 'public']);\n } elseif ($resource->type === 'uri' && $request->input('uri')) {\n $resource->resource = $request->input('uri');\n }\n\n $resource->save();\n\n return redirect()->route('adm.smartcars.exercises.resources.index', $exercise)\n ->with('success', 'Resource edited successfully.');\n }", "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'title' => 'required|string',\n 'content' => 'required|string',\n 'mentoring_area_id' => 'required|integer',\n 'featured_image_uri' => 'string',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n \n $resource = Resource::find($id);\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->featured_image_uri = $request->get('featured_image_uri');\n $resource->updated_at = \\Carbon\\Carbon::now();\n $resource->mentoring_area_id = $request->get('mentoring_area_id');\n $resource->save();\n $data['resource'] = $resource;\n return APIHandler::response(1, \"Resource has been updated\");\n }", "protected function updateVideoResource($fileName, $videoId, $storage, $premium=1)\n {\n //Get video name and storage location for video\n $video = Video::where('id', '=', $videoId)->first();\n\n //Check the storage medium\n if($storage == 'vimeo' || $storage == 'youtube')\n {\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n else\n {\n if($video['storage'] == 'local' || $video['storage'] == 's3')\n {\n //Delete old video\n $this->deleteResource($video->name, $video->storage);\n }\n \n //Store the new video\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n }", "public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }", "public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }", "public function update($path);", "public function update($id, $resource)\n {\n SCA::$logger->log(\"Entering update()\");\n //check whether it is an sdo or an xml string.\n if ($resource instanceof SDO_DataObjectImpl) {\n //if the thing received is an sdo convert it to xml\n if ($this->xml_das !== null) {\n $xml = SCA_Helper::sdoToXml($this->xml_das, $resource);\n } else {\n throw new SCA_RuntimeException(\n 'Trying to update a resource with SDO but ' .\n 'no types specified for reference'\n );\n }\n } else {\n $xml = $resource;\n }\n\n $slash_if_needed = ('/' === $this->target_url[strlen($this->target_url)-1])?'':'/';\n\n $handle = curl_init($this->target_url.$slash_if_needed.\"$id\");\n curl_setopt($handle, CURLOPT_HEADER, false);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($handle, CURLOPT_CUSTOMREQUEST, \"PUT\");\n curl_setopt($handle, CURLOPT_POSTFIELDS, $xml);\n\n //replace with Content-Type: atom whatever\n $headers = array(\"User-Agent: SCA\",\n \"Content-Type: text/xml;\",\n \"Accept: text/plain\");\n curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);\n\n $result = curl_exec($handle);\n\n $response_http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\n curl_close($handle);\n\n $response_exception = $this->buildResponseException($response_http_code, '200');\n\n if ($response_exception != null) {\n throw $response_exception;\n } else {\n //update does not return anything in the body\n return true;\n }\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'link' => 'required',\n 'description' => 'required'\n ]);\n\n $resource = Resource::find($id);\n $resource->name = $request->name;\n $resource->type_id = $request->type_id;\n $resource->has_cost = ($request->has('has_cost')) ? 1 : 0;\n $resource->language_id = $request->language_id;\n $resource->link = $request->link;\n $resource->description = $request->description;\n $resource->tags = '';\n\n $resource->save();\n //return back()->with('success', 'Recurso actualizado satisfactoriamente');\n return redirect('/resource')->with('success', 'Recurso actualizado satisfactoriamente');\n }", "public function update(Request $request, $id)\n {\n $oldProduct = Product::findOrFail($id);\n $data = $request->all();\n if(isset($data['img'])){\n // $file = $request->file('photo');\n // return $file;\n $imgName = time().'.'.$request->img->extension();\n $data['img'] = $imgName;\n // Storage::putFile('spares', $file);\n $path = $request->img->storeAs('public/uploads', $imgName); //in Storage\n\n //delete old file\n if($oldProduct->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$oldProduct->img);\n // return 'deleted';\n }\n \n }else{\n $data['img'] = $oldProduct->img;\n }\n $oldProduct->update($data);\n return redirect()->route('product.index'); \n\n }", "public function update($request, $id) {\n\t\t\t$image = $request['photo'];\n\t\t\tif($image !== null) {\n\t\t\t\t$name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n\t\t\t\t\\Image::make($request['photo'])->save(public_path('storage/products/').$name);\n\t\t\t\t$request['photo'] = $name;\n\t\t\t} else {\n\t\t\t\t$currenPhoto = Product::all()->where('id', $id)->first();\n\t\t\t\t$request['photo'] = $currenPhoto->photo;\n\t\t\t}\n return $this->product->update($id, $request);\n\t}", "public function updateStream($path, $resource, Config $config)\n {\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n\n // STEP 1: Update or insert this resource as a node:\n $this->logger->addDebug(\"Updating/Inserting Node into Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} }) SET a.title = {title}, a.version = {version}, a.href = {href}\n return a;\",\n [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n );\n\n // Check to see if anything was added\n $records = $result->getRecords();\n if (empty($records)) {\n // Must create this record instead\n $result = $this->connector->run(\"CREATE (n:Resource) SET n += {infos};\",\n [\n \"infos\" => [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n ]\n );\n }\n\n // STEP 2: Update or insert the resource's link to holding repository\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} })-[r:HIRELATION]->()\n return r;\",\n [\n 'id' => $resource->getID(),\n ]\n );\n $records = $result->getRecords();\n if (!empty($records)) {\n // delete the one there so that we can add the correct one (just in case)\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}})-[r:HIRELATION]->() delete r;\",\n [\n 'id' => $resource->getID()\n ]\n );\n\n }\n\n // If resource has a repository, then add a link\n if ($resource->getRepository() != null && $resource->getRepository()->getID() != null) {\n $this->connector->run(\"MATCH (a:Identity {id: {id1} }) MATCH (b:Resource {id: {id2} }) CREATE (b)-[r:HIRELATION]->(a);\",\n [\n 'id1' => (string) $resource->getRepository()->getID(),\n 'id2' => $resource->getID()\n ]);\n }\n }\n }", "public function update($data) {}", "public function update($data) {}", "public function putStream($resource);", "public function update(Request $request, NebulaResource $resource, $item): RedirectResponse\n {\n $this->authorize('update', $item);\n\n $validated = $request->validate($resource->rules(\n $resource->editFields()\n ));\n\n $resource->updateQuery($item, $validated);\n\n $this->toast(__(':Resource updated', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function update($entity);", "public function update($entity);", "public function setResource($resource);", "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "public function isUpdateResource();", "public function update(Request $request, $id)\n {\n $device = Device::findOrFail($id);\n $device->fill($request->all());\n if ($request->hasFile('icon')) {\n if ($device->hasMedia('icon')) {\n $device->deleteMedia($device->getFirstMedia('icon'));\n }\n $device->addMediaFromRequest('icon')->toMediaCollection('icon');\n }\n $device->save();\n return new DeviceResource($device);\n }", "public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n \n $product->update($request->all());\n \n $file = $request->file('url_image')->move('upload', $request->file('url_image')->getClientOriginalName());\n\n Product::where('id',$id)->update(['url_image'=>$file]);\n \n \\Session::flash('flash_message', 'Edit product successfully.'); \n \n //cũ : return redirect('articles');\n return redirect()->route('products.index');\n }", "public function store($data, Resource $resource);", "public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n\n\n $product->fill($request->all())->save();\n\n //Verificamos que tenemos una imagen\n if($request->file('photo_1')){\n\n\n //En caso de tenerla la guardamos en la clase Storage en la carpeta public en la carpeta image.\n $path = Storage::disk('public')->put('photo_1',$request->file('photo_1'));\n\n //Actualizamos el Post que acabamos de crear\n $product->fill(['photo_1' => asset($path)])->save();\n\n }\n\n\n return redirect()->route('products.index')->with('info', 'Producto actualizado exitosamente!');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if (\\Input::hasFile('image')) {\n $this->imgsave($request, $product);\n }\n\n\n if (!empty($request->input('tags'))) {\n $product->tags()->sync($request->input('tags'));\n } else {\n $product->tags()->detach();\n }\n\n $product->update($request->all());\n\n return redirect()->to('dashboard/product')->with('message', 'update success');\n }", "public function put($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'PUT');\n }", "public function update($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'updateValidations')) {\n $this->request->validate($this->updateValidations());\n }\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Update the specified resource */\n $resource->update(Input::all());\n\n /* Redirect back */\n return redirect()->back()\n ->with(\n 'info',\n Lang::has($this->name . '.resource-updated') ?\n $this->name . '.resource-updated' :\n 'messages.alert.resource-updated'\n );\n }", "public function putResponse($request)\n {\n $idSearched = $this->searcher->searchResourceIndex(\n $request, \n $this->db[$request['resource']]\n );\n if ($idSearched) {\n $resource = $this->db[$request['resource']][$idSearched];\n $bodyInput = json_decode($this->standardInput, true);\n $resource = BodyRequest::canApplyBody($bodyInput);\n $resource['id'] = (int)$request['param'];\n foreach($resource as $key => $value) {\n $this->db[$request['resource']][$idSearched][$key] = $value;\n }\n file_put_contents(DB_PATH, json_encode($this->db));\n }\n }", "public function update(Storedataset $request, dataset $dataset){\n $dataset->title = $request->input('title');\n $dataset->caption = $request->input('caption');\n $dataset->file_url = $request->input('file_url');\n $dataset->type = $request->input('type');\n $dataset->status = $request->input('status');\n $dataset->publication_id = $request->input('publication_id');\n\n $dataset->save();\n\n return redirect()->route('datasets.show', ['dataset' => $dataset]);\n }", "public function update(Request $request, $id)\n\n {\n ResourceManagement::findOrFail($id);\n $constraints = [\n 'title' => 'required|max:100',\n 'url'=> 'required|max:191',\n 'content' => 'required'\n ];\n\n $input = [\n 'title' => $request['title'],\n 'url' => $request['url'],\n 'content' => $request['content'],\n 'type' => $request['type'],\n 'level' => $request['level'],\n 'user_id' => $request['user']\n ];\n// $this->validate($input, $constraints);\n ResourceManagement::where('id', $id)\n ->update($input);\n\n return redirect()->intended('/resource-management');\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'description' => 'required|string',\n 'price' => 'required|numeric',\n 'reference'=>'required'\n ]);\n \n $product = Product::find($id);\n $product->update($request->all());\n \n $im = $request->file('picture');\n \n if (!empty($im)) {\n \n $link = $request->file('picture')->store('images');\n \n \n $product->update([\n 'url_image' => $link,\n ]);\n } \n //dump($request->all());\n return redirect()->route('product.index')->with('message', 'Article modifié avec succès');\n }", "public function update(StoreOrUpdateAsset $request, Asset $asset)\n {\n if (Storage::exists($asset->path) && !Storage::delete($asset->path)) {\n abort(500);\n }\n\n $file = $request->file('file');\n $path = $file->store('assets');\n\n if (!$path) {\n abort(500);\n }\n\n // We wonder if we should delete the old file or not...\n\n $asset->name = $file->getClientOriginalName();\n $asset->size = $file->getSize();\n $asset->type = $file->getMimeType();\n $asset->path = $path;\n\n if ($asset->save()) {\n flash('The asset has been saved.')->success();\n } else {\n abort(500);\n }\n\n return redirect('/admin/assets');\n }", "public function update(FoodRecipeRequest $request, $id)\n {\n $foodRecipe = FoodRecipe::with('ingredients','cookingProcesses')->findOrFail($id);\n if ($request->input('name')!= null)\n $foodRecipe->name = $request->input('name');\n if ($request->input('detail')!= null)\n $foodRecipe->detail = $request->input('detail');\n if($request->file('photo') != null) {\n $old_file = $foodRecipe->photo;\n if($old_file != null){\n $path = public_path().'/storage/'.$old_file;\n File::delete($path);\n }\n $file = $request->file('photo');\n $name = '/foodRecipe/' . Carbon::now()->format(\"dnY-Hisu\") . \".\" . $file->extension();\n $file->storePubliclyAs('public', $name);\n $foodRecipe->photo = $name;\n }\n $foodRecipe->save();\n return new FoodRecipeResource($foodRecipe);\n }", "public function update(StorageTypeRequest $request, $id)\n {\n try {\n $this->service->updateStorageType($request, $id);\n return $this->NoContent();\n } catch (EntityNotFoundException $e) {\n \\Log::error($e->getMessage());\n return $this->NotFound($e->getMessage());\n } catch(\\QueryException $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n } catch(Exception $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n }\n }", "public function update(Request $request, $id)\n {\n //validation\n $this->validate(request(),[\n 'image' => 'image'\n ]);\n\n $slider = HomeSliders::find($id);\n \n $slider->link = request('link');\n\n //get old image to delete if updated\n $oldImage = request('oldImage');\n //get the new image\n $NewImage=$request->file('image');\n\n if($NewImage)\n {\n $filenameToStore= helpers::updatePhoto('image','homeSliders',$request);\n $slider->image=$filenameToStore;\n\n Storage::delete('public/Images/homeSliders/'.$oldImage);\n }\n\n $slider->save();\n\n Alert::success(config('app.name'), trans('messages.Updated Successfully') );\n return redirect()->route('admin.homeSlider',$slider->type);\n }", "public function update(Qstore $request, $id)\n {\n //\n }", "public function update(IEntity $entity);", "protected function performUpdate(): bool\n {\n // Abort if resource does not support update operations\n if (!$this->isUpdatable()) {\n throw new UnsupportedOperation(sprintf('API does not support update operation for %s resources', $this->resourceNameSingular()));\n }\n\n $id = $this->id();\n $prepared = $this->prepareBeforeUpdate($this->toArray());\n\n $payload = [\n $this->resourceNameSingular() => $prepared\n ];\n\n $response = $this\n ->request()\n ->put($this->endpoint($id), $payload);\n\n // Extract and (re)populate resource (if possible)\n // Note: Unlike the \"create\" method, Redmine does NOT\n // appear to send back a full resource when it has been\n // successfully updated.\n $this->fill(\n $this->decodeSingle($response)\n );\n\n return true;\n }", "public function update($request, $id);", "function put($resource, $data = null) {\r\n\t\t\r\n\t\tif(isset($data)) {\r\n\t\t\t$this->request_body = $data;\r\n\t\t}\r\n\r\n\t\t// make the call chief\r\n\t\t$this->exec ( \"PUT\", '/' . $resource );\r\n\r\n\t\t// check the request status\r\n\t\tif($this->status_code != 200){\r\n\t\t\t$this->Logger->error(\r\n\t\t\t\tsprintf(\r\n\t\t\t\t\t'GET Call for resource \\'%s\\' Failed.\r\n\t\t\t\t\tStatus: %d,\r\n\t\t\t\t\tRequest: %s\r\n\t\t\t\t\tAPI Error Message: \r\n\t\t\t\t\t%s',\r\n\t\t\t\t\t$resource,\r\n\t\t\t\t\t$this->status_code,\r\n\t\t\t\t\t$this->request_body_raw,\r\n\t\t\t\t\t$this->response_body\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t\tthrow new Exception($this->response_body);\r\n\t\t} else {\r\n\t\t\treturn $this->response_parsed;\r\n\t\t}\r\n\t}", "public function updateEntities($resource)\n {\n $json = [\n 'resource' => $resource,\n ];\n $request = $this->createRequest('PUT', '/entities', ['json' => $json]);\n $response = $this->send($request);\n return $response;\n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->stock = $request['stock'];\n $product->description = $request['description'];\n\n $file = $request->file('image');\n $fileName = $file->getClientOriginalName();\n if($fileName != $product->image){\n $request->file('image')->move('images/',$fileName);\n $product->image = $fileName;\n }\n\n $product->save();\n\n return redirect()->route('products.show',\n $product->id)->with('flash_message',\n 'Article, '. $product->name.' updated');\n }", "protected function handleUpdate()\n {\n $resource = $this->argument('resource');\n $action = $this->option('action');\n $startPage = (int)$this->option('startPage');\n $perPage = (int)$this->option('perPage');\n\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n $this->info('There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n exit('Nothing was updated.');\n }\n\n $options = [\n 'startPage' => $startPage,\n 'perPage' => $perPage,\n 'lastRun' => $harvest->last_run_at\n ];\n\n // If a lastRun was given use that\n // OR if this has never been run before use 2001-01-01\n if (!empty($this->option('lastRun'))) {\n $options['lastRun'] = new Carbon($this->option('lastRun'));\n } elseif (is_null($options['lastRun'])) {\n $options['lastRun'] = new Carbon('2001-01-01');\n }\n\n $job = new UpdateResourceJob(\n $harvest,\n $options\n );\n\n $message = 'Updating ' . $action . ' ' . $resource . ' ' . $perPage . ' at a time';\n if (isset($lastRun)) {\n $message .= ' with entries updated since ' . $lastRun->format('r');\n }\n $this->info($message);\n $this->dispatch($job);\n }", "abstract public function put($data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function testUpdateSupplierUsingPUT()\n {\n }", "public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }", "public function updateRelatedImage(Request $request, $id)\n {\n // Delete display image in Storage\n Validator::make($request->all(), ['photos' => \"required|file|image|mimes:jpg,png,jpeg|max:5000\"])->validate();\n\n\n if ($request->hasFile(\"photos\")) {\n\n $photo = ProductsPhoto::find($id);\n $imageName = $photo->photos;\n $exists = Storage::disk('local')->exists(\"public/product_images/\" . $photo->photos);\n\n //delete old image\n if ($exists) {\n Storage::delete('public/product_images/' . $imageName);\n }\n\n //upload new image\n $ext = $request->file('photos')->getClientOriginalExtension(); //jpg\n\n $request->photos->storeAs(\"public/product_images/\", $imageName);\n\n $arrayToUpdate = array('photos' => $imageName);\n DB::table('products_photos')->where('id', $id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayRelatedImageForm\", ['id' => $photo->product_id]);\n } else {\n\n $error = \"NO Image was Selected\";\n return $error;\n }\n }", "public function update(Request $request, $id)\n {\n $skill = Skill::findOrFail($id);\n\n $skill->skill = $request->skill;\n\n if ($request->hasFile('image')) {\n \\Cloudder::upload($request->file('image'));\n $c=\\Cloudder::getResult();\n // $image = $request->file('image');\n // $filename = time() . '.' . $image->getClientOriginalExtension();\n // $location = public_path('images/' . $filename);\n // Image::make($image)->save($location);\n\n $skill->image = $c['url'];\n }\n\n $skill->save();\n\n Session::flash('success', 'Successsfully updated your skill!');\n return redirect()->route('skills.index');\n }", "public function updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\n }", "public abstract function update($object);", "public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $image = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image')->store('files');\n \\Storage::delete($product->image);\n } \n $product->name = $request->get('name');\n $product->price = $request->get('price');\n $product->description = $request->get('description');\n $product->additional_info = $request->get('additional_info');\n $product->category_id = $request->get('category');\n $product->subcategory_id = $request->get('subcategory');\n $product->image = $image;\n $product->save();\n return redirect()->back();\n }", "public function update(Request $request, $id)\n {\n $sli=Slider::find($id);\n $sli->sort_order=$request->input('sort_order');\n $image = $request->file('slider');\n if($image == ''){\n $image = $sli->slider;\n }else{\n $image = base64_encode(file_get_contents($request->file('slider')));\n }\n $sli->slider = $image;\n $sli->save();\n return redirect()->back();\n }", "public function update(ProductRequest $request, $id)\n {\n $input = Product::find($id);\n $data = $request->all();\n if ($file = $request->file('product_photo')){\n $name = time().$file->getClientOriginalName();\n $file->move('product_image',$name);\n $data['product_photo']=$name;\n// $input->update($data);\n }\n $input->update($data);\n return redirect('admin/products/');\n }", "public function update(Request $request, $id)\n {\n $volume = $this->findVolume($id);\n\n if(count($volume) > 0) {\n $volume->str_volume_name = $request->str_volume_name;\n\n $volume->save();\n }\n\n return response()\n ->json(\n array(\n 'message' => 'Volume is successfully updated.',\n 'volume' => $volume\n ),\n 201\n );\n }", "public function update(Request $request, $id)\n {\n $product = ProductModel::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n if($request->image!=null){\n $imageName = time().'.'.$request->image->extension();\n $request->image->move(public_path('images'), $imageName);\n $product->image = \"/images/\".$imageName;\n }\n $product->save();\n return redirect(\"/products/index\")->with('success','Product has been updated');\n }", "public function update()\n {\n $accessory = Accessories::find(request('id'));\n\n if ($accessory == null) {\n return response()->json([\"error\" => \"aksesuaras nerastas\"], 404);\n }\n\n $this->validateData();\n $path = $accessory->src;\n\n if (request()->hasFile('src')) {\n\n if (Storage::disk('public')->exists($accessory->src)) {\n Storage::disk('public')->delete($accessory->src);\n }\n $path = request()->file('src')->store('accessoriesImages', 'public');\n }\n\n $accessory->update(array_merge($this->validateData(), ['src' => $path]));\n\n return response()->json([\"data\" => $accessory], 200);\n }", "public function update(ProductStoreRequest $request,$id)\n {\n $data = $request->validated();\n $product = Product::where('id',$id);\n $product->update($data);\n return response(\"Producto actualizado con éxito\",200);\n }", "public function update($entity)\n {\n \n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path,stream_get_contents($resource),$config);\n }", "public function update($id, Request $request)\n {\n date_default_timezone_set('Asia/Taipei');\n $data = $request->all();\n $dbData = Product::find($id);\n $myfile = Storage::disk('local');\n if ($request->hasFile('img')) {\n $file = $request->file('img');\n $path = $myfile->putFile('public', $file);\n $data['img'] = $myfile->url($path);\n File::delete(public_path($dbData->img));\n }\n $dbData->update($data);\n\n if ($request->hasFile('imgs')) {\n // $this->fetchDestroyByProdId($id);\n $localS = Storage::disk('local');\n\n $fileS = $request->file('imgs');\n $imgs = [];\n foreach ($fileS as $i) {\n $pathS = $localS->putFile('public', $i);\n $imgs[] = $localS->url($pathS);\n }\n foreach ($imgs as $img) {\n ProductImg::create([\n 'product_id' => $id,\n 'img' => $img\n ]);\n }\n }\n\n return redirect()->route('admin');\n }", "public function update(Request $request, Product $product)\n { $remfile= $product->image;\n if($request->filep){\n $product->image=$request->filep;\n File::delete(storage_path('app/public/products/'.$remfile));\n }else{\n $product->image=$remfile;\n }\n //rmdir(storage_path('app/public/products/'.$remfile));\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n sleep(3);\n toast('Details updated successfully','info');\n return redirect('/products');\n }", "public function update($id, $input);", "public function update(ProductRequest $request,int $id): ProductResource\n {\n $attributes = $request->only('supplier_id', 'name', 'warehouses');\n\n return new ProductResource($this->productRepository->update($id, $attributes)); }", "public function update(Request $request, $id)\n {\n $slider=new Slider;\n $slider=$slider::find($id);\n \n \n if($file =$request->file('slider')){\n if(Storage::delete('public/slider/'.$slider->slider)){\n\n //Get file original name//\n \n$original_name=$file->getClientOriginalName();\n\n //Get just the file name\n$filename=pathinfo($original_name,PATHINFO_FILENAME);\n\n//Create new file name\n$name=$filename.'_'.time().'.'.$file->getClientOriginalExtension();\n\n $destination='public/slider';\n $path=$request->slider->storeAs($destination,$name);\n $slider->slider=$name;\n $slider->save();\n return redirect('Admin/slider');\n\n }\n }\n}", "public function update(Request $request, $id)\n {/* dd($request->all()); */\n $acheivePic = $this->acheiveRepo->find($id);\n $acheive = $request->except('_method', '_token', 'photo', 'ar', 'en');\n $acheiveTrans = $request->only('ar', 'en');\n\n if ($request->hasFile('icon')) {\n // Delete old image first.\n $oldPic = public_path() . '/images/acheives/' . $acheivePic->icon;\n File::delete($oldPic);\n\n // Save the new one.\n $image = $request->file('icon');\n $imageName = $this->upload($image, 'acheives');\n $acheive['icon'] = $imageName;\n }\n\n $this->acheiveRepo->update($id, $acheive, $acheiveTrans);\n\n return redirect('admin-panel/widgets/acheive')->with('updated', 'updated');\n }", "public function update(Request $request, $id)\n {\n $data = $request->all();\n extract($data);\n\n $productVarient = new ProductVariant();\n $productVarient = $productVarient->find($id);\n $productVarient->vendor_id = auth()->user()->id;\n $productVarient->description = $prod_desc;\n $productVarient->price = $price;\n\n if(request()->hasFile('photo')){\n $image = request()->file('photo')->getClientOriginalName();\n $imageNewName = auth()->user()->id.'-'.$image;\n $file = request()->file('photo');\n $file->storeAs('images/product',$imageNewName, ['disk' => 'public']);\n $productVarient->image = $imageNewName;\n }\n \n $productVarient->save();\n\n return back()->withStatus(__('Product successfully updated.'));\n }", "public function update(Request $request, $id)\n {\n //if upload new image, delete old image\n $myfile=$request->old_photo;\n if($request->hasfile('photo'))\n {\n $imageName=time().'.'.$request->photo->extension();\n $name=$request->old_photo;\n\n if(file_exists(public_path($name))){\n unlink(public_path($name));\n $request->photo->move(public_path('backendtemplate/truefalseimg'),$imageName);\n $myfile='backendtemplate/truefalseimg/'.$imageName;\n }\n }\n //Update Data\n $truefalsequestion=TrueFalseQuestion::find($id);\n $truefalsequestion->name=$request->name;\n $truefalsequestion->photo=$myfile;\n $truefalsequestion->answer = $request->answer;\n $truefalsequestion->question_id = $request->question;\n $truefalsequestion->save();\n\n //Redirect\n return redirect()->route('truefalsequestions.index'); \n }", "public function update($id);", "public function update($id);", "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "public function put($path, $data = null);", "public function update(Request $request, $id)\n {\n $request->validate([\n 'path_image'=>'image',\n 'status'=>'required|in:0,1'\n ]);\n $slider=Slider::whereId($id)->first();\n if (is_null($slider)){\n return redirect()->route('sliders.index')->with('error','Slider does not exist');\n }\n try {\n if ($request->hasFile('path_image')){\n $file = $request->file('path_image');\n\n $image_path= $file->store('/sliders',[\n 'disk'=>'uploads'\n ]);\n Storage::disk('uploads')->delete($slider->image);\n\n $request->merge([\n 'image'=>$image_path,\n ]);\n }\n\n $slider->update( $request->only(['status','image']));\n return redirect()->route('sliders.index')->with('success','Updated successful');\n }catch (\\Exception $exception){\n return redirect()->route('sliders.index')->with(['error'=>'Something error try again']);\n\n }\n }", "public function update() {\n $this->accessory->update($this->accessory_params());\n\n if ($this->accessory->is_valid()) {\n $this->update_accessory_image($this->accessory);\n redirect('/backend/accessories', ['notice' => 'Successfully updated.']);\n } else {\n redirect(\n '/backend/accessories/edit',\n ['error' => $this->accessory->errors_as_string()],\n ['id' => $this->accessory->id]\n );\n }\n }", "public function update(Entity $entity);", "public function update(Request $request, $id)\n {\n $icon = SliderIcon::find($id);\n $data = $request->all();\n $data['active'] = $request->has('active') ? 1 : 0;\n if ($request->hasFile('img')) {\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $image = $request->file('img');\n $fileName = time().'_'.Str::lower(Str::random(5)).'.'.$image->getClientOriginalExtension();\n $path_to = '/upload/images/'.getfolderName();\n $image->storeAs('public'.$path_to, $fileName);\n $data['img'] = 'storage'.$path_to.'/'.$fileName;\n }\n $icon->update($data);\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества обнавлены');\n }", "public function update() {\n\t $this->layout = false;\n\t \n\t //set default response\n\t $response = array('status'=>'failed', 'message'=>'HTTP method not allowed');\n\t \n\t //check if HTTP method is PUT\n\t if($this->request->is('put')){\n\t //get data from request object\n\t $data = $this->request->input('json_decode', true);\n\t if (empty($data)) {\n\t $data = $this->request->data;\n\t }\n\t \n\t //check if product ID was provided\n\t if (!empty($data['id'])) {\n\t \n\t //set the product ID to update\n\t $this->Player->id = $data['id'];\n\t if ($this->Player->save($data)) {\n\t $response = array('status'=>'success','message'=>'Product successfully updated');\n\t } else {\n\t $response['message'] = \"Failed to update product\";\n\t }\n\t } else {\n\t $response['message'] = 'Please provide product ID';\n\t }\n\t }\n\t \n\t $this->response->type('application/json');\n\t $this->response->body(json_encode($response));\n\n\t return $this->response->send();\n\t}", "public function update(Request $request, $id)\n {\n //validate incoming request\n $request->validate([\n 'name' => 'string|max:100|nullable',\n 'picture' => 'max:2000|mimes:jpeg,jpg,png,svg|nullable', //max size 2mb,\n 'total' => 'integer|min:0|nullable', //value must be > 0\n 'selling_price' => 'numeric|min:0|nullable',\n 'cost_price' => 'numeric|min:0|nullable',\n 'category_id' => 'integer|nullable'\n ]);\n\n try {\n $product = Auth::user()->store->product()->findorFail($id);\n } catch (ModelNotFoundException $e) {\n return response()->json([\n \"message\" => \"Forbidden\"\n ], 403);\n }\n\n //if category id isnt null\n if ($category_id = $request->category_id) {\n if (!$this->isCategoryIdValid($category_id))\n return response()->json([\n \"message\" => \"Category Id is not valid\"\n ], 422);\n else\n $product->category_id = $request->category_id;\n }\n\n //if uploaded file exist\n if ($picture = $request->file(\"picture\")) {\n //if product already has logo\n if ($product->picture)\n Storage::delete(Product::$PICTURE_PATH . \"/\" . $product->picture);\n\n $picture_path = $picture->store(Product::$PICTURE_PATH);\n //remove folder name from path\n $product->picture = str_replace(Product::$PICTURE_PATH . \"/\", '', $picture_path);\n }\n\n $this->renewProduct($product, $request);\n $product->save();\n return response()->json(new ProductResource($product), 200);\n }", "public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'required | min:3 | string',\n 'type' => 'required',\n 'producer' => 'required',\n 'image' => 'image | mimes:png,jpg,jpeg',\n 'price_input' => 'required | numeric | min:0 | max:300000000',\n 'promotion_price' => 'required | numeric | max:300000000',\n 'description' => 'required | string',\n\n ]);\n $product = Product::withTrashed()->findOrfail($id);\n $product->name = $request->name;\n $product->id_type = $request->type;\n $product->id_producer = $request->producer;\n\n $product->amount = $request->amount;\n if (request('image')) {\n $product->image = base64_encode(file_get_contents($request->file('image')->getRealPath()));\n }\n\n $product->price_input = $request->price_input;\n\n if ( $request->promotion_price >= 0 && $request->promotion_price < $product->price_input) {\n $product->promotion_price = $request->promotion_price;\n }else{\n return back()->with('error', '\n Do not enter a negative number');\n }\n $product->new = $request->new;\n\n $product->description = $request->description;\n\n $product->save();\n $product->size()->sync(request('size'));\n\n return redirect()->route('product.index')->with('success', 'Product Updated successfully');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n $product->lastPrice = $product->price !== $request->input('price') ? $product->price : NULL;\n $product->price = $request->input('price');\n\n if ($request->hasFile('image')) { \n $currentImg = $product->image;\n if ($currentImg) {\n Storage::delete('/public/' . $currentImg);\n }\n $image = $request->file('image'); \n $path = $image->store('images','public');\n $product->image = $path;\n };\n\n $product->save(); \n\n $product_promotions = $request->input('promotion');\n\n $product->promotions()->sync($product_promotions);\n\n return redirect()->route('admin.modify');\n }", "public static function updateImage($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n ResourceHandler::delete($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update($request, $id)\n {\n $this->checkExits($id);\n $data = $request->except(['_method','_token','photo']);\n\n if($request->photo)\n {\n try {\n $this->UploadFile($request);\n } catch (\\Exception $e) {\n //if has exception , don't has action\n }\n if ($this->img !== '') {\n $data['img'] = $this->img;\n }\n }\n\n $this->object->update($data);\n\n }", "public function updateProduct($request, $product)\n {\n $product->update($request->except(['_token', '_method', 'image']));\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $imageName = time() . '.' . $request->file('image')->extension();\n // $img = Image::make('public/foo.jpg');\n\n $image_resize = Image::make($image->getRealPath());\n $image_resize->resize(500, 500);\n $image_resize->save(public_path('images/') . $imageName, 100);\n $product->gallery = $imageName;\n $product->save();\n }\n $product->getTags()->sync($request->input('tags'));\n }" ]
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890722", "0.5860816", "0.5855127", "0.5855127", "0.58513457", "0.5815068", "0.5806887", "0.57525045", "0.57525045", "0.57337505", "0.5723295", "0.5714311", "0.5694472", "0.5691319", "0.56879413", "0.5669989", "0.56565005", "0.56505877", "0.5646085", "0.5636683", "0.5633498", "0.5633378", "0.5632906", "0.5628826", "0.56196684", "0.5609126", "0.5601397", "0.55944353", "0.5582592", "0.5581908", "0.55813426", "0.5575312", "0.55717176", "0.55661047", "0.55624634", "0.55614686", "0.55608666", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55573726", "0.5556878", "0.5554201", "0.5553069", "0.55530256", "0.5543788", "0.55435944", "0.55412996", "0.55393505", "0.55368495", "0.5535236", "0.5534954", "0.55237365", "0.5520468", "0.55163723", "0.55125296", "0.5511168", "0.5508345", "0.55072427", "0.5502385", "0.5502337", "0.5501029", "0.54995877", "0.54979175", "0.54949397", "0.54949397", "0.54946727", "0.5494196", "0.54941916", "0.54925025", "0.5491807", "0.5483321", "0.5479606", "0.5479408", "0.5478678", "0.54667485", "0.5463411", "0.5460588", "0.5458525" ]
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { $manutencao = $this->model->find($id); $manutencao->delete(); return redirect('/home')->with('success', 'Agendamento removido com sucesso!'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n $client = $this->getClient($this->name, $this->options);\n try {\n $client->delete(Path::fromString($this->getRelativePublicationPathAndFilename($resource)));\n } catch (FileDoesNotExistsException $exception) {\n }\n }", "public function deleteResource(&$resource) {\n\n if ($this->connector != null) {\n $this->logger->addDebug(\"Deleting Resource Node from Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}}) detach delete a;\",\n [\n 'id' => $resource->getID()\n ]\n );\n $this->logger->addDebug(\"Updated neo4j to remove resource\");\n }\n\n }", "public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }", "public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }", "protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "public function remove()\n {\n if (! ftruncate($this->fileHandle, 0)) {\n throw new StorageException(\"Could not truncate $this->path\");\n }\n if (! unlink($this->path)) {\n throw new StorageException(\"Could not delete $this->path\");\n }\n }", "public function delete()\n\t{\n\t\t$s3 = AWS::createClient('s3');\n $s3->deleteObject(\n array(\n 'Bucket' => $this->bucket,\n 'Key' => $this->location\n )\n );\n\t\tif($this->local_file && file_exists($this->local_file)) {\n\t\t\tunlink($this->local_file);\n\t\t}\n $this->local_file = null;\n\t}", "public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}", "public function delete(): void\n {\n unlink($this->getPath());\n }", "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "public function remove($path);", "function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}", "public function delete(): void\n {\n unlink($this->path);\n }", "private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }", "public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function remove() {}", "public function remove() {}", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "function delete_resource($resource_id, $page)\n\t{\n\t\t//get resource data\n\t\t$table = \"resource\";\n\t\t$where = \"resource_id = \".$resource_id;\n\t\t\n\t\t$this->db->where($where);\n\t\t$resource_query = $this->db->get($table);\n\t\t$resource_row = $resource_query->row();\n\t\t$resource_path = $this->resource_path;\n\t\t\n\t\t$image_name = $resource_row->resource_image_name;\n\t\t\n\t\t//delete any other uploaded image\n\t\t$this->file_model->delete_file($resource_path.\"\\\\\".$image_name, $this->resource_path);\n\t\t\n\t\t//delete any other uploaded thumbnail\n\t\t$this->file_model->delete_file($resource_path.\"\\\\thumbnail_\".$image_name, $this->resource_path);\n\t\t\n\t\tif($this->resource_model->delete_resource($resource_id))\n\t\t{\n\t\t\t$this->session->set_userdata('success_message', 'resource has been deleted');\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$this->session->set_userdata('error_message', 'resource could not be deleted');\n\t\t}\n\t\tredirect('resource/'.$page);\n\t}", "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "public function del(string $resource): bool|string\n {\n $json = false;\n $fs = unserialize($_SESSION['rfe'][$this->getRoot()], ['allowed_classes' => false]);\n if (array_key_exists($resource, $fs)) {\n // if $item has children, delete all children too\n if (array_key_exists('dir', $fs[$resource])) {\n foreach ($fs as $key => $file) {\n if (isset($file['parId']) && $file['parId'] == $resource) {\n unset($fs[$key]);\n }\n }\n }\n unset($fs[$resource]);\n $_SESSION['rfe'][$this->getRoot()] = serialize($fs);\n $json = '[{\"msg\": \"item deleted\"}]';\n }\n return $json;\n }", "public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}", "public function destroy($id) {\n $book = Book::find($id);\n // return unlink(storage_path(\"public/featured_images/\".$book->featured_image));\n Storage::delete(\"public/featured_images/\" . $book->featured_image);\n if ($book->delete()) {\n return $book;\n }\n\n }", "public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }", "public function destroyResourceImage(): void\n\t{\n\t\tif (isset($this->image)) {\n\t\t\t@imagedestroy($this->image->getImageResource());\n\t\t}\n\t}", "public function deleteResource(PersistentResource $resource)\n {\n $pathAndFilename = $this->getStoragePathAndFilenameByHash($resource->getSha1());\n if (!file_exists($pathAndFilename)) {\n return true;\n }\n if (unlink($pathAndFilename) === false) {\n return false;\n }\n Files::removeEmptyDirectoriesOnPath(dirname($pathAndFilename));\n return true;\n }", "public function deleteImage(){\n \tStorage::delete($this->image);\n }", "public function destroy()\n {\n $file=public_path(config('larapages.media.folder')).Input::all()['folder'].'/'.Input::all()['file'];\n if (!file_exists($file)) die('File not found '.$file);\n unlink($file);\n }", "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "public function destroy($id)\n {\n Myfile::find($id)->delete();\n }", "public function destroy($delete = false)\n {\n if (null !== $this->resource) {\n $this->resource->clear();\n $this->resource->destroy();\n }\n\n $this->resource = null;\n clearstatcache();\n\n // If the $delete flag is passed, delete the image file.\n if (($delete) && file_exists($this->name)) {\n unlink($this->name);\n }\n }", "public static function delete($path){\r\n $currentDir = getcwd();\r\n $storageSubPath = \"/../../\".STORAGE_PATH;\r\n $file = $currentDir . $storageSubPath . '/' . $path;\r\n\r\n unlink($file);\r\n }", "public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }", "public function remove() {\n //Check if there are thumbs and delete files and db\n foreach ($this->thumbs()->get() as $thumb) {\n $thumb->remove();\n } \n //Delete the attachable itself only if is not default\n if (strpos($this->url, '/defaults/') === false) {\n Storage::disk('public')->delete($this->getPath());\n }\n parent::delete(); //Remove db record\n }", "public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }", "public function destroy(Resource $resource)\n {\n if( $resource->delete() ){\n return Response(['status'=>'success','message'=>'Resource deleted']); \n } else {\n return Response(['status'=>'error', 'message'=>'Something went wrong']);\n }\n }", "public function delete($path);", "public function delete($path);", "public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }", "public function destroy($id)\n {\n $supplier = Supplier::find($id);\n $photo = $supplier->photo;\n if ($photo) {\n unlink($photo);\n }\n $supplier->delete();\n }", "public function destroy($id)\n {\n $student = Student::where('id', $id)->first();\n // $path = $student->image;\n unlink($student->image);\n Student::findOrFail($id)->delete();\n return response('Deleted!');\n }", "public function destroy($id)\n {\n $icon = SliderIcon::find($id);\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $icon->delete();\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества удалёны');\n }", "public function delete($path, $data = null);", "public function destroy($id)\n {\n $items=Items::find($id);\n // delete old file\n if ($items->photo) {\n $str=$items->photo;\n $pos = strpos($str,'/',1);\n $str = substr($str, $pos);\n $oldFile = storage_path('app\\public').$str;\n File::Delete($oldFile); \n }\n $items->delete();\n return redirect()->route('items.index');\n }", "public function destroy($id)\n {\n $carousel = Carousel::find($id);\n $image = $carousel->image;\n\n $basename ='img/carousel/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n unlink($basename);\n }\n //With softDeletes, this is the way to permanently delete a record\n $carousel->delete();\n Session::flash('success','Product deleted permanently');\n return redirect()->back();\n }", "public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }", "public static function destroy(int $resource_id)\n {\n try {\n $image_data = ListingImage::where('id', $resource_id)->first();\n self::delete_image($image_data->name);\n $delete = ListingImage::where('id', $resource_id)->delete();\n\n // activity()\n // ->causedBy(Auth::user()->id)\n // ->performedOn($delete)\n // ->withProperties(['id' => $delete->id])\n // ->log('listing image deleted');\n return response()->json(['status'=> 'ok', 'msg'=> 'Data deleted successfully']);\n } catch (Exception $e) {\n $e->getMessage();\n }\n }", "public function destroy(Storage $storage)\n {\n $this->storage->destroy($storage);\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('product::storages.title.storages')]));\n }", "public function del($path){\n\t\treturn $this->remove($path);\n\t}", "public function destroy($id)\n {\n //\n $product = Product::findOrFail($id);\n $product->delete();\n if($product->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$product->img);\n // return 'deleted';\n }\n return redirect()->route('product.index'); \n }", "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "public function destroy($id)\n {\n $image = Images::withTrashed()->find($id);\n\n Storage::disk('uploads')->delete(\"social-media/$image->filename\");\n\n $image->tags()->detach();\n $image->detachMedia(config('constants.media_tags'));\n $image->forceDelete();\n\n return redirect()->back()->with('success', 'The image was successfully deleted');\n }", "public function destroyByResourceId($resource_id)\n {\n// $online_party = $this->onlinetrack->where('resource_id', $resource_id)->get()->first();\n// $online_party->status = \"offline\";\n// $online_party->save();\n// return $online_party;\n return $this->onlinetrack->where('resource_id', $resource_id)->delete();\n }", "public function revoke($resource, $permission = null);", "public function destroy($id)\n {\n $data=Image::find($id);\n $image = $data->img;\n\n\n $filepath= public_path('images/');\n $imagepath = $filepath.$image;\n\n //dd($old_image);\n if (file_exists($imagepath)) {\n @unlink($imagepath);\n }\n\n\n $data->delete();\n\n return redirect()->route('image.index');\n }", "function delete($path);", "public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }", "public function destroyResource($resource)\n {\n if (!is_object($resource)) {\n return false;\n }\n\n $resource_type = get_class($resource);\n $resource_id = $resource->getKey();\n\n return Role::where('resource_type', $resource_type)\n ->where('resource_id', $resource_id)\n ->delete();\n }", "public function remove($filePath){\n return Storage::delete($filePath);\n }", "public function remove(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists($file)) {\n return;\n }\n\n unlink($file);\n }", "public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }", "public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }", "public function processDeletedResource(EntityResource $resource)\n {\n /** @var AuthorizationRepository $repository */\n $repository = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Authorization');\n\n $repository->removeAuthorizationsForResource($resource);\n }", "function _unlink($resource, $exp_time = null)\n {\n if(file_exists($resource)) {\n return parent::_unlink($resource, $exp_time);\n }\n\n // file wasn't found, so it must be gone.\n return true;\n }", "public function remove($id);", "public function remove($id);", "public function deleted(Storage $storage)\n {\n //\n }", "public function destroy($id)\n {\n $data = Product::findOrFail($id);\n\n if(file_exists('uploads/product/'.$data->image1)){\n unlink('uploads/product/'.$data->image1);\n }\n\n if(file_exists('uploads/product/'.$data->image2)){\n unlink('uploads/product/'.$data->image2);\n }\n\n if(file_exists('uploads/product/'.$data->image3)){\n unlink('uploads/product/'.$data->image3);\n }\n $data->delete();\n }", "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }", "public function resources_delete($resource_id, Request $request) {\n if ($resource_id) {\n $resp = Resources::where('id', '=', $resource_id)->delete();\n if($resp){\n $msg = 'Resource has been deleted successfully.';\n $request->session()->flash('message', $msg);\n }\n }\n //return redirect()->route('admin-factor-list');\n return redirect()->to($_SERVER['HTTP_REFERER']);\n }", "public function delete()\n {\n try\n {\n $thumbnail = $this->getThumbnail();\n if($thumbnail)\n {\n $thumbnail->delete();\n }\n }\n catch(sfException $e){}\n \n // delete current file\n parent::delete();\n }", "function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function remove_resource($idproject){\n\t\t\n\t\t// Load model and try to get project data\n\t\t$this->load->model('Projects_model', 'projects');\n\t\t\n\t\t// Update\n\t\t$this->projects->save_project(array(\"ext\" => \"\", \"vzaar_idvideo\" => \"0\", \"vzaar_processed\" => \"0\"), $idproject);\n\t}", "public function destroy($id){\n $file_data = Slider::findOrFail($id);\n File::delete(public_path('../storage/app/public/sliders/'.$file_data->path));\n $slider = Slider::destroy($id);\n return response()->json(null, 204);\n }", "public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}", "public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }", "public function destroy($id)\n {\n //Find Slider With Id\n $slider = Slider::findOrFail($id);\n // Check If The Image Exist\n if(file_exists('uploads/slider/'.$slider->image)){\n\n unlink( 'uploads/slider/'.$slider->image);\n }\n $slider->delete();\n return redirect()->back()->with('success','Slider Successfully Deleted');\n }" ]
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897263", "0.58962846", "0.58951396", "0.58951396", "0.58951396", "0.58951396", "0.5880124", "0.58690923", "0.5863659", "0.5809161", "0.57735413", "0.5760811", "0.5753559", "0.57492644", "0.5741712", "0.57334286", "0.5726379", "0.57144034", "0.57096", "0.5707689", "0.5705895", "0.5705634", "0.5703902", "0.5696585", "0.5684331", "0.5684331", "0.56780374", "0.5677111", "0.5657287", "0.5648262", "0.5648085", "0.5648012", "0.5640759", "0.5637738", "0.5629985", "0.5619264", "0.56167465", "0.5606877", "0.56021434", "0.5601949", "0.55992156", "0.5598557", "0.55897516", "0.5581397", "0.5566926", "0.5566796", "0.55642897", "0.55641", "0.5556583", "0.5556536", "0.5550097", "0.5543172", "0.55422723", "0.5540013", "0.5540013", "0.55371785", "0.55365825", "0.55300397", "0.552969", "0.55275744", "0.55272335", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.5525997", "0.5525624", "0.5523911", "0.5521122", "0.5517412" ]
0.0
-1
Generate a reponse from a request.
abstract public function createResponse(AbstractRequestClient $request);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get($request) {\n \n $response = new Response($request);\n \n $etag = md5($request->uri);\n if ($request->ifNoneMatch($etag)) {\n \n $response->code = Response::NOTMODIFIED;\n \n } else {\n \n $response->code = Response::OK;\n $response->addHeader('Content-type', 'text/plain');\n $response->addEtag($etag);\n $response->body =\n \"Hello world!\\n\".\n \"\\n\".\n \"This request:\\n\".\n \"\\n\".\n $request->__toString().\"\\n\".\n \"\\n\".\n \"This response:\\n\".\n \"\\n\".\n $response->__toString();\n \n }\n \n return $response;\n \n }", "private function createResponse($request)\n {\n return json_decode($request->getBody()->getContents());\n }", "protected function createResponse($request) {\n // don't send anything if client has fresh data\n if (Request::hasMacro('isFresh') && $request->isFresh()) {\n return response(null)->setNotModified();\n }\n\n $response = null;\n\n $methodName = 'create' . ucfirst($this->desiredResponseFormat($request)) . 'Response';\n if (method_exists($this, $methodName)) {\n $response = $this->{$methodName}();\n }\n\n return $response;\n }", "public function executeRequest($request): Response\n {\n $body = curl_exec($request);\n $info = curl_getinfo($request);\n\n curl_close($request);\n\n $statusCode = $info['http_code'];\n $headers = $info['request_header'];\n\n if (function_exists('http_parse_headers')) {\n $headers = http_parse_headers($headers);\n } else {\n $header_text = substr($headers, 0, strpos($headers, \"\\r\\n\\r\\n\"));\n $headers = [];\n\n foreach (explode(\"\\r\\n\", $header_text) as $i => $line) {\n if ($i === 0) {\n continue;\n } else {\n list ($key, $value) = explode(': ', $line);\n\n $headers[$key] = $value;\n }\n }\n }\n\n return $this->factory->build($body, $headers, $statusCode);\n }", "public function requestAction(Request $request){\n return new Response('You are doing a ' . $request->getMethod() . ' HTTP request');\n }", "public function toResponse($request)\n {\n if ($this->isEmpty()) {\n abort(404);\n }\n\n return $this->random()->toResponse($request);\n }", "public function __invoke(Request $request)\n {\n return $this->responder->make(\n $this->service->handle($request)\n )->send();\n }", "public function __invoke(Request $request): Response;", "public function getResponse(RequestEntity $request);", "public function toResponse($request)\n {\n $response = $this->getResponseForFormat(\n $request->format()\n );\n\n if ($response instanceof Responsable) {\n return $response->toResponse($request);\n }\n\n if (is_callable($response)) {\n return $response();\n }\n\n return $response;\n }", "protected function getResponse(Request $request): Response\n {\n $response = new Response;\n $response->jsonrpc = Response::VERSION;\n $response->id = $request->id;\n\n $this->validate($request, $response);\n if ($response->hasError()) {\n return $response;\n }\n\n try {\n $response->result = call_user_func_array([$this->api, $request->method], [(array)$request->params]);\n } catch (Exception $e) {\n $response->setError($e->getCode(), $e->getMessage());\n } catch (Error $e) {\n $response->setError(Response::INTERNAL_ERROR);\n }\n\n return $response;\n }", "public function toResponse($request)\n {\n if (! is_callable($this->view) || is_string($this->view)) {\n return response()->view($this->view, $this->parameters);\n }\n\n $response = call_user_func($this->view, $this->parameters);\n\n if ($response instanceof Responsable) {\n return $response->toResponse($request);\n }\n\n return $response;\n }", "public function getResponse(string &$packageRoot, Request &$request): Response;", "public function toResponse($request)\n {\n\n }", "public function run(Request $request) {\n\t\treturn $this->responder->run($request);\n\t}", "function response() {\n return new Response;\n }", "public function getResponse($input);", "public function run(Request $request)\n {\n $resource = $this->findResource($request);\n $response = $resource->getResponse($request);\n return $response;\n }", "public function toResponse($request = null): SymfonyResponse\n {\n return (new HttpFoundationFactory())->createResponse($this->response);\n }", "public static function forge(RequestInterface $request) {\n\n\t\t$headerSize = $request->getInfo(CURLINFO_HEADER_SIZE);\n\t\t$response = $request->getRawResponse();\n\t\t$content = (strlen($response) === $headerSize) ? '' : substr($response, $headerSize);\n\t\t$rawHeaders = rtrim(substr($response, 0, $headerSize));\n\t\t$headers = array();\n\n\t\tforeach (preg_split('/(\\\\r?\\\\n)/', $rawHeaders) as $header) {\n\t\t\tif ($header) {\n\t\t\t\t$headers[] = $header;\n\t\t\t} else {\n\t\t\t\t$headers = array();\n\t\t\t}\n\t\t}\n\n\t\t$headerBag = array();\n\t\t$info = $request->getInfo();\n\t\t$status = explode(' ', $headers[0]);\n\t\t$status = explode('/', $status[0]);\n\n\t\tunset($headers[0]);\n\n\t\tforeach ($headers as $header) {\n\n\t\t\tlist($key, $value) = explode(': ', $header);\n\t\t\t$headerBag[trim($key)] = trim($value);\n\t\t}\n\n\t\t$response = new static($content, $info['http_code'], $headerBag);\n\t\t$response->setProtocolVersion($status[1]);\n\t\t$response->setCharset(substr(strstr($response->headers->get('Content-Type'), '='), 1));\n\n\t\treturn $response;\n\t}", "protected function _getRequest() {\n\t\treturn new Request;\n\t}", "public function toResponse($request)\n {\n return tap(response()->json(\n $this->wrap(\n $this->resource->resolve($request),\n array_merge_recursive(\n $this->paginationInformation($request),\n $this->resource->with($request),\n $this->resource->additional\n )\n ),\n $this->calculateStatus(),\n [],\n $this->resource->jsonOptions()\n ), function ($response) use ($request) {\n $response->original = $this->resource->resource->map(function ($item) {\n return is_array($item) ? Arr::get($item, 'resource') : $item->resource;\n });\n\n $this->resource->withResponse($request, $response);\n });\n }", "public function toResponse($request)\n {\n if(! $this->handler && ! is_callable($this->handler)) {\n throw new ErrorException(\"No handler set\");\n }\n\n $parameters = array_merge(\n [$request, $this->action],\n $this->parameters\n );\n\n try {\n $payload = call_user_func_array($this->handler, array_values($parameters));\n }\n catch (Exception $e) {\n // We'll assume that if an Exception has an error code \n // that is explicitly defined, we want to use it as an\n // HTTP error code. if not we'll just let the \n // Exception handler takes care of it. \n $code = $e->getCode();\n\n if (! $this->isValidHttpStatusCode($code)) {\n throw $e;\n }\n \n $this->setStatusCode($code);\n\n return $e instanceof HasMessageBag \n ? $this->respondWithMessageBag($e->getMessageBag(), class_basename($e))\n : $this->respondWithError($e->getMessage(), class_basename($e));\n } \n catch (ValidationException $e) {\n throw $e;\n }\n\n return $this->handlePayload($payload);\n }", "public function buildResponse(RequestInterface $request);", "protected function _getResponse() {\n\t\treturn new Response;\n\t}", "public function toResponse($request)\n {\n $printer = Container::getInstance()->make('printer');\n\n return new Response($this->print($printer), Response::HTTP_OK, [\n 'Content-Type' => $printer->format(),\n ]);\n }", "public function responseSpecify(Request $request)\n {\n\n // if ($status === true) {\n // $res = UserServices::getInstance()->responseSpecify($request, 'api');\n // return $res;\n // } else {\n // return response()->json($status, 200);\n // }\n }", "public function method(?Request $request = null): Response\n {\n return new Response();\n }", "protected function createHttpResponse()\n {\n return new Response();\n }", "public function repeat(Request $request)\n {\n\n $payment = new Repeat($request);\n\n $payment = $payment->repeatOrder(false);\n\n if ($payment instanceof ResponseInterface) {\n\n return json_decode($payment->getBody()->__toString());\n\n }\n\n return new JsonResponse($payment, 200);\n\n }", "public function getResponse(\\BearFramework\\App\\Request $request)\n {\n $requestPath = (string) $request->path;\n foreach ($this->data as $route) {\n foreach ($route[0] as $pattern) {\n $found = preg_match('/^' . str_replace(['%2F', '%3F', '%2A'], ['\\/', '[^\\/]+?', '.+?'], urlencode($pattern)) . '$/u', $requestPath) === 1; // symbols: /, ?, *\n if ($found && !empty($route[2])) {\n $hasMethodOption = false;\n $isMethodValid = false;\n $hasSchemeOption = false;\n $isSchemeValid = false;\n foreach ($route[2] as $option) {\n $option = strtolower($option);\n if ($option === 'get' || $option === 'head' || $option === 'post' || $option === 'delete' || $option === 'put' || $option === 'patch' || $option === 'options') {\n $hasMethodOption = true;\n if ($option === strtolower($request->method)) {\n $isMethodValid = true;\n }\n } elseif ($option === 'http' || $option === 'https') {\n $hasSchemeOption = true;\n if ($option === strtolower($request->scheme)) {\n $isSchemeValid = true;\n }\n }\n }\n if (($hasMethodOption && !$isMethodValid) || ($hasSchemeOption && !$isSchemeValid)) {\n $found = false;\n }\n }\n if ($found) {\n foreach ($route[1] as $callable) {\n ob_start();\n try {\n $response = call_user_func($callable);\n ob_end_clean();\n } catch (\\Exception $e) {\n ob_end_clean();\n throw $e;\n }\n if ($response instanceof App\\Response) {\n return $response;\n }\n }\n // continue searching\n }\n }\n }\n if ($request->method === 'HEAD') {\n $getRequest = clone($request);\n $getRequest->method = 'GET';\n $response = $this->getResponse($getRequest);\n if ($response instanceof App\\Response) {\n $response->content = '';\n return $response;\n }\n }\n return null;\n }", "public function handle($request)\n {\n $this->setRouter($this->app->compose('Cygnite\\Base\\Router\\Router', $request), $request);\n\n try {\n $response = $this->sendRequestThroughRouter($request);\n /*\n * Check whether return value is a instance of Response,\n * otherwise we will try to fetch the response form container,\n * create a response and return to the browser.\n *\n */\n if (!$response instanceof ResponseInterface && !is_array($response)) {\n $r = $this->app->has('response') ? $this->app->get('response') : '';\n $response = Response::make($r);\n }\n } catch (\\Exception $e) {\n $this->handleException($e);\n } catch (Throwable $e) {\n $this->handleException($e);\n }\n\n return $response;\n }", "public function request() {\n // The basic flow: build the url, make the request, parse and return the\n // output.\n $url = $this->query_builder->getUrl();\n\n // @todo: does this make sense to be in a separate class? Anyway, this shoudl\n // be somehow refactored because it is hard to replace or overwrite it.\n $curl = curl_init();\n curl_setopt($curl, CURLOPT_URL, $url);\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);\n $response = curl_exec($curl);\n // @todo: very important: check the curl errors here.\n\n return $this->parser->parse($response);\n }", "public function invoke(Request $request) : Response\r\n {\r\n $class = $this->container->make($this->class);\r\n\r\n return call_user_func([\r\n $class,\r\n $this->method\r\n ], $request);\r\n }", "public function toResponse($request)\n\t{\n\t\treturn new Response($this->message, 204);\n\t}", "public function executeResponse(sfWebRequest $request)\n {\n return require(dirname(__FILE__).'/response.php');\n }", "public function processRequest() : \\Core\\Responses\\CLIResponse {\n return Response::create('CLIResponse');\n }", "public function generateResponse(){\n\n switch ($this->requestMethod) {\n\n case 'GET':\n if(isset($this->topicId)){\n\n $response = $this->getTopicById($this->topicId);\n\n }else{\n\n $response = $this->getAllTopic();\n \n } \n \n break;\n\n case 'POST':\n\n $response = $this->createTopic();\n \n break;\n \n case 'PUT':\n\n if($this->userAction === \"update_topic\"){\n $response = $this->updateTopic($this->topicId);\n }else{\n\n $response = $this->notFoundResponse();\n }\n \n break;\n\n case 'DELETE':\n if($this->userAction == \"delete_topic_info\"){\n $response = self::deleteUser($this->topicId);\n } \n \n break;\n \n default:\n $response = $this->invalidRoute();\n break;\n }\n \n echo $response['body'];\n\n }", "abstract protected static function getResponse(Request $request, Validator $validator): Response;", "function get(Request &$request, Response &$response);", "public function serve()\n {\n Log::debug('Request received:', [\n 'Method' => $this->request->getMethod(),\n 'URI' => $this->request->getRequestUri(),\n 'Query' => $this->request->getQueryString(),\n 'Protocal' => $this->request->server->get('SERVER_PROTOCOL'),\n 'Content' => $this->request->getContent(),\n ]);\n\n $this->validate($this->token);\n\n if ($str = $this->request->get('echostr')) {\n Log::debug(\"Output 'echostr' is '$str'.\");\n\n return new Response($str);\n }\n\n $result = $this->handleRequest();\n\n $response = $this->buildResponse($result['to'], $result['from'], $result['response']);\n\n Log::debug('Server response created:', compact('response'));\n\n return new Response($response);\n }", "public function doRequest($request)\n {\n $redirector = \\Zend_Controller_Action_HelperBroker::getStaticHelper('redirector');\n $redirector->setExit(false);\n\n // json helper should not exit\n $json = \\Zend_Controller_Action_HelperBroker::getStaticHelper('json');\n $json->suppressExit = true;\n\n $zendRequest = new \\Zend_Controller_Request_HttpTestCase();\n $zendRequest->setMethod($request->getMethod());\n $zendRequest->setCookies($request->getCookies());\n $zendRequest->setParams($request->getParameters());\n $zendRequest->setRawBody($request->getContent());\n $zendRequest->setRequestUri(str_replace('http://localhost','',$request->getUri()));\n $zendRequest->setHeaders(\n $this->getNormalizedHeadersUsing($request->getServer())\n );\n $_FILES = $request->getFiles();\n $_SERVER = array_merge($_SERVER, $request->getServer());\n\n $zendResponse = new \\Zend_Controller_Response_HttpTestCase;\n $this->front->setRequest($zendRequest)->setResponse($zendResponse);\n\n ob_start();\n $this->bootstrap->run();\n ob_end_clean();\n\n $this->zendRequest = $zendRequest;\n\n $response = new Response(\n $zendResponse->getBody(),\n $zendResponse->getHttpResponseCode(),\n $this->getKeyValueHeaders($zendResponse)\n );\n return $response;\n }", "function request() {\n return new Request;\n }", "public function request() {\r\n\t\t$this->verbose('protocol', $this->protocol);\r\n\t\t$this->verbose('method', $this->method);\r\n\t\t$this->verbose('host', $this->host);\r\n\t\t$this->verbose('path', $this->path);\r\n\t\t$this->verbose('query', $this->query);\r\n\t\t$this->verbose('headers', $this->headers);\r\n\t\t$this->verbose('body', $this->body);\r\n\t\t$this->verbose('timeout', $this->timeout);\r\n\r\n\t\t$this->addQueryToPath();\r\n\t\t$this->verbose('path + query', $this->path);\r\n\t\t$this->cleanHost();\r\n\t\t$this->verbose('cleanHost', $this->host);\r\n\r\n\t\t$url = $this->protocol . '://' . $this->host . $this->path;\r\n\t\t$this->verbose('url', $url);\r\n\r\n\t\t$this->headers['Authorization'] = $this->makeAuthHeader();\r\n\r\n\r\n\t\tforeach ($this->headers as $header_key => $header_value) {\r\n\t\t\t$header_array[] = $header_key . \":\" . $header_value;\r\n\t\t}\r\n\r\n\t\t$ch = curl_init();\r\n\t\t$options = array(\r\n\t\t\tCURLOPT_URL => $url,\r\n\t\t\tCURLOPT_RETURNTRANSFER => 1,\r\n\t\t\tCURLOPT_CUSTOMREQUEST => $this->method,\r\n\t\t\tCURLOPT_POSTFIELDS => $this->body,\r\n\t\t\tCURLOPT_HEADER => false,\r\n\t\t\tCURLINFO_HEADER_OUT => true,\r\n\t\t\tCURLOPT_HTTPHEADER => $header_array,\r\n\t\t\tCURLOPT_TIMEOUT => $this->timeout\r\n\t\t);\r\n\t\tcurl_setopt_array($ch, $options);\r\n\r\n\t\t$this->verbose('body at exec', $this->body);\r\n\t\t$response_body = curl_exec($ch);\r\n\t\t$response_error = curl_error($ch);\r\n\t\t$response_headers = curl_getinfo($ch);\r\n\t\tcurl_close($ch);\r\n\r\n\t\t$response['error'] = $response_error;\r\n\t\t$response['body'] = $response_body;\r\n\t\t$response['header'] = $response_headers;\r\n\t\treturn $response;\r\n\t}", "public static function create()\n {\n $contentType = isset($_SERVER['CONTENT_TYPE']) ? $_SERVER['CONTENT_TYPE'] : 'text/html';\n return (new Request(\n $_SERVER['REQUEST_METHOD'], $_SERVER['REQUEST_URI'] ,\n $_REQUEST, $contentType\n ))->processBody();\n }", "abstract public function response();", "public function getResponse()\n\t{\n\t\t$outGoingResponse = $this->response;\n\t\t$request = $this->request;\n\n\t\t$headers = $outGoingResponse->getHeaders();\n\t\t$status_code = (isset($headers[ODataConstants::HTTPRESPONSE_HEADER_STATUS])) ? $headers[ODataConstants::HTTPRESPONSE_HEADER_STATUS] : 200;\n\t\tunset($headers[ODataConstants::HTTPRESPONSE_HEADER_STATUS]);\n\n\t\t$response = new Response(trim($outGoingResponse->getStream()), $status_code, array_filter($headers));\n\t\t$response->prepare($request->getRequest());\n\n\t\treturn $response;\n\t}", "public function getrequest()\n {\n $request = User::getrequest();\n return result::repsonse(true,$request);\n }", "abstract public function simplifyResponse($request, $response);", "public static function response(): Response\n {\n return new Response;\n }", "public function toResponse($request)\n {\n return $this->toHtml();\n }", "public function processRequest() {\r\n switch($this->requestMethod) {\r\n case 'GET':\r\n if($this->id) {\r\n $response = $this->get($this->id);\r\n }\r\n else {\r\n $response = $this->getAll();\r\n }\r\n break;\r\n case 'POST':\r\n $response = $this->create();\r\n break;\r\n case 'PUT':\r\n $response = $this->update($this->id);\r\n break;\r\n case 'DELETE':\r\n $response = $this->delete($this->id);\r\n break;\r\n case 'OPTIONS':\r\n break;\r\n default:\r\n $response = $this->notFoundResponse();\r\n break;\r\n }\r\n\r\n header($response['status_code_header']);\r\n\r\n // If there is a body then echo it\r\n if($response['body']) {\r\n echo $response['body'];\r\n }\r\n }", "public function toResponse($request)\n {\n return response()->download($this->getPath(), $this->file_name);\n }", "public function createResponse()\n {\n return new Response;\n }", "protected function initResponse($request)\n {\n $accept = $request->getAcceptedContentType() ?: ['text/html'];\n switch($accept[0]) {\n case 'text/json':\n case 'application/json':\n case 'application/json-osynapsy':\n ini_set(\"xdebug.overload_var_dump\", \"off\");\n $this->setResponse(new JsonOsynapsyResponse());\n break;\n case 'application/xml':\n ini_set(\"xdebug.overload_var_dump\", \"off\");\n $this->setResponse(new XmlResponse());\n break;\n default:\n $this->setResponse(new HtmlResponse());\n break;\n }\n }", "public function & GetResponse ();", "public function makeResponse(): ResponseInterface;", "function post(Request &$request, Response &$response);", "public function send(Request $request)\n\t{\n\t\t// Initialize middleware manager\n\t\t$this->initializeMiddlewareManager();\n\n\t\t// Lazy load the the HttpClient\n\t\tif( empty($this->httpClient) ){\n\t\t\t$this->setHttpClient(new Client);\n\t\t}\n\n\t\t// Get the response class name to instantiate (to pass into Middleware)\n\t\t$responseClass = $this->getOption(self::OPTION_RESPONSE_CLASS);\n\n\t\t// Capture start time (for logging requests)\n\t\t$start = microtime(true);\n\n\t\t// Save the request object so it may be retrieved\n\t\t$this->request = $request;\n\n\t\t// Run the request\n\t\t/** @var ResponseAbstract $response */\n\t\t$response = $this->middlewareManager->peel(\n\t\t\t$request,\n\t\t\tfunction(Request $request) use ($responseClass): ResponseAbstract {\n\n\t\t\ttry {\n\n\t\t\t\t$response = $this->httpClient->send($request->newPsr7Request());\n\t\t\t} catch( BadResponseException $badResponseException ){\n\t\t\t\t$response = $badResponseException->getResponse();\n\t\t\t}\n\n\t\t\treturn new $responseClass($response);\n\t\t});\n\n\t\t// Capture end time\n\t\t$stop = microtime(true);\n\n\t\t// Save the response object so it may be retrieved\n\t\t$this->response = $response;\n\n\t\t// Should we log this request?\n\t\tif( $this->getOption(self::OPTION_LOG) ){\n\t\t\t$this->addLog($request, $response, ($stop-$start));\n\t\t}\n\n\t\treturn $response;\n\t}", "function getresponse()\n {\n if ($this->response) return $this->response;\n $query_string = http_build_query($this->params);\n if ($this->method == \"GET\")\n {\n $path .= '?' . $query_string;\n }\n // set default headers\n $headers = $this->headers;\n if (empty($headers['User-Agent'])) $headers['User-Agent'] = 'php-httplib/1.0 (PHP ' . phpversion() . ')';\n if (empty($headers['Content-Type'])) $headers['Content-Type'] = 'application/x-www-form-urlencoded';\n if ($this->method == 'POST') $headers['Content-Length'] = strlen($query_string);\n $headers['Host'] = $this->host;\n // build the header string\n $request_header = strtoupper($this->method) . \" \" . $this->path . \" HTTP/1.1\\r\\n\";\n foreach ($headers as $key=>&$value)\n {\n $request_header .= $key . \": \" . $value . \"\\r\\n\";\n }\n $request_header .= \"Connection: close\\r\\n\\r\\n\";\n \n if ($this->method == \"POST\")\n {\n $request_header .= $query_string;\n }\n fwrite($this->socket, $request_header);\n $response_header = '';\n do\n {\n $response_header .= fread($this->socket, 1);\n }\n while (!preg_match('/\\\\r\\\\n\\\\r\\\\n$/', $response_header));\n $this->response = new HTTPResponse($this->socket, $response_header);\n return $this->response;\n }", "public function process()\n {\n \t$client = $this->client->getClient();\n\n \ttry {\n $response = $client->get($this->buildUrl());\n return new ResponseJson((string)$response->getBody(), true);\n } catch (RequestException $e) {\n return new ResponseJson((string)$e->getResponse()->getBody(), false);\n }\n }", "public function toResponse($request): JsonResponse\n {\n return tap(response()->json(\n $this->resource->resolve($request),\n $this->calculateStatus()\n ), function ($response) use ($request) {\n $response->original = $this->resource->resource;\n\n $this->resource->withResponse($request, $response);\n });\n }", "function request()\n {\n return app('request');\n }", "public function request( $request )\n {\n $request = $request->withHeader('ApiKey', $this->apikey);\n \n $result = $this->http_client->send($request); \n \n return json_decode($result->getBody(), true);\n }", "public function processRequest(): ResponseInterface\n {\n $routes = $this->bs->routes();\n $request = new Request($this->bs->globals());\n $routingEngine = new RoutingEngine($routes);\n $result = $routingEngine->resolve(\n $request->method(),\n $request->uri()\n );\n if($result === null) {\n return new TextResponse(\"404 page not found\");\n }\n $requestHandler = new RequestHandler(\n $this,\n $request,\n $this->bs->middlewares(),\n $result\n );\n $response = $requestHandler->handleRequest();\n return $response;\n }", "function request($vars=array())\n { \n $this->req->setHeader(array(\n 'user-agent' => 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0',\n 'Referer' => $vars['host'].$vars['url'],\n 'Connection' => 'keep-alive'\n\n ));\n\n\n $url_obj = new Net_URL2(($vars['host'] ? $vars['host'] : DATA_HOST).$vars['url']);\n \n if ($vars['method'] == 'post') {\n $this->req->setMethod(HTTP_Request2::METHOD_POST);\n\n if ($this->cookies_jar) {\n $this->req->setCookieJar($this->cookies_jar);\n }\n $this->req->addPostParameter($vars['params']);\n\n\n\n\n } else {\n $url_obj->setQueryVariables($vars['params']);\n }\n\n\n\n ///////////////////////////////////////\n if ($vars['cookies']) {\n foreach ($vars['cookies'] as $k => $cookie) {\n //$this->req->addCookie($cookie['name'], $cookie['value']);\n }\n }\n\n $this->req->setUrl($url_obj);\n $this->response = $this->req->send();\n \n\n\n //HTTP_Request2_CookieJar::addCookiesFromResponse();\n\n //$cookies = HTTP_Request2_CookieJar::getAll();\n \n $this->cookies_jar = $this->req->getCookieJar();\n //echo '<pre>';\n //print_r($this->req);\n \n\n if (DEBUG == 1) {\n //echo \"\\n POST TO: \".$this->req->getUrl().\"\\n\";\n echo '<pre>';\n echo \"Status \".$this->response->getStatus();\n print_r($this->req);\n }\n\n $body = $this->response->getBody();\n //$header = $this->response->getHeader();\n return $body;\n }", "public function toResponse($request) {\n\n $jsondata = [];\n\n //set all data to arrays\n foreach ($this->payload as $key => $value) {\n $$key = $value;\n }\n\n //update active time\n if ($action == 'update') {\n $jsondata['dom_html'][] = array(\n 'selector' => '#my-timer-time-topnav',\n 'action' => 'replace',\n 'value' => runtimeSecondsHumanReadable($seconds, false));\n }\n\n //there is no actve timer\n if ($action == 'hide') {\n $jsondata['dom_visibility'][] = [\n 'selector' => '#my-timer-container-topnav',\n 'action' => 'hide',\n ];\n $jsondata['dom_html'][] = [\n 'selector' => '#my-timer-time-topnav',\n 'action' => 'replace',\n 'value' => runtimeSecondsHumanReadable(0, false),\n ];\n }\n\n //skip dom initialization\n $jsondata['skip_dom_reset'] = true;\n\n //skip tinymce reload\n $jsondata['skip_dom_tinymce'] = true;\n\n //response\n return response()->json($jsondata);\n\n }", "public function request(Request $request)\n {\n if (file_exists($this->getFilename())) {\n return new Response(file_get_contents($this->getFilename()), 200);\n } else {\n return new Response('', 500);\n }\n }", "public function prepare(Request $request) :static\n {\n $this->setContent(json_encode($this->getResponse()));\n\n $this->setStatusCode($this->code);\n\n $this->headers->set('Content-Type', 'application/json');\n\n return parent::prepare($request);\n }", "public function getRequestWrapper();", "public static function getResponse( $request )\n {\n try\n {\n $r = self::getResponder( $request );\n return $r ? $r->getResponse() : null;\n }\n catch(Error $ex)\n {\n return new JSONResponse_Error( $request, $ex );\n }\n }", "public function toResponse(): Response\n {\n $response = clone RequestContext::getResponse();\n return $response->setException($this->getException())->auto($this->handleBody(), $this->getStatusCode());\n }", "private function respond()\n {\n $this->response->header('Content-Type', 'application/json');\n return $this->response;\n }", "public function sendRequest(Request $request) {\n $this->client->setUrl($request->getUri());\n if($request->getMethod() == \"GET\"){\n $this->client->getUrl()->setQueryVariables($request->getParams());\n }else{\n $this->client->addPostParameter($request->getParams());\n }\n $this->client->setConfig('ssl_verify_peer', true);\n $this->client->setConfig('ssl_verify_host', true);\n $this->client->setConfig('ssl_cafile', __DIR__ . DIRECTORY_SEPARATOR . \"cacert.pem\");\n $this->client->setMethod($request->getMethod());\n $this->client->setHeader('Accept', 'application/json');\n $this->response = $this->client->send();\n if ($this->response->getHeader('Content-Type') != 'application/json') {\n throw new UnexpectedValueException(\"Unknown response format.\");\n }\n $body = json_decode($this->response->getBody(), true);\n $response = new Response();\n $response->setRawResponse($this->response->getBody());\n $response->setBody($body);\n $response->setHeaders($this->response->getHeader());\n $response->setStatus($this->response->getReasonPhrase(), $this->response->getStatus());\n return $response;\n }", "public function fetchRequest($request){\r\n\t\t$response = \"\";\r\n\t\t$session = curl_init($request);\r\n\t\tif($session === false)\r\n\t\tdie(\"curl_init failed\");\r\n\t\telse{\r\n\t\t\tcurl_setopt($session, CURLOPT_HEADER, false);\r\n\t\t\tcurl_setopt($session, CURLOPT_RETURNTRANSFER, true);\r\n\t\t\tcurl_setopt($session,CURLOPT_FRESH_CONNECT,true);\r\n\t\t\t$response = curl_exec($session);\r\n\t\t\tif($response === false)\r\n\t\t\tdie(\"Error fetching response\");\r\n\t\t\tcurl_close($session);\r\n\t\t}\r\n\t\treturn $response;\r\n\t}", "protected function _response() {}", "public function createResponse(Request $request, $content)\n {\n // NOTE: even null values get serialized appropriately\n\n $context = new SerializationContext();\n $context->setAttribute('translatable', true);\n $context->setSerializeNull(true);\n\n $content = $this->serializerService->serialize($content, $request->getRequestFormat('json'), $context);\n\n return new Response(\n $content,\n 200,\n array(\n 'Content-type' => $request->getMimeType($request->getRequestFormat('json')),\n 'Content-length' => strlen($content),\n )\n );\n }", "public static function getResponse(RequestInterface $request, ResponseInterface $response, ContainerInterface $container) : ResponseInterface;", "public function getreponse(Request $request)\n {\n\n $states = DB::table(\"reponse\")\n ->where(\"id_que\", '=', $request->idque)\n ->pluck(\"id_rep\", \"reponse\");\n return response()->json($states);\n }", "public function index(RequestContract $request): ResponseContract\n {\n $response = $this->repository->index($request->get());\n\n return (new ResponseFactory())->create($response);\n }", "function response($content = '', $status = 200, array $headers = [])\n\t{\n\t\t$factory = app(ResponseFactory::class);\n\n\t\tif (func_num_args() === 0) {\n\t\t\treturn $factory;\n\t\t}\n\n return $factory->make($content, $status, $headers);\n\t}", "public function response();", "private function request($fmt, $args=array()) {\n\t\t\n\t\t// build up an array of template arguments\n\t\t$tmpl_args = array_merge($this->tmpl_args, $args);\n\t\t\n\t\t// build the templated URL -- this is the URL we'll now request\n\t\t$request_url = $this->tmpl($fmt, $tmpl_args);\n\n\t\t$response = NULL;\n\t\t\n\t\ttry \n\t\t{\n\t\t\t$response = file_get_contents($request_url);\n\t\t\t$response = json_decode($response);\n\t\t} \n\t\tcatch(Exception $ex) \n\t\t{\n\t\t\t$response = NULL;\n\t\t\t// todo: some kind of error handling\n\t\t}\n\t\t\n\t\treturn $response;\n\t\t\t\t\n\t}", "function send_request($request)\n {\n $response = $request->send();\n return $this->parse_response($response);\n }", "public function getRequest() {}", "public function getRequest() {}", "public function render($request)\n {\n return response('Hello World', 200)\n ->header('Content-Type', 'text/plain');\n }", "public function & GetRequest ();", "function post($request) {\n\n\t\t$response = new Response($request);\n\t\t$message = '';\n\t\tif ($this->ValidateArgs($_POST)){\n\t\t\t$answer = new UserAnswers();\n\t\t\t$user_args = $this->addTimestamp($_POST);\n\t\t\t$result = $answer->setAnswer($user_args);\n\t\t\tif ($result) {\n\t\t\t\t$message = array('msg' => 'Question successfully answered');\n\t\t\t\t$response->code = Response::OK;\n\t\t\t} else {\n\t\t\t\t$message = array('msg' => 'Error in answering\"');\n\t\t\t\t$response->code = Response::INTERNALSERVERERROR;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\t$message = array('msg' => 'invalid arguments');\n\t\t\t$response->code = Response::INTERNALSERVERERROR;\n\t\t}\n\t\t$response->addHeader('Content-type', 'application/json');\n\t\t$response->body = json_encode($message);\n\t\treturn $response;\n\t}", "public function getResponse(\\Core\\Requests\\Request $request) : \\Core\\Responses\\Response {\n if (!($request instanceof \\Core\\Requests\\CLIRequest)) {\n throw CoreException::create(\n 'ResourceException',\n 'CLIResource class only works with CLIRequest classes, passed \"' . get_class($request) . '\"'\n );\n }\n\n $this->request = $request;\n\n return $this->processRequest();\n }", "function handleRequest($request, &$response){ \n switch($request->getHeader($HEADER_CONTENT_TYPE)){\n case $CONTENT_TYPE_JSON:\n if(json_decode($request)!=null){ // basic JSON validation\n $response->getBody()->write($SAMPLE_RESPONSE_JSON);\n $response->withHeader($HEADER_CONTENT_TYPE, $CONTENT_TYPE_JSON);\n $response->withStatus(200, $STATUS_REASON_200);\n }else\n $response->withStatus(400, $STATUS_REASON_400);\n break;\n case $CONTENT_TYPE_HTML:\n $response->getBody()->write($SAMPLE_RESPONSE_HTML);\n $response->withHeader($HEADER_CONTENT_TYPE, $CONTENT_TYPE_HTML);\n $response->withStatus(200, $STATUS_REASON_200);\n break;\n // other content types can be added as needed\n default:\n $response->withStatus(400, $STATUS_REASON_400);\n }\n}", "public function run($request = null)\n {\n return $response = $this->dispatch($request);\n// if ($response instanceof Response) {\n// $response->send();\n// } else {\n// echo (string)$response;\n// }\n }", "function rest_do_request($request)\n {\n }", "public function getRequestResponse()\r\n {\r\n return $this->request_response;\r\n }", "public function respond(ServerRequest $request)\n {\n try {\n $response = $this->request($request)\n ->finalize()\n ->getResponse();\n } catch (\\Exception $e) {\n if ($failRoute = $this->failRoute) {\n $response = $this->execute($failRoute, array('exception' => $e, 'request' => $request), $request)\n ->finalize()\n ->getResponse();\n\n $this->failRoute = null;\n } else if ($this->map->hasFailRoute()) {\n $response = $this->execute($this->map->getFailRoute(), array('exception' => $e, 'request' => $request), $request)\n ->finalize()\n ->getResponse();\n } else {\n $message = '<pre><h2>[' . get_class($e) . '] ' . $e->getMessage() . '</h2>' . PHP_EOL;\n $message .= $e->getTraceAsString();\n\n $response = Response::createEmptyResponse()\n ->setStatus(404)\n ->setBody($message);\n }\n }\n\n return $response;\n }", "public function sendRequest()\n {\n\n $proxyurl = '';\n if (!is_null($this->proxy)) {\n $proxyurl = $this->proxy->url;\n }\n // create context with proper junk\n $ctx = stream_context_create(\n array(\n $this->uri->protocol => array(\n 'method' => $this->verb,\n 'content' => $this->body,\n 'header' => $this->buildHeaderString(),\n 'proxy' => $proxyurl,\n )\n )\n );\n\n set_error_handler(array($this,'_errorHandler'));\n $fp = fopen($this->uri->url, 'rb', false, $ctx);\n if (!is_resource($fp)) {\n // php sucks\n if (strpos($this->_phpErrorStr, 'HTTP/1.1 304')) {\n restore_error_handler();\n $details = $this->uri->toArray();\n\n $details['code'] = '304';\n $details['httpVersion'] = '1.1';\n\n return new PEAR2_HTTP_Request_Response($details,'',array(),array());\n }\n restore_error_handler();\n throw new PEAR2_HTTP_Request_Exception('Url ' . $this->uri->url . ' could not be opened (PhpStream Adapter ('.$this->_phpErrorStr.'))');\n } else {\n restore_error_handler();\n }\n\n stream_set_timeout($fp, $this->requestTimeout);\n $body = stream_get_contents($fp);\n\n if ($body === false) {\n throw new PEAR2_HTTP_Request_Exception(\n 'Url ' . $this->uri->url . ' did not return a response'\n );\n }\n\n $meta = stream_get_meta_data($fp);\n fclose($fp);\n\n $headers = $meta['wrapper_data'];\n\n $details = $this->uri->toArray();\n\n $tmp = $this->parseResponseCode($headers[0]);\n $details['code'] = $tmp['code'];\n $details['httpVersion'] = $tmp['httpVersion'];\n\n $cookies = array();\n $this->headers = $this->cookies = array();\n\n foreach($headers as $line) {\n $this->processHeader($line);\n }\n\n return new PEAR2_HTTP_Request_Response(\n $details,$body,new PEAR2_HTTP_Request_Headers($this->headers),$this->cookies);\n }", "function mkOpdsResponse($app, $content, $type)\n{\n $resp = $app->response();\n $resp->status(200);\n $resp->header('Content-type', $type);\n $resp->header('Content-Length', strlen($content));\n $resp->body($content);\n}", "public function createRequest()\n {\n return new ChipVN_Http_Request;\n }", "public function handleRequest($request)\n {\n list ($route, $params) = $request->resolve();\n $this->requestedRoute = $route;\n $result = $this->runAction($route, $params);\n\n if ($result instanceof Response) {\n return $result;\n } elseif ($result instanceof Looper){\n $result->loop();\n\n $response = $this->getResponse();\n $response->exitStatus = 0;\n\n return $response;\n } else {\n $response = $this->getResponse();\n $response->exitStatus = $result;\n\n return $response;\n }\n }", "function response($content = '', $statusCode = 200)\n {\n return new \\Anonym\\Http\\Response($content, $statusCode);\n }" ]
[ "0.70882523", "0.6656595", "0.6575353", "0.6447545", "0.64081085", "0.6315267", "0.63011444", "0.6295999", "0.62708265", "0.61765665", "0.61694235", "0.6129639", "0.61217386", "0.6117422", "0.60477906", "0.6046573", "0.6039111", "0.60224676", "0.60142684", "0.5956012", "0.59187603", "0.5878947", "0.58616626", "0.58514005", "0.58356667", "0.58245534", "0.5818928", "0.5798621", "0.5795096", "0.5784043", "0.5764695", "0.57598245", "0.57506645", "0.57439876", "0.57296777", "0.5726125", "0.5725708", "0.5725023", "0.57138824", "0.571312", "0.5698099", "0.5686334", "0.56850296", "0.5675711", "0.5668145", "0.56593204", "0.56510603", "0.5649167", "0.56324667", "0.56117177", "0.56024474", "0.55901515", "0.5583128", "0.55806035", "0.5572027", "0.5566935", "0.55518395", "0.55484164", "0.5548022", "0.55467427", "0.55376416", "0.5535716", "0.5529568", "0.5522836", "0.55183935", "0.55138916", "0.550765", "0.5505644", "0.55043745", "0.5501783", "0.5498033", "0.5495735", "0.5493801", "0.54894173", "0.54841167", "0.5481781", "0.5470694", "0.5463746", "0.54633236", "0.54611903", "0.5457725", "0.54539406", "0.54528284", "0.5449556", "0.54482424", "0.54482424", "0.544295", "0.5442149", "0.5434563", "0.5434016", "0.5430339", "0.5427889", "0.54198176", "0.54068846", "0.54063874", "0.53994673", "0.539932", "0.53991526", "0.5398834", "0.5398339" ]
0.6612611
2
Getter method for caching time.
public function getCache() { return $this->_cache; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCachingTime()\n {\n return $this->caching_time;\n }", "protected function getCacheTime()\n {\n return $this->_cacheTime;\n }", "public function getCacheTime()\n {\n return $this->_cacheTime;\n }", "protected function getCacheTime() {\n $time = self::CACHE_TIME;\n\n return $time; \n }", "public function getCacheTime()\n\t{\n\t\treturn $this->scopeConfig->getValue(\n\t\t\t$this->getConfigPath(self::SYSTEM_CONFIG_PATH_CACHING),\n\t\t\t\\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE\n\t\t);\n\t}", "public function getDefaultCacheTime()\n {\n return $this->default;\n }", "public function getConversationCacheTime()\n {\n return $this->cacheTime ?? null;\n }", "public function cacheFor()\n {\n return now()->addMinutes(2);\n }", "public function cacheFor()\n {\n // return now()->addMinutes(5);\n }", "protected function getTime()\n {\n return time();\n }", "public function cacheFor()\n {\n return now()->addMinutes(1440);\n }", "protected function getTTL()\n {\n return Cache::getDefaultCacheTime();\n }", "public function getTime()\n {\n return $this->get(self::_TIME);\n }", "public function getTime()\n {\n return $this->get(self::_TIME);\n }", "public function getTime()\n {\n return $this->get(self::_TIME);\n }", "protected function cacheTime(): Carbon\n {\n return Carbon::now()->addSeconds(config('hybridly-share.cache-ttl', 60));\n }", "protected function getTime() {\n return microtime(true);\n }", "public function getTime()\n {\n return $this->get(self::TIME);\n }", "public function cacheTtl()\n {\n return $this->cacheTtl;\n }", "protected function getTime()\n {\n return microtime(true);\n }", "function cache() {\n\n if ( func_num_args() == 0 ) {\n return $this->expireTime;\n } elseif ( func_num_args() == 1 ) {\n if ( is_bool(($arg = func_get_arg(0))) ) {\n if ( $arg ) {\n $this->expireTime = 3600;\n } else {\n $this->expireTime = 0;\n }\n } elseif ( is_numeric($arg) ) {\n $this->expireTime = $arg;\n } else {\n return isset($this->cache_expires[$arg])?$this->cache_expires[$arg]:0;\n }\n } elseif ( func_num_args() == 2 ) {\n if ( is_numeric(($arg=func_get_arg(1))) ) {\n $this->cache_expires[func_get_arg(0)] = $arg;\n } elseif ( is_bool($arg) ) {\n if ( $arg ) {\n $this->cache_expires[func_get_arg(0)] = 3600;\n } else {\n $this->cache_expires[func_get_arg(0)] = 0;\n }\n }\n }\n }", "abstract public function cachedTime(string $key): ?int;", "public function getTime()\n\t{\n\t\tif(is_null($this->_time)){\n\t\t\t$this->loadData();\n\t\t}\n\t\treturn $this->_time;\n\t}", "public function get_time() {\n return $this->_time;\n }", "public function getTime()\n {\n return time();\n }", "public function howLongToCacheInSeconds(){\n return(120); //two minutes by default\n }", "public function getTime() {\n\t\treturn $this->_time;\n\t}", "protected function _getCacheLifetime()\n\t{\n\t\treturn Mage::helper('bcp')->getAdvancedConfig('html_page_cache_time');\n\t}", "public function getCacheTimeToLive() {\n return $this->cacheTtl;\n }", "public static function cache_time($name) {\n if(self::$adapter === false)\n throw new rcException('The Cache system is not initialized');\n return self::$adapter->cache_time($name);\n }", "public function cacheLifetime()\n {\n return config('personality-insights.cache_expiration');\n }", "private function _getCacheLifeTime() {\n\n $getDefaultCache = $this->_readDefaultCache();\n if (isset($getDefaultCache['frontend']['lifetime']) && !empty($getDefaultCache['frontend']['lifetime']))\n $chacheLifetime = $getDefaultCache['frontend']['lifetime'];\n $chacheLifetime = !empty($chacheLifetime) ? $chacheLifetime : 300;\n return $chacheLifetime;\n }", "public function getCacheTime($configKey);", "public function getTime()\n {\n return $this->time;\n }", "public function getTime()\n {\n return $this->time;\n }", "public function getTime()\n {\n return $this->time;\n }", "public function getTime()\n {\n return $this->time;\n }", "public function getTime()\n {\n return $this->time;\n }", "public function getTime()\n {\n return $this->time;\n }", "public function getTime()\n {\n return $this->time;\n }", "public function getTime()\n {\n return $this->time;\n }", "public function getTime()\n {\n return $this->time;\n }", "public function getTime()\n {\n return $this->time;\n }", "public function getTime()\n {\n return $this->time;\n }", "public function getTime() {\n return $this->time;\n }", "public function getTime()\n {\n return $this->time;\n }", "public static function __getTime()\n\t{\n\t\treturn time() + self::$__timeOffset;\n\t}", "public function getTime();", "public function getTime();", "public function cacheFor(): DateTimeInterface|DateInterval|float|int|null;", "public function cached_timestamp()\n\t{\n\t\t$query = $this->_EE->db->get_where('dd_settings', array('key' => 'last_saved'));\n\t\treturn ($query->num_rows() > 0) ? $query->row()->value : 0 ;\n\t}", "public function howLongToCacheInSeconds(){\n return(12000); //200 minutes\n }", "protected static function _time()\n\t{\n\t\treturn time();\n\t}", "public function time()\n {\n return $this->_requestTime;\n }", "public function getTime()\n {\n return $this->values[\"time\"];\n }", "public static function getCached()\n {\n return static::$cached;\n }", "public static function getCacheLifetime()\r\n {\r\n return self::$_cacheLifetime;\r\n }", "public function howLongToCacheInSeconds(){\n return(1200); //twenty minutes by default\n }", "public function get_time() {\r\n\t\t\t$date = $this->get_date( 'U' );\r\n\t\t\treturn is_numeric( $date ) ? $date : time(); //time wrong? use now\r\n\t\t}", "public function getFetchTime() {\n return $this->fetchTime;\n }", "public function getExpireTime()\n {\n return $this->get(self::_EXPIRE_TIME);\n }", "public function getExpireTime()\n {\n return $this->get(self::_EXPIRE_TIME);\n }", "public function getExpireTime()\n {\n return $this->get(self::_EXPIRE_TIME);\n }", "public function getExpireTime()\n {\n return $this->get(self::_EXPIRE_TIME);\n }", "public function getTimeToCook()\n {\n return $this->_timeToCook;\n }", "public function getLastGetTime()\n {\n return $this->get(self::_LAST_GET_TIME);\n }", "public function getCacheLifetime()\n {\n return self::DEFAULT_CACHE_LIFETIME;\n }", "public function getTime()\n {\n return $this->data['fields']['time'];\n }", "public function getExpirationTime() {\n return $this->shareData[\"expire\"];\n }", "public function getTime(): int {\n return $this->time;\n }", "public function getCacheExpiry()\n {\n return $this->cachePeriod;\n }", "public function time() {\n return $this->info['total_time'];\n }", "public static function get_cache_age()\n {\n return self::$cache_age;\n }", "public function getCacheTimeout()\n {\n return $this->cacheTimeout;\n }", "public function getCacheLifetime(): int;", "function getLifeTime();", "public function cacheGet() {\n }", "public function getCacheTTL()\n {\n return $this->CacheTTL;\n }", "public function getSessionTime(){\n return $this->_session->get('time');\n }", "public function getUseTime() \n \t{\n \t\treturn $this->use_time;\n \t}", "public function get()\n {\n return Cache::get($this->cacheKey);\n }", "#[Pure]\n public function getTimeOfDayCached(): float {}", "public function getLastCheckTime()\n {\n return $this->cacheManager->load(self::LAST_CHECK_TIME_ID);\n }", "function get_timecreated() {\n return $this->timecreated;\n }", "public function getCacheTTL();", "public function getCacheLifetime() {\n\t\treturn $this->cacheLifetime;\n\t}", "public function getExpiresAt();", "public function getFromCache() {}", "public function time()\n {\n return $this->client->publicRequest('GET', '/api/v3/time');\n }", "public function getTempCacheTimeToLive() {\n return $this->temporaryCacheTtl;\n }", "public function getTime(): int {\n\t\treturn $this->time;\n\t}", "public static function timestamp() {\n return time(); \n }", "private function getCurrentTime() {\n return microtime( true );\n }", "protected function get_cache() {\n\t\n // uncomment next line to flush previous cache\n\t //delete_transient($this->get_cache_id()); \n\t\n \treturn get_transient( $this->get_cache_id() ); \t \n\t}", "private function getCurrentTime()\n {\n return microtime(true);\n }", "public function testTime()\n {\n $this->assertEquals(self::$cache->time('Toaster'), '');\n\n //Standard function test\n self::$cache->set('Toaster', 'Test', 5);\n\n $this->assertEquals(self::$cache->time('Toaster'), time());\n }", "public function getCurrentTime() {\n $timestamp = $this->getInfo();\n $http_code = $timestamp->code;\n $current_time = 'Time not set yet';\n if ($http_code == 200) {\n $current_time = date('H:i', $timestamp->data->date->timestamp);\n }\n return $current_time;\n }", "function get_timemodified() {\n return $this->timemodified;\n }", "public function getTiming()\n {\n return $this->timing;\n }", "public function get_time_created(){\n\t\treturn $this->time_created;\n\t}", "public static function getTimer()\n {\n return microtime(true) - $_SERVER[\"REQUEST_TIME_FLOAT\"];\n }" ]
[ "0.8696254", "0.86087936", "0.85240805", "0.8466084", "0.8156797", "0.78342146", "0.7735914", "0.7692793", "0.75370854", "0.7498876", "0.7476101", "0.747194", "0.74226516", "0.74225503", "0.74225503", "0.7408339", "0.7316189", "0.7298312", "0.72981435", "0.7280878", "0.7273561", "0.7246706", "0.7241376", "0.7237466", "0.7229301", "0.7203034", "0.719936", "0.7184991", "0.7182415", "0.71711475", "0.71530426", "0.7135087", "0.71247673", "0.7113967", "0.7113967", "0.7113967", "0.7113967", "0.7113967", "0.7113967", "0.7113967", "0.7113967", "0.7113967", "0.7113967", "0.7113967", "0.7111002", "0.7095607", "0.70811385", "0.70320344", "0.70320344", "0.69780475", "0.69404066", "0.69347167", "0.6910274", "0.68622553", "0.6857778", "0.685552", "0.6833157", "0.6830682", "0.68180263", "0.6808301", "0.6806944", "0.6806944", "0.6806944", "0.6806944", "0.6794944", "0.67934513", "0.67909837", "0.67838824", "0.6773172", "0.676907", "0.6762722", "0.67509663", "0.674538", "0.67449933", "0.67421025", "0.67372924", "0.6736776", "0.67293465", "0.6723426", "0.6685621", "0.6684524", "0.6665104", "0.665597", "0.66334623", "0.6621951", "0.6618958", "0.6618309", "0.6613586", "0.66072816", "0.6607034", "0.6601366", "0.6599898", "0.6599401", "0.65967405", "0.6588983", "0.65627575", "0.65499145", "0.6539409", "0.65317786", "0.6523624", "0.65130323" ]
0.0
-1
Ensure whether the required args are provided or not.
protected function ensureRequiredArguments() { foreach ($this->_requiredArgs as $key) { if (!array_key_exists($key, $this->_args)) { throw new MissingArgumentsException("Missing required arguments detected."); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cli_validateArgs() {}", "public function validateArguments() {}", "function checkMandatoryArguments()\n \t{\n \t\tif($this->mStrAdGUID == \"\" || $this->mStrAdGUID == null)\n \t\t\treturn false;\n \t\telse if($this->mStrQuantity == \"\" || $this->mStrQuantity == null)\n \t\t\treturn false;\n \t\telse\n \t\t\treturn true;\n \t}", "public function validateRequiredArguments(array $required_arguments, array $arguments_present):void\n {\n // Throw exception if we are missing required arguments\n if (!empty($required_arguments)) {\n $processed_arguments = array_diff($required_arguments, $arguments_present);\n if (!empty($processed_arguments)) {\n throw new Exception(\"Missing required arguments for command {$this->command}: \" . implode(',', $processed_arguments));\n }\n }\n }", "final public function check_args(array $req, array $args) {\n\t\t$diff = \\array_diff($req, \\array_keys($args));\n\t\tif (count($diff) === 0) { return; }\n\n\t\tthrow new APIException(\n\t\t\tHTTPStatus::INTERNAL_SERVER_ERROR,\n\t\t\t\"Missing arguments \".implode(', ', $diff).\n\t\t\t\" for API module '\".get_class($this).\"'.\"\n\t\t);\n\t}", "abstract protected function requiredArguments(): array;", "public function checkRequired() {\n\t\tif(!func_num_args()) {\n\t\t\treturn true;\n\t\t}\n\n\t\t$optArr = func_get_args();\n\t\tforeach($optArr as $val) {\n\t\t\t$flag = $val;\n\t\t\t$altFlag = false;\n\n\t\t\tif(is_array($val)) {\n\t\t\t\tlist($flag, $altFlag) = array_values($val);\n\t\t\t}\n\n\t\t\tif(!$this->isFlagSet($flag, $altFlag)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "function required_params()\n {\n $params = func_get_args();\n foreach ($params as $value) {\n if (is_array($value)) {\n if (empty($value)) {\n return false;\n }\n } else {\n if ($value === null || strlen(trim($value)) == 0) {\n return false;\n }\n }\n }\n\n return true;\n }", "protected function isValidArguments()\n {\n if (empty($this->inputFile))\n throw new MissingArgumentException(\"Input file is required.\");\n\n if (empty($this->outputFile))\n throw new MissingArgumentException(\"Output file is required.\");\n\n if (empty($this->beginTime))\n throw new MissingArgumentException(\"Begin time is required.\");\n\n if (empty($this->endTime))\n throw new MissingArgumentException(\"End time is required.\");\n\n return true;\n }", "public function validate()\n {\n $requiredArguments = $this->getRequiredArguments();\n \n foreach ($requiredArguments as $arg) {\n if ( ! isset($this->arguments[$arg])) {\n return false;\n }\n }\n \n return true;\n }", "protected function checkArguments(array $arguments)\n {\n foreach ($this->requiredArguments() as $requiredArgument) {\n if (array_key_exists($requiredArgument, $arguments)) {\n continue;\n }\n\n throw new \\InvalidArgumentException(sprintf('{%s} is required. [%s]', $requiredArgument, get_class($this)));\n }\n }", "protected function checkParams()\n {\n if ((null === $this->jar) or !file_exists($this->jar)) {\n throw new BuildException(\n sprintf(\n 'Specify the name of the LiquiBase.jar. \"%s\" does not exist!',\n $this->jar\n )\n );\n }\n\n $this->checkChangeLogFile();\n\n if (null === $this->classpathref) {\n throw new BuildException('Please provide a classpath!');\n }\n\n if (null === $this->username) {\n throw new BuildException('Please provide a username for database acccess!');\n }\n\n if (null === $this->password) {\n throw new BuildException('Please provide a password for database acccess!');\n }\n\n if (null === $this->url) {\n throw new BuildException('Please provide a url for database acccess!');\n }\n }", "protected function wrong_arguments() {\n\t\t\twp_die();\n\t\t}", "public function required(): self{\n $args = func_get_args();\n foreach ($args as $arg){\n if(!array_key_exists($arg, $this->params)){\n $this->setError($arg, __FUNCTION__);\n }\n }\n return $this;\n }", "public function testMissingRequiredArg(array $args): void\n {\n $this->expectException(InvalidArgumentException::class);\n $command = new UserBillingAddressUpdate(\n 'app_id',\n 'app_password',\n 'http://my.server.com',\n $args\n );\n $command->getRequest();\n }", "public function hasArguments() {}", "public function hasArgs(): bool\n {\n return !empty($this->meta[Cli::ARGS]);\n }", "public function checkRequirements()\n {\n }", "protected function doRequiredCheck()\n {\n if ($this->value === __FILE__) {\n if ($this->throws === null) {\n throw new \\InvalidArgumentException(' is a required option');\n } else {\n throw (new Callback($this->throws))->call();\n }\n }\n }", "public function required();", "public function required();", "public function required();", "function requirePOST(...$args) {\n foreach ($args as $field) {\n if (!isset($_POST[$field])) die(\"Missing data!\\n\");\n }\n}", "public function checkRequiredParamsSet() : bool {\n }", "public function testMissingParametersEnsureMethod() {\n $this->pingdom->ensureParameters(array(), null);\n }", "private function checkRequiredParameters()\n {\n $missingParameters = array();\n\n foreach ($this->parameters as $name => $properties) {\n $required = $properties['required'];\n $value = $properties['value'];\n if ($required && is_null($value)) {\n $missingParameters[] = $name;\n }\n }\n\n if (count($missingParameters) > 0) {\n $missingParametersList = implode(', ', $missingParameters);\n throw new IndexParameterException('The following required\n parameters were not set: '.$missingParametersList.'.');\n }\n }", "protected function assert_params()\n\t{\n\t\tforeach (func_get_args() as $param)\n\t\t\tif (!isset ($this->variables->$param))\n\t\t\t\tthrow new FailsViewParameterMissingException ($param);\n\t}", "public function validateArgs(...$args) {\n\t\tif (!in_array($args[0], $this->models)) {\n\t\t\techo \"\\nError: Invalid Pay Model! Should be one of the '\" . implode(\"','\", $this->models) . \"' \\n\\n\";\n\t\t\texit;\n\t\t}\n\n\t\t$d = $this->convertDate($args[1], 'Y-m-d');\n\t\tif (!($d == $args[1])) {\n\t\t\techo \"\\nError: Invalid date !\\n\\n\";\n\t\t\texit;\n\t\t}\n\n\t\tif (!is_numeric($args[2]) || (int) $args[2] < 0) {\n\t\t\techo \"\\nError: Invalid count !\\n\\n\";\n\t\t\texit;\n\t\t}\n\t}", "public function testMissingParametersEnsureParameters() {\n $this->pingdom->ensureParameters(null, __method__);\n }", "public function hasArguments(): bool;", "private function checkArg()\n {\n // {\n // echo '【エラー】:引数が不正です、第一引数に変換元フォルダ、第二引数に変換後ファイルパスを指定して下さい' . PHP_EOL;\n // return false;\n // }\n\n $this->input_dir_path = '../database/reversi/wtb';\n $this->output_file_path = '../database/reversi/csv';\n\n return true;\n }", "public function prepareArguments() {}", "private function assertContainsRequiredParameters($data)\n {\n foreach ($this->_required as $param) {\n if (!isset($data[$param])) {\n throw new \\BadMethodCallException('Missing required param ' . $param);\n }\n }\n }", "protected function checkRequiredProps()\n {\n foreach ($this->getPropDefs() as $name => $def) {\n if (!empty($def['required']) && !isset($this->props[$name])) {\n throw new AppException(sprintf('%s: \"%s\" is required', get_called_class(), $name));\n }\n }\n }", "function get_cli_args($param, $required = \\false)\n {\n }", "protected function performValidation()\n {\n // no required arguments\n }", "public function checkSetup()\n {\n if ($this->itemType == \"\") {\n die(\"No itemType provided!\");\n }\n if ($this->classPathBase == \"\") {\n die(\"No classPathBase provided!\");\n }\n if ($this->listView == \"\" && empty($this->listNames)) {\n die(\"Provide either a list view OR fields!\");\n }\n if ($this->createView == \"\" && empty($this->editSettings)) {\n die(\"No create view OR editSettings provided!\");\n }\n\n if (! empty($this->editSettings)) {\n $fields = ['label','type'];\n foreach ($this->editSettings as $key => $es) {\n foreach ($fields as $f) {\n if (empty($es[$f])) {\n die(\"An edit parameter - {$f} - is missing or blank in your config for \\\"{$key}\\\".\");\n }\n }\n }\n }\n }", "public function checkRequiredParamsAreSet()\n {\n $validator = new Validator($this->params);\n $validator->rule('required', $this->requiredParams, true);\n\n if (!$validator->validate()) {\n throw new ParamNotSetException(key($validator->errors()));\n }\n }", "function check_empty(){\n foreach(func_get_args() as $arg){\n if(empty($arg))\n return 1;\n else\n return false;\n }\n}", "function verifyRequiredParams($required_fields)\n {\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::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::getInstance();\n $response[\"error\"] = true;\n $response[\"message\"] = 'Required field(s) ' . substr($error_fields, 0, -2) . ' is missing or empty';\n $this->echoResponse(400, $response);\n $app->stop();\n }\n }", "function checkFields( $args )\r\n {\r\n\t\treturn true;\r\n }", "protected function check() {\n if (empty($this->method_map)\n || empty($this->param)\n || empty($this->service_url)\n ) {\n throw new Exception('Param or method map is empty');\n }\n }", "static 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 if ($error) {\n // Required field(s) are missing or empty\n return 'Required field(s) ' . substr($error_fields, 0, -2) . ' is missing or empty';\n } else {\n return 'done';\n }\n }", "private function validate_input( $assoc_args, $grouping ) {\n\t\t// Check if valid arguments were passed.\n\t\t$arg_match = preg_grep( '/^set-(\\w+)/i', array_keys( $assoc_args ) );\n\n\t\t// Verify passed-arguments.\n\t\tif ( empty( $grouping ) && empty( $arg_match ) ) {\n\t\t\tWP_CLI::error( 'No valid arguments passed.' );\n\t\t}\n\n\t\t// Check whether passed arguments contain value or not.\n\t\t$assoc_arg_values = array_filter( array_intersect_key( $assoc_args, array_flip( $arg_match ) ) );\n\n\t\tif ( empty( $grouping ) && empty( $assoc_arg_values ) ) {\n\t\t\tWP_CLI::error( 'No value passed to arguments.' );\n\t\t}\n\t}", "public static function checkParams($args, $vars)\n {\n if (empty($vars)) {\n return;\n }\n // Check variables exists\n foreach ($vars as $var) {\n if (!array_key_exists($var, $args)) {\n throw new ThreadProcessorException(\n \"There is no '{$var}' variable in arguments list\",\n ThreadProcessorException::ERROR_WRONG_ARGUMENTS\n );\n }\n }\n }", "function verifyRequiredParams($required_fields) \n\t{\n\t\t$error = false;\n\t\t$error_fields = \"\";\n\t\t$request_params = array();\n\t\t$request_params = $_REQUEST;\n\t\t\n\t\t// Handling PUT request params\n\t\tif ($_SERVER['REQUEST_METHOD'] == 'PUT') \n\t\t{\n\t\t\t$app = \\Slim\\Slim::getInstance();\n\t\t\tparse_str($app->request()->getBody(), $request_params);\n\t\t}\n\t\t\n\t\tforeach ($required_fields as $field) \n\t\t{\n\t\t\tif (!isset($request_params[$field]) || strlen(trim($request_params[$field])) <= 0) \n\t\t\t{\n\t\t\t\t$error = true;\n\t\t\t\t$error_fields .= $field . ', ';\n\t\t\t}\n\t\t\n\t\t}\n\n\t\tif ($error) \n\t\t{\n\t\t\t\n\t\t\t// Required field(s) are missing or empty\n\t\t\t// echo error json and stop the app\n\t\t\t$response = array();\n\t\t\t$app = \\Slim\\Slim::getInstance();\n\t\t\t$response[\"error\"] = true;\n\t\t\t$response[\"message\"] = 'Required field(s) ' . substr($error_fields, 0, -2) . ' is missing or empty';\n\t\t\techoRespnse(400, $response);\n\t\t\t$app->stop();\n\t\t}\n }", "public function CLIAccesWithArgumentsWithAndWithoutValuesBuildsCorrectRequest() {}", "function verifyRequiredParams($required_fields) {\r\n\t\t\t$error = false;\r\n\t\t\t$error_fields = \"\";\r\n\t\t\t$request_params = array();\r\n\t\t\t$request_params = $_REQUEST;\r\n\t\t\t// Handling PUT request params\r\n\t\t\tif ($_SERVER['REQUEST_METHOD'] == 'PUT') {\r\n\t\t\t\t$app = \\Slim\\Slim::getInstance();\r\n\t\t\t\tparse_str($app->request()->getBody(), $request_params);\r\n\t\t\t}\r\n\t\t\tforeach ($required_fields as $field) {\r\n\t\t\t\tif (!isset($request_params[$field]) || strlen(trim($request_params[$field])) <= 0) {\r\n\t\t\t\t\t$error = true;\r\n\t\t\t\t\t$error_fields .= $field . ', ';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t \r\n\t\tif ($error) {\r\n\t\t\t// Required field(s) are missing or empty\r\n\t\t\t// echo error json and stop the app\r\n\t\t\t$response = array();\r\n\t\t\t$app = \\Slim\\Slim::getInstance();\r\n\t\t\t$response[\"error\"] = true;\r\n\t\t\t$response[\"message\"] = 'Required field(s) ' . substr($error_fields, 0, -2) . ' is missing or empty';\r\n\t\t\techoRespnse(400, $response);\r\n\t\t\t$app->stop();\r\n\t\t}\r\n\t}", "public function checkIfCLIAccesWithPackageControllerActionAndArgumentsToleratesSpaces() {}", "function testRequired(){\n\t\t#mdx:required\n\t\tParam::get('name')\n\t\t\t->context(['name'=>''])\n\t\t\t->filters()\n\t\t\t\t->required(\"Cannot be empty\");\n\n\t\t$error = Param::get('name')->process()->error;\n\t\t#/mdx var_dump($error)\n\t\t$this->assertEquals(\"Cannot be empty\", $error);\n\t}", "function check_required_vars($params = array())\n\t{\n\t\tglobal $SID, $phpEx, $data;\n\n\t\twhile( list($var, $param) = @each($params) )\n\t\t{\n\t\t\tif (empty($data[$param]))\n\t\t\t{\n\t\t\t\tredirect(append_sid(\"garage.$phpEx?mode=error&EID=3\", true));\n\t\t\t}\n\t\t}\n\n\t\treturn ;\n\t}", "private function _hasAllArguments()\n {\n $errors = [];\n foreach ($this->action->args as $key => $val) {\n if (!isset($this->args[$key])) {\n $errors[] = $key;\n }\n }\n\n return $errors;\n }", "function verifyRequiredParams($required_fields)\n{\n\n\t//get request params\n\t$request_params = $_REQUEST;\n\t\n\t//Loop through all parameters\n\tforeach ($required_fields as $field) {\n\t\t//if any required parameter is missing\n\t\tif (!isset($request_params[$field]) || strlen(trim($request_params[$field])) <= 0) {\n\t\t\n\t\t\t//return true\n\t\t\treturn true;\n\t\t}\n\t}\n\t//otherwise, return false\n\treturn false;\n}", "public function validaArgs($args){\n $valid = [\t\t\n // TODO\n ];\n \n\t\treturn $valid;\n }", "function failUnlessExtensionArgs($expected_args)\n {\n $expected_args['mode'] = $this->msg->mode;\n $this->assertEquals($expected_args, $this->msg->getExtensionArgs());\n }", "public function requireFields(array $fields)\n\t{\n\t\t$missingFields = [];\n\n\t\tforeach ($fields as $field)\n\t\t{\n\t\t\tif (!isset($this->sanitizer->output[$field]) || $this->sanitizer->output[$field] === null)\n\t\t\t{\n\t\t\t\t$missingFields[] = $field;\n\t\t\t}\n\t\t}\n\n\t\tif ($missingFields !== [])\n\t\t{\n\t\t\tthrow new MissingParameterException($missingFields);\n\t\t}\n\t}", "public static function getRequiredParams();", "public function testMissingParametersEnsureParametersEmptyValues() {\n $parameters = array(\n 'bool' => FALSE,\n 'int' => 0,\n 'float' => 0.0,\n 'string' => '',\n 'array' => array(),\n );\n try {\n $error = FALSE;\n $this->pingdom->ensureParameters($parameters, __method__);\n }\n catch (MissingParameterException $e) {\n $error = TRUE;\n }\n $this->assertFalse($error);\n }", "public function testCommandHasNoArguments()\n {\n $oCompareApp = new CompareApplication();\n $oDefinition = $oCompareApp->getDefinition();\n $iArgumentCount = $oDefinition->getArgumentCount();\n $this->assertEquals(0, $iArgumentCount);\n }", "private function setArguments()\n {\n if (count($this->args) > 0) {\n foreach ($this->args as $arg) {\n return match($arg[1]) { /* match based on the argument type */\n 'required' => $this->addArgument($arg[0], InputArgument::REQUIRED, $arg[2]),\n 'optional' => $this->addArgument($arg[0], InputArgument::OPTIONAL, $arg[2]),\n 'array' => $this->addArgument($arg[0], InputArgument::IS_ARRAY, $arg[2]),\n default => throw new BaseInvalidArgumentException('Invalid input argument passed')\n };\n }\n }\n return false;\n }", "function verifyRequiredParams($required_fields) {\r\n $error = false;\r\n $error_fields = \"\";\r\n $request_params = array();\r\n $request_params = $_REQUEST;\r\n // handling PUT request params\r\n if ($_SERVER['REQUEST_METHOD'] == 'PUT') {\r\n $app = \\Slim\\Slim::getInstance();\r\n parse_str($app->request()->getBody(), $request_params);\r\n }\r\n foreach ($required_fields as $field) {\r\n if (!isset($request_params[$field]) || !is_array($request_params)) {\r\n $error = true;\r\n $error_fields .= $field . ', ';\r\n }\r\n }\r\n if ($error) {\r\n // required fields are missing or empty\r\n // echo error json and stop the app\r\n $response = array();\r\n $app = \\Slim\\Slim::getInstance();\r\n $response['error'] = true;\r\n $response[\"message\"] = 'Required field(s) ' . substr($error_fields, 0, -2) . ' is missing or empty';\r\n echoResponse(400, $response);\r\n $app->stop();\r\n }\r\n}", "protected function check() {\n if (empty($this->method_map)\n || empty($this->service_url)\n ) {\n throw new Exception('Param or method map is empty');\n }\n }", "private function checkRequired()\n {\n if ($this->fld->is_required == 1 && !$this->is_val_set) {\n throw new Exceptions\\DXCustomException(sprintf(trans('errors.required_field'), $this->fld->title_list));\n }\n }", "function func_has_args(int|string ...$args): bool\n{\n if ($args) {\n foreach ($args as $arg) {\n if (!func_has_arg($arg)) {\n return false;\n }\n }\n return true;\n }\n\n $trace = debug_backtrace(0)[1];\n\n // Count check.\n return !empty($trace['args']);\n}", "private function checkRequiredParameters(array $names, array $params)\n {\n foreach ($names as $name) {\n $this->checkRequiredParameter($name, $params);\n }\n }", "public function getRequiredParameters();", "public function getRequiredParameters();", "function checkExecParams() {\n return TRUE;\n }", "function check_required_param($param = array(),$method){\n //set up method\n if (strtolower($method) == \"post\"){\n $r = $_POST;\n }else if (strtolower($method) == \"get\"){\n $r = $_GET;\n }\n //check of required param\n foreach ($param as $par){\n if (!isset($r[$par]) || empty($r[$par])){\n return false;\n break;\n }\n }\n return true;\n}", "public function checkForErrors()\n {\n if ($this->getDebtor() == '' && $this->getDebtorCode() == '') {\n throw new \\InvalidArgumentException(\n sprintf('Debtor or DebtorCode must be defined')\n );\n }\n\n if ($this->getDomain() == '') {\n throw new \\InvalidArgumentException(\n sprintf('Domain must be defined')\n );\n }\n\n if ($this->getTld() == '') {\n throw new \\InvalidArgumentException(\n sprintf('Tld must be defined')\n );\n }\n }", "public static function CLI_checkRequiredOpts(\\Console_CommandLine_Result $command) {\r\n //if we are called without subcommand, skip\r\n if (!is_object($command->command))\r\n return;\r\n\r\n $subcommand_name = $command->command_name;\r\n $subcommand_options = $command->command->options;\r\n\r\n //self::getKeys()\r\n $keys = call_user_func(array(get_called_class(), 'getKeys'));\r\n //check for all keys if it is required for currently called subcommand\r\n foreach ($keys as $key => $data) {\r\n if (isset($data['actions'][$subcommand_name]) && $data['actions'][$subcommand_name] == 'required')\r\n if (!isset($subcommand_options[$key]))\r\n throw new \\Exception(sprintf('option --%s has to be set', $key));\r\n }\r\n }", "function prepare_args($args)\n {\n }", "public function testExceptionOnMissingArguments()\n {\n $actionGroupUnderTest = (new ActionGroupObjectBuilder())\n ->withArguments([new ArgumentObject('arg1', null, 'entity')])\n ->build();\n\n $this->expectException(TestReferenceException::class);\n $this->expectExceptionMessageRegExp('/Arguments missed .* for actionGroup/');\n $actionGroupUnderTest->getSteps(null, self::ACTION_GROUP_MERGE_KEY);\n }", "private function validate() {\n if (!$this->method)\n throw new InvalidArgumentException('method is required');\n\n if (!$this->url)\n throw new InvalidArgumentException('url is required');\n\n if (!is_string($this->url))\n throw new InvalidArgumentException('url must be a string');\n\n if ($this->args && !is_array($this->args))\n throw new InvalidArgumentException('args must be an associative array');\n\n if ($this->files && !is_array($this->files))\n throw new InvalidArgumentException('files must be an associative array');\n\n if ($this->body && $this->files)\n throw new InvalidArgumentException('body and files are mutually exclusive');\n\n if ($this->args && $this->queryString)\n throw new InvalidArgumentException('args and queryString are mutually exclusive');\n\n if ($this->queryString && !is_string($this->queryString))\n throw new InvalidArgumentException('queryString must be a string');\n\n if ($this->cache === null || !($this->cache instanceof WebRequestCache))\n throw new InvalidArgumentException('cache must be set to a WebRequestCache implementation (use NoCache to disable)');\n }", "public function validate(...$args)\n {\n $isValid = true;\n $invalids = [];\n\n $argExists = function($arg){\n return !is_null($this->parameters->get($arg));\n };\n\n $methodExists = function($arg){\n $exists = method_exists($this, $method = 'get'.ucfirst($arg));\n $hasValue = $exists && !is_null($this->$method());\n\n return $hasValue;\n };\n\n foreach ($args as $arg) {\n\n if( !$argExists($arg) || $methodExists($arg) ){\n $isValid = false;\n $invalids[] = $arg;\n }\n }\n\n if( !$isValid ) {\n $plural = count($invalids) > 1;\n throw new InvalidRequestException(sprintf('Parameter%s %s %s required',\n $plural ? 's' : '',\n implode(', ', $invalids),\n $plural ? 'are' : 'is')\n );\n }\n\n return true;\n }", "protected function validateParameters()\n {\n if (empty($this->save_path)) {\n throw new \\Exception(\"The 'save_path' is not specified!\");\n }\n }", "public function __construct()\n {\n if($this->model == null || $this->model->modelAttributes = null)\n {\n throw new MissingMandatoryParametersException('No model on class or no attributes on model');\n }\n }", "public function testBuildUrlMissingArgs()\n {\n $path = $this->uut->buildPath('omitted-args');\n $this->assertEquals('/omitted-args/{foo}/bar', $path);\n }", "protected function validateArguments($argData){\n foreach($argData as $argName => $argData){\n if(! $this->{$argData['function']}($argData['value']) ){\n throw new Exception(\"$argName expected a value of type {$argData['typeExpected']}\");\n }\n }\n }", "public function getExceedingArguments() {}", "public function hasNoNamedArguments(): bool;", "public function requireAction()\n {\n $args = func_get_args();\n foreach ($args as $arg)\n {\n // Check if action is set and exists\n if ($_POST['action'] == $arg || $_GET['action'] == $arg)\n {\n // quit here\n return;\n }\n }\n\n $this->sendJsonResponse(false, 'Invalid Action!');\n die;\n }", "public function testArgs() {\n // test the constructor\n $args = array(1 => 'one');\n $node = new Route\\RouteNodeArguments(null, $args);\n $this->assertEquals($args, $node->GetArguments());\n\n // test the SetArguments / GetArguments pair\n $otherArgs = array(2 => 'two');\n $node->SetArguments($otherArgs);\n $this->assertEquals($otherArgs, $node->GetArguments());\n }", "protected function checkArguments($arguments)\n {\n foreach ($arguments as $arg) {\n if ($arg instanceof Closure) throw new InvalidArgumentException('Closure can\\'t be serialized');\n }\n }", "protected function check_1_parameters(Request $request, Response $response, array &$args)\n {\n return true;\n }", "function __construct($args)\n\t\t{\n\t\t\t$this->validateFields\t=\t$args;\n\t\t}", "function verifyRequiredParams($required_fields) {\r\n $error = false;\r\n $error_fields = \"\";\r\n $request_params = array();\r\n $request_params = $_REQUEST;\r\n // Handling PUT request params\r\n if ($_SERVER['REQUEST_METHOD'] == 'PUT') {\r\n $app = \\Slim\\Slim::getInstance();\r\n parse_str($app->request()->getBody(), $request_params);\r\n }\r\n foreach ($required_fields as $field) {\r\n if (!isset($request_params[$field]) || strlen(trim($request_params[$field])) <= 0) {\r\n $error = true;\r\n $error_fields .= $field . ', ';\r\n }\r\n }\r\n\r\n if ($error) {\r\n // Required field(s) are missing or empty\r\n // echo error json and stop the app\r\n $response = array();\r\n $app = \\Slim\\Slim::getInstance();\r\n $response[\"error\"] = true;\r\n $response[\"message\"] = 'Required field(s) ' . substr($error_fields, 0, -2) . ' is missing or empty';\r\n echoRespnse(400, $response);\r\n $app->stop();\r\n }\r\n}", "function verifyRequiredParams($required_fields, Request $request) {\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 parse_str(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 $response = array();\n $response[\"error\"] = $error;\n if ($error) {\n // Required field(s) are missing or empty\n $response[\"message\"] = 'Required field(s) ' . substr($error_fields, 0, -2) . ' is/are missing or empty';\n }\n return $response;\n}", "protected function ensureCompatibleArgs(array $args, bool $throwException = true): bool\n {\n $argsOk = true;\n foreach ($args as $arg) {\n $argsOk &= $this->ensureCompatibleValue($arg, $throwException);\n }\n return (bool) $argsOk;\n }", "public function testBasicPreconditionFail1()\n {\n $this->typeSafetyTestClass->iNeedStrings('stringer', 12);\n }", "abstract protected function get_args();", "public function isEmpty($args){\r\n $args = func_get_args();\r\n foreach($args as $arg){\r\n if(empty($arg)){\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "function verifyRequiredParams($required_fields) {\n $error = false;\n $error_fields = \"\";\n $request_params = array();\n $request_params = $_REQUEST;\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}", "public function initializeArguments() {}", "public function initializeArguments() {}", "public function initializeArguments() {}", "public function initializeArguments() {}", "function verifyRequiredParams($required_fields) {\n $error = false;\n $error_fields = \"\";\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\"] = 'Required field(s) ' . substr($error_fields, 0, -2) . ' is missing or empty';\n echoResponse(400, $response);\n $app->stop();\n }\n}", "protected function getArguments()\n\t{\n\t\treturn [];\n\n\t\treturn array(\n\t\t\tarray('run', InputArgument::REQUIRED, 'An example argument.'),\n\t\t);\n\t}", "private function query_arg_check() {\n\t\t//Set some variables\n\t\t$query_arg_count = 0;\n\t\t$arg_count = 0;\n\t\t$arg_match = False;\t\n\n\t\t//Check number of arguments in the query\n\t\tif ($this->QUERY) {\n\t\t\t$query_arg_count = substr_count($this->QUERY, '?');\n\t\t}\n\t\t\n\t\t//Check number of arguments passes to the class\n\t\tif ($this->QUERY_ARGS) {\n\t\t\tforeach($this->QUERY_ARGS as $arg_count_value) {\n\t\t\t\tif ($arg_count_value) {\n\t\t\t\t\t$arg_count += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Match up argument counts\n\t\tif ( $query_arg_count == $arg_count ) {\n\t\t\t$arg_match = True;\n\t\t} else {\n\t\t\t$arg_match = False;\n\t\t}\n\t\treturn $arg_match;\n\t}" ]
[ "0.7881258", "0.7554249", "0.73210883", "0.72487926", "0.694585", "0.69216114", "0.68941367", "0.6858215", "0.6818977", "0.6708397", "0.6635878", "0.6545998", "0.6537981", "0.65171134", "0.6471064", "0.646974", "0.6448005", "0.6384", "0.6307541", "0.6285083", "0.6285083", "0.6285083", "0.6274829", "0.6273838", "0.62449414", "0.6175529", "0.613642", "0.61252564", "0.61171216", "0.60769165", "0.6057147", "0.6040579", "0.6031797", "0.600887", "0.5999095", "0.59834355", "0.5956124", "0.5940605", "0.59240276", "0.5913495", "0.5887558", "0.58560795", "0.5850384", "0.584135", "0.58334494", "0.5828338", "0.58156013", "0.58145624", "0.5814526", "0.5813125", "0.5800839", "0.57893884", "0.57893103", "0.5777476", "0.57616585", "0.5756317", "0.57450104", "0.57353044", "0.5732237", "0.5727267", "0.5721327", "0.57140845", "0.5670332", "0.56612664", "0.56405795", "0.5634667", "0.5634667", "0.56331956", "0.56191224", "0.5618895", "0.5612539", "0.56010497", "0.55842817", "0.5582828", "0.5570818", "0.55700374", "0.5561273", "0.55439955", "0.55367434", "0.5526412", "0.55141133", "0.5504497", "0.54890823", "0.548899", "0.5486818", "0.54733104", "0.5463463", "0.5454771", "0.54517496", "0.5450474", "0.54493666", "0.5448389", "0.54431146", "0.542546", "0.542546", "0.542546", "0.5424083", "0.54153895", "0.5414324", "0.5413378" ]
0.80023456
0
Getter method for endpoint name
public function getEndpoint() { $tokens = ['{endpointName}' => $this->endpointObject->getEndpointName()]; return $this->parseTokens($this->_endpoint, array_merge($tokens, $this->_tokens)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEndpoint(): string;", "public function getEndpoint(): string;", "public function getEndpoint(): string;", "public function getEndpoint(): string;", "public function getName() {\n\t\treturn $this->selectedEndpoint['name'];\n\t}", "public function getEndpoint(): string\n {\n return $this->endpoint;\n }", "public function getName(): string\n {\n if ($this->_name === null) {\n $endpoint = namespaceSplit(static::class);\n $endpoint = substr(end($endpoint), 0, -8);\n\n $inflectMethod = $this->getInflectionMethod();\n $this->_name = Inflector::{$inflectMethod}($endpoint);\n }\n\n return $this->_name;\n }", "public function getEndpoint();", "public function getEndpoint();", "public function getEndpoint();", "public function getEndpoint(): string\n {\n return \"{$this->endpoint}/v{$this->version}/{$this->path}\";\n }", "public function getEndpoint() {\n return $this->endpoint;\n }", "public function getRouteName();", "public function getEndpoint()\n {\n return $this->endpoint;\n }", "public function getEndpoint()\n {\n return $this->endpoint;\n }", "public function getEndpoint()\n {\n return $this->endpoint;\n }", "public function getEndpoint()\n {\n return $this->endpoint;\n }", "public function getEndpoint()\n {\n return $this->endpoint;\n }", "public function getEndpoint()\n {\n return $this->endpoint;\n }", "public function getEndpoint() \n {\n return $this->endpoint;\n }", "private static function getEndPoint() : string\n {\n return self::$endpoints[self::$selectedEndpoint];\n }", "function getRouteName();", "public function getApiEndpoint();", "protected function getEndpoint(): string\n {\n return $this->getTestMode() ? $this->testEndpoint : $this->productionEndpoint;\n }", "public function getBaseRouteName(): string;", "protected function getEndpoint() {\n $endpoint = isset($this->options['store_endpoint']) ? $this->options['store_endpoint'] : $this->options['store_key'] . '.' . BenchmarkArchiverAzure::DEFAULT_AZURE_ENDPOINT_PREFIX;\n if (!preg_match('/^http/', $endpoint)) $endpoint = isset($this->options['store_insecure']) && $this->options['store_insecure'] ? 'http://' : 'https://' . $endpoint;\n\n return $endpoint;\n }", "protected function getNameInput()\n {\n return preg_replace('/Endpoint$/', '', trim($this->argument('name'))) . \"Endpoint\";\n }", "public function getEndPoint(): string\n {\n return $this->endpoint;\n }", "abstract public function routeName();", "public function getEndpoint() {\n return $this->src->getAttribute('endpoint');\n }", "public function getGetterName()\n {\n return \"get\" . self::underscoreToCamelCase($this->name,true);\n }", "private function endpoint( $endpoint )\n {\n return ($this->api) ?\n vsprintf(\"%s/%s\",[$this->api_prefix, trim($endpoint,\"/\")]) :\n $endpoint;\n }", "public function getEndpoint()\n {\n if ($this->merchant_id) {\n return $this->endpoint.\"/{$this->merchant_id}\";\n }\n\n return $this->endpoint;\n }", "public function getEndpointUri()\n {\n return $this->_endpointUri;\n }", "public function name(): RouteNameInterface;", "public function getHandlerName();", "public function getHandlerName();", "public function getName() : string\n {\n return $this->url;\n }", "function getRouteName() {\n \treturn $this->route_name;\n }", "public function getRouteKeyName();", "public function getRouteKeyName();", "public function getMethodName();", "public function getMethodName();", "public function getMethodName();", "public function getBindingMemberName();", "public function getRouteKeyName(): string\n {\n return 'name';\n }", "public function endpoint()\n {\n if(!$this->properties['endpoint'] && $this->channel_id())\n {\n $url = route('directory', [\n 'channel_id' => $this->channel_id(),\n 'directory_id' => $this->id()\n ]);\n\n $this->properties['endpoint'] = parse_url($url, PHP_URL_PATH);\n }\n\n return $this->properties['endpoint'];\n }", "abstract public function getServiceTypeName();", "public function getPropertyName() {}", "public function getPropertyName() {}", "public function getPropertyName() {}", "public function getEndpoint()\n {\n $basePath = $this->app['config']->get('api.base_path', self::DEFAULT_BASE_PATH);\n $basePath = $this->stripTrailingSlash($basePath);\n\n // determine the base URL for the API,\n // i.e. https://api.example.com/v1\n $urlBase = $this->app['config']->get('api.url');\n if ($urlBase) {\n $urlBase = $this->stripTrailingSlash($urlBase);\n } else {\n // no base URL was defined so we're going to generate one\n $urlBase = $this->app['base_url'];\n $urlBase = $this->stripTrailingSlash($urlBase).$basePath;\n }\n\n // get the requested path, strip any trailing '/'\n $path = $this->stripTrailingSlash($this->request->path());\n\n // strip out the base path (i.e. /api/v1) from the\n // requested path\n if ($basePath) {\n $path = str_replace($basePath, '', $path);\n }\n\n return $urlBase.$path;\n }", "public function getExchangeName();", "protected function endpoint($type) {\n\n // Get the endpoint from the parent.\n $endpoint = parent::endpoint($type);\n\n // For get and set calls, we append \"properties\" to the endpoint.\n if ($this->id && in_array($type, array('get', 'set'))) {\n $endpoint .= '/properties';\n }\n\n // Return the endpoint.\n return $endpoint;\n }", "function wcfmgs_sm_endpoint_title( $title, $endpoint ) {\r\n \t\r\n \tswitch ( $endpoint ) {\r\n\t\t\tcase 'wcfm-managers' :\r\n\t\t\t\t$title = __( 'Shop Managers', 'wc-frontend-manager-groups-staffs' );\r\n\t\t\tbreak;\r\n\t\t\tcase 'wcfm-managers-manage' :\r\n\t\t\t\t$title = __( 'Shop Managers Manage', 'wc-frontend-manager-groups-staffs' );\r\n\t\t\tbreak;\r\n \t}\r\n \t\r\n \treturn $title;\r\n }", "public function getShippingMethodName();", "public function get_name();", "public function get_name();", "public function get_name();", "public function getRouteName()\n {\n return $this->routeName;\n }", "public function getRouteName()\n {\n return $this->routeName;\n }", "public function getEndpointBase()\n {\n return $this->getParameter('endpointBase');\n }", "public function getApiRoute(): string;", "private function getRefreshedEndpoint() {\n $this->endpoint = $this->profile->getHttpProfile()->getEndpoint();\n if ($this->endpoint === null) {\n $this->endpoint = $this->service.\".\".$this->profile->getHttpProfile()->getRootDomain();\n }\n return $this->endpoint;\n }", "public function getName() {\n\n list(,$name) = URLUtil::splitPath($this->principalInfo['uri']);\n return $name;\n\n }", "public function getServiceEndpoint()\r\n {\r\n // return static::SERVICE_TESTING_URL;\r\n return static::SERVICE_PRODUCTION_URL;\r\n }", "public function getPropertyName();", "public function getPropertyName();", "public function getRouteKeyName()\n {\n /* используется для того чтобы можно было в маршруте \n * например таком: Route::get('products/{category}/{product}', 'ProductsController@index');\n * получить \n * нужную категорию не по колонке id, а по колонке slug\n */\n return 'slug';\n }", "public function getEndpoint()\n {\n return $this->getTestMode() ? self::TEST_ENDPOINT : self::LIVE_ENDPOINT;\n }", "public function serviceName(): string\n {\n return $this->serviceName ??= $this->pluck('npServiceName');\n }", "public function getControllerName() {}", "function getEndPoint() {\r\n $uri = parent::getEndPoint();\r\n $parts = explode('/', $uri);\r\n $path = array_pop($parts);\r\n return $path ? $path : 'help';\r\n }", "abstract protected function getEndpoint($ip);", "public function getEndpoint()\n {\n return 'http://gw.api.alibaba.com/openapi/param2/2/portals.open/';\n }", "public function getEndpointDomain()\n {\n return $this->endpoint_domain;\n }", "protected function getName() {}", "public function getEndpoint(): string\n {\n return 'rules';\n }", "public function getName(): string;", "public function getName(): string;", "public function getName(): string;", "public function getName(): string;", "public function getName(): string;", "public function getName(): string;", "public function getName(): string;", "public function getName(): string;", "public function getName(): string;", "public function getName(): string;", "public function getName(): string;", "public function getName(): string;", "public function getName(): string;", "public function getName(): string;", "public function getName(): string;", "public function getName(): string;", "public function getName(): string;", "public function getName(): string;", "public function getName(): string;", "public function getName(): string;", "public function getName(): string;", "public function getName(): string;" ]
[ "0.7869495", "0.7869495", "0.7869495", "0.7869495", "0.780383", "0.75142604", "0.74368936", "0.7436417", "0.7436417", "0.7436417", "0.6995193", "0.69802445", "0.69379824", "0.6935496", "0.6935496", "0.6935496", "0.6935496", "0.6935496", "0.6935496", "0.6929748", "0.6889808", "0.68632936", "0.6828164", "0.66920173", "0.6666365", "0.66346896", "0.66073644", "0.6603521", "0.6577527", "0.6568788", "0.6554754", "0.64744586", "0.6431103", "0.6391579", "0.6391014", "0.6390316", "0.6390316", "0.63785315", "0.63647515", "0.6357049", "0.6357049", "0.6347946", "0.6347946", "0.6347946", "0.6292456", "0.625536", "0.6252727", "0.62242734", "0.6217446", "0.6217446", "0.6217446", "0.62160355", "0.6207332", "0.61920786", "0.6182518", "0.6180664", "0.6176823", "0.6176823", "0.6176823", "0.6173497", "0.6173497", "0.61696136", "0.61658335", "0.6162104", "0.6161116", "0.61456555", "0.6139347", "0.6139347", "0.61376345", "0.6131169", "0.6122736", "0.6119636", "0.6113734", "0.6104334", "0.61017585", "0.6097847", "0.6082509", "0.6078635", "0.60783046", "0.60783046", "0.60783046", "0.60783046", "0.60783046", "0.60783046", "0.60783046", "0.60783046", "0.60783046", "0.60783046", "0.60783046", "0.60783046", "0.60783046", "0.60783046", "0.60783046", "0.60783046", "0.60783046", "0.60783046", "0.60783046", "0.60783046", "0.60783046", "0.60783046" ]
0.71641034
10
Parse tokens from a string.
protected function parseTokens($string, array $tokens) { return str_replace(array_keys($tokens), array_values($tokens), $string); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function parse($string);", "abstract public function parse($string);", "public function parse($string)\n {\n // names can be separated either by 'and' and by semicolons\n $state = 'default';\n\n foreach ($tokens as $token) {\n\n switch (true) {\n case 'Jr':\n case 'Jr.':\n case 'Junior':\n case 'Sr':\n case 'Sr.':\n case 'Senior':\n case 'II':\n case 'III':\n break;\n\n }\n }\n\n // if there is only one word, it is taken as the Last part, even if it\n // starts with a lower letter\n\n // the von part takes as many words as possible, provided that its first\n // and last words begin with a lowercase letter,\n // however the Last part cannot be empty\n\n // if all the words begin with an uppercase letter, the last word is the\n // Last component, and the First part groups the other words\n\n // first, von, last, suffix\n\n // Suffix Jr/Sr/II/III/MD\n\n // von part starts with lower letters\n // handle tilde\n // first1 first2 first3 last\n // if single letter -> next word after single letter is expected to be either\n // another single letter, or von part or last name\n // if multiple last names\n // { <- starts a single token } <- ends single token\n\n // et al, and others\n }", "public function parse(string $input);", "public function parse(string $string): array;", "private function parse($input) {\n $tokens= [];\n foreach (new Tokens(new StringTokenizer($input)) as $type => $value) {\n $tokens[]= [$type, $value];\n }\n return $tokens;\n }", "protected function parse($string)\n {\n $this->setStringToBeParsed($string);\n\n // save for source map generation\n // $this->env->setFileContent($this->env->currentFileInfo->importedFile->getPath(), $this->input);\n\n $rules = $this->parsePrimary();\n // has the whole string been parsed?\n if ($this->position < $this->length) {\n throw new ILess_Exception_Parser(sprintf('There was an error while parsing the string. Near `%s`.',\n // FIXME: what about utf8?\n substr($this->input, $this->position, strpos($this->input, \"\\n\", $this->position) - $this->position)),\n null, $this->position, $this->env->currentFileInfo);\n }\n\n return $rules;\n }", "function tokenText($str)\n{\n $matches = preg_split(\"/\\;\\s*\\\\$/uism\", $str);\n $object = array();\n foreach ($matches as $match) {\n preg_match(\"/\\\\$?(\\w+)\\:(.*)/uism\", trim($match), $_matches);\n $object[$_matches[1]] = rtrim($_matches[2], \";\");\n }\n return $object;\n}", "public static function parse(string $string): self;", "private function _tokenize_string($string = '') {\n\n $arguments_delimiter = '\"';\n $escape_sign = '\\\\';\n\n /*\n * Init stack\n */\n $tokens = array(\n 0 => ''\n );\n\n /*\n * Keep track of quoted strings\n */\n $is_quoted = FALSE;\n\n /*\n * Fetch 1 char at time from input string\n */\n $string = trim($string);\n $chars = str_split($string);\n\n foreach ($chars as $index => $char) {\n\n /*\n * Get latest stack token index\n */\n $token_index = count($tokens) - 1;\n\n /*\n * Get previous and following chars\n */\n $previous_char = array_key_exists($index - 1, $chars) ? $chars[$index - 1] : '';\n $following_char = array_key_exists($index + 1, $chars) ? $chars[$index + 1] : '';\n\n if (!$is_quoted && $char == $arguments_delimiter && $previous_char == \" \") {\n /*\n * Opening quote found\n */\n $is_quoted = TRUE;\n continue;\n }\n\n if ($is_quoted && $char == $escape_sign && $following_char == $arguments_delimiter) {\n\n /*\n * Escaped sign found\n */\n //$tokens[$token_index] .= $char;\n continue;\n }\n\n if ($is_quoted && $char == $arguments_delimiter && $previous_char == $escape_sign) {\n\n /*\n * Escaped quote found\n */\n $tokens[$token_index] .= $char;\n continue;\n }\n\n if ($is_quoted && $char == $arguments_delimiter && $previous_char != $escape_sign) {\n\n /*\n * Closing quote found\n */\n $is_quoted = FALSE;\n continue;\n }\n\n if ($char != ' ' || $is_quoted) {\n /*\n * Whitespaces delimit tokens (only when not within quoted string).\n * Push char into latest stack token\n */\n $tokens[$token_index] .= $char;\n continue;\n }\n\n /*\n * Add one more stack token\n */\n $token_index++;\n $tokens[$token_index] = '';\n }\n\n return $tokens;\n }", "public static function parse_str($str)\n {\n }", "public function lex(string $string): TokenStreamInterface;", "public function parse(string $value);", "function get_tokens($input, $tokens)\r\n{\r\n $ret = array();\r\n $tok = strtok($input, $tokens);\r\n while ($tok !== false)\r\n {\r\n array_push($ret, $tok);\r\n $tok = strtok($tokens);\r\n }\r\n return $ret;\r\n}", "public function getTokenParsers();", "protected function parse($str)\n {\n }", "public function tokenize($string) {\n $tokens = array();\n\n $parentTokens = parent::tokenize($string);\n\n $currentToken = '';\n foreach ($parentTokens as $token) {\n if ($token === self::FIELD_SEPARATOR) {\n $tokens[] = $currentToken;\n $currentToken = '';\n continue;\n }\n\n $currentToken .= ($currentToken ? ' ' : '') . $token;\n }\n\n if ($currentToken) {\n $tokens[] = $currentToken;\n }\n\n return $tokens;\n }", "private static function parse($token)\n {\n return (new Parser())->parse((string)$token);\n }", "public function parse(string $content);", "public function parse(string $content);", "public function parse($text);", "public function tokenize( $string )\n {\n $lines = preg_split( '(\\r\\n|\\r|\\n)', $string );\n $tokens = array();\n foreach ( $lines as $nr => $line )\n {\n // @todo: Use a somehow configured tab-width instead of the default;\n $line = $this->convertTabs( $line );\n $words = preg_split( '(( +))', $line, -1, PREG_SPLIT_DELIM_CAPTURE );\n\n // Convert spaces to the marker constant\n foreach ( $words as $key => $word )\n {\n if ( $word === '' )\n {\n unset( $words[$key] );\n }\n }\n\n $tokens = array_merge(\n $tokens,\n $words,\n array( self::FORCED )\n );\n }\n\n return $tokens;\n }", "public function parseToken ($token)\n {\n $format = substr($token, 0, 2);\n $validf = $this->formatCode();\n if ($format != $validf)\n {\n $this->errors[] = 'invalid_format';\n return;\n }\n $len = intval(substr($token, 2, 2));\n if (!$len)\n {\n $this->errors[] = 'invalid_length';\n return;\n }\n $sid = substr($token, 4, $len);\n $offset = $len + 4;\n $hash = substr($token, $offset);\n return [$sid, $hash, $format];\n }", "private static function parseStringTerm($string)\n {\n $r = explode(' - ', $string);\n\n if (count($r) === 1) {\n return [(int)$r[0], (int)$r[0]];\n }\n\n if (count($r) === 2) {\n return [(int)$r[0], (int)$r[1]];\n }\n\n return [null, null];\n }", "public function parse($string)\n {\n return [];\n }", "public function deserialize($strToken);", "public function parse($string, SG_Rule_Parser_Patterns $patterns);", "function tokeniza($string)\n{\n\tglobal $lTokens;\n\t$aux_string = strtok($string,\";\");\n\t\n\tif(!array_search($aux_string, $lTokens) && $aux_string != $lTokens[0] && $aux_string != '-')\n\t\t$lTokens[] = $aux_string;\t\t\t\n\twhile($aux_string != NULL)\n\t{//inicializa algoritmo de tradução\n\t\t$aux_string = strtok(\";\");\n\t\tif($aux_string != NULL && !array_search($aux_string, $lTokens) && $aux_string != $lTokens[0] && $aux_string != '-')\t\t\n\t\t\t$lTokens[] = $aux_string;\n\t}\n\treturn;\n}", "function wp_parse_str( $string, &$array ) {\n\tparse_str( $string, $array );\n\t$array = apply_filters( 'wp_parse_str', $array );\n}", "function splitTokens($jsonString) {\n $quoteCounter = 0;\n $braceCounter = 0;\n $bracketCounter = 0;\n\n $tokens = array();\n $token = \"\";\n for ($i = 0; $i < strlen($jsonString); $i++) {\n $ch = $jsonString[$i];\n $token .= $ch;\n switch ($ch) {\n case '\"': $quoteCounter++; break;\n case '{': $braceCounter++; break;\n case '}': $braceCounter--; break; # ERROR_SYNTAX if braceCounter < 0\n case '[': $bracketCounter++; break;\n case ']': $bracketCounter--; break; # ERROR_SYNTAX if bracketCounter < 0\n case ',':\n # there should be no open block or open parameter\n if (0 == $braceCounter && 0 == $bracketCounter && 0 == $quoteCounter % 2) {\n $tokens[] = substr($token, 0, -1); # exclude this comma\n $token = \"\";\n }\n break;\n }\n }\n if (\"\" != $token) {\n $tokens[] = $token;\n }\n # ERROR_SYNTAX if quoteCounter % 2 != 0\n # ERROR_SYNTAX if braceCounter != 0\n # ERROR_SYNTAX if bracketCounter != 0\n return $tokens;\n }", "function tidy_parse_string($input, $config = null, $encoding = null) {}", "function ParseTagString($sTagString)\n{\n\t$arTags = array();\t\t// Array of Output\n\t$cPhraseQuote = null;\t// Record of the quote that opened the current phrase\n\t$sPhrase = null;\t\t// Temp storage for the current phrase we are building\n\t\n\t// Define some constants\n\tstatic $sTokens = \" \\r\\n\\t\";\t// Space, Return, Newline, Tab\n\tstatic $sQuotes = \"'\\\"\";\t\t// Single and Double Quotes\n\t\n\t// Start the State Machine\n\tdo\n\t{\n\t\t// Get the next token, which may be the first\n\t\t$sToken = isset($sToken)? strtok($sTokens) : strtok($sTagString, $sTokens);\n\t\t\n\t\t// Are there more tokens?\n\t\tif ($sToken === false)\n\t\t{\n\t\t\t// Ensure that the last phrase is marked as ended\n\t\t\t$cPhraseQuote = null;\n\t\t}\n\t\telse\n\t\t{\t\t\n\t\t\t// Are we within a phrase or not?\n\t\t\tif ($cPhraseQuote !== null)\n\t\t\t{\n\t\t\t\t// Will the current token end the phrase?\n\t\t\t\tif (substr($sToken, -1, 1) === $cPhraseQuote)\n\t\t\t\t{\n\t\t\t\t\t// Trim the last character and add to the current phrase, with a single leading space if necessary\n\t\t\t\t\tif (strlen($sToken) > 1) $sPhrase .= ((strlen($sPhrase) > 0)? ' ' : null) . substr($sToken, 0, -1);\n\t\t\t\t\t$cPhraseQuote = null;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// If not, add the token to the phrase, with a single leading space if necessary\n\t\t\t\t\t$sPhrase .= ((strlen($sPhrase) > 0)? ' ' : null) . $sToken;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// Will the current token start a phrase?\n\t\t\t\tif (strpos($sQuotes, $sToken[0]) !== false)\n\t\t\t\t{\n\t\t\t\t\t// Will the current token end the phrase?\n\t\t\t\t\tif ((strlen($sToken) > 1) && ($sToken[0] === substr($sToken, -1, 1)))\n\t\t\t\t\t{\n\t\t\t\t\t\t// The current token begins AND ends the phrase, trim the quotes\n\t\t\t\t\t\t$sPhrase = substr($sToken, 1, -1);\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// Remove the leading quote\n\t\t\t\t\t\t$sPhrase = substr($sToken, 1);\n\t\t\t\t\t\t$cPhraseQuote = $sToken[0];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t$sPhrase = $sToken;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// If, at this point, we are not within a phrase, the prepared phrase is complete and can be added to the array\n\t\tif (($cPhraseQuote === null) && ($sPhrase != null))\n\t\t{\n\t\t\t$sPhrase = strtolower($sPhrase);\n\t\t\tif (!in_array($sPhrase, $arTags)) $arTags[] = $sPhrase;\n\t\t\t$sPhrase = null;\n\t\t}\n\t}\n\twhile ($sToken !== false);\t// Stop when we receive FALSE from strtok()\n\treturn $arTags;\n}", "public function get_tokens($text)\n\t{\n\n\t\t# Check that we actually have a string ...\n\t\tif(is_string($text) === FALSE)\n\t\t\treturn self::LEXER_TEXT_NOT_STRING;\n\n\t\t# ... and that it's not empty\n\t\tif(empty($text) === TRUE)\n\t\t\treturn self::LEXER_TEXT_EMPTY;\n\n\t\t# Re-convert the text to the original characters coded in UTF-8, as\n\t\t# they have been coded in html entities during the post process\n\t\t$text = html_entity_decode($text, ENT_QUOTES, 'UTF-8');\n\n\t\t$tokens = array();\n\n\t\t# Find URLs and IP addresses\n\n\t\tpreg_match_all($this->regexp['ip'], $text, $raw_tokens);\n\n\t\tforeach($raw_tokens[1] as $word) {\n\n\t\t\t# Check for a dot\n\t\t\tif(strpos($word, '.') === FALSE)\n\t\t\t\tcontinue;\n\n\t\t\t# Check that the word is valid, min and max sizes, etc.\n\t\t\tif($this->_is_valid($word) === FALSE)\n\t\t\t\tcontinue;\n\n\t\t\tif(isset($tokens[$word]) === FALSE)\n\t\t\t\t$tokens[$word] = 1;\n\t\t\telse\n\t\t\t\t$tokens[$word] += 1;\n\n\t\t\t# Delete the word from the text so it doesn't get re-added.\n\t\t\t$text = str_replace($word, '', $text);\n\n\t\t\t# Also process the parts of the URLs\n\t\t\t$url_parts = preg_split($this->regexp['raw_split'], $word);\n\n\t\t\tforeach($url_parts as $word) {\n\n\t\t\t\t# Again validate the part\n\n\t\t\t\tif($this->_is_valid($word) === FALSE)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tif(isset($tokens[$word]) === FALSE)\n\t\t\t\t\t$tokens[$word] = 1;\n\t\t\t\telse\n\t\t\t\t\t$tokens[$word] += 1;\n\n\t\t\t}\n\n\t\t}\n\n\t\t# Split the remaining text\n\n\t\t$raw_tokens = preg_split($this->regexp['raw_split'], $text);\n\n\t\tforeach($raw_tokens as $word) {\n\n\t\t\t# Again validate the part\n\n\t\t\tif($this->_is_valid($word) === FALSE)\n\t\t\t\tcontinue;\n\n\t\t\tif(isset($tokens[$word]) === FALSE)\n\t\t\t\t$tokens[$word] = 1;\n\t\t\telse\n\t\t\t\t$tokens[$word] += 1;\n\n\t\t}\n\n\t\t# Process the HTML\n\n\t\tpreg_match_all($this->regexp['html'], $text, $raw_tokens);\n\n\t\tforeach($raw_tokens[1] as $word) {\n\n\t\t\t# Again validate the part\n\n\t\t\tif($this->_is_valid($word) === FALSE)\n\t\t\t\tcontinue;\n\n\t\t\t# If the tag has parameters, just use the tag itself\n\n\t\t\tif(strpos($word, ' ') !== FALSE) {\n\t\t\t\tpreg_match($this->regexp['tagname'], $word, $tmp);\n\t\t\t\t$word = \"{$tmp[1]}...>\";\n\t\t\t}\n\n\t\t\tif(isset($tokens[$word]) === FALSE)\n\t\t\t\t$tokens[$word] = 1;\n\t\t\telse\n\t\t\t\t$tokens[$word] += 1;\n\n\t\t}\n\n\t\t# Return a list of all found tokens\n\t\treturn $tokens;\n\n\t}", "public abstract function parse($text);", "public function execute( $str )\n {\n\t\t$str = preg_replace('/[\\s]+/', ' ', $str);\n\t\t$parts = preg_split('/([\\\"() &|!])/', $str, NULL, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);\n\t\t\t\t\n\t\t$quote = FALSE;\n\t\t$builder = '';\n\t\t\n\t\t$this->tokenStack = array();\n\t\t\n\t\tforeach($parts as $part) {\n\t\t\tif ($part == self::QUOTE) {\n\t\t\t\tif ($quote) {\n\t\t\t\t\t$this->tokenStack[] = trim($builder);\n\t\t\t\t\t\n\t\t\t\t\t$quote = FALSE;\t\t\t\t\t\n\t\t\t\t\t$builder = '';\t\t\t\t\n\t\t\t\t} \n\t\t\t\telse {\n\t\t\t\t\t$quote = TRUE;\n\t\t\t\t\t$builder = '';\n\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse {\t\t\t\n\t\t\t\t$part = trim($part);\n\t\t\t\t\n\t\t\t\tif ($part !== '') {\n\t\t\t\t\tif ($quote) {\n\t\t\t\t\t\t$builder .= $part . ' ';\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif (strcasecmp('OR', $part) === 0) {\n\t\t\t\t\t\t\t$part = '|';\n\t\t\t\t\t\t}\n\t\t\t\t\t\telseif (strcasecmp('AND', $part) === 0) {\n\t\t\t\t\t\t\t$part = '&';\n\t\t\t\t\t\t}\n\t\t\t\t\t\telseif (strcasecmp('NOT', $part) === 0) {\n\t\t\t\t\t\t\t$part = '!';\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t$this->tokenStack[] = $part;\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t}\n }", "public function parseStr($str, array &$arr = null) {\n return parse_str($str, $arr);\n }", "public function fromString(string $string): array;", "protected function parse($str) {\n return $this->fixture->parse(new StringInputSource($str));\n }", "function ARFFparseString($line, $pos, &$token, $delimiters)\n{\n\t$len = strlen($line);\n\twhile ($pos < $len and $line[$pos] == ' ') $pos++;\n\t$end = $pos;\n\tif ($end == $len) return \"unexpected end of line\";\n\tif ($line[$pos] == \"\\\"\" or $line[$pos] == \"'\")\n\t{\n\t\t$quote = $line[$pos];\n\t\t$pos++;\n\t\tdo{ #find next occurence of the quote\n\t\t\t$end = strpos($line, $quote, max($pos, $end + 1));\n\t\t\tif ($end === FALSE) return \"missing trailing quote in string\";\n\t\t} while($end !== FALSE and $line[$end-1] == '\\\\'); #but ignore escaped quotes\n\t\t$token = substr($line, $pos, $end - $pos);\n\t\t$end++;\n\t\tif ($end == $len) return $end;\n\t\tif (strpos($delimiters, $line[$end]) === FALSE)\n\t\t{\n\t\t\twhile ($end < $len and $line[$end] == ' ') $end++;\n\t\t\tif ($end == $len) return $end;\n\t\t\tif (strpos($delimiters, $line[$end]) === FALSE) return \"missing delimiter\";\n\t\t}\n\t}\n\telse\n\t{\n\t\t$del = strlen($delimiters);\n\t\t$end = FALSE;\n\t\tfor ($i=0; $i<$del; $i++)\n\t\t{\n\t\t\t$p = strpos($line, $delimiters[$i], $pos);\n\t\t\tif ($p === FALSE) continue;\n\t\t\tif ($end === FALSE or $p < $end) $end = $p;\n\t\t}\n\t\tif ($end === FALSE) $end = $len;\n\t\t$token = trim(substr($line, $pos, $end - $pos));\n\t\tif ($end == $len) return $end;\n\t}\n\twhile ($end < $len and $line[$end] == ' ') $end++;\n\treturn $end;\n}", "public function fromString(string $string);", "public static function parseString(string $string): array\n {\n $e = 0;\n $q1 = false;\n $q2 = false;\n $q = false;\n $a = [];\n $f = '';\n for ($i = 0; $i < strlen($string); $i++) {\n $c = $string[$i];\n if ($c === '\\\\') {\n $e++;\n }\n if ($e % 2 == 0) {\n if ($c === \"'\" && !$q2) {\n $q1 = !$q1;\n $q = true;\n } elseif ($c === '\"' && !$q1) {\n $q2 = !$q2;\n $q = true;\n }\n }\n if (!$q) {\n if ($c === ' ' && !$q1 && !$q2 && $e % 2 == 0) {\n if (strlen($f) > 0) $a[] = $f;\n $f = '';\n } else {\n if ($c !== '\\\\' || $e % 2 === 0) {\n $f .= $c;\n }\n }\n }\n if ($c !== '\\\\') {\n $e = 0;\n }\n $q = false;\n }\n if (strlen($f) > 0) $a[] = $f;\n return $a;\n }", "function string_parse($string, $data = array(), $return = FALSE)\n\t{\n\t\treturn $this->_parse($string, $data, $return);\n }", "public function parse($input_string) {\n $this->input_string = trim($input_string);\n $this->setLiterals($input_string);\n return $this->recursiveParenthesesGroups();\n }", "protected function parse_args($string)\r\n\t{\r\n\t\t$arguments = array();\r\n\t\t\r\n\t\tpreg_match_all('@(\\w+?)\\s*=\\s*(\\'|\")(.*?)\\2@', $string, $matches, PREG_SET_ORDER);\r\n\t\t\r\n\t\tforeach($matches as $match)\r\n\t\t{\r\n\t\t\t$arguments[$match[1]] = $match[3];\r\n\t\t}\r\n\t\t\r\n\t\treturn $arguments;\r\n\t}", "public function tokenize(string $string) : array\n {\n return array_map([$this->stemmer, 'stem'], parent::tokenize($string));\n }", "protected function _strtok(&$string, $delim) {\n\n // Note: don't use builtin strtok, because it does ignore an\n // empty field (two delimiters in a row). We need this information.\n if (empty($string)) return FALSE;\n \n if (FALSE === ($tpos= strpos($string, $delim))) {\n $token= $string;\n $string= '';\n return $token;\n }\n \n $token= substr($string, 0, $tpos);\n $string= substr($string, strlen($token)+1);\n return $token;\n }", "public function parseString($input, $config = null, $encoding = null) {}", "public function parseString($rawString)\n\t{\n\t\t$lines = explode(\"\\n\", trim((string) $rawString));\n\t\treturn $this->parseLines($lines);\n\t}", "protected function parse(String $header)\n {\n $this->splitHeaderAndDirectives($header);\n $this->createDirectivesCollection();\n }", "public function get_variables_from_str($str) {\n\t\tforeach($this->offsets as $k => $v) {\n\t\t\t$bin = mb_substr($str, $v, 2);\n\t\t\t$vars[$k] = implode(unpack(\"n\",$bin));\n\t\t}\n\t\treturn $vars;\n\t}", "public function parse($string)\n {\n $array = json_decode($string, true);\n if (!is_array($array)) {\n $error = function_exists('json_last_error_msg') ? json_last_error_msg() : null;\n throw InvalidFormatException::create('JSON', $string, $error);\n }\n return $array;\n }", "function parse_string($string, $data = array(), $options = array()) {\n\n if (!$this->string_has_params($string)) {\n return $string;\n }\n\n //check if string is once param\n if ($this->parse_string_is_once_param($string)) {\n $param_key = $this->parse_string_extract_param($string);\n //print_r(compact('param_key'));\n if ($this->parse_param_exists($param_key, $data)) {\n return $this->parse_param_value($param_key, $data);\n }\n return $string; //param_key not exists, return string as is\n }\n\n $string1 = str_replace(\n array(\n $this->parse['before'],\n $this->parse['after']), array(\n '!-=0=-!' . $this->parse['before'],\n $this->parse['after'] . '!-=0=-!'), $string);\n\n $parsed = explode('!-=0=-!', $string1);\n $finded = array();\n foreach ($parsed as $ix => $item) {\n if ($item) {\n if ($this->parse_string_is_once_param($item)) {\n $param_key = $this->parse_string_extract_param($item);\n\n if ($this->parse_param_exists($param_key, $data)) {\n $parsed[$ix] = $this->parse_param_value($param_key, $data);\n }\n }\n }\n }\n return join($parsed);\n }", "function parse($string)\r\n\t{\r\n\r\n\t\t$str = explode('{', $string);\r\n\r\n\t\t$res = '';\r\n\r\n\t\tfor ($i = 0; isset($str[$i]); $i++)\r\n\t\t{\r\n\t\t\tif ($i === 0)\r\n\t\t\t{\r\n\t\t\t\t$res .= $str[$i];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$line = explode('}', $str[$i]);\r\n\t\t\t\t$key = $line[0];\r\n\t\t\t\tunset($line[0]);\r\n\r\n\t\t\t\tif ( $key && isset($this->vars[$key]) )\r\n\t\t\t\t{\r\n\t\t\t\t\t$res .= $this->vars[$key].implode('}', $line);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tswitch ($this->unknowns)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcase \"keep\":\r\n\t\t\t\t\t\t\t$res .= '{'.$key;\r\n\t\t\t\t\t\t\tif (count ($line) >\t0) \r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$res .= '}';\r\n\t\t\t\t\t\t\t\t$res .= implode('}', $line);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\tcase \"remove\":\r\n\t\t\t\t\t\t\t\t$res .= implode('', $line);\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\tcase \"remove_nonjs\":\r\n\t\t\t\t\t\t\t\tif (!empty($key) && ((false === strpos($key, ' ')) && (false === strpos($key, \"\\n\")) && (false === strpos($key, \"\\t\"))))\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t$res .= implode('}', $line);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t$res .= '{'.$key;\r\n\t\t\t\t\t\t\t\t\tif (count ($line) >\t0) \r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t$res .= '}';\r\n\t\t\t\t\t\t\t\t\t\t$res .= implode('}', $line);\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\tbreak;\r\n\r\n\t\t\t\t\t\tcase \"comment\":\r\n\t\t\t\t\t\t\t\t$res .= '<!-- '.$key.' -->'.implode('', $line);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tcase \"space\":\r\n\t\t\t\t\t\t\t\t$res .= '&nbsp;'.implode('', $line);\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn $res;\r\n\t}", "public function extractTokens()\n {\n // Prepare the opening and closing tags for the regex\n $openingTag = sprintf( '\\\\%s', implode( '\\\\', str_split( $this->openingTag ) ) );\n $closingTag = sprintf( '\\\\%s', implode( '\\\\', str_split( $this->closingTag ) ) );\n\n // Build the regex\n $regex = sprintf( '/%s([A-Z-_0-9]+)%s/i', $openingTag, $closingTag );\n\n // Find all the tokens in the string\n preg_match_all( $regex, $this->content, $matches, PREG_PATTERN_ORDER );\n\n // If there are no matches, simply return an empty array\n if ( empty( $matches[1] ) )\n {\n return [];\n }\n\n // Return a unique list of tokens\n return array_unique( $matches[ 1 ] );\n }", "protected function parse(string $token): void\n {\n $this->tokenParts = explode('.', $token);\n $this->header = $this->parseEncodedTokenPart($this->tokenParts[0]);\n $this->payload = $this->parseEncodedTokenPart($this->tokenParts[1] ?? '');\n $this->signature = $this->base64UrlDecode($this->tokenParts[2] ?? '') ?: '';\n }", "public static function parse($string)\n {\n $string = File_Therion_Line::unescape($string);\n $data = explode(' ', $string, 3);\n \n if (count($data) > 1) {\n return array(\n new File_Therion_Date($data[0]),\n // data[1] must contain a '-'\n new File_Therion_Date($data[2])\n );\n } else {\n return new File_Therion_Date($data[0]);\n }\n }", "public function parseString($string)\n {\n $this->datas = [];\n $this->headers = [];\n $lines = str_getcsv($string, $this->endOfLine);\n\n foreach ($lines as $key => $line) {\n $data = $this->parseLine($line, $this->hasHeaders && $key === 0);\n\n if ($data === null) {\n continue;\n }\n\n if ($this->hasHeaders && $key === 0) {\n $this->headers = $data;\n } else {\n $this->datas[] = $data;\n }\n }\n\n return $this;\n }", "protected function parseTokens()\n {\n // Recursively traverse the inheritance chain defined by $this->parent\n\n if ($this->parent !== $this) return $this->parent->parseTokens();\n\n // Alias properties to local variables, initialize them\n\n $line =& $this->line; $line = 1;\n $i =& $this->index; $i = 0;\n $inString =& $this->inString; $inString = 0;\n $types =& $this->types; $types = array();\n $texts =& $this->texts; $texts = array('');\n $prevType =& $this->prevType; $prevType = false;\n $penuType =& $this->penuType; $penuType = false;\n $tokens =& $this->tokens;\n $reg =& $this->tokenRegistry;\n\n $j = 0;\n $curly = 0;\n $curlyPool = array();\n\n while (isset($tokens[$i]))\n {\n $t =& $tokens[$i]; // Get the next token\n unset($tokens[$i++]); // Free memory and move $this->index forward\n\n // Set primary type and handle string interpolation context:\n // - tag closing braces as T_CURLY_CLOSE when they are opened with curly braces\n // tagged as T_CURLY_OPEN or T_DOLLAR_OPEN_CURLY_BRACES, to make\n // them easy to separate from regular code \"{\" / \"}\" pairs,\n // - tag arrays' or objects' string indexes as T_STR_STRING.\n\n $priType = 1; // T_SEMANTIC\n\n if (isset($t[1]))\n {\n if ($inString & 1) switch ($t[0])\n {\n case T_VARIABLE:\n case T_STR_STRING:\n case T_CURLY_OPEN:\n case T_CURLY_CLOSE:\n case T_END_HEREDOC:\n case T_ENCAPSED_AND_WHITESPACE:\n case T_DOLLAR_OPEN_CURLY_BRACES: break;\n case T_STRING:\n if ('[' === $prevType || T_OBJECT_OPERATOR === $prevType)\n {\n $t[0] = T_STR_STRING;\n break;\n }\n case T_NUM_STRING: if ('[' === $prevType) break;\n case T_OBJECT_OPERATOR: if (T_VARIABLE === $prevType) break;\n default:\n if ('[' === $prevType && preg_match(\"/^[_a-zA-Z]/\", $t[1][0])) $t[0] = T_STR_STRING;\n else $t[0] = T_ENCAPSED_AND_WHITESPACE;\n }\n else if ('b\"' === $t) $t = array('\"', 'b\"'); // Binary string syntax b\"...\"\n else switch ($t[0])\n {\n case T_WHITESPACE:\n case T_COMMENT:\n case T_DOC_COMMENT:\n case T_BAD_CHARACTER: $priType = 2; // T_NON_SEMANTIC\n }\n }\n else\n {\n $t = array($t, $t);\n\n if ($inString & 1) switch ($t[0])\n {\n case '\"':\n case '`': break;\n case ']': if (T_STR_STRING === $prevType || T_NUM_STRING === $prevType) break;\n case '[': if (T_VARIABLE === $prevType && '[' === $t[0]) break;\n default: $t[0] = T_ENCAPSED_AND_WHITESPACE;\n }\n else if ('}' === $t[0] && !$curly) $t[0] = T_CURLY_CLOSE;\n }\n\n // Trigger callbacks\n\n if (isset($reg[$t[0]]) || isset($reg[$priType]))\n {\n $n = $t[0];\n $t[2] = array($priType => $priType);\n\n if (isset($reg[$priType])) $callbacks = $reg[$priType];\n else $callbacks = array();\n\n for (;;)\n {\n $t[2][$n] = $n;\n\n if (isset($reg[$n]))\n {\n $callbacks += $reg[$n];\n\n // Callback triggers are always ordered:\n // - first by parsers' instanciation order\n // - then by callbacks' registration order\n // - callbacks registered with a tilde prefix\n // are then called in reverse order.\n ksort($callbacks);\n }\n\n foreach ($callbacks as $k => $c)\n {\n unset($callbacks[$k]);\n\n // $t is the current token:\n // $t = array(\n // 0 => token's main type - a single character or a T_* constant,\n // as returned by token_get_all()\n // 1 => token's text - its source code excerpt as a string\n // 2 => an array of token's types and subtypes\n // )\n\n if ($k < 0)\n {\n $n = $c[0]->{$c[1]}($t);\n\n // Non-tilde-prefixed callbacks can return:\n // - false, which cancels the current token\n // - a new token type, which is added to $t[2] and loads the\n // related callbacks in the current callbacks stack\n // - or nothing (null)\n\n if (false === $n) continue 3;\n if ($n && empty($t[2][$n])) continue 2;\n }\n else if (null !== $c[0]->{$c[1]}($t))\n {\n user_error(\"No return value is expected for tilde-registered callback: \" . get_class($c[0]) . '->' . $c[1] . '()', E_USER_NOTICE);\n }\n }\n\n break;\n }\n }\n\n // Commit to $this->texts\n\n $texts[++$j] =& $t[1];\n\n if (2 === $priType) // T_NON_SEMANTIC\n {\n $line += substr_count($t[1], \"\\n\");\n continue;\n }\n\n // For semantic tokens only: populate $this->types, $this->prevType and $this->penuType\n\n $penuType = $prevType;\n $types[$j] = $prevType = $t[0];\n\n // Parsing context analysis related to string interpolation and line numbering\n\n if (isset($prevType[0])) switch ($prevType)\n {\n case '{': ++$curly; break;\n case '}': --$curly; break;\n case '\"':\n case '`': $inString += ($inString & 1) ? -1 : 1;\n }\n else switch ($prevType)\n {\n case T_CONSTANT_ENCAPSED_STRING:\n case T_ENCAPSED_AND_WHITESPACE:\n case T_OPEN_TAG_WITH_ECHO:\n case T_INLINE_HTML:\n case T_CLOSE_TAG:\n case T_OPEN_TAG:\n $line += substr_count($t[1], \"\\n\");\n break;\n\n case T_DOLLAR_OPEN_CURLY_BRACES:\n case T_CURLY_OPEN: $curlyPool[] = $curly; $curly = 0;\n case T_START_HEREDOC: ++$inString; break;\n\n case T_CURLY_CLOSE: $curly = array_pop($curlyPool);\n case T_END_HEREDOC: --$inString; break;\n\n case T_HALT_COMPILER:\n 4 === $this->haltCompilerTail and $this->register('tagHaltCompilerData');\n break;\n }\n }\n\n // Free memory thanks to copy-on-write\n $j = $texts;\n $types = $texts = $tokens = $reg = $this->parents = $this->parent = null;\n return $j;\n }", "public function parseString(?Tree $oldTree, string $string): Tree\n {\n $tree = API::ffi()->ts_parser_parse_string(\n $this->data,\n $oldTree?->data,\n $string,\n strlen($string),\n );\n\n return new Tree($tree);\n }", "public function parse(array &$tokens) {\n\t\t$token = current($tokens);\n\t\t$this->content = substr($token['value'], 4, -3);\n\t}", "private function tokenizeFilter(string $filterString): array\n {\n $tokens = [];\n\n $chars = str_split($filterString);\n $currentString = '';\n foreach ($chars as $char) {\n switch ($char) {\n case '(':\n if (trim($currentString) !== \"\") {\n $tokens[] = new TokenExpression(trim($currentString));\n }\n $tokens[] = new TokenBracketLeft(trim($currentString));\n $currentString = '';\n break;\n case ')':\n if (trim($currentString) !== \"\") {\n $tokens[] = new TokenExpression(trim($currentString));\n }\n $tokens[] = new TokenBracketRight(trim($currentString));\n $currentString = '';\n break;\n case '&':\n if (trim($currentString) !== \"\") {\n $tokens[] = new TokenExpression(trim($currentString));\n }\n $tokens[] = new TokenAnd(trim($char));\n $currentString = '';\n break;\n case '|':\n if (trim($currentString) !== \"\") {\n $tokens[] = new TokenExpression(trim($currentString));\n }\n $tokens[] = new TokenOr(trim($currentString));\n $currentString = '';\n break;\n default:\n $currentString .= $char;\n }\n }\n if (trim($currentString) !== \"\") {\n $tokens[] = new TokenExpression(trim($currentString));\n }\n return $tokens;\n }", "public function tokenize($input)\n {\n $this->_input = $input;\n $this->_char = 1;\n $this->_line = 1;\n $this->_tokenBuffer = array();\n $this->_warnings = array();\n\n while (strlen($this->_input) > 0) {\n $matched = false;\n if (!$matched) {\n $matched = $this->_matchTokens();\n }\n if (!$matched) {\n $matched = $this->_matchNewline();\n }\n if (!$matched) {\n $matched = $this->_matchWhitespace();\n }\n if (!$matched) {\n $this->_skipUnknownTokens();\n }\n }\n return $this->_tokenBuffer;\n }", "public static function parsingToArray($string) {\n\n\t\t//remove punctuation\n\t\t\n\t\tforeach(WordsParser::$Punctuation as $pun)\n\t\t{\n\t\t\t$string = str_replace($pun, \" \", $string);\n\t\t}\n\t\t\n\t\t//remove newline,Tab, and double space.\n\t\t$string = str_replace(\"\\n\", \" \", $string);\n\t\t$string = str_replace(\"\\r\", \" \", $string);\n\t\t$string = str_replace(\" \", \" \", $string); \n\t\t$string = str_replace(\"\t\", \" \", $string);\n\t\t$arrtext = explode(\" \", $string);\n\t\tforeach($arrtext as $keyword)\n\t\t{\n\t\t\t$wordsArr[] = $keyword;\n\t\t}\n\t\t\n\t\treturn $wordsArr;\n\t}", "private function _tokenize($sql)\n\t{\n\t\t$this->tokens = array();\n\t\t$tokenCount = 0;\n\t\t$chars = '(),.:=;/';\n\t\t$rawTokens = preg_split(\"/(\n\t\t\t[ \\\\t\\\\n\\\\r]+ # WHITESPACE\n\t\t\t|\\\\\\\\+ # BACKSLASHES\n\t\t\t|\\\" # DOUBLE QUOTE\n\t\t\t|' # SINGLE QUOTE\n\t\t\t|`[^`]` # BACK QUOTE\n\t\t\t|\\\\[[^\\\\]]+\\\\] # SQUARE QUOTE\n\t\t\t|\\\\/\\\\*.*?\\\\*\\\\/ # COMMENTARY\n\t\t\t|--.*?\\\\n # COMMENTARY\n\t\t\t|[\".preg_quote($chars, \"/\").\"] # CHARACTER\n\t\t)/xs\", $sql, -1, PREG_SPLIT_DELIM_CAPTURE);\n\t\t$isInSingleQuote = false;\n\t\t$isInDoubleQuote = false;\n\t\tforeach ($rawTokens as $i => $rawToken)\n\t\t{\n\t\t\tif ($rawToken === \"\")\n\t\t\t\tcontinue;\n\n\t\t\t/** @var Token $prevToken */\n\t\t\t$prevToken = $this->tokens[$tokenCount-1];\n\n\t\t\tif ($isInSingleQuote)\n\t\t\t{\n\t\t\t\t$prevToken->appendText($rawToken);\n\t\t\t\tif (\n\t\t\t\t\t$rawToken === \"'\"\n\t\t\t\t\t&& preg_match(\"/(\\\\\\\\)*'\\$/\", $prevToken->text, $match)\n\t\t\t\t\t&& (strlen($match[0]) % 2) === 1\n\t\t\t\t)\n\t\t\t\t{\n\t\t\t\t\t$isInSingleQuote = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telseif ($isInDoubleQuote)\n\t\t\t{\n\t\t\t\t$prevToken->appendText($rawToken);\n\t\t\t\tif (\n\t\t\t\t\t$rawToken === \"\\\"\"\n\t\t\t\t\t&& preg_match(\"/(\\\\\\\\)*\\\"\\$/\", $prevToken->text, $match)\n\t\t\t\t\t&& (strlen($match[0]) % 2) === 1\n\t\t\t\t)\n\t\t\t\t{\n\t\t\t\t\t$isInDoubleQuote = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telseif ($rawToken[0] === \"`\")\n\t\t\t{\n\t\t\t\t$this->tokens[$tokenCount++] = new Token(Token::T_BACK_QUOTE, $rawToken);\n\t\t\t}\n\t\t\telseif ($rawToken[0] === \"[\")\n\t\t\t{\n\t\t\t\t$this->tokens[$tokenCount++] = new Token(Token::T_SQUARE_QUOTE, $rawToken);\n\t\t\t}\n\t\t\telseif (\n\t\t\t\t($rawToken[0] === \"/\" && $rawToken[1] === '*')\n\t\t\t\t|| ($rawToken[0] === \"-\" && $rawToken[1] === '-')\n\t\t\t)\n\t\t\t{\n\t\t\t\t$this->tokens[$tokenCount++] = new Token(Token::T_COMMENT, $rawToken);\n\t\t\t}\n\t\t\telseif (strlen($rawToken) == 1 && strpos($chars, $rawToken) !== false)\n\t\t\t{\n\t\t\t\t$this->tokens[$tokenCount++] = new Token(Token::T_CHAR, $rawToken);\n\t\t\t}\n\t\t\telseif ($rawToken === \"\\\"\")\n\t\t\t{\n\t\t\t\t$this->tokens[$tokenCount++] = new Token(Token::T_DOUBLE_QUOTE, $rawToken);\n\t\t\t\t$isInDoubleQuote = true;\n\t\t\t}\n\t\t\telseif ($rawToken === \"'\")\n\t\t\t{\n\t\t\t\t$this->tokens[$tokenCount++] = new Token(Token::T_SINGLE_QUOTE, $rawToken);\n\t\t\t\t$isInSingleQuote = true;\n\t\t\t}\n\t\t\telseif (preg_match(\"/^[ \\\\t\\\\n\\\\r]+\\$/\", $rawToken))\n\t\t\t{\n\t\t\t\t$this->tokens[$tokenCount++] = new Token(Token::T_WHITESPACE, $rawToken);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif ($tokenCount > 0 && $prevToken->type === Token::T_STRING)\n\t\t\t\t{\n\t\t\t\t\t$prevToken->appendText($rawToken);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->tokens[$tokenCount++] = new Token(Token::T_STRING, $rawToken);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected function processFrom(string $string): array\n {\n return \\json_decode($string, true);\n }", "function token($str) {\n\t\t$str=preg_replace_callback(\n\t\t\t'/(?<!\\w)@(\\w(?:[\\w\\.\\[\\]])*)/',\n\t\t\tfunction($token) {\n\t\t\t\t// Convert from JS dot notation to PHP array notation\n\t\t\t\treturn '$'.preg_replace_callback(\n\t\t\t\t\t'/(\\.\\w+)|\\[((?:[^\\[\\]]*|(?R))*)\\]/',\n\t\t\t\t\tfunction($expr) {\n\t\t\t\t\t\t$fw=\\Base::instance();\n\t\t\t\t\t\treturn\n\t\t\t\t\t\t\t'['.\n\t\t\t\t\t\t\t($expr[1]?\n\t\t\t\t\t\t\t\t$fw->stringify(substr($expr[1],1)):\n\t\t\t\t\t\t\t\t(preg_match('/^\\w+/',\n\t\t\t\t\t\t\t\t\t$mix=$this->token($expr[2]))?\n\t\t\t\t\t\t\t\t\t$fw->stringify($mix):\n\t\t\t\t\t\t\t\t\t$mix)).\n\t\t\t\t\t\t\t']';\n\t\t\t\t\t},\n\t\t\t\t\t$token[1]\n\t\t\t\t);\n\t\t\t},\n\t\t\t$str\n\t\t);\n\t\treturn trim($str);\n\t}", "public function parse( $str ) {\n\t\t\n\t\treturn $this->Textile->TextileThis( $str);\n\t\t\n\t}", "public function decode(string $token): Token;", "public function parse($string) {\n\t$Numerals = str_split($string);\n\t$LastIndex = -1;\n\t$CurrentIndex = -1;\n\t$Magnitude = 0;\n\t$RomanNumerals = array_keys($this->NumeralMapping);\n\t$NumeralValues = array_values($this->NumeralMapping);\n\t$NumeralMapping = array_reverse($this->NumeralMapping);\n\n\t$Numerals = array_reverse($Numerals);\n\tforeach($Numerals as $Value) {\n\t\tif(isset($NumeralMapping[$Value])===true) {\n\t\t\t$Idx = -1;\n\t\t\tforeach($RomanNumerals as $Index => $Numeral) {\n\t\t\t\tif($Value == $Numeral) {\n\t\t\t\t\t$Idx = $Index;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$CurrentIndex = $Idx;\n\t\t} else {\n\t\t\treturn \"Recieved value is NOT a valid String.\";\n\t\t}\n\t if($CurrentIndex < $LastIndex) {\n\t $Magnitude = $Magnitude - $NumeralValues[$CurrentIndex];\n\t } else {\n\t $Magnitude = $Magnitude + $NumeralValues[$CurrentIndex];\n\t }\n \t$LastIndex = $CurrentIndex;\n\t}\n\treturn $Magnitude;\n }", "public function getToken() {\n $token = new SQLToken();\n $token->type = SQLToken::TOK_NULL;\n $token->pos = $this->offset + 1;\n $token->value = '';\n\n if (strlen($this->_input) <= 0) {\n return $token;\n }\n\n foreach ($this->tokenRegex as $regexType => $regexString) {\n // Add generic whitespace matching and grouping to token regex.\n // Ensure case insensitive match.\n $regexString = '/^(\\s*(' . $regexString . ')\\s*)/i';\n $matches = array();\n //echo 'Input: ' . $this->_input . \"\\n\";\n //echo 'Testing: ' . $regexString . \"\\n\";\n if (preg_match($regexString, $this->_input, $matches)) {\n $token->type = $regexType;\n // Strip leading/trailing whitespace and quotes.\n $token->value = preg_replace('/(^\\s*[\\\"\\']?|[\\\"\\']?\\s*$)/', '', $matches[1]);\n $token->pos = $this->offset + 1;\n //$token->debugStr = $regexString;\n $this->offset += strlen($matches[1]);\n $this->_input = substr($this->_input, strlen($matches[1]));\n return $token;\n }\n }\n\n if ($token->isType(SQLToken::TOK_NULL)) {\n # There has been a tokenisation error.\n\n if (preg_match('/^[\"\\']/', $this->_input)) {\n # Probably a runaway string.\n throw new SQLParserException(\n 'Possible runaway string beginning at position ' . ($this->offset + 1). ': ' . $this->_input,\n SQLParserException::EX_LEXER\n );\n }\n\n throw new SQLParserException(\n 'No matching symbol at position ' . ($this->offset + 1). ': ' . $this->_input,\n SQLParserException::EX_PARSER\n );\n }\n }", "protected function parse(): void\n {\n $parseOptions = true;\n $this->parsed = $this->getTokens();\n \n while (null !== $token = array_shift($this->parsed)) {\n if ($parseOptions && '--' == $token) {\n $parseOptions = false;\n } elseif ($parseOptions && 0 === strpos($token, '--')) {\n $this->parseLongOption($token);\n } elseif ($parseOptions && '-' === $token[0] && '-' !== $token) {\n $this->parseShortOption($token);\n }\n }\n }", "public function parse(array $tokens, array $rules, array $alias): array\n {\n $this->rules = $rules;\n $this->alias = $alias;\n\n $this->extractParams($tokens);\n $this->applyTypesToParams($tokens);\n $this->normalizeParam($tokens);\n\n return $tokens;\n }", "protected function scan_token()\n {\n $tok = null;\n \n // loop used to avoid recursion if tokens get skipped (comments)\n for (;;) {\n $m = null;\n \n // track new lines?\n if ($this->tnl === true) {\n // test of a new-line can be scanned\n if (preg_match('/^\\h*\\r?(\\n)/', $this->data, $m)) {\n $this->tnl = false;\n goto prd;\n }\n } \n \n if (!preg_match(self::$re, $this->data, $m)) {\n // the scanner-pattern could not match anything\n // in this state we can not produce tokens (anymore)\n $this->eof = true;\n $this->adjust_line_coln_beg($this->data, 0);\n \n Logger::error_at($this->loc(), 'invalid input near: %s [...]',\n strtr(substr($this->data, 0, 10), [ \"\\n\" => '\\\\n' ]));\n \n return $this->scan_eof();\n }\n \n // start scan\n prd:\n \n // \"raw\" and \"sub\" matched data\n // raw: can contain whitespace at the beginning\n // sub: the relevant data\n list ($raw, $sub) = $m;\n $len = strlen($raw);\n \n // remove match from data\n $this->data = substr($this->data, $len);\n \n // get correct starting line/coln\n $this->adjust_line_coln_beg($raw, $len);\n \n // save start line/coln\n $pos = new Position($this->line, $this->coln);\n \n // comments\n if (preg_match('/^(?:[#]|\\/[*\\/])/', $sub)) {\n // update end line/coln\n $this->adjust_line_coln_end($sub, 0);\n \n // handle <eof> if the comment was at the end of our input\n if ($this->ends()) \n return $this->scan_eof();\n \n continue; // continue otherwise\n }\n \n $str = null;\n if (preg_match('/^([cor])?([\"\\'])/', $sub, $str)) {\n if ($str[1] === 'r') {\n // raw string\n $tok = $this->token(T_STRING, substr($sub, 2, -1));\n // update end line/coln\n $this->adjust_line_coln_end($sub, 0);\n } else \n // flag === '' (none) \n // flag === 'c' (constant / constant-expression)\n // flag === 'o' (object [instance of class `Str`] - unused atm)\n // start advanced string-scanner\n $tok = $this->scan_string($str[2]);\n \n $tok->flag = $str[1];\n $tok->delim = $str[2];\n } else {\n // update end line/coln\n $this->adjust_line_coln_end($sub, 0);\n \n // analyze match\n $tok = $this->analyze($sub);\n assert($tok !== null);\n \n if ($tok->type === T_SEMI)\n $tok->implicit = false;\n // track new lines if the current token was a '@'\n elseif ($tok->type === T_AT)\n $this->tnl = true;\n elseif ($tok->type === T_END) {\n // the __end__ marker behaves just like real-eof\n $end = $tok;\n \n // produce one more ';'\n $tok = $this->token(T_SEMI, ';', false);\n $tok->implicit = true;\n \n $end->raw = $raw;\n $end->loc = new Location($this->file, $pos);\n \n // push the end-token onto the queue\n $this->end = $end;\n }\n }\n \n break;\n }\n \n assert($tok !== null);\n \n $tok->raw = $raw;\n $tok->loc = new Location($this->file, $pos);\n return $tok;\n }", "static public function parse($strQuery)\n {\n $tokens = new Zend_Search_Lucene_Search_QueryTokenizer($strQuery);\n\n // Empty query\n if (!$tokens->count()) {\n throw new Zend_Search_Lucene_Exception('Syntax error: query string cannot be empty.');\n }\n\n // Term query\n if ($tokens->count() == 1) {\n if ($tokens->current()->type == Zend_Search_Lucene_Search_QueryToken::TOKTYPE_WORD) {\n return new Zend_Search_Lucene_Search_Query_Term(new Zend_Search_Lucene_Index_Term($tokens->current()->text, 'contents'));\n } else {\n throw new Zend_Search_Lucene_Exception('Syntax error: query string must contain at least one word.');\n }\n }\n\n\n /**\n * MultiTerm Query\n *\n * Process each token that was returned by the tokenizer.\n */\n $terms = array();\n $signs = array();\n $prevToken = null;\n $openBrackets = 0;\n $field = 'contents';\n foreach ($tokens as $token) {\n switch ($token->type) {\n case Zend_Search_Lucene_Search_QueryToken::TOKTYPE_WORD:\n $terms[] = new Zend_Search_Lucene_Index_Term($token->text, $field);\n $field = 'contents';\n if ($prevToken !== null &&\n $prevToken->type == Zend_Search_Lucene_Search_QueryToken::TOKTYPE_SIGN) {\n if ($prevToken->text == \"+\") {\n $signs[] = true;\n } else {\n $signs[] = false;\n }\n } else {\n $signs[] = null;\n }\n break;\n case Zend_Search_Lucene_Search_QueryToken::TOKTYPE_SIGN:\n if ($prevToken !== null &&\n $prevToken->type == Zend_Search_Lucene_Search_QueryToken::TOKTYPE_SIGN) {\n throw new Zend_Search_Lucene_Exception('Syntax error: sign operator must be followed by a word.');\n }\n break;\n case Zend_Search_Lucene_Search_QueryToken::TOKTYPE_FIELD:\n $field = $token->text;\n // let previous token to be signed as next $prevToken\n $token = $prevToken;\n break;\n case Zend_Search_Lucene_Search_QueryToken::TOKTYPE_BRACKET:\n $token->text=='(' ? $openBrackets++ : $openBrackets--;\n }\n $prevToken = $token;\n }\n\n // Finish up parsing: check the last token in the query for an opening sign or parenthesis.\n if ($prevToken->type == Zend_Search_Lucene_Search_QueryToken::TOKTYPE_SIGN) {\n throw new Zend_Search_Lucene_Exception('Syntax Error: sign operator must be followed by a word.');\n }\n\n // Finish up parsing: check that every opening bracket has a matching closing bracket.\n if ($openBrackets != 0) {\n throw new Zend_Search_Lucene_Exception('Syntax Error: mismatched parentheses, every opening must have closing.');\n }\n\n switch (count($terms)) {\n case 0:\n throw new Zend_Search_Lucene_Exception('Syntax error: bad term count.');\n case 1:\n return new Zend_Search_Lucene_Search_Query_Term($terms[0],$signs[0] !== false);\n default:\n return new Zend_Search_Lucene_Search_Query_MultiTerm($terms,$signs);\n }\n }", "function get_token(){\n global $token;\n global $identifier;\n global $array_stream;\n global $key_val;\n global $keywords;\n\n global $c_commentary;\n\n $token_end = True;\n $token_type = tokenType::start;\n init_token();\n\n while($token_end){\n /**\n * @warning end of Array works only for PHP7.3!!!!\n */\n if($key_val === array_key_last($array_stream)){\n $token->last = False;\n if($token->data !== PHP_EOL){\n $token->type = tokenType::EOL;\n $token_end = False;\n }\n }\n /* State automaton for lexical analysis combined with usage of regular expressions */\n switch ($token_type) {\n case tokenType::start:\n {\n if($array_stream[$key_val] === \".\"){ //header dection\n $token_type = tokenType::header;\n break;\n }\n elseif($array_stream[$key_val] === \"@\"){ //at mark detected\n $token->data = $array_stream[$key_val];\n $token->type = tokenType::marker;\n identify_operand();\n preset_label();\n $key_val++;\n $token_end = False;\n break;\n }\n elseif($array_stream[$key_val] === \"#\"){ //start of commentary\n $token_type = tokenType::commentary;\n break;\n }\n elseif($array_stream[$key_val] === PHP_EOL){ //EOL detected\n $token_type = tokenType::EOL;\n break;\n }\n elseif($array_stream[$key_val] === \"\\t\" || $array_stream[$key_val] === \" \"){ //white spaces before instruction/commentary\n $key_val++;\n preset_identifier();\n }\n elseif(ctype_alpha($array_stream[$key_val]) || ctype_digit($array_stream[$key_val]) || preg_match(\"/^_|\\-|\\$|&|%|\\*|!|\\?$/\", $array_stream[$key_val])){ //var/string/int catch\n $token_type = tokenType::charStream;\n break;\n }\n else {\n fwrite(STDERR, \"ERROR : Input doesn't start with .IPPcode19 header\\n\");\n exit(21);#appropriate exit code\n }\n break;\n }\n case tokenType::header:\n {\n /* Load header in loop, until new line space or commentary right after header */\n while(1){\n if($array_stream[$key_val] === PHP_EOL || preg_match(\"/^[ \\t#]$/\",$array_stream[$key_val]) || $key_val === array_key_last($array_stream)){\n if(preg_match(\"/^.ippcode19$/\", strtolower($token->data))){\n $token->type = tokenType::header;\n $token_end = False;\n break;\n }\n else {\n fwrite(STDERR,\"ERROR : Innapropriate header detected\\n\");\n exit(21);//no ippcode header;\n }\n }\n $token->data .= $array_stream[$key_val];\n $key_val++;\n }\n break;\n }\n /* Creates EOL token */\n case tokenType::EOL:\n {\n $token->data = $array_stream[$key_val];\n $token->type = tokenType::EOL;\n $key_val++;\n preset_identifier();\n preset_label();\n $token_end = False;\n break;\n }\n /* Catches commentary, all character are trimmed until EOL*/\n case tokenType::commentary:\n {\n while($array_stream[$key_val] !== PHP_EOL)\n {\n if($key_val === array_key_last($array_stream)) break;\n $key_val++;\n }\n $c_commentary++;\n $token_type = tokenType::EOL;\n break;\n }\n /* string/int or var stream stored into token */\n case tokenType::charStream:\n {\n while(1){\n if(preg_match(\"/^[ \\t@]$/\",$array_stream[$key_val])){\n $token_type = tokenType::identifyStream;\n break;\n }\n elseif($array_stream[$key_val] === PHP_EOL || $array_stream[$key_val] === \"#\"){ //read until newline or commentary start\n $token_type = tokenType::identifyStream;\n break;\n }\n elseif($key_val === array_key_last($array_stream)){ //read until EOF and add last character to token\n $token->data .= $array_stream[$key_val];\n $token_type = tokenType::identifyStream;\n break;\n }\n $token->data .= $array_stream[$key_val];\n $key_val++;\n }\n break;\n }\n case tokenType::identifyStream:\n {\n if(preg_match(\"/^[a-zA-Z_\\-\\$&%\\*!?][a-zA-Z_\\-\\$&%\\*!?0-9]*$/\", $token->data)){ //matching the identifier\n $token->type = tokenType::identifier;\n foreach ($keywords as $key => $value) { //searching for keyword\n $match_pattern = \"/\\b\" . \"$value\" . \"\\b/i\";\n if(preg_match($match_pattern, strtolower($token->data))){\n $token->type = $key + 110;\n if(preg_match(\"/^(bool)|(int)|(string)|(nil)|(gf)|(lf)|(tf)$/\", $token->data)){\n identify_operand();\n }\n break;\n }\n }\n isset_identif();\n $token_end = False;\n break;\n }\n if(preg_match(\"/^[+|-]?[0-9]*$/\", $token->data)){ //matching numbers //^[+|-]?[1-9][0-9]*|[+|-][0]|[0]$\n $token->type = tokenType::number;\n $token_end = False;\n break;\n }\n /* Match for string literal - all unicode numbers and escape sequences */\n elseif(preg_match(\"/^([\\x{0024}-\\x{005B}]|[\\x{0021}\\x{0022}]|[\\x{005D}-\\x{FFFF}]|[ěščřžýáíéóúůďťňĎŇŤŠČŘŽÝÁÍÉÚŮa-zA-Z0-9]|([\\\\\\\\][0-9]{3})?)*$/\", $token->data)){ //^([ěščřžýáíéóúůďťňĎŇŤŠČŘŽÝÁÍÉÚŮa-zA-Z0-9]|([\\\\\\\\][0-9]{3})?)*$\n $token->type = tokenType::stringStream;\n $token_end = False;\n }\n else {\n fwrite(STDERR,\"ERROR : LEX : detected lexical error in: $token->data\\n\");\n exit(23);\n }\n break;\n }\n\n default:\n break;\n }\n }\n }", "function parse($text)\n {\n // set the object property for the source text\n $this->source = $text;\n \n // reset the tokens.\n $this->tokens = array();\n \n // apply the parse() method of each requested rule to the source\n // text.\n foreach ($this->rules as $name) {\n // do not parse the rules listed in $disable\n if (! in_array($name, $this->disable)) {\n \n // load the parsing object\n $this->loadParseObj($name);\n \n // load may have failed; only parse if\n // an object is in the array now\n if (is_object($this->parseObj[$name])) {\n $this->parseObj[$name]->parse();\n }\n }\n }\n }", "protected function parseEditorOptions($string)\n\t{\n\t\t$options = [];\n\t\t$substrings = preg_split('/,\\s*\\n|\\n/', trim($string));\n\t\tforeach ($substrings as $bits) {\n\t\t\t$option = explode(\":\", $bits, 2);\n\n\t\t\tif (count($option) == 2) {\n\t\t\t\t$value = trim(trim($option[1]), \"'\\\"\");\n\t\t\t\tif (($s = strtolower($value)) === 'false') {\n\t\t\t\t\t$value = false;\n\t\t\t\t} elseif ($s === 'true') {\n\t\t\t\t\t$value = true;\n\t\t\t\t}\n\t\t\t\t$options[trim($option[0])] = $value;\n\t\t\t}\n\t\t}\n\t\treturn $options;\n\t}", "public function parseString( $str ) {\n\t\t\n\t\t$allowed_tags = '<a><b><i><u><em><strong><sup><sub><small>';\n\t\t\n\t\treturn strip_tags( $this->parse($str), $allowed_tags );\n\t\t\n\t}", "public function tokenize($htmlString)\n {\n $this->setState(new DataState());\n\n parent::tokenize($htmlString);\n\n $this->state->processCharacter(Tokenizer::END_OF_FILE_CHARACTER, $this);\n }", "public function testParseWithMultipleTokens(): void\n {\n $this->assertSame(6, $this->parser->parse([Grammar::T_V, Grammar::T_I]));\n $this->assertSame(13, $this->parser->parse([Grammar::T_X, Grammar::T_I, Grammar::T_I, Grammar::T_I]));\n $this->assertSame(111, $this->parser->parse([Grammar::T_C, Grammar::T_X, Grammar::T_I]));\n }", "public function parse($string, array $values = array(), $default = null)\n\t{\n\t\treturn ($string = $this->get($string)) ? $this->parser()->parse_string($string, $values) : __val($default);\n\t}", "protected function _parseRuleString($ruleString) {\n $ruleSets = array();\n\n if (strpos($ruleString, \"|\") !== FALSE) {\n $ruleSets = explode(\"|\", $ruleString);\n } else {\n $ruleSets[] = $ruleString;\n }\n\n return $ruleSets;\n }", "abstract public function parse();", "abstract public function parse();", "abstract public function parse();", "abstract public function parse();", "public function parse();", "public function parse();", "public function parse();", "public final function parse($param_str) {\n $params = explode(\",\", $param_str);\n foreach ($params as $param_item) {\n $param_kv = explode(\"=\", $param_item);\n $param_key = trim($param_kv[0]);\n $param_value = trim($param_kv[1]);\n if ('\"' === substr($param_key, 0, 1) && '\"' === substr($param_key, -1, 1)) {\n $param_key = substr($param_key, 1, strlen($param_key) - 2);\n }\n if ('\"' === substr($param_value, 0, 1) && '\"' === substr($param_value, -1, 1)) {\n // This param_value is a string type, which could be set directly\n if (property_exists($this, $param_key)) {\n $this->$param_key = substr($param_value, 1, strlen($param_value) - 2);\n } else {\n // @TODO support special variables like from `@use`\n }\n }\n }\n }", "public function parse($message)\n {\n $tokenizer = new Tokenizer;\n\n $this->setupSpecialCharacters($message, $tokenizer);\n\n $tokens = $tokenizer->getTokens($message);\n\n $segments = $this->convertTokensToSegments($tokens);\n\n return $segments;\n }", "abstract public function parse( $line );", "protected function parse($string)\n {\n $name = \"\";\n $params = [];\n\n if (($pos = strpos($string, \":\")) !== false) {\n $name = substr($string, 0, $pos);\n $paramsStr = substr($string, $pos+1);\n $params = $name == \"complex\" ? $paramsStr : $this->parseParamStr($paramsStr);\n } else {\n $name = $string;\n }\n\n return new \\RandData\\SetInfo($name, $params);\n }", "private function token($token,$pos=0)\n\t{\n\t\tstatic $count=0;\n\t\t$len=strlen($token);\n\t\t$last=$len-1;\n\t\t$res=array(\"original\"=>$token,\"type\"=>\"\",\"position\"=>$pos-$len+1,\"length\"=>$len,\"clean\"=>$token);\n\t\tif (isset($this->reserved[strtoupper($token)]))\n\t\t{\n\t\t\t$res['type']=\"keyword\";\n\t\t\t$res['clean']=strtoupper($token);\n\t\t}\n\t\telseif (isset($this->functions[strtoupper($token)]))\n\t\t{\n\t\t\t$res['type']=\"function\";\n\t\t\t$res['clean']=strtoupper($token);\n\t\t}\n\t\telseif (isset($this->symbols[$token]))\n\t\t\t$res['type']=self::TYPE_SYMBOL;\n\t\telseif ($len>2 and $token[0]=='`' and $token[$last]=='`')\n\t\t\t$res['type']=self::TYPE_IDENTIFIER;\n\t\telseif ($len>2 and $token[0]=='/' and $token[1]=='*')\n\t\t\t$res['type']=self::TYPE_MULTILINE_COMMENT;\n\t\telseif ($len>=2 and $token[0]=='/' and $token[1]=='/')\n\t\t\t$res['type']=self::TYPE_COMMENT;\n\t\telseif ($len>=2 and $token[0]=='-' and $token[1]=='-')\n\t\t\t$res['type']=self::TYPE_COMMENT;\n\t\telseif ($len>=1 and $token[0]=='#')\n\t\t\t$res['type']=self::TYPE_COMMENT;\n\t\telseif ($len>=2 and $token[0]=='\"' and $token[$last]=='\"')\n\t\t\t$res['type']=self::TYPE_STRING;\n\t\telseif ($len>=2 and $token[0]==\"'\" and $token[$last]==\"'\")\n\t\t\t$res['type']=self::TYPE_STRING;\n\t\telseif (is_numeric($token))\n\t\t\t$res['type']=self::TYPE_NUMBER;\n\t\telse\n\t\t\t$res['type']=self::TYPE_IDENTIFIER;\n\t\t// print_r($res);\n\t\t$this->tokens[]=$res;\n\t\treturn $res;\n\t}", "public function parse($string, $pos = 0)\n {\n\n if (false !== $lastPos = WrappedStringTool::findCandyStringEndPos($string, $this->symbol, $pos, $this->escapingMode)) {\n $inner = mb_substr($string, $pos + $this->symbolLen, $lastPos - $pos - $this->symbolLen);\n $s = EscapeTool::unescape($inner, $this->symbol, $this->escapingMode);\n $this->value = $s;\n $lastPos = ExpressionDiscovererTool::getLastCharRealPosition($lastPos, $this->symbolLen);\n $this->pos = $lastPos;\n return true;\n }\n return false;\n }", "function parseText ($text) {\n return $this->parse($text);\n }", "public function unserialize($string)\n {\n $result = array();\n parse_str($string, $result);\n\n return $result;\n }", "public static function parse($str)\n {\n $uri = new self($str);\n\n return array(\n $uri->driver,\n $uri->username,\n $uri->password,\n $uri->host,\n $uri->path,\n );\n }", "public function parse()\n {\n $latest_comment = false;\n $in_func = false;\n\n foreach ($this->_tokens as $token) {\n $id = $text = null;\n\n if (is_array($token)) {\n list($id, $text, $line) = $token;\n }\n if (T_WHITESPACE == $id) {\n continue;\n }\n\n if (T_STRING == $id && in_array($text, $this->_functionNames) && !$in_func) {\n $in_func = true;\n $paren_level = -1;\n $args = array();\n $func_name = $text;\n $func_line = $line;\n $func_comment = $latest_comment ? $latest_comment : '';\n\n $just_got_into_func = true;\n $latest_comment = false;\n continue;\n }\n\n if (!$in_func) {\n continue;\n }\n\n if ('(' == $token) {\n $paren_level++;\n\n if (0 == $paren_level) { // start of first argument\n $just_got_into_func = false;\n $current_argument = null;\n $current_argument_is_just_literal = true;\n }\n continue;\n }\n\n if ($just_got_into_func) {\n // there wasn't a opening paren just after the function name -- this means it is not a function\n $in_func = false;\n $just_got_into_func = false;\n }\n\n if (')' == $token) {\n if (0 == $paren_level) {\n $in_func = false;\n $args[] = $current_argument;\n $call = array('name' => $func_name, 'args' => $args, 'line' => $func_line);\n if ($func_comment) {\n $call['comment'] = $func_comment;\n }\n\n $fCall = new FunctionCallMeta($func_name, $args, $func_line, $this->getFilePath());\n $this->add($fCall);\n }\n\n $paren_level--;\n continue;\n }\n\n if (',' == $token && 0 == $paren_level) {\n $args[] = $current_argument;\n $current_argument = null;\n $current_argument_is_just_literal = true;\n continue;\n }\n\n if ((T_CONSTANT_ENCAPSED_STRING == $id || T_LNUMBER == $id || $id == T_DNUMBER || strtolower(\n $text\n ) == 'true' || strtolower($text) == 'false') && $current_argument_is_just_literal\n ) {\n // we can use eval safely, because we are sure $text is just a string literal\n eval('$current_argument = ' . $text . ';');\n continue;\n }\n\n if (strtolower($text) == 'null') {\n $current_argument = 'null';\n $current_argument_is_just_literal = true;\n continue;\n }\n\n $current_argument_is_just_literal = false;\n $current_argument = '{{complex}}';\n }\n }", "public function decode(string $token): array;" ]
[ "0.7140114", "0.6724267", "0.6713711", "0.6451844", "0.6326673", "0.62670636", "0.6177846", "0.61567354", "0.61345536", "0.6062511", "0.6006842", "0.5987494", "0.5984926", "0.58889097", "0.5824129", "0.5770442", "0.5754", "0.5741022", "0.57151693", "0.57151693", "0.5649153", "0.5632305", "0.56267923", "0.56147516", "0.5606629", "0.56044394", "0.55317664", "0.55214965", "0.54414016", "0.54372406", "0.54303885", "0.5407462", "0.53917104", "0.538523", "0.5370007", "0.5366298", "0.5358538", "0.53427196", "0.5325024", "0.5316189", "0.5285332", "0.5265217", "0.52594346", "0.52506155", "0.52455854", "0.5207415", "0.5206202", "0.51813436", "0.5178241", "0.5171507", "0.5158173", "0.5132479", "0.5131079", "0.5121242", "0.5099922", "0.5086811", "0.5085644", "0.5065636", "0.505578", "0.50486076", "0.5033165", "0.50190926", "0.5019062", "0.50079304", "0.4999985", "0.4994121", "0.49659976", "0.49524152", "0.49241707", "0.49238503", "0.4911382", "0.49052474", "0.48772708", "0.4876354", "0.48737228", "0.48480412", "0.4844427", "0.48427644", "0.4840548", "0.48237056", "0.4817094", "0.48135728", "0.48036137", "0.48036137", "0.48036137", "0.48036137", "0.4786188", "0.4786188", "0.4786188", "0.47843558", "0.47800437", "0.4779646", "0.47573584", "0.47453383", "0.47401488", "0.47244555", "0.47155786", "0.47134748", "0.47021386", "0.4700563" ]
0.58738005
14
Setter method for arguments (params). In GET context those are Url Parameters, in POST context its sent als POST fields.
public function setArgs(array $args) { $this->_args = array_merge($this->_args, $args); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setRequestArgumentsFromGetPost() {\n\t\t$validArguments = array('vendorName', 'extensionName', 'pluginName', 'controllerName', 'actionName', 'formatName', 'arguments');\n\t\tforeach ($validArguments as $argument) {\n\t\t\tif (GeneralUtility::_GP($argument)) {\n\t\t\t\t$this->requestArguments[$argument] = GeneralUtility::_GP($argument);\n\t\t\t} else if (GeneralUtility::_GP('amp;' . $argument)) {\n\t\t\t\t// Something went wrong...\n\t\t\t\t$this->requestArguments[$argument] = GeneralUtility::_GP('amp;' . $argument);\n\t\t\t}\n\t\t}\n\t}", "public function setParameters($params) {\n\t\t$defaultParams = $this->params;\n\t\t$allParams = array_merge($defaultParams, $params);\n\n\t\t$this->validateParameters($allParams);\n\n\t\t// Save parameters as they were\n\t\t$this->params = $allParams;\n\n\t\t// Update request URLs from the new parameters\n\t\t$this->urlRaw = $this->build();\n\t\t$this->url = $this->build(true);\n\t}", "public function setParameters($params)\n {\n $this->postFields = $params;\n }", "public function setParams($params);", "public function setParams($params);", "private function _setParams()\n\t{\n\t\tforeach ($_GET as $key => $value) {\n\t\t\t$this->_params[$key] = $this->_sanitize($value);\n\t\t}\n\n\t\tforeach ($_POST as $key => $value) {\n\t\t\t$_POST[$key] = $this->_sanitize($value);\n\t\t}\n\n\t\t$nbElements = count($this->_requestVars);\n\t\tif ($nbElements > 3) {\n\t\t\t$i = 2;\n\t\t\twhile ($i < $nbElements and $i + 1 < $nbElements) {\n\t\t\t\tif (ctype_digit($this->_requestVars[$i])) {\n\t\t\t\t\t$i += 2;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$this->_params[$this->_requestVars[$i]] = $this->_sanitize($this->_requestVars[$i + 1]);\n\t\t\t\t$i += 2;\n\t\t\t}\n\t\t}\n\n\t\tif ($nbElements > 2) {\n\t\t\t$i = 2;\n\t\t\twhile ($i < $nbElements) {\n\t\t\t\t$this->_params[$i - 2] = $this->_sanitize($this->_requestVars[$i]);\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\n\t\treturn $this;\n\t}", "public function set($params) {}", "private function _setParams ()\n {\n $endpoint = $this->_endpoint->getData();\n if (count($endpoint) > 0) {\n \n $method = $this->_endpoint->getUrl();\n $methodname = 'setParameter' . ucfirst($method['method']);\n \n $this->_httpclient->{$methodname}('access_token', \n $this->_accesstoken);\n $this->_httpclient->{$methodname}('api_secret', $this->_apisecret);\n \n foreach ($endpoint as $param => $value) {\n $this->_httpclient->{$methodname}($param, $value);\n }\n }\n }", "public function setArguments($args) {\n $this->args= $args;\n }", "public function setPostParams()\n {\n if (!empty($_POST)) {\n foreach ($_POST as $title => $param) {\n $this->setPostParam($title, $param);\n }\n }\n }", "private function setPostParameters(): void\n {\n $params = filter_input_array(INPUT_POST);\n\n if (!isset($params)) {\n $this->body = (object)array();\n return;\n }\n\n $this->body = $params;\n }", "public function setArguments($args)\n {\n $this->arguments = $args;\n }", "function set_params($params)\r\n\t{\r\n\t\t$this->parameters = $params;\r\n\t}", "private function setArguments()\n {\n $args = $this->data;\n $match = explode(\"/\", $this->routeMatch);\n\n // remove the domain part.\n foreach ($this->domains as $value) {\n // search for domain on url array.\n // array_search(needle, haystack)\n $index = array_search($value, $args);\n unset($args[$index]);\n\n // search for domain on matched route.\n $index = array_search($value, $match);\n unset($match[$index]);\n }\n\n // find the action part in url data and the matched route string.\n // preg_grep(pattern, input)\n $this->action = preg_grep(\"/^{$this->wildcards[':action']}$/\", $args);\n $matchAction = preg_grep(\"/^{$this->wildcards[':action']}$/\", $match);\n if ( !empty($this->action) )\n {\n // convert action from array to string.\n // find action in url data.\n // remove from url data.\n $this->action = array_shift($this->action);\n $index = array_search($this->action, $args);\n unset($args[$index]);\n\n $matchAction = array_shift($matchAction);\n $index = array_search($matchAction, $match);\n unset($match[$index]);\n }\n\n // get the arguments from url data\n // get the key from the wildcard. :id, :yyyy, :dd, etc.\n foreach ($args as $arg) {\n $key = $this->matchWildcard($match, $arg);\n $this->arguments[$key] = $arg;\n }\n }", "protected function setPostData()\n\t{\n\t\t$this->request->addPostFields($this->query->getParams());\n\t}", "public function setParams($params){\r\n $this->params=$params;\r\n }", "function setParams($params) {\n $this->params = $params;\n }", "protected function setPutData()\n\t{\n\t\t$this->request->addPostFields($this->query->getParams());\n\t}", "private function setParams($params)\n\t{\n\t\t$this->params = $params;\n\t}", "public function setArguments($arguments)\n {\n $this->arguments = $arguments;\n }", "public function setParams($params)\n {\n $this->_params = $params;\n }", "public function setParams($params)\n {\n $this->_params = $params;\n }", "public function initCallArguments() {\n\t\t$request = GeneralUtility::_GP('request');\n\t\tif ($request) {\n\t\t\t$this->setRequestArgumentsFromJSON($request);\n\t\t} else {\n\t\t\t$this->setRequestArgumentsFromGetPost();\n\t\t}\n\t\treturn $this->setVendorName($this->requestArguments['vendorName'])\n\t\t\t->setExtensionName($this->requestArguments['extensionName'])\n\t\t\t->setPluginName($this->requestArguments['pluginName'])\n\t\t\t->setControllerName($this->requestArguments['controllerName'])\n\t\t\t->setActionName($this->requestArguments['actionName'])\n\t\t\t->setFormatName($this->requestArguments['formatName'])\n\t\t\t->setArguments($this->requestArguments['arguments']);\n\t}", "public function setControllerParams(&$params) {\n $this->params = $params;\n // Make a reference to the form data so we can get to it easier.\n if (isset($this->params['post']['data'])) {\n $this->postData = & $this->params['post']['data'];\n }\n if (isset($this->params['post'])) {\n $this->post = & $this->params['post'];\n }\n if (isset($this->params['get'])) {\n $this->get = & $this->params['get'];\n }\n }", "public function setParams($params) {\n $this->params = $params;\n }", "public function setParams( $params )\r\n\t{\r\n\t\t$this->params = $params;\r\n\t}", "protected final function setParams ($params)\n\t{\n\t\t/// This method is restricted (cannot be used by descendants).\n\t}", "public function set_url_params($params)\n {\n }", "public function setParams($params)\n {\n $this->params = $params;\n }", "public function set_props($args)\n {\n }", "public function setArguments(array $arguments);", "public function setArguments(array $args);", "protected function setParams($params)\n {\n // endpoint\n if (isset($params['Endpoint'])) {\n $this->setEndPoint($params['Endpoint']);\n unset($params['Endpoint']);\n } else {\n $this->setEndPoint();\n }\n\n // service\n if (isset($params['Service'])) {\n $this->setService($params['Service']);\n unset($params['Service']);\n } else {\n $this->setService();\n }\n\n // remaining\n if (is_array($params)) {\n $this->params = array_merge($this->params, $params);\n }\n }", "public function set_query_params($params)\n {\n }", "public function setParams( $params )\n\t{\n\t\tif ( ! is_array( $params ) ) {\n\t\t\t$params = parse_str( $params );\n\t\t}\n\t\t$this->params = $params;\n\t}", "public function setParams($params) {\n\t\t$this->data['params'] = $params;\n\t}", "public static function fill_query_vars($args)\n {\n }", "function setContext( )\n\t{\n\t\t$args = new safe_args();\n\t\t$args->set('name', \tREQUIRED, 'string');\n\t\t$args->set('value', REQUIRED, 'any');\t\t\n\t\t$args = $args->get(func_get_args());\n\t\t\t\n\t\t$this->context[$args['name']] = $args['value'];\n\t}", "private function setPostParameters() {\n\t\tforeach (array_keys($_POST) as $currentKey) {\n\t\t\t$this->postArray[$currentKey] = $_POST[$currentKey];\n\t\t}\n\t}", "private function setGetParameters() {\n\t\tforeach(array_keys($_GET) as $currentKey) {\n\t\t\t$this->getArray[$currentKey] = $_GET[$currentKey];\n\t\t}\n\t}", "private function setParams() {\n //$name = is_array($this->match['name']) ? $this->match['name'] : array();\n $this->params['action'] = $this->action;\n $params = is_array($this->match['params']) ?\n $this->match['params'] : array();\n $page_name = isset($this->match['name']) ?\n $this->match['name'] : null;\n $this->params = array_merge(\n $this->params,\n array_map(array($this,'arrayToLower'), $params)\n );\n\n $_ENV['page']['name'] = $page_name;\n return $this;\n }", "public function set_params( $params )\n\t{\n\t\tif ( ! is_array( $params ) ) {\n\t\t\tparse_str( $params, $params );\n\t\t}\n\n\t\t$this->params = $params;\n\t}", "public function setArguments(...$arguments) {\n $this->arguments = $arguments;\n return $this;\n }", "public function set_query_arg($key, $value)\n {\n }", "function handle_request_body_params() {\n // Merges HTTP Request body with the instance parameters,\n // instance params have priority for security reasons\n $body = $this->get_request_body();\n $params = $body ? $this->decode($body) : null;\n $this->params = xUtil::array_merge(xUtil::arrize($params), $this->params);\n }", "public function setAuthParams()\n {\n if( $this->getUseSession() )\n {\n // FIXME Need to add session functionality\n }\n else\n {\n $this->getHttpClient()->setParameterGet( 'user', $this->getUsername() );\n $this->getHttpClient()->setParameterGet( 'password', $this->getPassword() );\n $this->getHttpClient()->setParameterGet( 'api_id', $this->getApiId() );\n }\n }", "protected function _initPostParameters()\n {\n $this->set('_post', new DataHolder($_POST));\n }", "public function setParams($params) {\n\t\t$this->params = array();\n\t\t$this->addParams($params);\n\t}", "private function setParams()\n\t\t{\n\t\t\t/**\n\t\t\t* Remove do $this->_separetor os dois primeiros valores\n\t\t\t* referentes ao controller e action, deixando os demais valores\n\t\t\t* que serão usados para formarem os parametros, indices e valores\n\t\t\t*/\n\t\t\tunset($this->_separetor[1], $this->_separetor[2]);\n\t\t\t\n\t\t\t/**\n\t\t\t* Caso o ultimo item do $this->_separetor seja vazio\n\t\t\t* o mesmo é removido\n\t\t\t*/\n\t\t\tif ( end($this->_separetor) == null ) {\n\t\t\t\tarray_pop($this->_separetor);\n\t\t\t}\n\n\t\t\t\n\t\t\t/**\n\t\t\t* Se a $this->_separetor estivar vazia,\n\t\t\t* então os parametros serão definidos como vazios\n\t\t\t*/\n\t\t\tif ( !empty($this->_separetor) ) {\n\t\t\t\t/**\n\t\t\t\t* Percorre o array $this->_separetor, verificando os indices\n\t\t\t\t* se for impar, então seu valor será o indice do parametro.\n\t\t\t\t* Se for par, seu valor será o valor do paremetro\n\t\t\t\t*/\n\t\t\t\tforeach ($this->_separetor as $key => $value) {\n\t\t\t\t\tif ($key % 2 == 0) {\n\t\t\t\t\t\t$param_value[] = $value;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$param_indice[] = $value;\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$param_value = array();\n\t\t\t\t$param_indice = array();\n\t\t\t}\n\n\n\t\t\t/**\n\t\t\t* Verifica se os indices e valores dos parametros\n\t\t\t* não são vazios e possuem a mesma quantidade\n\t\t\t* Então vaz um \"array_combine\" para juntar os dois arrays\n\t\t\t* formando um indice->valor para o parametro\n\t\t\t*/\n\t\t\tif ( !empty($param_indice) \n\t\t\t\t&& !empty($param_value)\n\t\t\t\t&& count($param_indice)\n\t\t\t\t== count($param_value)\n\t\t\t) {\n\t\t\t\t$this->_params = array_combine($param_indice, $param_value);\n\t\t\t} else {\n\t\t\t\t$this->_params = array();\n\t\t\t}\n\t\t}", "function params(array $params) {\n\t\t$this->_params = $params;\n\t}", "protected function setArguments( array $aArguments=array() ) {\n $this->oProp->aPostTypeArgs = $aArguments;\n }", "public function setParams(array $params);", "public function setParams(array $params);", "public function setParams(array $params);", "public function argumentsForPostProcessUriArgumentsForRequestHash() {}", "function setParameters($parameters);", "protected function setArgs($args) {\n $this->args = is_array($args) ? $args : array();\n }", "protected function alterQueryArgs() {\n\n $this->get = filter_input_array(INPUT_GET, FILTER_SANITIZE_STRING);\n $this->post = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRING);\n $this->request = VTCore_Wordpress_Utility::arrayMergeRecursiveDistinct($this->post, $this->get);\n\n $this->request = array_unique(array_filter((array) $this->request));\n\n // Processing ajax callback\n if (isset($this->request['value'])\n && $this->request['value'] == 'userloop'\n && isset($this->request['data'])) {\n\n $this->request['data'] = VTCore_Wordpress_Utility::wpParseLargeArgs($this->request['data']);\n\n }\n\n\n // Make WP_User_Query behaves like WP_Query\n if ($this->query['number']) {\n\n // Pagination with paged as WP_Query does\n if (!isset($this->query['paged'])) {\n $this->query['paged'] = 1;\n }\n\n // WpPager needs this for sane pagination\n $this->set('paged', $this->query['paged']);\n\n // Build the offset based on page and number per page\n $this->query['offset'] = $this->query['number'] * max(0, ($this->query['paged'] - 1));\n }\n\n do_action('vtcore_wordpress_user_query_args_alter', $this);\n\n }", "private function setOptsFromGET(){\n\n $this->_opt['save'] = 0;\n\n $this->_opt['show_reps'] = 1;\n\n /* Replace default Options with GET params */\n\n foreach($_GET as $key=>$value){\n\n $this->_opt[$key] = $value;\n }\n\n \n\n }", "private function _setParams($params)\n {\n $this->_params = array();\n foreach ($params as $paramKey => $paramValue) {\n $this->_params[$paramKey] = $paramValue;\n }\n }", "public function setSiteParameters($params);", "public function setParams($params = null)\n {\n self::clearParams();\n if($params && is_array($params)){\n foreach($params as $key => $value){\n if(!$key || trim($key) == ''){\n continue;\n }\n\n $this->params[$key] = $value;\n }\n }\n }", "function fill($request) {\n foreach($request->getParams() as $field=>$value) {\n $this->$field = $value;\n }\n }", "public function __construct()\n {\n $this->arguments = func_get_args();\n }", "private function setArgs(){\n\t\t$this->args = array(\n\t\t\t'label' => $this->label,\n\t\t\t'labels' => $this->labels,\n\t\t\t'description' => $this->description,\n\t\t\t'public' => $this->public,\n\t\t\t'exclude_from_search' => $this->excludeSearch,\n\t\t\t'publicly_queryable' => $this->publiclyQueryable,\n\t\t\t'show_ui' => $this->show_ui ,\n\t\t\t'show_in_nav_menus' => $this->showInNavMenus,\n\t\t\t'show_in_menu' => $this->showInMenu,\n\t\t\t'show_in_admin_bar' => $this->showInAdminBar,\n\t\t\t'menu_position' => $this->menuPosition,\n\t\t\t'menu_icon' => $this->menuIcon,\n\t\t\t'capability_type' => $this->capabilityType,\n\t\t\t'map_meta_cap' => $this->mapMetaCap,\n\t\t\t'hierarchical' => $this->hierarchical,\n\t\t\t'supports' => $this->supports,\n\t\t\t'register_meta_box_cb' => $this->registerMetaBoxCb,\n\t\t\t'taxonomies' => $this->taxonomies,\n\t\t\t'has_archive' => $this->hasArchive,\n\t\t\t'permalink_epmask' => $this->permalinkEpmask,\n\t\t\t'rewrite' => $this->rewrite,\n\t\t\t'query_var' => $this->queryVar,\n\t\t\t'can_export' => $this->canExport,\n\t\t\t'_builtin' => $this->builtin\n\t\t);\n\t}", "protected function setGetData()\n\t{\n\t\t$this->request->addParams($this->query->getParams());\n\t}", "protected function _initGetParameters()\n {\n $get = new DataHolder($_GET);\n\n // add query params\n $queryString = substr($_SERVER['REQUEST_URI'], strlen($get->get('_path')) + 2);\n foreach (Util::queryStringToArray($queryString) as $key => $value)\n {\n $get->set($key, $value);\n }\n\n $this->set('_get', $get);\n }", "public function setArgs($key, $value = '')\n {\n // Set an array of arguments\n if (is_array($key)) {\n foreach ($key as $sub_key => $sub_value) {\n $this->setArgs($sub_key, $sub_value);\n }\n\n return;\n }\n\n // Check for valid arguments\n if (!array_key_exists($key, $this->args)) {\n return;\n }\n\n // Set the value and update the network URLs\n $this->args[$key] = urlencode($value);\n $this->updateNetworks();\n }", "public function __construct( ) {\n foreach( $_REQUEST as $property=>$value){\n $this->$property = $value;\n }\n \n }", "public function setParams(array $params) :void;", "public function setArguments(array $args = []) : Route\n {\n foreach ($args as $key => $value) {\n $this->setArgument($key, $value);\n }\n return $this;\n }", "public function populate_from_request()\r\n\t\t{\t\t\r\n\t\t\t// Interate through each class method.\r\n\t\t\tforeach(get_class_methods($this) as $method) \r\n\t\t\t{\t\t\r\n\t\t\t\t$key = str_replace('set_', '', $method);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t// If there is a request var with key matching\r\n\t\t\t\t// current method name, then the current method \r\n\t\t\t\t// is a set mutator for this request var. Run \r\n\t\t\t\t// it (the set method) with the request var. \r\n\t\t\t\tif(isset($_GET[$key]))\r\n\t\t\t\t{\t\t\t\t\t\r\n\t\t\t\t\t$this->$method($_GET[$key]);\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "public function __construct($params){\n \n $i = 2; //Skip the controller/action stuff.\n while (isset($params[$i])){\n $this->_requestParams[$params[$i]] = $params[$i+1];\n $i = $i + 2;\n }\n\n if (count($_POST) > 0){\n $this->_requestParams = array_merge($this->_requestParams,$_POST);\n }\n }", "public function setParam($params)\n {\n $this->m_params = $params;\n }", "public function setParams()\n {\n $argc = func_num_args();\n $argv = func_get_args();\n if (0 == $argc) {\n return;\n }\n\n if ((1 == $argc) && is_array($argv[0])) {\n $params = [];\n $types = [];\n $wellFormed = true;\n foreach ($argv[0] as $arg) {\n if (!is_array($arg) || !isset($arg['value'])) {\n $wellFormed = false;\n break;\n }\n $params[] = $arg['value'];\n\n if (!isset($arg['type'])) {\n $xmlRpcValue = Zend_XmlRpc_Value::getXmlRpcValue($arg['value']);\n $arg['type'] = $xmlRpcValue->getType();\n }\n $types[] = $arg['type'];\n }\n if ($wellFormed) {\n $this->_xmlRpcParams = $argv[0];\n $this->_params = $params;\n $this->_types = $types;\n } else {\n $this->_params = $argv[0];\n $this->_types = [];\n $xmlRpcParams = [];\n foreach ($argv[0] as $arg) {\n if ($arg instanceof Zend_XmlRpc_Value) {\n $type = $arg->getType();\n } else {\n $xmlRpcValue = Zend_XmlRpc_Value::getXmlRpcValue($arg);\n $type = $xmlRpcValue->getType();\n }\n $xmlRpcParams[] = ['value' => $arg, 'type' => $type];\n $this->_types[] = $type;\n }\n $this->_xmlRpcParams = $xmlRpcParams;\n }\n return;\n }\n\n $this->_params = $argv;\n $this->_types = [];\n $xmlRpcParams = [];\n foreach ($argv as $arg) {\n if ($arg instanceof Zend_XmlRpc_Value) {\n $type = $arg->getType();\n } else {\n $xmlRpcValue = Zend_XmlRpc_Value::getXmlRpcValue($arg);\n $type = $xmlRpcValue->getType();\n }\n $xmlRpcParams[] = ['value' => $arg, 'type' => $type];\n $this->_types[] = $type;\n }\n $this->_xmlRpcParams = $xmlRpcParams;\n }", "public function init()\n {\n if (isset($this->_server['REQUEST_METHOD'])) {\n $this->_properties = $this->_request;\n\n if (array_key_exists('parameters', $this->_get)\n && gettype($this->_get['parameters']) != 'array'\n && strlen(trim($this->_get['parameters'])) > 0\n ) {\n $paramData = explode('/', $this->_get['parameters']);\n for ($index = 0, $maxCount = sizeof($paramData); $index < $maxCount; $index += 2) {\n if (isset($paramData[$index+1])) {\n if ($paramData[$index+1] == \"_\") {\n $value = \"\";\n } else {\n $value = $paramData[$index+1];\n }\n $this->setProperty(\n $paramData[$index], $value\n );\n }\n }\n } elseif (isset($this->_get['parameters'])\n && gettype($this->_get['parameters']) == 'array'\n && count($this->_get['parameters']) > 0) {\n\n $paramData = $this->_get['parameters'];\n\n foreach ($paramData as $index => $value) {\n $this->setProperty($index, $value);\n }\n }\n\n return;\n }\n\n if (isset($this->_server['argv'])) {\n foreach ($this->_server['argv'] as $arg) {\n if (strpos($arg, '=')) {\n list($key, $val) = explode(\"=\", $arg);\n $this->setProperty($key, $val);\n }\n }\n }\n }", "public function set()\n {\n $args = func_get_args();\n $num = func_num_args();\n if ($num == 2) {\n self::$data[$args[0]] = $args[1];\n } else {\n if (is_array($args[0])) {\n foreach ($args[0] as $k => $v) {\n self::$data[$k] = $v;\n }\n }\n }\n }", "public function setParams ($params) {\n\t\t$this->params = $params;\n\t\treturn $this;\t\n\t}", "protected function initializeActionMethodArguments() {}", "public function setParameter($params)\r\n\t{\r\n\t\tif (is_array($params))\r\n\t\t\t$this->params = array_merge($this->defaultParams(), $params);\r\n\t\telse\r\n\t\t\t$this->params = $this->defaultParams();\r\n\t}", "public function parameters()\n {\n return array_merge($this->get, $this->post);\n }", "function getParams()\n {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id = $id;\n }\n if (isset($mode)) {\n $this->mode = $mode;\n }\n if (isset($view_mode)) {\n $this->view_mode = $view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode = $edit_mode;\n }\n if (isset($tab)) {\n $this->tab = $tab;\n }\n }", "public function testSetRouteParams()\n {\n // Prepare route\n $requestUri = '/hello/mr/anderson';\n $route = new \\Slim\\Route('/hello/:first/:last', function () {});\n\n // Parse route params\n $this->assertTrue($route->matches($requestUri));\n\n // Get params\n $params = $route->getParams();\n $this->assertEquals(2, count($params));\n $this->assertEquals('mr', $params['first']);\n $this->assertEquals('anderson', $params['last']);\n\n // Replace params\n $route->setParams(array(\n 'first' => 'john',\n 'last' => 'smith'\n ));\n\n // Get new params\n $params = $route->getParams();\n $this->assertEquals(2, count($params));\n $this->assertEquals('john', $params['first']);\n $this->assertEquals('smith', $params['last']);\n }", "public function setParams(array $params){\n\t\t$this->params = $params;\n\t}", "public function set($parameters)\n {}", "function __call($p_name,$p_arguments){\n $l_name=strtolower($p_name);\n if(count($p_arguments) != 1){\n throw new DynamicUrlItemException(__(\"Invalid number of parameters :num found but 1 expected\",[\"num\"=>count($p_arguments)])); \n }\n $l_value=$p_arguments[0];\n if(substr($l_name,0,3)==\"set\"){\n $l_name= substr($p_name,3);\n $this->parameters[$l_name]=$l_value;\n }\n }", "public function set_vars($args)\n\t{\n\t\tforeach ($args as $key => $value) {\n\t\t\t$key = lc(str_replace(\"post_\", \"\", trim($key)));\n\t\t\t$this->$key = $value;\n\t\t}\n\t\t\n\t\t$this->category = element(\"name\", $this->_cat->get_cat($this->category));\n\t}", "private function loadPostParams()\n {\n if(isset($_POST)) {\n $this->postParams = $_POST;\n }\n }", "function getParams()\n {\n global $id;\n global $mode;\n global $data_source;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id = $id;\n }\n if (isset($mode)) {\n $this->mode = $mode;\n }\n if (isset($data_source)) {\n $this->data_source = $data_source;\n }\n if (isset($view_mode)) {\n $this->view_mode = $view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode = $edit_mode;\n }\n if (isset($tab)) {\n $this->tab = $tab;\n }\n }", "public function testSetAndGetParams()\n {\n $page = new Zym_Navigation_Page_Mvc(array(\n 'label' => 'foo',\n 'action' => 'index',\n 'controller' => 'index'\n ));\n \n $params = array('foo' => 'bar', 'baz' => 'bat');\n \n $page->setParams($params);\n $this->assertEquals($params, $page->getParams());\n \n $page->setParams();\n $this->assertEquals(array(), $page->getParams());\n \n $page->setParams($params);\n $this->assertEquals($params, $page->getParams());\n \n $page->setParams(array());\n $this->assertEquals(array(), $page->getParams());\n }", "public function prepareArguments() {}", "public function setArgs($values) {\n $this->impl->setArgs($this->context, $values);\n return $this;\n }", "public function getActionParams()\n\t{\n\t\t$args = parent::getActionParams();\n\n\t\t// Add in the $_POST array, giving it precedence\n\t\treturn array_merge($args, $_POST);\n\t}", "public function setQueryParams($values)\n {\n $this->_queryParams = $values;\n }", "public function setParam($name, $value);", "protected function setArgument()\n {\n $this->set('primary_key', false);\n $this->set('length', $this->argument);\n $this->set('autoincrement', false);\n $this->set('unsigned', false);\n $this->set('not_null', false);\n }", "public function getActionParams() { return array_merge($_GET, $_POST); }", "public function set_body_params($params)\n {\n }", "final protected function _setParameters(array $params)\n\t{\n\t\tforeach ($params as $key => $value) {\n\t\t\t$this->setParameter($key, $value);\n\t\t}\n\t}", "public function setParams(array $params, $reset = true) {}", "public function setArguments(array $arguments = [])\n {\n $this->arguments = [];\n $this->requiredCount = 0;\n $this->lastOptionalArgument = null;\n $this->lastArrayArgument = null;\n $this->addArguments($arguments);\n }" ]
[ "0.69055426", "0.6634127", "0.66329473", "0.6552398", "0.6552398", "0.6505202", "0.64942443", "0.64368623", "0.6401226", "0.6392839", "0.62919885", "0.6271311", "0.6267767", "0.62528867", "0.6204221", "0.6194543", "0.6177922", "0.6153767", "0.61413807", "0.6088475", "0.60644495", "0.60644495", "0.60507256", "0.60466737", "0.60325223", "0.6026659", "0.6000842", "0.59982693", "0.5993474", "0.59898967", "0.5977612", "0.59774214", "0.5970779", "0.59680325", "0.594557", "0.5942398", "0.5939602", "0.5936116", "0.5916996", "0.5911749", "0.5909935", "0.59081334", "0.58519554", "0.58410716", "0.5831777", "0.5826044", "0.5825762", "0.58054286", "0.57925403", "0.578549", "0.5782501", "0.57385474", "0.57385474", "0.57385474", "0.57332915", "0.57306105", "0.5715284", "0.5709626", "0.5704645", "0.5699015", "0.568834", "0.56837964", "0.5677627", "0.5673346", "0.5664674", "0.5663394", "0.56392866", "0.56249225", "0.5615037", "0.5609762", "0.5588205", "0.55750626", "0.5569288", "0.5559837", "0.5556252", "0.5547217", "0.55396223", "0.5536772", "0.55324346", "0.55211365", "0.5516189", "0.55142367", "0.5505838", "0.55000055", "0.54966676", "0.5490197", "0.5471571", "0.5460895", "0.5445275", "0.5444123", "0.54416484", "0.5439446", "0.5439194", "0.543835", "0.5433139", "0.5430845", "0.54302084", "0.54291975", "0.5425817", "0.54215026", "0.5420657" ]
0.0
-1
Getter method for arguments.
public function getArgs() { return $this->noramlizeArgs($this->_args); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function args()\n {\n return $this->arguments->get();\n }", "public function getArguments() {}", "public function getArguments() {}", "public function getArguments() {}", "public function getArguments() {}", "public function getArgs();", "public function getArgs();", "public function getArguments();", "public function getArguments();", "public function getArguments();", "public function getArguments();", "function getArguments() ;", "protected function getArguments()\n {\n\n }", "public function getArguments() {\n return $this->args;\n }", "protected function getArguments() { return isset($this->_arguments) ? $this->_arguments : array();\n }", "public function getArgs()\n {\n return $this->args;\n }", "public function getArguments()\n {\n return $this->arguments;\n }", "public function getArguments()\n {\n return $this->arguments;\n }", "public function getArguments()\n {\n return $this->arguments;\n }", "public function getArgs()\n {\n return $this->args;\n }", "public function getArgs()\n {\n return $this->args;\n }", "public function getArgs()\n {\n return $this->args;\n }", "public function getArgs()\n {\n return $this->args;\n }", "public function getArgs()\n {\n return $this->args;\n }", "public function arguments()\n {\n return $this->arguments;\n }", "abstract protected function get_args();", "public function getArgs() {\n return $this->args;\n }", "public function getArgs() {\n\t\treturn $this->args;\n\t}", "public function arguments(): Arguments\n {\n return $this->arguments;\n }", "public function arguments(): Arguments\n {\n return $this->arguments;\n }", "protected function getArguments()\r\n\t{\r\n\t\treturn isset($this->arguments) ? $this->arguments : array();\r\n\t}", "public function args(){\n return $this->args;\n }", "public function arguments(): array;", "public function getArguments(): array;", "public function getArguments(): array;", "public function getArguments(): array;", "protected function getArguments()\n\t{\n\t\treturn [\n\t\t];\n\t}", "protected function getArguments()\n\t{\n\t\treturn array(\n\t\t\t\n\t\t);\n\t}", "protected function getArguments()\n\t{\n\t\treturn array(\n\t\t\t\n\t\t);\n\t}", "protected function getArguments()\n\t{\n\t\treturn array(\n\t\t\t\n\t\t);\n\t}", "protected function getArguments()\n\t{\n\t\treturn array(\n\t\t\t\n\t\t);\n\t}", "protected function getArguments()\n\t{\n\t\treturn [\n\n\t\t];\n\t}", "protected function getArguments()\n\t{\n\t\treturn [\n\n\t\t];\n\t}", "abstract public function getArguments(): array;", "protected function getArguments()\r\n\t{\r\n\t\treturn array();\r\n\t}", "protected function getArguments()\r\n\t{\r\n\t\treturn array();\r\n\t}", "protected function getArguments()\n\t{\n\t\treturn array();\n\t}", "protected function getArguments()\n\t{\n\t\treturn array();\n\t}", "protected function getArguments()\n\t{\n\t\treturn array();\n\t}", "protected function getArguments()\n\t{\n\t\treturn array();\n\t}", "protected function getArguments()\n\t{\n\t\treturn array();\n\t}", "protected function getArguments()\n\t{\n\t\treturn array();\n\t}", "protected function getArguments()\n\t{\n\t\treturn array();\n\t}", "protected function getArguments()\n\t{\n\t\treturn array();\n\t}", "protected function getArguments()\n\t{\n\t\treturn array();\n\t}", "protected function getArguments()\n\t{\n\t\treturn array();\n\t}", "protected function getArguments()\n\t{\n\t\treturn array();\n\t}", "protected function getArguments()\n\t{\n\t\treturn array();\n\t}", "public function getArguments(): array\n {\n return $this->_arguments;\n }", "public function getArguments(): array\n {\n return $this->arguments;\n }", "public function getArguments(): array\n {\n return $this->arguments;\n }", "public function getArguments(): array\n {\n return $this->arguments;\n }", "protected function getArguments() {\n\t\treturn array(\n\t\t);\n\t}", "protected function getArguments()\n\t{\n\t\treturn [];\n\t}", "protected function getArguments()\n\t{\n\t\treturn [];\n\t}", "protected function getArguments()\n\t{\n\t\treturn [];\n\t}", "protected function getArguments()\n\t{\n\t\treturn [];\n\t}", "protected function getArguments()\n\t{\n\t\treturn [];\n\t}", "protected function getArguments()\n\t{\n\t\treturn [];\n\t}", "protected function getArguments()\n\t{\n\t\treturn [];\n\t}", "protected function getArguments()\n\t{\n\t\treturn [];\n\t}", "abstract protected function arguments(): array;", "protected function getArguments() {\n\t\treturn array();\n\t}", "public function getArguments(): array {\n return $this->arguments;\n }", "public function getArgs()\n {\n return $this->parsedArgs;\n }", "public static function getArguments()\n {\n return func_get_args();\n }", "protected function getArguments()\n\t{\n\t\treturn array(\n\t\t);\n\t}", "protected function getArguments()\n\t{\n\t\treturn array(\n\t\t);\n\t}", "protected function getArguments()\n\t{\n\t\treturn array(\n\t\t);\n\t}", "protected function getArguments()\n\t{\n\t\treturn array(\n\t\t);\n\t}", "protected function getArguments()\n\t{\n\t\treturn array(\n\t\t);\n\t}", "protected function getArguments()\n\t{\n\t\treturn array(\n\t\t);\n\t}", "protected function getArguments()\n\t{\n\t\treturn array(\n\t\t);\n\t}", "protected function getArguments()\n {\n return [\n ];\n }", "protected function getArguments()\n {\n return [\n\n ];\n }", "protected function getArguments()\n {\n return [\n\n ];\n }", "public function arguments(): array\n {\n return $this->arguments;\n }", "public function getArguments() : array\n {\n return $this->args;\n }", "public function getAdditionalArguments() {}", "public function getAdditionalArguments() {}", "protected function getArguments()\n {\n return array();\n }", "protected function getArguments()\n {\n return array();\n }", "protected function getArguments()\n {\n return array();\n }", "protected function getArguments()\n {\n return array();\n }", "protected function getArguments()\n {\n return array();\n }", "protected function getArguments()\n {\n return array();\n }", "public function getArgs()\n {\n if ($this['args']) {\n return $this['args'];\n }\n\n return [];\n }", "public function getArgs(): array\n {\n return $this->args;\n }", "public function getArguments()\n {\n return unserialize($this->arguments);\n }", "protected\n function getArguments() {\n return array();\n }" ]
[ "0.81067157", "0.8073984", "0.8073984", "0.8073984", "0.8073984", "0.8008223", "0.8008223", "0.79763675", "0.79763675", "0.79763675", "0.79763675", "0.77553654", "0.7714339", "0.7703491", "0.7624449", "0.76237386", "0.7600902", "0.7600902", "0.7600902", "0.7558071", "0.7558071", "0.7558071", "0.7558071", "0.7558071", "0.7553792", "0.7553458", "0.75327927", "0.7532422", "0.75108385", "0.75108385", "0.75049084", "0.74847347", "0.74762803", "0.73752224", "0.73752224", "0.73752224", "0.73603857", "0.73313516", "0.73313516", "0.73313516", "0.73313516", "0.73279864", "0.73279864", "0.7322923", "0.7320771", "0.7320771", "0.7309256", "0.7309256", "0.7309256", "0.7309256", "0.7309256", "0.7309256", "0.7309256", "0.7309256", "0.7309256", "0.7309256", "0.7309256", "0.7309256", "0.7264542", "0.72564363", "0.72564363", "0.72564363", "0.7252006", "0.72515315", "0.72515315", "0.72515315", "0.72515315", "0.72515315", "0.72515315", "0.72515315", "0.72515315", "0.7251529", "0.7250758", "0.7243529", "0.72390336", "0.7219288", "0.7214112", "0.7214112", "0.7214112", "0.7214112", "0.7214112", "0.7214112", "0.7214112", "0.7196166", "0.71947974", "0.71947974", "0.7192498", "0.71316004", "0.7128546", "0.71284366", "0.71234125", "0.71234125", "0.71234125", "0.71234125", "0.71234125", "0.71234125", "0.71189666", "0.7110025", "0.7109743", "0.70955634" ]
0.7135244
87
Find DynamicValue objects in arguments list and return the value for those objects.
private function noramlizeArgs(array $values) { foreach ($values as $k => $v) { if ($v instanceof DynamicValue) { $values[$k] = $v->getValue(); } elseif (is_array($v)) { $values[$k] = $this->noramlizeArgs($v); } } return $values; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getValue()\n {\n return self::getInstance()->getValue(func_get_args());\n }", "protected function injectArguments($arguments, &$preparedArguments) {\n\t\tforeach ($arguments as $argument) {\n\t\t\tif ($argument !== NULL) {\n\t\t\t\t$argumentValue = $argument->getValue();\n\t\t\t\tswitch ($argument->getType()) {\n\t\t\t\t\tcase \\F3\\FLOW3\\Object\\Configuration\\ConfigurationArgument::ARGUMENT_TYPES_OBJECT:\n\t\t\t\t\t\tif ($argumentValue instanceof \\F3\\FLOW3\\Object\\Configuration\\Configuration) {\n\t\t\t\t\t\t\t$preparedArguments[] = $this->build($argumentValue);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (strpos($argumentValue, '.') !== FALSE) {\n\t\t\t\t\t\t\t\t$settingPath = array_slice(explode('.', $argumentValue), 1);\n\t\t\t\t\t\t\t\t$argumentValue = \\F3\\FLOW3\\Utility\\Arrays::getValueByPath($this->settings['FLOW3'], $settingPath);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$preparedArguments[] = $this->get($argumentValue);\n\t\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase \\F3\\FLOW3\\Object\\Configuration\\ConfigurationArgument::ARGUMENT_TYPES_STRAIGHTVALUE:\n\t\t\t\t\t\t$preparedArguments[] = $argumentValue;\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase \\F3\\FLOW3\\Object\\Configuration\\ConfigurationArgument::ARGUMENT_TYPES_SETTING:\n\t\t\t\t\t\tif (strpos($argumentValue, '.') !== FALSE) {\n\t\t\t\t\t\t\t$settingPath = array_slice(explode('.', $argumentValue), 1);\n\t\t\t\t\t\t\t$value = \\F3\\FLOW3\\Utility\\Arrays::getValueByPath($this->settings['FLOW3'], $settingPath);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif ($argumentValue !== 'FLOW3') {\n\t\t\t\t\t\t\t\tthrow new \\F3\\FLOW3\\Object\\Exception\\CannotBuildObjectException('Invalid reference to setting \"' . $argumentValue . '\" in object configuration for Dynamic Object Container.', 1265200443);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$value = $this->settings['FLOW3'];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$preparedArguments[] = $value;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$preparedArguments[] = NULL;\n\t\t\t}\n\t\t}\n\t}", "public function value($value){\n return call_user_func_array($this->fetchStaticClassName() . '::' . __FUNCTION__, func_get_args());\n }", "function _findValue(&$values)\r\n {\r\n return $this->getValue();\r\n }", "public function getArguments()\n {\n $args = $this->getArgs();\n $this->arguments = array();\n if (empty($this->arguments) && !empty($args) && count($args) > 0) {\n $this->arguments = array();\n $cls_name = $this->getClassName();\n $fct_name = $this->getFunctionName();\n\n if (\n empty($cls_name) &&\n !empty($fct_name) &&\n in_array($fct_name, self::$not_real_fcts)\n ) {\n return $this->arguments;\n }\n\n $methodReflect = $this->getFunction();\n if (!empty($methodReflect)) {\n $argumentsReflect = $methodReflect->getParameters();\n foreach ($this->getArgs() as $index => $value) {\n $ghost = false;\n if (isset($argumentsReflect[$index])) {\n $paramReflect = $argumentsReflect[$index];\n } else {\n $ghost = create_function('$param', 'return true;');\n $paramReflect = new \\ReflectionParameter($ghost, 'param');\n }\n if ($ghost!==false) {\n $this->arguments[$index] = new ReflectionParameterValue(\n $ghost, $paramReflect->getName(), $value\n );\n } elseif (!empty($cls_name)) {\n $this->arguments[$index] = new ReflectionParameterValue(\n array($cls_name, $fct_name), $paramReflect->getName(), $value\n );\n } else {\n $this->arguments[$index] = new ReflectionParameterValue(\n $fct_name, $paramReflect->getName(), $value\n );\n }\n }\n }\n }\n return $this->arguments;\n }", "private static function processArgs( $arguments )\n\t {\n\t\t$args = array();\n\t\tforeach ( $arguments as $arg ) {\n\t\t\tif ( is_array( $arg ) ) {\n\t\t\t\t$args = array_merge( $args, $arg );\n\t\t\t} else {\n\t\t\t\t$exp = explode( '=', $arg, 2 );\n\t\t\t\t$args[$exp[0]] = $exp[1];\n\t\t\t}\n\t\t}\n\t\treturn $args;\n\t }", "public function getArguments()\n {\n if (!isset($this->_arguments)) {\n $this->_arguments = new \\Yana\\Http\\Requests\\ValueWrapper();\n }\n return $this->_arguments;\n }", "public function values() {\n\t\t// Get arguments :\n\t\t$args = func_get_args();\n\t\t\n\t\t// Add values :\n\t\tif (is_array($args[0])) {\n\t\t\tif ( ! is_array(reset($args[0]))) {\n\t\t\t\t// Deal with normal case : ->values(array(val1, val2, ...), array(val1, val2, ...), ...)\n\t\t\t\tforeach($args as $values_array)\n\t\t\t\t\t$this->push(new \\Glue\\DB\\Fragment_Item_Values($values_array));\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// Array of arrays given, call this function recursively for each of them :\n\t\t\t\tforeach($args[0] as $arg)\n\t\t\t\t\t$this->values($arg);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\t// List of values given, call this function recursively with the same values as an array :\n\t\t\t$this->values($args);\n\t\n\t\treturn $this;\n\t}", "public function getArgsValues() : array {\n $retVal = [];\n\n foreach ($this->customAttrs as $attrObj) {\n $retVal[$attrObj->getName()] = $this->getArgValue($attrObj->getName());\n }\n\n return $retVal;\n }", "public function getArguments();", "public function getArguments();", "public function getArguments();", "public function getArguments();", "public static function parseArguments($arguments = array())\n\t{\n\t\t$args_ready = array();\n\t\t$prev_key = null;\n\t\tfor ($i = 0; $i < count($arguments); $i++) {\n\t\t\t$arg = $arguments[$i];\n\t\t\tif (empty($arg)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (preg_match('/^--?([a-z]([a-z0-9\\-]*))(\\=.*)?$/', $arg, $match)) {\n\t\t\t\t// we have = sign.\n\t\t\t\tif (! empty($match[3])) {\n\t\t\t\t\t$args_ready[$match[1]] = substr($match[3], 1);\n\t\t\t\t\t$prev_key = null;\n\t\t\t\t} else {\n\t\t\t\t\t// we set found key as \"true\" and remember key index. Maybe we will have value in next passed argument.\n\t\t\t\t\t$args_ready[$match[1]] = true;\n\t\t\t\t\t$prev_key = $match[1];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// if prev_key exists this means argument is a value for previous key.\n\t\t\t\tif ($prev_key) {\n\t\t\t\t\t$args_ready[$prev_key] = $arg;\n\t\t\t\t\t$prev_key = null;\n\t\t\t\t} else {\n\t\t\t\t\t$args_ready[] = $arg;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $args_ready;\n\t}", "static protected function convertArgumentValuesToArgumentObjects(array $argumentValues) {\n\t\t$argumentObjects = array();\n\t\tforeach ($argumentValues as $index => $value) {\n\t\t\t$argumentObjects[$index + 1] = new \\F3\\FLOW3\\Object\\Configuration\\ConfigurationArgument($index + 1, $value, \\F3\\FLOW3\\Object\\Configuration\\ConfigurationArgument::ARGUMENT_TYPES_STRAIGHTVALUE);\n\t\t}\n\t\treturn $argumentObjects;\n\t}", "public function getVariableValue($variable_id, array $args = array(), array $data = array());", "private function getArg($arguments){\n $list=[];\n foreach($arguments as $key=>$value){\n if($key==\"pull\" || $key==\"push\"){\n $list['project']=$value;\n $list['migration']=$key;\n }\n else{\n $list[$key]=$value;\n }\n }\n\n return $list;\n\n }", "public function invokeArgs( Array $arguments ) {\n /*\n return $this->forwardCallToReflectionSource( __FUNCTION__, array( $arguments ) );\n /*/\n if ( $this->reflectionSource instanceof ReflectionFunction ) {\n return $this->reflectionSource->invokeArgs( $arguments );\n } else {\n return parent::invokeArgs( $arguments );\n }\n //*/\n }", "function view_key_replace_arguments($values, &$handler) {\n foreach ($values as $value) {\n if (strpos($value, '__arg:') === 0) {\n // Get the argument and make sure its actually on the view still.\n $arg_id = drupal_substr($value, drupal_strlen('__arg:'));\n if (isset($handler->view->argument[$arg_id]) && $handler->view->argument[$arg_id]->argument_validated) {\n // Argument is there and ready to go!\n $argument = clone($handler->view->argument[$arg_id]);\n $arg_value = $argument->get_value();\n // Might need to split this up.\n if (!empty($argument->options['break_phrase'])) {\n views_break_phrase($argument->get_value(), $argument);\n foreach ($argument->value as $new_val) {\n $values[$new_val] = $new_val;\n }\n }\n else {\n $new_val = $argument->get_value();\n $values[$new_val] = $new_val;\n }\n }\n // Always remove the dummy argument value.\n unset($values[$value]);\n }\n }\n\n return $values;\n }", "public function getArgumentValue ($name) {\n if ($this->_arguments === NULL) {\n $this->getArguments();\n }\n\n if (array_key_exists($name, $this->_arguments) == FALSE) {\n throw new Argument_Exception(\"Argument '{$name}' does not exist\");\n }\n\n return $this->_arguments[$name];\n }", "public static function multiple() {\n $params = func_get_args();\n\n // Null if no arguments passed\n if (count($params) == 0) {\n return new qti_variable('multiple', 'identifier');\n } else {\n $result = new qti_variable('multiple', 'identifier', array('value' => array()));\n }\n \n // Allow a single array as well as a parameter list\n if (count($params) == 1 && is_array($params[0])) {\n $params = $params[0];\n }\n \n $allnull = true;\n foreach ($params as $param) {\n if (is_null($param->value)) {\n continue;\n } else {\n $allnull = false;\n $result->type = $param->type;\n if (is_array($param->value)) {\r\n $result->value = array_merge($result->value, $param->value);\n } else {\n $result->value[] = $param->value;\n }\n }\n }\n if ($allnull) {\n $result->value = null;\n }\n \n return $result;\n }", "public function get_value( $dynamic_arg ) {\n\t\t$param = isset( $dynamic_arg['data'] ) ? $this->get_param( $dynamic_arg['data'] ) : false;\n\t\t$fallback = isset( $dynamic_arg['fallback'] ) && '' !== $dynamic_arg['fallback'] ? $dynamic_arg['fallback'] : false;\n\t\t$callback = $param && isset( $param['callback'] ) ? $param['callback'] : false;\n\t\t$default = $param && isset( $param['default'] ) && function_exists( 'fusion_is_preview_frame' ) && fusion_is_preview_frame() && is_singular( 'fusion_tb_section' ) ? $param['default'] : false;\n\t\t$callback_function = $callback && isset( $callback['function'] ) ? $callback['function'] : false;\n\t\t$callback_exists = $callback_function && ( is_callable( 'Fusion_Dynamic_Data_Callbacks::' . $callback_function ) || is_callable( $callback_function ) ) ? true : false;\n\t\tif ( ! $param || ( ! $default && ! $fallback && ! $callback_exists ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif ( ! $callback_exists ) {\n\t\t\treturn false !== $fallback ? $fallback : $default;\n\t\t}\n\n\t\t$value = is_callable( 'Fusion_Dynamic_Data_Callbacks::' . $callback_function ) ? call_user_func_array( 'Fusion_Dynamic_Data_Callbacks::' . $callback_function, [ $dynamic_arg ] ) : call_user_func_array( $callback_function, [ $dynamic_arg ] );\n\t\tif ( ( ! $value || '' === $value ) && ( $default || $fallback ) ) {\n\t\t\treturn false !== $fallback ? $fallback : $default;\n\t\t}\n\n\t\t(string) $before_string = isset( $dynamic_arg['before'] ) ? $dynamic_arg['before'] : '';\n\t\t(string) $after_string = isset( $dynamic_arg['after'] ) ? $dynamic_arg['after'] : '';\n\n\t\t$this->maybe_store_value( $value, $dynamic_arg );\n\n\t\treturn $before_string . $value . $after_string;\n\t}", "public function resolve(...$params)\n\t{\n\t\treturn $this->value;\n\t}", "function getArguments() ;", "public function getArguments() {}", "public function getArguments() {}", "public function getArguments() {}", "public function getArguments() {}", "public static function decode_args( $value )\n\t{\n\t\tif ( count( $value->children() ) ) {\n\t\t\t$value = $value->xpath( '*' );\n\t\t\t$value = $value[0];\n\t\t}\n\t\tswitch ( $value->getName() ) {\n\t\t\tcase 'data':\n\t\t\tcase 'array':\n\t\t\t\t$result_array = array();\n\t\t\t\tforeach ( $value->xpath( '//data/value' ) as $array_value ) {\n\t\t\t\t\t$result_array[] = self::decode_args( $array_value );\n\t\t\t\t}\n\t\t\t\treturn $result_array;\n\t\t\t\tbreak;\n\t\t\tcase 'struct':\n\t\t\t\t$result_struct = new XMLRPCStruct();\n\t\t\t\tforeach ( $value->xpath( '//member' ) as $struct_value ) {\n\t\t\t\t\t$property_name = (string) $struct_value->name;\n\t\t\t\t\t$children = $struct_value->value->children();\n\t\t\t\t\tif ( count( $children ) > 0 ) {\n\t\t\t\t\t\t$result_struct->$property_name = self::decode_args( $children[0] );\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$result_struct->$property_name = (string) $struct_value->value;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn $result_struct;\n\t\t\t\tbreak;\n\t\t\tcase 'string':\n\t\t\t\treturn (string) $value;\n\t\t\tcase 'i4':\n\t\t\tcase 'integer':\n\t\t\t\treturn (int) $value;\n\t\t\tcase 'double':\n\t\t\t\treturn (double) $value;\n\t\t\tcase 'boolean':\n\t\t\t\treturn ( (int) $value == 1 ) ? true : false;\n\t\t\tcase 'dateTime.iso8601':\n\t\t\t\treturn strtotime( (string) $value );\n\t\t\tdefault:\n\t\t\t\treturn (string) $value;\n\t\t}\n\t}", "public function get_arguments( $post_id = 0 ) {\n\t\t$args = get_post_meta( $post_id, '_wp-parser_args', true );\n\t\t$params = wp_list_filter( get_post_meta( $post_id, '_wp-parser_tags', true ), array( 'name' => 'param' ) );\n\t\t$arguments = array();\n\n\t\tif ( empty( $args ) ) {\n\t\t\t$args = array();\n\t\t}\n\n\t\tforeach ( $args as $arg ) {\n\t\t\t$tag = array_shift( $params );\n\t\t\t$param = array(\n\t\t\t\t'name' => '$(unnamed)',\n\t\t\t\t'types' => array(),\n\t\t\t\t'value' => $arg,\n\t\t\t);\n\n\t\t\tif ( ! empty( $tag['variable'] ) ) {\n\t\t\t\t$param['name'] = $tag['variable'];\n\t\t\t} elseif ( 0 === strpos( $arg, '$' ) ) {\n\t\t\t\t$param['name'] = $arg;\n\t\t\t}\n\n\t\t\tif ( ! empty( $tag['types'] ) ) {\n\t\t\t\t$param['types'] = $tag['types'];\n\t\t\t}\n\n\t\t\tif ( ! empty( $tag['content'] ) ) {\n\t\t\t\t$param['desc'] = $tag['content'];\n\t\t\t}\n\n\t\t\t$arguments[] = $param;\n\t\t}\n\n\t\treturn apply_filters( 'wp_parser_get_hook_arguments', $arguments );\n\t}", "public function havingArguments();", "private function resolveValue($value, array $resolving = [])\n {\n if (is_array($value)) {\n $args = [];\n foreach ($value as $k => $v) {\n $args[$this->resolveValue($k, $resolving)] = $this->resolveValue($v, $resolving);\n }\n\n return $args;\n }\n\n if (!is_string($value)) {\n return $value;\n }\n\n return $this->resolveString($value, $resolving);\n }", "abstract public function getArguments(): array;", "private function processArguments(array $arguments)\n {\n foreach ($arguments as $k => $argument) {\n if (is_array($argument)) {\n $arguments[$k] = $this->processArguments($argument);\n } elseif ($argument instanceof Reference) {\n $defId = $this->getDefinitionId($id = (string) $argument);\n\n if ($defId !== $id) {\n $arguments[$k] = new Reference($defId, $argument->getInvalidBehavior());\n }\n }\n }\n\n return $arguments;\n }", "function additional_options_for_arguments(&$view) {\n $options = array();\n\n $arguments = $view->display_handler->get_handlers('argument');\n\n if (is_array($arguments)) {\n foreach ($arguments as $arg_id => $argument) {\n foreach ($this->view_key_from_arguments() as $class) {\n if (is_a($argument, $class)) {\n // This argument can provide us with keys.\n $options['__arg:' . $arg_id] = t('Value from argument: %title', array('%title' => $argument->ui_name()));\n }\n }\n }\n }\n\n return $options;\n }", "public function args()\n {\n return $this->arguments->get();\n }", "function get_value_list()\n\t{\n\t\treturn $this->value;\n\t}", "public function getArgs();", "public function getArgs();", "public function __invoke(...$arguments)\n {\n $arguments = $this->prepareArgs($arguments);\n\n return $this->reflection->invokeArgs($arguments ?: []);\n }", "public function getArguments(): array;", "public function getArguments(): array;", "public function getArguments(): array;", "public function getExceedingArguments() {}", "public function values($value);", "public static function getArgumentValue(array $arguments, string $shortArg, string $longArg):? string\n {\n return array_key_exists($shortArg, $arguments) ? $arguments[$shortArg] : \n (array_key_exists($longArg, $arguments) ? $arguments[$longArg] : null);\n }", "public function filter_dynamic_content( $content, $shortcode, $args ) {\n\t\tif ( ! isset( $args['dynamic_params'] ) ) {\n\t\t\treturn $content;\n\t\t}\n\n\t\t$dynamic_args = $this->convert( $args['dynamic_params'] );\n\t\t$dynamic_arg = $dynamic_args && isset( $dynamic_args['element_content'] ) ? $dynamic_args['element_content'] : false;\n\n\t\tif ( ! $dynamic_arg ) {\n\t\t\treturn $content;\n\t\t}\n\n\t\t$value = $this->get_value( $dynamic_arg );\n\n\t\tif ( false === $value ) {\n\t\t\treturn $content;\n\t\t}\n\n\t\treturn $value;\n\t}", "public function getValueSet(&$arguments)\n {\n /* Get all the values */\n $this->c--;\n $word = $this->getNextWord(true);\n\n switch (true) {\n /* statement is in the form \"(col, col, ...) VALUES ( value, value, ... )\" */\n case (substr($word, 0, 1) == '('):\n {\n /* Create a parser for the column names */\n $word = substr($word, 1, strlen($word) - 2);\n $column_parser = new wordParser($word);\n\n /* get column names */\n while ($column = $column_parser->getNextWord(false, $this->whitespace . \",\")) {\n $columns[] = $column;\n }\n\n /* Get values */\n if (substr($word = strtolower($this->getNextWord(true)), 0, 6) == 'values') {\n while ($word = $this->getNextWord(true, $this->whitespace . \",\")) {\n /* Create a new parser for the values */\n $values = array();\n $word = substr($word, 1, strlen($word) - 2);\n $word = str_replace('\\\\', '\\\\\\\\', $word);\n $values_parser = new wordParser($word);\n\n while ($value = $values_parser->getNextWord(true, $this->whitespace . \",\")) {\n $values[] = $value;\n }\n\n foreach ($columns as $key => $value) {\n $arguments['values'][$value] = isset($values[$key]) ? $values[$key] : 0;\n }\n\n /* Return whatever results we got back */\n return $arguments;\n }\n } else {\n $this->throwSyntaxError($arguments);\n }\n\n break;\n }\n\n /* Statement is in the form \"SET [col = value...] */\n case (strtolower(substr($word, 0, 3)) == 'set'):\n {\n if (strtolower($word) == 'set') {\n $word = $this->getNextWord(true, $this->whitespace);\n }\n\n /* Seperate all of the column/value pairs */\n $word = substr($word, strpos($word, '(') + 1);\n $word = substr($word, 0, strrpos($word, ')'));\n $word = str_replace('\\\\', '\\\\\\\\', $word);\n $set_parser = new wordParser($word);\n\n while ($column = $set_parser->getNextWord(true, $this->whitespace . \",=\")) {\n $value = $set_parser->getNextWord(true, $this->whitespace . \",=\");\n $arguments['values'][$column] = $value;\n }\n\n break;\n }\n\n /* Syntax error */\n default:\n {\n $this->throwSyntaxError($arguments);\n\n break;\n }\n }\n }", "function get_args( array $consts, array $vars ){\n\t\t$args = array();\n\t\t// limit depth of search to avoid collecting nested func calls\n\t\t$argnodes = $this->get_nodes_by_symbol( NT_ARG, 3 );\n\t\tforeach( $argnodes as $i => $arg ){\n\t\t\t$args[] = $arg->compile_string( $consts, $vars );\n\t\t}\n\t\treturn $args;\n\t}", "private static function arguments($arguments=false) {\n\t\t//convert arguments to array\n\t\tif (empty($arguments)) return array();\n\n\t\t//arguments can be string for shorthand, class or prepend with # for id\n\t\tif (is_string($arguments)) {\n\t\t\tif ($id = str::starts($arguments, '#')) {\n\t\t\t\t$arguments = array('id'=>$id);\n\t\t\t} else {\n\t\t\t\t$arguments = array('class'=>$arguments);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//clean up classes\n\t\tif (!empty($arguments['class']) && stristr($arguments['class'], ' ')) {\n\t\t\t$arguments['class'] = implode(' ', array_values(array_filter(array_unique(explode(' ', $arguments['class'])))));\n\t\t}\n\t\t\n\t\treturn $arguments;\n\t}", "protected function getArguments() { return isset($this->_arguments) ? $this->_arguments : array();\n }", "function getArguments(array $argumentNames, array $defaultArgumentValues = [], $prefixArgumentHeaderNames = true, array $excludedSources = [])\n{\n $arguments = [];\n\n foreach ($argumentNames as $key => $argumentName)\n {\n $arguments[$argumentName] = null;\n\n // Use default argument value if specified\n if (array_key_exists($key, $defaultArgumentValues) && $defaultArgumentValues[$key] !== null)\n {\n $arguments[$argumentName] = $defaultArgumentValues[$key];\n }\n }\n\n if (in_array('headers', $excludedSources) === false)\n {\n // Look for arguments in headers\n // Laravel auto-checks for blank or empty values and considers them equal to null\n foreach ($argumentNames as $argumentName)\n {\n $argumentHeaderName = $argumentName;\n if ($prefixArgumentHeaderNames)\n {\n $argumentHeaderName = 'x-' . $argumentHeaderName;\n }\n\n $header = Request::header($argumentHeaderName);\n if ($header !== null)\n {\n $arguments[$argumentName] = $header;\n }\n }\n }\n\n if (in_array('input', $excludedSources) === false) {\n // Look for arguments in form input (or JSON equivalent) or query string\n // Laravel auto-checks for blank or empty values and considers them equal to null\n $inputs = Input::only($argumentNames);\n foreach ($inputs as $argumentName => $input) {\n if ($input !== null) {\n $arguments[$argumentName] = $input;\n }\n }\n }\n\n return $arguments;\n}", "protected function compute_array_item($recordid, $arguments) {\n // We expect $arguments to be an array containing exactly 1 or 2 items.\n if (is_array($arguments)) {\n $count = count($arguments);\n } else {\n $count = 0;\n }\n if ($count == 0) {\n return null; // shouldn't happen !!\n }\n // Note that the values will be computed later.\n if ($count == 1) {\n return array_shift($arguments);\n } else {\n $key = $this->compute($recordid, array_shift($arguments));\n $value = array_shift($arguments);\n return array($key => $value);\n }\n }", "function first_value(): mixed\n {\n $args = func_get_args();\n\n return \\Midnite81\\Core\\Functions\\first_value(...$args);\n }", "private function getDynamicParameter($name)\n {\n switch ($name) {\n case 'kernel.root_dir': $value = ($this->targetDirs[3].'/src'); break;\n case 'kernel.project_dir': $value = $this->targetDirs[3]; break;\n case 'kernel.cache_dir': $value = $this->targetDirs[0]; break;\n case 'kernel.logs_dir': $value = ($this->targetDirs[2].'/log'); break;\n case 'kernel.bundles_metadata': $value = array(\n 'FrameworkBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/symfony/framework-bundle'),\n 'namespace' => 'Symfony\\\\Bundle\\\\FrameworkBundle',\n ),\n 'DoctrineCacheBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/doctrine/doctrine-cache-bundle'),\n 'namespace' => 'Doctrine\\\\Bundle\\\\DoctrineCacheBundle',\n ),\n 'DoctrineBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/doctrine/doctrine-bundle'),\n 'namespace' => 'Doctrine\\\\Bundle\\\\DoctrineBundle',\n ),\n 'DoctrineMigrationsBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/doctrine/doctrine-migrations-bundle'),\n 'namespace' => 'Doctrine\\\\Bundle\\\\MigrationsBundle',\n ),\n 'MakerBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/symfony/maker-bundle/src'),\n 'namespace' => 'Symfony\\\\Bundle\\\\MakerBundle',\n ),\n 'SecurityBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/symfony/security-bundle'),\n 'namespace' => 'Symfony\\\\Bundle\\\\SecurityBundle',\n ),\n ); break;\n case 'kernel.secret': $value = $this->getEnv('APP_SECRET'); break;\n case 'session.save_path': $value = ($this->targetDirs[0].'/sessions'); break;\n case 'validator.mapping.cache.file': $value = ($this->targetDirs[0].'/validation.php'); break;\n case 'translator.default_path': $value = ($this->targetDirs[3].'/translations'); break;\n case 'debug.container.dump': $value = ($this->targetDirs[0].'/srcDevDebugProjectContainer.xml'); break;\n case 'doctrine.orm.proxy_dir': $value = ($this->targetDirs[0].'/doctrine/orm/Proxies'); break;\n case 'doctrine_migrations.dir_name': $value = ($this->targetDirs[3].'/src/Migrations'); break;\n default: throw new InvalidArgumentException(sprintf('The dynamic parameter \"%s\" must be defined.', $name));\n }\n $this->loadedDynamicParameters[$name] = true;\n\n return $this->dynamicParameters[$name] = $value;\n }", "private function getDynamicParameter($name)\n {\n switch ($name) {\n case 'kernel.root_dir': $value = ($this->targetDirs[3].'/app'); break;\n case 'kernel.logs_dir': $value = ($this->targetDirs[2].'/logs'); break;\n case 'kernel.bundles_metadata': $value = array(\n 'FrameworkBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle'),\n 'namespace' => 'Symfony\\\\Bundle\\\\FrameworkBundle',\n ),\n 'SecurityBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle'),\n 'namespace' => 'Symfony\\\\Bundle\\\\SecurityBundle',\n ),\n 'TwigBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle'),\n 'namespace' => 'Symfony\\\\Bundle\\\\TwigBundle',\n ),\n 'MonologBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/symfony/monolog-bundle'),\n 'namespace' => 'Symfony\\\\Bundle\\\\MonologBundle',\n ),\n 'SwiftmailerBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/symfony/swiftmailer-bundle'),\n 'namespace' => 'Symfony\\\\Bundle\\\\SwiftmailerBundle',\n ),\n 'DoctrineBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/doctrine/doctrine-bundle'),\n 'namespace' => 'Doctrine\\\\Bundle\\\\DoctrineBundle',\n ),\n 'SensioFrameworkExtraBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/sensio/framework-extra-bundle'),\n 'namespace' => 'Sensio\\\\Bundle\\\\FrameworkExtraBundle',\n ),\n 'AppBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/src/AppBundle'),\n 'namespace' => 'AppBundle',\n ),\n 'A2lixTranslationFormBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/a2lix/translation-form-bundle/A2lix/TranslationFormBundle'),\n 'namespace' => 'A2lix\\\\TranslationFormBundle',\n ),\n 'BazingaJsTranslationBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/willdurand/js-translation-bundle'),\n 'namespace' => 'Bazinga\\\\Bundle\\\\JsTranslationBundle',\n ),\n 'AsseticBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/symfony/assetic-bundle'),\n 'namespace' => 'Symfony\\\\Bundle\\\\AsseticBundle',\n ),\n 'TroopersAsseticInjectorBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/troopers/assetic-injector-bundle/Troopers/AsseticInjectorBundle'),\n 'namespace' => 'Troopers\\\\AsseticInjectorBundle',\n ),\n 'TroopersAlertifyBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/troopers/alertify-bundle/Troopers/AlertifyBundle'),\n 'namespace' => 'Troopers\\\\AlertifyBundle',\n ),\n 'FOSUserBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/friendsofsymfony/user-bundle'),\n 'namespace' => 'FOS\\\\UserBundle',\n ),\n 'FOSJsRoutingBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/friendsofsymfony/jsrouting-bundle'),\n 'namespace' => 'FOS\\\\JsRoutingBundle',\n ),\n 'JMSSerializerBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/jms/serializer-bundle/JMS/SerializerBundle'),\n 'namespace' => 'JMS\\\\SerializerBundle',\n ),\n 'LiipImagineBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/liip/imagine-bundle'),\n 'namespace' => 'Liip\\\\ImagineBundle',\n ),\n 'KnpMenuBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/knplabs/knp-menu-bundle'),\n 'namespace' => 'Knp\\\\Bundle\\\\MenuBundle',\n ),\n 'DoctrineBehaviorsBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/knplabs/doctrine-behaviors/src/Bundle'),\n 'namespace' => 'Knp\\\\DoctrineBehaviors\\\\Bundle',\n ),\n 'SncRedisBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/snc/redis-bundle'),\n 'namespace' => 'Snc\\\\RedisBundle',\n ),\n 'StofDoctrineExtensionsBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/stof/doctrine-extensions-bundle'),\n 'namespace' => 'Stof\\\\DoctrineExtensionsBundle',\n ),\n 'VictoireAnalyticsBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/victoire/victoire/Bundle/AnalyticsBundle'),\n 'namespace' => 'Victoire\\\\Bundle\\\\AnalyticsBundle',\n ),\n 'VictoireBlogBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/victoire/victoire/Bundle/BlogBundle'),\n 'namespace' => 'Victoire\\\\Bundle\\\\BlogBundle',\n ),\n 'VictoireBusinessEntityBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/victoire/victoire/Bundle/BusinessEntityBundle'),\n 'namespace' => 'Victoire\\\\Bundle\\\\BusinessEntityBundle',\n ),\n 'VictoireBusinessPageBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/victoire/victoire/Bundle/BusinessPageBundle'),\n 'namespace' => 'Victoire\\\\Bundle\\\\BusinessPageBundle',\n ),\n 'VictoireCoreBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/victoire/victoire/Bundle/CoreBundle'),\n 'namespace' => 'Victoire\\\\Bundle\\\\CoreBundle',\n ),\n 'VictoireCriteriaBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/victoire/victoire/Bundle/CriteriaBundle'),\n 'namespace' => 'Victoire\\\\Bundle\\\\CriteriaBundle',\n ),\n 'VictoireFilterBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/victoire/victoire/Bundle/FilterBundle'),\n 'namespace' => 'Victoire\\\\Bundle\\\\FilterBundle',\n ),\n 'VictoireFormBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/victoire/victoire/Bundle/FormBundle'),\n 'namespace' => 'Victoire\\\\Bundle\\\\FormBundle',\n ),\n 'VictoireI18nBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/victoire/victoire/Bundle/I18nBundle'),\n 'namespace' => 'Victoire\\\\Bundle\\\\I18nBundle',\n ),\n 'VictoireMediaBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/victoire/victoire/Bundle/MediaBundle'),\n 'namespace' => 'Victoire\\\\Bundle\\\\MediaBundle',\n ),\n 'VictoirePageBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/victoire/victoire/Bundle/PageBundle'),\n 'namespace' => 'Victoire\\\\Bundle\\\\PageBundle',\n ),\n 'VictoireQueryBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/victoire/victoire/Bundle/QueryBundle'),\n 'namespace' => 'Victoire\\\\Bundle\\\\QueryBundle',\n ),\n 'VictoireSeoBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/victoire/victoire/Bundle/SeoBundle'),\n 'namespace' => 'Victoire\\\\Bundle\\\\SeoBundle',\n ),\n 'VictoireSitemapBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/victoire/victoire/Bundle/SitemapBundle'),\n 'namespace' => 'Victoire\\\\Bundle\\\\SitemapBundle',\n ),\n 'VictoireTemplateBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/victoire/victoire/Bundle/TemplateBundle'),\n 'namespace' => 'Victoire\\\\Bundle\\\\TemplateBundle',\n ),\n 'VictoireTwigBundle' => array(\n 'parent' => 'TwigBundle',\n 'path' => ($this->targetDirs[3].'/vendor/victoire/victoire/Bundle/TwigBundle'),\n 'namespace' => 'Victoire\\\\Bundle\\\\TwigBundle',\n ),\n 'VictoireUIBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/victoire/victoire/Bundle/UIBundle'),\n 'namespace' => 'Victoire\\\\Bundle\\\\UIBundle',\n ),\n 'VictoireUserBundle' => array(\n 'parent' => 'FOSUserBundle',\n 'path' => ($this->targetDirs[3].'/vendor/victoire/victoire/Bundle/UserBundle'),\n 'namespace' => 'Victoire\\\\Bundle\\\\UserBundle',\n ),\n 'ViewReferenceBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/victoire/victoire/Bundle/ViewReferenceBundle'),\n 'namespace' => 'Victoire\\\\Bundle\\\\ViewReferenceBundle',\n ),\n 'VictoireWidgetBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/victoire/victoire/Bundle/WidgetBundle'),\n 'namespace' => 'Victoire\\\\Bundle\\\\WidgetBundle',\n ),\n 'VictoireWidgetMapBundle' => array(\n 'parent' => NULL,\n 'path' => ($this->targetDirs[3].'/vendor/victoire/victoire/Bundle/WidgetMapBundle'),\n 'namespace' => 'Victoire\\\\Bundle\\\\WidgetMapBundle',\n ),\n ); break;\n case 'session.save_path': $value = ($this->targetDirs[3].'/app/../var/sessions/prod'); break;\n case 'router.resource': $value = ($this->targetDirs[3].'/app/config/routing.yml'); break;\n case 'assetic.read_from': $value = ($this->targetDirs[3].'/app/../web'); break;\n case 'assetic.write_to': $value = ($this->targetDirs[3].'/app/../web'); break;\n case 'victoire_core.base_paths': $value = array(\n 0 => ($this->targetDirs[3].'/app/../src'),\n 1 => ($this->targetDirs[3].'/app/../vendor/victoire'),\n 2 => ($this->targetDirs[3].'/app/../vendor/friendsofvictoire'),\n ); break;\n default: throw new InvalidArgumentException(sprintf('The dynamic parameter \"%s\" must be defined.', $name));\n }\n $this->loadedDynamicParameters[$name] = true;\n\n return $this->dynamicParameters[$name] = $value;\n }", "public function find($value);", "public function arguments(): array;", "public function parameterValue() {\n return $this->has_many_and_belongs_to('Searchengine', 'ParameterValue', 'parameterID', 'searchengineID');\n }", "abstract protected function createValue(string $definitionId, ... $additionalArguments): DefinitionValue;", "private function copyArgumentValues(array &$actualValues, array &$inputArguments, array &$fixedValues, $lenient = false)\n {\n // pointers set:\n\n // values: [ 0: remote, 1: origin, 2: foo/bar ]\n // ^\n // args: [ cmd1: Argument, cmd2: Argument, name: Argument, target: Argument ]\n // ^\n\n // The fixed values may already contain values:\n\n // fixed: [ cmd1: remote, cmd2: add ]\n\n // The goal is to copy the actual values to the fixed array so that the\n // end result is:\n\n // fixed: [ cmd1: remote, cmd2: add, name: origin, target: foo/bar ]\n\n // Multi-valued arguments need special treatment. In this case, the\n // actual values are like this:\n\n // values: [ 0: remote, 1: one, 2: two, 3: three ]\n // ^\n // args: [ cmd1: Argument, cmd2: Argument, multi: Argument ]\n // ^\n\n // The expected result is:\n\n // fixed: [ cmd1: remote, cmd2: add, multi: [ one, two, three ] ]\n\n while (null !== key($actualValues)) {\n if (null === key($inputArguments)) {\n if ($lenient) {\n return;\n }\n\n throw new CannotParseArgsException('Too many arguments.');\n }\n\n /** @var InputArgument $argument */\n $argument = current($inputArguments);\n $name = $argument->getName();\n $value = current($actualValues);\n\n // Append the value to multi-valued arguments\n if ($argument->isArray()) {\n if (!isset($fixedValues[$name])) {\n $fixedValues[$name] = array();\n }\n\n $fixedValues[$name][] = $value;\n\n // The multi-valued argument is the last one, so we don't\n // need to advance the array pointer anymore.\n } else {\n $fixedValues[$name] = $value;\n\n next($inputArguments);\n }\n\n next($actualValues);\n }\n }", "public function getValues($data){\n\t\t\t$this->allValues = array();\n\t\t\tforeach($this->keys as $aKey){\n\t\t\t\t$function = 'value_'.$aKey;\n\t\t\t\t$this->allValues[$aKey] = $this->$function($data);\n\t\t\t}\n //$this->pruneValues();\n \n\t\t\treturn $this->allValues;\n\t\t}", "public function render()\n {\n $object = $this->arguments['object'] ?? null;\n $nameSpace = $this->arguments['nameSpace'] ?? '';\n $argumentStringArray = $this->getArgumentArray($this->arguments['arguments']);\n $argumentArray = [];\n \n foreach ($argumentStringArray as $key => $value) {\n if ($object !== null && $value === false) {\n $value = $this->getObjectValue($object, $key);\n }\n \n if (!$nameSpace) {\n $argumentArray = array_merge_recursive($argumentArray, $this->buildObjectValueArray($object, $key, $value));\n } else {\n $argumentArray = array_merge_recursive($argumentArray, $this->buildNamespaceValueArray($nameSpace, $key, $value));\n }\n }\n\n $this->sessionPersistenceManagerBuilder->getInstance()->addSessionRelatedArguments($argumentArray);\n\n return $argumentArray;\n }", "public static function getValue()\n {\n $args = func_get_args();\n if (count($args) == 1) {\n return isset(self::$SEO[$args[0]]) ? self::$SEO[$args[0]] : null;\n } else if (count($args) == 2) {\n return isset(self::$SEO[$args[0]][$args[1]]) ? self::$SEO[$args[0]][$args[1]] : null;\n } else {\n trigger_error(\"SEOError:getValue: Número de argumentos inválidos.\", E_USER_NOTICE);\n }\n }", "function davajparame() {\n foreach (func_get_args() as $key => $value) {\n if(is_array($value)){\n print_r(func_get_arg($key));\n echo \" je tipa \". gettype($value).\" <br>\";\n }\n else{\n echo func_get_arg($key).\" je tipa \". gettype($value).\" <br>\"; \n }\n }\n}", "private function _bindValues($values)\n {\n $params = array();\n $types = str_repeat('s', count($values));\n $params[0] = $types;\n\n foreach ($values as &$v) {\n $params[] =& $v;\n }\n\n return call_user_func_array(array($this->_stmt, 'bind_param'), $params);\n }", "public static function extractParamValues($params, &$values) {\n foreach ($params as $k => $v) {\n if (is_array($v) || is_object($v)) {\n self::extractParamValues($v, $values);\n } else {\n if (is_bool($v)) {\n //if a value is set as false, invalid hash will generate\n //https://github.com/sailthru/sailthru-php5-client/issues/4\n $v = intval($v);\n }\n $values[] = $v;\n }\n }\n }", "function resolveArgsForReflection(/*callable*/$reflectFunc, $parameters, $inDepth = true)\n {\n if (!($reflectFunc instanceof \\ReflectionFunction || $reflectFunc instanceof \\ReflectionMethod))\n throw new \\InvalidArgumentException(sprintf(\n '(%s) is not reflection.'\n , \\Poirot\\Std\\flatten($reflectFunc)\n ));\n\n $arguments = array();\n foreach ($parameters as $key => $val) {\n if (is_string($key)) {\n // Create Map Of \"field_name\" to \"fieldName\" and \"FieldName\" to Resolve To Callable\n $res = (string) \\Poirot\\Std\\cast($key)->camelCase();\n if (!isset($parameters[$res]))\n $arguments[strtolower($res)] = $val;\n\n $arguments[strtolower($key)] = $val;\n }\n\n $arguments[$key] = $val;\n }\n\n\n $matchedArguments = array();\n foreach ($reflectFunc->getParameters() as $reflectArgument)\n {\n /** @var \\ReflectionParameter $reflectArgument */\n $argValue = $notSet = uniqid(); // maybe null value is default\n\n if ($reflectArgument->isDefaultValueAvailable())\n $argValue = $reflectArgument->getDefaultValue();\n\n $argName = strtolower($reflectArgument->getName());\n if (array_key_exists($argName, $arguments)) {\n ## resolve argument value match with name given in parameters list\n $argValue = $arguments[$argName];\n unset($arguments[$argName]);\n } elseif($inDepth) {\n ## in depth argument resolver\n $av = null;\n foreach ($arguments as $k => $v) {\n if ( ( $class = $reflectArgument->getClass() ) && is_object($v) && $class->isInstance($v) )\n $av = $v;\n \n if ( $reflectArgument->isArray() && is_array($v) )\n $av = $v;\n \n if ( $reflectArgument->isCallable() && is_callable($v) )\n $av = $v;\n \n if ($av !== null) {\n unset($arguments[$k]);\n break;\n }\n }\n \n ($av === null) ?: $argValue = $av; \n }\n\n if ($argValue === $notSet)\n throw new \\InvalidArgumentException(sprintf(\n 'Callable (%s) has no match found on parameter (%s) from (%s) list.'\n , ($reflectFunc instanceof \\ReflectionMethod)\n ? $reflectFunc->getDeclaringClass()->getName().'::'.$reflectFunc->getName()\n : $reflectFunc->getName()\n , $reflectArgument->getName()\n , \\Poirot\\Std\\flatten($parameters)\n ));\n\n $matchedArguments[$reflectArgument->getName()] = $argValue;\n }\n\n return $matchedArguments;\n }", "abstract protected function get_args();", "protected function getArguments()\r\n\t{\r\n\t\treturn isset($this->arguments) ? $this->arguments : array();\r\n\t}", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }", "public function value()\n {\n if ($args = func_get_args()) {\n $this->__value = $args[0];\n }\n return $this->__value;\n }" ]
[ "0.5629481", "0.55709344", "0.54686135", "0.5447687", "0.5352057", "0.5341479", "0.53297156", "0.5252069", "0.5194909", "0.5175022", "0.5175022", "0.5175022", "0.5175022", "0.50754225", "0.50438136", "0.50229204", "0.5011114", "0.49779207", "0.49777794", "0.49768987", "0.49242026", "0.49165753", "0.49048594", "0.48768413", "0.48149765", "0.48149765", "0.48149765", "0.48149765", "0.47609785", "0.47571287", "0.4720883", "0.4718595", "0.4708926", "0.4704972", "0.46987954", "0.4667582", "0.4659825", "0.46589938", "0.46589938", "0.46569738", "0.46522728", "0.46522728", "0.46522728", "0.46383125", "0.46268114", "0.46166736", "0.46122605", "0.4611809", "0.46093264", "0.46042717", "0.46016082", "0.45978385", "0.4591836", "0.45871255", "0.45866925", "0.4585171", "0.45728788", "0.4567981", "0.45445368", "0.45366025", "0.45340052", "0.4518896", "0.45184973", "0.4513796", "0.45130172", "0.45122123", "0.45112032", "0.45077878", "0.44954774", "0.44909632", "0.44883168", "0.44883168", "0.44883168", "0.44883168", "0.44883168", "0.44883168", "0.44883168", "0.44883168", "0.44883168", "0.44883168", "0.44883168", "0.44883168", "0.44883168", "0.44883168", "0.44883168", "0.44883168", "0.44883168", "0.44883168", "0.44883168", "0.44883168", "0.44883168", "0.44883168", "0.44883168", "0.44883168", "0.44883168", "0.44883168", "0.44883168", "0.44883168", "0.44883168", "0.44883168" ]
0.4682808
35
Set a default expand values. This should only used inside view, get, find methods in order to ensure a given expand is allways set.
public function setDefaultExpand(array $extraFields) { $this->_defaultExpand = $extraFields; return $this->setExpand([]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setExpand(array $expand)\n {\n $this->expand = $expand;\n\n return $this;\n }", "public function setExpand(?array $expand): self\n {\n $this->expand = $expand;\n\n return $this;\n }", "public function setExpand(?array $expand): self\n {\n $this->expand = $expand;\n\n return $this;\n }", "public function setExpand(?array $expand): self\n {\n $this->expand = $expand;\n\n return $this;\n }", "public function setExpand(?array $expand): self\n {\n $this->expand = $expand;\n\n return $this;\n }", "public function setColumnsSizes($expand, $sizes)\n\t{\n\t\t$columns = array();\n\t\tforeach ((array) $sizes as $name => $width)\n\t\t{\n\t\t\t$name = trim($name);\n\t\t\t$width = is_scalar($width) ? (int) $width : 0;\n\t\t\tif ($name != '' && $width > 0)\n\t\t\t\t$columns[$name] = $width;\n\t\t}\n\n\t\t$this->all_options['views'][$this->currentView]['columns_sizes'] = array(\n\t\t\t'expand' => is_scalar($expand) ? round((float) $expand, 8) : 1,\n\t\t\t'columns' => $columns\n\t\t);\n\t}", "public function setExpandGroups($var)\n {\n GPBUtil::checkBool($var);\n $this->expand_groups = $var;\n\n return $this;\n }", "public function expandAll()\n {\n foreach ($this->_parent[self::BASE_ELT] as $val) {\n $this->expand($val, true);\n }\n }", "function _setDefaults() {}", "public function expand($value) {\n return $this->setProperty('expand', $value);\n }", "public function setExpand(array $extraFields)\n {\n $extraFields = array_merge($this->_defaultExpand, $extraFields);\n\n return $this->setArgs(['expand' => implode(\",\", $extraFields)]);\n }", "public function expand(string $key, $default = null)\n {\n return $this->expand[$key] ?? $default;\n }", "public function expandAll ()\n {\n foreach ($this->data as $key => $value) {\n // kopiruje funkcionalitu Cfg::expand()\n $this->data[$key] = preg_replace_callback('/%([a-z0-9_-]*)%/i',\n array($this, 'expandGet'),\n $value);\n }\n }", "public function __construct(?array $expand = null, ?array $select = null) {\n $this->expand = $expand;\n $this->select = $select;\n }", "public function expandMode($value)\n {\n return $this->setProperty('expandMode', $value);\n }", "public function getExpand()\n {\n return $this->expand;\n }", "public function populateDefaults() {\n\t\t$this->owner->ShowInMenus = false;\n\t\t$this->owner->ShowInSearch = false;\n\t\t$this->owner->SubmitButtonText = \"Show my results\";\n \t}", "protected function _initExpandedList()\n {\n if (!isset($this->_cache['expanded'])) {\n $serialized = $GLOBALS['prefs']->getValue('expanded_folders');\n $this->_cache['expanded'] = $serialized\n ? unserialize($serialized)\n : array();\n }\n }", "public function setExpandResources($var)\n {\n GPBUtil::checkBool($var);\n $this->expand_resources = $var;\n\n return $this;\n }", "public function applyDefaultValues()\n {\n $this->deleted = false;\n $this->amount = 1;\n $this->amountevaluation = 0;\n $this->defaultstatus = 0;\n $this->defaultdirectiondate = 0;\n $this->defaultenddate = 0;\n $this->defaultpersoninevent = 0;\n $this->defaultpersonineditor = 0;\n $this->maxoccursinevent = 0;\n $this->showtime = false;\n $this->ispreferable = true;\n $this->isrequiredcoordination = false;\n $this->isrequiredtissue = false;\n $this->mnem = '';\n }", "public static function set_default_values() {\n\t\t?>\n\t\tcase \"nu_phone\" :\n\t\t\tfield.label = \"Phone\";\n\t\t\tfield.isRequired = true;\n\t\t\tfield.description = \"Numbers only. e.g. 8885551212\";\n\t\t\tbreak;\n\t\t<?php\n\t}", "public function applyDefaultValues()\n\t{\n\t\t$this->type = 1;\n\t\t$this->total_index = 0;\n\t\t$this->is_published = true;\n\t\t$this->is_featured = false;\n\t\t$this->comments_count = 0;\n\t}", "protected function setDefaultValueExtra()\n {\n $this->default_data['address'] = 'xxx.atlassian.net';\n $this->default_data['rest_api_resource'] = '/rest/api/latest/';\n $this->default_data['timeout'] = 60;\n\n $this->default_data['clones']['mappingTicket'] = array(\n array(\n 'Arg' => self::ARG_SUMMARY,\n 'Value' => 'Issue {include file=\"file:$centreon_open_tickets_path/providers/' .\n 'Abstract/templates/display_title.ihtml\"}'\n ),\n array('Arg' => self::ARG_DESCRIPTION, 'Value' => '{$body}'),\n array('Arg' => self::ARG_PROJECT, 'Value' => '{$select.jira_project.id}'),\n array('Arg' => self::ARG_ASSIGNEE, 'Value' => '{$select.jira_assignee.id}'),\n array('Arg' => self::ARG_PRIORITY, 'Value' => '{$select.jira_priority.id}'),\n array('Arg' => self::ARG_ISSUETYPE, 'Value' => '{$select.jira_issuetype.id}'),\n );\n }", "private function _setDefaults(): void {\n\t\t// default query options\n\t\t$options['limit'] = 50;\n\t\t$options['offset'] = false;\n\t\t$options['sort'] = false;\n\t\t$options['sortDirection'] = false;\n\t\t$this->setQueryOptions($options);\n\t}", "public function applyDefaultValues()\n {\n $this->is_active = false;\n $this->is_closed = false;\n }", "function setDefaultValues() {}", "public function expander( $expander ) {\n $this->expander = \"EXPANDER $expander\";\n return $this;\n }", "private function _setDefaults() {\r\n\t\t$checked = $selected = '';\r\n\t\t$isAdmin = $hasCart = false;\r\n\t\tif($this->isAdmin()) {\r\n\t\t\t$isAdmin = true;\r\n\t\t}\r\n\t\tif($this->Session->check('Order.id')) {\r\n\t\t\t$hasCart = true;\r\n\t\t}\r\n\t\t$this->set(compact('checked', 'selected', 'isAdmin', 'hasCart'));\r\n\t\t\r\n\t\t$this->layout = 'shop';\r\n\t\tif(isset($this->params['admin'])) {\r\n\t\t\t$this->layout = 'admin';\r\n\t\t}\r\n\t}", "protected function setDefaultValues()\n {\n parent::setDefaultValues();\n\t}", "public function applyDefaultValues()\n\t{\n\t\t$this->points = '0';\n\t\t$this->type = 0;\n\t\t$this->hidden = 0;\n\t\t$this->relationship_status = 0;\n\t\t$this->show_email = 1;\n\t\t$this->show_gender = 1;\n\t\t$this->show_hometown = 1;\n\t\t$this->show_home_phone = 1;\n\t\t$this->show_mobile_phone = 1;\n\t\t$this->show_birthdate = 1;\n\t\t$this->show_address = 1;\n\t\t$this->show_relationship_status = 1;\n\t\t$this->credit = 0;\n\t\t$this->login = 0;\n\t}", "public function setTabExpand($size)\n {\n $this->tabExpand = (int) $size;\n\n return $this;\n }", "public function setExpandRoles($var)\n {\n GPBUtil::checkBool($var);\n $this->expand_roles = $var;\n\n return $this;\n }", "private function setDefaultValues()\n {\n // Set default payment action.\n if (empty($this->paymentAction)) {\n $this->paymentAction = 'Sale';\n }\n\n // Set default locale.\n if (empty($this->locale)) {\n $this->locale = 'en_US';\n }\n\n // Set default value for SSL validation.\n if (empty($this->validateSSL)) {\n $this->validateSSL = false;\n }\n }", "private function build_full_array_expansion()\n\t\t{\n\t\t\tif(is_array($this->listexpand) )\n\t\t\t{\n\t\t\t\t// Build expansion list to root for all item in listexpand array\n\t\t\t\twhile(list($key, $val) = each($this->listexpand))\n\t\t\t\t{\n\t\t\t\t\t$this->get_all_parent_to_root($key);\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t// At last, remove all duplicate entries\n\t\t\t\t$this->fulllistexpand = array_unique($this->fulllistexpand);\n\t\t\t}\n\t\t\t// Add focused item to expand list\n\t\t\tif($this->myfocus != null)\n\t\t\t{\n\t\t\t\t$this->get_all_parent_to_root($this->myfocus);\n\t\t\t}\n\t\t}", "private function setDefaults()\n {\n /** @var Property $property */\n foreach($this->properties as $name => $property)\n {\n $property->applyDefault();\n }\n }", "function setDefaults()\n {\n }", "public function getExpand(): ?array\n {\n return $this->expand;\n }", "public function getExpand(): ?array\n {\n return $this->expand;\n }", "public function getExpand(): ?array\n {\n return $this->expand;\n }", "public function getExpand(): ?array\n {\n return $this->expand;\n }", "public function initializeDefaults() {\n\t\t$page = $this->getCollectionObject();\n\t\tLoader::helper('clov_page', 'clov');\n\t\t\n\t\t// Show non-draft expenses and draft expenses owned by the user.\n\t\tClovPageHelper::addBlockByHandle($page, 'clov_expense_list');\n\t\tClovPageHelper::addBlockByHandle($page, 'clov_expense_list', array(\n\t\t\t'uID' => '0',\n\t\t\t'activePages' => '0',\n\t\t));\n\t\tClovPageHelper::addBlockByHandle($page, 'clov_relative_link', array(\n\t\t\t'action' => 'clov/expenses/-/add',\n\t\t\t'text' => t('Add A New Expense'),\n\t\t\t'class' => 'clov-action-link clov-add-link',\n\t\t));\n\t\t\n\t\t$this->initializePermissions();\n\t}", "public function fillupDefault()\n {\n\n foreach (static::$cols as $key => $col) {\n if ('' != $col[self::COL_DEFAULT]) {\n $this->data[$key] = $col[self::COL_DEFAULT];\n }\n }\n\n }", "function expand()\n{\n\n}", "public function testDefaultNodeSettingsLoad() {\n $this->createTestContentType();\n $this->loadNewNodeFormForTestContentType();\n\n $this->assertNoFieldByName('rh_override');\n $this->assertFieldByName('rh_action', 'access_denied');\n $this->assertFieldByName('rh_action', 'display_page');\n $this->assertFieldByName('rh_action', 'page_not_found');\n $this->assertFieldByName('rh_action', 'page_redirect');\n $default_option_id = 'edit-rh-action-'\n . str_replace('_', '-', self::DEFAULT_ACTION);\n $this->assertFieldChecked($default_option_id);\n }", "public function set_ExpandColumn($param)\n\t{\n\t\t$this->ExpandColumn = $param; return $this;\n\t}", "protected function setDefaults()\n {\n return;\n }", "public function assignDefaultValues() {\n\t\t$this->assignByArray(self::$DEFAULT_VALUES);\n\t}", "public function assignDefaultValues() {\n\t\t$this->assignByArray(self::$DEFAULT_VALUES);\n\t}", "public function assignDefaultValues() {\n\t\t$this->assignByArray(self::$DEFAULT_VALUES);\n\t}", "public function testExpand() {\n $this->assertEquals($this->expanded, Hash::expand($this->collapsed));\n }", "public function setDefaultOptions(\\Symfony\\Component\\OptionsResolver\\OptionsResolverInterface $resolver)\n\t{\n\t\t$resolver->setDefaults(array(\n\t\t\t'expanded' => true,\n\t\t\t'multiple' => true,\n\t\t));\n\t}", "public function setDefaultValues()\n\t{\t\t\n\t\t\t \n\t}", "public function applyDefaultValues()\n\t{\n\t\t$this->ativo = true;\n\t\t$this->tipo_acesso = 'M';\n\t\t$this->estado_civil = 'O';\n\t\t$this->nivel_acesso = '1';\n\t\t$this->usuario_validado = false;\n\t}", "public function setExpandedRows($ids = array())\n\t{\n\t\t$_SESSION[\"main.ui.grid\"][$this->grid_id][\"expanded_rows\"] = $ids;\n\t}", "protected function initial_set_default() {\n\t\tif ( isset( $this->field[ 'config' ][ 'default' ] ) ) {\n\t\t\t$this->default = $this->field[ 'config' ][ 'default' ];\n\t\t} else {\n\t\t\t$this->default = '';\n\t\t}\n\t}", "function set_defaults()\n {\n $mapper = $this->get_mapper();\n if ($mapper->has_method('set_defaults')) {\n $mapper->set_defaults($this);\n }\n }", "public function getExpandGroups()\n {\n return $this->expand_groups;\n }", "function setDefault($value)\n {\n $this->_defValue = $value;\n }", "public function applyDefaultData()\n {\n $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance();\n $config = $objectManager->get('\\Magento\\Framework\\App\\Config\\ScopeConfigInterface');\n\n $this->setsup_is_active(1);\n $this->setsup_locale($config->getValue('general/locale/code'));\n $this->setsup_currency($config->getValue('currency/options/base'));\n $this->setsup_country($config->getValue('general/country/default'));\n\n return $this;\n }", "public function applyDefaultValues()\n\t{\n\t\t$this->closed = 0;\n\t\t$this->lastfmid = 0;\n\t\t$this->hasphotos = 0;\n\t}", "public function appendExpand(string $key, $value)\n {\n $this->expand[$key] = $value;\n return $this;\n }", "public function applyDefaultValues()\n {\n $this->is_not = false;\n $this->rank = 0;\n }", "public function applyDefaultValues()\n {\n $this->setregis = 0;\n }", "public function applyDefaultValues()\n\t{\n\t\t$this->is_archived = 0;\n\t\t$this->google_analytics_enabled = false;\n\t}", "public function applyDefaultValues()\n\t{\n\t\t$this->setName('');\n\t\t$this->setFullName('');\n\t\t$this->setEntriesCount(0);\n\t\t$this->setDirectEntriesCount(0);\n\t\t$this->setMembersCount(0);\n\t\t$this->setPendingMembersCount(0);\n\t\t$this->setDisplayInSearch(DisplayInSearchType::PARTNER_ONLY);\n\t\t$this->setPrivacy(PrivacyType::ALL);\n\t\t$this->setInheritanceType(InheritanceType::MANUAL);\n\t\t$this->setUserJoinPolicy(UserJoinPolicyType::NOT_ALLOWED);\n\t\t$this->setDefaultPermissionLevel(CategoryKuserPermissionLevel::MEMBER);\n\t\t$this->setContributionPolicy(ContributionPolicyType::ALL);\n\t\t$this->setStatus(CategoryStatus::ACTIVE);\n\t}", "private function setDefaults()\n {\n $defaults = config('sevDeskApi.defaults.'.lcfirst($this->objectName));\n\n foreach($defaults as $attribute => $defaultValue)\n {\n if (!isset($this->$attribute))\n $this->$attribute = $defaultValue;\n }\n }", "public function applyDefaultValues()\n {\n $this->shnttype = '';\n $this->shntseq = 0;\n $this->shntkey2 = '';\n $this->shntform = '';\n }", "public function resetExpandedRows()\n\t{\n\t\t$this->setExpandedRows();\n\t}", "protected function setDefaultValues()\n {\n parent::setDefaultValues();\n $request = DRequest::load();\n $this->setFieldValue(self::FIELD_IP_ADDRESS, $request->getIpAddress());\n $this->setFieldValue(self::FIELD_URL, self::getRequestUrl());\n }", "public function set_defaults() {\n if (!empty($this->default_settings)) {\n $this->add($this->default_settings);\n }\n return $this;\n }", "public function setDefaultValues()\r\n {\r\n foreach ($this->defaultValues as $property => $value) {\r\n if (is_null($this->$property)) {\r\n $this->$property = $value;\r\n }\r\n }\r\n }", "public function applyDefaultValues()\n\t{\n\t\t$this->st_usuario = true;\n\t}", "public function setDefault($value);", "public function set_to_default()\n\t{\n\t\t// SimpleDB requires a value for every attribue...\n\t\t$this->_name = NULL;\n\t\t$this->_contextid = NULL;\n\t\t$this->_userid = NULL;\n $this->_deleted = 0;\n\t\t$this->_lastmodified = 0;\t\n\t}", "public function updateDefaultsFromObject() {\n parent::updateDefaultsFromObject();\n // Tags\n if(isset($this->widgetSchema['tags'])) {\n $tags = $this->getObject()->getTags();\n if($this->getUser()->getAttribute('enable_keyboard', false)) {\n $tags = implode(', ', $tags);\n }\n $this->widgetSchema['tags']->setDefault($tags);\n }\n // Elements\n if(isset($this->widgetSchema['elements_list'])) {\n $this->widgetSchema['elements_list']->setDefault($this->getObject()->getElements());\n }\n if($this->getUser()->getAttribute('enable_keyboard', false) && isset($this->widgetSchema['demandeur_id']) && !$this->isNew())\n {\n $this->setDefault('demandeur_id', $this->getObject()->getDemandeur()->getName());\n }\n }", "public function setDefaultValues() {\n $this->effective_date = \"1970-1-1\";\n $this->end_date = \"9999-12-31\";\n $this->pu_percentage = 100;\n }", "public function setDefaultContents($val)\n {\n $this->_propDict[\"defaultContents\"] = $val;\n return $this;\n }", "public function applyDefaultValues()\n\t{\n\t}", "public function applyDefaultValues()\n\t{\n\t}", "public function applyDefaultValues()\n\t{\n\t}", "public function saveDefaultValues() {\n\n\t\tforeach ( $this->getOptionsList() as $option_page ) {\n\t\t\t$option_page->setDefaultValue();\n\t\t}\n\t}", "public function applyDefaultValues()\n {\n $this->jml_lantai = '1';\n $this->asal_data = '1';\n $this->last_sync = '1901-01-01 00:00:00';\n }", "public function setFullView(): void\n {\n $this->viewType = self::VIEW_FULL;\n }", "public function setToDefault() {\n $this->addType(ResidentType::all);\n }", "public static function SetDefaults()\r\n {\r\n $defaults = self::GetAllDefaults();\r\n self::$Data = apply_filters('duplicator_defaults_settings', $defaults);\r\n return self::Save();\r\n }", "public function applyDefaultValues()\n {\n $this->active = false;\n }", "public function setModelDefaults() \n {\n if (!empty($this->model->defaultFieldValues())) {\n \n foreach($this->model->defaultFieldValues() as $field => $defaultValue) {\n\n $this->model->$field = $defaultValue;\n }\n } \n }", "private function setDefaultValues()\n {\n return LengowConfiguration::resetAll();\n }", "public function get_expandable() {\n return $this->expandable;\n }", "protected function setDefaultExpDate() {\n $user = new User();\n if ($user->hasRole('Company Administrator')) {\n $exp_date = $this->getDefaultElementValue('exp_date');\n $this->setElementPropertyValue('exp_date',\n array('#default_value', 'value'), $exp_date);\n }\n }", "public function applyDefaultValues()\n {\n $this->phadtype = '';\n $this->phadid = '';\n $this->phadsubid = '';\n $this->phadsubidseq = 0;\n $this->phadcont = '';\n }", "function _setDefaults()\n {\n $this->subtask_id = $this->rs['subtask_id'] = 0;\n $this->student_id = $this->rs['student_id'] = 0;\n $this->assignment_id = $this->rs['assignment_id'] = 0;\n $this->file_id = $this->rs['file_id'] = 0;\n }", "public function defaultMediaSetting() {\n\t\tupdate_option( 'image_default_align', 'center' );\n\t\tupdate_option( 'image_default_link_type', 'none' );\n\t\tupdate_option( 'image_default_size', 'full' );\n\t}", "public function useDefaults()\n\t{\n\t\t$this->use_defaults = true;\n\t}", "public function setDefaultSize() {\n return $this->setSize('medium');\n }", "protected function initializeViewAdditions()\n {\n if ($this->view instanceof ExpandableViewInterface) {\n $this->view->addFilterAndFunction(\n 'action',\n function (\n string $action,\n $controller = null,\n $database = null,\n $document = null,\n array $query = [],\n $fragment = ''\n ) {\n if ($controller === null) {\n $controller = $this;\n }\n\n return $this->getUriBuilder()->buildUriFor(\n $action,\n $controller,\n $database,\n $document,\n $query,\n (string)$fragment\n );\n }\n );\n $this->view->addFilterAndFunction(\n 'assetUri',\n function (string $assetUri, $noCache = false) {\n $uri = '/_asset/' . ltrim($assetUri);\n if ($noCache) {\n return $uri . '?v=' . time();\n }\n\n return $uri;\n }\n );\n }\n }", "final protected function _defaults(){\n if(! $this->_defaults) return;\n foreach($this->_defaults as $conf => $default_value){\n if(! self::inform($conf)) self::define($conf, $default_value);\n }\n }", "public static function resetDefaults(): void\n {\n static::$defaultMaxDecPl = static::ORIG_MAX_DEC_PL;\n static::$defaultImmutable = static::ORIG_IMMUTABLE;\n static::$defaultFormatSettings = static::ORIG_FORMAT_SETTINGS;\n\n static::$localeResolver = null;\n }", "protected function setDefaults()\n {\n $this->options['dsn'] = null;\n $this->options['table'] = 'sessiondata';\n $this->options['autooptimize'] = false;\n }", "public function setDefaultValue($value);" ]
[ "0.68528765", "0.6818218", "0.6818218", "0.6818218", "0.6818218", "0.5826182", "0.5627352", "0.54655766", "0.54644483", "0.54194033", "0.53964543", "0.53831893", "0.53755015", "0.53520864", "0.5312847", "0.5301966", "0.5286027", "0.52836406", "0.52802455", "0.52696", "0.5228694", "0.52197707", "0.520666", "0.51851094", "0.5176591", "0.51749796", "0.51508176", "0.51012385", "0.50932926", "0.5074168", "0.507197", "0.5039135", "0.5026758", "0.5021153", "0.5004747", "0.4991844", "0.49906892", "0.49906892", "0.49906892", "0.49906892", "0.49772853", "0.49770704", "0.4973558", "0.4962424", "0.49568394", "0.49406388", "0.49324977", "0.49324977", "0.49324977", "0.4930022", "0.4928682", "0.4927146", "0.4914928", "0.4906987", "0.4906233", "0.48873433", "0.4884181", "0.48839626", "0.4879811", "0.48696685", "0.4858068", "0.48479307", "0.48160973", "0.4799611", "0.4793255", "0.477396", "0.47725335", "0.47573858", "0.47525552", "0.47439736", "0.47416887", "0.47343722", "0.4716324", "0.4703742", "0.46898258", "0.46797845", "0.46682495", "0.46671814", "0.46671814", "0.46671814", "0.46648034", "0.46604222", "0.4654168", "0.4648453", "0.46350345", "0.46217078", "0.46181622", "0.46129814", "0.4609256", "0.46071762", "0.46043143", "0.46043062", "0.46008003", "0.45998207", "0.45944113", "0.4587611", "0.457603", "0.45502394", "0.45455414", "0.45385695" ]
0.6379327
5
Expand a given field or relation.
public function setExpand(array $extraFields) { $extraFields = array_merge($this->_defaultExpand, $extraFields); return $this->setArgs(['expand' => implode(",", $extraFields)]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function expandRow(Row $row) {\n $item_id = $row->getSourceProperty('id');\n\n $item = $this->retrieveItem($item_id);\n $files = $this->retrieveItemFiles($item_id);\n $fields = $item->getFields();\n\n // Flatten field values.\n $field_values = [];\n foreach ($fields as $field) {\n // Zero-width non-breaking spaces were causing empty values to not really be empty.\n $value = preg_replace('/[\\x{200B}-\\x{200D}\\x{FEFF}]/u', '', $field->value);\n\n if ($field->type == 'files') {\n // Match files to the field in which they appear.\n $value = [];\n foreach ($files as $file) {\n if ($file->field == $field->name) {\n $value[] = (array) $file;\n }\n }\n }\n elseif (strpos($field->type, 'choice_') === 0) {\n // Flatten multiple choice values.\n $value = array_filter(array_map(function($opt) { return $opt['selected'] ? $opt['label'] : NULL; }, $field->options));\n if (isset($value[0])) {\n $value = $value[0];\n }\n }\n\n // Provide IDs as field names for stability.\n $field_values[$field->name] = $value;\n\n // ... but also provide labels as field names for ease of use.\n if ($field->label) {\n $field_values[$field->label] = $value;\n }\n }\n\n $row->setSourceProperty('fields', $field_values);\n $row->setSourceProperty('expanded', TRUE);\n }", "public function flatten($field = null) {}", "public function relationExtendRefreshResults($field)\n {\n }", "function expand($q)\n\t{\n $this->select .= isset($q['select' ]) ? \" , $q[select] \" : '';\n $this->from .= isset($q['from' ]) ? \" $q[from] \" : '';\n $this->where .= isset($q['where' ]) ? \" AND $q[where] \" : '';\n $this->limit .= isset($q['limit' ]) ? \" $q[limit] \" : '';\n\n $qwote = empty($this->order_by) ? '' : ', ';\n $this->order_by .= isset($q['order_by']) ? $qwote.\" $q[order_by]\" : '';\n\n $qwote = empty($this->group_by) ? '' : ', ';\n $this->group_by .= isset($q['group_by']) ? $qwote.\" $q[group_by]\" : '';\n\n $qwote = empty($this->having) ? '' : ' and ';\n $this->having .= isset($q['having']) ? $qwote.\"$q[having]\" : '';\n }", "public function setExpand(array $expand)\n {\n $this->expand = $expand;\n\n return $this;\n }", "public function setExpand(?array $expand): self\n {\n $this->expand = $expand;\n\n return $this;\n }", "public function setExpand(?array $expand): self\n {\n $this->expand = $expand;\n\n return $this;\n }", "public function setExpand(?array $expand): self\n {\n $this->expand = $expand;\n\n return $this;\n }", "public function setExpand(?array $expand): self\n {\n $this->expand = $expand;\n\n return $this;\n }", "public function set_ExpandColumn($param)\n\t{\n\t\t$this->ExpandColumn = $param; return $this;\n\t}", "public function expand($shorturl, $format = null)\n\t{\n\t\tif (empty($format)) {\n\t\t\t$format = $this->format;\n\t\t}\n\t\t$query = array(\n\t\t\t'action' => 'expand',\n\t\t\t'shorturl' => $shorturl,\n\t\t\t'format' => $format\n\t\t);\n\t\treturn $this->process($this->request($query));\n\t}", "public function expand($value) {\n return $this->setProperty('expand', $value);\n }", "public function fetchField(){\n $this->debugBacktrace();\n $this->fetchType = \"fetch_field\";\n return $this;\n }", "public function resolveFormItem(Request $request, Resource $resource, array $extraParam = []): Field\n {\n $this->formItem = $this->getForm($request, $resource, $extraParam);\n\n return $this;\n }", "public function expander( $expander ) {\n $this->expander = \"EXPANDER $expander\";\n return $this;\n }", "protected function expandAnswerFields($answer, $escapeSummaryHtml = true){\n $expand = function(&$content){\n if($content)\n $content = Text::expandAnswerTags($content);\n };\n if(is_object($answer)){\n $expand($answer->Question);\n $expand($answer->Solution);\n $expand($answer->Summary);\n if($answer->Summary && $escapeSummaryHtml)\n $answer->Summary = $this->escapeSummary($answer->Summary);\n }\n else if(is_array($answer)){\n $expand($answer['Question']);\n $expand($answer['Solution']);\n $expand($answer['Summary']);\n if($answer['Summary'] && $escapeSummaryHtml){\n $answer['Summary'] = $this->escapeSummary($answer['Summary']);\n }\n }\n return $answer;\n }", "public function resolve(Resource $resource): self\n {\n $this->fields()->each(function(Field $field) use ($resource) {\n $field->resolve($resource);\n });\n\n return $this;\n }", "public function getRelatedFields($field, $leftOriginField = true) {}", "public function expand ($key)\n {\n if (!isset($this->data[$key])) {\n throw new ArgumentOutOfRangeException('Param ' . $key . ' is not set');\n }\n\n return $this->data[$key] = preg_replace_callback('/%([a-z0-9_-]*)%/i',\n array($this, 'expandGet'),\n $this->data[$key]);\n }", "public function getExpandableFields()\n {\n return $this->aExpandableFields;\n }", "public function expandAll()\n {\n foreach ($this->_parent[self::BASE_ELT] as $val) {\n $this->expand($val, true);\n }\n }", "protected function expandExpandableFields(array &$aResults, array $aData)\n {\n $aExpandableFields = $this->getExpandableFields();\n\n if (empty($aExpandableFields)) {\n return;\n }\n\n // --------------------------------------------------------------------------\n\n /**\n * Extract any Expand and Expand\\Group objects into the main expand property\n * and compile them.\n */\n $aHelpers = Helper\\Model\\Expand::extractHelpers($aData);\n\n if (empty($aData['expand'])) {\n $aData['expand'] = [];\n }\n\n if ($aData['expand'] !== static::EXPAND_ALL) {\n\n $aData['expand'] = array_merge($aData['expand'], $aHelpers);\n\n $aHelpers = Helper\\Model\\Expand::extractHelpers($aData['expand']);\n\n foreach ($aHelpers as $mTrigger) {\n if ($mTrigger instanceof Helper\\Model\\Expand\\Group) {\n $aData['expand'] = array_merge($aData['expand'], $mTrigger->compile());\n } elseif ($mTrigger instanceof Helper\\Model\\Expand) {\n $aData['expand'][] = $mTrigger->compile();\n }\n }\n\n $aData['expand'] = array_values($aData['expand']);\n }\n\n // --------------------------------------------------------------------------\n\n /**\n * Prepare the expand request; The developer can pass an array of triggers to expand, any of\n * those triggers may themselves be an array with options to pass to the model (e.g to expand\n * a field in the expanded object, or to order etc). Therefore we must prepare two arrays:\n * 1. a flat list of triggers to expand\n * 2. a list of config arrays to pass to the model\n */\n\n $aTriggers = [];\n $aTriggerData = [];\n\n if (array_key_exists('expand', $aData) && is_array($aData['expand'])) {\n foreach ($aData['expand'] as $mTrigger) {\n if (is_string($mTrigger)) {\n $aTriggers[] = $mTrigger;\n $aTriggerData[$mTrigger] = [];\n } elseif (is_array($mTrigger)) {\n $sArrayTrigger = Helper\\ArrayHelper::get(0, $mTrigger) ?: Helper\\ArrayHelper::get('trigger', $mTrigger);\n $aArrayTriggerData = Helper\\ArrayHelper::get(1, $mTrigger) ?: Helper\\ArrayHelper::get('data', $mTrigger, []);\n if (!empty($sArrayTrigger)) {\n $aTriggers[] = $sArrayTrigger;\n $aTriggerData[preg_replace('/\\:count$/', '', $sArrayTrigger)] = $aArrayTriggerData;\n }\n }\n }\n }\n\n foreach ($aExpandableFields as $oExpandableField) {\n\n $bAutoExpand = $oExpandableField->auto_expand;\n $bExpandAll = false;\n $bExpandForTrigger = false;\n $bExpandForTriggerCount = false;\n // If we're not auto-expanding, check if we're expanding everything\n if (!$bAutoExpand && array_key_exists('expand', $aData)) {\n $bExpandAll = $aData['expand'] === static::EXPAND_ALL;\n }\n\n // If we're not auto-expanding or expanding everything, check if we should expand based\n // on the `expand` index of $aTriggers\n if (!$bAutoExpand && !$bExpandAll) {\n $bExpandForTrigger = in_array($oExpandableField->trigger, $aTriggers);\n $bExpandForTriggerCount = in_array($oExpandableField->trigger . ':count', $aTriggers);\n }\n\n if ($bAutoExpand || $bExpandAll || $bExpandForTrigger || $bExpandForTriggerCount) {\n\n // Merge any data defined with the expandable field with any custom data added by the expansion\n $aMergedData = array_merge(\n $oExpandableField->data,\n Helper\\ArrayHelper::get($oExpandableField->trigger, $aTriggerData, [])\n );\n\n if ($oExpandableField->type === static::EXPANDABLE_TYPE_SINGLE) {\n\n $this->getSingleAssociatedItem(\n $aResults,\n $oExpandableField->id_column,\n $oExpandableField->property,\n $oExpandableField->model,\n $oExpandableField->provider,\n $aMergedData\n );\n\n } elseif (($bAutoExpand || $bExpandForTrigger || $bExpandAll) && $oExpandableField->type === static::EXPANDABLE_TYPE_MANY) {\n\n $this->getManyAssociatedItems(\n $aResults,\n $oExpandableField->property,\n $oExpandableField->id_column,\n $oExpandableField->model,\n $oExpandableField->provider,\n $aMergedData\n );\n\n } elseif ($bExpandForTriggerCount && $oExpandableField->type === static::EXPANDABLE_TYPE_MANY) {\n\n $this->countManyAssociatedItems(\n $aResults,\n $oExpandableField->property,\n $oExpandableField->id_column,\n $oExpandableField->model,\n $oExpandableField->provider,\n $aMergedData\n );\n }\n }\n }\n }", "public function getExpand()\n {\n return $this->expand;\n }", "public function appendExpand(string $key, $value)\n {\n $this->expand[$key] = $value;\n return $this;\n }", "public function collapse(string $field): self\n\t{\n\t\t$this->collapse = $field;\n\n\t\treturn $this;\n\t}", "function expand()\n{\n\n}", "function update_field( $field ) {\n\t\t\n\t\t// remove sub fields\n\t\tunset($field['sub_fields']);\n\t\t\n\t\t\t\t\n\t\t// return\t\t\n\t\treturn $field;\n\t}", "public function query() {\n $this->field_alias = $this->real_field;\n }", "function query() {\n $this->field_alias = $this->real_field;\n }", "function query() {\n $this->field_alias = $this->real_field;\n }", "function field( $field_name ) {\n\tglobal $context;\n\t$context['fields'][ $field_name ] = get_field( $field_name );\n\treturn $context;\n}", "public function fillField(Field $field): void\n {\n $parents = $this->getParents($field);\n $this->cfl->fillContent($field->getContent());\n $contentDefinition = $field->getContent()->getDefinition();\n $field->setDefinition($field->getName(), FieldType::factory($field->getName(), $contentDefinition, $parents));\n }", "private function expand(Model $model, array $result, array $namedExc, array $namedInc, array $namedExp)\n {\n foreach ($namedExp as $k => $subExp) {\n $value = array_value($result, $k);\n if (!$this->isExpandable($model, $k, $value)) {\n continue;\n }\n\n $subExc = array_value($namedExc, $k);\n $subInc = array_value($namedInc, $k);\n\n // convert exclude, include, and expand into dot notation\n // then take the keys for a flattened dot notation\n $flatExc = is_array($subExc) ? array_keys(array_dot($subExc)) : [];\n $flatInc = is_array($subInc) ? array_keys(array_dot($subInc)) : [];\n $flatExp = is_array($subExp) ? array_keys(array_dot($subExp)) : [];\n\n $relation = $model->relation($k);\n $serializer = new self($this->request);\n $serializer->setExclude($flatExc)\n ->setInclude($flatInc)\n ->setExpand($flatExp);\n\n if ($relation instanceof Model) {\n $result[$k] = $serializer->toArray($relation);\n } else {\n $result[$k] = $relation;\n }\n }\n\n return $result;\n }", "public function setExpandGroups($var)\n {\n GPBUtil::checkBool($var);\n $this->expand_groups = $var;\n\n return $this;\n }", "public function populate($input, $repopulate = false) {\n\t\t$fields = $this->field ( null, true, false );\n\t\tforeach ( $fields as $f ) {\n\t\t\tif (is_array ( $input ) or $input instanceof \\ArrayAccess) {\n\t\t\t\t// convert form field array's to Fuel dotted notation\n\t\t\t\t$name = str_replace ( array (\n\t\t\t\t\t\t'[',\n\t\t\t\t\t\t']' \n\t\t\t\t), array (\n\t\t\t\t\t\t'.',\n\t\t\t\t\t\t'' \n\t\t\t\t), $f->name );\n\t\t\t\t\n\t\t\t\t// fetch the value for this field, and set it if found\n\t\t\t\t$value = \\Arr::get ( $input, $name, null );\n\t\t\t\t$value === null and $value = \\Arr::get ( $input, $f->basename, null );\n\t\t\t\t$value !== null and $f->set_value ( $value, true );\n\t\t\t} elseif (is_object ( $input ) and property_exists ( $input, $f->basename )) {\n\t\t\t\t$f->set_value ( $input->{$f->basename}, true );\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Optionally overwrite values using post/get\n\t\tif ($repopulate) {\n\t\t\t$this->repopulate ();\n\t\t}\n\t\t\n\t\treturn $this;\n\t}", "public function ExpandDL($request)\n {\n return $this->makeRequest(__FUNCTION__, $request);\n }", "public abstract function FetchField();", "public function setField(string $name, Field $field)\n {\n if (count($this->pivots) != 2 && ($field instanceof ManyToOne)) {\n $this->pivots[] = $field;\n }\n\n return parent::setField($name, $field);\n }", "public function initField(Query $q, Field $field)\n {\n if ($field->useAlias()) {\n $q->field($field, $field->short_name);\n } else {\n $q->field($field);\n }\n }", "public function fetchField();", "public function showRelationship(Request $request, object $model, string $fieldName): bool;", "public function expand($uniqId){\n return $this->linkRepository->get($uniqId);\n }", "public function showRelated(Request $request, object $model, string $fieldName): bool;", "public function testExpand(): void\n {\n $builder = $this->createMock(BuilderInterface::class);\n\n $uri = $this->createMock(UriInterface::class);\n\n $request = $this->createMock(RequestInterface::class);\n $request\n ->expects($this->once())\n ->method('withUri')\n ->with($uri)\n ->willReturnSelf();\n\n $response = $this->createMock(ResponseInterface::class);\n $response\n ->expects($this->once())\n ->method('getBody')\n ->willReturn($builder);\n\n $match = $this->createMock(RouteMatchInterface::class);\n\n $router = $this->createMock(RouterInterface::class);\n $router\n ->expects($this->once())\n ->method('route')\n ->with($request)\n ->willReturn($match);\n\n $executor = $this->createMock(ExecutorInterface::class);\n $executor\n ->expects($this->once())\n ->method('execute')\n ->with($request, $match)\n ->willReturn($response);\n\n $link = $this->createMock(LinkInterface::class);\n $link\n ->expects($this->once())\n ->method('getUri')\n ->willReturn($uri);\n\n /**\n * @var RouterInterface $router\n * @var ExecutorInterface $executor\n * @var LinkInterface $link\n */\n $expander = new Expander($router, $executor);\n\n $this->assertSame($builder, $expander->expand($link, $request));\n }", "public function expandAll ()\n {\n foreach ($this->data as $key => $value) {\n // kopiruje funkcionalitu Cfg::expand()\n $this->data[$key] = preg_replace_callback('/%([a-z0-9_-]*)%/i',\n array($this, 'expandGet'),\n $value);\n }\n }", "public function with($relationship)\n\t{\n\t\t$meta = $this->meta();\n\t\t\n\t\t// Make sure we select for this object, since * will not be applied\n\t\tif (empty($this->_with_applied))\n\t\t{\n\t\t\t$this->select('*');\n\t\t}\n\t\t\n\t\t// Allow unlimited args\n\t\tforeach ((array)$relationship as $target_path)\n\t\t{\n\t\t\t// We'll start with the first one and work our way down\n\t\t\t$paths = explode(\":\", $target_path);\n\t\t\t$parent = $this;\n\t\t\t$chain = '';\n\t\t\t\n\t\t\tforeach ($paths as $iteration => $path)\n\t\t\t{\n\t\t\t\t$field = Jelly_Meta::field($parent, $path);\n\t\t\t\t\n\t\t\t\tif (!($field instanceof Jelly_Behavior_Field_Joinable))\n\t\t\t\t{\n\t\t\t\t\t// Entire list is invalid\n\t\t\t\t\tcontinue 2;\n\t\t\t\t}\n\n\t\t\t\t// If we're on the first iteration, the parent path is just the \n\t\t\t\t// name of the model, otherwise we use the chain\n\t\t\t\tif ($iteration === 0)\n\t\t\t\t{\n\t\t\t\t\t$prev_chain = Jelly_Meta::model_name($this);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$prev_chain = $chain;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$chain .= \":\".$field->name;\n\t\t\t\t\t\t\n\t\t\t\t// Set the next iteration's parent\n\t\t\t\t$model = $field->foreign['model'];\n\t\t\t\t\n\t\t\t\t// Select all of the model's fields\n\t\t\t\tforeach (Jelly_Meta::get($model)->fields as $alias => $select)\n\t\t\t\t{\n\t\t\t\t\tif ($select->in_db)\n\t\t\t\t\t{\n\t\t\t\t\t\t// Withs have to manually alias\n\t\t\t\t\t\t$column = Jelly_Meta::column($model, $alias);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// We have to manually alias, since the path does not necessarily correspond to the path\n\t\t\t\t\t\t$this->select(array($chain.'.'.$column, $chain.':'.$alias));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Let the field finish the rest\n\t\t\t\t$field->with($this, $path, $chain, $prev_chain);\n\t\t\t\t\n\t\t\t\t// Model now becomes the parent\n\t\t\t\t$parent = $model;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $this;\n\t}", "public function setExpandResources($var)\n {\n GPBUtil::checkBool($var);\n $this->expand_resources = $var;\n\n return $this;\n }", "public function addField($field, $xpath) {\n $this->extraFields[$field] = $xpath;\n }", "public function refresh($field = NULL)\n\t{\n\t\t// Refresh the user data is $field is NULL\n\t\tif ($field === NULL)\n\t\t{\n\t\t\t// Save the id\n\t\t\t$id = $this->id;\n\t\t\t//Reset the storage arrays\n\t\t\t$this->_original =\n\t\t\t$this->_changed =\n\t\t\t$this->_related = array();\n\t\t\t// Set the id and return the loaded user\n\t\t\t$this->id = $id;\n\t\t\treturn $this->load();\n\t\t}\n\n\t\t// Only refresh loaded related fields\n\t\tif (isset($this->_related[$field]))\n\t\t{\n\t\t\tunset($this->_related[$field]);\n\t\t\tunset($this->_original[$field]);\n\t\t}\n\n\t\treturn $this->{$field};\n\t}", "public function addField(Field $field){\n $getter = 'get' . ucfirst($field->getName());\n $field->setValue($this->getEntity()->$getter());\n $this->fields[] = $field;\n return $this;\n }", "public function relationExtendQuery($query)\n {\n $query->with('countries');\n }", "public function expand($root);", "public function getIssue( $issueKey, $expand = '' );", "private function build_full_array_expansion()\n\t\t{\n\t\t\tif(is_array($this->listexpand) )\n\t\t\t{\n\t\t\t\t// Build expansion list to root for all item in listexpand array\n\t\t\t\twhile(list($key, $val) = each($this->listexpand))\n\t\t\t\t{\n\t\t\t\t\t$this->get_all_parent_to_root($key);\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t// At last, remove all duplicate entries\n\t\t\t\t$this->fulllistexpand = array_unique($this->fulllistexpand);\n\t\t\t}\n\t\t\t// Add focused item to expand list\n\t\t\tif($this->myfocus != null)\n\t\t\t{\n\t\t\t\t$this->get_all_parent_to_root($this->myfocus);\n\t\t\t}\n\t\t}", "function setRelationFields($id_field,$parent_id_field){\n $this->id_field = $id_field;\n $this->parent_id_field = $parent_id_field;\n return $this;\n }", "protected function __getter($scope, $field) {\n\t\t\t$nodes = $this->resource->xpath(\"/translators/translator[@name='{$this->name}']/fields/field[@name='{$field}' and @scope='{$scope}']\");\n\t\t\tif (count($nodes) > 0) {\n\t\t\t\t$attributes = $nodes[0]->attributes();\n\t\t\t\t$aggregated_field = new MappingService\\Data\\Field(MappingService\\Data\\FormatType::model());\n\t\t\t\t$items = $nodes->children();\n\t\t\t\tforeach ($items as $item) {\n\t\t\t\t\t$attributes = $item->attributes();\n\t\t\t\t\tif (!isset($attributes['name'])) {\n\t\t\t\t\t\tthrow new Throwable\\Parse\\Exception('Unable to parse \":scope\" method in translator.', array(':scope' => $scope));\n\t\t\t\t\t}\n\t\t\t\t\t$name = $this->__valueOf($attributes['name']);\n\t\t\t\t\tif (isset($attributes['location'])) {\n\t\t\t\t\t\t$segments = explode('.', $this->__valueOf($attributes['location']));\n\t\t\t\t\t\tif (count($segments) > 0) {\n\t\t\t\t\t\t\t$property = $this->models;\n\t\t\t\t\t\t\tforeach ($segments as $segment) {\n\t\t\t\t\t\t\t\t$property = $property->$segment;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$aggregated_field->putItem($name, $property);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (isset($attributes['translation'])) {\n\t\t\t\t\t$translation = $this->__valueOf($attributes['translation']);\n\t\t\t\t\treturn $translation::factory($aggregated_field)->toCanonicalFormat();\n\t\t\t\t}\n\t\t\t\treturn $aggregated_field;\n\t\t\t}\n\t\t}", "public function field($field)\n {\n $this->fields[] = self::quote_name($field);\n return $this;\n }", "public function readdField($field)\n\t{\n\t\t$this->checkValidLoader();\n\n\t\tforeach ($this->loaders as $loader => $fields)\n\t\t{\n\t\t\tif (in_array($field, $this->loaders[ $loader ]))\n\t\t\t{\n\t\t\t\tarray_splice($this->loaders[ $loader ], array_search($field, $this->loaders[ $loader ]), 1);\n\t\t\t}\n\t\t}\n\n\t\t$this->addField($field);\n\n\t\treturn $this;\n\t}", "public function setField($field) {\n $this->field = $field;\n return $this;\n }", "public function field($field) {\n\t array_push($this->parameters['field'], $field);\n\t $this->parameters['field'] = array_unique($this->parameters['field']);\n\t\treturn $this;\n\t}", "public function updateRelationship(Request $request, object $model, string $fieldName): bool;", "public function attachRelationship(Request $request, object $model, string $fieldName): bool;", "protected static function verifyField(SugarQuery $q, $field)\n {\n $ret = array();\n if (strpos($field, '.')) {\n // It looks like it's a related field that it's searching by\n list($linkName, $field) = explode('.', $field);\n\n $q->from->load_relationship($linkName);\n if (empty($q->from->$linkName)) {\n throw new SugarApiExceptionInvalidParameter(\"Invalid link $linkName for field $field\");\n }\n\n if ($q->from->$linkName->getType() == 'many') {\n // FIXME TY-1192: we have a problem here: we should allow 'many' links for related to match against\n // parent object but allowing 'many' in other links may lead to duplicates. So for now we allow 'many'\n // but we should figure out how to find if 'many' is permittable or not.\n // throw new SugarApiExceptionInvalidParameter(\"Cannot use condition against multi-link $linkName\");\n }\n\n $join = $q->join($linkName, array('joinType' => 'LEFT'));\n $table = $join->joinName();\n $ret['field'] = \"$table.$field\";\n\n $bean = $q->getTableBean($table);\n if (empty($bean)) {\n $bean = $q->getTableBean($linkName);\n }\n if (empty($bean) && $q->getFromBean() && $q->getFromBean()->$linkName) {\n $bean = BeanFactory::newBean($q->getFromBean()->$linkName->getRelatedModuleName());\n }\n if (empty($bean)) {\n throw new SugarApiExceptionInvalidParameter(\"Cannot use condition against $linkName - unknown module\");\n }\n } else {\n $bean = $q->from;\n }\n $defs = $bean->field_defs;\n\n if (empty($defs[$field])) {\n throw new SugarApiExceptionInvalidParameter(\"Unknown field $field\");\n }\n\n if (!$bean->ACLFieldAccess($field)) {\n throw new SugarApiExceptionNotAuthorized(\"Access for field $field is not allowed\");\n }\n\n $field_def = $defs[$field];\n\n if (!empty($field_def['source']) && $field_def['source'] == 'relate') {\n if (empty($field_def['rname']) || empty($field_def['link'])) {\n throw new SugarApiExceptionInvalidParameter(\"Field $field has invalid metadata, has source of relate\" .\n ' but is missing rname or link');\n }\n $relfield = $field_def['rname'];\n $link = $field_def['link'];\n return self::verifyField($q, \"$link.$relfield\");\n }\n\n $ret['bean'] = $bean;\n $ret['def'] = $field_def;\n\n return $ret;\n }", "function acf_get_sub_field($id, $field)\n{\n}", "public function aliasField(string $field): string;", "private function resolveField(\\GraphQL\\Type\\Definition\\ObjectType $parentType, $rootValue, \\ArrayObject $fieldNodes, array $path)\n {\n }", "public function resolveFormattedValue(): Field\n {\n $this->formattedValue = $this->getFormattedValue();\n\n return $this;\n }", "function f($field) {\n\t\treturn($this->fetchfield($field));\n\t}", "public function getExpanded() {}", "protected function autoSaveExpandableFieldsExtract(array &$aData)\n {\n $aFields = [];\n $aOut = [];\n $aExpandableFields = $this->getExpandableFields();\n\n foreach ($aExpandableFields as $oField) {\n if ($oField->auto_save) {\n $aFields[$oField->trigger] = $oField;\n }\n }\n\n foreach ($aData as $sKey => $mValue) {\n if (array_key_exists($sKey, $aFields)) {\n\n /**\n * For single type expandable fields, we only want to auto-save using the related\n * model if the item being passed is an object or an array (i.e data to create/update\n * the related item with) – if it's anything else (typically a numeric) we can conider\n * this an ID and update the current tabke rather than the target, related, table.\n */\n if (\n $aFields[$sKey]->type === static::EXPANDABLE_TYPE_SINGLE\n && !is_object($mValue)\n && !is_array($mValue)\n ) {\n continue;\n }\n\n $aOut[$sKey] = $aFields[$sKey];\n $aOut[$sKey]->data = $mValue;\n unset($aData[$sKey]);\n }\n }\n\n return $aOut;\n }", "abstract public function fields(AdminRequest $request);", "function load_field( $field ) {\n\t\t\n\t\t// min/max\n\t\t$field['min'] = (int) $field['min'];\n\t\t$field['max'] = (int) $field['max'];\n\t\t\n\t\t\n\t\t// vars\n\t\t$sub_fields = acf_get_fields( $field );\n\t\t\n\t\t\n\t\t// append\n\t\tif( $sub_fields ) {\n\t\t\t\n\t\t\t$field['sub_fields'] = $sub_fields;\n\t\t\t\n\t\t}\n\t\t\t\t\n\t\t\n\t\t// return\n\t\treturn $field;\n\t\t\n\t}", "public function extendFields(FieldCollection $collection): void\n {\n $collection->add(\n (new OneToOneAssociationField(\n 'oneToOneExtensionInheritanceDemo', \n 'id',\n 'product_id',\n OneToOneExtensionInheritanceDemoDefinition::class,\n true\n ))->addFlags(new CascadeDelete(), new Inherited())\n );\n\n // changing second parameter to 'parent_id' gives proper parent values but can no longer be saved.\n // $collection->add(\n // (new OneToOneAssociationField(\n // 'oneToOneExtensionInheritanceDemo', \n // 'parent_id',\n // 'product_id',\n // OneToOneExtensionInheritanceDemoDefinition::class,\n // true\n // ))->addFlags(new CascadeDelete(), new Inherited())\n // );\n\n // changing second parameter to 'oneToOneExtensionInheritanceDemo' gives proper parent values but can no longer be saved.\n // $collection->add(\n // (new OneToOneAssociationField(\n // 'oneToOneExtensionInheritanceDemo', \n // 'oneToOneExtensionInheritanceDemo',\n // 'product_id',\n // OneToOneExtensionInheritanceDemoDefinition::class,\n // true\n // ))->addFlags(new CascadeDelete(), new Inherited())\n // );\n }", "public function setField($field);", "public function setField($field);", "function acf_prepare_field_for_import($field)\n{\n}", "public function resolve($resource, $attribute = null)\n {\n $attribute = $attribute ?? $this->attribute;\n\n $value = $resource->{$attribute} ?? null;\n\n $value = is_object($value) || is_array($value) ? $value : json_decode($value);\n\n $fields = $this->fields->whereInstanceOf(Resolvable::class)->reduce(function ($values, $field) {\n return $values->map(function ($row) use ($field) {\n $key = $field->attribute;\n $cb = $field->resolveCallback;\n\n if ($field instanceof Date) {\n $cb = function ($value) {\n return \\Carbon\\Carbon::parse($value)->format('Y-m-d');\n };\n };\n\n if (isset($row->{$key})) {\n $row->{$key} = $cb ? call_user_func($cb, $row->{$key}) : $row->{$key};\n }\n\n if (property_exists($field, 'computeCallback') && $field->computeCallback) {\n $row->{$key} = call_user_func($field->computeCallback, $row);\n }\n\n return $row;\n });\n }, collect($value));\n\n if (!$this->resolveCallback) {\n $this->resolveCallback = function () use ($fields) {\n return $fields->toArray();\n };\n }\n\n $this->withMeta(['fields' => $this->fields]);\n\n parent::resolve($resource, $attribute);\n }", "public function setField($field)\n {\n $this->field = $field;\n return $this;\n }", "public function setField($field)\n {\n $this->field = $field;\n return $this;\n }", "public function expand(\n JellyfishOrderTransfer $jellyfishOrderTransfer,\n SpySalesOrder $salesOrder\n ): JellyfishOrderTransfer;", "public function fields($fields) {\n $this->_active_query->fields($fields);\n }", "abstract public function expand_all ($content);", "protected function replaceField(Field $field){\n }", "public function fieldOne(): BelongsTo\n {\n return $this->belongsTo(Field::class, 'field_one_id');\n }", "public function testWriteEntryWithExpandedEntry()\n\t{\n\t\t$expandedEntry = new ODataEntry();\n\t\t$expandedEntry->id = 'Expanded Entry 1';\n\t\t$expandedEntry->title = 'Expanded Entry Title';\n\t\t$expandedEntry->type = \"Expanded.Type\";\n\t\t$expandedEntry->editLink = \"Edit Link URL\";\n\t\t$expandedEntry->selfLink = \"Self Link URL\";\n\n\t\t$expandedEntry->mediaLinks = array(\n\t\t\tnew ODataMediaLink(\n\t\t\t\t'Media Link Name',\n\t\t\t\t'Edit Media link',\n\t\t\t\t'Src Media Link',\n\t\t\t\t'Media Content Type',\n\t\t\t\t'Media ETag'\n\t\t\t),\n\t\t\tnew ODataMediaLink(\n\t\t\t\t'Media Link Name2',\n\t\t\t\t'Edit Media link2',\n\t\t\t\t'Src Media Link2',\n\t\t\t\t'Media Content Type2',\n\t\t\t\t'Media ETag2'\n\t\t\t)\n\t\t);\n\n\t\t$expandedEntry->links = array();\n\t\t$expandedEntry->eTag = 'Entry ETag';\n\t\t$expandedEntry->isMediaLinkEntry = false;\n\n\n\t\t$pr1 = new ODataProperty();\n\t\t$pr1->name = 'fname';\n\t\t$pr1->typeName = 'string';\n\t\t$pr1->value = 'Yash';\n\n\t\t$pr2 = new ODataProperty();\n\t\t$pr2->name = 'lname';\n\t\t$pr2->typeName = 'string';\n\t\t$pr2->value = 'Kothari';\n\n\t\t$propCon1 = new ODataPropertyContent();\n\t\t$propCon1->properties = array($pr1, $pr2);\n\n\n\t\t$expandedEntryComplexProperty = new ODataProperty();\n\t\t$expandedEntryComplexProperty->name = 'Expanded Entry Complex Property';\n\t\t$expandedEntryComplexProperty->typeName = 'Full Name';\n\t\t$expandedEntryComplexProperty->value = $propCon1;\n\n\t\t$expandedEntryProperty1 = new ODataProperty ();\n\t\t$expandedEntryProperty1->name = 'Expanded Entry City Property';\n\t\t$expandedEntryProperty1->typeName = 'string';\n\t\t$expandedEntryProperty1->value = 'Ahmedabad';\n\n\t\t$expandedEntryProperty2 = new ODataProperty ();\n\t\t$expandedEntryProperty2->name = 'Expanded Entry State Property';\n\t\t$expandedEntryProperty2->typeName = 'string';\n\t\t$expandedEntryProperty2->value = 'Gujarat';\n\n\n\t\t$expandedEntry->propertyContent = new ODataPropertyContent();\n\t\t$expandedEntry->propertyContent->properties = array (\n\t\t\t$expandedEntryComplexProperty,\n\t\t\t$expandedEntryProperty1,\n\t\t\t$expandedEntryProperty2\n\t\t);\n\t\t//End the expanded entry\n\n\n\t\t//build up the main entry\n\n\t\t$entry = new ODataEntry();\n\t\t$entry->id = 'Main Entry';\n\t\t$entry->title = 'Entry Title';\n\t\t$entry->type = \"Main.Type\";\n\t\t$entry->editLink =\"Edit Link URL\";\n\t\t$entry->selfLink = \"Self Link URL\";\n\t\t$entry->mediaLinks = array(\n\t\t\tnew ODataMediaLink(\n\t\t\t\t'Media Link Name',\n\t\t\t\t'Edit Media link',\n\t\t\t\t'Src Media Link',\n\t\t\t\t'Media Content Type',\n\t\t\t\t'Media ETag'\n\t\t\t),\n\t\t\tnew ODataMediaLink(\n\t\t\t\t'Media Link Name2',\n\t\t\t\t'Edit Media link2',\n\t\t\t\t'Src Media Link2',\n\t\t\t\t'Media Content Type2',\n\t\t\t\t'Media ETag2'\n\t\t\t)\n\t\t);\n\n\t\t$entry->eTag = 'Entry ETag';\n\t\t$entry->isMediaLinkEntry = false;\n\n\t\t$entryProperty1 = new ODataProperty();\n\t\t$entryProperty1->name = 'Main Entry Property 1';\n\t\t$entryProperty1->typeName = 'string';\n\t\t$entryProperty1->value = 'Yash';\n\n\t\t$entryProperty2 = new ODataProperty();\n\t\t$entryProperty2->name = 'Main Entry Property 2';\n\t\t$entryProperty2->typeName = 'string';\n\t\t$entryProperty2->value = 'Kothari';\n\n\t\t$entry->propertyContent = new ODataPropertyContent();\n\t\t$entry->propertyContent->properties = array($entryProperty1, $entryProperty2);\n\t\t//End of main entry\n\n\n\t\t//Now link the expanded entry to the main entry\n\t\t$expandLink = new ODataLink();\n\t\t$expandLink->isCollection = false;\n\t\t$expandLink->isExpanded = true;\n\t\t$expandLink->title = \"Expanded Property\";\n\t\t$expandLink->url = \"ExpandedURL\";\n\t\t$expandLink->expandedResult = $expandedEntry;\n\t\t$entry->links = array($expandLink);\n\n\n\n\t\t$writer = new JsonLightODataWriter(JsonLightMetadataLevel::FULL, $this->serviceBase);\n\t\t$result = $writer->write($entry);\n\t\t$this->assertSame($writer, $result);\n\n\n\t\t//decoding the json string to test\n\t\t$actual = json_decode($writer->getOutput());\n\n\t\t$expected = '{\n\t\"odata.metadata\":\"http://services.odata.org/OData/OData.svc/$metadata#/@Element\",\n\t\"@odata.type\":\"Main.Type\",\n\t\"@odata.id\":\"Main Entry\",\n\t\"@odata.etag\":\"Entry ETag\",\n\t\"@odata.editLink\":\"Edit Link URL\",\n\t\"Expanded [email protected]\":\"ExpandedURL\",\n\t\"Expanded Property\":{\n\t\t\"@odata.type\":\"Expanded.Type\",\n\t\t\"@odata.id\":\"Expanded Entry 1\",\n\t\t\"@odata.etag\":\"Entry ETag\",\n\t\t\"@odata.editLink\":\"Edit Link URL\",\n\t\t\"Expanded Entry Complex Property\":{\n\t\t\t\"@odata.type\":\"Full Name\",\n\t\t\t\"fname\":\"Yash\",\n\t\t\t\"lname\":\"Kothari\"\n\t\t},\n\t\t\"Expanded Entry City Property\":\"Ahmedabad\",\n\t\t\"Expanded Entry State Property\":\"Gujarat\"\n\t},\n\t\"Main Entry Property 1\":\"Yash\",\n\t\"Main Entry Property 2\":\"Kothari\"\n}';\n\t\t$expected = json_decode($expected);\n\n\t\t$this->assertEquals(array($expected), array($actual), \"raw JSON is: \" . $writer->getOutput());\n\t}", "public function field($field)\n {\n $prefix = $this->containsSQLParts('field') ? self::LIST_DELIMITER : '';\n $this->unsafeAppendSQLPart('field', $prefix . $this->asTickedString($field));\n return $this;\n }", "public function accessEditEntityField(EntityInterface $entity, $field_name);", "public function getExpand(): ?array\n {\n return $this->expand;\n }", "public function getExpand(): ?array\n {\n return $this->expand;\n }", "public function getExpand(): ?array\n {\n return $this->expand;\n }", "public function getExpand(): ?array\n {\n return $this->expand;\n }", "public function populate()\r\n {\r\n $sForeignTable = $this->_schemaField->getForeignTable();\r\n $sForeignField = $this->_schemaField->getForeignField();\r\n $sForeignLabel = $this->_schemaField->getForeignLabelField();\r\n \r\n if (!empty($sForeignTable) && !empty($sForeignField) && !empty($sForeignLabel))\r\n {\r\n $oClass = system\\ClassManager::getInstance($sForeignTable);\r\n \r\n if ($oClass instanceof system\\abstractClasses\\Controller)\r\n {\r\n $oClass->populateForeignField($this->_schemaField, $this);\r\n }\r\n }\r\n \r\n// Debug::e($this->_options);\r\n }", "public function get_expandable() {\n return $this->expandable;\n }", "public function setExpandRoles($var)\n {\n GPBUtil::checkBool($var);\n $this->expand_roles = $var;\n\n return $this;\n }", "public function expandUpdateData(stdClass $update = null){\r\n $data = $update ? json_decode(json_encode($update),true) : json_decode($this->OriginalUpdate,true) ;\r\n $this->customise($data);\r\n return $this;\r\n }", "public function setDefaultExpand(array $extraFields)\n {\n $this->_defaultExpand = $extraFields;\n\n return $this->setExpand([]);\n }", "public function field(string $query = null): mixed;", "abstract public function expand_all ($content, $context);", "public function resolve( Field $field, $context, ResolveInfo $info, array $value = null, array $args = null )\n {\n $faqId = $this->getFaqId($args);\n return $this->dataProvider->getData($faqId);\n }", "public function withField($fieldName)\n {\n // DataModel_Definition::getField() will do the check\n $this->aFields[$fieldName] = $this->oDef->getField($fieldName);\n\n return $this;\n }" ]
[ "0.5810371", "0.55128986", "0.53675485", "0.53668153", "0.53414", "0.53272176", "0.53272176", "0.53272176", "0.53272176", "0.52809846", "0.517364", "0.5103886", "0.50457895", "0.50358224", "0.5032398", "0.50260675", "0.49838132", "0.49816963", "0.49793229", "0.4967043", "0.49482754", "0.49439135", "0.49231362", "0.49077076", "0.48978633", "0.48479065", "0.48409688", "0.48376268", "0.4829091", "0.4829091", "0.48236442", "0.48127088", "0.4806002", "0.4802478", "0.47892752", "0.4739457", "0.47339612", "0.4698546", "0.46692508", "0.46537125", "0.46418205", "0.46401155", "0.46103835", "0.46075857", "0.46069235", "0.45926264", "0.4567521", "0.4557811", "0.45491737", "0.45485055", "0.45417714", "0.45345357", "0.45322594", "0.45297894", "0.45295852", "0.45187888", "0.45174634", "0.45145035", "0.45128685", "0.4511607", "0.45077282", "0.45068625", "0.45011717", "0.4482327", "0.44726828", "0.44686797", "0.446552", "0.4462478", "0.4460202", "0.446014", "0.4459144", "0.44537854", "0.44409338", "0.44374466", "0.44374466", "0.44341952", "0.44324395", "0.44276744", "0.44276744", "0.44266438", "0.4425978", "0.44198048", "0.44106984", "0.44071844", "0.44033688", "0.44018754", "0.439972", "0.43971866", "0.43971866", "0.43971866", "0.43971866", "0.4395323", "0.43880036", "0.43823433", "0.43803513", "0.43753794", "0.43748933", "0.43623918", "0.4361998", "0.4361891" ]
0.54538196
2
Set the current page which should be used.
public function setPage($id) { return $this->setArgs(['page' => $id]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setCurrentPage( $page );", "function setCurrentPage($page) {\n $this->current_page = $page;\n }", "public function setCurrentPage($currentPage);", "public function setCurrentPage(int $currentPage): self;", "public function setCurrentPage($intValue = NULL) {\r\n\t\tif (is_null($intValue)) {\r\n\t\t\t$intPage = 1;\r\n\t\t\t$strRewrite\t= Request::get('rewrite');\r\n\t\t\tif (!empty($strRewrite) && mb_strpos($strRewrite, \"__page\") !== FALSE) {\r\n\t\t\t\t$strRewrite = rtrim($strRewrite, \" \\/\");\r\n\t\t\t\t$arrParams = explode(\"/\", $strRewrite);\r\n\t\t\t\t$intPage = array_pop($arrParams);\r\n\t\t\t} else {\r\n\t\t\t\t//*** Backwards compatibility.\r\n\t\t\t\t$intPage = Request::get(\"page\", 1);\r\n\t\t\t}\r\n\r\n\t\t\tif ($intPage > $this->pageCount() || $intPage < 1) $intPage = 1;\r\n\t\t\t$this->__currentPage = $intPage;\r\n\t\t} else {\r\n\t\t\t$this->__currentPage = $intValue;\r\n\t\t}\r\n\t}", "public function set_page($page);", "public function setCurrentPage($pageIdentifier);", "function set_current_url() {\r\n\t\t\t$this->current_url = $this->get_current_url();\r\n\t\t}", "public function setCurPage($curPage)\n {\n $this->curPage = $curPage;\n }", "public function setCurrentPage($page) {\n $this->_currentPage = $page;\n $this->reset();\n }", "public function setCurrentPage($current_page = 1)\n {\n $this->current_page = max(1, abs($current_page));\n return $this;\n }", "public function setCurrentPage($currentPage)\n {\n $this->currentPage = $currentPage;\n }", "private function setCurrentPage($currentPage)\n {\n // Get the page number\n $this->current_page = $currentPage;\n // If the current page is greater than zero\n if ($this->current_page > 0) {\n // If the current page is less than the total number of pages\n if ($this->current_page > $this->amount)\n // Set the page to the last one\n $this->current_page = $this->amount;\n } else\n // Set the page to first\n $this->current_page = 1;\n }", "public function setPage($page){\n $this->page=$page;\n }", "function setOnPage($value){\n\t\t$this->on_page = $value;\n\t}", "public function setPage($page){\n $this->page = $page;\n }", "function currentPage($newValue=NULL) {\n\t\tif ( isset($newValue) ) $this->current_page = IntVal($newValue);\n\t\treturn $this->current_page;\n\t}", "public function setPage(Page $page);", "public function setPage($page) {\n\t\t$this->page =$page;\n\t}", "public function setPage($value)\n {\n return $this->set('Page', $value);\n }", "public function setPage($value)\n {\n return $this->set('Page', $value);\n }", "public function setPage($value)\n {\n return $this->set('Page', $value);\n }", "public function setPage($value)\n {\n return $this->set('Page', $value);\n }", "public function setPage($value)\n {\n return $this->set('Page', $value);\n }", "public function setPage($value)\n {\n return $this->set('Page', $value);\n }", "public function setPage($value)\n {\n return $this->set('Page', $value);\n }", "public function setPage($value)\n {\n return $this->set('Page', $value);\n }", "public function setPage($value)\n {\n return $this->set('Page', $value);\n }", "public function setPage($value)\n {\n return $this->set('Page', $value);\n }", "public function setPage($value)\n {\n return $this->set('Page', $value);\n }", "public function setPage($value)\n {\n return $this->set('Page', $value);\n }", "public function setPage($value)\n {\n return $this->set('Page', $value);\n }", "public function setPage($value)\n {\n return $this->set('Page', $value);\n }", "public function setPage($value)\n {\n return $this->set('Page', $value);\n }", "public function setPage($value)\n {\n return $this->set('Page', $value);\n }", "public function setPage($value)\n {\n return $this->set('Page', $value);\n }", "public function setPage($value)\n {\n return $this->set('Page', $value);\n }", "public function setPage($value)\n {\n return $this->set('Page', $value);\n }", "public function setPage($value)\n {\n return $this->set('Page', $value);\n }", "public function setPage($value)\n {\n return $this->set('Page', $value);\n }", "public function setStartPage($page);", "public function setPage($page) {\n $this->page = $page;\n }", "public function setCurrentPage(int $currentPage)\n {\n $this->currentPage = $currentPage <= 0 ? 1 : $currentPage;\n }", "public function setPage($page)\n {\n $this->page = intval($page);\n \n if ($this->page == 0) {\n $this->page = 1;\n }\n }", "public function setPage($value)\n {\n return $this->set(self::page, $value);\n }", "public function setPage(int $page)\n {\n $this->page = $page;\n }", "public function getCurrentPage();", "public function getCurrentPage();", "public function getCurrentPage();", "private function markCurrentPage() {\n $this->pageReloadMarker = $this->randomMachineName();\n $this->getSession()->executeScript('document.body.appendChild(document.createTextNode(\"' . $this->pageReloadMarker . '\"));');\n }", "public function setCurrentPage(Page $page = null)\n {\n $this->_currentpage = $page;\n\n return $this;\n }", "public function setCurrentPage($numeroPage){\n\t\tif(intval($numeroPage) != $numeroPage || $numeroPage <= 0)\n\t\t\treturn false;\n\n\t\t$this->_currentPage = $numeroPage;\n\t}", "private function refreshCurrentPage()\n {\n $this->_currentPage = $this->_limit ? floor($this->_offset/$this->_limit) + 1 : 1;\n }", "private function setPage(){\n\t if(!empty($_GET['page'])){\n\t if($_GET['page']>0){\n\t if($_GET['page'] > $this->pagenum){\n\t return $this->pagenum;\n\t }else{\n\t return $_GET['page'];\n\t }\n\t }else{\n\t return 1;\n\t }\n\t }else{\n\t return 1;\n\t }\n\t }", "public function setCurrent($current)\n {\n if (!empty($current))\n $this->current = $current;\n }", "public static function setPage($page)\n {\n if(isset($page) && !empty($page)){\n self::$page = $page;\n }\n }", "function get_one_page(){\n\t\t$this->m_n_current_page_number = gf_get_value_n('v_current_page_number');\n\t}", "public function setPage(int $page): void\n {\n $this->page = $page;\n }", "function CurrentPage ( )\n{\n return $this->_CurrentPage;\n}", "abstract protected function setPreviousPage();", "public function setCurrentPage($currentPage)\n\t{\n\t\t$this->currentPage = $currentPage;\n\t\treturn $this;\n\t}", "public function set_page_id() {\n\n\t\t\t$page_id = false;\n\t\t\t$object_id = get_queried_object_id();\n\n\t\t\tif ( get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) && is_home() ) {\n\t\t\t\t$page_id = get_option( 'page_for_posts' );\n\t\t\t} else {\n\n\t\t\t\t// Use the $object_id if available.\n\t\t\t\tif ( isset( $object_id ) ) {\n\t\t\t\t\t$page_id = $object_id;\n\t\t\t\t}\n\n\t\t\t\t// If we're not on a singular post, set to false.\n\t\t\t\tif ( ! is_singular() ) {\n\t\t\t\t\t$page_id = false;\n\t\t\t\t}\n\n\t\t\t\t// Front page is the posts page.\n\t\t\t\tif ( isset( $object_id ) && 'posts' == get_option( 'show_on_front' ) && is_home() ) {\n\t\t\t\t\t$page_id = $object_id;\n\t\t\t\t}\n\n\t\t\t\t// The woocommerce shop page.\n\t\t\t\tif ( class_exists( 'WooCommerce' ) && ( is_shop() || is_tax( 'product_cat' ) || is_tax( 'product_tag' ) ) ) {\n\t\t\t\t\t$page_id = get_option( 'woocommerce_shop_page_id' );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->current_page_id = $page_id;\n\n\t\t\treturn $page_id;\n\t\t}", "public function setCurrent($page)\n {\n $this->currentPage = (int) $page;\n return $this;\n }", "public function set_current_screen()\n {\n }", "protected function decksSelectPage()\n {\n $request = $this->request();\n\n $this->result()\n ->changeRequest('decks_current_page', $request['decks_select_page'])\n ->setCurrent('Decks_shared');\n }", "function getCurrentPage() { return $this->m_currentPage; }", "protected function set_page($page){\n self::$page_name = $page;\n }", "function getCurrentPage() {\n return $this->current_page;\n }", "protected function getCurrentPage() {\n if (isset($this->data['page'])) return $this->data['page'];\n else return 1;\n }", "protected function redirectToCurrentPage() {}", "private function setCurrentPath(){\n\t\t$dirs = explode('/', $this->pages[0]);\n\t\t// if last character is a / then just use it\n\t\tif(empty($dirs[count($dirs)-1]) || is_null($dirs[count($dirs)-1])){\n\t\t\t$this->current_path = $this->pages[0];\n\t\t// if end of path was a filename, remove it and add a /\n\t\t} else {\n\t\t\tarray_pop($dirs);\n\t\t\t$this->current_path = implode('/', $dirs).'/';\n\t\t}\n\t}", "public function setCurrentPage(int $currentPage) : self\n {\n $this->currentPage = $currentPage;\n return $this;\n }", "public function setCurrentPage($number)\n\t{\n\t\t$this->_currentPage = (int) $number;\n\t\treturn $this;\n\t}", "function setAsStartPageObject()\n\t{\n\t\tglobal $ilCtrl, $lng;\n\n\t\t$this->checkPermission(\"write\");\n\n\t\tif (!is_array($_POST[\"imp_page_id\"]) || count($_POST[\"imp_page_id\"]) != 1)\n\t\t{\n\t\t\tilUtil::sendInfo($lng->txt(\"wiki_select_one_item\"), true);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->object->removeImportantPage((int) $_POST[\"imp_page_id\"][0]);\n\t\t\t$this->object->setStartPage(ilWikiPage::lookupTitle((int) $_POST[\"imp_page_id\"][0]));\n\t\t\t$this->object->update();\n\t\t\tilUtil::sendSuccess($this->lng->txt(\"msg_obj_modified\"),true);\n\t\t}\n\t\t$ilCtrl->redirect($this, \"editImportantPages\");\n\t}", "public function setPage($page)\n\t{\n\t\tif((int) $page == 0)\n\t\t{\n\t\t\t$page = 1;\n\t\t}\n\t\t$this->page = $page;\n\t\t// (re-)calculate start rec\n\t\t//$this->calculateStart();\n\t}", "public function setMainContentOfPage($value)\n {\n $this->mainContentOfPage = $value;\n }", "public function getCurrentPage()\r\n\t{\r\n\t\treturn $this->current_page;\r\n\t}", "public function set_page($page) {\n $this->list_page = (int) $page;\n }", "public function setFoundPage($value) { $this->_foundpage = $value; }", "public function setPageID(){/*ACTUALLY NOT DEFINED*/}", "function firstPage()\n\t\t{\n\t\t\t$this->currentPage = 1;\n\t\t}", "public function setCurrentPage($page)\n {\n $this->pageStart = ((int)$page - 1) * $this->getPageLength();\n return $this;\n }", "public function setPage($value) {\n return $this->setParameter('page', $value);\n }", "public function setPage($value) {\n return $this->setParameter('page', $value);\n }", "public function setPage($value)\n\t{\n\t\t$this->searchFilters[$this->ref_page] = $value;\n\t}", "public function getCurrentPage(): int;", "public function getCurrentPage(): int;", "public function getCurrentPage()\n {\n return $this->_currentpage;\n }", "protected function setPage_id($value)\n\t{\n\t\t$this->page_id = $value;\n\t}", "public function setDefaultPage($page) {\n $this->values->put('DefaultPage', $page);\n }", "public function getCurrentPage()\n {\n return $this->currentPage;\n }", "public function setCurrent(bool $current): void {\n\t\t$this->current = $current;\n\t}", "public function getCurrentPage() {\n\t\treturn $this->currentPage;\n\t}", "public function setCurrentPage($currentPage)\n {\n if (is_int($currentPage) === false) {\n throw new Exception('Invalid parameter type.');\n }\n $this->_page = $currentPage;\n }", "public function testSetPage()\n {\n $viewCounterServiceMock = $this->getMockBuilder(ViewCounter::class)\n ->setConstructorArgs([$this->counterManagerMock, $this->requestStackMock, $this->viewcounterConfigMock])\n ->setMethods(['setPage'])\n ->getMock();\n\n $viewCounterServiceMock\n ->expects($this->once())\n ->method('setPage')\n ->with($this->pageMock)\n ->willReturn($viewCounterServiceMock);\n\n $viewCounterService = $this->invokeMethod($viewCounterServiceMock, 'setPage', [$this->pageMock]);\n\n $this->assertTrue($viewCounterService instanceof AbstractViewCounter);\n }", "public function setPage($value)\n {\n return $this->setParameter('page', $value);\n }", "public function setPageNum($num) {\n\t\t$this->pageNum = (int) $num;\t\n\t}", "public function getCurrentPage()\n\t{\n\t\tif (!$this->currentPage)\n\t\t{\n\t\t\t$this->currentPage = 1;\n\t\t}\n\t\treturn $this->currentPage;\n\t}", "public function getCurrentPage()\r\n {\r\n return $this->_currentPage;\r\n }", "public function currentPage(){\n return $this->page;\n }", "public function getCurrentPage() {\r\n\t\treturn $this->_currentPage;\r\n\t}" ]
[ "0.8120011", "0.79944986", "0.751966", "0.73094565", "0.7223202", "0.71528757", "0.71011853", "0.7072986", "0.7023946", "0.6986984", "0.6969772", "0.6896556", "0.68702805", "0.6800068", "0.67811006", "0.6778331", "0.67495567", "0.6749504", "0.67475575", "0.67376894", "0.67376894", "0.67376894", "0.67376894", "0.67376894", "0.67376894", "0.67376894", "0.67376894", "0.67376894", "0.67376894", "0.67376894", "0.67376894", "0.67376894", "0.67376894", "0.67376894", "0.67376894", "0.67376894", "0.67376894", "0.67376894", "0.67376894", "0.67376894", "0.6711757", "0.6693924", "0.6667352", "0.6599515", "0.65911204", "0.653124", "0.6527871", "0.6527871", "0.6527871", "0.6497246", "0.64963233", "0.6492839", "0.6491522", "0.64904594", "0.6477102", "0.6475731", "0.6465717", "0.6437619", "0.64143556", "0.638617", "0.6356621", "0.6354984", "0.63385594", "0.6327158", "0.63122606", "0.63101184", "0.63018894", "0.62849796", "0.6273077", "0.62727094", "0.62701005", "0.6268187", "0.6247469", "0.6245525", "0.6242913", "0.62225044", "0.6219969", "0.6217499", "0.61247355", "0.6122276", "0.6114079", "0.6103886", "0.6099926", "0.6099926", "0.6090265", "0.6087576", "0.6087576", "0.6083305", "0.60823894", "0.60801876", "0.6068433", "0.60663354", "0.60640025", "0.60588133", "0.6033379", "0.6029812", "0.60149205", "0.60089296", "0.60082364", "0.5984244", "0.59741414" ]
0.0
-1
Set a value of how many items to response for every page.
public function setPerPage($rows) { return $this->setArgs(['per-page' => $rows]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function MyMod_Paging_NPages_Set()\n {\n if ($this->NumberOfItems>$this->NItemsPerPage)\n {\n $this->MyMod_Paging_N=intval($this->NumberOfItems/$this->NItemsPerPage);\n $res=$this->NumberOfItems % $this->NItemsPerPage;\n if ($res>0) { $this->MyMod_Paging_N++; }\n }\n elseif ($this->NumberOfItems>0)\n {\n $this->MyMod_Paging_N=1;\n }\n else\n {\n $this->MyMod_Paging_N=0;\n }\n }", "private function setNumberOfPages(): void\n {\n $this->number_of_pages = (int)ceil($this->number_of_records / $this->per_page);\n }", "function set_num_items($num){\n $this -> num_of_items = $num;\n }", "function MyMod_Paging_NItemsPerPage_Set()\n {\n $val=$this->CGI_VarValue($this->ModuleName.\"_NItemsPerPage\");;\n if (!empty($val) && preg_match('/^\\d+$/',$val))\n {\n $this->NItemsPerPage=$val;\n }\n }", "private function getNumPages() {\n //display all in one page\n if (($this->limit < 1) || ($this->limit > $this->itemscount)) {\n $this->numpages = 1;\n } else {\n //Calculate rest numbers from dividing operation so we can add one\n //more page for this items\n $restItemsNum = $this->itemscount % $this->limit;\n //if rest items > 0 then add one more page else just divide items\n //by limit\n $restItemsNum > 0 ? $this->numpages = intval($this->itemscount / $this->limit) + 1 : $this->numpages = intval($this->itemscount / $this->limit);\n }\n }", "private function refreshNbPages()\n {\n $this->_nbPages = $this->_limit ? ceil($this->_count/$this->_limit) : 0;\n }", "public function SetNumPages()\n\t\t{\n\t\t\t$this->_pricenumpages = ceil($this->GetNumProducts() / GetConfig('CategoryProductsPerPage'));\n\t\t}", "public function itemsperpageAction()\r\n {\r\n $itemCountPerPageSession = new Zend_Session_Namespace('itemCountPerPage');\r\n $itemCountPerPageSession->itemCountPerPage['citype'] = $this->_getParam('rowCount');\r\n $this->_redirect('citype/index');\r\n exit;\r\n }", "private function setNumResults()\n\t{\n\t\t$this->numResults = (int) count($this->data);\n\t}", "public function setElementsPerPage($count);", "private function setTotalPages()\n {\n $this->totalPages = ceil($this->totalData / $this->limit);\n }", "function setPageSize($value)\n {\n $this->_props['PageSize'] = $value;\n }", "public function setItemsPerPage($items);", "protected function getItemsNumber() {\n\t\treturn 20;\n\t}", "protected function applyItems()\n\t{\n\t\t$value = (int)$this->itemsPerPage;\n\n\t\tif ($value == 0) {\n\t\t\t$this->itemsPerPage = $this->paginator->itemsPerPage = count($this->dataSource);\n\t\t} else {\n\t\t\t$this->itemsPerPage = $this->paginator->itemsPerPage = $value;\n\t\t}\n\t}", "public function incResponseCount()\n {\n $incResponse = (int) $this->attribute( 'response_count' );\n $incResponse++;\n $this->setAttribute( 'response_count', $incResponse );\n $this->store();\n }", "function setRecordsPerPage($count) {\n $this->records_per_page = $count;\n}", "public function setPerPage($value){\n setcookie($this->main->module_mode.'_list_per_page_limit', $value, time() + 3600 * 24 * 365, '/admin/');\n $this->per_page = $value;\n }", "public function setItemCountPerPage($n = -1) {\n\t\t$this->setJqueryParam('iDisplayLength', $n);// paramètre jquery\n\t\treturn parent::setItemCountPerPage($n);\n\t}", "function set_lines_per_page ($lines_per_page)\r\n {\r\n $_SESSION[\"lines_per_page\"] = $lines_per_page;\r\n }", "public function getPageCount() \r\n { \r\n }", "public function setItemCount($value)\n {\n return $this->set(self::_ITEM_COUNT, $value);\n }", "private function setTotalPages()\r\n\t{\r\n\t\t$this->total_pages = ceil($this->num_rows / $this->rows_per_page);\r\n\t}", "function getPageCount() { return $this->m_pageCount; }", "public function numberOfItems();", "public function setTotalItemCount($totalItemCount);", "public function pages()\n\t{\n\t\treturn ceil($this->_count_total / $this->config['total_items']);\n\t}", "public function setItemCount($val)\n {\n $this->_propDict[\"itemCount\"] = $val;\n return $this;\n }", "public function getItemsPerPage();", "public function getItemsPerPage();", "public function setPageItems($intValue) {\r\n\t\t$this->__pageItems = $intValue;\r\n\r\n\t\t$this->setCurrentPage();\r\n\t\t$this->seek($this->pageStart() - 1);\r\n\t}", "public function getPerPage(): int;", "public function render_per_page_options()\n {\n }", "public function countItems();", "function itemsPerPage($newValue=NULL) {\n\t\tif ( isset($newValue) ) {\n\t\t\tif ( $newValue == \"all\" ) $this->items_per_page = $this->TotalItems();\n\t\t\telse $this->items_per_page = IntVal($newValue);\n\t\t}\n\t\tif ( $this->items_per_page == 0 ) $this->items_per_page = 5;\n\t\treturn $this->items_per_page;\n\t}", "public function pageCount() {\r\n\t\tif ($this->__pageItems > 0) {\r\n\t\t\t$intReturn = ceil(count($this->collection) / $this->__pageItems);\r\n\t\t} else {\r\n\t\t\t$intReturn = 1;\r\n\t\t}\r\n\r\n\t\treturn $intReturn;\r\n\t}", "function set_pagination() {\n\t\tglobal $wp_query;\n\n\t\treturn (int) $wp_query->get( 'posts_per_page' );\n\t}", "public function setItemsPerPage( $newValue )\n {\n $this->_properties['ItemsPerPage'] = $newValue;\n }", "public function setCount($countIn) {$listCount = $countIn;}", "public function totalPage();", "public function setPageSize($value)\n {\n return $this->set(self::page_size, $value);\n }", "private function calcNumPages()\n\t{\n\t\t$this->totalPages=ceil($this->totalRecords/$this->recordsPerPage);\n\t}", "protected function checkForMorePages()\n {\n $this->hasMore = $this->items->count() > $this->limit;\n\n $this->items = $this->items->slice(0, $this->limit);\n }", "public function handleSetItemsPerPage($perPage){\n $this->perPage = $perPage;\n }", "public function pagesize() { return 15; }", "function getPageCount() {\n return $this->helper->getPageCount();\n }", "function getPageCount() {\n return $this->helper->getPageCount();\n }", "public function testModSelectCountPages()\n {\n $this->todo('stub');\n }", "public function setPageLimit($number = null);", "public function handleItems($value)\n\t{\n\t\tif ($value < 0) {\n\t\t\tthrow new \\InvalidArgumentException(\"Parametr must be non-negative number, '$value' given.\");\n\t\t}\n\t\t$this->itemsPerPage = $value;\n\n\t\t$this->finalize();\n\t}", "public function getPageSize();", "public function setCountHits(?int $value): void {\n $this->getBackingStore()->set('countHits', $value);\n }", "function getEventCount($per_page){\n\t\t//return ceil($count / $per_page); \n\t\treturn 3;\n\t}", "private function setPageCount($pageCount) {\n $this->pageCount = $pageCount;\n }", "public function pageAction()\n {\n $page = $this->getRequest()->getParam('page', 1);\n $count = $this->getRequest()->getParam('count', 20);\n $collectionJson = Mage::helper('neklo_productposition/product')->getCollectionJson($page, $count);\n $this->getResponse()->setBody($collectionJson);\n $this->getResponse()->clearHeaders()->setHeader('Content-type', 'application/json', true);\n }", "private function set_per_page($intCount = 10)\n {\n $this->arrPayload['count'] = $intCount;\n\n if (isset($this->arrSearch['count'])) {\n $this->arrPayload['count'] = $this->arrSearch['count'];\n }\n\n return $this;\n }", "public function count()\n {\n return count($this->pages);\n }", "public function getPerPage();", "public function setPageResults($results,$resultsCount) {\n $this->calculatePageCount($resultsCount);\n $this->pageResults = $results;\n }", "public function recordsperpageAction() {\n\t\t$this->_helper->ajaxgrid->setRowNum ();\n\t}", "public function recordsperpageAction() {\n\t\t$this->_helper->ajaxgrid->setRowNum ();\n\t}", "public function getItemCountPerPage() {\n return $this->_itemCountPerPage;\n }", "protected function get_items_per_page($option, $default_value = 20)\n {\n }", "function setCount( $value )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n $this->Count = $value;\n setType( $this->Count, \"integer\" );\n }", "function on_page($num_items, $per_page, $start)\n{\n\tglobal $template, $user;\n\n\t// Make sure $per_page is a valid value\n\t$per_page = ($per_page <= 0) ? 1 : $per_page;\n\n\t$on_page = floor($start / $per_page) + 1;\n\n\t$template->assign_vars(array(\n\t\t'ON_PAGE'\t\t=> $on_page)\n\t);\n\n\treturn sprintf($user->lang['PAGE_OF'], $on_page, max(ceil($num_items / $per_page), 1));\n}", "function number_of_elements() {\n return count($this->page_object);\n }", "function MyMod_Paging_Page_No_2_Item_Nos()\n {\n if ($this->NumberOfItems>$this->NItemsPerPage)\n {\n if ($this->MyMod_Paging_Active_ID && $this->MyMod_Paging_Active_ID>0)\n {\n $this->FirstItemNo=0;\n foreach ($items as $id => $item)\n {\n if ($item[ \"ID\" ]==$this->MyMod_Paging_Active_ID)\n {\n $this->FirstItemNo=$id;\n $this->OffSet=$this->NumberOfItems;\n }\n }\n }\n else\n {\n if ($this->MyMod_Paging_No==0)\n {\n $this->FirstItemNo=0;\n $this->OffSet=$this->NumberOfItems;\n }\n elseif\n (\n preg_match('/\\d+/',$this->MyMod_Paging_No)\n &&\n $this->MyMod_Paging_No>0\n )\n {\n $res=$this->NItemsPerPage % $this->NumberOfItems;\n\n $this->FirstItemNo=($this->MyMod_Paging_No-1)*$this->NItemsPerPage;\n $this->OffSet=$res;\n }\n else\n {\n $this->FirstItemNo=0;\n $this->OffSet=0;\n }\n }\n }\n else\n {\n $this->FirstItemNo=0;\n $this->OffSet=$this->NumberOfItems;\n }\n\n $this->LastItemNo=$this->FirstItemNo+$this->OffSet;\n }", "public function setItemCountPerPage($itemCountPerPage)\n\t{\n\t\t$this->itemCountPerPage = (integer) $itemCountPerPage;\n\n\t\tif ($this->itemCountPerPage < 1) {\n\t\t\t$this->itemCountPerPage = 1;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function getNbPages(): int;", "public function getPageItems()\n {\n }", "function __construct($itemscount=0) {\n $this->itemscount = $itemscount;\n //get params from request URL\n $this->getParamsFromRequest();\n //Calculate number of pages total\n $this->getNumPages();\n //Calculate first shown item on current page\n $this->calculateOffset();\n }", "protected function calcNbPages()\n {\n if (!is_null($this->nbPerPage) && !is_null($this->nbResults)) {\n $this->nbPages = ceil($this->nbResults / $this->nbPerPage);\n }\n }", "public function setCount($value)\n {\n return $this->set('Count', $value);\n }", "public function setCount($value)\n {\n return $this->set('Count', $value);\n }", "function so22835795_loop_shop_per_page() {\n return -1; //return any number, -1 === show all\n }", "public function getNumItems (){\n return $this->numItems;\n }", "function bt_new_loop_shop_per_page( $cols ) {\n // $cols contains the current number of products per page based on the value stored on Options -> Reading\n // Return the number of products you wanna show per page.\n $cols = 12;\n return $cols;\n}", "public function setLimit($x) { $this->limit = $x; }", "public function setItemCount(int $itemCount) : self\n {\n $this->initialized['itemCount'] = true;\n $this->itemCount = $itemCount;\n return $this;\n }", "public function setCount($value) {\n return $this->set(self::COUNT, $value);\n }", "function email_manage_mailsperpage() {\n\tglobal $SESSION;\nprint_object($_POST);\n\tif ( ! empty( $_POST['perpage'] ) and is_int($_POST['perpage']) ) {\n\t\t$SESSION->email_mailsperpage = $_POST['perpage'];\n\t\techo 'Change for: '.$_POST['perpage'];\n\t} else {\n\t\t$SESSION->email_mailsperpage = 10; // Default value\n\t}\n}", "private function getNumPages() {\n\n return $this->rowCount / $this->limit;\n }", "public function getPage_count() {\n return $this->page_count;\n }", "public function getQtyPages()\n {\n }", "public function getQtyPages()\n {\n }", "public function getQtyPages()\n {\n }", "public function getQtyPages()\n {\n }", "public function setPerPage(Request $request)\n {\n $value = $request->query($this->PER_PAGE_INDICATOR);\n\n if (!is_null($value)) {\n if (!is_numeric($value)) {\n return $value;\n }\n\n $this->perPage = $value === '0' ? null : intval($value);\n }\n }", "public function count()\n\t{\n\t\treturn count($this->_pages);\n\t}", "protected function setItems($items)\n {\n $this->items = $items instanceof Collection ? $items : Collection::make($items);\n\n $this->hasMore = $this->items->count() > $this->perPage;\n\n $this->items = $this->items->slice(0, $this->perPage);\n\n if (! is_null($this->cursor) && $this->cursor->pointsToPreviousItems()) {\n $this->items = $this->items->reverse()->values();\n }\n }", "public function set_posts_per_page(int $number) {\n\t\t$this->posts_per_page = $number;\n\t}", "public function count()\n {\n return $this->pager->count();\n }", "public function setPerPage($perPage);", "private function _count_page()\n {\n $count_career = $this->core_model->count('career');\n return ceil($count_career / 4);\n }", "public function setCount($value)\n {\n return $this->set(self::COUNT, $value);\n }", "protected function perPage(): int\n {\n return $this->perPage;\n }", "public function getCount()\n {\n return $this->count++;\n }", "function getPageSize()\n {\n return $this->_props['PageSize'];\n }", "public function testMultiPageCount()\n {\n $this->mockHandler->append(\n new Response(200, [], fopen(TEST_RESOURCE_PATH . '/http/drupal_org_major_bugs_0', 'r')),\n new Response(200, [], fopen(TEST_RESOURCE_PATH . '/http/drupal_org_major_bugs_1', 'r')),\n new Response(200, [], fopen(TEST_RESOURCE_PATH . '/http/drupal_org_major_bugs_2', 'r')),\n new Response(200, [], fopen(TEST_RESOURCE_PATH . '/http/drupal_org_major_bugs_3', 'r')),\n new Response(200, [], fopen(TEST_RESOURCE_PATH . '/http/drupal_org_major_bugs_4', 'r')),\n new Response(200, [], fopen(TEST_RESOURCE_PATH . '/http/drupal_org_major_bugs_5', 'r'))\n );\n\n $issueCount = $this->issueCounter->getCounts(\n [\n 'status' => [\n 1, // Active\n 13, // Needs work\n 8, // Needs review\n 14, // Reviewed & tested by the community\n 15, // Patch (to be ported)\n 4, // Postponed\n ],\n ],\n [\n 'major_bugs' => [\n 'priorities' => [300],\n 'categories' => [1],\n ],\n ]\n );\n\n $this->assertEquals(271, $issueCount['major_bugs']);\n }", "function get_lines_per_page ()\r\n {\r\n return $_SESSION[\"lines_per_page\"];\r\n }", "protected function getPageSize(): int\n {\n // Allow .env file to specify needed size first\n return (int)env('API_CURRENCY_LIST_PAGE_SIZE', static::PAGE_SIZE);\n }" ]
[ "0.7513619", "0.7227682", "0.70935506", "0.7087965", "0.704655", "0.69347864", "0.68795574", "0.6850418", "0.68500185", "0.6842582", "0.66863954", "0.66695243", "0.65117913", "0.64966804", "0.6494585", "0.6464908", "0.64453596", "0.6410382", "0.63779384", "0.63640356", "0.6340106", "0.63341904", "0.6307601", "0.62179077", "0.6212548", "0.61987936", "0.61974776", "0.61473984", "0.6128242", "0.6128242", "0.6097648", "0.6070717", "0.6069711", "0.6062821", "0.6006243", "0.5997081", "0.5974008", "0.596814", "0.59160596", "0.59150505", "0.5909791", "0.59023833", "0.59001386", "0.58978635", "0.58808774", "0.5855982", "0.5855982", "0.58526915", "0.5851933", "0.58502436", "0.58398354", "0.5826987", "0.58115417", "0.5803942", "0.57906693", "0.5789776", "0.5783693", "0.5766829", "0.57655644", "0.57576513", "0.57576513", "0.5755392", "0.5753423", "0.5747693", "0.57411665", "0.5740511", "0.57389146", "0.57363874", "0.5734186", "0.5733775", "0.5731235", "0.5728077", "0.5725759", "0.5725759", "0.5724816", "0.57240605", "0.57164997", "0.57153136", "0.5703132", "0.57004285", "0.5699194", "0.5686285", "0.56689274", "0.5666068", "0.5666068", "0.5666068", "0.5666068", "0.56657326", "0.5664348", "0.5661855", "0.565858", "0.565825", "0.56514406", "0.56467164", "0.5646138", "0.56399226", "0.5632525", "0.56304735", "0.5630375", "0.5630267", "0.56239176" ]
0.0
-1
Provides the option to return only a certain amount of fields. This can speed up the request and reduce the transfer amount of data.
public function setFields(array $fields) { return $this->setArgs(['fields' => implode(",", $fields)]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fetchFields();", "public function fetch_fields() {}", "public function getFields() {}", "public function getFields() {}", "public function getFields() {}", "public function numberOfFields();", "function getFields($table,$fields=\"\",$condition=\"\",$limit=\"\",$calculateRows=false,$fastHint=false);", "public function getAllFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function fields();", "public function fields();", "public function fields();", "public function fields();", "public function fields();", "protected function restrict_fields()\n {\n }", "abstract public function getFields();", "abstract public function getFields();", "function getFields();", "public static function get_fields()\n {\n }", "abstract public function fields();", "public function include_fields()\n {\n }", "public function numOfFields();", "abstract protected function getFields();", "function numFields( $res );", "abstract public function filterFields();", "abstract public function supported_fields();", "public function getIncomingFields() {}", "function rest_filter_response_fields($response, $server, $request)\n {\n }", "public function getListFields();", "function CountOptionalFields()\n {\n $count = 0;\n for ($i = 1; $i <= 20; $i++) {\n $field = 'optional_field_' . $i;\n if ($this->fields->$field->is_enabled) {\n $count = $i;\n }\n }\n\n $this->max_optional_fields = $count;\n }", "public function numFields();", "public abstract function GetFieldCount();", "public function fields(string ...$fields): static\n {\n return $this->withPropertyItem('opts', new FieldsOption($fields));\n }", "abstract function fields();", "public function get_fields($count = false) {\n \n $return = '';\n \n $i = 0;\n foreach($this->get('fields') as $field) \n {\n if($count === true AND $i == 0) \n {\n $return .= 'SQL_CALC_FOUND_ROWS(`' . $field->name . '`), ';\n $i = 1;\n } \n else\n {\n $return .= $field->name . ', ';\n }\n }\n \n return substr($return, 0, -2);\n \n }", "public function getAdditionalFields()\n {\n return $this->postRequest('GetAdditionalFields');\n }", "public function getParameterFields()\n {\n return false;\n }", "public function num_fields() {\r\n return $this->num_fields;\r\n }", "abstract public function fields(AdminRequest $request);", "public function getContactDataFields();", "protected function getFieldsFromShowItem() {}", "public function getFieldsList(){\n return $this->_get(1);\n }", "abstract protected function fields();", "abstract protected function fields();", "public function num_fields()\r\n {\r\n return $this->num_fields;\r\n }", "public abstract function queryModelFields($fields, \\MPF\\Db\\Page $page = null);", "public function useAllFields() {\n $this->__onlyFields = array();\n }", "public function get_fields_for_response($request)\n {\n }", "abstract public function getNumFields();", "abstract protected function _getFeedFields();", "public function getFields(): array;", "public function getFields(): array;", "public function getFields(): array;", "function get_field_list()\n\t{\n\t\t$fields = array();\n\n\n\t\t$this->xhr_output($fields);\n\t}", "abstract public function getFields(): array;", "protected function setSelectFields() : ApiGetService\n {\n if(count($this->fields) === 0){\n return $this;\n }\n\n $this->builder\n ->select($this->fields);\n\n return $this;\n }", "public function getAllFields()\n {\n return $this->fields;\n }", "abstract function fields_options();", "public function fields($fields) {\n $this->_active_query->fields($fields);\n }", "public function loadAllFieldsData()\n {\n // prepare request\n $sth = self::$connection->prepare('SELECT * FROM fields ORDER BY field_order ASC');\n // run it\n $sth->execute();\n\n // check if not empty or error\n if (self::$data = $sth->fetchAll(PDO::FETCH_ASSOC)) {\n // return answer\n return self::$data;\n }\n\n return false;\n }", "public function fields()\n {\n $fullResult = $this->client->call(\n 'crm.invoice.fields'\n );\n return $fullResult;\n }", "abstract public function getFieldsSearchable();", "public function getFields() : FieldCollection;", "public function fields() {\n return $this->fields;\n }", "public function buildFields() {\n }", "public function hasFields(){\n return $this->_has(1);\n }", "public function getAllFields() {\n\t\t\t// Database Connection\n\t\t\t$db\t\t\t\t= $GLOBALS['db_q'];\n\t\t\t// Initialize variables\n\t\t\t$return\t\t\t= false;\n\t\t\t// Query set up\t\n\t\t\t$table\t\t\t= 'tb_field';\n\t\t\t$select_what\t= 'id, vc_field AS vc_name';\n\t\t\t$conditions\t\t= \"1 ORDER BY vc_field ASC\";\n\t\t\t$return\t\t\t= $db->getAllRows_Arr($table, $select_what, $conditions);\n\t\t\t// Return\n\t\t\treturn $return;\n\t\t}", "public function fields($fields) {\n\t\t$this->_body['fields'] = $fields;\n\t\treturn $this ;\n\t}", "public function pagesize() { return 15; }", "abstract public function getFields($entity);", "public function providedFields();", "protected function fetch_fields()\n {\n if(empty($this->table_fields))\n {\n $fields = $this->_database->list_fields($this->table);\n foreach ($fields as $field) {\n $this->table_fields[] = $field;\n }\n }\n }", "function get_fields()\n\t{\n\t\trequire_code('ocf_members');\n\n\t\t$indexes=collapse_2d_complexity('i_fields','i_name',$GLOBALS['FORUM_DB']->query_select('db_meta_indices',array('i_fields','i_name'),array('i_table'=>'f_member_custom_fields'),'ORDER BY i_name'));\n\n\t\t$fields=array();\n\t\tif (has_specific_permission(get_member(),'view_profiles'))\n\t\t{\n\t\t\t$rows=ocf_get_all_custom_fields_match(NULL,1,1);\n\t\t\trequire_code('fields');\n\t\t\tforeach ($rows as $row)\n\t\t\t{\n\t\t\t\tif (!array_key_exists('field_'.strval($row['id']),$indexes)) continue;\n\n\t\t\t\t$ob=get_fields_hook($row['cf_type']);\n\t\t\t\t$temp=$ob->get_search_inputter($row);\n\t\t\t\tif (is_null($temp))\n\t\t\t\t{\n\t\t\t\t\t$type='_TEXT';\n\t\t\t\t\t$special=make_string_tempcode(get_param('option_'.strval($row['id']),''));\n\t\t\t\t\t$display=$row['trans_name'];\n\t\t\t\t\t$fields[]=array('NAME'=>strval($row['id']),'DISPLAY'=>$display,'TYPE'=>$type,'SPECIAL'=>$special);\n\t\t\t\t} else $fields=array_merge($fields,$temp);\n\t\t\t}\n\n\t\t\t$age_range=get_param('option__age_range',get_param('option__age_range_from','').'-'.get_param('option__age_range_to',''));\n\t\t\t$fields[]=array('NAME'=>'_age_range','DISPLAY'=>do_lang_tempcode('AGE_RANGE'),'TYPE'=>'_TEXT','SPECIAL'=>$age_range);\n\t\t}\n\n\t\t$map=has_specific_permission(get_member(),'see_hidden_groups')?array():array('g_hidden'=>0);\n\t\t$group_count=$GLOBALS['FORUM_DB']->query_value('f_groups','COUNT(*)');\n\t\tif ($group_count>300) $map['g_is_private_club']=0;\n\t\tif ($map==array()) $map=NULL;\n\t\t$rows=$GLOBALS['FORUM_DB']->query_select('f_groups',array('id','g_name'),$map,'ORDER BY g_order');\n\t\t$groups=form_input_list_entry('',true,'---');\n\t\t$default_group=get_param('option__user_group','');\n\t\t$group_titles=array();\n\t\tforeach ($rows as $row)\n\t\t{\n\t\t\t$row['text_original']=get_translated_text($row['g_name'],$GLOBALS['FORUM_DB']);\n\n\t\t\tif ($row['id']==db_get_first_id()) continue;\n\t\t\t$groups->attach(form_input_list_entry(strval($row['id']),strval($row['id'])==$default_group,$row['text_original']));\n\t\t\t$group_titles[$row['id']]=$row['text_original'];\n\t\t}\n\t\tif (strpos($default_group,',')!==false)\n\t\t{\n\t\t\t$bits=explode(',',$default_group);\n\t\t\t$combination=new ocp_tempcode();\n\t\t\tforeach ($bits as $bit)\n\t\t\t{\n\t\t\t\tif (!$combination->is_empty()) $combination->attach(do_lang_tempcode('LIST_SEP'));\n\t\t\t\t$combination->attach(escape_html(@$group_titles[intval($bit)]));\n\t\t\t}\n\t\t\t$groups->attach(form_input_list_entry(strval($default_group),true,do_lang_tempcode('USERGROUP_SEARCH_COMBO',escape_html($combination))));\n\t\t}\n\t\t$fields[]=array('NAME'=>'_user_group','DISPLAY'=>do_lang_tempcode('GROUP'),'TYPE'=>'_LIST','SPECIAL'=>$groups);\n\t\tif (has_specific_permission(get_member(),'see_hidden_groups'))\n// $fields[]=array('NAME'=>'_photo_thumb_url','DISPLAY'=>do_lang('PHOTO'),'TYPE'=>'','SPECIAL'=>'','CHECKED'=>false);\n\t\t{\n\t\t\t//$fields[]=array('NAME'=>'_emails_only','DISPLAY'=>do_lang_tempcode('EMAILS_ONLY'),'TYPE'=>'_TICK','SPECIAL'=>'');\tCSV export better now\n\t\t}\n\n\t\treturn $fields;\n\t}", "public function getFieldCount() {}", "public function select($fields);", "public function get( $limit = 10 );", "public static function available_fields()\n {\n return self::$available_fields;\n }", "public function getSearchFields();", "public function fields()\n {\n return [];\n }", "public function fields()\n {\n return [];\n }", "public function fields()\n {\n return [];\n }", "public function fields()\n {\n return [];\n }", "public function fields()\n {\n return [];\n }", "function allWithLimit() {\n\n }", "public function fields(array $fields)\n\t{\n\t\treturn $this->setFields($fields);\n\t}", "private function _fields() {\n if ($this->_table() && empty($this->fields)) {\n $this->fields = $this->db->list_fields($this->_table());\n }\n return $this->fields;\n }", "public function getSelectDataFields();", "public function fetchFieldsForPage($default = null);", "public function useOnlyFields (array $Fields) {\n $this->__onlyFields = $Fields;\n }", "public function getFrontendFields();", "public function augmentDataFromRequest(&$fields_data) {\n //Do nothing for the majority of fields\n }", "public function select(...$fields) {\n\t\t$select = (new Selectable($this->table))->select($fields);\n\t\t\n\t\tif ($this->softDelete) {\n\t\t\t$select->where((new Where)->isNull('`'. $this->table .'`.`deleted_at`'));\n\t\t}\n\n\t\treturn $select;\n\t}", "function selectOnly($fields) {\n\t $this->result = null;\n \n\t if(is_array($fields)) {\n\t $this->select = $fields;\n\t } else {\n\t $args = func_get_args();\n\t\t array_shift($args);\n\t\t \n\t $this->select = array();\n\t\t\t$this->select[] = $this->escapeArray($fields, $args);\n\t }\n\t return $this; \n\t}", "function paginateWithExtra($size = 15);", "function REST_fields(&$ORM)\n {\n $this->rest->select_fields($ORM);\n }", "function select($fields = '*')\n {\n $this->object->_query_args = array('post_type' => $this->object->get_object_name(), 'paged' => FALSE, 'fields' => $fields, 'post_status' => 'any', 'datamapper' => TRUE, 'posts_per_page' => -1, 'is_select' => TRUE, 'is_delete' => FALSE);\n return $this->object;\n }" ]
[ "0.66433877", "0.65048087", "0.6283739", "0.6283739", "0.6283739", "0.60722166", "0.6071138", "0.60344", "0.6028455", "0.6028455", "0.6028455", "0.6028455", "0.6028455", "0.6028455", "0.6023943", "0.6023943", "0.6023943", "0.6023943", "0.6023943", "0.6015323", "0.6009734", "0.6009734", "0.5950965", "0.5925945", "0.5895584", "0.5890788", "0.58864456", "0.5839275", "0.5788178", "0.57738304", "0.5758515", "0.57460076", "0.5685533", "0.56844395", "0.56796557", "0.5678935", "0.56704223", "0.56668746", "0.5659101", "0.565116", "0.56336534", "0.56121373", "0.55995125", "0.5556946", "0.55557823", "0.5552988", "0.5552902", "0.55410457", "0.55410457", "0.5505636", "0.54972047", "0.54953104", "0.5489601", "0.5480868", "0.5476559", "0.547026", "0.547026", "0.547026", "0.54488105", "0.54475135", "0.5416058", "0.5414087", "0.5408433", "0.54050416", "0.5403504", "0.54031724", "0.5386769", "0.53866005", "0.53757447", "0.5369117", "0.536616", "0.53647774", "0.53644973", "0.53601044", "0.5356334", "0.5352703", "0.53468114", "0.5345093", "0.5344225", "0.5333301", "0.53261787", "0.5310611", "0.530078", "0.5295615", "0.5295615", "0.5295615", "0.5295615", "0.5295615", "0.52852243", "0.52799875", "0.52784944", "0.52746314", "0.52723706", "0.52618164", "0.52608764", "0.5260573", "0.5257895", "0.52515393", "0.52515376", "0.52501243", "0.5249954" ]
0.0
-1
Set a sort order for a given field. ```php setSort(['id' => SORT_ASC]); ``` or the opposite way ```php setSort(['id' => SORT_DESC]); ``` + SORT_ASC = 1,2,3 + SORT_DESC = 3,2,1
public function setSort(array $sort) { $sortables = []; foreach ($sort as $field => $order) { $sortables[] = $order == SORT_ASC ? $field : '-' . $field; } return $this->setArgs(['sort' => implode(",", $sortables)]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setSort($x) { $this->sort = $x; }", "public function setSortField ($value)\r\n\t{\r\n\t\t$this->sortField = $value;\r\n\t}", "public function SetSort(\n $in_sort_fields_array = null,\n // An array of strings. The array will deliniate the sort order, by field name.\n // Array element [0] will be the highest priority, and it will descend from there.\n // If this is not specified, the sort will be cleared.\n $in_desc = false, ///< If this is set to true, the sort will be highest to lowest. Default is false.\n $in_max_sort_keys = 0 ///< A positive integer, specifying a new maximum sort depth. If it is not specified, the max will not be changed.\n ) {\n // phpcs:enable PSR1.Methods.CamelCapsMethodName.NotCamelCaps\n // Only the root can do this.\n if (null == $this->_my_root) {\n if (false != $in_desc) {\n $in_desc = true;\n }\n \n $this->sort_desc = $in_desc;\n\n if (0 < $in_max_sort_keys) {\n $this->sort_depth = $in_max_sort_keys;\n }\n \n if (null != $in_sort_fields_array) {\n $max = min($this->sort_depth, count($in_sort_fields_array));\n \n if ($max > 0) {\n $this->sort_array = array_slice($in_sort_fields_array, 0, $max);\n } else {\n $this->sort_array = null;\n }\n }\n }\n }", "public function setSorting($arrSorting);", "public function setSort($value)\n {\n $this->tpSort = (int) $value;\n }", "function setSort($sort) {\n $this->sort = $sort;\n }", "function click_sort($order) {\n if (isset($this->real_field)) {\n // Since fields should always have themselves already added, just\n // add a sort on the field.\n $params = array('type' => 'numeric');\n $this->query->add_orderby($this->table_alias, $this->real_field, $order, $this->field_alias, $params);\n }\n }", "function sort($fieldname, $direction = \"ASC\")\n\t{\n\t\t$this->table->sort = $fieldname;\n\t\t$this->table->direction = $direction;\n\t}", "public function setOrderBy(array $orderBy);", "public function SetSortField($Field)\n\t\t{\n\t\t\t$this->_pricesortfield = $Field;\n\t\t}", "public function order($field, $order = 'desc');", "public function sort($sortOrderBy, $sortDirection = SolrInputDocument::SORT_ASC) {}", "public function setSortFields(array $fields)\n {\n return $this->sortFields = $fields;\n }", "public function _setSort($sort) {\n $this->sort = $sort;\n }", "public function setSort(string $sort): void\n {\n $this->_sort = $sort;\n }", "public function setSortOrder($sort_order)\r\n {\r\n $this->sort_order = $sort_order;\r\n }", "public function it_sorts_by_field_in_ascending_order(): void\n {\n $results = Client::filter([\n 'sorts' => [\n [\n 'column' => 'name',\n 'direction' => 'asc',\n ],\n ],\n ])->get();\n\n self::assertEquals($results->sortBy('name')->pluck('id'), $results->pluck('id'));\n }", "protected function _setSortingParameters()\n {\n $sSortingParameters = $this->getViewParameter('sorting');\n if ($sSortingParameters) {\n list($sSortBy, $sSortDir) = explode('|', $sSortingParameters);\n $this->setItemSorting($this->getSortIdent(), $sSortBy, $sSortDir);\n }\n }", "public function setOrderField($x) { $this->orderField = $x; }", "function SetupSortOrder() {\n\n\t\t// Check for Ctrl pressed\n\t\t$bCtrl = (@$_GET[\"ctrl\"] <> \"\");\n\n\t\t// Check for \"order\" parameter\n\t\tif (@$_GET[\"order\"] <> \"\") {\n\t\t\t$this->CurrentOrder = @$_GET[\"order\"];\n\t\t\t$this->CurrentOrderType = @$_GET[\"ordertype\"];\n\t\t\t$this->UpdateSort($this->fecha_tamizaje, $bCtrl); // fecha_tamizaje\n\t\t\t$this->UpdateSort($this->id_centro, $bCtrl); // id_centro\n\t\t\t$this->UpdateSort($this->apellidopaterno, $bCtrl); // apellidopaterno\n\t\t\t$this->UpdateSort($this->apellidomaterno, $bCtrl); // apellidomaterno\n\t\t\t$this->UpdateSort($this->nombre, $bCtrl); // nombre\n\t\t\t$this->UpdateSort($this->ci, $bCtrl); // ci\n\t\t\t$this->UpdateSort($this->fecha_nacimiento, $bCtrl); // fecha_nacimiento\n\t\t\t$this->UpdateSort($this->dias, $bCtrl); // dias\n\t\t\t$this->UpdateSort($this->semanas, $bCtrl); // semanas\n\t\t\t$this->UpdateSort($this->meses, $bCtrl); // meses\n\t\t\t$this->UpdateSort($this->sexo, $bCtrl); // sexo\n\t\t\t$this->UpdateSort($this->discapacidad, $bCtrl); // discapacidad\n\t\t\t$this->UpdateSort($this->id_tipodiscapacidad, $bCtrl); // id_tipodiscapacidad\n\t\t\t$this->UpdateSort($this->resultado, $bCtrl); // resultado\n\t\t\t$this->UpdateSort($this->resultadotamizaje, $bCtrl); // resultadotamizaje\n\t\t\t$this->UpdateSort($this->tapon, $bCtrl); // tapon\n\t\t\t$this->UpdateSort($this->tipo, $bCtrl); // tipo\n\t\t\t$this->UpdateSort($this->repetirprueba, $bCtrl); // repetirprueba\n\t\t\t$this->UpdateSort($this->observaciones, $bCtrl); // observaciones\n\t\t\t$this->UpdateSort($this->id_apoderado, $bCtrl); // id_apoderado\n\t\t\t$this->UpdateSort($this->id_referencia, $bCtrl); // id_referencia\n\t\t\t$this->setStartRecordNumber(1); // Reset start position\n\t\t}\n\t}", "private function setSort($sort)\n {\n $this->sort = [];\n $orders = array_filter(explode(',', $sort));\n array_map([$this, 'appendSort'], $orders);\n }", "function SetUpSortOrder() {\r\n\r\n\t\t// Check for \"order\" parameter\r\n\t\tif (@$_GET[\"order\"] <> \"\") {\r\n\t\t\t$this->CurrentOrder = ew_StripSlashes(@$_GET[\"order\"]);\r\n\t\t\t$this->CurrentOrderType = @$_GET[\"ordertype\"];\r\n\t\t\t$this->UpdateSort($this->RazonSocial); // RazonSocial\r\n\t\t\t$this->UpdateSort($this->NombreContacto); // NombreContacto\r\n\t\t\t$this->UpdateSort($this->Poblacion); // Poblacion\r\n\t\t\t$this->UpdateSort($this->Id_Estado); // Id_Estado\r\n\t\t\t$this->UpdateSort($this->Telefonos); // Telefonos\r\n\t\t\t$this->UpdateSort($this->Celular); // Celular\r\n\t\t\t$this->UpdateSort($this->Maneja_Papeleta); // Maneja_Papeleta\r\n\t\t\t$this->UpdateSort($this->Maneja_Activacion_Movi); // Maneja_Activacion_Movi\r\n\t\t\t$this->setStartRecordNumber(1); // Reset start position\r\n\t\t}\r\n\t}", "function SetUpSortOrder() {\r\n\r\n\t\t// Check for \"order\" parameter\r\n\t\tif (@$_GET[\"order\"] <> \"\") {\r\n\t\t\t$this->CurrentOrder = ew_StripSlashes(@$_GET[\"order\"]);\r\n\t\t\t$this->CurrentOrderType = @$_GET[\"ordertype\"];\r\n\t\t\t$this->UpdateSort($this->identries); // identries\r\n\t\t\t$this->UpdateSort($this->titulo); // titulo\r\n\t\t\t$this->UpdateSort($this->id); // id\r\n\t\t\t$this->UpdateSort($this->islive); // islive\r\n\t\t\t$this->UpdateSort($this->tool_id); // tool_id\r\n\t\t\t$this->setStartRecordNumber(1); // Reset start position\r\n\t\t}\r\n\t}", "function SetupSortOrder() {\n\n\t\t// Check for \"order\" parameter\n\t\tif (@$_GET[\"order\"] <> \"\") {\n\t\t\t$this->CurrentOrder = @$_GET[\"order\"];\n\t\t\t$this->CurrentOrderType = @$_GET[\"ordertype\"];\n\t\t\t$this->UpdateSort($this->nombre_contacto); // nombre_contacto\n\t\t\t$this->UpdateSort($this->name); // name\n\t\t\t$this->UpdateSort($this->lastname); // lastname\n\t\t\t$this->UpdateSort($this->_email); // email\n\t\t\t$this->UpdateSort($this->address); // address\n\t\t\t$this->UpdateSort($this->phone); // phone\n\t\t\t$this->UpdateSort($this->cell); // cell\n\t\t\t$this->UpdateSort($this->created_at); // created_at\n\t\t\t$this->UpdateSort($this->id_sucursal); // id_sucursal\n\t\t\t$this->UpdateSort($this->tipoinmueble); // tipoinmueble\n\t\t\t$this->UpdateSort($this->tipovehiculo); // tipovehiculo\n\t\t\t$this->UpdateSort($this->tipomaquinaria); // tipomaquinaria\n\t\t\t$this->UpdateSort($this->tipomercaderia); // tipomercaderia\n\t\t\t$this->UpdateSort($this->tipoespecial); // tipoespecial\n\t\t\t$this->UpdateSort($this->email_contacto); // email_contacto\n\t\t\t$this->setStartRecordNumber(1); // Reset start position\n\t\t}\n\t}", "public function setSort($value)\n {\n return $this->set('Sort', $value);\n }", "public function setSort($value)\n {\n return $this->set('Sort', $value);\n }", "public function setSortOrder(?string $sortOrder): void\n {\n $this->sortOrder = $sortOrder;\n }", "public function SetSort()\n\t\t{\n\t\t\tif (!isset($_GET['sort']) || empty($_GET['sort'])) {\n\t\t\t\t$_GET['sort'] = \"priceasc\";\n\t\t\t}\n\n\t\t\tswitch ($_GET['sort']) {\n\t\t\t\tcase \"featured\": {\n\t\t\t\t\t$GLOBALS['SortFeaturedSelected'] = 'selected=\"selected\"';\n\t\t\t\t\t$this->SetSortField(\"p.prodsortorder desc\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase \"newest\": {\n\t\t\t\t\t$GLOBALS['SortNewestSelected'] = 'selected=\"selected\"';\n\t\t\t\t\t$this->SetSortField(\"p.productid desc\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase \"bestselling\": {\n\t\t\t\t\t$GLOBALS['SortBestSellingSelected'] = 'selected=\"selected\"';\n\t\t\t\t\t$this->SetSortField(\"p.prodnumsold desc\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase \"alphaasc\": {\n\t\t\t\t\t$GLOBALS['SortAlphaAsc'] = 'selected=\"selected\"';\n\t\t\t\t\t$this->SetSortField(\"p.prodname asc\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase \"alphadesc\": {\n\t\t\t\t\t$GLOBALS['SortAlphaDesc'] = 'selected=\"selected\"';\n\t\t\t\t\t$this->SetSortField(\"p.prodname desc\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase \"avgcustomerreview\": {\n\t\t\t\t\t$GLOBALS['SortAvgReview'] = 'selected=\"selected\"';\n\t\t\t\t\t$this->SetSortField(\"prodavgrating desc\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase \"pricedesc\": {\n\t\t\t\t\t$GLOBALS['SortPriceDesc'] = 'selected=\"selected\"';\n\t\t\t\t\t$this->SetSortField(\"p.prodcalculatedprice desc\");\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\t\t\t\tcase \"priceasc\":\n\t\t\t\tdefault:\n\t\t\t\t{\n\t\t\t\t\t$GLOBALS['SortPriceAsc'] = 'selected=\"selected\"';\n\t\t\t\t\t$this->SetSortField(\"p.prodcalculatedprice asc\");\n\t\t\t\t\t$_GET['sort'] = \"priceasc\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->_pricesort = $_GET['sort'];\n\t\t}", "public function setOrder($field, $direction = 'ASC')\n {\n return $this->orderBy = array(\n 'field' => $field,\n 'direction' => $direction\n );\n }", "function SetUpSortOrder() {\n\t\tglobal $patient_detail;\n\n\t\t// Check for an Order parameter\n\t\tif (@$_GET[\"order\"] <> \"\") {\n\t\t\t$patient_detail->CurrentOrder = ew_StripSlashes(@$_GET[\"order\"]);\n\t\t\t$patient_detail->CurrentOrderType = @$_GET[\"ordertype\"];\n\t\t\t$patient_detail->UpdateSort($patient_detail->DetailNo); // Field \n\t\t\t$patient_detail->UpdateSort($patient_detail->StudyID); // Field \n\t\t\t$patient_detail->UpdateSort($patient_detail->PatientID); // Field \n\t\t\t$patient_detail->UpdateSort($patient_detail->StudyDate); // Field \n\t\t\t$patient_detail->UpdateSort($patient_detail->StudyTime); // Field \n\t\t\t$patient_detail->UpdateSort($patient_detail->Modality); // Field \n\t\t\t$patient_detail->UpdateSort($patient_detail->BodyPartExamined); // Field \n\t\t\t$patient_detail->UpdateSort($patient_detail->ProtocolName); // Field \n\t\t\t$patient_detail->UpdateSort($patient_detail->Status); // Field \n\t\t\t$patient_detail->setStartRecordNumber(1); // Reset start position\n\t\t}\n\t}", "function SetUpSortOrder() {\n\n\t\t// Check for Ctrl pressed\n\t\t$bCtrl = (@$_GET[\"ctrl\"] <> \"\");\n\n\t\t// Check for \"order\" parameter\n\t\tif (@$_GET[\"order\"] <> \"\") {\n\t\t\t$this->CurrentOrder = ew_StripSlashes(@$_GET[\"order\"]);\n\t\t\t$this->CurrentOrderType = @$_GET[\"ordertype\"];\n\t\t\t$this->UpdateSort($this->id, $bCtrl); // id\n\t\t\t$this->UpdateSort($this->detail_jenis_spp, $bCtrl); // detail_jenis_spp\n\t\t\t$this->UpdateSort($this->no_spp, $bCtrl); // no_spp\n\t\t\t$this->UpdateSort($this->tgl_spp, $bCtrl); // tgl_spp\n\t\t\t$this->UpdateSort($this->keterangan, $bCtrl); // keterangan\n\t\t\t$this->UpdateSort($this->no_spm, $bCtrl); // no_spm\n\t\t\t$this->UpdateSort($this->tgl_spm, $bCtrl); // tgl_spm\n\t\t\t$this->setStartRecordNumber(1); // Reset start position\n\t\t}\n\t}", "function SetUpSortOrder() {\n\t\tglobal $tbl_slide;\n\n\t\t// Check for \"order\" parameter\n\t\tif (@$_GET[\"order\"] <> \"\") {\n\t\t\t$tbl_slide->CurrentOrder = ew_StripSlashes(@$_GET[\"order\"]);\n\t\t\t$tbl_slide->CurrentOrderType = @$_GET[\"ordertype\"];\n\t\t\t$tbl_slide->UpdateSort($tbl_slide->title); // title\n\t\t\t$tbl_slide->UpdateSort($tbl_slide->images); // images\n\t\t\t$tbl_slide->UpdateSort($tbl_slide->order_by); // order_by\n\t\t\t$tbl_slide->setStartRecordNumber(1); // Reset start position\n\t\t}\n\t}", "public function setSort(?array $sort) : self\n {\n $this->initialized['sort'] = true;\n $this->sort = $sort;\n return $this;\n }", "function setOrdering($ordering) {\n $this->ordering = $ordering;\n }", "function SetUpSortOrder() {\r\n\t\tglobal $fs_multijoin_v;\r\n\r\n\t\t// Check for \"order\" parameter\r\n\t\tif (@$_GET[\"order\"] <> \"\") {\r\n\t\t\t$fs_multijoin_v->CurrentOrder = ew_StripSlashes(@$_GET[\"order\"]);\r\n\t\t\t$fs_multijoin_v->CurrentOrderType = @$_GET[\"ordertype\"];\r\n\t\t\t$fs_multijoin_v->UpdateSort($fs_multijoin_v->id); // id\r\n\t\t\t$fs_multijoin_v->UpdateSort($fs_multijoin_v->mount); // mount\r\n\t\t\t$fs_multijoin_v->UpdateSort($fs_multijoin_v->path); // path\r\n\t\t\t$fs_multijoin_v->UpdateSort($fs_multijoin_v->parent); // parent\r\n\t\t\t$fs_multijoin_v->UpdateSort($fs_multijoin_v->deprecated); // deprecated\r\n\t\t\t$fs_multijoin_v->UpdateSort($fs_multijoin_v->name); // name\r\n\t\t\t$fs_multijoin_v->UpdateSort($fs_multijoin_v->snapshot); // snapshot\r\n\t\t\t$fs_multijoin_v->UpdateSort($fs_multijoin_v->tapebackup); // tapebackup\r\n\t\t\t$fs_multijoin_v->UpdateSort($fs_multijoin_v->diskbackup); // diskbackup\r\n\t\t\t$fs_multijoin_v->UpdateSort($fs_multijoin_v->type); // type\r\n\t\t\t$fs_multijoin_v->UpdateSort($fs_multijoin_v->CONTACT); // CONTACT\r\n\t\t\t$fs_multijoin_v->UpdateSort($fs_multijoin_v->CONTACT2); // CONTACT2\r\n\t\t\t$fs_multijoin_v->UpdateSort($fs_multijoin_v->RESCOMP); // RESCOMP\r\n\t\t\t$fs_multijoin_v->setStartRecordNumber(1); // Reset start position\r\n\t\t}\r\n\t}", "function SetUpSortOrder() {\r\n\r\n\t\t// Check for \"order\" parameter\r\n\t\tif (@$_GET[\"order\"] <> \"\") {\r\n\t\t\t$this->CurrentOrder = ew_StripSlashes(@$_GET[\"order\"]);\r\n\t\t\t$this->CurrentOrderType = @$_GET[\"ordertype\"];\r\n\t\t\t$this->UpdateSort($this->created_time); // created_time\r\n\t\t\t$this->UpdateSort($this->message); // message\r\n\t\t\t$this->UpdateSort($this->link); // link\r\n\t\t\t$this->UpdateSort($this->type); // type\r\n\t\t\t$this->UpdateSort($this->caption); // caption\r\n\t\t\t$this->UpdateSort($this->description); // description\r\n\t\t\t$this->UpdateSort($this->name); // name\r\n\t\t\t$this->UpdateSort($this->source); // source\r\n\t\t\t$this->UpdateSort($this->from); // from\r\n\t\t\t$this->setStartRecordNumber(1); // Reset start position\r\n\t\t}\r\n\t}", "function SetOrdering()\n {\n GLOBAL $_REQUEST;\n\n $sfid = 'sf' . $this->GetID();\n $srid = 'sr' . $this->GetID();\n $this->sf = $_REQUEST[$sfid];\n $this->sr = $_REQUEST[$srid];\n\n if ($this->sf != '') {\n $this->selectSQL->orders[] = $this->sf . \" \" . $this->sr;\n\n if ($this->sr == \"desc\") {\n $this->sr = \"asc\";\n $this->az = \"za\";\n } else {\n $this->sr = \"desc\"; //!< this is for the future \n $this->az = \"az\";\n } \n } else {\n $this->az = '';\n $this->sr = '';\n } \n }", "public function setElementSortOrder($attribte, $direction);", "public function sortBy( string $fieldName, string $order = 'ASC' ) {\n $this->sortBy = \"SORTBY $fieldName $order\";\n return $this;\n }", "public function setSort_order( $sort_order ) {\n\t\t$this->sort_order = $sort_order;\n\t}", "function Trigger_SetOrderColumn(&$tNG) {\r\n $orderFieldObj = new tNG_SetOrderField($tNG);\r\n $orderFieldObj->setFieldName(\"sort\");\r\n return $orderFieldObj->Execute();\r\n}", "function Trigger_SetOrderColumn(&$tNG) {\r\n $orderFieldObj = new tNG_SetOrderField($tNG);\r\n $orderFieldObj->setFieldName(\"sort\");\r\n return $orderFieldObj->Execute();\r\n}", "function Trigger_SetOrderColumn(&$tNG) {\r\n $orderFieldObj = new tNG_SetOrderField($tNG);\r\n $orderFieldObj->setFieldName(\"sort\");\r\n return $orderFieldObj->Execute();\r\n}", "function update_field_sort_values($id = 0) {\n\n $sort_values = $this->input->post(\"sort_values\");\n if ($sort_values) {\n\n //extract the values from the comma separated string\n $sort_array = explode(\",\", $sort_values);\n\n\n //update the value in db\n foreach ($sort_array as $value) {\n $sort_item = explode(\"-\", $value); //extract id and sort value\n\n $id = get_array_value($sort_item, 0);\n $sort = get_array_value($sort_item, 1);\n\n $data = array(\"sort\" => $sort);\n $this->Fuel_model->save($data, $id);\n }\n }\n }", "public function orderField(): array\n {\n return ['id' => 'desc'];\n }", "function SetUpSortOrder() {\n\n\t\t// Check for \"order\" parameter\n\t\tif (@$_GET[\"order\"] <> \"\") {\n\t\t\t$this->CurrentOrder = ew_StripSlashes(@$_GET[\"order\"]);\n\t\t\t$this->CurrentOrderType = @$_GET[\"ordertype\"];\n\t\t\t$this->UpdateSort($this->id); // id\n\t\t\t$this->UpdateSort($this->name); // name\n\t\t\t$this->UpdateSort($this->_email); // email\n\t\t\t$this->UpdateSort($this->companyname); // companyname\n\t\t\t$this->UpdateSort($this->servicetime); // servicetime\n\t\t\t$this->UpdateSort($this->country); // country\n\t\t\t$this->UpdateSort($this->phone); // phone\n\t\t\t$this->UpdateSort($this->skype); // skype\n\t\t\t$this->UpdateSort($this->website); // website\n\t\t\t$this->UpdateSort($this->linkedin); // linkedin\n\t\t\t$this->UpdateSort($this->facebook); // facebook\n\t\t\t$this->UpdateSort($this->twitter); // twitter\n\t\t\t$this->UpdateSort($this->active_code); // active_code\n\t\t\t$this->UpdateSort($this->identification); // identification\n\t\t\t$this->UpdateSort($this->link_expired); // link_expired\n\t\t\t$this->UpdateSort($this->isactive); // isactive\n\t\t\t$this->UpdateSort($this->google); // google\n\t\t\t$this->UpdateSort($this->instagram); // instagram\n\t\t\t$this->UpdateSort($this->account_type); // account_type\n\t\t\t$this->UpdateSort($this->logo); // logo\n\t\t\t$this->UpdateSort($this->profilepic); // profilepic\n\t\t\t$this->UpdateSort($this->mailref); // mailref\n\t\t\t$this->UpdateSort($this->deleted); // deleted\n\t\t\t$this->UpdateSort($this->deletefeedback); // deletefeedback\n\t\t\t$this->UpdateSort($this->account_id); // account_id\n\t\t\t$this->UpdateSort($this->start_date); // start_date\n\t\t\t$this->UpdateSort($this->end_date); // end_date\n\t\t\t$this->UpdateSort($this->year_moth); // year_moth\n\t\t\t$this->UpdateSort($this->registerdate); // registerdate\n\t\t\t$this->UpdateSort($this->login_type); // login_type\n\t\t\t$this->UpdateSort($this->accountstatus); // accountstatus\n\t\t\t$this->UpdateSort($this->ispay); // ispay\n\t\t\t$this->UpdateSort($this->profilelink); // profilelink\n\t\t\t$this->UpdateSort($this->source); // source\n\t\t\t$this->UpdateSort($this->agree); // agree\n\t\t\t$this->UpdateSort($this->balance); // balance\n\t\t\t$this->UpdateSort($this->job_title); // job_title\n\t\t\t$this->UpdateSort($this->projects); // projects\n\t\t\t$this->UpdateSort($this->opportunities); // opportunities\n\t\t\t$this->UpdateSort($this->isconsaltant); // isconsaltant\n\t\t\t$this->UpdateSort($this->isagent); // isagent\n\t\t\t$this->UpdateSort($this->isinvestor); // isinvestor\n\t\t\t$this->UpdateSort($this->isbusinessman); // isbusinessman\n\t\t\t$this->UpdateSort($this->isprovider); // isprovider\n\t\t\t$this->UpdateSort($this->isproductowner); // isproductowner\n\t\t\t$this->UpdateSort($this->states); // states\n\t\t\t$this->UpdateSort($this->cities); // cities\n\t\t\t$this->UpdateSort($this->offers); // offers\n\t\t\t$this->setStartRecordNumber(1); // Reset start position\n\t\t}\n\t}", "function update_sort_order()\n\t{\n\t\t$page_id = $this->input->post('sort_id');\n\t\t$row_sort_order = $this->input->post('row_sort_order');\n\t\t$this->Text_image_slider_model->update_sort_order($page_id, $row_sort_order);\n\t}", "function SetupSortOrder() {\n\n\t\t// Check for \"order\" parameter\n\t\tif (@$_GET[\"order\"] <> \"\") {\n\t\t\t$this->CurrentOrder = @$_GET[\"order\"];\n\t\t\t$this->CurrentOrderType = @$_GET[\"ordertype\"];\n\t\t\t$this->UpdateSort($this->tanggal); // tanggal\n\t\t\t$this->UpdateSort($this->auc_number); // auc_number\n\t\t\t$this->UpdateSort($this->start_bid); // start_bid\n\t\t\t$this->UpdateSort($this->close_bid); // close_bid\n\t\t\t$this->UpdateSort($this->lot_number); // lot_number\n\t\t\t$this->UpdateSort($this->chop); // chop\n\t\t\t$this->UpdateSort($this->grade); // grade\n\t\t\t$this->UpdateSort($this->estate); // estate\n\t\t\t$this->UpdateSort($this->sack); // sack\n\t\t\t$this->UpdateSort($this->netto); // netto\n\t\t\t$this->UpdateSort($this->open_bid); // open_bid\n\t\t\t$this->UpdateSort($this->highest_bid); // highest_bid\n\t\t\t$this->UpdateSort($this->auction_status); // auction_status\n\t\t\t$this->setStartRecordNumber(1); // Reset start position\n\t\t}\n\t}", "public function setSort($value)\n {\n if (is_array($value)) {\n $config = ['class' => Sort::className()];\n if ($this->id !== null) {\n $config['sortParam'] = $this->id . '-sort';\n }\n $this->_sort = Yii::createObject(array_merge($config, $value));\n } elseif ($value instanceof Sort || $value === false) {\n $this->_sort = $value;\n } else {\n throw new InvalidParamException('Only Sort instance, configuration array or false is allowed.');\n }\n }", "public function sort($field, $order = 1)\n {\n $this->sort[$field] = $order;\n\n return $this;\n }", "protected function applySorting()\n\t{\n\t\t$i = 1;\n\t\tparse_str($this->order, $list);\n\t\tforeach ($list as $field => $dir) {\n\t\t\t$this->dataSource->sort($field, $dir === 'a' ? IDataSource::ASCENDING : IDataSource::DESCENDING);\n\t\t\t$list[$field] = array($dir, $i++);\n\t\t}\n\t\treturn $list;\n\t}", "function SetUpSortOrder() {\n\n\t\t// Check for Ctrl pressed\n\t\t$bCtrl = (@$_GET[\"ctrl\"] <> \"\");\n\n\t\t// Check for \"order\" parameter\n\t\tif (@$_GET[\"order\"] <> \"\") {\n\t\t\t$this->CurrentOrder = ew_StripSlashes(@$_GET[\"order\"]);\n\t\t\t$this->CurrentOrderType = @$_GET[\"ordertype\"];\n\t\t\t$this->UpdateSort($this->tgl, $bCtrl); // tgl\n\t\t\t$this->UpdateSort($this->no_spp, $bCtrl); // no_spp\n\t\t\t$this->UpdateSort($this->jns_spp, $bCtrl); // jns_spp\n\t\t\t$this->UpdateSort($this->kd_mata, $bCtrl); // kd_mata\n\t\t\t$this->UpdateSort($this->urai, $bCtrl); // urai\n\t\t\t$this->UpdateSort($this->jmlh, $bCtrl); // jmlh\n\t\t\t$this->UpdateSort($this->jmlh1, $bCtrl); // jmlh1\n\t\t\t$this->UpdateSort($this->jmlh2, $bCtrl); // jmlh2\n\t\t\t$this->UpdateSort($this->jmlh3, $bCtrl); // jmlh3\n\t\t\t$this->UpdateSort($this->jmlh4, $bCtrl); // jmlh4\n\t\t\t$this->UpdateSort($this->nm_perus, $bCtrl); // nm_perus\n\t\t\t$this->UpdateSort($this->alamat, $bCtrl); // alamat\n\t\t\t$this->UpdateSort($this->npwp, $bCtrl); // npwp\n\t\t\t$this->UpdateSort($this->pimpinan, $bCtrl); // pimpinan\n\t\t\t$this->UpdateSort($this->bank, $bCtrl); // bank\n\t\t\t$this->UpdateSort($this->rek, $bCtrl); // rek\n\t\t\t$this->UpdateSort($this->nospm, $bCtrl); // nospm\n\t\t\t$this->UpdateSort($this->tglspm, $bCtrl); // tglspm\n\t\t\t$this->UpdateSort($this->ppn, $bCtrl); // ppn\n\t\t\t$this->UpdateSort($this->ps21, $bCtrl); // ps21\n\t\t\t$this->UpdateSort($this->ps22, $bCtrl); // ps22\n\t\t\t$this->UpdateSort($this->ps23, $bCtrl); // ps23\n\t\t\t$this->UpdateSort($this->ps4, $bCtrl); // ps4\n\t\t\t$this->UpdateSort($this->kodespm, $bCtrl); // kodespm\n\t\t\t$this->UpdateSort($this->nambud, $bCtrl); // nambud\n\t\t\t$this->UpdateSort($this->nppk, $bCtrl); // nppk\n\t\t\t$this->UpdateSort($this->nipppk, $bCtrl); // nipppk\n\t\t\t$this->UpdateSort($this->prog, $bCtrl); // prog\n\t\t\t$this->UpdateSort($this->prog1, $bCtrl); // prog1\n\t\t\t$this->UpdateSort($this->bayar, $bCtrl); // bayar\n\t\t\t$this->setStartRecordNumber(1); // Reset start position\n\t\t}\n\t}", "public function orderBy($field, $direction = 'ASC');", "public function setSortOrder($value)\n {\n return $this->set('SortOrder', $value);\n }", "public function setSortMode($mode, $sortby = '')\n\t{\n\t\t$this->sort = $mode . ':' . $sortby;\n\t}", "public function setSorted()\n {\n $this->isSorted = true;\n }", "public function setSort($sort=array())\n {\n $this->sort = is_array($sort) ? $sort : array();\n return $this;\n }", "public function setSorts(array $sorts = [])\r\n {\r\n $this->sorts = Transform::sorts($sorts);\r\n }", "function sortBy($field, &$array, $direction = 'asc')\n{\n usort($array, create_function('$a, $b', '\n $a = $a[\"' . $field . '\"];\n $b = $b[\"' . $field . '\"];\n\n if ($a == $b) return 0;\n\n $direction = strtolower(trim($direction));\n\n return ($a ' . ($direction == 'desc' ? '>' : '<') . ' $b) ? -1 : 1;\n '));\n\n return true;\n}", "function update_sort_order()\n {\n $page_id = $this->input->post('sort_id');\n $row_sort_order = $this->input->post('row_sort_order');\n $this->Vertical_tab_model->update_sort_order($page_id, $row_sort_order);\n }", "function setOrder($order);", "function SetUpSortOrder() {\n\n\t\t// Check for \"order\" parameter\n\t\tif (@$_GET[\"order\"] <> \"\") {\n\t\t\t$this->CurrentOrder = ew_StripSlashes(@$_GET[\"order\"]);\n\t\t\t$this->CurrentOrderType = @$_GET[\"ordertype\"];\n\t\t\t$this->UpdateSort($this->userlevelid); // userlevelid\n\t\t\t$this->UpdateSort($this->userlevelname); // userlevelname\n\t\t\t$this->setStartRecordNumber(1); // Reset start position\n\t\t}\n\t}", "public function sort($fields, $sort = 1): self\n\t{\n\t\tif (isset($fields, $sort) && is_string($fields) && $fields != '')\n\t\t{\n\t\t\t$this->push_sort_field($fields, $this->get_sort_type($sort));\n\t\t}\n\t\telseif (isset($fields) && is_array($fields) && !empty($fields))\n\t\t{\n\t\t\tforeach ($fields as $field => $sort)\n\t\t\t{\n\t\t\t\tif (is_string($field) && $field != '')\n\t\t\t\t{\n\t\t\t\t\t$this->push_sort_field($field, $this->get_sort_type($sort));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->error('Each field name in list must not be an empty string', __METHOD__);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->error('No specified or valid arguments were given', __METHOD__);\n\t\t}\n\t\t\n\t\treturn $this;\n\t}", "public function setSortType($sort_type)\r\n {\r\n $this->sort_type = $sort_type == 'date' ? 'id' : $sort_type;\r\n }", "public function order_by() {\r\n\t\t$fields = func_get_args();\r\n\r\n\t\t// Loop through the columns\r\n\t\tfor ( $i = 0; $i < intval( $_GET['iSortingCols'] ); $i++ ) {\r\n\t\t\t// Add the necessary comman\r\n\t\t\tif ( !empty( $this->order_by ) )\r\n\t\t\t\t$this->order_by .= ',';\r\n\t\t\t\r\n\t\t\t// Compile the fields\r\n\t\t\t$this->order_by .= $fields[$_GET['iSortCol_' . $i]] . ' ' . $_GET['sSortDir_' . $i];\r\n\t\t}\r\n\t\t\r\n\t\t// If it's not empty\r\n\t\tif ( !empty( $this->order_by ) )\r\n\t\t\t$this->order_by = ' ORDER BY ' . $this->order_by;\r\n\t}", "protected function setOrder() {\r\n if( $this->sqlOrderBy ) {\r\n $this->sql .= ' ORDER BY ' . $this->sqlOrderBy;\r\n }\r\n }", "public function order($field, $dir = 'ASC', $reset = false) {\n\t\tif($reset == 'reset' || $reset)\n\t\t\t$this->_order_cond = array();\n\t\t\n\t\t$field = ctype_alnum($field) ? \"`$field`\" : $field;\n\t\tif(!$field) return $this;\n\t\t$dir = ctype_alnum($dir) ? strtoupper($dir) : 'ASC';\n\t\t$this->_order_cond[] = \"$field $dir\";\n\t\treturn $this;\n\t\t\n\t}", "public function setSort(array $sort, callable|string $callback = null): self\n {\n $this->sort = [$sort, $callback];\n\n return $this;\n }", "public function sort($orderBy): void;", "protected function sort(?string $sortField, ?string $sort)\n {\n $orderBy = [];\n $defaultSortDir = isset($confSorting['order']) ?? 'ASC';\n $sortDirection = !empty($sort) ? $sort : $defaultSortDir;\n\n\n if (!empty($sortField)) {\n $orderBy = [\n 'sortField' => $sortField,\n 'sort' => strtoupper($sortDirection)\n ];\n }\n\n if (count($orderBy) > 0 && !empty($orderBy['sortField'])) {\n $this->queryBuilder->orderBy($orderBy['sortField'], $orderBy['sort']);\n }\n }", "function SetUpSortOrder()\n{\n\tglobal $sOrderBy;\n\tglobal $sDefaultOrderBy;\n\n\t// Check for an Order parameter\n\tif (strlen(@$_GET[\"order\"]) > 0) {\n\t\t$sOrder = @$_GET[\"order\"];\n\n\t\t// Field `cod_material`\n\t\tif ($sOrder == \"cod_material\") {\n\t\t\t$sSortField = \"`cod_material`\";\n\t\t\t$sLastSort = @$_SESSION[ewSessionTblSort . \"_x_cod_material\"];\n\t\t\t$sThisSort = ($sLastSort == \"ASC\") ? \"DESC\" : \"ASC\";\n\t\t\t$_SESSION[ewSessionTblSort . \"_x_cod_material\"] = $sThisSort;\n\t\t} else {\n\t\t\tif (@$_SESSION[ewSessionTblSort . \"_x_cod_material\"] <> \"\") { @$_SESSION[ewSessionTblSort . \"_x_cod_material\"] = \"\"; }\n\t\t}\n\n\t\t// Field `descripcion`\n\t\tif ($sOrder == \"descripcion\") {\n\t\t\t$sSortField = \"`descripcion`\";\n\t\t\t$sLastSort = @$_SESSION[ewSessionTblSort . \"_x_descripcion\"];\n\t\t\t$sThisSort = ($sLastSort == \"ASC\") ? \"DESC\" : \"ASC\";\n\t\t\t$_SESSION[ewSessionTblSort . \"_x_descripcion\"] = $sThisSort;\n\t\t} else {\n\t\t\tif (@$_SESSION[ewSessionTblSort . \"_x_descripcion\"] <> \"\") { @$_SESSION[ewSessionTblSort . \"_x_descripcion\"] = \"\"; }\n\t\t}\n\n\t\t// Field `unidad`\n\t\tif ($sOrder == \"unidad\") {\n\t\t\t$sSortField = \"`unidad`\";\n\t\t\t$sLastSort = @$_SESSION[ewSessionTblSort . \"_x_unidad\"];\n\t\t\t$sThisSort = ($sLastSort == \"ASC\") ? \"DESC\" : \"ASC\";\n\t\t\t$_SESSION[ewSessionTblSort . \"_x_unidad\"] = $sThisSort;\n\t\t} else {\n\t\t\tif (@$_SESSION[ewSessionTblSort . \"_x_unidad\"] <> \"\") { @$_SESSION[ewSessionTblSort . \"_x_unidad\"] = \"\"; }\n\t\t}\n\t\t$_SESSION[ewSessionTblOrderBy] = $sSortField . \" \" . $sThisSort;\n\t\t$_SESSION[ewSessionTblStartRec] = 1;\n\t}\n\t$sOrderBy = @$_SESSION[ewSessionTblOrderBy];\n\tif ($sOrderBy == \"\") {\n\t\tif (ewSqlOrderBy <> \"\" && ewSqlOrderBySessions <> \"\") {\n\t\t\t$sOrderBy = ewSqlOrderBy;\n\t\t\t@$_SESSION[ewSessionTblOrderBy] = $sOrderBy;\n\t\t\t$arOrderBy = explode(\",\", ewSqlOrderBySessions);\n\t\t\tfor($i=0; $i<count($arOrderBy); $i+=2) {\n\t\t\t\t@$_SESSION[ewSessionTblSort . \"_\" . $arOrderBy[$i]] = $arOrderBy[$i+1];\n\t\t\t}\n\t\t}\n\t}\n}", "public function ajax_sort_field() {\n\t\tglobal $wpdb;\n\n\t\t$data = array();\n\n\t\tforeach ( $_REQUEST['order'] as $k ) :\n\t\t\tif ( 'root' !== $k['item_id'] && !empty( $k['item_id'] ) ) :\n\t\t\t\t$data[] = array(\n\t\t\t\t\t'field_id' \t=> $k['item_id'],\n\t\t\t\t\t'parent' \t=> $k['parent_id']\n\t\t\t\t);\n\t\t\tendif;\n\t\tendforeach;\n\n\t\tforeach ( $data as $k => $v ) :\n\t\t\t// Update each field with it's new sequence and parent ID\n\t\t\t$wpdb->update( $this->field_table_name, array(\n\t\t\t\t'field_sequence'\t=> $k,\n\t\t\t\t'field_parent' \t=> $v['parent'] ),\n\t\t\t\tarray( 'field_id' => $v['field_id'] ),\n\t\t\t\t'%d'\n\t\t\t);\n\t\tendforeach;\n\n\t\tdie(1);\n\t}", "function set_order($value) {\n $this->set_mapped_property('order', $value);\n }", "public function checkSortQuery($field, $sort='asc')\n\t\t\t{\n\t\t\t\t$this->sql_sort = $this->fields_arr['orderby_field'].' '.$this->fields_arr['orderby'];\n\t\t\t}", "public function addSortField(array|string $field, callable|string $callback = null): self\n {\n $this->addSortFields[] = [$field, $callback];\n\n return $this;\n }", "public function sort_by($sort, $order)\n {\n $this->sorting_order = $order;\n\n if($sort == \"year\")\n {\n usort($this->_db, array($this, \"_sort_by_year\"));\n }\n\n if($sort == \"title\")\n {\n usort($this->_db, array($this, \"_sort_by_title\"));\n }\n\n if($sort == \"added\")\n {\n usort($this->_db, array($this, \"_sort_by_added\"));\n }\n\n if($sort == \"letter\")\n {\n usort($this->_db, array($this, \"_sort_by_letter\"));\n }\n\n if($sort == \"folder\")\n {\n usort($this->_db, array($this, \"_sort_by_folder\"));\n }\n }", "public static function sortByField($array, $sort)\n {\n $old_index = null;\n $total = sizeof($array);\n\n $noIndex = true;\n\n foreach($array as $value) {\n if(isset($value[$sort['field']])) {\n $noIndex = false;\n break;\n }\n }\n\n if($noIndex) {\n throw new \\Exception('sort-field can only be set to a field that exists in the locations return of the JSON');\n }\n\n // TODO: implement this as a foreach instead of a for loop.\n for($index = 0; $index < $total; $index++) {\n $value = $array[$index];\n\n if(!isset($array[$index - 1])) {\n continue;\n }\n\n switch($sort['direction']) {\n case 'asc':\n if($array[$index - 1][$sort['field']] > $array[$index][$sort['field']]) {\n $temp = $array[$index - 1];\n $array[$index - 1] = $array[$index];\n $array[$index] = $temp;\n\n $index = -1;\n }\n break;\n case 'desc':\n if($array[$index - 1][$sort['field']] < $array[$index][$sort['field']]) {\n $temp = $array[$index - 1];\n $array[$index - 1] = $array[$index];\n $array[$index] = $temp;\n\n $index = -1;\n }\n break;\n }\n }\n\n return $array;\n }", "function SetUpSortOrder() {\n\t\tglobal $t_tinbai_mainsite;\n\n\t\t// Check for Ctrl pressed\n\t\t$bCtrl = (@$_GET[\"ctrl\"] <> \"\");\n\n\t\t// Check for \"order\" parameter\n\t\tif (@$_GET[\"order\"] <> \"\") {\n\t\t\t$t_tinbai_mainsite->CurrentOrder = ew_StripSlashes(@$_GET[\"order\"]);\n\t\t\t$t_tinbai_mainsite->CurrentOrderType = @$_GET[\"ordertype\"];\n\t\t\t$t_tinbai_mainsite->UpdateSort($t_tinbai_mainsite->FK_CONGTY_ID, $bCtrl); // FK_CONGTY_ID\n\t\t\t$t_tinbai_mainsite->UpdateSort($t_tinbai_mainsite->FK_DMGIOITHIEU_ID, $bCtrl); // FK_DMGIOITHIEU_ID\n\t\t\t$t_tinbai_mainsite->UpdateSort($t_tinbai_mainsite->FK_DMTUYENSINH_ID, $bCtrl); // FK_DMTUYENSINH_ID\n\t\t\t$t_tinbai_mainsite->UpdateSort($t_tinbai_mainsite->FK_DTSVTUONGLAI_ID, $bCtrl); // FK_DTSVTUONGLAI_ID\n\t\t\t$t_tinbai_mainsite->UpdateSort($t_tinbai_mainsite->FK_DTSVDANGHOC_ID, $bCtrl); // FK_DTSVDANGHOC_ID\n\t\t\t$t_tinbai_mainsite->UpdateSort($t_tinbai_mainsite->FK_DTCUUSV_ID, $bCtrl); // FK_DTCUUSV_ID\n\t\t\t$t_tinbai_mainsite->UpdateSort($t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID, $bCtrl); // FK_DTDOANHNGHIEP_ID\n\t\t\t$t_tinbai_mainsite->UpdateSort($t_tinbai_mainsite->C_TITLE, $bCtrl); // C_TITLE\n\t\t\t$t_tinbai_mainsite->UpdateSort($t_tinbai_mainsite->C_HIT_MAINSITE, $bCtrl); // C_HIT_MAINSITE\n\t\t\t$t_tinbai_mainsite->UpdateSort($t_tinbai_mainsite->C_NEW_MYSEFLT, $bCtrl); // C_NEW_MYSEFLT\n\t\t\t$t_tinbai_mainsite->UpdateSort($t_tinbai_mainsite->C_COMMENT_MAINSITE, $bCtrl); // C_COMMENT_MAINSITE\n\t\t\t$t_tinbai_mainsite->UpdateSort($t_tinbai_mainsite->C_ORDER_MAINSITE, $bCtrl); // C_ORDER_MAINSITE\n\t\t\t$t_tinbai_mainsite->UpdateSort($t_tinbai_mainsite->C_STATUS_MAINSITE, $bCtrl); // C_STATUS_MAINSITE\n\t\t\t$t_tinbai_mainsite->UpdateSort($t_tinbai_mainsite->C_VISITOR_MAINSITE, $bCtrl); // C_VISITOR_MAINSITE\n\t\t\t$t_tinbai_mainsite->UpdateSort($t_tinbai_mainsite->C_ACTIVE_MAINSITE, $bCtrl); // C_ACTIVE_MAINSITE\n\t\t\t$t_tinbai_mainsite->UpdateSort($t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE, $bCtrl); // C_TIME_ACTIVE_MAINSITE\n\t\t\t$t_tinbai_mainsite->UpdateSort($t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE, $bCtrl); // FK_NGUOIDUNGID_MAINSITE\n\t\t\t$t_tinbai_mainsite->UpdateSort($t_tinbai_mainsite->C_NOTE, $bCtrl); // C_NOTE\n\t\t\t$t_tinbai_mainsite->UpdateSort($t_tinbai_mainsite->C_USER_ADD, $bCtrl); // C_USER_ADD\n\t\t\t$t_tinbai_mainsite->UpdateSort($t_tinbai_mainsite->C_ADD_TIME, $bCtrl); // C_ADD_TIME\n\t\t\t$t_tinbai_mainsite->UpdateSort($t_tinbai_mainsite->C_USER_EDIT, $bCtrl); // C_USER_EDIT\n\t\t\t$t_tinbai_mainsite->UpdateSort($t_tinbai_mainsite->C_EDIT_TIME, $bCtrl); // C_EDIT_TIME\n\t\t\t$t_tinbai_mainsite->UpdateSort($t_tinbai_mainsite->FK_EDITOR_ID, $bCtrl); // FK_EDITOR_ID\n\t\t\t$t_tinbai_mainsite->setStartRecordNumber(1); // Reset start position\n\t\t}\n\t}", "public function setSortOrder(int $sortOrder, bool $descendingFlag = false): void\n {\n $this->sortDirection = ($descendingFlag) ? 'desc' : 'asc';\n $this->sortOrder = $sortOrder;\n }", "function SetUpSortOrder() {\r\n\t\tglobal $rekeningju;\r\n\r\n\t\t// Check for \"order\" parameter\r\n\t\tif (@$_GET[\"order\"] <> \"\") {\r\n\t\t\t$rekeningju->CurrentOrder = ew_StripSlashes(@$_GET[\"order\"]);\r\n\t\t\t$rekeningju->CurrentOrderType = @$_GET[\"ordertype\"];\r\n\t\t\t$rekeningju->setStartRecordNumber(1); // Reset start position\r\n\t\t}\r\n\t}", "public static function setSorting(array $sorting) {\n self::$SORTING = $sorting;\n }", "public function orderBy(array $fields, $order = null);", "public function prepareSortableFields()\n {\n if (!$this->getAvailableOrders()) {\n $this->setAvailableOrders($this->_getConfig()->getAttributeUsedForSortByArray());\n }\n $cedAvailableOrders = $this->getAvailableOrders();\n if (!$this->getSortBy()) {\n if ($defaultSortBy = $this->_getConfig()->getDefaultSortBy()) {\n if (isset($cedAvailableOrders[$defaultSortBy])) {\n $this->setSortBy($defaultSortBy);\n }\n }\n }\n return $this;\n }", "function SetUpSortOrder() {\n\t\tglobal $scholarship_package;\n\n\t\t// Check for \"order\" parameter\n\t\tif (@$_GET[\"order\"] <> \"\") {\n\t\t\t$scholarship_package->CurrentOrder = ew_StripSlashes(@$_GET[\"order\"]);\n\t\t\t$scholarship_package->CurrentOrderType = @$_GET[\"ordertype\"];\n\t\t\t$scholarship_package->UpdateSort($scholarship_package->scholarship_package_id); // scholarship_package_id\n\t\t\t$scholarship_package->UpdateSort($scholarship_package->start_date); // start_date\n\t\t\t$scholarship_package->UpdateSort($scholarship_package->end_date); // end_date\n\t\t\t$scholarship_package->UpdateSort($scholarship_package->status); // status\n\t\t\t$scholarship_package->UpdateSort($scholarship_package->annual_amount); // annual_amount\n\t\t\t$scholarship_package->UpdateSort($scholarship_package->grant_package_grant_package_id); // grant_package_grant_package_id\n\t\t\t$scholarship_package->UpdateSort($scholarship_package->sponsored_student_sponsored_student_id); // sponsored_student_sponsored_student_id\n\t\t\t$scholarship_package->UpdateSort($scholarship_package->scholarship_type); // scholarship_type\n\t\t\t$scholarship_package->UpdateSort($scholarship_package->scholarship_type_scholarship_type); // scholarship_type_scholarship_type\n\t\t\t$scholarship_package->setStartRecordNumber(1); // Reset start position\n\t\t}\n\t}", "public function andThenAscendingBy(string $field): ExtensibleSorting;", "function SetUpSortOrder() {\n\tglobal $dpp_proveedores;\n\n\t// Check for an Order parameter\n\tif (@$_GET[\"order\"] <> \"\") {\n\t\t$dpp_proveedores->CurrentOrder = ew_StripSlashes(@$_GET[\"order\"]);\n\t\t$dpp_proveedores->CurrentOrderType = @$_GET[\"ordertype\"];\n\n\t\t// Field provee_id\n\t\t$dpp_proveedores->UpdateSort($dpp_proveedores->provee_id);\n\n\t\t// Field provee_rut\n\t\t$dpp_proveedores->UpdateSort($dpp_proveedores->provee_rut);\n\n\t\t// Field provee_dig\n\t\t$dpp_proveedores->UpdateSort($dpp_proveedores->provee_dig);\n\n\t\t// Field provee_cat_juri\n\t\t$dpp_proveedores->UpdateSort($dpp_proveedores->provee_cat_juri);\n\n\t\t// Field provee_nombre\n\t\t$dpp_proveedores->UpdateSort($dpp_proveedores->provee_nombre);\n\n\t\t// Field provee_paterno\n\t\t$dpp_proveedores->UpdateSort($dpp_proveedores->provee_paterno);\n\n\t\t// Field provee_materno\n\t\t$dpp_proveedores->UpdateSort($dpp_proveedores->provee_materno);\n\n\t\t// Field provee_dir\n\t\t$dpp_proveedores->UpdateSort($dpp_proveedores->provee_dir);\n\n\t\t// Field provee_fono\n\t\t$dpp_proveedores->UpdateSort($dpp_proveedores->provee_fono);\n\t\t$dpp_proveedores->setStartRecordNumber(1); // Reset start position\n\t}\n\t$sOrderBy = $dpp_proveedores->getSessionOrderBy(); // Get order by from Session\n\tif ($sOrderBy == \"\") {\n\t\tif ($dpp_proveedores->SqlOrderBy() <> \"\") {\n\t\t\t$sOrderBy = $dpp_proveedores->SqlOrderBy();\n\t\t\t$dpp_proveedores->setSessionOrderBy($sOrderBy);\n\t\t}\n\t}\n}", "public function setSorting(SetAlbumSortingRequest $request): void\n\t{\n\t\t$request->album()->sorting = $request->sortingCriterion();\n\t\t$request->album()->save();\n\t}", "public function sortAction()\n {\n $this->getResponse()->addHeader('Content-type', 'text/plain');\n $this->getResponse()->sendHeaders();\n\n $sql_set = \"SET @sort := 0, @context := ''\";\n\n $sql_context = 'UPDATE `%1$s` SET\n`sort`=(@sort := IF(@context != `%3$s`, 0, @sort +1)),\n`%3$s` = (@context := `%3$s`)\nORDER BY `%3$s`,`sort`,`%2$s`';\n\n $sql_single = 'UPDATE `%1$s` SET\n`sort`=(@sort := @sort +1)\nORDER BY `sort`,`%2$s`';\n\n $tables = array(\n 'shop_plugin' => 'shopPluginModel',\n 'shop_product_skus' => 'shopProductSkusModel',\n 'shop_type' => 'shopTypeModel',\n 'shop_type_features' => 'shopTypeFeaturesModel',\n 'shop_feature_values_dimension' => 'shopFeatureValuesDimensionModel',\n 'shop_feature_values_double' => 'shopFeatureValuesDoubleModel',\n 'shop_feature_values_text' => 'shopFeatureValuesTextModel',\n 'shop_feature_values_varchar' => 'shopFeatureValuesVarcharModel',\n 'shop_feature_values_color' => 'shopFeatureValuesColorModel',\n 'shop_importexport' => 'shopImportexportModel',\n );\n\n $counter = 0;\n\n $trace = waRequest::request('trace');\n\n foreach ($tables as $table => $table_model) {\n if (class_exists($table_model)) {\n $model = new $table_model();\n /**\n * @var $model shopSortableModel\n */\n print sprintf(\"#%d\\tRepair sort field at `%s` table:\\n\", ++$counter, $table);\n try {\n $id = $model->getTableId();\n if (is_array($id)) {\n $id = implode('`, `', $id);\n }\n if ($context = $model->getTableContext()) {\n $sql = sprintf($sql_context, $model->getTableName(), $id, $context);\n } else {\n $sql = sprintf($sql_single, $model->getTableName(), $id);\n }\n if ($trace) {\n print \"{$sql_set};\\n{$sql};\\n\";\n }\n $model->exec($sql_set);\n $model->exec($sql);\n print \"OK\";\n } catch (waDbException $e) {\n print \"ERROR:\".$e->getMessage();\n }\n print \"\\n\\n\";\n }\n }\n if (empty($model)) {\n $model = new waModel();\n }\n\n $tables = array(\n 'shop_product_images' => 'product_id',\n 'shop_product_pages' => 'product_id',\n 'shop_service_variants' => 'service_id',\n //'shop_set_products' => 'set_id',\n //'shop_tax_zip_codes' => 'tax_id',\n );\n foreach ($tables as $table => $context) {\n $sqls = array();\n $sqls[] = \"SET @sort := 0, @context := ''\";\n $sqls[] = \"UPDATE `{$table}` SET\n`sort`=(@sort := IF(@context != `{$context}`, 0, @sort +1)),\n`{$context}` = (@context := `{$context}`)\nORDER BY `{$context}`,`sort`,`id`\";\n\n print sprintf(\"#%d\\tRepair sort field at `%s` table:\\n\", ++$counter, $table);\n while ($sql = array_shift($sqls)) {\n try {\n if ($trace) {\n print \"{$sql};\\n\";\n }\n $model->exec($sql);\n } catch (waDbException $e) {\n print \"ERROR:\".$e->getMessage().\"\\n\\n\";\n break;\n }\n }\n if (!$sqls) {\n print \"OK\\n\\n\";\n }\n }\n\n $tables = array(\n 'shop_currency' => 'code',\n 'shop_service' => 'id',\n 'shop_set' => 'id',\n 'shop_stock' => 'id',\n\n );\n foreach ($tables as $table => $id) {\n $sqls = array();\n $sqls[] = \"SET @sort := 0\";\n $sqls[] = \"UPDATE `{$table}` SET\n`sort`=(@sort := @sort +1)\nORDER BY `sort`,`{$id}`\";\n\n print sprintf(\"#%d\\tRepair sort field at `%s` table:\\n\", ++$counter, $table);\n while ($sql = array_shift($sqls)) {\n try {\n if ($trace) {\n print \"{$sql};\\n\";\n }\n $model->exec($sql);\n } catch (waDbException $e) {\n print \"ERROR:\".$e->getMessage().\"\\n\\n\";\n break;\n }\n }\n if (!$sqls) {\n print \"OK\\n\\n\";\n }\n }\n }", "function Order($id, $type = 'DESC')\n\t{\n\t\tif(!$this->Ready(true) OR $this->type == 'INSERT')\n\t\t\treturn $this->Error('query.prepare', __FUNCTION__);\n\t\t\n\t\t$query = 'ORDER BY ';\n\t\t\n\t\tif(is_array($id))\n\t\t\t$query .= implode(',', $id);\n\t\telse\n\t\t\t$query .= $id;\n\t\t\n\t\t$query \t\t\t.= \" $type \";\n\t\t$this->query \t.= $query;\n\t}", "function setOrder($array)\n\t{\n\t\t$this->table->order = $array;\n\t}", "public function setSortOrder($sortOrder = false) {\n\t\t\tglobal $db;\n\t\t\tif ($sortOrder) {\n\t\t\t\t$this->sort_order = $sortOrder;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$data = $db->get_var(\"SELECT sort_order FROM pages WHERE parent = '{$this->parent}' ORDER BY sort_order DESC LIMIT 1\");\n\t\t\t\t$this->sort_order = $data + 1;\n\t\t\t}\n\t\t}", "public function orderBy($field) {\n\t$this->parseQuery->orderBy($field);\n }", "public function setCustomOrderAsc()\n {\n $this->customOrder = \"asc\";\n }", "public function order($field, $direction = Operator::SORT_DESC)\n {\n if (empty($field)) {\n $this->order_str = '';\n return $this;\n }\n if (!empty($direction)){\n $direction = ltrim($direction, '$');\n }\n if (is_array($field)) {\n $output = array();\n foreach ($field as $item) {\n $output[] = \"`{$item}`\";\n }\n $field = implode(', ', $field);\n }\n else {\n $field = $this->escapeString($field);\n }\n $this->order_str = \"{$field} {$direction}\";\n return $this;\n }", "public function addSort( $name, $type = \"ASC\" ) {\n\t\t\n\t\t$this->isDirty( true );\n\n\t\t$sort\t\t= array();\n\t\t$sort[ \"field\" ]= $name;\n\t\t$sort[ \"type\" ]\t= $type;\n\t\t$this->_order[]\t= $sort;\n\n\t}", "protected static function _orderby($field, $order)\n {\n if ($field == \"\") {\n self::$orderby = null;\n } else {\n self::$orderby = sprintf(\" ORDER BY %s %s\", $field, $order);\n }\n }", "public function orderByAsc($field, $overwrite = false);", "function MyMod_Sort_Items($sort=\"\",$reverse=\"\")\n {\n if ($sort==\"\") { $sort=$this->MyMod_Sort_Get(); }\n if ($reverse==\"\") { $reverse=$this->MyMod_Sort_Reverse_Get($reverse); }\n\n if (!is_array($sort))\n {\n $sort=preg_split('/\\s*,\\s*/',$sort);\n }\n\n array_push($sort,\"ID\"); //ID makes sort fields unique!\n\n $hashes=array();\n foreach ($this->ItemHashes as $n => $hash)\n {\n $value=\"\";\n foreach ($sort as $iid => $key)\n {\n if (!isset($this->ItemData[ $key ]))\n {\n if (!empty($hash[ $key ]))\n {\n $value.=\" \".$hash[ $key ]; \n }\n continue;\n }\n\n $rvalue=\"\";\n if (!empty($hash[ $key ])) { $rvalue=$hash[ $key ]; }\n\n if (isset($this->ItemData[ $key ][ \"SqlObject\" ]))\n {\n $object=$this->ItemData[ $key ][ \"SqlObject\" ];\n $rvalue=$this->ApplicationObj->$object->MyMod_Item_Name_Get($rvalue);\n }\n\n if (\n $key==\"ID\"\n ||\n (\n isset($this->ItemData[ $key ][ \"NumericalSort\" ])\n &&\n $this->ItemData[ $key ][ \"NumericalSort\" ]==TRUE\n )\n )\n {\n if (\n isset($this->ItemData[ $key ][ \"SortReverse\" ])\n &&\n $this->ItemData[ $key ][ \"SortReverse\" ]==TRUE\n )\n {\n $rvalue=sprintf(\"%06d\",1000000-$hash[ $key ]);\n }\n else\n {\n $rvalue=sprintf(\"%06d\",$hash[ $key ]);\n }\n }\n elseif (isset($this->ItemData[ $key ][ \"SqlTable\" ]))\n {\n $rvalue=$this->GetEnumValue($key,$hash);\n }\n elseif ($this->ItemData[ $key ][ \"Sql\" ]==\"INT\")\n {\n $rvalue=sprintf(\"%06d\",$rvalue);\n }\n elseif (!empty($this->ItemData[ $key ][ \"DerivedFilter\" ]))\n {\n $rvalue=$this->FilterHash($this->ItemData[ $key ][ \"DerivedFilter\" ],$hash);\n }\n elseif (!empty($this->ItemData[ $key ][ \"DerivedNamer\" ]))\n {\n $rvalue=$hash[ $this->ItemData[ $key ][ \"DerivedNamer\" ] ];\n }\n elseif (!empty($this->ItemData[ $key ][ \"SortAsDate\" ]))\n {\n $rvalue=$this->Date2Sort($hash[ $key ]);\n }\n\n if ($rvalue!=\"\") { $value.=\" \".$rvalue; }\n }\n\n $value=preg_replace('/^\\s*/',\"\",$value);\n $value=preg_replace('/\\s*$/',\"\",$value);\n\n $value=$this->Text2Sort($value);\n $value=$this->Html2Sort($value);\n\n //Make sure two items do not have same sort key\n while (isset($hashes[ $value ]))\n {\n $value.=\"a\";\n }\n\n $value=strtolower($value);\n $hashes[ $value ]=$hash;\n }\n\n $this->ItemHashes=array();\n\n $keys=array_keys($hashes);\n sort($keys);\n if ($reverse) { $keys=array_reverse($keys); }\n\n foreach ($keys as $rkey)\n {\n array_push($this->ItemHashes,$hashes[ $rkey ]);\n }\n\n //return $this->ItemHashes;\n }", "public function sort() {\n $cols = func_get_args();\n foreach ($cols as &$v) {\n if (is_array($v)) {\n $v = implode(',', $v);\n }\n }\n $this->__sortR__ = $this->translateToSql(implode(',', $cols));\n $this->__sort__ = ' ORDER BY ' . $this->__sortR__;\n return $this;\n }", "function setOrder($name, $asc=false) {\n\t\treturn $this->addOrder($name, $asc);\n\t}" ]
[ "0.68903214", "0.68764603", "0.68676996", "0.6691304", "0.66362303", "0.65209377", "0.6449973", "0.6426554", "0.634248", "0.62708473", "0.6249484", "0.62409294", "0.6216276", "0.6214688", "0.6205694", "0.62051475", "0.61564195", "0.6147412", "0.6133623", "0.6102947", "0.61022985", "0.60984755", "0.6092523", "0.6082591", "0.6077788", "0.6075429", "0.6064963", "0.60562164", "0.60508704", "0.60099757", "0.60018057", "0.5994411", "0.5983708", "0.59532756", "0.5951306", "0.5937619", "0.59317017", "0.5927167", "0.5920257", "0.59069365", "0.5905918", "0.5905918", "0.5905918", "0.5903286", "0.589582", "0.5894756", "0.5883001", "0.5827867", "0.58158284", "0.58074105", "0.5793641", "0.5789168", "0.57886", "0.5781293", "0.57669663", "0.57483995", "0.5742044", "0.57395685", "0.5716744", "0.5711549", "0.56921595", "0.5686765", "0.56859964", "0.56853926", "0.56838983", "0.56825465", "0.5679776", "0.5678216", "0.56588036", "0.56466085", "0.5631237", "0.562549", "0.56058764", "0.5604636", "0.56026465", "0.5602531", "0.5600751", "0.5590372", "0.5580358", "0.5574028", "0.5573782", "0.5566824", "0.55652726", "0.5561235", "0.55582297", "0.55525327", "0.555139", "0.5527227", "0.551684", "0.55156976", "0.55133826", "0.5508519", "0.5503485", "0.5502343", "0.54906744", "0.5486637", "0.54845285", "0.5478754", "0.54621553", "0.54557437" ]
0.66313684
5
Set filter conditions. The filters must be enabled on the api side, otherwise it wont have any effect. Example usage assuming filters are configured on api: ```php setFilter(['lang_id' => 1]); // like a where condition lang_id=1 ``` greather then, smaller then operators: ```php setFilter(['publication_date' => ['lt' => strtotime('tomorrow'), 'gt' => strtotime('yesterday')]); //like >= and ['in' => [1,2]] ]); ``` All posible operators: + and (AND) + or (OR) + not (NOT) + lt () + lte (=) + eq (=) + neq (!=) + in (IN) + nin (NOT IN) + like (LIKE) Conditions combine two conditions with which are AND conditions: ```php setFilter([ 'publication_date' => ['lt' => strtotime('tomorrow'), 'gt' => strtotime('yesterday')], 'lang_id' => 2 ]); ``` Two conditions but connected as OR condition: ```php setFilter([ 'or' => [ ['lang_id' => 1], ['publication_date' => ['gt' => time()]], ] ]) ```
public function setFilter(array $filter) { return $this->setArgs(['filter' => $filter]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function SetFilters (array $filters = []);", "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 }", "private function setFilter()\n\t{\n\t\t// get filter values\n\t\t$this->filter['language'] = ($this->getParameter('language', 'array') != '') ? $this->getParameter('language', 'array') : BL::getWorkingLanguage();\n\t\t$this->filter['application'] = $this->getParameter('application');\n\t\t$this->filter['module'] = $this->getParameter('module');\n\t\t$this->filter['type'] = $this->getParameter('type', 'array');\n\t\t$this->filter['name'] = $this->getParameter('name');\n\t\t$this->filter['value'] = $this->getParameter('value');\n\n\t\t// build query for filter\n\t\t$this->filterQuery = BackendLocaleModel::buildURLQueryByFilter($this->filter);\n\t}", "public function setFilters($args) {\n\t\tforeach($args as $argName => $argValue) {\n\t\t\tif($argValue !== null) {\n\t\t\t\t$methodName = 'add'.ucfirst($argName).'Filter';\n\t\t\t\tif(method_exists($this,$methodName)) {\n\t\t\t\t\t$this->$methodName($argValue, $args);\n\t\t\t\t} else {\n\t\t\t\t\t$this->addFilter($argName, $argValue);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function setFilter($filter){ }", "public function setFilter($arrFilter);", "public function setFilters($filters)\n {\n $this->filters = $filters;\n }", "public function setFilters($filters)\r\n\t{\r\n\t\t$this->_filters=$filters;\r\n\t}", "private function setFilters($filters)\n {\n $this->filters = $filters;\n }", "public function setFilters($filters)\n\t{\n\t\t$this->filters = $filters;\n\t}", "private function _setupFiltering()\n\t{\n\t\tglobal $txt;\n\n\t\t// We'll escape some strings...\n\t\t$db = database();\n\n\t\t// You can filter by any of the following columns:\n\t\t$filters = array(\n\t\t\t'id_member' => $txt['username'],\n\t\t\t'ip' => $txt['ip_address'],\n\t\t\t'session' => $txt['session'],\n\t\t\t'url' => $txt['error_url'],\n\t\t\t'message' => $txt['error_message'],\n\t\t\t'error_type' => $txt['error_type'],\n\t\t\t'file' => $txt['file'],\n\t\t\t'line' => $txt['line'],\n\t\t);\n\n\t\t$filter = $this->_req->getQuery('filter', 'trim', null);\n\t\t$value = $this->_req->getQuery('value', 'trim', null);\n\n\t\t// Set up the filtering...\n\t\tif (isset($value, $filters[$filter]))\n\t\t{\n\t\t\t$filter = array(\n\t\t\t\t'variable' => $filter,\n\t\t\t\t'value' => array(\n\t\t\t\t\t'sql' => in_array($filter, array('message', 'url', 'file'))\n\t\t\t\t\t\t? base64_decode(strtr($value, array(' ' => '+')))\n\t\t\t\t\t\t: $db->escape_wildcard_string($value),\n\t\t\t\t),\n\t\t\t\t'href' => ['filter' => $filter, 'value' => $value],\n\t\t\t\t'entity' => $filters[$filter]\n\t\t\t);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (isset($filter, $value))\n\t\t\t{\n\t\t\t\tunset($this->_req->query->filter, $this->_req->query->value);\n\t\t\t}\n\n\t\t\t$filter = [];\n\t\t}\n\n\t\treturn $filter;\n\t}", "public function where($filters)\n {\n $this->filters = array_merge($this->filters, $filters);\n return $this;\n }", "public function setFilter(string $filter);", "public function withFilters(array $filters = array());", "protected function prepareFilters()\n {\n if(count($this->api_query) === 0){\n return;\n }\n\n // Matched WHERE filters would be all\n // that are not KEYWORDS (count, page, embed...)\n foreach($this->api_query as $column => $value) {\n if(in_array($column, $this->api_keyword_filters)){\n continue;\n }\n\n $this->where_filters[$column]= $value;\n }\n }", "public function setFilters( array $filters )\n {\n $this->filters = $filters;\n }", "public function setFilters(array $filters = [])\r\n {\r\n $this->filters = Transform::filters($filters);\r\n }", "public function filter(/* variable arguments */) {\n $args = func_get_args();\n $filterName = array_shift($args);\n $this->filters[$filterName] = $args;\n return $this;\n }", "private function defineFilters() {\n\n // init local filters variable as empty array\n $filters = [];\n\n // parse each filter to apply\n // and add the valid once to filters\n\n // filters by name\n if (isset($_GET['s'])) {\n\n $filters['name'] = $_GET['s'];\n\n }\n\n // filter by categories\n if (isset($_GET['c'])) {\n\n $categories = explode(\"_\", $_GET['c']);\n foreach ($categories as $key => $value) {\n if (is_numeric($value)) {\n $filters['categories'][] = $value;\n }\n }\n\n }\n\n // filter by areas\n if (isset($_GET['a'])) {\n\n $areas = explode(\"_\", $_GET['a']);\n foreach ($areas as $key => $value) {\n if (is_numeric($value)) {\n $filters['areas'][] = $value;\n }\n }\n\n }\n\n // Check if any filter has been set\n\n if (count($filters)>0) {\n\n $this->filters = $filters;\n return true;\n\n }\n\n\n return false;\n\n }", "function acf_set_filters($filters = array())\n{\n}", "public function setFilter(array $filter)\n {\n $model = $this->getModel();\n $model->setFilter($filter);\n }", "abstract public function prepareFilters();", "public function filters($filters)\n\t{\n\t\tif ($filters)\n\t\t{\n\t\t\tif (is_string($filters)) $filters = array($filters);\n\t\t\tif (is_array($filters)) $this->filters = array_merge($this->filters, $filters);\n\t\t}\n\n\t\treturn $this;\n\t}", "protected function formConditions(&$builder, $filters = null)\n {\n if (empty($filters)) { $filters = $this->filters; }\n $param_count = 0;\n foreach ($filters as $filter){\n $param_id = \"p_$param_count\";\n\n $actual_field = $filter[self::FILTER_PARAM_FIELD];\n $actual_field_arr = explode('.', $filter[self::FILTER_PARAM_FIELD]);\n $count_parts = count($actual_field_arr);\n if ($count_parts > 2){\n $actual_field = $actual_field_arr[$count_parts - 2] . '.' . $actual_field_arr[$count_parts - 1];\n }\n\n if (is_array($filter[self::FILTER_PARAM_VALUE])){\n switch ($filter[self::FILTER_PARAM_COMPARATOR]){\n case self::CMP_NOT:\n $builder->notInWhere($actual_field, $filter[self::FILTER_PARAM_VALUE]);\n break;\n default:\n $builder->inWhere($actual_field, $filter[self::FILTER_PARAM_VALUE]);\n break;\n }\n } else {\n //build conditions\n $condition = null;\n switch ($filter[self::FILTER_PARAM_COMPARATOR]){\n case self::CMP_IS:\n $condition = \"{$actual_field} IS :$param_id:\";\n break;\n case self::CMP_IS_NOT:\n $condition = \"NOT {$actual_field} IS :$param_id:\";\n break;\n case self::CMP_LIKE:\n $condition = \"{$actual_field} LIKE :$param_id:\";\n break;\n default:\n $condition = \"{$actual_field} {$filter[self::FILTER_PARAM_COMPARATOR]} :$param_id:\";\n break;\n }\n\n //determine joining operators\n switch ($filter[self::FILTER_PARAM_CONDITION]){\n case self::COND_OR:\n $builder->orWhere($condition, [$param_id => $filter[self::FILTER_PARAM_VALUE]]);\n break;\n default:\n $builder->andWhere($condition, [$param_id => $filter[self::FILTER_PARAM_VALUE]]);\n break;\n }\n }\n $param_count++;\n }\n }", "public function addFilters()\n {\n }", "public function add_filters($filters)\n\t{\n\t\tif (empty($this->filters))\n\t\t{\n\t\t\t$this->filters = $filters;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->filters = array_merge($this->filters, $filters);\n\t\t}\n\t}", "protected function setParamsFilters()\n {\n if ($this->arParams['IBLOCK_TYPE'])\n {\n $this->filterParams['IBLOCK_TYPE'] = $this->arParams['IBLOCK_TYPE'];\n }\n\n if ($this->arParams['IBLOCK_ID'])\n {\n $this->filterParams['IBLOCK_ID'] = $this->arParams['IBLOCK_ID'];\n }\n\n if ($this->arParams['SECTION_CODE'])\n {\n $this->filterParams['SECTION_CODE'] = $this->arParams['SECTION_CODE'];\n }\n elseif ($this->arParams['SECTION_ID'])\n {\n $this->filterParams['SECTION_ID'] = $this->arParams['SECTION_ID'];\n }\n\n if ($this->arParams['INCLUDE_SUBSECTIONS'] === 'Y')\n {\n $this->filterParams['INCLUDE_SUBSECTIONS'] = 'Y';\n }\n\n if ($this->arParams['ELEMENT_CODE'])\n {\n $this->filterParams['CODE'] = $this->arParams['ELEMENT_CODE'];\n }\n elseif ($this->arParams['ELEMENT_ID'])\n {\n $this->filterParams['ID'] = $this->arParams['ELEMENT_ID'];\n }\n\n if ($this->arParams['CHECK_PERMISSIONS'])\n {\n $this->filterParams['CHECK_PERMISSIONS'] = $this->arParams['CHECK_PERMISSIONS'];\n }\n\n if (!isset($this->filterParams['ACTIVE']))\n {\n $this->filterParams['ACTIVE'] = 'Y';\n }\n\n if (strlen($this->arParams['EX_FILTER_NAME']) > 0\n && preg_match(\"/^[A-Za-z_][A-Za-z01-9_]*$/\", $this->arParams['EX_FILTER_NAME'])\n && is_array($GLOBALS[$this->arParams['EX_FILTER_NAME']])\n )\n {\n $this->filterParams = array_merge_recursive($this->filterParams, $GLOBALS[$this->arParams['EX_FILTER_NAME']]);\n\n $this->addCacheAdditionalId($GLOBALS[$this->arParams['EX_FILTER_NAME']]);\n }\n }", "public function setFilters(array $filters)\n {\n $this->clearFilters();\n $this->addFilters($filters);\n }", "protected function setFiltersConjunction(&$filters, $conjunction) {\n if (count($filters) > 1) {\n if ($conjunction === 'OR') {\n $filters = array(array('or' => $filters));\n }\n elseif ($conjunction === 'AND') {\n $filters = array(array('and' => $filters));\n }\n else {\n throw new Exception(t('Undefined conjunction :conjunction! Available values are :avail_conjunction! Incorrect filter criteria is using for searching!',\n array(':conjunction!' => $conjunction, ':avail_conjunction' => $conjunction)));\n return NULL;\n }\n }\n\n return $filters;\n }", "public function setFilterables($filterables)\n {\n $this->filterables = $filterables;\n $this->conditions = self::makeConditions($this->params, $this->filterables);\n return $this;\n }", "abstract public function filters();", "public function buildFilters()\n {\n $this->addFilter('name', new ORM\\StringFilterType('name'), 'media.adminlist.configurator.filter.name');\n $this->addFilter('contentType', new ORM\\StringFilterType('contentType'), 'media.adminlist.configurator.filter.type');\n $this->addFilter('updatedAt', new ORM\\NumberFilterType('updatedAt'), 'media.adminlist.configurator.filter.updated_at');\n $this->addFilter('filesize', new ORM\\NumberFilterType('filesize'), 'media.adminlist.configurator.filter.filesize');\n }", "function setAttributes($attributes) {\n \n if(isset($attributes['date_filter'])) {\n switch($attributes['date_filter']) {\n case self::DATE_FILTER_SELECTED_DATE:\n $this->filterByDate($attributes['date_on']);\n break;\n case self::DATE_FILTER_SELECTED_RANGE:\n $this->filterByRange($attributes['date_from'], $attributes['date_to']);\n break;\n case self::DATE_FILTER_SELECTED_YEAR:\n $this->filterByYear($attributes['year']);\n break;\n default:\n $this->setDateFilter($attributes['date_filter']);\n } // switch\n } // if\n \n if(isset($attributes['company_filter'])) {\n switch ($attributes['company_filter']) {\n case self::CLIENT_FILTER_SELECTED:\n $this->filterByCompany($attributes['company_id']);\n break;\n default:\n $this->setCompanyFilter($attributes['company_filter']);\n }//switch\n }//if\n \n if(isset($attributes['include_comments'])) {\n $this->setIncludeComments($attributes['include_comments']);\n }//if\n \n if(isset($attributes['payment_status_filter'])) {\n switch ($attributes['payment_status_filter']) {\n case self::STATUS_FILTER_SELECTED:\n $this->filterByStatus($attributes['payment_status_selected']);\n break;\n default:\n $this->setStatusFilter($attributes['payment_status_filter']);\n }//switch\n }//if\n \n if(isset($attributes['group_by'])) {\n $this->setGroupBy($attributes['group_by']);\n } // if\n \n parent::setAttributes($attributes);\n }", "private static function setFilters($filters){ \n $movies = new Movie();\n \n /* Global Search */\n if(!empty($filters['type']) && $filters['type'] == 'all'){\n $movies = $movies->where('title', 'like', \"%\".trim($filters['search']).\"%\");\n $movies = $movies->orWhere('genre', 'like', \"%\".trim($filters['search']).\"%\");\n $movies = $movies->orWhere('rating', '=', trim($filters['search']));\n \n } else {\n \n if(!empty($filters['type']) && $filters['type'] == 'title'){\n $movies = $movies->where('title', 'like', \"%\".trim($filters['search']).\"%\");\n }\n if(!empty($filters['type']) && $filters['type'] == 'genre'){\n $movies = $movies->where('genre', 'like', \"%\".trim($filters['search']).\"%\");\n }\n if(!empty($filters['type']) && $filters['type'] == 'rating'){\n $movies = $movies->where('rating', 'like', \"%\".trim($filters['search']).\"%\");\n } \n }\n return $movies;\n }", "function _get_filters(){\n $flt = array();\n $filters = array();\n\n if(!isset($_REQUEST['dataflt'])){\n $flt = array();\n }elseif(!is_array($_REQUEST['dataflt'])){\n $flt = (array) $_REQUEST['dataflt'];\n }else{\n $flt = $_REQUEST['dataflt'];\n }\n foreach($flt as $key => $line){\n // we also take the column and filtertype in the key:\n if(!is_numeric($key)) $line = $key.$line;\n $f = $this->_parse_filter($line);\n if(is_array($f)){\n $f['logic'] = 'AND';\n $filters[] = $f;\n }\n }\n return $filters;\n }", "public function __construct($stringFilter)\n {\n foreach (explode(static::LOGIC_OPERATOR, $stringFilter) as $filter) {\n $this->conditions[] = explode(' ', trim($filter));\n }\n }", "public function setFilter($filter)\n {\n $filters = array();\n parse_str($filter, $filters);\n foreach ($filters as $key => $val) {\n $this->addFilter($key, $val);\n }\n \n return $this;\n }", "protected function where(array $filter){\n if (array_key_exists(\"order\", $filter)){\n $order = $filter[\"order\"];\n unset($filter[\"order\"]);\n if (gettype($order) != \"array\")\n $order = [$order];\n }\n\n if (array_key_exists(\"limit\", $filter)){\n $limit = $filter[\"limit\"];\n unset($filter[\"limit\"]);\n if (gettype($limit) != \"integer\")\n throw new appException(\"This is off-limits, literally\");\n }\n\n if (!empty($filter)){\n $query = \" WHERE \";\n\n foreach ($filter as $k => $v){\n if (gettype($v) == \"array\"){\n $query .= $this->genTableVar($k) . \" IN ( \";\n $query .= join(\", \", array_fill(0, count($v), \"?\"));\n $query .= \") AND \";\n }\n else if (gettype($v) == \"object\" && get_class($v) == \"dbContains\"){\n $query .= $v->genSql($this->genTableVar($k)) . \" AND \";\n }\n else {\n $query .= $this->genTableVar($k) . \" = ? AND \";\n }\n $this->args[] = $v;\n }\n\n $query = substr($query, 0, -4);\n\n $this->query .= $query;\n }\n\n if (isset($order))\n $this->orderBy($order);\n\n if (isset($limit))\n $this->limit($limit);\n }", "protected function setFilter(array $filter) {\n $this->filter = array_flip($filter);\n }", "private function setFilter(): void\n {\n // start date is set\n if ($this->getRequest()->query->has('start_date') && $this->getRequest()->query->get('start_date', '') !== '') {\n // redefine\n $startDate = $this->getRequest()->query->get('start_date', '');\n\n // explode date parts\n $chunks = explode('/', $startDate);\n\n // valid date\n if (count($chunks) == 3 && checkdate((int) $chunks[1], (int) $chunks[0], (int) $chunks[2])) {\n $this->filter['start_date'] = $startDate;\n } else {\n // invalid date\n $this->filter['start_date'] = '';\n }\n } else {\n // not set\n $this->filter['start_date'] = '';\n }\n\n // end date is set\n if ($this->getRequest()->query->has('end_date') && $this->getRequest()->query->get('end_date', '') !== '') {\n // redefine\n $endDate = $this->getRequest()->query->get('end_date', '');\n\n // explode date parts\n $chunks = explode('/', $endDate);\n\n // valid date\n if (count($chunks) == 3 && checkdate((int) $chunks[1], (int) $chunks[0], (int) $chunks[2])) {\n $this->filter['end_date'] = $endDate;\n } else {\n // invalid date\n $this->filter['end_date'] = '';\n }\n } else {\n // not set\n $this->filter['end_date'] = '';\n }\n }", "protected function parseFilterParams(): void\n {\n\n $this->parseFilters();\n\n $where = $this->uriParser->whereParameters();\n\n if (empty($where)) {\n return;\n }\n\n /** @scrutinizer ignore-call */\n $tableColumns = $this->getTableColumns();\n $table = $this->getModel()->getTable();\n\n foreach ($where as $whr) {\n if (strpos($whr['key'], '.') > 0) {\n $this->/** @scrutinizer ignore-call */setWhereHasClause($whr);\n continue;\n } elseif (! in_array($whr['key'], $tableColumns)) {\n continue;\n }\n $this->/** @scrutinizer ignore-call */setQueryBuilderWhereStatement($this->getBuilder(), $table . '.' . $whr['key'], $whr);\n }\n }", "protected function applyFiltering()\n\t{\n\t\tif (!$this->hasFilters()) return;\n\n\t\tparse_str($this->filters, $list);\n\t\tforeach ($list as $column => $value) {\n\t\t\tif ($value !== '') {\n\t\t\t\t$this[$column]->applyFilter($value);\n\t\t\t}\n\t\t}\n\t}", "public function setFilters($filters = false)\n {\n ($filters && ($this->filters = $filters));\n }", "public function registerFilterByArray(array $filterData)\n {\n foreach ($filterData as $filterName => $parameter) {\n $filterClass = 'idoit\\\\Component\\\\Browser\\\\Filter\\\\' . $filterName;\n\n if (empty($parameter) || !class_exists($filterClass)) {\n continue;\n }\n\n if (isys_format_json::is_json_array($parameter)) {\n $parameter = isys_format_json::decode($parameter);\n } elseif (is_scalar($parameter)) {\n if (strpos($parameter, ';') !== false) {\n $parameter = explode(';', $parameter);\n } elseif (strpos($parameter, ',') !== false) {\n $parameter = explode(',', $parameter);\n } else {\n $parameter = [$parameter];\n }\n }\n\n /** @var FilterInterface $filterClass */\n $this->registerFilter((new $filterClass($this->db))->setParameter($parameter));\n }\n\n return $this;\n }", "private function _filters($filters, $limit = false, $offset = false) {\n if(isset($filters['name']) && !empty($filters['name'])) { // Si trae name\n $this->db->like('name', $filters['name'], 'both');\n }\n if(isset($filters['key']) && !empty($filters['key'])) { // Si trae key\n $this->db->like('key', $filters['key'], 'both');\n }\n\n if($limit) {\n $this->db->limit($limit, $offset);\n }\n }", "public function addFilters() {\n\t\t\tadd_filter( 'muut_validate_setting', array( $this, 'validateSettings' ), 10, 2 );\n\t\t}", "protected function setFiltersConjunction(array &$filters, $conjunction) {\n\n if ($conjunction === 'OR') {\n $filters = ['should' => $filters];\n }\n elseif ($conjunction === 'AND') {\n $filters = ['must' => $filters];\n }\n else {\n throw new \\Exception(\n t(\n 'Undefined conjunction :conjunction! Available values are :avail_conjunction! Incorrect filter criteria is using for searching!',\n [\n ':conjunction!' => $conjunction,\n ':avail_conjunction' => $conjunction,\n ]\n )\n );\n }\n\n return ['bool' => $filters];\n }", "private function loadFiltersFromQuery(): void\n {\n $request = RequestUtil::getMainRequest($this->requestStack) ?? Request::createFromGlobals();\n $requestFilters = $request->query->all('filter');\n\n if (is_array($requestFilters)) {\n foreach ($requestFilters as $name => $limitations) {\n foreach ($limitations as $comparison => $value) {\n $filterField = new FilterField();\n $filterField->setName($name)\n ->setValue($value)\n ->setComparison($comparison)\n ->setFilter($this->getFilterByName($name));\n\n $this->filterFields[] = $filterField;\n }\n }\n }\n }", "protected function prepareFilterQuery()\n\t{\n\t\t$filterQuery = array();\n\n\t\t$storeid = $this->getParam('storeid');\n\n\t\t$config = $this->getConfig();\n\n\t\t$websiteid = isset($config['stores'][$storeid]['website_id'])?$config['stores'][$storeid]['website_id']:0;\n\n\t\t$checkInstock = (int) $this->getConfigValue('check_instock');\n\n\t\t$filterQuery = array_merge($filterQuery, array(\n\t\t\t\t'store_id' => array($storeid),\n\t\t\t\t'website_id' => array($websiteid),\n\t\t\t\t'product_status' => array(1)\n\t\t));\n\n\t\tif ($checkInstock > 0) {\n\t\t\t$filterQuery['instock_int'] = array(1);\n\t\t}\n\n\t\t$filterQueryArray = array();\n\n\t\tforeach($filterQuery as $key=>$filterItem)\n\t\t{\n\n\t\t\tif(count($filterItem) > 0){\n\t\t\t\t$query = '';\n\t\t\t\tforeach($filterItem as $value){\n\t\t\t\t\t\t$query .= $key.':%22'.urlencode(trim(addslashes($value))).'%22+OR+';\n\t\t\t\t}\n\n\t\t\t\t$query = trim($query, '+OR+');\n\n\t\t\t\t$filterQueryArray[] = $query;\n\t\t\t}\n\t\t}\n\n\t\t$filterQueryString = '';\n\n\t\tif(count($filterQueryArray) > 0) {\n\t\t\tif(count($filterQueryArray) < 2) {\n\t\t\t\t$filterQueryString .= $filterQueryArray[0];\n\t\t\t}else{\n\t\t\t\t$filterQueryString .= '%28'.@implode('%29+AND+%28', $filterQueryArray).'%29';\n\t\t\t}\n\t\t}\n\n\t\t$this->filterQuery = $filterQueryString;\n\t}", "private function setSearchFilters()\n\t{\n\t\tif(sizeof($this->searchFilters) > 0)\n\t\t{\n\t\t\t$this->taskSearchHelperDA->setSearchFilters($this->searchFilters);\n\t\t}\n\t}", "public function setConditions(array $conditions);", "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 }", "public function setFilters()\n {\n if (class_exists('Twig_SimpleFilter')) {\n $class = 'Twig_SimpleFilter';\n } else {\n $class = 'Twig\\TwigFilter';\n }\n\n $filter_merge_str = new $class('merge_str', function ($attrs, array $options = array()) {\n $key = $options[0];\n $value = $options[1];\n\n if (array_key_exists($key, $attrs)) {\n $attrs[$key] = implode(' ', [$value, $attrs[$key]]);\n } else {\n $attrs[$key] = $value;\n }\n\n return $attrs;\n }, array('is_variadic' => true));\n\n $this->twig->addFilter($filter_merge_str);\n }", "public function filter( $filters=array() ){\n\t\t$items_filtered = $this->getItems();\n\t\tforeach($filters as $key=>$values){\n\n\t\t\tif(empty($values))\n\t\t\t\tcontinue;\n\n\t\t\tif(!is_array($values) && !empty($values)){\n\t\t\t\t$values = array($values);\n\t\t\t}\n\t\t\t\n\t\t\tforeach( $items_filtered as $i=>$item ){\n\t\t\t\tif(!in_array($this->dotNotationExtract($item, $key),$values)){\n\t\t\t\t\tunset($items_filtered[$i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->items_filtered = $items_filtered;\n\t\t$this->update();\n\t\treturn $this;\n\t}", "public function setFilter($var)\n {\n GPBUtil::checkString($var, False);\n $this->filter = $var;\n $this->has_filter = true;\n\n return $this;\n }", "public function setFilter($var)\n {\n GPBUtil::checkString($var, False);\n $this->filter = $var;\n $this->has_filter = true;\n\n return $this;\n }", "protected function setFilter($aFilter)\n {\n // Set filter stuff from configuration.\n if (true === isset($aFilter['Directory'])) {\n foreach ($aFilter['Directory'] as $sDirectory) {\n $this->oObjectFilter->addDirectoryToFilter($sDirectory);\n }\n }\n\n if (true === isset($aFilter['Files'])) {\n foreach ($aFilter['Files'] as $sFile) {\n $this->oObjectFilter->addFileToFilter($sFile);\n }\n }\n\n if (true === isset($aFilter['WhiteListDirectories'])) {\n foreach ($aFilter['WhiteListDirectories'] as $sDirectory) {\n $this->oObjectFilter->addDirectoryToWhiteList($sDirectory);\n }\n }\n\n if (true === isset($aFilter['WhiteListFiles'])) {\n foreach ($aFilter['WhiteListFiles'] as $sFile) {\n $this->oObjectFilter->addFileToWhiteList($sFile);\n }\n }\n }", "protected function setFilter($aFilter)\n {\n // Set filter stuff from configuration.\n if (true === isset($aFilter['Directory'])) {\n foreach ($aFilter['Directory'] as $sDirectory) {\n $this->oObjectFilter->addDirectoryToFilter($sDirectory);\n }\n }\n\n if (true === isset($aFilter['Files'])) {\n foreach ($aFilter['Files'] as $sFile) {\n $this->oObjectFilter->addFileToFilter($sFile);\n }\n }\n\n if (true === isset($aFilter['WhiteListDirectories'])) {\n foreach ($aFilter['WhiteListDirectories'] as $sDirectory) {\n $this->oObjectFilter->addDirectoryToWhiteList($sDirectory);\n }\n }\n\n if (true === isset($aFilter['WhiteListFiles'])) {\n foreach ($aFilter['WhiteListFiles'] as $sFile) {\n $this->oObjectFilter->addFileToWhiteList($sFile);\n }\n }\n }", "public function addFilters()\n {\n foreach (func_get_args() as $filter) {\n if (is_a($filter, 'Rhubarb\\Stem\\Filters\\Filter')) {\n $this->filters[] = $filter;\n } else {\n throw new \\Exception('Non filter object added to Group filter');\n }\n }\n }", "public function setFilter($var)\n {\n GPBUtil::checkString($var, True);\n $this->filter = $var;\n\n return $this;\n }", "public function setFilter($var)\n {\n GPBUtil::checkString($var, True);\n $this->filter = $var;\n\n return $this;\n }", "public function setFilter($var)\n {\n GPBUtil::checkString($var, True);\n $this->filter = $var;\n\n return $this;\n }", "public function setFilter($var)\n {\n GPBUtil::checkString($var, True);\n $this->filter = $var;\n\n return $this;\n }", "public function setFilter($var)\n {\n GPBUtil::checkString($var, True);\n $this->filter = $var;\n\n return $this;\n }", "public function setFilter($var)\n {\n GPBUtil::checkString($var, True);\n $this->filter = $var;\n\n return $this;\n }", "public function createFilter();", "public function set($filters, $value = NULL)\n\t{\n\t\tif ( ! is_array($filters))\n\t\t{\n\t\t\t$filters = array($filters => $value);\n\t\t}\n\t\t\n\t\tforeach ($filters as $key => $value)\n\t\t{\n\t\t\t$this->_filters[$this->_path][$key] = $value;\n\t\t}\n\t\t\n\t\t$this->_save();\n\t\t\n\t\treturn $this;\n\t}", "public function actionSetFilter()\n {\n $filter = $this->module->filter;\n\n //make css class for checkbox\n foreach ($filter as $key => $property) {\n if (isset($property['class'])) {\n if (is_array($property['class'])) {\n $filter[$key]['class'] = implode(' ', $property['class']);\n }\n } else {\n $filter[$key]['class'] = '';\n }\n }\n\n //set value for js ajax variable\n $useAjax = $this->module->useAjax ? 'true' : 'false';\n\n return $this->renderPartial('filter-list', ['filter' => $filter, 'useAjax' => $useAjax]);\n }", "private function init_andWhereFilter()\n {\n // RETURN : $this->andWhereFilter was set before\n if ( !( $this->andWhereFilter === null ) )\n {\n return $this->andWhereFilter;\n }\n // RETURN : $this->andWhereFilter was set before\n // RETURN : there isn't any filter\n if ( !$this->bool_isFilter )\n {\n $this->andWhereFilter = false;\n return $this->andWhereFilter;\n }\n // RETURN : there isn't any filter\n\n $arr_andWhereFilter = null;\n\n // Init area\n $this->pObj->objCal->area_init();\n $conf = $this->pObj->conf;\n $viewWiDot = $this->view . '.';\n $conf_view = $conf[ 'views.' ][ $viewWiDot ][ $this->mode . '.' ];\n // Init area\n // LOOP: filter tableFields\n//$this->pObj->dev_var_dump( $this->arr_tsFilterTableFields );\n foreach ( $this->arr_tsFilterTableFields as $tableField )\n {\n list( $table ) = explode( '.', $tableField );\n $str_andWhere = null;\n\n // Get nice_piVar\n $arr_result = $this->zz_getNicePiVar( $tableField );\n $arr_piVar = $arr_result[ 'data' ][ 'arr_piVar' ];\n//var_dump( __METHOD__, __LINE__, $tableField, $arr_piVar );\n unset( $arr_result );\n // Get nice_piVar\n // CONTINUE : There isn't any piVar\n if ( empty( $arr_piVar ) )\n {\n continue;\n }\n // CONTINUE : There isn't any piVar\n // SWITCH : manual mode versus auto mode\n switch ( true )\n {\n case( $this->pObj->b_sql_manual ):\n // SQL manual mode\n $str_andWhere = $this->init_andWhereFilter_manualMode( $arr_piVar, $tableField, $conf_view );\n//$this->pObj->dev_var_dump( $str_andWhere );\n break;\n // SQL manual mode\n case(!$this->pObj->b_sql_manual ):\n default:\n // SQL auto mode\n // SWITCH : local table versus foreign table\n switch ( true )\n {\n case( $table == $this->pObj->localTable ):\n $str_andWhere = $this->init_andWhereFilter_localTable( $arr_piVar, $tableField );\n//$this->pObj->dev_var_dump( $str_andWhere );\n break;\n case( $table != $this->pObj->localTable ):\n default:\n $str_andWhere = $this->init_andWhereFilter_foreignTable( $arr_piVar, $tableField );\n//var_dump( __METHOD__, __LINE__, $str_andWhere );\n break;\n }\n // SWITCH : local table versus foreign table\n break;\n // SQL auto mode\n }\n // SWITCH : manual mode versus auto mode\n\n if ( !empty( $str_andWhere ) )\n {\n $arr_andWhereFilter[ $tableField ] = $str_andWhere;\n // #56329, 140227, dwildt, 1+\n $this->arr_andWhereFilter[ $tableField ] = \" AND \" . $str_andWhere;\n }\n // Build the andWhere statement\n }\n // LOOP: filter tableFields\n // andWhere statement\n $strAndWhere = implode( \" AND \", ( array ) $arr_andWhereFilter );\n\n // #52486, 131002, dwildt, 6+\n if ( $this->radialsearchTable )\n {\n $strAndWhere = $strAndWhere\n . $this->init_andWhereFilter_radialsearch()\n ;\n }\n // #52486, 131002, dwildt, 6+\n // RETURN : there isn't any andWhere statement\n if ( empty( $strAndWhere ) )\n {\n $this->andWhereFilter = false;\n return $this->andWhereFilter;\n }\n // RETURN : there isn't any andWhere statement\n\n $this->andWhereFilter = \" AND \" . $strAndWhere;\n\n // DRS\n if ( $this->pObj->b_drs_filter || $this->pObj->b_drs_sql )\n {\n if ( is_array( $arr_andWhereFilter ) )\n {\n $prompt = 'andWhere statement: ' . $this->andWhereFilter;\n t3lib_div :: devlog( '[INFO/FILTER+SQL] ' . $prompt, $this->pObj->extKey, 0 );\n }\n }\n // DRS\n\n return $this->andWhereFilter;\n }", "function add_filters()\n {\n }", "public function filters(array $filters) {\n\t\t// Save current subobject\n\t\t$this->_current = 'filters' ;\n\t\t$this->_fluid = true ;\n\n\t\tforeach($filters as $in => $match) {\n\t\t\t$this->_filters->add(array('query' => $match, 'in' => $in)) ;\n\t\t}\n\t\treturn $this ;\n\t}", "static function makeConditions($params = null, $filterables = null)\n {\n // Presets\n $where = [];\n if (is_array($params)) {\n foreach ($params as $param => $value) {\n if (is_array($value)) {\n $where[] = [$param, $value[0], $value[1]];\n }\n else {\n $where[] = [$param, $value];\n }\n }\n }\n \n /**\n * @var Request $request\n */\n $request = \\Illuminate\\Support\\Facades\\Request::getFacadeRoot();\n \n // User filters from $_GET (take $_POST also)\n $filterables = is_array($filterables) ? $filterables : [];\n foreach ($filterables as $filter){\n // Parse condition if input has filterable value.\n if ($request->has($filter)){\n if ($condition = self::parseFilter($filter, $request->input($filter))) {\n $where[] = $condition;\n }\n }\n }\n \n // Hola\n return $where;\n }", "abstract protected function getFilters();", "public function addFilters($values, $ids = null)\n {\n\n if (Mage::getStoreConfig('Boxalino_General/general/enabled') == 0) {\n return parent::addFilters($values, $ids);\n }\n\n $attributes = $this->getAttributes();\n $hasConditions = true;\n $allConditions = array();\n\n foreach ($attributes as $attribute) {\n /* @var $attribute Mage_Catalog_Model_Resource_Eav_Attribute */\n if (!isset($values[$attribute->getAttributeCode()])) {\n continue;\n }\n $value = $values[$attribute->getAttributeCode()];\n if (!is_array($value)) {\n $value = trim($value);\n }\n\n if ($attribute->getAttributeCode() == 'price') {\n $value['from'] = isset($value['from']) ? trim($value['from']) : '';\n $value['to'] = isset($value['to']) ? trim($value['to']) : '';\n if (is_numeric($value['from']) || is_numeric($value['to'])) {\n if (!empty($value['currency'])) {\n $rate = Mage::app()->getStore()->getBaseCurrency()->getRate($value['currency']);\n } else {\n $rate = 1;\n }\n $this->_addSearchCriteria($attribute, $value);\n }\n } else if ($attribute->isIndexable()) {\n if (!is_string($value) || strlen($value) != 0) {\n $this->_addSearchCriteria($attribute, $value);\n }\n } else {\n $condition = $this->_prepareCondition($attribute, $value);\n if ($condition === false) {\n continue;\n }\n\n $this->_addSearchCriteria($attribute, $value);\n }\n }\n //Add id from boxalino\n $this->getProductCollection()->addIdFromBoxalino($ids);\n if ($allConditions) {\n $this->getProductCollection()->addIdFromBoxalino($allConditions);\n } else if (!$hasConditions) {\n Mage::throwException(Mage::helper('catalogsearch')->__('Please specify at least one search term.'));\n }\n\n return $this;\n }", "public function setFilters(array $filters)\n {\n $this->clearFilters();\n return $this->addFilters($filters);\n }", "protected function addFilter(array $filter) {\n $this->filter = array_merge($this->filter, array_flip($filter));\n }", "public function setupFilterRules()\n { }", "public function setFilters(array $options = []) {\n\n $this->counties = isset($options['counties']) && !empty($options['counties']) ?\n $options['counties'] :\n array_keys(WebformOptions::load('county')->getOptions());\n\n $this->days = isset($options['days']) && !empty($options['days']) ?\n $options['days'] :\n array_keys(WebformOptions::load('days')->getOptions());\n\n }", "protected function buildFilter($conditions)\n {\n if (\\Sledgehammer\\is_closure($conditions)) {\n return $conditions;\n }\n if (is_array($conditions)) {\n // Create filter that checks all conditions\n $logicalOperator = \\Sledgehammer\\extract_logical_operator($conditions);\n if ($logicalOperator === false) {\n if (count($conditions) > 1) {\n \\Sledgehammer\\notice('Conditions with multiple conditions require a logical operator.', \"Example: array('AND', 'x' => 1, 'y' => 5)\");\n }\n $logicalOperator = 'AND';\n } else {\n unset($conditions[0]);\n }\n $operators = [];\n foreach ($conditions as $path => $expectation) {\n if (preg_match('/^(.*) (' . \\Sledgehammer\\COMPARE_OPERATORS . ')$/', $path, $matches)) {\n unset($conditions[$path]);\n $conditions[$matches[1]] = $expectation;\n $operators[$matches[1]] = $matches[2];\n } else {\n $operators[$path] = false;\n }\n }\n // @todo Build an optimized closure for when a single conditions is given.\n if ($logicalOperator === 'AND') {\n return function ($item) use ($conditions, $operators) {\n foreach ($conditions as $path => $expectation) {\n $actual = PropertyPath::get($path, $item);\n $operator = $operators[$path];\n if ($operator) {\n if (\\Sledgehammer\\compare($actual, $operator, $expectation) === false) {\n return false;\n }\n } elseif (\\Sledgehammer\\equals($actual, $expectation) === false) {\n return false;\n }\n }\n\n return true; // All conditions are met.\n };\n } elseif ($logicalOperator === 'OR') {\n return function ($item) use ($conditions, $operators) {\n foreach ($conditions as $path => $expectation) {\n $actual = PropertyPath::get($path, $item);\n $operator = $operators[$path];\n if ($operator) {\n if (\\Sledgehammer\\compare($actual, $operator, $expectation) !== false) {\n return true;\n }\n } elseif (\\Sledgehammer\\equals($actual, $expectation) !== false) {\n return true;\n }\n }\n\n return false; // None of conditions are met.\n };\n } else {\n throw new Exception('Unsupported logical operator \"' . $logicalOperator . '\", expecting \"AND\" or \"OR\"');\n }\n }\n //'<= 5' or '10'\n // Compare the item directly with value given as $condition.\n if (is_string($conditions) && preg_match('/^(' . \\Sledgehammer\\COMPARE_OPERATORS . ') (.*)$/', $conditions, $matches)) {\n $operator = $matches[1];\n $expectation = $matches[2];\n } else {\n $expectation = $conditions;\n $operator = '==';\n }\n\n return function ($value) use ($expectation, $operator) {\n return \\Sledgehammer\\compare($value, $operator, $expectation);\n };\n }", "function setFilter($filter) {\n\t\t$this->_filter = $filter;\n\t}", "protected function setConditions() {\r\n if( count($this->sqlConditions) ) {\r\n $this->sql .= ' WHERE ' . $this->sqlStrConditions;\r\n }\r\n }", "private function filters() {\n\n\n\t}", "public function setFilter(&$var)\n {\n GPBUtil::checkMessage($var, \\Google\\Datastore\\V1beta3\\Filter::class);\n $this->filter = $var;\n }", "public function filterAll($filter, $args=[]);", "public function filter($filter, $values){\n\t\ttry{\n\t\t\tswitch($filter){\n\t\t\t\tcase \"blur\":\n\t\t\t\t\t$this->blur($values[0], $values[1]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"brighten\":\n\t\t\t\t\t$this->brighten($values[0]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"colorize\":\n\t\t\t\t\t$this->colorize($values[0]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"contrast\":\n\t\t\t\t\t$this->contrast($values[0]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"darken\":\n\t\t\t\t\t$this->darken($values[0]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"desaturate\":\n\t\t\t\t\t$this->desaturate();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"opacity\":\n\t\t\t\t\t$this->opacity($values[0]);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\treturn $this;\n\t\t}catch(Exception $e){\n\t\t\t# Return error if we can't get the method\n\t\t\tself::$return['code'] = \"603\";\n\t\t\treturn self::$return;\t\t\n\t\t}\n\t}", "public function filter ($filter, array $options=[])\n {\n $this->filters[$filter] = $options;\n return $this;\n }", "public function filter($args = array(), $operator = 'AND')\n {\n }", "public function register_filters() {\n\n\t\t}", "public function filter(array $filterData = [])\r\n {\r\n return $this->all()->filter($filterData);\r\n }", "public function filter()\n {\n list($column, $operator, $value, $boolean) = func_get_args();\n empty($operator) && $operator = null;\n empty($value) && $value = null;\n empty($boolean) && $boolean = null;\n if($this->hasFilter) {\n $this->model = $this->model->where($column, $operator, $value, $boolean);\n } else {\n $this->model = $this->model->newQuery()->where($column, $operator, $value, $boolean);\n $this->hasFilter = true;\n }\n\n return $this;\n }", "public function setFilters($filters)\n {\n $this->filters = Collection::make($filters);\n foreach ($this->filters as $filterConfig) {\n $filterConfig->attach($this);\n }\n\n return $this;\n }", "public function addFilterCodes( \\Aimeos\\MW\\Criteria\\Iface $filter, array $codes );", "public function getAllFilters();", "public function setFilter(BaseOperator $filter)\n {\n $this->filter = $filter;\n }", "protected function setFilterArray() {\n $primary_keys = getPrimaryKeys($this->table_name);\n foreach ($primary_keys as $pk) {\n if (isset($_GET[$pk])) {\n $this->filter[$pk] = Mysql::SQLValue($_GET[$pk]);\n }\n }\n }", "function _setAllFilters( $objKey )\n {\n $this->_activateFilterLevel($objKey);\n\n // add all pre and post filters, dont use references here, so the filters are each an instance of its own\n // this is necessary since the options might be changed by any xml-config!\n if( sizeof($this->_preFilters) )\n foreach( $this->_preFilters as $aFilter )\n $this->_objectPool[$objKey]->registerPrefilter($aFilter[0],$aFilter[1]);\n if( sizeof($this->_postFilters) )\n foreach( $this->_postFilters as $aFilter )\n $this->_objectPool[$objKey]->registerPostfilter($aFilter[0],$aFilter[1]);\n }", "public function prepareListFilter(array &$filter, array $requestFilter): void\n\t{\n\t\tif (isset($requestFilter['FIND']) && !empty($requestFilter['FIND']))\n\t\t{\n\t\t\t$filter['SEARCH_CONTENT'] = $requestFilter['FIND'];\n\t\t\tSearchEnvironment::prepareSearchFilter($this->getEntityTypeId(), $filter);\n\t\t}\n\n\t\tif ($this->factory->isCrmTrackingEnabled())\n\t\t{\n\t\t\t$runtime = [];\n\t\t\t\\Bitrix\\Crm\\Tracking\\UI\\Filter::buildOrmFilter($filter, $requestFilter, $this->getEntityTypeId(), $runtime);\n\t\t}\n\n\t\tforeach ($this->getFieldNamesByType(static::TYPE_NUMBER, static::DISPLAY_IN_FILTER) as $fieldName)\n\t\t{\n\t\t\tif (isset($requestFilter[$fieldName.'_from']) && $requestFilter[$fieldName.'_from'] > 0)\n\t\t\t{\n\t\t\t\t$filter['>='.$fieldName] = $requestFilter[$fieldName.'_from'];\n\t\t\t}\n\t\t\tif (isset($requestFilter[$fieldName.'_to']) && $requestFilter[$fieldName.'_to'] > 0)\n\t\t\t{\n\t\t\t\t$filter['<='.$fieldName] = $requestFilter[$fieldName.'_to'];\n\t\t\t}\n\t\t\tif (isset($requestFilter[$fieldName]) && $requestFilter[$fieldName] > 0)\n\t\t\t{\n\t\t\t\t$filter['='.$fieldName] = $requestFilter[$fieldName];\n\t\t\t}\n\t\t}\n\n\t\tforeach ($this->getFieldNamesByType(static::TYPE_STRING, static::DISPLAY_IN_FILTER) as $fieldName)\n\t\t{\n\t\t\tif (!empty($requestFilter[$fieldName]))\n\t\t\t{\n\t\t\t\t$filter['%'.$fieldName] = $requestFilter[$fieldName];\n\t\t\t}\n\t\t}\n\n\t\tforeach ($this->getFieldNamesByType(static::TYPE_USER, static::DISPLAY_IN_FILTER) as $fieldName)\n\t\t{\n\t\t\tif (!empty($requestFilter[$fieldName]))\n\t\t\t{\n\t\t\t\t$filter['='.$fieldName] = (int)$requestFilter[$fieldName];\n\t\t\t}\n\t\t}\n\n\t\tforeach ($this->getFieldNamesByType(static::TYPE_CRM_ENTITY, static::DISPLAY_IN_FILTER) as $fieldName)\n\t\t{\n\t\t\tif (!empty($requestFilter[$fieldName]))\n\t\t\t{\n\t\t\t\t$filter['='.$fieldName] = (int)$requestFilter[$fieldName];\n\t\t\t}\n\t\t}\n\n\t\tforeach ($this->getFieldNamesByType(static::TYPE_DATE, static::DISPLAY_IN_FILTER) as $fieldName)\n\t\t{\n\t\t\tif (!empty($requestFilter[$fieldName.'_from']))\n\t\t\t{\n\t\t\t\t$filter['>='.$fieldName] = $requestFilter[$fieldName.'_from'];\n\t\t\t}\n\t\t\tif (!empty($requestFilter[$fieldName.'_to']))\n\t\t\t{\n\t\t\t\t$filter['<='.$fieldName] = $requestFilter[$fieldName.'_to'];\n\t\t\t}\n\t\t}\n\n\t\tforeach ($this->getFieldNamesByType(static::TYPE_BOOLEAN, static::DISPLAY_IN_FILTER) as $fieldName)\n\t\t{\n\t\t\tif (!empty($requestFilter[$fieldName]))\n\t\t\t{\n\t\t\t\t$filterValue = $requestFilter[$fieldName] === 'Y';\n\n\t\t\t\t$filter['='.$fieldName] = $filterValue;\n\t\t\t}\n\t\t}\n\n\t\tforeach ($this->getFieldNamesByType(static::TYPE_LIST, static::DISPLAY_IN_FILTER) as $fieldName)\n\t\t{\n\t\t\tif (!empty($requestFilter[$fieldName]))\n\t\t\t{\n\t\t\t\tif($fieldName === static::FIELD_STAGE_SEMANTIC && $this->factory->isStagesEnabled())\n\t\t\t\t{\n\t\t\t\t\tstatic::processStageSemanticFilter($requestFilter, $filter);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$filter['='.$fieldName] = $requestFilter[$fieldName];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$parentFields = $this->getFieldNamesByType(\n\t\t\tstatic::TYPE_PARENT,\n\t\t\tstatic::DISPLAY_IN_FILTER\n\t\t);\n\t\tforeach ($parentFields as $fieldName)\n\t\t{\n\t\t\tif (!empty($requestFilter[$fieldName]))\n\t\t\t{\n\t\t\t\t$filter[$fieldName] = $requestFilter[$fieldName];\n\t\t\t}\n\t\t}\n\t}", "private function filter()\n {\n if ($this->allowsFilter()) {\n if ($this->hasFilters()) {\n $tmp = [];\n foreach ($this->filters as $filter) {\n // check, if it is a \"forbidden\" query parameter\n if ($this->isExcludedParameter($filter['key'])) {\n continue;\n }\n $tmp[] = $filter;\n }\n\n $this->filters = $tmp;\n\n return $this->operator->filter($this->filters);\n }\n }\n }", "public function getFilters();", "protected function prepareFilter()\n\t{\n\t\tglobal $USER;\n\t\tglobal $DB;\n\n\t\t$arFilter = array();\n\t\t$arFilter[\"USER_ID\"] = $USER->GetID();\n\t\t$arFilter[\"LID\"] = SITE_ID;\n\n\t\tif (strlen($_REQUEST[\"filter_id\"]))\n\t\t{\n\t\t\tif ($this->options['USE_ACCOUNT_NUMBER'])\n\t\t\t\t$arFilter[\"ACCOUNT_NUMBER\"] = $_REQUEST[\"filter_id\"];\n\t\t\telse\n\t\t\t\t$arFilter[\"ID\"] = intval($_REQUEST[\"filter_id\"]);\n\t\t}\n\n\t\tif (strlen($_REQUEST[\"filter_date_from\"]))\n\t\t\t$arFilter[\"DATE_FROM\"] = trim($_REQUEST[\"filter_date_from\"]);\n\t\tif (strlen($_REQUEST[\"filter_date_to\"]))\n\t\t{\n\t\t\t$arFilter[\"DATE_TO\"] = trim($_REQUEST[\"filter_date_to\"]);\n\n\t\t\tif ($arDate = ParseDateTime(trim($_REQUEST[\"filter_date_to\"]), $this->dateFormat))\n\t\t\t{\n\t\t\t\tif (StrLen(trim($_REQUEST[\"filter_date_to\"])) < 11)\n\t\t\t\t{\n\t\t\t\t\t$arDate[\"HH\"] = 23;\n\t\t\t\t\t$arDate[\"MI\"] = 59;\n\t\t\t\t\t$arDate[\"SS\"] = 59;\n\t\t\t\t}\n\n\t\t\t\t$arFilter[\"DATE_TO\"] = date($DB->DateFormatToPHP($this->dateFormat), mktime($arDate[\"HH\"], $arDate[\"MI\"], $arDate[\"SS\"], $arDate[\"MM\"], $arDate[\"DD\"], $arDate[\"YYYY\"]));\n\t\t\t}\n\t\t}\n\n\t\tif (strlen($_REQUEST[\"filter_status\"]))\n\t\t\t$arFilter[\"STATUS_ID\"] = trim($_REQUEST[\"filter_status\"]);\n\n\t\tif (strlen($_REQUEST[\"filter_payed\"]))\n\t\t\t$arFilter[\"PAYED\"] = trim($_REQUEST[\"filter_payed\"]);\n\n\t\tif(!isset($_REQUEST['show_all']) || $_REQUEST['show_all'] == 'N')\n\t\t{\n\t\t\tif($_REQUEST[\"filter_history\"]!=\"Y\")\n\t\t\t\t$arFilter[\"!@COMPLETE_ORDERS\"] = $this->arParams['HISTORIC_STATUSES'];\n\n\t\t\tif(isset($_REQUEST[\"filter_history\"]) && $_REQUEST[\"filter_history\"] == \"Y\")\n\t\t\t\t$arFilter[\"@COMPLETE_ORDERS\"] = $this->arParams['HISTORIC_STATUSES'];\n\t\t}\n\n\t\tif (strlen($_REQUEST[\"filter_canceled\"]))\n\t\t\t$arFilter[\"CANCELED\"] = trim($_REQUEST[\"filter_canceled\"]);\n\n\t\t$this->filter = $arFilter;\n\t}" ]
[ "0.6955207", "0.6918812", "0.67278415", "0.64498264", "0.63623965", "0.63034654", "0.6262599", "0.61959195", "0.6177935", "0.6141407", "0.6060521", "0.60581094", "0.6056965", "0.6042256", "0.6000842", "0.5995981", "0.59938323", "0.59854305", "0.59365016", "0.58675766", "0.58595353", "0.58511835", "0.58369553", "0.58337283", "0.5803798", "0.5776863", "0.5768944", "0.5765762", "0.5759487", "0.57525843", "0.5724773", "0.5714696", "0.5700253", "0.5694597", "0.56902885", "0.56901884", "0.56805456", "0.56605154", "0.5657213", "0.5638693", "0.5637458", "0.5636033", "0.56148535", "0.56106454", "0.5607206", "0.56030756", "0.5600466", "0.5575014", "0.5574012", "0.5570511", "0.5563624", "0.55570006", "0.55539715", "0.5549565", "0.55428505", "0.55428505", "0.5541997", "0.5541997", "0.5525418", "0.5512585", "0.5512585", "0.5512585", "0.5512585", "0.5512585", "0.5512585", "0.5509579", "0.5489366", "0.5486071", "0.548275", "0.54658604", "0.54509354", "0.5433483", "0.54309577", "0.54184145", "0.54129416", "0.54062176", "0.5405871", "0.5404908", "0.5404707", "0.53992236", "0.5393721", "0.53838825", "0.5379999", "0.53721577", "0.5363123", "0.53580517", "0.53540707", "0.5353239", "0.53492594", "0.53431845", "0.53365725", "0.5319862", "0.531918", "0.5312263", "0.53045774", "0.53011674", "0.5300173", "0.5295148", "0.529076", "0.52892274" ]
0.5724999
30
Call the content process with the given content.
public function callContentProcessor($content) { if ($this->_contentProcessor) { return call_user_func($this->_contentProcessor, $content); } return $content; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function exec($content) {\n if ($this->isError()) return $content;\n // sofort wieder raus, wenn imageTweak ausgeschaltet ist\n if (! $this->settings[self::cfgTweakExec]) return $content;\n // pruefen ob die PAGE_ID ignoriere werden soll\n if (in_array(PAGE_ID, $this->settings[self::cfgIgnorePageIDs])) return $content;\n // pruefen ob die TOPIC_ID ignoriert werden soll\n if (defined('TOPIC_ID') && (in_array(TOPIC_ID, $this->settings[self::cfgIgnoreTopicIDs]))) return $content;\n // Inhalt uebernehmen\n $this->setContent($content);\n // Inhalt pruefen und zurueckgeben\n return $this->checkContent();\n }", "abstract protected function content();", "function parse_content( $content ) {\n\t\tif ( is_null( $content ) ) {\n\t\t\t$this->body = null;\n\t\t}\n\n\t\t$this->body = do_shortcode( $content );\n\t}", "function processContent(string $content): string\n{\n $content = processShortcodes($content);\n return Michelf\\Markdown::defaultTransform($content);\n}", "public function setContent($content);", "public function setContent($content);", "public function setContent($content);", "public function setContent($content);", "public function setContent($content);", "public function setContent($content);", "public function setContent($content);", "public function setContent($content);", "public function setContent($content);", "public function setContent($content);", "private function load($content){\r\n\t\t\treturn $this->module_load($content);\r\n\t}", "public function __invoke(array &$data, Content $content): void;", "function getContent() ;", "public function parse($content);", "abstract function getContent();", "function content();", "function process($content, $processor = 'text') {\n\t\t\t\t\t$t = new \\Bonita\\Templates();\n\t\t\t\t\t$t->content = $content;\n\t\t\t\t\t$t->setTemplateType($this->getTemplateType());\n\t\t\t\t\tif (($result = $t->draw('processor/' . $processor, false)) !== false) return $result;\n\t\t\t\t\treturn $content;\n\t\t\t\t}", "public static function process($content, $processor, $args = array())\n {\n $ret = '';\n while (true) {\n list($beforeComment, $comment, $afterComment) = self::_nextComment($content);\n if ('' !== $beforeComment) {\n $callArgs = $args;\n array_unshift($callArgs, $beforeComment);\n $ret .= call_user_func_array($processor, $callArgs); \n }\n if (false === $comment) {\n break;\n }\n $ret .= $comment;\n $content = $afterComment;\n }\n return $ret;\n }", "protected function _sendContent($content) {\n\t\techo $content;\n\t}", "public abstract function getContent();", "private function invokeParser($mapping, $content)\r\n {\r\n $this->results[] = $mapping->parse($content, $this);\r\n }", "public function addContent($content);", "public function theContent($content) {\n if(is_singular('resume') && in_the_loop()) {\n return $this->main(get_the_ID());\n } else {\n return $content;\n }\n }", "public static function renderContent() {}", "public function run_shortcode($content)\n {\n }", "function DisplayContent($content)\n\t{\n\t\t//This should be straight forward, since the content will pretty much determine how it is displayed\n\t\t$content->Show();\n\t}", "function main($content, $conf) {\n\t\t$this->conf = $conf;\n\t\t$this->pi_setPiVarDefaults();\n\t\t$this->pi_loadLL();\n\t\t$this->pi_USER_INT_obj = 1;\t// Configuring so caching is not expected. This value means that no cHash params are ever set. We do this, because it's a USER_INT object!\n\t\t// Get the template\n\t\t$this->templateHtml = $this->cObj->fileResource($conf['templateFile']);\n\t\t$template = $this->cObj->getSubpart($this->templateCode,'###TEMPLATE###');\n\t\t// Extract subparts from the template\n\t\t $subpart = $this->cObj->getSubpart($this->templateHtml, '###TEMPLATE###');\n\t\t// Fill marker array\n\t\t$markerArray['###GOOGLE_CSE_KEY###'] = $this->conf['googleCSEkey'];\n\t\t$markerArray['###GOOGLE_CSE_QUERY###'] = $_POST['tx_indexedsearch']['sword'];\n\t\t$markerArray['###GOOGLE_CSE_LANGUAGE###'] = $this->conf['language'];;\n\t\t// Create the content by replacing the content markers in the template\n\t\t$content = $this->cObj->substituteMarkerArray($subpart, $markerArray);\n\t\treturn $this->pi_wrapInBaseClass($content);\n\t}", "public function process($content){\n\t\treturn str_replace('</body>', $this->configstring . '</body>', $content);\n\t}", "public function setContent( string $content );", "public function main($content, $conf)\n {\n debug($this->cObj->data);\n return $this->pi_wrapInBaseClass($content);\n }", "private function processContent(){\n\t\t$this->textEnd = strpos($this->raw,\"</{$this->tag}\");\n\t\t$this->text = trim(substr($this->raw, $this->textStart, $this->textEnd - $this->textStart));\n\t}", "protected abstract function renderContent();", "protected function setContent() {}", "function render($content) {\n /* @todo: If this is a full page, we should parse out the meta fields and \n * Maybe this is only done if the document is empty?\n * Specifically necessary for the front end OTO's\n */\n \n $this->runEvent('beforeDoShortcode', array($this->document, &$content));\n // Apply shortcode filter\n $content = do_shortcode($content); \n\n $this->runEvent('beforeDocumentRender', array($this->document, &$content));\n\n // Set the code in the document, and render\n $this->document->setContent($content);\n $page = $this->document->renderDocument();\n $this->runEvent('afterDocumentRender', array($page));\n return $page; \n }", "function main($content,$conf)\t{\n\t\t$this->conf=$conf;\n\t\t$this->pi_setPiVarDefaults();\n\t\t$this->pi_loadLL();\n\t\t$this->pi_initPIflexForm(); // Einmal am Anfang der Klasse\n $this->gp = $_GET[$this->extKey];\n // Service einbinden\n require_once(t3lib_extMgm::siteRelPath('yuieditor').'sv1/class.tx_yuieditor_sv1.php');\n $this->yui = t3lib_div::makeInstance('tx_yuieditor_sv1');\n // Flexform values\n $this->code = $this->pi_getFFvalue($this->cObj->data['pi_flexform'], 'bereich', 'sDEF');\n\n // Processing...\n\t $this->yui->renderEditor('test');\n\t $content = '<textarea id=\"test\">test</textarea>';\n\t\treturn $this->pi_wrapInBaseClass($content);\n\t}", "public function setContent($content){\n $this->_content = $this->checkFormat($content);\n }", "public function main($content, $conf)\n {\n $content = $this->init($conf);\n\n return $this->pi_wrapInBaseClass($content);\n }", "abstract protected function render_page_content(): void;", "function hook_kiosque_actor_content(&$content, &$title, $type, $configuration, &$params, &$storage) {}", "public function addContent( string $content );", "public function run()\n {\n $tokens = $this->extractTokens( );\n\n // Loop through all the matches\n foreach( $tokens as $token )\n {\n if ( ! isset( $this->tokens[ $token ] ) )\n {\n $this->tokens[ $token ] = '';\n }\n\n if (\n is_object( $this->tokens[ $token ] ) &&\n method_exists( $this->tokens[ $token ], '__toString' ) ) {\n $replacement = ( string ) $this->tokens[ $token ];\n } else {\n $replacement = $this->tokens[ $token ];\n }\n\n // Get the content and replace the token with the parameter token\n $this->content = str_ireplace(\n sprintf( '%s%s%s', $this->openingTag, strtoupper( $token ), $this->closingTag ),\n $replacement,\n $this->content\n );\n }\n\n // Return the content\n return $this->content;\n }", "public function renderContent() {}", "public function setContent($content) {\n\t\t$this->buffer['content'] = $content;\n\t}", "public function sendContent();", "abstract protected function RenderContent();", "public function content();", "function main($content, $conf)\t{\n\n\t\t////\n\t\t$this->initForm($conf);\n\t\t$step = $this->stepLogic();\n\t\t$this->processData($step);\n\t\t$content = $this->renderForm($step);\n\t\t////\n\n\t\treturn $this->pi_wrapInBaseClass($content);\n\t}", "public function workContent($content)\n {\n return $this->extractFrontMatter($content);\n }", "public function setContent($content){\n $this->_content = $content;\n }", "public function evaluate($content, array $contentVariables = array());", "function main($content,$conf)\t{\n\t\t$this->conf=$conf;\n\t\t$this->pi_setPiVarDefaults();\n\t\t$this->pi_loadLL();\n\t\n\t\t// get HTML template\n\t\t$this->templateFile = $this->conf['templateFile'];\n\t\t$this->templateCode = $this->cObj->fileResource($this->templateFile);\n\t\t\n\t\t// include css\n\t\t$this->cssFile = t3lib_extMgm::siteRelPath($this->extKey).'res/css/kiwi_gigs.css';\n\t\t$GLOBALS['TSFE']->additionalHeaderData[$this->prefixId] .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"'.$this->cssFile.'\" />';\n\t\n\t\t// generate content \n\t\tif ($this->piVars['showUid']) $content = $this->showSingle();\n\t\telse $content = $this->listview();\n\t\t\n\t\treturn $this->pi_wrapInBaseClass($content);\n\t}", "public function run()\n {\n $this->renderContent();\n echo ob_get_clean();\n }", "public function saveContent( string $content );", "public function main($content, array $conf) {\n\t\t$this->conf = $conf;\n\t\t$this->pi_setPiVarDefaults();\n\t\t$this->pi_loadLL();\n\n\t\t$cacheFile = PATH_site . $this->conf['cacheFolder'] . $this->conf['cacheFile'];\n\n\t\t$url = $this->cObj->cObjGetSingle($this->conf['requestUrl'], $this->conf['requestUrl.']);\n\n\t\tif (file_exists($cacheFile) && (filemtime($cacheFile) + $this->conf['cacheTime']) > time()) {\n\t\t\t// take the cache-File\n\t\t} else {\n\t\t\tif ($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlUse']) {\n\t\t\t\t// Open url by curl\n\t\t\t\t$ch = curl_init();\n\t\t\t\tcurl_setopt($ch, CURLOPT_URL, $url);\n\t\t\t\tcurl_setopt($ch, CURLOPT_HEADER , FALSE);\n\t\t\t\tcurl_setopt($ch, CURLOPT_POST, FALSE);\n\t\t\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);\n\t\t\t\tcurl_setopt($ch, CURLOPT_TIMEOUT, $this->conf['timeout']);\n\t\t\t\tif ($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyTunnel']) {\n\t\t\t\t\tcurl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyTunnel']);\n\t\t\t\t}\n\t\t\t\tif ($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyServer']) {\n\t\t\t\t\tcurl_setopt($ch, CURLOPT_PROXY, $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyServer']);\n\t\t\t\t}\n\t\t\t\tif ($GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyUserPass']) {\n\t\t\t\t\tcurl_setopt($ch, CURLOPT_PROXYUSERPWD, $GLOBALS['TYPO3_CONF_VARS']['SYS']['curlProxyUserPass']);\n\t\t\t\t}\n\t\t\t\t$apicall = curl_exec($ch);\n\t\t\t\tcurl_close($ch);\n\t\t\t} else {\n\t\t\t\t// Open url by fopen\n\t\t\t\tset_time_limit($this->conf['timeout']);\n\t\t\t\t$apicall = file_get_contents($url);\n\t\t\t}\n\t\t\t// write the file to the cache...\n\t\t\t$file = fopen($cacheFile, \"w\");\n\t\t\tfwrite($file, $apicall);\n\t\t\tfclose($file);\n\t\t}\n\n\t\t$content = NULL;\n\n\t\t$resp = simplexml_load_file($cacheFile);\n\t\tif ($resp->ack == \"Success\") {\n\t\t\t$results = '';\n\t\t\t// If the response was loaded, parse it and build links\n\t\t\tforeach($resp->searchResult->item as $ikey => $item) {\n\t\t\t\tforeach ($item as $fkey => $field) {\n\t\t\t\t\tif (gettype(key($field)) == 'integer') {\n\t\t\t\t\t\t$this->cObj->data['item_'.$fkey] = $field;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tforeach ($field as $skey => $subField) {\n\t\t\t\t\t\t\t$this->cObj->data['item_'.$fkey.'_'.$skey] = $subField;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$content .= $this->cObj->cObjGetSingle($this->conf['content'], $this->conf['content.']);\n\t\t\t}\n\t\t} else {\n\t\t\t// if not Success, the cache-file will be removed...\n\t\t\tunlink($cacheFile);\n\t\t\t$content = \"No success request! Please try again later\";\n\t\t}\n\n\t\t$version = class_exists('t3lib_utility_VersionNumber')\n\t\t\t? t3lib_utility_VersionNumber::convertVersionNumberToInteger(TYPO3_version)\n\t\t\t: t3lib_div::int_from_ver(TYPO3_version);\n\n\t\tif ($version >= 6000000) {\n\t\t\treturn $content;\n\t\t} else {\n\t\t\treturn $this->cObj->stdWrap($content, $this->conf['stdWrap.']);\n\t\t}\n\n\t\treturn $this->pi_wrapInBaseClass($content);\n\t}", "public function sendContent()\n {\n echo $this->content;\n }", "public function main($content, array $conf) {\n\t\t$this->conf = $conf;\n\t\t$this->pi_setPiVarDefaults();\n\t\t$this->pi_loadLL();\n\t\t$this->pi_USER_INT_obj = 1;\t// Configuring so caching is not expected. This value means that no cHash params are ever set. We do this, because it's a USER_INT object!\n\n\t\t$this->pi_initPIflexForm();\n\t\t$this->_remove_http_and_last_slash();\n\t\t$this->_set_flexform_values_pi2();\n\t\t$this->_get_set_all_languages();\n\t\t//Loading via Typoscript\n\t\t//$this->_include_header_js();\n\t\t//$this->_include_header_CSS();\n\t\t$this->_fetch_all_shortcut_pages_hidden_css();\n\t\tif(isset($this->piVars['submit']) && ($this->piVars['submit'] == 'show_tree')){\n\t\t\techo $this->_display_page_tree();\n\t\t\tdie();\n\t\t}\t\t\n\n\t\tif(isset($this->piVars['submit']) && ($this->piVars['submit'] == 'submit_multi_print')){\n\t\t\t$content\t= $this->_show_print_pages($this->piVars['pages']);\n\t\treturn $content;\n\t\t}\n\tif(isset($this->piVars['submit_this']) && ($this->piVars['submit_this'] == 'submit_multi_print_this')){\n\t\t\t$content\t= $this->_show_print_pages($this->piVars['pages']);\n\t\treturn $content;\n\t\t}\n\t\n\treturn $this->pi_wrapInBaseClass($content);\n\t}", "public function do_shortcode ($content) {\n\t\tif (!$this->can_process_shortcodes()) return $content;\n\n\t\t/**\n\t\t * Expose the shortcode processing action\n\t\t *\n\t\t * This is useful for plugins such as Appointments+,\n\t\t * that do shortcode detection in order to enqueue\n\t\t * their FE stuff.\n\t\t *\n\t\t * @param string $content Content, before shortcode processing\n\t\t */\n\t\tdo_action('upfront-shortcode-content', $content);\n\n\t\t$content = do_shortcode($content);\n\n\t\treturn $content;\n\t}", "protected function render_content()\n {\n }", "protected function render_content()\n {\n }", "protected function render_content()\n {\n }", "public function setContent($content)\r\n {\r\n $this->content = $content;\r\n }", "protected function render_content()\n {\n }", "function renderContent(&$render, $content)\n {\n return $content;\n }", "public function render_content() {\n\t}", "public function dispatcher($content)\n {\n // Obtaining the template\n $config = new LSconfig();\n $template = $config->template;\n\n if ($template) {\n ob_start();\n if (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') {\n // There is an AJAX request the header and footer will not be included\n echo $content;\n } else {\n require_once LS_TEMPLATE . SD . $template . '/header.php';\n echo $content;\n require_once LS_TEMPLATE . SD . $template .'/footer.php';\n }\n $cont = ob_get_contents();\n ob_get_clean();\n } else {\n throw new Exception('Error loading the template');\n }\n\n return $cont;\n }", "public function renderContent($content)\n\t{\n\t\t$layoutFile = $this->findLayoutFile ( $this->getView () );\n\t\tif ($layoutFile !== false) {\n\t\t\treturn $this->getView ()->renderFile ( $layoutFile, [\n\t\t\t\t\t'content' => $content\n\t\t\t], $this );\n\t\t} else {\n\t\t\treturn $content;\n\t\t}\n\t}", "public function update($content);", "public function setContent ($content) {\r\n\t\t$this->content = (string)$content;\r\n\t}", "public function loadString($content);", "public function getContent();", "public function getContent();", "public function getContent();", "public function getContent();", "public function getContent();", "public function getContent();", "public function getContent();", "public function getContent();", "public function getContent();", "public function getContent();", "public function getContent();", "public function getContent();", "public function getContent();", "public function getContent();", "public function getContent();", "public function getContent();", "public function getContent();", "public function getContent();", "function execute( string $contents ): string;", "function main($content, $conf) {\n\t\t$this->conf = $conf;\n\t\t$this->init();\n\t\t//$GLOBALS['TYPO3_DB']->store_lastBuiltQuery = true;\n\t\t// load the JS into the header\n\t $this->loadJS($this->conf,$this->config);\n\n\t\t// load css width and height to header\n\t\t$this->loadCSS($this->config['width'], $this->config['height']);\n\n\t\t// get the content elements\n\t\t$content.= $this->getRecords($this->config['contentelements'] , $this->config['description'], $this->conf );\n\n\t\t// wrap them\n\t\t$content = $this->cObj->stdWrap($content, $this->conf['slider.']);\n\n\t\treturn $content;\n\t}", "function main($content,$conf) {\n\n\t\t\t// New instance of the macmade.net API\n\t\t\t$this->api = new tx_apimacmade($this);\n\n\t\t\t// Set class confArray TS from the function\n\t\t\t$this->conf = $conf;\n\n\t\t\t// Init flexform configuration of the plugin\n\t\t\t$this->pi_initPIflexForm();\n\n\t\t\t// Store flexform informations\n\t\t\t$this->piFlexForm = $this->cObj->data['pi_flexform'];\n\n\t\t\t// Set final configuration (TS or FF)\n\t\t\t$this->setConfig();\n\n\t\t\t// Build content\n\t\t\t$content = $this->buildFlashCode();\n\n\t\t\t// Return content\n\t\t\treturn $this->pi_wrapInBaseClass($content);\n\t\t}", "public function setContent($content)\r\n {\r\n $this->_content = $content;\r\n }", "abstract protected function displayContent();", "abstract function setContent();", "public final function get_content()\n {\n }", "public final function get_content()\n {\n }", "public final function get_content()\n {\n }" ]
[ "0.64243394", "0.6396475", "0.63360584", "0.626776", "0.6252102", "0.6252102", "0.6252102", "0.6252102", "0.6252102", "0.6252102", "0.6252102", "0.6252102", "0.6252102", "0.6252102", "0.6176902", "0.61707675", "0.61667", "0.6164431", "0.61343163", "0.61241746", "0.6122633", "0.61139446", "0.6094999", "0.6065856", "0.60402393", "0.60251987", "0.6013549", "0.60122293", "0.600388", "0.59976673", "0.59946483", "0.59911203", "0.5970019", "0.595879", "0.5957701", "0.5944333", "0.5911533", "0.58996975", "0.58928037", "0.5891913", "0.5890684", "0.5876333", "0.58712155", "0.58655643", "0.5864014", "0.5859294", "0.5854744", "0.5845554", "0.58286154", "0.58260775", "0.58110136", "0.5808331", "0.5801108", "0.5794488", "0.57901925", "0.5786735", "0.577723", "0.5772163", "0.57676435", "0.5759347", "0.57334924", "0.57328796", "0.57328796", "0.57328796", "0.5732857", "0.5731808", "0.57202876", "0.57110953", "0.5709724", "0.57073677", "0.57008624", "0.56878734", "0.56863385", "0.5683935", "0.5683935", "0.5683935", "0.5683935", "0.5683935", "0.5683935", "0.5683935", "0.5683935", "0.5683935", "0.5683935", "0.5683935", "0.5683935", "0.5683935", "0.5683935", "0.5683935", "0.5683935", "0.5683935", "0.5683935", "0.56821966", "0.5680042", "0.5676515", "0.5676365", "0.56714827", "0.56712437", "0.5654524", "0.56543666", "0.56543666" ]
0.7250567
0
Function to get role based picklist values.
public static function getRoleBasedValues(string $fieldName, string $roleId) { if (\App\Cache::has('Picklist::getRoleBasedValues', $fieldName)) { $allValues = \App\Cache::get('Picklist::getRoleBasedValues', $fieldName); } else { $allValues = (new \App\Db\Query())->select([$fieldName, 'roleid']) ->from("vtiger_$fieldName") ->innerJoin('vtiger_role2picklist', "vtiger_role2picklist.picklistvalueid = vtiger_$fieldName.picklist_valueid") ->innerJoin('vtiger_picklist', 'vtiger_picklist.picklistid = vtiger_role2picklist.picklistid') ->orderBy("vtiger_{$fieldName}.sortorderid") ->all(); \App\Cache::save('Picklist::getRoleBasedValues', $fieldName, $allValues); } $fldVal = []; foreach ($allValues as $row) { if ($row['roleid'] === $roleId) { $fldVal[] = \App\Purifier::decodeHtml($row[$fieldName]); } } return $fldVal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getValuesForForm()\n {\n $collection = $this->getCollection();\n $options = [];\n if ($collection->getSize() > 0) {\n foreach ($collection as $role) {\n $options[] = ['value' => $role->getId(), 'label' => $role->getData('display_name')];\n }\n }\n return $options;\n }", "public function getPicklistValues($skipCheckingRole = false)\n\t{\n\t\tif ($this->getName() === 'targetmodule') {\n\t\t\treturn Settings_Webforms_Module_Model::getsupportedModulesList();\n\t\t}\n\t\treturn array();\n\t}", "public static function getRoleList()\n {\n return Rights::getAuthItemSelectOptions(CAuthItem::TYPE_ROLE, array(\n 'authenticated', 'guest'\n ));\n }", "function get_role_list() {\n\t\treturn $this->db->get('system_security.security_role');\n\t\t\n\t}", "public static function getListRole(){\n return SentinelRole::where('company_id_fk',Sentinel::getUser()->company_id_fk)->orWhere('company_id_fk')->lists('name','id')->all();\n }", "public function getVacancyRoleSelect()\n {\n $roles = new \\Object\\VacancyRole\\Listing();\n $roles->setOrderKey(\"name\");\n $list = $roles->load();\n\n $roles = [];\n\n foreach ($list as $vacancyRole) {\n $roles[$vacancyRole->getId()] = $vacancyRole->getName();\n }\n\n return $roles;\n }", "public static function optionsList()\n {\n $list = array();\n\n foreach (self::all() as $role) {\n $list[$role->id] = $role->name;\n }\n\n return $list;\n }", "public static function getValues() {\n\t\t$roleModel = new self ( );\n\t\t$select = $roleModel->select ();\n\t\t$arr=array();\n\t\t$rows= $roleModel->fetchAll ( $select );\n\t\tforeach ($rows as $row) {\n\t\t$arr[$row->name]=$row->detail;\n\t\t}\n\t\treturn $arr;\n\t}", "static function getRoleOptions()\r\n\t{\r\n\t\t$roles = SiteRole::getRolesArray();\r\n\t\t$roles[\"visitor\"] = \"Visitor\";\t\r\n\t\treturn $roles;\r\n\t}", "function getUserIDRoleList()\r\n\t{\r\n\t\treturn $this->UserIDRoleList;\r\n\t}", "function getList() {\n return $this->listRole;\n }", "function wporphanageex_get_roles() {\n\tglobal $wpdb;\n\n\t$option = $wpdb->prefix . 'user_roles';\n\treturn get_option( $option );\n}", "protected function getRoles() {\n return $this->roleStorage->loadMultiple();\n }", "function get_assignable_roles ($context, $field=\"name\") {\n\n $options = array();\n\n if ($roles = get_all_roles()) {\n foreach ($roles as $role) {\n if (user_can_assign($context, $role->id)) {\n $options[$role->id] = strip_tags(format_string($role->{$field}, true));\n }\n }\n }\n return $options;\n}", "public function toOptionArray()\n {\n return $this->_toOptionArray('role_id', 'role_name');\n }", "public function getRoles(): array;", "function getRoles () {\n return array(\"user.friendRequest.edit\",\"user.friendRequest.view\");\n }", "function egsr_custom_site_roles(){\n\n return Array ( \n // STAFF_ROLE => Array (\n // 'label' => STAFF_ROLE_LABEL,\n // 'caps' => egsr_staff_cap(),\n // ),\n GROUP_EDITOR_ROLE => Array (\n 'label' => GROUP_EDITOR_ROLE_LABEL,\n 'caps' => egsr_group_editor_cap(),\n ),\n GROUP_ADMIN_ROLE => Array (\n 'label' => GROUP_ADMIN_ROLE_LABEL,\n 'caps' => egsr_group_admin_cap(),\n ),\n );\n\n}", "protected function get_roles_data()\n {\n }", "public function & GetRoles ();", "abstract protected function getRoles();", "function GetRoles() {\r\n $result = \"\";\r\n $conn = conn();\r\n $stmt = $conn->prepare(\"SELECT rolename,ratecode FROM employeeroles ORDER BY rolename ASC;\");\r\n $stmt->execute();\r\n $result_array = $stmt->fetchAll();\r\n foreach ($result_array as $value) {\r\n $test = $value['ratecode'];\r\n $result .= \"<option id='$test' >\" . $value['rolename'] . \"</option>\";\r\n }\r\n return $result;\r\n $conn = NULL;\r\n }", "function wp_dropdown_roles($selected = '')\n {\n }", "public function assigned_user_lists()\n {\n $result = common_select_values('user_id, name, role_id', 'users', ' status=0', 'result');\n return $result; \n\n }", "public static function getRoles ()\n {\n // Pulls column string from DB\n $enumStr = DB::select(DB::raw('SHOW COLUMNS FROM `user` WHERE FIELD = \"role\"'))[0]->Type;\n\n // Parse string\n preg_match_all(\"/'([^']+)'/\", $enumStr, $matches);\n\n // Return matches\n return isset($matches[1]) ? $matches[1] : [];\n }", "public function getRole() \n {\n return $this->_fields['Role']['FieldValue'];\n }", "public function userChoices()\n {\n return R::findAll('choice');\n }", "public function getRolesData()\n {\n $em = $this->getEntityManager();\n $query = $em->createQuery(\n 'SELECT p\n FROM Vlreleases\\UserBundle\\Entity\\Role p'\n \n );\n $result = $query->getResult();\n \n return $result;\n }", "function getRoles () {\n return array(\"user.image.edit\",\"user.image.view\");\n }", "function get_roles(){\n\t\t$this->db->select('*');\n\t\t$q = $this->db->get('user_role');\n\n\t\treturn $q->result_array();\n\t}", "function get_value_list()\n\t{\n\t\treturn $this->value;\n\t}", "public function getRoles()\n {\n return array('1');\n }", "public function getAvailableRoles() ;", "function acf_get_user_role_labels($roles = array())\n{\n}", "function getOptionValues() {\t\t\n\t\t$optionvaluesquery = \"SELECT lv.lookuptypevalue as optiontext, lv.lookuptypevalue as optionvalue FROM lookuptype AS l , \n\t\tlookuptypevalue AS lv WHERE l.id = lv.lookuptypeid AND l.name ='\".$this->getName().\"' ORDER BY optiontext \";\n\t\treturn getOptionValuesFromDatabaseQuery($optionvaluesquery);\n\t}", "public function getRoleList()\r\n\t{\r\n\t\t$this->db->select('*');\r\n\t\t$this->db->from('tbl_role');\r\n\t\t$this->db->where('role_status', '1');\r\n\t\t$this->db->where('role_id !=', '1');\r\n\t\t$query = $this->db->get();\r\n\t\treturn $query->result() ;\r\n\t}", "public function rolesForUser();", "public function getRoles()\n {\n return [$this->role];\n }", "public function getRoles()\n {\n return [$this->role];\n }", "function get_all_roles() {\n return get_records('role', '', '', 'sortorder ASC');\n}", "public function getRoleList()\n\t{\n\t\t$this->db->select('*');\n\t\t$this->db->from('tbl_role');\n\t\t$this->db->where('role_status', '1');\n\t\t$this->db->where('role_id !=', '1');\n\t\t$query = $this->db->get();\n\t\treturn $query->result() ;\n\t}", "public function get_roles()\n {\n $query=$this->db->get('tbl_roles');\n return $query->result();\n }", "function bigbluebuttonbn_get_moodle_roles($rolename='all') {\n if( $rolename != 'all') {\n $roles = array(bigbluebuttonbn_get_role($rolename));\n } else {\n $roles = (array) role_get_names();\n }\n return $roles;\n}", "function getRoleSelectTree()\n {\n //find all roles below users current role\n $roles = $this->all();\n if (\\Config::get('user')->isAdmin())\n {\n return [[\n 'name' => $this->name,\n 'value' => $this->id,\n 'children' => $this->findChildren($roles, $this->id, 1)\n ]];\n\n }\n\n return $this->findChildren($roles, $this->id, 1);\n\n\n }", "function getListRoleCurUser() {\n $userRoleModel = new UserRoleModel();\n $userId = isset($this->curUserInfo->id)? $this->curUserInfo->id: 0;\n $result = $userRoleModel->filterUserId($userId)->buildCond()->get();\n $retVal = [];\n if((int)$result->count() > 0){\n $retVal = $result->pluck('role')->toArray();\n }\n return $retVal;\n }", "public static function manageRole(){\n $rolelist = [];\n $db = Db::getInstance(); \t \n $req = $db->query('SELECT * FROM hp_role'); \n foreach($req->fetchAll() as $row) {\n $rolelist[] = $row;\n }\n return $rolelist;\n \n }", "public static function getRoleArray()\n {\n $items = AuthItem::find()->where(['type' => 1])->all();\n\n $role_list = [];\n\n foreach($items as $item) {\n $role_list[$item->name] = $item->name;\n }\n\n return $role_list;\n }", "public function _get_picker_choices() {\n\t\t$this->load_data();\n\t\t$result = array();\n\t\tforeach ( $this->data as $unique_key => $item ) {\n\t\t\t$result[ $unique_key ] = ( isset( $item['options'] ) && is_array( $item['options'] ) ) ? $item['options'] : array();\n\t\t}\n\n\t\treturn $result;\n\t}", "public function roles()\n {\n\n $roles = get_editable_roles();\n $output = array();\n foreach ($roles as $key => $val) {\n $output[$key] = $val['name'];\n }\n return $output;\n }", "public function getChoiceList()\n {\n return $this->choice;\n }", "public function getAssignedRolesListAttribute()\n {\n return $this->roles->pluck('id');\n }", "public static function getUserRole(){\n\t\t$db = DemoDB::getConnection();\n $sql = \"SELECT *\n FROM user_role\";\n $stmt = $db->prepare($sql);\n $ok = $stmt->execute();\n if ($ok) {\n return $stmt->fetchAll(PDO::FETCH_ASSOC);\n }\n\t}", "public static function getUserRoles()\n\t{\n\t\treturn ArrayHelper::map(UserRoles::find()->where(['is_active'=> Yii::$app->params['IS_ACTIVE']['ACTIVE']])->asArray()->all(), 'id', 'name');\n\t}", "function getRolesList(){\r\n\t\t$sql=\"select * from m_employee_roles\";\r\n\t\t$res=$this->db->query($sql);\r\n\t\tif($res->num_rows()){\r\n\t\t\treturn $res->result_array($sql);\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public function getRolesList()\n\t{\n\t\t$roles = Role::select('name as text', 'id')->get();\n\t\treturn $roles;\n\t}", "public function list_roles(){\n $roles=$this->roles->pluck('name')->toArray();\n //el primer parametro es el separador, y el segundo para es el arreglo a seprar\n // es lo opuesto al explode que retorna una arreglo\n $string=implode(', ',$roles);\n return $string;\n\n }", "public function getRoles()\r\n {\r\n return \\yii\\helpers\\ArrayHelper::map(\r\n $this->hasMany(AuthAssignment::className(), ['user_id' => 'user_id'])\r\n ->select(['id'=>'item_name', 'value'=>'description'])\r\n ->join('left join', 'auth_item', 'auth_item.name = auth_assignment.item_name')\r\n ->asArray()->all(),\r\n 'value', 'id');\r\n }", "public function getRoles()\n {\n return ['ROLE_SUPPLIERS'];\n }", "public function getRoles()\n {\n #obsolete, I don't wnat user roles, I want the permission those roles are linked to\n # so I just need a getPermissions once, store those constants in a small session array\n #$roles = $this->roles;\n\n #d($roles);\n\n #foreach ($roles as $role) {\n # echo $role->name;\n #}\n }", "public function getChoices();", "private function getUserRole($id) { \n $dv_role = Yii::$app->db->createCommand(\"SELECT meta_value FROM assist_user_meta WHERE uid = '$id' AND meta_key = 'role'\")->queryAll();\n return $dv_role;\n }", "public function getExplicitRoles()\n {\n $manager = \\FelixOnline\\Core\\BaseManager::build('FelixOnline\\Core\\UserRole', 'user_roles', 'id');\n $manager->filter('user = \"%s\"', array($this->getUser()));\n\n $values = $manager->values();\n if (!$values) {\n return null;\n }\n\n $roles = array();\n foreach ($values as $value) {\n $roles[] = $value->getRole();\n }\n\n return $roles;\n }", "public function getRoleIds(): array\n {\n return $this->input('roles');\n }", "private function _get_permissions_section_settings() {\r\n\r\n // Get all user roles\r\n global $wp_roles;\r\n\r\n if(!isset($wp_roles))\r\n $wp_roles = new WP_Roles();\r\n\r\n $allUserRoles = $wp_roles->get_names();\r\n\r\n return array(\r\n\r\n array(\r\n 'title' => __( 'Permissions Options' , 'woocommerce-wholesale-order-form' ),\r\n 'type' => 'title',\r\n 'desc' => '',\r\n 'id' => 'wwof_permissions_main_title'\r\n ),\r\n\r\n array(\r\n 'title' => __( 'User Role Filter' , 'woocommerce-wholesale-order-form' ),\r\n 'type' => 'multiselect',\r\n 'desc' => __( 'Only allow a given user role/s to access the wholesale page. Left blank to disable filter.' , 'woocommerce-wholesale-order-form' ),\r\n 'desc_tip' => true,\r\n 'id' => 'wwof_permissions_user_role_filter',\r\n 'class' => 'chosen_select',\r\n 'css' => 'min-width:300px;',\r\n 'custom_attributes' => array(\r\n 'multiple' => 'multiple',\r\n 'data-placeholder' => __( 'Select Some User Roles...' , 'woocommerce-wholesale-order-form' )\r\n ),\r\n 'options' => $allUserRoles\r\n ),\r\n\r\n array(\r\n 'type' => 'sectionend',\r\n 'id' => 'wwof_permissions_role_filter_sectionend'\r\n ),\r\n\r\n array(\r\n 'title' => __( 'Access Denied Message' , 'woocommerce-wholesale-order-form' ),\r\n 'type' => 'title',\r\n 'desc' => __( 'Message to display to users who do not have permission to access the wholesale order form.' , 'woocommerce-wholesale-order-form' ),\r\n 'id' => 'wwof_permissions_noaccess_section_title'\r\n ),\r\n\r\n array(\r\n 'title' => __( 'Title' , 'woocommerce-wholesale-order-form' ),\r\n 'type' => 'text',\r\n 'desc' => __( 'Defaults to <b>\"Access Denied\"</b> if left blank' , 'woocommerce-wholesale-order-form' ),\r\n 'desc_tip' => true,\r\n 'id' => 'wwof_permissions_noaccess_title',\r\n 'css' => 'min-width: 400px;'\r\n ),\r\n\r\n array(\r\n 'title' => __( 'Message' , 'woocommerce-wholesale-order-form' ),\r\n 'type' => 'wwof_editor',\r\n 'desc' => __( 'Defaults to <b>\"You do not have permission to view wholesale product listing\"</b> if left blank' , 'woocommerce-wholesale-order-form' ),\r\n 'desc_tip' => true,\r\n 'id' => 'wwof_permissions_noaccess_message',\r\n 'css' => 'min-width: 400px; min-height: 100px;'\r\n ),\r\n\r\n array(\r\n 'title' => __( 'Login URL' , 'woocommerce-wholesale-order-form' ),\r\n 'type' => 'text',\r\n 'desc' => __( 'URL of the login page. Uses default WordPress login URL if left blank' , 'woocommerce-wholesale-order-form' ),\r\n 'desc_tip' => true,\r\n 'id' => 'wwof_permissions_noaccess_login_url',\r\n 'css' => 'min-width: 400px;'\r\n ),\r\n\r\n array(\r\n 'type' => 'sectionend',\r\n 'id' => 'wwof_permissions_sectionend'\r\n )\r\n\r\n );\r\n\r\n }", "function product_line_roles_fun() {\r\n return array(\r\n 'Ventilation' => 'permissiondata',\r\n 'Compression' => 'permissiondata',\r\n 'Infrastructure' => 'permissiondata',\r\n 'Stapling' => 'vlex_permissiondata',\r\n 'Patient Monitoring' => 'vlex_permissiondata',\r\n 'Ablation' => 'vlex_permissiondata',\r\n 'Vessel Sealing' => 'vlex_permissiondata',\r\n );\r\n}", "public static function selectrole($roleID){\n $userlist = [];\n $db = Db::getInstance(); \n $roleID = intval($roleID);\n $req = $db->prepare('SELECT * FROM hp_user WHERE role_id = :id'); \n $req->execute(array('id' => $roleID));\n foreach($req->fetchAll() as $row) {\n $userlist[] = $row;\n }\n return $userlist;\n }", "public function getRoles()\n {\n }", "public function getRoles()\n {\n }", "public function getRoles()\n {\n }", "protected function _role()\n {\n $element = new Zend_Form_Element_Select('role');\n $element->setLabel('Role')\n ->setRequired(true);\n\n $element->addMultiOption(Users_Model_User::ROLE_USER, 'User');\n $element->addMultiOption(Users_Model_User::ROLE_ADMIN, 'Admin');\n\n return $element;\n }", "public function getRolesNames ();", "public function roles($level) {\n $stmt = $this->connection->prepare(\"SELECT idRol, name, default_role FROM users_roles WHERE name = ?\");\n $stmt->bind_param(\"s\", $this->level);\n $stmt->execute();\n $result = $stmt->get_result();\n return $result->fetch_assoc();\n }", "function get_editable_roles()\n {\n }", "public static function getPersonsByRole($role = false){\n $ccuc_status = CcucUserCompany::CCUC_STATUS_SYS;\n $sys_ccmp_id = Yii::app()->sysCompany->getActiveCompany();\n $sql = \" \n SELECT DISTINCT\n \n pprs_id,\n CONCAT(\n pprs_second_name,\n ' ',\n pprs_first_name\n ) full_name,\n pprs_second_name,\n pprs_first_name \n FROM\n AuthAssignment aa \n INNER JOIN `profiles` p \n ON aa.userid = p.user_id \n INNER JOIN pprs_person \n ON p.person_id = pprs_id \n INNER JOIN ccuc_user_company \n ON pprs_id = ccuc_person_id \n AND ccuc_ccmp_id = {$sys_ccmp_id} \n AND ccuc_status = '{$ccuc_status}' \n\n \"\n ;\n \n $where = '';\n if($role && !is_array($role)){\n $where = \" WHERE itemname = '{$role}' \";\n }\n\n if($role && is_array($role)){\n $where = \" WHERE itemname in ('\".implode(\"','\",$role).\"') \";\n }\n \n $sql .= $where . \" ORDER BY pprs_second_name,pprs_first_name \";\n\n return Yii::app()->db->createCommand($sql)->queryAll();\n \n }", "public function getRoleId()\n {\n return $this->db->get('role_id')->result_array();\n }", "function get_all_pac_emp_roles()\n {\n $pac_emp_roles = $this->getdb()->query(\"\n SELECT\n *\n\n FROM\n `pac_emp_roles`\n\n WHERE\n 1 = 1\n \")->result_array();\n\n return $pac_emp_roles;\n }", "function yith_ywraq_get_roles(){\n global $wp_roles;\n return array_merge( array( 'all' => __( 'All', 'yith-woocommerce-request-a-quote' ) ), $wp_roles->get_names() );\n }", "public function getRoleListAttribute()\n {\n return array_column( $this->roles()->get( [ 'slug' ] )->toArray(), 'slug' );\n }", "public function getRoles(): array\n {\n return [$this->role];\n }", "public function roles();", "public function roles();", "public function roles();", "public function roles();", "function get_term_roles( $taxonomy = 'category', $role_type = 'rs' ) {\n\t\treturn array();\n\t}", "public function getRoles()\n {\n $roles = Yii::$app->authManager->getRolesByUser($this->getId());\n return ArrayHelper::getColumn($roles, 'name', false);\n }", "public function _get_picker_dropdown_choices() {\n\t\t$this->load_data();\n\t\t$result = array();\n\t\tforeach ( $this->data as $unique_key => $item ) {\n\t\t\t$result[ $unique_key ] = $item['label'];\n\t\t}\n\n\t\treturn $result;\n\t}", "public function getRoles(){\n\n return $this->_arrRoles;\n \n }", "function getFormValues($selectList = false)\n\t{\n\t\tif (!$this->formSubmitted())\n\t\t\treturn false;\n\t\t\t\n\t\t$returnList = array();\n\t\tforeach ($this->elementList as $element)\n\t\t{\n\t\t\t// Don't return custom types\n\t\t\tif ($element->type == 'custom') {\n\t\t\t\tcontinue;\n\t\t\t}\t\t\t\t\n\t\t\t\n\t\t\tif ($selectList && is_array($selectList))\n\t\t\t{\n\t\t\t\t// Only add if in the list of specified elements.\n\t\t\t\tif (in_array($element->name, $selectList)) {\t\t\t\n\t\t\t\t\t$returnList[$element->name] = $element->value;\n\t\t\t\t}\n\t\t\t} \n\t\t\t// Add anyway, no list to choose from.\n\t\t\telse {\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t$returnList[$element->name] = $element->value;\n\t\t\t}\n\t\t\t\n\t\t} // end of foreach\n\t\t\n\t\treturn $returnList;\n\t}", "protected abstract function getAllowedRoles();", "public function getRoles()\n {\n return array($this->role);\n }", "public function get_roles() {\n return DB::query(Database::SELECT, 'SELECT * FROM roles WHERE id > 1')\n ->as_object()\n ->execute($this->db);\n }", "public function getRoles(){\n\n $roles = $this->visiteur_roles->map(function($role){\n return $role->getTitle();\n })->ToArray();\n\n $roles[]= 'ROLE_USER';\n \n return $roles;\n }", "public static function getRoles(){\n $conn = DBConnection::getInstance();\n $query = \"CALL getRoles();\";\n $result = $conn->performQueryFetchAll($query);\n if (!$result)\n return false;\n foreach ($result as $value) {\n $result_array[] = $value['name'];\n }\n return $result_array;\n }", "public function getRolesPairs()\n\t{\n\t\t$db = $this->getDbTable()->getAdapter();\n\t\t$select = $db->select()\n\t\t\t->from(array('r' => 'roles'), array('role_id', 'role_name'))\n\t\t\t->where('r.editable = 1');\n\t\treturn $db->fetchPairs($select);\n\t}", "public function getRoles()\n {\n if (!is_array($this->role)) {\n return array($this->role);\n }\n return $this->role;\n }", "public function getValuesList(){\n return $this->_get(1);\n }", "public function getRoles()\n {\n $roles = $this->roles;\n if ($roles != NULL) {\n\n return explode(\" \", $roles);\n } else {\n return $this->roles;\n }\n // return ['ROLE_USER'];\n }", "function get_roles( ) {\n\n\n global $wp_roles;\n $default_roles = array();\n //$default_roles = array('administrator','editor', 'author', 'contributor', 'subscriber', 'pending');\n\n\n $roles = $wp_roles->get_names();\n // dump($roles);\n\n $roless['Bez ograniczeń'] = '';\nforeach($roles as $role => $name){\n if(!in_array( $role, $default_roles)){\n $roless[$name] = $role;\n }\n}\n\n //dump($roless);\nreturn $roless;\n /*\n $categories = get_categories( $args );\n $cat[__('Wybierz kategorię')] = '';\n foreach( $categories as $category ) {\n\t$cat[$category->name] = $category->term_id;\n }\n return $cat;\n */\n}", "private static function getUserRole(): array\n\t{\n\t return self::getUser()->roles;\n\t}", "public function getRoles() \n {\n return $this->roles;\n }" ]
[ "0.7393812", "0.7172339", "0.6570209", "0.64377993", "0.6408442", "0.6329241", "0.62448615", "0.6241064", "0.62374127", "0.61255157", "0.6118405", "0.6111821", "0.60565084", "0.60534954", "0.59979", "0.5947731", "0.59450847", "0.59325516", "0.593203", "0.5930951", "0.5919115", "0.5913317", "0.59101355", "0.59052867", "0.5890742", "0.588735", "0.58788", "0.58759373", "0.58751327", "0.58676684", "0.5866082", "0.58629304", "0.5849698", "0.5843651", "0.58294845", "0.581488", "0.5807905", "0.57957196", "0.57957196", "0.57932377", "0.57916546", "0.5789431", "0.5789406", "0.5781914", "0.5777451", "0.57736313", "0.57700986", "0.57683575", "0.5754869", "0.5749816", "0.5744873", "0.5738825", "0.5720164", "0.5714937", "0.570807", "0.57077765", "0.5699549", "0.5693043", "0.5690807", "0.5685076", "0.5682686", "0.5680238", "0.5679532", "0.5678943", "0.5677039", "0.5676348", "0.56748617", "0.56748617", "0.56748617", "0.5674334", "0.5668592", "0.5656579", "0.5642245", "0.56406796", "0.5633356", "0.56248635", "0.56217986", "0.56155807", "0.5601214", "0.5599531", "0.5599531", "0.5599531", "0.5599531", "0.55939937", "0.55916244", "0.5589599", "0.55849105", "0.55846155", "0.5576792", "0.55616486", "0.5554183", "0.55496615", "0.5540327", "0.5534069", "0.5525776", "0.55233324", "0.5518947", "0.5518884", "0.55083483", "0.55043525" ]
0.6314612
6
Function which will give the picklist values for a field.
public static function getValuesName($fieldName) { if (\App\Cache::has('Picklist::getValuesName', $fieldName)) { return \App\Cache::get('Picklist::getValuesName', $fieldName); } $primaryKey = static::getPickListId($fieldName); $dataReader = (new \App\Db\Query())->select([$primaryKey, $fieldName]) ->from("vtiger_$fieldName") ->orderBy('sortorderid') ->createCommand()->query(); $values = []; while ($row = $dataReader->read()) { $values[$row[$primaryKey]] = \App\Purifier::decodeHtml(\App\Purifier::decodeHtml($row[$fieldName])); } \App\Cache::save('Picklist::getValuesName', $fieldName, $values); return $values; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSelectDataFields();", "public function getFieldInstanceByName($name)\n\t{\n\t\t$params = [];\n\t\t$qualifiedModuleName = 'Settings:Picklist';\n\t\t$tableName = $this->getTableName();\n\t\tswitch ($name) {\n\t\t\tcase 'name':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $this->fieldModel->getName(),\n\t\t\t\t\t'label' => 'LBL_ITEM_VALUE',\n\t\t\t\t\t'uitype' => 1,\n\t\t\t\t\t'typeofdata' => 'V~M',\n\t\t\t\t\t'maximumlength' => $this->fieldModel->getMaxValue(),\n\t\t\t\t\t'purifyType' => \\App\\Purifier::TEXT,\n\t\t\t\t\t'table' => $tableName,\n\t\t\t\t\t'validator' => [['name' => 'FieldLabel']]\n\t\t\t\t];\n\t\t\t\tif (1 !== $this->presence || !$this->fieldModel->isEditable()) {\n\t\t\t\t\t$params['isEditableReadOnly'] = true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'description':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_DESCRIPTION',\n\t\t\t\t\t'uitype' => 300,\n\t\t\t\t\t'typeofdata' => 'V~O',\n\t\t\t\t\t'maximumlength' => '65535',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::HTML,\n\t\t\t\t\t'tooltip' => 'LBL_DESCRIPTION_VALUE_LIST',\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'prefix':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_PREFIX',\n\t\t\t\t\t'uitype' => 1,\n\t\t\t\t\t'typeofdata' => 'V~O',\n\t\t\t\t\t'maximumlength' => '25',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::TEXT,\n\t\t\t\t\t'tooltip' => 'LBL_DESCRIPTION_PREFIXES',\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'close_state':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_CLOSES_RECORD',\n\t\t\t\t\t'uitype' => 56,\n\t\t\t\t\t'typeofdata' => 'C~O',\n\t\t\t\t\t'maximumlength' => '5',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::BOOL,\n\t\t\t\t\t'tooltip' => 'LBL_BLOCKED_RECORD_INFO',\n\t\t\t\t\t'table' => 'u_#__picklist_close_state'\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'icon':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_ICON',\n\t\t\t\t\t'uitype' => 62,\n\t\t\t\t\t'typeofdata' => 'V~O',\n\t\t\t\t\t'maximumlength' => '255',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::TEXT,\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'time_counting':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_TIME_COUNTING',\n\t\t\t\t\t'uitype' => 16,\n\t\t\t\t\t'typeofdata' => 'V~M',\n\t\t\t\t\t'maximumlength' => '250',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::INTEGER,\n\t\t\t\t\t'tooltip' => 'LBL_TIME_COUNTING_INFO',\n\t\t\t\t\t'defaultvalue' => 0,\n\t\t\t\t\t'picklistValues' => [\n\t\t\t\t\t\t0 => \\App\\Language::translate('LBL_NONE', '_Base'),\n\t\t\t\t\t\t\\App\\RecordStatus::TIME_COUNTING_REACTION => \\App\\Language::translate('LBL_TIME_COUNTING_REACTION', $qualifiedModuleName),\n\t\t\t\t\t\t\\App\\RecordStatus::TIME_COUNTING_RESOLVE => \\App\\Language::translate('LBL_TIME_COUNTING_RESOLVE', $qualifiedModuleName),\n\t\t\t\t\t\t\\App\\RecordStatus::TIME_COUNTING_IDLE => \\App\\Language::translate('LBL_TIME_COUNTING_IDLE', $qualifiedModuleName)\n\t\t\t\t\t],\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'record_state':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_RECORD_STATE',\n\t\t\t\t\t'uitype' => 16,\n\t\t\t\t\t'typeofdata' => 'V~M',\n\t\t\t\t\t'maximumlength' => '250',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::INTEGER,\n\t\t\t\t\t'tooltip' => 'LBL_RECORD_STATE_INFO',\n\t\t\t\t\t'defaultvalue' => \\App\\RecordStatus::RECORD_STATE_NO_CONCERN,\n\t\t\t\t\t'picklistValues' => [],\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tforeach (\\App\\RecordStatus::getLabels() as $key => $value) {\n\t\t\t\t\t$params['picklistValues'][$key] = \\App\\Language::translate($value, $qualifiedModuleName);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'roles':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_ASSIGN_TO_ROLE',\n\t\t\t\t\t'uitype' => 33,\n\t\t\t\t\t'typeofdata' => 'V~O',\n\t\t\t\t\t'maximumlength' => '500',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::TEXT,\n\t\t\t\t\t'defaultvalue' => 'all',\n\t\t\t\t\t'picklistValues' => [\n\t\t\t\t\t\t'all' => \\App\\Language::translate('LBL_ALL_ROLES', $qualifiedModuleName)\n\t\t\t\t\t],\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tforeach (\\Settings_Roles_Record_Model::getAll() as $key => $roleModel) {\n\t\t\t\t\t$params['picklistValues'][$key] = \\App\\Language::translate($roleModel->get('rolename'), 'Settings:Roles');\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn $params ? \\Vtiger_Field_Model::init($qualifiedModuleName, $params, $name)->set('sourceFieldModel', $this->fieldModel) : null;\n\t}", "private static function show_options_for_get_values_field( $form_fields, $field = array() )\n {\n }", "function getSelectFieldsValues($field_data) {\n \n $model = $this->getModel('comment_answers');\n \n $results = $model->getDataForView($field_data);\n \n foreach($results as $list) {\n $result = null;\n if($field_data == 'post_id') {\n $result_list[] = $list->post_id;\n }\n if($field_data == 'created_date') {\n $result_list[] = $list->created_date;\n }\n if($field_data == 'creator') {\n $result_list[] = $list->creator;\n }\n if($field_data == 'comment_id') {\n $result_list[] = $list->comment_id;\n }\n \n if($field_data == 'published') {\n $result_list[]= $list->published;\n }\n }\n \n //results are all the data from the selected column in the result_list array\n return $result_list;\n }", "function create_field( $field )\n\t{\n\t\tif( 'object' == $field['save_format'] && 'null' !== $field['value'] )\n\t\t\t$field['value'] = array( $field['value']->class );\n\n\t\t// value must be array\n\t\tif( !is_array($field['value']) )\n\t\t{\n\t\t\t// perhaps this is a default value with new lines in it?\n\t\t\tif( strpos($field['value'], \"\\n\") !== false )\n\t\t\t{\n\t\t\t\t// found multiple lines, explode it\n\t\t\t\t$field['value'] = explode(\"\\n\", $field['value']);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$field['value'] = array( $field['value'] );\n\t\t\t}\n\t\t}\n\t\t\n\t\t// trim value\n\t\t$field['value'] = array_map('trim', $field['value']);\n\t\t\n\t\t// html\n\t\techo '<div class=\"fa-field-wrapper\">';\n\t\techo '<div class=\"fa-live-preview\"></div>';\n\t\techo '<select id=\"' . $field['id'] . '\" class=\"' . $field['class'] . ' fa-select2-field\" name=\"' . $field['name'] . '\" >';\t\n\t\t\n\t\t// null\n\t\tif( $field['allow_null'] )\n\t\t{\n\t\t\techo '<option value=\"null\">- ' . __(\"Select\",'acf') . ' -</option>';\n\t\t}\n\t\t\n\t\t// loop through values and add them as options\n\t\tif( is_array($field['choices']) )\n\t\t{\n\t\t\tunset( $field['choices']['null'] );\n\n\t\t\tforeach( $field['choices'] as $key => $value )\n\t\t\t{\n\t\t\t\t$selected = $this->find_selected( $key, $field['value'], $field['save_format'], $field['choices'] );\n\t\t\t\techo '<option value=\"'.$key.'\" '.$selected.'>'.$value.'</option>';\n\t\t\t}\n\t\t}\n\n\t\techo '</select>';\n\t\techo '</div>';\n\t}", "public static function getValues($fieldName)\n\t{\n\t\tif (\\App\\Cache::has('Picklist::getValues', $fieldName)) {\n\t\t\treturn \\App\\Cache::get('Picklist::getValues', $fieldName);\n\t\t}\n\t\t$primaryKey = static::getPickListId($fieldName);\n\t\t$dataReader = (new \\App\\Db\\Query())\n\t\t\t->from(\"vtiger_$fieldName\")\n\t\t\t->orderBy('sortorderid')\n\t\t\t->createCommand()->query();\n\t\t$values = [];\n\t\twhile ($row = $dataReader->read()) {\n\t\t\t$row['picklistValue'] = \\App\\Purifier::decodeHtml(\\App\\Purifier::decodeHtml($row[$fieldName]));\n\t\t\t$row['picklistValueId'] = $row[static::getPickListId($fieldName)];\n\t\t\t$values[$row[$primaryKey]] = $row;\n\t\t}\n\t\t\\App\\Cache::save('Picklist::getValues', $fieldName, $values);\n\t\treturn $values;\n\t}", "function hundope_select_field_render() { \n\t\n}", "public function makeFieldList() {}", "public function providerFieldValues()\n {\n return [\n ['non_existent_field', []],\n ['empty_field', []],\n ['empty_field_2', []],\n [\n 'acf_value_field',\n [\n ['test-1' => 'test 1'],\n ['test-1' => 'test 2'],\n ['test-1' => 'test 3'],\n ],\n ],\n [\n 'acf_option_field',\n [\n [\n 'label' => 'test 1',\n 'slug' => 'test-1',\n ],\n [\n 'label' => 'test 2',\n 'slug' => 'test-2',\n ],\n ],\n ],\n ];\n }", "function Field() {\n\t\t$size = '';\n\t\t$multiple = '';\n\t\t\n\t\tif($this->size) $size = \"size=\\\"$this->size\\\"\";\n\t\t\n\t\tif($this->multiple) {\n\t\t\t$multiple = \"multiple=\\\"multiple\\\"\";\n\t\t\t$this->name .= '[]';\n\t\t}\n\t\t\n\t\t$options = \"\";\n\t\t\n\t\t// We have an array of values\n\t\tif(is_array($this->value)){\n\t\t\t// Loop through and figure out which values were selected.\n\t\t\t\t\t\n\t\t\tforeach($this->getSource() as $value => $title) {\n\t\t\t\t// Loop through the array of values to find out if this value is selected.\n\t\t\t\t$selected = \"\";\n\t\t\t\tforeach($this->value as $v){\n\t\t\t\t\tif($value == $v) {\n\t\t\t\t\t\t$selected = \" selected=\\\"selected\\\"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$options .= \"<option$selected value=\\\"$value\\\">$title</option>\\n\";\n\t\t\t}\n\t\t}else{\n\t\t\t// Listbox was based a singlular value, so treat it like a dropdown.\n\t\t\tforeach($this->getSource() as $value => $title) {\n\t\t\t\t$selected = $value == $this->value ? \" selected=\\\"selected\\\"\" : \"\"; \n\t\t\t\t$options .= \"<option$selected value=\\\"$value\\\">$title</option>\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t$id = $this->id();\n\t\treturn \"<select $size $multiple name=\\\"$this->name\\\" id=\\\"$id\\\">$options</select>\";\n\t}", "function wppb_save_multiple_select_value( $field, $user_id, $request_data, $form_location ){\r\n\tif( $field['field'] == 'Select (Multiple)' ){\r\n\t\t$selected_values = wppb_process_multipl_select_value( $field, $request_data );\r\n\t\tupdate_user_meta( $user_id, $field['meta-name'], trim( $selected_values, ',' ) );\r\n\t}\r\n}", "public function GetPickListFields(Vtiger_Request $request)\n\t{\n\t\t$module = $request->get('sourceModule');\n\n\t\t$fieldList = Settings_PickListDependency_Module_Model::getAvailablePicklists($module);\n\n\t\t$response = new Vtiger_Response();\n\t\t$response->setResult($fieldList);\n\t\t$response->emit();\n\t}", "function render_field( $field ) { ?>\n <input type=\"text\" value=\"<?php echo esc_attr( $field[ 'value' ] ); ?>\" id=\"<?php echo esc_attr( $field[ 'id' ] ); ?>\" name=\"<?php echo esc_attr( $field[ 'name' ] ); ?>\" class=\"rhicomoon-select-field <?php echo esc_attr( $field[ 'class' ] ); ?>\" data-json-url=\"<?php echo esc_attr( $field[ 'json_url' ] ); ?>\"/>\n <?php }", "protected function getFieldOptions()\n {\n return explode(',', $this->option('fields'));\n }", "public function getFormFields() {\n $fields = array(\n 'shapes[]' => array(\n 'type' => 'select',\n 'multiplicate' => '5',\n 'values' => array(\n '-' => '-',\n 'cube' => 'cube',\n 'round' => 'round',\n )\n ),\n 'width[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Width'\n ),\n 'higth[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Higth'\n ),\n 'x_position[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'X position'\n ),\n 'y_position[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Y position'\n ),\n 'red[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Color red',\n ),\n 'green[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Color green',\n ),\n 'blue[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Color blue',\n ),\n 'size[]' => array(\n 'type' => 'text',\n 'multiplicate' => '1',\n 'label' => 'Size holst'\n ),\n 'enable[]' => array(\n 'type' => 'checkbox',\n 'multiplicate' => '5',\n 'label' => 'enable'\n )\n );\n return $fields;\n }", "function render_field_select($field)\n {\n }", "function acf_get_select_input($attrs = array())\n{\n}", "function get_field_list()\n\t{\n\t\t$fields = array();\n\n\n\t\t$this->xhr_output($fields);\n\t}", "function get_value_list()\n\t{\n\t\treturn $this->value;\n\t}", "public function getListFields();", "function create_field($field) {\n // create Field HTML\n ?>\n <ul class=\"acf-hl\" data-cols=\"3\">\n <li>\n <select name=\"<?php echo esc_attr($field['name']) ?>[country]\" data-select=\"countries\" value=\"<?php echo esc_attr($field['value']['country']) ?>\">\n <option value=\"\"><?php _e('País', 'acf-cities'); ?></option>\n <?php foreach($field['countries'] as $country): ?>\n <option value=\"<?php echo $country->Sigla; ?>\" <?php echo ($country->Sigla === $field['value']['country']) ? 'selected' : '' ?>><?php echo $country->Pais; ?></option>\n <?php endforeach; ?>\n </select>\n </li>\n\n <li>\n <select name=\"<?php echo esc_attr($field['name']) ?>[state]\" data-select=\"states\" data-value=\"<?php echo esc_attr($field['value']['state']) ?>\">\n <option value=\"\"><?php _e('Estado', 'acf-cities'); ?></option>\n </select>\n\n <input <?php echo (isset($field['value']['custom-state']) && $field['value']['custom-state'] == 1) ? 'name=\"'. esc_attr($field['name']) .'[state]\"' : ''; ?> type=\"text\" value=\"<?php echo esc_attr($field['value']['state']) ?>\" placeholder=\"Digite o estado\" class=\"state-input\" <?php echo (!isset($field['value']['custom-state']) || $field['value']['custom-state'] == 0) ? 'style=\"display: none\"' : ''; ?>>\n\n <label>\n <input type=\"hidden\" name=\"<?php echo esc_attr($field['name']) ?>[custom-state]\" value=\"0\">\n <input type=\"checkbox\" name=\"<?php echo esc_attr($field['name']) ?>[custom-state]\" <?php if (isset($field['value']['custom-state'])) checked($field['value']['custom-state'], 1); ?> value=\"1\" class=\"custom-state-toggler\">\n Não encontrei o estado\n </label>\n </li>\n\n <li>\n <select name=\"<?php echo esc_attr($field['name']) ?>[city]\" data-select=\"cities\" data-value=\"<?php echo isset($field['value']['city']) ? esc_attr($field['value']['city']) : ''; ?>\" <?php echo (isset($field['value']['custom-city']) && $field['value']['custom-city'] == 1) ? 'style=\"display: none\"' : ''; ?>>\n <option value=\"\"><?php _e('Cidade', 'acf-cities'); ?></option>\n </select>\n\n <input <?php echo (isset($field['value']['custom-city']) && $field['value']['custom-city'] == 1) ? 'name=\"'. esc_attr($field['name']) .'[city]\"' : ''; ?> type=\"text\" value=\"<?php echo esc_attr($field['value']['city']) ?>\" placeholder=\"Digite a cidade\" class=\"city-input\" <?php echo (!isset($field['value']['custom-city']) || $field['value']['custom-city'] == 0) ? 'style=\"display: none\"' : ''; ?>>\n\n <label>\n <input type=\"hidden\" name=\"<?php echo esc_attr($field['name']) ?>[custom-city]\" value=\"0\">\n <input type=\"checkbox\" name=\"<?php echo esc_attr($field['name']) ?>[custom-city]\" <?php if (isset($field['value']['custom-city'])) checked($field['value']['custom-city'], 1); ?> value=\"1\" class=\"custom-city-toggler\">\n Não encontrei a cidade\n </label>\n </li>\n </ul>\n <?php\n }", "private function getFields()\n {\n return [\n [\n \"field_type\" => \"text\",\n \"field_name\" => \"first_name\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n [\n \"field_type\" => \"text\",\n \"field_name\" => \"last_name\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n [\n \"field_type\" => \"checkbox\",\n \"field_name\" => \"happy\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n [\n \"field_type\" => \"select\",\n \"field_name\" => \"character\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => [\n [\"value\" => \"biff\", \"label\" => \"Biff\"],\n [\"value\" => \"marty\", \"label\" => \"Marty\"],\n [\"value\" => \"doc\", \"label\" => \"Doc Brown\"],\n [\"value\" => \"jennifer\", \"label\" => \"Jennifer\"],\n [\"value\" => \"needles\", \"label\" => \"Needles\"],\n ]\n ],\n [\n \"field_type\" => \"checkbox\",\n \"field_name\" => \"kids\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n ];\n }", "function getOptionValues() {\t\t\n\t\t$optionvaluesquery = \"SELECT lv.lookuptypevalue as optiontext, lv.lookuptypevalue as optionvalue FROM lookuptype AS l , \n\t\tlookuptypevalue AS lv WHERE l.id = lv.lookuptypeid AND l.name ='\".$this->getName().\"' ORDER BY optiontext \";\n\t\treturn getOptionValuesFromDatabaseQuery($optionvaluesquery);\n\t}", "public function select_values_for_form( EntryValueSelect $entry_value_select );", "public function getDropDownListData($field)\n {\n switch ($field)\n {\n case 'item_name':\n return ArrayHelper::map(AuthItem::find()->all(),'name','description');\n case 'user_id':\n return ArrayHelper::map(User::find()->all(),'id','username');\n //put more fields need to be mapped.\n \n default:\n return [];\n }\n }", "public function populateDesignSelect($field) {\n\n //Fetch data from host\n $data = wp_remote_get($this->apiUrl, ['cacheBust' => $this->uniqid]); \n \n if(wp_remote_retrieve_response_code($data) == 200) {\n \n //Decode\n $choices = json_decode($data['body']); \n\n //Reset select\n $field['choices'] = []; \n\n //Populate select\n if( is_array($choices) && !empty($choices) ) {\n foreach( $choices as $choice ) {\n $field['choices'][ $choice->id ] = $choice->name; \n }\n }\n\n } else {\n $field['choices']['error'] = __(\"Error loading options\", 'muncipio'); \n } \n \n return $field;\n }", "public function getFieldList()\n {\n $sObjectName = $this->getShopObjectName();\n\n if ($sObjectName) {\n $oShopObject = oxNew($sObjectName);\n } else {\n $oShopObject = oxNew('oxbase');\n $oShopObject->init($this->getTableName());\n }\n\n if ($oShopObject instanceof oxI18n) {\n $oShopObject->setLanguage(0);\n $oShopObject->setEnableMultilang(false);\n }\n\n $sViewName = $oShopObject->getViewName();\n $sFields = str_ireplace('`' . $sViewName . \"`.\", \"\", strtoupper($oShopObject->getSelectFields()));\n $sFields = str_ireplace(array(\" \", \"`\"), array(\"\", \"\"), $sFields);\n $this->_aFieldList = explode(\",\", $sFields);\n\n return $this->_aFieldList;\n }", "public function getFormCustomFields(){\n\t}", "public function getValuesForForm()\n {\n $collection = $this->getCollection();\n $options = [];\n if ($collection->getSize() > 0) {\n foreach ($collection as $role) {\n $options[] = ['value' => $role->getId(), 'label' => $role->getData('display_name')];\n }\n }\n return $options;\n }", "function _field_select($fval) \n {\n\n // if need be, copy the current vals for safety + reset()\n $postedvals = (is_array($fval))? $fval : array();\n\n $res = sprintf(\"<select size=\\\"1\\\" name=\\\"%s\\\" id=\\\"%s\\\" class=\\\"%s\\\" %s>\",\n $this->fname, \n $this->fname, \n (isset($this->attribs['class']))? $this->attribs['class'] : $this->element_class,\n $this->extra_attribs);\n\n if (empty($fval) and isset($this->attribs['top_value'])) {\n $res .= \"<option value=\\\"\\\">\". $this->attribs['top_value'] .\"</option>\"; \n } \n\n $opts = $this->opts; # $this->_array_stringify($this->opts);\n foreach ($opts as $optkey => $optval) { \n $res .= sprintf(\"<option value=\\\"%s\\\"%s>%s</option>\",\n $this->_htmlentities($optkey),\n ((in_array($optkey, $postedvals) || $optkey == $fval) and !empty($fval))? \" selected\" : \"\",\n $this->_htmlentities($optval));\n }\n $res .= \"</select>\";\n return $res;\n }", "public function getFieldsList(){\n return $this->_get(1);\n }", "function fill_in_additional_list_fields()\r\n\t{\r\n\t}", "function my_custom_field($field, $value){\n\tprint_r($field);\n\tprint_r($value);\n\n}", "public function getDataListByField(string $field_name)\n {\n switch ($field_name) {\n case 'PostalCode': return $this -> get_postal_code_list(); break;\n case 'City': return $this -> generate_city_value_list(); break;\n }\n }", "protected function getSelectFields()\n {\n return $this->getSettingsValue('select');\n }", "abstract function fields_options();", "function getFieldValue($field);", "function getFields();", "function _field_select_multiple($fval) \n {\n // if need be, copy the current vals for safety + reset()\n $postedvals = (is_array($fval))? $fval : array();\n\n $res = sprintf(\"<select size=\\\"%d\\\"id=\\\"%s\\\" name=\\\"%s\\\" class=\\\"%s\\\" multiple %s >\",\n $this->_get_field_size(),\n $this->fname,\n $this->fname . '[]', // add magic brakets\n (isset($this->attribs['class']))? $this->attribs['class'] : $this->element_class,\n $this->extra_attribs);\n\n $opts = $this->opts; # $this->_array_stringify($this->opts);\n foreach ($opts as $optkey => $optval) { \n $res .= sprintf(\"<option value=\\\"%s\\\"%s>%s</option>\",\n $this->_htmlentities($optkey),\n (in_array($optkey, $postedvals) || $optkey == $fval)? \" selected\" : \"\",\n $this->_htmlentities($optval));\n }\n $res .= \"</select>\";\n $res .= sprintf('<br /><span class=\"%s\">%s</span>', \n $this->element_class,\n (isset($this->attribs['help_text']))? $this->attribs['help_text'] : 'Hold down [Ctrl] or [Cmd] to select multiple');\n return $res;\n }", "function my_custom_field($field, $value){\r\n\tprint_r($field);\r\n\tprint_r($value);\r\n\r\n}", "public function getListValues(string $listFieldName): array;", "function wppb_rf_epf_set_field_ids_on_field_select() {\r\n global $all_fields;\r\n $all_fields = get_option ( 'wppb_manage_fields', 'not_set' );\r\n\r\n // remove certain fields from the Field drop-down on edit profile form\r\n if( ( isset( $_GET['post_type'] ) && $_GET['post_type'] == 'wppb-epf-cpt' ) || ( isset( $_GET['post'] ) && get_post_type( absint( $_GET['post'] ) ) == 'wppb-epf-cpt' ) || ( isset( $_POST['meta'] ) && $_POST['meta'] == 'wppb_epf_fields' ) ) {\r\n foreach( $all_fields as $key => $field ) {\r\n\t\t\t$unwanted_fields = array( 'reCAPTCHA', 'Validation' );\r\n if( in_array( $field['field'], $unwanted_fields) ) {\r\n unset( $all_fields[$key] );\r\n }\r\n }\r\n $all_fields = array_values( $all_fields );\r\n }\r\n\r\n // remove certain fields from the Field drop-down on register form\r\n if( ( isset( $_GET['post_type'] ) && $_GET['post_type'] == 'wppb-rf-cpt' ) || ( isset( $_GET['post'] ) && get_post_type( absint( $_GET['post'] ) ) == 'wppb-rf-cpt' ) || ( isset( $_POST['meta'] ) && $_POST['meta'] == 'wppb_rf_fields' ) ) {\r\n foreach( $all_fields as $key => $field ) {\r\n if( $field['field'] == 'Default - Display name publicly as' ) {\r\n unset( $all_fields[$key] );\r\n }\r\n }\r\n $all_fields = array_values( $all_fields );\r\n }\r\n\r\n if( $all_fields !== 'not_set ') {\r\n\r\n if( !function_exists( 'wppb_rf_epf_set_field_id_select_option' ) ) {\r\n function wppb_rf_epf_set_field_id_select_option( $content, $field_id ){\r\n global $all_fields;\r\n $output = str_replace( '<option', '<option ' . 'data-id=\"' . $all_fields[$field_id]['id'] . '\"', $content );\r\n return $output;\r\n }\r\n }\r\n foreach($all_fields as $key => $value ) {\r\n add_filter('wck_select_wppb_epf_fields_field_option_' . $key, 'wppb_rf_epf_set_field_id_select_option', 10 ,2);\r\n add_filter('wck_select_wppb_rf_fields_field_option_' . $key, 'wppb_rf_epf_set_field_id_select_option', 10 ,2);\r\n }\r\n\r\n }\r\n}", "public static function getPickListId($fieldName)\n\t{\n\t\t$pickListIds = [\n\t\t\t'opportunity_type' => 'opptypeid',\n\t\t\t'sales_stage' => 'sales_stage_id',\n\t\t\t'rating' => 'rating_id',\n\t\t\t'ticketpriorities' => 'ticketpriorities_id',\n\t\t\t'ticketseverities' => 'ticketseverities_id',\n\t\t\t'ticketstatus' => 'ticketstatus_id',\n\t\t\t'salutationtype' => 'salutationtypeid',\n\t\t\t'faqstatus' => 'faqstatus_id',\n\t\t\t'recurring_frequency' => 'recurring_frequency_id',\n\t\t\t'payment_duration' => 'payment_duration_id',\n\t\t\t'language' => 'id',\n\t\t\t'duration_minutes' => 'minutesid',\n\t\t];\n\t\tif (isset($pickListIds[$fieldName])) {\n\t\t\treturn $pickListIds[$fieldName];\n\t\t}\n\t\treturn $fieldName . 'id';\n\t}", "function wp_list_pluck($input_list, $field, $index_key = \\null)\n {\n }", "public function fields()\n {\n $series = [];\n for ($i = 1; $i <= 110; $i++) {\n $name = \"第${i}集\";\n $series[$name] = $name;\n }\n return [\n Select::make('剧集', 'name')\n ->options($series)\n ->withMeta([\n 'value' => '第1集',\n 'extraAttributes' => [\n 'placeholder' => '第几集...'],\n ]),\n Text::make(\"播放地址\", 'url', )->withMeta(['extraAttributes' => [\n 'placeholder' => '目前仅支持m3u8播放地址'],\n ]),\n Select::make(\"是否完成求片处理\", 'fixed')->options([\n 0 => '否',\n 1 => '是',\n ])\n ->withMeta(['value' => 0])\n ->displayUsingLabels(),\n ];\n }", "function getFormValues($selectList = false)\n\t{\n\t\tif (!$this->formSubmitted())\n\t\t\treturn false;\n\t\t\t\n\t\t$returnList = array();\n\t\tforeach ($this->elementList as $element)\n\t\t{\n\t\t\t// Don't return custom types\n\t\t\tif ($element->type == 'custom') {\n\t\t\t\tcontinue;\n\t\t\t}\t\t\t\t\n\t\t\t\n\t\t\tif ($selectList && is_array($selectList))\n\t\t\t{\n\t\t\t\t// Only add if in the list of specified elements.\n\t\t\t\tif (in_array($element->name, $selectList)) {\t\t\t\n\t\t\t\t\t$returnList[$element->name] = $element->value;\n\t\t\t\t}\n\t\t\t} \n\t\t\t// Add anyway, no list to choose from.\n\t\t\telse {\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t$returnList[$element->name] = $element->value;\n\t\t\t}\n\t\t\t\n\t\t} // end of foreach\n\t\t\n\t\treturn $returnList;\n\t}", "function cfdef_prepare_list_distinct_values( array $p_field_def ) {\n\tdb_param_push();\n\t$t_query = 'SELECT possible_values FROM {custom_field} WHERE id=' . db_param();\n\t$t_result = db_query( $t_query, array( $p_field_def['id'] ) );\n\n\t$t_row = db_fetch_array( $t_result );\n\tif( !$t_row ) {\n\t\treturn false;\n\t}\n\n\t$t_possible_values = custom_field_prepare_possible_values( $t_row['possible_values'] );\n\t$t_values_arr = explode( '|', $t_possible_values );\n\t$t_return_arr = array();\n\n\tforeach( $t_values_arr as $t_option ) {\n\t\tarray_push( $t_return_arr, $t_option );\n\t}\n\treturn $t_return_arr;\n}", "public function field_field_option_form( $field, $display, $values )\n {\n }", "function get_additional_field_options($val){\n\t \t$OPTIONS = stripslashes($val);\n\t\t\t$OPTIONS = str_replace(', ', ',', $OPTIONS);\n\t\t\t$OPTIONS = explode(',', $OPTIONS);\n\t\t\t$output = false;\n\t\t\tforeach($OPTIONS as $option){\n\t\t\t\t$slug = str_replace(' ', '-', $option);\n\t\t\t\t$output[$slug]= $option;\n\t\t\t}\n\t\t\treturn $output;\n\t }", "protected function getInput()\n\t{\n\t\t$html = array();\n\n\t\t// Initialize some field attributes.\n\t\t$attr = 'class=\"chzn-custom-value' . (empty($this->class) ? '' : ' ' . $this->class) . '\" '\n\t\t\t\t. 'data-custom_group_text=\"' . 'Test1' . '\" '\n\t\t\t\t. 'data-no_results_text=\"' . Text::_('PLG_HIKASHOP_BFORDEREXPORT_COLUMN_CUSTOM') . '\" '\n\t\t\t\t. 'data-placeholder=\"' . Text::_('PLG_HIKASHOP_BFORDEREXPORT_COLUMN_TYPEORSELECT') . '\" ';\n\t\t$attr .= !empty($this->size) ? ' size=\"' . $this->size . '\"' : '';\n\t\t$attr .= $this->multiple ? ' multiple' : '';\n\t\t$attr .= $this->required ? ' required aria-required=\"true\"' : '';\n\t\t$attr .= $this->autofocus ? ' autofocus' : '';\n\n\t\t// To avoid user's confusion, readonly=\"true\" should imply disabled=\"true\".\n\t\tif ($this->readonly || $this->disabled)\n\t\t{\n\t\t\t$attr .= ' disabled=\"disabled\"';\n\t\t}\n\n\t\t// Initialize JavaScript field attributes.\n\t\t$attr .= !empty($this->onchange) ? ' onchange=\"' . $this->onchange . '\"' : '';\n\n\t\t// Get the field groups.\n\t\t$groups = (array) $this->getGroups();\n\n\t\t// Create a read-only list (no name) with a hidden input to store the value.\n\t\tif ($this->readonly)\n\t\t{\n\t\t\t$html[] = JHtml::_(\n\t\t\t\t'select.groupedlist', $groups, null,\n\t\t\t\tarray(\n\t\t\t\t\t'list.attr' => $attr, 'id' => $this->id, 'list.select' => $this->value, 'group.items' => null, 'option.key.toHtml' => false,\n\t\t\t\t\t'option.text.toHtml' => false,\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t// E.g. form field type tag sends $this->value as array\n\t\t\tif ($this->multiple && is_array($this->value))\n\t\t\t{\n\t\t\t\tif (!count($this->value))\n\t\t\t\t{\n\t\t\t\t\t$this->value[] = '';\n\t\t\t\t}\n\n\t\t\t\tforeach ($this->value as $value)\n\t\t\t\t{\n\t\t\t\t\t$html[] = '<input type=\"hidden\" name=\"' . $this->name . '\" value=\"' . htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . '\"/>';\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$html[] = '<input type=\"hidden\" name=\"' . $this->name . '\" value=\"' . htmlspecialchars($this->value, ENT_COMPAT, 'UTF-8') . '\"/>';\n\t\t\t}\n\t\t}\n\n\t\t// Create a regular list.\n\t\telse\n\t\t{\n\t\t\t$html[] = JHtml::_(\n\t\t\t\t'select.groupedlist', $groups, $this->name,\n\t\t\t\tarray(\n\t\t\t\t\t'list.attr' => $attr, 'id' => $this->id, 'list.select' => $this->value, 'group.items' => null, 'option.key.toHtml' => false,\n\t\t\t\t\t'option.text.toHtml' => false,\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\n\t\treturn implode($html);\n\t}", "function imbaf_properties_create_add_fields(){\n ?>\n <div class=\"form-field\">\n <label for=\"term_meta[imbaf_property_type]\">Typ</label>\n\n <select name=\"term_meta[imbaf_property_type]\">\n\n <?php\n\n foreach($this -> property_types as $property){\n\n ?> <option style=\"width:100%;\" value=\"<?php echo $property['value']; ?>\"><?php echo $property['label']; ?></option> <?php\n\n }\n\n\n ?>\n </select>\n\n <p class=\"description\"><?php _e('Vergleichswert-Typ','imb_affiliate'); ?></p>\n\n\n\n <label for=\"term_meta[imbaf_property_icon]\">Icon</label>\n <input type=\"text\" name=\"term_meta[imbaf_property_icon]\">\n\n <p class=\"description\"><?php _e('Font Awesome Icon','imb_affiliate'); ?></p>\n\n\n <label for=\"term_meta[imbaf_property_prefix]\"><?php _e('Präfix','imb_affiliate'); ?></label>\n <input type=\"text\" name=\"term_meta[imbaf_property_prefix]\">\n\n <p class=\"description\"><?php _e('Vorgestellter Wert (ca.)','imb_affiliate'); ?></p>\n\n <label for=\"term_meta[imbaf_property_suffix]\"><?php _e('Suffix','imb_affiliate'); ?></label>\n <input type=\"text\" name=\"term_meta[imbaf_property_suffix]\">\n <p class=\"description\"><?php _e('Nachgestellter Wert (z.B. kg, MhZ etc.)','imb_affiliate'); ?></p>\n\n\n\n </div>\n <?php\n\n\n }", "function get_name_select_list()\n\t{\n\t\treturn $this->get_name_select_edit();\n\t}", "function field() {\n\t/* Note: This function depends on special PHP functions, which cannot be used outside of a function definition. The behavior of the functions is somewhat inconsistent with the behavior of normal functions.\n\t */\n\t$numargs = func_num_args(); // function cannot be used directly as a function parameter\n\t \n\tif ($numargs > 1) {\n\n\t\t/**\n\t\t * Field Assign\n\t\t *\n\t\t */\n\t\t\t \n\t\t$arg_list = func_get_args();\n\t\t \n\t\t$field_name = $arg_list[0];\n\t\t$field_value = $arg_list[1];\n\t\t\t \n\t\t/* I suppose this would work too\n\t\t $field_name = func_get_arg(0);\n\t\t $field_value = func_get_arg(1);\n\t\t*/\n\t\t\n\t\t// debug\t\n\t\t//print \"Assigning value \" \t. $field_value .\" to \". $field_name .\" field<br>\";\n\t\n\t\t$this->fields[$field_name]['value'] = $field_value;\n\t\t \n\t} else {\n\t\n\t/**\n\t * Field Retrieve\n\t *\n\t */\n\t\t\t\n\t$arg_list = func_get_args();\n\n\t$field_name = $arg_list[0];\n\t\t \n\t/* I suppose this would work too\n\t $field_name = func_get_arg(0);\n\t */\n\t \n\treturn $this->value( $field_name );\n\t }\n\t}", "function _field_select_bicameral($fval)\n {\n // if need be, copy the current vals for safety + reset()\n $postedvals = (is_array($fval))? $fval : array();\n\n $opts = $this->opts;\n $this->opts = $postedvals;\n $this->attribs['help_text'] = '';\n $pick_label = (isset($this->attribs['pick_button_label']))? $this->attribs[ 'pick_button_label']:'&lt;&lt;';\n $drop_label = (isset($this->attribs['drop_button_label']))? $this->attribs[ 'drop_button_label']:'&gt;&gt;';\n\n /* $fval should be a linear list of keys that are currently selected. \n * We pull the values from $opts if any are found and make sure they \n * are listed in the 'picks' select */\n $vals = array();\n if (!empty($fval) && is_array($fval)) {\n foreach ($fval as $k) {\n if (isset($opts[$k])) {\n $vals[$k] = $opts[$k];\n }\n }\n }\n\n /* create the 2 select boxes */\n $picks = new formex_field($this->fex, $this->name, array('Picks', 'select_multiple', $vals, $this->attribs));\n $pool = new formex_field($this->fex, $this->name.'_pool', array('Pool', 'select_multiple', $opts, $this->attribs));\n\n /* and two buttons */\n $op_pick = new formex_field($this->fex, $this->name.'_op_pick', array($pick_label, 'button', null, null, 'onclick=\"formexFieldBicameralSelect(\\''.$this->name. '\\', 1)\"', 0));\n $op_drop = new formex_field($this->fex, $this->name.'_op_drop', array($drop_label, 'button', null, null, 'onclick=\"formexFieldBicameralSelect(\\''.$this->name. '\\', 0)\"', 0));\n\n /* and a small table to wrap it all up */\n $res = \"<table border=\\\"0\\\"><tr><td valign=\\\"top\\\">\";\n $res .= $picks->get_html(null);\n $res .= \"</td><td align=\\\"center\\\" valign=\\\"middle\\\">\";\n $res .= $op_pick->get_html(null);\n $res .= $op_drop->get_html(null);\n $res .= \"</td><td valign=\\\"top\\\">\";\n $res .= $pool->get_html(null);\n $res .= \"</td></tr></table>\\n\";\n return $res;\n }", "function products_settings_field($settings, $value) { \n $attr = array(\"post_type\"=>\"product\", \"orderby\"=>\"name\", \"order\"=>\"asc\", 'posts_per_page' => -1);\n $categories = get_posts($attr); \n $data = '<input type=\"text\" value=\"'.$value.'\" name=\"'.$settings['param_name'].'\" class=\"wpb_vc_param_value wpb-input wpb-select vc_custom_select_custom_val '.$settings['param_name'].' '.$settings['type'].'\" id=\"vc_custom_select_custom_prod\">';\n $data .= '<div class=\"vc_custom_select_custom_wrapper\"><ul class=\"vc_custom_select_custom_vals\">';\n $insterted_vals = explode(',', $value);\n foreach($categories as $val) {\n if( in_array($val->ID, $insterted_vals) ) {\n $data .= '<li data-val=\"'.$val->ID.'\">'.$val->post_title.'<button>×</button></li>';\n }\n }\n $data .= '</ul>'; \n $data .= '<ul class=\"vc_custom_select_custom\">';\n foreach($categories as $val) {\n $selected = '';\n if( in_array($val->ID, $insterted_vals) ) {\n $selected = ' class=\"selected\"';\n }\n $data .= '<li' . $selected . ' data-val=\"'.$val->ID.'\">'.$val->post_title.'</li>';\n }\n $data .= '</ul></div>';\n return $data;\n}", "function fieldValues() {\n\t\n\t\tif (isset($this->fieldValues)) {\n\t\t\treturn $this->fieldValues;\n\t\t}\n\n\t\t// fieldvalues fanns inte.\n\t\t// kolla preload först och om inte där så ladda in\n\t\t$preloader = pb_query_preloader::getInstance();\n\t\t$preloadRows = $preloader->getPreloadFieldsRows($this->id);\n\t\tif ($preloadRows === false) {\n\t\t\t#echo \"<br>nah, no preload row for field, article: $this->id \";\n\t\t\t// no preload for this articles field, fetch them from db\n\t\t\tglobal $polarbear_db;\t\t\n\t\t\t$sql = \"\n\t\t\t\tSELECT \n\t\t\t\t\tfv.fieldID, fv.articleID, fv.value, fv.numInSet,\n\t\t\t\t\tf.name as fieldName, f.type as fieldType\n\t\t\t\tFROM \" . POLARBEAR_DB_PREFIX . \"_fields_values as fv\n\t\t\t\tINNER JOIN \" . POLARBEAR_DB_PREFIX . \"_fields as f ON f.id = fv.fieldID\n\t\t\t\tWHERE articleID = '$this->id' ORDER BY fieldID ASC, numInSet ASC\";\n\t\t\t$rows = $polarbear_db->get_results($sql);\n\t\t} else {\n\t\t\t#echo \"<br>got preload row for field, article: $this->id\";\n\t\t\t// horay! we got the field values preloaded\n\t\t\t$rows = $preloadRows;\n\t\t}\n\t\n\t\t$arrFieldValues = array();\n\t\t$arrFieldCount = array();\n\t\tif (is_array($rows)) {\n\t\t\tforeach ($rows as $oneRow) {\n\t\t\t\tif (!isset($arrFieldValues[$oneRow->fieldID])) {\n\t\t\t\t\t$arrFieldValues[$oneRow->fieldID] = array();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t\ttodo: om det är en fil/bild ska det kanske finnas\n\t\t\t\t\tlink, downloadLink, imageSrc osv.\n\t\t\t\t*/\n\t\t\t\t$arrFieldValues[$oneRow->fieldID][] = array(\n\t\t\t\t\t\"fieldID\" => $oneRow->fieldID,\n\t\t\t\t\t\"articleID\" => $oneRow->articleID,\n\t\t\t\t\t\"value\" => $oneRow->value,\n\t\t\t\t\t\"numInSet\" => $oneRow->numInSet,\n\t\t\t\t\t// and some useful \"extras\" too\n\t\t\t\t\t\"valueEscaped\" => htmlspecialchars ($oneRow->value, ENT_COMPAT, \"UTF-8\"),\n\t\t\t\t\t\"valueNoTags\" => strip_tags($oneRow->value),\n\t\t\t\t\t\"fieldName\" => $oneRow->fieldName,\n\t\t\t\t\t\"fieldType\" => $oneRow->fieldType\n\t\t\t\t);\n\t\t\t\tif (!isset($arrFieldCount[$oneRow->fieldID])) {\n\t\t\t\t\t$arrFieldCount[$oneRow->fieldID]=0;\n\t\t\t\t}\n\t\t\t\t$arrFieldCount[$oneRow->fieldID]++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// update count\n\t\tforeach ($arrFieldCount as $fieldID => $fieldCount) {\n\t\t\tfor ($i=0; $i<sizeof($arrFieldValues[$fieldID]); $i++) {\n\t\t\t\t$arrFieldValues[$fieldID][$i][\"fieldSetCount\"] = $fieldCount;\n\t\t\t}\n\t\t}\n\t\t\n\t\t#pb_pqp_log_speed(\"article fieldValues()\");\n\t\t\n\t\t$this->fieldValues = $arrFieldValues;\n\t\treturn $this->fieldValues;\n\t}", "public function getFieldValues()\n {\n if($this->isNewRecord){\n return []; //TODO: LOAD DEFAULT FIELDS OF TYPE\n }\n\n //pull meta values from DB\n $table = self::tablePrefix().'cms_post_field';\n $strSql = \"SELECT id, field_id, value \n\t\t\t\t\tFROM {$table}\n\t\t\t\t\tWHERE post_id = :pid\n\t\t\t\t \";\n $cmd = self::getDb()->createCommand($strSql);\n $cmd->bindValue(\":pid\",$this->id,\\PDO::PARAM_STR);\n $arrResults = $cmd->queryAll();\n\n return ArrayHelper::index($arrResults, 'id', 'field_id');\n }", "function create_options( $field ) {\n\t\t$field = array_merge($this->defaults, $field);\n\t\t$key = $field['name'];\n\t}", "public function _get_picker_dropdown_choices() {\n\t\t$this->load_data();\n\t\t$result = array();\n\t\tforeach ( $this->data as $unique_key => $item ) {\n\t\t\t$result[ $unique_key ] = $item['label'];\n\t\t}\n\n\t\treturn $result;\n\t}", "function MakeSelectField($name,$values,$valuenames,$selected=\"\",$disableds=array(),$titles=array(),$title=\"\",$maxlen=0,$noincludedisableds=FALSE,$multiple=FALSE,$onchange=NULL,$options=array())\n{\n return\n $this->Htmls_Select\n (\n $name,$values,$valuenames,$selected,\n array\n (\n \"Disableds\" => $disableds,\n \"Titles\" => $titles,\n \"Title\" => $title,\n \"MaxLen\" => $maxlen,\n \"ExcludeDisableds\" => $noincludedisableds,\n \"Multiple\" => $multiple,\n \"OnChange\" => $onchange,\n ),\n $options\n );\n \n /* $selectedok=FALSE; */\n\n /* $options[ \"NAME\" ]=$name; */\n /* if (!empty($onchange)) { $options[ \"ONCHANGE\" ]=$onchange; } */\n /* if (!empty($title)) { $options[ \"TITLE\" ]=$title; } */\n /* if ($multiple) { $options[ \"MULTIPLE\" ]=\"\"; } */\n\n /* $select=\"\"; */\n /* foreach ($values as $n => $value) */\n /* { */\n /* $valuename=$valuenames[$n]; */\n /* $selectopt=array(); */\n /* if ( */\n /* count($values)==1 */\n /* || */\n /* $this->TestIfSelected($value,$values,$n,$selected) */\n /* ) */\n /* { */\n /* $selectopt[ \"SELECTED\" ]=\"\"; */\n /* $selectedok=TRUE; */\n /* } */\n\n /* $class=\"\"; */\n /* $disabled=FALSE; */\n /* if ( */\n /* !empty($disableds[$n]) */\n /* || */\n /* preg_match('/^disabled$/',$values[$n])) */\n /* { */\n /* $selectopt[ \"DISABLED\" ]=\"\"; */\n /* $values[ $n]=\"\"; */\n /* $class=\"disabled\"; */\n /* $disabled=TRUE; */\n /* } */\n\n /* if (isset($titles[ $n ])) { $selectopt[ \"TITLE\" ]=$titles[ $n ]; } */\n\n /* $valuename=html_entity_decode($valuename,ENT_QUOTES,\"UTF-8\"); */\n /* if ($maxlen>0 && strlen($valuename)>$maxlen) */\n /* { */\n /* $valuename=substr($valuename,0,$maxlen); */\n /* } */\n\n /* if (!$noincludedisableds || !$disabled) */\n /* { */\n /* if (!empty($class)) */\n /* { */\n /* $selectopt[ \"CLASS\" ]=$class; */\n /* } */\n\n /* $selectopt[ \"VALUE\" ]=$values[$n]; */\n /* $select.= */\n /* \" \". */\n /* $this->HtmlTags */\n /* ( */\n /* \"OPTION\", */\n /* $valuename, */\n /* $selectopt */\n /* ).\"\\n\"; */\n\n /* if ($this->Debug>=2) */\n /* { */\n /* $select.=\" [\".$values[$n].\"]\\n\"; */\n /* } */\n /* } */\n /* } */\n\n /* $select=$this->HtmlTags(\"SELECT\",\"\\n\".$select,$options).\"\\n\"; */\n\n /* if (!$selectedok && !empty($selected) && !is_array($selected)) */\n /* { */\n /* $this->AddMsg(\"Warning MakeSelectField: $name, Value: '$selected' undefined\"); */\n /* } */\n\n /* return \"\\n\".$select; */\n}", "static function get_option_values_select_radio( $field_key ) {\n\t\tglobal $wpdb;\n\t\tif ( is_multisite() ) {\n\t\t\t$current_blog = get_current_blog_id();\n\t\t\t$sql = \"SELECT options FROM {$wpdb->base_prefix}pp_profile_fields WHERE field_key = '$field_key' AND (blog_id = 0 OR blog_id = $current_blog)\";\n\t\t}\n\t\telse {\n\t\t\t$sql = \"SELECT options FROM {$wpdb->base_prefix}pp_profile_fields WHERE field_key = '$field_key'\";\n\t\t}\n\n\t\treturn $wpdb->get_col( $sql );\n\t}", "function barnelli_wp_select( $field ) {\n\tglobal $thepostid, $post, $vision;\n\n\t$thepostid \t\t\t\t= empty( $thepostid ) ? $post->ID : $thepostid;\n\t$field['class'] \t\t= isset( $field['class'] ) ? $field['class'] : 'select short';\n\t$field['wrapper_class'] = isset( $field['wrapper_class'] ) ? $field['wrapper_class'] : '';\n\t$field['value'] \t\t= isset( $field['value'] ) ? $field['value'] : get_post_meta( $thepostid, $field['id'], true );\n\n\techo '<p class=\"form-field ' . esc_attr( $field['id'] ) . '_field ' . esc_attr( $field['wrapper_class'] ) . '\"><label for=\"' . esc_attr( $field['id'] ) . '\">' . wp_kses_post( $field['label'] ) . '</label><select id=\"' . esc_attr( $field['id'] ) . '\" name=\"' . esc_attr( $field['id'] ) . '\" class=\"' . esc_attr( $field['class'] ) . '\">';\n\n\tforeach ( $field['options'] as $key => $value ) {\n\n\t\techo '<option value=\"' . esc_attr( $key ) . '\" ' . selected( esc_attr( $field['value'] ), esc_attr( $key ), false ) . '>' . esc_html( $value ) . '</option>';\n\n\t}\n\n\techo '</select> ';\n\n\tif ( ! empty( $field['description'] ) ) {\n\n\t\tif ( isset( $field['desc_tip'] ) ) {\n\t\t\techo '<img class=\"help_tip\" data-tip=\"' . esc_attr( $field['description'] ) . '\" src=\"' . $vision->plugin_url() . '/assets/images/help.png\" height=\"16\" width=\"16\" />';\n\t\t} else {\n\t\t\techo '<span class=\"description\">' . wp_kses_post( $field['description'] ) . '</span>';\n\t\t}\n\n\t}\n\techo '</p>';\n}", "function listField($label, $name, $formName, $array){\n \n echo ucwords($label) . \"&nbsp\"; \n \n $size = count($array);\n \n $list = '<select name=\"';\n $list .= $name;\n $list .= '\" form=\"';\n $list .= $formName;\n $list .= '\">';\n \n echo $list;\n \n $i = 0;\n \n for ($i; $i < $size; $i++)\n {\n $option = '<option value=\"';\n $option .= $array[$i];\n $option .= '\">';\n $option .= $array[$i];\n $option .= '</option>';\n \n echo $option;\n }\n \n echo '</select><br>';\n \n\n // <select name=\"company\" form=\"userInput\">\n // <option value=\"Not Applicable\">Not Applicable</option>\n // </select>\n \n}", "function my_epl_add_single_bedrooms_search_dropdown_field($fields) {\n\tforeach($fields as $field_key => &$field) {\n\t if( in_array($field['meta_key'], array('property_bedrooms_min','property_bedrooms_max') ) ) {\n\t\t\tunset($fields[$field_key]);\n\t }\n\t}\n\t$fields[] =array(\n\t\t'key'\t\t\t=>\t'search_bed',\n\t\t//'multiple'\t\t=>\ttrue,\n\t\t'meta_key'\t\t=>\t'property_bedrooms',\n\t\t'label'\t\t\t=>\t__('Bedrooms','epl'),\n\t\t'type'\t\t\t=>\t'select',\n\t\t'option_filter'\t\t=>\t'property_bedrooms',\n\t\t'options'\t\t=>\tarray(\n\t\t\t\t\t\t\t'studio'\t=> 'Studio',\n\t\t\t\t\t\t\t'1'\t\t=> '1',\n\t\t\t\t\t\t\t'2'\t\t=> '2',\n\t\t\t\t\t\t\t'3'\t\t=> '3',\n\t\t\t\t\t\t\t'4'\t\t=> '4',\n\t\t\t\t\t\t\t'5'\t\t=> '5',\n\t\t),\n\t\t'option_type' => 'range', // provide range of option instead of option array\n\t\t'query'\t\t\t=>\tarray(\n\t\t\t\t\t\t\t'query'\t\t=>\t'meta',\n\t\t\t\t\t\t\t'compare'\t=>\t'EQUALS',\n\t\t\t\t\t\t\t'type'\t\t=>\t'numeric'\n\t\t),\n\t\t'class'\t\t\t=>\t'epl-search-row-full',\n\t\t'order'\t\t\t=> 160\n\t);\n\treturn $fields;\n}", "function get_field_list()\r\n\t{\r\n\t\t$fields = array();\r\n\r\n\t\tif (Authority::can('edit', 'admin/item/definition'))\r\n\t\t{\r\n\t\t\t$id_definition = $this->input->post('id_item_definition');\r\n\r\n\t\t\t$fields = $this->extend_field_model->get_lang_list(\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'parent' => 'item',\r\n\t\t\t\t\t'id_parent' => $id_definition\r\n\t\t\t\t),\r\n\t\t\t\tSettings::get_lang('default')\r\n\t\t\t);\r\n\r\n\t\t\t// Set type names\r\n\t\t\tforeach($fields as &$field)\r\n\t\t\t{\r\n\t\t\t\t$field['type_name'] = self::$_TYPE_NAMES[$field['type']];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//\r\n\t\t$this->template['id_item_definition'] = $id_definition;\r\n\t\t$this->template['fields'] = $fields;\r\n\r\n\t\t$this->output('item/definition/fields');\r\n\t}", "function create_options($field)\n\t{\n\t\t// defaults?\n\t\t$field = array_merge($this->defaults, $field);\n\n\t\t// key is needed in the field names to correctly save the data\n\t\t$key = $field['name'];\n\n\n\t\t// Create Field Options HTML\n\t\t?>\n\t\t<tr class=\"field_option field_option_<?php echo $this->name; ?>\">\n\t\t\t<td class=\"label\">\n\t\t\t\t<label><?php _e(\"Default Icon\", 'acf'); ?></label>\n\t\t\t</td>\n\t\t\t<td>\n\t\t\t\t<div class=\"fa-field-wrapper\">\n\t\t\t\t\t<div class=\"fa-live-preview\"></div>\n\t\t\t\t\t<?php\n\n\t\t\t\t\tdo_action('acf/create_field', array(\n\t\t\t\t\t\t'type' => 'select',\n\t\t\t\t\t\t'name' => 'fields[' . $key . '][default_value]',\n\t\t\t\t\t\t'value' => $field['default_value'],\n\t\t\t\t\t\t'class'\t => 'fontawesome',\n\t\t\t\t\t\t'choices' => array_merge( array( 'null' => __(\"Select\",'acf') ), $field['choices'] )\n\t\t\t\t\t));\n\n\t\t\t\t\t?>\n\t\t\t\t</div>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr class=\"field_option field_option_<?php echo $this->name; ?>\">\n\t\t\t<td class=\"label\">\n\t\t\t\t<label><?php _e(\"Return Value\",'acf'); ?></label>\n\t\t\t\t<p class=\"description\"><?php _e(\"Specify the returned value on front end\", 'acf'); ?></p>\n\t\t\t</td>\n\t\t\t<td>\n\t\t\t\t<?php \n\t\t\t\tdo_action('acf/create_field', array(\n\t\t\t\t\t'type'\t=>\t'radio',\n\t\t\t\t\t'name'\t=>\t'fields['.$key.'][save_format]',\n\t\t\t\t\t'value'\t=>\t$field['save_format'],\n\t\t\t\t\t'choices'\t=>\tarray(\n\t\t\t\t\t\t'element'\t=>\t__(\"Icon Element\",'acf'),\n\t\t\t\t\t\t'class'\t\t=>\t__(\"Icon Class\",'acf'),\n\t\t\t\t\t\t'unicode'\t=>\t__(\"Icon Unicode\",'acf'),\n\t\t\t\t\t\t'object'\t=>\t__(\"Icon Object\",'acf'),\n\t\t\t\t\t),\n\t\t\t\t\t'layout'\t=>\t'horizontal',\n\t\t\t\t));\n\t\t\t\t?>\n\t\t\t</td>\n\t\t</tr>\n\n\t\t<tr class=\"field_option field_option_<?php echo $this->name; ?>\">\n\t\t\t<td class=\"label\">\n\t\t\t\t<label><?php _e(\"Allow Null?\",'acf'); ?></label>\n\t\t\t</td>\n\t\t\t<td>\n\t\t\t\t<?php \n\t\t\t\tdo_action('acf/create_field', array(\n\t\t\t\t\t'type'\t=>\t'radio',\n\t\t\t\t\t'name'\t=>\t'fields['.$key.'][allow_null]',\n\t\t\t\t\t'value'\t=>\t$field['allow_null'],\n\t\t\t\t\t'choices'\t=>\tarray(\n\t\t\t\t\t\t1\t=>\t__(\"Yes\",'acf'),\n\t\t\t\t\t\t0\t=>\t__(\"No\",'acf'),\n\t\t\t\t\t),\n\t\t\t\t\t'layout'\t=>\t'horizontal',\n\t\t\t\t));\n\t\t\t\t?>\n\t\t\t</td>\n\t\t</tr>\n\n\t\t<tr class=\"field_option field_option_<?php echo $this->name; ?>\">\n\t\t\t<td class=\"label\">\n\t\t\t\t<label><?php _e(\"Enqueue FontAwesome?\",'acf'); ?></label>\n\t\t\t\t<p class=\"description\"><?php _e(\"Set to 'Yes' to enqueue FA in the footer on any pages using this field.\", 'acf'); ?></p>\n\t\t\t</td>\n\t\t\t<td>\n\t\t\t\t<?php \n\t\t\t\tdo_action('acf/create_field', array(\n\t\t\t\t\t'type'\t=>\t'radio',\n\t\t\t\t\t'name'\t=>\t'fields['.$key.'][enqueue_fa]',\n\t\t\t\t\t'value'\t=>\t$field['enqueue_fa'],\n\t\t\t\t\t'choices'\t=>\tarray(\n\t\t\t\t\t\t1\t=>\t__(\"Yes\",'acf'),\n\t\t\t\t\t\t0\t=>\t__(\"No\",'acf'),\n\t\t\t\t\t),\n\t\t\t\t\t'layout'\t=>\t'horizontal',\n\t\t\t\t));\n\t\t\t\t?>\n\t\t\t</td>\n\t\t</tr>\n\t\t<?php\n\n\t}", "private function getOptionValue($form_field_list, $field_name, $option_value){\r\n \t\t\r\n \t\tforeach ($form_field_list as $form_row){\r\n \t\t\t\r\n \t\t\tif ($form_row['name'] == $field_name){\r\n \t\t\t\t\r\n \t\t\t\t$options = explode('::', $form_row['options']);\r\n \t\t\t\tarray_unshift($options, 0);\r\n \t\t\t\tunset($options[0]);\r\n \t\t\t\t\r\n \t\t\t\tif (@$options[$option_value])\r\n \t\t\t\t\treturn $options[$option_value];\r\n \t\t\t}\r\n \t\t\t\r\n \t\t} // foreach ($form_field_list as $form_row){\r\n \t\t\r\n \t}", "function custom_field_tag($name, $custom_value) {\t\n $custom_field = $custom_value['CustomField'];\n $field_name = 'custom_field_values.'.$custom_value['CustomField']['id'];\n\n switch($custom_field['field_format']) {\n case \"date\" :\n $out = $this->Form->input($field_name, array('type'=>'text', 'size'=>10, 'label'=>false, 'div'=>false)); \n // TODO : calender \n // $out .= calendar_for(field_id)\n break;\n case \"text\" :\n $out = $this->Form->input($field_name, array('type'=>'textarea', 'rows'=>3, 'style'=> 'width:90%', 'label'=>false, 'div'=>false ));\n break;\n case \"bool\" :\n $out = $this->Form->input($field_name, array('type'=>'checkbox', 'label'=>false, 'div'=>false));\n break;\n case \"list\" :\n $empty = true;\n $selected = null;\n $type = 'select';\n if($custom_field['is_required']) {\n $empty = false;\n if(empty($custom_field['default_value'])) {\n $options[] = '--- '.__('Please Select').' ---';\n } elseif(empty($this->request->data['custom_field_values'][$custom_value['CustomField']['id']])) {\n $selected = $custom_field['default_value'];\n }\n }\n App::Import('vendor', 'georgious-cakephp-yaml-migrations-and-fixtures/spyc/spyc');\n $list = Spyc::YAMLLoad($custom_value['CustomField']['possible_values']);\n $options = array();\n if(!empty($list)) {\n foreach($list as $item) {\n $options[$item] = $item;\n }\n }\n \n $out = $this->Form->input($field_name, array_merge(compact('type', 'empty', 'selected', 'options'), array('label'=>false, 'div'=>false)));\n break;\n default :\n $out = $this->Form->input($field_name, array('type'=>'text', 'label'=>false, 'div'=>false));\n break;\n }\n return $out;\n }", "public function getPicklistValues()\n\t{\n\t\t$taxes = Vtiger_Inventory_Model::getGlobalTaxes();\n\t\tforeach ($taxes as $key => $tax) {\n\t\t\t$taxes[$key] = $tax['name'] . ' - ' . App\\Fields\\Double::formatToDisplay($tax['value']) . '%';\n\t\t}\n\t\treturn $taxes;\n\t}", "public function getFieldsForFilter()\n {\n $options = [];\n foreach ($this->getFieldsForExport() as $field) {\n $options[] = [\n 'label' => $field,\n 'value' => $field\n ];\n }\n return [$this->getEntityTypeCode() => $options];\n }", "public function getFieldsForFilter()\n {\n $options = [];\n foreach ($this->getFieldsForExport() as $field) {\n $options[] = [\n 'label' => $field,\n 'value' => $field\n ];\n }\n return [$this->getEntityTypeCode() => $options];\n }", "function init_extra_fields() {\n $temp = $this->uc->CallMethod('PickupLocations', array(), 'GET', $this->token);\n $pickups = array();\n if (is_array($temp)) {\n foreach ($temp as $t) {\n $pickups[$t['LocationId']] = $t['Name'];\n }\n }\n\n // obtine lista planurilor tarifare\n $temp = $this->uc->CallMethod('PriceTables', array(), 'GET', $this->token);\n\n $prices = array();\n if (is_array($temp)) {\n foreach ($temp as $t) {\n $prices[$t['PriceTableId']] = empty($t['Name']) ? $t['PriceTableId'] : $t['Name'];\n }\n }\n\n $this->form_fields += array(\n 'pickup' => array(\n 'title' => __('Punct de ridicare', 'urgentcargus'),\n 'type' => 'select',\n 'class' => 'select_height',\n 'options' => array(null => 'Alege punctul de ridicare') + $pickups\n ),\n 'priceplan' => array(\n 'title' => __('Plan tarifar', 'urgentcargus'),\n 'type' => 'select',\n 'class' => 'select_height',\n 'options' => array(null => 'Alege planul tarifar') + $prices\n ),\n 'insurance' => array(\n 'title' => __('', 'urgentcargus'),\n 'label' => __('Asigurare', 'urgentcargus'),\n 'type' => 'checkbox',\n 'default' => 'no'\n ),\n 'saturday' => array(\n 'title' => __('', 'urgentcargus'),\n 'label' => __('Livrare sambata', 'urgentcargus'),\n 'type' => 'checkbox',\n 'default' => 'no'\n ),\n 'morning' => array(\n 'title' => __('', 'urgentcargus'),\n 'label' => __('Livrare dimineata', 'urgentcargus'),\n 'type' => 'checkbox',\n 'default' => 'no'\n ),\n 'open' => array(\n 'title' => __('', 'urgentcargus'),\n 'label' => __('Deschidere colet', 'urgentcargus'),\n 'type' => 'checkbox',\n 'default' => 'no'\n ),\n 'repayment' => array(\n 'title' => __('Incasare ramburs', 'urgentcargus'),\n 'type' => 'select',\n 'class' => 'select_height',\n 'options' => array(\n 'cash' => 'Numerar',\n 'bank' => 'Transfer bancar'\n )\n ),\n 'payer' => array(\n 'title' => __('Platitor expeditie', 'urgentcargus'),\n 'type' => 'select',\n 'class' => 'select_height',\n 'options' => array(\n 'sender' => 'Expeditor',\n 'recipient' => 'Destinatar'\n )\n ),\n 'type' => array(\n 'title' => __('Tip expeditie', 'urgentcargus'),\n 'type' => 'select',\n 'class' => 'select_height',\n 'options' => array(\n 'parcel' => 'Colet',\n 'envelope' => 'Plic'\n )\n ),\n 'free' => array(\n 'title' => __('Plafon transport gratuit', 'urgentcargus'),\n 'type' => 'text',\n ),\n 'fixed' => array(\n 'title' => __('Cost fix transport', 'urgentcargus'),\n 'type' => 'text',\n ),\n 'height' => array(\n 'title' => __('Inaltime', 'urgentcargus'),\n 'type' => 'number',\n ),\n 'width' => array(\n 'title' => __('Latime', 'urgentcargus'),\n 'type' => 'number',\n ),\n 'length' => array(\n 'title' => __('Lungime', 'urgentcargus'),\n 'type' => 'number',\n ),\n 'service' => array(\n 'title' => __('Serviciu', 'urgentcargus'),\n 'type' => 'select',\n 'class' => 'select_height',\n 'options' => array(\n 0 => 'Inactiv',\n 1 => 'Activ'\n )\n ),\n );\n }", "public function fields()\n {\n $statuses = \\App\\Status::all()->pluck('name','id');\n return [\n Select::make('Status','id')->options($statuses)\n ];\n }", "function wppb_multiple_select_handler( $output, $form_location, $field, $user_id, $field_check_errors, $request_data ){\r\n\tif ( $field['field'] == 'Select (Multiple)' ){\r\n\t\t$item_title = apply_filters( 'wppb_'.$form_location.'_multiple_select_custom_field_'.$field['id'].'_item_title', wppb_icl_t( 'plugin profile-builder-pro', 'custom_field_'.$field['id'].'_title_translation', $field['field-title'] ) );\r\n\t\t$item_description = wppb_icl_t( 'plugin profile-builder-pro', 'custom_field_'.$field['id'].'_description_translation', $field['description'] );\r\n\t\t$item_option_labels = wppb_icl_t( 'plugin profile-builder-pro', 'custom_field_'.$field['id'].'_option_labels_translation', $field['labels'] );\r\n\r\n\t\t$select_labels = explode( ',', $item_option_labels );\r\n\t\t$select_values = explode( ',', $field['options'] );\r\n\r\n\t\t$extra_attr = apply_filters( 'wppb_extra_attribute', '', $field, $form_location );\r\n\r\n if( $form_location != 'register' )\r\n\t\t $input_value = ( ( wppb_user_meta_exists ( $user_id, $field['meta-name'] ) != null ) ? array_map( 'trim', explode( ',', get_user_meta( $user_id, $field['meta-name'], true ) ) ) : array_map( 'trim', explode( ',', $field['default-options'] ) ) );\r\n\t\telse\r\n $input_value = ( isset( $field['default-options'] ) ? array_map( 'trim', explode( ',', $field['default-options'] ) ) : array() );\r\n\r\n $input_value = ( isset( $request_data[wppb_handle_meta_name( $field['meta-name'] )] ) ? array_map( 'trim', $request_data[wppb_handle_meta_name( $field['meta-name'] )] ) : $input_value );\r\n\r\n\t\tif ( $form_location != 'back_end' ){\r\n\t\t\t$error_mark = ( ( $field['required'] == 'Yes' ) ? '<span class=\"wppb-required\" title=\"'.wppb_required_field_error($field[\"field-title\"]).'\">*</span>' : '' );\r\n\t\t\t\t\t\t\r\n\t\t\tif ( array_key_exists( $field['id'], $field_check_errors ) )\r\n\t\t\t\t$error_mark = '<img src=\"'.WPPB_PLUGIN_URL.'assets/images/pencil_delete.png\" title=\"'.wppb_required_field_error($field[\"field-title\"]).'\"/>';\r\n\r\n\t\t\t$output = '\r\n\t\t\t\t<label for=\"'.$field['meta-name'].'\">'.$item_title.$error_mark.'</label>\r\n\t\t\t\t<select name=\"'.$field['meta-name'].'[]\" id=\"'.$field['meta-name'].'\" size=\"'.( count( $select_values ) > 10 ? count( $select_values ) / 2 : count( $select_values ) ).'\" class=\"custom_field_multiple_select '. apply_filters( 'wppb_fields_extra_css_class', '', $field ) .'\" multiple=\"multiple\" '. $extra_attr .'>';\r\n\r\n\t\t\t\tforeach( $select_values as $key => $value){\r\n\t\t\t\t\t$output .= '<option value=\"'.trim( $value ).'\" class=\"custom_field_multiple_select_option\" name=\"'.trim( $value ).'_'.$field['id'].'\" id=\"'.trim( $value ).'_'.$field['id'].'\"';\r\n\t\t\t\t\t\r\n\t\t\t\t\tif ( in_array( trim( $value ), $input_value ) )\r\n\t\t\t\t\t\t$output .= ' selected';\r\n\r\n\t\t\t\t\t$output .= '>'.( ( !isset( $select_labels[$key] ) || !$select_labels[$key] ) ? trim( $select_values[$key] ) : trim( $select_labels[$key] ) ).'</option>';\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$output .= '\r\n\t\t\t\t</select>';\r\n if( !empty( $item_description ) )\r\n $output .= '<span class=\"wppb-description-delimiter\">'.$item_description.'</span>';\r\n\r\n\t\t}else{\r\n $item_title = ( ( $field['required'] == 'Yes' ) ? $item_title .' <span class=\"description\">('. __( 'required', 'profile-builder' ) .')</span>' : $item_title );\r\n\t\t\t$output = '\r\n\t\t\t\t<table class=\"form-table\">\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<th><label for=\"'.$field['meta-name'].'\">'.$item_title.'</label></th>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<select name=\"'.$field['meta-name'].'[]\" class=\"custom_field_multiple_select\" id=\"'.$field['meta-name'].'\" multiple=\"multiple\" '. $extra_attr .'>';\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tforeach( $select_values as $key => $value){\r\n\t\t\t\t\t\t\t\t$output .= '<option value=\"'.trim( $value ).'\" size=\"'.( count( $select_values ) > 10 ? count( $select_values ) / 2 : count( $select_values ) ).'\" class=\"custom_field_multiple_select_option\" id=\"'.trim( $value ).'_'.$field['id'].'\"';\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif ( in_array( trim( $value ), $input_value ) )\r\n\t\t\t\t\t\t\t\t\t$output .= ' selected';\r\n\r\n\t\t\t\t\t\t\t\t$output .= '>'.( ( !isset( $select_labels[$key] ) || !$select_labels[$key] ) ? trim( $select_values[$key] ) : trim( $select_labels[$key] ) ).'</option>';\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$output .= '</select>\r\n\t\t\t\t\t\t\t<span class=\"description\">'.$item_description.'</span>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</table>';\r\n\t\t}\r\n\t\t\t\r\n\t\treturn apply_filters( 'wppb_'.$form_location.'_multiple_select_custom_field_'.$field['id'], $output, $form_location, $field, $user_id, $field_check_errors, $request_data, $input_value );\r\n\t}\r\n}", "public function getFrontendFields();", "protected function buildFieldsList()\n {\n if (empty($this->selectFieldsList)) {\n return \"*\";\n }\n\n return join(\", \", $this->selectFieldsList);\n }", "function options( $field_name, $options ) {\n// could test to see if this is an array here, warn if not?\n\t\n\t$this->fields[$field_name]['options'] = $options;\n\t\n\t//$this->debug( \"Fieldx Value\", $this->fields[$field_name]['value'] );\n}", "private function build_select_field($_meta, $_ptype = \"wccpf\", $_class = \"\", $_index, $_show_as_value = \"no\", $_readonly = \"\", $_cloneable = \"\", $_wrapper = true, $_has_pricing_rules = \"no\") {\r\n $html = ''; \r\n $has_field_rules = isset( $_meta[\"field_rules\"] ) && is_array( $_meta[\"field_rules\"] ) && count( $_meta[\"field_rules\"] ) != 0 ? \"yes\" : \"no\";\r\n if ($_show_as_value == \"no\") {\r\n $html = '<select data-has_field_rules=\"'.$has_field_rules.'\" data-has_pricing_rules=\"'.$_has_pricing_rules.'\" data-fkey=\"'. $_meta[\"key\"] .'\" class=\"' . $_ptype . '-field ' . $_class . '\" name=\"' . esc_attr($_meta[\"key\"] . $_index) . '\" data-field-type=\"'. $_meta[\"type\"] .'\" ' . $_ptype . '-pattern=\"mandatory\" ' . $_ptype . '-mandatory=\"' . $_meta[\"required\"] . '\" ' . $_cloneable . ' ' . $_readonly . ' >';\r\n \r\n $choices = explode(\";\", ((isset($_meta[\"choices\"]) && ! empty($_meta[\"choices\"])) ? $_meta[\"choices\"] : \"\"));\r\n $_meta[\"default_value\"] = (isset($_meta[\"default_value\"]) && ! empty($_meta[\"default_value\"])) ? trim($_meta[\"default_value\"]) : \"\";\r\n \r\n /* Placeholder option */\r\n if (isset($_meta[\"placeholder\"]) && !empty($_meta[\"placeholder\"])) {\r\n $html .= '<option value=\"wccpf_none\">' . esc_html($_meta[\"placeholder\"]) . '</option>';\r\n }\r\n $choices = apply_filters( \"wcff_select_option_before_rendering\", $choices, $_meta[\"key\"] );\r\n foreach ($choices as $choice) {\r\n $attr = '';\r\n $key_val = explode(\"|\", $choice);\r\n /* It has to be two items ( Value => Label ), otherwise don't proceed */\r\n if (count($key_val) == 2) {\r\n if ($_ptype != \"wccaf\") {\r\n /* Since version 2.0.0 - Default value will be absolute value, not as key|val pair */\r\n if (strpos($_meta[\"default_value\"], \"|\") !== false) {\r\n /* Compatibility for <= V 1.4.0 */\r\n if ($choice == $_meta[\"default_value\"]) {\r\n $attr = 'selected';\r\n }\r\n } else {\r\n /*\r\n * For product fields from V 2.0.0\r\n * For admin fields, which will be displyed as Product Fields\r\n */\r\n if (trim($key_val[0]) == $_meta[\"default_value\"]) {\r\n $attr = 'selected';\r\n }\r\n }\r\n } else {\r\n if ($key_val[0] == $_meta[\"value\"]) {\r\n $attr = 'selected';\r\n }\r\n }\r\n $html .= '<option value=\"' . esc_attr(trim($key_val[0])) . '\" ' . $attr . '>' . esc_html(trim($key_val[1])) . '</option>';\r\n }\r\n }\r\n $html .= '</select>';\r\n } else {\r\n /*\r\n * Show the raw value instead of as a field\r\n * Used for the Admin Field showing on product page\r\n */\r\n $html = '<p class=\"wcff-wccaf-value-para-tag\">' . $_meta[\"default_value\"] . '</p>';\r\n }\r\n /* Add wrapper around the field, based on the user options */\r\n if ($_wrapper) {\r\n $html = $this->built_field_wrapper($html, $_meta, $_ptype, $_index);\r\n }\r\n return $html;\r\n }", "function FillDynamicCombo($query,$datafield,$textfield,$selectvalue) {\n\n\t $model=new Model;\n\t\t$rs =$model->find_query_all($query);\n\t\t$i=1;\n\t\t$selectvalue1=\"\";\n if(count($rs)>0){\n\t\tforeach($rs as $row){\n\t\t if($i==1)\n\t\t $selectvalue1=$row->$datafield;\n\t\t \n\t\t if($selectvalue==$row->$datafield){\n\t\t\t echo\"<option value='\".$row->$datafield.\"' selected>\".$row->$textfield.\"</option>\";\n\t\t\t $selectvalue1=$selectvalue;\n\t\t\t}\n\t\t else {\n\t\t\techo\"<option value='\".$row->$datafield.\"'>\".$row->$textfield.\"</option>\";\n\t\t }\n\t\t $i++;\n\t\t }\n\t\t}\n\t\t return $selectvalue1;\n\t}", "public static function fieldDetails($field = null)\n {\n $_items = array(\n 'id' => array(\n 'name' => 'id',\n 'label' => 'ID',\n 'controlType' => 'text',\n 'type' => 'numeric',\n 'primary' => true,\n 'editable' => false,\n 'hidden' => false,\n ),\n 'event_id' => array(\n 'name' => 'event_id',\n 'label' => 'Event ID',\n 'controlType' => 'text',\n 'type' => 'numeric',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'event_start' => array(\n 'name' => 'event_start',\n 'label' => 'Event Start',\n 'controlType' => 'datetime',\n 'type' => 'datetime',\n 'format' => 'yyyy-mm-dd hh:ii',\n 'viewformat' => 'mm/dd/yyyy HH:ii P',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'arena' => array(\n 'name' => 'arena',\n 'label' => 'Arena',\n 'controlType' => 'text',\n 'type' => 'alpha',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'arena_id' => array(\n 'name' => 'arena_id',\n 'label' => 'Arena ID',\n 'controlType' => 'text',\n 'type' => 'numeric',\n 'editable' => false,\n 'hidden' => true,\n ),\n 'location' => array(\n 'name' => 'location',\n 'label' => 'Location',\n 'controlType' => 'text',\n 'type' => 'alpha',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'location_id' => array(\n 'name' => 'location_id',\n 'label' => 'Location ID',\n 'controlType' => 'text',\n 'type' => 'numeric',\n 'editable' => false,\n 'hidden' => true,\n ),\n 'created_on' => array(\n 'name' => 'created_on',\n 'label' => 'Requested On',\n 'controlType' => 'datetime',\n 'type' => 'datetime',\n 'format' => 'yyyy-mm-dd hh:ii',\n 'viewformat' => 'mm/dd/yyyy HH:ii P',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'requester_id' => array(\n 'name' => 'requester_id',\n 'label' => 'Requested By',\n 'controlType' => 'select',\n 'type' => 'alpha',\n 'editable' => false,\n 'hidden' => true,\n ),\n 'requester_name' => array(\n 'name' => 'requester_name',\n 'label' => 'Requested By',\n 'controlType' => 'text',\n 'type' => 'alpha',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'requester_email' => array(\n 'name' => 'requester_email',\n 'label' => 'Requester E-mail',\n 'controlType' => 'text',\n 'type' => 'alpha',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'requester_phone' => array(\n 'name' => 'requester_phone',\n 'label' => 'Requester Phone',\n 'controlType' => 'text',\n 'type' => 'alpha',\n 'editable' => false,\n 'hidden' => false,\n 'inputmask' => array(\n 'mask' => '(999) 999-9999'\n )\n ),\n 'acknowledger' => array(\n 'name' => 'acknowledger',\n 'label' => 'Acknowledged By',\n 'controlType' => 'text',\n 'type' => 'alpha',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'acknowledged_on' => array(\n 'name' => 'acknowledged_on',\n 'label' => 'Acknowledged On',\n 'controlType' => 'datetime',\n 'type' => 'datetime',\n 'format' => 'yyyy-mm-dd hh:ii',\n 'viewformat' => 'mm/dd/yyyy HH:ii P',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'accepter' => array(\n 'name' => 'accepter',\n 'label' => 'Accepted By',\n 'controlType' => 'text',\n 'type' => 'alpha',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'accepted_on' => array(\n 'name' => 'accepted_on',\n 'label' => 'Accepted On',\n 'controlType' => 'datetime',\n 'type' => 'datetime',\n 'format' => 'yyyy-mm-dd hh:ii',\n 'viewformat' => 'mm/dd/yyyy HH:ii P',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'rejector' => array(\n 'name' => 'rejector',\n 'label' => 'Rejected By',\n 'controlType' => 'text',\n 'type' => 'alpha',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'rejected_on' => array(\n 'name' => 'rejected_on',\n 'label' => 'Rejected On',\n 'controlType' => 'datetime',\n 'type' => 'datetime',\n 'format' => 'yyyy-mm-dd hh:ii',\n 'viewformat' => 'mm/dd/yyyy HH:ii P',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'rejected_reason' => array(\n 'name' => 'rejected_reason',\n 'label' => 'Rejection Reason',\n 'controlType' => 'textarea',\n 'type' => 'alpha',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'notes' => array(\n 'name' => 'notes',\n 'label' => 'Notes',\n 'controlType' => 'textarea',\n 'type' => 'alpha',\n 'editable' => true,\n 'hidden' => false,\n ),\n 'type_id' => array(\n 'name' => 'type_id',\n 'label' => 'Type',\n 'controlType' => 'select',\n 'type' => 'numeric',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'status_id' => array(\n 'name' => 'status_id',\n 'label' => 'Status',\n 'controlType' => 'select',\n 'type' => 'numeric',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'event_type_id' => array(\n 'name' => 'event_type_id',\n 'label' => 'Event Type',\n 'controlType' => 'select',\n 'type' => 'numeric',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'event_status_id' => array(\n 'name' => 'event_status_id',\n 'label' => 'Event Status',\n 'controlType' => 'select',\n 'type' => 'alpha',\n 'editable' => false,\n 'hidden' => false,\n ),\n );\n \n if(isset($field)) {\n return isset($_items[$field]) ? $_items[$field] : false;\n } else {\n return $_items;\n }\n }", "public function get_fields() {\n\t\treturn apply_filters( 'wpcd_get_custom_fields', $this->custom_fields );\n\t}", "function FieldNameList ( ) { return $this->_FieldNameList; }", "function load_field( $field ) {\n\t\t\n\t\t// min/max\n\t\t$field['min'] = (int) $field['min'];\n\t\t$field['max'] = (int) $field['max'];\n\t\t\n\t\t\n\t\t// vars\n\t\t$sub_fields = acf_get_fields( $field );\n\t\t\n\t\t\n\t\t// append\n\t\tif( $sub_fields ) {\n\t\t\t\n\t\t\t$field['sub_fields'] = $sub_fields;\n\t\t\t\n\t\t}\n\t\t\t\t\n\t\t\n\t\t// return\n\t\treturn $field;\n\t\t\n\t}", "public function customFieldValues()\n {\n return $this->morphMany(\\VentureDrake\\LaravelCrm\\Models\\FieldValue::class, 'custom_field_valueable');\n }", "function _getFieldLabels($fieldName,$fieldOptions){\n\n\t\t$fieldOptions= \"'\".implode(\"','\",$fieldOptions).\"'\";\n\t\t$SQLquery = \"SELECT `\"\n\t\t\t\t\t.$this->labelValues[$fieldName]['tableKey'].\"` AS pkey\".\n\t\t\t\t\t\", `\"\n\t\t\t\t\t.$this->labelValues[$fieldName]['tableValue'].\"` AS value \".\n\t\t\t\t\t\"FROM `\"\n\t\t\t\t\t.$this->labelValues[$fieldName]['tableName'].\"` \".\n\t\t\t\t\t\"WHERE `\".$this->labelValues[$fieldName]['tableKey'].\"` IN(\".$fieldOptions.\")\";\n\n\t\t$retrievedData = $this->db->execute($SQLquery);\n\t\tif($this->db->error != \"\"){\n\t\t\techo \"ERROR: Unable to retrieve field labels from '\".$this->labelValues[$fieldName]['tableName'].\"'.\".($this->db_errors?\"<br/>\".$this->db->error:\"\");\n\t\t\treturn false;\n\t\t}\n\n\t\tforeach($retrievedData as $set){\n\n\t\t\t$this->labelValues[$fieldName][$set['pkey']] = $set['value'];\n\n\t\t}\n\n\t}", "function get_fields( ) {\n\t\treturn $this->fields_list;\n\t\t}", "public function create_field( $field ) {\n\t\n\t\tglobal $wpdb;\n\t\t\n\t\t\n\t\t\n\t\t$tmp = explode( '_', $_POST['option_name'] );\n\t\t$job_user_meta = get_user_meta( $tmp[1], 'job_role' );\n\t\t$job_user_meta = is_array( $job_user_meta[0] ) ? $job_user_meta[0] : unserialize( $job_user_meta[0] );\n\t\t$post_ids = array();\n \t\t\n\t\t$user_meta = get_user_meta( $tmp[1], $field['_name'] );\n\t\t$arr = '[';\n\t\tif( !empty( $field ) ) {\n\t\t\t$post_ids = is_array( $user_meta[0] ) ? $user_meta[0] : unserialize( $user_meta[0] );\n \t\t\tif( !empty( $post_ids )) {\n\t\t\t\tforeach( $post_ids as $id ) { \n\t\t\t\t\t$post_title = get_the_title( $id );\n \t\t\t\t\t$arr .= '{\\\"value\\\":\\\"' . $id . '\\\",\\\"name\\\":\\\"' . $post_title . '\\\",\\\"job_role\\\":\\\"' . $job_user_meta[$id] . '\\\"},';\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t\t$arr = trim( $arr, ',' );\n\t\t$arr .= ']';\n\t\t\n\t\t\n\t\t$args = array(\n\t\t\t'posts_per_page' => -1,\n\t\t\t'orderby' => 'post_date',\n\t\t\t'order' => 'DESC',\n\t\t\t'post_type' => 'companies',\n\t\t\t'post_status' => 'publish'\n\t\t);\n\t\t\n\t\t$companies = get_posts( $args );\n\t\t\n\t\t$i = 0;\n\t\tforeach( $companies as $company ) {\n\t\t\t$list[$i]['value'] = $company->ID;\n\t\t\t$list[$i]['name'] = $company->post_title;\n\t\t\t$list[$i]['job_role'] = '';\n\t\t\t$i++;\n\t\t}\n\t\t$list = json_encode( $list );\n\t\t\n\t\techo '<link rel=\"stylesheet\" type=\"text/css\" href=\"' . plugins_url() . '/custom-autosuggest-metabox/css/token-input.css?time=' . strtotime( date( \"Y-m-d H:i:s\" )) . '\" />\n\t\t\t<script type=\"text/javascript\" src=\"' . plugins_url() . '/custom-autosuggest-metabox/js/jquery.tokeninput.js?time=' . strtotime( date( \"Y-m-d H:i:s\" )) . '\"></script>';\n\n\t\t\n\t\t$htmlTxt = '<input type=\"text\" id=\"inputs\" placeholder=\"Search here for a company name\" name=\"inputs\" style=\"width:100%\" />\\<input type=\"hidden\" name=\"' . $field['_name'] . '\" value=\"1\" /><input type=\"hidden\" name=\"field_name\" value=\"' . $field['_name'] . '\" /><input type=\"hidden\" name=\"field_key\" value=\"' . $field['key'] . '\" />';\n\t\t\t\t\n\t\techo '<div id=\"outter-box-autosuggest\">\n\t\t\t\t\t\t<input type=\"text\" id=\"inputs\" name=\"inputs\" placeholder=\"Search here for a company name\" style=\"width:100%\" />\n\t\t\t\t\t\t<input type=\"hidden\" name=\"' . $field['_name'] . '\" value=\"1\" />\n\t\t\t\t\t\t<input type=\"hidden\" name=\"field_name\" value=\"' . $field['_name'] . '\" />\n\t\t\t\t\t\t<input type=\"hidden\" name=\"field_key\" value=\"' . $field['key'] . '\" />\n\t\t\t\t\t</div>\n\t\t\t\t\t<a href=\"javascript:void(0);\" id=\"addCompanyLink\" style=\"padding: 10px 0;float:left;\">Add Company</a>\n\t\t\t\t\t<div id=\"formDiv\" style=\"display:none;float:left;width:100%;\" class=\"form-company\">\n\t\t\t\t\t\t<form action=\"\" method=\"post\">\n\t\t\t\t\t\t\t<div class=\"add-company-row\"><label>Company Name:</label> <input type=\"text\" value=\"\" placeholder=\"Enter Company Name\" id=\"companyNameText\" /></div>\n\t\t\t\t\t\t\t<div class=\"add-company-row\"><label>Job Role: </label><input type=\"text\" value=\"\" placeholder=\"Enter Job Role\" id=\"jobRole\" /></div>\n\t\t\t\t\t\t\t<div style=\"float: left;padding: 5px 0; margin-left:128px;\">\n\t\t\t\t\t\t\t\t<input type=\"button\" value=\"Save Company\" id=\"addCompanyButton\" />\n\t\t\t\t\t\t\t\t<input type=\"button\" value=\"Cancel\" id=\"removeCompanyButton\" />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t<script>\n\t\t\t\t\t\tvar userid = ' . ( !empty( $tmp[1] ) ? $tmp[1] : 0 ) .';\n\t\t\t\t\t\tfunction trimChar(string, charToRemove) {\n\t\t\t\t\t\t\t\twhile(string.charAt(0)==charToRemove) {\n\t\t\t\t\t\t\t\t\t\tstring = string.substring(1);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\twhile(string.charAt(string.length-1)==charToRemove) {\n\t\t\t\t\t\t\t\t\t\tstring = string.substring(0,string.length-2);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\treturn string;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvar obj = jQuery.parseJSON( ' . json_encode( $list ) . ' );\n\t\t\t\t\t\tjQuery(document).ready(function() {\n\t\t\t\t\t\t\tvar x = jQuery(\"#inputs\").tokenInput(obj,{\n\t\t\t\t\t\t\t\tprePopulate: jQuery.parseJSON(\"' . $arr . '\")\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tjQuery(\"#addCompanyLink\").click(function() {\n\t\t\t\t\t\t\t\tjQuery(\"#formDiv\").css( \"display\", \"block\" );\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tjQuery(\"form\").keyup(function(e) {\n\t\t\t\t\t\t\t\treturn e.which !== 13 \n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tjQuery(\"form\").keypress(function(e) {\n\t\t\t\t\t\t\t\treturn e.which !== 13 \n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tjQuery(\"#removeCompanyButton\").click(function() {\n\t\t\t\t\t\t\t\tjQuery(\"#formDiv\").css( \"display\", \"none\" );\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tjQuery( \"#companyNameText\" ).keypress( function(e) {\n\t\t\t\t\t\t\t\tif(e.which == 13){//Enter key pressed\n\t\t\t\t\t\t\t\t\tjQuery( \"#addCompanyButton\" ).focus();\n\t\t\t\t\t\t\t\t\tjQuery(\"#addCompanyButton\").click();//Trigger save company button click event\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\n\t\t\t\t\t\t\tjQuery( \"#jobRole\" ).keypress( function(e) {\n\t\t\t\t\t\t\t\tif(e.which == 13){//Enter key pressed\n \t\t\t\t\t\t\t \t\tjQuery( \"#addCompanyButton\" ).focus();\n\t\t\t\t\t\t\t\t\tjQuery(\"#addCompanyButton\").click();//Trigger save company button click event\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\n\t\t\t\t\t\t\tjQuery( \"#addCompanyButton\" ).click( function() {\n\t\t\t\t\t\t\t\tvar functionName = \"saveCompany\";\n\t\t\t\t\t\t\t\tselectedCompanies = \"\";\n\t\t\t\t\t\t\t\tselectedJobRoles = \" \";\n\t\t\t\t\t\t\t\tcompanyName = jQuery( \"#companyNameText\" ).val();\n\t\t\t\t\t\t\t\tjobRole = jQuery( \"#jobRole\" ).val();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif( companyName == \"\" ) {\n\t\t\t\t\t\t\t\t\talert( \"Please enter company name.\" );\n\t\t\t\t\t\t\t\t\tjQuery( \"#companyNameText\" ).focus();\n \t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif( jobRole == \"\" ) {\n\t\t\t\t\t\t\t\t\talert( \"Please enter job role.\" );\n\t\t\t\t\t\t\t\t\tjQuery( \"#jobRole\" ).focus();\n \t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tjQuery(\"input\").attr(\"disabled\",true);\n\t\t\t\t\t\t\t\tjQuery( \".selectedLi\" ).each(function() {\n\t\t\t\t\t\t\t\t\tselectedCompanies += \",\" + jQuery( this ).val();\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\tjQuery( \".job_role_text\" ).each(function() {\n\t\t\t\t\t\t\t\t\tselectedJobRolesVal = jQuery( this ).val();\n\t\t\t\t\t\t\t\t\tselectedJobRolesId = jQuery( this ).attr(\"job_id\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tselectedJobRoles += \",\" +selectedJobRolesVal+\"|\"+selectedJobRolesId\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\tvar param = jQuery.extend({ \"companyName\": companyName, \"jobRole\": jobRole, \"method\": functionName, \"selectedCompanies\":selectedCompanies, \"selectedJobRoles\":selectedJobRoles,\"userid\": userid, }, param);\n\t\t\t\t\t\t\t\tvar url = \"' . plugins_url() . '/custom-autosuggest-metabox/ajax/ajax.php\";\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tjQuery.ajax({\n\t\t\t\t\t\t\t\t\ttype: \"POST\",\n\t\t\t\t\t\t\t\t\turl: url,\n\t\t\t\t\t\t\t\t\tasync: false,\n\t\t\t\t\t\t\t\t\tdata: param,\n\t\t\t\t\t\t\t\t\tcache: false,\n\t\t\t\t\t\t\t\t\tdataType: \"json\",\n\t\t\t\t\t\t\t\t\tsuccess: function( data ) {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif( parseInt( data.id ) == 0 ) {\n\t\t\t\t\t\t\t\t\t\t\talert( \"Error in saving company.\" );\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\talert( \"Company added successfully.\" );\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tjQuery( \"#outter-box-autosuggest\" ).html(\\'' . $htmlTxt . '\\');\n\t\t\t\t\t\t\t\t\t\t\tjQuery( \"#companyNameText\" ).val( \"\" );\n\t\t\t\t\t\t\t\t\t\t\tjQuery( \"#jobRole\" ).val( \"\" );\n\t\t\t\t\t\t\t\t\t\t\tjQuery(\"input\").attr(\"disabled\",false);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tvar x = jQuery(\"#inputs\").tokenInput(data.list,{\n\t\t\t\t\t\t\t\t\t\t\t\tprePopulate: data.prepopulatedList\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\tjQuery(\"#formDiv\").css( \"display\", \"none\" );\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t</script>';\n\t}", "abstract public function getSettingsFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "function ninja_forms_list_field_type_dropdown( $selected ){\r\n\t$output = '<option value=\"\" disabled>' . __( 'List', 'ninja-forms-style' ) . '</option>';\r\n\r\n\tif ( $selected == '_list-dropdown' ) {\r\n\t\t$select = 'selected=\"selected\"';\r\n\t} else {\r\n\t\t$select = '';\r\n\t}\r\n\t$output .= '<option value=\"_list-dropdown\" '.$select.'>&nbsp;&nbsp;&nbsp;&nbsp;' . __( 'Dropdown (Select)', 'ninja-forms-style' ) . '</option>';\r\n\r\n\tif ( $selected == '_list-radio' ) {\r\n\t\t$select = 'selected=\"selected\"';\r\n\t} else {\r\n\t\t$select = '';\r\n\t}\r\n\t$output .= '<option value=\"_list-radio\" '.$select.'>&nbsp;&nbsp;&nbsp;&nbsp;' . __( 'Radio', 'ninja-forms-style' ) . '</option>';\r\n\r\n\tif ( $selected == '_list-checkbox' ) {\r\n\t\t$select = 'selected=\"selected\"';\r\n\t} else {\r\n\t\t$select = '';\r\n\t}\r\n\t$output .= '<option value=\"_list-checkbox\" '.$select.'>&nbsp;&nbsp;&nbsp;&nbsp;' . __( 'Checkboxes', 'ninja-forms-style' ) . '</option>';\r\n\r\n\tif ( $selected == '_list-multi' ) {\r\n\t\t$select = 'selected=\"selected\"';\r\n\t} else {\r\n\t\t$select = '';\r\n\t}\r\n\t$output .= '<option value=\"_list-multi\" '.$select.'>&nbsp;&nbsp;&nbsp;&nbsp;' . __( 'Multi-Select', 'ninja-forms-style' ) . '</option>';\r\n\r\n\treturn $output;\r\n}", "function acf_select_input($attrs = array())\n{\n}", "public function field_callback($args)\n {\n $multiple = false;\n extract($args);\n $options = get_option($setting_id);\n switch($args['type'])\n {\n case 'text':\n {\n $value = isset($options[$field_id]) ? $options[$field_id] : '';\n ?>\n <input class='text' type='text' id='<?php echo $setting_id; ?>' name='<?php echo $setting_id; ?>[<?php echo $field_id; ?>]' value='<?php echo $value; ?>' />\n <?php\n break;\n }\n case 'select':\n {\n ?>\n <select id=\"<?php echo $setting_id; ?>\" name=\"<?php echo $setting_id; ?>[<?php echo $field_id; ?>][]\" <?php if($multiple === true): ?>multiple<?php endif; ?>>\n <?php\n foreach($choices as $id => $name):?>\n <?php if(isset($options[$field_id]) && is_array($options[$field_id]) && in_array($id,$options[$field_id])): ?>\n <option value=\"<?php echo $id; ?>\" selected=\"selected\"><?php echo $name; ?></option>\n <?php else: ?>\n <option value=\"<?php echo $id; ?>\"><?php echo $name; ?></option>\n <?php endif; ?>\n <?php endforeach; ?>\n </select>\n <?php\n break;\n }\n case 'upload':\n {\n ?>\n <input class='file' type='file' id='<?php echo $setting_id; ?>' name='<?php echo $setting_id; ?>[<?php echo $field_id; ?>]' />\n <?php\n break;\n }\n }\n }", "public function getPicklistValues($skipCheckingRole = false)\n\t{\n\t\tif ($this->getName() === 'targetmodule') {\n\t\t\treturn Settings_Webforms_Module_Model::getsupportedModulesList();\n\t\t}\n\t\treturn array();\n\t}", "function create_options( $field )\n\t{\n\t\t// defaults?\n\t\t/*\n\t\t$field = array_merge($this->defaults, $field);\n\t\t*/\n\t\t\n\t\t\n\t\t$field['character_number'] = isset($field['character_number']) ? $field['character_number'] : '';\n\t\t\n\t\t?>\n\t\t<tr class=\"field_option field_option_<?php echo $this->name; ?>\">\n\t\t\t<td class=\"label\">\n\t\t\t\t<label><?php _e(\"Number of characters\",'acf'); ?></label>\n\t\t\t</td>\n\t\t\t<td>\n\t\t\t\t<?php \n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif($field['character_number'] == \"\"){\n\t\t\t\t\t\n\t\t\t\t\t$field['character_number'] = 150;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\t\tdo_action('acf/create_field', array(\n\t\t\t\t\t\t\t'type'\t=>\t'text',\n\t\t\t\t\t\t\t'name'\t=>\t'fields['.$field['name'].'][character_number]',\n\t\t\t\t\t\t\t'value'\t=>\t$field['character_number']\n\t\t\t\t));\n\t\t\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t?>\n\t\t\t</td>\n\t\t</tr>\n\n<!--\n\t\t<tr class=\"field_option field_option_file\">\n\t\t\t<td class=\"label\">\n\t\t\t\t<label>Choice</label>\n\t\t\t</td>\n\t\t\t<td>\n\t\t\t\t<ul class=\"radio_list radio horizontal\"><li><label><input id=\"acf-field_5_save_format-object\" type=\"radio\" name=\"fields[field_5][save_format]\" value=\"object\">File Object</label></li><li><label><input id=\"acf-field_5_save_format-url\" type=\"radio\" name=\"fields[field_5][save_format]\" value=\"url\">File URL</label></li><li><label><input id=\"acf-field_5_save_format-id\" type=\"radio\" name=\"fields[field_5][save_format]\" value=\"id\" checked=\"checked\" data-checked=\"checked\">File ID</label></li></ul>\t\t\t</td>\n\t\t</tr>\t\n-->\t\n\t\t\n\t\t<?php\n\t\t\n\t\t\n\n\t\t\n\n\t\t\n\t}", "public function get_fields($function = '')\n {\n if (!empty($function)) {\n $fields = call_user_func(array($this, $function));\n foreach ($fields as $key => $field_args) {\n woocommerce_form_field($key, $field_args['field'], $field_args['value']);\n }\n }\n }" ]
[ "0.6787255", "0.67535615", "0.66140825", "0.6407077", "0.6334931", "0.6319057", "0.6282326", "0.62708265", "0.6254492", "0.6217553", "0.6191865", "0.6181738", "0.6119202", "0.6075236", "0.60729784", "0.6072118", "0.60642034", "0.60548955", "0.6004274", "0.5985944", "0.5971641", "0.5968209", "0.5961233", "0.59575725", "0.5936527", "0.5925069", "0.59177464", "0.5914185", "0.59104043", "0.5893757", "0.5893673", "0.5869424", "0.5846705", "0.58252734", "0.58205825", "0.58147", "0.5813457", "0.5811658", "0.5810738", "0.5800009", "0.5797437", "0.57948905", "0.5792531", "0.57696563", "0.5766498", "0.5757838", "0.57562214", "0.57417685", "0.5741024", "0.57378834", "0.57231116", "0.5713028", "0.5708822", "0.5705586", "0.5702539", "0.5697704", "0.569454", "0.56905943", "0.5684469", "0.5679882", "0.5669569", "0.566872", "0.56628096", "0.5661479", "0.5658673", "0.56527644", "0.5644842", "0.56405103", "0.5638502", "0.563445", "0.563445", "0.56301063", "0.5622147", "0.5609577", "0.56021184", "0.5601766", "0.559364", "0.5586018", "0.5585281", "0.5575746", "0.557485", "0.5551536", "0.5539853", "0.55270666", "0.5523842", "0.551919", "0.5506475", "0.550621", "0.5500129", "0.5500129", "0.5500129", "0.5500129", "0.5500129", "0.5500129", "0.54995006", "0.5498981", "0.5497688", "0.5497548", "0.54957515", "0.54916227" ]
0.56862664
58
Check if the value exists in the picklist.
public static function isExists(string $fieldName, string $value): bool { return \in_array($value, static::getValuesName($fieldName)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isDuplicateValue(): bool\n\t{\n\t\t$picklistValues = \\App\\Fields\\Picklist::getValuesName($this->fieldModel->getName());\n\t\tif ($this->id) {\n\t\t\tunset($picklistValues[$this->id]);\n\t\t}\n\n\t\treturn \\in_array(strtolower($this->name), array_map('strtolower', $picklistValues));\n\t}", "function _sf_dropdown_value_exists($post_id, $field_id) {\n\t\t\n\t\t///// GETS VALUES\n\t\tif($field = get_post($post_id)) {\n\t\t\t\n\t\t\t///// WE CAN GET VALUES\n\t\t\tif(get_post_meta($post_id, 'dropdown_values', true) != '') {\n\t\t\t\t\n\t\t\t\t$values = json_decode(htmlspecialchars_decode(get_post_meta($post_id, 'dropdown_values', true)));\n\t\t\t\t\n\t\t\t\t//// IF ITS AN OBJECT\n\t\t\t\tif(is_object($values)) {\n\t\t\t\t\t\n\t\t\t\t\tforeach($values as $val) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t///// IF VALUE EXISTS\n\t\t\t\t\t\tif($val->id == $field_id) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\treturn true;\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}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn false;\n\t\t\n\t}", "function optionExists($value) {\n foreach ($this->_options as $option) {\n if (isset($option['attr']['value']) && ($option['attr']['value'] == $value)) {\n return true;\n }\n }\n return false;\n }", "public static function isPicklistExist(string $fieldName): bool\n\t{\n\t\treturn \\App\\Db::getInstance()->isTableExists(\"vtiger_{$fieldName}\");\n\t}", "public function hasValue(){\n return $this->_has(2);\n }", "public function hasValue(){\n return $this->_has(2);\n }", "public function hasValue(){\n return $this->_has(2);\n }", "public function hasValue(){\n return $this->_has(2);\n }", "public function hasValue(){\n return $this->_has(2);\n }", "public function hasValue(){\n return $this->_has(2);\n }", "public function hasValue(){\n return $this->_has(2);\n }", "public function hasValue(){\n return $this->_has(2);\n }", "public function hasValue(){\n return $this->_has(2);\n }", "public function hasValue(){\n return $this->_has(2);\n }", "public function checkPicklistExist(App\\Request $request)\n\t{\n\t\t$response = new Vtiger_Response();\n\t\t$response->setResult(\\App\\Fields\\Picklist::isPicklistExist($request->getByType('fieldName', 'Alnum')));\n\t\t$response->emit();\n\t}", "public function isEmptyPicklistOptionAllowed()\n\t{\n\t\treturn false;\n\t}", "public function hasValue() {\n return $this->_has(2);\n }", "public function hasValue() {\n return $this->_has(2);\n }", "public function hasValue() {\n return $this->_has(2);\n }", "public function hasValue()\n {\n return count($this->get(self::VALUE)) !== 0;\n }", "public function hasListValue(){\n return $this->_has(6);\n }", "public function containsValue($value);", "function optionExists($optionList) {\n global $options;\n\n $return = false;\n if (!is_array($optionList)) {\n $optionList = array($optionList);\n }\n foreach ($optionList as $opt) {\n if (isset($options[$opt])) {\n $return = true;\n }\n }\n return $return;\n}", "public function hasValue ($value) {\n\n return array_search($value, $this->values) !== false;\n\n }", "public function has($value)\n {\n return in_array($value, $this->items);\n }", "function has_value($value){\r\n\t\treturn isset($value) && $value !==\"\";\r\n\t}", "public function hasValue($value) {\n\t\tif ( array_search( $value, $this->store ) !== false ) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function hasValue($name);", "public function exists($value) {\n return FALSE;\n }", "function IsSelected($value)\n {\n return is_array($this->GetValue()) &&\n in_array($value, $this->GetValue());\n }", "protected function doDefaultCheck($value) {\n $res = false;\n if (is_scalar($value)) {\n $res = array_key_exists($value, $this->getValueList());\n }\n return $res;\n }", "public function check_select_items($name, $data)\n\t{\n\t\tif (!array_key_exists($name, $this->vars)) return false;\n\n\t\tif (is_array($this->vars[$name]))\n\t\t{\n\t\t\tforeach ($this->vars[$name] as $val) {\n\t\t\t\tif (!array_key_exists($val, $data)) return false;\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\t\telse { return array_key_exists($this->vars[$name], $data); }\n\t}", "private function value_exists( $key ) {\n\t\treturn ! empty( $_POST[ $key ] );\n\t}", "public function setExists($value);", "public function hasValue()\n {\n return $this->property_value->isNotEmpty();\n }", "public function containsValue($value) : bool;", "public function isPickupPoint()\n\t{\n\t\t$retval = false;\n\t\tif (isset($this->data[self::KEY_IS_PICKUP_POINT])) {\n\t\t\t$retval = $this->data[self::KEY_IS_PICKUP_POINT];\n\t\t}\n\t\treturn (boolean) $retval;\n\t}", "public function contains($value) {\n\t\treturn in_array($value, array_values($this->_value), true);\n\t}", "public function hasValue($value)\n {\n return $this->_value == $value;\n }", "public static function dataValExist($data, $value)\n {\n echo array_key_exists($value, $data) ? $value : \"\";\n }", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_EXISTINGHOMESALES));\n\t}", "public function containsValue($value): bool;", "function option_exists($key)\n {\n return app('option')->exists($key);\n }", "public function has( $option );", "function option_exists(string $key)\n {\n return Options::exists($key);\n }", "public function hasValue($params = array()) {\r\n\t\t$items = $this->_getRelatedItems();\r\n\t\treturn !empty($items);\r\n\t}", "public function has($label) {\n return array_key_exists($label, $this->_register);\n }", "public function has(string $value): bool\n {\n return isset($this->items[$value]);\n }", "public function has ($value);", "public function exists(string $value, string $purpose): bool;", "function hasDropDown() ;", "function value_is_in_set($value, $array) {\n return in_array($value, $array);\n }", "private function evalexists($value, $data){\n\n\t\t\treturn (bool) $passed = (array_key_exists($value, $data)) ? true : false;\n\t\t}", "public function contains(mixed $value): bool {\n return in_array($value, $this->items, true);\n }", "public function hasValues(){\n return $this->_has(1);\n }", "function validaSelect($selectDestino) {\n global $listadoSelects;\n if (isset($listadoSelects[$selectDestino]))\n return true;\n else\n return false;\n}", "public function has($key){\n return (array_key_exists($key,$this->settings));\n }", "public function inList( $mVarVal = NULL ) {\n\t\treturn FALSE;\n\t}", "public function hasOption($name);", "final public static function isDefined($value)\n {\n self::initOptions();\n\n return in_array($value, self::$options, true);\n }", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_CONTACT,self::VALUE_REGISTERED,self::VALUE_CUSTOMCODE));\n\t}", "function check_selectbox($value)\n\t{\n\t if($value == '' || $value == 'select' || $value == 'default' || $value == '0') { // do your validations\n\t\t return FALSE;\n\t } else {\n\t\t return TRUE;\n\t }\n\t}", "public function contains($value) : bool {\n return in_array($value, $this);\n }", "protected function hasValue(string $opt):bool {\n return array_key_exists($opt, $this->opts);\n }", "function habtmSelected($value, $params = array()) {\n\t\tif (empty($this->data[$params['habtmModel']][$params['habtmModel']])) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public function hasOption(){\n return $this->_has(35);\n }", "public static function isValidValue($value)\n {\n return in_array($value, self::getValues());\n }", "function _sf_dependent_value_exists($post_id, $field_id) {\n\t\t\n\t\t///// GETS VALUES\n\t\tif($field = get_post($post_id)) {\n\t\t\t\n\t\t\t///// WE CAN GET VALUES\n\t\t\tif(get_post_meta($post_id, 'dependent_values', true) != '') {\n\t\t\t\t\n\t\t\t\t$values = json_decode(htmlspecialchars_decode(get_post_meta($post_id, 'dependent_values', true)));\n\t\t\t\t\n\t\t\t\t//// IF ITS AN OBJECT\n\t\t\t\tif(is_object($values)) {\n\t\t\t\t\t\n\t\t\t\t\tforeach($values as $section) { foreach($section as $val) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t///// IF VALUE EXISTS\n\t\t\t\t\t\tif($val->id == $field_id) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\treturn true;\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} }\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn false;\n\t\t\n\t}", "public function containsValue($value) \r\n {\r\n return array_search($value, $this->elements) !== FALSE;\r\n }", "function validaSelect($selectDestino)\r\n{\r\n\tglobal $listadoSelects;\r\n\tif(isset($listadoSelects[$selectDestino])) return true;\r\n\telse return false;\r\n}", "public function contains($value): bool\n {\n return \\in_array($value, $this->items, true);\n }", "public function value_exists( $field_ids, $value, $form_id ) {\n\t\tglobal $wpdb;\n\t\t$result = $wpdb->get_var( $wpdb->prepare( \"SELECT item_id FROM {$wpdb->prefix}frm_item_metas WHERE field_id IN (%s) AND meta_value = %s\", array( join( \", \", $field_ids ), $value ) ) );\n\t\t\n\t\treturn $result;\n\t}", "public function settingExists($key) {\n return isset($this->options[$key]);\n }", "public function hasVal($key) {\n return isset($this->field[$key]) || (is_array($this->field) && array_key_exists($key, $this->field));\n }", "public function canPresent($value)\n {\n $item = current($value);\n return is_array($value) &&\n is_object($item) &&\n property_exists($item, 'user') &&\n property_exists($item, 'text');\n }", "public function contains($value): bool;", "public function contains($value): bool;", "public function isInValue($val) {\r\n\t\tif (is_array($this->cfg->value))\r\n\t\t\treturn (in_array($val, $this->cfg->value));\r\n\t\telse\r\n\t\t\treturn ($val == $this->cfg->value);\r\n\t}", "public function exists($param, $value)\n\t{\n\t\t# query the database to check if the value is taken\n\t\t# return true is value is taken, false otherwise.\n\t}", "public function containsValue(mixed $value): bool;", "public function hasValueForKey($key) {\n\t\treturn array_key_exists($key, $this->store);\n\t}", "public function contains( $value ) {\n\t\tforeach ( $this->lists as $list ) {\n\t\t\t// Use strict comparison to prevent the number 0 from matching all strings (T177825)\n\t\t\tif ( array_search( $value, $list->getValues(), true ) !== false ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "public function hasValue(string $field): bool;", "function wppb_check_multiple_select_value( $message, $field, $request_data, $form_location ){\r\n\tif( $field['field'] == 'Select (Multiple)' && $field['required'] == 'Yes' ){\r\n\t\tif ( isset( $request_data[wppb_handle_meta_name( $field['meta-name'] )] ) ){\r\n\r\n\t\t\t$selected_values = '';\r\n\t\t\tforeach ( $request_data[wppb_handle_meta_name( $field['meta-name'] )] as $key => $value )\r\n\t\t\t\t$selected_values .= $value.',';\r\n\r\n\t\t\tif ( trim( $selected_values, ',' ) == '' ){\r\n\t\t\t\treturn wppb_required_field_error($field[\"field-title\"]);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n return $message;\r\n}", "public function has_option($name)\n {\n return array_key_exists($name, $this->_options);\n }", "public function value_exist( $field_id, $value ) {\n\t\tglobal $wpdb;\n\t\t$result = $wpdb->get_var( $wpdb->prepare( \"SELECT item_id FROM {$wpdb->prefix}frm_item_metas WHERE field_id = %d AND meta_value = %s\", array( $field_id, $value ) ) );\n\t\t\n\t\treturn $result;\n\t}", "public function hasValues() {\n return $this->_has(2);\n }", "function existProductOption() {\n\n\tglobal $result;\n\n\tglobal $p_sub_id;\n\n\tselectRows('sub_category', 'sub_id');\n\n while ($row = mysqli_fetch_array($result)) {\n \t\n\t\t$sub_id = $row['sub_id'];\n\n\t\t$sub_name = $row['sub_name'];\n\n\t\tif ($sub_id == $p_sub_id) {\n\t\t\t\n\t\t\techo \"<option selected value='{$sub_id}'>{$sub_name}</option>\";\n\n\t\t} else {\n\n\t\t\techo \"<option value='{$sub_id}'>{$sub_name}</option>\";\n\n\t\t}\n }\n\n}", "public function valueExists($key,$value){\n $num = $this->getTable()->where($key,$value)->count();\n if($num!=0){\n return true;\n }\n else{\n return false;\n }\n }", "public function optionExists($name)\n {\n return array_key_exists($name, $this->options);\n }", "function exists($key) {\n\t\treturn array_key_exists($key,$this->item);\n\t}", "public function contains($value);", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_REPLACEMENTWARRANTY,self::VALUE_DEALERWARRANTY,self::VALUE_MANUFACTURERWARRANTY,self::VALUE_CUSTOMCODE));\n\t}", "public function hasValue($key)\n {\n return isset($this->values[$key]);\n }", "public function exists($key){return array_key_exists($key,$this->items_array);}", "protected function exist($data)\n\t{\n\t\t$parts = explode(\",\", $data);\n\t\t$db = Connection::getDB();\n\t\t$sql = sprintf(\"SELECT 1 FROM %s WHERE %s = :%s\", $parts[0], $parts[1], $parts[1]);\n\t\t$st = $db->prepare($sql);\n\t\t$st->bindValue(\":$parts[1]\", $this->validateValue);\n\n\t\tif($st->execute()) {\n\t\t\tif($st->fetch()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\t$this->errors[$this->validateField] = \"$this->validateValue does not exist.\";\n\t\treturn false;\n\t}", "function validaSelect($selectDestino)\n{\n\tglobal $listadoSelects;\n\tif(isset($listadoSelects[$selectDestino])) return true;\n\telse return false;\n}", "public static function hasValue(int|string $value): bool\n {\n $validValues = static::getValues();\n\n return in_array($value, $validValues, true);\n }", "public function isset(): bool\n\t{\n\t\treturn isset($this->_value);\n\t}", "public function exists() {\n\t\tglobal $wpdb, $bp;\n\n\t\t// Check cache first\n\t\t$cached = wp_cache_get( $this->field_id, 'bp_xprofile_data_' . $this->user_id );\n\n\t\tif ( $cached && ! empty( $cached->id ) ) {\n\t\t\t$retval = true;\n\t\t} else {\n\t\t\t$retval = $wpdb->get_row( $wpdb->prepare( \"SELECT id FROM {$bp->profile->table_name_data} WHERE user_id = %d AND field_id = %d\", $this->user_id, $this->field_id ) );\n\t\t}\n\n\t\treturn apply_filters_ref_array( 'xprofile_data_exists', array( (bool)$retval, $this ) );\n\t}" ]
[ "0.7074468", "0.66129243", "0.6469228", "0.6297872", "0.61645323", "0.61645323", "0.61645323", "0.61645323", "0.61645323", "0.61645323", "0.61645323", "0.61645323", "0.61645323", "0.61645323", "0.61262304", "0.6083465", "0.6060889", "0.6060889", "0.6060889", "0.6058728", "0.6057919", "0.6005672", "0.59822", "0.5953935", "0.59499764", "0.5949882", "0.59184134", "0.5915852", "0.5913548", "0.5908743", "0.5894939", "0.5888834", "0.58835214", "0.5877237", "0.58705866", "0.5798437", "0.57931864", "0.5762754", "0.5759532", "0.5751286", "0.5745615", "0.5733087", "0.5720693", "0.5719509", "0.56947005", "0.56750643", "0.56695133", "0.56666553", "0.56659937", "0.5661934", "0.5661864", "0.5657894", "0.5655677", "0.564452", "0.5640785", "0.56323457", "0.5625264", "0.56055975", "0.5604321", "0.56036365", "0.55922085", "0.55904144", "0.5590312", "0.55894667", "0.55847144", "0.5582148", "0.55796605", "0.557463", "0.55640656", "0.5558173", "0.5552584", "0.5545339", "0.55334574", "0.55227166", "0.54944783", "0.54890347", "0.54890347", "0.54868835", "0.5484554", "0.54845345", "0.5482613", "0.5481336", "0.5478984", "0.5477811", "0.5477549", "0.54740065", "0.5471632", "0.54681057", "0.5452281", "0.54488444", "0.5444508", "0.54409903", "0.54390496", "0.5434694", "0.5432166", "0.5431464", "0.5429623", "0.5429046", "0.54272443", "0.54113024" ]
0.5432554
94
Check if picklist exist.
public static function isPicklistExist(string $fieldName): bool { return \App\Db::getInstance()->isTableExists("vtiger_{$fieldName}"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isEmptyPicklistOptionAllowed()\n\t{\n\t\treturn false;\n\t}", "public function checkPicklistExist(App\\Request $request)\n\t{\n\t\t$response = new Vtiger_Response();\n\t\t$response->setResult(\\App\\Fields\\Picklist::isPicklistExist($request->getByType('fieldName', 'Alnum')));\n\t\t$response->emit();\n\t}", "function hasDropDown() ;", "public function isPickupPoint()\n\t{\n\t\t$retval = false;\n\t\tif (isset($this->data[self::KEY_IS_PICKUP_POINT])) {\n\t\t\t$retval = $this->data[self::KEY_IS_PICKUP_POINT];\n\t\t}\n\t\treturn (boolean) $retval;\n\t}", "function optionExists($optionList) {\n global $options;\n\n $return = false;\n if (!is_array($optionList)) {\n $optionList = array($optionList);\n }\n foreach ($optionList as $opt) {\n if (isset($options[$opt])) {\n $return = true;\n }\n }\n return $return;\n}", "public function isDuplicateValue(): bool\n\t{\n\t\t$picklistValues = \\App\\Fields\\Picklist::getValuesName($this->fieldModel->getName());\n\t\tif ($this->id) {\n\t\t\tunset($picklistValues[$this->id]);\n\t\t}\n\n\t\treturn \\in_array(strtolower($this->name), array_map('strtolower', $picklistValues));\n\t}", "public function check_select_items($name, $data)\n\t{\n\t\tif (!array_key_exists($name, $this->vars)) return false;\n\n\t\tif (is_array($this->vars[$name]))\n\t\t{\n\t\t\tforeach ($this->vars[$name] as $val) {\n\t\t\t\tif (!array_key_exists($val, $data)) return false;\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\t\telse { return array_key_exists($this->vars[$name], $data); }\n\t}", "public function hasDropDown() {}", "public function hasDropDown() {}", "public function hasDropDown() {}", "public function hasDropDown() {}", "public function hasDropDown() {}", "public function hasDropDown() {}", "public function hasDropDown() {}", "public function hasDropDown() {}", "public function hasDropDown() {}", "static function checkExistingPropertyMembership(){\n\t global $mainframe,$configClass;\n $available_plans = self::getAllPlans();\n if(count($available_plans) > 0){\n foreach ($available_plans as $plan){\n $params = new JRegistry() ;\n $params->loadString($plan->params);\n $isOsproperty = $params->get('isospplugin',0);\n if($isOsproperty == 1){\n return true;\n }\n }\n }\n return false;\n }", "public function isEntityFilled(Pickup $object);", "public function hasOptionCollection(){\n\n\t\t\t$options = get_option( $this->optionsKey, array() );\n\n\t\t\treturn !empty( $options );\n\t\t}", "function option_exists($key)\n {\n return app('option')->exists($key);\n }", "public static function isExist()\n\t{\n\t\t$fields = self::getFields();\n\t\treturn !empty($fields);\n\t}", "public function has( $option );", "function load_choices() {\n /*\n if (is_array($this->choices)) {\n return true;\n }\n .... load choices here\n */\n return true;\n }", "function load_choices() {\n /*\n if (is_array($this->choices)) {\n return true;\n }\n .... load choices here\n */\n return true;\n }", "public function hasOption($name);", "function checkMultiSelectScripts() {\n\t\tif (!$this->config['multiselect']) return;\n\t\tif (!$GLOBALS['RSEXTBASE']['Multiselect']['initScript']) {\n\t\t\t$template = $this->getSubpart($this->cObj->fileResource($this->config['multiselectTemplate']), 'INIT_SCRIPT');\n\t\t\t$template = $this->fillTemplate($template, 'multiselect', array());\n\t\t\t$GLOBALS['RSEXTBASE']['Multiselect']['initScript'] = $template;\n\t\t\t$GLOBALS['TSFE']->additionalHeaderData['rsextbase'] = $template;\n\t\t}\n\t}", "function option_exists(string $key)\n {\n return Options::exists($key);\n }", "public function hasMultipleItems()\n {\n $this->__getProductOptions();\n if (!is_null($this->productOptions) && count($this->productOptions) > 0) {\n return true;\n }\n return false;\n }", "private function _existsListAlready($listname)\r\n {\r\n $_listname = $this->_validListname($listname);\r\n $lists = $this->getLists();\r\n $_lists = $lists->lists;\r\n foreach ($_lists->list as $list) {\r\n if ($list->name == $_listname) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "function validaSelect($selectDestino) {\n global $listadoSelects;\n if (isset($listadoSelects[$selectDestino]))\n return true;\n else\n return false;\n}", "public function optionExists($name)\n {\n return array_key_exists($name, $this->options);\n }", "private function checkIsExists(): bool\n {\n $id = $this->readImproved([\n 'what' => [$this->table. '.id'],\n 'where' => [\n $this->table. '.listId' => $this->listId,\n $this->table. '.campaignId' => $this->campaignId,\n ]\n ]);\n\n return !is_null($id);\n }", "public function has_option($name)\n {\n return array_key_exists($name, $this->_options);\n }", "function validaSelect($selectDestino)\r\n{\r\n\tglobal $listadoSelects;\r\n\tif(isset($listadoSelects[$selectDestino])) return true;\r\n\telse return false;\r\n}", "public function hasFieldsets(): bool\n {\n return File::exists($this->path().'/fieldsets');\n }", "public function check()\n {\n foreach ($this->options as $id => $option) {\n $option->check();\n }\n }", "public function hasOption(){\n return $this->_has(35);\n }", "public function valid()\n {\n return isset($this->list[$this->position]);\n }", "function _validate_options_exist($options)\n\t{\n\t\tif ($this->validate_field_existence == TRUE)\n\t\t{\n\t\t\tforeach ($options as $key => $value)\n\t\t\t{\n\t\t\t\t$parts = explode(' ', $key);\n\t\t\t\t$field = $parts[1];\n\n\t\t\t\tif ( ! $this->db->field_exists($field, $this->primary_table))\n\t\t\t\t{\n\t\t\t\t\tshow_error('You are trying to insert data into a field that does not exist. The field \"'. $field .'\" does not exist in the \"'. $this->primary_table .'\" table.');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function canAddFieldsToPaletteAfterNotExistingOnes() {}", "public function hasOptions();", "public function hasOption(string $name);", "public function checkControlExists($name);", "private function can_import() {\n return isset( $_POST[ self::NAME ] ) &&\n $_POST[ self::NAME ] === 'import' &&\n current_user_can( 'manage_options' );\n }", "public function has_options() {\n\t\treturn count( $this->get_options() ) > 0;\n\t}", "protected function pickUpLocationIsValid($pickUpLocation, $patron, $holdDetails)\n {\n $pickUpLibs = $this->getPickUpLocations($patron, $holdDetails);\n foreach ($pickUpLibs as $location) {\n if (trim($location['locationID']) == trim($pickUpLocation)) {\n return true;\n }\n }\n return false;\n }", "function CheckLibraryAccess(){\n if ($this->listSettings->HasSection(\"ACCESS\")) {\n if ($this->listSettings->HasItem(\"ACCESS\", \"GROUPS\")) {\n $this->Page->access_id = explode(\",\", $this->listSettings->GetItem(\"ACCESS\", \"GROUPS\"));\n\n }\n if ($this->listSettings->HasItem(\"ACCESS\", \"USERS\")) {\n $this->Page->access_user_id = explode(\",\", $this->listSettings->GetItem(\"ACCESS\", \"USERS\"));\n }\n if ($this->listSettings->HasItem(\"ACCESS\", \"ROLES\")) {\n $this->Page->access_role_id = explode(\",\", $this->listSettings->GetItem(\"ACCESS\", \"ROLES\"));\n }\n\n $this->Page->Auth->isLogged();\n }\n }", "public function load_choices() {\n if (during_initial_install()) {\n return false;\n }\n\n if (is_array($this->choices)) {\n return true;\n }\n\n $blocks = \\core_plugin_manager::instance()->get_enabled_plugins('block');\n\n foreach ($blocks as $block) {\n $blocks[$block] = get_string('pluginname', 'block_' . $block);\n }\n\n if ($blocks) {\n $this->choices = $blocks;\n return true;\n }\n\n return false;\n }", "function KM_exists($options=array()){\n\t return ($this->KM_count($options) > 0);\n\t}", "public function exists()\n {\n foreach ($this->lists as $list) {\n if (method_exists($list, 'exists') && $list->exists()) {\n return true;\n }\n }\n return false;\n }", "public function exists()\n {\n if(isset($_FILES[$this->param_name])){\n return true;\n }\n else{\n return false;\n }\n }", "function check_exists()\r\n\t{\r\n\t\t$name = url_title($this->input->post('name'));\r\n\r\n\t\t$exists = $this->item_definition_model->check_exists(\r\n\t\t\t'name',\r\n\t\t\t$name,\r\n\t\t\t$this->input->post('id_item_definition')\r\n\t\t);\r\n\r\n\t\t$this->xhr_output($exists);\r\n\t}", "public function hasOption(string $name): bool;", "public function hasOption(string $name): bool;", "public function has($label) {\n return array_key_exists($label, $this->_register);\n }", "function validaSelect($selectDestino)\n{\n\tglobal $listadoSelects;\n\tif(isset($listadoSelects[$selectDestino])) return true;\n\telse return false;\n}", "function existsItemStrict ($name, $type) {\n\t\tif (array_key_exists ('/'.$type.$name, $this->allConfigItems) or\n\t\t\tarray_key_exists ('/'.$type.$name, $this->allUserItems)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "private function _checkHasOption($token)\n {\n \tif (!isset($this->_session['products'][$token]['options']) OR count($this->_session['products'][$token]['options']) == 0)\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n }", "public function Exists();", "function exists()\n {\n return false;\n }", "protected function _checkExistence($item = null)\n { \n if (empty($item)) {\n $this->_showError(__('Item does not exist'));\n return;\n }\n }", "public function hasListValue(){\n return $this->_has(6);\n }", "public function optionExists($name)\n {\n if ( !$name || !is_string($name) ) {\n throw new ScriptException(\"Parameter name is missing or invalid in call to HttpRequest::param()\");\n }\n\n return $this->options->exists($name);\n }", "private function _isListAssociatedWithUser($listname) \r\n {\r\n return $this->_existsListAlready($listname);\r\n }", "function existProductOption() {\n\n\tglobal $result;\n\n\tglobal $p_sub_id;\n\n\tselectRows('sub_category', 'sub_id');\n\n while ($row = mysqli_fetch_array($result)) {\n \t\n\t\t$sub_id = $row['sub_id'];\n\n\t\t$sub_name = $row['sub_name'];\n\n\t\tif ($sub_id == $p_sub_id) {\n\t\t\t\n\t\t\techo \"<option selected value='{$sub_id}'>{$sub_name}</option>\";\n\n\t\t} else {\n\n\t\t\techo \"<option value='{$sub_id}'>{$sub_name}</option>\";\n\n\t\t}\n }\n\n}", "public function is_chooser_available() {\n\n\t\t// If custom app is not enabled, return false.\n\t\tif ( ! $this->get_plugin_setting( 'customAppEnable' ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Get site URL.\n\t\t$site_url = parse_url( get_site_url() );\n\n\t\t// Get origin from site URL.\n\t\t$origin = $site_url['scheme'] . '://' . $site_url['host'];\n\n\t\t// Get app key.\n\t\t$app_key = $this->get_app_key();\n\n\t\t// Prepare chooser URL.\n\t\t$chooser_url = add_query_arg(\n\t\t\tarray(\n\t\t\t\t'origin' => $origin,\n\t\t\t\t'app_key' => $app_key,\n\t\t\t),\n\t\t\t'https://www.dropbox.com/chooser'\n\t\t);\n\n\t\t// Make a request to the chooser URL.\n\t\t$chooser_request = wp_remote_get( $chooser_url );\n\n\t\treturn ! is_wp_error( $chooser_request ) && 200 === $chooser_request['response']['code'];\n\n\t}", "public function checkIfAvailable(){\n $user_check_query = self::$connection->db->prepare(\"SELECT * FROM users WHERE name = ? OR email = ?\");\n $user_check_query->bind_param(\"ss\", self::$signUpName, self::$signUpEmail);\n $user_check_query->execute();\n $users = $user_check_query->get_result()->fetch_assoc();\n $user_check_query->close();\n $nameError = false;\n $emailError = false;\n $_POST = array();\n if (isset($users)) {\n foreach($users as $key=>$value) {\n if (strtolower($users['name']) === strtolower(self::$signUpName) && !$nameError) {\n self::addError(\"signUp\", \"Name already exists.\");\n $nameError = true;\n Auth::CreateView('Auth');\n };\n if ($users['email'] === self::$signUpEmail && !$emailError) {\n self::addError(\"signUp\", \"Email already exists.\");\n $emailError = true;\n Auth::CreateView('Auth');\n };\n }\n } else if(count(self::$signUpErrors) === 0){\n $this->registering();\n return true;\n }\n }", "public function has(string $option): bool;", "public function isRegistered(){\n return isset($this->data['id']);\n }", "function check_exists()\n\t{\n\t\t$name = url_title($this->input->post('name'));\n\n\t\t$exists = $this->content_type_model->check_exists(\n\t\t\t'name',\n\t\t\t$name,\n\t\t\t$this->input->post('id_content_type')\n\t\t);\n\n\t\t$this->xhr_output($exists);\n\t}", "public function has($key){\n return (array_key_exists($key,$this->settings));\n }", "function ve_sketchfab_empty() {\n\tif ( is_singular( 'companies' ) ) {\n\t\t$field_name_repeater = 'company_sketchfab_repeater';\n\t}\n\tif ( is_singular( 'group_of_companies' ) ) {\n\t\t$field_name_repeater = 'group_of_companies_sketchfab_repeater';\n\t}\n\tif (have_rows($field_name_repeater) ) {\n\t\treturn false;\n\t}\n\telse {\n\t\treturn true;\n\t}\n}", "public function has_options($rowid = null)\n\t{\n\t\t// Check if this item have options.\n\t\t//\n\t\treturn (array_get($this->cart_contents, $this->cart_name . '.' . $rowid . '.options') ? true : false);\n\t}", "public function hasOptItem(){\n return $this->_has(2);\n }", "public function testFormElementsExist ()\n {\n $this->assertInstanceOf('Zend_Form_Element_Checkbox', $this->getForm()->getElement('isDefault'));\n $this->assertInstanceOf('Zend_Form_Element_Text', $this->getForm()->getElement('reason'));\n $this->assertInstanceOf('Zend_Form_Element_Select', $this->getForm()->getElement('reasonCategory'));\n }", "public function settingExists($key) {\n return isset($this->options[$key]);\n }", "function exists() {\n\t return !empty($this->id);\n\t}", "public function hasInitBu()\n {\n return $this->get(self::INIT_BU) !== null;\n }", "public function canAddFieldsToPaletteAfterExistingOnes() {}", "public function checkKlubExist()\n {\n $db = DB::conn();\n $found = $db->row(\"SELECT klub_name FROM klub\n WHERE klub_name = ? \" , array($this->klub_name));\n return $found;\n }", "protected function setNoticesExist() {}", "function _isInstalled()\n\t{\n\t\t$success = false;\n\t\t\n\t\tjimport('joomla.filesystem.file');\n\t\tif (JFile::exists(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_phplist'.DS.'defines.php')) \n\t\t{\n\t\t\t// Check the registry to see if our Tienda class has been overridden\r\n\t\t\tif ( !class_exists('Phplist') )\r\n\t\t\t\tJLoader::register( \"Phplist\", JPATH_ADMINISTRATOR.DS.\"components\".DS.\"com_phplist\".DS.\"defines.php\" );\r\n\t\t\tif ( !class_exists('PhplistConfigPhplist') )\r\n\t\t\t\tJLoader::register( \"PhplistConfigPhplist\", JPATH_ADMINISTRATOR.DS.\"components\".DS.\"com_phplist\".DS.\"defines.php\" );\r\n\t\t\t\t\n\t\t\t\n\t\t\tPhplist::load( 'PhplistHelperNewsletter', 'helpers.newsletter' );\n\t\t\tPhplist::load( 'PhplistHelperMessage', 'helpers.message' );\n\t\t\tPhplist::load( 'PhplistHelperEmail', 'helpers.email' );\n\t\t\tPhplist::load( 'PhplistHelperPhplist', 'helpers.phplist' );\n\t\t\tPhplist::load( 'PhplistHelperConfigPhplist', 'helpers.configphplist' );\n\t\t\t\n\t\t\t$success = true;\n\t\t}\n\t\t\n\t\tif ($success == true) {\n\t\t\t// Also check that DB is setup\n\t\t\t$database = PhplistHelperPhplist::getDBO();\n\t\t\tif (!isset($database->error)) \n\t\t\t{\n\t\t\t\t$success = true;\n\t\t\t}\n\t\t}\n\t\treturn $success;\n\t}", "public function exists() {\n\t\ttry {\n\t\t\t$this->load();\n\t\t\treturn true;\n\t\t} catch ( \\Exception $e ) {\n\t\t\treturn false;\n\t\t}\n\t}", "function _sf_dropdown_value_exists($post_id, $field_id) {\n\t\t\n\t\t///// GETS VALUES\n\t\tif($field = get_post($post_id)) {\n\t\t\t\n\t\t\t///// WE CAN GET VALUES\n\t\t\tif(get_post_meta($post_id, 'dropdown_values', true) != '') {\n\t\t\t\t\n\t\t\t\t$values = json_decode(htmlspecialchars_decode(get_post_meta($post_id, 'dropdown_values', true)));\n\t\t\t\t\n\t\t\t\t//// IF ITS AN OBJECT\n\t\t\t\tif(is_object($values)) {\n\t\t\t\t\t\n\t\t\t\t\tforeach($values as $val) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t///// IF VALUE EXISTS\n\t\t\t\t\t\tif($val->id == $field_id) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\treturn true;\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}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn false;\n\t\t\n\t}", "function is_multiple($name)\n\t{\n\t\treturn $this->allow_multiple_values && in_array($this->customfields[$name]['type'],array('select','select-account')) &&\n\t\t\t$this->customfields[$name]['rows'] > 1;\n\t}", "public function hasOption($name)\n {\n return array_key_exists($name, $this->options);\n }", "public function hasOption($name)\n {\n return array_key_exists($name, $this->options);\n }", "private static function file_was_selected( $file_uploads ) {\n\t\tif ( empty( $file_uploads['name'] ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$filled = true;\n\t\tif ( is_array( $file_uploads['name'] ) ) {\n\t\t\t$filled = false;\n\t\t\tforeach ( $file_uploads['name'] as $n ) {\n\t\t\t\tif ( ! empty( $n ) ) {\n\t\t\t\t\t$filled = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $filled;\n\t}", "function combo_check($str)\r\n\t{\r\n\t\tif ($str == '-SELECT-')\r\n\t\t{\r\n\t\t\t$this->form_validation->set_message('combo_check', 'Valid %s Name is required');\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn TRUE;\r\n\t\t}\r\n\t}", "public function exists(){\n\n\t\treturn (!empty($this->_data)) ? true : false;\n\n\t}", "public function valid()\n {\n return isset($this->items[$this->k]);\n }", "public function exists($key){return array_key_exists($key,$this->items_array);}", "function available() {\n if(empty($this->pool)) {\n JError::raiseError(404, JText::_('No pool nor default pool specified'));\n }\n }", "public function isMultiSelect() {}", "static function isExists($alias = NULL) {\n if ($alias === NULL) {\n return FALSE;\n } else {\n if (self::$list == NULL){\n self::getList();\n }\n return (isset(self::$list[$alias])) ? TRUE : FALSE;\n }\n }", "public function check_exists(){\n\t\tif(!empty($this->data['Leave']['leave_from']) && !empty($this->data['Leave']['leave_to'])){\n\t\t\t$from = $this->format_date_save($this->data['Leave']['leave_from']);\n\t\t\t$to = $this->format_date_save($this->data['Leave']['leave_to']);\n\t\t\t$count = $this->find('count', array('conditions' => array('or' => array('leave_from between ? and ?' => array($from, $to),\n\t\t\t'leave_to between ? and ?' => array($from, $to)), 'Leave.users_id' => CakeSession::read('USER.Login.id'), \n\t\t\t'Leave.is_deleted'=> 'N', 'Leave.is_approve !=' => 'R')));\n\t\t\tif($count > 0){\n\t\t\t\treturn false;\n\t\t\t}else{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "function check_selectbox($value)\n\t{\n\t if($value == '' || $value == 'select' || $value == 'default' || $value == '0') { // do your validations\n\t\t return FALSE;\n\t } else {\n\t\t return TRUE;\n\t }\n\t}", "function optionExists($value) {\n foreach ($this->_options as $option) {\n if (isset($option['attr']['value']) && ($option['attr']['value'] == $value)) {\n return true;\n }\n }\n return false;\n }", "public function has_option($key) {\n return is_array($this->options) && array_key_exists($key, $this->options);\n }", "private function flag_exists()\n {\n //check the flag\n return \\Storage::exists($this->getFlagPath());\n }" ]
[ "0.66227704", "0.6585442", "0.59476596", "0.5929428", "0.5852229", "0.56846845", "0.5641008", "0.5638053", "0.5638053", "0.5638053", "0.5637467", "0.5637467", "0.5637467", "0.5637467", "0.5636054", "0.5636054", "0.5583198", "0.5518461", "0.54961854", "0.5492724", "0.5448519", "0.5421067", "0.53945225", "0.53945225", "0.53728735", "0.5356461", "0.5344315", "0.5341666", "0.5322132", "0.53193617", "0.53163475", "0.5312894", "0.5276421", "0.5262209", "0.52520895", "0.52443886", "0.5231721", "0.522419", "0.52152944", "0.5213271", "0.5207065", "0.52057076", "0.52008426", "0.5198096", "0.51962763", "0.51818717", "0.5179217", "0.5167656", "0.51614255", "0.51572824", "0.5147301", "0.5146049", "0.51450855", "0.51450855", "0.51243037", "0.51217073", "0.5121387", "0.51203406", "0.5118456", "0.511791", "0.5116164", "0.51066005", "0.5089359", "0.508301", "0.50702256", "0.5068824", "0.5062531", "0.50524557", "0.50519484", "0.50518507", "0.5046671", "0.5041844", "0.5039064", "0.50355005", "0.5035306", "0.5033306", "0.50261533", "0.5025982", "0.502109", "0.50171214", "0.5015394", "0.5012553", "0.50072116", "0.50051963", "0.49979368", "0.4993807", "0.4993807", "0.49904263", "0.49856701", "0.4982133", "0.4977075", "0.4967753", "0.4967337", "0.49672428", "0.49619216", "0.49559614", "0.49489048", "0.4947655", "0.49462467", "0.4930289" ]
0.6767385
0
Function which will give the editable picklist values for a field.
public static function getEditableValues($fieldName) { $values = static::getValuesName($fieldName); $nonEditableValues = static::getNonEditableValues($fieldName); foreach ($values as $key => &$value) { if ('--None--' === $value || isset($nonEditableValues[$key])) { unset($values[$key]); } } return $values; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFieldInstanceByName($name)\n\t{\n\t\t$params = [];\n\t\t$qualifiedModuleName = 'Settings:Picklist';\n\t\t$tableName = $this->getTableName();\n\t\tswitch ($name) {\n\t\t\tcase 'name':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $this->fieldModel->getName(),\n\t\t\t\t\t'label' => 'LBL_ITEM_VALUE',\n\t\t\t\t\t'uitype' => 1,\n\t\t\t\t\t'typeofdata' => 'V~M',\n\t\t\t\t\t'maximumlength' => $this->fieldModel->getMaxValue(),\n\t\t\t\t\t'purifyType' => \\App\\Purifier::TEXT,\n\t\t\t\t\t'table' => $tableName,\n\t\t\t\t\t'validator' => [['name' => 'FieldLabel']]\n\t\t\t\t];\n\t\t\t\tif (1 !== $this->presence || !$this->fieldModel->isEditable()) {\n\t\t\t\t\t$params['isEditableReadOnly'] = true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'description':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_DESCRIPTION',\n\t\t\t\t\t'uitype' => 300,\n\t\t\t\t\t'typeofdata' => 'V~O',\n\t\t\t\t\t'maximumlength' => '65535',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::HTML,\n\t\t\t\t\t'tooltip' => 'LBL_DESCRIPTION_VALUE_LIST',\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'prefix':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_PREFIX',\n\t\t\t\t\t'uitype' => 1,\n\t\t\t\t\t'typeofdata' => 'V~O',\n\t\t\t\t\t'maximumlength' => '25',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::TEXT,\n\t\t\t\t\t'tooltip' => 'LBL_DESCRIPTION_PREFIXES',\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'close_state':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_CLOSES_RECORD',\n\t\t\t\t\t'uitype' => 56,\n\t\t\t\t\t'typeofdata' => 'C~O',\n\t\t\t\t\t'maximumlength' => '5',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::BOOL,\n\t\t\t\t\t'tooltip' => 'LBL_BLOCKED_RECORD_INFO',\n\t\t\t\t\t'table' => 'u_#__picklist_close_state'\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'icon':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_ICON',\n\t\t\t\t\t'uitype' => 62,\n\t\t\t\t\t'typeofdata' => 'V~O',\n\t\t\t\t\t'maximumlength' => '255',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::TEXT,\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'time_counting':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_TIME_COUNTING',\n\t\t\t\t\t'uitype' => 16,\n\t\t\t\t\t'typeofdata' => 'V~M',\n\t\t\t\t\t'maximumlength' => '250',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::INTEGER,\n\t\t\t\t\t'tooltip' => 'LBL_TIME_COUNTING_INFO',\n\t\t\t\t\t'defaultvalue' => 0,\n\t\t\t\t\t'picklistValues' => [\n\t\t\t\t\t\t0 => \\App\\Language::translate('LBL_NONE', '_Base'),\n\t\t\t\t\t\t\\App\\RecordStatus::TIME_COUNTING_REACTION => \\App\\Language::translate('LBL_TIME_COUNTING_REACTION', $qualifiedModuleName),\n\t\t\t\t\t\t\\App\\RecordStatus::TIME_COUNTING_RESOLVE => \\App\\Language::translate('LBL_TIME_COUNTING_RESOLVE', $qualifiedModuleName),\n\t\t\t\t\t\t\\App\\RecordStatus::TIME_COUNTING_IDLE => \\App\\Language::translate('LBL_TIME_COUNTING_IDLE', $qualifiedModuleName)\n\t\t\t\t\t],\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'record_state':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_RECORD_STATE',\n\t\t\t\t\t'uitype' => 16,\n\t\t\t\t\t'typeofdata' => 'V~M',\n\t\t\t\t\t'maximumlength' => '250',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::INTEGER,\n\t\t\t\t\t'tooltip' => 'LBL_RECORD_STATE_INFO',\n\t\t\t\t\t'defaultvalue' => \\App\\RecordStatus::RECORD_STATE_NO_CONCERN,\n\t\t\t\t\t'picklistValues' => [],\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tforeach (\\App\\RecordStatus::getLabels() as $key => $value) {\n\t\t\t\t\t$params['picklistValues'][$key] = \\App\\Language::translate($value, $qualifiedModuleName);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'roles':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_ASSIGN_TO_ROLE',\n\t\t\t\t\t'uitype' => 33,\n\t\t\t\t\t'typeofdata' => 'V~O',\n\t\t\t\t\t'maximumlength' => '500',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::TEXT,\n\t\t\t\t\t'defaultvalue' => 'all',\n\t\t\t\t\t'picklistValues' => [\n\t\t\t\t\t\t'all' => \\App\\Language::translate('LBL_ALL_ROLES', $qualifiedModuleName)\n\t\t\t\t\t],\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tforeach (\\Settings_Roles_Record_Model::getAll() as $key => $roleModel) {\n\t\t\t\t\t$params['picklistValues'][$key] = \\App\\Language::translate($roleModel->get('rolename'), 'Settings:Roles');\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn $params ? \\Vtiger_Field_Model::init($qualifiedModuleName, $params, $name)->set('sourceFieldModel', $this->fieldModel) : null;\n\t}", "function render_field( $field ) { ?>\n <input type=\"text\" value=\"<?php echo esc_attr( $field[ 'value' ] ); ?>\" id=\"<?php echo esc_attr( $field[ 'id' ] ); ?>\" name=\"<?php echo esc_attr( $field[ 'name' ] ); ?>\" class=\"rhicomoon-select-field <?php echo esc_attr( $field[ 'class' ] ); ?>\" data-json-url=\"<?php echo esc_attr( $field[ 'json_url' ] ); ?>\"/>\n <?php }", "function hundope_select_field_render() { \n\t\n}", "public function select_values_for_form( EntryValueSelect $entry_value_select );", "function create_field( $field )\n\t{\n\t\tif( 'object' == $field['save_format'] && 'null' !== $field['value'] )\n\t\t\t$field['value'] = array( $field['value']->class );\n\n\t\t// value must be array\n\t\tif( !is_array($field['value']) )\n\t\t{\n\t\t\t// perhaps this is a default value with new lines in it?\n\t\t\tif( strpos($field['value'], \"\\n\") !== false )\n\t\t\t{\n\t\t\t\t// found multiple lines, explode it\n\t\t\t\t$field['value'] = explode(\"\\n\", $field['value']);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$field['value'] = array( $field['value'] );\n\t\t\t}\n\t\t}\n\t\t\n\t\t// trim value\n\t\t$field['value'] = array_map('trim', $field['value']);\n\t\t\n\t\t// html\n\t\techo '<div class=\"fa-field-wrapper\">';\n\t\techo '<div class=\"fa-live-preview\"></div>';\n\t\techo '<select id=\"' . $field['id'] . '\" class=\"' . $field['class'] . ' fa-select2-field\" name=\"' . $field['name'] . '\" >';\t\n\t\t\n\t\t// null\n\t\tif( $field['allow_null'] )\n\t\t{\n\t\t\techo '<option value=\"null\">- ' . __(\"Select\",'acf') . ' -</option>';\n\t\t}\n\t\t\n\t\t// loop through values and add them as options\n\t\tif( is_array($field['choices']) )\n\t\t{\n\t\t\tunset( $field['choices']['null'] );\n\n\t\t\tforeach( $field['choices'] as $key => $value )\n\t\t\t{\n\t\t\t\t$selected = $this->find_selected( $key, $field['value'], $field['save_format'], $field['choices'] );\n\t\t\t\techo '<option value=\"'.$key.'\" '.$selected.'>'.$value.'</option>';\n\t\t\t}\n\t\t}\n\n\t\techo '</select>';\n\t\techo '</div>';\n\t}", "function fill_in_additional_list_fields()\r\n\t{\r\n\t}", "public function onEditField()\n {\n $name = post('code');\n $selection = FieldManager::findField($name);\n return $this->makePartial('update_field_form', ['selection' => $selection]);\n }", "public function _editField() {\n\t\t\n\t\t$args = $this->getAllArguments ();\n\t\t\n\t\tif (array_key_exists ( 'cid', $args )) {\n\t\t\t$field_id = $args ['cid'] [0];\n\t\t} else {\n\t\t\t$field_id = @$args [3] ? @$args [3] : $args [1];\n\t\t}\n\t\t\n\t\t$field = $this->getModel ( 'field' );\n\t\t$field->get ( ( int ) $field_id );\n\t\t\n\t\t$this->loadPluginModel ( 'fields' );\n\t\t\n\t\t$this->setView ( 'edit_field' );\n\t\n\t}", "public function getSelectDataFields();", "function _set_editable_fields()\n\t{\n\t\tif (empty($this->fields))\n\t\t{\n\t\t\t// pull the fields dynamically from the database\n\t\t\t$this->db->cache_on();\n\t\t\t$this->fields = $this->db->list_fields($this->primary_table);\n\t\t\t$this->db->cache_off();\n\t\t}\n\t}", "function populate() {\n // @todo We inject client input directly into the form. What about\n // security issues?\n if (isset($this->form->request['raw_input'][$this->attributes['name']])) {\n // Disabled input elements do not accept new input.\n if (!$this->disabled) {\n $this->value = $this->form->request['raw_input'][$this->attributes['name']];\n }\n }\n }", "private static function show_options_for_get_values_field( $form_fields, $field = array() )\n {\n }", "public function makeFieldList() {}", "function acf_get_select_input($attrs = array())\n{\n}", "protected function getInput()\n\t{\n\t\t$html = array();\n\n\t\t// Initialize some field attributes.\n\t\t$attr = 'class=\"chzn-custom-value' . (empty($this->class) ? '' : ' ' . $this->class) . '\" '\n\t\t\t\t. 'data-custom_group_text=\"' . 'Test1' . '\" '\n\t\t\t\t. 'data-no_results_text=\"' . Text::_('PLG_HIKASHOP_BFORDEREXPORT_COLUMN_CUSTOM') . '\" '\n\t\t\t\t. 'data-placeholder=\"' . Text::_('PLG_HIKASHOP_BFORDEREXPORT_COLUMN_TYPEORSELECT') . '\" ';\n\t\t$attr .= !empty($this->size) ? ' size=\"' . $this->size . '\"' : '';\n\t\t$attr .= $this->multiple ? ' multiple' : '';\n\t\t$attr .= $this->required ? ' required aria-required=\"true\"' : '';\n\t\t$attr .= $this->autofocus ? ' autofocus' : '';\n\n\t\t// To avoid user's confusion, readonly=\"true\" should imply disabled=\"true\".\n\t\tif ($this->readonly || $this->disabled)\n\t\t{\n\t\t\t$attr .= ' disabled=\"disabled\"';\n\t\t}\n\n\t\t// Initialize JavaScript field attributes.\n\t\t$attr .= !empty($this->onchange) ? ' onchange=\"' . $this->onchange . '\"' : '';\n\n\t\t// Get the field groups.\n\t\t$groups = (array) $this->getGroups();\n\n\t\t// Create a read-only list (no name) with a hidden input to store the value.\n\t\tif ($this->readonly)\n\t\t{\n\t\t\t$html[] = JHtml::_(\n\t\t\t\t'select.groupedlist', $groups, null,\n\t\t\t\tarray(\n\t\t\t\t\t'list.attr' => $attr, 'id' => $this->id, 'list.select' => $this->value, 'group.items' => null, 'option.key.toHtml' => false,\n\t\t\t\t\t'option.text.toHtml' => false,\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t// E.g. form field type tag sends $this->value as array\n\t\t\tif ($this->multiple && is_array($this->value))\n\t\t\t{\n\t\t\t\tif (!count($this->value))\n\t\t\t\t{\n\t\t\t\t\t$this->value[] = '';\n\t\t\t\t}\n\n\t\t\t\tforeach ($this->value as $value)\n\t\t\t\t{\n\t\t\t\t\t$html[] = '<input type=\"hidden\" name=\"' . $this->name . '\" value=\"' . htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . '\"/>';\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$html[] = '<input type=\"hidden\" name=\"' . $this->name . '\" value=\"' . htmlspecialchars($this->value, ENT_COMPAT, 'UTF-8') . '\"/>';\n\t\t\t}\n\t\t}\n\n\t\t// Create a regular list.\n\t\telse\n\t\t{\n\t\t\t$html[] = JHtml::_(\n\t\t\t\t'select.groupedlist', $groups, $this->name,\n\t\t\t\tarray(\n\t\t\t\t\t'list.attr' => $attr, 'id' => $this->id, 'list.select' => $this->value, 'group.items' => null, 'option.key.toHtml' => false,\n\t\t\t\t\t'option.text.toHtml' => false,\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\n\t\treturn implode($html);\n\t}", "public function getEditableFields() {\n\t\t$fieldsList = array(\n\t\t\tarray('name' => 'presence',\t\t\t'label' => 'Presence',\t\t\t'type' => 'radio'),\n\t\t);\n\n\t\t$fieldModelsList = array();\n\t\tforeach ($fieldsList as $fieldInfo) {\n\t\t\t$fieldModelsList[$fieldInfo['name']] = Settings_Joomlahosts_Field_Model::getInstanceByRow($fieldInfo);\n\t\t}\n\t\treturn $fieldModelsList;\n\t}", "function wppb_save_multiple_select_value( $field, $user_id, $request_data, $form_location ){\r\n\tif( $field['field'] == 'Select (Multiple)' ){\r\n\t\t$selected_values = wppb_process_multipl_select_value( $field, $request_data );\r\n\t\tupdate_user_meta( $user_id, $field['meta-name'], trim( $selected_values, ',' ) );\r\n\t}\r\n}", "function wppb_rf_epf_set_field_ids_on_field_select() {\r\n global $all_fields;\r\n $all_fields = get_option ( 'wppb_manage_fields', 'not_set' );\r\n\r\n // remove certain fields from the Field drop-down on edit profile form\r\n if( ( isset( $_GET['post_type'] ) && $_GET['post_type'] == 'wppb-epf-cpt' ) || ( isset( $_GET['post'] ) && get_post_type( absint( $_GET['post'] ) ) == 'wppb-epf-cpt' ) || ( isset( $_POST['meta'] ) && $_POST['meta'] == 'wppb_epf_fields' ) ) {\r\n foreach( $all_fields as $key => $field ) {\r\n\t\t\t$unwanted_fields = array( 'reCAPTCHA', 'Validation' );\r\n if( in_array( $field['field'], $unwanted_fields) ) {\r\n unset( $all_fields[$key] );\r\n }\r\n }\r\n $all_fields = array_values( $all_fields );\r\n }\r\n\r\n // remove certain fields from the Field drop-down on register form\r\n if( ( isset( $_GET['post_type'] ) && $_GET['post_type'] == 'wppb-rf-cpt' ) || ( isset( $_GET['post'] ) && get_post_type( absint( $_GET['post'] ) ) == 'wppb-rf-cpt' ) || ( isset( $_POST['meta'] ) && $_POST['meta'] == 'wppb_rf_fields' ) ) {\r\n foreach( $all_fields as $key => $field ) {\r\n if( $field['field'] == 'Default - Display name publicly as' ) {\r\n unset( $all_fields[$key] );\r\n }\r\n }\r\n $all_fields = array_values( $all_fields );\r\n }\r\n\r\n if( $all_fields !== 'not_set ') {\r\n\r\n if( !function_exists( 'wppb_rf_epf_set_field_id_select_option' ) ) {\r\n function wppb_rf_epf_set_field_id_select_option( $content, $field_id ){\r\n global $all_fields;\r\n $output = str_replace( '<option', '<option ' . 'data-id=\"' . $all_fields[$field_id]['id'] . '\"', $content );\r\n return $output;\r\n }\r\n }\r\n foreach($all_fields as $key => $value ) {\r\n add_filter('wck_select_wppb_epf_fields_field_option_' . $key, 'wppb_rf_epf_set_field_id_select_option', 10 ,2);\r\n add_filter('wck_select_wppb_rf_fields_field_option_' . $key, 'wppb_rf_epf_set_field_id_select_option', 10 ,2);\r\n }\r\n\r\n }\r\n}", "function get_name_select_list()\n\t{\n\t\treturn $this->get_name_select_edit();\n\t}", "public function provideEditableGridFields(array &$fields) {\n $contentTypes = [];\n $this()->extend('provideContentTypes', $contentTypes);\n\n $fields = array_merge(\n $fields,\n [\n self::FieldName => [\n 'title' => $this->getFieldLabel(),\n 'callback' => function($record, $column, $grid) use ($contentTypes) {\n return $this->makeDropdownField($contentTypes, $record->$column);\n }\n ]\n ]\n );\n }", "function get_field_list()\r\n\t{\r\n\t\t$fields = array();\r\n\r\n\t\tif (Authority::can('edit', 'admin/item/definition'))\r\n\t\t{\r\n\t\t\t$id_definition = $this->input->post('id_item_definition');\r\n\r\n\t\t\t$fields = $this->extend_field_model->get_lang_list(\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'parent' => 'item',\r\n\t\t\t\t\t'id_parent' => $id_definition\r\n\t\t\t\t),\r\n\t\t\t\tSettings::get_lang('default')\r\n\t\t\t);\r\n\r\n\t\t\t// Set type names\r\n\t\t\tforeach($fields as &$field)\r\n\t\t\t{\r\n\t\t\t\t$field['type_name'] = self::$_TYPE_NAMES[$field['type']];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//\r\n\t\t$this->template['id_item_definition'] = $id_definition;\r\n\t\t$this->template['fields'] = $fields;\r\n\r\n\t\t$this->output('item/definition/fields');\r\n\t}", "public function field_field_option_form( $field, $display, $values )\n {\n }", "function Field() {\n\t\t$size = '';\n\t\t$multiple = '';\n\t\t\n\t\tif($this->size) $size = \"size=\\\"$this->size\\\"\";\n\t\t\n\t\tif($this->multiple) {\n\t\t\t$multiple = \"multiple=\\\"multiple\\\"\";\n\t\t\t$this->name .= '[]';\n\t\t}\n\t\t\n\t\t$options = \"\";\n\t\t\n\t\t// We have an array of values\n\t\tif(is_array($this->value)){\n\t\t\t// Loop through and figure out which values were selected.\n\t\t\t\t\t\n\t\t\tforeach($this->getSource() as $value => $title) {\n\t\t\t\t// Loop through the array of values to find out if this value is selected.\n\t\t\t\t$selected = \"\";\n\t\t\t\tforeach($this->value as $v){\n\t\t\t\t\tif($value == $v) {\n\t\t\t\t\t\t$selected = \" selected=\\\"selected\\\"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$options .= \"<option$selected value=\\\"$value\\\">$title</option>\\n\";\n\t\t\t}\n\t\t}else{\n\t\t\t// Listbox was based a singlular value, so treat it like a dropdown.\n\t\t\tforeach($this->getSource() as $value => $title) {\n\t\t\t\t$selected = $value == $this->value ? \" selected=\\\"selected\\\"\" : \"\"; \n\t\t\t\t$options .= \"<option$selected value=\\\"$value\\\">$title</option>\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t$id = $this->id();\n\t\treturn \"<select $size $multiple name=\\\"$this->name\\\" id=\\\"$id\\\">$options</select>\";\n\t}", "function MakeSelectField($name,$values,$valuenames,$selected=\"\",$disableds=array(),$titles=array(),$title=\"\",$maxlen=0,$noincludedisableds=FALSE,$multiple=FALSE,$onchange=NULL,$options=array())\n{\n return\n $this->Htmls_Select\n (\n $name,$values,$valuenames,$selected,\n array\n (\n \"Disableds\" => $disableds,\n \"Titles\" => $titles,\n \"Title\" => $title,\n \"MaxLen\" => $maxlen,\n \"ExcludeDisableds\" => $noincludedisableds,\n \"Multiple\" => $multiple,\n \"OnChange\" => $onchange,\n ),\n $options\n );\n \n /* $selectedok=FALSE; */\n\n /* $options[ \"NAME\" ]=$name; */\n /* if (!empty($onchange)) { $options[ \"ONCHANGE\" ]=$onchange; } */\n /* if (!empty($title)) { $options[ \"TITLE\" ]=$title; } */\n /* if ($multiple) { $options[ \"MULTIPLE\" ]=\"\"; } */\n\n /* $select=\"\"; */\n /* foreach ($values as $n => $value) */\n /* { */\n /* $valuename=$valuenames[$n]; */\n /* $selectopt=array(); */\n /* if ( */\n /* count($values)==1 */\n /* || */\n /* $this->TestIfSelected($value,$values,$n,$selected) */\n /* ) */\n /* { */\n /* $selectopt[ \"SELECTED\" ]=\"\"; */\n /* $selectedok=TRUE; */\n /* } */\n\n /* $class=\"\"; */\n /* $disabled=FALSE; */\n /* if ( */\n /* !empty($disableds[$n]) */\n /* || */\n /* preg_match('/^disabled$/',$values[$n])) */\n /* { */\n /* $selectopt[ \"DISABLED\" ]=\"\"; */\n /* $values[ $n]=\"\"; */\n /* $class=\"disabled\"; */\n /* $disabled=TRUE; */\n /* } */\n\n /* if (isset($titles[ $n ])) { $selectopt[ \"TITLE\" ]=$titles[ $n ]; } */\n\n /* $valuename=html_entity_decode($valuename,ENT_QUOTES,\"UTF-8\"); */\n /* if ($maxlen>0 && strlen($valuename)>$maxlen) */\n /* { */\n /* $valuename=substr($valuename,0,$maxlen); */\n /* } */\n\n /* if (!$noincludedisableds || !$disabled) */\n /* { */\n /* if (!empty($class)) */\n /* { */\n /* $selectopt[ \"CLASS\" ]=$class; */\n /* } */\n\n /* $selectopt[ \"VALUE\" ]=$values[$n]; */\n /* $select.= */\n /* \" \". */\n /* $this->HtmlTags */\n /* ( */\n /* \"OPTION\", */\n /* $valuename, */\n /* $selectopt */\n /* ).\"\\n\"; */\n\n /* if ($this->Debug>=2) */\n /* { */\n /* $select.=\" [\".$values[$n].\"]\\n\"; */\n /* } */\n /* } */\n /* } */\n\n /* $select=$this->HtmlTags(\"SELECT\",\"\\n\".$select,$options).\"\\n\"; */\n\n /* if (!$selectedok && !empty($selected) && !is_array($selected)) */\n /* { */\n /* $this->AddMsg(\"Warning MakeSelectField: $name, Value: '$selected' undefined\"); */\n /* } */\n\n /* return \"\\n\".$select; */\n}", "public function edit()\n {\n // $logged_in = false;\n // if ($this->isLoggedIn()) {\n // $logged_in = true;\n // }\n \t$client_custom_fields = $this->Clients->getCustomFieldValues(1);\n return $this->set('client_custom_fields', $client_custom_fields);\n\n }", "function products_settings_field($settings, $value) { \n $attr = array(\"post_type\"=>\"product\", \"orderby\"=>\"name\", \"order\"=>\"asc\", 'posts_per_page' => -1);\n $categories = get_posts($attr); \n $data = '<input type=\"text\" value=\"'.$value.'\" name=\"'.$settings['param_name'].'\" class=\"wpb_vc_param_value wpb-input wpb-select vc_custom_select_custom_val '.$settings['param_name'].' '.$settings['type'].'\" id=\"vc_custom_select_custom_prod\">';\n $data .= '<div class=\"vc_custom_select_custom_wrapper\"><ul class=\"vc_custom_select_custom_vals\">';\n $insterted_vals = explode(',', $value);\n foreach($categories as $val) {\n if( in_array($val->ID, $insterted_vals) ) {\n $data .= '<li data-val=\"'.$val->ID.'\">'.$val->post_title.'<button>×</button></li>';\n }\n }\n $data .= '</ul>'; \n $data .= '<ul class=\"vc_custom_select_custom\">';\n foreach($categories as $val) {\n $selected = '';\n if( in_array($val->ID, $insterted_vals) ) {\n $selected = ' class=\"selected\"';\n }\n $data .= '<li' . $selected . ' data-val=\"'.$val->ID.'\">'.$val->post_title.'</li>';\n }\n $data .= '</ul></div>';\n return $data;\n}", "function getSelectFieldsValues($field_data) {\n \n $model = $this->getModel('comment_answers');\n \n $results = $model->getDataForView($field_data);\n \n foreach($results as $list) {\n $result = null;\n if($field_data == 'post_id') {\n $result_list[] = $list->post_id;\n }\n if($field_data == 'created_date') {\n $result_list[] = $list->created_date;\n }\n if($field_data == 'creator') {\n $result_list[] = $list->creator;\n }\n if($field_data == 'comment_id') {\n $result_list[] = $list->comment_id;\n }\n \n if($field_data == 'published') {\n $result_list[]= $list->published;\n }\n }\n \n //results are all the data from the selected column in the result_list array\n return $result_list;\n }", "function get_value_edit()\n\t{\n\t\treturn $this->value;\n\t}", "function render_field_select($field)\n {\n }", "public function getInputField($model, ICrugeField $field, $htmlOptions = array())\r\n {\r\n\r\n $className = get_class($model);\r\n\r\n $name = $className . \"[\" . $field->fieldname . \"]\";\r\n $htmlOpt = array(\r\n 'id' => $className . \"_\" . $field->fieldname\r\n ,\r\n 'size' => $field->fieldsize\r\n ,\r\n 'maxlength' => $field->maxlength\r\n ,\r\n 'rows' => 5\r\n ,\r\n 'cols' => $field->fieldsize\r\n );\r\n\r\n // caso listas: Listbox\r\n // se espera que venga cada valor que se pasara al <option></option>\r\n // venga en la forma \"VALUE, TEXT\"\r\n //\r\n $arOpt = array();\r\n if ($field->fieldtype == CRUGEFIELDTYPE_LISTBOX) {\r\n $arOpt = CrugeUtil::explodeOptions($field->predetvalue);\r\n $htmlOpt['rows'] = null;\r\n $htmlOpt['cols'] = null;\r\n $htmlOpt['size'] = null;\r\n $htmlOpt['maxlength'] = null;\r\n }\r\n \r\n $htmlOpt = array_merge($htmlOpt,$htmlOptions);\r\n\r\n // estos tipos definidos estan en CrugeUserManager\r\n\r\n switch ($field->fieldtype) {\r\n case CRUGEFIELDTYPE_TEXTBOX:\r\n return CHtml::textField($name, $field->getFieldValue(), $htmlOpt) . \"\\n\";\r\n case CRUGEFIELDTYPE_TEXTAREA:\r\n return CHtml::textArea($name, $field->getFieldValue(), $htmlOpt) . \"\\n\";\r\n case CRUGEFIELDTYPE_BOOLEAN:\r\n return CHtml::checkBox($name, $field->getFieldValue(), $htmlOpt) . \"\\n\";\r\n case CRUGEFIELDTYPE_LISTBOX:\r\n return CHtml::dropDownList(\r\n $name,\r\n $field->getFieldValue(),\r\n $arOpt,\r\n $htmlOpt\r\n ) . \"\\n\";\r\n }\r\n return null;\r\n }", "function create_field($field) {\n // create Field HTML\n ?>\n <ul class=\"acf-hl\" data-cols=\"3\">\n <li>\n <select name=\"<?php echo esc_attr($field['name']) ?>[country]\" data-select=\"countries\" value=\"<?php echo esc_attr($field['value']['country']) ?>\">\n <option value=\"\"><?php _e('País', 'acf-cities'); ?></option>\n <?php foreach($field['countries'] as $country): ?>\n <option value=\"<?php echo $country->Sigla; ?>\" <?php echo ($country->Sigla === $field['value']['country']) ? 'selected' : '' ?>><?php echo $country->Pais; ?></option>\n <?php endforeach; ?>\n </select>\n </li>\n\n <li>\n <select name=\"<?php echo esc_attr($field['name']) ?>[state]\" data-select=\"states\" data-value=\"<?php echo esc_attr($field['value']['state']) ?>\">\n <option value=\"\"><?php _e('Estado', 'acf-cities'); ?></option>\n </select>\n\n <input <?php echo (isset($field['value']['custom-state']) && $field['value']['custom-state'] == 1) ? 'name=\"'. esc_attr($field['name']) .'[state]\"' : ''; ?> type=\"text\" value=\"<?php echo esc_attr($field['value']['state']) ?>\" placeholder=\"Digite o estado\" class=\"state-input\" <?php echo (!isset($field['value']['custom-state']) || $field['value']['custom-state'] == 0) ? 'style=\"display: none\"' : ''; ?>>\n\n <label>\n <input type=\"hidden\" name=\"<?php echo esc_attr($field['name']) ?>[custom-state]\" value=\"0\">\n <input type=\"checkbox\" name=\"<?php echo esc_attr($field['name']) ?>[custom-state]\" <?php if (isset($field['value']['custom-state'])) checked($field['value']['custom-state'], 1); ?> value=\"1\" class=\"custom-state-toggler\">\n Não encontrei o estado\n </label>\n </li>\n\n <li>\n <select name=\"<?php echo esc_attr($field['name']) ?>[city]\" data-select=\"cities\" data-value=\"<?php echo isset($field['value']['city']) ? esc_attr($field['value']['city']) : ''; ?>\" <?php echo (isset($field['value']['custom-city']) && $field['value']['custom-city'] == 1) ? 'style=\"display: none\"' : ''; ?>>\n <option value=\"\"><?php _e('Cidade', 'acf-cities'); ?></option>\n </select>\n\n <input <?php echo (isset($field['value']['custom-city']) && $field['value']['custom-city'] == 1) ? 'name=\"'. esc_attr($field['name']) .'[city]\"' : ''; ?> type=\"text\" value=\"<?php echo esc_attr($field['value']['city']) ?>\" placeholder=\"Digite a cidade\" class=\"city-input\" <?php echo (!isset($field['value']['custom-city']) || $field['value']['custom-city'] == 0) ? 'style=\"display: none\"' : ''; ?>>\n\n <label>\n <input type=\"hidden\" name=\"<?php echo esc_attr($field['name']) ?>[custom-city]\" value=\"0\">\n <input type=\"checkbox\" name=\"<?php echo esc_attr($field['name']) ?>[custom-city]\" <?php if (isset($field['value']['custom-city'])) checked($field['value']['custom-city'], 1); ?> value=\"1\" class=\"custom-city-toggler\">\n Não encontrei a cidade\n </label>\n </li>\n </ul>\n <?php\n }", "function gridstack_field_field_multiple_value_form($field, $instance, $langcode, $items, &$form, &$form_state, $delta, $original_element) {\n $form['#submit'][] = 'gridstack_field_field_widget_form_submit';\n $field_elements = paragraphs_field_multiple_value_form($field, $instance, $langcode, $items, $form, $form_state, $delta, $original_element);\n // Use own theme function.\n $field_elements['#theme'] = 'gridstack_field_field_multiple_value_form';\n // Install Gridstack library on the page.\n drupal_add_library('gridstack_field', 'gridstack', FALSE);\n\n // .\n if ($form['nid']['#value']) {\n cache_set('grid_items' . session_id(), NULL, 'cache', REQUEST_TIME);\n $db_data = gridstack_field_load($form['nid']['#value']);\n cache_set('grid_items' . session_id(), $db_data->data, 'cache', CACHE_PERMANENT);\n }\n return $field_elements;\n}", "function populate_list_array($objname, $array_list, $value_array, $display_array, $defaultvalue=-1,$disable=false){\nGLOBAL $g_obj_select_default_text;\n?>\t\n<select name=\"<?php echo $objname; ?>\" <?php if ($disable == true){?> disabled=\"true\"<?php } ?> >\n\t<option selected=\"selected\" value=\"-1\"><?php echo $g_obj_select_default_text ?></option>\n\t<?php foreach ($array_list as $value) { ?><option <?php if( $defaultvalue == $value[$value_array]){ ?> selected=\"selected\"<?php } ?> value=\"<?php echo $value[$value_array]; ?>\"><?php echo $value[$display_array]; ?></option>\n\t<?php } //--end for ?>\n\n</select>\n\t\n<?php }", "function getInputValues();", "public function updateEditableFields() {\n\t\t$allowedFields = $this->config()->allowed_field_types;\n\t\tif ($allowedFields) {\n\t\t\t$fieldClasses = singleton('EditableFormField')->getEditableFieldClasses();\n\t\t\tforeach($fieldClasses as $fieldClass => $fieldTitle) {\n\t\t\t\tif (!in_array($fieldClass, $allowedFields)) {\n\t\t\t\t\tConfig::inst()->update($fieldClass, 'hidden', true);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Explicitely allow fields, so subclasses show up\n\t\t\tforeach($allowedFields as $fieldClass) {\n\t\t\t\tConfig::inst()->update($fieldClass, 'hidden', false);\n\t\t\t}\n\t\t}\n\t}", "public function getInputValues();", "function cmbPoNo($name1, $caption, $width = null) {\n $url = \"services/runCRUD.php?func=datasource&lookup=trx/veh_prh\";\n //remotecombobox($name,$caption,180,$url,'wrhs_code','wrhs_name');\n $field = array\n (\n array(\"po_date\", \"Date\", 220, 'formatDate'),\n array(\"po_no\", \"Code\", 100),\n );\n cmbGridSingle($name1, $caption, $url, $field, $width);\n}", "function edit(){\n global $wpdb;\n global $DOPBSP;\n \n $id = $_POST['id'];\n $field = $_POST['field'];\n $value = $_POST['value'];\n $language = $_POST['language'];\n \n if ($field == 'label'){\n $value = str_replace(\"\\n\", '<<new-line>>', $value);\n $value = str_replace(\"\\'\", '<<single-quote>>', $value);\n $value = utf8_encode($value);\n \n $field_data = $wpdb->get_row($wpdb->prepare('SELECT * FROM '.$DOPBSP->tables->forms_fields_options.' WHERE id=%d',\n $id));\n \n $translation = json_decode($field_data->translation);\n $translation->$language = $value;\n \n $value = json_encode($translation);\n $field = 'translation';\n }\n \n $select_option = $wpdb->get_row($wpdb->prepare('SELECT * FROM '.$DOPBSP->tables->forms_fields_options.' WHERE id=%d',\n $id));\n $wpdb->update($DOPBSP->tables->forms_fields_options, array($field => $value), \n array('id' => $_POST['id']));\n \n echo $select_option->field_id;\n \n die();\n }", "function inbound_cf7_lead_panel_form($post) {\n\n /*get the lists the user selected on the last edit of the form*/\n $previously_set_lists = get_post_meta($post->id(), '_inbound_cf7_lead_list_data');\n /*get the available lists*/\n $lists = Inbound_Leads::get_lead_lists_as_array();\n ?>\n\n <div id=\"inbound-cf7-lead-panel-form\" style=\"width: 100%;\">\n <h3><?php echo __('InboundNow Lead Lists', 'inbound-pro'); ?></h3>\n <p><?php echo __('Select the lists you would like to map leads to', 'inbound-pro'); ?></p>\n <select class=\"inbound-cf7-list-select\" name=\"inbound-cf7-lead-list-select[]\" multiple=\"true\" style=\"width: 50%;\"><?php\n\n /*Go through the list array one list at a time*/\n foreach ($lists as $list_id => $list_name) {\n\n /*If the list is in the second array, select the list*/\n if (in_array($list_id, $previously_set_lists[0])) {\n echo '<option selected=\"true\" value=\"' . $list_id . '\">' . $list_name . '</option>';\n } else {\n\n /*otherwise, just output the option*/\n echo '<option value=\"' . $list_id . '\">' . $list_name . '</option>';\n }\n }\n ?>\n </select>\n </div>\n <?php\n\n}", "public function field_callback($args)\n {\n $multiple = false;\n extract($args);\n $options = get_option($setting_id);\n switch($args['type'])\n {\n case 'text':\n {\n $value = isset($options[$field_id]) ? $options[$field_id] : '';\n ?>\n <input class='text' type='text' id='<?php echo $setting_id; ?>' name='<?php echo $setting_id; ?>[<?php echo $field_id; ?>]' value='<?php echo $value; ?>' />\n <?php\n break;\n }\n case 'select':\n {\n ?>\n <select id=\"<?php echo $setting_id; ?>\" name=\"<?php echo $setting_id; ?>[<?php echo $field_id; ?>][]\" <?php if($multiple === true): ?>multiple<?php endif; ?>>\n <?php\n foreach($choices as $id => $name):?>\n <?php if(isset($options[$field_id]) && is_array($options[$field_id]) && in_array($id,$options[$field_id])): ?>\n <option value=\"<?php echo $id; ?>\" selected=\"selected\"><?php echo $name; ?></option>\n <?php else: ?>\n <option value=\"<?php echo $id; ?>\"><?php echo $name; ?></option>\n <?php endif; ?>\n <?php endforeach; ?>\n </select>\n <?php\n break;\n }\n case 'upload':\n {\n ?>\n <input class='file' type='file' id='<?php echo $setting_id; ?>' name='<?php echo $setting_id; ?>[<?php echo $field_id; ?>]' />\n <?php\n break;\n }\n }\n }", "public function getDataInputField();", "public function getSelectableField($fieldName);", "function acf_select_input($attrs = array())\n{\n}", "function get_field_list()\n\t{\n\t\t$fields = array();\n\n\n\t\t$this->xhr_output($fields);\n\t}", "public function getFormCustomFields(){\n\t}", "function get_value_list()\n\t{\n\t\treturn $this->value;\n\t}", "public function optionsCallback($strField);", "function save_c_p_tab_field($field){\n if (isset($_POST[$field['id']])){\n $option_value = $_POST[$field['id']];\n update_option($field['id'],$option_value);\n }else{\n delete_option($field['id']);\n }\n }", "function custom_field_tag($name, $custom_value) {\t\n $custom_field = $custom_value['CustomField'];\n $field_name = 'custom_field_values.'.$custom_value['CustomField']['id'];\n\n switch($custom_field['field_format']) {\n case \"date\" :\n $out = $this->Form->input($field_name, array('type'=>'text', 'size'=>10, 'label'=>false, 'div'=>false)); \n // TODO : calender \n // $out .= calendar_for(field_id)\n break;\n case \"text\" :\n $out = $this->Form->input($field_name, array('type'=>'textarea', 'rows'=>3, 'style'=> 'width:90%', 'label'=>false, 'div'=>false ));\n break;\n case \"bool\" :\n $out = $this->Form->input($field_name, array('type'=>'checkbox', 'label'=>false, 'div'=>false));\n break;\n case \"list\" :\n $empty = true;\n $selected = null;\n $type = 'select';\n if($custom_field['is_required']) {\n $empty = false;\n if(empty($custom_field['default_value'])) {\n $options[] = '--- '.__('Please Select').' ---';\n } elseif(empty($this->request->data['custom_field_values'][$custom_value['CustomField']['id']])) {\n $selected = $custom_field['default_value'];\n }\n }\n App::Import('vendor', 'georgious-cakephp-yaml-migrations-and-fixtures/spyc/spyc');\n $list = Spyc::YAMLLoad($custom_value['CustomField']['possible_values']);\n $options = array();\n if(!empty($list)) {\n foreach($list as $item) {\n $options[$item] = $item;\n }\n }\n \n $out = $this->Form->input($field_name, array_merge(compact('type', 'empty', 'selected', 'options'), array('label'=>false, 'div'=>false)));\n break;\n default :\n $out = $this->Form->input($field_name, array('type'=>'text', 'label'=>false, 'div'=>false));\n break;\n }\n return $out;\n }", "public function edit_field_html( array $raw_properties = array() ) {\r\n\t\t\t// {@link bp_the_profile_field_options()}.\r\n\t\t\tif ( isset( $raw_properties['user_id'] ) ) {\r\n\t\t\t\t$user_id = (int) $raw_properties['user_id'];\r\n\t\t\t\tunset( $raw_properties['user_id'] );\r\n\t\t\t} else {\r\n\t\t\t\t$user_id = bp_displayed_user_id();\r\n\t\t\t}\r\n\t\r\n\t\t\t$r = bp_parse_args( $raw_properties, array(\r\n\t\t\t\t'multiple' => 'multiple',\r\n\t\t\t\t'id' => bp_get_the_profile_field_input_name() . '[]',\r\n\t\t\t\t'name' => bp_get_the_profile_field_input_name() . '[]',\r\n\t\t\t) ); \r\n\t\t\t$r['class'] = $r['class'] . ' form-control';\r\n\t\t\t?>\r\n\t\r\n\t\t\t<div class=\"form-group\">\r\n\t\t\t\t<label class=\"control-label col-sm-3\" for=\"<?php bp_the_profile_field_input_name(); ?>[]\"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'firmasite' ); ?><?php endif; ?></label>\r\n\t\t\t\t<div class=\"col-sm-9\">\r\n\t\t\t\t\t<?php do_action( bp_get_the_profile_field_errors_action() ); ?>\r\n\t\t\t\r\n\t\t\t\t\t<select <?php echo $this->get_edit_field_html_elements( $r ); ?>>\r\n\t\t\t\t\t\t<?php bp_the_profile_field_options( array(\r\n\t\t\t\t\t\t\t'user_id' => $user_id\r\n\t\t\t\t\t\t) ); ?>\r\n\t\t\t\t\t</select>\r\n\t\t\t\r\n\t\t\t\t\t<?php if ( ! bp_get_the_profile_field_is_required() ) : ?>\r\n\t\t\t\r\n\t\t\t\t\t\t<a class=\"clear-value\" href=\"javascript:clear( '<?php echo esc_js( bp_get_the_profile_field_input_name() ); ?>[]' );\">\r\n\t\t\t\t\t\t\t<?php esc_html_e( 'Clear', 'firmasite' ); ?>\r\n\t\t\t\t\t\t</a>\r\n\t\t\t\r\n\t\t\t\t\t<?php endif; ?>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t<?php\r\n\t\t}", "public function GetPickListFields(Vtiger_Request $request)\n\t{\n\t\t$module = $request->get('sourceModule');\n\n\t\t$fieldList = Settings_PickListDependency_Module_Model::getAvailablePicklists($module);\n\n\t\t$response = new Vtiger_Response();\n\t\t$response->setResult($fieldList);\n\t\t$response->emit();\n\t}", "public function getFormFields() {\n $fields = array(\n 'shapes[]' => array(\n 'type' => 'select',\n 'multiplicate' => '5',\n 'values' => array(\n '-' => '-',\n 'cube' => 'cube',\n 'round' => 'round',\n )\n ),\n 'width[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Width'\n ),\n 'higth[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Higth'\n ),\n 'x_position[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'X position'\n ),\n 'y_position[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Y position'\n ),\n 'red[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Color red',\n ),\n 'green[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Color green',\n ),\n 'blue[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Color blue',\n ),\n 'size[]' => array(\n 'type' => 'text',\n 'multiplicate' => '1',\n 'label' => 'Size holst'\n ),\n 'enable[]' => array(\n 'type' => 'checkbox',\n 'multiplicate' => '5',\n 'label' => 'enable'\n )\n );\n return $fields;\n }", "function my_epl_add_single_bedrooms_search_dropdown_field($fields) {\n\tforeach($fields as $field_key => &$field) {\n\t if( in_array($field['meta_key'], array('property_bedrooms_min','property_bedrooms_max') ) ) {\n\t\t\tunset($fields[$field_key]);\n\t }\n\t}\n\t$fields[] =array(\n\t\t'key'\t\t\t=>\t'search_bed',\n\t\t//'multiple'\t\t=>\ttrue,\n\t\t'meta_key'\t\t=>\t'property_bedrooms',\n\t\t'label'\t\t\t=>\t__('Bedrooms','epl'),\n\t\t'type'\t\t\t=>\t'select',\n\t\t'option_filter'\t\t=>\t'property_bedrooms',\n\t\t'options'\t\t=>\tarray(\n\t\t\t\t\t\t\t'studio'\t=> 'Studio',\n\t\t\t\t\t\t\t'1'\t\t=> '1',\n\t\t\t\t\t\t\t'2'\t\t=> '2',\n\t\t\t\t\t\t\t'3'\t\t=> '3',\n\t\t\t\t\t\t\t'4'\t\t=> '4',\n\t\t\t\t\t\t\t'5'\t\t=> '5',\n\t\t),\n\t\t'option_type' => 'range', // provide range of option instead of option array\n\t\t'query'\t\t\t=>\tarray(\n\t\t\t\t\t\t\t'query'\t\t=>\t'meta',\n\t\t\t\t\t\t\t'compare'\t=>\t'EQUALS',\n\t\t\t\t\t\t\t'type'\t\t=>\t'numeric'\n\t\t),\n\t\t'class'\t\t\t=>\t'epl-search-row-full',\n\t\t'order'\t\t\t=> 160\n\t);\n\treturn $fields;\n}", "private function setAutofillFields() {\n foreach (static::getFields() as $field_name => $field) {\n if ($field instanceof AutofillField) {\n $this->values[$field_name] = $field->fill();\n }\n }\n }", "public function field_callback($field){\n\t\t\t$value = get_option($field['id']);\n\t\t\tswitch($field['type']){\n\t\t\t\tcase 'color':\n\t\t\t\t\tprintf('<input name=\"%1$s\" id=\"%1$s\" type=\"text\" value=\"%2$s\" class=\"colorpicker-field\" />',\n\t\t\t\t\t\t$field['id'],\n\t\t\t\t\t\tsanitize_hex_color($value)\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'checkbox':\n\t\t\t\t\tprintf('<input name=\"%1$s\" id=\"%1$s\" type=\"checkbox\" value=\"1\" %3$s />',\n\t\t\t\t\t\t$field['id'],\n\t\t\t\t\t\tsanitize_hex_color($value),\n\t\t\t\t\t \tchecked($value, true, false)\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tprintf('<input name=\"%1$s\" id=\"%1$s\" type=\"%2$s\" value=\"%3$s\" />',\n\t\t\t\t\t\t$field['id'],\n\t\t\t\t\t\t$field['type'],\n\t\t\t\t\t\tesc_attr($value)\n\t\t\t\t\t);\n\t\t\t}\n\t\t\tif( array_key_exists('desc', $field ) && $field['desc'] ){\n\t\t\t\tprintf('<p class=\"description\">%s </p>', $field['desc']);\n\t\t\t}\n\t\t}", "function imbaf_properties_create_add_fields(){\n ?>\n <div class=\"form-field\">\n <label for=\"term_meta[imbaf_property_type]\">Typ</label>\n\n <select name=\"term_meta[imbaf_property_type]\">\n\n <?php\n\n foreach($this -> property_types as $property){\n\n ?> <option style=\"width:100%;\" value=\"<?php echo $property['value']; ?>\"><?php echo $property['label']; ?></option> <?php\n\n }\n\n\n ?>\n </select>\n\n <p class=\"description\"><?php _e('Vergleichswert-Typ','imb_affiliate'); ?></p>\n\n\n\n <label for=\"term_meta[imbaf_property_icon]\">Icon</label>\n <input type=\"text\" name=\"term_meta[imbaf_property_icon]\">\n\n <p class=\"description\"><?php _e('Font Awesome Icon','imb_affiliate'); ?></p>\n\n\n <label for=\"term_meta[imbaf_property_prefix]\"><?php _e('Präfix','imb_affiliate'); ?></label>\n <input type=\"text\" name=\"term_meta[imbaf_property_prefix]\">\n\n <p class=\"description\"><?php _e('Vorgestellter Wert (ca.)','imb_affiliate'); ?></p>\n\n <label for=\"term_meta[imbaf_property_suffix]\"><?php _e('Suffix','imb_affiliate'); ?></label>\n <input type=\"text\" name=\"term_meta[imbaf_property_suffix]\">\n <p class=\"description\"><?php _e('Nachgestellter Wert (z.B. kg, MhZ etc.)','imb_affiliate'); ?></p>\n\n\n\n </div>\n <?php\n\n\n }", "public function providerFieldValues()\n {\n return [\n ['non_existent_field', []],\n ['empty_field', []],\n ['empty_field_2', []],\n [\n 'acf_value_field',\n [\n ['test-1' => 'test 1'],\n ['test-1' => 'test 2'],\n ['test-1' => 'test 3'],\n ],\n ],\n [\n 'acf_option_field',\n [\n [\n 'label' => 'test 1',\n 'slug' => 'test-1',\n ],\n [\n 'label' => 'test 2',\n 'slug' => 'test-2',\n ],\n ],\n ],\n ];\n }", "public function customFieldValues()\n {\n return $this->morphMany(\\VentureDrake\\LaravelCrm\\Models\\FieldValue::class, 'custom_field_valueable');\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "function render_field_settings($field)\n {\n }", "public static function getValues($fieldName)\n\t{\n\t\tif (\\App\\Cache::has('Picklist::getValues', $fieldName)) {\n\t\t\treturn \\App\\Cache::get('Picklist::getValues', $fieldName);\n\t\t}\n\t\t$primaryKey = static::getPickListId($fieldName);\n\t\t$dataReader = (new \\App\\Db\\Query())\n\t\t\t->from(\"vtiger_$fieldName\")\n\t\t\t->orderBy('sortorderid')\n\t\t\t->createCommand()->query();\n\t\t$values = [];\n\t\twhile ($row = $dataReader->read()) {\n\t\t\t$row['picklistValue'] = \\App\\Purifier::decodeHtml(\\App\\Purifier::decodeHtml($row[$fieldName]));\n\t\t\t$row['picklistValueId'] = $row[static::getPickListId($fieldName)];\n\t\t\t$values[$row[$primaryKey]] = $row;\n\t\t}\n\t\t\\App\\Cache::save('Picklist::getValues', $fieldName, $values);\n\t\treturn $values;\n\t}", "public function optionsdemo_field_callback( $field ) {\n\t\t\t$option_name = $field['option_name'];\n\t\t\t$option = get_option( $option_name );\n\t\t\t$value = isset( $option[ $field['id'] ] ) ? $option[ $field['id'] ] : '';\n\t\t\t\n\t\t\tswitch ( $field['type'] ) {\n\t\t\t\t\n\t\t\t\tcase 'file':\n\t\t\t\t\t\n\t\t\t\t\techo '<div class=\"optionsdemo-warp\">';\n\t\t\t\t\tprintf( '<input id=\"%1$s-%2$s\" type=\"text\" class=\"optionsdemo-input\" name=\"%1$s[%2$s]\" value=\"%3$s\"/>',\n\t\t\t\t\t\t$option_name,\n\t\t\t\t\t\t$field['id'],\n\t\t\t\t\t\t$value\n\t\t\t\t\t);\n\t\t\t\t\tprintf( '<input type=\"button\" class=\"button-primary optionsdemo-btn \" value=\"Insert Image\"/>' );\n\t\t\t\t\t\n\t\t\t\t\techo '</div>';\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// Multiple select render\n\t\t\t\tcase 'multiple':\n\t\t\t\t\t\n\t\t\t\t\t$countries = $field['countries'];\n\t\t\t\t\t\n\t\t\t\t\tprintf( '<select id=\"%1$s-%2$s\" name=\"%1$s[%2$s][]\" multiple=\"%3$s\">',\n\t\t\t\t\t\t$option_name,\n\t\t\t\t\t\t$field['id'],\n\t\t\t\t\t\t$field['type']\n\t\t\t\t\t);\n\t\t\t\t\t\n\t\t\t\t\tforeach ( $countries as $key => $country ) {\n\t\t\t\t\t\t$selected = '';\n\t\t\t\t\t\tif ( is_array( $value ) && in_array( $key, $value ) ) {\n\t\t\t\t\t\t\t$selected = 'selected';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tprintf( '<option value=\"%1$s\" %2$s >%3$s</option>',\n\t\t\t\t\t\t\t$key,\n\t\t\t\t\t\t\t$selected,\n\t\t\t\t\t\t\t$country\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\techo \"</select>\";\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t// Select filed render\n\t\t\t\tcase 'select':\n\t\t\t\t\t\n\t\t\t\t\t$countries = $field['countries'];\n\t\t\t\t\tprintf( '<select id=\"%1$s-%2$s\" name=\"%1$s[%2$s]\">',\n\t\t\t\t\t\t$option_name,\n\t\t\t\t\t\t$field['id']\n\t\t\t\t\t);\n\t\t\t\t\t\n\t\t\t\t\tforeach ( $countries as $country ) {\n\t\t\t\t\t\t$selected = '';\n\t\t\t\t\t\tif ( $value == $country ) {\n\t\t\t\t\t\t\t$selected = 'selected';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tprintf( '<option value=\"%1$s\" %2$s >%3$s</option>',\n\t\t\t\t\t\t\t$country,\n\t\t\t\t\t\t\t$selected,\n\t\t\t\t\t\t\t$country\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t// Radio filed render\n\t\t\t\tcase 'radio':\n\t\t\t\t\t\n\t\t\t\t\t$conditions = $field['conditions'];\n\t\t\t\t\t\n\t\t\t\t\tforeach ( $conditions as $condition ) {\n\t\t\t\t\t\t$selected = '';\n\t\t\t\t\t\tif ( $value == $condition ) {\n\t\t\t\t\t\t\t$selected = 'checked';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tprintf( '<input id=\"%1$s-%2$s\" name=\"%1$s[%2$s]\" type=\"%3$s\" value=\"%4$s\" %5$s />%6$s<br>',\n\t\t\t\t\t\t\t$option_name,\n\t\t\t\t\t\t\t$field['id'],\n\t\t\t\t\t\t\t$field['type'],\n\t\t\t\t\t\t\t$condition,\n\t\t\t\t\t\t\t$selected,\n\t\t\t\t\t\t\t$condition\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tcase 'checkbox':\n\t\t\t\t\t\n\t\t\t\t\t$countries = $field['countries'];\n\t\t\t\t\t\n\t\t\t\t\tforeach ( $countries as $key => $country ) {\n\t\t\t\t\t\t$checked = '';\n\t\t\t\t\t\tif ( is_array( $value ) && in_array( $key, $value ) ) {\n\t\t\t\t\t\t\t$checked = 'checked';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tprintf( '<input id=\"%1$s-%2$s\" name=\"%1$s[%2$s][%4$s]\" type=\"%3$s\" value=\"%4$s\" %5$s />%6$s<br>',\n\t\t\t\t\t\t\t$option_name,\n\t\t\t\t\t\t\t$field['id'],\n\t\t\t\t\t\t\t$field['type'],\n\t\t\t\t\t\t\t$key,\n\t\t\t\t\t\t\t$checked,\n\t\t\t\t\t\t\t$country,\n\t\t\t\t\t\t\t$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\n\t\t\t\t\n\t\t\t\tcase 'textarea':\n\t\t\t\t\t\n\t\t\t\t\tprintf( '<textarea name=\"%1$s[%2$s]\" id=\"%1$s-%2$s\" placeholder=\"%3$s\" rows=\"5\" cols=\"50\">%4$s</textarea>',\n\t\t\t\t\t\t$option_name,\n\t\t\t\t\t\t$field['id'],\n\t\t\t\t\t\tisset( $field['placeholder'] ) ? $field['placeholder'] : '',\n\t\t\t\t\t\t$value\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tcase 'url':\n\t\t\t\t\t\n\t\t\t\t\tprintf( '<input name=\"%1$s[%2$s]\" id=\"%1$s-%2$s\" type=\"%3$s\" placeholder=\"%4$s\" value=\"%5$s\"/>',\n\t\t\t\t\t\t$option_name,\n\t\t\t\t\t\t$field['id'],\n\t\t\t\t\t\t$field['type'],\n\t\t\t\t\t\tisset( $field['placeholder'] ) ? $field['placeholder'] : '',\n\t\t\t\t\t\t$value\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 'number':\n\t\t\t\t\t\n\t\t\t\t\tprintf( '<input name=\"%1$s[%2$s]\" id=\"%1$s-%2$s\" type=\"%3$s\" placeholder=\"%4$s\" value=\"%5$s\" min=\"%6$s\" max=\"%7$s\"/>',\n\t\t\t\t\t\t$option_name,\n\t\t\t\t\t\t$field['id'],\n\t\t\t\t\t\t$field['type'],\n\t\t\t\t\t\tisset( $field['placeholder'] ) ? $field['placeholder'] : '',\n\t\t\t\t\t\t$value,\n\t\t\t\t\t\t$field['min'],\n\t\t\t\t\t\t$field['max']\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 'password':\n\t\t\t\t\t\n\t\t\t\t\tprintf( '<input name=\"%1$s[%2$s]\" id=\"%1$s-%2$s\" type=\"%3$s\" placeholder=\"%4$s\" value=\"%5$s\"/>',\n\t\t\t\t\t\t$option_name,\n\t\t\t\t\t\t$field['id'],\n\t\t\t\t\t\t$field['type'],\n\t\t\t\t\t\tisset( $field['placeholder'] ) ? $field['placeholder'] : '',\n\t\t\t\t\t\t$value\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 'email':\n\t\t\t\t\t\n\t\t\t\t\tprintf( '<input name=\"%1$s[%2$s]\" id=\"%1$s-%2$s\" type=\"%3$s\" placeholder=\"%4$s\" value=\"%5$s\"/>',\n\t\t\t\t\t\t$option_name,\n\t\t\t\t\t\t$field['id'],\n\t\t\t\t\t\t$field['type'],\n\t\t\t\t\t\tisset( $field['placeholder'] ) ? $field['placeholder'] : '',\n\t\t\t\t\t\t$value\n\t\t\t\t\t);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\t\n\t\t\t\t\tprintf( '<input name=\"%1$s[%2$s]\" id=\"%1$s-%2$s\" type=\"%3$s\" placeholder=\"%4$s\" value=\"%5$s\"/>',\n\t\t\t\t\t\t$option_name,\n\t\t\t\t\t\t$field['id'],\n\t\t\t\t\t\t$field['type'],\n\t\t\t\t\t\tisset( $field['placeholder'] ) ? $field['placeholder'] : '',\n\t\t\t\t\t\t$value\n\t\t\t\t\t);\n\t\t\t}\n\t\t\t//End Switch case\n\t\t}", "public function setEditable($value);", "function ajax_render_field_settings()\n {\n }", "protected function setDbalInputFieldsToRender() {}", "function wp_list_pluck($input_list, $field, $index_key = \\null)\n {\n }", "function ninja_forms_list_field_type_dropdown( $selected ){\r\n\t$output = '<option value=\"\" disabled>' . __( 'List', 'ninja-forms-style' ) . '</option>';\r\n\r\n\tif ( $selected == '_list-dropdown' ) {\r\n\t\t$select = 'selected=\"selected\"';\r\n\t} else {\r\n\t\t$select = '';\r\n\t}\r\n\t$output .= '<option value=\"_list-dropdown\" '.$select.'>&nbsp;&nbsp;&nbsp;&nbsp;' . __( 'Dropdown (Select)', 'ninja-forms-style' ) . '</option>';\r\n\r\n\tif ( $selected == '_list-radio' ) {\r\n\t\t$select = 'selected=\"selected\"';\r\n\t} else {\r\n\t\t$select = '';\r\n\t}\r\n\t$output .= '<option value=\"_list-radio\" '.$select.'>&nbsp;&nbsp;&nbsp;&nbsp;' . __( 'Radio', 'ninja-forms-style' ) . '</option>';\r\n\r\n\tif ( $selected == '_list-checkbox' ) {\r\n\t\t$select = 'selected=\"selected\"';\r\n\t} else {\r\n\t\t$select = '';\r\n\t}\r\n\t$output .= '<option value=\"_list-checkbox\" '.$select.'>&nbsp;&nbsp;&nbsp;&nbsp;' . __( 'Checkboxes', 'ninja-forms-style' ) . '</option>';\r\n\r\n\tif ( $selected == '_list-multi' ) {\r\n\t\t$select = 'selected=\"selected\"';\r\n\t} else {\r\n\t\t$select = '';\r\n\t}\r\n\t$output .= '<option value=\"_list-multi\" '.$select.'>&nbsp;&nbsp;&nbsp;&nbsp;' . __( 'Multi-Select', 'ninja-forms-style' ) . '</option>';\r\n\r\n\treturn $output;\r\n}", "function render_field_settings( $field )\n {\n\t\t\t$this->create_options( $field );\n\t\t}", "function dhl_parcel_textbox($reference_field_data, $is_editable) {\n if($is_editable ){\n ?>\n <input id=\"order_dhl_reference_field\" name='dhl_reference_field' type='text' maxlength=\"35\" value='<?php echo esc_attr($reference_field_data) ?>'>\n <button class=\"button wc-reload\"><span>Apply</span></button>\n <?php\n } else {\n ?>\n <input id=\"order_dhl_reference_field\" name='dhl_reference_field' style=\"width:100%\" type='text' value='<?php echo esc_attr($reference_field_data) ?>' readonly>\n <?php\n }\n }", "function setfield( $field_name, $options ) {\n\n//if( $this->debug ) {\n//print \"<pre>\";\n//print \"Options:\\n-----------------------------\\n\";\n//print_r( $options );\n//print $options['name'];\n//print $options['value'];\n//print \"\\n--------------------------------------\\n\";\n//print \"</pre>\";\n//}\n\n/*\n Options (to this function, not an HTML menu option) is an associative array, which gives\n you great flexibility in setting any number\n of options you want.\n \n\tarray(\n\t\t'name' => 'email',\n\t\t'value'\t=> '[email protected]',\n\t\t'label' => 'Email Address',\n\t\t'required' => 1\n\t\t);\n */\n \n$this->fields[$field_name]['name'] = ( $options['name'] ) ? $options['name'] : '';\n\n$this->fields[$field_name]['value'] = ( $options['value'] )\t? $options['value'] : '';\n\nif( $this->debug ) {\nprint \"<pre>\";\nprint \"Value (option): \" . $options['value'] . \"\\n\";\nprint \"Value: \" . $this->fields[$field_name]['value'] . \"\\n\";\nprint \"</pre>\";\n}\n\n$this->fields[$field_name]['label'] = ( $options['label'] )\t? $options['label'] : '';\n\n$this->fields[$field_name]['required'] = ( $options['required'] ) ? $options['required'] : '';\n\n/*\nthe short circuit are a little space saving, but not too much, perl is much more elegant\nthis might be clearest\n \tif( $options['name'] ) {\n\t\t$this->fields[$field_name][name] = $options['name'];\n\t}\n\tif( $options['value'] ) {\n\t\t$this->fields[$field_name][value] = $options['name']\n\t}\n \tif( $options['name'] ) {\n\t\t$this->fields[$field_name][label] = $options['name']\n\t}\n\tif( $options['name'] ) {\n\t\t$this->fields[$field_name][is_required] = $options['name']\n\t}\n \tif( $options['name'] ) {\n\t\t$this->fields[$field_name][invalid] = $options['name']\n\t}\n*/\n\t//$this->fields[$field_name][error] ???\n\n}", "function _generateSelection()\n {\n $i = 0;\n foreach ($_POST as $key=>$value) {\n echo \"<input type='hidden' name=$key value=$value required>\";\n echo \"<div class='form-group'>\";\n if (isset($value) && $this->\n _childexists($value, $this->_getRubriekFromDb())) {\n echo $this->_generateRubriekVerkoopList($value, $this->_getRubriekFromDb(), \"subrubriek\" . $i);\n echo \"<script type='text/javascript'>\n document.getElementById('$key').disabled = true;\n </script>\";\n }\n echo \"</div>\";\n echo \"<script type='text/javascript'>\n document.getElementById('$key').value= $value \n </script>\";\n $i++;\n }\n }", "protected function populate_value()\n {\n }" ]
[ "0.61062753", "0.60052335", "0.59898674", "0.57769585", "0.577446", "0.57639956", "0.57491094", "0.5740771", "0.5736765", "0.5728808", "0.56998914", "0.5661264", "0.5645558", "0.56432754", "0.5628496", "0.562299", "0.56180054", "0.559701", "0.5592736", "0.5591101", "0.55679536", "0.5564852", "0.5539534", "0.5539001", "0.5534721", "0.55233675", "0.54913306", "0.54848903", "0.54822725", "0.54702276", "0.54480934", "0.5439605", "0.54195946", "0.54098475", "0.53720284", "0.5360747", "0.5358682", "0.53576005", "0.53454953", "0.5340886", "0.532508", "0.5320703", "0.53202146", "0.5319216", "0.5318238", "0.531702", "0.5315931", "0.53149617", "0.52972627", "0.5297244", "0.5269674", "0.5260536", "0.5257691", "0.52533793", "0.52486646", "0.524495", "0.5240291", "0.522873", "0.5227749", "0.5227749", "0.5227749", "0.5227749", "0.5227749", "0.5227749", "0.5227749", "0.5227749", "0.5227749", "0.5227749", "0.5227749", "0.5227749", "0.5227749", "0.5227749", "0.5227749", "0.5227749", "0.5227749", "0.5227749", "0.5227749", "0.5227749", "0.5227749", "0.5227749", "0.5227749", "0.5227749", "0.5227749", "0.5227749", "0.5227749", "0.5227749", "0.5227749", "0.5227749", "0.5227749", "0.52268", "0.52191335", "0.52125484", "0.5209264", "0.520503", "0.5204462", "0.52037084", "0.5200861", "0.5196913", "0.51920384", "0.51913506", "0.5189502" ]
0.0
-1
Function which will give the non editable picklist values for a field.
public static function getNonEditableValues($fieldName) { if (\App\Cache::has('Picklist::getNonEditableValues', $fieldName)) { return \App\Cache::get('Picklist::getNonEditableValues', $fieldName); } $primaryKey = static::getPickListId($fieldName); $dataReader = (new \App\Db\Query())->select([$primaryKey, $fieldName]) ->from("vtiger_$fieldName") ->where(['presence' => 0]) ->createCommand()->query(); $values = []; while ($row = $dataReader->read()) { $values[$row[$primaryKey]] = \App\Purifier::decodeHtml(\App\Purifier::decodeHtml($row[$fieldName])); } \App\Cache::save('Picklist::getNonEditableValues', $fieldName, $values); return $values; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSelectDataFields();", "private static function show_options_for_get_values_field( $form_fields, $field = array() )\n {\n }", "function wppb_rf_epf_set_field_ids_on_field_select() {\r\n global $all_fields;\r\n $all_fields = get_option ( 'wppb_manage_fields', 'not_set' );\r\n\r\n // remove certain fields from the Field drop-down on edit profile form\r\n if( ( isset( $_GET['post_type'] ) && $_GET['post_type'] == 'wppb-epf-cpt' ) || ( isset( $_GET['post'] ) && get_post_type( absint( $_GET['post'] ) ) == 'wppb-epf-cpt' ) || ( isset( $_POST['meta'] ) && $_POST['meta'] == 'wppb_epf_fields' ) ) {\r\n foreach( $all_fields as $key => $field ) {\r\n\t\t\t$unwanted_fields = array( 'reCAPTCHA', 'Validation' );\r\n if( in_array( $field['field'], $unwanted_fields) ) {\r\n unset( $all_fields[$key] );\r\n }\r\n }\r\n $all_fields = array_values( $all_fields );\r\n }\r\n\r\n // remove certain fields from the Field drop-down on register form\r\n if( ( isset( $_GET['post_type'] ) && $_GET['post_type'] == 'wppb-rf-cpt' ) || ( isset( $_GET['post'] ) && get_post_type( absint( $_GET['post'] ) ) == 'wppb-rf-cpt' ) || ( isset( $_POST['meta'] ) && $_POST['meta'] == 'wppb_rf_fields' ) ) {\r\n foreach( $all_fields as $key => $field ) {\r\n if( $field['field'] == 'Default - Display name publicly as' ) {\r\n unset( $all_fields[$key] );\r\n }\r\n }\r\n $all_fields = array_values( $all_fields );\r\n }\r\n\r\n if( $all_fields !== 'not_set ') {\r\n\r\n if( !function_exists( 'wppb_rf_epf_set_field_id_select_option' ) ) {\r\n function wppb_rf_epf_set_field_id_select_option( $content, $field_id ){\r\n global $all_fields;\r\n $output = str_replace( '<option', '<option ' . 'data-id=\"' . $all_fields[$field_id]['id'] . '\"', $content );\r\n return $output;\r\n }\r\n }\r\n foreach($all_fields as $key => $value ) {\r\n add_filter('wck_select_wppb_epf_fields_field_option_' . $key, 'wppb_rf_epf_set_field_id_select_option', 10 ,2);\r\n add_filter('wck_select_wppb_rf_fields_field_option_' . $key, 'wppb_rf_epf_set_field_id_select_option', 10 ,2);\r\n }\r\n\r\n }\r\n}", "function hundope_select_field_render() { \n\t\n}", "function create_field( $field )\n\t{\n\t\tif( 'object' == $field['save_format'] && 'null' !== $field['value'] )\n\t\t\t$field['value'] = array( $field['value']->class );\n\n\t\t// value must be array\n\t\tif( !is_array($field['value']) )\n\t\t{\n\t\t\t// perhaps this is a default value with new lines in it?\n\t\t\tif( strpos($field['value'], \"\\n\") !== false )\n\t\t\t{\n\t\t\t\t// found multiple lines, explode it\n\t\t\t\t$field['value'] = explode(\"\\n\", $field['value']);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$field['value'] = array( $field['value'] );\n\t\t\t}\n\t\t}\n\t\t\n\t\t// trim value\n\t\t$field['value'] = array_map('trim', $field['value']);\n\t\t\n\t\t// html\n\t\techo '<div class=\"fa-field-wrapper\">';\n\t\techo '<div class=\"fa-live-preview\"></div>';\n\t\techo '<select id=\"' . $field['id'] . '\" class=\"' . $field['class'] . ' fa-select2-field\" name=\"' . $field['name'] . '\" >';\t\n\t\t\n\t\t// null\n\t\tif( $field['allow_null'] )\n\t\t{\n\t\t\techo '<option value=\"null\">- ' . __(\"Select\",'acf') . ' -</option>';\n\t\t}\n\t\t\n\t\t// loop through values and add them as options\n\t\tif( is_array($field['choices']) )\n\t\t{\n\t\t\tunset( $field['choices']['null'] );\n\n\t\t\tforeach( $field['choices'] as $key => $value )\n\t\t\t{\n\t\t\t\t$selected = $this->find_selected( $key, $field['value'], $field['save_format'], $field['choices'] );\n\t\t\t\techo '<option value=\"'.$key.'\" '.$selected.'>'.$value.'</option>';\n\t\t\t}\n\t\t}\n\n\t\techo '</select>';\n\t\techo '</div>';\n\t}", "public function getFieldInstanceByName($name)\n\t{\n\t\t$params = [];\n\t\t$qualifiedModuleName = 'Settings:Picklist';\n\t\t$tableName = $this->getTableName();\n\t\tswitch ($name) {\n\t\t\tcase 'name':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $this->fieldModel->getName(),\n\t\t\t\t\t'label' => 'LBL_ITEM_VALUE',\n\t\t\t\t\t'uitype' => 1,\n\t\t\t\t\t'typeofdata' => 'V~M',\n\t\t\t\t\t'maximumlength' => $this->fieldModel->getMaxValue(),\n\t\t\t\t\t'purifyType' => \\App\\Purifier::TEXT,\n\t\t\t\t\t'table' => $tableName,\n\t\t\t\t\t'validator' => [['name' => 'FieldLabel']]\n\t\t\t\t];\n\t\t\t\tif (1 !== $this->presence || !$this->fieldModel->isEditable()) {\n\t\t\t\t\t$params['isEditableReadOnly'] = true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'description':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_DESCRIPTION',\n\t\t\t\t\t'uitype' => 300,\n\t\t\t\t\t'typeofdata' => 'V~O',\n\t\t\t\t\t'maximumlength' => '65535',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::HTML,\n\t\t\t\t\t'tooltip' => 'LBL_DESCRIPTION_VALUE_LIST',\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'prefix':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_PREFIX',\n\t\t\t\t\t'uitype' => 1,\n\t\t\t\t\t'typeofdata' => 'V~O',\n\t\t\t\t\t'maximumlength' => '25',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::TEXT,\n\t\t\t\t\t'tooltip' => 'LBL_DESCRIPTION_PREFIXES',\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'close_state':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_CLOSES_RECORD',\n\t\t\t\t\t'uitype' => 56,\n\t\t\t\t\t'typeofdata' => 'C~O',\n\t\t\t\t\t'maximumlength' => '5',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::BOOL,\n\t\t\t\t\t'tooltip' => 'LBL_BLOCKED_RECORD_INFO',\n\t\t\t\t\t'table' => 'u_#__picklist_close_state'\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'icon':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_ICON',\n\t\t\t\t\t'uitype' => 62,\n\t\t\t\t\t'typeofdata' => 'V~O',\n\t\t\t\t\t'maximumlength' => '255',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::TEXT,\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'time_counting':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_TIME_COUNTING',\n\t\t\t\t\t'uitype' => 16,\n\t\t\t\t\t'typeofdata' => 'V~M',\n\t\t\t\t\t'maximumlength' => '250',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::INTEGER,\n\t\t\t\t\t'tooltip' => 'LBL_TIME_COUNTING_INFO',\n\t\t\t\t\t'defaultvalue' => 0,\n\t\t\t\t\t'picklistValues' => [\n\t\t\t\t\t\t0 => \\App\\Language::translate('LBL_NONE', '_Base'),\n\t\t\t\t\t\t\\App\\RecordStatus::TIME_COUNTING_REACTION => \\App\\Language::translate('LBL_TIME_COUNTING_REACTION', $qualifiedModuleName),\n\t\t\t\t\t\t\\App\\RecordStatus::TIME_COUNTING_RESOLVE => \\App\\Language::translate('LBL_TIME_COUNTING_RESOLVE', $qualifiedModuleName),\n\t\t\t\t\t\t\\App\\RecordStatus::TIME_COUNTING_IDLE => \\App\\Language::translate('LBL_TIME_COUNTING_IDLE', $qualifiedModuleName)\n\t\t\t\t\t],\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'record_state':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_RECORD_STATE',\n\t\t\t\t\t'uitype' => 16,\n\t\t\t\t\t'typeofdata' => 'V~M',\n\t\t\t\t\t'maximumlength' => '250',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::INTEGER,\n\t\t\t\t\t'tooltip' => 'LBL_RECORD_STATE_INFO',\n\t\t\t\t\t'defaultvalue' => \\App\\RecordStatus::RECORD_STATE_NO_CONCERN,\n\t\t\t\t\t'picklistValues' => [],\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tforeach (\\App\\RecordStatus::getLabels() as $key => $value) {\n\t\t\t\t\t$params['picklistValues'][$key] = \\App\\Language::translate($value, $qualifiedModuleName);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'roles':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_ASSIGN_TO_ROLE',\n\t\t\t\t\t'uitype' => 33,\n\t\t\t\t\t'typeofdata' => 'V~O',\n\t\t\t\t\t'maximumlength' => '500',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::TEXT,\n\t\t\t\t\t'defaultvalue' => 'all',\n\t\t\t\t\t'picklistValues' => [\n\t\t\t\t\t\t'all' => \\App\\Language::translate('LBL_ALL_ROLES', $qualifiedModuleName)\n\t\t\t\t\t],\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tforeach (\\Settings_Roles_Record_Model::getAll() as $key => $roleModel) {\n\t\t\t\t\t$params['picklistValues'][$key] = \\App\\Language::translate($roleModel->get('rolename'), 'Settings:Roles');\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn $params ? \\Vtiger_Field_Model::init($qualifiedModuleName, $params, $name)->set('sourceFieldModel', $this->fieldModel) : null;\n\t}", "function fill_in_additional_list_fields()\r\n\t{\r\n\t}", "function populate_list_array($objname, $array_list, $value_array, $display_array, $defaultvalue=-1,$disable=false){\nGLOBAL $g_obj_select_default_text;\n?>\t\n<select name=\"<?php echo $objname; ?>\" <?php if ($disable == true){?> disabled=\"true\"<?php } ?> >\n\t<option selected=\"selected\" value=\"-1\"><?php echo $g_obj_select_default_text ?></option>\n\t<?php foreach ($array_list as $value) { ?><option <?php if( $defaultvalue == $value[$value_array]){ ?> selected=\"selected\"<?php } ?> value=\"<?php echo $value[$value_array]; ?>\"><?php echo $value[$display_array]; ?></option>\n\t<?php } //--end for ?>\n\n</select>\n\t\n<?php }", "public static function getEditableValues($fieldName)\n\t{\n\t\t$values = static::getValuesName($fieldName);\n\t\t$nonEditableValues = static::getNonEditableValues($fieldName);\n\t\tforeach ($values as $key => &$value) {\n\t\t\tif ('--None--' === $value || isset($nonEditableValues[$key])) {\n\t\t\t\tunset($values[$key]);\n\t\t\t}\n\t\t}\n\t\treturn $values;\n\t}", "function render_field( $field ) { ?>\n <input type=\"text\" value=\"<?php echo esc_attr( $field[ 'value' ] ); ?>\" id=\"<?php echo esc_attr( $field[ 'id' ] ); ?>\" name=\"<?php echo esc_attr( $field[ 'name' ] ); ?>\" class=\"rhicomoon-select-field <?php echo esc_attr( $field[ 'class' ] ); ?>\" data-json-url=\"<?php echo esc_attr( $field[ 'json_url' ] ); ?>\"/>\n <?php }", "public function makeFieldList() {}", "public function getFormCustomFields(){\n\t}", "function Field() {\n\t\t$size = '';\n\t\t$multiple = '';\n\t\t\n\t\tif($this->size) $size = \"size=\\\"$this->size\\\"\";\n\t\t\n\t\tif($this->multiple) {\n\t\t\t$multiple = \"multiple=\\\"multiple\\\"\";\n\t\t\t$this->name .= '[]';\n\t\t}\n\t\t\n\t\t$options = \"\";\n\t\t\n\t\t// We have an array of values\n\t\tif(is_array($this->value)){\n\t\t\t// Loop through and figure out which values were selected.\n\t\t\t\t\t\n\t\t\tforeach($this->getSource() as $value => $title) {\n\t\t\t\t// Loop through the array of values to find out if this value is selected.\n\t\t\t\t$selected = \"\";\n\t\t\t\tforeach($this->value as $v){\n\t\t\t\t\tif($value == $v) {\n\t\t\t\t\t\t$selected = \" selected=\\\"selected\\\"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$options .= \"<option$selected value=\\\"$value\\\">$title</option>\\n\";\n\t\t\t}\n\t\t}else{\n\t\t\t// Listbox was based a singlular value, so treat it like a dropdown.\n\t\t\tforeach($this->getSource() as $value => $title) {\n\t\t\t\t$selected = $value == $this->value ? \" selected=\\\"selected\\\"\" : \"\"; \n\t\t\t\t$options .= \"<option$selected value=\\\"$value\\\">$title</option>\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t$id = $this->id();\n\t\treturn \"<select $size $multiple name=\\\"$this->name\\\" id=\\\"$id\\\">$options</select>\";\n\t}", "function populate() {\n // @todo We inject client input directly into the form. What about\n // security issues?\n if (isset($this->form->request['raw_input'][$this->attributes['name']])) {\n // Disabled input elements do not accept new input.\n if (!$this->disabled) {\n $this->value = $this->form->request['raw_input'][$this->attributes['name']];\n }\n }\n }", "function acf_get_select_input($attrs = array())\n{\n}", "public function field_field_option_form( $field, $display, $values )\n {\n }", "abstract protected function filterFieldvalue();", "function wppb_save_multiple_select_value( $field, $user_id, $request_data, $form_location ){\r\n\tif( $field['field'] == 'Select (Multiple)' ){\r\n\t\t$selected_values = wppb_process_multipl_select_value( $field, $request_data );\r\n\t\tupdate_user_meta( $user_id, $field['meta-name'], trim( $selected_values, ',' ) );\r\n\t}\r\n}", "public function ignore_date_dropdowns( $field, $form_data ) {\n\n\t\tif ( 'date-time' === $field['type'] && 'dropdown' === $field['date_type'] ) {\n\t\t\t$field['date_type'] = 'datepicker';\n\t\t}\n\t\treturn $field;\n\t}", "function get_name_select_list()\n\t{\n\t\treturn $this->get_name_select_edit();\n\t}", "public function select_values_for_form( EntryValueSelect $entry_value_select );", "function MakeSelectField($name,$values,$valuenames,$selected=\"\",$disableds=array(),$titles=array(),$title=\"\",$maxlen=0,$noincludedisableds=FALSE,$multiple=FALSE,$onchange=NULL,$options=array())\n{\n return\n $this->Htmls_Select\n (\n $name,$values,$valuenames,$selected,\n array\n (\n \"Disableds\" => $disableds,\n \"Titles\" => $titles,\n \"Title\" => $title,\n \"MaxLen\" => $maxlen,\n \"ExcludeDisableds\" => $noincludedisableds,\n \"Multiple\" => $multiple,\n \"OnChange\" => $onchange,\n ),\n $options\n );\n \n /* $selectedok=FALSE; */\n\n /* $options[ \"NAME\" ]=$name; */\n /* if (!empty($onchange)) { $options[ \"ONCHANGE\" ]=$onchange; } */\n /* if (!empty($title)) { $options[ \"TITLE\" ]=$title; } */\n /* if ($multiple) { $options[ \"MULTIPLE\" ]=\"\"; } */\n\n /* $select=\"\"; */\n /* foreach ($values as $n => $value) */\n /* { */\n /* $valuename=$valuenames[$n]; */\n /* $selectopt=array(); */\n /* if ( */\n /* count($values)==1 */\n /* || */\n /* $this->TestIfSelected($value,$values,$n,$selected) */\n /* ) */\n /* { */\n /* $selectopt[ \"SELECTED\" ]=\"\"; */\n /* $selectedok=TRUE; */\n /* } */\n\n /* $class=\"\"; */\n /* $disabled=FALSE; */\n /* if ( */\n /* !empty($disableds[$n]) */\n /* || */\n /* preg_match('/^disabled$/',$values[$n])) */\n /* { */\n /* $selectopt[ \"DISABLED\" ]=\"\"; */\n /* $values[ $n]=\"\"; */\n /* $class=\"disabled\"; */\n /* $disabled=TRUE; */\n /* } */\n\n /* if (isset($titles[ $n ])) { $selectopt[ \"TITLE\" ]=$titles[ $n ]; } */\n\n /* $valuename=html_entity_decode($valuename,ENT_QUOTES,\"UTF-8\"); */\n /* if ($maxlen>0 && strlen($valuename)>$maxlen) */\n /* { */\n /* $valuename=substr($valuename,0,$maxlen); */\n /* } */\n\n /* if (!$noincludedisableds || !$disabled) */\n /* { */\n /* if (!empty($class)) */\n /* { */\n /* $selectopt[ \"CLASS\" ]=$class; */\n /* } */\n\n /* $selectopt[ \"VALUE\" ]=$values[$n]; */\n /* $select.= */\n /* \" \". */\n /* $this->HtmlTags */\n /* ( */\n /* \"OPTION\", */\n /* $valuename, */\n /* $selectopt */\n /* ).\"\\n\"; */\n\n /* if ($this->Debug>=2) */\n /* { */\n /* $select.=\" [\".$values[$n].\"]\\n\"; */\n /* } */\n /* } */\n /* } */\n\n /* $select=$this->HtmlTags(\"SELECT\",\"\\n\".$select,$options).\"\\n\"; */\n\n /* if (!$selectedok && !empty($selected) && !is_array($selected)) */\n /* { */\n /* $this->AddMsg(\"Warning MakeSelectField: $name, Value: '$selected' undefined\"); */\n /* } */\n\n /* return \"\\n\".$select; */\n}", "protected function getInput()\n\t{\n\t\t$html = array();\n\n\t\t// Initialize some field attributes.\n\t\t$attr = 'class=\"chzn-custom-value' . (empty($this->class) ? '' : ' ' . $this->class) . '\" '\n\t\t\t\t. 'data-custom_group_text=\"' . 'Test1' . '\" '\n\t\t\t\t. 'data-no_results_text=\"' . Text::_('PLG_HIKASHOP_BFORDEREXPORT_COLUMN_CUSTOM') . '\" '\n\t\t\t\t. 'data-placeholder=\"' . Text::_('PLG_HIKASHOP_BFORDEREXPORT_COLUMN_TYPEORSELECT') . '\" ';\n\t\t$attr .= !empty($this->size) ? ' size=\"' . $this->size . '\"' : '';\n\t\t$attr .= $this->multiple ? ' multiple' : '';\n\t\t$attr .= $this->required ? ' required aria-required=\"true\"' : '';\n\t\t$attr .= $this->autofocus ? ' autofocus' : '';\n\n\t\t// To avoid user's confusion, readonly=\"true\" should imply disabled=\"true\".\n\t\tif ($this->readonly || $this->disabled)\n\t\t{\n\t\t\t$attr .= ' disabled=\"disabled\"';\n\t\t}\n\n\t\t// Initialize JavaScript field attributes.\n\t\t$attr .= !empty($this->onchange) ? ' onchange=\"' . $this->onchange . '\"' : '';\n\n\t\t// Get the field groups.\n\t\t$groups = (array) $this->getGroups();\n\n\t\t// Create a read-only list (no name) with a hidden input to store the value.\n\t\tif ($this->readonly)\n\t\t{\n\t\t\t$html[] = JHtml::_(\n\t\t\t\t'select.groupedlist', $groups, null,\n\t\t\t\tarray(\n\t\t\t\t\t'list.attr' => $attr, 'id' => $this->id, 'list.select' => $this->value, 'group.items' => null, 'option.key.toHtml' => false,\n\t\t\t\t\t'option.text.toHtml' => false,\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t// E.g. form field type tag sends $this->value as array\n\t\t\tif ($this->multiple && is_array($this->value))\n\t\t\t{\n\t\t\t\tif (!count($this->value))\n\t\t\t\t{\n\t\t\t\t\t$this->value[] = '';\n\t\t\t\t}\n\n\t\t\t\tforeach ($this->value as $value)\n\t\t\t\t{\n\t\t\t\t\t$html[] = '<input type=\"hidden\" name=\"' . $this->name . '\" value=\"' . htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . '\"/>';\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$html[] = '<input type=\"hidden\" name=\"' . $this->name . '\" value=\"' . htmlspecialchars($this->value, ENT_COMPAT, 'UTF-8') . '\"/>';\n\t\t\t}\n\t\t}\n\n\t\t// Create a regular list.\n\t\telse\n\t\t{\n\t\t\t$html[] = JHtml::_(\n\t\t\t\t'select.groupedlist', $groups, $this->name,\n\t\t\t\tarray(\n\t\t\t\t\t'list.attr' => $attr, 'id' => $this->id, 'list.select' => $this->value, 'group.items' => null, 'option.key.toHtml' => false,\n\t\t\t\t\t'option.text.toHtml' => false,\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\n\t\treturn implode($html);\n\t}", "function custom_override_checkout_fields( $fields ) {\n foreach ($fields as $category => $value) {\n // loop by fields\n foreach ($fields[$category] as $field => $property) {\n // remove label property\n $fields[$category][$field]['placeholder'] = $fields[$category][$field]['label'];\n }\n }\n return $fields;\n}", "protected function renderReadOnly()\n {\n $languageService = $this->getLanguageService();\n\n $parameterArray = $this->data['parameterArray'];\n $config = $parameterArray['fieldConf']['config'];\n $fieldName = $parameterArray['itemFormElName'];\n\n $possibleItems = $config['items'];\n $selectedItems = $parameterArray['itemFormElValue'] ?: [];\n if (!is_array($selectedItems)) {\n $selectedItems = GeneralUtility::trimExplode(',', $selectedItems, true);\n }\n $selectedItemsCount = count($selectedItems);\n\n $autoSizeMax = MathUtility::forceIntegerInRange($config['autoSizeMax'], 0);\n $size = 2;\n if (isset($config['size'])) {\n $size = (int)$config['size'];\n }\n if ($autoSizeMax >= 1) {\n $size = MathUtility::forceIntegerInRange($selectedItemsCount + 1, MathUtility::forceIntegerInRange($size, 1), $autoSizeMax);\n }\n $multiple = '';\n if ($size !== 1) {\n $multiple = ' multiple=\"multiple\"';\n }\n\n $listOfSelectedValues = [];\n $optionsHtml = [];\n foreach ($selectedItems as $itemValue) {\n foreach ($possibleItems as $possibleItem) {\n if ($possibleItem[1] == $itemValue) {\n $title = $possibleItem[0];\n $listOfSelectedValues[] = $itemValue;\n $optionsHtml[] = '<option value=\"' . htmlspecialchars($itemValue) . '\" title=\"' . htmlspecialchars($title) . '\">' . htmlspecialchars($title) . '</option>';\n break;\n }\n }\n }\n\n $html = [];\n $html[] = '<div class=\"formengine-field-item t3js-formengine-field-item\">';\n $html[] = '<div class=\"form-wizards-wrap\">';\n $html[] = '<div class=\"form-wizards-element\">';\n $html[] = '<label>';\n $html[] = htmlspecialchars($languageService->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.selected'));\n $html[] = '</label>';\n $html[] = '<div class=\"form-wizards-wrap form-wizards-aside\">';\n $html[] = '<div class=\"form-wizards-element\">';\n $html[] = '<select';\n $html[] = ' id=\"' . StringUtility::getUniqueId('tceforms-multiselect-') . '\"';\n $html[] = ' size=\"' . $size . '\"';\n $html[] = ' class=\"form-control tceforms-multiselect\"';\n $html[] = $multiple;\n $html[] = ' data-formengine-input-name=\"' . htmlspecialchars($fieldName) . '\"';\n $html[] = ' disabled=\"disabled\">';\n $html[] = '/>';\n $html[] = implode(LF, $optionsHtml);\n $html[] = '</select>';\n $html[] = '</div>';\n $html[] = '</div>';\n $html[] = '<input type=\"hidden\" name=\"' . htmlspecialchars($fieldName) . '\" value=\"' . htmlspecialchars(implode(',', $listOfSelectedValues)) . '\" />';\n $html[] = '</div>';\n $html[] = '</div>';\n $html[] = '</div>';\n\n $resultArray = $this->initializeResultArray();\n $resultArray['html'] = implode(LF, $html);\n return $resultArray;\n }", "function wppb_rf_epf_disable_select_field_options() {\r\n echo \"<script type=\\\"text/javascript\\\">wppb_disable_select_field_options();</script>\";\r\n}", "function ninja_forms_list_field_type_dropdown( $selected ){\r\n\t$output = '<option value=\"\" disabled>' . __( 'List', 'ninja-forms-style' ) . '</option>';\r\n\r\n\tif ( $selected == '_list-dropdown' ) {\r\n\t\t$select = 'selected=\"selected\"';\r\n\t} else {\r\n\t\t$select = '';\r\n\t}\r\n\t$output .= '<option value=\"_list-dropdown\" '.$select.'>&nbsp;&nbsp;&nbsp;&nbsp;' . __( 'Dropdown (Select)', 'ninja-forms-style' ) . '</option>';\r\n\r\n\tif ( $selected == '_list-radio' ) {\r\n\t\t$select = 'selected=\"selected\"';\r\n\t} else {\r\n\t\t$select = '';\r\n\t}\r\n\t$output .= '<option value=\"_list-radio\" '.$select.'>&nbsp;&nbsp;&nbsp;&nbsp;' . __( 'Radio', 'ninja-forms-style' ) . '</option>';\r\n\r\n\tif ( $selected == '_list-checkbox' ) {\r\n\t\t$select = 'selected=\"selected\"';\r\n\t} else {\r\n\t\t$select = '';\r\n\t}\r\n\t$output .= '<option value=\"_list-checkbox\" '.$select.'>&nbsp;&nbsp;&nbsp;&nbsp;' . __( 'Checkboxes', 'ninja-forms-style' ) . '</option>';\r\n\r\n\tif ( $selected == '_list-multi' ) {\r\n\t\t$select = 'selected=\"selected\"';\r\n\t} else {\r\n\t\t$select = '';\r\n\t}\r\n\t$output .= '<option value=\"_list-multi\" '.$select.'>&nbsp;&nbsp;&nbsp;&nbsp;' . __( 'Multi-Select', 'ninja-forms-style' ) . '</option>';\r\n\r\n\treturn $output;\r\n}", "protected function filterDropdownFields(): array\n {\n return [];\n }", "function wp_list_pluck($input_list, $field, $index_key = \\null)\n {\n }", "function create_field($field) {\n // create Field HTML\n ?>\n <ul class=\"acf-hl\" data-cols=\"3\">\n <li>\n <select name=\"<?php echo esc_attr($field['name']) ?>[country]\" data-select=\"countries\" value=\"<?php echo esc_attr($field['value']['country']) ?>\">\n <option value=\"\"><?php _e('País', 'acf-cities'); ?></option>\n <?php foreach($field['countries'] as $country): ?>\n <option value=\"<?php echo $country->Sigla; ?>\" <?php echo ($country->Sigla === $field['value']['country']) ? 'selected' : '' ?>><?php echo $country->Pais; ?></option>\n <?php endforeach; ?>\n </select>\n </li>\n\n <li>\n <select name=\"<?php echo esc_attr($field['name']) ?>[state]\" data-select=\"states\" data-value=\"<?php echo esc_attr($field['value']['state']) ?>\">\n <option value=\"\"><?php _e('Estado', 'acf-cities'); ?></option>\n </select>\n\n <input <?php echo (isset($field['value']['custom-state']) && $field['value']['custom-state'] == 1) ? 'name=\"'. esc_attr($field['name']) .'[state]\"' : ''; ?> type=\"text\" value=\"<?php echo esc_attr($field['value']['state']) ?>\" placeholder=\"Digite o estado\" class=\"state-input\" <?php echo (!isset($field['value']['custom-state']) || $field['value']['custom-state'] == 0) ? 'style=\"display: none\"' : ''; ?>>\n\n <label>\n <input type=\"hidden\" name=\"<?php echo esc_attr($field['name']) ?>[custom-state]\" value=\"0\">\n <input type=\"checkbox\" name=\"<?php echo esc_attr($field['name']) ?>[custom-state]\" <?php if (isset($field['value']['custom-state'])) checked($field['value']['custom-state'], 1); ?> value=\"1\" class=\"custom-state-toggler\">\n Não encontrei o estado\n </label>\n </li>\n\n <li>\n <select name=\"<?php echo esc_attr($field['name']) ?>[city]\" data-select=\"cities\" data-value=\"<?php echo isset($field['value']['city']) ? esc_attr($field['value']['city']) : ''; ?>\" <?php echo (isset($field['value']['custom-city']) && $field['value']['custom-city'] == 1) ? 'style=\"display: none\"' : ''; ?>>\n <option value=\"\"><?php _e('Cidade', 'acf-cities'); ?></option>\n </select>\n\n <input <?php echo (isset($field['value']['custom-city']) && $field['value']['custom-city'] == 1) ? 'name=\"'. esc_attr($field['name']) .'[city]\"' : ''; ?> type=\"text\" value=\"<?php echo esc_attr($field['value']['city']) ?>\" placeholder=\"Digite a cidade\" class=\"city-input\" <?php echo (!isset($field['value']['custom-city']) || $field['value']['custom-city'] == 0) ? 'style=\"display: none\"' : ''; ?>>\n\n <label>\n <input type=\"hidden\" name=\"<?php echo esc_attr($field['name']) ?>[custom-city]\" value=\"0\">\n <input type=\"checkbox\" name=\"<?php echo esc_attr($field['name']) ?>[custom-city]\" <?php if (isset($field['value']['custom-city'])) checked($field['value']['custom-city'], 1); ?> value=\"1\" class=\"custom-city-toggler\">\n Não encontrei a cidade\n </label>\n </li>\n </ul>\n <?php\n }", "protected function getValidFieldValues()\n {\n return [\n 'id' => [\n '1',\n '100'\n ]\n ];\n }", "protected function getExcludeFields() {}", "public function providerFieldValues()\n {\n return [\n ['non_existent_field', []],\n ['empty_field', []],\n ['empty_field_2', []],\n [\n 'acf_value_field',\n [\n ['test-1' => 'test 1'],\n ['test-1' => 'test 2'],\n ['test-1' => 'test 3'],\n ],\n ],\n [\n 'acf_option_field',\n [\n [\n 'label' => 'test 1',\n 'slug' => 'test-1',\n ],\n [\n 'label' => 'test 2',\n 'slug' => 'test-2',\n ],\n ],\n ],\n ];\n }", "function imbaf_properties_create_add_fields(){\n ?>\n <div class=\"form-field\">\n <label for=\"term_meta[imbaf_property_type]\">Typ</label>\n\n <select name=\"term_meta[imbaf_property_type]\">\n\n <?php\n\n foreach($this -> property_types as $property){\n\n ?> <option style=\"width:100%;\" value=\"<?php echo $property['value']; ?>\"><?php echo $property['label']; ?></option> <?php\n\n }\n\n\n ?>\n </select>\n\n <p class=\"description\"><?php _e('Vergleichswert-Typ','imb_affiliate'); ?></p>\n\n\n\n <label for=\"term_meta[imbaf_property_icon]\">Icon</label>\n <input type=\"text\" name=\"term_meta[imbaf_property_icon]\">\n\n <p class=\"description\"><?php _e('Font Awesome Icon','imb_affiliate'); ?></p>\n\n\n <label for=\"term_meta[imbaf_property_prefix]\"><?php _e('Präfix','imb_affiliate'); ?></label>\n <input type=\"text\" name=\"term_meta[imbaf_property_prefix]\">\n\n <p class=\"description\"><?php _e('Vorgestellter Wert (ca.)','imb_affiliate'); ?></p>\n\n <label for=\"term_meta[imbaf_property_suffix]\"><?php _e('Suffix','imb_affiliate'); ?></label>\n <input type=\"text\" name=\"term_meta[imbaf_property_suffix]\">\n <p class=\"description\"><?php _e('Nachgestellter Wert (z.B. kg, MhZ etc.)','imb_affiliate'); ?></p>\n\n\n\n </div>\n <?php\n\n\n }", "function fieldCek()\n {\n $f = array(\n 'noinduk'=>'Nomor Induk' \n );\n return $f;\n }", "abstract function fields_options();", "function render_field_select($field)\n {\n }", "function getSelectFieldsValues($field_data) {\n \n $model = $this->getModel('comment_answers');\n \n $results = $model->getDataForView($field_data);\n \n foreach($results as $list) {\n $result = null;\n if($field_data == 'post_id') {\n $result_list[] = $list->post_id;\n }\n if($field_data == 'created_date') {\n $result_list[] = $list->created_date;\n }\n if($field_data == 'creator') {\n $result_list[] = $list->creator;\n }\n if($field_data == 'comment_id') {\n $result_list[] = $list->comment_id;\n }\n \n if($field_data == 'published') {\n $result_list[]= $list->published;\n }\n }\n \n //results are all the data from the selected column in the result_list array\n return $result_list;\n }", "function OptionNull ($field)\r{\r\tif ($GLOBALS['feedback']) echo \"OptionNull($field)\\n\";\r\r\techo '<option value=\"\"';\r\tif (! $field) echo ' selected';\r\techo '>&nbsp;</option>';\r}", "public function getEditableFields() {\n\t\t$fieldsList = array(\n\t\t\tarray('name' => 'presence',\t\t\t'label' => 'Presence',\t\t\t'type' => 'radio'),\n\t\t);\n\n\t\t$fieldModelsList = array();\n\t\tforeach ($fieldsList as $fieldInfo) {\n\t\t\t$fieldModelsList[$fieldInfo['name']] = Settings_Joomlahosts_Field_Model::getInstanceByRow($fieldInfo);\n\t\t}\n\t\treturn $fieldModelsList;\n\t}", "function _set_editable_fields()\n\t{\n\t\tif (empty($this->fields))\n\t\t{\n\t\t\t// pull the fields dynamically from the database\n\t\t\t$this->db->cache_on();\n\t\t\t$this->fields = $this->db->list_fields($this->primary_table);\n\t\t\t$this->db->cache_off();\n\t\t}\n\t}", "private function getFields()\n {\n return [\n [\n \"field_type\" => \"text\",\n \"field_name\" => \"first_name\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n [\n \"field_type\" => \"text\",\n \"field_name\" => \"last_name\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n [\n \"field_type\" => \"checkbox\",\n \"field_name\" => \"happy\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n [\n \"field_type\" => \"select\",\n \"field_name\" => \"character\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => [\n [\"value\" => \"biff\", \"label\" => \"Biff\"],\n [\"value\" => \"marty\", \"label\" => \"Marty\"],\n [\"value\" => \"doc\", \"label\" => \"Doc Brown\"],\n [\"value\" => \"jennifer\", \"label\" => \"Jennifer\"],\n [\"value\" => \"needles\", \"label\" => \"Needles\"],\n ]\n ],\n [\n \"field_type\" => \"checkbox\",\n \"field_name\" => \"kids\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n ];\n }", "public function getSelectableField($fieldName);", "function _generateSelection()\n {\n $i = 0;\n foreach ($_POST as $key=>$value) {\n echo \"<input type='hidden' name=$key value=$value required>\";\n echo \"<div class='form-group'>\";\n if (isset($value) && $this->\n _childexists($value, $this->_getRubriekFromDb())) {\n echo $this->_generateRubriekVerkoopList($value, $this->_getRubriekFromDb(), \"subrubriek\" . $i);\n echo \"<script type='text/javascript'>\n document.getElementById('$key').disabled = true;\n </script>\";\n }\n echo \"</div>\";\n echo \"<script type='text/javascript'>\n document.getElementById('$key').value= $value \n </script>\";\n $i++;\n }\n }", "function get_field_list()\r\n\t{\r\n\t\t$fields = array();\r\n\r\n\t\tif (Authority::can('edit', 'admin/item/definition'))\r\n\t\t{\r\n\t\t\t$id_definition = $this->input->post('id_item_definition');\r\n\r\n\t\t\t$fields = $this->extend_field_model->get_lang_list(\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'parent' => 'item',\r\n\t\t\t\t\t'id_parent' => $id_definition\r\n\t\t\t\t),\r\n\t\t\t\tSettings::get_lang('default')\r\n\t\t\t);\r\n\r\n\t\t\t// Set type names\r\n\t\t\tforeach($fields as &$field)\r\n\t\t\t{\r\n\t\t\t\t$field['type_name'] = self::$_TYPE_NAMES[$field['type']];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//\r\n\t\t$this->template['id_item_definition'] = $id_definition;\r\n\t\t$this->template['fields'] = $fields;\r\n\r\n\t\t$this->output('item/definition/fields');\r\n\t}", "function gridstack_field_field_multiple_value_form($field, $instance, $langcode, $items, &$form, &$form_state, $delta, $original_element) {\n $form['#submit'][] = 'gridstack_field_field_widget_form_submit';\n $field_elements = paragraphs_field_multiple_value_form($field, $instance, $langcode, $items, $form, $form_state, $delta, $original_element);\n // Use own theme function.\n $field_elements['#theme'] = 'gridstack_field_field_multiple_value_form';\n // Install Gridstack library on the page.\n drupal_add_library('gridstack_field', 'gridstack', FALSE);\n\n // .\n if ($form['nid']['#value']) {\n cache_set('grid_items' . session_id(), NULL, 'cache', REQUEST_TIME);\n $db_data = gridstack_field_load($form['nid']['#value']);\n cache_set('grid_items' . session_id(), $db_data->data, 'cache', CACHE_PERMANENT);\n }\n return $field_elements;\n}", "protected function setDbalInputFieldsToRender() {}", "function populatelist ($lstname, $str_query, $str_firstvalue=\"-1\", $str_firstoption = \"\", $str_selected = \"\", $bln_disabled = false, $str_event = \"\", $str_style = \"\") {\n\n $rsRES = mysql_query($str_query) or die (mysql_error() . $str_query);\n $str_disable = \"\";\n if ($bln_disabled == true){\n $str_disable = \"disabled\";\n }\n echo '<select name=\"' . $lstname . '\"' . $str_disable . ' ' . $str_event . ' ' . $str_style . '>';\n if ( trim($str_firstoption) != \"\" && is_null($str_firstoption) == false ) {\n if ( $str_selected == $str_firstvalue ) {\n echo '<option selected=\"selected\" value=\"' . $str_firstvalue . '\">';\n echo $str_firstoption;\n echo '</option>';\n }\n else {\n echo '<option value=\"' . $str_firstvalue . '\">' . $str_firstoption . '</option>';\n }\n }\n while ($arrRES = mysql_fetch_array($rsRES)) {\n if ( $str_selected == $arrRES[0] ) {\n echo '<option selected=\"selected\" value=\"' . $arrRES[0] . '\">';\n echo $arrRES[1];\n echo '</option>';\n }\n else {\n echo '<option value=\"' . $arrRES[0] . '\">' . $arrRES[1] . '</option>';\n }\n }\n echo '</select>';\n}", "public function getFormFields() {\n $fields = array(\n 'shapes[]' => array(\n 'type' => 'select',\n 'multiplicate' => '5',\n 'values' => array(\n '-' => '-',\n 'cube' => 'cube',\n 'round' => 'round',\n )\n ),\n 'width[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Width'\n ),\n 'higth[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Higth'\n ),\n 'x_position[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'X position'\n ),\n 'y_position[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Y position'\n ),\n 'red[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Color red',\n ),\n 'green[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Color green',\n ),\n 'blue[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Color blue',\n ),\n 'size[]' => array(\n 'type' => 'text',\n 'multiplicate' => '1',\n 'label' => 'Size holst'\n ),\n 'enable[]' => array(\n 'type' => 'checkbox',\n 'multiplicate' => '5',\n 'label' => 'enable'\n )\n );\n return $fields;\n }", "public function customFieldValues()\n {\n return $this->morphMany(\\VentureDrake\\LaravelCrm\\Models\\FieldValue::class, 'custom_field_valueable');\n }", "function cmbPoNo($name1, $caption, $width = null) {\n $url = \"services/runCRUD.php?func=datasource&lookup=trx/veh_prh\";\n //remotecombobox($name,$caption,180,$url,'wrhs_code','wrhs_name');\n $field = array\n (\n array(\"po_date\", \"Date\", 220, 'formatDate'),\n array(\"po_no\", \"Code\", 100),\n );\n cmbGridSingle($name1, $caption, $url, $field, $width);\n}", "private function build_select_field($_meta, $_ptype = \"wccpf\", $_class = \"\", $_index, $_show_as_value = \"no\", $_readonly = \"\", $_cloneable = \"\", $_wrapper = true, $_has_pricing_rules = \"no\") {\r\n $html = ''; \r\n $has_field_rules = isset( $_meta[\"field_rules\"] ) && is_array( $_meta[\"field_rules\"] ) && count( $_meta[\"field_rules\"] ) != 0 ? \"yes\" : \"no\";\r\n if ($_show_as_value == \"no\") {\r\n $html = '<select data-has_field_rules=\"'.$has_field_rules.'\" data-has_pricing_rules=\"'.$_has_pricing_rules.'\" data-fkey=\"'. $_meta[\"key\"] .'\" class=\"' . $_ptype . '-field ' . $_class . '\" name=\"' . esc_attr($_meta[\"key\"] . $_index) . '\" data-field-type=\"'. $_meta[\"type\"] .'\" ' . $_ptype . '-pattern=\"mandatory\" ' . $_ptype . '-mandatory=\"' . $_meta[\"required\"] . '\" ' . $_cloneable . ' ' . $_readonly . ' >';\r\n \r\n $choices = explode(\";\", ((isset($_meta[\"choices\"]) && ! empty($_meta[\"choices\"])) ? $_meta[\"choices\"] : \"\"));\r\n $_meta[\"default_value\"] = (isset($_meta[\"default_value\"]) && ! empty($_meta[\"default_value\"])) ? trim($_meta[\"default_value\"]) : \"\";\r\n \r\n /* Placeholder option */\r\n if (isset($_meta[\"placeholder\"]) && !empty($_meta[\"placeholder\"])) {\r\n $html .= '<option value=\"wccpf_none\">' . esc_html($_meta[\"placeholder\"]) . '</option>';\r\n }\r\n $choices = apply_filters( \"wcff_select_option_before_rendering\", $choices, $_meta[\"key\"] );\r\n foreach ($choices as $choice) {\r\n $attr = '';\r\n $key_val = explode(\"|\", $choice);\r\n /* It has to be two items ( Value => Label ), otherwise don't proceed */\r\n if (count($key_val) == 2) {\r\n if ($_ptype != \"wccaf\") {\r\n /* Since version 2.0.0 - Default value will be absolute value, not as key|val pair */\r\n if (strpos($_meta[\"default_value\"], \"|\") !== false) {\r\n /* Compatibility for <= V 1.4.0 */\r\n if ($choice == $_meta[\"default_value\"]) {\r\n $attr = 'selected';\r\n }\r\n } else {\r\n /*\r\n * For product fields from V 2.0.0\r\n * For admin fields, which will be displyed as Product Fields\r\n */\r\n if (trim($key_val[0]) == $_meta[\"default_value\"]) {\r\n $attr = 'selected';\r\n }\r\n }\r\n } else {\r\n if ($key_val[0] == $_meta[\"value\"]) {\r\n $attr = 'selected';\r\n }\r\n }\r\n $html .= '<option value=\"' . esc_attr(trim($key_val[0])) . '\" ' . $attr . '>' . esc_html(trim($key_val[1])) . '</option>';\r\n }\r\n }\r\n $html .= '</select>';\r\n } else {\r\n /*\r\n * Show the raw value instead of as a field\r\n * Used for the Admin Field showing on product page\r\n */\r\n $html = '<p class=\"wcff-wccaf-value-para-tag\">' . $_meta[\"default_value\"] . '</p>';\r\n }\r\n /* Add wrapper around the field, based on the user options */\r\n if ($_wrapper) {\r\n $html = $this->built_field_wrapper($html, $_meta, $_ptype, $_index);\r\n }\r\n return $html;\r\n }", "function _field_select($fval) \n {\n\n // if need be, copy the current vals for safety + reset()\n $postedvals = (is_array($fval))? $fval : array();\n\n $res = sprintf(\"<select size=\\\"1\\\" name=\\\"%s\\\" id=\\\"%s\\\" class=\\\"%s\\\" %s>\",\n $this->fname, \n $this->fname, \n (isset($this->attribs['class']))? $this->attribs['class'] : $this->element_class,\n $this->extra_attribs);\n\n if (empty($fval) and isset($this->attribs['top_value'])) {\n $res .= \"<option value=\\\"\\\">\". $this->attribs['top_value'] .\"</option>\"; \n } \n\n $opts = $this->opts; # $this->_array_stringify($this->opts);\n foreach ($opts as $optkey => $optval) { \n $res .= sprintf(\"<option value=\\\"%s\\\"%s>%s</option>\",\n $this->_htmlentities($optkey),\n ((in_array($optkey, $postedvals) || $optkey == $fval) and !empty($fval))? \" selected\" : \"\",\n $this->_htmlentities($optval));\n }\n $res .= \"</select>\";\n return $res;\n }", "function get_field_list()\n\t{\n\t\t$fields = array();\n\n\n\t\t$this->xhr_output($fields);\n\t}", "protected function createUserAndGroupListForSelectOptions() {}", "public function getPicklistValues($skipCheckingRole = false)\n\t{\n\t\tif ($this->getName() === 'targetmodule') {\n\t\t\treturn Settings_Webforms_Module_Model::getsupportedModulesList();\n\t\t}\n\t\treturn array();\n\t}", "public function edit_field_html( array $raw_properties = array() ) {\r\n\t\t\t// {@link bp_the_profile_field_options()}.\r\n\t\t\tif ( isset( $raw_properties['user_id'] ) ) {\r\n\t\t\t\t$user_id = (int) $raw_properties['user_id'];\r\n\t\t\t\tunset( $raw_properties['user_id'] );\r\n\t\t\t} else {\r\n\t\t\t\t$user_id = bp_displayed_user_id();\r\n\t\t\t}\r\n\t\r\n\t\t\t$r = bp_parse_args( $raw_properties, array(\r\n\t\t\t\t'multiple' => 'multiple',\r\n\t\t\t\t'id' => bp_get_the_profile_field_input_name() . '[]',\r\n\t\t\t\t'name' => bp_get_the_profile_field_input_name() . '[]',\r\n\t\t\t) ); \r\n\t\t\t$r['class'] = $r['class'] . ' form-control';\r\n\t\t\t?>\r\n\t\r\n\t\t\t<div class=\"form-group\">\r\n\t\t\t\t<label class=\"control-label col-sm-3\" for=\"<?php bp_the_profile_field_input_name(); ?>[]\"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'firmasite' ); ?><?php endif; ?></label>\r\n\t\t\t\t<div class=\"col-sm-9\">\r\n\t\t\t\t\t<?php do_action( bp_get_the_profile_field_errors_action() ); ?>\r\n\t\t\t\r\n\t\t\t\t\t<select <?php echo $this->get_edit_field_html_elements( $r ); ?>>\r\n\t\t\t\t\t\t<?php bp_the_profile_field_options( array(\r\n\t\t\t\t\t\t\t'user_id' => $user_id\r\n\t\t\t\t\t\t) ); ?>\r\n\t\t\t\t\t</select>\r\n\t\t\t\r\n\t\t\t\t\t<?php if ( ! bp_get_the_profile_field_is_required() ) : ?>\r\n\t\t\t\r\n\t\t\t\t\t\t<a class=\"clear-value\" href=\"javascript:clear( '<?php echo esc_js( bp_get_the_profile_field_input_name() ); ?>[]' );\">\r\n\t\t\t\t\t\t\t<?php esc_html_e( 'Clear', 'firmasite' ); ?>\r\n\t\t\t\t\t\t</a>\r\n\t\t\t\r\n\t\t\t\t\t<?php endif; ?>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t<?php\r\n\t\t}", "protected function _toOptionArray($valueField='id', $labelField='name', $additional=array())\n {\n $data = parent::_toOptionArray($valueField, $labelField, $additional);\n array_unshift($data, array('value' => '', 'label' => Mage::helper('core')->__('Please select')));\n return $data;\n }", "protected function getFieldOptions()\n {\n return explode(',', $this->option('fields'));\n }", "function get_value_list()\n\t{\n\t\treturn $this->value;\n\t}", "public function getInputField($model, ICrugeField $field, $htmlOptions = array())\r\n {\r\n\r\n $className = get_class($model);\r\n\r\n $name = $className . \"[\" . $field->fieldname . \"]\";\r\n $htmlOpt = array(\r\n 'id' => $className . \"_\" . $field->fieldname\r\n ,\r\n 'size' => $field->fieldsize\r\n ,\r\n 'maxlength' => $field->maxlength\r\n ,\r\n 'rows' => 5\r\n ,\r\n 'cols' => $field->fieldsize\r\n );\r\n\r\n // caso listas: Listbox\r\n // se espera que venga cada valor que se pasara al <option></option>\r\n // venga en la forma \"VALUE, TEXT\"\r\n //\r\n $arOpt = array();\r\n if ($field->fieldtype == CRUGEFIELDTYPE_LISTBOX) {\r\n $arOpt = CrugeUtil::explodeOptions($field->predetvalue);\r\n $htmlOpt['rows'] = null;\r\n $htmlOpt['cols'] = null;\r\n $htmlOpt['size'] = null;\r\n $htmlOpt['maxlength'] = null;\r\n }\r\n \r\n $htmlOpt = array_merge($htmlOpt,$htmlOptions);\r\n\r\n // estos tipos definidos estan en CrugeUserManager\r\n\r\n switch ($field->fieldtype) {\r\n case CRUGEFIELDTYPE_TEXTBOX:\r\n return CHtml::textField($name, $field->getFieldValue(), $htmlOpt) . \"\\n\";\r\n case CRUGEFIELDTYPE_TEXTAREA:\r\n return CHtml::textArea($name, $field->getFieldValue(), $htmlOpt) . \"\\n\";\r\n case CRUGEFIELDTYPE_BOOLEAN:\r\n return CHtml::checkBox($name, $field->getFieldValue(), $htmlOpt) . \"\\n\";\r\n case CRUGEFIELDTYPE_LISTBOX:\r\n return CHtml::dropDownList(\r\n $name,\r\n $field->getFieldValue(),\r\n $arOpt,\r\n $htmlOpt\r\n ) . \"\\n\";\r\n }\r\n return null;\r\n }", "function init_extra_fields() {\n $temp = $this->uc->CallMethod('PickupLocations', array(), 'GET', $this->token);\n $pickups = array();\n if (is_array($temp)) {\n foreach ($temp as $t) {\n $pickups[$t['LocationId']] = $t['Name'];\n }\n }\n\n // obtine lista planurilor tarifare\n $temp = $this->uc->CallMethod('PriceTables', array(), 'GET', $this->token);\n\n $prices = array();\n if (is_array($temp)) {\n foreach ($temp as $t) {\n $prices[$t['PriceTableId']] = empty($t['Name']) ? $t['PriceTableId'] : $t['Name'];\n }\n }\n\n $this->form_fields += array(\n 'pickup' => array(\n 'title' => __('Punct de ridicare', 'urgentcargus'),\n 'type' => 'select',\n 'class' => 'select_height',\n 'options' => array(null => 'Alege punctul de ridicare') + $pickups\n ),\n 'priceplan' => array(\n 'title' => __('Plan tarifar', 'urgentcargus'),\n 'type' => 'select',\n 'class' => 'select_height',\n 'options' => array(null => 'Alege planul tarifar') + $prices\n ),\n 'insurance' => array(\n 'title' => __('', 'urgentcargus'),\n 'label' => __('Asigurare', 'urgentcargus'),\n 'type' => 'checkbox',\n 'default' => 'no'\n ),\n 'saturday' => array(\n 'title' => __('', 'urgentcargus'),\n 'label' => __('Livrare sambata', 'urgentcargus'),\n 'type' => 'checkbox',\n 'default' => 'no'\n ),\n 'morning' => array(\n 'title' => __('', 'urgentcargus'),\n 'label' => __('Livrare dimineata', 'urgentcargus'),\n 'type' => 'checkbox',\n 'default' => 'no'\n ),\n 'open' => array(\n 'title' => __('', 'urgentcargus'),\n 'label' => __('Deschidere colet', 'urgentcargus'),\n 'type' => 'checkbox',\n 'default' => 'no'\n ),\n 'repayment' => array(\n 'title' => __('Incasare ramburs', 'urgentcargus'),\n 'type' => 'select',\n 'class' => 'select_height',\n 'options' => array(\n 'cash' => 'Numerar',\n 'bank' => 'Transfer bancar'\n )\n ),\n 'payer' => array(\n 'title' => __('Platitor expeditie', 'urgentcargus'),\n 'type' => 'select',\n 'class' => 'select_height',\n 'options' => array(\n 'sender' => 'Expeditor',\n 'recipient' => 'Destinatar'\n )\n ),\n 'type' => array(\n 'title' => __('Tip expeditie', 'urgentcargus'),\n 'type' => 'select',\n 'class' => 'select_height',\n 'options' => array(\n 'parcel' => 'Colet',\n 'envelope' => 'Plic'\n )\n ),\n 'free' => array(\n 'title' => __('Plafon transport gratuit', 'urgentcargus'),\n 'type' => 'text',\n ),\n 'fixed' => array(\n 'title' => __('Cost fix transport', 'urgentcargus'),\n 'type' => 'text',\n ),\n 'height' => array(\n 'title' => __('Inaltime', 'urgentcargus'),\n 'type' => 'number',\n ),\n 'width' => array(\n 'title' => __('Latime', 'urgentcargus'),\n 'type' => 'number',\n ),\n 'length' => array(\n 'title' => __('Lungime', 'urgentcargus'),\n 'type' => 'number',\n ),\n 'service' => array(\n 'title' => __('Serviciu', 'urgentcargus'),\n 'type' => 'select',\n 'class' => 'select_height',\n 'options' => array(\n 0 => 'Inactiv',\n 1 => 'Activ'\n )\n ),\n );\n }", "public function getDropDownListData($field)\n {\n switch ($field)\n {\n case 'item_name':\n return ArrayHelper::map(AuthItem::find()->all(),'name','description');\n case 'user_id':\n return ArrayHelper::map(User::find()->all(),'id','username');\n //put more fields need to be mapped.\n \n default:\n return [];\n }\n }", "public function updateEditableFields() {\n\t\t$allowedFields = $this->config()->allowed_field_types;\n\t\tif ($allowedFields) {\n\t\t\t$fieldClasses = singleton('EditableFormField')->getEditableFieldClasses();\n\t\t\tforeach($fieldClasses as $fieldClass => $fieldTitle) {\n\t\t\t\tif (!in_array($fieldClass, $allowedFields)) {\n\t\t\t\t\tConfig::inst()->update($fieldClass, 'hidden', true);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Explicitely allow fields, so subclasses show up\n\t\t\tforeach($allowedFields as $fieldClass) {\n\t\t\t\tConfig::inst()->update($fieldClass, 'hidden', false);\n\t\t\t}\n\t\t}\n\t}", "public static function set_default_values() {\n\t\t?>\n\t\tcase \"nu_phone\" :\n\t\t\tfield.label = \"Phone\";\n\t\t\tfield.isRequired = true;\n\t\t\tfield.description = \"Numbers only. e.g. 8885551212\";\n\t\t\tbreak;\n\t\t<?php\n\t}", "public function GetPickListFields(Vtiger_Request $request)\n\t{\n\t\t$module = $request->get('sourceModule');\n\n\t\t$fieldList = Settings_PickListDependency_Module_Model::getAvailablePicklists($module);\n\n\t\t$response = new Vtiger_Response();\n\t\t$response->setResult($fieldList);\n\t\t$response->emit();\n\t}", "public static function getValues($fieldName)\n\t{\n\t\tif (\\App\\Cache::has('Picklist::getValues', $fieldName)) {\n\t\t\treturn \\App\\Cache::get('Picklist::getValues', $fieldName);\n\t\t}\n\t\t$primaryKey = static::getPickListId($fieldName);\n\t\t$dataReader = (new \\App\\Db\\Query())\n\t\t\t->from(\"vtiger_$fieldName\")\n\t\t\t->orderBy('sortorderid')\n\t\t\t->createCommand()->query();\n\t\t$values = [];\n\t\twhile ($row = $dataReader->read()) {\n\t\t\t$row['picklistValue'] = \\App\\Purifier::decodeHtml(\\App\\Purifier::decodeHtml($row[$fieldName]));\n\t\t\t$row['picklistValueId'] = $row[static::getPickListId($fieldName)];\n\t\t\t$values[$row[$primaryKey]] = $row;\n\t\t}\n\t\t\\App\\Cache::save('Picklist::getValues', $fieldName, $values);\n\t\treturn $values;\n\t}", "function products_settings_field($settings, $value) { \n $attr = array(\"post_type\"=>\"product\", \"orderby\"=>\"name\", \"order\"=>\"asc\", 'posts_per_page' => -1);\n $categories = get_posts($attr); \n $data = '<input type=\"text\" value=\"'.$value.'\" name=\"'.$settings['param_name'].'\" class=\"wpb_vc_param_value wpb-input wpb-select vc_custom_select_custom_val '.$settings['param_name'].' '.$settings['type'].'\" id=\"vc_custom_select_custom_prod\">';\n $data .= '<div class=\"vc_custom_select_custom_wrapper\"><ul class=\"vc_custom_select_custom_vals\">';\n $insterted_vals = explode(',', $value);\n foreach($categories as $val) {\n if( in_array($val->ID, $insterted_vals) ) {\n $data .= '<li data-val=\"'.$val->ID.'\">'.$val->post_title.'<button>×</button></li>';\n }\n }\n $data .= '</ul>'; \n $data .= '<ul class=\"vc_custom_select_custom\">';\n foreach($categories as $val) {\n $selected = '';\n if( in_array($val->ID, $insterted_vals) ) {\n $selected = ' class=\"selected\"';\n }\n $data .= '<li' . $selected . ' data-val=\"'.$val->ID.'\">'.$val->post_title.'</li>';\n }\n $data .= '</ul></div>';\n return $data;\n}", "function wppb_multiple_select_handler( $output, $form_location, $field, $user_id, $field_check_errors, $request_data ){\r\n\tif ( $field['field'] == 'Select (Multiple)' ){\r\n\t\t$item_title = apply_filters( 'wppb_'.$form_location.'_multiple_select_custom_field_'.$field['id'].'_item_title', wppb_icl_t( 'plugin profile-builder-pro', 'custom_field_'.$field['id'].'_title_translation', $field['field-title'] ) );\r\n\t\t$item_description = wppb_icl_t( 'plugin profile-builder-pro', 'custom_field_'.$field['id'].'_description_translation', $field['description'] );\r\n\t\t$item_option_labels = wppb_icl_t( 'plugin profile-builder-pro', 'custom_field_'.$field['id'].'_option_labels_translation', $field['labels'] );\r\n\r\n\t\t$select_labels = explode( ',', $item_option_labels );\r\n\t\t$select_values = explode( ',', $field['options'] );\r\n\r\n\t\t$extra_attr = apply_filters( 'wppb_extra_attribute', '', $field, $form_location );\r\n\r\n if( $form_location != 'register' )\r\n\t\t $input_value = ( ( wppb_user_meta_exists ( $user_id, $field['meta-name'] ) != null ) ? array_map( 'trim', explode( ',', get_user_meta( $user_id, $field['meta-name'], true ) ) ) : array_map( 'trim', explode( ',', $field['default-options'] ) ) );\r\n\t\telse\r\n $input_value = ( isset( $field['default-options'] ) ? array_map( 'trim', explode( ',', $field['default-options'] ) ) : array() );\r\n\r\n $input_value = ( isset( $request_data[wppb_handle_meta_name( $field['meta-name'] )] ) ? array_map( 'trim', $request_data[wppb_handle_meta_name( $field['meta-name'] )] ) : $input_value );\r\n\r\n\t\tif ( $form_location != 'back_end' ){\r\n\t\t\t$error_mark = ( ( $field['required'] == 'Yes' ) ? '<span class=\"wppb-required\" title=\"'.wppb_required_field_error($field[\"field-title\"]).'\">*</span>' : '' );\r\n\t\t\t\t\t\t\r\n\t\t\tif ( array_key_exists( $field['id'], $field_check_errors ) )\r\n\t\t\t\t$error_mark = '<img src=\"'.WPPB_PLUGIN_URL.'assets/images/pencil_delete.png\" title=\"'.wppb_required_field_error($field[\"field-title\"]).'\"/>';\r\n\r\n\t\t\t$output = '\r\n\t\t\t\t<label for=\"'.$field['meta-name'].'\">'.$item_title.$error_mark.'</label>\r\n\t\t\t\t<select name=\"'.$field['meta-name'].'[]\" id=\"'.$field['meta-name'].'\" size=\"'.( count( $select_values ) > 10 ? count( $select_values ) / 2 : count( $select_values ) ).'\" class=\"custom_field_multiple_select '. apply_filters( 'wppb_fields_extra_css_class', '', $field ) .'\" multiple=\"multiple\" '. $extra_attr .'>';\r\n\r\n\t\t\t\tforeach( $select_values as $key => $value){\r\n\t\t\t\t\t$output .= '<option value=\"'.trim( $value ).'\" class=\"custom_field_multiple_select_option\" name=\"'.trim( $value ).'_'.$field['id'].'\" id=\"'.trim( $value ).'_'.$field['id'].'\"';\r\n\t\t\t\t\t\r\n\t\t\t\t\tif ( in_array( trim( $value ), $input_value ) )\r\n\t\t\t\t\t\t$output .= ' selected';\r\n\r\n\t\t\t\t\t$output .= '>'.( ( !isset( $select_labels[$key] ) || !$select_labels[$key] ) ? trim( $select_values[$key] ) : trim( $select_labels[$key] ) ).'</option>';\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$output .= '\r\n\t\t\t\t</select>';\r\n if( !empty( $item_description ) )\r\n $output .= '<span class=\"wppb-description-delimiter\">'.$item_description.'</span>';\r\n\r\n\t\t}else{\r\n $item_title = ( ( $field['required'] == 'Yes' ) ? $item_title .' <span class=\"description\">('. __( 'required', 'profile-builder' ) .')</span>' : $item_title );\r\n\t\t\t$output = '\r\n\t\t\t\t<table class=\"form-table\">\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<th><label for=\"'.$field['meta-name'].'\">'.$item_title.'</label></th>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<select name=\"'.$field['meta-name'].'[]\" class=\"custom_field_multiple_select\" id=\"'.$field['meta-name'].'\" multiple=\"multiple\" '. $extra_attr .'>';\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tforeach( $select_values as $key => $value){\r\n\t\t\t\t\t\t\t\t$output .= '<option value=\"'.trim( $value ).'\" size=\"'.( count( $select_values ) > 10 ? count( $select_values ) / 2 : count( $select_values ) ).'\" class=\"custom_field_multiple_select_option\" id=\"'.trim( $value ).'_'.$field['id'].'\"';\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif ( in_array( trim( $value ), $input_value ) )\r\n\t\t\t\t\t\t\t\t\t$output .= ' selected';\r\n\r\n\t\t\t\t\t\t\t\t$output .= '>'.( ( !isset( $select_labels[$key] ) || !$select_labels[$key] ) ? trim( $select_values[$key] ) : trim( $select_labels[$key] ) ).'</option>';\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$output .= '</select>\r\n\t\t\t\t\t\t\t<span class=\"description\">'.$item_description.'</span>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</table>';\r\n\t\t}\r\n\t\t\t\r\n\t\treturn apply_filters( 'wppb_'.$form_location.'_multiple_select_custom_field_'.$field['id'], $output, $form_location, $field, $user_id, $field_check_errors, $request_data, $input_value );\r\n\t}\r\n}", "public function getListFields();", "function my_epl_add_single_bedrooms_search_dropdown_field($fields) {\n\tforeach($fields as $field_key => &$field) {\n\t if( in_array($field['meta_key'], array('property_bedrooms_min','property_bedrooms_max') ) ) {\n\t\t\tunset($fields[$field_key]);\n\t }\n\t}\n\t$fields[] =array(\n\t\t'key'\t\t\t=>\t'search_bed',\n\t\t//'multiple'\t\t=>\ttrue,\n\t\t'meta_key'\t\t=>\t'property_bedrooms',\n\t\t'label'\t\t\t=>\t__('Bedrooms','epl'),\n\t\t'type'\t\t\t=>\t'select',\n\t\t'option_filter'\t\t=>\t'property_bedrooms',\n\t\t'options'\t\t=>\tarray(\n\t\t\t\t\t\t\t'studio'\t=> 'Studio',\n\t\t\t\t\t\t\t'1'\t\t=> '1',\n\t\t\t\t\t\t\t'2'\t\t=> '2',\n\t\t\t\t\t\t\t'3'\t\t=> '3',\n\t\t\t\t\t\t\t'4'\t\t=> '4',\n\t\t\t\t\t\t\t'5'\t\t=> '5',\n\t\t),\n\t\t'option_type' => 'range', // provide range of option instead of option array\n\t\t'query'\t\t\t=>\tarray(\n\t\t\t\t\t\t\t'query'\t\t=>\t'meta',\n\t\t\t\t\t\t\t'compare'\t=>\t'EQUALS',\n\t\t\t\t\t\t\t'type'\t\t=>\t'numeric'\n\t\t),\n\t\t'class'\t\t\t=>\t'epl-search-row-full',\n\t\t'order'\t\t\t=> 160\n\t);\n\treturn $fields;\n}", "function cfdef_prepare_list_distinct_values( array $p_field_def ) {\n\tdb_param_push();\n\t$t_query = 'SELECT possible_values FROM {custom_field} WHERE id=' . db_param();\n\t$t_result = db_query( $t_query, array( $p_field_def['id'] ) );\n\n\t$t_row = db_fetch_array( $t_result );\n\tif( !$t_row ) {\n\t\treturn false;\n\t}\n\n\t$t_possible_values = custom_field_prepare_possible_values( $t_row['possible_values'] );\n\t$t_values_arr = explode( '|', $t_possible_values );\n\t$t_return_arr = array();\n\n\tforeach( $t_values_arr as $t_option ) {\n\t\tarray_push( $t_return_arr, $t_option );\n\t}\n\treturn $t_return_arr;\n}", "function acf_select_input($attrs = array())\n{\n}", "function oregonaitc_go_access_fields() {\n \n $fields = array(\n\t\tarray(\n 'type' => 'select',\n 'label' => __( 'Valid Subscription', 'oregonaitc' ),\n 'id'\t\t => 'go_access_valid',\n 'options' \t => array( 'yes' => 'Yes', 'no' => 'No' ),\n\t\t),\n\t array(\n 'type' => 'text',\n 'label' => __( 'Get Oregonized Code', 'oregonaitc' ),\n 'id'\t\t => 'go_access_code',\n 'placeholder' => __( '', 'oregonaitc' ),\n\t\t),\t\n ); \n\n return $fields;\n}", "public function getNonSelectableLevelList() {}", "function get_additional_field_options($val){\n\t \t$OPTIONS = stripslashes($val);\n\t\t\t$OPTIONS = str_replace(', ', ',', $OPTIONS);\n\t\t\t$OPTIONS = explode(',', $OPTIONS);\n\t\t\t$output = false;\n\t\t\tforeach($OPTIONS as $option){\n\t\t\t\t$slug = str_replace(' ', '-', $option);\n\t\t\t\t$output[$slug]= $option;\n\t\t\t}\n\t\t\treturn $output;\n\t }", "function getOptionValues() {\t\t\n\t\t$optionvaluesquery = \"SELECT lv.lookuptypevalue as optiontext, lv.lookuptypevalue as optionvalue FROM lookuptype AS l , \n\t\tlookuptypevalue AS lv WHERE l.id = lv.lookuptypeid AND l.name ='\".$this->getName().\"' ORDER BY optiontext \";\n\t\treturn getOptionValuesFromDatabaseQuery($optionvaluesquery);\n\t}", "public function getValuesForForm()\n {\n $collection = $this->getCollection();\n $options = [];\n if ($collection->getSize() > 0) {\n foreach ($collection as $role) {\n $options[] = ['value' => $role->getId(), 'label' => $role->getData('display_name')];\n }\n }\n return $options;\n }", "protected function getExistingFieldOptions() {\n $info = array();\n $field_types = \\Drupal::service('plugin.manager.entity.field.field_type')->getDefinitions();\n\n foreach (field_info_instances() as $existing_entity_type => $bundles) {\n foreach ($bundles as $existing_bundle => $instances) {\n // No need to look in the current bundle.\n if (!($existing_bundle == $this->bundle && $existing_entity_type == $this->entity_type)) {\n foreach ($instances as $instance) {\n $field = field_info_field($instance['field_name']);\n // Don't show\n // - locked fields,\n // - fields already in the current bundle,\n // - fields that cannot be added to the entity type,\n // - fields that should not be added via user interface.\n\n if (empty($field['locked'])\n && !field_info_instance($this->entity_type, $field['field_name'], $this->bundle)\n && (empty($field['entity_types']) || in_array($this->entity_type, $field['entity_types']))\n && empty($field_types[$field['type']]['no_ui'])) {\n $info[$instance['field_name']] = array(\n 'type' => $field['type'],\n 'type_label' => $field_types[$field['type']]['label'],\n 'field' => $field['field_name'],\n 'label' => $instance['label'],\n );\n }\n }\n }\n }\n }\n return $info;\n }", "abstract public function getSettingsFields();", "protected function populate_value()\n {\n }", "public function _getAllowedValueList()\n {\n return self::$valueList;\n }", "function custom_field_tag($name, $custom_value) {\t\n $custom_field = $custom_value['CustomField'];\n $field_name = 'custom_field_values.'.$custom_value['CustomField']['id'];\n\n switch($custom_field['field_format']) {\n case \"date\" :\n $out = $this->Form->input($field_name, array('type'=>'text', 'size'=>10, 'label'=>false, 'div'=>false)); \n // TODO : calender \n // $out .= calendar_for(field_id)\n break;\n case \"text\" :\n $out = $this->Form->input($field_name, array('type'=>'textarea', 'rows'=>3, 'style'=> 'width:90%', 'label'=>false, 'div'=>false ));\n break;\n case \"bool\" :\n $out = $this->Form->input($field_name, array('type'=>'checkbox', 'label'=>false, 'div'=>false));\n break;\n case \"list\" :\n $empty = true;\n $selected = null;\n $type = 'select';\n if($custom_field['is_required']) {\n $empty = false;\n if(empty($custom_field['default_value'])) {\n $options[] = '--- '.__('Please Select').' ---';\n } elseif(empty($this->request->data['custom_field_values'][$custom_value['CustomField']['id']])) {\n $selected = $custom_field['default_value'];\n }\n }\n App::Import('vendor', 'georgious-cakephp-yaml-migrations-and-fixtures/spyc/spyc');\n $list = Spyc::YAMLLoad($custom_value['CustomField']['possible_values']);\n $options = array();\n if(!empty($list)) {\n foreach($list as $item) {\n $options[$item] = $item;\n }\n }\n \n $out = $this->Form->input($field_name, array_merge(compact('type', 'empty', 'selected', 'options'), array('label'=>false, 'div'=>false)));\n break;\n default :\n $out = $this->Form->input($field_name, array('type'=>'text', 'label'=>false, 'div'=>false));\n break;\n }\n return $out;\n }", "public function getDataInputField();", "protected function field_default() {\n\t\t\treturn array(\n\t\t\t\t'inputmask' => false,\n\t\t\t\t'placeholder' => false,\n\t\t\t\t'prefix' => false,\n\t\t\t\t'options' => false,\n\t\t\t\t'surfix' => false,\n\t\t\t);\n\t\t}", "public function getAllowedExcludeFields() {}", "public static function input_fields()\n {\n }", "public function getAllowedValues();", "public function getAllowedValues();", "function barnelli_wp_select( $field ) {\n\tglobal $thepostid, $post, $vision;\n\n\t$thepostid \t\t\t\t= empty( $thepostid ) ? $post->ID : $thepostid;\n\t$field['class'] \t\t= isset( $field['class'] ) ? $field['class'] : 'select short';\n\t$field['wrapper_class'] = isset( $field['wrapper_class'] ) ? $field['wrapper_class'] : '';\n\t$field['value'] \t\t= isset( $field['value'] ) ? $field['value'] : get_post_meta( $thepostid, $field['id'], true );\n\n\techo '<p class=\"form-field ' . esc_attr( $field['id'] ) . '_field ' . esc_attr( $field['wrapper_class'] ) . '\"><label for=\"' . esc_attr( $field['id'] ) . '\">' . wp_kses_post( $field['label'] ) . '</label><select id=\"' . esc_attr( $field['id'] ) . '\" name=\"' . esc_attr( $field['id'] ) . '\" class=\"' . esc_attr( $field['class'] ) . '\">';\n\n\tforeach ( $field['options'] as $key => $value ) {\n\n\t\techo '<option value=\"' . esc_attr( $key ) . '\" ' . selected( esc_attr( $field['value'] ), esc_attr( $key ), false ) . '>' . esc_html( $value ) . '</option>';\n\n\t}\n\n\techo '</select> ';\n\n\tif ( ! empty( $field['description'] ) ) {\n\n\t\tif ( isset( $field['desc_tip'] ) ) {\n\t\t\techo '<img class=\"help_tip\" data-tip=\"' . esc_attr( $field['description'] ) . '\" src=\"' . $vision->plugin_url() . '/assets/images/help.png\" height=\"16\" width=\"16\" />';\n\t\t} else {\n\t\t\techo '<span class=\"description\">' . wp_kses_post( $field['description'] ) . '</span>';\n\t\t}\n\n\t}\n\techo '</p>';\n}", "protected function filterSliderFields(): array\n {\n return [];\n }", "private function setAutofillFields() {\n foreach (static::getFields() as $field_name => $field) {\n if ($field instanceof AutofillField) {\n $this->values[$field_name] = $field->fill();\n }\n }\n }", "function GetExtendedFilterValues() {\n\t\tglobal $dealers_reports;\n\n\t\t// Field StartDate\n\t\t$sSelect = \"SELECT DISTINCT agree.StartDate FROM \" . $dealers_reports->SqlFrom();\n\t\t$sOrderBy = \"agree.StartDate ASC\";\n\t\t$wrkSql = ewrpt_BuildReportSql($sSelect, $dealers_reports->SqlWhere(), \"\", \"\", $sOrderBy, $this->UserIDFilter, \"\");\n\t\t$dealers_reports->StartDate->DropDownList = ewrpt_GetDistinctValues($dealers_reports->StartDate->DateFilter, $wrkSql);\n\t}", "function inbound_cf7_lead_panel_form($post) {\n\n /*get the lists the user selected on the last edit of the form*/\n $previously_set_lists = get_post_meta($post->id(), '_inbound_cf7_lead_list_data');\n /*get the available lists*/\n $lists = Inbound_Leads::get_lead_lists_as_array();\n ?>\n\n <div id=\"inbound-cf7-lead-panel-form\" style=\"width: 100%;\">\n <h3><?php echo __('InboundNow Lead Lists', 'inbound-pro'); ?></h3>\n <p><?php echo __('Select the lists you would like to map leads to', 'inbound-pro'); ?></p>\n <select class=\"inbound-cf7-list-select\" name=\"inbound-cf7-lead-list-select[]\" multiple=\"true\" style=\"width: 50%;\"><?php\n\n /*Go through the list array one list at a time*/\n foreach ($lists as $list_id => $list_name) {\n\n /*If the list is in the second array, select the list*/\n if (in_array($list_id, $previously_set_lists[0])) {\n echo '<option selected=\"true\" value=\"' . $list_id . '\">' . $list_name . '</option>';\n } else {\n\n /*otherwise, just output the option*/\n echo '<option value=\"' . $list_id . '\">' . $list_name . '</option>';\n }\n }\n ?>\n </select>\n </div>\n <?php\n\n}", "protected function createFormFields() {\n\t}", "public function getFrontendFields();", "function getEnableFieldsToBeIgnored() ;", "public function action_allowed_fields() {\n return array();\n }", "protected function get_registered_fields()\n {\n }", "public function populateDesignSelect($field) {\n\n //Fetch data from host\n $data = wp_remote_get($this->apiUrl, ['cacheBust' => $this->uniqid]); \n \n if(wp_remote_retrieve_response_code($data) == 200) {\n \n //Decode\n $choices = json_decode($data['body']); \n\n //Reset select\n $field['choices'] = []; \n\n //Populate select\n if( is_array($choices) && !empty($choices) ) {\n foreach( $choices as $choice ) {\n $field['choices'][ $choice->id ] = $choice->name; \n }\n }\n\n } else {\n $field['choices']['error'] = __(\"Error loading options\", 'muncipio'); \n } \n \n return $field;\n }" ]
[ "0.59444743", "0.5864381", "0.58530223", "0.57899255", "0.5763925", "0.57387835", "0.57312274", "0.5707105", "0.5660606", "0.5638918", "0.5540838", "0.5537544", "0.55037165", "0.550106", "0.5478435", "0.5427912", "0.5415408", "0.5405727", "0.5387405", "0.5382944", "0.53654265", "0.5354006", "0.53409547", "0.53363174", "0.53199756", "0.5315309", "0.5306254", "0.5303479", "0.5291981", "0.5287356", "0.5272554", "0.5270706", "0.52644336", "0.5260644", "0.52600324", "0.5251382", "0.5250574", "0.52457917", "0.5242709", "0.5238793", "0.5226647", "0.5222847", "0.52178055", "0.52174217", "0.52132285", "0.52068615", "0.5206507", "0.5200875", "0.5199163", "0.5196994", "0.51940006", "0.51858807", "0.5172716", "0.5170392", "0.51695365", "0.51622826", "0.5161618", "0.5157096", "0.5156702", "0.5149862", "0.5147082", "0.51435983", "0.51341194", "0.5123505", "0.51208234", "0.5117439", "0.5115064", "0.511505", "0.5114877", "0.51069534", "0.50994027", "0.50955653", "0.509461", "0.5086848", "0.508512", "0.5081853", "0.5081644", "0.5069985", "0.5067599", "0.5066526", "0.50663614", "0.50597113", "0.50593925", "0.5055304", "0.50509226", "0.50507617", "0.505025", "0.5043305", "0.5043305", "0.50411", "0.5038206", "0.5036912", "0.50348544", "0.50339675", "0.5033196", "0.50304216", "0.5029102", "0.5024105", "0.5019775", "0.5018124" ]
0.64021623
0
Function to get picklist key for a picklist.
public static function getPickListId($fieldName) { $pickListIds = [ 'opportunity_type' => 'opptypeid', 'sales_stage' => 'sales_stage_id', 'rating' => 'rating_id', 'ticketpriorities' => 'ticketpriorities_id', 'ticketseverities' => 'ticketseverities_id', 'ticketstatus' => 'ticketstatus_id', 'salutationtype' => 'salutationtypeid', 'faqstatus' => 'faqstatus_id', 'recurring_frequency' => 'recurring_frequency_id', 'payment_duration' => 'payment_duration_id', 'language' => 'id', 'duration_minutes' => 'minutesid', ]; if (isset($pickListIds[$fieldName])) { return $pickListIds[$fieldName]; } return $fieldName . 'id'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getKey();", "public static function getKey();", "private function getKey() {\n\t\tif ( !$this->key )\n\t\t\t$this->key = \"mvn-maillists-\" . sanitize_key( $this->getName() );\n\n\t\treturn $this->key;\n\t}", "function getKey() \n {\n return $this->getValueByFieldName( 'label_key' );\n }", "public function get_key ()\n {\n $_key = $this->key;\n\n if ( ! empty( $_key ) && is_array( $_key ) )\n {\n $_key = join( ':', $_key );\n }\n\n return sanitise_key( $_key );\n }", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "private function getMaillistKey() {\n\t\tif ( !$this->maillistKey )\n\t\t\t$this->maillistKey = \"mvn-maillists-\" . sanitize_key( $this->getName() );\n\n\t\treturn $this->maillistKey;\n\t}", "public function key() {\n\t\tif(($this->endItemIdx !== null) && isset($this->lastItems[$this->endItemIdx])) {\n\t\t\treturn $this->lastItems[$this->endItemIdx][0];\n\t\t} else if(isset($this->firstItems[$this->firstItemIdx])) {\n\t\t\treturn $this->firstItems[$this->firstItemIdx][0];\n\t\t} else {\n\t\t\treturn $this->items->current()->{$this->keyField};\n\t\t}\n\t}", "protected function key()\n {\n $value = $this->keyVal();\n return key($value);\n }", "public function key() {\r\n return key($this->collection);\r\n }", "public function get_key() {\n\t\treturn array_get($this->attributes, static::$key);\n\t}", "public function get_field_key() {\n\t\treturn $this->get_field_attr( 'field_key' );\n\t}", "public function key()\n {\n return key($this->collection);\n }", "public function key()\n {\n return key($this->properties);\n }", "final public function getKey(): string\n {\n return (string)array_flip(static::getValues())[$this->value];\n }", "public function getComponentKey();", "public function getKeyField()\n {\n $class = get_class($this);\n $parts = explode('\\\\', $class);\n $name = $parts[count($parts)-1];\n return strtolower($name) . '_id';\n }", "abstract public function getKey();", "abstract public function getKey();", "public function key() {\n return $this->keys[$this->index];\n }", "public function key()\n {\n return $this->keys[$this->index];\n }", "public function getKey()\n {\n return $this->get(self::KEY);\n }", "public function getKey()\n {\n return $this->get(self::KEY);\n }", "function getKeyField() \n {\n return 'label_key';\n }", "public function getKey() {\n\t\treturn $this -> key;\n\t}", "public function getKey()\n {\n return $this->__get(\"key\");\n }", "public function onGetFilterKey()\n\t{\n\t\t$this->filterKey = JString::strtolower(str_ireplace('PlgFabrik_List', '', get_class($this)));\n\t\treturn $this->filterKey;\n\t}", "public function candidate_key()\n\t{\n\t\tif (!$this->loaded()) return FALSE;\n\t\treturn $this->name;\n\t}", "protected function getHashKey()\n {\n if (!isset($this->options['prefix'])) {\n return $this->getId();\n }\n\n return $this->options['prefix'] . ':' . $this->getId();\n }", "public function key()\n {\n return current($this->keys);\n }", "public function key()\n {\n $map = $this->__getSerialisablePropertyMap();\n $mapKeys = array_keys($map);\n return $mapKeys[$this->iteratorPosition];\n }", "public function key()\n {\n return key($this->_items);\n }", "public function key(): mixed {\n return key($this->items);\n }", "public function key()\n\t{\n\t\treturn $this->_keys[$this->_idx];\n\t}", "public function getKey()\n {\n return $this->getId();\n }", "public function getKeyName();", "public function getKeyName();", "public function getKeyName();", "public function key() {\n\t\treturn key($this->_value);\n\t}", "protected function getKey()\n {\n\treturn 'ip:' . $this->ip;\n }", "public function getKey() {}", "public function getKey() {}", "public function getKey()\n {\n return isset($this->key) ? $this->key : '';\n }", "public function getKey()\n {\n return isset($this->key) ? $this->key : '';\n }", "public function key()\n {\n return $this->keys[$this->iterator];\n }", "public function key()\n {\n return $this->aliases[$this->position];\n }", "public function key(){\n return key($this->items);\n }", "public function key(){\n return key($this->items);\n }", "public function getKey()\n\t{\n\t\treturn $this->data['key'];\n\t}", "public function key()\n {\n return key($this->bricks[$this->position]);\n }", "public function key()\n {\n $current = $this->current();\n\n return is_null($current) ? null : $current->getKey();\n }", "protected function getKey()\n {\n return self::$lockPrefix . $this->name;\n }", "public function key () {\n return key($this->__fields);\n }", "private function key() {\n return sprintf('form_%s_%d', $this->module->name, $this->module->id);\n }", "public function key()\n {\n $currentRecord = $this->storage->current();\n return $currentRecord['uid'];\n }", "public function key()\n {\n return $this->keys[$this->pointer];\n }", "public function getKey(){\n\t\treturn array_intersect_key($this->attributes, array_flip($this->getKeyName()));\n\t}", "public function getKey()\n {\n return $this->__key;\n }", "public function key()\n {\n return $this->current[$this->dataStore->getIdentifier()];\n }", "public function getKey()\n {\n return Config::getKey(get_class($this->config));\n }", "public function key()\r\n\t{\r\n\t\treturn $this->elements[$this->i]->get($this->obj->primaryKey);\r\n\t}", "public function getKey()\n {\n return $this->id;\n }", "protected function libraryKey( $filename = null )\n {\n // contact for key string\n $key = $this->_slug . static::$libraryCollection;\n\n if( !is_null( $filename ) )\n {\n $key .= $filename;\n }\n\n return $key;\n }", "protected abstract function getKeyName();", "public function key($item);", "public function key()\n\t{\n\t\tif (empty($this->key) && !empty($this->definition->primary))\n\t\t{\n\t\t\t$keys = array_values(\n\t\t\t\tarray_filter(\n\t\t\t\t\tpreg_split('~[\\s,]+~', $this->definition->primary)\n\t\t\t\t)\n\t\t\t);\n\t\t\t$keys = array_map(\n\t\t\t\tfunction ($key) {\n\t\t\t\t\treturn Normalise::toVariable($key);\n\t\t\t\t},\n\t\t\t\t$keys\n\t\t\t);\n\n\t\t\t$this->key = count($keys) > 1 ? $keys : array_shift($keys);\n\t\t}\n\n\t\tif (empty($this->key) && $this->has('id'))\n\t\t{\n\t\t\t$this->key = 'id';\n\t\t}\n\n\t\treturn $this->key;\n\t}", "public function getKey()\n\t{\n\t\treturn $this->key;\n\t}", "public function getKey()\n\t{\n\t\treturn $this->key;\n\t}", "public function getKey()\n\t{\n\t\treturn $this->key;\n\t}", "public function getKey()\n\t{\n\t\treturn $this->key;\n\t}", "public function getKey()\n\t{\n\t\treturn $this->key;\n\t}", "public function getIdKey();", "public function getOptionKey()\n {\n return $this->optionKey;\n }", "public function key()\n {\n\t\treturn key($this->_data);\n\t}", "public function key()\n {\n if ($this->list === null)\n $this->rewind();\n $row = key($this->list);\n return $row;\n }", "public function getKey()\n {\n return $this->getProperty()->getKey();\n }", "abstract protected function _getEntriesKeyName();", "function GetKey() { return( $this->key ); }", "public function key()\n {\n return key($this->zipModel->getEntries());\n }", "function get_item_id($item_name) {\n $item_list = make_get_call(\"items\");\n \n foreach ($item_list as $key => $value) {\n if (strtolower($value) == $item_name) return $key;\n }\n \n return $item_list;\n }", "public function getKey()\n {\n return $this->getValue('nb_commerce_product_category_key');\n }" ]
[ "0.6446975", "0.6446975", "0.6263517", "0.60962677", "0.6082947", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.6056128", "0.60378385", "0.6035417", "0.59378546", "0.5913587", "0.59103984", "0.5901937", "0.59014136", "0.5882139", "0.5821043", "0.58169866", "0.5815717", "0.5797464", "0.5797464", "0.5781376", "0.57749474", "0.5745519", "0.5745519", "0.57431376", "0.5741825", "0.5733908", "0.57233393", "0.5711097", "0.5702941", "0.5699199", "0.56899923", "0.5683289", "0.5673172", "0.5671448", "0.5660736", "0.5658921", "0.5658921", "0.5658921", "0.5658415", "0.56502247", "0.5639817", "0.5639817", "0.56346536", "0.56346536", "0.5627828", "0.56206745", "0.56196266", "0.56196266", "0.56190914", "0.56129384", "0.5607996", "0.5607892", "0.55956894", "0.55932", "0.5586133", "0.5585565", "0.558407", "0.55818945", "0.5571932", "0.5564209", "0.55500734", "0.55463314", "0.55332774", "0.5523997", "0.55228454", "0.55178094", "0.55161864", "0.55161864", "0.55161864", "0.55161864", "0.55161864", "0.5514868", "0.5511754", "0.55091137", "0.5507567", "0.55029565", "0.550231", "0.5498866", "0.54963917", "0.5492162", "0.54883933" ]
0.6104558
3
Function to get modules which has picklist values.
public static function getModules() { return (new \App\Db\Query())->select(['vtiger_tab.tabid', 'vtiger_tab.tablabel', 'tabname' => 'vtiger_tab.name'])->from('vtiger_field') ->innerJoin('vtiger_tab', 'vtiger_field.tabid = vtiger_tab.tabid')->where(['uitype' => [15, 16, 33, 115], 'vtiger_field.presence' => [0, 2], 'vtiger_tab.presence' => 0]) ->distinct('vtiger_tab.tabid')->orderBy(['vtiger_tab.tabid' => SORT_ASC])->createCommand()->queryAllByGroup(1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPicklistValues($skipCheckingRole = false)\n\t{\n\t\tif ($this->getName() === 'targetmodule') {\n\t\t\treturn Settings_Webforms_Module_Model::getsupportedModulesList();\n\t\t}\n\t\treturn array();\n\t}", "function getCustomFieldSupportedModules()\n{\n\tglobal $adb;\n\t$sql=\"select distinct ec_field.tabid,name from ec_field inner join ec_tab on ec_field.tabid=ec_tab.tabid where ec_field.tabid not in(7,9,10,29)\";\n\t$result = $adb->getList($sql);\n\tforeach($result as $row)\n\t{\n\t\t$modulelist[$row['name']] = $row['name'];\n\t}\n\treturn $modulelist;\n}", "function forminator_get_modules() {\n\t$forminator = Forminator_Core::get_instance();\n\n\treturn $forminator->modules;\n}", "public function getModulesList();", "public function getModules();", "public function getModules();", "public function getEnabledModules()\n {\n return array_filter($this->definitions, [$this, 'filterEnabled']);\n }", "public function getExcludedModules ();", "function qa_list_modules_info()\n{\n\tglobal $qa_modules;\n\treturn $qa_modules;\n}", "public function getFilterModules()\n {\n $arrModules = [];\n $objModules = $this->Database->execute(\n \"SELECT m.id, m.name, t.name AS theme FROM tl_module m LEFT JOIN tl_theme t ON m.pid=t.id WHERE m.type='newsfilter' ORDER BY t.name, m.name\"\n );\n\n while ($objModules->next())\n {\n $arrModules[$objModules->theme][$objModules->id] = $objModules->name . ' (ID ' . $objModules->id . ')';\n }\n\n return $arrModules;\n }", "function getModules()\n\t{\n\t\t $this->loadModel('Module'); \n\n\t\t $sections = $this->Module->query(\"SELECT * FROM modules WHERE enable = '1'\");\n\t\t return $sections;\n\t}", "public static function getModulesByName(string $moduleName = '')\n\t{\n\t\tif (\\App\\Cache::has('Picklist::getPicklistModulesByName', $moduleName)) {\n\t\t\treturn \\App\\Cache::get('Picklist::getPicklistModulesByName', $moduleName);\n\t\t}\n\t\t$query = (new \\App\\Db\\Query())->select(['vtiger_tab.name', 'vtiger_field.fieldname'])\n\t\t\t->from('vtiger_field')\n\t\t\t->innerJoin('vtiger_tab', 'vtiger_field.tabid = vtiger_tab.tabid')\n\t\t\t->where(['uitype' => [15, 16, 33, 115]]);\n\t\tif ($moduleName) {\n\t\t\t$modules = $query->andWhere(['vtiger_tab.name' => $moduleName])->createCommand()->queryAllByGroup(2);\n\t\t\t$result = $modules[$moduleName] ?? [];\n\t\t} else {\n\t\t\t$result = $query->orderBy(['vtiger_tab.tabid' => SORT_ASC])->createCommand()->queryAllByGroup(2);\n\t\t}\n\t\t\\App\\Cache::save('Picklist::getPicklistModulesByName', $moduleName, $result);\n\t\treturn $result;\n\t}", "public function getModules()\n {\n $oxidConfig = oxConfig::getInstance();\n $modules = $oxidConfig->getShopConfVar('aModules');\n $moduleList = array();\n foreach ($modules as $oxidClass => $module) {\n $moduleList[$oxidClass] = explode('&', $module);\n }\n\n return $moduleList;\n }", "public function getSelect()\n {\n $select = array();\n $modules = $this->getModules();\n\n foreach ($modules as $module) {\n $select[$module->getId()] = $module->getName();\n }\n\n return $select;\n }", "function getModules(){\n global $adb;\n $query=\"select vtiger_tab.tabid,vtiger_tab.tablabel as modulename,linklabel from vtiger_tab left join vtiger_links on vtiger_tab.tabid=vtiger_links.tabid and linklabel='WYSIWYG'\nwhere isentitytype=1 and tablabel!='Comments'\";\n $result=$adb->pquery($query,array());\n while($resultrow = $adb->fetch_array($result)) {\n $modulelist[$resultrow['modulename']]=array('enabled'=>$resultrow['linklabel']==\"WYSIWYG\",'tabid'=>$resultrow['tabid']);\n }\n return $modulelist;\n }", "public function getModules()\n {\n return $this['module.list'];\n }", "function getVoteModulesFields() {\n return array_column(getVoteModulesList(), 'module');\n}", "public static function getModules(){ \n $db = new db();\n $db->connect();\n $modules = $db->selectAll('modules');\n return self::getModulesInfo($modules);\n }", "static function get_all_available_modules()\n {\n $result = array();\n\n $categories = self::get_all_available_categories();\n\n foreach ($categories as $nome_categoria)\n {\n $names = self::get_all_available_by_category($nome_categoria);\n\n if (is_array($names))\n foreach ($names as $nome_modulo)\n {\n $def = self::get_available_module_definition($nome_categoria,$nome_modulo);\n \n $mod = array();\n $mod[\"show\"] = $def->get_show();\n $mod[\"nome_categoria\"] = $nome_categoria;\n $mod[\"nome_modulo\"] = $nome_modulo;\n $version = $def->get_current_version();\n $mod[\"properties\"] = $version;\n $result[] = $mod;\n \n }\n else echo \"Errore per la categoria : \".$nome_categoria;\n\n }\n\n return $result;\n }", "function qa_list_modules($type)\n{\n\t$modules = qa_list_modules_info();\n\treturn is_array(@$modules[$type]) ? array_keys($modules[$type]) : array();\n}", "public static function getAllModules()\n\t\t{\n\n\t\t\t$modules = array();\n\n\t\t\treturn apply_filters( 'studiorum_modules', $modules );\n\n\t\t}", "public function whichModulesAreAvailable($modules_name = [])\n {\n /* removes listing from array because listing is always enabled */\n $key_listing = array_search('listing', $modules_name);\n if (is_int($key_listing)) {\n unset($modules_name[$key_listing]);\n }\n\n /* builds setting keys */\n $keys_setting = [];\n foreach ($modules_name as $item) {\n $keys_setting[$item] = sprintf($this->module_placeholder, $item);\n }\n\n /* fetching modules settings */\n $query = $this->createQueryBuilder('modules');\n $inExpr = $query->expr()->in('modules.name', $keys_setting);\n $rows = $query->where($inExpr)->getQuery()->getResult();\n\n /* @var $row Setting */\n /* turns values into keys and sets null as value */\n $modules_available = array_fill_keys($modules_name, null);\n foreach ($rows as $row) {\n $key = array_search($row->getName(), $keys_setting);\n $modules_available[$key] = $row->getValue() ? true : false;\n }\n /* listing is always enabled */\n $modules_available['listing'] = true;\n\n return $modules_available;\n }", "function efflab_cb_get_module_fieldset() {\n\n $pluginModuleArray = efflab_cb_get_plugin_module_slugs();\n $themeModuleArray = efflab_cb_get_theme_module_slugs();\n \n // See if there is a matching module in theme\n $matchedModules = array_intersect( $themeModuleArray, $pluginModuleArray ); \n $themeOnlyModules = array_diff( $themeModuleArray, $matchedModules );\n $pluginOnlyModules = array_diff( $pluginModuleArray, $matchedModules );\n \n //print_r( $matchedModules );\n //print_r( $themeOnlyModules );\n //print_r( $pluginOnlyModules );\n \n\tif( $matchedModules ){\n\t\n\t\tforeach ( $matchedModules as $matchedModule ) {\n\t\t\t// A match was found check if a custom fieldset exists in theme direcory\n\t\t\tif( file_exists( get_stylesheet_directory().'/effigylabs/acf-content-builder/modules/'.$matchedModule.'/'.$matchedModule.'-fieldset.php' ) ) {\n\t\t\t\tinclude_once get_stylesheet_directory().'/effigylabs/acf-content-builder/modules/'.$matchedModule.'/'.$matchedModule.'-fieldset.php';\n\t\t\t} \n\t\t\t// Else check if a fieldset exists in module directory\n\t\t\telseif( file_exists( EFFLAB_CB_BASE_DIR .'/modules/'.$matchedModule.'/'.$matchedModule.'-fieldset.php' ) ) {\n\t\t\t\tinclude_once EFFLAB_CB_BASE_DIR .'/modules/'.$matchedModule.'/'.$matchedModule.'-fieldset.php';\n\t\t\t} //endif\n\t\t}// end foreach\n\n\t} // endif\n\t\n\tif ( $themeOnlyModules ) {\n\t\n\t\tforeach ( $themeOnlyModules as $themeOnlyModule ) {\n\t\t\t// A match was found check if a custom fieldset exists in theme direcory\n\t\t\tif( file_exists( get_stylesheet_directory().'/effigylabs/acf-content-builder/modules/'.$themeOnlyModule.'/'.$themeOnlyModule.'-fieldset.php' ) ) {\n\t\t\t\tinclude_once get_stylesheet_directory().'/effigylabs/acf-content-builder/modules/'.$themeOnlyModule.'/'.$themeOnlyModule.'-fieldset.php';\n\t\t\t}//endif\n\t\t}// end foreach\n\t\t\n\t} // endif\n\t\n\tif ( $pluginOnlyModules ) {\n\t\n\t\tforeach ( $pluginOnlyModules as $pluginOnlyModule ) {\n\t\t\t// A match was found check if a custom fieldset exists in theme direcory\n\t\t\tif( file_exists( EFFLAB_CB_BASE_DIR .'/modules/'.$pluginOnlyModule.'/'.$pluginOnlyModule.'-fieldset.php' ) ) {\n\t\t\t\tinclude_once EFFLAB_CB_BASE_DIR .'/modules/'.$pluginOnlyModule.'/'.$pluginOnlyModule.'-fieldset.php';\n\t\t\t} //endif\n\t\t}// end foreach\n\t\t\n\t} // endif\n}", "public function getModules() {\n }", "function customlabel_get_candidate_modules() {\n global $COURSE, $CFG;\n\n if (!empty($CFG->upgraderunning)) {\n return;\n }\n\n $modinfo = get_fast_modinfo($COURSE);\n $modules = array('0' => get_string('unassigned', 'customlabeltype_worktodo'));\n\n foreach ($modinfo->get_cms() as $cminfo) {\n if (!$cminfo->visible) {\n continue;\n }\n if (preg_match('/label$/', $cminfo->modname)) {\n continue;\n }\n include_once($CFG->dirroot.'/mod/'.$cminfo->modname.'/lib.php');\n $supportf = $cminfo->modname.'_supports';\n if (!$supportf(FEATURE_GRADE_HAS_GRADE) && !$supportf(FEATURE_GRADE_OUTCOMES)) {\n // Module seems it is not gradable so not a worktodo module.\n continue;\n }\n $modules[$cminfo->module] = $cminfo->name;\n }\n\n return $modules;\n}", "public function getIncludedModules ();", "public function getModuleList(){\n $qb = $this->createQueryBuilder();\n $qb->module('system')->query('modulelistnames');\n return $this->execute($qb);\n }", "public function get_modules( $status = 'all' );", "function get_modules(){\n\trequire_once($_SERVER['DOCUMENT_ROOT'].\"/libs/database.php\");\n\t// consulta obtener los modulos con acceso\n\t$sql=\"select m.nombre from modulos m,permiso_modulo mp where mp.id_modulo=m.id_modulo and mp.id_permiso=(select id_permiso from personal where id_personal=?)\";\n\n\t// toma la pk del usuario y obtiene los datos\n\t$params = array($_SESSION[\"id_personal\"]);\n\t$data = Database::getRows($sql, $params);\n\t// inicia todos los modulos en false\n\t$_modules = array();\n\t// recorre los modulos a los que tiene acceso\n\tforeach($data as $row)\n\t{\n\t\t// cambia a true el elemento de array que le corresponde al modulo\n\t\t$_modules[$row[\"nombre\"]] = true;\t\n\t}\n\treturn $_modules;\n}", "function qa_list_module_types()\n{\n\treturn array_keys(qa_list_modules_info());\n}", "public function getSuggestedModules() {\r\n\r\n// array of which modules are valid for this company\r\n\t\t$valid = array('ReduceIT' => false,\r\n\t\t\t\t\t\t\t\t\t\t'MoveIT'\t=> false,\r\n\t\t\t\t\t\t\t\t\t\t'LoseIT'\t=> false,\r\n\t\t\t\t\t\t\t\t\t\t'BreakIT'\t=> false);\r\n\r\n// get the subscribed modules and set the valid array\r\n\t\t$sql = \"SELECT m.name FROM p_modules AS m \" .\r\n\t\t\t\t\t\t\"JOIN p_company_modules AS comp ON comp.p_module_id = m.id \" .\r\n\t\t\t\t\t\t\"JOIN u_profile AS prof ON prof.company_id = comp.p_company_id \" .\r\n\t\t\t\t\t\t\"WHERE prof.z_user_id = \" . $this->dbOb->escape_string($this->id) . \" \" .\r\n\t\t\t\t\t\t\"AND m.type = 'IT'\";\r\n\t\t$list = $this->dbOb->query($sql);\r\n\t\tforeach($list as $mn) {\r\n\t\t\t$name = preg_replace(\"/ /\", \"\", $mn['name']);\r\n\t\t\t$valid[$name] = true;\r\n\t\t}\r\n\r\n// get iFOCUS scores for each valid module\r\n\t\t$modules = array();\r\n\t\tforeach($valid as $key => $value) {\r\n\t\t\tif ($value) {\r\n\t\t\t\tif ($key == 'ReduceIT') {\r\n\t\t\t\t\t$score = $this->score_stress_management();\r\n\t\t\t\t\t$modules['ReduceIT'] = $score->total;\r\n\t\t\t\t}\r\n\t\t\t\telse if ($key == 'MoveIT') {\r\n\t\t\t\t\t$score = $this->score_physical_activity();\r\n\t\t\t\t\t$modules['MoveIT'] = $score->total;\r\n\t\t\t\t}\r\n\t\t\t\telse if ($key == 'LoseIT') {\r\n\t\t\t\t\t$score = $this->score_weight_nutrition();\r\n\t\t\t\t\t$modules['LoseIT'] = $score->total;\r\n\t\t\t\t}\r\n\t\t\t\telse if ($key == 'BreakIT') {\r\n\t\t\t\t\t$score = $this->score_tobaco_use();\r\n\t\t\t\t\t$modules['BreakIT'] = $score->total;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tunset($valid[$key]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t$sql = \"SELECT name, class_name, short_description, image FROM p_modules \" .\r\n\t\t\t\t\t\t\"WHERE name IN ('Break IT', 'Lose IT', 'Move IT', 'Reduce IT')\";\r\n\t\t$pgm_list = $this->dbOb->query($sql);\r\n\r\n// populate image and link for each module\r\n/*\r\n\t\t$dets = array('ReduceIT'\t=> array ('link'\t=> \"/ModuleReduceIT/Index\",\r\n \t\t\t\t\t\t\t\t\t\t\t'img'\t=> \"/assets/media/images/reduceit/slide_reduceit.jpg\",\r\n \t\t\t\t\t\t\t\t\t\t\t'alt'\t=> \"ReduceIT\"),\r\n \t\t\t\t\t'MoveIT'\t=> array ('link'\t=> \"/ModuleMoveIT/Index\",\r\n \t\t\t\t\t\t\t\t\t\t\t'img'\t=> \"/assets/media/images/moveit/slide_moveit.jpg\",\r\n \t\t\t\t\t\t\t\t\t\t\t'alt'\t=> \"MoveIT\"),\r\n \t\t\t\t\t'LoseIT'\t=> array ('link'\t=> \"/ModuleLoseIT/Index\",\r\n \t\t\t\t\t\t\t\t\t\t\t'img'\t=> \"/assets/media/images/loseit/slide_loseit.jpg\",\r\n \t\t\t\t\t\t\t\t\t\t\t'alt'\t=> \"LoseIT\"),\r\n \t\t\t\t\t'BreakIT'\t=> array ('link'\t=> \"/ModuleBreakIT/Index\",\r\n \t\t\t\t\t\t\t\t\t\t\t'img'\t=> \"/assets/media/images/breakit/slide_breakit.jpg\",\r\n \t\t\t\t\t\t\t\t\t\t\t'alt'\t=> \"BreakIT\")\r\n \t\t\t\t);\r\n*/\r\n\t\t$details = array();\r\n\t\t$keys = array();\r\n\t\tforeach($pgm_list as $pgm) {\r\n\t\t\t$arr = array($pgm['class_name'] => array('link' => \"/\" . $pgm['class_name'] . \"/Index\",\r\n\t\t\t 'img' => $pgm['image'],\r\n\t\t\t 'alt' => $pgm['name'],\r\n\t\t\t 'text' => $pgm['short_description']));\r\n\t\t\tarray_push($details, $arr);\r\n\t\t\tarray_push($keys, $pgm['class_name']);\r\n\t\t}\r\n\r\n\r\n// if user has already taken the module, set the score to higher than the highest (5)\r\n\t\t$detail = array();\r\n\t\tforeach ($modules as $module => $score) {\r\n\t\t\tif ($module == \"ReduceIT\") {\r\n\t\t\t\t$model = new ModuleReduceITModel(true);\r\n\t\t\t\tif ($model->getLastCompleted() == 5) {\r\n\t\t\t\t\t$modules[$module] = 100.0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if ($module == \"MoveIT\") {\r\n\t\t\t\t$model = new ModuleMoveITModel(true);\r\n\t\t\t\tif ($model->getLastCompleted() == 5) {\r\n\t\t\t\t\t$modules[$module] = 100.0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if ($module == \"LoseIT\") {\r\n\t\t\t\t$model = new ModuleLoseITModel(true);\r\n\t\t\t\tif ($model->getLastCompleted() == 5) {\r\n\t\t\t\t\t$modules[$module] = 100.0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if ($module == \"BreakIT\") {\r\n\t\t\t\t$model = new ModuleBreakITModel(true);\r\n\t\t\t\tif ($model->getLastCompleted() == 5) {\r\n\t\t\t\t\t$modules[$module] = 100.0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n// sort modules by score\r\n\t\t$Arr = array();\r\n\t\twhile (count($Arr) < count($modules)) {\r\n\t\t\t$low = 99.0;\r\n\t\t\t$k = \"\";\r\n\t\t\tforeach($modules as $key => $score) {\r\n\t\t\t\tif ($score < $low) {\r\n\t\t\t\t\t$low = $score;\r\n\t\t\t\t\t$k = $key;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif ($k != \"\") {\r\n\t\t\t\t$Arr[$k] = $low;\r\n\t\t\t\t$modules[$k] = 100.0;\r\n\t\t\t}\r\n\t\t}\r\n\r\n//Return the top three (if there's three)\r\n\t\t$count = 0;\r\n\t\tforeach ($Arr as $mod => $s) {\r\n\t\t\t$count += 1;\r\n\t\t\tif ($count > 3) break;\r\n\t\t\tif ($mod == \"ReduceIT\") {\r\n\t\t\t\tfor ($i = 0; $i < 4; $i++) {\r\n\t\t\t\t\tif ($keys[$i] == \"ModuleReduceIT\")\r\n \t\t\t\tarray_push($detail, $details[$i]['ModuleReduceIT']);\r\n \t\t}\r\n \t \t}\r\n \telse if ($mod == \"MoveIT\") {\r\n \t\t\t\tfor ($i = 0; $i < 4; $i++) {\r\n\t\t\t\t\tif ($keys[$i] == \"ModuleMoveIT\")\r\n \t \tarray_push($detail, $details[$i]['ModuleMoveIT']);\r\n \t }\r\n \t\t}\r\n\t \telse if ($mod == \"LoseIT\") {\r\n \t\t\t\tfor ($i = 0; $i < 4; $i++) {\r\n\t\t\t\t\tif ($keys[$i] == \"ModuleLoseIT\")\r\n\t\t\t \t\tarray_push($detail, $details[$i]['ModuleLoseIT']);\r\n\t\t\t }\r\n \t}\r\n \telse if ($mod == \"BreakIT\") {\r\n \t\t\t\tfor ($i = 0; $i < 4; $i++) {\r\n\t\t\t\t\tif ($keys[$i] == \"ModuleBreakIT\")\r\n\t\t \t\tarray_push($detail, $details[$i]['ModuleBreakIT']);\r\n\t\t }\r\n \t}\r\n }\r\n\r\n\t\treturn $detail;\r\n\t}", "function enabledModules() {\n\n\t\t// get user course\n\t\t$myCourse = Course::whereHas('users', function($query) {\n\t\t\t$query->where('course_role', '1')->where('user_id',$this->id);\n\t\t})->first();\n\n\t\t// gather module list and init array\n\t\t$allModules = Module::all();\n\t\t$modulesList = array();\n\n\t\t// return array of 1s if user is not registered to a course\n\t\tif ($myCourse == null) {\n\t\t\t$modulesList = array_fill(0,count($allModules)+1,1);\n\t\t\treturn $modulesList;\n\t\t}\n\n\t\t// gather list of enabled modules for user course\n\t\t$enabledModules = Module::select(array('id'))->whereHas('courses', function($q) use ($myCourse) {\n\t\t\t$q->where('course_id',$myCourse->id)->where('enabled',1);\n\t\t})->get();\n\n\t\t// generate a full list of modules and \n\t\t$modulesList = array_fill(0,count($allModules),0);\n\t\tforeach ($allModules as $mod) {\n\t\t\t// check if current mod is present in modules\n\t\t\tforeach($enabledModules as $eMod) {\n\t\t\t\tif ($eMod->id == $mod->id) {\n\t\t\t\t\t// add to modules list as 1\n\t\t\t\t\t$modulesList[$mod->id] = 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\treturn $modulesList;\n\n\t}", "function set_new_module()\n{\n\tglobal $modules, $_POST;\n\n\t$return = array();\n\tforeach ($modules as $name => $value) {\n\t\tif (isset($_POST[$name]))\n\t\t\t$return[] = $name;\n\t}\n\n\treturn $return;\n}", "public function getModules()\n {\n $orgid = isset($_REQUEST['orgid']) ? decode5t($_REQUEST['orgid']) : '0';\n $data = array();\n try {\n $query = $this->db->query(\"SELECT ModuleId AS module,ViewPermission as permission FROM OrgPermission WHERE OrgId= ? and ModuleId in (5,31,66,171,186,187,2)\", array(\n $orgid\n ));\n $data['permission'] = $query->result();\n }\n catch (Exception $a) {\n $data['permission'] = '0';\n }\n return $data;\n \n }", "protected function installedModules()\n {\n $model = Pi::model('module');\n $select = $model->select()\n ->columns(array('dir' => new Expression('DISTINCT directory')));\n $rowset = $model->selectWith($select);\n $modules = array();\n foreach ($rowset as $row) {\n $modules[] = $row->dir;\n }\n\n return $modules;\n }", "function moduleOptions() {\n $sq = new sql;\n return array();\n // name, type, list\n }", "function efflab_cb_get_module_cpts() {\n\n $pluginModuleArray = efflab_cb_get_plugin_module_slugs();\n $themeModuleArray = efflab_cb_get_theme_module_slugs();\n \n // See if there is a matching module in theme\n $matchedModules = array_intersect( $themeModuleArray, $pluginModuleArray ); \n $themeOnlyModules = array_diff( $themeModuleArray, $matchedModules );\n $pluginOnlyModules = array_diff( $pluginModuleArray, $matchedModules );\n \n //print_r( $matchedModules );\n //print_r( $themeOnlyModules );\n //print_r( $pluginOnlyModules );\n \n\tif( $matchedModules ){\n\t\n\t\tforeach ( $matchedModules as $matchedModule ) {\n\t\t\t// A match was found check if a custom fieldset exists in theme direcory\n\t\t\tif( file_exists( get_stylesheet_directory().'/effigylabs/acf-content-builder/modules/'.$matchedModule.'/'.$matchedModule.'-cpt.php' ) ) {\n\t\t\t\tinclude_once get_stylesheet_directory().'/effigylabs/acf-content-builder/modules/'.$matchedModule.'/'.$matchedModule.'-cpt.php';\n\t\t\t} \n\t\t\t// Else check if a fieldset exists in module directory\n\t\t\telseif( file_exists( EFFLAB_CB_BASE_DIR .'/modules/'.$matchedModule.'/'.$matchedModule.'-cpt.php' ) ) {\n\t\t\t\tinclude_once EFFLAB_CB_BASE_DIR .'/modules/'.$matchedModule.'/'.$matchedModule.'-cpt.php';\n\t\t\t} //endif\n\t\t}// end foreach\n\n\t} // endif\n\t\n\tif ( $themeOnlyModules ) {\n\t\n\t\tforeach ( $themeOnlyModules as $themeOnlyModule ) {\n\t\t\t// No match was found get file from theme direcory\n\t\t\tif( file_exists( get_stylesheet_directory().'/effigylabs/acf-content-builder/modules/'.$themeOnlyModule.'/'.$themeOnlyModule.'-cpt.php' ) ) {\n\t\t\t\tinclude_once get_stylesheet_directory().'/effigylabs/acf-content-builder/modules/'.$themeOnlyModule.'/'.$themeOnlyModule.'-cpt.php';\n\t\t\t}//endif\n\t\t}// end foreach\n\t\t\n\t} // endif\n\t\n\tif ( $pluginOnlyModules ) {\n\t\n\t\tforeach ( $pluginOnlyModules as $pluginOnlyModule ) {\n\t\t\t// No matches found get file from plugin direcory\n\t\t\tif( file_exists( EFFLAB_CB_BASE_DIR .'/modules/'.$pluginOnlyModule.'/'.$pluginOnlyModule.'-cpt.php' ) ) {\n\t\t\t\tinclude_once EFFLAB_CB_BASE_DIR .'/modules/'.$pluginOnlyModule.'/'.$pluginOnlyModule.'-cpt.php';\n\t\t\t} //endif\n\t\t}// end foreach\n\t\t\n\t} // endif\n}", "protected function getModuleComponents() {\n\t return [\n\t ];\n\t}", "function date_tools_wizard_required_modules($options = array()) {\n $options = date_tools_wizard_options($options);\n $modules = array(\n 'date_timezone', 'date_api', 'content', 'date', \n 'calendar', 'views', 'views_ui',\n );\n if (in_array('popups', $options)) {\n $modules = array_merge($modules, array('date_popup', 'jcalendar'));\n }\n if (in_array('repeat', $options)) {\n $modules = array_merge($modules, array('date_repeat'));\n }\n return $modules;\n}", "public static function modules() {\n\t\tif (!isset(self::$_modules)) {\n//\t\t\tif(\\GO::user()){\n//\t\t\t\n//\t\t\tCaching caused more problems than benefits\n//\t\t\t\n//\t\t\t\tif(isset(\\GO::session()->values['modulesObject']) && !isset($GLOBALS['GO_CONFIG'])){\n//\t\t\t\t\tself::$_modules=\\GO::session()->values['modulesObject'];\n//\t\t\t\t}else{\n//\t\t\t\t\tself::$_modules=\\GO::session()->values['modulesObject']=new \\GO\\Base\\ModuleCollection();\n//\t\t\t\t}\n//\t\t\t}else\n//\t\t\t{\n//\t\t\t\tself::$_modules=new \\GO\\Base\\ModuleCollection();\n//\t\t\t}\n\t\t\t\n\t\t\tself::$_modules=new \\GO\\Base\\ModuleCollection();\n\t\t}\n\t\treturn self::$_modules;\n\t}", "public function getAvailableModules(string $module): array;", "public function getModules() {\n return $this->modules;\n }", "public function getModules()\n {\n return array();\n }", "public function getModules()\n {\n return $this->modules;\n }", "public function getModules()\n {\n return $this->modules;\n }", "public function getModules()\n {\n return $this->modules;\n }", "protected function _getListModuleNeedToByPassSession()\n {\n $modules = explode(\"\\n\", Mage::getStoreConfig('japi/jmango_rest_developer_settings/exclude_modules'));\n if (!count($modules)) return false;\n $helper = Mage::helper('core');\n foreach ($modules as $module) {\n if ($helper->isModuleEnabled(trim($module))) {\n return true;\n }\n }\n }", "function getRemoteModules()\n{\n $remoteModules = array();\n foreach($this->ModuleFields as $mfName => $mf){\n if('remotefield' == strtolower(get_class($mf))){\n $remoteModules[$mfName] = $mf->remoteModuleID;\n }\n }\n return $remoteModules;\n}", "function get_active_modules($type='payment'){\r\r\n\t\t// type\r\r\n\t\tif($type == 'autoresponder'){\r\r\n\t\t\t// check\r\r\n\t\t\tif(isset($this->active_modules[$type])){\r\r\n\t\t\t\t// return\r\r\n\t\t\t\treturn (array)$this->active_modules[$type];\r\r\n\t\t\t}\r\r\n\t\t}else{\r\r\n\t\t// active payment modules\t\t\r\r\n\t\t\tif(isset($this->active_modules[$type]) && is_array($this->active_modules[$type])){\r\r\n\t\t\t\t// return\r\r\n\t\t\t\treturn array_unique($this->active_modules[$type]);\t\r\r\n\t\t\t}\r\r\n\t\t}\t\t\r\r\n\t\t// error\t\r\r\n\t\treturn array();\t\r\r\n\t}", "function usp_ews_modules_in_use($courseid) {\n global $DB;\n\t\n $dbmanager = $DB->get_manager(); // used to check if tables exist\n $modules = usp_ews_get_active_monitorable_modules();\n $modulesinuse = array();\n\n foreach ($modules as $module => $details) {\n if (\n $dbmanager->table_exists($module) &&\n $DB->record_exists($module, array('course'=>$courseid))\n ) {\n $modulesinuse[$module] = $details;\n }\n }\n return $modulesinuse;\n}", "public function all()\n {\n return $this->modules;\n }", "public function getLoadedModules() {}", "function createListeModules($idForm){\n //1>recherche de l'id du theme selectionné\n $bdd = getBdd();\n $req = $bdd->prepare('SELECT * FROM modules WHERE idModules IN (SELECT idModules FROM contenu_parcours WHERE IdFormation = ?)');\n $req->execute(array($idForm));\n\n return $req;\n}", "public function getDisallowedModules()\n {\n if(!is_null($this->disallowed_modules)) {\n return $this->disallowed_modules;\n }\n if(empty($GLOBALS['report_modules'])) {\n require_once 'modules/Reports/config.php';\n if(empty($GLOBALS['report_modules'])) {\n // this shouldn't happen but if it does, no modules for you\n return array_keys($GLOBALS['beanList']);\n }\n }\n $this->disallowed_modules = array();\n foreach($GLOBALS['report_modules'] as $module => $name) {\n $seed = BeanFactory::newBean($module);\n if(empty($seed) || !$seed->ACLAccess(\"view\")) {\n $this->disallowed_modules[] = $module;\n }\n }\n return $this->disallowed_modules;\n }", "public function GetPickListFields(Vtiger_Request $request)\n\t{\n\t\t$module = $request->get('sourceModule');\n\n\t\t$fieldList = Settings_PickListDependency_Module_Model::getAvailablePicklists($module);\n\n\t\t$response = new Vtiger_Response();\n\t\t$response->setResult($fieldList);\n\t\t$response->emit();\n\t}", "function getAvailableModulesOfKey($key)\n {\n $availableModules = [];\n $modules = $this->getAllModulesOfProject();\n foreach ($modules as $module)\n {\n $translations = $this->getTranslationsOfModule($module);\n foreach ($translations as $lang => $value)\n {\n if (get($value,$key) && !in_array($module->name, $availableModules))\n $availableModules[] = $module->name;\n }\n }\n return $availableModules;\n }", "public function getAllModules()\n\t{\n\t\treturn $this->modules;\n\t}", "public function getAllModules()\n {\n $modules = array();\n $query = 'SELECT m.id, m.name, t.name AS theme FROM tl_module m LEFT JOIN tl_theme t ON m.pid=t.id';\n\n if (\\Input::get('table') == 'tl_module' && \\Input::get('act') == 'edit') {\n $query .= ' WHERE m.id != ?';\n }\n\n $query .= ' ORDER BY t.name, m.name';\n $result = \\Database::getInstance()\n ->prepare($query)\n ->execute(\\Input::get('id'));\n\n while ($result->next()) {\n $modules[$result->theme][$result->id] = $result->name . ' (ID ' . $result->id . ')';\n }\n\n return $modules;\n }", "public static function getModules()\n {\n $modules = [];\n $modules[] = new D2UModule('20-1',\n 'D2U Adressen - Adressausgabe',\n 10);\n $modules[] = new D2UModule('20-2',\n 'D2U Adressen - Kontaktbox',\n 5);\n $modules[] = new D2UModule('20-3',\n 'D2U Adressen - Weltkarte',\n 1);\n return $modules;\n }", "public function getModuleFields()\n\t{\n\t\treturn $this->getOptionData('tl_module');\n\t}", "protected function forms()\r\n {\r\n $metaFileInfo = $this->getFormObj()->GetMetaFileInfo();\r\n $modulePath = $metaFileInfo['modules_path'];\r\n $modulePath = substr($modulePath,0,strlen($modulePath)-1);\r\n global $g_MetaFiles;\r\n php_grep(\"<EasyForm\", $modulePath);\r\n \r\n for ($i=0; $i<count($g_MetaFiles); $i++)\r\n {\r\n $g_MetaFiles[$i] = str_replace('/','.',str_replace(array($modulePath.'/','.xml'),'', $g_MetaFiles[$i]));\r\n $list[$i]['val'] = $g_MetaFiles[$i];\r\n $list[$i]['txt'] = $g_MetaFiles[$i];\r\n }\r\n\r\n return $list; \r\n }", "function efflab_cb_get_plugin_module_slugs() {\n\t$pluginModules = glob( EFFLAB_CB_BASE_DIR .'/modules/*' , GLOB_ONLYDIR );\n\t\n\t// Build array of slugs\n\tif($pluginModules){\n\t $pluginModuleArray = [];\n\t foreach ($pluginModules as $pluginModule ) {\n\t \t$pluginMod = basename( $pluginModule );\n\t \t$pluginModuleArray[] = $pluginMod;\n\t }// end foreach\n\t //print_r($pluginModuleArrary);\n\t} // endif\n\t\n\treturn $pluginModuleArray;\n}", "public function get_act_modules()\n {\n return $this->active_modules;\n }", "public function getLoadedModules($loadModules);", "public function getModules(){\n $qb = $this->createQueryBuilder();\n $qb->module('system')->query('modulelist');\n return $this->execute($qb);\n }", "function getAllowedModules( $user_id = 0 )\n\t{\n\t\tif ( !$user_id )\n\t\t{\n\t\t\t$user_id = $this->user_id;\n\t\t}\n\t\t\n\t\t$sql = \"SELECT `permission_grant_on`\n\t\t\t\tFROM `permissions`\n\t\t\t\tWHERE (`permission_user` = $user_id)\n\t\t\t\tAND (`permission_value` != 0 )\";\n\t\t\t\t\n\t\treturn db_loadList( $sql );\t\t\t\t\n\t}", "public function _get_picker_choices() {\n\t\t$this->load_data();\n\t\t$result = array();\n\t\tforeach ( $this->data as $unique_key => $item ) {\n\t\t\t$result[ $unique_key ] = ( isset( $item['options'] ) && is_array( $item['options'] ) ) ? $item['options'] : array();\n\t\t}\n\n\t\treturn $result;\n\t}", "public static function get_modules(){\n $parent_modules = self::where('parent','=',0)->get();\n\n $modules = array();\n\n foreach($parent_modules as $p) {\n\n $modules[] = array(\n 'id' => $p->id,\n 'name' => $p->name,\n 'kids' => self::where('parent','=',$p->id)->get()\n );\n\n }//endforeach\n\n \n return $modules;\n \n }", "public function getModules(Llv_Entity_Referential_Filter_Modules $filter)\n {\n return Llv_Entity_Referential_Dal_Modules::getAll($filter);\n }", "function getModules($Field='', $Input=array(), $multiRecords=FALSE){\r\n\t\t$Params = array();\r\n\t\tif(!empty($Field)){\r\n\t\t\t$Params = array_map('trim',explode(',',$Field));\r\n\t\t}\r\n\t\t$this->db->select($Field,false);\r\n\t\t$this->db->from('admin_modules M');\r\n\r\n\t\tif(!empty($Input['UserTypeID'])){\r\n\t\t\tif(empty($Input['Permitted'])){\r\n\t\t\t\t$this->db->select(\"IF(UTP.UserTypeID,'Yes','No') Permission,UTP.IsDefault\",false);\r\n\t\t\t\t$this->db->join('admin_user_type_permission UTP', \"M.ModuleID=UTP.ModuleID AND UTP.UserTypeID='\".$Input['UserTypeID'].\"' \", 'left');\r\n\t\t\t}else{\r\n\t\t\t\t$this->db->from('admin_user_type_permission AUTP');\r\n\t\t\t\t$this->db->where(\"AUTP.ModuleID\",\"M.ModuleID\", FALSE);\r\n\t\t\t\t$this->db->where(\"AUTP.UserTypeID\",$Input['UserTypeID']);\t\t\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif(!empty($Input['ModuleName'])){\r\n\t\t\t$this->db->where(\"M.ModuleName\",$Input['ModuleName']);\r\n\t\t\t$this->db->limit(1);\t\t\r\n\t\t}\r\n\t\t$this->db->order_by('M.ModuleTitle','ASC');\r\n\r\n\t\t$Query = $this->db->get();\r\n\t\tif($Query->num_rows()>0){\r\n\t\t\tforeach($Query->result_array() as $Record){\r\n\t\t\t\tif(!$multiRecords){\r\n\t\t\t\t\treturn $Record;\r\n\t\t\t\t}\r\n\t\t\t\t$Records[] = $Record;\r\n\t\t\t}\r\n\t\t\t$Return['Data']['Records'] = $Records;\r\n\t\t\treturn $Return;\r\n\t\t}\r\n\t\treturn FALSE;\t\t\r\n\t}", "public function getModulesPairs()\n\t{\n\t\t$db = $this->getDbTable()->getAdapter();\n\t\t$select = $db->select()\n\t\t\t->from(array('m' => 'system_modules'), array('module_name', 'id'));\n\t\treturn $db->fetchPairs($select);\n\t}", "public function getModuleNames()\r\n {\r\n return $this->_moduleNames;\r\n }", "static function modulesConfig($onlyConfigured=false){\r\n\t\t$conf = smvcCollection::init(defined('MODULES_CONF') ? json_decode(MODULES_CONF,true) : array())\r\n\t\t\t->combine(self::$modulConfKeys)\r\n\t\t\t->sort('weight')\r\n\t\t;\r\n\t\tif( $onlyConfigured ){\r\n\t\t\treturn $conf;\r\n\t\t}\r\n\t\t$modulesIterator = new DirectoryIterator(MODULES_DIR);\r\n\t\t$modules = array();\r\n\t\tforeach( $modulesIterator as $mod ){\r\n\t\t\tif( $mod->isDot() || ! $mod->isDir() )\r\n\t\t\t\tcontinue;\r\n\t\t\t$modules[] = $mod = $mod->getFileName();\r\n\t\t\t$maxWeight = $conf->max('weight');\r\n\t\t\tif(! isset($conf[$mod]) ){\r\n\t\t\t\t$conf[$mod] = array(\r\n\t\t\t\t\t'active'=> false\r\n\t\t\t\t\t,'weight'=> ++$maxWeight\r\n\t\t\t\t\t,'installed'=> false\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $conf;\r\n\t}", "public static function getModules()\n \t{\n \t\t// Define & init static variables\n \t\tstatic\t$arrModules\t\t\t= NULL;\n \t\tstatic\t$selModules;\n \t\tstatic\t$selModuleConfig;\n \t\tstatic\t$arrCustomerGroups;\n \t\tif (!isset($arrModules))\n \t\t{\n\t \t\t$selModules\t\t\t= new StatementSelect(\"billing_charge_module\", \"*\", \"active_status_id = \".ACTIVE_STATUS_ACTIVE, \"ISNULL(customer_group_id) DESC\");\n\t \t\t$selModuleConfig\t= new StatementSelect(\"billing_charge_module_config\", \"*\", \"billing_charge_module_id = <id>\");\n\t \t\t\n\t \t\t$arrModules\t= Array();\n\t \t\t\n\t \t\t// Get list of CustomerGroups\n\t \t\t$selCustomerGroups\t= new StatementSelect(\"CustomerGroup\", \"Id\", \"1\");\n\t \t\tif ($selCustomerGroups->Execute() === FALSE)\n\t \t\t{\n\t \t\t\tthrow new Exception_Database(\"DB Error: \".$selCustomerGroups->Error());\n\t \t\t}\n\t \t\twhile ($arrCustomerGroup = $selCustomerGroups->Fetch())\n\t \t\t{\n\t \t\t\t$arrModules[$arrCustomerGroup['Id']]['Billing_Charge_Account']\t= Array();\n\t \t\t\t$arrModules[$arrCustomerGroup['Id']]['Billing_Charge_Service']\t= Array();\n\t \t\t\t\n\t \t\t\t$arrCustomerGroups[]\t= $arrCustomerGroup;\n\t \t\t}\n \t\t\t\n\t \t\t// Retrieve all Billing Charge Modules\n\t \t\tif ($selModules->Execute() !== FALSE)\n\t \t\t{\n\t \t\t\twhile ($arrModule = $selModules->Fetch())\n\t \t\t\t{\n\t \t\t\t\t// Instanciate the Class\n\t \t\t\t\t$modModule\t= new $arrModule['class']($arrModule['id']);\n\t \t\t\t\t\n\t \t\t\t\t// Is this Module for All CustomerGroups, or just one?\n\t \t\t\t\tif ($arrModule['customer_group_id'] === NULL)\n\t \t\t\t\t{\n\t \t\t\t\t\t// All CustomerGroups, although this can be overridden later\n\t \t\t\t\t\tforeach ($arrCustomerGroups as $arrCustomerGroup)\n\t \t\t\t\t\t{\n\t \t\t\t\t\t\t$arrModules[$arrCustomerGroup['Id']][get_parent_class($modModule)][get_class($modModule)]\t= $modModule;\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// Just One CustomerGroup. If there is already an \"All\" Module defined, then override it\n\t \t\t\t\t\t$arrModules[$arrModule['customer_group_id']][get_parent_class($modModule)][get_class($modModule)]\t= $modModule;\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\tthrow new Exception_Database(\"DB ERROR: \".$selModules->Error());\n\t \t\t}\n \t\t}\n\t \t\n\t\t// Return array of Billing Charge Modules\n\t\treturn $arrModules;\n \t}", "public function uultra_get_modules_for_membership($package_id)\r\n\t{\r\n\t\tif(!get_option('userultra_default_user_features_package_'.$package_id.'') || $package_id=='')\r\n\t\t{\r\n\t\t\t$modules =get_option('userultra_default_user_features');\t\t\r\n\t\t\r\n\t\t}else{\r\n\t\t\t\r\n\t\t\t$modules =get_option('userultra_default_user_features_package_'.$package_id.'');\t\t\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn $modules ;\r\n\t\t\r\n\t}", "private function getAllModulesOfProject()\n {\n return $this->modulesRegistry->getModules();\n }", "public static function modules()\n {\n return static::$modules ?: static::$modules = new Modules;\n }", "private static function getModulesForUser($moduleFolder) {\r\n\t\t$modules = self::getModules($moduleFolder);\r\n\t\t$loadedModules = array();\r\n\t\tif ($modules !== false) {\r\n\t\t\tforeach ($modules as $key => $module) {\r\n\t\t\t\t$notAuth = (isset($module['required_permission']) && !CoreUtils::hasPermission($module['required_permission']));\r\n\t\t\t\t/**\r\n * @todo Replace with MyRadio built in location Auth\r\n */\r\n\t\t\t\t$notStudio = (isset($module['required_location']) && ($module['required_location'] === True && self::isAuthenticatedMachine() === False));\r\n\t\t\t\t\r\n\t\t\t\tif ($notAuth && $notStudio) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n $loadedModules[] = $module;\r\n\t\t\t}\r\n\t\t\treturn $loadedModules;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "function isModuleOn($name)\n{\n\t$str9=\"select value1 from options where name='\".$name.\"'\";\n\t$result9=mysql_query($str9) or die(mysql_error());\n\t$row9=mysql_fetch_array($result9);\t\n\t$t=$row9['value1']; \n\tmysql_free_result($result9);\n\treturn $t;\n}", "function loadModules($field = null, $condition = \"\"){ \r\n if($field == null){\r\n $field = \"a.id, a.title, a.alias, a.cdate, a.mdate, a.ordering, a.position, a.menu, a.module, a.description, a.status + 2*(b.status - 1) as status, a.params\";\r\n }\r\n \r\n $command = $this->_db->createCommand()->select($field)\r\n ->from(TBL_MODULES . \" as a\")\r\n ->leftjoin(TBL_EXTENSIONS . \" as b\", \" a.module = b.folder\");\r\n if($conditions != null) $command->where($conditions);\r\n $items = $command->queryAll();\r\n return $items;\r\n }", "function usp_ews_get_active_monitorable_modules() {\n global $DB;\n\n\t$fields = 'name';\n\t$active_site_modules = array();\n\t\n\t// get records of modules thoses are activve in site level\n\t$active_site_modules_records = $DB->get_records('modules', array('visible'=>'1'), '', $fields);\n\t\n\tforeach ($active_site_modules_records as $usp_ews_module=>$details) {\n\t\t$active_site_modules[] = $details->name;\n\t}\n\t\n\t$monitored_modules = usp_ews_get_monitorable_modules();\n\n\tforeach ($monitored_modules as $modules=>$detail) {\n\t\tif(!in_array($modules, $active_site_modules))\t{\n\t\t\tunset($monitored_modules[$modules]);\n\t\t}\n\t}\n\n\treturn $monitored_modules;\n}", "function efflab_cb_get_theme_module_slugs() {\n\t$themeModules = glob( get_stylesheet_directory().'/effigylabs/acf-content-builder/modules/*' , GLOB_ONLYDIR );\n\t\n\t// Build array of slugs\n\tif($themeModules){\n\t$themeModuleArray = [];\n\t\tforeach ($themeModules as $themeModule ) {\n\t\t\t$pluginMod = basename( $themeModule );\n\t\t\t$themeModuleArray[] = $pluginMod;\n\t\t}// end foreach\n\t\t//print_r($themeModuleArrary);\n\t} // endif\n\t\n\treturn $themeModuleArray;\n}", "public function actionModules_allowed() {\n if (isset($_POST['course_id']) != 0) {\n $output = '';\n if ($_POST['course_id'] == 1) {\n $upto = 6;\n } else if ($_POST['course_id'] == 2) {\n $upto = 5;\n } else {\n $upto = 1;\n }\n $output .= '<select id=\"dvregistration-modules_allowed\" class=\"form-control\" name=\"DvRegistration[modules_allowed]\" required=\"required\">\n <option value=\"\">Select Modules Allowed</option>';\n\n for ($i = 1; $i <= $upto; $i++) {\n $output .= '<option value=\"' . $i . '\">' . $i . '</option>';\n }\n\n $output .= '</select>';\n return $output;\n } else {\n return $this->redirect(['dv-registration/index']);\n }\n }", "private function getAdminThemeComponetsModules()\n { \n $variables = \"\";\n\n foreach($this->adminComponetsModules as $com => $c){\n $variables.=(\"modules.\".$com.\"='\".URL::to($c).\"';\");\n }\n\n return $variables;\n }", "private function get_mods_information($search) {\n global $COURSE;\n $modnames = get_module_types_names(); //get all the names avaliable for this course\n \n //start with no names\n $filtered_names = array();\n\n //if the search is null, or empty then assume no filtering\n if (!empty($search)) {\n \n //generate the search regex pattern based on search string\n $pattern = $this->create_search_pattern($search);\n \n //go through all the possible modules possible\n foreach ($modnames as $modname=>$name) {\n \n //for each one that matches our search - add it to our filtered names list\n if (preg_match($pattern, $name))\n $filtered_names[$modname] = $name;\n }\n } else {//no filtering - use all mods\n $filtered_names = $modnames;\n }\n\n //get module details for all desired modules\n $modules = get_module_metadata($COURSE, $filtered_names); //get all metadata for the given names\n\n //return module info\n return $modules;\n }", "public function getary_modul()\n {\n return $data = ArrayHelper::map(NotulenModul::find()->where('STATUS <>3')->asArray()->all(),'ID','MODUL_NM');\n }", "public function selectAllMod():array{\r\n\r\n $sql=\"SELECT * FROM module\";\r\n return $this->dataBase->executeSelect($sql); \r\n }", "public function getReaderModules()\n {\n $arrModules = [];\n $objModules = $this->Database->execute(\n \"SELECT m.id, m.name, t.name AS theme FROM tl_module m LEFT JOIN tl_theme t ON m.pid=t.id WHERE m.type LIKE 'newsreader%' ORDER BY t.name, m.name\"\n );\n\n while ($objModules->next())\n {\n $arrModules[$objModules->theme][$objModules->id] = $objModules->name . ' (ID ' . $objModules->id . ')';\n }\n\n return $arrModules;\n }", "protected function getModules() {\n\t\t$modules = parent::getModules();\n\t\t\n\t\t// Get only modules with translations\n\t\treturn array_filter($modules, function(Module $module) {\n\t\t\t// Automatically skip un-translateable modules\n\t\t\treturn $module->isTranslatable();\n\t\t});\n\t}", "public function getDataListModule()\n {\n $this->db->select('*');\n $this->db->from('xi_sa_module');\n $this->db->order_by('id_module', 'ASC');\n $query = $this->db->get();\n\n return $query->result();\n }", "public function get_form_elements_module($mform, $context, $modulename='') {\n global $DB, $PAGE;\n\n // when updating an assignment, cmid of the assignment is passed by \"update\" param\n // when creating an assignment, cmid does not exist, but course id is provided via \"course\" param\n $cmid = optional_param('update', 0, PARAM_INT);\n $course_id = optional_param('course', 0, PARAM_INT);\n if (!$this->is_plugin_enabled($cmid, $course_id)) {\n return;\n }\n\t\t$plagiarism_config = null;\n $assignment_context = null;\n\t\tif ($cmid) {\n $plagiarism_config = $DB->get_record('plagiarism_programming', array('cmid'=>$cmid));\n $assignment_context = get_system_context($cmid);\n\t\t\t//$assignment_context = context_module::instance($cmid);\n }\n\n $mform->addElement('header', 'programming_header', get_string('plagiarism_header', 'plagiarism_programming'));\n\n // Enable or disable plagiarism checking\n $enable_checking = array();\n $enable_checking[] = &$mform->createElement('radio', 'programmingYN', '', get_string('disable'), 0);\n $enable_checking[] = &$mform->createElement('radio', 'programmingYN', '', get_string('enable'), 1);\n $mform->addGroup($enable_checking, 'similarity_checking',\n get_string('programmingYN', 'plagiarism_programming'), array(' '), false);\n\n // Select the language used\n $programming_languages = array(\n 'java' => 'Java',\n 'c' => 'C/C++',\n 'c#' => 'C#',\n 'scheme'=>'Scheme',\n 'text' => 'Plain text',\n 'python' => 'Python',\n 'vb' => 'Visual Basic',\n 'js' => 'Javascript',\n 'pascal' => 'Pascal',\n 'lisp' => 'Lisp',\n 'perl' => 'Perl',\n 'prolog' => 'Prolog',\n 'plsql' => 'Pl-SQL',\n 'mathlab' => 'MathLab',\n 'mips' => 'MPIS Assembly',\n 'a8086' => '8086 Assembly',\n 'fortran' => 'Fortran'\n );\n $mform->addElement('select', 'programming_language',\n get_string('programming_language', 'plagiarism_programming'), $programming_languages);\n\n // Disable the tools when no credentials provided\n $settings = get_config('plagiarism_programming');\n $moss_disabled = null;\n\t\n if (empty($settings->moss_user_id)) {\n $moss_disabled = array('disabled'=>true);\n }\n\n // Check box for selecting the tools\n $selected_tools = array();\n $selected_tools[] = &$mform->createElement('checkbox', 'moss', '', get_string('moss', 'plagiarism_programming'), $moss_disabled);\n $mform->addGroup($selected_tools, 'detection_tools', get_string('detection_tools', 'plagiarism_programming'));\n\n $this->setup_multiple_scandate($mform, $plagiarism_config);\n\n $mform->addElement('checkbox', 'auto_publish', get_string('auto_publish', 'plagiarism_programming'));\n $mform->addElement('checkbox', 'notification', get_string('notification', 'plagiarism_programming'));\n $mform->addElement('textarea', 'notification_text', get_string('notification_text', 'plagiarism_programming'),\n 'wrap=\"virtual\" rows=\"4\" cols=\"50\"');\n $this->setup_code_seeding_filemanager($mform, $plagiarism_config, $assignment_context);\n\n $mform->disabledIf('programming_language', 'programmingYN', 'eq', 0);\n $mform->disabledIf('auto_publish', 'programmingYN', 'eq', 0);\n $mform->disabledIf('notification', 'programmingYN', 'eq', 0);\n $mform->disabledIf('notification', 'programmingYN', 'eq', 0);\n $mform->disabledIf('notification_text', 'programmingYN', 'eq', 0);\n $mform->disabledIf('notification_text', 'notification', 'notchecked');\n /* jplag and moss checkbox is enabled and disabled by custom javascript*/\n\n $mform->addHelpButton('similarity_checking', 'programmingYN_hlp', 'plagiarism_programming');\n $mform->addHelpButton('programming_language', 'programmingLanguage_hlp', 'plagiarism_programming');\n $mform->addHelpButton('detection_tools', 'detection_tools_hlp', 'plagiarism_programming');\n $mform->addHelpButton('auto_publish', 'auto_publish_hlp', 'plagiarism_programming');\n $mform->addHelpButton('notification', 'notification_hlp', 'plagiarism_programming');\n $mform->addHelpButton('notification_text', 'notification_text_hlp', 'plagiarism_programming');\n\n if ($plagiarism_config) { // update mode, populate the form with current values\n $mform->setDefault('programmingYN', 1);\n $mform->setDefault('programming_language', $plagiarism_config->language);\n $mform->setDefault('detection_tools[moss]', $plagiarism_config->moss);\n $mform->setDefault('auto_publish', $plagiarism_config->auto_publish);\n $mform->setDefault('notification', $plagiarism_config->notification);\n $mform->setDefault('notification_text', $plagiarism_config->notification_text);\n }\n if (empty($plagiarism_config->notification_text)) {\n $mform->setDefault('notification_text', get_string('notification_text_default', 'plagiarism_programming'));\n }\n\n // disable tool if it doesn't support the selected language\n include_once(__DIR__.'/moss_tool.php');\n $moss_support = $moss_disabled ? false : moss_tool::get_supported_laguage();\n // include the javascript for doing some minor interface adjustment to improve user experience\n $js_module = array(\n 'name' => 'plagiarism_programming',\n 'fullpath' => '/plagiarism/programming/assignment_setting.js',\n 'requires' => array('base', 'node'),\n 'strings' => array(\n array('no_tool_selected_error', 'plagiarism_programming'),\n array('invalid_submit_date_error', 'plagiarism_programming')\n )\n );\n $PAGE->requires->js_init_call('M.plagiarism_programming.assignment_setting.init', array($moss_support), true, $js_module);\n }", "function ShowAllLeftModules()\n{\n\t$str0=\"select * from options where ismodule=1 and leftmodule=1 order by moduleorder\";\n\t$result0=mysql_query($str0) or die(mysql_error());\n\twhile ($row0=mysql_fetch_array($result0))\n\t{\n\t\tswitch ($row0['name'])\n\t\t{\n\t\t\tcase 'login':\n\t\t\t\tShowLoginForm();\n\t\t\t\tbreak;\n\t\t\t/*case 'search':\n\t\t\t\tShowSearchForm();\n\t\t\t\tbreak;*/\n\t\t\t\n\t\t}\n\t}\n\tmysql_free_result($result0);\n\t\n\t////////////////////////////////Quang cao ben trai\n\tShowLeftAd();\n}", "private function listModules() {\n\t\t\n\t\t$tabModules = array ();\n\t\t\n\t\t# search for modules in {appPath}/lib/modules/{module_name}/{module_name}.class.php\n\t\t$res = opendir(LIB_MOD);\n\t\t$i = 0;\n\t\twhile (false !== ($fModule = readdir($res))) {\n\t\t\tif (is_dir(LIB_MOD . $fModule) && $fModule != '.' && $fModule != '..') {\n\t\t\t\tif (is_file(LIB_MOD . $fModule .'/'. $fModule .'.class.php')) {\n\t\t\t\t\t$tabModules[$i]['name'] = $fModule;\n\t\t\t\t\t$tabModules[$i]['link'] = $this->conf['general']['appURL'] .'?action='. $fModule .'.show';\n\t\t\t\t\t++$i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tclosedir($res);\n\t\t$ret = array (\n\t\t\t'modules'\t=> $tabModules\n\t\t);\n\t\t\n\t\treturn $ret;\n\t}", "function getModulesBasic($conn){\n\t$sql = \"SELECT levelfour.name AS 'levelFourName', levelfour.LevelFourId AS 'levelFourID', levelthree.name AS 'levelThreeName', levelthree.LevelThreeId AS 'levelThreeID',leveltwo.name AS 'levelTwoName', leveltwo.LevelTwoId AS 'levelTwoID', levelone.name AS 'levelOneName', levelone.LevelOneId AS 'levelOneID' FROM `levelfour` JOIN levelthree ON levelfour.LevelThreeId = levelthree.LevelThreeId\n\tJOIN leveltwo ON levelthree.LevelTwoId = leveltwo.LevelTwoId\n\tJOIN levelone ON leveltwo.LevelOneId = levelone.LevelOneId\";\n\n\t$sth = $conn->prepare($sql);\n\t$sth->execute();\n\t\n\t$rows = array();\n\t\n\twhile($r = $sth->fetch(PDO::FETCH_ASSOC)) {\n\t\t$rows[] = $r;\n\t}\n\treturn $rows;\n}", "public function getFieldInstanceByName($name)\n\t{\n\t\t$params = [];\n\t\t$qualifiedModuleName = 'Settings:Picklist';\n\t\t$tableName = $this->getTableName();\n\t\tswitch ($name) {\n\t\t\tcase 'name':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $this->fieldModel->getName(),\n\t\t\t\t\t'label' => 'LBL_ITEM_VALUE',\n\t\t\t\t\t'uitype' => 1,\n\t\t\t\t\t'typeofdata' => 'V~M',\n\t\t\t\t\t'maximumlength' => $this->fieldModel->getMaxValue(),\n\t\t\t\t\t'purifyType' => \\App\\Purifier::TEXT,\n\t\t\t\t\t'table' => $tableName,\n\t\t\t\t\t'validator' => [['name' => 'FieldLabel']]\n\t\t\t\t];\n\t\t\t\tif (1 !== $this->presence || !$this->fieldModel->isEditable()) {\n\t\t\t\t\t$params['isEditableReadOnly'] = true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'description':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_DESCRIPTION',\n\t\t\t\t\t'uitype' => 300,\n\t\t\t\t\t'typeofdata' => 'V~O',\n\t\t\t\t\t'maximumlength' => '65535',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::HTML,\n\t\t\t\t\t'tooltip' => 'LBL_DESCRIPTION_VALUE_LIST',\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'prefix':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_PREFIX',\n\t\t\t\t\t'uitype' => 1,\n\t\t\t\t\t'typeofdata' => 'V~O',\n\t\t\t\t\t'maximumlength' => '25',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::TEXT,\n\t\t\t\t\t'tooltip' => 'LBL_DESCRIPTION_PREFIXES',\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'close_state':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_CLOSES_RECORD',\n\t\t\t\t\t'uitype' => 56,\n\t\t\t\t\t'typeofdata' => 'C~O',\n\t\t\t\t\t'maximumlength' => '5',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::BOOL,\n\t\t\t\t\t'tooltip' => 'LBL_BLOCKED_RECORD_INFO',\n\t\t\t\t\t'table' => 'u_#__picklist_close_state'\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'icon':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_ICON',\n\t\t\t\t\t'uitype' => 62,\n\t\t\t\t\t'typeofdata' => 'V~O',\n\t\t\t\t\t'maximumlength' => '255',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::TEXT,\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'time_counting':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_TIME_COUNTING',\n\t\t\t\t\t'uitype' => 16,\n\t\t\t\t\t'typeofdata' => 'V~M',\n\t\t\t\t\t'maximumlength' => '250',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::INTEGER,\n\t\t\t\t\t'tooltip' => 'LBL_TIME_COUNTING_INFO',\n\t\t\t\t\t'defaultvalue' => 0,\n\t\t\t\t\t'picklistValues' => [\n\t\t\t\t\t\t0 => \\App\\Language::translate('LBL_NONE', '_Base'),\n\t\t\t\t\t\t\\App\\RecordStatus::TIME_COUNTING_REACTION => \\App\\Language::translate('LBL_TIME_COUNTING_REACTION', $qualifiedModuleName),\n\t\t\t\t\t\t\\App\\RecordStatus::TIME_COUNTING_RESOLVE => \\App\\Language::translate('LBL_TIME_COUNTING_RESOLVE', $qualifiedModuleName),\n\t\t\t\t\t\t\\App\\RecordStatus::TIME_COUNTING_IDLE => \\App\\Language::translate('LBL_TIME_COUNTING_IDLE', $qualifiedModuleName)\n\t\t\t\t\t],\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'record_state':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_RECORD_STATE',\n\t\t\t\t\t'uitype' => 16,\n\t\t\t\t\t'typeofdata' => 'V~M',\n\t\t\t\t\t'maximumlength' => '250',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::INTEGER,\n\t\t\t\t\t'tooltip' => 'LBL_RECORD_STATE_INFO',\n\t\t\t\t\t'defaultvalue' => \\App\\RecordStatus::RECORD_STATE_NO_CONCERN,\n\t\t\t\t\t'picklistValues' => [],\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tforeach (\\App\\RecordStatus::getLabels() as $key => $value) {\n\t\t\t\t\t$params['picklistValues'][$key] = \\App\\Language::translate($value, $qualifiedModuleName);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'roles':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_ASSIGN_TO_ROLE',\n\t\t\t\t\t'uitype' => 33,\n\t\t\t\t\t'typeofdata' => 'V~O',\n\t\t\t\t\t'maximumlength' => '500',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::TEXT,\n\t\t\t\t\t'defaultvalue' => 'all',\n\t\t\t\t\t'picklistValues' => [\n\t\t\t\t\t\t'all' => \\App\\Language::translate('LBL_ALL_ROLES', $qualifiedModuleName)\n\t\t\t\t\t],\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tforeach (\\Settings_Roles_Record_Model::getAll() as $key => $roleModel) {\n\t\t\t\t\t$params['picklistValues'][$key] = \\App\\Language::translate($roleModel->get('rolename'), 'Settings:Roles');\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn $params ? \\Vtiger_Field_Model::init($qualifiedModuleName, $params, $name)->set('sourceFieldModel', $this->fieldModel) : null;\n\t}", "public function ajaxAllModules(Request $request, $param = array()) {\n\t\tif ($request->get('program_id', false)) {\n\t\t\treturn Module::where('program_id', $request->get('program_id'))->pluck('module_title', 'id')->toArray();\n\t\t} elseif ($request->old('program_id', false) !== false) {\n\t\t\treturn Module::where('program_id', $request->old('program_id'))->pluck('module_title', 'id')->toArray();\n\t\t} elseif (!empty($param['program_id'])) {\n\t\t\treturn Module::where('program_id', $param['program_id'])->pluck('module_title', 'id')->toArray();\n\t\t}\n\t\treturn array();\n\t}", "public function getExistingModules() {\n if($this->cache->load(\"existingModules\") !== NULL) {\n return $this->cache->load(\"existingModules\");\n }\n else {\n $existingClasses = $this->getClasses();\n $existingModules = array();\n foreach($existingClasses as $fullName => $path)\n {\n $explode = explode(\"\\\\\", $fullName);\n if($explode[0] == \"AdminModule\" && !in_array($explode[1], $existingModules) && preg_match(\"~[a-zA-Z]+Module~\",$explode[1]) !== 0) {\n $path = pathinfo($path, PATHINFO_DIRNAME);\n $path = str_replace(\"/presenters\", \"\", $path);\n $path = str_replace(\"\\presenters\", \"\", $path);\n $existingModules[$path] = $explode[1];\n }\n }\n $this->cache->save(\"existingModules\", $existingModules);\n return $existingModules;\n }\n }", "function loadModletList($module) {\n\n\t//find our object modules if that hasn't been done already for this object type\n\tif (!$_SESSION[\"siteModletList\"][$module] || defined(\"DEV_MODE\")) {\n\n\t \t$siteModList = $_SESSION[\"siteModList\"];\n\t \t$modletArr = array();\n \n\t \t//get the keys of all modules that are objects\n\t \tif (!is_array($siteModList[\"modlet\"])) return false;\n\n\t \t$fields = array_keys($_SESSION[\"siteModList\"]);\n\n\t \t//get all our modlet modules with entries\n\t \t$modletCheck = arrayReduce($siteModList[\"modlet\"]);\n\t \t\n\t \t$num = count($siteModList[\"link_name\"]);\n\t \tfor ($i=0;$i<$num;$i++) {\n\t \t\n\t \t $modlet = $siteModList[\"modlet\"][$i];\n $permError = null;\n \n\t \t //stop here if there is no modlet entry\n\t \t if (!is_array($modlet)) continue;\n\n //if our current module is a modlet for the passed module, store it's info\n if (in_array($module,$modlet)) {\n\n //process our module permissions\n $arr = checkModPerm($siteModList[\"link_name\"][$i],BITSET);\n\n if (is_array($arr)) extract($arr);\n if ($permError) continue;\n \n foreach ($fields AS $field) {\n $modletArr[$field][] = $siteModList[$field][$i];\n }\n }\n\t \t\n\t \t}\n\t \t\n\t\t//so they are displayed in the proper order\n\t\tif (is_array($modletArr[\"modlet_sort\"])) $modletArr = arrayMultiSort($modletArr,\"module_sort\");\n else $modletArr = arrayMultiSort($modletArr,\"module_name\");\n \n\t\t$_SESSION[\"siteModletList\"][$module] = $modletArr;\n\n\t}\n\n\treturn $_SESSION[\"siteModletList\"][$module];\n\n}", "public static function availableModules() {\n\t\t$children = array();\n\t\tforeach(get_declared_classes() as $class){\n\t\t if(is_subclass_of((string)$class, 'WorkflowCategory')) {\n\t\t\t\t$children[] = $class;\n\t\t\t}\n\t\t}\n\t\t//This was the old method we shouldn't need this any longer\n\t\t$modules = self::$registeredModules;\n\t\t$children = $modules;\n\t\t//print_r($children);\n\t\treturn $children;\n\t}", "function getEnabledPlugins();" ]
[ "0.7032577", "0.69758075", "0.67734075", "0.66234845", "0.63629067", "0.63629067", "0.6355324", "0.6213294", "0.61806166", "0.6179063", "0.6161479", "0.6133447", "0.61254054", "0.6092939", "0.60555154", "0.6044543", "0.60189724", "0.6008307", "0.5995511", "0.5992036", "0.59668684", "0.5954378", "0.59342325", "0.59193957", "0.5896512", "0.5893141", "0.58489525", "0.5824629", "0.5805069", "0.57960606", "0.57882", "0.5770177", "0.57559067", "0.57433134", "0.56904733", "0.5655069", "0.5635611", "0.5634604", "0.56216687", "0.5615732", "0.56095994", "0.56079906", "0.55997056", "0.5573092", "0.5573092", "0.5573092", "0.555907", "0.55583805", "0.5544293", "0.5531179", "0.5513948", "0.55019987", "0.5496598", "0.549445", "0.54749787", "0.5462805", "0.54625195", "0.54528916", "0.54524523", "0.545131", "0.5447655", "0.5433192", "0.5429096", "0.54264754", "0.5416827", "0.5414053", "0.5407473", "0.5398349", "0.5398164", "0.53924614", "0.5369724", "0.5366576", "0.5359973", "0.5358766", "0.5358704", "0.5341637", "0.5333225", "0.53267264", "0.5326095", "0.5320184", "0.53163147", "0.5300877", "0.5261967", "0.52580285", "0.5255265", "0.5254177", "0.52522963", "0.5250533", "0.52487385", "0.5247722", "0.5243919", "0.5238717", "0.5236697", "0.5236399", "0.5234497", "0.5229856", "0.52206856", "0.5214869", "0.520797", "0.52068913" ]
0.6238776
7
Get modules with field names which are picklists.
public static function getModulesByName(string $moduleName = '') { if (\App\Cache::has('Picklist::getPicklistModulesByName', $moduleName)) { return \App\Cache::get('Picklist::getPicklistModulesByName', $moduleName); } $query = (new \App\Db\Query())->select(['vtiger_tab.name', 'vtiger_field.fieldname']) ->from('vtiger_field') ->innerJoin('vtiger_tab', 'vtiger_field.tabid = vtiger_tab.tabid') ->where(['uitype' => [15, 16, 33, 115]]); if ($moduleName) { $modules = $query->andWhere(['vtiger_tab.name' => $moduleName])->createCommand()->queryAllByGroup(2); $result = $modules[$moduleName] ?? []; } else { $result = $query->orderBy(['vtiger_tab.tabid' => SORT_ASC])->createCommand()->queryAllByGroup(2); } \App\Cache::save('Picklist::getPicklistModulesByName', $moduleName, $result); return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getVoteModulesFields() {\n return array_column(getVoteModulesList(), 'module');\n}", "function getCustomFieldSupportedModules()\n{\n\tglobal $adb;\n\t$sql=\"select distinct ec_field.tabid,name from ec_field inner join ec_tab on ec_field.tabid=ec_tab.tabid where ec_field.tabid not in(7,9,10,29)\";\n\t$result = $adb->getList($sql);\n\tforeach($result as $row)\n\t{\n\t\t$modulelist[$row['name']] = $row['name'];\n\t}\n\treturn $modulelist;\n}", "public function getModuleFields()\n\t{\n\t\treturn $this->getOptionData('tl_module');\n\t}", "public function GetPickListFields(Vtiger_Request $request)\n\t{\n\t\t$module = $request->get('sourceModule');\n\n\t\t$fieldList = Settings_PickListDependency_Module_Model::getAvailablePicklists($module);\n\n\t\t$response = new Vtiger_Response();\n\t\t$response->setResult($fieldList);\n\t\t$response->emit();\n\t}", "function forminator_get_modules() {\n\t$forminator = Forminator_Core::get_instance();\n\n\treturn $forminator->modules;\n}", "public function getFieldInstanceByName($name)\n\t{\n\t\t$params = [];\n\t\t$qualifiedModuleName = 'Settings:Picklist';\n\t\t$tableName = $this->getTableName();\n\t\tswitch ($name) {\n\t\t\tcase 'name':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $this->fieldModel->getName(),\n\t\t\t\t\t'label' => 'LBL_ITEM_VALUE',\n\t\t\t\t\t'uitype' => 1,\n\t\t\t\t\t'typeofdata' => 'V~M',\n\t\t\t\t\t'maximumlength' => $this->fieldModel->getMaxValue(),\n\t\t\t\t\t'purifyType' => \\App\\Purifier::TEXT,\n\t\t\t\t\t'table' => $tableName,\n\t\t\t\t\t'validator' => [['name' => 'FieldLabel']]\n\t\t\t\t];\n\t\t\t\tif (1 !== $this->presence || !$this->fieldModel->isEditable()) {\n\t\t\t\t\t$params['isEditableReadOnly'] = true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'description':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_DESCRIPTION',\n\t\t\t\t\t'uitype' => 300,\n\t\t\t\t\t'typeofdata' => 'V~O',\n\t\t\t\t\t'maximumlength' => '65535',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::HTML,\n\t\t\t\t\t'tooltip' => 'LBL_DESCRIPTION_VALUE_LIST',\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'prefix':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_PREFIX',\n\t\t\t\t\t'uitype' => 1,\n\t\t\t\t\t'typeofdata' => 'V~O',\n\t\t\t\t\t'maximumlength' => '25',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::TEXT,\n\t\t\t\t\t'tooltip' => 'LBL_DESCRIPTION_PREFIXES',\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'close_state':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_CLOSES_RECORD',\n\t\t\t\t\t'uitype' => 56,\n\t\t\t\t\t'typeofdata' => 'C~O',\n\t\t\t\t\t'maximumlength' => '5',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::BOOL,\n\t\t\t\t\t'tooltip' => 'LBL_BLOCKED_RECORD_INFO',\n\t\t\t\t\t'table' => 'u_#__picklist_close_state'\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'icon':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_ICON',\n\t\t\t\t\t'uitype' => 62,\n\t\t\t\t\t'typeofdata' => 'V~O',\n\t\t\t\t\t'maximumlength' => '255',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::TEXT,\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'time_counting':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_TIME_COUNTING',\n\t\t\t\t\t'uitype' => 16,\n\t\t\t\t\t'typeofdata' => 'V~M',\n\t\t\t\t\t'maximumlength' => '250',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::INTEGER,\n\t\t\t\t\t'tooltip' => 'LBL_TIME_COUNTING_INFO',\n\t\t\t\t\t'defaultvalue' => 0,\n\t\t\t\t\t'picklistValues' => [\n\t\t\t\t\t\t0 => \\App\\Language::translate('LBL_NONE', '_Base'),\n\t\t\t\t\t\t\\App\\RecordStatus::TIME_COUNTING_REACTION => \\App\\Language::translate('LBL_TIME_COUNTING_REACTION', $qualifiedModuleName),\n\t\t\t\t\t\t\\App\\RecordStatus::TIME_COUNTING_RESOLVE => \\App\\Language::translate('LBL_TIME_COUNTING_RESOLVE', $qualifiedModuleName),\n\t\t\t\t\t\t\\App\\RecordStatus::TIME_COUNTING_IDLE => \\App\\Language::translate('LBL_TIME_COUNTING_IDLE', $qualifiedModuleName)\n\t\t\t\t\t],\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'record_state':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_RECORD_STATE',\n\t\t\t\t\t'uitype' => 16,\n\t\t\t\t\t'typeofdata' => 'V~M',\n\t\t\t\t\t'maximumlength' => '250',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::INTEGER,\n\t\t\t\t\t'tooltip' => 'LBL_RECORD_STATE_INFO',\n\t\t\t\t\t'defaultvalue' => \\App\\RecordStatus::RECORD_STATE_NO_CONCERN,\n\t\t\t\t\t'picklistValues' => [],\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tforeach (\\App\\RecordStatus::getLabels() as $key => $value) {\n\t\t\t\t\t$params['picklistValues'][$key] = \\App\\Language::translate($value, $qualifiedModuleName);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'roles':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_ASSIGN_TO_ROLE',\n\t\t\t\t\t'uitype' => 33,\n\t\t\t\t\t'typeofdata' => 'V~O',\n\t\t\t\t\t'maximumlength' => '500',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::TEXT,\n\t\t\t\t\t'defaultvalue' => 'all',\n\t\t\t\t\t'picklistValues' => [\n\t\t\t\t\t\t'all' => \\App\\Language::translate('LBL_ALL_ROLES', $qualifiedModuleName)\n\t\t\t\t\t],\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tforeach (\\Settings_Roles_Record_Model::getAll() as $key => $roleModel) {\n\t\t\t\t\t$params['picklistValues'][$key] = \\App\\Language::translate($roleModel->get('rolename'), 'Settings:Roles');\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn $params ? \\Vtiger_Field_Model::init($qualifiedModuleName, $params, $name)->set('sourceFieldModel', $this->fieldModel) : null;\n\t}", "public static function getModules()\n\t{\n\t\treturn (new \\App\\Db\\Query())->select(['vtiger_tab.tabid', 'vtiger_tab.tablabel', 'tabname' => 'vtiger_tab.name'])->from('vtiger_field')\n\t\t\t->innerJoin('vtiger_tab', 'vtiger_field.tabid = vtiger_tab.tabid')->where(['uitype' => [15, 16, 33, 115], 'vtiger_field.presence' => [0, 2], 'vtiger_tab.presence' => 0])\n\t\t\t->distinct('vtiger_tab.tabid')->orderBy(['vtiger_tab.tabid' => SORT_ASC])->createCommand()->queryAllByGroup(1);\n\t}", "public function getModulesList();", "public function getListFields();", "function FieldNameList ( ) { return $this->_FieldNameList; }", "public function getSelect()\n {\n $select = array();\n $modules = $this->getModules();\n\n foreach ($modules as $module) {\n $select[$module->getId()] = $module->getName();\n }\n\n return $select;\n }", "public function getModules()\n {\n $oxidConfig = oxConfig::getInstance();\n $modules = $oxidConfig->getShopConfVar('aModules');\n $moduleList = array();\n foreach ($modules as $oxidClass => $module) {\n $moduleList[$oxidClass] = explode('&', $module);\n }\n\n return $moduleList;\n }", "public function getPicklistValues($skipCheckingRole = false)\n\t{\n\t\tif ($this->getName() === 'targetmodule') {\n\t\t\treturn Settings_Webforms_Module_Model::getsupportedModulesList();\n\t\t}\n\t\treturn array();\n\t}", "public function getFieldList()\n {\n return $this->_fieldList;\n }", "public function getFilterModules()\n {\n $arrModules = [];\n $objModules = $this->Database->execute(\n \"SELECT m.id, m.name, t.name AS theme FROM tl_module m LEFT JOIN tl_theme t ON m.pid=t.id WHERE m.type='newsfilter' ORDER BY t.name, m.name\"\n );\n\n while ($objModules->next())\n {\n $arrModules[$objModules->theme][$objModules->id] = $objModules->name . ' (ID ' . $objModules->id . ')';\n }\n\n return $arrModules;\n }", "public function getFieldsList(){\n return $this->_get(1);\n }", "public function getModuleNames()\r\n {\r\n return $this->_moduleNames;\r\n }", "public function getFieldNames() {}", "public function getModuleList(){\n $qb = $this->createQueryBuilder();\n $qb->module('system')->query('modulelistnames');\n return $this->execute($qb);\n }", "public function getFieldList()\n {\n $sObjectName = $this->getShopObjectName();\n\n if ($sObjectName) {\n $oShopObject = oxNew($sObjectName);\n } else {\n $oShopObject = oxNew('oxbase');\n $oShopObject->init($this->getTableName());\n }\n\n if ($oShopObject instanceof oxI18n) {\n $oShopObject->setLanguage(0);\n $oShopObject->setEnableMultilang(false);\n }\n\n $sViewName = $oShopObject->getViewName();\n $sFields = str_ireplace('`' . $sViewName . \"`.\", \"\", strtoupper($oShopObject->getSelectFields()));\n $sFields = str_ireplace(array(\" \", \"`\"), array(\"\", \"\"), $sFields);\n $this->_aFieldList = explode(\",\", $sFields);\n\n return $this->_aFieldList;\n }", "public function getModules()\n {\n return $this['module.list'];\n }", "function get_fields( ) {\n\t\treturn $this->fields_list;\n\t\t}", "public function getModules();", "public function getModules();", "public function makeFieldList() {}", "private function fields() {\n $fields = array();\n include($this->directories['plugin']['var']['dir'].'/fields.php');\n return $fields;\n }", "private function getFields()\n {\n return [\n [\n \"field_type\" => \"text\",\n \"field_name\" => \"first_name\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n [\n \"field_type\" => \"text\",\n \"field_name\" => \"last_name\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n [\n \"field_type\" => \"checkbox\",\n \"field_name\" => \"happy\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n [\n \"field_type\" => \"select\",\n \"field_name\" => \"character\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => [\n [\"value\" => \"biff\", \"label\" => \"Biff\"],\n [\"value\" => \"marty\", \"label\" => \"Marty\"],\n [\"value\" => \"doc\", \"label\" => \"Doc Brown\"],\n [\"value\" => \"jennifer\", \"label\" => \"Jennifer\"],\n [\"value\" => \"needles\", \"label\" => \"Needles\"],\n ]\n ],\n [\n \"field_type\" => \"checkbox\",\n \"field_name\" => \"kids\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n ];\n }", "public function TemplatesFieldList($module){\r\n\r\n\t\t// fields to exclude from pre-population\r\n\t\tif($module == 'proposals')\r\n\t\t{\r\n\t\t\t$dont_show_fields = array(\r\n\t\t\t\t'proposal_id',\r\n\t\t\t\t'deal_id',\r\n\t\t\t\t'company_id',\r\n\t\t\t\t'people_id');\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$dont_show_fields = array(\r\n\t\t\t\t'csv_file_name',\r\n\t\t\t\t'google_id',\r\n\t\t\t\t'google_access_token',\r\n\t\t\t\t'mailchimp_id',\r\n\t\t\t\t'import_datetime',\r\n\t\t\t\t'last_viewed',\r\n\t\t\t\t'deleted');\r\n\t\t}\r\n\r\n\t\t// get schema based on module selected\r\n\t\tif($module == 'products')\r\n\t\t{\r\n\t\techo '<select>';\r\n\t\techo '<option value = {products_list}>All Product Info</option> ';\r\n\t\techo '<option value = {products_list_no_cost}>All Product Info without Costs</option> ';\r\n\t\techo '</select>';\r\n\t\t}\r\n\t\tif($module != 'products')\r\n\t\t{\r\n\t\t$fields = $this->db->list_fields($module);\r\n\t\t}\r\n\t\techo '<select>';\r\n\r\n\t\tforeach ($fields as $field)\r\n\t\t{\r\n\t\t\tif(!in_array($field, $dont_show_fields)) {\r\n\t\t\t\techo \"<option value='{\".$field.\"}'>\".str_replace(\"_id\", \"\", $field).\"</option>\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t'</select>';\r\n\r\n\t}", "public function getPackageFields($vars = null) \n {\n Loader::loadHelpers($this, array('Form', 'Html'));\n\n $module = $this->getModuleRowByApi((isset($vars->module_row) ? $vars->module_row : 0), (isset($vars->module_group) ? $vars->module_group : ''));\n\n $fields = new ModuleFields();\n\n if ($module) {\n $products = Configure::get('cwatch.products');\n $type = $fields->label(Language::_('CWatch.add_product.license_type', true), 'license_type');\n $type->attach($fields->fieldSelect('meta[cwatch_license_type]', $products, $this->Html->ifSet($vars->meta['cwatch_license_type']), array('id' => 'license_type')));\n $fields->setField($type);\n unset($type);\n $term = Configure::get('cwatch.terms');\n $terms = $fields->label(Language::_('CWatch.add_product.license_term', true), 'license_term');\n $terms->attach($fields->fieldSelect('meta[cwatch_license_term]', $term, $this->Html->ifSet($vars->meta['cwatch_license_term']), array('id' => 'license_term')));\n $fields->setField($terms);\n unset($terms);\n\n $sandbox_label = $fields->label('Sandbox', 'sandbox');\n $field_sandbox = $fields->label('Enable Sandbox', 'sandbox');\n $sandbox_label->attach($fields->fieldCheckbox('meta[cwatch_sandbox]', 'true', (isset($vars->meta['cwatch_sandbox']) && $vars->meta['cwatch_sandbox'] == 'true'), array('id' => 'cwatch_sandbox'), $sandbox_label));\n $fields->setField($sandbox_label);\n\n return $fields;\n }\n\n return $fields;\n }", "public function getMemberFields()\n\t{\n\t\t$this->loadLanguageFile('tl_member');\n\t\t$this->loadDataContainer('tl_member');\n\t\t$extensions = array();\n\t\tforeach ($GLOBALS['TL_DCA']['tl_member']['fields'] as $fieldname => $field)\n\t\t{\n\t\t\tif (is_array($field['eval']) && array_key_exists('feEditable', $field['eval']))\n\t\t\t$extensions[$fieldname] = $field['label'][0];\n\t\t}\n\t\treturn $extensions;\n\t}", "function qa_list_modules($type)\n{\n\t$modules = qa_list_modules_info();\n\treturn is_array(@$modules[$type]) ? array_keys($modules[$type]) : array();\n}", "public function getUsableFormFields()\n {\n $fields = array();\n\n // Get all form fields which can be used for MailChimp values\n $objFields = Database::getInstance()->prepare(\"SELECT id,name,label FROM tl_form_field WHERE pid=? AND (type=? OR type=? OR type=? OR type=? OR type=?) ORDER BY name ASC\")\n ->execute(Input::get('id'), 'text', 'hidden', 'select', 'radio', 'checkbox');\n\n $fields[] = '-';\n while ($objFields->next())\n {\n $k = $objFields->name;\n $v = $objFields->label;\n $v = strlen($v) ? $v.' ['.$k.']' : $k;\n $fields[$k] =$v;\n }\n\n return $fields;\n }", "function customlabel_get_candidate_modules() {\n global $COURSE, $CFG;\n\n if (!empty($CFG->upgraderunning)) {\n return;\n }\n\n $modinfo = get_fast_modinfo($COURSE);\n $modules = array('0' => get_string('unassigned', 'customlabeltype_worktodo'));\n\n foreach ($modinfo->get_cms() as $cminfo) {\n if (!$cminfo->visible) {\n continue;\n }\n if (preg_match('/label$/', $cminfo->modname)) {\n continue;\n }\n include_once($CFG->dirroot.'/mod/'.$cminfo->modname.'/lib.php');\n $supportf = $cminfo->modname.'_supports';\n if (!$supportf(FEATURE_GRADE_HAS_GRADE) && !$supportf(FEATURE_GRADE_OUTCOMES)) {\n // Module seems it is not gradable so not a worktodo module.\n continue;\n }\n $modules[$cminfo->module] = $cminfo->name;\n }\n\n return $modules;\n}", "function qa_list_module_types()\n{\n\treturn array_keys(qa_list_modules_info());\n}", "function _get_field_names()\n {\n return array();\n }", "static public function getFieldsList () {\n return self::_getInstance()->_fieldsList;\n }", "function getRemoteModules()\n{\n $remoteModules = array();\n foreach($this->ModuleFields as $mfName => $mf){\n if('remotefield' == strtolower(get_class($mf))){\n $remoteModules[$mfName] = $mf->remoteModuleID;\n }\n }\n return $remoteModules;\n}", "function GetFieldsList()\n\t{\n\t\tglobal $dal_info;\n\t\treturn array_keys( $dal_info[ $this->infoKey ] );\n\t}", "public static function getModules(){ \n $db = new db();\n $db->connect();\n $modules = $db->selectAll('modules');\n return self::getModulesInfo($modules);\n }", "function getFieldNames();", "function moduleOptions() {\n $sq = new sql;\n return array();\n // name, type, list\n }", "public function getFields() {\n $modifiable_fields = [];\n $type = $this->getType();\n $bundle = $this->getBundle();\n // Get _all_ defined fields. This should return an associative array.\n $fields = Framework::instance()->fieldInfoFields();\n foreach ($fields as $field => $info) {\n if (isset($info['bundles'][$type]) && is_array($info['bundles'][$type]) && in_array($bundle, $info['bundles'][$type]) && $this->filter($field)) {\n $this->addModifier($modifiable_fields, 'field', $field);\n }\n }\n return $modifiable_fields;\n }", "function getModules(){\n global $adb;\n $query=\"select vtiger_tab.tabid,vtiger_tab.tablabel as modulename,linklabel from vtiger_tab left join vtiger_links on vtiger_tab.tabid=vtiger_links.tabid and linklabel='WYSIWYG'\nwhere isentitytype=1 and tablabel!='Comments'\";\n $result=$adb->pquery($query,array());\n while($resultrow = $adb->fetch_array($result)) {\n $modulelist[$resultrow['modulename']]=array('enabled'=>$resultrow['linklabel']==\"WYSIWYG\",'tabid'=>$resultrow['tabid']);\n }\n return $modulelist;\n }", "public function getEditableFields() {\n\t\t$fieldsList = array(\n\t\t\tarray('name' => 'presence',\t\t\t'label' => 'Presence',\t\t\t'type' => 'radio'),\n\t\t);\n\n\t\t$fieldModelsList = array();\n\t\tforeach ($fieldsList as $fieldInfo) {\n\t\t\t$fieldModelsList[$fieldInfo['name']] = Settings_Joomlahosts_Field_Model::getInstanceByRow($fieldInfo);\n\t\t}\n\t\treturn $fieldModelsList;\n\t}", "public function getFieldNamesToResolve() : array\n {\n /** @var ModuleConfiguration */\n $moduleConfiguration = App::getModule(Module::class)->getConfiguration();\n if ($moduleConfiguration->enableNestedMutations() && !$moduleConfiguration->addConnectionFromRootToQueryRootAndMutationRoot()) {\n return [];\n }\n /** @var ComponentModelModuleConfiguration */\n $moduleConfiguration = App::getModule(ComponentModelModule::class)->getConfiguration();\n return \\array_merge(['queryRoot'], $moduleConfiguration->enableMutations() ? ['mutationRoot'] : []);\n }", "public function getFieldNames(){\n $names=[];\n if (!empty($this->dbFields)){\n foreach($this->dbFields as $dbField){\n $names[$dbField->id]=$dbField->name;\n }\n }\n return $names;\n }", "function qa_list_modules_info()\n{\n\tglobal $qa_modules;\n\treturn $qa_modules;\n}", "public function getCMSFields() {\n\n\t\t// $fields = new FieldList(\n\t\t// $rootTab = new TabSet('Root',\n\t\t// $tabMain = new Tab('Region',\n\t\t// TextField::create('Code', _t('Region.CODE', 'Code')),\n\t\t// TextField::create('Title', _t('Region.TITLE', 'Title')),\n\t\t// DropdownField::create('CountryID', 'Country', Country_Shipping::get()->map()->toArray())\n\t\t// )\n\t\t// )\n\t\t// );\n\t\t// return $fields;\n\n\t\t$fields = parent::getCMSFields();\n\t\t$fields->replaceField('CountryID', DropdownField::create('CountryID', 'Country', Country_Shipping::get()->map()->toArray()));\n\t\t$fields->removeByName('SortOrder');\n\t\t$fields->removeByName('ShopConfigID');\n\t\treturn $fields;\n\t}", "public function getAllModules()\n {\n $modules = array();\n $query = 'SELECT m.id, m.name, t.name AS theme FROM tl_module m LEFT JOIN tl_theme t ON m.pid=t.id';\n\n if (\\Input::get('table') == 'tl_module' && \\Input::get('act') == 'edit') {\n $query .= ' WHERE m.id != ?';\n }\n\n $query .= ' ORDER BY t.name, m.name';\n $result = \\Database::getInstance()\n ->prepare($query)\n ->execute(\\Input::get('id'));\n\n while ($result->next()) {\n $modules[$result->theme][$result->id] = $result->name . ' (ID ' . $result->id . ')';\n }\n\n return $modules;\n }", "public function get_fields()\n {\n $catalogue_name = get_param_string('catalogue_name', '');\n if ($catalogue_name == '') {\n return array();\n }\n return $this->_get_fields($catalogue_name);\n }", "function FieldTypeList ( ) { return $this->_FieldTypeList; }", "public function getModules() {\n }", "protected function forms()\r\n {\r\n $metaFileInfo = $this->getFormObj()->GetMetaFileInfo();\r\n $modulePath = $metaFileInfo['modules_path'];\r\n $modulePath = substr($modulePath,0,strlen($modulePath)-1);\r\n global $g_MetaFiles;\r\n php_grep(\"<EasyForm\", $modulePath);\r\n \r\n for ($i=0; $i<count($g_MetaFiles); $i++)\r\n {\r\n $g_MetaFiles[$i] = str_replace('/','.',str_replace(array($modulePath.'/','.xml'),'', $g_MetaFiles[$i]));\r\n $list[$i]['val'] = $g_MetaFiles[$i];\r\n $list[$i]['txt'] = $g_MetaFiles[$i];\r\n }\r\n\r\n return $list; \r\n }", "function efflab_cb_get_module_fieldset() {\n\n $pluginModuleArray = efflab_cb_get_plugin_module_slugs();\n $themeModuleArray = efflab_cb_get_theme_module_slugs();\n \n // See if there is a matching module in theme\n $matchedModules = array_intersect( $themeModuleArray, $pluginModuleArray ); \n $themeOnlyModules = array_diff( $themeModuleArray, $matchedModules );\n $pluginOnlyModules = array_diff( $pluginModuleArray, $matchedModules );\n \n //print_r( $matchedModules );\n //print_r( $themeOnlyModules );\n //print_r( $pluginOnlyModules );\n \n\tif( $matchedModules ){\n\t\n\t\tforeach ( $matchedModules as $matchedModule ) {\n\t\t\t// A match was found check if a custom fieldset exists in theme direcory\n\t\t\tif( file_exists( get_stylesheet_directory().'/effigylabs/acf-content-builder/modules/'.$matchedModule.'/'.$matchedModule.'-fieldset.php' ) ) {\n\t\t\t\tinclude_once get_stylesheet_directory().'/effigylabs/acf-content-builder/modules/'.$matchedModule.'/'.$matchedModule.'-fieldset.php';\n\t\t\t} \n\t\t\t// Else check if a fieldset exists in module directory\n\t\t\telseif( file_exists( EFFLAB_CB_BASE_DIR .'/modules/'.$matchedModule.'/'.$matchedModule.'-fieldset.php' ) ) {\n\t\t\t\tinclude_once EFFLAB_CB_BASE_DIR .'/modules/'.$matchedModule.'/'.$matchedModule.'-fieldset.php';\n\t\t\t} //endif\n\t\t}// end foreach\n\n\t} // endif\n\t\n\tif ( $themeOnlyModules ) {\n\t\n\t\tforeach ( $themeOnlyModules as $themeOnlyModule ) {\n\t\t\t// A match was found check if a custom fieldset exists in theme direcory\n\t\t\tif( file_exists( get_stylesheet_directory().'/effigylabs/acf-content-builder/modules/'.$themeOnlyModule.'/'.$themeOnlyModule.'-fieldset.php' ) ) {\n\t\t\t\tinclude_once get_stylesheet_directory().'/effigylabs/acf-content-builder/modules/'.$themeOnlyModule.'/'.$themeOnlyModule.'-fieldset.php';\n\t\t\t}//endif\n\t\t}// end foreach\n\t\t\n\t} // endif\n\t\n\tif ( $pluginOnlyModules ) {\n\t\n\t\tforeach ( $pluginOnlyModules as $pluginOnlyModule ) {\n\t\t\t// A match was found check if a custom fieldset exists in theme direcory\n\t\t\tif( file_exists( EFFLAB_CB_BASE_DIR .'/modules/'.$pluginOnlyModule.'/'.$pluginOnlyModule.'-fieldset.php' ) ) {\n\t\t\t\tinclude_once EFFLAB_CB_BASE_DIR .'/modules/'.$pluginOnlyModule.'/'.$pluginOnlyModule.'-fieldset.php';\n\t\t\t} //endif\n\t\t}// end foreach\n\t\t\n\t} // endif\n}", "final public function moduleNames(): array {\n\t\treturn $this->modules->keys();\n\t}", "public function getReaderModules()\n {\n $arrModules = [];\n $objModules = $this->Database->execute(\n \"SELECT m.id, m.name, t.name AS theme FROM tl_module m LEFT JOIN tl_theme t ON m.pid=t.id WHERE m.type LIKE 'newsreader%' ORDER BY t.name, m.name\"\n );\n\n while ($objModules->next())\n {\n $arrModules[$objModules->theme][$objModules->id] = $objModules->name . ' (ID ' . $objModules->id . ')';\n }\n\n return $arrModules;\n }", "public function getUserFields()\r\n {\r\n return CrugeFactory::get()->getICrugeFieldListModels();\r\n }", "public static function getModules()\n {\n $modules = [];\n $modules[] = new D2UModule('20-1',\n 'D2U Adressen - Adressausgabe',\n 10);\n $modules[] = new D2UModule('20-2',\n 'D2U Adressen - Kontaktbox',\n 5);\n $modules[] = new D2UModule('20-3',\n 'D2U Adressen - Weltkarte',\n 1);\n return $modules;\n }", "public function getFullSearchFields()\r\n\t{\r\n\t\t$file = AKHelper::_('path.get', null, $this->option) . '/models/forms/' . $this->list_name . '/search.xml';\r\n\t\t$file = JFile::exists($file) ? $file : AKHelper::_('path.get', null, $this->option) . '/models/forms/' . $this->list_name . '_search.xml';\r\n\r\n\t\t$xml = simplexml_load_file($file);\r\n\t\t$field = $xml->xpath('//field[@name=\"field\"]');\r\n\t\t$options = $field[0]->option;\r\n\r\n\t\t$fields = array();\r\n\r\n\t\tforeach ($options as $option):\r\n\t\t\t$attr = $option->attributes();\r\n\t\t\t$fields[] = $attr['value'];\r\n\t\tendforeach;\r\n\r\n\t\treturn $fields;\r\n\t}", "public static function getFieldsByModule($moduleName)\n\t{\n\t\t$accessibleFields = [];\n\t\t$moduleInstance = Vtiger_Module_Model::getInstance($moduleName);\n\t\tforeach ($moduleInstance->getFields() as $fieldName => $fieldObject) {\n\t\t\tif (\\in_array($fieldObject->getFieldDataType(), static::$fieldType) && $fieldObject->isActiveField() && 4 !== $fieldObject->getUIType()) {\n\t\t\t\t$accessibleFields[$fieldObject->getBlockName()][$fieldName] = $fieldObject;\n\t\t\t}\n\t\t}\n\t\treturn $accessibleFields;\n\t}", "public function getModules() {\n return $this->modules;\n }", "private function loadFields(){\n\t\t$this->fields = $this->wpdb->get_results($this->wpdb->prepare(\"\n\t\t\tSELECT\n\t\t\t\t`field`.`id` \t\t\t'field_id',\n\t\t\t\t`type`.`name` \t\t\t'type',\n\t\t\t\t`field`.`name`\t\t\t'name',\n\t\t\t\t`field`.`label`\t\t\t'label',\n\t\t\t\t`field`.`default`\t\t'default',\n\t\t\t\t`field`.`required`\t\t'required',\n\t\t\t\t`field`.`depends_id`\t'depends_id',\n\t\t\t\t`field`.`depends_value`\t'depends_value',\n\t\t\t\t`field`.`placeholder`\t'placeholder'\n\t\t\tFROM `mark_reg_fields` `field`\n\t\t\tLEFT JOIN `mark_reg_field_types` `type` ON `type`.`id` = `field`.`type_id`\n\t\t\tWHERE\n\t\t\t\t`field`.`enabled` = 1\n\t\t\t\tAND `field`.`form_id` = %d\n\t\t\t\tAND `field`.`backend_only` = 0\n\t\t\tORDER BY\n\t\t\t\t`field`.`order`\n\t\t\", $this->form_id));\n\t}", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getReaderModules()\n\t{\n\t\t$arrModules = array();\n\t\t$objModules = $this->Database->execute(\"SELECT m.id, m.name, t.name AS theme FROM tl_module m LEFT JOIN tl_theme t ON m.pid=t.id WHERE m.type='newsreader' ORDER BY t.name, m.name\");\n\n\t\twhile ($objModules->next())\n\t\t{\n\t\t\t$arrModules[$objModules->theme][$objModules->id] = $objModules->name . ' (ID ' . $objModules->id . ')';\n\t\t}\n\n\t\treturn $arrModules;\n\t}", "function get_field_list()\r\n\t{\r\n\t\t$fields = array();\r\n\r\n\t\tif (Authority::can('edit', 'admin/item/definition'))\r\n\t\t{\r\n\t\t\t$id_definition = $this->input->post('id_item_definition');\r\n\r\n\t\t\t$fields = $this->extend_field_model->get_lang_list(\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'parent' => 'item',\r\n\t\t\t\t\t'id_parent' => $id_definition\r\n\t\t\t\t),\r\n\t\t\t\tSettings::get_lang('default')\r\n\t\t\t);\r\n\r\n\t\t\t// Set type names\r\n\t\t\tforeach($fields as &$field)\r\n\t\t\t{\r\n\t\t\t\t$field['type_name'] = self::$_TYPE_NAMES[$field['type']];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//\r\n\t\t$this->template['id_item_definition'] = $id_definition;\r\n\t\t$this->template['fields'] = $fields;\r\n\r\n\t\t$this->output('item/definition/fields');\r\n\t}", "protected function _fields()\n\t{\n\t\treturn array(\n\t\t\t\t'name',\n\t\t\t 'intro', 'sort_order',\n\t\t\t 'status', 'feature',\n\t\t);\n\t}", "public function getInputfields() {\n\n\t\t// get module getInputfields set config class\n \t$inputfields = parent::getInputfields();\n\n\t\t// get InputfieldText module\n \t$f = $this->modules->get('InputfieldText');\n \t$f->attr('name', 'findStr');\n \t$f->label = 'Find in text';\n\t\t$f->description = 'Add a word or pattern to find and replace within your text.';\n\n\t\t// add User role input to form config\n\t\t$inputfields->add($f);\n\n\n\t\t// get new InputfieldText module\n\t\t$f = $this->modules->get('InputfieldText');\n\t $f->attr('name', 'replaceStr');\n\t $f->label = 'Replace text';\n\t\t$f->description = 'text to show on the front end.';\n\n\t\t// add Page redirect input to form config\n\t $inputfields->add($f);\n\n\t\t// return module config inputs\n\t return $inputfields;\n \t}", "public static function getAllModules()\n\t\t{\n\n\t\t\t$modules = array();\n\n\t\t\treturn apply_filters( 'studiorum_modules', $modules );\n\n\t\t}", "function set_new_module()\n{\n\tglobal $modules, $_POST;\n\n\t$return = array();\n\tforeach ($modules as $name => $value) {\n\t\tif (isset($_POST[$name]))\n\t\t\t$return[] = $name;\n\t}\n\n\treturn $return;\n}", "public function getFields()\n\t{\n\t\t$fields = [];\n\n\t\tforeach (array_keys($this->map) as $field)\n\t\t{\n\t\t\t$get = $this->convertToCamelCase('get_' . $field);\n\t\t\t$fields[$field] = $this->$get();\n\t\t}\n\n\t\treturn $fields;\n\t}", "protected function installedModules()\n {\n $model = Pi::model('module');\n $select = $model->select()\n ->columns(array('dir' => new Expression('DISTINCT directory')));\n $rowset = $model->selectWith($select);\n $modules = array();\n foreach ($rowset as $row) {\n $modules[] = $row->dir;\n }\n\n return $modules;\n }", "public static function getFieldNames() {\n\t\treturn self::$FIELD_NAMES;\n\t}", "public static function getFieldNames() {\n\t\treturn self::$FIELD_NAMES;\n\t}", "public static function getFieldNames() {\n\t\treturn self::$FIELD_NAMES;\n\t}", "private function getImportableFields()\n {\n $createFields = $this->crud->getFields('create');\n $importFields = [];\n foreach ($createFields as $idx_1 => $createField) {\n if (isset($createField['importable']) && $createField['importable']) {\n if (isset($createField['importable_fields'])) {\n foreach ($createField['importable_fields'] as $idx_2 => $nested) {\n $importFields[] = $nested;\n }\n } else {\n $importFields[] = $createField;\n }\n }\n }\n\n return $importFields;\n }", "public function getEnabledModules()\n {\n return array_filter($this->definitions, [$this, 'filterEnabled']);\n }", "function basel_get_compare_fields() {\n\t\t$fields = array(\n\t\t\t'basic' => '',\n\t\t);\n\n\t\t$fields_settings = basel_get_opt('fields_compare');\n\n\t\tif ( class_exists( 'XTS\\Options' ) && count( $fields_settings ) > 1 ) {\n\t\t\t$fields_labels = basel_compare_available_fields( true );\n\n\t\t\tforeach ( $fields_settings as $field ) {\n\t\t\t\tif ( isset( $fields_labels [ $field ] ) ) {\n\t\t\t\t\t$fields[ $field ] = $fields_labels [ $field ]['name'];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $fields;\n\t\t}\n\n\t\tif ( isset( $fields_settings['enabled'] ) && count( $fields_settings['enabled'] ) > 1 ) {\n\t\t\t$fields = $fields + $fields_settings['enabled'];\n\t\t\tunset( $fields['placebo'] );\n\t\t}\n\n\t\treturn $fields;\n\t}", "public function getModules()\n {\n return $this->modules;\n }", "public function getModules()\n {\n return $this->modules;\n }", "public function getModules()\n {\n return $this->modules;\n }", "function getModules()\n\t{\n\t\t $this->loadModel('Module'); \n\n\t\t $sections = $this->Module->query(\"SELECT * FROM modules WHERE enable = '1'\");\n\t\t return $sections;\n\t}", "function date_tools_wizard_required_modules($options = array()) {\n $options = date_tools_wizard_options($options);\n $modules = array(\n 'date_timezone', 'date_api', 'content', 'date', \n 'calendar', 'views', 'views_ui',\n );\n if (in_array('popups', $options)) {\n $modules = array_merge($modules, array('date_popup', 'jcalendar'));\n }\n if (in_array('repeat', $options)) {\n $modules = array_merge($modules, array('date_repeat'));\n }\n return $modules;\n}", "public function getAdditionalFields() {\n\t\t\n\t\t$fields = array();\n\t\t\n\t\tif ($this->installed()) {\n\t\t\t$ro_settings = $this->config->get('related_options');\n\t\t\t$std_fields = array('sku', 'upc', 'ean', 'location');\n\t\t\tforeach ($std_fields as $field) {\n\t\t\t\tif ( isset($ro_settings['spec_'.$field]) && $ro_settings['spec_'.$field] ) {\n\t\t\t\t\t$fields[] = $field;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $fields;\n\t}", "protected function getModuleComponents() {\n\t return [\n\t ];\n\t}", "public function getFields()\n {\n if ($this->fields) {\n return $this->fields;\n }\n\n $this->fields = array(\n 'data_type_id',\n 'name',\n 'aliases',\n 'description',\n 'driver',\n );\n\n return $this->fields;\n }", "public function getLoadedModularName() : array\n {\n return $this->loadedModular;\n }", "public function getModules(Llv_Entity_Referential_Filter_Modules $filter)\n {\n return Llv_Entity_Referential_Dal_Modules::getAll($filter);\n }", "public function fields()\n {\n $series = [];\n for ($i = 1; $i <= 110; $i++) {\n $name = \"第${i}集\";\n $series[$name] = $name;\n }\n return [\n Select::make('剧集', 'name')\n ->options($series)\n ->withMeta([\n 'value' => '第1集',\n 'extraAttributes' => [\n 'placeholder' => '第几集...'],\n ]),\n Text::make(\"播放地址\", 'url', )->withMeta(['extraAttributes' => [\n 'placeholder' => '目前仅支持m3u8播放地址'],\n ]),\n Select::make(\"是否完成求片处理\", 'fixed')->options([\n 0 => '否',\n 1 => '是',\n ])\n ->withMeta(['value' => 0])\n ->displayUsingLabels(),\n ];\n }", "public function getExcludedModules ();", "public static function getFieldMasterList()\n {\n return [\n 'form_fields' => [\n // LA fields\n 'transaction_type',\n 'type_of_plate',\n 'vin',\n 'vehicle_type',\n 'model_year',\n 'mortgage_fee',\n 'street_address',\n 'zip',\n 'county',\n 'city_limits',\n 'number_of_passengers',\n 'empty_weight',\n 'trailer_weight',\n 'carrying_capacity',\n 'gvw',\n 'gvwr',\n 'sales_price',\n 'rebate_discount',\n 'trade_in_value',\n 'sales_tax_credit',\n 'taxable_value',\n 'date_of_sale',\n\n // TX Fields\n // transaction type -- present\n 'new_or_used',\n // vin -- present\n // model_year -- present\n // dealer_address -- present\n // zip -- present\n 'resident_county',\n 'processing_county',\n // empty_weight -- present\n // trailer_weight -- present\n // carrying_capacity -- present\n // 'gvw', -- present\n // 'gvwr', -- present\n 'inspection_type',\n 'freight',\n 'miscellaneous_fee',\n 'fuel_type',\n // date_of_sale -- present\n\n // Arkansas Fields.\n // transaction type -- present.\n // vin -- present\n // 'vehicle_type',-- present\n // 'model_year',-- present\n // dealer_address -- present\n // zip -- present\n // empty_weight -- present\n // trailer_weight -- present\n // carrying_capacity -- present\n // 'gvw', -- present\n // 'gvwr', -- present\n 'number_of_axles',\n 'accessories',\n 'warranty'\n // rebate_discount -- present\n // trade_in_value -- present\n // taxable_value -- present\n // date_of_sale -- present\n ],\n 'calculator_options' => [\n // Louisiana\n 'no_fees',\n 'temp_tag',\n 'farm_use',\n 'did_pull_a_trailer',\n 'exempt_from_sales_tax',\n 'include_late_fees',\n\n // Texas\n // 'no_fees', -- present\n // 'temp_tag', -- present\n 'is_trade_in_leased',\n 'farm_ranch',\n 'member_of_military',\n 'off_highway_use',\n 'rebuilt_salvage',\n // exempt_from_sales_tax -- present\n // did_pull_a_trailer -- present\n 'include_inspection_fee',\n 'include_vit_tax',\n // include_late_fees -- present\n\n // Arkansas\n // 'no_fees', -- present\n // 'temp_tag', -- present\n // exempt_from_sales_tax -- present\n 'transfer_plate',\n 'vehicle_financed',\n // farm_use -- present\n 'off_road_motorcycle',\n 'add_accessories',\n 'add_warranty',\n // include_late_fees -- present\n ]\n ];\n }", "public function getFields()\n\t{\n\t\treturn [];\n\t}", "function FieldTitleList ( ) { return $this->_FieldTitleList; }", "protected function getFieldOptions()\n {\n return explode(',', $this->option('fields'));\n }", "public function getSelectDataFields();", "function getFields();" ]
[ "0.6906023", "0.68250626", "0.6590724", "0.6468204", "0.64545494", "0.63285726", "0.623893", "0.6220597", "0.62052083", "0.6173933", "0.61434567", "0.60741097", "0.60655445", "0.6016399", "0.5992353", "0.59688175", "0.5945271", "0.58703107", "0.5866465", "0.5840745", "0.5832339", "0.58320427", "0.58310425", "0.58310425", "0.58260304", "0.58173144", "0.58088505", "0.58053625", "0.57929707", "0.57781863", "0.5773592", "0.57709587", "0.5765599", "0.5764092", "0.5760766", "0.57606894", "0.57491857", "0.57314646", "0.57285374", "0.5690787", "0.5689726", "0.568697", "0.5659717", "0.56507134", "0.564502", "0.56312305", "0.5599099", "0.55898243", "0.5581764", "0.5580723", "0.5573793", "0.5572512", "0.5572239", "0.55697423", "0.55687326", "0.556844", "0.5561777", "0.55564654", "0.5556019", "0.5531904", "0.55218005", "0.55215913", "0.55028987", "0.55028987", "0.55028987", "0.55028987", "0.55028987", "0.55028987", "0.5499245", "0.5497637", "0.5493844", "0.54914623", "0.54866874", "0.54804796", "0.5479975", "0.54784775", "0.547731", "0.547731", "0.547731", "0.54710627", "0.5470292", "0.5465011", "0.5461195", "0.5461195", "0.5461195", "0.54578495", "0.54548126", "0.5454261", "0.5453354", "0.54475945", "0.5447354", "0.54458356", "0.54428303", "0.54254377", "0.5422938", "0.541805", "0.54137766", "0.5405818", "0.54015946", "0.54000306" ]
0.647184
3
Function to get picklist dependency data source.
public static function getDependencyForModule(string $moduleName) { if (\App\Cache::has('Picklist::getDependencyForModule', $moduleName)) { return \App\Cache::get('Picklist::getDependencyForModule', $moduleName); } $moduleModel = \Vtiger_Module_Model::getInstance($moduleName); $fields = $moduleModel->getFieldsById(); $conditionsByFields = $listenFields = []; $dataReader = (new \App\Db\Query())->from(['s_#__picklist_dependency'])->where(['tabid' => $moduleModel->getId()])->createCommand()->query(); while ($row = $dataReader->read()) { $sourceFieldName = $fields[$row['source_field']]->getName(); $picklistTable = "vtiger_$sourceFieldName"; $primaryKey = static::getPickListId($sourceFieldName); $dataReaderPDValue = (new \App\Db\Query()) ->select(['value' => "{$picklistTable}.{$sourceFieldName}", 's_#__picklist_dependency_data.conditions']) ->from([$picklistTable]) ->leftJoin('s_#__picklist_dependency_data', "$picklistTable.$primaryKey = s_#__picklist_dependency_data.source_id AND s_#__picklist_dependency_data.id = :pdd", [':pdd' => $row['id']]) ->createCommand()->query(); while ($plRow = $dataReaderPDValue->read()) { $conditions = []; if ($plRow['conditions']) { $conditions = \App\Json::decode($plRow['conditions']); $listenFields = array_merge($listenFields, \App\Condition::getFieldsFromConditions($conditions)['baseModule']); } $conditionsByFields[$sourceFieldName][$plRow['value']] = $conditions; } } $result = ['listener' => array_unique($listenFields), 'conditions' => $conditionsByFields]; \App\Cache::save('Picklist::getDependencyForModule', $moduleName, $result); return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDataSource()\n {\n return isset($this->DataSource) ? $this->DataSource : null;\n }", "public function getDataProvider();", "public function getDataProvider();", "public static function getDataSource()\n {\n return static::$_dataSource;\n }", "function getDataSource() { return $this->_datasource; }", "function getDataSource() {return $this->_datasource;}", "public function getDataSource()\n\t{\n\t\treturn $this->dataSource;\n\t}", "public function getDataSource() {\n\t\treturn $this->dataSource;\n\t}", "public function getDataSourceDefinition()\n {\n return $this->data_source_definition;\n }", "public function fetchDataTableSource()\n { \n $dataTableConfig = [\n 'searchable' => [\n 'title' \n ]\n ];\n\n return SpecificationPreset::with([\n 'presetItem' => function($query) {\n $query->with('specification');\n }\n ])->dataTables($dataTableConfig)->toArray();\n }", "function readDataSource() {return $this->_datasource;}", "public function getDataSource()\n {\n /** @var Model $modelClass */\n $modelClass = get_class($this);\n $parentModelName = get_parent_class($modelClass);\n\n if ($parentModelName == Model_Defined::getClass() || $parentModelName == Model_Factory::getClass()) {\n return Data_Source::getInstance(Object::getName($parentModelName) . ':model/' . $modelClass);\n }\n\n return Data_Source::getInstance($modelClass::getDataSourceKey());\n }", "abstract protected function getDataProvider();", "public function getDatasource()\n {\n return static::resolveDatasource($this->datasource);\n }", "public function getDataSourcesList() {\n return $this->_get(1);\n }", "public function getDataSourcesList() {\n return $this->_get(8);\n }", "public function getDataSourceType();", "public function getPoolImportedFromSourceslist()\n\t{\n\t\treturn($this->getProperty('importedFromImportedFromSourceslist'));\n\t}", "public function datasource() {\n if (!isset($this->datasource)) {\n $this->datasource = search_api_get_datasource_controller($this->item_type);\n }\n return $this->datasource;\n }", "public function getDatasource()\n {\n return $this->datasource;\n }", "public function getDatasource()\n {\n return $this->datasource;\n }", "public function getSetDataProvider() {}", "public function getDataSourceCollection(): SourceCollection {\n\n return $this->dataSourceCollection;\n\n }", "public function getDataProvider() {\n\t\tif (!$this->dataProvider) {\n\t\t\t/** @var Dispatcher $dispatcher */\n\t\t\t$dispatcher = $this->dispatcher ? $this->dispatcher : Dispatcher::getSharedDispatcher();\n\t\t\tlist($vendor, $extension,) = Utility::getClassNamePartsForPath($dispatcher->getPath());\n\n\t\t\t// Check if an extension provides a Data Provider\n\t\t\t$dataProviderClass = 'Tx_' . $extension . '_Rest_DataProvider';\n\t\t\tif (!class_exists($dataProviderClass)) {\n\t\t\t\t$dataProviderClass = ($vendor ? $vendor . '\\\\' : '') . $extension . '\\\\Rest\\\\DataProvider';\n\t\t\t}\n\t\t\t// Get the specific builtin Data Provider\n\t\t\tif (!class_exists($dataProviderClass)) {\n\t\t\t\t$dataProviderClass = 'Cundd\\\\Rest\\\\DataProvider\\\\' . $extension . 'DataProvider';\n\t\t\t\t// Get the default Data Provider\n\t\t\t\tif (!class_exists($dataProviderClass)) {\n\t\t\t\t\t$dataProviderClass = 'Cundd\\\\Rest\\\\DataProvider\\\\DataProviderInterface';\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->dataProvider = $this->get($dataProviderClass);\n\t\t}\n\t\treturn $this->dataProvider;\n\t}", "public function provideDependencyDataPlaceholders(): Collection;", "public function getDataSourceView();", "public function dataProvider() {\n return [\n [2, []],\n [1, ['multiple_file_display_type' => 'sources']],\n ];\n }", "function jdi_slider() {\n\treturn Jet_Data_Importer_Slider::get_instance();\n}", "public function getDataSourceData(UiComponentInterface $component);", "public function getDataSourcesList() {\n return $this->_get(10);\n }", "function getDependency();", "protected function getVictoireCriteria_Chain_DataSourceChainService()\n {\n $a = $this->get('victoire_criteria.criteria.request_data_source');\n\n $this->services['victoire_criteria.chain.data_source_chain'] = $instance = new \\Victoire\\Bundle\\CriteriaBundle\\Chain\\DataSourceChain();\n\n $instance->addDataSource($a, array('group' => 'request', 'method' => 'getLocale', 'alias' => 'request_locale'));\n $instance->addDataSource($a, array('group' => 'request', 'method' => 'getScheme', 'alias' => 'request_scheme'));\n $instance->addDataSource($this->get('victoire_criteria.criteria.roles_data_source'), array('group' => 'request', 'method' => 'getRoles', 'alias' => 'request_roles'));\n $instance->addDataSource($this->get('victoire_criteria.criteria.user_data_source'), array('group' => 'request', 'method' => 'getLoggedStatus', 'alias' => 'request_user'));\n $instance->addDataSource($this->get('victoire_criteria.criteria.domain_name_source'), array('group' => 'request', 'method' => 'getCurrentDomainName', 'alias' => 'request_domain_name'));\n\n return $instance;\n }", "public function getParentDataProvider();", "public function getDependencyList()\n {\n return $this->dependencyList;\n }", "function getDataSet() {\n\t\treturn $this->addDataSets(array(\"init.yml\"));\n\t}", "function getDataSet() {\n\t\treturn $this->addDataSets(array(\"init.yml\"));\n\t}", "public function getDependency()\n {\n if (isset($this->dependency)) {\n return $this->dependency;\n }\n $db = DataAccess::getInstance();\n $this->dependency = '' . $db->GetOne(\"SELECT `dependency` FROM \" . geoTables::browsing_filters_settings . \" WHERE `category` = ? and `field` = ?\", array(self::getActiveCategory(), $this->target));\n return $this->dependency;\n }", "public function getPoolSourceslist()\n\t{\n\t\treturn($this->getProperty('sourceslist'));\n\t}", "protected function getDefaultDataSource() {\r\n return new \\Yourface\\NiftyGrid\\ArrayDataSource($this->data);\r\n }", "protected function SourceDepartments() {\n\treturn $this->DepartmentTable()->SQO_Source('d');\n\t//return new fcSQL_TableSource($this->DepartmentTable()->Name(),'d');\n }", "protected function getVictoireCriteria_Criteria_RequestDataSourceService()\n {\n return $this->services['victoire_criteria.criteria.request_data_source'] = new \\Victoire\\Bundle\\CriteriaBundle\\DataSource\\RequestDataSource($this->get('request_stack'), array(0 => 'fr', 1 => 'en'));\n }", "public function getDataProvider()\n\t{\n\t\treturn $this->_dataProvider;\n\t}", "public function getDataSourceHandler()\n {\n return $this->DataSourceInstance->getDataSourceHandler();\n }", "public function getSource()\n {\n return 'data_cms_depts_rel_items';\n }", "public function getSourceData() {\n $plugin_id = $this->getActiveSource();\n $instance = $this->createInstance($plugin_id, []);\n return $instance->getData();\n }", "public function getOtherSpecificPopulationSourceList() {\n return $this->_get(4);\n }", "public static function getCollection()\n {\n if (is_null(static::$collection)) {\n static::$collection = new PicklistCollection();\n }\n\n return static::$collection;\n }", "protected function getDataSet()\n {\n return $this->createMySQLXMLDataSet(__DIR__ . '/../paczkolab_test.xml');\n }", "public function getSource() {\n\t\tif (is_array($this->source)) {\n\t\t\tif (count($this->source) != 2) {\n\t\t\t\tuser_error('FoundationSwitchField::getSource(): accepts only 2 options', E_USER_ERROR);\n\t\t\t}\n\t\t\treturn array_slice($this->source, 0, 2);\n\t\t}\n\t}", "function getCmdbSource() {\n\treturn cmdbSource::getDB();\n}", "public function getDependenciesList();", "protected function getPicker(Blackbox_Models_IReadableTarget $target_model)\n\t{\n\t\tif (!$this->picker instanceof OLPBlackbox_IPicker)\n\t\t{\n\t\t\t$this->picker = parent::getPicker($target_model);\n\t\t}\n\t\t\n\t\treturn $this->picker;\n\t}", "public function getConfigDependencyName();", "public function getInitialisedListProvider()\n {\n // Wir initialisieren das Formular und damit auch die Filter.\n $this->getFilterTableDataForSearchForm();\n list($fields, $options) = $this->getFieldsAndOptions();\n /* @var $provider \\Sys25\\RnBase\\Frontend\\Marker\\ListProvider */\n $provider = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance(\\Sys25\\RnBase\\Frontend\\Marker\\ListProvider::class);\n $provider->initBySearch([$this->getService(), 'search'], $fields, $options);\n\n return $provider;\n }", "public function getDataProvider()\n {\n return $this->dataProvider;\n }", "public function getDependency() {\r\n\t\r\n\t}", "public function getDependency() {}", "public function getDependency() {}", "public function getDependencyConfig()\n {\n return [\n // Legacy Zend Framework aliases\n 'aliases' => [\n \\Zend\\Paginator\\AdapterPluginManager::class => AdapterPluginManager::class,\n \\Zend\\Paginator\\ScrollingStylePluginManager::class => ScrollingStylePluginManager::class,\n ],\n 'factories' => [\n AdapterPluginManager::class => AdapterPluginManagerFactory::class,\n ScrollingStylePluginManager::class => ScrollingStylePluginManagerFactory::class,\n ],\n ];\n }", "public function getResourceDataSource()\n\t{\n\t\tif ($this->_resourceDataSource === null)\n\t\t{\n\t\t\t$this->_resourceDataSource = new Application_Model_ResourceMapper;\n\t\t}\n\t\t\n\t\treturn $this->_resourceDataSource;\n\t}", "public function getSpecificPopulationSourcesList() {\n return $this->_get(3);\n }", "protected function getLibrary()\n {\n return 'visualization';\n }", "public function getSource()\n {\n return 'p_combo_goods';\n }", "public function getDatasourceRepository()\n {\n return $this->datasourceRepository;\n }", "public function getFieldInstanceByName($name)\n\t{\n\t\t$params = [];\n\t\t$qualifiedModuleName = 'Settings:Picklist';\n\t\t$tableName = $this->getTableName();\n\t\tswitch ($name) {\n\t\t\tcase 'name':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $this->fieldModel->getName(),\n\t\t\t\t\t'label' => 'LBL_ITEM_VALUE',\n\t\t\t\t\t'uitype' => 1,\n\t\t\t\t\t'typeofdata' => 'V~M',\n\t\t\t\t\t'maximumlength' => $this->fieldModel->getMaxValue(),\n\t\t\t\t\t'purifyType' => \\App\\Purifier::TEXT,\n\t\t\t\t\t'table' => $tableName,\n\t\t\t\t\t'validator' => [['name' => 'FieldLabel']]\n\t\t\t\t];\n\t\t\t\tif (1 !== $this->presence || !$this->fieldModel->isEditable()) {\n\t\t\t\t\t$params['isEditableReadOnly'] = true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'description':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_DESCRIPTION',\n\t\t\t\t\t'uitype' => 300,\n\t\t\t\t\t'typeofdata' => 'V~O',\n\t\t\t\t\t'maximumlength' => '65535',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::HTML,\n\t\t\t\t\t'tooltip' => 'LBL_DESCRIPTION_VALUE_LIST',\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'prefix':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_PREFIX',\n\t\t\t\t\t'uitype' => 1,\n\t\t\t\t\t'typeofdata' => 'V~O',\n\t\t\t\t\t'maximumlength' => '25',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::TEXT,\n\t\t\t\t\t'tooltip' => 'LBL_DESCRIPTION_PREFIXES',\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'close_state':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_CLOSES_RECORD',\n\t\t\t\t\t'uitype' => 56,\n\t\t\t\t\t'typeofdata' => 'C~O',\n\t\t\t\t\t'maximumlength' => '5',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::BOOL,\n\t\t\t\t\t'tooltip' => 'LBL_BLOCKED_RECORD_INFO',\n\t\t\t\t\t'table' => 'u_#__picklist_close_state'\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'icon':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_ICON',\n\t\t\t\t\t'uitype' => 62,\n\t\t\t\t\t'typeofdata' => 'V~O',\n\t\t\t\t\t'maximumlength' => '255',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::TEXT,\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'time_counting':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_TIME_COUNTING',\n\t\t\t\t\t'uitype' => 16,\n\t\t\t\t\t'typeofdata' => 'V~M',\n\t\t\t\t\t'maximumlength' => '250',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::INTEGER,\n\t\t\t\t\t'tooltip' => 'LBL_TIME_COUNTING_INFO',\n\t\t\t\t\t'defaultvalue' => 0,\n\t\t\t\t\t'picklistValues' => [\n\t\t\t\t\t\t0 => \\App\\Language::translate('LBL_NONE', '_Base'),\n\t\t\t\t\t\t\\App\\RecordStatus::TIME_COUNTING_REACTION => \\App\\Language::translate('LBL_TIME_COUNTING_REACTION', $qualifiedModuleName),\n\t\t\t\t\t\t\\App\\RecordStatus::TIME_COUNTING_RESOLVE => \\App\\Language::translate('LBL_TIME_COUNTING_RESOLVE', $qualifiedModuleName),\n\t\t\t\t\t\t\\App\\RecordStatus::TIME_COUNTING_IDLE => \\App\\Language::translate('LBL_TIME_COUNTING_IDLE', $qualifiedModuleName)\n\t\t\t\t\t],\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'record_state':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_RECORD_STATE',\n\t\t\t\t\t'uitype' => 16,\n\t\t\t\t\t'typeofdata' => 'V~M',\n\t\t\t\t\t'maximumlength' => '250',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::INTEGER,\n\t\t\t\t\t'tooltip' => 'LBL_RECORD_STATE_INFO',\n\t\t\t\t\t'defaultvalue' => \\App\\RecordStatus::RECORD_STATE_NO_CONCERN,\n\t\t\t\t\t'picklistValues' => [],\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tforeach (\\App\\RecordStatus::getLabels() as $key => $value) {\n\t\t\t\t\t$params['picklistValues'][$key] = \\App\\Language::translate($value, $qualifiedModuleName);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'roles':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_ASSIGN_TO_ROLE',\n\t\t\t\t\t'uitype' => 33,\n\t\t\t\t\t'typeofdata' => 'V~O',\n\t\t\t\t\t'maximumlength' => '500',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::TEXT,\n\t\t\t\t\t'defaultvalue' => 'all',\n\t\t\t\t\t'picklistValues' => [\n\t\t\t\t\t\t'all' => \\App\\Language::translate('LBL_ALL_ROLES', $qualifiedModuleName)\n\t\t\t\t\t],\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tforeach (\\Settings_Roles_Record_Model::getAll() as $key => $roleModel) {\n\t\t\t\t\t$params['picklistValues'][$key] = \\App\\Language::translate($roleModel->get('rolename'), 'Settings:Roles');\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn $params ? \\Vtiger_Field_Model::init($qualifiedModuleName, $params, $name)->set('sourceFieldModel', $this->fieldModel) : null;\n\t}", "public function populationDecoratorFactoryDataProvider()\n {\n\n return [\n [\n '\\Hashbangcode\\Webolution\\Type\\Number\\NumberPopulation',\n 'Cli',\n '\\Hashbangcode\\Webolution\\Type\\Number\\Decorator\\NumberPopulationDecoratorCli'\n ],\n [\n '\\Hashbangcode\\Webolution\\Type\\Number\\NumberPopulation',\n 'Html',\n '\\Hashbangcode\\Webolution\\Type\\Number\\Decorator\\NumberPopulationDecoratorHtml'\n ],\n [\n '\\Hashbangcode\\Webolution\\Type\\Color\\ColorPopulation',\n 'Cli',\n '\\Hashbangcode\\Webolution\\Type\\Color\\Decorator\\ColorPopulationDecoratorCli'\n ],\n [\n '\\Hashbangcode\\Webolution\\Type\\Color\\ColorPopulation',\n 'Html',\n '\\Hashbangcode\\Webolution\\Type\\Color\\Decorator\\ColorPopulationDecoratorHtml'\n ],\n [\n '\\Hashbangcode\\Webolution\\Type\\Color\\ColorPopulation',\n 'cli',\n '\\Hashbangcode\\Webolution\\Type\\Color\\Decorator\\ColorPopulationDecoratorCli'\n ],\n [\n '\\Hashbangcode\\Webolution\\Type\\Color\\ColorPopulation',\n 'html',\n '\\Hashbangcode\\Webolution\\Type\\Color\\Decorator\\ColorPopulationDecoratorHtml'\n ],\n ];\n }", "public function setDataProvider()\n {\n return [\n [['a'], 0, 'x', ['x']],\n\n [['a', 'b'], 0, 'x', ['x', 'b']],\n [['a', 'b'], 1, 'y', ['a', 'y']],\n\n [['a', 'b', 'c'], 0, 'x', ['x', 'b', 'c']],\n [['a', 'b', 'c'], 1, 'y', ['a', 'y', 'c']],\n [['a', 'b', 'c'], 2, 'z', ['a', 'b', 'z']],\n ];\n }", "public static function getDataSourceName() {\r\n // Example: Use a local SQLite3 database\r\n return 'sqlite:' . dirname(__FILE__) . '/counter.sqlite3';\r\n \r\n // Example use mySQL\r\n // return 'mysql:host=localhost;port=3306;dbname=demo';\r\n }", "public function GetPickListFields(Vtiger_Request $request)\n\t{\n\t\t$module = $request->get('sourceModule');\n\n\t\t$fieldList = Settings_PickListDependency_Module_Model::getAvailablePicklists($module);\n\n\t\t$response = new Vtiger_Response();\n\t\t$response->setResult($fieldList);\n\t\t$response->emit();\n\t}", "public function getSource()\n {\n return 'data_diksar';\n }", "protected function sourcePluginCollection() {\n if (!$this->sourcePluginCollection && $this->source) {\n $this->sourcePluginCollection = new DefaultSingleLazyPluginCollection(\\Drupal::service('plugin.manager.media.source'), $this->source, $this->source_configuration);\n }\n return $this->sourcePluginCollection;\n }", "public function getDataProvider()\n {\n // set database criteria\n $criteria = new CDbCriteria;\n $criteria->compare('project.id', $this->id);\n $criteria->compare('project.name', $this->name, true);\n $criteria->compare('project.status', $this->status);\n $criteria->compare('project.description', $this->description, true);\n\n // return database data provider\n return new CActiveDataProvider($this->model, array(\n 'criteria' => $criteria,\n 'pagination' => array(\n 'pageSize' => Yii::app()->settings->projects_per_page,\n ),\n ));\n }", "public function getDatasourceName()\n {\n return $this->datasource;\n }", "public function getOtherSourceList() {\n return $this->_get(6);\n }", "function getDropDown() ;", "function getSources();", "public function getDependencyViewValue(ElementableDependencyDataProvider $dependency_data_provider);", "public function get_source() {\n\t\treturn $this->subscription->get_source();\n\t}", "public function getDatasources()\n {\n return $this->datasources;\n }", "public function getSourceData();", "public function getDropDown() {}", "public function getDropDown() {}", "protected function getDataSet()\n {\n return new \\PHPUnit_Extensions_Database_DataSet_YamlDataSet(__DIR__ . '/DataSet/base.yml');\n }", "public function getProvider() : DataProvider {\n\t\treturn $this->dataProvider;\n\t}", "protected function loadFormData($name='com_weblinks.weblink', $source='weblink'){\r\n $data = JFactory::getApplication()->getUserState($name.'.edit.'.$source.'.data', array());\r\n\r\n if (empty($data)) {\r\n $data = $this->getItem();\r\n\r\n // Prime some default values.\r\n if ($this->getState($source.'.id') == 0) {\r\n $app = JFactory::getApplication();\r\n $data->set('catid', JRequest::getInt('catid', $app->getUserState(com_weblinks.weblink.'.filter.category_id')));\r\n }\r\n }\r\n\r\n return $data;\r\n }", "public static function dataSource($args)\n\t{\n\t\t$args = func_get_args();\n\t\treturn self::getConnection()->dataSource($args);\n\t}", "function get_dropins()\n {\n }", "protected function inputSources()\n {\n if ($this->allowMultipleSources) {\n $sources = $this->sources;\n } else {\n $sources = [$this->source];\n }\n\n return $sources;\n }", "public function getDataProviderFieldValue(ElementableDependencyDataProvider $dependency_data_provider, Collection $data, string $field_name);", "public function getConfiguredAppsDataProvider() {}", "public function getDatasetsList() {\n return $this->_get(3);\n }", "public function getOtherDataSourcesList() {\n return $this->_get(10);\n }", "public static function resolveDatasource($datasource = null)\n {\n return static::$resolver->datasource($datasource);\n }", "static private function PickSource($source) {\r\n\t\t\r\n\t\tswitch( strtolower($source) ) {\r\n\t\t\t\r\n\t\t\tcase 'get': \treturn $_GET; break;\r\n\t\t\tcase 'post': \treturn $_POST; break;\r\n\t\t\tdefault: \r\n\t\t\tcase 'request': return $_REQUEST; break;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "public function getDatasetsList() {\n return $this->_get(4);\n }", "function getData($options) \n {\n }", "public function get_source()\n {\n }", "public function getDataList(){\n return $this->_get(1);\n }", "public function getSelectDataFields();", "abstract public function readDataSource(): Traversable;" ]
[ "0.57415396", "0.5661283", "0.5661283", "0.5561729", "0.55355626", "0.55248123", "0.55216926", "0.5507069", "0.5488294", "0.54641753", "0.5443084", "0.5418726", "0.5393291", "0.5304119", "0.52787757", "0.5272472", "0.5271071", "0.5239136", "0.5234726", "0.523427", "0.523427", "0.5231781", "0.521278", "0.52093893", "0.51835996", "0.5176542", "0.51424843", "0.5082002", "0.50431967", "0.504179", "0.5007355", "0.50042343", "0.5004064", "0.4990691", "0.49667758", "0.49667758", "0.49642494", "0.49509922", "0.49297708", "0.49218935", "0.49200174", "0.48931676", "0.4879183", "0.48673394", "0.48502034", "0.4841073", "0.48386455", "0.48366547", "0.4813396", "0.47795114", "0.47730657", "0.47690868", "0.47590223", "0.4743669", "0.47296152", "0.47260612", "0.47202954", "0.47202954", "0.4711147", "0.4706886", "0.4695911", "0.4664759", "0.4661819", "0.4660592", "0.46576", "0.46476507", "0.46472064", "0.4644376", "0.46434483", "0.46381748", "0.46370694", "0.4629191", "0.46243334", "0.4622827", "0.46167928", "0.46019745", "0.45980483", "0.4596499", "0.45930198", "0.4587032", "0.4580865", "0.4580865", "0.45807147", "0.45749605", "0.45619455", "0.4558587", "0.45519844", "0.45464334", "0.45427436", "0.4539835", "0.45348644", "0.45258814", "0.4522892", "0.45178843", "0.45089346", "0.4506655", "0.4500968", "0.44998962", "0.4499518", "0.44874102" ]
0.5077034
28
Check if field is dependent.
public static function isDependentField(string $moduleName, string $fieldName): bool { ['listener' => $listener, 'conditions' => $conditions] = self::getDependencyForModule($moduleName); return \in_array($fieldName, $listener) || isset($conditions[$fieldName]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isDependant();", "protected function _isDependentFormField($name) {\r\n \treturn array_key_exists($name, $this->_dependentFormFields);\r\n }", "public function hasDependent()\n {\n return (1 == $this->_hasDependent);\n }", "public function isDependant() {\n return $this->isDependant;\n }", "public function depends_on($field, array $fields)\n\t{\n\t\tforeach ($fields as $depends_on)\n\t\t{\n\t\t\tif ( ! isset($this[$depends_on]) OR $this[$depends_on] == NULL)\n\t\t\t\treturn FALSE;\n\t\t}\n\n\t\treturn TRUE;\n\t}", "public function isUsedInFieldDependency() {\n $rm = new Tracker_RulesManager($this->getTracker());\n return $rm->isUsedInFieldDependency($this);\n }", "public function dependencyExist(): bool\n {\n if ($this->dependencyExist !== null) {\n return $this->dependencyExist;\n }\n\n $this->dependencyExist = (bool)$this->getPqrForm()->getRow('sys_dependencia');\n\n return $this->dependencyExist;\n }", "public static function has_dependents(){\n\t\treturn false;\n\t}", "function isFK(){\n\t\treturn $this->remote_field != '' ;\n\t}", "private function hasForeignFields()\r\n\t{\r\n\t\tforeach ($this->fields as $field)\r\n\t\t{\r\n\t\t\tif ($field instanceOf ForeignField)\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public function hasField();", "function cumple_dependencias()\n\t{\n\t\treturn count($this->get_dependencias_faltantes()) > 0;\n\t}", "public function check_if_has_dependency() {\n $res = true;\n\n foreach ( $this->depends_on as $class ) {\n if ( ! class_exists( $class['name'] ) ) {\n $this->dependency_error[] = $class['notice'];\n $res = false;\n $this->dependency_not_found = true;\n }\n }\n\n return $res;\n }", "public function is_required(){\n\t\treturn $this->field->required;\n\t}", "private function is_required( &$dependency ) {\n\t\tif ( isset( $dependency['required'] ) ) {\n\t\t\treturn ( true === $dependency['required'] || 'true' === $dependency['required'] );\n\t\t}\n\t\tif ( isset( $dependency['optional'] ) ) {\n\t\t\treturn ( false === $dependency['optional'] || 'false' === $dependency['optional'] );\n\t\t}\n\t\treturn true;\n\t}", "public function check_for_dependents()\n\t{\n\t\t$query = \"SELECT * FROM \" . cms_db_prefix() . \"module_deps WHERE parent_module = ?\";\n\t\t$row = cms_db()->GetRow($query, array($this->get_name()));\n\n\t\tif ($row)\n\t\t\treturn true;\n\n\t\treturn false;\n\t}", "public function isForeignKey()\n {\n return (count($this->getForeignKeys()) > 0);\n }", "public function isDependancy_simple() {\n\t\t$this->getDependancy_simple();\n\t}", "private function isForeignField($fieldName)\r\n\t{\r\n\t\tforeach ($this->fields as $field)\r\n\t\t{\r\n\t\t\tif ($field->name == $fieldName && $field instanceOf ForeignField)\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public function has_dependencies(): bool;", "public function isForeignKey()\n {\n\treturn false;\n }", "public function hasField() {\n return $this->_has(1);\n }", "public function hasField() {\n return $this->_has(1);\n }", "public function hasField() {\n return $this->_has(1);\n }", "public function isField() : bool\n {\n return null == $this->fields || empty($this->fields);\n }", "public function hasField(){\n return $this->_has(2);\n }", "protected function _isDependence($name) {\r\n \treturn array_key_exists($name, $this->_dependenciesMap);\r\n }", "function wp_required_field_indicator()\n {\n }", "public function isRequired() {}", "public function isRequired() {}", "public function isRequired() {}", "public function isRequired() {}", "function _sf_dependent_value_exists($post_id, $field_id) {\n\t\t\n\t\t///// GETS VALUES\n\t\tif($field = get_post($post_id)) {\n\t\t\t\n\t\t\t///// WE CAN GET VALUES\n\t\t\tif(get_post_meta($post_id, 'dependent_values', true) != '') {\n\t\t\t\t\n\t\t\t\t$values = json_decode(htmlspecialchars_decode(get_post_meta($post_id, 'dependent_values', true)));\n\t\t\t\t\n\t\t\t\t//// IF ITS AN OBJECT\n\t\t\t\tif(is_object($values)) {\n\t\t\t\t\t\n\t\t\t\t\tforeach($values as $section) { foreach($section as $val) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t///// IF VALUE EXISTS\n\t\t\t\t\t\tif($val->id == $field_id) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\treturn true;\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} }\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn false;\n\t\t\n\t}", "public function hasFloatField()\n {\n return $this->get(self::FLOAT_FIELD) !== null;\n }", "public function isHidden()\n {\n return !is_null($this->_dependsOf);\n }", "public function hasDependencyErrors() {}", "public function isDeferred()\n {\n return $this instanceof Deferrable;\n }", "public function isAreCasesRequired()\n {\n return !is_null($this->_fields['AreCasesRequired']['FieldValue']) && $this->_fields['AreCasesRequired']['FieldValue'];\n }", "public function fieldDependent($dependent, $dependOn, $colName) {\r\n $this->fieldDepend[$dependent] = array(\r\n \"dependOn\" => $dependOn,\r\n \"colName\" => $colName\r\n );\r\n return $this;\r\n }", "public function isRequired($fieldName) {\n\t\t$configuration = $this->getConfiguration($fieldName);\n\t\t$parts = array();\n\t\tif (!empty($configuration['eval'])) {\n\t\t\t$parts = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::trimExplode(',', $configuration['eval']);\n\t\t}\n\t\treturn in_array('required', $parts);\n\t}", "public function depIsValid()\n {\n if (!$this->scan_attributes) {\n return false;\n }\n \n return $this->versionIsValid($this->scan_attributes->dep_version);\n }", "public function getIsRequired(): bool;", "public function has_fields()\n {\n }", "public function isRequired();", "public function isRequired();", "public function isRequired();", "public function isRequired();", "public function isRequired();", "public function isRequired();", "public function isRequired();", "public function isRequired();", "public function isRequired() {\n return $this->requirement->required;\n }", "public function hasRelationManyToOne($fieldName) {\n\t\t$result = FALSE;\n\n\t\t$foreignField = $this->getForeignField($fieldName);\n\t\tif (!empty($foreignField)) {\n\n\t\t\t// Load TCA service of foreign field..\n\t\t\t$foreignTable = $this->getForeignTable($fieldName);\n\t\t\t$tcaForeignFieldService = \\TYPO3\\CMS\\Vidi\\Tca\\TcaServiceFactory::getFieldService($foreignTable);\n\t\t\t$result = $this->hasRelationMany($fieldName) && $tcaForeignFieldService->hasRelationOne($foreignField);\n\t\t}\n\t\treturn $result;\n\t}", "protected function _getDependentFormField($name) {\r\n \treturn $this->_dependentFormFields[$name];\r\n }", "protected function buildFK($type, $targetType, $field, $targetField,$isDep=false) {\n\t\t$table = $this->safeTable($type);\n\t\t$tableNoQ = $this->safeTable($type,true);\n\t\t$targetTable = $this->safeTable($targetType);\n\t\t$targetTableNoQ = $this->safeTable($targetType,true);\n\t\t$column = $this->safeColumn($field);\n\t\t$columnNoQ = $this->safeColumn($field,true);\n\t\t$targetColumn = $this->safeColumn($targetField);\n\t\t$targetColumnNoQ = $this->safeColumn($targetField,true);\n\t\t$keys = $this->getKeys($targetTableNoQ,$tableNoQ);\n\t\t$needsToAddFK = true;\n\t\t$needsToDropFK = false;\n\t\tforeach($keys as $key) {\n\t\t\tif ($key['FKTABLE_NAME']==$tableNoQ && $key['FKCOLUMN_NAME']==$columnNoQ) {\n\t\t\t\t//already has an FK\n\t\t\t\t$needsToDropFK = true;\n\t\t\t\tif ((($isDep && $key['DELETE_RULE']==0) || (!$isDep && $key['DELETE_RULE']==3))) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tif ($needsToDropFK) {\n\t\t\t$sql = \"ALTER TABLE $table DROP FOREIGN KEY {$key['FK_NAME']} \";\n\t\t\t$this->adapter->exec($sql);\n\t\t}\n\n\t\t$casc = ($isDep ? 'CASCADE' : 'SET NULL');\n\t\t$sql = \"ALTER TABLE $table ADD CONSTRAINT FOREIGN KEY($column) REFERENCES $targetTable($targetColumn) ON DELETE $casc \";\n\t\t$this->adapter->exec($sql);\n\n\t}", "public function getRequired(): bool;", "function isRequired()\n {\n return $this->required;\n }", "public function hasSubdependencies(): bool;", "public function check () {\n $modelName = $this->field->model->name;\n $fieldName = $this->field->name;\n $bean = $this->field->model->bean;\n $ctx = @$this->field->constraints['context'];\n $update = $ctx ? strpos(\",,{$ctx->value},\", ',update,') : true;\n return $this->dispatch(\n (!$this->value) || ($this->field && $this->field->value) || ($bean->id && !$update),\n \"{$this->field->title} is required\"\n );\n }", "public function isDeferred()\n\t{\n\t\treturn $this->defer;\n\t}", "public function isDeferred()\n\t{\n\t\treturn $this->defer;\n\t}", "public function hasAssociation($fieldName): bool;", "public function hasDoubleField()\n {\n return $this->get(self::DOUBLE_FIELD) !== null;\n }", "public function hasDependencies(): bool\n {\n return (bool) $this->getDependencies();\n }", "public function isRequired() : bool;", "public function hasAssociation($fieldName)\n {\n }", "function rest_is_field_included($field, $fields)\n {\n }", "public function hasRelation($fieldName) {\n\t\treturn NULL !== $this->getForeignTable($fieldName);\n\t}", "private function isFaxRequired()\n {\n return $this->eavConfig->getAttribute('customer_address', 'fax')->getIsRequired();\n }", "public function isRequired()\n {\n return (1 == $this->_required);\n }", "public function validateForeignKey($field) {\n $associations = array_map(\n create_function('$v', 'return $v[\"foreignKey\"];'), $this->belongsTo\n );\n\n $aliases = array();\n foreach ($associations as $model => $foreignKey) {\n if (!array_key_exists($foreignKey, $aliases))\n $aliases[$foreignKey] = array();\n array_push($aliases[$foreignKey], $model);\n }\n\n foreach ($aliases[key($field)] as $model) {\n $count = $this->{$model}->find('count', array(\n 'conditions' => array(\n $model . '.' . $this->{$model}->primaryKey => current($field)\n ),\n 'recursive' => -1\n ));\n if ($count == 1)\n return true;\n }\n return false;\n }", "public function isRequired() : bool {\r\n return $this->config->get('field_required') ?? false;\r\n }", "function noExistDependence($dependence_name)\n\t{\n\t\t$query = $this->db->get_where('dependence', array('name'=>$dependence_name));\n\t\treturn $query->num_rows() == 0;\n\t}", "private function isNotReferenced()\n {\n if ($this->payments->count()) {\n throw new IsReferencedException('Cannot edit form because referenced by payments', $this->payments);\n }\n }", "public function isRequiredField($field_name, $node_type) {\n $bundle_fields = \\Drupal::getContainer()->get('entity_field.manager')->getFieldDefinitions('node', $node_type);\n $field_definition = $bundle_fields[$field_name];\n $setting = $field_definition->isRequired();\n Assert::assertNotEmpty($setting, 'Field ' . $field_name . ' is not required.');\n }", "public function is_required() {\n\t\treturn isset( $this->data['required'] ) && $this->data['required'];\n\t}", "public static function checkDependencies() {\n\t\treturn true;\n\t}", "function remove_dependents() {\n\t\t/** todo\n\t\tforeach($this->has_many_data as $key => $value) {\n\t\t\tdebug($key, $value);\n\n\t\t}\n\n\t\tforeach($this->has_one_data as $key => $value) {\n\t\t\tdebug($key, $value);\n\t\t}\n\t\t*/\n\n\t\treturn true;\n\t}", "public function check_dependencies() {\n\n $dependencies = [];\n\n /**\n * Sample plugin dependency\n *\n * Depends on ACF plugin active\n */\n// if ( ! class_exists( 'acf' ) ) {\n// $dependencies[] = [\n// 'type' => 'error',\n// 'message' => $this->name . ' ' . __( 'requires ACF PRO plugin activated', 'goapostas' )\n// ];\n// }\n\n /**\n * Depends on ACF plugin active\n */\n if ( false === version_compare( PHP_VERSION, '7.0.0', '>=' ) ) {\n $dependencies[] = [\n 'type' => 'error',\n 'message' => $this->name . ' ' . __( 'requires PHP 7.0.0 or higher. Your PHP version is ' . PHP_VERSION, 'goapostas' )\n ];\n }\n\n if ( ! empty( $dependencies ) ) {\n $this->show_admin_notices( $dependencies );\n\n return false;\n }\n\n return true;\n }", "public function hasReferencedEntityType() {\n return $this->_has(12);\n }", "public function isDeferred();", "private function check_item_department_required($field, $value) {\n if( $field ) {\n if( $value == \"\" || empty($value) ) {\n return false;\n }\n }\n return true;\n }", "public function has_inactive_dependencies(): bool;", "public function setIsDependant($isDependant) {\n $this->isDependant = $isDependant;\n }", "function acf_is_field($field = \\false, $id = '')\n{\n}", "public function canBeUnused() {\n // a field deletable if it not used in semantics nor in workflow\n return ! ($this->isUsedInSemantics() || $this->isUsedInWorkflow() || $this->isUsedInFieldDependency());\n }", "public function isRequired() {\n return $this->is_required;\n }", "public function isRequiredField($fieldname){\n\t\treturn in_array($fieldname, $this->_requiredFields);\n\t}", "public function hasDependency(string $name): bool;", "public function hasMadeDeclaration()\n {\n return $this->fieldIsAgreed('declaration');\n }", "function validate_relationship_field($field)\n {\n }", "private function is_automatic_activate( &$dependency ) {\n\t\t $is_required = $this->is_required( $dependency );\n\t\t return ! $is_required || ( $is_required && ! self::$automatic_activate_required );\n\t}", "function fieldIsRequired($fieldName) {\n\t\tif (isset($this->rules[$fieldName]['required'])) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function isRequired()\n {\n return $this->required;\n }", "public function fieldExists($field) {\n\t\tif (strstr($field, \".\")) {\n\t\t\t// use the path to get to the data poing\n\t\t\t$fieldParts = explode(\".\", $field);\n\t\t\t$key = array_pop($fieldParts);\n\t\t\t\n\t\t\t// add the field parts to the entityPath to get the correct model\n\t\t\tEntity::_setEntityPath($fieldParts);\n\t\t} else {\n\t\t\t$key = $field;\n\t\t\t$fieldParts = array();\n\t\t}\n\t\t\n\t\t$model = Entity::currentPathClass();\n\t\t\n\t\tEntity::_revertEntityPath(count($fieldParts));\n\t\t\n\t\tApp::uses($model, \"Model\");\n\n\t\t// if field is not defined in db, and it's not a defined html helper func, then just print whatever it is\n\t\t$types = $this->entityFields($model);\n\t\t\n\t\tif (@$types[$key] == \"virtual\") {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tif (isset($types[$key]))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t}", "public function has_active_dependencies(): bool;", "function isNotDuplicateDependence($dependence_id, $name)\n\t{\n\t\t$query = $this->db->get_where('dependence', array('id !='=>$dependence_id, 'name =' => $name));\n\t\treturn $query->num_rows() == 0;\n\t}", "public function isCombField() {}", "public function checkDependencies($migration_id) {\n $migrationInstance = $this->pluginManagerMigration->createStubMigration($this->definitions[$migration_id]);\n $dependencies = $migrationInstance->getMigrationDependencies();\n $depends_on = implode(', ', $dependencies['required']);\n foreach ($dependencies['required'] as $id) {\n if (!$this->getMigrationSource($id)) {\n $this->messenger()->addError($this->t('@migration_id depends on: @ids', [\n '@migration_id' => $migration_id,\n '@ids' => $depends_on,\n ]));\n return FALSE;\n }\n }\n if ($depends_on) {\n $this->messenger()->addMessage($this->t('@migration_id depends on: @ids', [\n '@migration_id' => $migration_id,\n '@ids' => $depends_on,\n ]));\n }\n\n return TRUE;\n }", "function drush_behat_op_is_field($is_field_info) {\n list($entity_type, $field_name) = $is_field_info;\n return _drush_behat_is_field($entity_type, $field_name);\n}" ]
[ "0.7431008", "0.7301194", "0.71485394", "0.6938086", "0.69200885", "0.69105256", "0.6451171", "0.6244367", "0.6212991", "0.6087695", "0.6068749", "0.6033312", "0.596899", "0.5960159", "0.59532917", "0.5881825", "0.5878985", "0.5854402", "0.5793324", "0.57930106", "0.5747953", "0.5715343", "0.5715343", "0.5715343", "0.5715018", "0.5692261", "0.5690882", "0.56848335", "0.56612605", "0.5660191", "0.5660191", "0.56601644", "0.5647931", "0.56120586", "0.56061345", "0.5593223", "0.5586055", "0.5580654", "0.55611104", "0.5554996", "0.555029", "0.5548495", "0.55388063", "0.5530855", "0.5530855", "0.5530855", "0.5530855", "0.5530855", "0.5530855", "0.5530855", "0.5530855", "0.55189276", "0.54872674", "0.5485554", "0.54589266", "0.5457132", "0.5443371", "0.54424167", "0.54347885", "0.54304624", "0.54304624", "0.54217124", "0.5412177", "0.5409402", "0.5407369", "0.54009783", "0.5400615", "0.54004097", "0.5394085", "0.538745", "0.537904", "0.537872", "0.5371131", "0.53707665", "0.53664666", "0.53601813", "0.5349545", "0.534792", "0.53348887", "0.5326643", "0.5318759", "0.53061604", "0.53000134", "0.5292709", "0.5291329", "0.5279576", "0.5279452", "0.5277039", "0.5274678", "0.5270813", "0.52641547", "0.52624536", "0.5261534", "0.52530795", "0.52444863", "0.5235448", "0.5231598", "0.5231479", "0.5226036", "0.52258873" ]
0.6528218
6
Function which will give the picklist values rows for a field.
public static function getValues($fieldName) { if (\App\Cache::has('Picklist::getValues', $fieldName)) { return \App\Cache::get('Picklist::getValues', $fieldName); } $primaryKey = static::getPickListId($fieldName); $dataReader = (new \App\Db\Query()) ->from("vtiger_$fieldName") ->orderBy('sortorderid') ->createCommand()->query(); $values = []; while ($row = $dataReader->read()) { $row['picklistValue'] = \App\Purifier::decodeHtml(\App\Purifier::decodeHtml($row[$fieldName])); $row['picklistValueId'] = $row[static::getPickListId($fieldName)]; $values[$row[$primaryKey]] = $row; } \App\Cache::save('Picklist::getValues', $fieldName, $values); return $values; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSelectDataFields();", "function getSelectFieldsValues($field_data) {\n \n $model = $this->getModel('comment_answers');\n \n $results = $model->getDataForView($field_data);\n \n foreach($results as $list) {\n $result = null;\n if($field_data == 'post_id') {\n $result_list[] = $list->post_id;\n }\n if($field_data == 'created_date') {\n $result_list[] = $list->created_date;\n }\n if($field_data == 'creator') {\n $result_list[] = $list->creator;\n }\n if($field_data == 'comment_id') {\n $result_list[] = $list->comment_id;\n }\n \n if($field_data == 'published') {\n $result_list[]= $list->published;\n }\n }\n \n //results are all the data from the selected column in the result_list array\n return $result_list;\n }", "public function getFieldInstanceByName($name)\n\t{\n\t\t$params = [];\n\t\t$qualifiedModuleName = 'Settings:Picklist';\n\t\t$tableName = $this->getTableName();\n\t\tswitch ($name) {\n\t\t\tcase 'name':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $this->fieldModel->getName(),\n\t\t\t\t\t'label' => 'LBL_ITEM_VALUE',\n\t\t\t\t\t'uitype' => 1,\n\t\t\t\t\t'typeofdata' => 'V~M',\n\t\t\t\t\t'maximumlength' => $this->fieldModel->getMaxValue(),\n\t\t\t\t\t'purifyType' => \\App\\Purifier::TEXT,\n\t\t\t\t\t'table' => $tableName,\n\t\t\t\t\t'validator' => [['name' => 'FieldLabel']]\n\t\t\t\t];\n\t\t\t\tif (1 !== $this->presence || !$this->fieldModel->isEditable()) {\n\t\t\t\t\t$params['isEditableReadOnly'] = true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'description':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_DESCRIPTION',\n\t\t\t\t\t'uitype' => 300,\n\t\t\t\t\t'typeofdata' => 'V~O',\n\t\t\t\t\t'maximumlength' => '65535',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::HTML,\n\t\t\t\t\t'tooltip' => 'LBL_DESCRIPTION_VALUE_LIST',\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'prefix':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_PREFIX',\n\t\t\t\t\t'uitype' => 1,\n\t\t\t\t\t'typeofdata' => 'V~O',\n\t\t\t\t\t'maximumlength' => '25',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::TEXT,\n\t\t\t\t\t'tooltip' => 'LBL_DESCRIPTION_PREFIXES',\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'close_state':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_CLOSES_RECORD',\n\t\t\t\t\t'uitype' => 56,\n\t\t\t\t\t'typeofdata' => 'C~O',\n\t\t\t\t\t'maximumlength' => '5',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::BOOL,\n\t\t\t\t\t'tooltip' => 'LBL_BLOCKED_RECORD_INFO',\n\t\t\t\t\t'table' => 'u_#__picklist_close_state'\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'icon':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_ICON',\n\t\t\t\t\t'uitype' => 62,\n\t\t\t\t\t'typeofdata' => 'V~O',\n\t\t\t\t\t'maximumlength' => '255',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::TEXT,\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'time_counting':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_TIME_COUNTING',\n\t\t\t\t\t'uitype' => 16,\n\t\t\t\t\t'typeofdata' => 'V~M',\n\t\t\t\t\t'maximumlength' => '250',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::INTEGER,\n\t\t\t\t\t'tooltip' => 'LBL_TIME_COUNTING_INFO',\n\t\t\t\t\t'defaultvalue' => 0,\n\t\t\t\t\t'picklistValues' => [\n\t\t\t\t\t\t0 => \\App\\Language::translate('LBL_NONE', '_Base'),\n\t\t\t\t\t\t\\App\\RecordStatus::TIME_COUNTING_REACTION => \\App\\Language::translate('LBL_TIME_COUNTING_REACTION', $qualifiedModuleName),\n\t\t\t\t\t\t\\App\\RecordStatus::TIME_COUNTING_RESOLVE => \\App\\Language::translate('LBL_TIME_COUNTING_RESOLVE', $qualifiedModuleName),\n\t\t\t\t\t\t\\App\\RecordStatus::TIME_COUNTING_IDLE => \\App\\Language::translate('LBL_TIME_COUNTING_IDLE', $qualifiedModuleName)\n\t\t\t\t\t],\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tbreak;\n\t\t\tcase 'record_state':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_RECORD_STATE',\n\t\t\t\t\t'uitype' => 16,\n\t\t\t\t\t'typeofdata' => 'V~M',\n\t\t\t\t\t'maximumlength' => '250',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::INTEGER,\n\t\t\t\t\t'tooltip' => 'LBL_RECORD_STATE_INFO',\n\t\t\t\t\t'defaultvalue' => \\App\\RecordStatus::RECORD_STATE_NO_CONCERN,\n\t\t\t\t\t'picklistValues' => [],\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tforeach (\\App\\RecordStatus::getLabels() as $key => $value) {\n\t\t\t\t\t$params['picklistValues'][$key] = \\App\\Language::translate($value, $qualifiedModuleName);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'roles':\n\t\t\t\t$params = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'column' => $name,\n\t\t\t\t\t'label' => 'LBL_ASSIGN_TO_ROLE',\n\t\t\t\t\t'uitype' => 33,\n\t\t\t\t\t'typeofdata' => 'V~O',\n\t\t\t\t\t'maximumlength' => '500',\n\t\t\t\t\t'purifyType' => \\App\\Purifier::TEXT,\n\t\t\t\t\t'defaultvalue' => 'all',\n\t\t\t\t\t'picklistValues' => [\n\t\t\t\t\t\t'all' => \\App\\Language::translate('LBL_ALL_ROLES', $qualifiedModuleName)\n\t\t\t\t\t],\n\t\t\t\t\t'table' => $tableName\n\t\t\t\t];\n\t\t\t\tforeach (\\Settings_Roles_Record_Model::getAll() as $key => $roleModel) {\n\t\t\t\t\t$params['picklistValues'][$key] = \\App\\Language::translate($roleModel->get('rolename'), 'Settings:Roles');\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn $params ? \\Vtiger_Field_Model::init($qualifiedModuleName, $params, $name)->set('sourceFieldModel', $this->fieldModel) : null;\n\t}", "function fieldValues() {\n\t\n\t\tif (isset($this->fieldValues)) {\n\t\t\treturn $this->fieldValues;\n\t\t}\n\n\t\t// fieldvalues fanns inte.\n\t\t// kolla preload först och om inte där så ladda in\n\t\t$preloader = pb_query_preloader::getInstance();\n\t\t$preloadRows = $preloader->getPreloadFieldsRows($this->id);\n\t\tif ($preloadRows === false) {\n\t\t\t#echo \"<br>nah, no preload row for field, article: $this->id \";\n\t\t\t// no preload for this articles field, fetch them from db\n\t\t\tglobal $polarbear_db;\t\t\n\t\t\t$sql = \"\n\t\t\t\tSELECT \n\t\t\t\t\tfv.fieldID, fv.articleID, fv.value, fv.numInSet,\n\t\t\t\t\tf.name as fieldName, f.type as fieldType\n\t\t\t\tFROM \" . POLARBEAR_DB_PREFIX . \"_fields_values as fv\n\t\t\t\tINNER JOIN \" . POLARBEAR_DB_PREFIX . \"_fields as f ON f.id = fv.fieldID\n\t\t\t\tWHERE articleID = '$this->id' ORDER BY fieldID ASC, numInSet ASC\";\n\t\t\t$rows = $polarbear_db->get_results($sql);\n\t\t} else {\n\t\t\t#echo \"<br>got preload row for field, article: $this->id\";\n\t\t\t// horay! we got the field values preloaded\n\t\t\t$rows = $preloadRows;\n\t\t}\n\t\n\t\t$arrFieldValues = array();\n\t\t$arrFieldCount = array();\n\t\tif (is_array($rows)) {\n\t\t\tforeach ($rows as $oneRow) {\n\t\t\t\tif (!isset($arrFieldValues[$oneRow->fieldID])) {\n\t\t\t\t\t$arrFieldValues[$oneRow->fieldID] = array();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t\ttodo: om det är en fil/bild ska det kanske finnas\n\t\t\t\t\tlink, downloadLink, imageSrc osv.\n\t\t\t\t*/\n\t\t\t\t$arrFieldValues[$oneRow->fieldID][] = array(\n\t\t\t\t\t\"fieldID\" => $oneRow->fieldID,\n\t\t\t\t\t\"articleID\" => $oneRow->articleID,\n\t\t\t\t\t\"value\" => $oneRow->value,\n\t\t\t\t\t\"numInSet\" => $oneRow->numInSet,\n\t\t\t\t\t// and some useful \"extras\" too\n\t\t\t\t\t\"valueEscaped\" => htmlspecialchars ($oneRow->value, ENT_COMPAT, \"UTF-8\"),\n\t\t\t\t\t\"valueNoTags\" => strip_tags($oneRow->value),\n\t\t\t\t\t\"fieldName\" => $oneRow->fieldName,\n\t\t\t\t\t\"fieldType\" => $oneRow->fieldType\n\t\t\t\t);\n\t\t\t\tif (!isset($arrFieldCount[$oneRow->fieldID])) {\n\t\t\t\t\t$arrFieldCount[$oneRow->fieldID]=0;\n\t\t\t\t}\n\t\t\t\t$arrFieldCount[$oneRow->fieldID]++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// update count\n\t\tforeach ($arrFieldCount as $fieldID => $fieldCount) {\n\t\t\tfor ($i=0; $i<sizeof($arrFieldValues[$fieldID]); $i++) {\n\t\t\t\t$arrFieldValues[$fieldID][$i][\"fieldSetCount\"] = $fieldCount;\n\t\t\t}\n\t\t}\n\t\t\n\t\t#pb_pqp_log_speed(\"article fieldValues()\");\n\t\t\n\t\t$this->fieldValues = $arrFieldValues;\n\t\treturn $this->fieldValues;\n\t}", "function get_row_local_field( $id = '1234QWERasdf' ) {\n\treturn array (\n\t\tarray (\n\t\t\t'key' => $id . '_5821e71cd49fd',\n\t\t\t'label' => 'Row Type',\n\t\t\t'name' => 'Row_Type_tab_0',\n\t\t\t'type' => 'tab',\n\t\t\t'required' => 0,\n\t\t\t'placement' => 'top'\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_5821e72dd49fe',\n\t\t\t'label' => 'Row type',\n\t\t\t'name' => 'row-type',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'choices' => array (\n\t\t\t\t'content' => 'Content',\n\t\t\t\t'blog' => 'Blog posts',\n\t\t\t),\n\t\t\t'wrapper' => array(\n\t\t\t\t'width' => 20\n\t\t\t),\n\t\t\t'default_value' => 'content',\n\t\t),\n\n\t\t// Blog fields\n\t\tarray (\n\t\t\t'key' => $id . '_5821e772d49ff',\n\t\t\t'label' => 'Show posts',\n\t\t\t'name' => 'posts_count',\n\t\t\t'type' => 'number',\n\t\t\t'required' => 0,\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e72dd49fe',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'blog',\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t),\n\t\t\t'default_value' => 1,\n\t\t\t'min' => 1,\n\t\t\t'step' => 1,\n\t\t\t'wrapper' => array(\n\t\t\t\t'width' => 15\n\t\t\t),\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_5821e332d49aa',\n\t\t\t'label' => 'Style',\n\t\t\t'name' => 'blog-style',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e72dd49fe',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'blog',\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t),\n\t\t\t'choices' => array( 'style-one' => 'Style one' ),\n\t\t\t'default_value' => 'style-one',\n\t\t\t'wrapper' => array(\n\t\t\t\t'width' => 15\n\t\t\t),\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_5821e799d4a00',\n\t\t\t'label' => 'Show Info',\n\t\t\t'name' => 'blog-show',\n\t\t\t'type' => 'checkbox',\n\t\t\t'required' => 0,\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e72dd49fe',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'blog',\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t),\n\t\t\t'wrapper' => array(\n\t\t\t\t'width' => 50\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'image' => 'Thumbnail',\n\t\t\t\t'date' => 'Date',\n\t\t\t\t'excerpt' => 'Excerpt',\n\t\t\t\t'button' => 'Button'\n\t\t\t),\n\t\t\t'default_value' => array (\n\t\t\t\t0 => 'image',\n\t\t\t),\n\t\t\t'layout' => 'horizontal',\n\t\t\t'toggle' => 0,\n\t\t),\n\n\t\t// Content\n\t\tarray (\n\t\t\t'key' => $id . '_5821f6a6269db',\n\t\t\t'label' => 'Columns',\n\t\t\t'name' => 'columns',\n\t\t\t'type' => 'flexible_content',\n\t\t\t'required' => 0,\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e72dd49fe',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'content',\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t),\n\t\t\t'button_label' => 'Add Column',\n\t\t\t'layouts' => array (\n\t\t\t\tarray (\n\t\t\t\t\t'key' => $id . '_21126955f123',\n\t\t\t\t\t'name' => 'contentcard',\n\t\t\t\t\t'label' => 'Content card',\n\t\t\t\t\t'display' => 'block',\n\t\t\t\t\t'sub_fields' => get_content_local_field( $id )\n\t\t\t\t),\n\t\t\t\tarray (\n\t\t\t\t\t'key' => $id . '_21126946d214',\n\t\t\t\t\t'name' => 'flexicard',\n\t\t\t\t\t'label' => 'Flexi Card',\n\t\t\t\t\t'display' => 'block',\n\t\t\t\t\t'sub_fields' => get_flexi_local_field( $id )\n\t\t\t\t)\n\t\t\t)\n\t\t),\n\n\t\t// Options\n\t\tarray (\n\t\t\t'key' => $id . '_5821e2e1f659b',\n\t\t\t'label' => 'Options',\n\t\t\t'name' => 'taboptions',\n\t\t\t'type' => 'tab',\n\t\t\t'required' => 0,\n\t\t\t'placement' => 'top',\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_0014mn5CO4n1',\n\t\t\t'label' => 'Columns per line',\n\t\t\t'name' => 'cols-count',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'wrapper' => array (\n\t\t\t\t'width' => '33'\n\t\t\t),\n\t\t\t'placeholder' => 'Columns per line',\n\t\t\t'choices' => array(\n\t\t\t\t1 => 'Just one',\n\t\t\t\t2 => 'Two',\n\t\t\t\t3 => 'Three',\n\t\t\t\t4 => 'Four',\n\t\t\t\t5 => 'Five',\n\t\t\t\t6 => 'Six'\n\t\t\t),\n\t\t\t'default_values' => array( 0 => 1 )\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_5821e6f3d49fc',\n\t\t\t'label' => 'Layout',\n\t\t\t'name' => 'layout',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'wrapper' => array (\n\t\t\t\t'width' => '33',\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'grid' => 'Grid',\n\t\t\t\t'carousel' => 'Carousel',\n\t\t\t),\n\t\t\t'default_value' => array (\n\t\t\t\t0 => 'grid',\n\t\t\t)\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_5821e2fcf659c',\n\t\t\t'label' => 'Columns\\' margins',\n\t\t\t'name' => 'cols-margins',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'wrapper' => array (\n\t\t\t\t'width' => '33',\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'none' => 'None',\n\t\t\t\t'normal' => 'Normal',\n\t\t\t),\n\t\t\t'default_value' => array (\n\t\t\t\t0 => 'none',\n\t\t\t)\n\t\t),\t\t\t\t\t\t\n\t\tarray (\n\t\t\t'key' => $id . '_5821e359f659d',\n\t\t\t'label' => 'Width',\n\t\t\t'name' => 'width',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'wrapper' => array (\n\t\t\t\t'width' => '33',\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'full' => 'Full',\n\t\t\t\t'four-five' => '4/5',\n\t\t\t\t'three-four' => '3/4',\n\t\t\t\t'one-two' => '1/2',\n\t\t\t),\n\t\t\t'default_value' => 'full',\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_5821eelementali34',\n\t\t\t'label' => 'Position',\n\t\t\t'name' => 'position',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'wrapper' => array (\n\t\t\t\t'width' => '33'\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'left' => 'Left',\n\t\t\t\t'center' => 'Center',\n\t\t\t\t'right' => 'Right',\n\t\t\t),\n\t\t\t'default_value' => array (\n\t\t\t\t0 => 'center',\n\t\t\t)\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_5821e44ff659f',\n\t\t\t'label' => 'Vertical row placement',\n\t\t\t'name' => 'vertical-placement',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'wrapper' => array (\n\t\t\t\t'width' => '33'\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'stretch' => 'Stretch',\n\t\t\t\t'top' => 'Top',\n\t\t\t\t'middle' => 'Middle',\n\t\t\t\t'bottom' => 'Bottom',\n\t\t\t),\n\t\t\t'default_value' => array( 'middle' )\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_5c21c44ff659c',\n\t\t\t'label' => 'Columns placement',\n\t\t\t'name' => 'cols-placement',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'wrapper' => array (\n\t\t\t\t'width' => '33'\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'stretch' => 'Stretch',\n\t\t\t\t'top' => 'Top',\n\t\t\t\t'middle' => 'Middle',\n\t\t\t\t'bottom' => 'Bottom',\n\t\t\t),\n\t\t\t'default_value' => array( 'middle' )\n\t\t),\t\t\t\t\t\t\t\t\n\t\tarray (\n\t\t\t'key' => $id . '_18212372d49ff',\n\t\t\t'label' => 'Margins',\n\t\t\t'name' => 'margins',\n\t\t\t'type' => 'clone',\n\t\t\t'required' => 0,\n\t\t\t'clone' => array (\n\t\t\t\t0 => 'marg_59930ca194830',\n\t\t\t),\n\t\t\t'display' => 'group',\n\t\t\t'layout' => 'block',\n\t\t\t'prefix_label' => 0,\n\t\t\t'prefix_name' => 0,\n\t\t\t'wrapper' => array(\n\t\t\t\t'width' => 50\n\t\t\t)\n\t\t),\n\n\t\t// Grid settings\n\t\tarray (\n\t\t\t'key' => $id . '_5821E2e1f659b',\n\t\t\t'label' => 'Grid settings',\n\t\t\t'name' => 'tabopt1ons',\n\t\t\t'type' => 'tab',\n\t\t\t'required' => 0,\n\t\t\t'placement' => 'top',\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e6f3d49fc',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'grid'\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t),\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_cePuha1234',\n\t\t\t'label' => 'Columns align',\n\t\t\t'name' => 'cols-align',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e6f3d49fc',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'grid'\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t),\n\t\t\t'wrapper' => array (\n\t\t\t\t'width' => '33'\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'left' => 'Left',\n\t\t\t\t'center' => 'Center',\n\t\t\t\t'right' => 'Right',\n\t\t\t\t'space-around' => 'Space Around',\n\t\t\t\t'space-between' => 'Space Between'\n\t\t\t),\n\t\t\t'default_value' => array (\n\t\t\t\t0 => 'left',\n\t\t\t)\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_co1231era9ti5od',\n\t\t\t'label' => 'The ratio of rows',\n\t\t\t'name' => 'cols-ratio',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'wrapper' => array(\n\t\t\t\t'width' => 33\n\t\t\t),\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_0014mn5CO4n1',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => '2',\n\t\t\t\t\t),\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e6f3d49fc',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'grid'\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'equal' => 'Equal width',\n\t\t\t\t'left' => 'Two thirds left',\n\t\t\t\t'right' => 'Two thirds right',\n\t\t\t),\n\t\t\t'default_value' => 'equal',\n\t\t),\n\n\t\t// Carousel settings\n\t\tarray (\n\t\t\t'key' => $id . '_5821Q2e1f659b',\n\t\t\t'label' => 'Carousel settings',\n\t\t\t'name' => 'tabopt2Cans',\n\t\t\t'type' => 'tab',\n\t\t\t'required' => 0,\n\t\t\t'placement' => 'top',\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e6f3d49fc',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'carousel'\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t),\n\t\t),\t\t\t\t\t\t\t\t\n\t\tarray (\n\t\t\t'key' => $id . '_1822e772d49ff',\n\t\t\t'label' => 'How many slides to scroll',\n\t\t\t'name' => 'slides_scroll',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e6f3d49fc',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'carousel'\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'1' => 'One',\n\t\t\t\t'2' => 'Two',\n\t\t\t\t'3' => 'Three',\n\t\t\t\t'4' => 'Four',\n\t\t\t\t'5' => 'Five',\n\t\t\t\t'6' => 'Six',\n\t\t\t),\n\t\t\t'default_value' => '1',\n\t\t\t'wrapper' => array(\n\t\t\t\t'width' => 33\n\t\t\t),\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_arr28oo659a',\n\t\t\t'label' => 'Show dots?',\n\t\t\t'name' => 'show_dots',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e6f3d49fc',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'carousel'\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t),\n\t\t\t'wrapper' => array (\n\t\t\t\t'width' => '33',\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'false' => 'None',\n\t\t\t\t'true' => 'Yes, show'\n\t\t\t),\n\t\t\t'default_value' => array (\n\t\t\t\t0 => 'false',\n\t\t\t),\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_arr28ff659a',\n\t\t\t'label' => 'Arrows type',\n\t\t\t'name' => 'arrows_type',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e6f3d49fc',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'carousel'\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t),\n\t\t\t'wrapper' => array (\n\t\t\t\t'width' => '33',\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'auto' => 'Auto',\n\t\t\t\t'none' => 'None',\n\t\t\t\t'custom' => 'Custom'\n\t\t\t),\n\t\t\t'default_value' => array (\n\t\t\t\t0 => 'auto',\n\t\t\t),\n\t\t\t'readonly' => 1,\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_arsis1ize9a',\n\t\t\t'label' => 'Arrows size',\n\t\t\t'name' => 'arrows_size',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e6f3d49fc',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'carousel'\n\t\t\t\t\t),\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_arr28ff659a',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'custom'\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t),\n\t\t\t'wrapper' => array (\n\t\t\t\t'width' => '33',\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'small' => 'Small',\n\t\t\t\t'medium' => 'Medium',\n\t\t\t\t'large' => 'Large'\n\t\t\t),\n\t\t\t'default_value' => array (\n\t\t\t\t0 => 'medium',\n\t\t\t),\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_arrwe09a',\n\t\t\t'label' => 'Arrows weight',\n\t\t\t'name' => 'arrows_weight',\n\t\t\t'type' => 'select',\n\t\t\t'instructions' => '',\n\t\t\t'required' => 0,\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e6f3d49fc',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'carousel'\n\t\t\t\t\t),\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_arr28ff659a',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'custom'\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t),\n\t\t\t'wrapper' => array (\n\t\t\t\t'width' => '33'\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'thin' => 'Thin',\n\t\t\t\t'normal' => 'Normal',\n\t\t\t\t'bold' => 'Bold'\n\t\t\t),\n\t\t\t'default_value' => array (\n\t\t\t\t0 => 'normal',\n\t\t\t),\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_1olor9azza',\n\t\t\t'label' => 'Arrows Position',\n\t\t\t'name' => 'arrows_position',\n\t\t\t'type' => 'select',\n\t\t\t'required' => 0,\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e6f3d49fc',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'carousel'\n\t\t\t\t\t),\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_arr28ff659a',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'custom'\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t),\n\t\t\t'wrapper' => array (\n\t\t\t\t'width' => '33'\n\t\t\t),\n\t\t\t'choices' => array (\n\t\t\t\t'within' => 'Within Row',\n\t\t\t\t'out' => 'Out of Row'\n\t\t\t),\n\t\t\t'default_value' => array (\n\t\t\t\t0 => 'within',\n\t\t\t)\n\t\t),\n\t\tarray (\n\t\t\t'key' => $id . '_lor8a49e2',\n\t\t\t'label' => 'Arrows Color',\n\t\t\t'name' => 'arrows_color',\n\t\t\t'type' => 'rgba_color',\n\t\t\t'required' => 0,\n\t\t\t'conditional_logic' => array (\n\t\t\t\tarray (\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_5821e6f3d49fc',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'carousel'\n\t\t\t\t\t),\n\t\t\t\t\tarray (\n\t\t\t\t\t\t'field' => $id . '_arr28ff659a',\n\t\t\t\t\t\t'operator' => '==',\n\t\t\t\t\t\t'value' => 'custom'\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t),\n\t\t\t'wrapper' => array (\n\t\t\t\t'width' => '33'\n\t\t\t),\n\t\t\t'rgba' => 'rgba(255,255,255,1)',\n\t\t\t'return_value' => 0\n\t\t),\n\n\n\t\tarray (\n\t\t\t'key' => $id . '_4821d6ba6de39',\n\t\t\t'label' => 'Background',\n\t\t\t'name' => 'Background_Options_0',\n\t\t\t'type' => 'tab',\n\t\t\t'required' => 0\n\t\t),\n\n\t\tarray (\n\t\t\t'key' => $id . '_4821t6ba6ze48',\n\t\t\t'label' => 'Background',\n\t\t\t'name' => 'background',\n\t\t\t'type' => 'clone',\n\t\t\t'required' => 0,\n\t\t\t'clone' => array (\n\t\t\t\t0 => 'bgrd_59930ca194830',\n\t\t\t),\n\t\t\t'display' => 'group',\n\t\t\t'layout' => 'block',\n\t\t\t'prefix_label' => 0,\n\t\t\t'prefix_name' => 0,\n\t\t),\n\t);\n}", "private function getFields()\n {\n return [\n [\n \"field_type\" => \"text\",\n \"field_name\" => \"first_name\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n [\n \"field_type\" => \"text\",\n \"field_name\" => \"last_name\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n [\n \"field_type\" => \"checkbox\",\n \"field_name\" => \"happy\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n [\n \"field_type\" => \"select\",\n \"field_name\" => \"character\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => [\n [\"value\" => \"biff\", \"label\" => \"Biff\"],\n [\"value\" => \"marty\", \"label\" => \"Marty\"],\n [\"value\" => \"doc\", \"label\" => \"Doc Brown\"],\n [\"value\" => \"jennifer\", \"label\" => \"Jennifer\"],\n [\"value\" => \"needles\", \"label\" => \"Needles\"],\n ]\n ],\n [\n \"field_type\" => \"checkbox\",\n \"field_name\" => \"kids\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n ];\n }", "function fGetListValues(&$db, $sql, $pTip=1 )\n{\n $values = false;\n $db->query($sql);\n if ($db->next_record())\n {\n $alMeta=$db->metadata();\n $j=$db->num_fields();\n $ilRow=0;\n do\n {\n for ($i=0; $i<$j; $i++){\n $slCampo=$alMeta[$i]['name'];\n if($pTip==2) $key=$db->Record[0];\n else $key=$i;\n $values[$key][$slCampo] = $db->f($slCampo);\n }\n } while ($db->next_record());\n }\n// print_r($values);\n// die();\n return $values;\n}", "public function getListFields();", "public function getDataListByField(string $field_name)\n {\n switch ($field_name) {\n case 'PostalCode': return $this -> get_postal_code_list(); break;\n case 'City': return $this -> generate_city_value_list(); break;\n }\n }", "public function providerFieldValues()\n {\n return [\n ['non_existent_field', []],\n ['empty_field', []],\n ['empty_field_2', []],\n [\n 'acf_value_field',\n [\n ['test-1' => 'test 1'],\n ['test-1' => 'test 2'],\n ['test-1' => 'test 3'],\n ],\n ],\n [\n 'acf_option_field',\n [\n [\n 'label' => 'test 1',\n 'slug' => 'test-1',\n ],\n [\n 'label' => 'test 2',\n 'slug' => 'test-2',\n ],\n ],\n ],\n ];\n }", "private static function show_options_for_get_values_field( $form_fields, $field = array() )\n {\n }", "function make_form_row(){\n\t\tswitch($this->fieldType){\n\t\t\tcase 'id':\n\t\t\t\treturn $this->obo_id();\n\t\t\t\tbreak;\n\t\t\tcase 'term':\n\t\t\t\treturn $this->obo_term();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$form = parent::make_form_row();\n\t\t\n\t\t}\n\t\treturn $form;\n\t\n\t}", "public function makeFieldList() {}", "function addFieldRow($colName,$colLabel,$colValue) {\n global $theme, $app_list_strings;\n \n static $operator_options;\n if (empty($operator_options)) {\n $operator_options= get_select_options_with_id($app_list_strings['merge_operators_dom'],'');\n }\n\n $LBL_REMOVE = translate('LBL_REMOVE');\n $deleteInlineImage = SugarThemeRegistry::current()->getImageURL('delete_inline.gif');\n $snippet=<<<EOQ\n <span id=filter_{$colName} style='visibility:visible' value=\"{$colLabel}\" valueId=\"{$colName}\">\n <table width='100%' border='0' cellpadding='0'>\n <tr>\n <td width='2%'><a class=\"listViewTdToolsS1\" href=\"javascript:remove_filter('filter_{$colName}')\"><!--not_in_theme!--><img src='{$deleteInlineImage}' align='absmiddle' alt='{$LBL_REMOVE}' border='0' height='12' width='12'>&nbsp;</a></td>\n <td width='20%'>{$colLabel}:&nbsp;</td>\n <td width='10%'><select name='{$colName}SearchType'>{$operator_options}</select></td>\n <td width='68%'><input value=\"{$colValue}\" id=\"{$colName}SearchField\" name=\"{$colName}SearchField\" type=\"text\"></td> \n </tr> \n </table>\n </span>\nEOQ;\n\n return $snippet;\n}", "function getFields();", "public function fetchFields();", "public function getFieldsList(){\n return $this->_get(1);\n }", "function nkf_base_rows_from_field_collection(&$vars, $field_array) {\n $vars['rows'] = array();\n foreach($vars['element']['#items'] as $key => $item) {\n $entity_id = $item['value'];\n $entity = field_collection_item_load($entity_id);\n $wrapper = entity_metadata_wrapper('field_collection_item', $entity);\n $row = array();\n foreach($field_array as $field) {\n $info = $wrapper->$field->info();\n $type = $info['type'];\n $field_value = $wrapper->$field->value();\n switch ($type) {\n case 'text_formatted':\n $value = $wrapper->$field->value->value();\n break;\n case 'field_item_image':\n if (isset($field_value)) {\n $build = array(\n '#theme' => 'image',\n '#path' => $field_value['uri'],\n '#url' => nkf_base_image_url($field_value['uri'], 'large'),\n '#alt' => $field_value['alt'],\n '#title' => $field_value['title'],\n //'#width' => $field_value['width'],\n //'#height' => $field_value['height'],\n );\n $value = $build;\n } else {\n $value = null;\n }\n break;\n default:\n $value = isset($field_value) ? $wrapper->$field->value() : null;\n\n }\n $row[$field] = $value;\n }\n $vars['rows'][] = $row;\n }\n}", "function getOptionValues() {\t\t\n\t\t$optionvaluesquery = \"SELECT lv.lookuptypevalue as optiontext, lv.lookuptypevalue as optionvalue FROM lookuptype AS l , \n\t\tlookuptypevalue AS lv WHERE l.id = lv.lookuptypeid AND l.name ='\".$this->getName().\"' ORDER BY optiontext \";\n\t\treturn getOptionValuesFromDatabaseQuery($optionvaluesquery);\n\t}", "public function getFieldList()\n {\n $sObjectName = $this->getShopObjectName();\n\n if ($sObjectName) {\n $oShopObject = oxNew($sObjectName);\n } else {\n $oShopObject = oxNew('oxbase');\n $oShopObject->init($this->getTableName());\n }\n\n if ($oShopObject instanceof oxI18n) {\n $oShopObject->setLanguage(0);\n $oShopObject->setEnableMultilang(false);\n }\n\n $sViewName = $oShopObject->getViewName();\n $sFields = str_ireplace('`' . $sViewName . \"`.\", \"\", strtoupper($oShopObject->getSelectFields()));\n $sFields = str_ireplace(array(\" \", \"`\"), array(\"\", \"\"), $sFields);\n $this->_aFieldList = explode(\",\", $sFields);\n\n return $this->_aFieldList;\n }", "private static function fields()\n {\n $fields = static::$fields;\n $primary_key = static::$primary_key;\n\n $rows = [$primary_key, ...$fields];\n\n if(!count($rows)) {\n return ['*'];\n }\n\n return $rows;\n }", "function get_field_list()\n\t{\n\t\t$fields = array();\n\n\n\t\t$this->xhr_output($fields);\n\t}", "function load_value( $value, $post_id, $field ) {\n\t\t\n\t\t// bail early if no value\n\t\tif( empty($value) ) return false;\n\t\t\n\t\t\n\t\t// bail ealry if not numeric\n\t\tif( !is_numeric($value) ) return false;\n\t\t\n\t\t\n\t\t// bail early if no sub fields\n\t\tif( empty($field['sub_fields']) ) return false;\n\t\t\n\t\t\n\t\t// vars\n\t\t$value = intval($value);\n\t\t$rows = array();\n\t\t\n\t\t\n\t\t// loop\n\t\tfor( $i = 0; $i < $value; $i++ ) {\n\t\t\t\n\t\t\t// create empty array\n\t\t\t$rows[ $i ] = array();\n\t\t\t\n\t\t\t\n\t\t\t// loop through sub fields\n\t\t\tforeach( array_keys($field['sub_fields']) as $j ) {\n\t\t\t\t\n\t\t\t\t// get sub field\n\t\t\t\t$sub_field = $field['sub_fields'][ $j ];\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// bail ealry if no name (tab)\n\t\t\t\tif( acf_is_empty($sub_field['name']) ) continue;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// update $sub_field name\n\t\t\t\t$sub_field['name'] = \"{$field['name']}_{$i}_{$sub_field['name']}\";\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// get value\n\t\t\t\t$sub_value = acf_get_value( $post_id, $sub_field );\n\t\t\t\n\t\t\t\n\t\t\t\t// add value\n\t\t\t\t$rows[ $i ][ $sub_field['key'] ] = $sub_value;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t// return\n\t\treturn $rows;\n\t\t\n\t}", "public function getFieldValues()\n {\n if($this->isNewRecord){\n return []; //TODO: LOAD DEFAULT FIELDS OF TYPE\n }\n\n //pull meta values from DB\n $table = self::tablePrefix().'cms_post_field';\n $strSql = \"SELECT id, field_id, value \n\t\t\t\t\tFROM {$table}\n\t\t\t\t\tWHERE post_id = :pid\n\t\t\t\t \";\n $cmd = self::getDb()->createCommand($strSql);\n $cmd->bindValue(\":pid\",$this->id,\\PDO::PARAM_STR);\n $arrResults = $cmd->queryAll();\n\n return ArrayHelper::index($arrResults, 'id', 'field_id');\n }", "public function GetPickListFields(Vtiger_Request $request)\n\t{\n\t\t$module = $request->get('sourceModule');\n\n\t\t$fieldList = Settings_PickListDependency_Module_Model::getAvailablePicklists($module);\n\n\t\t$response = new Vtiger_Response();\n\t\t$response->setResult($fieldList);\n\t\t$response->emit();\n\t}", "function getFieldOptions($table, $keyField, $labelField) {\n $query = db_select($table, 'tbl');\n $query->addField('tbl', $keyField, 'key_field');\n $query->addField('tbl', $labelField, 'label');\n return $query->execute()->fetchAllKeyed();\n }", "public function fields()\n {\n $series = [];\n for ($i = 1; $i <= 110; $i++) {\n $name = \"第${i}集\";\n $series[$name] = $name;\n }\n return [\n Select::make('剧集', 'name')\n ->options($series)\n ->withMeta([\n 'value' => '第1集',\n 'extraAttributes' => [\n 'placeholder' => '第几集...'],\n ]),\n Text::make(\"播放地址\", 'url', )->withMeta(['extraAttributes' => [\n 'placeholder' => '目前仅支持m3u8播放地址'],\n ]),\n Select::make(\"是否完成求片处理\", 'fixed')->options([\n 0 => '否',\n 1 => '是',\n ])\n ->withMeta(['value' => 0])\n ->displayUsingLabels(),\n ];\n }", "protected function selectRowByField($field)\n {\n return collect($field)\n ->only($this->tableFields())\n ->toArray();\n }", "function FillDynamicCombo($query,$datafield,$textfield,$selectvalue) {\n\n\t $model=new Model;\n\t\t$rs =$model->find_query_all($query);\n\t\t$i=1;\n\t\t$selectvalue1=\"\";\n if(count($rs)>0){\n\t\tforeach($rs as $row){\n\t\t if($i==1)\n\t\t $selectvalue1=$row->$datafield;\n\t\t \n\t\t if($selectvalue==$row->$datafield){\n\t\t\t echo\"<option value='\".$row->$datafield.\"' selected>\".$row->$textfield.\"</option>\";\n\t\t\t $selectvalue1=$selectvalue;\n\t\t\t}\n\t\t else {\n\t\t\techo\"<option value='\".$row->$datafield.\"'>\".$row->$textfield.\"</option>\";\n\t\t }\n\t\t $i++;\n\t\t }\n\t\t}\n\t\t return $selectvalue1;\n\t}", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getValuesList(){\n return $this->_get(1);\n }", "public function getFormFields() {\n $fields = array(\n 'shapes[]' => array(\n 'type' => 'select',\n 'multiplicate' => '5',\n 'values' => array(\n '-' => '-',\n 'cube' => 'cube',\n 'round' => 'round',\n )\n ),\n 'width[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Width'\n ),\n 'higth[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Higth'\n ),\n 'x_position[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'X position'\n ),\n 'y_position[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Y position'\n ),\n 'red[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Color red',\n ),\n 'green[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Color green',\n ),\n 'blue[]' => array(\n 'type' => 'text',\n 'multiplicate' => '5',\n 'label' => 'Color blue',\n ),\n 'size[]' => array(\n 'type' => 'text',\n 'multiplicate' => '1',\n 'label' => 'Size holst'\n ),\n 'enable[]' => array(\n 'type' => 'checkbox',\n 'multiplicate' => '5',\n 'label' => 'enable'\n )\n );\n return $fields;\n }", "public function getListValues(string $listFieldName): array;", "public function getAllFields() {\n\t\t\t// Database Connection\n\t\t\t$db\t\t\t\t= $GLOBALS['db_q'];\n\t\t\t// Initialize variables\n\t\t\t$return\t\t\t= false;\n\t\t\t// Query set up\t\n\t\t\t$table\t\t\t= 'tb_field';\n\t\t\t$select_what\t= 'id, vc_field AS vc_name';\n\t\t\t$conditions\t\t= \"1 ORDER BY vc_field ASC\";\n\t\t\t$return\t\t\t= $db->getAllRows_Arr($table, $select_what, $conditions);\n\t\t\t// Return\n\t\t\treturn $return;\n\t\t}", "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}", "function field_data()\r\n\t{\r\n\t\t$retval = array();\r\n /*\r\n echo \"<pre>\";\r\n var_dump($this->result_id);\r\n var_dump($this->pdo_results);\r\n echo \"</pre>\";\r\n */\r\n $table_info = $this->pdo_results;\r\n assert(is_array($table_info));\r\n foreach ($table_info as $row_info) {\r\n $F = new stdClass();\r\n $F->name = $row_info['name'];\r\n $F->type = $row_info['type'];\r\n $F->default = $row_info['dflt_value'];\r\n $F->max_length = 0;\r\n $F->primary_key = $row_info['pk'];\r\n \r\n $retval[] = $F;\r\n }\r\n\r\n return $retval;\r\n }", "function addRowsOptionValue(&$rows, &$rowNumber, $customLabel, $customField) {\n if ($this->_optionGroupId == 0) {\n $apiParams = array(\n 'version' => 3,\n 'custom_group_id' => $this->_customGroupId,\n 'label' => $customLabel\n );\n $apiCustomField = civicrm_api('CustomField', 'Getsingle', $apiParams);\n if (!isset($apiCustomField['is_error']) || $apiCustomField['is_error'] == 0) {\n if (isset($apiCustomField['option_group_id'])) {\n $this->_optionGroupId = $apiCustomField['option_group_id'];\n }\n }\n }\n $apiParams = array(\n 'version' => 3,\n 'option_group_id' => $this->_optionGroupId\n );\n $apiOptionValues = civicrm_api('OptionValue', 'Get', $apiParams);\n if ($apiOptionValues['is_error'] == 0) {\n foreach($apiOptionValues['values'] as $optionValueId => $apiOptionValue) {\n /*\n * Calculate number of contacts in econ_status, only print if any\n */\n $aantalIn = $this->calculateAantalInContacts($apiOptionValue['label'], $customField);\n if ($aantalIn > 0) {\n $rows[$rowNumber]['label'] = ts($apiOptionValue['label']);\n $rows[$rowNumber]['aantal'] = $aantalIn;\n $rows[$rowNumber]['percentage'] = CRM_Utils_HilreportsUtils::calculatePercentage($aantalIn, $this->_aantalContacts).\"%\";\n $rowNumber++;\n $this->_aantalRijen++;\n }\n }\n /*\n * last time for none\n */\n $aantalIn = $this->calculateAantalInContacts('none', $customField);\n if ($aantalIn > 0) {\n $rows[$rowNumber]['label'] = 'Onbekend';\n $rows[$rowNumber]['aantal'] = $aantalIn;\n $rows[$rowNumber]['percentage'] = CRM_Utils_HilreportsUtils::calculatePercentage($aantalIn, $this->_aantalContacts).\"%\";\n $rowNumber++;\n $this->_aantalRijen++;\n }\n }\n }", "public function createDataRow()\n\t{\n\t\t$row = array() ;\n\t\tforeach( $this->values as $field=>$value )\n\t\t{\n\t\t\t$row[$field] = $this->$field ;\n\t\t}\n\t\treturn $row ;\n\t}", "function getValueFromField()\r\n\t{\r\n\t\treturn $this->row[ key( $this->mapping ) ];\r\n\t}", "function getvalMultiple($con,$table,$field,$where,$space)\n{\n\tif($where != \"\")\n\t $sql = \"select $field from $table where $where\";\n\telse\n\t $sql = \"select $field from $table\";\n\t \n\t//echo $sql;\n\t$getvalue = mysqli_query($con,$sql);\n\t$getval=\"\";\n\twhile($row = mysqli_fetch_row($getvalue))\n\t{\n\t\tif($getval == \"\")\n\t\t$getval = $row[0];\n\t\telse\n\t\t{\n\t\t\tif($space==true)\n\t\t\t$getval .= \", \". $row[0];\n\t\t\telse\n\t\t\t$getval .= \",\". $row[0];\n\t\t}\n\t}\n\treturn $getval;\n}", "function getValueFromField()\n {\n return $this->current_row[ key( $this->mapping ) ];\n }", "function field_data()\n\t{\n\t\t$retval = array();\n\t\twhile ($field = mysqli_fetch_field($this->result_id))\n\t\t{\n\t\t\t$F\t\t\t\t= new stdClass();\n\t\t\t$F->name\t\t= $field->name;\n\t\t\t$F->type\t\t= $field->type;\n\t\t\t$F->default\t\t= $field->def;\n\t\t\t$F->max_length\t= $field->max_length;\n\t\t\t$F->primary_key = ($field->flags & MYSQLI_PRI_KEY_FLAG) ? 1 : 0;\n\n\t\t\t$retval[] = $F;\n\t\t}\n\n\t\treturn $retval;\n\t}", "public function getDropDownListData($field)\n {\n switch ($field)\n {\n case 'item_name':\n return ArrayHelper::map(AuthItem::find()->all(),'name','description');\n case 'user_id':\n return ArrayHelper::map(User::find()->all(),'id','username');\n //put more fields need to be mapped.\n \n default:\n return [];\n }\n }", "public function fetch_fields() {}", "public function aggregateListRowValues()\n\t{\n\t}", "public function aggregateListRowValues()\n\t{\n\t}", "function LoadRowValues(&$rs) {\n\tglobal $dpp_proveedores;\n\t$dpp_proveedores->provee_id->setDbValue($rs->fields('provee_id'));\n\t$dpp_proveedores->provee_rut->setDbValue($rs->fields('provee_rut'));\n\t$dpp_proveedores->provee_dig->setDbValue($rs->fields('provee_dig'));\n\t$dpp_proveedores->provee_cat_juri->setDbValue($rs->fields('provee_cat_juri'));\n\t$dpp_proveedores->provee_nombre->setDbValue($rs->fields('provee_nombre'));\n\t$dpp_proveedores->provee_paterno->setDbValue($rs->fields('provee_paterno'));\n\t$dpp_proveedores->provee_materno->setDbValue($rs->fields('provee_materno'));\n\t$dpp_proveedores->provee_dir->setDbValue($rs->fields('provee_dir'));\n\t$dpp_proveedores->provee_fono->setDbValue($rs->fields('provee_fono'));\n}", "function LoadListRowValues(&$rs) {\n\t\t$this->IDXDAFTAR->setDbValue($rs->fields('IDXDAFTAR'));\n\t\t$this->TGLREG->setDbValue($rs->fields('TGLREG'));\n\t\t$this->NOMR->setDbValue($rs->fields('NOMR'));\n\t\t$this->KETERANGAN->setDbValue($rs->fields('KETERANGAN'));\n\t\t$this->NOKARTU_BPJS->setDbValue($rs->fields('NOKARTU_BPJS'));\n\t\t$this->NOKTP->setDbValue($rs->fields('NOKTP'));\n\t\t$this->KDDOKTER->setDbValue($rs->fields('KDDOKTER'));\n\t\t$this->KDPOLY->setDbValue($rs->fields('KDPOLY'));\n\t\t$this->KDRUJUK->setDbValue($rs->fields('KDRUJUK'));\n\t\t$this->KDCARABAYAR->setDbValue($rs->fields('KDCARABAYAR'));\n\t\t$this->NOJAMINAN->setDbValue($rs->fields('NOJAMINAN'));\n\t\t$this->SHIFT->setDbValue($rs->fields('SHIFT'));\n\t\t$this->STATUS->setDbValue($rs->fields('STATUS'));\n\t\t$this->KETERANGAN_STATUS->setDbValue($rs->fields('KETERANGAN_STATUS'));\n\t\t$this->PASIENBARU->setDbValue($rs->fields('PASIENBARU'));\n\t\t$this->NIP->setDbValue($rs->fields('NIP'));\n\t\t$this->MASUKPOLY->setDbValue($rs->fields('MASUKPOLY'));\n\t\t$this->KELUARPOLY->setDbValue($rs->fields('KELUARPOLY'));\n\t\t$this->KETRUJUK->setDbValue($rs->fields('KETRUJUK'));\n\t\t$this->KETBAYAR->setDbValue($rs->fields('KETBAYAR'));\n\t\t$this->PENANGGUNGJAWAB_NAMA->setDbValue($rs->fields('PENANGGUNGJAWAB_NAMA'));\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->setDbValue($rs->fields('PENANGGUNGJAWAB_HUBUNGAN'));\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->setDbValue($rs->fields('PENANGGUNGJAWAB_ALAMAT'));\n\t\t$this->PENANGGUNGJAWAB_PHONE->setDbValue($rs->fields('PENANGGUNGJAWAB_PHONE'));\n\t\t$this->JAMREG->setDbValue($rs->fields('JAMREG'));\n\t\t$this->BATAL->setDbValue($rs->fields('BATAL'));\n\t\t$this->NO_SJP->setDbValue($rs->fields('NO_SJP'));\n\t\t$this->NO_PESERTA->setDbValue($rs->fields('NO_PESERTA'));\n\t\t$this->NOKARTU->setDbValue($rs->fields('NOKARTU'));\n\t\t$this->TANGGAL_SEP->setDbValue($rs->fields('TANGGAL_SEP'));\n\t\t$this->TANGGALRUJUK_SEP->setDbValue($rs->fields('TANGGALRUJUK_SEP'));\n\t\t$this->KELASRAWAT_SEP->setDbValue($rs->fields('KELASRAWAT_SEP'));\n\t\t$this->MINTA_RUJUKAN->setDbValue($rs->fields('MINTA_RUJUKAN'));\n\t\t$this->NORUJUKAN_SEP->setDbValue($rs->fields('NORUJUKAN_SEP'));\n\t\t$this->PPKRUJUKANASAL_SEP->setDbValue($rs->fields('PPKRUJUKANASAL_SEP'));\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->setDbValue($rs->fields('NAMAPPKRUJUKANASAL_SEP'));\n\t\t$this->PPKPELAYANAN_SEP->setDbValue($rs->fields('PPKPELAYANAN_SEP'));\n\t\t$this->JENISPERAWATAN_SEP->setDbValue($rs->fields('JENISPERAWATAN_SEP'));\n\t\t$this->CATATAN_SEP->setDbValue($rs->fields('CATATAN_SEP'));\n\t\t$this->DIAGNOSAAWAL_SEP->setDbValue($rs->fields('DIAGNOSAAWAL_SEP'));\n\t\t$this->NAMADIAGNOSA_SEP->setDbValue($rs->fields('NAMADIAGNOSA_SEP'));\n\t\t$this->LAKALANTAS_SEP->setDbValue($rs->fields('LAKALANTAS_SEP'));\n\t\t$this->LOKASILAKALANTAS->setDbValue($rs->fields('LOKASILAKALANTAS'));\n\t\t$this->USER->setDbValue($rs->fields('USER'));\n\t\t$this->tanggal->setDbValue($rs->fields('tanggal'));\n\t\t$this->bulan->setDbValue($rs->fields('bulan'));\n\t\t$this->tahun->setDbValue($rs->fields('tahun'));\n\t}", "public function getValues(ContentEntityInterface $entity, $field);", "function get_field_value_row_bits($field,$required=NULL,$default=NULL)\n\t{\n\t\tunset($field);\n\t\treturn array('short_unescaped',$default,'short');\n\t}", "public static function getValuesName($fieldName)\n\t{\n\t\tif (\\App\\Cache::has('Picklist::getValuesName', $fieldName)) {\n\t\t\treturn \\App\\Cache::get('Picklist::getValuesName', $fieldName);\n\t\t}\n\t\t$primaryKey = static::getPickListId($fieldName);\n\t\t$dataReader = (new \\App\\Db\\Query())->select([$primaryKey, $fieldName])\n\t\t\t->from(\"vtiger_$fieldName\")\n\t\t\t->orderBy('sortorderid')\n\t\t\t->createCommand()->query();\n\t\t$values = [];\n\t\twhile ($row = $dataReader->read()) {\n\t\t\t$values[$row[$primaryKey]] = \\App\\Purifier::decodeHtml(\\App\\Purifier::decodeHtml($row[$fieldName]));\n\t\t}\n\t\t\\App\\Cache::save('Picklist::getValuesName', $fieldName, $values);\n\t\treturn $values;\n\t}", "protected function getFieldOptions()\n {\n return explode(',', $this->option('fields'));\n }", "function getFieldObject($propertyList, $invalidFields) {\r\n\t#4 === Checkboxes\r\n\t#5 === Choose from a list\r\n\t$field_table_name\t= array('37' =>'mm_sics_codes' , '36'=>'mm_naics_codes' , '38'=>'mm_unspc_codes');\r\n\t$field_required = '';\r\n\t$field_required_symbol = '';\r\n\tif($propertyList['field_required'] == 'Y') {\r\n\t\t//$field_required = 'required';\r\n\t\t$field_required_symbol = '<span style=\"color:red\">*</span>';\r\n\t}\r\n\t\r\n\t$errorClass = '';\r\n\tif(!empty($invalidFields) && in_array($propertyList['field_id'], $invalidFields))\r\n\t\t$errorClass = \"has-error\";\r\n\t\r\n\t$errorClassRow = '';\r\n\tif($propertyList['field_type_id'] == '3' || $propertyList['field_type_id'] == '4') {\r\n\t\tif($errorClass != '')\r\n\t\t\t$errorClassRow = ' style=\"border:1px solid #ed5565; \" ';\r\n\t}\r\n\t\t\t\r\n\t$returnValue = '<div class=\"row '. $errorClass . '\">\r\n\t\t\t\t\t\t<div class=\"col-xs-3\">' . $propertyList['field_title'] . ' ' . $field_required_symbol . '</div>\r\n\t\t\t\t\t\t<div class=\"col-xs-7\" ' . $errorClassRow . '>\r\n\t\t\t\t\t';\t\r\n\t\r\n\tif($propertyList['field_type_id'] == '3') {\r\n\t\t//$returnValue .= '<div style=\"padding-left:10px; margin-top:5px;\" class=\"pull-left\"><b>' . $propertyList['field_title'] . '</b></div>';\r\n\t\tfor($i=0;$i<count($propertyList['options']); $i++) {\r\n\t\t\t$checked = '';\r\n\t\t\tif($propertyList['options'][$i]['option_id'] == $propertyList['field_value'])\r\n\t\t\t\t$checked = ' checked=\"checked\" ';\r\n\t\t\t\t\t\r\n\t\t\t$returnValue .= '<div style=\"padding-left:10px; margin-top:5px;\" class=\"pull-left\"><input type=\"radio\" name=\"field' . $propertyList['field_id'] . '_' . $propertyList['client_type_id'] .'\" style=\"height:15px;\" ' . $field_required . ' value=\"' . $propertyList['options'][$i]['option_id'] . '\" ' . $checked . '></div>' . \r\n\t\t\t\t\t\t\t'<div style=\"padding-left:10px; margin-top:5px;\" class=\"pull-left\">' . $propertyList['options'][$i]['option_desc'] . '</div>' ;\r\n\t\t}\r\n\t\t\r\n\t} else if( $propertyList['field_type_id'] == '4') {\r\n\t\t$field_required = '';\r\n\t\t//$returnValue .= '<div style=\"padding-left:10px\" class=\"pull-left\"><b>' . $propertyList['field_title'] . '</b></div>';\r\n\t\t$temp = explode(\",\", $propertyList['field_value']);\r\n\t\tfor($i=0;$i<count($propertyList['options']); $i++) {\r\n\t\t\t$checked = '';\r\n\t\t\tif(in_array($propertyList['options'][$i]['option_id'],$temp))\r\n\t\t\t\t$checked = ' checked=\"checked\" ';\r\n\t\t\t\t\r\n\t\t\t$returnValue .= '<div style=\"padding-left:10px;\" class=\"pull-left\"><input type=\"checkbox\" name=\"field' . $propertyList['field_id'] . '_' . $propertyList['client_type_id'] .'[]\" ' . $field_required . ' value=\"' . $propertyList['options'][$i]['option_id'] . '\" ' . $checked . '></div>' . \r\n\t\t\t\t\t\t\t'<div style=\"padding-left:10px\" class=\"pull-left\">' . $propertyList['options'][$i]['option_desc'] . '</div>' ;\r\n\t\t}\r\n\t} else if( $propertyList['field_type_id'] == '5') {\r\n\t\t$returnValue .= '<select name=\"field' . $propertyList['field_id'] . '_' . $propertyList['client_type_id'] .'\" ' . $field_required . ' class=\"form-control\">';\r\n\t\t$returnValue .= '<option value=\"\">Select</option>';\t\t\t\r\n\t\tfor($i=0;$i<count($propertyList['options']); $i++) {\r\n\t\t\t$selected = '';\r\n\t\t\tif($propertyList['options'][$i]['option_id'] == $propertyList['field_value'])\r\n\t\t\t\t$selected = ' selected=\"selected\" ';\r\n\t\t\t\t\r\n\t\t\t$returnValue .= '<option value=\"' . $propertyList['options'][$i]['option_id'] . '\" ' . $selected . '>' . $propertyList['options'][$i]['option_desc'] . '</option>';\r\n\t\t}\r\n\t\t$returnValue .= '</select>';\r\n\t} else if( $propertyList['field_type_id'] == '9') // Email\r\n\t\t$returnValue .= '<input readonly=\"readonly\" type=\"text\" class=\"form-control\" \" value=\"' . $propertyList['field_value'] . '\" >';\t\t \r\n\telse if( $propertyList['field_type_id'] == '2') // Paragraph / Textarea - only in about me rest 4000 varchar 2 \r\n\t\t$returnValue .= '<textarea name=\"field' . $propertyList['field_id'] . '_' . $propertyList['client_type_id'] . '\" ' . $field_required . ' class=\"form-control\" placeholder=\"' . $propertyList['field_title'] . '\" onkeyup=\"validateFieldLength(this, \\'' . $propertyList['field_validate_id'] . '\\', \\'' . $propertyList['field_length'] . '\\')\">' . $propertyList['field_value'] . '</textarea>';\r\n\telse if( $propertyList['field_type_id'] == '7') // Date\r\n\t\t$returnValue .= '<input name=\"field' . $propertyList['field_id'] . '_' . $propertyList['client_type_id'] . '\" ' . $field_required . ' type=\"text\" class=\"form-control\" placeholder=\"' . $propertyList['field_title'] . '\" value=\"' . $propertyList['field_value'] . '\" onblur=\"validateDateField(this)\" maxlength=\"10\" data-mask=\"99/99/9999\">';\r\n\telse\r\n\t\t$returnValue .= '<input name=\"field' . $propertyList['field_id'] . '_' . $propertyList['client_type_id'] . '\" ' . $field_required . ' type=\"' . $propertyList['field_type_name'] . '\" class=\"form-control\" placeholder=\"' . $propertyList['field_title'] . '\" value=\"' . $propertyList['field_value'] . '\" onkeyup=\"validateFieldLength(this, \\'' . $propertyList['field_validate_id'] . '\\', \\'' . $propertyList['field_length'] . '\\')\" maxlength=\"' . $propertyList['field_length'] .'\">';\r\n\t\r\n\tif( $propertyList['field_type_id'] != '9') {\r\n\t\t$returnValue .= '<input type=\"hidden\" name=\"form_fields[]\" value=\"' . $propertyList['field_name'] . '\">';\r\n\t\t$returnValue .= '<input type=\"hidden\" name=\"form_field_titles[]\" value=\"' . $propertyList['field_title'] . '\">';\r\n\t\t$returnValue .= '<input type=\"hidden\" name=\"form_field_details[]\" value=\"' . $propertyList['field_id'] . ',' . $propertyList['field_required'] . ',' . $propertyList['field_type_id'] . ',' . $propertyList['client_type_id'] .'\">';\r\n\t}\r\n\t\r\n\t$returnValue .= '</div>';\r\n\tif( $propertyList['field_type_id'] == '2') {\r\n\t\t$returnValue.='<div class=\"col-xs-2\"><a data-target=\"#mymodal\" data-toggle=\"modal\" href=\"#\" value=\"'.$field_table_name[$propertyList['field_id']].'\"><i class=\"fa fa-plus\" style=\"color:#737373;\"></i>&nbsp;Add</a></div>';\r\n\t}\r\n\t$returnValue.='</div>';\r\n\t\r\n\treturn $returnValue;\r\n\t//<input type=\"<?=$mm_client_fields[$i]['field_type_name']? >\" class=\"form-control\" placeholder=\"<?=$mm_client_fields[$i]['field_title']? >\">\r\n}", "public function select($field);", "public static function fieldDetails($field = null)\n {\n $_items = array(\n 'id' => array(\n 'name' => 'id',\n 'label' => 'ID',\n 'controlType' => 'text',\n 'type' => 'numeric',\n 'primary' => true,\n 'editable' => false,\n 'hidden' => false,\n ),\n 'event_id' => array(\n 'name' => 'event_id',\n 'label' => 'Event ID',\n 'controlType' => 'text',\n 'type' => 'numeric',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'event_start' => array(\n 'name' => 'event_start',\n 'label' => 'Event Start',\n 'controlType' => 'datetime',\n 'type' => 'datetime',\n 'format' => 'yyyy-mm-dd hh:ii',\n 'viewformat' => 'mm/dd/yyyy HH:ii P',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'arena' => array(\n 'name' => 'arena',\n 'label' => 'Arena',\n 'controlType' => 'text',\n 'type' => 'alpha',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'arena_id' => array(\n 'name' => 'arena_id',\n 'label' => 'Arena ID',\n 'controlType' => 'text',\n 'type' => 'numeric',\n 'editable' => false,\n 'hidden' => true,\n ),\n 'location' => array(\n 'name' => 'location',\n 'label' => 'Location',\n 'controlType' => 'text',\n 'type' => 'alpha',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'location_id' => array(\n 'name' => 'location_id',\n 'label' => 'Location ID',\n 'controlType' => 'text',\n 'type' => 'numeric',\n 'editable' => false,\n 'hidden' => true,\n ),\n 'created_on' => array(\n 'name' => 'created_on',\n 'label' => 'Requested On',\n 'controlType' => 'datetime',\n 'type' => 'datetime',\n 'format' => 'yyyy-mm-dd hh:ii',\n 'viewformat' => 'mm/dd/yyyy HH:ii P',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'requester_id' => array(\n 'name' => 'requester_id',\n 'label' => 'Requested By',\n 'controlType' => 'select',\n 'type' => 'alpha',\n 'editable' => false,\n 'hidden' => true,\n ),\n 'requester_name' => array(\n 'name' => 'requester_name',\n 'label' => 'Requested By',\n 'controlType' => 'text',\n 'type' => 'alpha',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'requester_email' => array(\n 'name' => 'requester_email',\n 'label' => 'Requester E-mail',\n 'controlType' => 'text',\n 'type' => 'alpha',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'requester_phone' => array(\n 'name' => 'requester_phone',\n 'label' => 'Requester Phone',\n 'controlType' => 'text',\n 'type' => 'alpha',\n 'editable' => false,\n 'hidden' => false,\n 'inputmask' => array(\n 'mask' => '(999) 999-9999'\n )\n ),\n 'acknowledger' => array(\n 'name' => 'acknowledger',\n 'label' => 'Acknowledged By',\n 'controlType' => 'text',\n 'type' => 'alpha',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'acknowledged_on' => array(\n 'name' => 'acknowledged_on',\n 'label' => 'Acknowledged On',\n 'controlType' => 'datetime',\n 'type' => 'datetime',\n 'format' => 'yyyy-mm-dd hh:ii',\n 'viewformat' => 'mm/dd/yyyy HH:ii P',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'accepter' => array(\n 'name' => 'accepter',\n 'label' => 'Accepted By',\n 'controlType' => 'text',\n 'type' => 'alpha',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'accepted_on' => array(\n 'name' => 'accepted_on',\n 'label' => 'Accepted On',\n 'controlType' => 'datetime',\n 'type' => 'datetime',\n 'format' => 'yyyy-mm-dd hh:ii',\n 'viewformat' => 'mm/dd/yyyy HH:ii P',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'rejector' => array(\n 'name' => 'rejector',\n 'label' => 'Rejected By',\n 'controlType' => 'text',\n 'type' => 'alpha',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'rejected_on' => array(\n 'name' => 'rejected_on',\n 'label' => 'Rejected On',\n 'controlType' => 'datetime',\n 'type' => 'datetime',\n 'format' => 'yyyy-mm-dd hh:ii',\n 'viewformat' => 'mm/dd/yyyy HH:ii P',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'rejected_reason' => array(\n 'name' => 'rejected_reason',\n 'label' => 'Rejection Reason',\n 'controlType' => 'textarea',\n 'type' => 'alpha',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'notes' => array(\n 'name' => 'notes',\n 'label' => 'Notes',\n 'controlType' => 'textarea',\n 'type' => 'alpha',\n 'editable' => true,\n 'hidden' => false,\n ),\n 'type_id' => array(\n 'name' => 'type_id',\n 'label' => 'Type',\n 'controlType' => 'select',\n 'type' => 'numeric',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'status_id' => array(\n 'name' => 'status_id',\n 'label' => 'Status',\n 'controlType' => 'select',\n 'type' => 'numeric',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'event_type_id' => array(\n 'name' => 'event_type_id',\n 'label' => 'Event Type',\n 'controlType' => 'select',\n 'type' => 'numeric',\n 'editable' => false,\n 'hidden' => false,\n ),\n 'event_status_id' => array(\n 'name' => 'event_status_id',\n 'label' => 'Event Status',\n 'controlType' => 'select',\n 'type' => 'alpha',\n 'editable' => false,\n 'hidden' => false,\n ),\n );\n \n if(isset($field)) {\n return isset($_items[$field]) ? $_items[$field] : false;\n } else {\n return $_items;\n }\n }", "function make_form_row(){\n\t\t$index = $this->col_index;\n\t\t# remove the * at the start of the first line\n\t\t$this->col_data = preg_replace(\"/^\\*/\",\"\",$this->col_data);\n\t\t# split the lines and remove the * from each. The value in each line goes into the array $values\n\t\t$values = preg_split(\"/\\n\\*?/\", $this->col_data);\n\t\t# pad the values array to make sure there are 3 entries\n\t\t$values = array_pad($values, 3, \"\");\n\t\t\n\t\t/*\n\t\tmake three input boxes. TableEdit takes row input from an input array named field a \n\t\tvalue for a particular field[$index] can be an array\n\t\t\tfield[$index][] is the field name\n\t\t\t40 is the length of the box\n\t\t\t$value is the value for the ith line\n\t\t \n\t\t */\n\t\t $form = ''; #initialize\n\t\t foreach($values as $i => $value){\n\t\t\t$form .= \"$i:\".XML::input(\"field[$index][]\",40,$value, array('maxlength'=>255)).\"<br>\\n\";\n\t\t}\n\t\treturn $form;\n\t\n\t}", "public function select($fields);", "public function getValues();", "function _getFieldLabels($fieldName,$fieldOptions){\n\n\t\t$fieldOptions= \"'\".implode(\"','\",$fieldOptions).\"'\";\n\t\t$SQLquery = \"SELECT `\"\n\t\t\t\t\t.$this->labelValues[$fieldName]['tableKey'].\"` AS pkey\".\n\t\t\t\t\t\", `\"\n\t\t\t\t\t.$this->labelValues[$fieldName]['tableValue'].\"` AS value \".\n\t\t\t\t\t\"FROM `\"\n\t\t\t\t\t.$this->labelValues[$fieldName]['tableName'].\"` \".\n\t\t\t\t\t\"WHERE `\".$this->labelValues[$fieldName]['tableKey'].\"` IN(\".$fieldOptions.\")\";\n\n\t\t$retrievedData = $this->db->execute($SQLquery);\n\t\tif($this->db->error != \"\"){\n\t\t\techo \"ERROR: Unable to retrieve field labels from '\".$this->labelValues[$fieldName]['tableName'].\"'.\".($this->db_errors?\"<br/>\".$this->db->error:\"\");\n\t\t\treturn false;\n\t\t}\n\n\t\tforeach($retrievedData as $set){\n\n\t\t\t$this->labelValues[$fieldName][$set['pkey']] = $set['value'];\n\n\t\t}\n\n\t}", "public static function getNonEditableValues($fieldName)\n\t{\n\t\tif (\\App\\Cache::has('Picklist::getNonEditableValues', $fieldName)) {\n\t\t\treturn \\App\\Cache::get('Picklist::getNonEditableValues', $fieldName);\n\t\t}\n\t\t$primaryKey = static::getPickListId($fieldName);\n\t\t$dataReader = (new \\App\\Db\\Query())->select([$primaryKey, $fieldName])\n\t\t\t->from(\"vtiger_$fieldName\")\n\t\t\t->where(['presence' => 0])\n\t\t\t->createCommand()->query();\n\t\t$values = [];\n\t\twhile ($row = $dataReader->read()) {\n\t\t\t$values[$row[$primaryKey]] = \\App\\Purifier::decodeHtml(\\App\\Purifier::decodeHtml($row[$fieldName]));\n\t\t}\n\t\t\\App\\Cache::save('Picklist::getNonEditableValues', $fieldName, $values);\n\n\t\treturn $values;\n\t}", "function get_row_sub_field($selector)\n{\n}", "function Pico_GetProfileFieldData($profile_id, $values = array())\n{\n\tglobal $db;\n\t$profile_fields = DB_PREFIX . 'user_profile_fields';\n\t\n\t$fields = $db->force_multi_assoc('SELECT * FROM `'.$profile_fields.'` WHERE `profile_id`=? AND `display`=? ORDER BY `position` ASC', $profile_id, 1);\n\t$return = array();\n\t\n\tif (is_array($fields))\n\t{\n\t\tforeach ($fields as $f)\n\t\t{\n\t\t\t$item = array();\n\t\t\t$item['name'] = $f['name'];\n\t\t\t$item['pattern'] = $f['pattern'];\n\t\t\t$item['required'] = $f['required'];\n\t\t\t$item['options'] = $f['options'];\n\t\t\t$item['caption'] = $f['caption'];\n\t\t\t$item['type'] = $f['type'];\n\t\t\t$item['id'] = $f['field_id'];\n\t\t\t\n\t\t\t$f_id = $f['field_id'];\n\t\t\t\n\t\t\t$value = $values['field_' . $f_id];\n\t\t\t\n\t\t\tswitch($f['type'])\n\t\t\t{\n\t\t\t\tcase 'text':\n\t\t\t\t\t$html = '<input type=\"text\" name=\"field_'.$f_id.'\" class=\"text\" value=\"'.$value.'\" />';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'radio':\n\t\t\t\t\t$html = '';\n\t\t\t\t\t$options = explode(\"\\n\", trim($f['options']));\n\t\t\t\t\tif (sizeof($options) > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tforeach ($options as $o)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$value = str_replace('\"', '\\\"', $value);\n\t\t\t\t\t\t\t$o_value = str_replace('\"', '\\\"', $o);\n\t\t\t\t\t\t\t$checked = ($value == $o_value) ? 'checked=\"checked\"' : '';\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$html .= '<input type=\"radio\" name=\"field_'.$f_id.'\" value=\"'.$o.'\" '.$checked.' /> ' . $o;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'dropdown':\n\t\t\t\t\t$html = '<div class=\"select_bg\"><select name=\"field_'.$f_id.'\">';\n\t\t\t\t\t$options = explode(\"\\n\", trim($f['options']));\n\t\t\t\t\tif (sizeof($options) > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tforeach ($options as $o)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$value = str_replace('\"', '\\\"', $value);\n\t\t\t\t\t\t\t$o_value = str_replace('\"', '\\\"', $o);\n\t\t\t\t\t\t\t$selected = ($value == $o_value) ? 'selected=\"selected\"' : '';\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$html .= '<option value=\"'.$o_value.'\" '.$selected.'>'.$o.'</option>';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$html .= '</select></div>';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'checkbox':\n\t\t\t\t\t$checked = ($value == 1) ? 'checked=\"checked\"' : '';\n\t\t\t\t\t$html = '<input type=\"checkbox\" class=\"checkbox\" name=\"field_'.$f_id.'\" value=\"1\" '.$checked.' />';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'check_list':\n\t\t\t\t\tif (!is_array($value)) { $value = unserialize($value); }\n\t\t\t\t\tif (!is_array($value)) { $value = array(); }\n\t\t\t\t\t$html = '';\n\t\t\t\t\t$options = explode(\"\\n\", trim($f['options']));\n\t\t\t\t\t\n\t\t\t\t\tif (sizeof($value) > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tforeach ($value as $k => $v)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$value[$k] = stripslashes($v);\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//echo '<pre>'.print_r($value, true).'</pre>';\n\t\t\t\t\t\n\t\t\t\t\tif (sizeof($options) > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tforeach ($options as $o)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$o_value = str_replace('\"', '\\\"', $o);\n\t\t\t\t\t\t\t$checked = (in_array($o, $value)) ? 'checked=\"checked\"' : '';\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$html .= '<input type=\"checkbox\" class=\"checklist\" name=\"field_'.$f_id.'[]\" value=\"'.$o_value.'\" '.$checked.' /> ' . $o . '<br />';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'terms':\n\t\t\t\t\t$checked = ($value == 1) ? 'checked=\"checked\"' : '';\n\t\t\t\t\t$html = '<textarea class=\"terms\" readonly=\"readonly\">'.$f['options'].'</textarea><br />';\n\t\t\t\t\t$html .= '<input type=\"checkbox\" name=\"field_'.$f_id.'\" value=\"1\" '.$checked.' /> ' . $f['caption'];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'lg_text':\n\t\t\t\t\t$html = '<textarea class=\"text\" class=\"textarea\" name=\"field_'.$f_id.'\">'.$value.'</textarea>';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'date':\n\t\t\t\t\tif ( (!is_array($value)) and (is_numeric($value)) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$v = $value;\n\t\t\t\t\t\t$value = array();\n\t\t\t\t\t\t$value['month'] = date('m', $v);\n\t\t\t\t\t\t$value['day'] = date('d', $v);\n\t\t\t\t\t\t$value['year'] = date('Y', $v);\n\t\t\t\t\t}\n\t\t\t\t\t$html = 'Month: <input type=\"text\" class=\"text_month\" name=\"field_'.$f_id.'[month]\" size=\"2\" maxlength=\"2\" value=\"'.$value['month'].'\" /> ';\n\t\t\t\t\t$html .= 'Day: <input type=\"text\" class=\"text_day\" name=\"field_'.$f_id.'[day]\" size=\"2\" maxlength=\"2\" value=\"'.$value['day'].'\" /> ';\n\t\t\t\t\t$html .= 'Year: <input type=\"text\" class=\"text_year\" name=\"field_'.$f_id.'[year]\" size=\"4\" maxlength=\"4\" value=\"'.$value['year'].'\" />';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'info':\n\t\t\t\t\t$html = ''; // blank\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t$item['html'] = $html;\n\t\t\t$return[] = $item;\n\t\t}\n\t}\n\treturn $return;\n}", "function searchFieldArray($option_name,$value_name) {\n\n\t\tglobal $t;\n\n\t\tfor ($i=0; $i<count($option_name); $i++) {\n\n\t\t\t$output .= \"<tr bgcolor=$t->tableColor>\n\t\t\t\t\t\t<td>\".$value_name[$i].\"</td>\n\t\t\t\t\t\t<td><input type=\\\"text\\\" name=\\\"query[]\\\"><input type=\\\"hidden\\\" name=\\\"field[]\\\" value=\\\"\".$option_name[$i].\"\\\"></td>\n\t\t\t\t\t\t</tr>\";\n\t\t}\n\t\treturn $output;\n\t}", "public function prepareFieldset();", "function cfdef_prepare_list_distinct_values( array $p_field_def ) {\n\tdb_param_push();\n\t$t_query = 'SELECT possible_values FROM {custom_field} WHERE id=' . db_param();\n\t$t_result = db_query( $t_query, array( $p_field_def['id'] ) );\n\n\t$t_row = db_fetch_array( $t_result );\n\tif( !$t_row ) {\n\t\treturn false;\n\t}\n\n\t$t_possible_values = custom_field_prepare_possible_values( $t_row['possible_values'] );\n\t$t_values_arr = explode( '|', $t_possible_values );\n\t$t_return_arr = array();\n\n\tforeach( $t_values_arr as $t_option ) {\n\t\tarray_push( $t_return_arr, $t_option );\n\t}\n\treturn $t_return_arr;\n}", "function LoadListRowValues(&$rs) {\n\t\t$this->gjd_id->setDbValue($rs->fields('gjd_id'));\n\t\t$this->gjm_id->setDbValue($rs->fields('gjm_id'));\n\t\t$this->peg_id->setDbValue($rs->fields('peg_id'));\n\t\t$this->b_mn->setDbValue($rs->fields('b_mn'));\n\t\t$this->b_sn->setDbValue($rs->fields('b_sn'));\n\t\t$this->b_sl->setDbValue($rs->fields('b_sl'));\n\t\t$this->b_rb->setDbValue($rs->fields('b_rb'));\n\t\t$this->b_km->setDbValue($rs->fields('b_km'));\n\t\t$this->b_jm->setDbValue($rs->fields('b_jm'));\n\t\t$this->b_sb->setDbValue($rs->fields('b_sb'));\n\t\t$this->l_mn->setDbValue($rs->fields('l_mn'));\n\t\t$this->l_sn->setDbValue($rs->fields('l_sn'));\n\t\t$this->l_sl->setDbValue($rs->fields('l_sl'));\n\t\t$this->l_rb->setDbValue($rs->fields('l_rb'));\n\t\t$this->l_km->setDbValue($rs->fields('l_km'));\n\t\t$this->l_jm->setDbValue($rs->fields('l_jm'));\n\t\t$this->l_sb->setDbValue($rs->fields('l_sb'));\n\t}", "abstract public function getSettingsFields();", "function render_field_select($field)\n {\n }", "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $frm_fp_units_accomplishment;\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row =& $rs->fields;\n\t\t$frm_fp_units_accomplishment->Row_Selected($row);\n\t\t$frm_fp_units_accomplishment->units_id->setDbValue($rs->fields('units_id'));\n\t\t$frm_fp_units_accomplishment->focal_person_id->setDbValue($rs->fields('focal_person_id'));\n\t\t$frm_fp_units_accomplishment->unit_id->setDbValue($rs->fields('unit_id'));\n\t\t$frm_fp_units_accomplishment->cu_sequence->setDbValue($rs->fields('cu_sequence'));\n\t\t$frm_fp_units_accomplishment->cu_short_name->setDbValue($rs->fields('cu_short_name'));\n\t\t$frm_fp_units_accomplishment->cu_unit_name->setDbValue($rs->fields('cu_unit_name'));\n\t\t$frm_fp_units_accomplishment->unit_name->setDbValue($rs->fields('unit_name'));\n\t\t$frm_fp_units_accomplishment->unit_name_short->setDbValue($rs->fields('unit_name_short'));\n\t\t$frm_fp_units_accomplishment->personnel_count->setDbValue($rs->fields('personnel_count'));\n\t\t$frm_fp_units_accomplishment->mfo_1->setDbValue($rs->fields('mfo_1'));\n\t\t$frm_fp_units_accomplishment->mfo_2->setDbValue($rs->fields('mfo_2'));\n\t\t$frm_fp_units_accomplishment->mfo_3->setDbValue($rs->fields('mfo_3'));\n\t\t$frm_fp_units_accomplishment->mfo_4->setDbValue($rs->fields('mfo_4'));\n\t\t$frm_fp_units_accomplishment->mfo_5->setDbValue($rs->fields('mfo_5'));\n\t\t$frm_fp_units_accomplishment->sto->setDbValue($rs->fields('sto'));\n\t\t$frm_fp_units_accomplishment->gass->setDbValue($rs->fields('gass'));\n\t\t$frm_fp_units_accomplishment->users_name->setDbValue($rs->fields('users_name'));\n\t\t$frm_fp_units_accomplishment->users_nameLast->setDbValue($rs->fields('users_nameLast'));\n\t\t$frm_fp_units_accomplishment->users_nameFirst->setDbValue($rs->fields('users_nameFirst'));\n\t\t$frm_fp_units_accomplishment->users_nameMiddle->setDbValue($rs->fields('users_nameMiddle'));\n\t\t$frm_fp_units_accomplishment->users_userLoginName->setDbValue($rs->fields('users_userLoginName'));\n\t\t$frm_fp_units_accomplishment->users_password->setDbValue($rs->fields('users_password'));\n\t\t$frm_fp_units_accomplishment->users_email->setDbValue($rs->fields('users_email'));\n\t\t$frm_fp_units_accomplishment->users_contactNo->setDbValue($rs->fields('users_contactNo'));\n\t\t$frm_fp_units_accomplishment->tbl_cutOffDate_id->setDbValue($rs->fields('tbl_cutOffDate_id'));\n\t\t$frm_fp_units_accomplishment->t_cutOffDate->setDbValue($rs->fields('t_cutOffDate'));\n\t\t$frm_fp_units_accomplishment->t_cutOffDate_remarks->setDbValue($rs->fields('t_cutOffDate_remarks'));\n\t}", "public function select_values_for_form( EntryValueSelect $entry_value_select );", "abstract public function getFields();", "abstract public function getFields();", "protected abstract function retrieveFormDisplayFields(Row $row);", "public function fields()\n {\n $logisticCompany = LogisticCompany::all()->pluck('name', 'id');\n return [\n Repeater::make(__('Shipment'), 'shipment')\n ->addField([\n 'label' => __('Shipment Num'),\n 'placeholder' => __('Shipment Num'),\n 'name' => 'num',\n ])->addField([\n 'label' => __('Logistics company'),\n 'placeholder' => __('Logistics company'),\n 'name' => 'company',\n 'type' => 'select',\n 'options' => $logisticCompany,\n ])->rules('required'),\n ];\n }", "function get_value_list()\n\t{\n\t\treturn $this->value;\n\t}", "function getFields($table,$fields=\"\",$condition=\"\",$limit=\"\",$calculateRows=false,$fastHint=false);", "function get_import_items($field1,$field2,$table){\r\n\t$output = array();\r\n\t$result = db_query(\"SELECT $field1,$field2 FROM $table\");\r\n\tif (db_has_rows($result))\r\n\t\twhile ($row = db_fetch_row($result))\r\n\t\t\t$output[$row[0]] = $row[1];\r\n\treturn $output;\r\n}", "function Field() {\n\t\t$size = '';\n\t\t$multiple = '';\n\t\t\n\t\tif($this->size) $size = \"size=\\\"$this->size\\\"\";\n\t\t\n\t\tif($this->multiple) {\n\t\t\t$multiple = \"multiple=\\\"multiple\\\"\";\n\t\t\t$this->name .= '[]';\n\t\t}\n\t\t\n\t\t$options = \"\";\n\t\t\n\t\t// We have an array of values\n\t\tif(is_array($this->value)){\n\t\t\t// Loop through and figure out which values were selected.\n\t\t\t\t\t\n\t\t\tforeach($this->getSource() as $value => $title) {\n\t\t\t\t// Loop through the array of values to find out if this value is selected.\n\t\t\t\t$selected = \"\";\n\t\t\t\tforeach($this->value as $v){\n\t\t\t\t\tif($value == $v) {\n\t\t\t\t\t\t$selected = \" selected=\\\"selected\\\"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$options .= \"<option$selected value=\\\"$value\\\">$title</option>\\n\";\n\t\t\t}\n\t\t}else{\n\t\t\t// Listbox was based a singlular value, so treat it like a dropdown.\n\t\t\tforeach($this->getSource() as $value => $title) {\n\t\t\t\t$selected = $value == $this->value ? \" selected=\\\"selected\\\"\" : \"\"; \n\t\t\t\t$options .= \"<option$selected value=\\\"$value\\\">$title</option>\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t$id = $this->id();\n\t\treturn \"<select $size $multiple name=\\\"$this->name\\\" id=\\\"$id\\\">$options</select>\";\n\t}", "function create_field( $field )\n\t{\n\t\tif( 'object' == $field['save_format'] && 'null' !== $field['value'] )\n\t\t\t$field['value'] = array( $field['value']->class );\n\n\t\t// value must be array\n\t\tif( !is_array($field['value']) )\n\t\t{\n\t\t\t// perhaps this is a default value with new lines in it?\n\t\t\tif( strpos($field['value'], \"\\n\") !== false )\n\t\t\t{\n\t\t\t\t// found multiple lines, explode it\n\t\t\t\t$field['value'] = explode(\"\\n\", $field['value']);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$field['value'] = array( $field['value'] );\n\t\t\t}\n\t\t}\n\t\t\n\t\t// trim value\n\t\t$field['value'] = array_map('trim', $field['value']);\n\t\t\n\t\t// html\n\t\techo '<div class=\"fa-field-wrapper\">';\n\t\techo '<div class=\"fa-live-preview\"></div>';\n\t\techo '<select id=\"' . $field['id'] . '\" class=\"' . $field['class'] . ' fa-select2-field\" name=\"' . $field['name'] . '\" >';\t\n\t\t\n\t\t// null\n\t\tif( $field['allow_null'] )\n\t\t{\n\t\t\techo '<option value=\"null\">- ' . __(\"Select\",'acf') . ' -</option>';\n\t\t}\n\t\t\n\t\t// loop through values and add them as options\n\t\tif( is_array($field['choices']) )\n\t\t{\n\t\t\tunset( $field['choices']['null'] );\n\n\t\t\tforeach( $field['choices'] as $key => $value )\n\t\t\t{\n\t\t\t\t$selected = $this->find_selected( $key, $field['value'], $field['save_format'], $field['choices'] );\n\t\t\t\techo '<option value=\"'.$key.'\" '.$selected.'>'.$value.'</option>';\n\t\t\t}\n\t\t}\n\n\t\techo '</select>';\n\t\techo '</div>';\n\t}", "public function fields()\n {\n $statuses = \\App\\Status::all()->pluck('name','id');\n return [\n Select::make('Status','id')->options($statuses)\n ];\n }", "public function getFields() {}", "public function getFields() {}", "public function getFields() {}", "public function getFrontendFields();", "function hundope_select_field_render() { \n\t\n}", "function getFieldList($field_data = false, $type = 'list', $fs_data = false)\n {\n if ($field_data) {\n $txt = new Text($this->language, $this->translation_module_default);\n $result = array();\n $fs_count = 0;\n $prev_fs = 0;\n foreach ($field_data as $data) {\n switch ($type) {\n case 'grid_column':\n $result[] = array(\n 'header' => $txt->display($data['translation'] ? $data['translation'] : $data['field']),\n 'dataIndex' => $data['field'],\n 'sortable' => $data['sortable'] ? true : false,\n 'hidden' => $data['hidden'] ? true : false\n );\n break;\n case 'filters':\n switch ($data['type']) {\n case 1: // textfield\n $result[] = array(\n 'name' => $data['field'],\n 'field_title' => $txt->display($data['translation'] ? $data['translation'] : $data['field']),\n 'type' => 'textfield'\n );\n break;\n case 2: // combobox\n $result[] = array(\n 'name' => $data['field'],\n 'field_title' => $txt->display($data['translation'] ? $data['translation'] : $data['field']),\n 'type' => 'combobox',\n 'emptyText' => $this->getFieldRelationAllPhrase($data['relation_table']),\n 'ds_fields' => array(\n 'id',\n 'name'\n ),\n 'ds_data' => array(\n 0 => '***ASSOC_ARRAY***',\n 1 => $this->getFieldRelationList($data['relation_table'], true)\n )\n );\n break;\n case 3: // checkbox\n // todo ?\n break; \n case 5: // date\n $result[] = array(\n 'name' => $data['field'],\n 'field_title' => $txt->display($data['translation'] ? $data['translation'] : $data['field']),\n 'type' => 'textfield'\n );\n break;\n default:\n break;\n }\n break;\n case 'detail':\n switch ($data['type']) {\n case 1: // textfield\n $result[$data[\"fieldset_id\"]][] = array(\n 'type' => 'textfield',\n 'name' => $data['field'],\n 'tooltip' => $data['tooltip'],\n 'field_title' => $txt->display($data['translation'] ? $data['translation'] : $data['field'])\n );\n break;\n case 2: // combobox\n $result[$data[\"fieldset_id\"]][] = array(\n 'name' => $data['field'],\n 'tooltip' => $data['tooltip'],\n 'field_title' => $txt->display($data['translation'] ? $data['translation'] : $data['field']),\n 'type' => 'combobox',\n //'emptyText' => $this->getFieldRelationAllPhrase($data['relation_table']),\n 'ds_fields' => array(\n 'id',\n 'name'\n ),\n 'ds_data' => array(\n 0 => '***ASSOC_ARRAY***',\n 1 => $this->getFieldRelationList($data['relation_table'], false)\n )\n );\n break;\n case 3: // checkbox\n $result[$data[\"fieldset_id\"]][] = array(\n 'type' => 'checkbox',\n 'name' => $data['field'],\n 'tooltip' => $data['tooltip'],\n 'field_title' => $txt->display($data['translation'] ? $data['translation'] : $data['field'])\n );\n break;\n case 4: // file\n $result[$data[\"fieldset_id\"]][] = array(\n 'type' => 'pic',\n 'name' => $data['field']\n );\n break;\n case 5: // date\n $result[$data[\"fieldset_id\"]][] = array(\n 'type' => 'datefield',\n 'name' => $data['field'],\n 'tooltip' => $data['tooltip'],\n 'field_title' => $txt->display($data['translation'] ? $data['translation'] : $data['field'])\n );\n break;\n default:\n break;\n }\n break;\n default :\n $result[] = array('name' => $data[\"field\"]);\n break;\n }\n }\n\n if ($type == 'detail' && $fs_data) {\n $t_result = array();\n for ($i = 0; $i < sizeof($fs_data); $i++) {\n for ($j = 0; $j < sizeof($fs_data[$i]); $j++) {\n if (!array_key_exists($fs_data[$i][$j]['fieldset_id'], $result)) {\n $result[$fs_data[$i][$j]['fieldset_id']] = false;\n }\n $t_result[$i][$j] = $result[$fs_data[$i][$j]['fieldset_id']];\n }\n }\n $result = $t_result;\n }\n }\n return JsonEncoder::encode($result);\n }", "public function loadListRowValues(&$rs)\n\t{\n\t\t$this->IncomeCode->setDbValue($rs->fields('IncomeCode'));\n\t\t$this->IncomeName->setDbValue($rs->fields('IncomeName'));\n\t\t$this->IncomeDescription->setDbValue($rs->fields('IncomeDescription'));\n\t\t$this->Division->setDbValue($rs->fields('Division'));\n\t\t$this->IncomeAmount->setDbValue($rs->fields('IncomeAmount'));\n\t\t$this->IncomeBasicRate->setDbValue($rs->fields('IncomeBasicRate'));\n\t\t$this->BaseIncomeCode->setDbValue($rs->fields('BaseIncomeCode'));\n\t\t$this->Taxable->setDbValue($rs->fields('Taxable'));\n\t\t$this->AccountNo->setDbValue($rs->fields('AccountNo'));\n\t\t$this->JobIncluded->setDbValue($rs->fields('JobIncluded'));\n\t\t$this->Application->setDbValue($rs->fields('Application'));\n\t\t$this->JobExcluded->setDbValue($rs->fields('JobExcluded'));\n\t}", "function retrieve_values(){\n if(!empty($this->vardef) && isset($this->bean->{$this->name})){\n $values = array();\n $values = $this->bean->{$this->name}->get(true);\n $bean_name = $this->vardef['bean_name'];\n $new_bean = new $bean_name();\n $fields_values = Array();\n $k = 0;\n if (!empty($values)) {\n foreach ($values as $key=>$value) {\n $new_bean->retrieve($value);\n $field_defs = $new_bean->field_defs;\n foreach ($this->displayParams['collection_field_list'] as $key_field=>$value_field) {\n $this->value_name[$k][$value_field['name']] = $new_bean->{$value_field['name']};\n if($field_defs[$value_field['name']]['type'] == 'relate' && !empty($field_defs[$value_field['name']]['id_name'])){\n $id_name = $field_defs[$value_field['name']]['id_name'];\n $this->relay_id[$value_field['name']][$this->value_name[$k][$value_field['name']]] = $new_bean->$id_name;\n }\n }\n if (!isset($this->value_name[$k]['id'])){\n $this->value_name[$k]['id'] = $value;\n }\n $k++;\n }\n } else {\n foreach ($this->displayParams['collection_field_list'] as $key_field=>$value_field) {\n $this->value_name[0][$value_field['name']] = '';\n }\n if (!isset($this->value_name[0]['id'])){\n $this->value_name[0]['id'] = '';\n }\n }\n }\n }", "protected function getInput()\n\t{\n\t\t$html = array();\n\n\t\t// Initialize some field attributes.\n\t\t$attr = 'class=\"chzn-custom-value' . (empty($this->class) ? '' : ' ' . $this->class) . '\" '\n\t\t\t\t. 'data-custom_group_text=\"' . 'Test1' . '\" '\n\t\t\t\t. 'data-no_results_text=\"' . Text::_('PLG_HIKASHOP_BFORDEREXPORT_COLUMN_CUSTOM') . '\" '\n\t\t\t\t. 'data-placeholder=\"' . Text::_('PLG_HIKASHOP_BFORDEREXPORT_COLUMN_TYPEORSELECT') . '\" ';\n\t\t$attr .= !empty($this->size) ? ' size=\"' . $this->size . '\"' : '';\n\t\t$attr .= $this->multiple ? ' multiple' : '';\n\t\t$attr .= $this->required ? ' required aria-required=\"true\"' : '';\n\t\t$attr .= $this->autofocus ? ' autofocus' : '';\n\n\t\t// To avoid user's confusion, readonly=\"true\" should imply disabled=\"true\".\n\t\tif ($this->readonly || $this->disabled)\n\t\t{\n\t\t\t$attr .= ' disabled=\"disabled\"';\n\t\t}\n\n\t\t// Initialize JavaScript field attributes.\n\t\t$attr .= !empty($this->onchange) ? ' onchange=\"' . $this->onchange . '\"' : '';\n\n\t\t// Get the field groups.\n\t\t$groups = (array) $this->getGroups();\n\n\t\t// Create a read-only list (no name) with a hidden input to store the value.\n\t\tif ($this->readonly)\n\t\t{\n\t\t\t$html[] = JHtml::_(\n\t\t\t\t'select.groupedlist', $groups, null,\n\t\t\t\tarray(\n\t\t\t\t\t'list.attr' => $attr, 'id' => $this->id, 'list.select' => $this->value, 'group.items' => null, 'option.key.toHtml' => false,\n\t\t\t\t\t'option.text.toHtml' => false,\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t// E.g. form field type tag sends $this->value as array\n\t\t\tif ($this->multiple && is_array($this->value))\n\t\t\t{\n\t\t\t\tif (!count($this->value))\n\t\t\t\t{\n\t\t\t\t\t$this->value[] = '';\n\t\t\t\t}\n\n\t\t\t\tforeach ($this->value as $value)\n\t\t\t\t{\n\t\t\t\t\t$html[] = '<input type=\"hidden\" name=\"' . $this->name . '\" value=\"' . htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . '\"/>';\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$html[] = '<input type=\"hidden\" name=\"' . $this->name . '\" value=\"' . htmlspecialchars($this->value, ENT_COMPAT, 'UTF-8') . '\"/>';\n\t\t\t}\n\t\t}\n\n\t\t// Create a regular list.\n\t\telse\n\t\t{\n\t\t\t$html[] = JHtml::_(\n\t\t\t\t'select.groupedlist', $groups, $this->name,\n\t\t\t\tarray(\n\t\t\t\t\t'list.attr' => $attr, 'id' => $this->id, 'list.select' => $this->value, 'group.items' => null, 'option.key.toHtml' => false,\n\t\t\t\t\t'option.text.toHtml' => false,\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\n\t\treturn implode($html);\n\t}", "public function getValuesRows($includeEmptyFields=false){\n if (!$includeEmptyFields){\n return $this->valuesRows;\n }else{\n $result=[];\n if (!empty($this->valuesRows)){\n foreach ($this->valuesRows as $valuesRowId=>$valuesRow){\n $rowResult=[];\n if (!empty($this->dbFields)){\n foreach ($this->dbFields as $dbField){\n $rowResult[$dbField->id]=(!empty($valuesRow[$dbField->id])?$valuesRow[$dbField->id]:'');\n }\n }\n $result[$valuesRowId]=$rowResult;\n }\n }\n return $result;\n }\n }", "function my_browse_data( $table_name , $datas ){\r\n\t\r\n\tglobal $connection;\r\n\t\r\n\t$primary_field = my_get_field_list($table_name);\r\n\tforeach($datas as $field => $value){\r\n\t\t$fieldname = $field ;\r\n\t\t$fieldvalue = $value;\r\n\t}\r\n\t\r\n\t$query = \" SELECT `\".$primary_field. \"` FROM `\".$table_name.\"` WHERE `\".$fieldname.\"` = \". $fieldvalue ;\r\n\t \r\n\t$result = my_query( $query );\r\n\tif( my_num_rows($result) > 0 ){\r\n\t\t\r\n\t\t$data = array();\r\n\t\t\r\n\t\twhile(\t$row = my_fetch_array($result) ){\r\n\t\t\t$data[] = $row[$primary_field];\r\n\t\t}\r\n\t\t\r\n\t\treturn $data;\r\n\t\r\n\t}\r\n\t\r\n\treturn false;\r\n\t\r\n}", "function getSelectedFieldsRecordListArray($selectedFields, $fieldName, $searchKey, $searchStatus='', $orderByField='', $orderByValue='', $offset='', $limit='')\r\n\t\t{\r\n\t\t\t$sqlRecord = $this->getSelectedTableRecordListArray($this->table, $selectedFields, $fieldName , $searchKey,$searchStatus, $orderByField, $orderByValue );\r\n\t\t\treturn $sqlRecord;\r\n\t\t\t\r\n\t\t}", "public function get_values() {\n\t\t$values = [];\n\n\t\tforeach ( $this->fields as $field ) {\n\t\t\t$values[$field->name] = $field->get_value();\n\t\t}\n\n\t\treturn $values;\n\t}", "function lecturerNames($lec_no,$field){\n\t\tfor($i=0;$i<count($lec_no);$i++){\n\t\t\t$q_2 = \"SELECT `$field` FROM `mkombo_university`.`staff` WHERE `lec_no`='\".$lec_no[$i].\"'\";\n\t\t\t$run_2 = mysql_query($q_2);\n\t\t\twhile($row = mysql_fetch_array($run_2)){\n\t\t\t\t$result[] = $row[$field];\n\t\t\t}\n\t\t}\n\t\treturn $result;\n\t}", "public function getCommonSelectFieldsReturnsCorrectFieldsDataProvider() {}" ]
[ "0.6803798", "0.64089125", "0.6270349", "0.617685", "0.6163077", "0.6105723", "0.60596246", "0.60014176", "0.59595585", "0.59471214", "0.5933139", "0.5926436", "0.5874762", "0.58585733", "0.5843007", "0.5837736", "0.5825939", "0.57930493", "0.5778314", "0.5747211", "0.57463735", "0.57431877", "0.5714735", "0.5714646", "0.5702702", "0.5694992", "0.56939745", "0.5668209", "0.5660578", "0.56543684", "0.56543684", "0.56543684", "0.56543684", "0.56543684", "0.56543684", "0.5635374", "0.5626101", "0.5625647", "0.5623689", "0.56169033", "0.56093", "0.5602849", "0.5598553", "0.55940384", "0.5568039", "0.5564072", "0.5560887", "0.55583704", "0.55502754", "0.5546275", "0.5546275", "0.551955", "0.5519413", "0.55115587", "0.5510618", "0.5501925", "0.550165", "0.54895866", "0.54886186", "0.5488184", "0.54815865", "0.5478761", "0.5468626", "0.5468605", "0.5464969", "0.5463054", "0.54622066", "0.54604244", "0.5460121", "0.5445911", "0.5437702", "0.5429519", "0.5424105", "0.5422561", "0.5410829", "0.54089904", "0.54089904", "0.5408513", "0.5402261", "0.53992355", "0.5398614", "0.5396459", "0.53917164", "0.5388788", "0.53870505", "0.53868437", "0.53868437", "0.53868437", "0.5384943", "0.53810155", "0.53771967", "0.5376327", "0.53719676", "0.5371901", "0.53717005", "0.536931", "0.53680843", "0.5365751", "0.5365552", "0.53635687" ]
0.6583699
1
Get icon data for picklist value.
public static function getIcon(string $fieldName, string $value): array { $icon = []; if (self::isPicklistExist($fieldName) && ($iconValue = array_column(self::getValues($fieldName), 'icon', $fieldName)[$value] ?? [])) { $icon = \App\Json::isJson($iconValue) ? \App\Json::decode($iconValue) : ['type' => 'icon', 'name' => $iconValue]; } return $icon; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function image() {\n return data_field_admin::field_icon($this);\n }", "function get_icon() {\n\t\treturn $this->settings['icon'];\n\t}", "private function get_icon()\n\t{\n\t\treturn $this->m_icon;\n\t}", "private function get_icon()\n\t{\n\t\treturn $this->m_icon;\n\t}", "public function icon()\n {\n return $this->icon;\n }", "public function getIcon()\n {\n return $this->get(self::_ICON);\n }", "public function get_icon() {\n $skillIcons = get_field('listing_skill_icons', 'option');\n $randIcon = array_rand($skillIcons, 1);\n $icon = $skillIcons[$randIcon];\n return $icon;\n }", "public function getIcon()\n {\n return $this->icon;\n }", "public function getIcon()\n {\n return $this->icon;\n }", "public function getIcon()\n {\n return $this->icon;\n }", "public function getIcon()\n {\n return $this->icon;\n }", "public function getIcon()\n {\n return $this->icon;\n }", "public function getIcon()\n {\n return $this->icon;\n }", "public function getIcon()\n {\n return $this->icon;\n }", "public function getIcon() {\n return $this->icon;\n }", "public function getIcon() {\n return $this->icon;\n }", "public function getIcon()\n {\n return $this->_icon;\n }", "public function getIcon() {\r\n \r\n $mime = explode(\"/\", $this->mime); \r\n \r\n switch ($mime[0]) {\r\n case \"video\" : \r\n return [\r\n \"label\" => \"Video\",\r\n \"icon\" => '<i class=\"fa fa-file-video-o\"></i>'\r\n ];\r\n \r\n break;\r\n \r\n case \"image\" : \r\n return [\r\n \"label\" => \"Image\",\r\n \"icon\" => '<i class=\"fa fa-file-image-o\"></i>'\r\n ];\r\n \r\n break;\r\n \r\n }\r\n \r\n switch ($this->mime) {\r\n case \"application/msword\":\r\n case \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\":\r\n return [ \r\n \"label\" => \"Microsoft Word\",\r\n \"icon\" => '<i class=\"fa fa-file-word-o\"></i>'\r\n ];\r\n \r\n break;\r\n \r\n case \"application/vnd.ms-excel\":\r\n case \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\":\r\n return [ \r\n \"label\" => \"Microsoft Excel\",\r\n \"icon\" => '<i class=\"fa fa-file-excel-o\"></i>'\r\n ];\r\n \r\n break;\r\n \r\n case \"application/pdf\":\r\n case \"application/x-pdf\":\r\n return [ \r\n \"label\" => \"PDF\",\r\n \"icon\" => '<i class=\"fa fa-file-pdf-o\"></i>'\r\n ];\r\n \r\n break;\r\n \r\n }\r\n \r\n return [\r\n \"label\" => \"Unknown\",\r\n \"icon\" => '<i class=\"fa fa-file-o\"></i>'\r\n ];\r\n \r\n }", "public function getIcon() {\n\t\treturn $this->icon;\n\t}", "public function getItemIcon()\n {\n return $this->stripTags($this->getEntity()->getData('list_item_icon'));\n }", "public function getIcon()\n {\n return $this->Icon;\n }", "public function getIcon()\n\t{\n\t\treturn $this->icon;\n\t}", "public function getIcon();", "public function getIcon();", "public function icon ( )\n\t{\n\t\treturn Array( 'id' => $this->id,\t// shoud be consistent with what is passed to _uicmp_stuff_fold class\n\t\t\t\t\t 'title' => $this->messages['icon'] );\n\t}", "public function getArticleListIcon();", "public function getCategoryIcon();", "protected function upload_icon()\n {\n $config = array();\n $config['upload_path'] = './upload';\n $config['allowed_types'] = 'ico';\n $config['max_size'] = '0';\n $config['overwrite'] = TRUE;\n $config['encrypt_name'] = TRUE;\n\n $this->load->library('upload', $config);\n $this->upload->do_upload('icon');\n $hasil = $this->upload->data();\n\n return $hasil;\n }", "public function get_icon() {\n\t\treturn 'eicon-image';\n\t}", "public function getIcon()\n {\n return empty($this->model->icon) ? 'globe' : $this->model->icon;\n }", "public function icon(): ?string\n {\n return $this->getAttribute('icon');\n }", "public function get_icon()\n {\n return 'fa fa-image';\n }", "public function getIcon() {}", "public function getIcons()\n {\n $aPicGallery = $this->getPictureGallery();\n\n return $aPicGallery['Icons'];\n }", "public function icon(): string;", "protected function get__icon()\n\t{\n\t\treturn NULL;\n\t}", "public function getIconData()\n {\n return 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAJ3SURBVDjLpZNtSNNRFIcNKunF1rZWBMJqKaSiX9RP1dClsjldA42slW0q5oxZiuHrlqllLayoaJa2jbm1Lc3QUZpKFmmaTMsaRp+kMgjBheSmTL2//kqMBJlFHx44XM7vOfdyuH4A/P6HFQ9zo7cpa/mM6RvCrVDzaVDy6C5JJKv6rwSnIhlFd0R0Up/GwF2KWyl01CTSkM/dQoQRzAurCjRCGnRUUE2FaoSL0HExiYVzsQwcj6RNrSqo4W5Gh6Yc4+1qDDTkIy+GhYK4nTgdz0H2PrrHUJzs71NQn86enPn+CVN9GnzruoYR63mMPbkC59gQzDl7pt7rc9f7FNyUhPY6Bx9gwt4E9zszhWWpdg6ZcS8j3O7zCTuEpnXB+3MNZkUUZu0NmHE8XsL91oSWwiiEc3MeseLrN6woYCWa/Zl8ozyQ3w3Hl2lYy0SwlCUvsVi/Gv2JwITnYPDun2Hy6jYuEzAF1jUBCVYpO6kXo+NuGMeBAgcgfwNkvgBOPgUqXgKvP7rBFvRhE1crp8Vq1noFYSlacVyqGk0D86gbART9BDk9BFnPCNJbCY5aCFL1Cyhtp0RWAp74MsKSrkq9guHyvfMTtmLc1togpZoyqYmyNoITzVTYRJCiXYBIQ3CwFqi83o3JDhX6C0M8XsGIMoQ4OyuRlq1DdZcLkmbgGDX1iIEKNxAcbgTEOqC4ZRaJ6Ub86K7CYFEo8Qo+GBQlQyXBczLZpbloaQ9k1NUz/kD2myBBKxRZpa5hVcQslalatoUxizxAVVrN3CW21bFj9F858Q9dnIRmDyeuybM71uxmH9BNBB1q6zybV7H9s1Ue4PM3/gu/AEbfqfWy2twsAAAAAElFTkSuQmCC';\n }", "public function getIconData()\n {\n return 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAJ3SURBVDjLpZNtSNNRFIcNKunF1rZWBMJqKaSiX9RP1dClsjldA42slW0q5oxZiuHrlqllLayoaJa2jbm1Lc3QUZpKFmmaTMsaRp+kMgjBheSmTL2//kqMBJlFHx44XM7vOfdyuH4A/P6HFQ9zo7cpa/mM6RvCrVDzaVDy6C5JJKv6rwSnIhlFd0R0Up/GwF2KWyl01CTSkM/dQoQRzAurCjRCGnRUUE2FaoSL0HExiYVzsQwcj6RNrSqo4W5Gh6Yc4+1qDDTkIy+GhYK4nTgdz0H2PrrHUJzs71NQn86enPn+CVN9GnzruoYR63mMPbkC59gQzDl7pt7rc9f7FNyUhPY6Bx9gwt4E9zszhWWpdg6ZcS8j3O7zCTuEpnXB+3MNZkUUZu0NmHE8XsL91oSWwiiEc3MeseLrN6woYCWa/Zl8ozyQ3w3Hl2lYy0SwlCUvsVi/Gv2JwITnYPDun2Hy6jYuEzAF1jUBCVYpO6kXo+NuGMeBAgcgfwNkvgBOPgUqXgKvP7rBFvRhE1crp8Vq1noFYSlacVyqGk0D86gbART9BDk9BFnPCNJbCY5aCFL1Cyhtp0RWAp74MsKSrkq9guHyvfMTtmLc1togpZoyqYmyNoITzVTYRJCiXYBIQ3CwFqi83o3JDhX6C0M8XsGIMoQ4OyuRlq1DdZcLkmbgGDX1iIEKNxAcbgTEOqC4ZRaJ6Ub86K7CYFEo8Qo+GBQlQyXBczLZpbloaQ9k1NUz/kD2myBBKxRZpa5hVcQslalatoUxizxAVVrN3CW21bFj9F858Q9dnIRmDyeuybM71uxmH9BNBB1q6zybV7H9s1Ue4PM3/gu/AEbfqfWy2twsAAAAAElFTkSuQmCC';\n }", "public function getSvgIcon();", "function getPostIcon(){\n\t\t$postid = intval( $_GET['post_id'] );\n\t\t$icon_data['post_icon'] = get_post_meta( $postid, 'post_icon', true );\n\t\t$icon_data['post_icon_position'] = get_post_meta( $postid, 'post_icon_position', true );\n\t\techo json_encode( $icon_data );\n\t\twp_die();\n\t}", "public function getIcon(): string\n {\n return $this->icon ?: static::DEFAULT_ICON;\n }", "private function render_picker() {\n\n\t\t\t$format = '<span class=\"input-group-addon\"></span><input type=\"text\" name=\"%1$s\" id=\"%2$s\" value=\"%3$s\" class=\"widefat cherry-ui-text cherry-ui-iconpicker %4$s\" data-set=\"%5$s\">';\n\n\t\t\t$this->prepare_icon_set();\n\n\t\t\treturn sprintf(\n\t\t\t\t$format,\n\t\t\t\t$this->settings['name'],\n\t\t\t\t$this->settings['id'],\n\t\t\t\t$this->settings['value'],\n\t\t\t\t$this->settings['class'],\n\t\t\t\t$this->settings['icon_data']['icon_set']\n\t\t\t);\n\n\t\t}", "function oe_icon_picker_field( $args, $echo = true ) {\n\t$defaults = array(\n\t\t'id' => '',\n\t\t'name' => '',\n\t\t'value' => array(\n\t\t\t'type' => '',\n\t\t\t'icon' => '',\n\t\t),\n\t\t'select' => sprintf( '<a class=\"ipf-select\">%s</a>', esc_html__( 'Select Icon', 'ocean-extra' ) ),\n\t\t'remove' => sprintf( '<a class=\"ipf-remove button hidden\">%s</a>', esc_html__( 'Remove', 'ocean-extra' ) ),\n\t);\n\n\t$args = wp_parse_args( $args, $defaults );\n\t$args['value'] = wp_parse_args( $args['value'], $defaults['value'] );\n\n\t$field = sprintf( '<div id=\"%s\" class=\"ipf\">', $args['id'] );\n\t$field .= $args['select'];\n\t$field .= $args['remove'];\n\n\tforeach ( $args['value'] as $key => $value ) {\n\t\t$field .= sprintf(\n\t\t\t'<input type=\"hidden\" id=\"%s\" name=\"%s\" class=\"%s\" value=\"%s\" />',\n\t\t\tesc_attr( \"{$args['id']}-{$key}\" ),\n\t\t\tesc_attr( \"{$args['name']}[{$key}]\" ),\n\t\t\tesc_attr( \"ipf-{$key}\" ),\n\t\t\tesc_attr( $value )\n\t\t);\n\t}\n\n\t// This won't be saved. It's here for the preview.\n\t$field .= sprintf(\n\t\t'<input type=\"hidden\" class=\"url\" value=\"%s\" />',\n\t\tesc_attr( oe_icon_picker_get_icon_url( $args['value']['type'], $args['value']['icon'] ) )\n\t);\n\t$field .= '</div>';\n\n\tif ( $echo ) {\n\t\techo $field; // xss ok\n\t} else {\n\t\treturn $field;\n\t}\n}", "protected function imageIcon(): string\n {\n $types = [\n 'image' => 'file-image',\n 'video' => 'file-video',\n 'document' => 'file-document',\n 'audio' => 'file-audio',\n 'code' => 'file-code',\n 'archive' => 'file-zip'\n ];\n\n $extensions = [\n 'xls' => 'file-spreadsheet',\n 'xlsx' => 'file-spreadsheet',\n 'csv' => 'file-spreadsheet',\n 'docx' => 'file-word',\n 'doc' => 'file-word',\n 'rtf' => 'file-word',\n 'mdown' => 'file-text',\n 'md' => 'file-text'\n ];\n\n return $extensions[$this->model->extension()] ??\n $types[$this->model->type()] ??\n parent::imageDefaults()['color'];\n }", "public function get_icon_display_data($icon)\n {\n // If this icon refers to an original (i.e. it's a form that is\n // identical to the standard icon), refer to the original's data.\n if (@$icon['original']) {\n $x = $icon['original']['fit']['x'];\n $y = $icon['original']['fit']['y'];\n $w = $icon['original']['w'];\n $h = $icon['original']['h'];\n }\n else {\n $x = $icon['x'];\n $y = $icon['y'];\n $w = $icon['w'];\n $h = $icon['h'];\n }\n // At least return x and y coordinates.\n $data = array(\n 'x' => intval($x),\n 'y' => intval($y),\n );\n // If this type isn't part of a set with a set size, add the size.\n $type = $icon['type'] == 'etc' ? $icon['set'] : $icon['type'];\n if (!isset($this->icon_sizes[$type]['w'])) {\n $data['w'] = intval($w);\n $data['h'] = intval($h);\n }\n return $data;\n }", "public function setIcon($value)\n {\n return $this->set(self::_ICON, $value);\n }", "public function getIcons() {\n\t\treturn $this->find('list', array('fields' => array('icon'), 'order' => array('id')));\n\t}", "public function getSpriteIconCode() {}", "public function get_icon() {\n\t\treturn parent::get_widget_icon( 'Team_Member' );\n\t}", "public function get_icon() {\n\t\treturn 'eicon-slider-album';\n\t}", "public function get_icon() {\n\t\treturn 'eicon-slider-album';\n\t}", "public function icon(): string\n {\n return 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACYSURBVEhLYxgFJIHU1FSjtLS0i0D8AYj7gEKMEBkqAaAFF4D4ERCvAFrwH4gDoFIMKSkpFkB+OTEYqgUTACXfA/GqjIwMQyD9H2hRHlQKJFcBEiMGQ7VgAqCBvUgK32dmZspCpagGGNPT0/1BLqeF4bQHQJePpiIwhmrBBEADR1MRfgB0+WgqAmOoFkwANHA0FY0CUgEDAwCQ0PUpNB3kqwAAAABJRU5ErkJggg==';\n }", "public function get_icon() {\n\t\t\treturn WC_SUMO_Sagepay_Common_Functions::get_icon( $this->cardtypes, $this->sagelink, $this->sagelogo, $this->id );\n\t\t}", "public function get_icon()\n {\n return 'fa fa-filter';\n }", "public function icon(): string\n {\n return 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADLSURBVEhL5ZRLCsIwGAa7UkE9gd5HUfEoekxxJx7AhXoCca/fhESkJiQxBHwMDG3S/9EmJc0n0JMruZVXK/fMdWQRY7mXt4A7OZJvwZu74hRayIEc2nv3jGtXZrOWrnifiRY0OkhiWK5sWGeS52bkZymJ2ZhRJmwmySxLCL6CmIsZZUIixkiNezCRR+kSUyWH3Cgn6SuQIk2iuOBckvN+t8FMnq1TJloUN3jefN9mhvJeCAVWb8CyUDj0vxc3iPFHDaofFdUPu2+iae7nYJMCY/1bpAAAAABJRU5ErkJggg==';\n }", "public function get_icon() {\n\t\treturn 'eicon-icon-box';\n\t}", "public function getButtonIcon()\n {\n return $this->buttonIcon;\n }", "protected function getHintIcon()\n {\n if (!$this->getHintData('showIcon')) {\n return '';\n }\n $options = [];\n Html::addCssClass($options, $this->getHintIconCss('Icon'));\n\n return Html::tag('span', $this->getHintData('icon'), $options);\n }", "public function get_icon() {\n\t\treturn 'fa fa-pencil';\n\t}", "public function get_icon() {\n\t\treturn 'fa fa-pencil';\n\t}", "protected function get__icon()\n\t{\n\t\treturn 'coffee';\n\t}", "function _get_ico_data() {\n\t\tif ( ! is_array( $this->_images ) || empty( $this->_images ) )\n\t\t\treturn false;\n\t\t\n\t\t\n\t\t$data = pack( 'vvv', 0, 1, count( $this->_images ) );\n\t\t$pixel_data = '';\n\t\t\n\t\t$icon_dir_entry_size = 16;\n\t\t\n\t\t$offset = 6 + ( $icon_dir_entry_size * count( $this->_images ) );\n\t\t\n\t\tforeach ( $this->_images as $image ) {\n\t\t\t$data .= pack( 'CCCCvvVV', $image['width'], $image['height'], $image['color_palette_colors'], 0, 1, $image['bits_per_pixel'], $image['size'], $offset );\n\t\t\t$pixel_data .= $image['data'];\n\t\t\t\n\t\t\t$offset += $image['size'];\n\t\t}\n\t\t\n\t\t$data .= $pixel_data;\n\t\tunset( $pixel_data );\n\t\t\n\t\t\n\t\treturn $data;\n\t}", "public function getIcon(): ?string\n {\n foreach ($this->items as $item) {\n if (!empty($item->getIcon())) {\n return $item->getIcon();\n }\n }\n\n return null;\n }", "public function getIcon()\n {\n return $this->getMethod()->images['size2x'];\n }", "public function get_icon()\n {\n return 'eicon-post-list';\n }", "function getAvailableIconNames() ;", "public function getIconColor(): ?string;", "static function get_map_marker_icon( $args ) {\n $plugin = Hardcore_Map_Plugin::this();\n $icon = get_post_meta( $args[ 'post_ID' ], $plugin->marker_icon_meta_key, true );\n return $icon;\n }", "public function getGiftwrapIcon() {\r\n return Mage::getStoreConfig('giftwrap/style/icon_image');\r\n }", "public function get_icon() {\n\t\treturn 'fa fa-cloud';\n\t}", "public function getOptionImage()\n {\n return $this->optionImage;\n }", "public function getIcon() {\n if($this->items!==false)\n return @current($this->items)->user->profile_image_url;\n return false;\n }", "public function get_icon()\n\t{\n\t\treturn 'fab fa-algolia';\n\t}", "public function getIconList()\n {\n $icons = [];\n foreach (['FAR', 'FAL', 'FAS', 'FAB', 'FAD'] as $type) {\n $prefix = strtolower($type);\n $ref = new \\ReflectionClass('futuretek\\fontawesome\\\\' . $type);\n foreach ($ref->getConstants() as $name => $icon) {\n if (0 !== strpos($name, '_')) {\n continue;\n }\n $icons[] = '\"' . $prefix . ' ' . $icon . '\"';\n }\n }\n\n return implode(',', $icons);\n }", "public function icon($value)\n {\n $this->icon = $value;\n\n return $this;\n }", "public function delimiterIcon($value) {\n return $this->setProperty('delimiterIcon', $value);\n }", "public function getIcon()\n {\n }", "public function getIconName() {}", "public function getIconName() {}", "public function getIconName() {}", "public function getIconName() {}", "public function get_icon() {\n\t\treturn 'fa fa-images';\n\t}", "public function getOptions(): array\n {\n return ['icon' => 'far copy'];\n }", "protected function setIconPath($list) {\n $module = $this->getModule();\n $config = Pi::config('', $module);\n\n $rootPath = $this->rootPath();\n $rootUrl = $this->rootUrl();\n $uploadPath = $this->tmpPath();\n $uploadUrl = $this->tmpUrl();\n $prefixLen = strlen($uploadUrl);\n\n $items = array();\n foreach ($list as $item) {\n if ($uploadUrl == substr($item['icon'], 0, $prefixLen)) {\n $imgName = substr($item['icon'], $prefixLen);\n $renamed = rename(\n $uploadPath . $imgName,\n $rootPath . $imgName\n );\n if ($renamed) {\n $item['image'] = $rootUrl . '/' . $imgName;\n $item['filename'] = $imgName;\n }\n }\n $items[] = $item;\n }\n\n return $items;\n }", "public function getIconClass() {\n\n $iconList = new IconList();\n return $iconList->getIconClass( $this->getWeather()->getId());\n }", "public function getAvailableIconNames() {}", "public function conditionIcon(): string\n {\n return $this->weather['condition']['icon'];\n }", "private function renderMapMarkerCategoryIcons()\n {\n $catIcons = null;\n $arrIcon = array();\n\n foreach ( array_keys( $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'points.' ] ) as $catKey )\n {\n if ( substr( $catKey, -1 ) == '.' )\n {\n continue;\n }\n\n unset( $arrIcon );\n\n // Set the path\n $coa_name = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'points.' ][ $catKey . '.' ][ 'pathToIcon' ];\n $coa_conf = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'points.' ][ $catKey . '.' ][ 'pathToIcon.' ];\n $value = $this->pObj->cObj->cObjGetSingle( $coa_name, $coa_conf );\n if ( empty( $value ) )\n {\n $header = 'FATAL ERROR!';\n $text = 'Unexpeted value : TypoScript property is empty.';\n $this->pObj->drs_die( $header, $text );\n }\n // absolute path\n $pathAbsolute = t3lib_div::getFileAbsFileName( $value );\n if ( !file_exists( $pathAbsolute ) )\n {\n $header = 'FATAL ERROR!';\n $text = 'File doesn\\'t exist: ' . $pathAbsolute;\n $this->pObj->drs_die( $header, $text );\n }\n // relative path\n $pathRelative = preg_replace( '%' . PATH_site . '%', '', $pathAbsolute );\n $arrIcon[] = $pathRelative;\n // Set the path\n // Add the icon width\n $value = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'points.' ][ $catKey . '.' ][ 'width' ];\n if ( empty( $value ) )\n {\n $header = 'FATAL ERROR!';\n $text = 'TypoScript property is empty.';\n $this->pObj->drs_die( $header, $text );\n }\n $arrIcon[] = ( int ) $value;\n // Add the icon width\n // Add the icon height\n $value = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'points.' ][ $catKey . '.' ][ 'height' ];\n if ( empty( $value ) )\n {\n $header = 'FATAL ERROR!';\n $text = 'TypoScript property is empty.';\n $this->pObj->drs_die( $header, $text );\n }\n $arrIcon[] = ( int ) $value;\n // Add the icon height\n // Add the icon x-offset\n $value = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'points.' ][ $catKey . '.' ][ 'offsetX' ];\n if ( $value == null )\n {\n $header = 'FATAL ERROR!';\n $text = 'TypoScript property is empty.';\n $this->pObj->drs_die( $header, $text );\n }\n $arrIcon[] = ( int ) $value;\n // Add the icon x-offset\n // Add the icon y-offset\n $value = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'points.' ][ $catKey . '.' ][ 'offsetY' ];\n if ( $value == null )\n {\n $header = 'FATAL ERROR!';\n $text = 'TypoScript property is empty.';\n $this->pObj->drs_die( $header, $text );\n }\n $arrIcon[] = ( int ) $value;\n // Add the icon y-offset\n// $catIcons[$catKey] = '[' . implode( ', ', $arrIcon ) . ']';\n $catIcons[ $catKey ] = $arrIcon;\n }\n\n//var_dump( __METHOD__, __LINE__, $catIcons );\n // #65184, 150223, dwildt, +\n $this->catIcons = $catIcons;\n return $catIcons;\n }", "protected function _buildListOfIcons()\n {\n $iconLoader = new \\Yana\\Views\\Icons\\Loader();\n return $iconLoader->getIcons();\n }", "public function get_icon() {\n return 'fa fa-address-card';\n }", "public function getIconPath() {\n\t\treturn WCF::getPath() . 'icon/flag/'.$this->countryCode.'.svg';\n\t}", "function studeon_vc_iconpicker_type_fontawesome($icons) {\n\t\t$list = studeon_get_list_icons();\n\t\tif (!is_array($list) || count($list) == 0) return $icons;\n\t\t$rez = array();\n\t\tforeach ($list as $icon)\n\t\t\t$rez[] = array($icon => str_replace('icon-', '', $icon));\n\t\treturn array_merge( $icons, array(esc_html__('Theme Icons', 'studeon') => $rez) );\n\t}", "public function get_icon() {\n\t\treturn 'eicon-product-images';\n\t}", "public function getIcon() {\r\n\t\r\n\t$fileType = $this->getType();\r\n\t\r\n\t$image = array(\r\n\t 'image/gif',\r\n\t 'image/png',\r\n\t 'image/jpg',\r\n\t 'image/jpeg'\r\n\t);\r\n\t\r\n\t$rarZip = array(\r\n\t 'application/zip',\r\n 'application/x-rar-compressed'\r\n\t);\r\n\t\r\n\t$audio = array(\r\n\t 'audio/mpeg'\r\n\t);\r\n\t\r\n\t$video = array(\r\n\t 'video/quicktime',\r\n\t 'video/mp4'\r\n\t);\r\n\t\r\n\t$pdf = array(\r\n\t 'application/pdf'\r\n\t);\r\n\t\r\n\t$wordExcelPptx = array(\r\n\t 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\r\n\t 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\r\n\t 'application/vnd.openxmlformats-officedocument.presentationml.presentation',\r\n\t 'application/msword',\r\n\t 'application/vnd.ms-excel',\r\n\t 'application/vnd.ms-powerpoint'\r\n\t);\r\n\t\r\n\tif (in_array($fileType, $image)) {\r\n\t return \"image.png\";\r\n\t} elseif (in_array($fileType, $audio)) {\r\n\t return \"audio.png\";\r\n\t} elseif (in_array($fileType, $video)) {\r\n\t return \"video.png\";\r\n\t} elseif (in_array($fileType, $rarZip)) {\r\n\t return \"rarZip.png\";\r\n\t} elseif (in_array($fileType, $pdf)) {\r\n\t return \"pdf.png\";\r\n\t} elseif (in_array($fileType, $wordExcelPptx)) {\r\n\t return \"wordExcelPptx.png\";\r\n\t} else {\r\n\t return \"default.png\";\r\n\t}\r\n\t\r\n }", "public function getIconName(): ?string;", "public function getIcon(AbstractContent $content)\n {\n if (null === $property = $content->getProperty('iconized-by')) {\n return null;\n }\n\n return $this->parseProperty($content, $property);\n }", "public function get_icon() {\r\n\t\treturn 'eicon-price-table';\r\n\t}", "private function getDefaultIcon() {\n static $icon_map;\n if ($icon_map === null) {\n $types = PhabricatorPHIDType::getAllTypes();\n\n $map = array();\n foreach ($types as $type) {\n $icon = $type->getTypeIcon();\n if ($icon !== null) {\n $map[$type->getTypeConstant()] = $icon;\n }\n }\n\n $icon_map = $map;\n }\n\n $phid_type = phid_get_type($this->phid);\n if (isset($icon_map[$phid_type])) {\n return $icon_map[$phid_type];\n }\n\n return null;\n }", "public function getIcon() {\n\t\t//regex is used to check if there's a filename within the iconFile string\n\t\treturn preg_replace('/^.*\\/([^\\/]+\\.(gif|png))?$/i', '\\1', $this->iconFile) ? $this->iconFile : '';\n\t}", "public function get_icon() {\n return 'fa fa-plug';\n }" ]
[ "0.66001135", "0.65518945", "0.64381266", "0.64381266", "0.642488", "0.6412293", "0.6309743", "0.6261396", "0.6261396", "0.6261396", "0.6261396", "0.6261396", "0.6261396", "0.6261396", "0.62530684", "0.62530684", "0.6247234", "0.6213892", "0.619852", "0.619238", "0.619034", "0.6165955", "0.61331713", "0.61331713", "0.6130881", "0.6101781", "0.5975115", "0.59718007", "0.5966715", "0.5894906", "0.588398", "0.5864235", "0.585932", "0.5820465", "0.5818926", "0.5815077", "0.58076644", "0.58076644", "0.57998276", "0.57927704", "0.5774393", "0.5772719", "0.5769445", "0.57065815", "0.56975216", "0.5689477", "0.5680612", "0.56764656", "0.5664452", "0.5662678", "0.5662678", "0.56475073", "0.56374407", "0.56337357", "0.5605512", "0.5601249", "0.5596159", "0.5593613", "0.55632067", "0.55632067", "0.5555764", "0.55554354", "0.5537016", "0.55267006", "0.552098", "0.55124", "0.54998744", "0.5499148", "0.54976016", "0.5497303", "0.54966766", "0.5487345", "0.54853624", "0.54848796", "0.5484196", "0.5476931", "0.54531604", "0.5451449", "0.5451449", "0.54502827", "0.54502827", "0.5441901", "0.54345185", "0.54153293", "0.5413397", "0.53928745", "0.5387284", "0.53716177", "0.535641", "0.5355931", "0.53481895", "0.5340058", "0.5339505", "0.5332113", "0.5330703", "0.532737", "0.53134745", "0.5305161", "0.5304601", "0.52955097" ]
0.64015746
6
Get colors for all fields or generate it if not exists.
public static function getColors($fieldName, bool $numericKey = true) { $colors = []; foreach (static::getValues($fieldName) as $id => &$value) { $value['color'] = trim($value['color'] ?? '', " #\\s\t\n\r"); if (empty($value['color'])) { $color = \App\Colors::getRandomColor($id); } else { $color = '#' . $value['color']; } $colors[$numericKey ? $id : $value[$fieldName]] = $color; } return $colors; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFillColorsField()\n {\n return $this->fillColorsField;\n }", "public function getColor() {\n\n\t\t//return $query->rows;\n\t}", "protected function fetchColorsFromACF() : array\n {\n $settings = get_field('color_parameterizer');\n $leadingColor = $settings['leading_color'];\n $leadingColorHover = $settings['leading_color_hover'];\n\n return [\n 'leadingColor' =>\n !empty($leadingColor) ? $leadingColor : null,\n 'leadingColorHover' =>\n !empty($leadingColorHover) ? $leadingColorHover : null\n ];\n }", "public static function getColors()\n {\n $db = DataBase::connect();\n\n $result = $db->query('SELECT * FROM `color`');\n\n $colors = [];\n\n $i = 1;\n\n while($row = $result->fetch()) {\n $colors[$i]['color'] = $row['color'];\n $colors[$i]['ukr_title'] = $row['ukr_title'];\n $colors[$i]['upper_ukr_title'] = $row['upper_ukr_title'];\n $colors[$i]['default'] = $row['default'];\n\n $i++;\n }\n return $colors;\n }", "public function getColor() {}", "public function getColor() {}", "private function _getColorTable() {}", "public function processColor()\n {\n $colorCalculator = new Color(self::$_query);\n $data = $colorCalculator->processQuery();\n\n return $data;\n }", "public function getColorComponents() {}", "public function getColorComponents() {}", "public function getColorComponents() {}", "public function getColorComponents() {}", "public function getColorComponents() {}", "public function getColorComponents() {}", "public function getColorComponents() {}", "function colorList() {\n $colorArr = (new \\yii\\db\\Query())\n ->select(['color'])\n ->from('product_variation')\n ->where(['!=', 'color', ''])\n ->groupBy(['color'])\n ->all();\n return $colorArr;\n }", "public function colorList() {}", "function client_portal_get_theme_colors_gutenberg() {\n\n\t// Grab our ACF theme colors.\n\t$colors = client_portal_get_theme_colors();\n\n\tif ( ! $colors ) {\n\t\treturn array();\n\t}\n\n\tforeach ( $colors as $key => $color ) {\n\t\t$gutenberg_colors[] = array(\n\t\t\t'name' => esc_html( $key ),\n\t\t\t'slug' => sanitize_title( $key ),\n\t\t\t'color' => esc_attr( $color ),\n\t\t);\n\t}\n\n\treturn $gutenberg_colors;\n}", "function block_core_page_list_build_css_colors( $context ) {\n\t$colors = array(\n\t\t'css_classes' => array(),\n\t\t'inline_styles' => '',\n\t);\n\n\t// Text color.\n\t$has_named_text_color = array_key_exists( 'textColor', $context );\n\t$has_custom_text_color = isset( $context['style']['color']['text'] );\n\n\t// If has text color.\n\tif ( $has_custom_text_color || $has_named_text_color ) {\n\t\t// Add has-text-color class.\n\t\t$colors['css_classes'][] = 'has-text-color';\n\t}\n\n\tif ( $has_named_text_color ) {\n\t\t// Add the color class.\n\t\t$colors['css_classes'][] = sprintf( 'has-%s-color', $context['textColor'] );\n\t} elseif ( $has_custom_text_color ) {\n\t\t// Add the custom color inline style.\n\t\t$colors['inline_styles'] .= sprintf( 'color: %s;', $context['style']['color']['text'] );\n\t}\n\n\t// Background color.\n\t$has_named_background_color = array_key_exists( 'backgroundColor', $context );\n\t$has_custom_background_color = isset( $context['style']['color']['background'] );\n\n\t// If has background color.\n\tif ( $has_custom_background_color || $has_named_background_color ) {\n\t\t// Add has-background class.\n\t\t$colors['css_classes'][] = 'has-background';\n\t}\n\n\tif ( $has_named_background_color ) {\n\t\t// Add the background-color class.\n\t\t$colors['css_classes'][] = sprintf( 'has-%s-background-color', $context['backgroundColor'] );\n\t} elseif ( $has_custom_background_color ) {\n\t\t// Add the custom background-color inline style.\n\t\t$colors['inline_styles'] .= sprintf( 'background-color: %s;', $context['style']['color']['background'] );\n\t}\n\n\treturn $colors;\n}", "public function getColor();", "public function getColor();", "public function getColor();", "public function getColor();", "public function getColor() {\n\t}", "function build_attachment_colors()\n\t{\n\t\tglobal $ilance, $ilconfig, $show;\n\t\t$attachtypeextra = $cronlog = '';\n\t\t$colorlimit = 2; // todo: allow admin to define how many colors to extract! we set only 2 to be nice to db but less colors means less accuracy!\n\t\t\n\t\t($apihook = $ilance->api('build_attachment_colors_start')) ? eval($apihook) : false;\n\t\t\n\t\t$counter = 0;\n\t\t$sql = $ilance->db->query(\"\n\t\t\tSELECT *\n\t\t\tFROM \" . DB_PREFIX . \"attachment\n\t\t\tWHERE visible = '1'\n\t\t\t\tAND color = '0'\n\t\t\t\tAND (attachtype = 'itemphoto'$attachtypeextra)\n\t\t\t\tAND filehash != ''\n\t\t\tORDER BY attachid ASC\n\t\t\", 0, null, __FILE__, __LINE__);\n\t\tif ($ilance->db->num_rows($sql) > 0)\n\t\t{\n\t\t\twhile ($res = $ilance->db->fetch_array($sql, DB_ASSOC))\n\t\t\t{\n\t\t\t\t$filedata = $ilance->attachment_tools->fetch_attachment_rawdata($res, true);\n\t\t\t\tif (!empty($filedata))\n\t\t\t\t{\n\t\t\t\t\t$itemid = 0;\n\t\t\t\t\tif ($res['project_id'] > 0 AND $res['attachtype'] == 'itemphoto')\n\t\t\t\t\t{\n\t\t\t\t\t\t$itemid = $res['project_id'];\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($apihook = $ilance->api('build_attachment_colors_else')) ? eval($apihook) : false;\n\t\t\t\t\t}\n\t\t\t\t\t$filename = DIR_TMP . $res['filehash'] . '.attach';\n\t\t\t\t\tif (file_exists($filename))\n\t\t\t\t\t{\n\t\t\t\t\t\t@unlink($filename);\n\t\t\t\t\t}\n\t\t\t\t\tif ($temphandle = @fopen($filename, 'wb'))\n\t\t\t\t\t{\n\t\t\t\t\t\t$i = 1;\n\t\t\t\t\t\t@fwrite($temphandle, $filedata);\n\t\t\t\t\t\t@fclose($temphandle);\n\t\t\t\t\t\t$ilance->db->query(\"\n\t\t\t\t\t\t\tUPDATE \" . DB_PREFIX . \"attachment\n\t\t\t\t\t\t\tSET color = '1'\n\t\t\t\t\t\t\tWHERE attachid = '\" . $res['attachid'] . \"'\n\t\t\t\t\t\t\tLIMIT 1\n\t\t\t\t\t\t\", 0, null, __FILE__, __LINE__);\n\t\t\t\t\t\t$colors = $this->fetch_colors($filename);\n\t\t\t\t\t\tforeach ($colors AS $color => $count)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif ($i <= $colorlimit)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$array = $this->fetch_relative_hue_name($color);\n\t\t\t\t\t\t\t\t$ilance->db->query(\"\n\t\t\t\t\t\t\t\t\tINSERT INTO \" . DB_PREFIX . \"attachment_color\n\t\t\t\t\t\t\t\t\t(colorid, attachid, project_id, color, count, relativecolor, relativetitle, relativefont)\n\t\t\t\t\t\t\t\t\tVALUES(\n\t\t\t\t\t\t\t\t\tNULL,\n\t\t\t\t\t\t\t\t\t'\" . $res['attachid'] . \"',\n\t\t\t\t\t\t\t\t\t'\" . $itemid . \"',\n\t\t\t\t\t\t\t\t\t'#\" . $ilance->db->escape_string(strtoupper($color)) . \"',\n\t\t\t\t\t\t\t\t\t'\" . intval($count) . \"',\n\t\t\t\t\t\t\t\t\t'\" . $ilance->db->escape_string($array[0]) . \"',\n\t\t\t\t\t\t\t\t\t'\" . $ilance->db->escape_string($array[1]) . \"',\n\t\t\t\t\t\t\t\t\t'\" . $ilance->db->escape_string($array[2]) . \"')\n\t\t\t\t\t\t\t\t\", 0, null, __FILE__, __LINE__);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$i++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@unlink($filename);\n\t\t\t\t\t\t$counter++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn \"$counter item pictures had the top $colorlimit major colors extracted and stored for searching by color\";\n\t}", "function all()\n\t{\n\t\t//get all elements (set the $elements variable with a Colors array)\n\t\treturn $this->db->all('color');\n\t}", "public static function colors()\n {\n $path = __DIR__ . '/output/colors_names.php';\n return file_exists($path) ? require $path : [];\n }", "function render_css() {\n\n\t\tforeach ( (array) $this->fields as $field ) {\n\n\t\t\t// new line field\n\t\t\tif ( isset( $field['newline'] ) ) {\n\t\t\t\t$this->render_block( $field, '' );\n\t\t\t\tcontinue;\n\t\t\t}\n\n\n\t\t\t// Continue when value in empty\n\t\t\tif ( ! isset( $field['value'] ) || $field['value'] === false || $field['value'] == '' ) {\n\t\t\t\tif ( empty( $field['force-callback-call'] ) ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$value = $field['value'];\n\n\t\t\tunset( $field['value'] );\n\n\t\t\t// Custom callbacks for generating CSS\n\t\t\tif ( isset( $field['callback'] ) ) {\n\n\t\t\t\tif ( is_string( $field['callback'] ) & is_callable( $field['callback'] ) ) {\n\t\t\t\t\tcall_user_func_array( $field['callback'], array( &$field, &$value ) );\n\t\t\t\t} elseif ( isset( $field['callback']['fun'] ) && is_callable( $field['callback']['fun'] ) ) {\n\n\t\t\t\t\t$args = array( &$field, &$value );\n\n\t\t\t\t\tif ( ! empty( $field['callback']['args'] ) ) {\n\t\t\t\t\t\t$args[] = $field['callback']['args'];\n\t\t\t\t\t}\n\n\t\t\t\t\tcall_user_func_array( $field['callback']['fun'], $args );\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tforeach ( (array) $field as $block ) {\n\t\t\t\tif ( is_array( $block ) ) {\n\t\t\t\t\t$this->render_block( $block, $value );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ( is_string( $this->final_css ) ) {\n\n\t\t\treturn $this->final_css;\n\t\t}\n\n\t\treturn isset( $this->final_css['css'] ) ? $this->final_css['css'] : '';\n\t}", "public function getColors()\n {\n return $this->colors;\n }", "public function getColorList()\n {\n return $this->colorList;\n }", "public function getColor(): string;", "function getColors($which = null){\n\t// Process to get real data, for this example\n\t// it is just a static array\n\t$colors = array(\n\t\t'responseMsg' \t=> setResponse(), \n\t\t'allColors' \t=> array('blue', 'green', 'black', 'white', 'yellow', 'red', 'beige')\n\t); \n\t\n\treturn $colors; \n}", "function register_custom_css( $fields ){\r\n\r\n return $fields;\r\n\r\n }", "function register_custom_css( $fields ) {\n\n\t\treturn $fields;\n\t}", "function register_custom_css( $fields ) {\n\n\t\treturn $fields;\n\t}", "function register_custom_css( $fields ) {\n\n\t\treturn $fields;\n\t}", "public function getColor()\n {\n }", "public function colors()\n {\n $section = self::$panel . '_colors';\n\n /**\n * Add Section and fields for Colors\n */\n Customizer::addSection($section, array(\n 'title' => esc_html__('Colors', 'stage'),\n 'description' => esc_html__('Set color settings for your website', 'stage'),\n 'priority' => 60,\n 'panel' => self::$panel,\n ));\n\n // Fields are calculated from ColorsPanel.php\n }", "public function getColorListAttribute()\n {\n $colors = $this->colors()->lists('name')->all();\n // retorno as tags separadas por uma virgula e um espaço.\n return $colors;\n }", "public function getColor1()\n {\n $sql = \"SELECT color_hex\n FROM site_color where site_color_id = 1\";\n\n $statement = $this->_dbh->prepare($sql);\n\n //$statement->bindParam(':color1', $color1);\n $statement->execute();\n //echo $statement;\n return $statement->fetchAll(PDO::FETCH_ASSOC);\n }", "public static function color()\n {\n return null;\n }", "public static function color()\n {\n return null;\n }", "public function has_external_fields_colors() {\n\t\tif ( ! tvd_has_external_fields_plugins() ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$external_fields = $this->get_all_external_fields();\n\n\t\treturn ! empty( $external_fields['color'] );\n\t}", "public function getColor2()\n {\n $sql = \"SELECT color_hex\n FROM site_color where site_color_id = 2\";\n\n $statement = $this->_dbh->prepare($sql);\n\n// $statement->bindParam(':color2', $color2);\n $statement->execute();\n return $statement->fetchAll(PDO::FETCH_ASSOC);\n }", "function get_all_colors()\n{\n\t$colors = array(\n\t\t\"000000\" => \"Black\",\n\t\t\"0000FF\" => \"Blue\",\n\t\t\"804000\" => \"Brown\",\n\t\t\"736F6E\" => \"Gray\",\n\t\t\"00FF00\" => \"Green\",\n\t\t\"FF8040\" => \"Orange\",\n\t\t\"FF00FF\" => \"Pink\",\n\t\t\"8E35EF\" => \"Purple\",\n\t\t\"FF0000\" => \"Red\",\n\t\t\"FFFF00\" => \"Yellow\",\n\t\t\"FFFFFF\" => \"White\",\n\t);\n\treturn $colors;\n}", "public function colors()\n {\n return $this->morphToMany(Color::class, 'color_able');\n }", "public function getColor3()\n {\n $sql = \"SELECT color_hex\n FROM site_color where site_color_id = 3\";\n\n $statement = $this->_dbh->prepare($sql);\n\n// $statement->bindParam(':color3', $color3);\n $statement->execute();\n return $statement->fetchAll(PDO::FETCH_ASSOC);\n }", "function generateColor($data) {\n\t\n\t// Result will be held in an array\n\t$result = array();\n\t\n\t// Assign user input to variables\n\t$result['name'] = $data->name;\n\t$result['type'] = $data->type;\n\t\n\t// If user selected a solid\n\tif ($result['type'] == \"Solid\") {\n\n\t\t$rand = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f');\n\t\t$result['color_1'] = '#'.$rand[rand(0,15)].$rand[rand(0,15)].$rand[rand(0,15)].$rand[rand(0,15)].$rand[rand(0,15)].$rand[rand(0,15)];\n\t\n\t// Else user selected a gradient\n\t} else {\n\n\t\t$rand = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f');\n\t\t$result['color_1'] = '#'.$rand[rand(0,15)].$rand[rand(0,15)].$rand[rand(0,15)].$rand[rand(0,15)].$rand[rand(0,15)].$rand[rand(0,15)];\n\t\t$result['color_2'] = '#'.$rand[rand(0,15)].$rand[rand(0,15)].$rand[rand(0,15)].$rand[rand(0,15)].$rand[rand(0,15)].$rand[rand(0,15)];\n\t\t\n\t}\n\t\n\t// Return the result array\n\treturn $result;\n\t\n}", "function _field_colorpicker($fval) \n {\n\n $this->attribs['size'] = 7;\n $res = $this->_field_text($fval);\n\n $name = $this->fname;\n\n $res .= sprintf(\"<span id=\\\"swatch_%s\\\" style=\\\"border: 2px solid black; background-color: %s\\\">\n <a href=\\\"#\\\" onclick=\\\"cp_displayToggle('palette_%s'); return false;\\\" style=\\\"text-decoration:none\\\">\n &nbsp;&nbsp;&nbsp;&nbsp;</a></span>\",\n $name, $fval, $name);\n $res .= <<<EOJS\n <div id=\"palette_$name\" style=\"display:none; position: absolute; z-index: 11; background: #ddd;\">\n <script type=\"text/javascript\">\n document.forms[0].$name.onchange = function () { document.getElementById('swatch_$name').style.background = this.value }\n\n var total = colors.length;\n var width = 18;\n var cp_contents = \"\";\n cp_contents += '<table border=\\\"0\\\" cellspacing=\\\"2\\\" cellpadding=\\\"0\\\">';\n var use_highlight = (document.getElementById || document.all)?true:false;\n for (var i=0; i<total; i++) {\n if ((i % width) == 0) { cp_contents += \"<tr>\"; }\n if (use_highlight) { var mo = 'onMouseOver=\"cp_highlightColor(\\''+colors[i]+'\\',\\'$name\\')\"'; }\n else { mo = \"\"; }\n cp_contents += '<td bgcolor=\"'+colors[i]+'\"><span style=\"font-size:0.75em\"><a href=\"#\" onclick=\"cp_selectColor(\\''+colors[i]+'\\',\\'$name\\');return false;\" '+mo+' style=\"text-decoration:none;\">&nbsp;&nbsp;&nbsp;</a></span></td>';\n if ( ((i+1)>=total) || (((i+1) % width) == 0)) { \n cp_contents += \"</tr>\";\n }\n }\n\n if (document.getElementById) {\n cp_contents += '<tr><td colspan=\"'+width+'\">';\n cp_contents += '<div style=\"width:48%; border: 1px solid #ddd; float: left; background-color: #fff\" id=\"cp_SelectedColor_$name\">&nbsp;</div>';\n cp_contents += '<div style=\"width:48%; border: 1px solid #ddd; float: right; background-color: #fff\" id=\"cp_SelectedColorValue_$name\">#ffffff</div>';\n cp_contents += '</td></tr>';\n }\n cp_contents += \"</table>\";\n document.write(cp_contents);\n\n </script>\n </div>\nEOJS;\n return $res;\n }", "function fielding_acf_populate_facts_color_option( $field ) {\n\t$field['choices'] = array(\n\t\t'purple' => 'Purple',\n\t\t'orange' => 'Orange',\n\t\t'red' => 'Red',\n\t\t'teal' => 'Teal',\n\t);\n\n\treturn $field;\n}", "function timezonecalculator_get_admin_colors() {\r\n\r\n\t/*\r\n\tdefault colors = fresh\r\n\t*/\r\n\r\n\t$available_admin_colors=array(\"fresh\" => array(\"#464646\", \"#6D6D6D\", \"#F1F1F1\", \"#DFDFDF\"), \"classic\" => array(\"#073447\", \"#21759B\", \"#EAF3FA\", \"#BBD8E7\") );\r\n\r\n\t$current_color = get_user_option('admin_color');\r\n\tif (strlen($current_color)<1)\r\n\t\t$current_color=\"fresh\";\r\n\r\n\t/*\r\n\tinclude user-defined color schemes\r\n\t*/\r\n\r\n\t$timezonecalculator_available_admin_colors = apply_filters('timezonecalculator_available_admin_colors', array());\r\n\r\n\tif (!empty($timezonecalculator_available_admin_colors) && is_array($timezonecalculator_available_admin_colors))\r\n\t\tforeach($timezonecalculator_available_admin_colors as $key => $available_admin_color)\r\n\t\t\tif (is_array($available_admin_color) && sizeof($available_admin_color)==4)\r\n\t\t\t\tif (!array_key_exists($key, $available_admin_colors))\r\n\t\t\t\t\t$available_admin_colors[$key]=$timezonecalculator_available_admin_colors[$key];\r\n\r\n\tif (!array_key_exists($current_color, $available_admin_colors))\r\n\t\treturn $available_admin_colors[\"fresh\"];\r\n\telse\r\n\t\treturn $available_admin_colors[$current_color];\r\n}", "function wds_acf_blocks_acf_load_color_picker_field_choices( $field ) {\n\n\t// Reset choices.\n\t$field['choices'] = array();\n\n\t// Grab our colors array.\n\t$colors = wds_acf_blocks_get_theme_colors();\n\n\t// Loop through colors.\n\tforeach ( $colors as $key => $color ) {\n\n\t\t// Create display markup.\n\t\t$color_output = '<div style=\"display: flex; align-items: center;\"><span style=\"background-color:' . esc_attr( $color ) . '; border: 1px solid #ccc;display:inline-block; height: 15px; margin-right: 10px; width: 15px;\"></span>' . esc_html( $key ) . '</div>';\n\n\t\t// Set values.\n\t\t$field['choices'][ sanitize_title( $key ) ] = $color_output;\n\t}\n\n\t// Return the field.\n\treturn $field;\n}", "function getColor() {return $this->readColor();}", "private function getColors(): array\n {\n $colors = $this->website->getConfiguration()->getColors();\n $choices = [];\n foreach ($colors as $color) {\n if ($color->getCategory() === \"background\" && $color->getIsActive()) {\n $choices[$color->getAdminName()] = $color->getSlug();\n $this->colors[$color->getSlug()] = $color->getColor();\n }\n }\n return $choices;\n }", "function set_background_color_for_all_fields_all_pages($color){\n\t\tif( isset($_POST[$color]) ){\n\t\t\t$take_color = $_POST[$color];\n\t\t\tmajor_class::select_background_color_for_all_fields_all_pages($take_color);\n\t\t}\n\t}", "public function getColor()\n {\n if (array_key_exists(\"color\", $this->_propDict)) {\n return $this->_propDict[\"color\"];\n } else {\n return null;\n }\n }", "public function index()\n {\n return Color::all();\n }", "function getColor() { return $this->readColor(); }", "function getColor() { return $this->_color; }", "function set_font_color_for_all_fields_in_all_pages($color){\n\t\tif( isset($_POST[$color]) ){\n\t\t\t$take_color = $_POST[$color];\n\t\t\tmajor_class::select_font_color_for_all_fields_all_pages($take_color);\n\t\t}\n\t}", "function getColor() { return $this->_color; }", "function getColor() { return $this->_color; }", "public function post_rating_colors()\n\t{\n\t\t\n\t\t$query = $this->db->query(\"SELECT `average`, `color` FROM `post_rating_colors`\");\n\t\t\n\t\t// echo $this->db->last_query();\n\t\t// print_r($query->result_array()\t);\n\t\t// die();\n\t\tif ($query->num_rows() > 0)\n\t\t{\n\t\t\t$all_colors = array();\n\t\t\tforeach ($query->result_array() as $value) {\n\t\t\t\t$all_colors[$value['average']] = $value['color'];\n\t\t\t}\n\t\t\treturn $all_colors;\n\t\t}\n\t}", "public function getPaletteColors($id){\n $palette = Palette::find($id);\n return $palette -> colors;\n }", "function get_primary_colors() {\n $colors = array(\n 'ff0000' => 'Red',\n '00ff00' => 'Green',\n '0000ff' => 'Blue',\n );\n $temp = array();\n foreach($colors as $k => $v) {\n $temp[] = '\"'.$k.'\", '.'\"'.$v.'\"';\n }\n return join(', ', $temp);\n}", "public function getBackgroundColor() {}", "public function getBackgroundColor() {}", "public function getBackgroundColor() {}", "public function setFillColorsField($field)\n {\n $this->fillColorsField = (string) $field;\n \n return $this;\n }", "public function getColor() {\n //Busca en esta clase la propiedad x\n return $this->color;\n }", "function getColor(){\n\t\treturn $this->color_ficha;\n\t}", "public function color()\n {\n $color = $this->customer->color;\n\n $r = substr($color, 1, 2);\n $g = substr($color, 3, 2);\n $b = substr($color, 5, 2);\n $luma = (float)0.2126 * hexdec($r)\n + 0.7152 * hexdec($g)\n + 0.0722 * hexdec($b);\n\n return ['color' => $this->customer->color, 'luma' => $luma];\n }", "public function getColor(): string\n {\n }", "function block_core_home_link_build_css_colors($context)\n {\n }", "public function getColor()\n {\n return $this->color ?? $this->defaultColor;\n }", "public function getColor()\n {\n // Busca en esta clase la propiedad X\n return $this->color;\n }", "public function colorField($value) {\n return $this->setProperty('colorField', $value);\n }", "public function colorField($value) {\n return $this->setProperty('colorField', $value);\n }", "function getColor($id)\n{\n $sql = \"SELECT * FROM colors WHERE id = '\" . sql_escape($id) . \"'\";\n $row = fetchOne($sql);\n return !empty($row) ? $row['name'] : null;\n}", "public function getColor()\n{\nreturn $this->color;\n}", "function getColor(){\n\t\t# Like this: Array ( [red] => 255 [green] => 255 [blue] => 255 )\n\t\t# You could then use it with the setRGB function (See class.rgbcontrol.php for that.)\n\t\t# Simple usage is $led->setRBG($dbh->getColor());\n\n\t\t$pdo = $this->db->prepare(\"SELECT red,green,blue FROM colors ORDER BY cID DESC LIMIT 1\");\n\t\t$pdo->execute();\n\n\t\treturn $pdo->fetch();\n\t}", "public function print_form_styles() {\n\n\t\tif ( empty( $this->form_data['settings']['conversational_forms_color_scheme'] ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$color = \\sanitize_hex_color( $this->form_data['settings']['conversational_forms_color_scheme'] );\n\n\t\tif ( empty( $color ) ) {\n\t\t\t$color = '#448ccb';\n\t\t}\n\n\t\t$min = \\wpforms_get_min_suffix();\n\n\t\tswitch ( $color ) {\n\t\t\tcase '#448ccb':\n\t\t\t\t$theme = 'color-scheme-blue';\n\t\t\t\tbreak;\n\t\t\tcase '#1a3c5a':\n\t\t\t\t$theme = 'color-scheme-dark_blue';\n\t\t\t\tbreak;\n\t\t\tcase '#4aa891':\n\t\t\t\t$theme = 'color-scheme-teal';\n\t\t\t\tbreak;\n\t\t\tcase '#9178b3':\n\t\t\t\t$theme = 'color-scheme-purple';\n\t\t\t\tbreak;\n\t\t\tcase '#cccccc':\n\t\t\t\t$theme = 'color-scheme-light';\n\t\t\t\tbreak;\n\t\t\tcase '#363636':\n\t\t\t\t$theme = 'color-scheme-dark';\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$theme = '';\n\t\t}\n\n\t\tif ( ! $theme ) {\n\t\t\trequire \\plugin_dir_path( WPFORMS_CONVERSATIONAL_FORMS_FILE ) . 'templates/dynamic-color-scheme-styles.php';\n\t\t\treturn;\n\t\t}\n\n\t\t\\wp_enqueue_style(\n\t\t\t\"wpforms-conversational-forms-{$theme}\",\n\t\t\t\\wpforms_conversational_forms()->url . \"assets/css/color-schemes/{$theme}{$min}.css\",\n\t\t\tarray( 'wpforms-conversational-forms' ),\n\t\t\t\\WPFORMS_CONVERSATIONAL_FORMS_VERSION\n\t\t);\n\t}", "public function getColor()\n {\n return $this->color;\n }", "public function getColor()\n {\n return\"Yellow\";\n }", "function block_core_page_list_build_css_colors($attributes, $context)\n {\n }", "public function generate_custom_color_variables( $context = null ) {\n\n\t\t$theme_css = 'editor' === $context ? ':root .editor-styles-wrapper{' : ':root{';\n\t\t$background_color = get_theme_mod( 'background_color', 'D1E4DD' );\n\n\t\tif ( 'd1e4dd' !== strtolower( $background_color ) ) {\n\t\t\t$theme_css .= '--global--color-background: #' . $background_color . ';';\n\t\t\t$theme_css .= '--global--color-primary: ' . $this->custom_get_readable_color( $background_color ) . ';';\n\t\t\t$theme_css .= '--global--color-secondary: ' . $this->custom_get_readable_color( $background_color ) . ';';\n\t\t\t$theme_css .= '--button--color-background: ' . $this->custom_get_readable_color( $background_color ) . ';';\n\t\t\t$theme_css .= '--button--color-text-hover: ' . $this->custom_get_readable_color( $background_color ) . ';';\n\n\t\t\tif ( '#fff' === $this->custom_get_readable_color( $background_color ) ) {\n\t\t\t\t$theme_css .= '--table--stripes-border-color: rgba(240, 240, 240, 0.15);';\n\t\t\t\t$theme_css .= '--table--stripes-background-color: rgba(240, 240, 240, 0.15);';\n\t\t\t}\n\t\t}\n\n\t\t$theme_css .= '}';\n\n\t\treturn $theme_css;\n\t}", "public function get_customizer_color_vars() {\n\n\t\t$colors = [\n\t\t\t'content' => [\n\t\t\t\t'setting' => 'background_color',\n\t\t\t],\n\t\t\t'header-footer' => [\n\t\t\t\t'setting' => 'header_footer_background_color',\n\t\t\t],\n\t\t];\n\t\treturn $colors;\n\t}", "static function custom_get_creatable_fields() {\n # use this functionality to get a list of all field in the table\n return self::default_get_updatable_fields();\n }", "public function colorsCombo()\n\t{\n\t\t$colors = getSetting('good_colors');\n\t\t$array = [];\n\t\tif(!$colors or !is_array($colors)) {\n\t\t\treturn [];\n\t\t}\n\n\t\tforeach($colors as $color) {\n\t\t\t$array[] = [$color, trans(\"colors.$color\")];\n\t\t}\n\n\t\treturn $array;\n\t}", "public static function write_color_css()\n {\n $settings = self::get_settings();\n $colors = $settings['colors'];\n\n $css = \".color_primary_color, .children_color_primary_color>*, .active_color_primary_color:active, .focus_color_primary_color:focus, .visited_color_primary_color:visited, .hover_color_primary_color:hover, .children_hover_color_primary_color:hover>*, .pseudo_color_primary_color:before, .pseudo_color_primary_color:after {color: \".\n $colors['primary_color']\n .\";} .color_secondary_color, .children_color_secondary_color>*, .active_color_secondary_color:active, .focus_color_secondary_color:focus, .visited_color_secondary_color:visited, .hover_color_secondary_color:hover, .children_hover_color_secondary_color:hover>*, .pseudo_color_secondary_color:before, .pseudo_color_secondary_color:after {color: \".\n $colors['secondary_color']\n .\";} a:hover, .color_accent_color, .children_color_accent_color>*, .active_color_accent_color:active, .focus_color_accent_color:focus, .visited_color_accent_color:visited, .hover_color_accent_color:hover, .children_hover_color_accent_color:hover>*, .pseudo_color_accent_color:before, .pseudo_color_accent_color:after {color: \".\n $colors['accent_color']\n .\";} .color_background_one, .children_color_background_one>*, .active_color_background_one:active, .focus_color_background_one:focus, .visited_color_background_one:visited, .hover_color_background_one:hover, .children_hover_color_background_one:hover>*, .pseudo_color_background_one:before, .pseudo_color_background_one:after {color: \".\n $colors['background_one']\n .\";} .color_background_two, .children_color_background_two>*, .active_color_background_two:active, .focus_color_background_two:focus, .visited_color_background_two:visited, .hover_color_background_two:hover, .children_hover_color_background_two:hover>*, .pseudo_color_background_two:before, .pseudo_color_background_two:after {color: \".\n $colors['background_two']\n .\";} .color_backdrop, .children_color_backdrop>*, .active_color_backdrop:active, .focus_color_backdrop:focus, .visited_color_backdrop:visited, .hover_color_backdrop:hover, .children_hover_color_backdrop:hover>*, .pseudo_color_backdrop:before, .pseudo_color_backdrop:after {color: \".\n $colors['backdrop']\n .\";} .color_text_color, .children_color_text_color>*, .active_color_text_color:active, .focus_color_text_color:focus, .visited_color_text_color:visited, .hover_color_text_color:hover, .children_hover_color_text_color:hover>*, .pseudo_color_text_color:before, .pseudo_color_text_color:after {color: \".\n $colors['text_color']\n .\";} h1, h2, .color_header_text_color, .children_color_header_text_color>*, .active_color_header_text_color:active, .focus_color_header_text_color:focus, .visited_color_header_text_color:visited, .hover_color_header_text_color:hover, .children_hover_color_header_text_color:hover>*, .pseudo_color_header_text_color:before, .pseudo_color_header_text_color:after {color: \".\n $colors['header_text_color']\n .\";} a, .color_link_text_color, .children_color_link_text_color>*, .active_color_link_text_color:active, .focus_color_link_text_color:focus, .visited_color_link_text_color:visited, .hover_color_link_text_color:hover, .children_hover_color_link_text_color:hover>*, .pseudo_color_link_text_color:before, .pseudo_color_link_text_color:after {color: \".\n $colors['link_text_color']\n .\";} .color_contrast_text_color, .children_color_contrast_text_color>*, .active_color_contrast_text_color:active, .focus_color_contrast_text_color:focus, .visited_color_contrast_text_color:visited, .hover_color_contrast_text_color:hover, .children_hover_color_contrast_text_color:hover>*, .pseudo_color_contrast_text_color:before, .pseudo_color_contrast_text_color:after {color: \".\n $colors['contrast_text_color']\n .\";} .pseudo_background_primary_color:before, .pseudo_background_primary_color:after, .hover_background_primary_color:hover, .children_hover_background_primary_color:hover>*, .active_background_primary_color:active, .focus_background_primary_color:focus, .visited_background_primary_color:visited, .background_primary_color, .children_background_primary_color>* {background-color: \".\n $colors['primary_color']\n .\";} a:before, a:after, .pseudo_background_secondary_color:before, .pseudo_background_secondary_color:after, .hover_background_secondary_color:hover, .children_hover_background_secondary_color:hover>*, .active_background_secondary_color:active, .focus_background_secondary_color:focus, .visited_background_secondary_color:visited, .background_secondary_color, .children_background_secondary_color>* {background-color: \".\n $colors['secondary_color']\n .\";} .pseudo_background_accent_color:before, .pseudo_background_accent_color:after, .hover_background_accent_color:hover, .children_hover_background_accent_color:hover>*, .active_background_accent_color:active, .focus_background_accent_color:focus, .visited_background_accent_color:visited, .background_accent_color, .children_background_accent_color>* {background-color: \".\n $colors['accent_color']\n .\";} .pseudo_background_background_one:before, .pseudo_background_background_one:after, .hover_background_background_one:hover, .children_hover_background_background_one:hover>*, .active_background_background_one:active, .focus_background_background_one:focus, .visited_background_background_one:visited, .background_background_one, .children_background_background_one>* {background-color: \".\n $colors['background_one']\n .\";} .pseudo_background_background_two:before, .pseudo_background_background_two:after, .hover_background_background_two:hover, .children_hover_background_background_two:hover>*, .active_background_background_two:active, .focus_background_background_two:focus, .visited_background_background_two:visited, .background_background_two, .children_background_background_two>* {background-color: \".\n $colors['background_two']\n .\";} .pseudo_background_backdrop:before, .pseudo_background_backdrop:after, .hover_background_backdrop:hover, .children_hover_background_backdrop:hover>*, .active_background_backdrop:active, .focus_background_backdrop:focus, .visited_background_backdrop:visited, .background_backdrop, .children_background_backdrop>* {background-color: \".\n $colors['backdrop']\n .\";} .pseudo_background_text_color:before, .pseudo_background_text_color:after, .hover_background_text_color:hover, .children_hover_background_text_color:hover>*, .active_background_text_color:active, .focus_background_text_color:focus, .visited_background_text_color:visited, .background_text_color, .children_background_text_color>* {background-color: \".\n $colors['text_color']\n .\";} .pseudo_background_header_text_color:before, .pseudo_background_header_text_color:after, .hover_background_header_text_color:hover, .children_hover_background_header_text_color:hover>*, .active_background_header_text_color:active, .focus_background_header_text_color:focus, .visited_background_header_text_color:visited, .background_header_text_color, .children_background_header_text_color>* {background-color: \".\n $colors['header_text_color']\n .\";} .pseudo_background_link_text_color:before, .pseudo_background_link_text_color:after, .hover_background_link_text_color:hover, .children_hover_background_link_text_color:hover>*, .active_background_link_text_color:active, .focus_background_link_text_color:focus, .visited_background_link_text_color:visited, .background_link_text_color, .children_background_link_text_color>* {background-color: \".\n $colors['link_text_color']\n .\";} .pseudo_background_contrast_text_color:before, .pseudo_background_contrast_text_color:after, .hover_background_contrast_text_color:hover, .children_hover_background_contrast_text_color:hover>*, .active_background_contrast_text_color:active, .focus_background_contrast_text_color:focus, .visited_background_contrast_text_color:visited, .background_contrast_text_color, .children_background_contrast_text_color>* {background-color: \".\n $colors['contrast_text_color']\n .\";} .border_primary_color, .hover_border_primary_color:hover, .focus_border_primary_color:focus, .active_border_primary_color:active, .visited_border_primary_color:visited, .children_border_primary_color>*, .children_hover_border_primary_color:hover>*, .pseudo_border_primary_color:before, .pseudo_border_primary_color:after {border-color: \".\n $colors['primary_color']\n .\";} .border_secondary_color, .hover_border_secondary_color:hover, .focus_border_secondary_color:focus, .active_border_secondary_color:active, .visited_border_secondary_color:visited, .children_border_secondary_color>*, .children_hover_border_secondary_color:hover>*, .pseudo_border_secondary_color:before, .pseudo_border_secondary_color:after {border-color: \".\n $colors['secondary_color']\n .\";} .border_accent_color, .hover_border_accent_color:hover, .focus_border_accent_color:focus, .active_border_accent_color:active, .visited_border_accent_color:visited, .children_border_accent_color>*, .children_hover_border_accent_color:hover>*, .pseudo_border_accent_color:before, .pseudo_border_accent_color:after {border-color: \".\n $colors['accent_color']\n .\";} .border_background_one, .hover_border_background_one:hover, .focus_border_background_one:focus, .active_border_background_one:active, .visited_border_background_one:visited, .children_border_background_one>*, .children_hover_border_background_one:hover>*, .pseudo_border_background_one:before, .pseudo_border_background_one:after {border-color: \".\n $colors['background_one']\n .\";} .border_background_two, .hover_border_background_two:hover, .focus_border_background_two:focus, .active_border_background_two:active, .visited_border_background_two:visited, .children_border_background_two>*, .children_hover_border_background_two:hover>*, .pseudo_border_background_two:before, .pseudo_border_background_two:after {border-color: \".\n $colors['background_two']\n .\";} .border_backdrop, .hover_border_backdrop:hover, .focus_border_backdrop:focus, .active_border_backdrop:active, .visited_border_backdrop:visited, .children_border_backdrop>*, .children_hover_border_backdrop:hover>*, .pseudo_border_backdrop:before, .pseudo_border_backdrop:after {border-color: \".\n $colors['backdrop']\n .\";} .border_text_color, .hover_border_text_color:hover, .focus_border_text_color:focus, .active_border_text_color:active, .visited_border_text_color:visited, .children_border_text_color>*, .children_hover_border_text_color:hover>*, .pseudo_border_text_color:before, .pseudo_border_text_color:after {border-color: \".\n $colors['text_color']\n .\";} .border_header_text_color, .hover_border_header_text_color:hover, .focus_border_header_text_color:focus, .active_border_header_text_color:active, .visited_border_header_text_color:visited, .children_border_header_text_color>*, .children_hover_border_header_text_color:hover>*, .pseudo_border_header_text_color:before, .pseudo_border_header_text_color:after {border-color: \".\n $colors['header_text_color']\n .\";} .border_link_text_color, .hover_border_link_text_color:hover, .focus_border_link_text_color:focus, .active_border_link_text_color:active, .visited_border_link_text_color:visited, .children_border_link_text_color>*, .children_hover_border_link_text_color:hover>*, .pseudo_border_link_text_color:before, .pseudo_border_link_text_color:after {border-color: \".\n $colors['link_text_color']\n .\";} .border_contrast_text_color, .hover_border_contrast_text_color:hover, .focus_border_contrast_text_color:focus, .active_border_contrast_text_color:active, .visited_border_contrast_text_color:visited, .children_border_contrast_text_color>*, .children_hover_border_contrast_text_color:hover>*, .pseudo_border_contrast_text_color:before, .pseudo_border_contrast_text_color:after {border-color: \".\n $colors['contrast_text_color']\n .\";}\";\n\n $admin_css = \"#adminmenu, #adminmenu .wp-submenu, #adminmenuback, #adminmenuwrap, #wpadminbar { background-color: \".\n $colors['primary_color']\n .\"; } a, #adminmenu li.menu-top:hover, #adminmenu li.opensub>a.menu-top, #adminmenu li>a.menu-top:focus, #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, #adminmenu a:hover, .components-button.is-link, #adminmenu .wp-submenu a:hover, #adminmenu a:hover { color: \".\n $colors['link_text_color']\n .\"; } #wpadminbar .ab-top-menu > li.hover > .ab-item, #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, #adminmenu div.wp-menu-image::before, #wpadminbar #adminbarsearch::before, #wpadminbar .ab-icon::before, #wpadminbar .ab-item::before, #adminmenu .wp-submenu a:focus, #adminmenu li.menu-top > a:focus { color: \".\n $colors['secondary_color']\n .\"; } #wpadminbar .ab-top-menu > li.hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, #adminmenu div.wp-menu-image::before:hover, #wpadminbar #adminbarsearch::before:hover, #wpadminbar .ab-icon::before:hover, #wpadminbar .ab-item::before:hover, a:active, a:hover, #adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover, #adminmenu a:hover, #adminmenu li.menu-top > a:focus, .components-button.is-link:active, .components-button.is-link:hover { color: \".\n $colors['accent_color']\n .\"; } a:active, a:hover, #adminmenu li a:focus div.wp-menu-image:before, #adminmenu li.opensub div.wp-menu-image:before, #adminmenu li:hover div.wp-menu-image:before, #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover>a, #wpadminbar .quicklinks .menupop ul li a:focus, #wpadminbar .quicklinks .menupop ul li a:focus strong, #wpadminbar .quicklinks .menupop ul li a:hover, #wpadminbar .quicklinks .menupop ul li a:hover strong, #wpadminbar .quicklinks .menupop.hover ul li a:focus, #wpadminbar .quicklinks .menupop.hover ul li a:hover, #wpadminbar .quicklinks .menupop.hover ul li div[tabindex]:focus, #wpadminbar .quicklinks .menupop.hover ul li div[tabindex]:hover, #wpadminbar li #adminbarsearch.adminbar-focused:before, #wpadminbar li .ab-item:focus .ab-icon:before, #wpadminbar li .ab-item:focus:before, #wpadminbar li a:focus .ab-icon:before, #wpadminbar li.hover .ab-icon:before, #wpadminbar li.hover .ab-item:before, #wpadminbar li:hover #adminbarsearch:before, #wpadminbar li:hover .ab-icon:before, #wpadminbar li:hover .ab-item:before, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, #collapse-button:focus, #collapse-button:hover { color: \".\n $colors['accent_color']\n .\"; } h1, h2, h3 { color: \".\n $colors['header_text_color']\n .\"; } body, .components-panel__header { background-color: \".\n $colors['backdrop']\n .\"; color: \".\n $colors['text_color']\n .\"; } .components-panel__header { border-color: transparent; } .edit-post-sidebar__panel-tab.is-active, .components-button.is-primary:focus:not(:disabled):not([aria-disabled='true']), .components-button.is-primary:hover { border-color: transparent; } .alternate, .striped>tbody>:nth-child(odd), ul.striped>:nth-child(odd), #lsp-form>section, .edit-post-sidebar, .try-gutenberg-panel, .welcome-panel, .postbox { background-color: \".\n $colors['background_two']\n .\"; } .wrap .page-title-action:focus { color: \".\n $colors['secondary_color']\n .\"; background-color: \".\n $colors['background_two']\n .\"; box-shadow: \".\n $colors['secondary_color']\n .\"; } .split-page-title-action a, .split-page-title-action a:active, .split-page-title-action .expander:after, .wrap .add-new-h2, .wrap .add-new-h2:active, .wrap .page-title-action, .wrap .page-title-action:active { color: \".\n $colors['secondary_color']\n .\"; background-color: \".\n $colors['background_two']\n .\"; } .split-page-title-action a:hover, .split-page-title-action .expander:hover:after, .components-button.is-primary:focus:not(:disabled):not([aria-disabled='true']), .components-button.is-primary:hover, .wp-core-ui .button-primary:hover { background-color: \".\n $colors['secondary_color']\n .\"; color: \".\n $colors['background_two']\n .\"; } .components-button.is-primary:hover, .wp-core-ui .button-primary:hover { border-color: transparent; background-color: \".\n $colors['accent_color']\n .\"; } .split-page-title-action a:focus, .split-page-title-action .expander:focus:after { border-color: transparent; box-shadow: \".\n $colors['secondary_color']\n .\"; color: \".\n $colors['background_two']\n .\"; } #adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head, #adminmenu .wp-menu-arrow, #adminmenu .wp-menu-arrow div, #adminmenu li.current a.menu-top, #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, .folded #adminmenu li.current.menu-top, .folded #adminmenu li.wp-has-current-submenu { color: \".\n $colors['background_one']\n .\"; } .components-button.is-primary, .wp-core-ui .button-primary { border-color: transparent; background-color: \".\n $colors['secondary_color']\n .\"; color: \".\n $colors['background_one']\n .\"; }\";\n\n $colors_json = \"{\\\"primary_color\\\":\\\"\".\n $colors['primary_color']\n .\"\\\",\\\"secondary_color\\\":\\\"\".\n $colors['secondary_color']\n .\"\\\",\\\"accent_color\\\":\\\"\".\n $colors['accent_color']\n .\"\\\",\\\"background_one\\\":\\\"\".\n $colors['background_one']\n .\"\\\",\\\"background_two\\\":\\\"\".\n $colors['background_two']\n .\"\\\",\\\"backdrop\\\":\\\"\".\n $colors['backdrop']\n .\"\\\",\\\"text_color\\\":\\\"\".\n $colors['text_color']\n .\"\\\",\\\"header_text_color\\\":\\\"\".\n $colors['header_text_color']\n .\"\\\",\\\"link_text_color\\\":\\\"\".\n $colors['link_text_color']\n .\"\\\",\\\"contrast_text_color\\\":\\\"\".\n $colors['contrast_text_color']\n .\"\\\"}\";\n if (!file_exists(lsp_global_assets()['path'])) {\n mkdir(lsp_global_assets()['path']);\n }\n file_put_contents(lsp_global_assets()['path'].'/colors.css', $css);\n file_put_contents(lsp_global_assets()['path'].'/admin-colors.css', $admin_css);\n file_put_contents(lsp_global_assets()['path'].'/colors.json', $colors_json);\n }", "public function formatFields($fields) {\n\n $templateFields = collect($fields);\n\n // Get sections first\n $sections = $templateFields->unique('section')->map(function ($section) {\n return $section['section'];\n });\n\n // Labels for web icons\n $icons = [\n 'Body' => 'view_quilt',\n 'Header' => 'view_stream',\n 'Main' => 'view_headline',\n 'Footer' => 'view_stream'\n ];\n\n $array = [];\n\n $sections->each(function ($item) use ($templateFields, $icons, &$array) {\n\n // Get field elements that are not connected with anything and match this section\n $parentFields = $templateFields->filter(function ($field) use ($item) {\n return !isset($field['connectedWith']) && $field['section'] == $item;\n });\n\n $array[$item]['id'] = str_random(10);\n $array[$item]['section_title'] = $item;\n $array[$item]['icon'] = (isset($icons[$item]) ? $icons[$item] : false);\n\n // Set field-set to $array\n $array[$item]['fields'] = $parentFields->map(function($field, $key) use ($templateFields) {\n\n $parentFieldName = $field['name'];\n\n // Get children for the parent field\n $children = $templateFields->filter(function ($field) use ($parentFieldName) {\n return isset($field['connectedWith']) && $field['connectedWith'] == $parentFieldName;\n });\n\n // Handle multiple color fields, merge into one\n $children = $children->each(function ($index, $key) use (&$children) {\n\n if (count($children) > 1 && $children[$key]['type'] == 'color') {\n\n $children->except($key)->each(function($secondChild, $secondChildKey) use ($key, &$children) {\n if (isset($secondChild['type']) && $secondChild['type'] == 'color' && key($secondChild) != $key) {\n // Set up array if it hasn't been done yet\n if (isset($children[$key]['type']) && $children[$key]['type'] == 'color') {\n $children[$key] = [\n 'type' => 'multipleColor',\n 'attributes' => $children[$key]['attributes'],\n 'colorPickerPosition' => (isset($children[$key]['colorPickerPosition']) ? $children[$key]['colorPickerPosition'] : ''),\n 'value' => [$children[$key]]\n ];\n }\n $children->forget($secondChildKey);\n\n $temp = $children[$key];\n $temp['attributes'] = array_merge($children[$key]['attributes'], $secondChild['attributes']);\n $temp['value'][] = $secondChild;\n\n $children[$key] = $temp;\n }\n });\n\n }\n return $children;\n });\n\n\n // Only sets 'children' variable when children are available\n if (count($children) > 0)\n $field['children'] = $children;\n\n return $field;\n });\n\n });\n\n return $array;\n }", "public function create_fields() {\n\t\tif ( count( $this->sections ) > 0 ) {\n\t\t\tforeach ( $this->fields as $k => $v ) {\n\t\t\t\t$method = $this->determine_method( $v, 'form' );\n\t\t\t\t$name = $v['name'];\n\t\t\t\tif ( $v['type'] == 'info' ) { $name = ''; }\n\t\t\t\tadd_settings_field( $k, $name, $method, $this->token, $v['section'], array( 'key' => $k, 'data' => $v ) );\n\n\t\t\t\t// Let the API know that we have a colourpicker field.\n\t\t\t\tif ( $v['type'] == 'range' && $this->_has_range == false ) { $this->_has_range = true; }\n\t\t\t}\n\t\t}\n\t}", "public function collectSchema() {\n\n $options = $this->getOptions();\n $path = get_template_directory() . $options['path'];\n\n // make sure that the color schema folder exsists\n if (!file_exists($path) || !is_dir($path)) {\n return; // just ignore \n }\n\n // register the new color schema\n $contents = new \\DirectoryIterator($path);\n foreach ($contents as $content) {\n if ($contents->isDot())\n continue;\n if ($contents->isDir()) {\n $name = $content->getFilename();\n $init = parse_ini_file($content->getPathname() . '/schema.ini');\n if (!is_array($init))\n trigger_error('Unbale Admin Color Schema Config File', E_USER_ERROR);\n\n $suffix = is_rtl() ? '-rtl' : '';\n $url = get_template_directory_uri()\n . $options['path']\n . '/'\n . $name\n . \"/colors{$suffix}.css\";\n\n wp_admin_css_color(\n $name\n , __(\n (isset($init['name']) && !empty($init['name'])) ?\n $init['name'] : $name\n , isset($init['domain']) && !empty($init['domain']) ?\n $init['domain'] : 'default'\n )\n , $url\n , isset($init['colors']) && is_array($init['colors']) ?\n $init['colors'] : array()\n , isset($init['icons']) && is_array($init['icons']) ?\n $init['icons'] : array()\n );\n }\n }\n }", "public function get_color() {\n $query = $this->db->get('color');\n if ($query->num_rows() > 0) {\n return $query->result();\n } else {\n return false;\n }\n }", "final private function setColors()\n {\n\n $systemColorFile = new PhingFile(Phing::getResourcePath(\"phing/listener/defaults.properties\"));\n\n try {\n $prop = new Properties();\n\n $prop->load($systemColorFile);\n\n $err = $prop->getProperty(\"HtmlColorLogger.ERROR_CLASS\");\n $warn = $prop->getProperty(\"HtmlColorLogger.WARNING_CLASS\");\n $info = $prop->getProperty(\"HtmlColorLogger.INFO_CLASS\");\n $verbose = $prop->getProperty(\"HtmlColorLogger.VERBOSE_CLASS\");\n $debug = $prop->getProperty(\"HtmlColorLogger.DEBUG_CLASS\");\n if ($err !== null) {\n $this->errColor = self::PREFIX . $err . self::SUFFIX;\n }\n if ($warn !== null) {\n $this->warnColor = self::PREFIX . $warn . self::SUFFIX;\n }\n if ($info !== null) {\n $this->infoColor = self::PREFIX . $info . self::SUFFIX;\n }\n if ($verbose !== null) {\n $this->verboseColor = self::PREFIX . $verbose . self::SUFFIX;\n }\n if ($debug !== null) {\n $this->debugColor = self::PREFIX . $debug . self::SUFFIX;\n }\n } catch (IOException $ioe) {\n //Ignore exception - we will use the defaults.\n }\n }", "function block_core_social_link_get_color_styles($context)\n {\n }", "function getColor() {\n\t\treturn $this->color;\n\t}", "public function getColorArray($limit=null){\n $return_arr = array();\n $query = sprintf(\" SELECT * FROM %s ORDER BY creation_date DESC \",self::DB_TABLE);\n $db = Db::instance();\n $result = $db->lookup($query);\n if(!mysql_num_rows($result))\n return null;\n else {\n while($row = mysql_fetch_assoc($result)) {\n $row_array['id'] = $row['id']; //add id to row\n $row_array['username'] = $row['username']; //add username to the row\n $row_array['color'] = $row['color']; //add color to the row\n array_push($return_arr,$row_array); //push to the array\n }\n return $return_arr;\n }\n }", "public function getColor ()\r\n {\r\n return $this->color;\r\n }", "private function ensureTextColorsAreGenerated(): void\n\t{\n\t\tif ($this->generatedTextColors)\n\t\t\treturn;\n\n\t\t// TODO(Bas): Implement this!\n\n\t\t$this->textColorBody = null;\n\t\t$this->textColorTitle = null;\n\n\t\t$this->generatedTextColors = true;\n\t}" ]
[ "0.64941967", "0.59773594", "0.59546655", "0.59058577", "0.58916986", "0.58916986", "0.584668", "0.5807997", "0.57971203", "0.5797112", "0.5797112", "0.5797112", "0.5797112", "0.5797112", "0.5797112", "0.57938135", "0.57924396", "0.5788514", "0.5745798", "0.57421666", "0.57421666", "0.57421666", "0.57421666", "0.57352304", "0.5732343", "0.5708064", "0.5658258", "0.56414425", "0.5627318", "0.55597264", "0.5552546", "0.5551653", "0.55479133", "0.5542545", "0.5542545", "0.5542545", "0.5508259", "0.55048865", "0.54992795", "0.5495792", "0.5471211", "0.5471211", "0.5442831", "0.543778", "0.54370314", "0.5429236", "0.5405264", "0.5380214", "0.53772134", "0.5376931", "0.53652376", "0.5348751", "0.5336379", "0.53128576", "0.5308844", "0.5302427", "0.5300107", "0.5297806", "0.52925694", "0.5286153", "0.52818006", "0.52818006", "0.5276688", "0.52730054", "0.5263616", "0.5257051", "0.52563566", "0.52563566", "0.524932", "0.5236057", "0.5234937", "0.5197573", "0.5195243", "0.5185972", "0.51776946", "0.5176654", "0.51648533", "0.51648533", "0.5148843", "0.51362497", "0.5115325", "0.51137644", "0.51136434", "0.511225", "0.51085985", "0.5089226", "0.5077121", "0.50632584", "0.5059771", "0.505968", "0.5055904", "0.502734", "0.5015997", "0.5004281", "0.500163", "0.5000668", "0.5000287", "0.4996268", "0.49961555", "0.49919122" ]
0.58676636
6
Get picklist table name.
public static function getPickListTableName(string $fieldName) { if (empty($fieldName) || !preg_match('/^[_a-zA-Z0-9]+$/', $fieldName)) { throw new \App\Exceptions\AppException('Incorrect picklist name'); } return 'vtiger_' . $fieldName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTblName()\n {\n return $this->tbl_name;\n }", "protected function table () : string {\n return $this->guessName();\n }", "function table_name() {\n\t\tif ($this->table) {\n\t\t\treturn $this->table;\n\t\t} else {\n\t\t\treturn $this->_get_type();\n\t\t}\n\n\t}", "public function get_table_name(){\n return $this->table_name();\n }", "function get_table_name () {\r\n\t\treturn $this->wpdb->prefix . $this->_table_name;\r\n\t}", "function get_table_name() {\n\n\t\tglobal $wpdb;\n\n\t\treturn $wpdb->prefix . $this->table_name;\n\t}", "function get_table_name()\n {\n global $table_prefix;\n global $wpdb;\n $prefix = $table_prefix;\n if ($wpdb != null && $wpdb->prefix != null) {\n $prefix = $wpdb->prefix;\n }\n return apply_filters('ngg_datamapper_table_name', $prefix . $this->_object_name, $this->_object_name);\n }", "public function getTableName()\n {\n return $this->__get(\"table_name\");\n }", "public function get_table_name()\n {\n return $this->prefix . $this->table;\n }", "public static function tablename() {\n return self::TABLE;\n }", "public static function getTableName(){\n\t\treturn self::$table_name;\n\t}", "public function table_name ()\n {\n return $this->app->table_names->entries;\n }", "public function get_table_name() {\n return $this->table_name;\n }", "public function getTableName( )\n {\n return $this->table_name;\n }", "public function getTableName() {\n\t\treturn $this -> _name;\n\t}", "public function getTableName()\n {\n return $this->table_name;\n }", "public function getTableName()\n {\n return $this->table_name;\n }", "public function getTableName()\n {\n return $this->table_name;\n }", "public static function get_table_name()\n {\n return self::TABLE_NAME;\n }", "public function getTableName(): string\n {\n return $this->tableNames[0];\n }", "public static function getTableName()\n {\n return _DB_PREFIX_ . self::$definition['table'];\n }", "public function getTableName()\n {\n return $this->_name;\n }", "public function getTableName()\n {\n return $this->_name;\n }", "public function getTableName()\n {\n return $this->_name;\n }", "public static function getTableName()\n {\n return self::getConfig()->get('scheme/tableName');\n }", "public function getTableName()\n\t{\n\t\treturn $this->getPrefix().$this->tableName;\n\t}", "public function getTableName(){\n\t\treturn $this->_table;\n\t}", "public static function table_name(): string {\n\t\tglobal $wpdb;\n\t\treturn $wpdb->prefix . 'sb_' . static::TABLE;\n\t}", "protected function table(): string\n {\n return $this->tableName;\n }", "public function getTableName() {\n if (isset($this->table)) {\n return $this->table;\n } else return $this->name;\n }", "public function table() {\n\t\treturn static::$table ?: strtolower(Str::plural(class_basename($this)));\n\t}", "function getTableName()\r\n\t{\r\n\t\tif ( $this->table == null ) return (null );\r\n\t\treturn( $this->table->table_name());\r\n\t}", "public function getTableName()\n {\n return $this->table_name;\n }", "public function getTableName() {\n\t\t$table = strtolower(get_called_class());\n\t\tif ($table == 'person')\n\t\t\treturn 'people';\n\t\tswitch (substr($table, -1)) {\n\t\t\tcase 'y': return substr($table, 0, -1) . 'ies';\n\t\t\tcase 's': return $table . 'es';\n\t\t}\n\t\treturn $table . 's';\n\t}", "public function table_name()\n\t{\n\t\treturn $this->table_name;\n\t}", "protected function getTableName()\n {\n return $this->database->getPrefix() . $this->table;\n }", "protected function getTableName(): string {\n return self::TABLE_NAME;\n }", "public static function getTableName()\n {\n $type = static::getType();\n return $type::getTableName();\n }", "public static function getTableName()\n {\n return ((new self)->getTable());\n }", "public function getTableName(){\n\t\treturn $this->tableName;\n\t}", "public static function getTableName() {\n return self::$tableName;\n }", "public function getTableName() {\n return $this->table;\n }", "public static function tableName(): string;", "public static function getTableName()\n {\n return self::getDatabaseName() . '.' . self::NAME;\n }", "private static function getTableName() {\n global $wpdb;\n return $wpdb->prefix . self::$NOTIFICATION_TABLE_NAME;\n }", "public function getTableName() {\n\t\t$dbName = empty($this->_dbName) ? '' : ($this->_dbName . '.');\n\t\t$tableName = $dbName . $this->_tableName;\n\t\treturn ($tableName);\n\t}", "function getTableName() {\n return $this->tableName;\n }", "public function getTableNames();", "function getItemTableName() ;", "protected static function get_table_name() {\n return null;\n }", "protected static function table_name(): mixed\n\t{\n\t\treturn self::$query->table_name;\n\t}", "public static function getTableName()\n {\n return static::getConfig()[self::CONFIG_TABLE_NAME];\n }", "public function getTable()\n\t{\n\t\treturn empty($this->table) ? $this->table = Db_Inflector::pluralize($this->getSingular()) : $this->table;\n\t}", "public static function getTablename() { return \"Productos_01\"; }", "protected function getTableInput()\n {\n $table = $this->option('table') ? $this->option('table') : $this->argument('table');\n if (!$table) {\n $table = Str::plural(Str::snake(class_basename($this->getNameInput())));\n }\n\n return $table;\n }", "public function getTableName()\n {\n return $this->tableName;\n }", "public function getTableName()\n {\n return $this->tableName;\n }", "public function getTableName()\n {\n return $this->tableName;\n }", "public function getTableName()\n {\n return $this->tableName;\n }", "public function getTableName(){\r\n\t\treturn strtolower(get_class($this));\r\n\t}", "public function getTableName()\r\n {\r\n return $this->tableName;\r\n }", "public function getTableName(){\n return $this->tableName;\n }", "public static function name()\n {\n return with(new static)->getTable();\n }", "public function getTableName() {\n\t\treturn $this->tableName;\n\t}", "public function getTableName() {\n\t\treturn $this->tableName;\n\t}", "public function getTableName(){\n\t\t $table = get_class($this);\n\t\treturn strtolower(substr($table, strripos($table, \"\\\\\")+1));\n\t}", "public function getDefaultTableName(): string\n {\n return \\implode('_', \\array_map(function ($element) {\n return Str::plural($element);\n }, \\array_merge(\n \\is_null($this->getModelGroup()) ? [] : \\explode('_', $this->getModelGroup()),\n ['pivot'],\n \\explode('_', $this->modelName),\n )));\n }", "public function getTableName()\n {\n return $this->tableName;\n }", "public function getTableName()\n\t{\n\t\treturn $this->tableName;\n\t}", "private static function get_table_name() {\n\n $class = get_called_class();\n\n return strtolower($class);\n\n }", "public function getTableName()\n {\n return $this->_tableName;\n }", "public function getTable(): string\n {\n return $this->prefix . $this->table;\n }", "public function getTable(): string\n {\n return $this->_table;\n }", "public function getTable(): string\n {\n return $this->table;\n }", "public function getTable(): string\n {\n return $this->table;\n }", "public function getTableName()\n {\n if ($this->getFirstName()) {\n return sprintf('%s, %s', $this->getLastName(), substr($this->getFirstName(), 0, 1));\n }\n \n return $this->getLastName();\n }", "public function getTableName() {\n return $this->mapping['table'];\n }", "public function getTableKeyName()\r\n\t{\r\n\t\treturn \"id\".$this->getTableName();\r\n\t}", "public function getTable(): string\n {\n return config('checklists.scaffolding.db_table');\n }", "function getTableName(): string;", "public function\n\t\tget_table_name()\n\t{\n\t\tif (!isset($this->table_name)) {\n\t\t\t$sxe = $this->get_simple_xml_element();\n\t\t\t\n\t\t\t$this->table_name = (string)$sxe->table['name'];\n\t\t}\n\t\t\n\t\treturn $this->table_name;\n\t}", "public function getTableName();", "public function getTableName();", "public function tableName()\n\t{\n\t\treturn '{{'.$this->getTableName().'}}';\n\t}", "public function tableName() \n {\n return $this->tableName;\n }", "protected function getTableName () {\n $class = explode('\\\\', get_class($this));\n\n return strtolower(end($class));\n }", "public static function getTableName()\n\t{\n\t\t//called from users, keyword self:: returns model\n\t\t// return self::$table;\n\t\t//called from users, keyword static:: returns users\n\t\treturn static::$table;\n\t}", "public function getTableName() ;", "public function getTableKeyName()\n\t{\n\t\treturn \"id\".$this->getTableName();\n\t}", "function get_table_name()\n {\n global $table_prefix;\n return $table_prefix . 'posts';\n }", "public function table_name($name=NULL){\n $table_name = $this->config->item('db_table_prefix').$this->table_name;\n if(NULL!=$name){\n $table_name = $this->config->item('db_table_prefix').$name;\n }\n return $table_name;\n }", "public static function getTableName()\n {\n return Str::snake(Str::pluralStudly(class_basename(get_called_class())));\n }", "public function dataTableName()\n {\n $tableName = 'pd2_' . Utils::normalizeString($this->product()->name)\n . '__' . Utils::normalizeString($this->name);\n return strtolower($tableName);\n }", "public function table() \n {\n return $this->model->table?? '';\n }", "public function getTable()\n {\n if (isset($this->table)) {\n return $this->table;\n }\n\n return str_replace('\\\\', '', Str::snake(Str::plural(class_basename($this))));\n }", "public function getTable()\n {\n if (! isset($this->table)) {\n return str_replace('\\\\', '', Str::snake(Str::plural(class_basename($this))));\n }\n\n return $this->table;\n }", "public static function getTableName()\n {\n return 'Bindings';\n }", "public static function getTableName() {\n return str_replace(\"-\", '_', self::getFolderName()) . 's';\n }", "public function getTable()\n {\n if (isset($this->table)) {\n return $this->table;\n }\n return str_replace('\\\\', '', Str::snake(Str::singular(class_basename($this))));\n }", "public static function get_db_table_name(){\n global $TFUSE;\n return $TFUSE->ext->seek->get_db_table_name();\n }" ]
[ "0.7050413", "0.7038802", "0.70332676", "0.7028893", "0.6991733", "0.6961801", "0.69595426", "0.6889407", "0.6869909", "0.6868111", "0.68516374", "0.67977154", "0.6796232", "0.6786465", "0.67787886", "0.67583066", "0.67583066", "0.67583066", "0.67282283", "0.67097944", "0.6705072", "0.6704442", "0.6704442", "0.6704442", "0.6694959", "0.6685866", "0.66765326", "0.66616917", "0.6659613", "0.6655627", "0.66433036", "0.6631382", "0.66255933", "0.66113645", "0.65971965", "0.65868026", "0.65812844", "0.6552931", "0.65511984", "0.65452", "0.65322495", "0.6530381", "0.6527822", "0.6526027", "0.6524576", "0.6517334", "0.65145606", "0.64922774", "0.64893955", "0.6483386", "0.64808524", "0.6480677", "0.6479331", "0.6479264", "0.64786935", "0.6476941", "0.6476941", "0.6476941", "0.6476941", "0.64699525", "0.6469739", "0.6458721", "0.6455837", "0.6439004", "0.6439004", "0.643749", "0.6435502", "0.6433848", "0.6431408", "0.6423041", "0.64188445", "0.6415384", "0.64134145", "0.6411179", "0.6411179", "0.6407748", "0.64073694", "0.6406681", "0.64065474", "0.6403905", "0.64028406", "0.6392365", "0.6392365", "0.6387416", "0.6378125", "0.6375619", "0.63726115", "0.6363757", "0.6361667", "0.6360012", "0.6350247", "0.63471425", "0.6339028", "0.6330612", "0.63206244", "0.6315506", "0.6305308", "0.62977654", "0.62898844", "0.6285581" ]
0.6525637
44
Check if the prefix exists in given picklist name.
public static function prefixExist(string $fieldName): bool { return !empty(array_filter(array_column(static::getValues($fieldName), 'prefix'))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkIsAllowedNamePrefix($field_name, $input) {\n $valid_titles = $this->lookup->getNamePrefixes();\n if (!in_array($input, $valid_titles)) {\n $this->throwValidationException($field_name, 'Title prefix does not match any of allowed values.');\n }\n return TRUE;\n }", "function _prefix($prefix = 'admin') {\n\t\tif (isset($this->params['prefix']) && $this->params['prefix'] == $prefix) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "function has_prefix($string, $prefix)\n {\n return substr($string, 0, strlen($prefix)) == $prefix;\n }", "function startsWith($prefix) {\n $node = $this->find($prefix);\n return $node != null; // 前缀存在即可\n }", "function has_prefix($string, $prefix) {\n return substr($string, 0, strlen($prefix)) == $prefix;\n }", "public function hasPrefix()\n\t{\n\t\treturn $this->prefix !== null;\n\t}", "public static function startsWith($str, $prefix) {\n\t\treturn $prefix === '' || strpos($str, $prefix) === 0;\n\t}", "public function hasOption($name, $prefix = '')\n\t{\n\t\treturn array_key_exists($prefix . $name, $this->_options);\n\t}", "public static function startsWith($input, $prefix)\n {\n self::initialize();\n\n return substr($input, 0, strlen($prefix)) === $prefix;\n }", "function isPrefix($prefix, $string){\n\t\tif(strlen($prefix) > strlen($string)){\n\t\t\treturn false;\n\t\t}\n\t\telse{\n\t\t\treturn (substr($string, 0, strlen($prefix)) == $prefix);\n\t\t}\n\t}", "function startsWith($prefix) {\n $cur = $this->root;\n for ($i = 0; $i < strlen($prefix); $i++) {\n $c = substr($prefix, $i, 1);\n if (!isset($cur->next[$c])) {\n return false;\n }\n $cur = $cur->next[$c];\n }\n return true;\n }", "function startsWith($prefix)\n {\n if (empty($prefix)) {\n return false;\n }\n $endNode = $this->searchEndNode($prefix);\n return $endNode != null;\n }", "public function startsWith($prefix);", "public function startsWith($prefix) {\n return mb_strpos($this->rawString, $prefix, 0, $this->charset) === 0;\n }", "function startsWith($prefix)\n {\n $node = $this->root;\n for ($i = 0; $i < strlen($prefix); $i++) {\n $index = ord($prefix[$i]) - ord('a');\n if (isset($node->children[$index])) {\n $node = $node->children[$index];\n } else {\n return false;\n }\n }\n return true;\n }", "public static function startsWith($value, $prefix)\n {\n return (0 === strpos($value, $prefix)) ? true : false;\n }", "protected function isPrefix($word): bool\n {\n return (array_key_exists($this->getKey($word), $this->prefixes));\n }", "function startsWith($prefix)\n {\n $node = $this;\n for ($i = 0; $i < strlen($prefix); $i++) {\n $index = ord($prefix[$i]) - ord('a');\n if (isset($node->children[$index])) {\n $node = $node->children[$index];\n } else {\n return false;\n }\n }\n return true;\n }", "public function startsWithIgnoreCase($prefix) {\n return mb_stripos($this->rawString, $prefix, 0, $this->charset) === 0;\n }", "public static function hasPrefix($string, $prefix)\r\n {\r\n if (strpos($string, $prefix) === 0) {\r\n return true;\r\n }\r\n\r\n return false;\r\n }", "public static function startsWith(string $prefix, string $word): bool\n {\n return \\preg_match(\\sprintf('#^%s#', $prefix), $word);\n }", "public static function isPicklistExist(string $fieldName): bool\n\t{\n\t\treturn \\App\\Db::getInstance()->isTableExists(\"vtiger_{$fieldName}\");\n\t}", "private function tag_matches_prefix($v)\n {\n return preg_match(\"/{$this->instance['prefix']}/\", $v->name)\n ? true\n : false\n ;\n }", "private function isCombinedWithPrefix(string $part): bool\n {\n $pos = strpos($part, '-');\n\n if (false === $pos) {\n return false;\n }\n\n return $this->isPrefix(substr($part, $pos + 1));\n }", "public function hasMap($prefix)\n\t{\n\t\treturn isset($this->prefixDirs[$prefix]);\n\t}", "public function valid_db_prefix($db_prefix)\n\t{\n\t\t// DB Prefix has some character restrictions\n\t\tif ( ! preg_match(\"/^[0-9a-zA-Z\\$_]*$/\", $db_prefix))\n\t\t{\n\t\t\tee()->form_validation->set_message(\n\t\t\t\t'valid_db_prefix',\n\t\t\t\tlang('database_prefix_invalid_characters')\n\t\t\t);\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// The DB Prefix should not include \"exp_\"\n\t\tif ( strpos($db_prefix, 'exp_') !== FALSE)\n\t\t{\n\t\t\tee()->form_validation->set_message(\n\t\t\t\t'valid_db_prefix',\n\t\t\t\tlang('database_prefix_contains_exp_')\n\t\t\t);\n\t\t\treturn FALSE;\n\t\t}\n\n\t\treturn TRUE;\n\t}", "protected function isApplicablePrefix(array $parts, int $index): bool\n {\n if (!$this->isPrefix($parts[$index])) {\n return false;\n }\n\n return $this->hasUnmappedPartsBefore($parts, $index);\n }", "public function checkControlExists($name);", "private function checkRoutingPrefixIsNotAlreadyRegistered()\n {\n // the route collection. The following code relies on possible modifications of\n // the RouteCollection class in the Routing component. To be uncommented if those\n // changes are accepted.\n /*\n $registeredPrefixes = $this->router->getRouteCollection()->getPrefixes();\n $pluginPrefix = $this->plugin->getRoutingPrefix();\n\n if (in_array($pluginPrefix, $registeredPrefixes)) {\n $resources = (array) $this->yamlParser->parse(file_get_contents($this->mainPluginRoutingFile));\n $isConflictingWithPluginPrefix = false;\n\n foreach ($resources as $bundleKey => $resource) {\n if ('/' . $resource['prefix'] === $pluginPrefix) {\n $isConflictingWithPluginPrefix = true;\n\n if (0 !== strpos($bundleKey, $this->plugin->getName())) {\n $this->errors[] = new ValidationError(\n \"{$this->pluginFqcn} : routing prefix '{$pluginPrefix}' \"\n . \"is already registered by another plugin.\",\n self::ALREADY_REGISTERED_PREFIX\n );\n break;\n }\n }\n }\n\n if (!$isConflictingWithPluginPrefix) {\n $this->errors[] = new ValidationError(\n \"{$this->pluginFqcn} : routing prefix '{$pluginPrefix}' is already \"\n . \"registered by the core routing.\",\n self::ALREADY_REGISTERED_PREFIX\n );\n }\n }\n */\n }", "function isOurs($fn) {\n\tglobal $baecodes;\n\tif (is_numeric($fn[2])) {\n\t\t$prefix = substr($fn,0,2);\n\t} else {\n\t\t$prefix = substr($fn,0,3);\n\t}\n\treturn array_key_exists($prefix, $baecodes);\n}", "private function isPrefixSearch(string $value): bool\n {\n if ($value[-1] !== '*' || $value[-2] === '\\\\') {\n return false;\n }\n\n // Filter has \"?\" metacharacter\n if (substr_count($value, '?') > substr_count($value, '\\?')) {\n return false;\n }\n\n // Filter has \"*\" metacharacter other than last one\n if (substr_count($value, '*', 0, -1) > substr_count($value, '\\*', 0, -1)) {\n return false;\n }\n\n return true;\n }", "public static function startsWith($string, $prefix, $ignoreCase = false)\n {\n if ($ignoreCase) {\n $string = strtolower($string);\n $prefix = strtolower($prefix);\n }\n\n return $prefix == substr($string, 0, strlen($prefix));\n }", "function starts_with(string $string, string $prefix, Encoding $encoding = Encoding::UTF_8): bool\n{\n /** @psalm-suppress MissingThrowsDocblock */\n return 0 === search($string, $prefix, 0, $encoding);\n}", "public function getPrefix();", "public function getPrefix();", "public function eh_rota_prefixada() {\n $routes = Configure::read('Routing.prefixes');\n if (count($routes)) {\n $a = $this->controller->action;\n foreach ($routes as $route) {\n $strpos = strpos($a, $route . '_');\n if ($strpos === 0) {\n return true;\n }\n }\n }\n return false;\n }", "private function checkMethodHasValidPrefix($methodName, $methodPrefix = [])\n {\n if (in_array('*', $methodPrefix)) {\n return true;\n }\n foreach ($methodPrefix as $prefix) {\n if (strpos($methodName, $prefix) === 0) {\n return true;\n }\n }\n }", "abstract protected function prefixName($name);", "abstract protected function prefixName($name);", "private function _existsListAlready($listname)\r\n {\r\n $_listname = $this->_validListname($listname);\r\n $lists = $this->getLists();\r\n $_lists = $lists->lists;\r\n foreach ($_lists->list as $list) {\r\n if ($list->name == $_listname) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "public function clearByPrefix(string $prefix): bool;", "public function restricoes_possuem_rotas_prefixadas() {\n $routes = Configure::read('Routing.prefixes');\n foreach ($this->restricoes as $restriction) {\n if (in_array($restriction, $routes)) {\n return true;\n }\n }\n return false;\n }", "protected function _startsWith($str, $startswith)\n\t{\n\t\t$length = strlen($startswith);\n\t\t\n\t\treturn (substr($str, 0, $length)) == $startswith;\n\t}", "function name_exists($str){\n\n\t\tif(strlen($str)<3 || strlen($str)>30){\n\t\t\t$this->form_validation->set_message('name_exists','The field {field} must be between 3 and 30 characters in length');\n\t\t\treturn false;\n\t\t}\n\t\t$nameExists = $this->DAO->entitySelection('station',array('nameStation'=>$str),TRUE);\n\t\tif($nameExists['data']){\n\t\t\t$this->form_validation->set_message('name_exists','The field {field} already exists');\n\t\t\treturn false;\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}", "static function stringStartsWith($prefix)\n {\n try {\n return call_user_func_array('PHPUnit_Framework_Assert::stringStartsWith', func_get_args());\n } catch (\\Exception $e) {\n self::callSlack($e, debug_backtrace()[1]);\n }\n }", "private function _isListAssociatedWithUser($listname) \r\n {\r\n return $this->_existsListAlready($listname);\r\n }", "public function testGetPrefix(): void\n {\n $alias = $this->registry->getPrefix('system');\n $this->assertEquals('asys', $alias);\n }", "function check_duplicate_for_upload($data){\n\t\t//return false;\n\t\treturn $this->find(\"first\",array('conditions' => \"prefix ='\".$data['JurisdictionUpload']['prefix'].\"'\"));\t\n\t}", "function domain_is(string $prefix): bool\n {\n $domain = get_domain();\n\n return starts_with($prefix.'.', $domain);\n }", "function check_number_prefix($network = NULL, $what = '*')\n\t{\n if($network == NULL) return FALSE;\n // echo $network; exit;\n $query = $this->db->select($what)\n ->from('estate_network_number_prefixes')\n ->where('network', $network)\n ->get();\n $result = $query->result_array();\n // var_dump($result);\n if(count($result) == 0) return FALSE;\n return $result;\n\t}", "public function checkPicklistExist(App\\Request $request)\n\t{\n\t\t$response = new Vtiger_Response();\n\t\t$response->setResult(\\App\\Fields\\Picklist::isPicklistExist($request->getByType('fieldName', 'Alnum')));\n\t\t$response->emit();\n\t}", "public function is_index_name_prefix_in_config() {\n\t\treturn defined( 'ALGOLIA_INDEX_NAME_PREFIX' );\n\t}", "function startsWith($Haystack, $Needle){\n return strpos($Haystack, $Needle) === 0;\n }", "public static function hasPrefix($userId)\n {\n return strpos($userId, static::SEPARATOR) !== false;\n }", "public function setPrefix( $prefix );", "public static function hasSettings($prefix)\n {\n if (defined('HHVM_VERSION') && in_array($prefix, array(self::PDO_PGSQL, self::MYSQLI))) {\n return false;\n }\n\n $settings = static::retrieveSettings($prefix);\n\n return !empty($settings);\n }", "function combo_check($str)\r\n\t{\r\n\t\tif ($str == '-SELECT-')\r\n\t\t{\r\n\t\t\t$this->form_validation->set_message('combo_check', 'Valid %s Name is required');\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn TRUE;\r\n\t\t}\r\n\t}", "public function getPrefix() {}", "private function inPrefixPosition($previous)\n\t{\n\t\treturn (\n\t\t\t$previous == NULL OR\n\t\t\t$previous->type == 'LP' OR\n\t\t\t$this->isOperator($previous)\n\t\t);\n\t}", "public static function isTablePrefix($data)\n {\n return preg_match(Tools::cleanNonUnicodeSupport('/^[a-z0-9_]+$/ui'), $data);\n }", "public function isParamSet($param, $prefix = '') {\n return !empty($prefix) ? $this->_rediska->existsInHash($prefix, $param) : $this->_rediska->exists($param);\n }", "public function getShouldPrefixNameToFile()\n {\n if (array_key_exists(\"shouldPrefixNameToFile\", $this->_propDict)) {\n return $this->_propDict[\"shouldPrefixNameToFile\"];\n } else {\n return null;\n }\n }", "private function has_postname_in_permalink() {\n\t\treturn ( strpos( get_option( 'permalink_structure' ), '%postname%' ) !== false );\n\t}", "public function hasBip9Prefix(): bool;", "abstract public function getPrefix(): string;", "function check_name($name, $array)\n{\n\t// return in_array($name, $array);\n\tif (is_numeric(array_search($name, $array)))\n\t{\n\t\treturn TRUE;\n\t}\n\telse\n\t{\n\t\treturn FALSE;\n\t}\n}", "public function setPrefix($prefix);", "public function canSetLocalName();", "private static function hasNamespace($name)\n {\n return strpos($name, static::HINT_PATH_DELIMITER) > 0;\n }", "public function tablePrefix() {\n\t\t$prefix = $this->in('What table prefix would you like to use?');\n\n\t\tif (!$prefix) {\n\t\t\t$this->out('Please provide a table prefix, I recommend \"forum\".');\n\n\t\t\treturn $this->tablePrefix();\n\n\t\t} else {\n\t\t\t$prefix = trim($prefix, '_') . '_';\n\t\t\t$this->out(sprintf('You have chosen the prefix: %s', $prefix));\n\t\t}\n\n\t\t$answer = strtoupper($this->in('Is this correct?', array('Y', 'N')));\n\n\t\tif ($answer === 'Y') {\n\t\t\t$this->install['prefix'] = $prefix;\n\t\t} else {\n\t\t\treturn $this->tablePrefix();\n\t\t}\n\n\t\treturn true;\n\t}", "public function Get_All_Prefix()\n {\n $this->DB->Change_DB($this->PERSON_DB);\n $sql = \"SELECT `code`,`name` FROM `prefix` ORDER BY `name_full`\";\n $result = $this->DB->Query($sql);\n $this->DB->Change_DB($this->DEFAULT_DB);\n if($result)\n {\n $prefix = array();\n for($i=0;$i<count($result);$i++)\n {\n $temp['id'] = $result[$i]['code'];\n $temp['prefix'] = $result[$i]['name'];\n array_push($prefix,$temp);\n }\n return $prefix;\n }\n else\n {\n return false;\n }\n\n }", "static function check_exist($table){\n\t\t$db = JFactory::getDbo();\n\t\t$table_name = str_replace('#__', $db->getPrefix(),$table);\n\t\treturn in_array($table_name,$db->getTableList());\t\t\n\t}", "public function check_availability_name_exist_add($name) {\n $result = $this->availabilityMaster_model->get_availability_manager_name($name);\n if ($result > 0) {\n return false;\n } else {\n return true;\n }\n }", "function prefixSign()\r\n {\r\n if ( $this->PrefixSign == 1 )\r\n return true;\r\n else\r\n return false;\r\n }", "public function beginsWithReturnsTrueForMatchingFirstPartDataProvider() {}", "public static function startsWith($string, $start)\n {\n return strpos($string, $start) === 0;\n }", "public function prefixKey($prefix);", "public function exists($name)\n {\n return $name === $this->_name || strpos($name, $this->_name . '#~#') === 0;\n }", "public function combo_check($str)\n {\n if ($str == '-SELECT-') {\n $this->form_validation->set_message('combo_check', 'Valid %s Name is required');\n return FALSE;\n } else {\n return TRUE;\n }\n }", "public static function validate_name( $value ) {\n\t\treturn !DataValidator::cc_number_exists_in_str( $value );\n\t}", "protected function samePrefix(string $url)\n {\n $partsA = explode('/', $url);\n $partsB = explode('/', $this->currentFileName);\n\n $n = count($partsA);\n if ($n != count($partsB)) {\n return false;\n }\n\n unset($partsA[$n-1]);\n unset($partsB[$n-1]);\n\n return $partsA == $partsB;\n }", "public static function backupset_exists($db, $name) {\n $search_query = \"SELECT * from backupset where name=:name\";\n $search_params = array(\"name\"=>$name);\n $search_result = $db->get_query_result($search_query, $search_params);\n \n if(count($search_result) > 0) { \n return 1;\n } else {\n return 0;\n }\n }", "protected function isSpecialName($name)\n {\n return in_array($name, array('default', 'root', 'parent'));\n }", "function startswith($haystack, $needle) {\n if (is_array($haystack)) {\n foreach($haystack as $hay) {\n if(substr($hay, 0, strlen($needle)) == $needle) {\n return true;\n }\n }\n //return in_array($needle, $haystack);\n return false;\n } else {\n return (substr($haystack, 0, strlen($needle)) == $needle);\n }\n}", "public function prefix($prefix = null)\n {\n if ($prefix === null) {\n return $this->_prefix;\n }\n\n if (is_string($prefix)) {\n $prefix = $prefix;\n }\n\n return $this->_prefix = $prefix;\n }", "private function hasValidUserName($input) {\n\t\treturn strtolower($input->user) == strtolower(get_option(\"wp_broadbean_users\"));\n\t}", "public function issetPartyName($index)\n {\n return isset($this->partyName[$index]);\n }", "public function hasName(){\n return $this->_has(7);\n }", "public function hasName(){\n return $this->_has(7);\n }", "public function getPrefix()\n\t{\n\t\t\n\t\t$parsed = $this->getAsArray();\n\t\t\n\t\tif( ! empty($parsed) )\n\t\t{\n\t\t\tif( in_array($parsed[0], (array)$this->prefixes) )\n\t\t\t{\n\t\t\t\treturn $parsed[0];\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public function addPrefixArgument($argument)\n {\n $this->_prefixArgument = $argument;\n\n return true;\n }", "function is_reserved_name($str) {\n\t\t$reserved = array('name','value','content','parent','rank','password','timestamp');\n\t\tif(empty($str) || in_array($str, $reserved)) return true;\n\t\treturn false;\n\t}", "abstract public function has(string ...$names): bool;", "static function isExists($alias = NULL) {\n if ($alias === NULL) {\n return FALSE;\n } else {\n if (self::$list == NULL){\n self::getList();\n }\n return (isset(self::$list[$alias])) ? TRUE : FALSE;\n }\n }", "public function has($label) {\n return array_key_exists($label, $this->_register);\n }", "private function setStagingPrefix()\n {\n // Get & find a new prefix that does not already exist in database.\n // Loop through up to 1000 different possible prefixes should be enough here;)\n for ($i = 0; $i <= 10000; $i++) {\n $this->options->prefix = isset($this->options->existingClones) ?\n 'wpstg' . (count($this->options->existingClones) + $i) . '_' :\n 'wpstg' . $i . '_';\n\n $sql = \"SHOW TABLE STATUS LIKE '{$this->options->prefix}%'\";\n $tables = $this->db->get_results($sql);\n\n // Prefix does not exist. We can use it\n if (!$tables) {\n return $this->options->prefix;\n }\n }\n $this->returnException(\"Fatal Error: Can not create staging prefix. '{$this->options->prefix}' already exists! Stopping for security reasons. Contact [email protected]\");\n wp_die(\"Fatal Error: Can not create staging prefix. Prefix '{$this->options->prefix}' already exists! Stopping for security reasons. Contact [email protected]\");\n }", "public function isDuplicateValue(): bool\n\t{\n\t\t$picklistValues = \\App\\Fields\\Picklist::getValuesName($this->fieldModel->getName());\n\t\tif ($this->id) {\n\t\t\tunset($picklistValues[$this->id]);\n\t\t}\n\n\t\treturn \\in_array(strtolower($this->name), array_map('strtolower', $picklistValues));\n\t}", "public function hasName($name)\n {\n if(strcasecmp($this->data['name'], $name ) == 0)\n return true;\n return false;\n }", "public function hasName() {\n return $this->_has(3);\n }", "public function hasName() {\n return $this->_has(3);\n }" ]
[ "0.6954764", "0.68668616", "0.6538544", "0.65072787", "0.6466333", "0.64589113", "0.643957", "0.63601106", "0.63559556", "0.63053817", "0.6218804", "0.62064755", "0.6146153", "0.60583305", "0.6052911", "0.5996886", "0.598337", "0.59725004", "0.5935117", "0.58236986", "0.57758325", "0.57314265", "0.57267", "0.566652", "0.5642782", "0.5638149", "0.56345624", "0.557197", "0.5569852", "0.55627704", "0.5503504", "0.549183", "0.5481766", "0.5455474", "0.5455474", "0.5442166", "0.54341215", "0.5430355", "0.5430355", "0.542687", "0.54169333", "0.54112273", "0.5401691", "0.53703684", "0.5368315", "0.5337689", "0.52979", "0.52975315", "0.52854383", "0.5276388", "0.5275356", "0.5271458", "0.5267169", "0.5243944", "0.5239821", "0.5238446", "0.5227174", "0.5227004", "0.52242196", "0.52110153", "0.5207701", "0.5200563", "0.5199474", "0.519682", "0.5191383", "0.5186499", "0.51848346", "0.5170577", "0.5164417", "0.5154209", "0.5129829", "0.51221675", "0.51197153", "0.5118648", "0.51110065", "0.5103025", "0.50844985", "0.5081921", "0.5081158", "0.50808316", "0.5072471", "0.5038525", "0.5037622", "0.5033839", "0.5032534", "0.5032111", "0.50256157", "0.50249577", "0.50249577", "0.50227666", "0.5021263", "0.50143", "0.5011839", "0.5009815", "0.50051713", "0.50000435", "0.49975443", "0.4993957", "0.49936447", "0.49936447" ]
0.65977156
2
Get picklist ID number.
public static function getPicklistIdNr(string $fieldName): int { return (int) (new \App\Db\Query())->select(['picklistid']) ->from('vtiger_picklist') ->where(['name' => $fieldName]) ->scalar(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getListID()\n\t{\n\t\treturn $this->get('ListID');\n\t}", "public function getId()\n {\n return $this->_list->getId();\n }", "public function list_id()\n\t{\n\t\treturn $this->list;\n\t}", "public static function getPickListId($fieldName)\n\t{\n\t\t$pickListIds = [\n\t\t\t'opportunity_type' => 'opptypeid',\n\t\t\t'sales_stage' => 'sales_stage_id',\n\t\t\t'rating' => 'rating_id',\n\t\t\t'ticketpriorities' => 'ticketpriorities_id',\n\t\t\t'ticketseverities' => 'ticketseverities_id',\n\t\t\t'ticketstatus' => 'ticketstatus_id',\n\t\t\t'salutationtype' => 'salutationtypeid',\n\t\t\t'faqstatus' => 'faqstatus_id',\n\t\t\t'recurring_frequency' => 'recurring_frequency_id',\n\t\t\t'payment_duration' => 'payment_duration_id',\n\t\t\t'language' => 'id',\n\t\t\t'duration_minutes' => 'minutesid',\n\t\t];\n\t\tif (isset($pickListIds[$fieldName])) {\n\t\t\treturn $pickListIds[$fieldName];\n\t\t}\n\t\treturn $fieldName . 'id';\n\t}", "function get_id() {\n\t\treturn $this->get_data( 'id' );\n\t}", "public function getIdNum()\n {\n return $this->idNum;\n }", "protected function GetId() {\n\n $Id= $this->GetOption('Id');\n if (!$Id) {\n $Id= $this->GetName(); // let id be same as name\n $Id= str_replace(array('[',']'),'_', $Id); // id cannot contain '[' and ']'\n $Id= trim($Id, '_'); // id cannot start with '_'\n }\n return $Id;\n }", "public abstract function get_default_list_id();", "public function getListId();", "public function get_field_id() {\n\t\treturn $this->get_field_attr( 'id' );\n\t}", "public function getId()\r\n {\r\n if (isset($this->data['itemid'])) {\r\n return $this->data['itemid'];\r\n }\r\n return null;\r\n }", "function get_id()\n {\n return $this->get_default_property(self :: PROPERTY_ID);\n }", "function get_id()\r\n {\r\n return $this->get_default_property(self :: PROPERTY_ID);\r\n }", "public static function getSelectedFormId() {\n\n return (int) get_option( 'geb_gfe_form_id' );\n }", "public function getID() {\n return array_key_exists($this->_key_field, $this->_data) ? $this->_data[$this->_key_field] : null;\n }", "function getID() {\n\t\treturn $this->data_array['id'];\n\t}", "public function getOpenLibraryId()\n\t\t{\n\t\t\tif(is_null($this->data))\n\t\t\t\treturn null;\n\t\t\t\n\t\t\treturn $this->data['id'];\n\t\t}", "public function getId()\n {\n return $this->product->{$this->params['productFieldId']};\n }", "function get_id() {\n\t// Check Altis config first.\n\t$juicer_id = has_altis_config() ? Altis\\get_config()['hm-juicer']['juicer-id'] : false;\n\tif ( ! empty( $juicer_id ) ) {\n\t\treturn $juicer_id;\n\t}\n\n\t// Check the JUICER_ID constant and return it if it exists.\n\tif ( defined( 'JUICER_ID' ) ) {\n\t\treturn JUICER_ID;\n\t}\n\n\t// Return the option, if it exists.\n\treturn Settings\\juicer_get_option( 'juicer_id', false );\n}", "public function getId(): int\n {\n $idSplit = explode('.', $this->data['externalidField']);\n return $idSplit[1] ?? $this->data['externalidField'];\n }", "public function getIdItem() {\n return intval($this->idItem);\n }", "public function getId()\n {\n return $this->product->{$this->params['productFieldId']};\n }", "public function getID()\n {\n return $this->playlistid;\n }", "public function get_listing_id() {\r\n\t\treturn absint( $this->listing_id );\r\n\t}", "public function getId() : int\n {\n return $this->getValue('nb_icontact_prospect_id');\n }", "public function getId()\n {\n $value = $this->get(self::ID);\n return $value === null ? (integer)$value : $value;\n }", "public function getId()\n {\n $value = $this->get(self::ID);\n return $value === null ? (integer)$value : $value;\n }", "public abstract static function getListID();", "public function getID() : int {\n return $this->_id;\n }", "public function getId() {\n if($this->items!==false)\n return @current($this->items)->id_str;\n return false;\n }", "public function getID()\n {\n return $this->formattedData['id'];\n }", "public function get_id() {\r\n\t\treturn ($this->id);\r\n\t}", "public function get_id() {\r\n\t\treturn ($this->id);\r\n\t}", "public function getID() : int {\n return $this->id;\n }", "public function getBiblioId()\n {\n return $this->biblio_id;\n }", "function getID() {\n\t\treturn $this->iId;\n\t}", "function getID() {\n\t\treturn $this->iId;\n\t}", "public function getId()\n {\n return isset($this->id) ? $this->id : 0;\n }", "public function getId()\n {\n return isset($this->id) ? $this->id : 0;\n }", "public function getId()\n {\n return isset($this->id) ? $this->id : 0;\n }", "public function get_id () {\r\n\t\treturn $this->id;\r\n\t}", "public function getId()\n\t{\n\t\treturn (int)$this->id;\n\t}", "public function getId()\n\t{\n\t\treturn (int)$this->id;\n\t}", "public function get_id()\n\t{\n\t\treturn $this->id;\n\t}", "public function get_id()\n\t{\n\t\treturn $this->id;\n\t}", "public function get_id()\n\t{\n\t\treturn $this->id;\n\t}", "private function get_id()\n\t{\n\t\treturn $this->m_id;\n\t}", "private function get_id()\n\t{\n\t\treturn $this->m_id;\n\t}", "private function get_id()\n\t{\n\t\treturn $this->m_id;\n\t}", "public function getID()\n {\n return $this->iD;\n }", "public function getID()\n {\n return $this->iD;\n }", "public function getID()\n {\n return $this->iD;\n }", "public function getID()\n {\n return $this->iD;\n }", "public function getID()\n {\n return $this->iD;\n }", "public function getID()\n {\n return $this->iD;\n }", "public function getID()\n {\n return $this->iD;\n }", "public function getID()\n {\n return $this->iD;\n }", "public function getID()\n {\n return $this->iD;\n }", "public function getID()\n {\n return $this->iD;\n }", "public function getWishlistId();", "public static function getID() {\r\n return 1;\r\n }", "public function get_id() {\n\n\t\treturn $this->id;\n\t}", "public function get_id() {\n\n\t\treturn $this->id;\n\t}", "public function getId()\r\n {\r\n return (int) $this->m_id;\r\n }", "public function get_id()\n {\n return $this->id;\n }", "public function get_id()\n {\n return $this->id;\n }", "public function get_id()\n {\n return $this->id;\n }", "public function get_id() {\n\t\treturn $this->id;\n\t}", "public function get_id() {\n\t\treturn $this->id;\n\t}", "public function get_id() {\n\t\treturn $this->id;\n\t}", "public function get_id() {\n\t\treturn $this->id;\n\t}", "public function get_id() {\n\t\t\treturn $this->id;\n\t\t}", "public function get_id();", "public function get_id();", "public function get_site_list_id() {\n $list = $this->get_site_list();\n if ( isset( $list->id ) ) {\n return $list->id;\n }\n return false;\n }", "public function get_id() {\n\t\tif ( isset( $this->item['id'] ) ) {\n\t\t\treturn esc_attr( $this->item['id'] );\n\t\t}\n\n\t\treturn false;\n\t}", "public function getId()\n {\n return $this->getValue('id');\n }", "public function getID(): int\n {\n return $this->id;\n }", "public function get_id() {\n return $this->id;\n }", "public function get_id() {\n return $this->id;\n }", "public function get_id() {\n return $this->id;\n }", "static function id()\n\t{\n\t\treturn self::data('id');\n\t}", "public function get_ID() {\r\n return $this->id;\r\n }", "public function getId() {\r\n return (int) $this->id;\r\n }", "public function getLid()\n {\n $value = $this->get(self::LID);\n return $value === null ? (integer)$value : $value;\n }", "public function get_id()\n\t{\n\t\treturn $this->_id;\n\t}", "function getID(){ return (int)$this->productInfo['products_id']; }", "public function get_id()\n {\n return $this->_id;\n }", "public function get_id() {\n\t\treturn $this->_id;\n\t}", "public function get_id() {\n return $this->id;\n }", "protected function getID() {\n return $this->id;\n }", "function get_id() {\n\t\treturn $this->id;\n\t}", "private function GetID()\n\t\t{\n\t\t\treturn $this->id;\n\t\t}", "public function getID();", "public function getID();", "public function getID();", "public function getID()\n {\n return $this->id;\n }", "public function getID()\n {\n return $this->id;\n }", "protected function _getId()\n {\n $id = $this->getElement()->getName();\n\n if ($element instanceof Zend_Form_Element) {\n if (null !== ($belongsTo = $element->getBelongsTo())) {\n $belongsTo = preg_replace('/\\[([^\\]]+)\\]/', '-$1', $belongsTo);\n $id = $belongsTo . '-' . $id;\n }\n }\n\n return $id;\n }", "public function getId()\n {\n return $this->get('id', 0);\n }" ]
[ "0.68197846", "0.67317677", "0.6539979", "0.63566804", "0.63457805", "0.6314838", "0.62666935", "0.6240236", "0.62251645", "0.6027626", "0.6017708", "0.6003818", "0.5993511", "0.59922", "0.59705895", "0.5958947", "0.59577197", "0.5933465", "0.5932844", "0.5906544", "0.58959424", "0.589023", "0.58870655", "0.58827066", "0.5879297", "0.5874223", "0.5874223", "0.58670574", "0.5856374", "0.5847794", "0.58346117", "0.5827397", "0.5827397", "0.58208954", "0.58177", "0.5815877", "0.5815877", "0.5813228", "0.5813228", "0.5813228", "0.58074075", "0.58065283", "0.58065283", "0.5806144", "0.5806144", "0.5806144", "0.57961583", "0.57961583", "0.57961583", "0.57944393", "0.57944393", "0.57944393", "0.57944393", "0.57944393", "0.57944393", "0.57944393", "0.57944393", "0.57944393", "0.57944393", "0.5792942", "0.579153", "0.57897365", "0.57897365", "0.57896817", "0.5784669", "0.5784669", "0.5784669", "0.5778593", "0.5778593", "0.5778593", "0.5778593", "0.57773346", "0.57744837", "0.57744837", "0.57707465", "0.57704616", "0.5762984", "0.5758201", "0.57415164", "0.57415164", "0.57415164", "0.5724352", "0.5719032", "0.571877", "0.57138795", "0.5712468", "0.5710812", "0.5702073", "0.56990516", "0.5693718", "0.56881994", "0.56818235", "0.5679553", "0.5677247", "0.5677247", "0.5677247", "0.56689495", "0.56689495", "0.56670636", "0.5666446" ]
0.7217913
0
Remove dependency condition field.
public static function removeDependencyConditionField(string $moduleName, string $fieldName): void { $tabId = \App\Module::getModuleId($moduleName); $fullFieldName = "{$fieldName}:{$moduleName}"; $dbCommand = \App\Db::getInstance()->createCommand(); $dataReader = (new \App\Db\Query())->select(['s_#__picklist_dependency_data.*'])->from('s_#__picklist_dependency')->innerJoin('s_#__picklist_dependency_data', 's_#__picklist_dependency_data.id = s_#__picklist_dependency.id') ->where(['tabid' => $tabId])->andWhere(['like', 'conditions', $fullFieldName]) ->createCommand()->query(); while ($row = $dataReader->read()) { $conditions = \App\Json::decode($row['conditions']); $conditions = \App\Condition::removeFieldFromCondition($moduleName, $conditions, $moduleName, $fieldName); if ($conditions) { $dbCommand->update('s_#__picklist_dependency_data', ['conditions' => \App\Json::encode($conditions)], ['id' => $row['id'], 'source_id' => $row['source_id']])->execute(); } else { $dbCommand->delete('s_#__picklist_dependency_data', ['id' => $row['id'], 'source_id' => $row['source_id']])->execute(); } } $dataReader->close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function removeCondition(ConditionInterface $condition);", "public function clearCondition(){\n\t\t$this->where=\"\";\n\t}", "public function removeFieldDefinition(FieldDefinitionInterface $field_definition);", "public function removeQuantity()\n\t{\n\t\tif(isset($this->searchFilters[$this->ref_quantity]))\n\t\t{\n\t\t\tunset($this->searchFilters[$this->ref_quantity]);\n\t\t}\n\t}", "protected function removeDependency($package, $dependency)\n\t{\n\t\t$dependencies = $this->getDependencies($package);\n\n\t\tif (in_array($dependency, $dependencies))\n\t\t{\n\t\t\t$index = array_search($dependency, $dependencies);\n\t\t\tunset($dependencies[$index]);\n\n\t\t\t$this->setDependencies($package, $dependencies);\n\t\t}\n\t}", "public function removeField($field_name){\n\t\tif(isset($this->Fields[$field_name])){\n\t\t\tunset($this->Fields[$field_name]);\n\t\t}\n\t}", "function set_required_false( $field ){\r\n\r\n\t\tif( isset( $field[ 'status' ] ) && isset( $field[ 'required' ] ) ){\r\n\r\n\t\t\tif( $field[ 'status' ] == 'disabled' && $field[ 'required' ] ) $field[ 'required' ] = false;\r\n\r\n\t\t}\r\n\r\n\t\treturn $field;\r\n\r\n\t}", "public function removeField( $field ) {\r\n if ( isset($this->fields[$field]) ) {\r\n unset($this->fields[$field]);\r\n }\r\n\r\n }", "public function remove_redundant_record()\r\n\t{\r\n\t\t//where status = 0, 1, 6 and modify_on is 21 days ago.\r\n\t\t$iof_where['`status` in (0, 1, 6)'] = null;\r\n\t\t$iof_where['DATEDIFF(NOW(),modify_on) >'] = 21;\r\n\t\t$obsolete_iof_record_number = $this->integrated_order_fulfillment_service->get_dao()->q_delete($iof_where);\r\n\r\n\t\t//completed refunded order and more than 21 days unmodified\r\n\t\t$iof_where = array();\r\n\t\t$iof_where['refund_status'] = 4;\r\n\t\t$iof_where['DATEDIFF(NOW(),modify_on) >'] = 21;\r\n\t\t$obsolete_iof_record_number = $this->integrated_order_fulfillment_service->get_dao()->q_delete($iof_where);\r\n\t}", "public function removeCondition($key)\n {\n if (isset($this->_conditions[$key])) {\n unset($this->_conditions[$key]);\n }\n return $this;\n }", "public function removeCartCondition($conditionName)\n {\n $conditions = $this->getConditions();\n\n $conditions->pull($conditionName);\n\n $this->saveConditions($conditions);\n }", "function remove_dependents() {\n\t\t/** todo\n\t\tforeach($this->has_many_data as $key => $value) {\n\t\t\tdebug($key, $value);\n\n\t\t}\n\n\t\tforeach($this->has_one_data as $key => $value) {\n\t\t\tdebug($key, $value);\n\t\t}\n\t\t*/\n\n\t\treturn true;\n\t}", "public function onFieldDeleted(\\SetaPDF_FormFiller_Field_FieldInterface $field) {}", "function acf_remove_local_field($key = '')\n{\n}", "public function remove_form_field()\n\t{\n\t\t//Get logged in session admin id\n\t\t$user_id \t\t\t\t\t\t= ($this->session->userdata('user_id_hotcargo')) ? $this->session->userdata('user_id_hotcargo') : 1;\n\t\t$setting_data \t\t\t\t\t= $this->myaccount_model->get_account_data($user_id);\n\t\t$data['data']['setting_data'] \t= $setting_data;\n\t\t$data['data']['settings'] \t\t= $this->sitesetting_model->get_settings();\n\t\t$data['data']['dealer_id'] \t\t= $user_id;\n\t\t\n\t\t//getting all admin data \n\t\t$data['myaccount_data'] \t\t\t= $this->myaccount_model->get_account_data($user_id);\n\t\t\n\t\t\n\t\t//Get requested id to remove\n\t\t$field_id \t\t\t\t\t= $this->input->get('form_id');\n\t\t\n\t\t//deleting query\n\t\t$this->mongo_db->where(array('field_name' => $field_id));\n\t\tif($this->mongo_db->delete('form_fields'))\n\t\t\techo 1;\n\t\telse\n\t\t\techo 0;\n\t}", "function do_delete(){\n\t\t// remove from fieldset:\n\t\t$fieldset = jcf_fieldsets_get( $this->fieldset_id );\n\t\tif( isset($fieldset['fields'][$this->id]) )\n\t\t\tunset($fieldset['fields'][$this->id]);\n\t\tjcf_fieldsets_update( $this->fieldset_id, $fieldset );\n\t\t\n\t\t// remove from fields array\n\t\tjcf_field_settings_update($this->id, NULL);\n\t}", "function vistaportal_references_remove($form, &$form_state) {\n if ($form_state['references_count'] > 6) {\n $form_state['references_count']--;\n }\n $form_state['rebuild'] = TRUE;\n }", "public function removeConditionByName($name)\n {\n $toRemoves = $this->getConditions()->filter(function ($item) use ($name) {\n return $item->getName() === $name;\n });\n\n $toRemoves->each(function ($item, $key) use ($name) {\n $this->conditions->forget($key);\n\n $this->getCartItemCollection()->each(function ($item) use ($name) {\n $item->removeConditionByName($name);\n });\n });\n }", "public function remove_operator_from_work() {\n $this->operator_on_work = null;\n }", "function layout_builder_post_update_layout_builder_dependency_change() {\n // Empty post-update hook.\n}", "private function resetDependentRelations($attribute)\n {\n foreach ($this->_relationsDependencies[$attribute] as $relation) {\n unset($this->_related[$relation]);\n }\n unset($this->_relationsDependencies[$attribute]);\n }", "public function getDependency()\n {\n if (isset($this->dependency)) {\n return $this->dependency;\n }\n $db = DataAccess::getInstance();\n $this->dependency = '' . $db->GetOne(\"SELECT `dependency` FROM \" . geoTables::browsing_filters_settings . \" WHERE `category` = ? and `field` = ?\", array(self::getActiveCategory(), $this->target));\n return $this->dependency;\n }", "public function destroy_dependent($dependent_id){\n $dependent = Dependent::find($dependent_id);\n $dependent->delete();\n }", "public function removeField(string $name): void\n {\n $card = $this->getCardFor($name);\n\n if (null === $card) {\n return;\n }\n\n $group = $this->getGroup($card);\n foreach ($group->fields as $i => $field) {\n if (isset($field->id) && $field->id === $name) {\n unset($group->fields[$i]);\n }\n }\n }", "public function remove_field(form_item $field) {\n foreach($this->_fields as $key=>$f) {\n if ($f == $field) {\n unset($this->_fields[$key]);\n return;\n }\n }\n }", "public function removeConditionByType($type)\n {\n $toRemoves = $this->getConditions()->filter(function ($item) use ($type) {\n return $item->getType() === $type;\n });\n\n $toRemoves->each(function ($item, $key) use ($type) {\n $this->conditions->forget($key);\n\n $this->getCartItemCollection()->each(function ($item) use ($type) {\n $item->removeConditionByType($type);\n });\n });\n }", "public function removeFieldStorageDefinition(FieldStorageDefinitionInterface $field_storage_definition);", "protected function beforeRemoving()\n {\n }", "abstract protected function doRemoveConclusion(ConclusionInterface $conclusion);", "function deregister_graphql_field(string $type_name, string $field_name)\n {\n }", "public function forceDelete(User $user, Dependence $dependence)\n {\n //\n }", "public function removeField( $name )\n {\n if( $name instanceof WebLab_Data_Field ) {\n $field = $name;\n $name = $field->getAlias();\n if( empty( $name ) ) {\n $name = $field->getName();\n }\n }\n unset( $this->_fields[ $name ] );\n\n return $this;\n }", "public function deregister_field($type_name, $field_name)\n {\n }", "public function removeFacet($facet): self;", "public function beforeFieldFlattenOrDelete(\\SetaPDF_FormFiller_Field_FieldInterface $field) {}", "public function delete(User $user, Dependence $dependence)\n {\n //\n }", "public function removeElement($element, bool $removeDependencies = false) {\n foreach(array_filter($this->collection, function(DependencyCollectonElement $e) use ($element) {\n return $this->objectsAreEqual($e->getElement(), $element);\n }) as $toRemove) {\n $this->remove($toRemove->getName(), $removeDependencies);\n }\n }", "public function clearCOMConditions()\n {\n $this->collCOMConditions = null; // important to set this to NULL since that means it is uninitialized\n }", "public function removeField($value) {\n return $this->setProperty('removeField', $value);\n }", "public function removeField($fieldName)\n {\n unset($this->fields[$fieldName]);\n }", "public function removeAllDependency($id)\n {\n $propertyValues = PropertyValue::where(\"property_id\", $id)->get();\n\n foreach($propertyValues as $value) {\n ProductProperty::where(\"property_value_id\",$value->id)->delete();\n PropertyValue::whereId($value->id)->delete();\n }\n\n }", "public function delete_field_group($field_group)\n {\n }", "function fn_payment_dependencies_delete_payment_post($payment_id, $result)\n{\n if (!$result) {\n return;\n }\n\n db_query(\n 'DELETE FROM ?:payment_dependencies WHERE disable_payment_id = ?i',\n $payment_id\n );\n}", "public function field_delete_field($field_name) {\n field_delete_field($field_name);\n field_purge_batch();\n }", "function bt_remove_order_notes( $fields ) {\n unset($fields['order']['order_comments']);\n return $fields;\n}", "function vistaportal_form_premed_remove($form, &$form_state) {\n if ($form_state['p_num_schools'] > 1) {\n $form_state['p_num_schools']--;\n }\n $form_state['rebuild'] = TRUE;\n }", "public function removeTag()\n\t{\n\t\tif(isset($this->primarySearchData[$this->ref_tag]))\n\t\t{\n\t\t\tunset($this->primarySearchData[$this->ref_tag]);\n\t\t}\n\t}", "function deleteProject(&$bean, $event, $arguments) {\n\t\tglobal $db, $current_user;\n\t\tif($arguments['related_module'] == 'Project'){\n\t\t\t$beanID = $bean->id;\n\t\t\t$bean->account_id1_c = '';\n\t\t\t$bean->project_start_date_c = '';\n\t\t\t$bean->project_end_date_c = '';\n\t\t\t$bean->rolloff_date = '';\n\t\t\t$bean->po_end_date_c = '';\n\t\t\t$query=\"UPDATE vedic_profiles_cstm vpc JOIN vedic_profiles vp ON vp.id = vpc.id_c SET vpc.project_start_date_c =NULL ,vpc.account_id1_c = NULL ,vp.rolloff_date=NULL,vpc.po_end_date_c=NULL WHERE vp.deleted='0' AND id='$beanID'\";\n\t\t\t$result = $db->query($query);\n\t\t}\n\t}", "public function remove(/* Variable */) {\n return $this->derive(func_get_args(), array('AND', 'NOT'));\n }", "function acf_remove_local_field_group($key = '')\n{\n}", "function del_condition($value,$table,$field) {\n \n global $prefix,$link;\n \n $sql = mysqli_query($link,\"DELETE FROM `\".$prefix.$table.\"` WHERE `\".$field.\"`='\".$value.\"'\");\n return $sql;\n \n}", "protected function removeCheckboxFieldNamesFromViewHelperVariableContainer() {}", "abstract public function buildDependency();", "function removeConstraintsConcerningQuestion($question_id)\n\t{\n\t\tglobal $ilDB;\n\t\t$result = $ilDB->queryF(\"SELECT constraint_fi FROM svy_qst_constraint WHERE question_fi = %s AND survey_fi = %s\",\n\t\t\tarray('integer','integer'),\n\t\t\tarray($question_id, $this->getSurveyId())\n\t\t);\n\t\tif ($result->numRows() > 0)\n\t\t{\n\t\t\t$remove_constraints = array();\n\t\t\twhile ($row = $ilDB->fetchAssoc($result))\n\t\t\t{\n\t\t\t\tarray_push($remove_constraints, $row[\"constraint_fi\"]);\n\t\t\t}\n\t\t\t$affectedRows = $ilDB->manipulateF(\"DELETE FROM svy_qst_constraint WHERE question_fi = %s AND survey_fi = %s\",\n\t\t\t\tarray('integer','integer'),\n\t\t\t\tarray($question_id, $this->getSurveyId())\n\t\t\t);\n\t\t\tforeach ($remove_constraints as $key => $constraint_id)\n\t\t\t{\n\t\t\t\t$affectedRows = $ilDB->manipulateF(\"DELETE FROM svy_constraint WHERE constraint_id = %s\",\n\t\t\t\t\tarray('integer'),\n\t\t\t\t\tarray($constraint_id)\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}", "public function deleteField($fieldName) {}", "public function clearWhere()\n {\n \t$this->_where = null;\n }", "private function removeField(string $parent, array &$content) {\n $path = preg_replace('/(\\d+)([.*\\d+])/x', '$1.fields$2', $parent);\n\n //$element = Arr::get($content['questions'], $path);\n\n Arr::forget($content[$this->configuration['fields_key']], $path);\n\n // remove fields index if it is empty\n /*$parentElement = Arr::get($content['questions'], $element['parent']);\n if (isset($parentElement['fields']) && empty($parentElement['fields'])) {\n $children = preg_replace('/([.]\\d+$)/', '', $path);\n Arr::forget($content['questions'], $children);\n }*/\n }", "public function delete() {\n// 'missionServiceUsers' => array(self::HAS_MANY, 'MissionServiceUser', 'id_service_user'),\n// //'serviceUserConditions' => array(self::MANY_MANY, 'Condition', 'tbl_service_user_condition(id_service_user, id_condition)'),\n// 'serviceUserConditions' => array(self::HAS_MANY, 'ServiceUserCondition', 'id_service_user'),\n\n\n parent::delete();\n }", "public function remove_field( $id ) {\n\n\t\t$fields = $this->options;\n\n\t\tif ( isset( $fields[ $id ] ) ) {\n\t\t\tunset( $fields[ $id ] );\n\t\t}\n\n\t\t$this->options = $fields;\n\n\t}", "function deleteConstraint($constraint_id)\n\t{\n\t\tglobal $ilDB;\n\t\t$affectedRows = $ilDB->manipulateF(\"DELETE FROM svy_constraint WHERE constraint_id = %s\",\n\t\t\tarray('integer'),\n\t\t\tarray($constraint_id)\n\t\t);\n\t\t$affectedRows = $ilDB->manipulateF(\"DELETE FROM svy_qst_constraint WHERE constraint_fi = %s\",\n\t\t\tarray('integer'),\n\t\t\tarray($constraint_id)\n\t\t);\n\t}", "public function removeValidation() {\n\n\t\t$fields = $this->getFields();\n\n\t\tforeach ($fields as $field) {\n\t\t\t$field->clearValidationRules();\n\t\t}\n\t}", "public function remove(UpdateFieldInterface $field)\n {\n $this->remove[] = $field;\n }", "public function removeRelation(RelationInterface $relation);", "private static function set_dependencies( $field, $args ) {\n\t\tif ( ! isset( $args['dep'] ) || empty( $args['dep'] ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$dependency = '';\n\t\t$relation = 'OR';\n\n\t\tif ( 'relation' === key( $args['dep'] ) ) {\n\t\t\t$relation = current( $args['dep'] );\n\t\t\tunset( $args['dep']['relation'] );\n\t\t}\n\n\t\tforeach ( $args['dep'] as $dependence ) {\n\t\t\t$compasrison = isset( $dependence[2] ) ? $dependence[2] : '=';\n\t\t\t$dependency .= '<span class=\"hidden\" data-field=\"' . $dependence[0] . '\" data-comparison=\"' . $compasrison . '\" data-value=\"' . $dependence[1] . '\"></span>';\n\t\t}\n\n\t\t$where = 'group' === $args['type'] ? 'after_group' : 'after_field';\n\t\t$field->args[ $where ] = '<div class=\"rank-math-cmb-dependency hidden\" data-relation=\"' . strtolower( $relation ) . '\">' . $dependency . '</div>';\n\t}", "function redcap_module_project_disable($version,$project_id) {\n $f = __DIR__.\"/field_data/\".$project_id.\"_field_data.json\";\n if(file_exists($f)) {\n unlink($f);\n }\n }", "public function __unset($field) {\n\t\t$this->offsetUnset($field);\n\t}", "public function __unset(string $field): void\n\t{\n\t\t$this->unsetValue($field);\n\t}", "function removeRequired($templateCode,$failure)\t{\n\t\treset($this->requiredArr);\n\t\twhile(list(,$theField)=each($this->requiredArr))\t{\n\t\t\tif (!t3lib_div::inList($failure,$theField))\t{\n\t\t\t\t$templateCode = $this->cObj->substituteSubpart($templateCode, '###SUB_REQUIRED_FIELD_'.$theField.'###', '');\n\t\t\t}\n\t\t}\n\t\treturn $templateCode;\n\t}", "public function removeFieldDecorator($field, $name)\n\t{\n\t\t// Check for existence of a model\n\t\tif (NULL === ($model = $this->getModel())) {\n\t\t\tthrow new Scil_Services_Model_Decorator_Exception(__METHOD__.' no model available to process!');\n\t\t}\n\n\t\tif ( ! $this->_formFields[$field] instanceof Zend_Form_Element) {\n\t\t\tthrow new Scil_Services_Model_Decorator_Exception(__METHOD__.' The field : '.$field.' does not exist!');\n\t\t}\n\n\t\t$this->_formFields[$field]->removeDecorator($name);\n\t\treturn $this;\n\t}", "public function removeField($field)\n {\n if (is_string($field)) {\n $field = $this->getField($field);\n }\n\n $pos = $this->getFieldPosition($field);\n if (false === $pos) {\n throw new EngineException(\n sprintf('No field named %s found in entity %s.', $field->getName(), $this->getName())\n );\n }\n\n unset($this->fields[$pos]);\n unset($this->fieldsByName[$field->getName()]);\n unset($this->fieldsByLowercaseName[strtolower($field->getName())]);\n// unset($this->fieldsByPhpName[$field->getName()]);\n\n $this->adjustFieldPositions();\n // @FIXME: also remove indexes and validators on this field?\n }", "function delete_field($field)\n {\n }", "public function delete() {\n\t\tif ($this->checkDependencies() == true ) {\n\t\t\t$sql = \"DELETE FROM \".$this->tablename.\" where \".$this->idcol.\" = \".$this->page->ctrl['record'];\n\t\t\t$this->dbc->exec($sql);\n\t\t}\n\t}", "protected function unsetFields()\n {\n }", "function projet_domaines_supprimer_callback($form, &$form_state){\r\n if ($form_state['dom_nums'] > 1) {\r\n $form_state['dom_nums']--;\r\n }\r\n $form_state['rebuild'] = TRUE;\r\n}", "public function deleteField($fieldName, $reset = true) {}", "static public function clearField($name) {\n $self = self::_getInstance();\n if ($self->_hasField($name)) {\n COption::RemoveOption(self::MODULE_NAME, $name);\n }\n }", "public static function removeRebuildIndicatorFile()\n {\n if (static::isRebuildAllowed()) {\n $name = static::getRebuildIndicatorFileName();\n $content = \\Includes\\Utils\\FileManager::read($name);\n\n // Only the process created the file can delete\n if (!empty($content) && (LC_IS_CLI_MODE || static::getRebuildIndicatorFileContent() == $content)) {\n \\Includes\\Utils\\FileManager::deleteFile($name);\n }\n }\n }", "public function fieldDependent($dependent, $dependOn, $colName) {\r\n $this->fieldDepend[$dependent] = array(\r\n \"dependOn\" => $dependOn,\r\n \"colName\" => $colName\r\n );\r\n return $this;\r\n }", "public function testRemoveField()\n\t{\n\t\t$this->instance->removeField('content');\n\n\t\t$this->instance->bind($this->getTestData());\n\n\t\t$this->assertNull($this->instance->content);\n\t}", "abstract protected function getUnexistingRequiredElement(string $requiredName): ?DependencyCollectonElement;", "public function beforeDelete()\n {\n // Find the related custom value\n $customValues = CustomValueModel::where('product_id', '=', $this->id)->get();\n\n $customValues->each(function ($value) {\n // Delete relation\n $relation = DB::table('tiipiik_catalog_csf_csv')\n ->where('custom_value_id', '=', $value->id)\n ->delete();\n\n // Delete custom value\n CustomValueModel::find($value->id)->delete();\n });\n\n // Detach properties\n $this->properties()->detach();\n }", "public function unsetPaymentField($name)\n\t{\n\t\tunset($this->_payment_fields[$name]);\n\t}", "public function removeConditionsByType($type)\n {\n $this->getConditionsByType($type)->each(function ($condition) {\n $this->removeCartCondition($condition->getName());\n });\n }", "protected function removeFormObjectFromViewHelperVariableContainer() {}", "public function deleteattributesandvaluesProjectUnit($filter=false)\n\t{\n\t\t$this->db->query(\"DELETE rp_property_attribute_values,rp_property_attribute_value_details FROM rp_property_attribute_values JOIN rp_property_attribute_value_details ON rp_property_attribute_value_details.attrValueID = rp_property_attribute_values.attrValueID WHERE rp_property_attribute_values.propertyID ='$filter'\");\n\t}", "public function unsetConditionDescriptor($index)\n {\n unset($this->conditionDescriptor[$index]);\n }", "public function remove($fieldname)\n {\n if (isset($this->fields[$fieldname]))\n unset($this->fields[$fieldname]);\n return $this;\n }", "function wbf_projet_domaines_supprimer_callback($form, &$form_state){\r\n if ($form_state['dom_nums'] > 1) {\r\n $form_state['dom_nums']--;\r\n }\r\n $form_state['rebuild'] = TRUE;\r\n}", "protected function removeWhere(BaseBuilder $query, $key)\n\t{\n\t\tunset($query->wheres[$key]);\n\n\t\t$query->wheres = array_values($query->wheres);\n\t}", "public function forceDeleted(Remission $remission)\n {\n //\n }", "function uninstall() {\n $rec = SQLSELECT('Select distinct LINKED_OBJECT,LINKED_PROPERTY from myconditions');\n $total = count($rec);\n if ($total) {\n for($i=0;$i<$total;$i++) {\n removeLinkedProperty($rec[$i]['LINKED_OBJECT'], $rec[$i]['LINKED_PROPERTY'], 'myrules');\n }\n }\n SQLExec('DROP TABLE IF EXISTS myrules');\n SQLExec('DROP TABLE IF EXISTS myconditions');\n SQLExec('DROP TABLE IF EXISTS myactions');\n\n parent::uninstall();\n }", "function uc_order_pane_line_items_remove($form, &$form_state) {\n $order = &$form_state['order'];\n $line_item_id = intval($form_state['triggering_element']['#return_value']);\n\n uc_order_delete_line_item($line_item_id);\n $order->line_items = uc_order_load_line_items($order);\n\n $form_state['rebuild'] = TRUE;\n}", "function setRemoved( $value )\n {\n $this->Removed = $value;\n }", "public function remove() {\n\t\t$this->setRemoved(TRUE);\n\t}", "function remove() \r\n {\r\n $tbl = new Payment_Config;\r\n $tbl->delete('where `module_key`=?', array($this->module_key()));\r\n }", "protected function afterRemoving()\n {\n }", "public function disableDeleteClause() {}", "public function remove(string $name, bool $removeDependencies = false, bool $removeReferences = true) {\n $remover = function($name) use (&$remover, $removeDependencies, $removeReferences) {\n $dependencies = $removeDependencies ? [] : NULL;\n\n $this->collection = array_filter($this->collection, function(DependencyCollectonElement $element) use ($name, &$dependencies) {\n if($element->getName() == $name) {\n if(is_array($dependencies)) {\n $dependencies = array_merge($dependencies, $element->getDependencies());\n }\n\n return false;\n }\n return true;\n });\n\n if($removeReferences) {\n array_walk($this->collection, function (DependencyCollectonElement $element) use ($name) {\n $element->removeDependency($name);\n });\n }\n\n if($dependencies && $dependencies = array_unique($dependencies)) {\n foreach($dependencies as $dependency) {\n if($dependency != $name)\n $remover($dependency);\n }\n }\n };\n $remover($name);\n $this->noteCollectionChanged();\n }", "function removeConstraint($constraintType, $columnName, $referencesTableName, $referencesColumnName) {\n foreach ($this->constraints as $key => $c) {\n if ($c->equals(new DbConstraint($constraintType, $columnName, $referencesTableName, $referencesColumnName))) {\n unset($this->constraints[$key]);\n }\n }\n }", "public function preRemove($entity);" ]
[ "0.6107537", "0.54564166", "0.53842205", "0.51452875", "0.51381606", "0.51334417", "0.5116349", "0.5092775", "0.5055619", "0.50327045", "0.5008828", "0.49984658", "0.49763364", "0.4971081", "0.49528888", "0.49489015", "0.49366048", "0.49343663", "0.49223763", "0.4916504", "0.49017054", "0.48560086", "0.48230574", "0.48226154", "0.48188207", "0.48117444", "0.47945505", "0.47880614", "0.47849438", "0.47821665", "0.476355", "0.475608", "0.4750389", "0.47423205", "0.47404742", "0.47222504", "0.471178", "0.47038025", "0.4689447", "0.46886986", "0.46868235", "0.46703714", "0.4666714", "0.46653304", "0.46646792", "0.4664679", "0.4662891", "0.4652084", "0.464644", "0.46455094", "0.46334466", "0.46196347", "0.46163848", "0.45888358", "0.45860034", "0.4560202", "0.45561612", "0.4549761", "0.45457816", "0.45395437", "0.453453", "0.45256788", "0.4521777", "0.4520563", "0.45102495", "0.45083013", "0.45082045", "0.45024624", "0.44991785", "0.4496756", "0.4487947", "0.4482459", "0.44795632", "0.44732678", "0.4470895", "0.44650713", "0.44588533", "0.44576165", "0.44450578", "0.44372758", "0.44335216", "0.44295096", "0.44284648", "0.44233495", "0.44193664", "0.44130144", "0.44122407", "0.44101813", "0.44079676", "0.44018024", "0.44010574", "0.4397462", "0.43921396", "0.43897775", "0.43879756", "0.43760943", "0.43682435", "0.43678594", "0.4365934", "0.43626556" ]
0.6473361
0
Display a listing of the resource.
public function index() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\n {\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n $model->u_cms_album_id = $_GET['album'];\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Show the form for creating a new resource.
public function store(Request $request) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view('resource.create');\n }", "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "public function create()\n {\n return \"Display a form for creating a new catalogue\";\n }", "public function newAction()\n {\n $entity = new Resource();\n $current = $this->get('security.context')->getToken()->getUser();\n $entity->setMember($current);\n $form = $this->createCreateForm($entity);\n\n return array(\n 'nav_active'=>'admin_resource',\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function create()\n {\n return view ('forms.create');\n }", "public function create ()\n {\n return view('forms.create');\n }", "public function create()\n\t{\n\t\treturn view('faith.form');\n\t}", "public function create(NebulaResource $resource): View\n {\n $this->authorize('create', $resource->model());\n\n return view('nebula::resources.create', [\n 'resource' => $resource,\n ]);\n }", "public function create()\n {\n return view(\"request_form.form\");\n }", "public function create()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.create\")) {\n $view = \"admin.{$this->name}.create\";\n } else {\n $view = 'admin.includes.actions.create';\n }\n\n /* Show the form for creating a new resource. */\n return view($view)\n ->with('name', $this->name);\n }", "public function newAction()\n\t{\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => 'Ajouter une nouvelle &eacute;cole'\n\t\t) ) );\n\t}", "public function create()\n {\n return view($this->forms . '.create');\n }", "public function create()\n {\n return view('restful.add');\n }", "public function create()\n {\n $resource = (new AclResource())->AclResource;\n\n //dd($resource);\n return view('Admin.acl.role.form', [\n 'resource' => $resource\n ]);\n }", "public function create()\n {\n return view('admin.createform');\n }", "public function create()\n {\n return view('admin.forms.create');\n }", "public function create()\n {\n return view('backend.student.form');\n }", "public function newAction()\n {\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Nuevo');\n\n $entity = $this->getManager()->create();\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function create()\n {\n return view('client.form');\n }", "public function create()\n {\n // Nos regresa la vista del formulario\n return view('project.form');\n }", "public function create()\n {\n return view('Form');\n }", "public function newAction(){\n \n $entity = new Resourceperson();\n $form = $this->createAddForm($entity);\n\n \n return $this->render('ABCRspBundle:rsp:add.html.twig',array('entity'=>$entity,'form'=> $form->createView()));\n }", "public function createForm()\n\t{\n\t\treturn view('post.new');\n\t}", "public function create()\n {\n return view('admin.form.create', ['form' => new Form]);\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n $title = $this->title;\n $subtitle = \"Adicionar cliente\";\n\n return view('admin.clients.form', compact('title', 'subtitle'));\n }", "public function create()\n {\n return view('backend.schoolboard.addform');\n }", "public function create()\n\t{\n\t\treturn view('info.forms.createInfo');\n\t}", "public function create()\n {\n //\n return view('form');\n }", "public function create()\n {\n return view('rests.create');\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return view(\"Add\");\n }", "public function create(){\n return view('form.create');\n }", "public function create()\n {\n // Show the page\n return view('admin.producer.create_edit');\n }", "public function create()\n {\n\n return view('control panel.student.add');\n\n }", "public function newAction() {\n\t\t\n\t\t$this->view->form = $this->getForm ( \"/admin/invoices/process\" );\n\t\t$this->view->title = $this->translator->translate(\"New Invoice\");\n\t\t$this->view->description = $this->translator->translate(\"Create a new invoice using this form.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"#\", \"label\" => $this->translator->translate('Save'), \"params\" => array('css' => null,'id' => 'submit')),\r\n\t\t\t\t\t\t\t array(\"url\" => \"/admin/invoices/list\", \"label\" => $this->translator->translate('List'), \"params\" => array('css' => null)));\n\t\t$this->render ( 'applicantform' );\n\t}", "public function create()\n {\n $data['action'] = 'pengiriman.store';\n return view('pengiriman.form', $data);\n }", "public function create()\n {\n return $this->cView(\"form\");\n }", "public function newAction()\n {\n // Création de l'entité et du formulaire.\n $client = new Client();\n $formulaire = $this->createForm(new ClientType(), $client);\n \n \n \n // Génération de la vue.\n return $this->render('KemistraMainBundle:Client:new.html.twig',\n array('formulaire' => $formulaire->createView()));\n }", "public function create()\n {\n return view(\"dresses.form\");\n }", "public function create()\n\t{\n\t\treturn View::make('new_entry');\n\t}", "public function createAction()\n {\n// $this->view->form = $form;\n }", "public function create()\n {\n return view('bank_account.form', ['mode' => 'create']);\n }", "public function create()\n {\n return view('fish.form');\n }", "public function create()\n {\n return view('users.forms.create');\n }", "public function create()\n {\n $this->setFormFields($this->getCreateFormFields());\n $form = $this->getCreateForm();\n\n return view($this->getViewName('create'), [\n 'crudSlug' => $this->slug,\n 'form' => $form,\n ]);\n }", "public function create()\n\t{\n\t\treturn view('admin.estadoflete.new');\n\t}", "public function create()\n {\n $person = new Person;\n return view('contents.personform')->with(compact('person') );\n }", "public function createAction(){\n \t$this->view->placeholder('title')->set('Create');\n \t$this->_forward('form');\n }", "public function create()\n {\n Gate::authorize('app.products.create');\n\n return view('backend.products.form');\n }", "public function create()\n {\n return view('essentials::create');\n }", "public function create()\n {\n return view('student.add');\n }", "public function create()\n\t{\n\t\treturn view('loisier/create');\n\t}", "public function create()\n {\n return view('url.form');\n }", "public function newAction()\n {\n $entity = new Facture();\n $factureType = new FactureType();\n\t\t$factureType->setUser($this->get('security.context')->getToken()->getUser());\n $form = $this->createForm($factureType, $entity);\n\n return $this->render('chevPensionBundle:Facture:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function newAction()\n {\n $entity = new Chofer();\n $form = $this->createForm(new ChoferType(), $entity, ['user' => $this->getUser()]);\n\n return $this->render('ChoferesBundle:Chofer:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'css_active' => 'chofer',\n ));\n }", "public function create()\n\t{\n\t\treturn View::make('crebos.create');\n\t}", "public function create() : View\n {\n $fieldset = $this->menuFieldset();\n\n return $this->view('create', [\n 'title' => trans('addons.Aardwolf::titles.create'),\n 'data' => [],\n 'fieldset' => $fieldset->toPublishArray(),\n 'suggestions' => [],\n 'submitUrl' => route('aardwolf.postCreate')\n ]);\n }", "public function create()\n {\n return view('libro.create');\n }", "public function create()\n {\n return view('libro.create');\n }", "public function newAction()\n {\n $entity = new Species();\n $form = $this->createForm(new SpeciesType(), $entity);\n\n return $this->render('InfectBackendBundle:Species:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view('crud/add'); }", "public function create()\n\t{\n\t\treturn View::make('supplier.create');\n\t}", "public function newAction()\n {\n $entity = new Company();\n $form = $this->createForm(new CompanyType(), $entity);\n\n return $this->render('SiteSavalizeBundle:Company:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view(\"List.form\");\n }", "public function index_onCreateForm()\n\t{\n\t\tparent::create();\n\t\treturn $this->makePartial('create');\n\t}", "public function create()\n {\n //load create form\n return view('products.create');\n }", "public function create()\n {\n return view('article.addform');\n }", "public function create()\n {\n // Mengarahkan ke halaman form\n return view('buku.form');\n }", "public function create()\n\t{\n\t\t// load the create form (app/views/material/create.blade.php)\n\t\t$this->layout->content = View::make('material.create');\n\t}", "public function create()\n {\n return view('saldo.form');\n }", "public function create()\n\t\t{\n\t\t\treturn view('kuesioner.create');\n\t\t}", "public function view_create_questioner_form() {\n \t// show all questioner\n \t// send questioner to form\n \treturn view(\"create_questioner\");\n }", "public function newAction() {\n $entity = new Question();\n $form = $this->createCreateForm($entity);\n\n return $this->render('CdlrcodeBundle:Question:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n $data['companies'] = Company::select('id', 'name')->where('status', 1)->orderBy('id', 'desc')->get();\n return view('admin.outlet.outlet_form', $data);\n }", "public function create()\n {\n return view('admin.inverty.add');\n }", "public function create()\n {\n return view('Libro.create');\n }", "public function create()\n {\n $title = trans('entry_mode.new');\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n $breadcrumb='car.create';\n return view('admin.partials.cars.form', compact('breadcrumb'));\n }", "public function create()\n {\n return view(\"familiasPrograma.create\");\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n\t{\n\t\treturn View::make('perusahaans.create');\n\t}", "public function create()\n {\n return view(\"create\");\n }", "public function create()\n\t{\n //echo 'show form';\n\t\treturn View::make('gaans.create');\n\t}", "public function create()\n {\n $title = trans('dormitorybed.new');\n $this->generateParams();\n\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n return view('forming');\n }", "public function formNew() {\n $this->data->options = array(\n 'RJ' => 'Rio de Janeiro',\n 'MG' => 'Minas Gerais',\n 'SP' => 'São Paulo',\n 'ES' => 'Espírito Santo',\n 'BA' => 'Bahia',\n 'RS' => 'Rio Grande do Sul'\n );\n $this->data->action = \"@exemplos/pessoa/save\";\n $this->render();\n }", "public function create()\n {\n \t\n \treturn view('supplies.create');\n\n }", "public function createAction()\n {\n if ($form = $this->processForm()) {\n $this->setPageTitle(sprintf($this->_('New %s...'), $this->getTopic()));\n $this->html[] = $form;\n }\n }", "public function create()\n {\n $page_title = \"Add New\";\n return view($this->path.'create', compact('page_title'));\n }", "public function create()\n {\n // not sure what to do with the form since im\n // using ame partial for both create and edit\n return view('plants.create')->with('plant', new Plant);\n }", "public function create() {\n\t\t$title = 'Create | Show';\n\n\t\treturn view('admin.show.create', compact('title'));\n\t}", "public function create()\n {\n return view('student::students.student.create');\n }", "public function newAction(){\n\t\t$entity = new Reserva();\n\t\t$form = $this->createCreateForm($entity);\n\n\t\treturn $this->render('LIHotelBundle:Reserva:new.html.twig', array(\n\t\t\t'entity' => $entity,\n\t\t\t'form' => $form->createView(),\n\t\t));\n\t}" ]
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.7174283", "0.7150356", "0.71444064", "0.71442676", "0.713498", "0.71283126", "0.7123691", "0.71158516", "0.71158516", "0.71158516", "0.7112176", "0.7094388", "0.7085711", "0.708025", "0.70800644", "0.70571953", "0.70571953", "0.70556754", "0.70396435", "0.7039549", "0.7036275", "0.703468", "0.70305896", "0.7027638", "0.70265305", "0.70199823", "0.7018007", "0.7004984", "0.7003889", "0.7000935", "0.69973785", "0.6994679", "0.6993764", "0.6989918", "0.6986989", "0.6966502", "0.69656384", "0.69564354", "0.69518244", "0.6951109", "0.6947306", "0.69444615", "0.69423944", "0.6941156", "0.6937871", "0.6937871", "0.6936686", "0.69345254", "0.69318026", "0.692827", "0.69263744", "0.69242257", "0.6918349", "0.6915889", "0.6912884", "0.691146", "0.69103104", "0.69085974", "0.69040126", "0.69014287", "0.69012105", "0.6900397", "0.68951064", "0.6893521", "0.68932164", "0.6891899", "0.6891616", "0.6891616", "0.6889246", "0.68880934", "0.6887128", "0.6884732", "0.68822503", "0.68809193", "0.6875949", "0.68739206", "0.68739134", "0.6870358", "0.6869779", "0.68696856", "0.686877" ]
0.0
-1
Display the specified resource.
public function show(CierreCajas $cierreCajas) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id);\n }", "private function showResourceable($resourceable)\n {\n save_resource_url();\n\n return $this->view('resources.create_edit')\n ->with('resource', $resourceable)\n ->with('photos', $resourceable->photos)\n ->with('videos', $resourceable->videos)\n ->with('documents', $resourceable->documents);\n }", "function display($resource_name, $cache_id = null, $compile_id = null) {\n\t\t$this->_getResourceInfo($resource_name); // Saves resource info to a Smarty class var for debugging\n\t\t$_t3_fetch_result = $this->fetch($resource_name, tx_smarty_div::getCacheID($cache_id), $compile_id);\n if ($this->debugging) { // Debugging will have been evaluated in fetch\n require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');\n $_t3_fetch_result .= smarty_core_display_debug_console(array(), $this);\n }\n\t\treturn $_t3_fetch_result;\n\t}", "public function show(ResourceSubject $resourceSubject)\n {\n //\n }", "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function retrieve(Resource $resource);", "public function showResource($resouceable, $id)\n {\n $model_name = str_replace('-', ' ',ucwords($resouceable));\n $model_name = str_replace(' ', '',ucwords($model_name));\n\n $resource_type = 'App\\Models\\\\'.$model_name;\n $model = app($resource_type);\n $model = $model->find($id);\n\n return $this->showResourceable($model);\n }", "public function showAction(Ressource $ressource)\n {\n $deleteForm = $this->createDeleteForm($ressource);\n\n return $this->render('ressource/show.html.twig', array(\n 'ressource' => $ressource,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function show(Dispenser $dispenser)\n {\n //\n }", "public function show($id)\n {\n $resource = Resource::find($id);\n dd($resource);\n }", "public function displayAction() {\n\t\tif(is_numeric($this->req_id)) {\n\t\t\tAPI::DEBUG(\"[DefaultController::displayAction()] Getting \" . $this->req_id, 1);\n\t\t\t$this->_view->data['info'] = $this->_model->get($this->req_id);\n\t\t\t$this->_view->data['action'] = 'edit';\n\n\t\t} else {\n\t\t\t$this->_view->data['action'] = 'new';\n\t\t}\n\t\t// auto call the hooks for this module/action\n\t\terror_log(\"Should Call: \" . $this->module .\"/\".$this->action.\"/\".\"controller.php\");\n\t\tAPI::callHooks($this->module, $this->action, 'controller', $this);\n\n\t\t$this->addModuleTemplate($this->module, 'display');\n\n\t}", "public function show(NebulaResource $resource, $item): View\n {\n $this->authorize('view', $item);\n\n return view('nebula::resources.show', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function resource(string $resource, string $controller): void\n {\n $base = $this->plural($resource);\n $entity = '/{'.$resource.'}';\n\n $this->app->get($base, $controller.'@index');\n $this->app->post($base, $controller.'@store');\n $this->app->get($base.$entity, $controller.'@show');\n $this->app->patch($base.$entity, $controller.'@update');\n $this->app->delete($base.$entity, $controller.'@destroy');\n }", "function displayCustom($resource_name, $cache_id = null, $compile_id = null)\n\t{\n\t return $this->display(DotbAutoLoader::existingCustomOne($resource_name), $cache_id, $compile_id);\n\t}", "public function show($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.show\")) {\n $view = \"admin.{$this->name}.show\";\n } else {\n $view = 'admin.includes.actions.show';\n }\n\n /* Displays the specified resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function show($id)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $rules = [\n 'id' => 'required|integer'\n ];\n\n $validator = Validator::make(['id' => $id], $rules);\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n $resource = $this->resourceRepository->fetchResource($id);\n $this->resourceRepository->storeView($id, $currentUser['id']);\n\n $data = [\n 'resource' => $resource,\n 'related_resources' => $this->resourceRepository->getResourcesRelatedTo($resource->id, $resource->mentoring_area_id)\n ];\n\n return APIHandler::response(1, \"Show Resource\", $data);\n }", "public function get(Resource $resource);", "public function showAction()\n {\n $model = $this->_getPhotoModel();\n $photo = $model->fetchEntry($this->getRequest()->getParam('id'));\n\n if (null === $photo) {\n return $this->_forward('notfound', 'error');\n }\n\n $this->view->auth = Zend_Auth::getInstance();\n $this->view->title = $photo->title;\n $this->view->photo = $photo;\n }", "public function show($id)\n {\n //\n $data=Resource::find($id);\n return view('resourceDetails',compact('data'));\n }", "function display() {\n\t\t$view = &$this->getView();\n\t\t$view->display();\n\t}", "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "function show( $resource ){\n\n $where = \"reservation_status <> 'Pending' AND id = {$resource}\";\n $reservation = where( 'reservations', $where );\n $reservation = $reservation[0];\n\n return view('admin/reservation/preview_reservation', compact( 'reservation' ));\n}", "public function show()\n {\n if ($this->twig !== false) {\n $this->twigDefaultContext();\n if ($this->controller) {\n $this->controller->display($this->data);\n }\n echo $this->twig->render($this->twig_template, $this->data);\n } else {\n $filename = $this->findTemplatePath($this->template);\n require($filename);\n }\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function show(rc $rc)\n {\n //\n }", "public function show(Resolucion $resolucion)\n {\n //\n }", "public function showAction(furTexture $furTexture)\n {\n\n return $this->render('furtexture/show.html.twig', array(\n 'furTexture' => $furTexture,\n ));\n }", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show(Resena $resena)\n {\n }", "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function showAction() {\n $docId = $this->getParam('id');\n\n // TODO verify parameter\n\n $document = new Opus_Document($docId);\n\n $this->_helper->layout()->disableLayout();\n\n $this->view->doc = $document;\n $this->view->document = new Application_Util_DocumentAdapter($this->view, $document);\n }", "public function action_display()\r\n\t{\r\n\t\t$event = ORM::factory('event', array('id' => $this->request->param('id')));\r\n\t\r\n\t\tif ( ! $event->loaded())\r\n\t\t{\r\n\t\t\tNotices::error('event.view.not_found');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Can user view this event?\r\n\t\tif ( ! $this->user->can('event_view', array('event' => $event)))\r\n\t\t{\r\n\t\t\t// Error notification\r\n\t\t\tNotices::error('event.view.not_allowed');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Pass event data to the view class\r\n\t\t$this->view->event_data = $event;\r\n\t\t$this->view->user = $this->user;\r\n\t}", "public function execute()\n {\n // HTTP Request Get\n if ($this->type == \"resource\") {\n $action = $this->getResourceAction();\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n } else {\n $action = $this->Request->action;\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n }\n }", "public function show(Resident $resident)\n {\n $this->authorize('admin.resident.show', $resident);\n\n // TODO your code goes here\n }", "public function display()\n {\n echo $this->getDisplay();\n $this->isDisplayed(true);\n }", "public function display()\n\t{\n\t\tparent::display();\n\t}", "public function get_resource();", "public function show()\n\t{\n\t\t\n\t}", "function display() {\n\n\t\t// Check authorization, abort if negative\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t// Get the view\n\t\t$view = $this->getDefaultView();\n\n\t\tif ($view == NULL) {\n\t\t\tthrow new Exception('Display task called, but there is no view assigned to that controller. Check method getDefaultView.');\n\t\t}\n\n\t\t$view->listing = true;\n\n\t\t// Wrap the output of the views depending on the way the stuff should be shown\n\t\t$this->wrapViewAndDisplay($view);\n\n\t}", "public function viewResources()\n {\n $database = new Database();\n\n $resources = $database->getAllActiveResourcesNoLimit();\n\n\n $resourceArray = array();\n $i = 1;\n\n foreach ($resources as $resource) {\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n array_push($resourceArray, $availableResource);\n $i += 1;\n }\n $resourceSize = sizeof($resourceArray);\n $this->_f3->set('resourcesByActive', $resourceArray);\n $this->_f3->set('resourcesSize', $resourceSize);\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }", "public function display($title = null)\n {\n echo $this->fetch($title);\n }", "public function display(){}", "public function show($id)\n\t{\n\t\t//\n\t\t//\n\t\n\t}", "public function viewAction()\n\t{\n\t\t//get Id param from request\n\t\tif (!$id = $this->_getParam('id')) {\n\t\t\t$this->getFlashMessenger()->addMessage('Product ID was not specified');\n\t\t\t$this->getRedirector()->gotoSimple('list');\n\t\t}\n\n\t\t//fetch requested ProductID from DB\n\t\tif (!$this->_model->fetch($id)) {\n\t\t\t$this->render('not-found');\n\t\t} else {\n\t\t\t$this->view->model = $this->_model;\n\t\t}\n\t}", "public function show($id)\n {\n // Get single person\n $person = Person::findOrFail($id);\n\n // Return single person as a resource\n return '<h1>Person Number '.$id.'</h1><br>'.json_encode(new PersonResource($person));\n }", "#[TODO] use self object?\n\tprotected function GET(ResourceObject $resource) {\n#[TODO]\t\tif ($resource->getMTime())\n#[TODO]\t\t\t$this->response->headers->set('Last-modified', gmdate('D, d M Y H:i:s ', $resource->getMTime()) . 'GMT');\n#[TODO]\t\tif ($resource->getCTime())\n#[TODO]\t\t\t$this->response->headers->set('Date', gmdate('D, d M Y H:i:s ', $resource->getCTime()) . 'GMT');\n\n\n#[TODO] handle file streams\n\t\t// get ranges\n#\t\t$ranges = WebDAV::getRanges($this->request, $this->response);\n\n\t\t// set the content of the response\n\t\tif ($resource instanceof ResourceDocument) {\n\t\t\t$this->response->content->set($resource->getContents());\n\t\t\t$this->response->content->setType($resource->getMIMEType());\n\t\t\t$this->response->content->encodeOnSubmit(true);\n\t\t}\n\t}", "public function display() {\n echo $this->render();\n }", "public function show($id)\n\t{\n\t//\n\t}", "public function show($id)\n\t{\n\t//\n\t}", "function Fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)\n {\n return $this->_smarty->fetch($resource_name, $cache_id, $compile_id, $display);\n }", "public function show($id)\n {\n //\n $this->_show($id);\n }", "public function show()\n\t{\n\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {}", "static public function showCallback(O_Dao_Renderer_Show_Params $params) {\r\n\t\t/* @var $r R_Mdl_Resource */\r\n\t\t$r = $params->record();\r\n\t\t// Setting layout title\r\n\t\t$params->layout()->setTitle($r->getPageTitle());\r\n\r\n?><h1><?=$r->title?></h1><div id=\"resource\"><?\r\n\t\tif($r->getContent()) {\r\n\t\t\t// page has its own content -- show it\r\n\t\t\t$r->getContent()->show($params->layout(), \"content\");\r\n\t\t} else {\r\n\t\t\t// It is a post unit, show all childs\r\n\t\t\tif($r->is_unit == 1) {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"content\");\r\n\r\n\t\t\t// It is a folder with several units, show paginator\r\n\t\t\t} elseif($r->show_def == \"last-units\") {\r\n\t\t\t\tlist($type, $perpage) = explode(\":\", $r->show_def_params);\r\n\t\t\t\t/* @var $p O_Dao_Paginator */\r\n\t\t\t\t$p = $r->addQueryAccessChecks($r->getChilds())->test(\"is_unit\", 1)->getPaginator(array($r, \"getPageUrl\"), $perpage);\r\n\t\t\t\t$p->show($params->layout(), $type);\r\n\t\t\t// It is a folder with subfolders, boxes, contents. Show one childs level\r\n\t\t\t} else {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"on-parent-page\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n?></div><?\r\n\t}", "public function show($id)\r\n\t{\r\n\t\t//\r\n\r\n\r\n\r\n\t}", "public function show($resourceId, $eventId)\n {\n $routes = $this->routes;\n\n $eventable = $this->getEventableRepository()->model()->findOrFail($resourceId);\n\n if (method_exists($eventable, 'events')) {\n $event = $eventable->events()->find($eventId);\n\n if ($event) {\n $apiObject = $this->event->findApiObject($event->api_id);\n\n return view('events.eventables.show', compact('routes', 'eventable', 'event', 'apiObject'));\n }\n }\n\n abort(404);\n }", "public abstract function display();", "abstract public function resource($resource);", "public function show($id)\r\r\n\t{\r\r\n\t\t//\r\r\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show(Response $response)\n {\n //\n }", "public function show()\n {\n return auth()->user()->getResource();\n }", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}" ]
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245", "0.60389996", "0.6016584", "0.598783", "0.5961788", "0.59606946", "0.5954321", "0.59295714", "0.59182066", "0.5904556", "0.59036547", "0.59036547", "0.59036547", "0.5891874", "0.58688277", "0.5868107", "0.58676815", "0.5851883", "0.58144855", "0.58124036", "0.58112013", "0.5803467", "0.58012545", "0.5791527", "0.57901084", "0.5781528", "0.5779676", "0.5757105", "0.5756208", "0.57561266", "0.57453394", "0.57435393", "0.57422745", "0.5736634", "0.5736634", "0.5730559", "0.57259274", "0.5724891", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5718969", "0.5713412", "0.57091093", "0.5706405", "0.57057405", "0.5704541", "0.5704152", "0.57026845", "0.57026845", "0.56981397", "0.5693083", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962" ]
0.0
-1
Show the form for editing the specified resource.
public function edit(CierreCajas $cierreCajas) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.edit\")) {\n $view = \"admin.{$this->name}.edit\";\n } else {\n $view = 'admin.includes.actions.edit';\n }\n\n /* Displays the edit resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function edit(NebulaResource $resource, $item): View\n {\n $this->authorize('update', $item);\n\n return view('nebula::resources.edit', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function edit() {\r\n $id = $this->api->getParam('id');\r\n\r\n if ($id) {\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n }\r\n $object = $this->model->find_by_id($id);\r\n\r\n $this->api->loadView('contact-form', array('row' => $object));\r\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function edit()\n {\n return view('hirmvc::edit');\n }", "public function editformAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\n\t}", "public function edit() {\n $id = $this->parent->urlPathParts[2];\n // pass name and id to view\n $data = $this->parent->getModel(\"fruits\")->select(\"select * from fruit_table where id = :id\", array(\":id\"=>$id));\n $this->getView(\"header\", array(\"pagename\"=>\"about\"));\n $this->getView(\"editForm\", $data);\n $this->getView(\"footer\");\n }", "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "public function edit($id)\n {\n $model = $this->modelObj;\n $formObj = $model::findOrFail($id);\n $data['formObj'] = $formObj;\n return view($this->veiw_base . '.edit', $data);\n }", "public function createEditForm(Resourceperson $entity){\n \n $form = $this->createForm(new ResourcepersonType(), $entity, array(\n 'action' => $this->generateUrl('rsp_update', array('id' => $entity->getRpId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update','attr'=> array(\n 'class'=>'btn btn primary'\n )));\n\n return $form;\n }", "private function createEditForm(Resource $entity)\n {\n $form = $this->createForm(new ResourceType(), $entity, array(\n 'action' => $this->generateUrl('social_admin_resource_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => '保存','attr'=>[\n 'class'=>'btn btn-primary'\n ]));\n\n return $form;\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function editAction()\n {\n if ($form = $this->processForm()) {\n if ($this->useTabbedForms && method_exists($this, 'getSubject')) {\n $data = $this->getModel()->loadFirst();\n $subject = $this->getSubject($data);\n $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));\n } else {\n $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));\n }\n $this->html[] = $form;\n }\n }", "public function edit($id)\n {\n $this->data['entity'] = GS_Form::where('id', $id)->firstOrFail();\n return view('admin.pages.forms.edit', $this->data);\n }", "public function edit($id)\n\t{\n\t\t// get the fbf_presenca\n\t\t$fbf_presenca = FbfPresenca::find($id);\n\n\t\t\n\t\t// show the edit form and pass the fbf_presenca\n\t\t$this->layout->content = View::make('fbf_presenca.edit')\n->with('fbf_presenca', $fbf_presenca);\n\t}", "public function edit($id)\n {\n $data = $this->model->find($id);\n\n return view('admin.backends.employee.form.edit',compact('data'));\n }", "public function edit($model, $form);", "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "public function edit($id)\n\t{\n\t\t$faith = Faith::find($id);\n \n return view('faith.form')->with('faith', $faith);\n\n\t}", "public function edit()\n { \n return view('admin.control.edit');\n }", "public function edit(Form $form)\n {\n //\n }", "public function edit()\n {\n return view('common::edit');\n }", "public function edit($id)\n {\n $resource = (new AclResource())->AclResource;\n $roleResource = AclRole::where('role', $id)->get(['resource'])->toArray();\n $roleResource = Arr::pluck($roleResource, 'resource');\n return view('Admin.acl.role.form', [\n 'role' => $id,\n 'resource' => $resource,\n 'roleResource' => $roleResource,\n ]);\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\r\n {\r\n return view('petro::edit');\r\n }", "public function edit($id)\n {\n // show form edit user info\n }", "public function edit()\n {\n return view('escrow::edit');\n }", "public function edit($id)\n {\n $resource = ResourceManagement::find($id);\n\n $users = User::get();\n // Redirect to user list if updating user wasn't existed\n if ($resource == null || $resource->count() == 0) {\n return redirect()->intended('/resource-management');\n }\n\n return view('resources-mgmt/edit', ['resource' => $resource, 'users' => $users]);\n }", "public function edit()\n {\n return view('commonmodule::edit');\n }", "public function editAction()\n\t{\n\t\t$params = $this->data->getParams();\n\t\t$params = $this->valid->clearDataArr($params);\n\t\tif (isset($params['id']))\n\t\t{\n\t\t\t$this->employee->setFlag(true);\n\t\t}\n\t\tif (isset($_POST['submit']))\n\t\t{\n\t\t\t$action = $this->valid->clearDataArr($_POST);\n\t\t\t$this->employee->setDataArray($action);\n\t\t\theader('Location: ' . PATH . 'Employee/index/', true, 303);\n\t\t}\n\t\t$employee = $this->employee->setAction('edit');\n\t\t$this->view->addToReplace($employee);\n\t\t$this->listEmployee();\n\t\t$this->arrayToPrint();\n\t}", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit(form $form)\n {\n //\n }", "public function actionEdit($id) { }", "public function edit()\n {\n return view('admincp::edit');\n }", "public function edit()\n {\n return view('scaffold::edit');\n }", "public function edit($id)\n {\n $header = \"Edit\";\n\t\t$data = Penerbit::findOrFail($id);\n\t\treturn view('admin.penerbit.form', compact('data','header'));\n }", "public function edit()\n {\n return view('Person.edit');\n }", "public function edit($id)\n {\n $data = Form::find($id);\n return view('form.edit', compact('data'));\n }", "public function edit($id)\n\t{\n\t\t$career = $this->careers->findById($id);\n\t\treturn View::make('careers._form', array('career' => $career, 'exists' => true));\n\t}", "public function edit(Flight $exercise, FlightResource $resource)\n {\n return $this->viewMake('adm.smartcars.exercise-resources.edit')\n ->with('flight', $exercise)\n ->with('resource', $resource);\n }", "public function edit($id)\n\t{\n\t\t// get the material\n\t\t$material = Material::find($id);\n\n\t\t// show the edit form and pass the material\n\t\t$this->layout->content = View::make('material.edit')\n\t\t\t->with('material', $material);\n\t}", "public function edit($id, Request $request)\n {\n $formObj = $this->modelObj->find($id);\n\n if(!$formObj)\n {\n abort(404);\n } \n\n $data = array();\n $data['formObj'] = $formObj;\n $data['page_title'] = \"Edit \".$this->module;\n $data['buttonText'] = \"Update\";\n\n $data['action_url'] = $this->moduleRouteText.\".update\";\n $data['action_params'] = $formObj->id;\n $data['method'] = \"PUT\"; \n\n return view($this->moduleViewName.'.add', $data);\n }", "public function edit()\n {\n $id = $this->getId();\n return view('panel.user.form', [\n 'user' => $this->userRepository->findById($id),\n 'method' => 'PUT',\n 'routePrefix' => 'profile',\n 'route' => 'profile.update',\n 'parameters' => [$id],\n 'breadcrumbs' => $this->getBreadcrumb('Editar')\n ]);\n }", "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getParameter('id');\n\t\t$product = $this->model->product->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('product/edit', [\n\t\t\t'product' => $product\n\t\t]);\n\t}", "public function edit($id)\n {\n //\n $data = Diskon::find($id);\n\n $form = $this->form;\n $edit = $this->edit;\n $field = $this->field;\n $page = $this->page;\n $id = $id;\n $title = $this->title;\n return view('admin/page/'.$this->page.'/edit',compact('form','edit','data','field','page','id','title'));\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "public function editAction()\n {\n $robot = Robots::findFirst($this->session->get(\"robot-id\"));\n if ($this->request->isGet()) {\n $this->tag->prependTitle(\"Редактировать робота :: \");\n $user = $this->session->get(\"auth-id\");\n if (!$robot) {\n $this->flashSession->error(\n \"Робот не найден\"\n );\n return $this->response->redirect(\"users/usershow/$user->name\");\n }\n\n }\n\n $this->view->form = new RobotForm(\n $robot,\n [\n \"edit\" => true,\n ]\n );\n }", "public function editAction()\n {\n $form = new $this->form();\n\n $request = $this->getRequest();\n $param = $this->params()->fromRoute('id', 0);\n\n $repository = $this->getEm()->getRepository($this->entity);\n $entity = $repository->find($param);\n\n if ($entity) {\n\n $form->setData($entity->toArray());\n\n if ( $request->isPost() ) {\n\n $form->setData($request->getPost());\n\n if ( $form->isValid() ) {\n\n $service = $this->getServiceLocator()->get($this->service);\n $service->update($request->getPost()->toArray());\n\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n }\n } else {\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n\n return new ViewModel(array('form' => $form, 'id' => $param));\n\n }", "public function edit($id)\n\t{\n\t\t$SysApplication = \\Javan\\Dynaflow\\Domain\\Model\\SysApplication::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysApplicationForm', [\n \t'method' => 'POST',\n \t'url' => 'sysapplication/update/'.$id,\n \t'model' => $SysApplication,\n \t'data' => [ 'flow_id' => $SysApplication->flow_id]\n \t]);\n\t\treturn View::make('dynaflow::sysapplication.form', compact('form', 'SysApplication'));\n\t}", "public function editAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif (!$item) {\n\t\t\t$item = $model->createRow();\n\t\t}\n\t\t$form = $item->getForm();\n\t\tif ($this->_request->isPost()) {\n\t\t\t$newId = $form->populate($this->_request->getPost())->save();\n\t\t\tif ($newId) {\n\t\t\t\t$this->_helper->flashMessenger('Saved successfully!');\n\t\t\t\t$this->_helper->redirector('edit', null, null, array('id' => $newId, 'model' => $modelName));\n\t\t\t}\n\t\t}\n\t\t$this->view->form = $form;\n\t\t$this->view->messages = $this->_helper->flashMessenger->getMessages();\n\t}", "public function edit($id)\n {\n return view('models::edit');\n }", "public function edit()\n {\n return view('home::edit');\n }", "public function editAction()\n {\n $id = $this->params()->fromRoute('id');\n $entity = $this->entityManager->find(Entity\\CourtClosing::class, $id);\n if (! $entity) {\n // to do: deal with it\n }\n $form = $this->getForm('update');\n $form->bind($entity);\n if ($this->getRequest()->isPost()) {\n return $this->post();\n }\n\n return new ViewModel(['form' => $form]);\n }", "public function editAction($id)\n {\n $entity = $this->getManager()->find($id);\n\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Editar');\n\n if (!$entity) {\n throw $this->createNotFoundException('No se ha encontrado el elemento');\n }\n\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit(Form $form)\n {\n return view('admin.forms.edit', compact('form'));\n }", "public function editAction()\n {\n $form = MediaForm::create($this->get('form.context'), 'media');\n $media = $this->get('media_manager.manager')->findOneById($this->get('request')->get('media_id'));\n \n $form->bind($this->get('request'), $media);\n \n return $this->render('MediaManagerBundle:Admin:form.html.twig', array('form' => $form, 'media' => $media));\n }", "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CdlrcodeBundle:Question')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Question entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('CdlrcodeBundle:Question:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('consultas::edit');\n }", "public function edit(DirectorFormBuilder $form, $id)\n {\n return $form->render($id);\n }", "public function edit()\n {\n return view('dashboard::edit');\n }", "public function edit($id){\n $rfid = Rfid::find($id);\n\n //load form view\n return view('rfids.edit', ['rfid' => $rfid]);\n }", "public function edit($id)\n {\n\n // retrieve provider\n $provider = Provider::findOrFail($id);\n\n // return form with provider\n return view('backend.providers.form')->with('provider', $provider);\n }", "public function edit(Question $question)\n {\n $this->employeePermission('application' , 'edit');\n $question->chooses;\n $action = 'edit';\n return view('admin.setting.question_form', compact('action' , 'question'));\n }", "public function edit() {\n return view('routes::edit');\n }", "public function edit($id)\n {\n $this->data['product'] = Product::find($id);\n $this->data['category'] = Category::arrForSelect();\n $this->data['title'] = \" Update Prouct Details\";\n $this->data['mode'] = \"edit\";\n\n return view('product.form', $this->data);\n }", "public function edit(ClueEnFormBuilder $form, $id): Response\n {\n return $form->render($id);\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BaseBundle:Feriado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Feriado entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BaseBundle:Feriado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('cataloguemodule::edit');\n }", "public function edit($articulo_id)\n {\n $titulo = \"Editar\";\n return View(\"articulos.formulario\",compact('titulo','articulo_id'));\n }", "public function edit($id)\n {\n $resources = User::find(session('usuario_id'))->resources;\n $languages = Language::pluck('name', 'id');\n $types = Type::pluck('name', 'id');\n $method = 'PATCH';\n\n $recurso = Resource::find($id);\n $url = \"/resource/$recurso->id\";\n\n return view('resources.resources', compact('resources', 'languages', 'types', 'method', 'url', 'recurso'));\n }", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit]);\n }", "public function displayEditForm(Employee $employee){\n return view('employee.displayEditForm',['employee'=>$employee]);\n }", "public function edit()\n {\n return view('website::edit');\n }", "public function edit()\n {\n return view('inventory::edit');\n }", "public function edit()\n {\n return view('initializer::edit');\n }", "public function editAction()\n {\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "public function edit($id)\n {\n return view('backend::edit');\n }", "public function edit($id)\n {\n //dd($id);\n $familiaPrograma= FamiliaPrograma::findOrFail($id);\n return view('familiasPrograma.edit', compact('familiaPrograma'));\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n $user = User::where('id', $id)->first();\n\n\n return view('users.forms.update', compact('user'));\n }", "public function editAction($id)\n\t{\n\t\t$school = School::find( $id );\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => sprintf( 'Modifier \"%s\"', $school->name ),\n\t\t\t'entity' => $school\n\t\t) ) );\n\t}", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit ]);\n }", "public function edit(Person $person) {\n\t\t$viewModel = new PersonFormViewModel();\n\t\treturn view('person.form', $viewModel);\n\t}", "public function edit($id)\n {\n \t$product = Product::find($id);\n \treturn view('admin.products.edit')->with(compact('product')); // formulario de actualizacion de datos del producto\n }", "public function edit_person($person_id){\n \t$person = Person::find($person_id);\n \treturn view('resource_detail._basic_info.edit',compact('person'));\n }", "public function edit($id)\n {\n $professor = $this->repository->find($id);\n return view('admin.professores.edit',compact('professor'));\n }", "public function edit($id)\n {\n $data = Restful::find($id);\n return view('restful.edit', compact('data'));\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('MedecinIBundle:Fichepatient')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Fichepatient entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('MedecinIBundle:Fichepatient:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return $this->form->render('mconsole::personal.form', [\n 'item' => $this->person->query()->with('uploads')->findOrFail($id),\n ]);\n }", "public function edit($id)\n\t{\n\t\t // get the project\n $project = Project::find($id);\n\n // show the edit form and pass the project\n return View::make('logicViews.projects.edit')->with('project', $project);\n\t}" ]
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.68336326", "0.6811471", "0.68060875", "0.68047357", "0.68018645", "0.6795623", "0.6791791", "0.6791791", "0.6787701", "0.67837197", "0.67791027", "0.677645", "0.6768301", "0.6760122", "0.67458534", "0.67458534", "0.67443407", "0.67425704", "0.6739898", "0.6735328", "0.6725465", "0.6712817", "0.6693891", "0.6692419", "0.6688581", "0.66879624", "0.6687282", "0.6684741", "0.6682786", "0.6668777", "0.6668427", "0.6665287", "0.6665287", "0.66610634", "0.6660843", "0.66589665", "0.66567147", "0.66545695", "0.66527975", "0.6642529", "0.6633056", "0.6630304", "0.6627662", "0.6627662", "0.66192114", "0.6619003", "0.66153085", "0.6614968", "0.6609744", "0.66086483", "0.66060555", "0.6596137", "0.65950733", "0.6594648", "0.65902114", "0.6589043", "0.6587102", "0.65799844", "0.65799403", "0.65799177", "0.657708", "0.65760696", "0.65739626", "0.656931", "0.6567826", "0.65663105", "0.65660435", "0.65615267", "0.6561447", "0.6561447", "0.65576506", "0.655686", "0.6556527", "0.6555543", "0.6555445", "0.65552044", "0.65543956", "0.65543705", "0.6548264", "0.65475875", "0.65447706" ]
0.0
-1
Update the specified resource in storage.
public function update(Request $request, CierreCajas $cierreCajas) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ]\n ]);\n }", "public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required|string',\n 'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,ppt,txt',\n ]);\n\n $resource->update($request->all());\n\n if ( $request->hasFile('file') ) {\n $resource = 'resource-'.time().'.'.$request->file('file')->extension();\n $request->file->storeAs('resources', $resource,'public');\n $resource->file = $resource;\n }\n\n if ( $resource->save() ) {\n return redirect()->route('admin.resources.index')->with('success', 'Resource updated');\n } else {\n return redirect()->route('admin.resources.index')->with('error', 'Something went wrong');\n }\n }", "public function update(Request $request, Resource $resource)\n {\n //\n }", "public function updateStream($resource);", "public function update(Request $request, Storage $storage)\n {\n $storage->product_id = $request->product_id;\n $storage->amount = $request->amount;\n\n $storage->save();\n\n return redirect()->route('storages.index');\n }", "protected function updateImageResource($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n $this->deleteResource($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update(Storage $storage, UpdateStorageRequest $request)\n {\n $this->storage->update($storage, $request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource updated', ['name' => trans('product::storages.title.storages')]));\n }", "public function update(StoreStorage $request, Storage $storage)\n {\n $storage->fill($request->all())->save();\n $request->session()->flash('alert-success', 'Запись успешно обновлена!');\n return redirect()->route('storage.index');\n }", "public function update_asset($id, Request $request){\n \t\tif(!Auth::user()){\n\t\t\treturn redirect('/');\n\t\t}\n \t\t$asset = Storage::find($id);\n \t\t$asset->name = $request->name;\n \t\t$asset->quantity = $request->quantity;\n \t\t$asset->category_id = $request->category;\n \t\tif($request->file('image') != null){\n\t\t\t$image = $request->file('image');\n\t\t\t$image_name = time(). \".\" . $image->getClientOriginalExtension();\n\t\t\t$destination = \"images/\";\n\t\t\t$image->move($destination, $image_name);\n\t\t\t$asset->image_url = $destination.$image_name;\n\t\t} \n\t\t$asset->save();\n\t\tsession()->flash('success_message', 'Item Updated successfully');\n\t\treturn redirect(\"/storage\");\n \t}", "public function update(Request $request, Flight $exercise, FlightResource $resource)\n {\n $request->validate([\n 'display_name' => 'required|string|max:100',\n 'file' => 'nullable|file|max:10240|mimes:pdf',\n 'uri' => 'nullable|url|max:255',\n ]);\n\n if ($resource->type === 'file' && $request->file('file')) {\n Storage::drive('public')->delete($resource->resource);\n $resource->resource = $request->file('file')->store('smartcars/exercises/resources', ['disk' => 'public']);\n } elseif ($resource->type === 'uri' && $request->input('uri')) {\n $resource->resource = $request->input('uri');\n }\n\n $resource->save();\n\n return redirect()->route('adm.smartcars.exercises.resources.index', $exercise)\n ->with('success', 'Resource edited successfully.');\n }", "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'title' => 'required|string',\n 'content' => 'required|string',\n 'mentoring_area_id' => 'required|integer',\n 'featured_image_uri' => 'string',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n \n $resource = Resource::find($id);\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->featured_image_uri = $request->get('featured_image_uri');\n $resource->updated_at = \\Carbon\\Carbon::now();\n $resource->mentoring_area_id = $request->get('mentoring_area_id');\n $resource->save();\n $data['resource'] = $resource;\n return APIHandler::response(1, \"Resource has been updated\");\n }", "protected function updateVideoResource($fileName, $videoId, $storage, $premium=1)\n {\n //Get video name and storage location for video\n $video = Video::where('id', '=', $videoId)->first();\n\n //Check the storage medium\n if($storage == 'vimeo' || $storage == 'youtube')\n {\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n else\n {\n if($video['storage'] == 'local' || $video['storage'] == 's3')\n {\n //Delete old video\n $this->deleteResource($video->name, $video->storage);\n }\n \n //Store the new video\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n }", "public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }", "public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }", "public function update($path);", "public function update($id, $resource)\n {\n SCA::$logger->log(\"Entering update()\");\n //check whether it is an sdo or an xml string.\n if ($resource instanceof SDO_DataObjectImpl) {\n //if the thing received is an sdo convert it to xml\n if ($this->xml_das !== null) {\n $xml = SCA_Helper::sdoToXml($this->xml_das, $resource);\n } else {\n throw new SCA_RuntimeException(\n 'Trying to update a resource with SDO but ' .\n 'no types specified for reference'\n );\n }\n } else {\n $xml = $resource;\n }\n\n $slash_if_needed = ('/' === $this->target_url[strlen($this->target_url)-1])?'':'/';\n\n $handle = curl_init($this->target_url.$slash_if_needed.\"$id\");\n curl_setopt($handle, CURLOPT_HEADER, false);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($handle, CURLOPT_CUSTOMREQUEST, \"PUT\");\n curl_setopt($handle, CURLOPT_POSTFIELDS, $xml);\n\n //replace with Content-Type: atom whatever\n $headers = array(\"User-Agent: SCA\",\n \"Content-Type: text/xml;\",\n \"Accept: text/plain\");\n curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);\n\n $result = curl_exec($handle);\n\n $response_http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\n curl_close($handle);\n\n $response_exception = $this->buildResponseException($response_http_code, '200');\n\n if ($response_exception != null) {\n throw $response_exception;\n } else {\n //update does not return anything in the body\n return true;\n }\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'link' => 'required',\n 'description' => 'required'\n ]);\n\n $resource = Resource::find($id);\n $resource->name = $request->name;\n $resource->type_id = $request->type_id;\n $resource->has_cost = ($request->has('has_cost')) ? 1 : 0;\n $resource->language_id = $request->language_id;\n $resource->link = $request->link;\n $resource->description = $request->description;\n $resource->tags = '';\n\n $resource->save();\n //return back()->with('success', 'Recurso actualizado satisfactoriamente');\n return redirect('/resource')->with('success', 'Recurso actualizado satisfactoriamente');\n }", "public function update(Request $request, $id)\n {\n $oldProduct = Product::findOrFail($id);\n $data = $request->all();\n if(isset($data['img'])){\n // $file = $request->file('photo');\n // return $file;\n $imgName = time().'.'.$request->img->extension();\n $data['img'] = $imgName;\n // Storage::putFile('spares', $file);\n $path = $request->img->storeAs('public/uploads', $imgName); //in Storage\n\n //delete old file\n if($oldProduct->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$oldProduct->img);\n // return 'deleted';\n }\n \n }else{\n $data['img'] = $oldProduct->img;\n }\n $oldProduct->update($data);\n return redirect()->route('product.index'); \n\n }", "public function update($request, $id) {\n\t\t\t$image = $request['photo'];\n\t\t\tif($image !== null) {\n\t\t\t\t$name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n\t\t\t\t\\Image::make($request['photo'])->save(public_path('storage/products/').$name);\n\t\t\t\t$request['photo'] = $name;\n\t\t\t} else {\n\t\t\t\t$currenPhoto = Product::all()->where('id', $id)->first();\n\t\t\t\t$request['photo'] = $currenPhoto->photo;\n\t\t\t}\n return $this->product->update($id, $request);\n\t}", "public function updateStream($path, $resource, Config $config)\n {\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n\n // STEP 1: Update or insert this resource as a node:\n $this->logger->addDebug(\"Updating/Inserting Node into Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} }) SET a.title = {title}, a.version = {version}, a.href = {href}\n return a;\",\n [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n );\n\n // Check to see if anything was added\n $records = $result->getRecords();\n if (empty($records)) {\n // Must create this record instead\n $result = $this->connector->run(\"CREATE (n:Resource) SET n += {infos};\",\n [\n \"infos\" => [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n ]\n );\n }\n\n // STEP 2: Update or insert the resource's link to holding repository\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} })-[r:HIRELATION]->()\n return r;\",\n [\n 'id' => $resource->getID(),\n ]\n );\n $records = $result->getRecords();\n if (!empty($records)) {\n // delete the one there so that we can add the correct one (just in case)\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}})-[r:HIRELATION]->() delete r;\",\n [\n 'id' => $resource->getID()\n ]\n );\n\n }\n\n // If resource has a repository, then add a link\n if ($resource->getRepository() != null && $resource->getRepository()->getID() != null) {\n $this->connector->run(\"MATCH (a:Identity {id: {id1} }) MATCH (b:Resource {id: {id2} }) CREATE (b)-[r:HIRELATION]->(a);\",\n [\n 'id1' => (string) $resource->getRepository()->getID(),\n 'id2' => $resource->getID()\n ]);\n }\n }\n }", "public function update($data) {}", "public function update($data) {}", "public function putStream($resource);", "public function update(Request $request, NebulaResource $resource, $item): RedirectResponse\n {\n $this->authorize('update', $item);\n\n $validated = $request->validate($resource->rules(\n $resource->editFields()\n ));\n\n $resource->updateQuery($item, $validated);\n\n $this->toast(__(':Resource updated', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function update($entity);", "public function update($entity);", "public function setResource($resource);", "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "public function isUpdateResource();", "public function update(Request $request, $id)\n {\n $device = Device::findOrFail($id);\n $device->fill($request->all());\n if ($request->hasFile('icon')) {\n if ($device->hasMedia('icon')) {\n $device->deleteMedia($device->getFirstMedia('icon'));\n }\n $device->addMediaFromRequest('icon')->toMediaCollection('icon');\n }\n $device->save();\n return new DeviceResource($device);\n }", "public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n \n $product->update($request->all());\n \n $file = $request->file('url_image')->move('upload', $request->file('url_image')->getClientOriginalName());\n\n Product::where('id',$id)->update(['url_image'=>$file]);\n \n \\Session::flash('flash_message', 'Edit product successfully.'); \n \n //cũ : return redirect('articles');\n return redirect()->route('products.index');\n }", "public function store($data, Resource $resource);", "public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n\n\n $product->fill($request->all())->save();\n\n //Verificamos que tenemos una imagen\n if($request->file('photo_1')){\n\n\n //En caso de tenerla la guardamos en la clase Storage en la carpeta public en la carpeta image.\n $path = Storage::disk('public')->put('photo_1',$request->file('photo_1'));\n\n //Actualizamos el Post que acabamos de crear\n $product->fill(['photo_1' => asset($path)])->save();\n\n }\n\n\n return redirect()->route('products.index')->with('info', 'Producto actualizado exitosamente!');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if (\\Input::hasFile('image')) {\n $this->imgsave($request, $product);\n }\n\n\n if (!empty($request->input('tags'))) {\n $product->tags()->sync($request->input('tags'));\n } else {\n $product->tags()->detach();\n }\n\n $product->update($request->all());\n\n return redirect()->to('dashboard/product')->with('message', 'update success');\n }", "public function put($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'PUT');\n }", "public function update($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'updateValidations')) {\n $this->request->validate($this->updateValidations());\n }\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Update the specified resource */\n $resource->update(Input::all());\n\n /* Redirect back */\n return redirect()->back()\n ->with(\n 'info',\n Lang::has($this->name . '.resource-updated') ?\n $this->name . '.resource-updated' :\n 'messages.alert.resource-updated'\n );\n }", "public function putResponse($request)\n {\n $idSearched = $this->searcher->searchResourceIndex(\n $request, \n $this->db[$request['resource']]\n );\n if ($idSearched) {\n $resource = $this->db[$request['resource']][$idSearched];\n $bodyInput = json_decode($this->standardInput, true);\n $resource = BodyRequest::canApplyBody($bodyInput);\n $resource['id'] = (int)$request['param'];\n foreach($resource as $key => $value) {\n $this->db[$request['resource']][$idSearched][$key] = $value;\n }\n file_put_contents(DB_PATH, json_encode($this->db));\n }\n }", "public function update(Storedataset $request, dataset $dataset){\n $dataset->title = $request->input('title');\n $dataset->caption = $request->input('caption');\n $dataset->file_url = $request->input('file_url');\n $dataset->type = $request->input('type');\n $dataset->status = $request->input('status');\n $dataset->publication_id = $request->input('publication_id');\n\n $dataset->save();\n\n return redirect()->route('datasets.show', ['dataset' => $dataset]);\n }", "public function update(Request $request, $id)\n\n {\n ResourceManagement::findOrFail($id);\n $constraints = [\n 'title' => 'required|max:100',\n 'url'=> 'required|max:191',\n 'content' => 'required'\n ];\n\n $input = [\n 'title' => $request['title'],\n 'url' => $request['url'],\n 'content' => $request['content'],\n 'type' => $request['type'],\n 'level' => $request['level'],\n 'user_id' => $request['user']\n ];\n// $this->validate($input, $constraints);\n ResourceManagement::where('id', $id)\n ->update($input);\n\n return redirect()->intended('/resource-management');\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'description' => 'required|string',\n 'price' => 'required|numeric',\n 'reference'=>'required'\n ]);\n \n $product = Product::find($id);\n $product->update($request->all());\n \n $im = $request->file('picture');\n \n if (!empty($im)) {\n \n $link = $request->file('picture')->store('images');\n \n \n $product->update([\n 'url_image' => $link,\n ]);\n } \n //dump($request->all());\n return redirect()->route('product.index')->with('message', 'Article modifié avec succès');\n }", "public function update(StoreOrUpdateAsset $request, Asset $asset)\n {\n if (Storage::exists($asset->path) && !Storage::delete($asset->path)) {\n abort(500);\n }\n\n $file = $request->file('file');\n $path = $file->store('assets');\n\n if (!$path) {\n abort(500);\n }\n\n // We wonder if we should delete the old file or not...\n\n $asset->name = $file->getClientOriginalName();\n $asset->size = $file->getSize();\n $asset->type = $file->getMimeType();\n $asset->path = $path;\n\n if ($asset->save()) {\n flash('The asset has been saved.')->success();\n } else {\n abort(500);\n }\n\n return redirect('/admin/assets');\n }", "public function update(FoodRecipeRequest $request, $id)\n {\n $foodRecipe = FoodRecipe::with('ingredients','cookingProcesses')->findOrFail($id);\n if ($request->input('name')!= null)\n $foodRecipe->name = $request->input('name');\n if ($request->input('detail')!= null)\n $foodRecipe->detail = $request->input('detail');\n if($request->file('photo') != null) {\n $old_file = $foodRecipe->photo;\n if($old_file != null){\n $path = public_path().'/storage/'.$old_file;\n File::delete($path);\n }\n $file = $request->file('photo');\n $name = '/foodRecipe/' . Carbon::now()->format(\"dnY-Hisu\") . \".\" . $file->extension();\n $file->storePubliclyAs('public', $name);\n $foodRecipe->photo = $name;\n }\n $foodRecipe->save();\n return new FoodRecipeResource($foodRecipe);\n }", "public function update(StorageTypeRequest $request, $id)\n {\n try {\n $this->service->updateStorageType($request, $id);\n return $this->NoContent();\n } catch (EntityNotFoundException $e) {\n \\Log::error($e->getMessage());\n return $this->NotFound($e->getMessage());\n } catch(\\QueryException $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n } catch(Exception $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n }\n }", "public function update(Request $request, $id)\n {\n //validation\n $this->validate(request(),[\n 'image' => 'image'\n ]);\n\n $slider = HomeSliders::find($id);\n \n $slider->link = request('link');\n\n //get old image to delete if updated\n $oldImage = request('oldImage');\n //get the new image\n $NewImage=$request->file('image');\n\n if($NewImage)\n {\n $filenameToStore= helpers::updatePhoto('image','homeSliders',$request);\n $slider->image=$filenameToStore;\n\n Storage::delete('public/Images/homeSliders/'.$oldImage);\n }\n\n $slider->save();\n\n Alert::success(config('app.name'), trans('messages.Updated Successfully') );\n return redirect()->route('admin.homeSlider',$slider->type);\n }", "public function update(Qstore $request, $id)\n {\n //\n }", "public function update(IEntity $entity);", "protected function performUpdate(): bool\n {\n // Abort if resource does not support update operations\n if (!$this->isUpdatable()) {\n throw new UnsupportedOperation(sprintf('API does not support update operation for %s resources', $this->resourceNameSingular()));\n }\n\n $id = $this->id();\n $prepared = $this->prepareBeforeUpdate($this->toArray());\n\n $payload = [\n $this->resourceNameSingular() => $prepared\n ];\n\n $response = $this\n ->request()\n ->put($this->endpoint($id), $payload);\n\n // Extract and (re)populate resource (if possible)\n // Note: Unlike the \"create\" method, Redmine does NOT\n // appear to send back a full resource when it has been\n // successfully updated.\n $this->fill(\n $this->decodeSingle($response)\n );\n\n return true;\n }", "public function update($request, $id);", "function put($resource, $data = null) {\r\n\t\t\r\n\t\tif(isset($data)) {\r\n\t\t\t$this->request_body = $data;\r\n\t\t}\r\n\r\n\t\t// make the call chief\r\n\t\t$this->exec ( \"PUT\", '/' . $resource );\r\n\r\n\t\t// check the request status\r\n\t\tif($this->status_code != 200){\r\n\t\t\t$this->Logger->error(\r\n\t\t\t\tsprintf(\r\n\t\t\t\t\t'GET Call for resource \\'%s\\' Failed.\r\n\t\t\t\t\tStatus: %d,\r\n\t\t\t\t\tRequest: %s\r\n\t\t\t\t\tAPI Error Message: \r\n\t\t\t\t\t%s',\r\n\t\t\t\t\t$resource,\r\n\t\t\t\t\t$this->status_code,\r\n\t\t\t\t\t$this->request_body_raw,\r\n\t\t\t\t\t$this->response_body\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t\tthrow new Exception($this->response_body);\r\n\t\t} else {\r\n\t\t\treturn $this->response_parsed;\r\n\t\t}\r\n\t}", "public function updateEntities($resource)\n {\n $json = [\n 'resource' => $resource,\n ];\n $request = $this->createRequest('PUT', '/entities', ['json' => $json]);\n $response = $this->send($request);\n return $response;\n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->stock = $request['stock'];\n $product->description = $request['description'];\n\n $file = $request->file('image');\n $fileName = $file->getClientOriginalName();\n if($fileName != $product->image){\n $request->file('image')->move('images/',$fileName);\n $product->image = $fileName;\n }\n\n $product->save();\n\n return redirect()->route('products.show',\n $product->id)->with('flash_message',\n 'Article, '. $product->name.' updated');\n }", "protected function handleUpdate()\n {\n $resource = $this->argument('resource');\n $action = $this->option('action');\n $startPage = (int)$this->option('startPage');\n $perPage = (int)$this->option('perPage');\n\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n $this->info('There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n exit('Nothing was updated.');\n }\n\n $options = [\n 'startPage' => $startPage,\n 'perPage' => $perPage,\n 'lastRun' => $harvest->last_run_at\n ];\n\n // If a lastRun was given use that\n // OR if this has never been run before use 2001-01-01\n if (!empty($this->option('lastRun'))) {\n $options['lastRun'] = new Carbon($this->option('lastRun'));\n } elseif (is_null($options['lastRun'])) {\n $options['lastRun'] = new Carbon('2001-01-01');\n }\n\n $job = new UpdateResourceJob(\n $harvest,\n $options\n );\n\n $message = 'Updating ' . $action . ' ' . $resource . ' ' . $perPage . ' at a time';\n if (isset($lastRun)) {\n $message .= ' with entries updated since ' . $lastRun->format('r');\n }\n $this->info($message);\n $this->dispatch($job);\n }", "abstract public function put($data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function testUpdateSupplierUsingPUT()\n {\n }", "public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }", "public function updateRelatedImage(Request $request, $id)\n {\n // Delete display image in Storage\n Validator::make($request->all(), ['photos' => \"required|file|image|mimes:jpg,png,jpeg|max:5000\"])->validate();\n\n\n if ($request->hasFile(\"photos\")) {\n\n $photo = ProductsPhoto::find($id);\n $imageName = $photo->photos;\n $exists = Storage::disk('local')->exists(\"public/product_images/\" . $photo->photos);\n\n //delete old image\n if ($exists) {\n Storage::delete('public/product_images/' . $imageName);\n }\n\n //upload new image\n $ext = $request->file('photos')->getClientOriginalExtension(); //jpg\n\n $request->photos->storeAs(\"public/product_images/\", $imageName);\n\n $arrayToUpdate = array('photos' => $imageName);\n DB::table('products_photos')->where('id', $id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayRelatedImageForm\", ['id' => $photo->product_id]);\n } else {\n\n $error = \"NO Image was Selected\";\n return $error;\n }\n }", "public function update(Request $request, $id)\n {\n $skill = Skill::findOrFail($id);\n\n $skill->skill = $request->skill;\n\n if ($request->hasFile('image')) {\n \\Cloudder::upload($request->file('image'));\n $c=\\Cloudder::getResult();\n // $image = $request->file('image');\n // $filename = time() . '.' . $image->getClientOriginalExtension();\n // $location = public_path('images/' . $filename);\n // Image::make($image)->save($location);\n\n $skill->image = $c['url'];\n }\n\n $skill->save();\n\n Session::flash('success', 'Successsfully updated your skill!');\n return redirect()->route('skills.index');\n }", "public function updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\n }", "public abstract function update($object);", "public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $image = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image')->store('files');\n \\Storage::delete($product->image);\n } \n $product->name = $request->get('name');\n $product->price = $request->get('price');\n $product->description = $request->get('description');\n $product->additional_info = $request->get('additional_info');\n $product->category_id = $request->get('category');\n $product->subcategory_id = $request->get('subcategory');\n $product->image = $image;\n $product->save();\n return redirect()->back();\n }", "public function update(Request $request, $id)\n {\n $sli=Slider::find($id);\n $sli->sort_order=$request->input('sort_order');\n $image = $request->file('slider');\n if($image == ''){\n $image = $sli->slider;\n }else{\n $image = base64_encode(file_get_contents($request->file('slider')));\n }\n $sli->slider = $image;\n $sli->save();\n return redirect()->back();\n }", "public function update(ProductRequest $request, $id)\n {\n $input = Product::find($id);\n $data = $request->all();\n if ($file = $request->file('product_photo')){\n $name = time().$file->getClientOriginalName();\n $file->move('product_image',$name);\n $data['product_photo']=$name;\n// $input->update($data);\n }\n $input->update($data);\n return redirect('admin/products/');\n }", "public function update(Request $request, $id)\n {\n $volume = $this->findVolume($id);\n\n if(count($volume) > 0) {\n $volume->str_volume_name = $request->str_volume_name;\n\n $volume->save();\n }\n\n return response()\n ->json(\n array(\n 'message' => 'Volume is successfully updated.',\n 'volume' => $volume\n ),\n 201\n );\n }", "public function update(Request $request, $id)\n {\n $product = ProductModel::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n if($request->image!=null){\n $imageName = time().'.'.$request->image->extension();\n $request->image->move(public_path('images'), $imageName);\n $product->image = \"/images/\".$imageName;\n }\n $product->save();\n return redirect(\"/products/index\")->with('success','Product has been updated');\n }", "public function update()\n {\n $accessory = Accessories::find(request('id'));\n\n if ($accessory == null) {\n return response()->json([\"error\" => \"aksesuaras nerastas\"], 404);\n }\n\n $this->validateData();\n $path = $accessory->src;\n\n if (request()->hasFile('src')) {\n\n if (Storage::disk('public')->exists($accessory->src)) {\n Storage::disk('public')->delete($accessory->src);\n }\n $path = request()->file('src')->store('accessoriesImages', 'public');\n }\n\n $accessory->update(array_merge($this->validateData(), ['src' => $path]));\n\n return response()->json([\"data\" => $accessory], 200);\n }", "public function update(ProductStoreRequest $request,$id)\n {\n $data = $request->validated();\n $product = Product::where('id',$id);\n $product->update($data);\n return response(\"Producto actualizado con éxito\",200);\n }", "public function update($entity)\n {\n \n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path,stream_get_contents($resource),$config);\n }", "public function update($id, Request $request)\n {\n date_default_timezone_set('Asia/Taipei');\n $data = $request->all();\n $dbData = Product::find($id);\n $myfile = Storage::disk('local');\n if ($request->hasFile('img')) {\n $file = $request->file('img');\n $path = $myfile->putFile('public', $file);\n $data['img'] = $myfile->url($path);\n File::delete(public_path($dbData->img));\n }\n $dbData->update($data);\n\n if ($request->hasFile('imgs')) {\n // $this->fetchDestroyByProdId($id);\n $localS = Storage::disk('local');\n\n $fileS = $request->file('imgs');\n $imgs = [];\n foreach ($fileS as $i) {\n $pathS = $localS->putFile('public', $i);\n $imgs[] = $localS->url($pathS);\n }\n foreach ($imgs as $img) {\n ProductImg::create([\n 'product_id' => $id,\n 'img' => $img\n ]);\n }\n }\n\n return redirect()->route('admin');\n }", "public function update(Request $request, Product $product)\n { $remfile= $product->image;\n if($request->filep){\n $product->image=$request->filep;\n File::delete(storage_path('app/public/products/'.$remfile));\n }else{\n $product->image=$remfile;\n }\n //rmdir(storage_path('app/public/products/'.$remfile));\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n sleep(3);\n toast('Details updated successfully','info');\n return redirect('/products');\n }", "public function update($id, $input);", "public function update(ProductRequest $request,int $id): ProductResource\n {\n $attributes = $request->only('supplier_id', 'name', 'warehouses');\n\n return new ProductResource($this->productRepository->update($id, $attributes)); }", "public function update(Request $request, $id)\n {\n $slider=new Slider;\n $slider=$slider::find($id);\n \n \n if($file =$request->file('slider')){\n if(Storage::delete('public/slider/'.$slider->slider)){\n\n //Get file original name//\n \n$original_name=$file->getClientOriginalName();\n\n //Get just the file name\n$filename=pathinfo($original_name,PATHINFO_FILENAME);\n\n//Create new file name\n$name=$filename.'_'.time().'.'.$file->getClientOriginalExtension();\n\n $destination='public/slider';\n $path=$request->slider->storeAs($destination,$name);\n $slider->slider=$name;\n $slider->save();\n return redirect('Admin/slider');\n\n }\n }\n}", "public function update(Request $request, $id)\n {/* dd($request->all()); */\n $acheivePic = $this->acheiveRepo->find($id);\n $acheive = $request->except('_method', '_token', 'photo', 'ar', 'en');\n $acheiveTrans = $request->only('ar', 'en');\n\n if ($request->hasFile('icon')) {\n // Delete old image first.\n $oldPic = public_path() . '/images/acheives/' . $acheivePic->icon;\n File::delete($oldPic);\n\n // Save the new one.\n $image = $request->file('icon');\n $imageName = $this->upload($image, 'acheives');\n $acheive['icon'] = $imageName;\n }\n\n $this->acheiveRepo->update($id, $acheive, $acheiveTrans);\n\n return redirect('admin-panel/widgets/acheive')->with('updated', 'updated');\n }", "public function update(Request $request, $id)\n {\n $data = $request->all();\n extract($data);\n\n $productVarient = new ProductVariant();\n $productVarient = $productVarient->find($id);\n $productVarient->vendor_id = auth()->user()->id;\n $productVarient->description = $prod_desc;\n $productVarient->price = $price;\n\n if(request()->hasFile('photo')){\n $image = request()->file('photo')->getClientOriginalName();\n $imageNewName = auth()->user()->id.'-'.$image;\n $file = request()->file('photo');\n $file->storeAs('images/product',$imageNewName, ['disk' => 'public']);\n $productVarient->image = $imageNewName;\n }\n \n $productVarient->save();\n\n return back()->withStatus(__('Product successfully updated.'));\n }", "public function update(Request $request, $id)\n {\n //if upload new image, delete old image\n $myfile=$request->old_photo;\n if($request->hasfile('photo'))\n {\n $imageName=time().'.'.$request->photo->extension();\n $name=$request->old_photo;\n\n if(file_exists(public_path($name))){\n unlink(public_path($name));\n $request->photo->move(public_path('backendtemplate/truefalseimg'),$imageName);\n $myfile='backendtemplate/truefalseimg/'.$imageName;\n }\n }\n //Update Data\n $truefalsequestion=TrueFalseQuestion::find($id);\n $truefalsequestion->name=$request->name;\n $truefalsequestion->photo=$myfile;\n $truefalsequestion->answer = $request->answer;\n $truefalsequestion->question_id = $request->question;\n $truefalsequestion->save();\n\n //Redirect\n return redirect()->route('truefalsequestions.index'); \n }", "public function update($id);", "public function update($id);", "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "public function put($path, $data = null);", "public function update(Request $request, $id)\n {\n $request->validate([\n 'path_image'=>'image',\n 'status'=>'required|in:0,1'\n ]);\n $slider=Slider::whereId($id)->first();\n if (is_null($slider)){\n return redirect()->route('sliders.index')->with('error','Slider does not exist');\n }\n try {\n if ($request->hasFile('path_image')){\n $file = $request->file('path_image');\n\n $image_path= $file->store('/sliders',[\n 'disk'=>'uploads'\n ]);\n Storage::disk('uploads')->delete($slider->image);\n\n $request->merge([\n 'image'=>$image_path,\n ]);\n }\n\n $slider->update( $request->only(['status','image']));\n return redirect()->route('sliders.index')->with('success','Updated successful');\n }catch (\\Exception $exception){\n return redirect()->route('sliders.index')->with(['error'=>'Something error try again']);\n\n }\n }", "public function update() {\n $this->accessory->update($this->accessory_params());\n\n if ($this->accessory->is_valid()) {\n $this->update_accessory_image($this->accessory);\n redirect('/backend/accessories', ['notice' => 'Successfully updated.']);\n } else {\n redirect(\n '/backend/accessories/edit',\n ['error' => $this->accessory->errors_as_string()],\n ['id' => $this->accessory->id]\n );\n }\n }", "public function update(Entity $entity);", "public function update(Request $request, $id)\n {\n $icon = SliderIcon::find($id);\n $data = $request->all();\n $data['active'] = $request->has('active') ? 1 : 0;\n if ($request->hasFile('img')) {\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $image = $request->file('img');\n $fileName = time().'_'.Str::lower(Str::random(5)).'.'.$image->getClientOriginalExtension();\n $path_to = '/upload/images/'.getfolderName();\n $image->storeAs('public'.$path_to, $fileName);\n $data['img'] = 'storage'.$path_to.'/'.$fileName;\n }\n $icon->update($data);\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества обнавлены');\n }", "public function update() {\n\t $this->layout = false;\n\t \n\t //set default response\n\t $response = array('status'=>'failed', 'message'=>'HTTP method not allowed');\n\t \n\t //check if HTTP method is PUT\n\t if($this->request->is('put')){\n\t //get data from request object\n\t $data = $this->request->input('json_decode', true);\n\t if (empty($data)) {\n\t $data = $this->request->data;\n\t }\n\t \n\t //check if product ID was provided\n\t if (!empty($data['id'])) {\n\t \n\t //set the product ID to update\n\t $this->Player->id = $data['id'];\n\t if ($this->Player->save($data)) {\n\t $response = array('status'=>'success','message'=>'Product successfully updated');\n\t } else {\n\t $response['message'] = \"Failed to update product\";\n\t }\n\t } else {\n\t $response['message'] = 'Please provide product ID';\n\t }\n\t }\n\t \n\t $this->response->type('application/json');\n\t $this->response->body(json_encode($response));\n\n\t return $this->response->send();\n\t}", "public function update(Request $request, $id)\n {\n //validate incoming request\n $request->validate([\n 'name' => 'string|max:100|nullable',\n 'picture' => 'max:2000|mimes:jpeg,jpg,png,svg|nullable', //max size 2mb,\n 'total' => 'integer|min:0|nullable', //value must be > 0\n 'selling_price' => 'numeric|min:0|nullable',\n 'cost_price' => 'numeric|min:0|nullable',\n 'category_id' => 'integer|nullable'\n ]);\n\n try {\n $product = Auth::user()->store->product()->findorFail($id);\n } catch (ModelNotFoundException $e) {\n return response()->json([\n \"message\" => \"Forbidden\"\n ], 403);\n }\n\n //if category id isnt null\n if ($category_id = $request->category_id) {\n if (!$this->isCategoryIdValid($category_id))\n return response()->json([\n \"message\" => \"Category Id is not valid\"\n ], 422);\n else\n $product->category_id = $request->category_id;\n }\n\n //if uploaded file exist\n if ($picture = $request->file(\"picture\")) {\n //if product already has logo\n if ($product->picture)\n Storage::delete(Product::$PICTURE_PATH . \"/\" . $product->picture);\n\n $picture_path = $picture->store(Product::$PICTURE_PATH);\n //remove folder name from path\n $product->picture = str_replace(Product::$PICTURE_PATH . \"/\", '', $picture_path);\n }\n\n $this->renewProduct($product, $request);\n $product->save();\n return response()->json(new ProductResource($product), 200);\n }", "public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'required | min:3 | string',\n 'type' => 'required',\n 'producer' => 'required',\n 'image' => 'image | mimes:png,jpg,jpeg',\n 'price_input' => 'required | numeric | min:0 | max:300000000',\n 'promotion_price' => 'required | numeric | max:300000000',\n 'description' => 'required | string',\n\n ]);\n $product = Product::withTrashed()->findOrfail($id);\n $product->name = $request->name;\n $product->id_type = $request->type;\n $product->id_producer = $request->producer;\n\n $product->amount = $request->amount;\n if (request('image')) {\n $product->image = base64_encode(file_get_contents($request->file('image')->getRealPath()));\n }\n\n $product->price_input = $request->price_input;\n\n if ( $request->promotion_price >= 0 && $request->promotion_price < $product->price_input) {\n $product->promotion_price = $request->promotion_price;\n }else{\n return back()->with('error', '\n Do not enter a negative number');\n }\n $product->new = $request->new;\n\n $product->description = $request->description;\n\n $product->save();\n $product->size()->sync(request('size'));\n\n return redirect()->route('product.index')->with('success', 'Product Updated successfully');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n $product->lastPrice = $product->price !== $request->input('price') ? $product->price : NULL;\n $product->price = $request->input('price');\n\n if ($request->hasFile('image')) { \n $currentImg = $product->image;\n if ($currentImg) {\n Storage::delete('/public/' . $currentImg);\n }\n $image = $request->file('image'); \n $path = $image->store('images','public');\n $product->image = $path;\n };\n\n $product->save(); \n\n $product_promotions = $request->input('promotion');\n\n $product->promotions()->sync($product_promotions);\n\n return redirect()->route('admin.modify');\n }", "public static function updateImage($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n ResourceHandler::delete($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update($request, $id)\n {\n $this->checkExits($id);\n $data = $request->except(['_method','_token','photo']);\n\n if($request->photo)\n {\n try {\n $this->UploadFile($request);\n } catch (\\Exception $e) {\n //if has exception , don't has action\n }\n if ($this->img !== '') {\n $data['img'] = $this->img;\n }\n }\n\n $this->object->update($data);\n\n }", "public function updateProduct($request, $product)\n {\n $product->update($request->except(['_token', '_method', 'image']));\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $imageName = time() . '.' . $request->file('image')->extension();\n // $img = Image::make('public/foo.jpg');\n\n $image_resize = Image::make($image->getRealPath());\n $image_resize->resize(500, 500);\n $image_resize->save(public_path('images/') . $imageName, 100);\n $product->gallery = $imageName;\n $product->save();\n }\n $product->getTags()->sync($request->input('tags'));\n }" ]
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890722", "0.5860816", "0.5855127", "0.5855127", "0.58513457", "0.5815068", "0.5806887", "0.57525045", "0.57525045", "0.57337505", "0.5723295", "0.5714311", "0.5694472", "0.5691319", "0.56879413", "0.5669989", "0.56565005", "0.56505877", "0.5646085", "0.5636683", "0.5633498", "0.5633378", "0.5632906", "0.5628826", "0.56196684", "0.5609126", "0.5601397", "0.55944353", "0.5582592", "0.5581908", "0.55813426", "0.5575312", "0.55717176", "0.55661047", "0.55624634", "0.55614686", "0.55608666", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55573726", "0.5556878", "0.5554201", "0.5553069", "0.55530256", "0.5543788", "0.55435944", "0.55412996", "0.55393505", "0.55368495", "0.5535236", "0.5534954", "0.55237365", "0.5520468", "0.55163723", "0.55125296", "0.5511168", "0.5508345", "0.55072427", "0.5502385", "0.5502337", "0.5501029", "0.54995877", "0.54979175", "0.54949397", "0.54949397", "0.54946727", "0.5494196", "0.54941916", "0.54925025", "0.5491807", "0.5483321", "0.5479606", "0.5479408", "0.5478678", "0.54667485", "0.5463411", "0.5460588", "0.5458525" ]
0.0
-1
Remove the specified resource from storage.
public function destroy(CierreCajas $cierreCajas) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n $client = $this->getClient($this->name, $this->options);\n try {\n $client->delete(Path::fromString($this->getRelativePublicationPathAndFilename($resource)));\n } catch (FileDoesNotExistsException $exception) {\n }\n }", "public function deleteResource(&$resource) {\n\n if ($this->connector != null) {\n $this->logger->addDebug(\"Deleting Resource Node from Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}}) detach delete a;\",\n [\n 'id' => $resource->getID()\n ]\n );\n $this->logger->addDebug(\"Updated neo4j to remove resource\");\n }\n\n }", "public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }", "public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }", "protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "public function remove()\n {\n if (! ftruncate($this->fileHandle, 0)) {\n throw new StorageException(\"Could not truncate $this->path\");\n }\n if (! unlink($this->path)) {\n throw new StorageException(\"Could not delete $this->path\");\n }\n }", "public function delete()\n\t{\n\t\t$s3 = AWS::createClient('s3');\n $s3->deleteObject(\n array(\n 'Bucket' => $this->bucket,\n 'Key' => $this->location\n )\n );\n\t\tif($this->local_file && file_exists($this->local_file)) {\n\t\t\tunlink($this->local_file);\n\t\t}\n $this->local_file = null;\n\t}", "public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}", "public function delete(): void\n {\n unlink($this->getPath());\n }", "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "public function remove($path);", "function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}", "public function delete(): void\n {\n unlink($this->path);\n }", "private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }", "public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function remove() {}", "public function remove() {}", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "function delete_resource($resource_id, $page)\n\t{\n\t\t//get resource data\n\t\t$table = \"resource\";\n\t\t$where = \"resource_id = \".$resource_id;\n\t\t\n\t\t$this->db->where($where);\n\t\t$resource_query = $this->db->get($table);\n\t\t$resource_row = $resource_query->row();\n\t\t$resource_path = $this->resource_path;\n\t\t\n\t\t$image_name = $resource_row->resource_image_name;\n\t\t\n\t\t//delete any other uploaded image\n\t\t$this->file_model->delete_file($resource_path.\"\\\\\".$image_name, $this->resource_path);\n\t\t\n\t\t//delete any other uploaded thumbnail\n\t\t$this->file_model->delete_file($resource_path.\"\\\\thumbnail_\".$image_name, $this->resource_path);\n\t\t\n\t\tif($this->resource_model->delete_resource($resource_id))\n\t\t{\n\t\t\t$this->session->set_userdata('success_message', 'resource has been deleted');\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$this->session->set_userdata('error_message', 'resource could not be deleted');\n\t\t}\n\t\tredirect('resource/'.$page);\n\t}", "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "public function del(string $resource): bool|string\n {\n $json = false;\n $fs = unserialize($_SESSION['rfe'][$this->getRoot()], ['allowed_classes' => false]);\n if (array_key_exists($resource, $fs)) {\n // if $item has children, delete all children too\n if (array_key_exists('dir', $fs[$resource])) {\n foreach ($fs as $key => $file) {\n if (isset($file['parId']) && $file['parId'] == $resource) {\n unset($fs[$key]);\n }\n }\n }\n unset($fs[$resource]);\n $_SESSION['rfe'][$this->getRoot()] = serialize($fs);\n $json = '[{\"msg\": \"item deleted\"}]';\n }\n return $json;\n }", "public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}", "public function destroy($id) {\n $book = Book::find($id);\n // return unlink(storage_path(\"public/featured_images/\".$book->featured_image));\n Storage::delete(\"public/featured_images/\" . $book->featured_image);\n if ($book->delete()) {\n return $book;\n }\n\n }", "public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }", "public function destroyResourceImage(): void\n\t{\n\t\tif (isset($this->image)) {\n\t\t\t@imagedestroy($this->image->getImageResource());\n\t\t}\n\t}", "public function deleteResource(PersistentResource $resource)\n {\n $pathAndFilename = $this->getStoragePathAndFilenameByHash($resource->getSha1());\n if (!file_exists($pathAndFilename)) {\n return true;\n }\n if (unlink($pathAndFilename) === false) {\n return false;\n }\n Files::removeEmptyDirectoriesOnPath(dirname($pathAndFilename));\n return true;\n }", "public function deleteImage(){\n \tStorage::delete($this->image);\n }", "public function destroy()\n {\n $file=public_path(config('larapages.media.folder')).Input::all()['folder'].'/'.Input::all()['file'];\n if (!file_exists($file)) die('File not found '.$file);\n unlink($file);\n }", "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "public function destroy($id)\n {\n Myfile::find($id)->delete();\n }", "public function destroy($delete = false)\n {\n if (null !== $this->resource) {\n $this->resource->clear();\n $this->resource->destroy();\n }\n\n $this->resource = null;\n clearstatcache();\n\n // If the $delete flag is passed, delete the image file.\n if (($delete) && file_exists($this->name)) {\n unlink($this->name);\n }\n }", "public static function delete($path){\r\n $currentDir = getcwd();\r\n $storageSubPath = \"/../../\".STORAGE_PATH;\r\n $file = $currentDir . $storageSubPath . '/' . $path;\r\n\r\n unlink($file);\r\n }", "public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }", "public function remove() {\n //Check if there are thumbs and delete files and db\n foreach ($this->thumbs()->get() as $thumb) {\n $thumb->remove();\n } \n //Delete the attachable itself only if is not default\n if (strpos($this->url, '/defaults/') === false) {\n Storage::disk('public')->delete($this->getPath());\n }\n parent::delete(); //Remove db record\n }", "public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }", "public function destroy(Resource $resource)\n {\n if( $resource->delete() ){\n return Response(['status'=>'success','message'=>'Resource deleted']); \n } else {\n return Response(['status'=>'error', 'message'=>'Something went wrong']);\n }\n }", "public function delete($path);", "public function delete($path);", "public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }", "public function destroy($id)\n {\n $supplier = Supplier::find($id);\n $photo = $supplier->photo;\n if ($photo) {\n unlink($photo);\n }\n $supplier->delete();\n }", "public function destroy($id)\n {\n $student = Student::where('id', $id)->first();\n // $path = $student->image;\n unlink($student->image);\n Student::findOrFail($id)->delete();\n return response('Deleted!');\n }", "public function destroy($id)\n {\n $icon = SliderIcon::find($id);\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $icon->delete();\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества удалёны');\n }", "public function delete($path, $data = null);", "public function destroy($id)\n {\n $items=Items::find($id);\n // delete old file\n if ($items->photo) {\n $str=$items->photo;\n $pos = strpos($str,'/',1);\n $str = substr($str, $pos);\n $oldFile = storage_path('app\\public').$str;\n File::Delete($oldFile); \n }\n $items->delete();\n return redirect()->route('items.index');\n }", "public function destroy($id)\n {\n $carousel = Carousel::find($id);\n $image = $carousel->image;\n\n $basename ='img/carousel/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n unlink($basename);\n }\n //With softDeletes, this is the way to permanently delete a record\n $carousel->delete();\n Session::flash('success','Product deleted permanently');\n return redirect()->back();\n }", "public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }", "public static function destroy(int $resource_id)\n {\n try {\n $image_data = ListingImage::where('id', $resource_id)->first();\n self::delete_image($image_data->name);\n $delete = ListingImage::where('id', $resource_id)->delete();\n\n // activity()\n // ->causedBy(Auth::user()->id)\n // ->performedOn($delete)\n // ->withProperties(['id' => $delete->id])\n // ->log('listing image deleted');\n return response()->json(['status'=> 'ok', 'msg'=> 'Data deleted successfully']);\n } catch (Exception $e) {\n $e->getMessage();\n }\n }", "public function destroy(Storage $storage)\n {\n $this->storage->destroy($storage);\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('product::storages.title.storages')]));\n }", "public function del($path){\n\t\treturn $this->remove($path);\n\t}", "public function destroy($id)\n {\n //\n $product = Product::findOrFail($id);\n $product->delete();\n if($product->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$product->img);\n // return 'deleted';\n }\n return redirect()->route('product.index'); \n }", "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "public function destroy($id)\n {\n $image = Images::withTrashed()->find($id);\n\n Storage::disk('uploads')->delete(\"social-media/$image->filename\");\n\n $image->tags()->detach();\n $image->detachMedia(config('constants.media_tags'));\n $image->forceDelete();\n\n return redirect()->back()->with('success', 'The image was successfully deleted');\n }", "public function destroyByResourceId($resource_id)\n {\n// $online_party = $this->onlinetrack->where('resource_id', $resource_id)->get()->first();\n// $online_party->status = \"offline\";\n// $online_party->save();\n// return $online_party;\n return $this->onlinetrack->where('resource_id', $resource_id)->delete();\n }", "public function revoke($resource, $permission = null);", "public function destroy($id)\n {\n $data=Image::find($id);\n $image = $data->img;\n\n\n $filepath= public_path('images/');\n $imagepath = $filepath.$image;\n\n //dd($old_image);\n if (file_exists($imagepath)) {\n @unlink($imagepath);\n }\n\n\n $data->delete();\n\n return redirect()->route('image.index');\n }", "function delete($path);", "public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }", "public function destroyResource($resource)\n {\n if (!is_object($resource)) {\n return false;\n }\n\n $resource_type = get_class($resource);\n $resource_id = $resource->getKey();\n\n return Role::where('resource_type', $resource_type)\n ->where('resource_id', $resource_id)\n ->delete();\n }", "public function remove($filePath){\n return Storage::delete($filePath);\n }", "public function remove(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists($file)) {\n return;\n }\n\n unlink($file);\n }", "public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }", "public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }", "public function processDeletedResource(EntityResource $resource)\n {\n /** @var AuthorizationRepository $repository */\n $repository = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Authorization');\n\n $repository->removeAuthorizationsForResource($resource);\n }", "function _unlink($resource, $exp_time = null)\n {\n if(file_exists($resource)) {\n return parent::_unlink($resource, $exp_time);\n }\n\n // file wasn't found, so it must be gone.\n return true;\n }", "public function remove($id);", "public function remove($id);", "public function deleted(Storage $storage)\n {\n //\n }", "public function destroy($id)\n {\n $data = Product::findOrFail($id);\n\n if(file_exists('uploads/product/'.$data->image1)){\n unlink('uploads/product/'.$data->image1);\n }\n\n if(file_exists('uploads/product/'.$data->image2)){\n unlink('uploads/product/'.$data->image2);\n }\n\n if(file_exists('uploads/product/'.$data->image3)){\n unlink('uploads/product/'.$data->image3);\n }\n $data->delete();\n }", "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }", "public function resources_delete($resource_id, Request $request) {\n if ($resource_id) {\n $resp = Resources::where('id', '=', $resource_id)->delete();\n if($resp){\n $msg = 'Resource has been deleted successfully.';\n $request->session()->flash('message', $msg);\n }\n }\n //return redirect()->route('admin-factor-list');\n return redirect()->to($_SERVER['HTTP_REFERER']);\n }", "public function delete()\n {\n try\n {\n $thumbnail = $this->getThumbnail();\n if($thumbnail)\n {\n $thumbnail->delete();\n }\n }\n catch(sfException $e){}\n \n // delete current file\n parent::delete();\n }", "function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function remove_resource($idproject){\n\t\t\n\t\t// Load model and try to get project data\n\t\t$this->load->model('Projects_model', 'projects');\n\t\t\n\t\t// Update\n\t\t$this->projects->save_project(array(\"ext\" => \"\", \"vzaar_idvideo\" => \"0\", \"vzaar_processed\" => \"0\"), $idproject);\n\t}", "public function destroy($id){\n $file_data = Slider::findOrFail($id);\n File::delete(public_path('../storage/app/public/sliders/'.$file_data->path));\n $slider = Slider::destroy($id);\n return response()->json(null, 204);\n }", "public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}", "public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }", "public function destroy($id)\n {\n //Find Slider With Id\n $slider = Slider::findOrFail($id);\n // Check If The Image Exist\n if(file_exists('uploads/slider/'.$slider->image)){\n\n unlink( 'uploads/slider/'.$slider->image);\n }\n $slider->delete();\n return redirect()->back()->with('success','Slider Successfully Deleted');\n }" ]
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897263", "0.58962846", "0.58951396", "0.58951396", "0.58951396", "0.58951396", "0.5880124", "0.58690923", "0.5863659", "0.5809161", "0.57735413", "0.5760811", "0.5753559", "0.57492644", "0.5741712", "0.57334286", "0.5726379", "0.57144034", "0.57096", "0.5707689", "0.5705895", "0.5705634", "0.5703902", "0.5696585", "0.5684331", "0.5684331", "0.56780374", "0.5677111", "0.5657287", "0.5648262", "0.5648085", "0.5648012", "0.5640759", "0.5637738", "0.5629985", "0.5619264", "0.56167465", "0.5606877", "0.56021434", "0.5601949", "0.55992156", "0.5598557", "0.55897516", "0.5581397", "0.5566926", "0.5566796", "0.55642897", "0.55641", "0.5556583", "0.5556536", "0.5550097", "0.5543172", "0.55422723", "0.5540013", "0.5540013", "0.55371785", "0.55365825", "0.55300397", "0.552969", "0.55275744", "0.55272335", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.5525997", "0.5525624", "0.5523911", "0.5521122", "0.5517412" ]
0.0
-1
Creates a new aggregator.
public function __construct($testpath, $codepath, $db = ':memory:') { $newcodepath = realpath($codepath); if (!$newcodepath) { if (!strpos($codepath, '://') || !file_exists($codepath)) { // stream wrapper not found throw new Exception('Can not find code path ' . $codepath); } } else { $codepath = $newcodepath; } $files = array(); foreach (new RegexIterator( new RecursiveIteratorIterator( new RecursiveDirectoryIterator( $codepath, RecursiveDirectoryIterator::SKIP_DOTS ) ), '/\.php$/' ) as $file ) { if (strpos((string) $file, '.svn') || strpos($testpath, (string)$file)) { continue; } $files[] = realpath((string) $file); } $this->sqlite = new Sqlite($db, $codepath, $testpath, $files); $this->codepath = $codepath; $this->sqlite->begin(); echo "Scanning for xdebug coverage files...\n"; $files = $this->scan($testpath); echo "done\n"; echo "Parsing xdebug results\n"; if (!count($files)) { echo "done (no modified xdebug files)\n"; return; } $delete = array(); foreach ($files as $testid => $xdebugfile) { $phpt = str_replace('.xdebug', '.phpt', $xdebugfile); if (!file_exists($phpt)) { $delete[] = $xdebugfile; continue; } $id = $this->sqlite->addTest($phpt); echo '(' . $testid . ' of ' . count($files) . ') ' . $xdebugfile; $this->retrieveXdebug($xdebugfile, $id); echo "\ndone\n"; } $this->sqlite->addNoCoverageFiles(); $this->sqlite->updateAllLines(); $this->sqlite->updateTotalCoverage(); $this->sqlite->commit(); if (count($delete)) { echo "\nNote: The following .xdebug files were outdated relics " . "and have been deleted\n"; foreach ($delete as $d) { unlink($d); echo "$d\n"; } echo "\n"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function buildAggregation()\n {\n $aggregation = new TermsAggregation('test_agg');\n $aggregation->setField('description');\n $aggregation2 = new RangeAggregation('test_agg_2');\n $aggregation2->setField('price');\n $aggregation2->addRange(null, 20);\n $aggregation2->addRange(20, null);\n $aggregation->addAggregation($aggregation2);\n\n return $aggregation;\n }", "public function create()\n {\n $aggregators = $this->aggregatorOptions();\n return view('admin.aggregator-instances.create', compact('aggregators'));\n }", "public function createAggregatorLibrary (string $aggregatorName) {\n switch (strtoupper ($aggregatorName)) {\n case strtoupper (CommissionJunction::SERVICE_NAME):\n return $this->commissionJunction;\n case strtoupper (TradeTracker::SERVICE_NAME):\n return $this->tradeTracker;\n case strtoupper (Awin::SERVICE_NAME):\n return $this->awin;\n }\n }", "public function create_aggregate($name, $step, $final, $arguments = -1)\n\t{\n\t\t$this->_connection or $this->connect();\n\n\t\treturn $this->_connection->sqliteCreateAggregate(\n\t\t\t$name, $step, $final, $arguments\n\t\t);\n\t}", "public function aggregate($aggregations) {\n\t\t$this->init_aggregations($aggregations);\n\t\treturn $this;\n\t}", "public static function instance() {\n\t\treturn tribe( 'events-aggregator.service' );\n\t}", "public static function createInstance()\n {\n return new GroupingColumn('ISerializable', 'ISerializable');\n }", "public function createAggregate(\n $aggregateIdentifier,\n DomainEventMessageInterface $firstEvent\n );", "protected function get_database_aggregate()\n {\n if (!$this->_database_aggregate)\n {\n require_once DIR_FS_CATALOG . 'includes/modules/payment/payneteasyform/paynet_database_aggregate.php';\n $this->_database_aggregate = new PaynetDatabaseAggregate;\n }\n\n return $this->_database_aggregate;\n }", "public function aggregate(): void;", "private function __construct()\n {\n $this->create_acf_group();\n }", "public static function createFromDiscriminatorValue(ParseNode $parseNode): AggregatedInboundStatistics {\n return new AggregatedInboundStatistics();\n }", "function newDataObject() {\n\t\treturn new Monograph();\n\t}", "public function create()\n {\n return $this->processor->create();\n }", "public function create()\n {\n return $this->processor->create();\n }", "function createObject() {\n\t\treturn new InstitutionalSubscription();\n\t}", "function newDataObject() {\n\t\treturn new Group();\n\t}", "protected function get_payment_aggregate()\n {\n if (!$this->_payment_aggregate)\n {\n require_once DIR_FS_CATALOG . 'includes/modules/payment/payneteasyform/paynet_payment_aggregate.php';\n $this->_payment_aggregate = new PaynetPaymentAggregate;\n }\n\n return $this->_payment_aggregate;\n }", "protected static function newFactory(): CollectionGroupFactory\n {\n return CollectionGroupFactory::new();\n }", "public function getAggregations();", "public function aggregate($value) {\n return $this->setProperty('aggregate', $value);\n }", "public function aggregate($value) {\n return $this->setProperty('aggregate', $value);\n }", "public static function create() {}", "public static function create() {}", "public static function create() {}", "public function __construct(GDPRCollector $collector) {\n $this->collector = $collector;\n }", "public function aggregateType();", "public function __construct() {\n\t\t$this->group = new Group();\n\t}", "public function create(){\r\n\treturn new $this->class();\r\n }", "public static function createInstance()\n {\n return new GridCsvExporterEventManager('ISerializable');\n }", "protected function createCollection()\n {\n return $this->_setUpNewNode(\n new Collection()\n );\n }", "public function new()\n\t{\n\t\t//\n\t}", "public function new()\n\t{\n\t\t//\n\t}", "public function aggregation($query) {\n $url = $this->urlWrapper() . URLResources::QUERY_AGGREGATION;\n return $this->makeRequest($url, \"POST\", 0, $query);\n }", "public function aggregateCollection(QueryInterface $query): ResultOfAggregateCollection\n {\n return new ResultOfAggregateCollection(\n $this->tonClient->request(\n 'net.aggregate_collection',\n [\n 'collection' => $query->getCollection(),\n 'filter' => $query->getFilters(),\n 'fields' => $query->getAggregation(),\n ]\n )->wait()\n );\n }", "public static function create() {\n\t\treturn new self();\n\t}", "public function createFrom()\n\t{\n\t\t$from = new AgaviFromType();\n\t\t$this->froms[] = $from;\n\t\treturn $from;\n\t}", "public function create()\n {\n return new $this->class;\n }", "public static function createInstance()\n {\n return new GridBiffExporterEventManager('ISerializable');\n }", "public static function init(): self\n {\n return new self(new LoyaltyEventAccumulatePoints());\n }", "public static function create()\n\t{\n\t\treturn new self;\n\t}", "protected function get_collector() {\n\t\t$collector = new WPSEO_Collector();\n\t\t$collector->add_collection( new WPSEO_Tracking_Default_Data() );\n\t\t$collector->add_collection( new WPSEO_Tracking_Server_Data() );\n\t\t$collector->add_collection( new WPSEO_Tracking_Theme_Data() );\n\t\t$collector->add_collection( new WPSEO_Tracking_Plugin_Data() );\n\n\t\treturn $collector;\n\t}", "public static function create()\n\t\t{\n\t\t\treturn new self();\n\t\t}", "public static function createInstance()\n {\n return tx_rnbase::makeInstance(Statistics::class);\n }", "public function newFeedCollection()\n {\n if (is_null($this->handler)) {\n return false;\n }\n\n return new $this->handler;\n }", "public static function newFactory()\n {\n return TaxCollectionFactory::new();\n }", "public function addAggregate($name, $field, $function, array $parameters = []);", "public function addAggregation($aggregate)\n {\n $aggregateQuery = new AggregateQuery(\n $this->connection,\n $this->parentName,\n [\n 'query' => $this->query,\n 'limitToLast' => $this->limitToLast\n ],\n $aggregate\n );\n\n return $aggregateQuery;\n }", "public function create($name) {\n if ($this->connection === null) {\n if (!is_callable($this->provider)) {\n throw new \\Exception(\"Unable to instantiate provider.\");\n }\n\n $this->connection = call_user_func($this->provider);\n }\n\n return new $name($this->connection);\n }", "public function create() {}", "public static function create($aggregateRootClass, DomainEventStreamInterface $eventStream) {\n\n\t\t/** @var AbstractEventSourcedAggregateRoot $aggregateRoot */\n\t\t$aggregateRoot = new $aggregateRootClass();\n\t\t$aggregateRoot->initialize($eventStream);\n\n\t\treturn $aggregateRoot;\n\t}", "public function __construct() {\n $this->groups = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n parent::__construct();\n }", "public function store(Request $request)\n {\n \n $requestData = $request->all();\n \n $this->validate($request, [\n 'type' =>'required|integer',\n 'resource' =>'required|'\n \n ]);\n AggregatorInstance::create($requestData);\n\n Session::flash('flash_message', 'AggregatorInstance added!');\n\n return redirect('admin/aggregator-instances');\n }", "public function create() {\n\t\t$implementationClassName = 'Imagine\\\\' . $this->settings['driver'] . '\\Imagine';\n\t\treturn new $implementationClassName();\n\t}", "function aggregate_new($group_CND,$nid_list) {\r\n global $user;\r\n if(!is_array($nid_list)) return FALSE;\r\n //create node\r\n $nid=0;\r\n $time=time();\r\n $desc=get_cud_description($group_CND);\r\n db_query(\"INSERT INTO {node_revisions} (uid,title,body,teaser,log,timestamp)\r\n\t\t\t VALUES (%d,'%s','%s','%s','Aggregazione automatica',%d)\",$user->uid,$desc,$desc,$desc,time());\r\n $vid=db_last_insert_id('{node_revisions}','vid');\r\n\r\n db_query(\"INSERT INTO {node} (vid,type,language,title,uid,\r\n\t\t created,changed,comment,promote)\r\n\t\tVALUES (%d,'gare','it','%s',%d ,\r\n\t\t%d,%d,2,1)\",$vid,$desc,$user->uid,$time,$time);\r\n $nid=db_last_insert_id('{node}','nid');\r\n\r\n db_query(\"UPDATE {node_revisions} SET nid=\".$nid.\" WHERE vid=\".$vid);\r\n set_status($nid,_PROPOSED);\r\n $res=$nid;\r\n foreach($nid_list as $key => $val) {\r\n if ($val) $res =(aggregate_node($nid,$key)?$res:FALSE);\r\n }\r\n $value=db_fetch_object(db_query(\"SELECT SUM(r.value) as value, SUM(r.qta) as qta FROM \"._REQUESTS_TABLE.\" r\r\n\t\t\t INNER JOIN \".query_aggregation($nid).\" ag ON ag.nid2=r.nid\r\n\t\t\t INNER JOIN {node} n ON n.nid=r.nid AND n.vid=r.vid \"));\r\n db_query(\"INSERT INTO \"._GARE_TABLE.\" (nid,vid,CND,value,qta)\r\n\t\t\t VALUES (%d,%d,'%s',%d,%d)\",$nid,$vid,$group_CND,$value->value,$value->qta);\r\n return $res;\r\n}", "public function create()\n {\n $subscription = new Subscription();\n\n return $subscription;\n }", "public static function createInstance()\n {\n return new Grid('ISerializable', 'ISerializable');\n }", "public function new()\n {\n //\n }", "public function new()\n {\n //\n }", "public function create()\n {\n /**\n * @var ProductTag $tag\n */\n $classNamespace = $this->getEntityNamespace();\n $tag = new $classNamespace();\n $tag\n ->setProducts(new ArrayCollection())\n ->setEnabled(true)\n ->setCreatedAt(new DateTime());\n\n return $tag;\n }", "function aggregate($object, $class_name)\n{\n}", "public function createCollection()\n\t{\n\t\t$tag = $this->tag;\n\n\t\tif ($this->hasPaginator) {\n\t\t\t$tag = $this->tag->getCollection();\n\t\t}\n\n\t\t$this->tagCollection = new Collection(\n\t\t\t$tag, \n\t\t\tnew TagTransformer\n\t\t);\n\n\t\treturn $this;\n\t}", "function __construct() {\n\n\t\t$this->factory = new cftp_analytics_factory();\n\t\t$this->model = new cftp_analytics_option_model();\n\n\t\t$analytics = $this->factory->googleAnalyticsSource();\n\t\t$this->model->addSource( $analytics );\n\n\t\t$twitter = $this->factory->twitterSharesSource();\n\t\t$this->model->addSource( $twitter );\n\n\t\t//$fblikes = $this->factory->facebookLikesSource();\n\t\t//$this->model->addSource( $fblikes );\n\n\t\t$fbshares = $this->factory->facebookSharesSource();\n\t\t$this->model->addSource( $fbshares );\n\n\t\t$totalshares = $this->factory->totalSharesSource();\n\t\t$this->model->addSource( $totalshares );\n\n\t\t$decayshares = $this->factory->decaySharesSource();\n\t\t$this->model->addSource( $decayshares );\n\n\t\t$decayviews = $this->factory->decayViewsSource();\n\t\t$this->model->addSource( $decayviews );\n\n\t\t$this->popular = new cftp_analytics( $this->factory, $this->model );\n\t}", "public function getAggregate()\n {\n return $this->aggregate;\n }", "public static function createInstance()\n {\n return new GridOxmlExporterEventManager('ISerializable');\n }", "protected function get_mailer_aggregate()\n {\n if (!$this->_mailer_aggregate)\n {\n require_once DIR_FS_CATALOG . 'includes/modules/payment/payneteasyform/paynet_mailer_aggregate.php';\n $this->_mailer_aggregate = new PaynetMailerAggregate;\n }\n\n return $this->_mailer_aggregate;\n }", "public function loadAggregatorOptions()\n {\n $this->setAggregatorOption(array());\n\n return $this;\n }", "public function testAggregatorItem() {\n /** @var \\Drupal\\aggregator\\Entity\\Item $item */\n $item = Item::load(1);\n $this->assertSame('1', $item->id());\n $this->assertSame('5', $item->getFeedId());\n $this->assertSame('This (three) weeks in Drupal Core - January 10th 2014', $item->label());\n $this->assertSame('larowlan', $item->getAuthor());\n $this->assertSame(\"<h2 id='new'>What's new with Drupal 8?</h2>\", $item->getDescription());\n $this->assertSame('https://groups.drupal.org/node/395218', $item->getLink());\n $this->assertSame('1389297196', $item->getPostedTime());\n $this->assertSame('en', $item->language()->getId());\n $this->assertSame('395218 at https://groups.drupal.org', $item->getGuid());\n\n }", "public function createViaRequest()\n {\n return groups()->createGroupViaRequest();\n }", "public function create()\n {\n $definition = $this->definition->toArray();\n\n if (! isset($definition[$this->type]) || empty($definition[$this->type])) {\n return;\n }\n\n foreach (range(1, $definition[$this->type]['scale'] ?? 1) as $index) {\n $this->relation()->create(\n $this->baseAttributes($index, $definition[$this->type]) +\n $this->attributes($definition)\n );\n }\n }", "public static function createInstance()\n {\n return new GridSearchManager('ISerializable');\n }", "public function createProvider();", "public function create() {\n\t \n }", "protected function getPaymentAggregate(array $paymentConfig)\r\n {\r\n static $paynetProcessorAggregate = null;\r\n\r\n if (!$paynetProcessorAggregate)\r\n {\r\n $paynetProcessorAggregate = new static::$aggregateClass($paymentConfig);\r\n }\r\n\r\n return $paynetProcessorAggregate;\r\n }", "public function createInstance($processor);", "public function construct()\n\t\t{\n\t\t}", "public function __construct(\\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {\n parent::__construct(\n 'Plugin/ValueGenerator',\n $namespaces,\n $module_handler,\n 'Drupal\\seeder\\ValueGeneratorInterface',\n 'Drupal\\seeder\\Annotation\\ValueGenerator'\n );\n \n $this->alterInfo('value_generator_info');\n $this->setCacheBackend($cache_backend, 'value_generator_info_plugins');\n $this->factory = new DefaultFactory($this->getDiscovery());\n }", "public function setAggregate($aggregate)\n {\n $this->aggregate = $aggregate;\n\n return $this;\n }", "public function getAggregation()\n {\n return $this->aggregation;\n }", "public static function createInstance()\n {\n return new GridPrintEventManager('ISerializable');\n }", "public function create()\n {}", "public function createNewItem() {\n\t\treturn new FeedItem($this->type);\n\t}", "public static function create(): self\n {\n return new self([]);\n }", "public function create() {\n\n\t}", "public static function create(\n $select = \"*\",\n $from = [],\n $where = [],\n $orderby = [],\n $groupby = [],\n $having = [],\n $limit = []\n ) {\n return Injector::inst()->createWithArgs(__CLASS__, func_get_args());\n }", "public function create() {\r\n }", "public static function create() {\n return new self();\n }", "public function addAggs(\\obiba\\mica\\AggregationResultDto $value) {\n return $this->_add(1, $value);\n }", "public function construct() {\n\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }", "public static function create()\n {\n return new self();\n }" ]
[ "0.6083938", "0.58259547", "0.57929265", "0.5244156", "0.5237435", "0.5135301", "0.4986235", "0.49483755", "0.49280804", "0.49243534", "0.4907878", "0.4890877", "0.48858482", "0.48030192", "0.48030192", "0.47848624", "0.4783473", "0.47678167", "0.47432992", "0.4713611", "0.46919447", "0.46919447", "0.46734902", "0.46734902", "0.46734902", "0.46508786", "0.46371084", "0.46345556", "0.46335638", "0.46330628", "0.4622502", "0.46170163", "0.46170163", "0.4616193", "0.46074793", "0.45998573", "0.45898008", "0.4580769", "0.4579391", "0.4579077", "0.45489353", "0.4547481", "0.45473439", "0.4544859", "0.45399946", "0.45299634", "0.45279792", "0.45239413", "0.45144102", "0.45140564", "0.45065266", "0.45025146", "0.44995478", "0.44951707", "0.44927847", "0.4492604", "0.4486546", "0.44799384", "0.44799384", "0.4469436", "0.44691858", "0.44691455", "0.44614136", "0.44605732", "0.4459232", "0.445787", "0.44444513", "0.44420353", "0.4436255", "0.4434605", "0.4430669", "0.4427207", "0.4427183", "0.44247705", "0.442132", "0.44072804", "0.44048053", "0.44009143", "0.44007552", "0.43997672", "0.43957907", "0.43840623", "0.4382184", "0.43782163", "0.43725562", "0.43685508", "0.43654558", "0.43649253", "0.4357309", "0.43523645", "0.43523645", "0.43523645", "0.43523645", "0.43523645", "0.43523645", "0.43523645", "0.43523645", "0.43523645", "0.43523645", "0.43523645", "0.43523645" ]
0.0
-1
Valida si el codigo existe en la tabla de usuarios y retorna los registros
protected function getUserById($userId) { if ($userId) { $repository = $this->getDoctrine()->getRepository('RocketSellerTwoPickBundle:User'); $user = $repository->findBy(array('id' => $userId)); if ($user) { return $user; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function recuperarUsuario()\n {\n $_codigo=$this->codigo ; \n $this->dataBaseAccess(); \n $mySelect = 'select Codigo_empresa,Nome,Senha where Codigo = ' . $this->Codigo ;\n $ret = mysqli_query($this->myCon , $mySelect) ;\n $numRows= mysqli_num_rows($ret); \n if($numRows>0)\n {\n $reg = mysqli_fetch_array($ret) ;\n $this->Codigo_empresa=$reg['Codigo_empresa'] ;\n $this->Nome=$reg['Nome'] ;\n $this->Senha=$reg['Senha'] ;\n mysqli_close( $this->myCon );\n $this->records_found=$numRows ;\n return true ; // ja cadastrado \n }else{\n mysqli_close( $this->myCon );\n return false ; \n }\n }", "function consultarUsuario(){\n global $conexion, $data;\n $usuario = $data[\"usuario\"];\n $password = $data[\"password\"];\n $resultado = mysqli_query($conexion,\"SELECT * FROM usuario WHERE usu_email='$usuario' AND usu_clave='$password' \");\n echo validarError($conexion, false, $resultado);\n }", "function consultarUsuarioEspecifico(){\n global $conexion, $data;\n $id = $data[\"id\"];\n $resultado = mysqli_query($conexion,\"SELECT * FROM usuario WHERE usu_id='$id'\");\n echo validarError($conexion, false, $resultado);\n }", "public static function validarUsuario($codUsuario,$password){//Función de validación de los usuarios\n $arrayUsuario=[];\n $consulta = \"SELECT CodUsuario,Password FROM Usuarios WHERE CodUsuario AND Password = SHA2('\".$password.\"')256\";\n $resultado=DBPDO::ejecutaConsulta($consulta, [$codUsuario,$password]);\n while($consulta->rowCount()){\n $usuario = $resultado->fetchObject();\n $arrayUsuario['codUsuario']=$usuario->codUsuario;\n $arrayUsuario['descUsuario']=$usuario->descUsuario;\n $arrayUsuario['password']=$usuario->password;\n $arrayUsuario['perfil']=$usuario->perfil;\n $arrayUsuario['ultimaConexion']=$usuario->ultimaConexion;\n $arrayUsuario['contadorAccesos']=$usuario->contadorAccesos;\n }\n }", "function validar_usuario($usuario) {\n $conn = $this->conectar();\n $query = \"SELECT * FROM MEDICO WHERE login = '\".$usuario.\"'\";\n $result = oci_parse($conn, $query);\n oci_execute($result);\n return $result;\n }", "public function userExists($codigo, $clave, $tipo_usuario)\n\t{\n\t\t$db = Db::getConnect();\n\t\t$md5Clave = md5($clave);\n\t\t$query = $db->prepare('SELECT * FROM usuarios \n\t\t\t\t\t\t\t\t\t\t\t WHERE codigo = :codigo AND clave = :clave\n\t\t\t\t\t\t\t\t\t\t\t\t AND tipo = :tipo');\n\t\t$query->execute([\n\t\t\t'codigo' => $codigo,\n\t\t\t'clave' => $md5Clave,\n\t\t\t'tipo' => $tipo_usuario\n\t\t]);\n\n\t\t// ME TRAE EL NUMERO DE FILAS ENCONTRADAS\n\t\tif ($query->rowCount()) {\n\n\t\t\tforeach ($query as $currentUser) {\n\t\t\t\t$this->id = $currentUser['id'];\n\t\t\t\t$this->tipo = $currentUser['tipo'];\n\t\t\t\t$this->nombre = $currentUser['nombre'];\n\t\t\t\t$this->apellido = $currentUser['apellido'];\n\t\t\t\t$this->cedula = $currentUser['cedula'];\n\t\t\t\t$this->foto = $currentUser['foto'];\n\t\t\t\t$this->direccion = $currentUser['direccion'];\n\t\t\t\t$this->telefono = $currentUser['telefono'];\n\t\t\t\t$this->estudios = $currentUser['estudios'];\n\t\t\t\t$this->anopromo = $currentUser['anopromo'];\n\t\t\t\t$this->codigo = $currentUser['codigo'];\n\t\t\t}\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "function f_get_row_usuario($cod_usuario,$cod_parametro){\n\t\tif(!$cod_usuario || !$cod_parametro)return false;\n\t\tglobal $db;\n\t\t\n\t\t$query=\"select \t* \n\t\t\t\tfrom \tparametro_x_usuario \n\t\t\t\twhere \tcod_parametro = $cod_parametro and cod_usuario = $cod_usuario\";\n\t\t$row = $db->consultar_registro($query);\n\t\treturn $row;\n\t\n\t}", "public function UsuariosPorId()\n{\n\tself::SetNames();\n\t$sql = \" select * from usuarios where codigo = ? \";\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->execute( array(base64_decode($_GET[\"codigo\"])) );\n\t$num = $stmt->rowCount();\n\tif($num==0)\n\t{\n\t\techo \"\";\n\t}\n\telse\n\t{\n\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}", "function validarIngreso($Usuario, $Clave)\n {\n $this->Consulta(\"*\",\"usuarios\",\"usuario='\".$Usuario.\"' AND password=md5('\". $Clave .\"')\");\n // Contar la cantidad de resultados\n $this->Filas = mysql_num_rows($this->Resultado);\n if( $this->Filas > 0){\n // Regresar los datos del usuario\n $Columnas = mysql_fetch_assoc($this->Resultado);\n //echo \"Datos de usuario: \". $Columnas['id'] .\", \". $Columnas['usuario'].\", \". $Columnas['password'].\", \". $Columnas['nombre'].\", \". $Columnas['correo'].\", \". $Columnas['activo'].\", \". $Columnas['zonashorarias_id'].\", \". $Columnas['roles_id'].\", \". $Columnas['gruposusuarios_id'];\n return $Columnas;\n }\n else {\n /* No se encontró al usuario */\n return false;\n }\n }", "function ListaUsuario() {\n\t\n\t\t\t$sql = \"SELECT usu.*, CONCAT_WS(' ', per.primer_nombre, per.primer_apellido) as nombre_completo, usu.nombre_usuario, rol.descripcion FROM usuario usu\n\t\t\t\t\tINNER JOIN rol rol ON rol.id = usu.rol_id\n\t\t\t\t\tINNER JOIN persona per ON per.id = usu.persona_id\";\n\t\t\t$db = new conexion();\n\t\t\t$result = $db->consulta($sql);\n\t\t\t$num = $db->encontradas($result);\n\t\t\t$respuesta->datos = [];\n\t\t\t$respuesta->mensaje = \"\";\n\t\t\t$respuesta->codigo = \"\";\n\t\t\tif ($num != 0) {\n\t\t\t\tfor ($i=0; $i < $num; $i++) {\n\t\t\t\t\t$respuesta->datos[] = mysql_fetch_array($result);\n\t\t\t\t}\n\t\t\t\t$respuesta->mensaje = \"Ok\";\n\t\t\t\t$respuesta->codigo = 1;\n\t\t\t} else {\n\t\t\t\t$respuesta->mensaje = \"No existen registros de roles.\";\n\t\t\t\t$respuesta->codigo = 0;\n\t\t\t}\n\t\t\treturn json_encode($respuesta);\n\t\t}", "public function dadosLogin(){\n\t\t$sql=\"select id_empresa from empresa where email=:email and senha=:senha\";\n\t\t//prepara o comando a ser executado no banco de dados\n\t\t$query=$this->con->prepare($sql);\n\t\t//set as variáveis no comando sql e executa no banco de dados\n\t\t$query->execute(array(\"email\"=>$this->email,\"senha\"=>$this->senha));\n\t\t//retorna resultado com um array assoc\n\t\t$resultado = $query->fetch(PDO::FETCH_ASSOC);\n\t\t//retorna os dados do usuário se estiver tudo ok, senão retorna falso\n\t\tif($resultado){\n\t\t\treturn $resultado;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "function mcomprobarUsuarioSesion() {\n\t\t$conexion = conexionbasedatos();\n\t\tif (isset($_SESSION[\"nickname\"]) ) {\n\t\t\t$nickname = $_SESSION[\"nickname\"];\n\n\t\t\t$consulta = \"select * \n\t\t\t\t\t\t from final_USUARIO\n\t\t\t\t\t\t where nickname = '$nickname';\";\n\n\t\t\tif ($resultado = $conexion->query($consulta)) {\n\t\t\t\tif ($datos = $resultado->fetch_assoc()) {\n\t\t\t\t\treturn 1;\n\t\t\t\t} else {\n\t\t\t\t\treturn -2;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t} else {\n\t\t\treturn -2;\n\t\t}\n\t\t\n\t}", "function f_get_seg_usuario(\n\t\t\t\t$cod_usuario\n\t\t){\n\t\t\tglobal $db;\n\t\t\t$query =\"\n\t\t\tselect \t*\n\t\t\tfrom\tseg_usuario\n\t\t\twhere\tcod_usuario_pk='$cod_usuario'\";\n\t\t\t$row = $db->consultar_registro($query);\t\n\t\t\treturn $row;\n\t\t}", "public function RegistrarUsuarios()\n{\n\tself::SetNames();\n\tif(empty($_POST[\"nombres\"]) or empty($_POST[\"usuario\"]) or empty($_POST[\"password\"]))\n\t{\n\t\techo \"1\";\n\t\texit;\n\t}\n\t$sql = \" select cedula from usuarios where cedula = ? \";\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->execute( array($_POST[\"cedula\"]) );\n\t$num = $stmt->rowCount();\n\tif($num > 0)\n\t{\n\n\t\techo \"2\";\n\t\texit;\n\t}\n\telse\n\t{\n\t\t$sql = \" select email from usuarios where email = ? \";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->execute( array($_POST[\"email\"]) );\n\t\t$num = $stmt->rowCount();\n\t\tif($num > 0)\n\t\t{\n\n\t\t\techo \"3\";\n\t\t\texit;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$sql = \" select usuario from usuarios where usuario = ? \";\n\t\t\t$stmt = $this->dbh->prepare($sql);\n\t\t\t$stmt->execute( array($_POST[\"usuario\"]) );\n\t\t\t$num = $stmt->rowCount();\n\t\t\tif($num == 0)\n\t\t\t{\n\t\t\t\t$query = \" insert into usuarios values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t\t\t$stmt = $this->dbh->prepare($query);\n\t\t\t\t$stmt->bindParam(1, $cedula);\n\t\t\t\t$stmt->bindParam(2, $nombres);\n\t\t\t\t$stmt->bindParam(3, $nrotelefono);\n\t\t\t\t$stmt->bindParam(4, $cargo);\n\t\t\t\t$stmt->bindParam(5, $email);\n\t\t\t\t$stmt->bindParam(6, $usuario);\n\t\t\t\t$stmt->bindParam(7, $password);\n\t\t\t\t$stmt->bindParam(8, $nivel);\n\t\t\t\t$stmt->bindParam(9, $status);\n\n\t\t\t\t$cedula = strip_tags($_POST[\"cedula\"]);\n\t\t\t\t$nombres = strip_tags($_POST[\"nombres\"]);\n\t\t\t\t$nrotelefono = strip_tags($_POST[\"nrotelefono\"]);\n\t\t\t\t$cargo = strip_tags($_POST[\"cargo\"]);\n\t\t\t\t$email = strip_tags($_POST[\"email\"]);\n\t\t\t\t$usuario = strip_tags($_POST[\"usuario\"]);\n\t\t\t\t$password = sha1(md5($_POST[\"password\"]));\n\t\t\t\t$nivel = strip_tags($_POST[\"nivel\"]);\n\t\t\t\t$status = strip_tags(strtoupper($_POST[\"status\"]));\n\t\t\t\t$stmt->execute();\n\n################## SUBIR FOTO DE USUARIOS ######################################\n//datos del arhivo \n\t\t\t\tif (isset($_FILES['imagen']['name'])) { $nombre_archivo = $_FILES['imagen']['name']; } else { $nombre_archivo =''; }\n\t\t\t\tif (isset($_FILES['imagen']['type'])) { $tipo_archivo = $_FILES['imagen']['type']; } else { $tipo_archivo =''; }\n\t\t\t\tif (isset($_FILES['imagen']['size'])) { $tamano_archivo = $_FILES['imagen']['size']; } else { $tamano_archivo =''; } \n//compruebo si las características del archivo son las que deseo \n\t\t\t\tif ((strpos($tipo_archivo,'image/jpeg')!==false)&&$tamano_archivo<50000) \n\t\t\t\t{ \n\t\t\t\t\tif (move_uploaded_file($_FILES['imagen']['tmp_name'], \"fotos/\".$nombre_archivo) && rename(\"fotos/\".$nombre_archivo,\"fotos/\".$_POST[\"cedula\"].\".jpg\"))\n\t\t\t\t\t{ \n## se puede dar un aviso\n\t\t\t\t\t} \n## se puede dar otro aviso \n\t\t\t\t}\n################## FINALIZA SUBIR FOTO DE USUARIOS ######################################\n\n\t\t\t\techo \"<div class='alert alert-success'>\";\n\t\t\t\techo \"<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>\";\n\t\t\t\techo \"<span class='fa fa-check-square-o'></span> EL USUARIO FUE REGISTRADO EXITOSAMENTE\";\n\t\t\t\techo \"</div>\";\t\t\n\t\t\t\texit;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\techo \"4\";\n\t\t\t\texit;\n\t\t\t}\n\t\t}\n\t}\n}", "public function selectIniciarSesion(){\n $query = \"SELECT codUsuario, nombre, apellido, sexo, COUNT(*) AS existe FROM usuario WHERE correo = '\".parent::string($this->getCorreo()).\"' AND contrasenia = '\".md5(md5(\"PAO%%%%0001TPIPSADSADasdsad\").parent::string($this->getContrasenia())).\"' LIMIT 1;\";\n $result = mysqli_query(parent::conexion(), $query);\n if($result){\n $fila = mysqli_fetch_array($result);\n parent::desconectar();\n return $fila;\n } else{\n echo parent::conexion()->error;\n parent::desconectar();\n return false;\n }\n }", "public static function getByCodigoUsuario($codigo){\n $u = new Usuario();\n\t\t$conexion = new Database();\n\t\t$sql = sprintf( \"SELECT * FROM agenda_usuarios where usuario_id = %d\", $codigo );\n\t\t$rows = $conexion->query( $sql );\n\t\t\n\t\tif( $rows->rowCount() == 0 )\n\t\t\treturn null;\n\t\telse{\n\t\t\t$u = new Usuario();\n\t\t\t$row = $rows->fetch();\n\t\t\t$u->usuario = $row['USUARIO'];\n $u->password = $row['PASSWORD'];\n $u->codigo = $codigo;\n\t\t\treturn $u;\n\t\t}\n\t}", "public function getdatosUsuarios(){\n\t\t$bd = new bd();\n\t\t$result = $bd->doSingleSelect($this->u_table,\"id = {$this->id}\");\n\t\tif($result){\n\t\t\t$this->datosUsuario($result[\"direccion\"], $result[\"telefono\"], $result[\"descripcion\"], $result[\"estados_id\"], $result[\"facebook\"], $result[\"twitter\"],$result[\"website\"],$result[\"certificado\"],$result[\"id_sede\"]);\n\t\t\t$this->id = $result[\"id\"];\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function verificarUsuario($usuario){\n\n\t\t$id = $this->db->prepare(\"select id, codigo from users where user = :usuario\");\n\t\t$id->bindParam(':usuario',$usuario);\n\t\t$id->execute();\n\t\t$row = $id->fetch();\n\t\t\n\t\treturn $row;\t\n\t}", "function ListaUsuarios() {\n\t//obtiene el id del usuario\n $sql = \"SELECT usuario.id, usuario.nombre_usuario, persona.primer_nombre, persona.primer_apellido, usuario.estado, rol.descripcion FROM usuario INNER JOIN persona ON usuario.persona_id = persona.id INNER JOIN rol ON usuario.rol_id = rol.id WHERE usuario.estado = 'ACTIVO'\";\n\n\t$db = new conexion();\n\t$result = $db->consulta($sql);\n\t$num = $db->encontradas($result);\n\n\t$respuesta->datos = [];\n\t$respuesta->mensaje = \"\";\n\t$respuesta->codigo = \"\";\n\n\tif ($num != 0) {\n\t\tfor ($i=0; $i < $num; $i++) {\n\t\t\t$respuesta->datos[] = mysql_fetch_array($result);\n\t\t}\n\t\t$respuesta->mensaje = \"Usuarios listados\";\n\t\t$respuesta->codigo = 1;\n\t} else {\n\t\t$respuesta->mensaje = \"No existen registros de usuarios !\";\n\t\t$respuesta->codigo = 0;\n\t}\n\treturn json_encode($respuesta);\n}", "public function createUsers($data) {\n try {\n $sql = \"SELECT usua_cedula FROM usuario WHERE usua_cedula = ?\";\n $query = $this->pdo->prepare($sql);\n $const = $query->execute(array($data[0]));\n $const= $query->fetch();\n if ($const[0] == $data[0]) {\n return \"existe\";\n }else {\n $pass_encrypted = password_hash(123456, PASSWORD_DEFAULT);\n $sql1 = \"INSERT INTO usuario (usua_id, usua_nombre1, usua_nombre2, usua_apellido1, usua_apellido2, usua_cedula, carg_id, usua_contrasena, clien_id, usua_estado, sed_id, area_id) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)\";\n $query1 = $this->pdo->prepare($sql1);\n $save = $query1->execute(array('', $data[1], $data[2], $data[3], $data[4], $data[0], $data[5], $pass_encrypted, $data[6], $data[7], $data[8], $data[9]));\n if ($save == true) {\n return true;\n }else {\n return false;\n }\n }\n } catch (Exception $e) {\n $save = $e->getMessage();;\n }\n }", "function consultaUs($conexion,$usuario){\n\t$consulta=$conexion->prepare(\"SELECT * FROM usuarios WHERE usuario=:usuario\");\n $consulta->execute(array(':usuario'=>$usuario));\n $consultas=$consulta->fetch();\n $consulta=null;\n return ($consultas)? $consultas : false;\n}", "function comprobar_usuario_valido($usuario)\n {\n $con = conectar();\n \n $res = pg_query($con, \"select * from usuarios where usuario = '$usuario'\");\n \n $num_rows = pg_num_rows($res);\n \n if ($num_rows != 0)\n {\n return \"<p style='color:red;'>Usuario no válido</p>\";\n }\n else\n {\n return \"\";\n }\n \n pg_close($con);\n }", "function consultar(){\n global $conexion, $data;\n $eliminado = $data[\"eliminado\"];\n $resultado= mysqli_query($conexion,\"SELECT * FROM usuario, catalogo_tipo_usuario WHERE usu_id_tipo_usuario=cau_id AND usu_eliminado='$eliminado'\");\n echo validarError($conexion, false, $resultado);\n }", "function validatedLogin($email,$contra){\n $query = \"SELECT\n id_usuario,\n nombre,\n apellidoP,\n apellidoM,\n email,\n fechaNac,\n nombreRol,\n valuePermission\n FROM\n usuario\n LEFT JOIN(rol) ON usuario.rol_id = rol.id_rol\n WHERE\n usuario.email = \".$this->db->escape($email).\" AND\n pass = \".$this->db->escape($contra).\"\n \";\n return $this->db->query($query);\n }", "public static function obtenerUsuarios()\n {\n $consulta = \"SELECT * FROM usuarios, usuarios_roles WHERE (usuarios.rol=usuarios_roles.id_rol) ORDER BY usuarios.nombres ASC\";\n try {\n // Preparar sentencia\n $comando = Database::getInstance()->getDb()->prepare($consulta);\n // Ejecutar sentencia preparada\n $comando->execute();\n\n return $comando->fetchAll(PDO::FETCH_ASSOC);\n\n } catch (PDOException $e) {\n return false;\n }\n }", "public function cadastro(){\n // Estou usando o '$results' ao inves de usar a '$query->rowCount > 0', pois da na mesma, e caso eu precise no '$results'\n // eu ja tenho tambem os dados para manipular.\n // Se o $results retornou alguma coisa, entao o email ja existe no banco de dados, e eu nao deixo cadastrar de novo\n if(!empty($this->results)){ \n $this->validacao = false; \n $errmsg = \"Usuário já cadastrado! Efetue Login para acessar o site!\";\n $_SESSION['errmsg'] = $errmsg;\n }\n else{ // Caso nao exista o username, eu crio uma nova sql e instancio um objeto de conexao com os dados para inserir.\n $this->validacao = true;\n $senha_hash = password_hash($this->senha, PASSWORD_DEFAULT);\n $sql= \"INSERT INTO users (users.username, users.email, users.senha) VALUES ('$this->username', '$this->email', '$senha_hash')\";\n $conexao = new ConexaoDB(\"localhost\",\"digitalhouse_db\",\"root\",\"a123456!\",$sql);\n $resultado = $conexao->conectar();\n } \n return $this->validacao;\n }", "public function registrarUsuario($dados){\n ////$conexao=$c->conexao();\n\n $sql = \"SELECT count(*) as total from tbusuarios WHERE email = '$dados[1]' \";\n $sql = $this->conexao->query($sql);\n $row = $sql->fetch_assoc();\n\n if($row['total'] >= 1){\n return 0;\n }elseif($dados[2] != $dados[3]){\n return 2;\n }elseif($dados[6] == 'ND'){\n return 3;\n }else{\n\n $sqlins = \"INSERT INTO tbusuarios (nome, email, senha, senha_confirma, dt_nascimento, telefone, data_criacao, habilitado, idpermissao) VALUES \n ('$dados[0]', '$dados[1]', '$dados[2]', '$dados[3]', '$dados[4]', '$dados[5]', NOW(), 'S', '$dados[6]' )\";\n\n return $this->conexao->query($sqlins);\n\n }\n }", "function listar_usuarios() {\n\t\t$query = \"SELECT colaboradores.*, colaboradores_permisos.*\n\t\tFROM colaboradores, colaboradores_permisos\n\t\tWHERE colaboradores.id_colaborador=colaboradores_permisos.id_colaborador\n\t\tAND colaboradores.estado=1\";\n\n $connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\t\t\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($query); \n\t\t\n\t\t$numrows = mysql_num_rows($result);\n\t\tmysql_close($connection);\n\t\t// COMPROBAMOS QUE HAYA RESULTADOS\n\t\t// SI EL NUMERO DE RESULTADOS ES 0 SIGNIFICA QUE NO HAY REGISTROS CON ESOS DATOS\n\t\tif ($numrows == 0) {\n\t\t\treturn $result;\n\t\t}\n\t\telse {\n\t\t\treturn $result;\n\t\t}\n\t}", "function usuario_existe($usuario){\n\t$sql = \"SELECT id FROM usuarios WHERE usuario = '$usuario'\";\n\n\t$resultado = query($sql);\n\n\tif(contar_filas($resultado) == 1){\n\n\t\treturn true;\n\t} else{\n\t\treturn false;\n\t}\n\n}", "private function usuarios(){\n\t\tif ($_SERVER['REQUEST_METHOD'] != \"GET\") {\n\t\t\t# no se envian los usuarios, se envia un error\n\t\t\t$this->mostrarRespuesta($this->convertirJson($this->devolverError(1)), 405);\n\t\t}//es una petición GET\n\t\t//se realiza la consulta a la bd\n\t\t$query = $this->_conn->query(\n\t\t\t\"SELECT id, nombre, email \n\t\t\t FROM usuario\");\n\t\t//cantidad de usuarios\n\t\t$filas = $query->fetchAll(PDO::FETCH_ASSOC); \n \t$num = count($filas);\n \t//si devolvio un resultado, se envia al cliente\n \tif ($num > 0) { \n\t $respuesta['estado'] = 'correcto'; \n\t $respuesta['usuarios'] = $filas; \n\t $this->mostrarRespuesta($this->convertirJson($respuesta), 200); \n\t } //se envia un error \n\t $this->mostrarRespuesta($this->devolverError(2), 204);\n\t}", "public function cargarUsuario(){\n $query = \"SELECT nombre, apellido, sexo, DATE_FORMAT(fecha_nac, '%d/%m/%Y') AS fecha_nac, correo FROM usuario WHERE codUsuario = \".parent::string($this->getCodUsuario()).\";\";\n $result = mysqli_query(parent::conexion(), $query);\n $arreglo = null;\n\n if(!$result){\n \t\tdie(\"Error\");\n } else{\n while($data = mysqli_fetch_assoc($result)){\n $arreglo[] = $data;\n \t\t }\n }\n\n parent::desconectar();\n return json_encode($arreglo);\n }", "function registrar_usuario($datos = array()){\n if(empty($datos)||!($datos['perfil']!=''&&$datos['email']!=''&&$datos['contrasena']!='')){return false;}\n $sql = sprintf(\"INSERT INTO `login` (`cloud`,`perfil`,`nombres`,`apellidos`,`email`,`telefono`,`contrasena`) SELECT * FROM (SELECT %s,%s,%s,%s,%s,%s,%s) AS `tmp` WHERE NOT EXISTS (SELECT `email` FROM `login` WHERE `email` = %s AND `cloud` = %s)\",varSQL(__sistema),varSQL($datos['perfil']),varSQL((!isset($datos['nombres']))?'':$datos['nombres']),varSQL((!isset($datos['apellidos']))?'':$datos['apellidos']),varSQL($datos['email']),varSQL((!array_key_exists('telefono',$datos))?'':$datos['telefono']),varSQL(md5($datos['contrasena'])),varSQL($datos['email']),varSQL(__sistema));\n return consulta($sql);\n}", "public function validado($usuario){\r\n\t\t$consulta=$this->db->query(\"SELECT * FROM Usuarios WHERE usuario LIKE '$usuario'\");\r\n\t\tforeach ($consulta->result() as $row)\r\n\t\t\t{\r\n\t\t\t\t$id=$row->ID;\r\n\t\t\t}\r\n\t\t$consulta=$this->db->query(\"SELECT ID FROM Cliente WHERE alta LIKE '1' AND ID LIKE '$id'\");\r\n\t\t if($consulta->num_rows()!=0){\r\n\t\t\t return true;\r\n\t\t }else{\r\n\t\t\t return false;\r\n\t\t }\r\n\t}", "function Boolean_Existencia_Usuario($username,$email)\n{\n\t$query = consultar(sprintf(\"SELECT email_usuario,usuario FROM tb_usuarios WHERE email_usuario='%s' or usuario='%s'\",escape($username),escape($email)));\n\tif(Int_consultaVacia($query)>0)\n\t{\n\t\treturn array(false,'El usuario o el email ya existen, intenta nuevamente.');\n\t}else\n\t{\n\t\treturn array(true,'');\t\n\t}\n\n}", "public function loginValidated()\n\t\t{\n\t\t\t$campos = array('*');\n\t\t\t\n\t\t\t$pw = $this->_objCrypt->encrypt($this->_password);\n\n\t\t\t# Campos que se incluyen en la validacion WHERE DE LA SQL\n\t\t\t$field['userName'] = $this->_userName;\n\t\t\t$register = Usuario::findCustom($campos, $field);\n\n\t\t\t# Validación nombre usuario en BD\n\t\t\tif (empty($register)) {\n\t\t\t\t$json_error = array('success' => 'error', 'error' => 'error1');\n\t\t\t\t$success = json_encode($json_error);\n\t\t\t\tsetcookie(\"success\", $success, time() + 60, \"/\"); \n\t\t\t\theader('location:../views/users/login.php');\n\t\t\t}else{\n\t\t\t\t# pw que se obtiene de BD\n\t\t\t\t$pw_DB = $register[0]->getPassword();\n\n\t\t\t\t# Validacion coincidencia de contraseñas\n\t\t\t\tif ($pw !== $pw_DB) {\n\t\t\t\t\t$json_error = array('success' => 'error', 'error' => 'error2');\n\t\t\t\t\t$success = json_encode($json_error);\n\t\t\t\t\tsetcookie(\"success\", $success, time() + 60, \"/\"); \n\t\t\t\t\theader('location:../views/users/login.php');\n\t\t\t\t}else{\n\t\t\t\t\t$data_session['id_user'] \t= $register[0]->getId();\t\t\t\t\t\n\t\t\t\t\t$data_session['nombre'] \t= $register[0]->getNombre();\t\t\t\n\t\t\t\t\t$data_session['apellido'] \t\t= $register[0]->getApellido();\t\t\t\n\t\t\t\t\t$data_session['tipoUsuario']\t= $register[0]->getTipoUsuario();\t\t\t\n\t\t\t\t\t$data_session['userName'] \t\t= $register[0]->getUserName();\t\t\t\n\t\t\t\t\t$data_session['email'] \t\t = $register[0]->getEmail();\t\t\t\n\t\t\t\t\t$data_session['telFijo'] \t\t= $register[0]->getTelFijo();\t\t\t\n\t\t\t\t\t$data_session['telMovil'] \t\t= $register[0]->getTelMovil();\t\t\t\n\t\t\t\t\t$data_session['estado'] \t\t= $register[0]->getEstado();\n\t\t\t\t\t$data_session['lan']\t\t\t= $_COOKIE['lan'];\n\t\t\t\t\t\n\t\t\t\t\t$obj_Session = new Simple_sessions();\n\t\t\t\t\t$obj_Session->add_sess($data_session);\n\n\t\t\t\t\theader('location:../views/users/crearUsuario.php');\n\t\t\t\t}\n\t\t\t}\n\t\t}", "function mvalidarRegistro() {\n\t\t$conexion = conexionbasedatos();\n\n\t\t$nombre = $_POST[\"nombre\"];\n\t\t$email = $_POST[\"email\"];\n\t\t$contraseña = $_POST[\"password\"];\n\t\t$nickname = $_POST[\"nickname\"];\n\t\t$apellido1 = $_POST[\"apellido1\"];\n\t\t$sexo = $_POST[\"sexo\"];\n\n\t\t//echo \"SEXO: \".$sexo;\n\t\t\n\t\t$contraseña = md5($contraseña);\n\n\t\t$consulta = \"select * \n\t\t\t\t\tfrom final_usuario \n\t\t\t\t\twhere nickname = '$nickname'; \";\n\n\t\tif ($resultado = $conexion->query($consulta)) {\n\t\t\tif ($datos = $resultado->fetch_assoc()) {\n\t\t\t\treturn -2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$consulta = \"insert into final_USUARIO (nickname, nombre, apellido, correo, contraseña, sexo) values ('$nickname', '$nombre', '$apellido1', '$email', '$contraseña', '$sexo');\";\n\n\t\t\t\tif ($resultado = $conexion->query($consulta)) {\n\t\t\t\t\t$_SESSION[\"nickname\"] = $nickname;\n\t\t\t\t\treturn 1;\n\t\t\t\t} else {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\treturn -1;\n\t\t}\n\t}", "private function existe_usuario()\n\t{\n\t\t$data = $this->request->getRawInput();\n\t\t$ruc = $data['nick']; \n\t\t$usu = new Admin_model();\n\t\t$usuarioObject = $usu->where(\"nick\", $ruc) \n\t\t->first();\n\t\treturn !is_null($usuarioObject);\n\t\t \n\t}", "public function validar_registro(){\n $data = 'usuarios.txt';\n $fLectura = fopen($data,\"r\");\n $buscaUsuario = false; \n\n while(!feof($fLectura)){ // busca si el usuario esta en el fichero de usuarios\n $line = fgets($fLectura);\n $array = explode(';', $line);\n if($array[0] == $this->username){\n $buscaUsuario = true;\n break;\n }\n }\n fclose($fLectura);\n \n if($buscaUsuario){ \n // error para si el usuario existe \n echo \"<div class=errores><i class='fas fa-times-circle'></i> <span>Este usuario ya existe, prueba con otro.</span></div>\"; \n \t}else{ \n if(strlen($this->password)<6){\n // error para comprobar el tamaño de la contraseña\n echo \"<div class=errores><i class='fas fa-times-circle'></i> <span>La contraseña debe tener al menos 6 caracteres.</span></div>\"; \n }else{\n // registro en el archivo de usuarios\n $fRegistro = fopen($data,\"a\");\n fwrite($fRegistro,$this->username.\";\".$this->password.PHP_EOL);\n fclose($fRegistro);\n header(\"location: index.php\");\n }\n }\n }", "function consultarUsuarios($conexion, $usuario){\r\n\t\t$consulta = \"SELECT * FROM Usuario WHERE Usuario = '$usuario'\";\r\n\t\t$resultado = mysqli_query($conexion, $consulta);\r\n\t\treturn $resultado;\r\n\t}", "public function insertUsuario(){\n $query = \"INSERT INTO usuario (nombre, apellido, sexo, fecha_nac, correo, contrasenia) VALUES ('\".parent::string($this->getNombre()).\"', '\".parent::string($this->getApellido()).\"', '\".parent::string($this->getSexo()).\"', '\".parent::string($this->getFecha_Nac()).\"', '\".parent::string($this->getCorreo()).\"', '\".md5(md5(\"PAO%%%%0001TPIPSADSADasdsad\").parent::string($this->getContrasenia())).\"');\";\n $result = mysqli_query(parent::conexion(), $query);\n if($result){\n $fila = mysqli_fetch_array($result);\n parent::desconectar();\n return $fila;\n } else{\n echo parent::conexion()->error;\n parent::desconectar();\n return false;\n }\n }", "public function getUsuario($dados = null){\n\n\t\tif($dados != null){\n\n\t\t\t//Monta a consulta com a seguintes condições\n\t\t\t$this->db->where('email', $dados['login']);\n\t\t\t//$this->db->where('senha', sha1($dados['senha']));\n\t\t\t$this->db->where('senha', $dados['senha']);\n\n\t\t\t//Armazena os registro na variavel query\n\t\t\t$query = $this->db->get('tb_usuario');\n\n\t\t\t//Verifica se foi encontrado um registro com os dados igual a das condições\n\t\t\tif($query->num_rows == 1){\t\n\t\t\t\t//Retorna o registro com os dados semelhantes ao aos dados que foram informados\t\t\n\t\t\t\treturn $query->result_array();\n\t\t\t}\n\t\t}\n\t}", "public function registrarUsuario()\n {\n $datos = array();\n\n //guardamos los datos del formulario en un array \n foreach ($_POST as $clave => $valor) {\n $datos[$clave] = $valor;\n }\n\n //añadimos una clave por defecto y generamos el ciu\n $datos['clave'] = hash('sha512', \"12345678\");\n $datos['ciu'] = self::generarCiu($datos['nombre'], $datos['apellidos'], $datos['fecha_nacimiento']);\n\n //insertamos los datos y mostramos un error en funcion de si ha habido error o no\n echo $this->Usuarios_model->registrarUsuario($datos) ? 1 : 0;\n }", "function existUsuarios($USUAID)\n\t{\n\t\t$sql = \"SELECT * FROM usuarios WHERE USUAID=$USUAID\";\n\t\t$this->consult = $this->connection->Execute($sql);\n\t\tif ($this->consult->fields)\n\t\t\treturn 1;\n\t}", "public function listarUsua(){\n\t\t$sql=\"SELECT USUARI_ID, USUARI_NOMBRES, USUARI_USUARIO\n\t\t FROM usuario ORDER BY USUARI_NOMBRES\";\n\t\treturn ejecutarConsulta($sql);\n\t}", "public function ingresarUsuario($admin_cedula,$admin_apellido,$admin_nombre,$admin_login,$admin_contrasena,$admin_resp_secreta,$pre_id)\r\n\t{\r\n\t\t$filas = array();\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//realizamos la consulta de todos los items\r\n\t\t\t$consulta=\"insert into administrador values ('\".$admin_cedula.\"','\".$admin_login.\"','\".$admin_contrasena.\"','\".$admin_resp_secreta.\"','\".$admin_nombre.\"','\".$admin_apellido.\"','Activo','\".$pre_id.\"')\";\r\n\t\t\t$this->db->exec($consulta);\r\n\t\t\t$retorno='true';\r\n\t\t}\r\n\t\tcatch(PDOException $e)\r\n\t\t{\r\n\t\t\techo $e;\r\n\t\t}\r\n\r\n\t\treturn $filas;\r\n\t}", "public function m_bEditarusr($cod)\n\t\t{\n\t\t\t$this->db->where('cod',$cod);\n\t\t\t$sql = $this->db->get('tblusuarios');\n\n\t\t\tif($sql->num_rows() > 0)\n\t\t\t\treturn $sql;\n\t\t\telse\n\t\t\t\treturn FALSE;\n\t\t}", "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 }", "function compruebaLoginUsuario($bd){\n //Hago un filtrado previo por si hay valores indeseables en el array\n $arrayFiltrado=array();\n foreach ($_POST as $k => $v)\n $arrayFiltrado[$k] = filtrado($v);\n\n //Utilizo los objetos DAO para añadir el usuario a la BD\n $daoUsuario = new Usuarios($bd);\n $usuario = new Usuario();\n $usuario->setPassword($arrayFiltrado[\"password\"]);\n $usuario->setUsuario($arrayFiltrado[\"usuario\"]);\n $resultado = $daoUsuario->compruebaCredenciales($usuario);\n //Compruebo si tengo usuario\n if($resultado!=false) {\n $usuario->setPassword(null);\n $usuario->setId($resultado[\"id\"]);\n $usuario->setImagen($resultado[\"imagen\"]);\n return $usuario;\n }\n else\n return false;\n}", "function existeUSUARIO($USUAEMAI, $USUAPASS)\n\t{\n\t\t$sql = \"SELECT * FROM usuarios WHERE USUAEMAI='$USUAEMAI' AND USUAPASS='$USUAPASS'\";\n\t\treturn $this->connection->GetAll($sql);\n\t\n\t}", "public function ctrIngresoUsuario(){\n\n\t\tif(isset($_POST[\"user01\"])){\n\n\t\t//\t if(preg_match('/^[^0-9][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[@][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[.][a-zA-Z]{2,4}$/', $_POST[\"ingresoEmail\"]) && preg_match('/^[a-zA-Z0-9]+$/', $_POST[\"ingresoPassword\"])){\n\n\t\t\t \t//$encriptar = crypt($_POST[\"ingresoPassword\"], '$2a$07$asxx54ahjppf45sd87a5a4dDDGsystemdev$');\n\t\t\t\t$encriptar = crypt($_POST[\"passwords01\"], '$2a$07$asxx54ahjppf17sd87a5a4dDDGsystemdevmybebe$');\n\n\t\t\t \t$tabla = \"genusuario\";\n\t\t\t \t$item = \"usunombre\";\n\t\t\t \t$valor = $_POST[\"user01\"];\n\n\t\t\t \t$respuesta = UserModel::mdlMostrarUsuarios($tabla, $item, $valor);\n\n\t\t\t\t//echo \"<pre>\".print_r($respuesta).\"</pre>\";\n\n\t\t\t \tif($respuesta[\"usunombre\"] == $_POST[\"user01\"] && $respuesta[\"usuclave\"] == $encriptar){\n\n\t\t\t \t\tif($respuesta[\"usuverific\"] == 0){\n\n\t\t\t \t\t\techo'<script>\n\n\t\t\t\t\t\t\tswal({\n\t\t\t\t\t\t\t\t\ttype:\"error\",\n\t\t\t\t\t\t\t\t \ttitle: \"¡ERROR!\",\n\t\t\t\t\t\t\t\t \ttext: \"¡El correo electrónico aún no ha sido verificado, por favor revise la bandeja de entrada o la carpeta SPAM de su correo electrónico para verificar la cuenta, o contáctese con nuestro soporte a [email protected]!\",\n\t\t\t\t\t\t\t\t \tshowConfirmButton: true,\n\t\t\t\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\t\t\t\tif(result.value){ \n\t\t\t\t\t\t\t\t\t history.back();\n\t\t\t\t\t\t\t\t\t } \n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t</script>';\n\n\t\t\t\t\t\treturn;\n\n\t\t\t \t\t}else{\n\n\t\t\t \t\t\t$_SESSION[\"validarSesion\"] = \"ok\";\n\t\t\t \t\t\t$_SESSION[\"id\"] = $respuesta[\"oid\"];\n\n\t\t\t \t\t\t$ruta = RouteController::ctrRoute();\n\n\t\t\t \t\t\techo '<script>\n\t\t\t\t\t\n\t\t\t\t\t\t\twindow.location = \"'.$ruta.'backoffice\";\t\t\t\t\n\n\t\t\t\t\t\t</script>';\n\n\t\t\t \t\t}\n\n\t\t\t \t}else{\n\n\t\t\t \t\techo'<script>\n\n\t\t\t\t\t\tswal({\n\t\t\t\t\t\t\t\ttype:\"error\",\n\t\t\t\t\t\t\t \ttitle: \"¡ERROR!\",\n\t\t\t\t\t\t\t \ttext: \"¡El email o contraseña no coinciden!\",\n\t\t\t\t\t\t\t \tshowConfirmButton: true,\n\t\t\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\t\t\tif(result.value){ \n\t\t\t\t\t\t\t\t history.back();\n\t\t\t\t\t\t\t\t } \n\t\t\t\t\t\t});\n\n\t\t\t\t\t</script>';\n\n\t\t\t \t}\n\n\n\t\t/*\t }else{\n\n\t\t\t \techo '<script>\n\n\t\t\t\t\tswal({\n\n\t\t\t\t\t\ttype:\"error\",\n\t\t\t\t\t\ttitle: \"¡CORREGIR!\",\n\t\t\t\t\t\ttext: \"¡No se permiten caracteres especiales en ninguno de los campos!\",\n\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\n\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\tif(result.value){\n\n\t\t\t\t\t\t\thistory.back();\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\t\n\n\t\t\t\t</script>';\n\n\t\t\t }*/\n\n\t\t}\n\n\t}", "public function validate($usuario) {\n\t\ttry {\n\n\t\t\t$string_rol_vendedor = \" \";\n\t\t\t$query = $this->db->query(\"SELECT u.id_usuario FROM usuarios u WHERE u.email = \".$this->db->escape($usuario['email']).\" AND\n\t\t\tu.clave = PASSWORD(\". $this->db->escape($usuario['clave']) .\") \". $string_rol_vendedor . \" AND u.estado_usuario = 1\" );\n\n\n\t\t\t$result = $query->result_array();\n\n\t\t\tif($query->num_rows() == 1){\n\t\t\t\t$usuario = $query->row_array();\n\t\t\t\treturn $usuario;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$usuario['id_usuario'] = 0 ;\n\t\t\t\treturn $usuario;\n\t\t\t}\n\t\t} catch (Exception $e) {\n\t\t\t$usuario['id_usuario'] = 0 ;\n\t\t\treturn $usuario;\n\t\t}\n\t}", "public function registroUsuarioModel($data){\n\t\t$stmt = Conexion::conectar()->prepare(\"INSERT INTO usuarios(codigo,nombre,apellidos, email, password, tipo) VALUES(:codigo, :nombre, :apellidos, :email, :password, :tipo)\");\n\t\t//preparacion de parametros\n\t\t$stmt->bindParam(\":codigo\", $data['codigo']);\n\t\t$stmt->bindParam(\":nombre\", $data['nombre']);\n\t\t$stmt->bindParam(\":apellidos\", $data['apellidos']);\n\t\t$stmt->bindParam(\":email\", $data['email']);\n\t\t$stmt->bindParam(\":password\", $data['password']);\n\t\t$stmt->bindParam(\":tipo\", $data['tipo']);\n\t\tif($stmt->execute()) //ejecucion\n\t\t\treturn \"success\"; //respuesta\n\t\telse\n\t\t\treturn \"error\";\n\t\t$stmt->close();\n\t}", "function obtenerDatosUsuario($parametros) {\n $sql = \"SELECT nombre, apellidos, email, telefono, dni, administrador, pass FROM usuarios WHERE dni = :dni\";\n\n //Preparamos la consulta\n $consulta_usuario = $this->conexionBBDD->prepare($sql,array());\n\n //Ejecutamos la consulta\n $consulta_usuario->execute($parametros);\n\n //Devolvemos los resultados\n return $consulta_usuario->fetch(PDO::FETCH_NUM);\n }", "function selectIdUsu($user) {\n $c = conectar();\n $select = \"select ID_USUARIO from USUARIOS where username='$user'\";\n $resultado = mysqli_query($c, $select);\n $fila = mysqli_fetch_assoc($resultado); //recoge la consulta msquli_query y escoge solo la fila que coincide con el select\n if ($fila==null){\n $fila==0;\n }else{\n $tipoUsuario = $fila[\"ID_USUARIO\"];\n desconectar($c);\n return $tipoUsuario;\n}\n}", "function iniciarSesion($usr, $clv, $tabla) {\n //para saber si es usuario o administrador\n $tabla = ($tabla==\"s_admin\") ? \"admin\" : \"usuario\";\n $this->db->where('usuario=',$usr);\n $this->db->where('contrasena=',$clv);\n $query = $this->db->get($tabla);\n\n $rs = $query->result();\n if(count($rs) > 0){\n return $rs;\n }\n $todos = $this->db->query('SELECT count(*) AS nr FROM usuario');\n $nn = $todos->result();\n return false;\n }", "function Register(){\n\n\t\t$sql = \"select * from USUARIOS where login = '\".$this->login.\"'\";\n\n\t\t$result = $this->mysqli->query($sql);\n\t\tif ($result->num_rows == 1){ // existe el usuario\n\t\t\t\treturn 'El usuario ya existe';\n\t\t\t}\n\t\telse{\n\t \t\treturn true; //TEST : El usuario no existe\n\n\t}\n}", "public function getDatosUsuario(){\r\n $sql = \"SELECT *\r\n FROM usuarios WHERE Usuario = '{$this->usuario}' AND Clave='{$this->clave}';\";\r\n $data = $this->conexion->getTable($sql);\r\n $row = mysqli_fetch_assoc($data);\r\n return $row;\r\n}", "public function getEmpleados() {\n $this->consulta = \"SELECT * \n FROM usuarios \n WHERE tipoUsuario = 'Empleado'\";\n if ($this->consultarBD() > 0) {\n $this->mensaje = 'Seccion Usuarios Empleados <br> Registros Encontrados: <b>' . count($this->registros) . '</b>';\n return true;\n } else {\n return false;\n }\n }", "private function consultar_usuario_por_nombre() {\n $sentencia = \"select id,nombrecompleto ,correo,token \"\n . \"from usuario u where u.nombrecompleto ilike '%{$this->referencia_a_buscar}%'; \";\n $this->respuesta = $this->obj_master_select->consultar_base($sentencia);\n }", "public static function obtenerUsuariosCampo($campo)\n {\n // Consulta de la meta\n $consulta = \"SELECT * FROM usuarios, usuarios_roles WHERE ((CONCAT(usuarios.nombres, ' ', usuarios.correo, ' ', usuarios.cedula, ' ', usuarios.iniciales, ' ', usuarios.rol) ILIKE ?) AND (usuarios.rol=usuarios_roles.id_rol)) ORDER BY usuarios.nombres ASC\";\n\n try {\n // Preparar sentencia\n $comando = Database::getInstance()->getDb()->prepare($consulta);\n // Ejecutar sentencia preparada\n $comando->execute(array($campo));\n // Capturar primera fila del resultado\n //$row = $comando->fetch(PDO::FETCH_ASSOC);\n //return $row;\n\n\n return $comando->fetchAll(PDO::FETCH_ASSOC);\n\n } catch (PDOException $e) {\n // Aquí puedes clasificar el error dependiendo de la excepción\n // para presentarlo en la respuesta Json\n return -1;\n }\n }", "public function get_usuarios()\n\t{\n\t\ttry\n\t\t{\n\t\t\t$sql = \"SELECT * FROM usuarios\";\n\n\t\t\t$resultado = $this->db->prepare($sql);\n\n\t\t\tif(!$resultado->execute())\n\t\t\t{\n\t\t\t\techo \"<h1 class='text-danger bg-danger'>Falla en la consulta</h1>\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\twhile($reg = $resultado->fetch(PDO::FETCH_ASSOC))\n\t\t\t\t{\n\t\t\t\t\t$this->usuarios[] = $reg;\n\t\t\t\t}\n\n\t\t\t\treturn $this->usuarios;\n\t\t\t}\n\t\t}\n\t\tcatch(Exception $e)\n\t\t{\n\t\t\tdie(\"Error: {$e->getMessage()}\");\n\t\t}\n\t}", "public function consultarUsuario($parametros)\n {\n //echo \"<h1>$correo -- $contrasena</h1>\";\n // header('Location: ../vistas/index.php');\n\n #LLAMO LA CONEXION PARA PODER CONSULTAR A LA BASE DE DATOS\n $modelo = new Conexion_PDO();\n $conexion = $modelo->get_Conexion_Mysql();\n #PREPARO LA SQL PARA VERIFICAR SI EL USUARIO EXISTE Y ESTA ACTIVO\n $sql = \"SELECT priape,segape,nom from datosiniciales\";\n $statement = $conexion->prepare($sql);\n $statement->execute();\n $resultados = $statement->fetch();\n // VERIFICA SI EL RESULTADO ES DIFERENTE DE VACIO QUIERE DECIR QUE EL CORREO SI EXISTE Y ESTA ACTIVO\n if ($resultados != '') {\n\n echo \"<br>- \"$resultados['priape'];\n echo \"<br>- \"$resultados['segape'];\n echo \"<br>- \"$resultados['nom'];\n return 1;\n\n // $_SESSION['identificacion'] = $dato['numeroid'];\n // $_SESSION['nombre'] = $dato['nombre1'];\n // $_SESSION['apellido'] = $dato['apellido1'];\n // header('location:acceso.php');\n\n } else {\n return 2;\n // echo \"Error, verifica tu usuario y contraseña\";\n // header('location:../index.php');\n }\n\n }", "private function consultar_usuario_por_id() {\n\n if (is_numeric($this->referencia_a_buscar)) {\n $id_a_buscar = intval($this->referencia_a_buscar);\n $sentencia = \"select id,nombrecompleto ,correo,token from usuario u where u.id= {$id_a_buscar};\";\n $this->respuesta = $this->obj_master_select->consultar_base($sentencia);\n } else {\n $this->respuesta = null;\n }\n }", "function buscarLogin($usuario){\r\n\t $sql=\"SELECT * from usuarios WHERE usuario='\".$usuario.\"'\";\r\n\t //Realizamos la consulta\r\n\t $resultado=$this->realizarConsulta($sql);\r\n\t if($resultado!=false){\r\n\t return $resultado->fetch_assoc();\r\n\t }else{\r\n\t return null;\r\n\t }\r\n \t}", "function verificacioBD($email){\n $conn=connexioBD();\n $usuariExisteix=false;\n $sql=\"SELECT * FROM usuaris WHERE email='$email'\";\n if (!$resultado = $conn->query($sql)) {\n die(\"Error en la consulta\".$conn->error);\n }\n if($resultado->num_rows>=0){\n while($usuari=$resultado->fetch_assoc()){\n $usuariExisteix=true; \n }\n }\n $resultado->free();\n $conn->close();\n return $usuariExisteix;\n}", "function Usuario($idUsuario = '')\n\t\t{\n\t\t\t$this->id = \"usuario_id\";\n\t\t\t$this->tabla = \"usuario\";\n\t\t\t\n\t\t\t$this->exitoListar = t(\"User list obtained successfully\");\n\t\t\t$this->errorListar = t(\"Error obtaining user list\");\n\t\t\t$this->exitoInsertar = t(\"User created successfully\");\n\t\t\t$this->exitoActualizar = t(\"User updated successfully\");\n\t\t\t$this->errorInsertar = t(\"Error creating user\");\n\t\t\t$this->errorActualizar = t(\"Error updating user\");\t\n\t\t\t\n\t\t\t$this->campos = array(\n\t\t\t\t'usuario_id' => array('tipo'=>'id','nulo'=>true,'msg'=>t('Invalid user ID'),'valor'=>'','lectura'=>false),\n\t\t\t\t'usuario_nombre' => array('tipo'=>'string','nulo'=>true,'msg'=>t('Invalid user name'),'valor'=>'','lectura'=>false),\n\t\t\t\t'usuario_login' => array('tipo'=>'string','nulo'=>false,'msg'=>t('Invalid user login'),'valor'=>null,'lectura'=>false),\n\t\t\t\t'usuario_password' => array('tipo'=>'string','nulo'=>false,'msg'=>t('Invalid password'),'valor'=>null,'lectura'=>false),\n\t\t\t\t'usuario_rol_id' => array('tipo'=>'int','nulo'=>false,'msg'=>t('Invalid Rol'),'valor'=>null,'lectura'=>false),\n\t\t\t\t'usuario_email' => array('tipo'=>'email','nulo'=>true,'msg'=>t('Invalid email'),'valor'=>'','lectura'=>false),\n\t\t\t\t'usuario_apellido1' => array('tipo'=>'string','nulo'=>true,'msg'=>t('Invalid surname1'),'valor'=>'','lectura'=>false),\n\t\t\t\t'usuario_apellido2' => array('tipo'=>'string','nulo'=>true,'msg'=>t('Invalid surname2'),'valor'=>'','lectura'=>false),\n\t\t\t\t'usuario_detalles' => array('tipo'=>'html','nulo'=>true,'msg'=>t('Invalid details'),'valor'=>'','lectura'=>false)\n\t\t\t);\n\n\t\t\t$this->relaciones = array(\n\t\t\t\n\t\t\t\t'rol' => array (\n\t\t\t\t\t'tabla' => 'rol',\n\t\t\t\t\t'relacion' => '1a1',\n\t\t\t\t\t'soloLectura' => true,\n\t\t\t\t\t'clavePrimaria' => 'usuario_rol_id',\n\t\t\t\t\t'claveAjena1' => 'rol_id',\n\t\t\t\t\t'claveAjena2' => '',\n\t\t\t\t\t'campos' => array(\n\t\t\t\t\t\t'rol_id' => array('tipo'=>'id','nulo'=>true,'msg'=>t('Invalid rol id'),'valor'=>'','lectura'=>true),\t\t\t\t\t\n\t\t\t\t\t\t'rol_nombre' => array('tipo'=>'string','nulo'=>true,'msg'=>t('Invalid rol name'),'valor'=>'','lectura'=>true)\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t);\n\t\t\t\n\t\t\t$this->campos['usuario_id']['valor'] = $idUsuario;\n\t\t}", "private function crearUsuario(){\n \t\t#valida que la solicitud sea mediante un post \n\t if ($_SERVER['REQUEST_METHOD'] != \"POST\") {\n\t \t//envia un error \n\t $this->mostrarRespuesta($this->convertirJson($this->devolverError(1)), 405); \n\t }\n\t //valida que los datos a incorporar no sean vacios \n\t if (isset($this->datosPeticion['nombre'], $this->datosPeticion['email'], $this->datosPeticion['pwd'])){\n\t $nombre = $this->datosPeticion['nombre']; \n\t $pwd = $this->datosPeticion['pwd']; \n\t $email = $this->datosPeticion['email'];\n\n\t //valida la existemcia del usuario mediante el email \n\t if (!$this->existeUsuario($email)){ \n\t $query = $this->_conn->prepare(\n\t \t\"INSERT into usuario (nombre,email,password,fRegistro) \n\t \t VALUES (:nombre, :email, :pwd, NOW())\");\n\t //se le asignan los valores a las variables de la consulta \n\t $query->bindValue(\":nombre\", $nombre); \n\t $query->bindValue(\":email\", $email); \n\t $query->bindValue(\":pwd\", sha1($pwd)); \n\t $query->execute(); \n\t if ($query->rowCount() == 1){ // se inserto bien \n\t $id = $this->_conn->lastInsertId(); \n\t $respuesta['estado'] = 'correcto'; \n\t $respuesta['msg'] = 'usuario creado correctamente'; \n\t $respuesta['usuario']['id'] = $id; \n\t $respuesta['usuario']['nombre'] = $nombre; \n\t $respuesta['usuario']['email'] = $email; \n\t $this->mostrarRespuesta($this->convertirJson($respuesta), 200); \n\t } else //se envia un error de insercion en la bd\n\t $this->mostrarRespuesta($this->convertirJson($this->devolverError(7)), 400); \n\t } else //se envia un error del usuario no existe\n\t $this->mostrarRespuesta($this->convertirJson($this->devolverError(8)), 400); \n\t } else { \n\t $this->mostrarRespuesta($this->convertirJson($this->devolverError(7)), 400); \n\t } \n\t}", "function bd_usuarios_datos($login) {\n $sql=\"\n SELECT id, nombre, nivel, email\n FROM usuarios\n WHERE id LIKE '{$login}'or email LIKE '{$login}'\";\n $salida = sql2row($sql);\n return $salida;\n}", "function registrarUsuario(){\n\n\t require(\"Conexion.php\");\t\n\t \n if(isset($_POST['insertar'])){\n\t\n\t $nombre=$_POST[\"nombre\"];\n $apellido=$_POST[\"apellido\"];\n\t $correo=$_POST[\"correo\"];\n\t $direccion=$_POST[\"direccion\"];\n\t $username=$_POST[\"nombre\"];\n\t $password=$_POST[\"password\"];\n\n\t $db=new Conexion();\n\t\n\t\t /* evitar duplicaciones*/\t\t\n $sql = \"select count(*) from datos_usuario where nombre ='$nombre'\";\n\t\t\n if ($resultado = $db->connect()-> query($sql)) {\n\n /* Comprobar el número de filas que coinciden con la sentencia SELECT */\n if ($resultado->fetchColumn() > 0) {\n\n /* Ejecutar la sentencia SELECT para mostrar el nombre duplicado*/\n $sql = \"select nombre from datos_usuario where nombre = '$nombre'\";\n foreach ($db->connect()->query($sql) as $fila) {\n \n\t\t $duplicado=$nombre;\n }\t\n\n\t echo '<script language=\"javascript\">alert(\"Usuario duplicado: '.$duplicado.' ya esta en uso.\");</script>';\n\n echo \"<script>\n setTimeout(function() {\n location.href = '../vista/registro_user.php';\n }, 0001);\n </script>\";\t\t\t \n }\n \n /* No coincide ningua fila inserta */\n else {\t\t\n\t\t\t/*no hay duplicaciones insertamos*/\n\t\n $query=$db->connect()->prepare(\"insert into datos_usuario (nombre, apellido, correo, direccion)\n\t values (:nombre, :apellido, :correo,:direccion)\");\t\t\t \n $query->execute(array(\":nombre\"=>$nombre, \":apellido\"=>$apellido,\":correo\"=>$correo,\"direccion\"=>$direccion));\n\t\n\t/*----------------segunda tabla-----------------------------*/\n\t $db=new Conexion();\n\t \n\t $sql2=\"insert into usuarios(username, password, rol_id) values (:username, :password, :rol_id)\";\n\t $query=$db->connect()->prepare($sql2);\n\t\t\t \n $query->execute(array(\":username\"=>$nombre, \":password\"=>$password, \":rol_id\"=>2));\n\t\n\t\t echo'<script type=\"text/javascript\">\n alert(\"Usuario registrado\");\n </script>';\n\t\n\t \n\t echo \"<script>\n setTimeout(function() {\n location.href = '../vista/login.php';\n }, 0001);\n </script>\";\t\n\t\t } \t\n }\n }\n }", "public function buscarValorUnico($valor, $campo)\n {\n $db = DBConnection::getConnection();\n\n $query = \"SELECT * FROM users WHERE \". $campo . \"=?\";\n\n $stmt = $db->prepare($query);\n\n $stmt->execute([$valor]);\n\n $dato = $stmt->fetch(PDO::FETCH_ASSOC);\n\n if ($dato)\n throw new Exception(\"El \" . $campo . \" con el valor \" . $valor . \" ya esta en uso\");\n\n return true;\n }", "function exiteUsuario($usuario) {\n $usuarioSaneado = trim(filter_var($usuario, FILTER_SANITIZE_STRING));\n\n $link = crearConexion();\n $query = \"SELECT `username` FROM `usuario` WHERE `username`='$usuarioSaneado'\";\n $result = mysqli_query($link, $query);\n cerrarConexion($link);\n return mysqli_num_rows($result) > 0;\n}", "public function existe_usuario($user){ \n \n $query = \"SELECT email, password, idneo4j FROM usuario WHERE email = '\".$user.\"';\";\n $mysql = new Conexion();\n $resultado = $mysql->get_resultados_query($query);\n \n //print_r($resultado);\n \n if(!empty($resultado))\n return $resultado;\n \n return false;\n \n }", "public function agregar_usuario_controlador()\n {\n $nombres = strtoupper(mainModel::limpiar_cadena($_POST['usu_nombres_reg']));\n $apellidos = strtoupper(mainModel::limpiar_cadena($_POST['usu_apellidos_reg']));\n $identidad=mainModel::limpiar_cadena($_POST['usu_identidad_reg']);\n $puesto=mainModel::limpiar_cadena($_POST['usu_puesto_reg']);\n $unidad=mainModel::limpiar_cadena($_POST['usu_unidad_reg']);\n $rol = mainModel::limpiar_cadena($_POST['usu_rol_reg']);\n $celular = mainModel::limpiar_cadena($_POST['usu_celular_reg']);\n $usuario = strtolower(mainModel::limpiar_cadena($_POST['usu_usuario_reg']));\n $email=$usuario . '@didadpol.gob.hn' ;\n\n\n /*comprobar campos vacios*/\n if ($nombres == \"\" || $apellidos == \"\" || $usuario == \"\" || $email == \"\" || $rol == \"\" || $identidad == \"\" || $puesto == \"\" || $unidad == \"\") {\n $alerta = [\n \"Alerta\" => \"simple\",\n \"Titulo\" => \"OCURRIÓ UN ERROR INESPERADO\",\n \"Texto\" => \"NO HAS COMPLETADO TODOS LOS CAMPOS QUE SON OBLIGATORIOS\",\n \"Tipo\" => \"error\"\n ];\n echo json_encode($alerta);\n exit();\n }\n\n if (mainModel::verificar_datos(\"[A-ZÁÉÍÓÚáéíóúñÑ ]{3,35}\", $nombres)) {\n $alerta = [\n \"Alerta\" => \"simple\",\n \"Titulo\" => \"OCURRIÓ UN ERROR INESPERADO\",\n \"Texto\" => \"EL CAMPO NOMBRES SOLO DEBE INCLUIR LETRAS Y DEBE TENER UN MÍNIMO DE 3 LETRAS\",\n \"Tipo\" => \"error\"\n ];\n echo json_encode($alerta);\n exit();\n }\n if (mainModel::verificar_datos(\"[A-ZÁÉÍÓÚáéíóúñÑ ]{3,35}\", $apellidos)) {\n $alerta = [\n \"Alerta\" => \"simple\",\n \"Titulo\" => \"OCURRIÓ UN ERROR INESPERADO\",\n \"Texto\" => \"EL CAMPO APELLIDOS SOLO DEBE INCLUIR LETRAS Y DEBE TENER UN MÍNIMO DE 3 LETRAS\",\n \"Tipo\" => \"error\"\n ];\n echo json_encode($alerta);\n exit();\n }\n if ($celular != \"\") {\n if (mainModel::verificar_datos(\"[0-9]{8}\", $celular)) {\n $alerta = [\n \"Alerta\" => \"simple\",\n \"Titulo\" => \"OCURRIÓ UN ERROR INESPERADO\",\n \"Texto\" => \"EL NÚMERO DE CELULAR NO COINCIDE CON EL FORMATO SOLICITADO\",\n \"Tipo\" => \"error\"\n ];\n echo json_encode($alerta);\n exit();\n }\n }\n if (mainModel::verificar_datos(\"[0-9]{13}\", $identidad)) {\n $alerta = [\n \"Alerta\" => \"simple\",\n \"Titulo\" => \"OCURRIÓ UN ERROR INESPERADO\",\n \"Texto\" => \"EL NÚMERO DE IDENTIDAD NO COINCIDE CON EL FORMATO SOLICITADO\",\n \"Tipo\" => \"error\"\n ];\n echo json_encode($alerta);\n exit();\n }\n /*validar DNI*/\n $check_dni = mainModel::ejecutar_consulta_simple(\"SELECT identidad FROM tbl_usuarios WHERE identidad='$identidad'\");\n if ($check_dni->rowCount() > 0) {\n $alerta = [\n \"Alerta\" => \"simple\",\n \"Titulo\" => \"OCURRIÓ UN ERROR INESPERADO\",\n \"Texto\" => \"EL NÚMERO DE IDENTIDAD YA ESTÁ REGISTRADO\",\n \"Tipo\" => \"error\"\n ];\n echo json_encode($alerta);\n exit();\n }\n\n if (mainModel::verificar_datos(\"[a-z]{3,15}\", $usuario)) {\n $alerta = [\n \"Alerta\" => \"simple\",\n \"Titulo\" => \"OCURRIÓ UN ERROR INESPERADO\",\n \"Texto\" => \"EL CAMPO NOMBRE DE USUARIO SOLO DEBE INCLUIR LETRAS Y DEBE TENER UN MÍNIMO DE 5 Y UN MAXIMO DE 15 LETRAS\",\n \"Tipo\" => \"error\"\n ];\n echo json_encode($alerta);\n exit();\n }\n\n /*validar usuario*/\n $check_user = mainModel::ejecutar_consulta_simple(\"SELECT nom_usuario FROM tbl_usuarios WHERE nom_usuario='$usuario'\");\n if ($check_user->rowCount() > 0) {\n $alerta = [\n \"Alerta\" => \"simple\",\n \"Titulo\" => \"OCURRIÓ UN ERROR INESPERADO\",\n \"Texto\" => \"EL USUARIO YA ESTÁ REGISTRADO\",\n \"Tipo\" => \"error\"\n ];\n echo json_encode($alerta);\n exit();\n }\n /*validar email*/\n\n \n $caracteres = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\n $pass = \"\";\n for ($i = 0; $i < 8; $i++) {\n $pass .= substr($caracteres, rand(0, 64), 1);\n }\n $message = \"<html><body><p>Hola, \" . $nombres . \" \" . $apellidos;\n $message .= \" Estas son tus credenciales para ingresar al sistema de DIDADPOL\";\n $message .= \"</p><p>Usuario: \" . $usuario;\n $message .= \"</p><p>Correo: \" . $email;\n $message .= \"</p><p>Contraseña: \" . $pass;\n $message .= \"</p><p>Inicie sesión aquí para cambiar la contraseña por defecto \" . SERVERURL . \"login\";\n $message .= \"<p></body></html>\";\n\n $res = mainModel::enviar_correo($message, $nombres, $apellidos, $email);\n if (!$res) {\n $alerta = [\n \"Alerta\" => \"simple\",\n \"Titulo\" => \"OCURRIÓ UN ERROR INESPERADO\",\n \"Texto\" => \"NO SE ENVIÓ CORREO ELECTRÓNICO\",\n \"Tipo\" => \"error\"\n ];\n echo json_encode($alerta);\n exit();\n }\n\n $passcifrado = mainModel::encryption($pass);\n\n $datos_usuario_reg = [\n \"rol\" => $rol,\n \"puesto\"=>$puesto,\n \"unidad\"=>$unidad,\n \"usuario\" => $usuario,\n \"nombres\" => $nombres,\n \"apellidos\" => $apellidos,\n \"dni\"=>$identidad,\n \"clave\" => $passcifrado,\n \"estado\" => \"NUEVO\",\n \"email\" => $email,\n \"celular\" => $celular\n ];\n $agregar_usuario = usuarioModelo::agregar_usuario_modelo($datos_usuario_reg);\n if ($agregar_usuario->rowCount() == 1) {\n $alerta = [\n \"Alerta\" => \"limpiar\",\n \"Titulo\" => \"USUARIO REGISTRADO\",\n \"Texto\" => \"LOS DATOS DEL USUARIO SE HAN REGISTRADO CON ÉXITO\",\n \"Tipo\" => \"success\"\n ];\n } else {\n $alerta = [\n \"Alerta\" => \"simple\",\n \"Titulo\" => \"OCURRIÓ UN ERROR INESPERADO\",\n \"Texto\" => \"NO SE HA PODIDO REGISTRAR EL USUARIO\",\n \"Tipo\" => \"error\"\n ];\n }\n echo json_encode($alerta);\n }", "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 }", "public function crearusuarios($nombre,$primer_apellido,$segundo_apellido,$fechanacimento,$email,$telefono,$password,$comprobacion,$alias,$foto)\n { //busca en la tabla usuarios los campos donde el alias sea igual a admin si no encuentra nada devuelve null\n $usuarios = R::findOne('usuarios', 'alias=?', [\n $alias\n ]);\n \n \n // ok es igual a true siempre y cuando usuarios sea distinto de null\n $ok = ($usuarios == null );\n if ($ok) {\n // crea la tabla usuarios\n $usuarios = R::dispense('usuarios');\n //crea los campos de la tabla usuarios\n $usuarios->nombre=$nombre;\n $usuarios->primer_apellido=$primer_apellido;\n $usuarios->segundo_apellido=$segundo_apellido;\n $usuarios->fecha_nacimiento=$fechanacimento;\n $usuarios->fecha_de_registro=date('Y-m-d');\n $usuarios->email=$email;\n $usuarios->telefono=$telefono;\n $usuarios->contrasena=password_hash($password, PASSWORD_DEFAULT);\n $usuarios->confirmar_contrasena=password_hash($comprobacion, PASSWORD_DEFAULT);\n $usuarios->alias=$alias;\n //verifico si las fotos exiten en el directorio assets/fotosperfil\n $sustitutuirespaciosblancos = str_replace(\" \",\"_\",$alias);\n $directorio = \"assets/fotosperfil/usuario-\".$sustitutuirespaciosblancos.\".png\";\n \n $existefichero = is_file( $directorio );\n //si la foto exite se guarda en la base de datos se guarda el campo extension como png si la foto no exite se guarda como null\n if($foto!=null){\n \n if ( $existefichero==true ){\n $extension=\"png\";\n }else{\n \n \n \n \n \n \n \n }}\n $usuarios->foto = $extension;\n //almacena los datos en la tabla usuarios\n R::store($usuarios);\n \n \n //rdirege al controlador principal\n redirect(base_url());\n \n \n }\n \n }", "public function isOk(){\n $c=\"select * from usuarios where nombre=:n AND pass=:p\";\n $stmt=$this->conector->prepare($c);\n try{\n $stmt->execute([\n ':n'=>$this->nombre,\n ':p'=>$this->pass\n ]);\n }catch(PDOException $ex){\n die(\"Error al validar: \".$ex);\n }\n $perfil=-1;\n while($fila=$stmt->fetch(PDO::FETCH_ASSOC)){\n $perfil=$fila['perfil'];\n }\n return $perfil;\n \n }", "function obtenerUsuario_Especialista(){\n\t\t\n\t\t$user = 'user';\n\t\t\n\t\t$query = $this->db->from('usuario')->where('perfil',$user)->get();\n\t if($query-> num_rows() > 0) return $query->result_array();\n\t else return false ;\n\t\t\n\t}", "static public function ctrCrearUsuario(){\n \t\tif(isset($_POST[\"nuevoUsuario\"])){\n \t\t\tif(preg_match('/^[a-zA-Z0-9ñÑáéíóúÁÉÍÓÚ ]+$/', $_POST[\"nuevoNombre\"]) &&\n\t\t\t preg_match('/^[a-zA-Z0-9]+$/', $_POST[\"nuevoUsuario\"]) &&\n\t\t\t preg_match('/^[a-zA-Z0-9]+$/', $_POST[\"nuevoPassword\"])){\n\n\n\t\t\t\t//Inicializamos la ruta de la foto por si no hay foto.\n\t\t\t\t$ruta =\"\";\n\n\n \t\t\t\t$tabla = \"usuarios\";\n\n \t\t\t\t//$encriptar = crypt($_POST[\"nuevoPassword\"], '$2a$07$asxx54ahjppf45sd87a5a4dDDGsystemdev$');\n \t\t\t\t$encriptar = $_POST[\"nuevoPassword\"];\n\n\n \t\t\t\t$datos = array (\"nombre\" => $_POST[\"nuevoNombre\"],\n \t\t\t\t\t\t\t\t\"usuario\" => $_POST[\"nuevoUsuario\"],\n \t\t\t\t\t\t\t\"password\" => $encriptar ,\n \t\t\t\t\t\t\"perfil\" => $_POST[\"nuevoPerfil\"]);\n\t\t\t\t\t\t \n\t\t\t\t$nombreValido = ModeloUsuarios::mdlValidadUsuario($tabla, $_POST[\"nuevoUsuario\"]);\n\t\t\t\t$respuesta = \"\";\n\t\t\t\tif($nombreValido)\n\t\t\t\t \t$respuesta = ModeloUsuarios::mdlIngresarUsuario($tabla, $datos);\n\n \t\t\t\tif($respuesta == \"ok\" AND $nombreValido ){\n\n \t\t\t\techo '<script>\n\n\t\t\t\t\tswal({\n\t\t\t\t\t\ttype: \"success\",\n\t\t\t\t\t\ttitle: \"¡El usuario ha sido guardado correctamente!\",\n\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\n\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\tif(result.value){\n\t\t\t\t\t\t\n\t\t\t\t\t\t\twindow.location = \"usuarios\";\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\t\t\t\t\n\n\t\t\t\t</script>';\n\n \t\t\t\t}else \t\t\n \t\t\t\techo '<script>\n\n\t\t\t\t\tswal({\n\t\t\t\t\t\ttype: \"error\",\n\t\t\t\t\t\ttitle: \"¡El usuario no se ha logrado ingresar!\",\n\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\n\t\t\t\t\t});\n\t\t\t\t\n\n\t\t\t\t</script>';\n\n \t\t\t\t\n\n \t\t\t}else {\n \n \t\t\t\techo '<script>\n\n\t\t\t\t\tswal({\n\t\t\t\t\t\ttype: \"error\",\n\t\t\t\t\t\ttitle: \"¡El usuario no puede ir vacío o llevar caracteres especiales!\",\n\t\t\t\t\t\tshowConfirmButton: true,\n\t\t\t\t\t\tconfirmButtonText: \"Cerrar\"\n\n\t\t\t\t\t}).then(function(result){\n\n\t\t\t\t\t\tif(result.value){\n\t\t\t\t\t\t\n\t\t\t\t\t\t\twindow.location = \"usuarios\";\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\t\t\t\t\n\n\t\t\t\t</script>';\n\n\n \t\t\t}\n \n \n\n\n \t\t}\n\n\t}", "public function valida(){\n if(isset($_GET['consulta'])){\n $arraydata = array(\n 'nombre' => $_POST['nombre'],\n 'email' => $_POST['email'],\n 'ip' => $this->get_ip(),\n 'fecha_acceso' => date('Y-m-d h:i:s'),\n 'rol' => 'Consulta'\n );\n if($this->AM->guardar_varios('accesos_externos',$arraydata)){\n $this->session->set_userdata($arraydata);\n header(\"Location: \".base_url().'inicio');\n }\n }\n else{\n $usuario = $_POST['usuario'];\n $password = md5($_POST['password']);\n $result = json_decode($this->AM->consulta_condicionada('vw_usuarios','usuario=\"'.$usuario.'\" AND password=\"'.$password.'\" AND activo = 1 '));\n if(count($result) == 1){\n echo \"hay resultado\";\n $arraydata = array(\n 'nombre' => $result[0]->nombre,\n 'email' => $result[0]->email,\n 'ip' => $this->get_ip(),\n 'fecha_acceso' => date('Y-m-d h:i:s'),\n 'rol' => $result[0]->rol\n );\n \n $array_acceso = array(\n 'ip' => $this->get_ip(),\n 'fecha_acceso' => date('Y-m-d h:i:s'),\n 'usuario_id' => $result[0]->id\n );\n \n if($this->AM->guardar_varios('accesos',$array_acceso)){\n $this->session->set_userdata($arraydata);\n header(\"Location: \".base_url().'inicio');\n }\n }\n else{\n header(\"Location: \".base_url().'?error=1');\n }\n }\n }", "function getUsuarios(){\n\t\n\t\treturn conectar()->query( \"SELECT * FROM usuarios\");\n\t}", "function consultar(){\n global $conexion, $data;\n $eliminado = $data[\"eliminado\"];\n $usuario = $data[\"usuario\"];\n $resultado= pg_query($conexion, \"SELECT * FROM decidim_users WHERE email='$usuario' AND id='$password'\");\n codificarJSON($resultado);\n }", "function consultaLogin($conexion, $usuario){\n $resultado = $conexion->query(\"select * from usuario where usuario='$usuario'\");\n return $resultado;\n}", "public function validarRegistroUser($id,$nombres,$apes,$tel,$fecha,$sexo,$clave1,$clave2,$correo,$ask,$ans,$tipod){\n $feedback=\"\";\n if($tipod != '0'){\n if($clave1 == $clave2){\n if($this->validarPass($clave1) == ' '){\n if($this->validarCorreo($correo) == 0){//verifica validas del correo\n if($ask != '0'){\n if($ask==1)\n $askf=\"Nombre de su primer mascota\";\n if($ask==2)\n $askf=\"Direccion de su primer lugar de residencia\";\n if($ask==3)\n $askf=\"Nombre mejor amigo de la infancia\";\n if($ask==4)\n $askf=\"Nombre de su localidad de residencia\";\n if($ask==5)\n $askf=\"Color de su camisa favorita\";\n if($sexo != '0' ){\n //error\n if($this->verificarIdMedico($id)==0){\n if($this->insertarUser($id,$nombres,$apes,$tel,$fecha,$sexo,$clave1,$correo,$askf,$ans,$tipod) == true){\n $feedback='ok';\n }else{\n $feedback='1';//error en el insert\n }\n }else{\n $feedback='2';//id existe en la bd\n }\n }else{\n $feedback='3';//no selecciono sexo\n }\n }else{\n $feedback='4';//no selecciono pregunta\n }\n }else{\n $feedback='5';//correo existe\n }\n }else{\n $feedback=$this->validarPass($clave1);//contraseña no valida\n }\n }else{\n $feedback='6';//las claves no son iguales\n }\n}else{\n $feedback='7';//no se ingreso tipo\n}\n return $feedback; \n }", "function BUsu($cedula){\r\n\t\t$nombre = ValTexto($nombre);\r\n\t\t$sql = \"SELECT * FROM usuarios WHERE personas_cedula = '$cedula'\";\r\n\t\t\tif($ej=mysql_query($sql)) {\r\n\t\t\t\t$datos = mysql_fetch_array($ej);\r\n\t\t\t}\r\n\t\treturn $datos;\r\n}", "public function userCadConfirm($codConfirmacao=''){\n \n\n \n if($codConfirmacao==''){//se em branco retorna NULL (erro)\n \n \n return null;\n \n }else{//caso codigo informado procede com a conferencia e a ativacao\n \n \n \n $sql = new Sql();\n $ativacao = $sql->select('SELECT * FROM usuarios \n WHERE cod_ativacao_usuario = :cod_ativacao_usuario',\n array(':cod_ativacao_usuario'=>$codConfirmacao)); \n \n if(count($ativacao)==0){\n \n \n return null;//caso nada encontrado retorna NULL (deve pode ser um codigo invalido)\n \n }elseif(count($ativacao)>0){//caso codigo de confirmacao for OK entao ativa o cadastro\n \n \n //obtem o id do usuario\n $id_usuario = $ativacao[0]['id_usuario'];\n \n \n //verifica se existe a necessidade de ativacao\n if($ativacao[0]['status_usuario']==1){//cadastro JA ATIVO basta notificar\n \n return true;//retorna true confirmando que o cadastro esta atualizado \n \n }elseif($ativacao[0]['status_usuario']==0){//CASO INATIVO ENTÃO PROCEDE COM A ATIVACAO\n \n //atualiza o cadastro do usuario ativando ele\n $res = $sql->query('UPDATE usuarios SET status_usuario = 1\n WHERE id_usuario = :id_usuario',\n array(':id_usuario'=>$id_usuario));\n \n if($res>0){//se o numero de linhas afetadas for maior que ZERO\n \n return true;//retorna true confirmando que o cadastro esta atualizado\n \n }else{\n return false;//caso nada encontrado retorna FALSE (pode ter ocorrido erro na atualizacao)\n\n }\n }\n } \n }\n }", "function registrar_usuario($identificacion,$nombre,$apellidos,$correo,$password)\n\t{\n\t\t$respuesta= array();\n\t\t$usuario = new Usuario();\n\t\t$existe_usuario = $usuario->consultar_usuario($correo);\n\t\tif (empty($existe_usuario)) {\n\t\t\t$usuario_nuevo = $usuario->registrar_usuario($identificacion,$nombre,$apellidos,$correo,$password);\n\t\t\t$respuesta[\"usuario_nuevo\"]=$usuario_nuevo;\n\t\t\tif ($usuario_nuevo) {\n\t\t\t\t$respuesta[\"valor\"]=1; \n\t\t\t} else{\n\t\t\t\t$respuesta[\"valor\"]=0; \n\t\t\t}\n\t\t} else{\n\t\t\t$respuesta[\"valor\"]=2; \n\t\t}\n\t\techo json_encode($respuesta);\n\n\t}", "public function loginUsers($data) {\n try {\n $sql = \"SELECT usua_cedula, usua_contrasena FROM usuario WHERE usua_cedula = ?\";\n $query = $this->pdo->prepare($sql);\n $valid = $query->execute(array($data[0]));\n $valid= $query->fetch();\n\n if (password_verify($data[1], $valid[1])) { // Condicional para validar contrasena si es igual\n $sql1 = \"SELECT u.usua_id, CONCAT(UPPER(LEFT(u.usua_nombre1, 1)), LOWER(SUBSTRING(u.usua_nombre1,2))) AS usua_nombre1, u.usua_nombre2, CONCAT(UPPER(LEFT(u.usua_apellido1, 1)), LOWER(SUBSTRING(u.usua_apellido1,2))) AS usua_apellido1, u.usua_apellido2, u.usua_cedula, u.carg_id,\n u.usua_contrasena, u.clien_id, u.usua_estado, u.usua_modifica, u.usua_ingreso, u.sed_id, u.area_id\n FROM usuario AS u\n WHERE usua_cedula = ? \";\n $query = $this->pdo->prepare($sql1);\n $const= $query->execute(array($data[0]));\n $const= $query->fetch();\n\n if ($const[9] === \"1\" && $const[11] === \"1\") {\n session_start(); // Variables para iniciar session\n $_SESSION[\"validar\"] = true;\n $_SESSION[\"nombre\"] = $const[1];\n $_SESSION[\"apellido\"] = $const[3];\n $_SESSION[\"idusuario\"] = $const[0];\n $_SESSION[\"cargo\"] = $const[6];\n $_SESSION[\"idcliente\"] = $const[8];\n $_SESSION[\"sede\"] = $const[12];\n return true;\n }else if ($const[11] === \"0\" && $const[9] === \"1\"){\n session_start(); // Variables para iniciar session\n $_SESSION[\"cedula\"] = $const[5];\n return \"successpassword\";\n }\n }else {\n return \"authentication\";\n }\n\n } catch (Exception $e) {\n die($e->getMessage());\n }\n\n }", "function consultarEmailUsuario(){\n global $conexion, $data;\n $email = $data[\"email\"];\n $resultado = mysqli_query($conexion,\"SELECT * FROM usuario WHERE usu_email='$email'\");\n echo validarError($conexion, false, $resultado);\n }", "public function ConsultarUsuarioPorNick($data)\n {\n \n $data='<?xml version=\"1.0\" encoding=\"UTF-8\" ?>'.$data; \n $xml = simplexml_load_string($data);\n \n if (!is_object($xml)){\n throw new Exception('Error en la lectura del XML',1001);\n\n }\n \n (string) $nick =(string) $xml->Usuario->Nick;\n \n \n if ($this->SesionIniciada()){ // Verifico que el usuario este logeado\n \n $ConexionCassandra=new ManejadorCassandra(); //Conexion con la base de datos cassandra\n $BuscaUsuario=$ConexionCassandra->ConsultaPorParametro('usuario',array('nick'=>$nick)); // Busca en la table usuario el nick \n $VerificaEnBD=$BuscaUsuario->getAll();\n if($VerificaEnBD[$nick]!=NULL){\n \n return $VerificaEnBD;\n }\n else{\n \n return \"El usuario que esta consultando no existe\";\n }\n \n }\n \n else{\n\n return 'El usuario no ha iniciado sesion'; //Error si el usuario no ha iniciado sesion\n }\n \n }", "function existUsername($username)\n{\n $c = conectar();\n $select = \"select * from USUARIOS where USERNAME='$username'\";\n // Ejecutamos la consulta recogiendo el resultado\n $resultado = mysqli_query($c, $select);\n // Comprobamos cuantas filas tiene\n if (mysqli_num_rows($resultado) === 1) {\n $resultado = true;\n } else {\n $resultado = false;\n }\n desconectar($c);\n return $resultado;\n}", "function consultarUsuario($conexion){\r\n\t\t$consulta = \"SELECT * FROM Usuario ORDER BY idUsuario\";\r\n\t\t$resultado = mysqli_query($conexion, $consulta);\r\n\t\treturn $resultado;\r\n\t}", "function selectRegistos($connectDB, $pesquisa, $grupo)\n{\n $rows = array();\n $this_user = $_SESSION['id'];\n\n $result = mysqli_query($connectDB, \"SELECT idutilizador, nome, email, numero, fotografia \n FROM utilizador \n WHERE nome LIKE '%$pesquisa%' \n OR email LIKE '%$pesquisa%'\n OR numero LIKE '%$pesquisa%'\n ORDER BY nome\");\n\n if (mysqli_num_rows($result) > 0) {\n while ($row = $result->fetch_assoc()) {\n if ($row['idutilizador'] != $this_user) {\n //--\n if (!checkIfMember($connectDB, $grupo, $row['idutilizador'])) {\n $rows[] = $row;\n }\n }\n }\n //-- print do json para ser retornado no ajax da pagina dos contactos\n print json_encode(($rows));\n } else {\n echo \"</br> Não encontrou contacto\";\n }\n}", "public function ctrIngresoUsuario(){\n\t\tif(isset($_POST[\"ingUsuario\"])){\n\t\t\tif(preg_match('/^[a-zA-Z0-9]+$/',$_POST[\"ingUsuario\"]) && \n\t\t\t\tpreg_match('/^[a-zA-Z0-9]+$/',$_POST[\"ingPassword\"])){\n\n\t\t\t\t$tabla=\"usuarios\";\n\t\t\t$item=\"usuario\";\n\t\t\t$valor=$_POST[\"ingUsuario\"];\n\t\t\t$respuesta=ModeloUsuarios::MdlMostrarUsuarios($tabla,$item,$valor);\t\n\t\t\t //var_dump($respuesta[\"usuario\"]);\n\t\t\tif($respuesta[\"usuario\"]==$_POST[\"ingUsuario\"] && $respuesta[\"password\"]==$_POST[\"ingPassword\"]){\n\t\t\t\t$_SESSION[\"iniciarSesion\"]=\"ok\";\n\t\t\t\techo '<script>\n\t\t\t\twindow.location=\"inicio\";\n\t\t\t\t</script>';\n\t\t\t}else{\n\t\t\t\techo '<br><div class=\"alert alert-danger\">Error al ingresar, vuelva a intentarlo</div>';\n\t\t\t}\n\t\t}\n\t}\n }", "public function consult($cod_estado){\r\n \r\n $sql = \"SELECT * FROM ESTADO_USUARIO WHERE cod_estado = \".$cod_estado;\r\n \r\n if(!$resultado = pg_Exec($this->conexion,$sql));\r\n $row = pg_fetch_array($resultado);\r\n\r\n $est = new Status_User();\r\n $est->setCod_estado($row[0]);\r\n $est->setNom_estado($row[1]);\r\n\r\n return $est;\r\n }", "private function existeusuario($usuario)\n {\n $stmt = $this->con->prepare(\"SELECT id_conductor FROM `carga` WHERE id_conductor = ?\");\n $stmt->bind_param(\"s\", $usuario);\n $stmt->execute(); \n $stmt->store_result();\n\n return $stmt->num_rows > 0;\n }", "function usuario($listaNombres, $listaPasswords, $nombre, $passwords) {\n $encontrado = -3;\n $claveNombre = -1;\n $clavePassword = -2;\n foreach ($listaNombres as $clave => $valor) {\n if ($valor === $nombre) {\n //el nombre es igual al que se pasa del formulario\n $claveNombre = $clave;\n foreach ($listaPasswords as $claveC => $valorC) {\n //la contraseña es igual a la del formulario\n if ($valorC === $passwords) {\n $clavePassword = $claveC;\n if ($clavePassword === $claveNombre) {\n //comprobamos si es el nombre y la contraseña pertenecen a la misma persona\n $encontrado = $clavePassword;\n }\n }\n }\n }\n }\n return $encontrado;\n}", "public function buscarUsuarios(){\n\t\t}", "function logInBD($email, $passXifrada ){\n $conn=connexioBD();\n $usuariExisteix=false;\n $sql=\"SELECT * FROM usuaris WHERE email='$email' and password='$passXifrada'\";\n if (!$resultado = $conn->query($sql)) {\n die(\"Error en la consulta\".$conn->error);\n }\n if($resultado->num_rows>=0){\n while($usuari=$resultado->fetch_assoc()){\n $usuariExisteix=true; \n }\n }\n $resultado->free();\n $conn->close();\n return $usuariExisteix;\n}", "public function checkLogin(){\n $dbQuery = new DBQuery(\"\", \"\", \"\");\n $this->email = $dbQuery->clearSQLInjection($this->email);\n $this->senha = $dbQuery->clearSQLInjection($this->senha);\n \n // Verificar quantas linhas um Select por Email e Senha realiza \n $resultSet = $this->usuarioDAO->select(\" email='\".$this->email.\"' and senha='\".$this->senha.\"' \");\n $qtdLines = mysqli_num_rows($resultSet);\n \n // Pegar o idUsuario da 1ª linha retornada do banco\n $lines = mysqli_fetch_assoc($resultSet);\n $idUsuario = $lines[\"idUsuario\"];\n \n\n \n // retorna aonde a função foi chamada TRUE ou FALSE para se tem mais de 0 linhas\n if ( $qtdLines > 0 ){\n // Gravar o IdUsuario e o Email em uma Sessão\n session_start();\n $_SESSION[\"idUsuario\"] = $idUsuario;\n $_SESSION[\"email\"] = $this->email;\n return(true);\n }else{\n // Gravar o IdUsuario e o Email em uma Sessão\n session_start();\n unset($_SESSION[\"idUsuario\"]);\n unset($_SESSION[\"email\"]);\n return(false);\n }\n }", "public function get_usuario($id_login){\n return $this->db->query(\"select * from usuarios where ID_USUARIO=$id_login\"); \n \n }", "public function getUsuario($id,$cedula){\r\n\t$pdo = Database::connect();\r\n//Utilizamos parametros para la consulta:\r\n\t$sql = \"select * from cat_usuarios where ID_US=?\";\r\n\t$consulta = $pdo->prepare($sql);\r\n//Ejecutamos y pasamos los parametros para la consulta:\r\n\t$consulta->execute(array($id));\r\n//Extraemos el registro especifico:\r\n\t$dato = $consulta->fetch(PDO::FETCH_ASSOC);\r\n//Transformamos el registro obtenido a objeto:\r\n\t$usuario=new Usuarios();\r\n\t$usuario->setID_US($dato['ID_US']);\r\n\t$usuario->setCEDULA_US($dato['CEDULA_US']);\r\n\t$usuario->setNOMBRE_US($dato['NOMBRE_US']);\r\n\t$usuario->setAPELLIDO_US($dato['APELLIDO_US']);\r\n\t$usuario->setFECHANAC_US($dato['FECHANAC_US']);\r\n\t$usuario->setCIUDAD_US($dato['CIUDAD_US']);\r\n\t$usuario->setTELEFONO_US($dato['TELEFONO_US']);\r\n\t$usuario->setGENERO_US($dato['GENERO_US']);\r\n\t$usuario->setAPELLIDO_US($dato['APELLIDO_US']);\r\n\t$usuario->setDIRECCION_US($dato['DIRECCION_US']);\r\n\t$usuario->setFECHAREGISTRO_US($dato['FECHAREGISTRO_US']);\r\n\t$usuario->setEMAIL_US($dato['EMAIL_US']);\r\n\r\n\tDatabase::disconnect();\r\n\treturn $usuario;\r\n}" ]
[ "0.69579923", "0.69278306", "0.68571943", "0.6817543", "0.6767449", "0.6749466", "0.6731917", "0.6713844", "0.66919035", "0.66830355", "0.66782075", "0.6654937", "0.66345143", "0.6611666", "0.66047007", "0.65940994", "0.65689385", "0.65685016", "0.6522654", "0.6507683", "0.64870644", "0.6480632", "0.6467353", "0.6463067", "0.6461943", "0.6451911", "0.6414183", "0.6410454", "0.64088976", "0.64063734", "0.6397376", "0.63947636", "0.63756007", "0.6373922", "0.6370392", "0.63699555", "0.6366898", "0.63545424", "0.6310984", "0.630669", "0.6305458", "0.63036907", "0.63031787", "0.6296191", "0.629395", "0.6292126", "0.62887436", "0.627383", "0.6270447", "0.6263066", "0.62617654", "0.62616223", "0.62610424", "0.62593335", "0.6258667", "0.62575525", "0.62545633", "0.6253703", "0.6247135", "0.62412643", "0.6234275", "0.6228236", "0.62243754", "0.62211776", "0.6215026", "0.62146735", "0.6213233", "0.6200184", "0.61996907", "0.61965346", "0.6195851", "0.61951065", "0.6188727", "0.6182968", "0.61810493", "0.6177118", "0.61753196", "0.6164523", "0.6162341", "0.6161951", "0.6160473", "0.6155746", "0.6152664", "0.6144928", "0.61439997", "0.6137006", "0.6133306", "0.6120487", "0.6113742", "0.6111145", "0.61045194", "0.6103361", "0.61018217", "0.60983807", "0.6092135", "0.6091263", "0.60912484", "0.6089569", "0.60880965", "0.60875154", "0.6085779" ]
0.0
-1
Assert that after delete a search term on grid page not displayed
public function processAssert(LocationIndex $indexPage, Location $locationTerm) { $locationText = $locationTerm->getDisplayName(); $grid = $indexPage->open()->getLocationsGrid(); $filters = [ 'webpos_staff_location' => $locationText, 'location_id' => $locationTerm->getLocationId(), 'display_name' => $locationTerm->getDisplayName(), 'address' => $locationTerm->getAddress(), 'description' => $locationTerm->getDescription(), ]; $grid->search($filters); unset($filters['store_id']); \PHPUnit_Framework_Assert::assertFalse( $grid->isRowVisible($filters, false), 'AssertWebposCheckGUICustomerPriceCP54 Staff Location "' . $locationText . '" was found in grid.' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDeleteWrongObjectTypeSubmitAsAdmin()\n {\n $crawler = $this->requestAsAdmin('/tasks');\n\n // Can't use assertSelectorTextContains() because it only checks the first selector occurrence\n // and the task we are looking for is not the first one in the displayed list of tasks.\n // See: https://github.com/symfony/symfony-docs/issues/13036\n //$this->assertSelectorTextContains('h4 > a', 'Tâche Eric n°1');\n $this->assertEquals(1, $crawler->filter('h4 > a:contains(\"Tâche Eric n°1\")')->count());\n\n // Then we delete it\n $task_id = self::getTaskIdByTitle('Tâche Eric n°1');\n\n $this->requestAsAdmin('/tasks/'.$task_id.'/delete');\n\n $crawler = $this->client->followRedirect();\n\n $this->assertRegExp('/tasks$/', $crawler->getUri());\n $this->assertContains(\n 'La tâche a bien été supprimée.',\n $this->client->getResponse()->getContent()\n );\n $this->assertSelectorTextNotContains('h4 > a', 'Tâche Eric n°1');\n }", "function test_restrict_deletion_of_Home_page(){}", "public function testDelete()\n {\n // save to cache\n $saveSearchCriteria = $this->searchCriteriaBuilder\n ->setContextName('cloud')\n ->setEntityName('customer')\n ->setFieldList(['id', 'name'])\n ->setIdName('id')\n ->build();\n\n $data = [['id' => 60, 'name' => 'Sergii']];\n\n $actualSave = $this->cacheManager->save($saveSearchCriteria, $data);\n $this->assertTrue($actualSave);\n\n // delete\n $searchCriteria = $this->searchCriteriaBuilder\n ->setContextName('cloud')\n ->setEntityName('customer')\n ->setIdList([60])\n ->setIdName('id')\n ->build();\n\n $this->cacheManager->delete($searchCriteria);\n\n // search\n $searchResult = $this->cacheManager->search($searchCriteria);\n $this->assertFalse($searchResult->hasData());\n $this->assertEquals(0, $searchResult->count());\n $this->assertCount(1, $searchResult->getMissedData());\n }", "public function testDelete(): void\n {\n $table = $this->getTableLocator()->get('Articles');\n $table->addBehavior('Translate', ['fields' => ['title', 'body']]);\n $article = $table->find()->first();\n $this->assertTrue($table->delete($article));\n\n $translations = $this->getTableLocator()->get('I18n')->find()\n ->where(['model' => 'Articles', 'foreign_key' => $article->id])\n ->count();\n $this->assertSame(0, $translations);\n }", "public function testDeleteAction()\n {\n $res = $this->controller->deleteAction();\n $this->assertContains(\"Delete\", $res->getBody());\n }", "public function testWebinarPanelistDelete()\n {\n }", "public function testRejectMatchingSuggestionsUsingDELETE()\n {\n }", "public function test_delete_ScienceFiction_category_along_with_its_books(){\n $this->visit('/admin/categories')->press('delete')->press('Proceed')\n ->see('Data removed')->see('The Evolutionary Void')->see('The Dreaming Void')->see('Blood Music');\n\n\n }", "public function testDelete()\n {\n $context = $this->createPageContext();\n $storage = $this->createStorage();\n $tokenStorage = $this->createTokenStorage();\n\n $layout1 = $storage->create();\n $layout2 = $storage->create();\n $layout3 = $storage->create();\n\n $context->addLayoutList([$layout1->getId(), $layout2->getId(), $layout3->getId()]);\n $token = $context->createEditToken([$layout1->getId(), $layout3->getId()], ['user_id' => 17]);\n $tokenString = $token->getToken();\n $tokenStorage->saveToken($token);\n\n // Save our editable instances\n $tokenStorage->update($tokenString, $layout1);\n $tokenStorage->update($tokenString, $layout3);\n\n // Validate that load still work\n $tokenStorage->loadToken($tokenString);\n $tokenStorage->loadMultiple($tokenString, [$layout1->getId(), $layout3->getId()]);\n\n // And now delete\n $tokenStorage->deleteAll($tokenString);\n\n try {\n $tokenStorage->loadToken($tokenString);\n $this->fail();\n } catch (InvalidTokenError $e) {\n $this->assertTrue(true);\n }\n try {\n $tokenStorage->loadMultiple($tokenString, [$layout1->getId()]);\n $this->fail();\n } catch (InvalidTokenError $e) {\n $this->assertTrue(true);\n }\n try {\n $tokenStorage->load($tokenString, $layout3->getId());\n $this->fail();\n } catch (InvalidTokenError $e) {\n $this->assertTrue(true);\n }\n }", "public function test_delete_item() {}", "public function test_delete_item() {}", "public function testDelete()\n {\n // test data\n $this->fixture->query('INSERT INTO <http://example.com/> {\n <http://s> <http://p1> \"baz\" .\n <http://s> <http://xmlns.com/foaf/0.1/name> \"label1\" .\n }');\n\n $res = $this->fixture->query('SELECT * WHERE {?s ?p ?o.}');\n $this->assertEquals(2, \\count($res['result']['rows']));\n\n // remove graph\n $this->fixture->delete(false, 'http://example.com/');\n\n $res = $this->fixture->query('SELECT * WHERE {?s ?p ?o.}');\n $this->assertEquals(0, \\count($res['result']['rows']));\n }", "public function processDeletePlaceholder() {}", "public function testDeleteUserTaskSubmitAsAdmin()\n {\n $crawler = $this->requestAsAdmin('/tasks');\n\n // Can't use assertSelectorTextContains() because it only checks the first selector occurrence\n // and the task we are looking for is not the first one in the displayed list of tasks.\n // See: https://github.com/symfony/symfony-docs/issues/13036\n //$this->assertSelectorTextContains('h4 > a', 'Tâche Eric n°1');\n $this->assertEquals(1, $crawler->filter('h4 > a:contains(\"Tâche Eric n°1\")')->count());\n\n // Then we delete it\n $task_id = self::getTaskIdByTitle('Tâche Eric n°1');\n\n $this->requestAsAdmin('/tasks/'.$task_id.'/delete');\n\n $crawler = $this->client->followRedirect();\n\n $this->assertRegExp('/tasks$/', $crawler->getUri());\n $this->assertContains(\n 'La tâche a bien été supprimée.',\n $this->client->getResponse()->getContent()\n );\n $this->assertSelectorTextNotContains('h4 > a', 'Tâche Eric n°1');\n }", "public function testDeleteTemplate()\n {\n\n }", "public function testDeleteGlobalTemplate()\n {\n\n }", "public function testDeleteSuccess()\n {\n factory(User::class, 4)->create();\n $this->browse(function (Browser $browser) { \n $page = $browser->visit('/admin/user');\n $elements = $page->elements('#table-contain tbody tr');\n $this->assertCount(5, $elements);\n $page->press('#table-contain tbody tr:nth-child(2) td:nth-child(8) button')\n ->waitFor(null, '1')\n ->assertSee('Are you sure you want to delete?')\n ->click('#delete-btn')\n ->assertSee(\"Deletion successful!\");\n $this->assertSoftDeleted('users', ['id' => '4']); \n $elements = $page->elements('#table-contain tbody tr'); \n $this->assertCount(4, $elements); \n });\n }", "public function testDeleteForm() {\n $document = $this->createDocument();\n\n $document_name = $document->id();\n\n // Log in and check for existence of the created document.\n $this->drupalLogin($this->adminUser);\n $this->drupalGet('admin/structure/legal');\n $this->assertRaw($document_name, 'Document found in overview list');\n\n // Delete the document.\n $this->drupalPostForm('admin/structure/legal/manage/' . $document_name . '/delete', [], 'Delete');\n\n // Ensure document no longer exists on the overview page.\n $this->assertUrl('admin/structure/legal', [], 'Returned to overview page after deletion');\n $this->assertNoText($document_name, 'Document not found in overview list');\n }", "public function testRemovePageWhenDeleted()\n {\n\n // Add a public page.\n $page = $this->_simplePage(true);\n\n // Delete.\n $page->delete();\n\n // Should remove Solr document.\n $this->_assertNotRecordInSolr($page);\n\n }", "public function testDeleteSnippet()\n {\n\n }", "public function testDeleteSuppliersUsingDELETE()\n {\n }", "public function testDelete()\n\t{\n\t\t$client = static::createClient(array(), array(\n\t\t 'PHP_AUTH_USER' => 'jr',\n\t\t 'PHP_AUTH_PW' => 'jr',\n\t\t));\n\t\t$client->followRedirects();\n\n\t\t// On clique sur le lien entreprise de test\n\t\t$crawler = $client->request('GET', '/clients');\n\t\t$link = $crawler->filter('.bloc__title a:contains(\"Entreprise de test\")')->first()->link();\n\t\t$crawler = $client->click($link);\n\t\t//On vérifie qu'on est bien sur la bonne page\n\t\t$this->assertGreaterThan(0, $crawler->filter('h1:contains(\"Entreprise de test\")')->count());\n\n\t\t// On clique sur le bouton modifier\n\t\t$link = $crawler->filter('.btn--delete')->first()->link();\n\t\t$crawler = $client->click($link);\n\t\t//On vérifie qu'on est bien sur la bonne page\n\t\t$this->assertEquals(1, $crawler->filter('.breadcrumb:contains(\"Supprimer\")')->count()); \n\n\t\t// On modifie le métier\n\t\t$form = $crawler->selectButton('Supprimer')->form();\n\t\t$crawler = $client->submit($form);\t\n\n\t\t//On vérifie que ça a marché\n\t\t$this->assertEquals(1, $crawler->filter('html:contains(\"Le client a bien été supprimé.\")')->count());\n\n\t}", "public function testDeleteSurvey0()\n {\n }", "public function testDeleteSurvey0()\n {\n }", "public function testDelete()\n {\n }", "public function testDelete()\r\n\t{\r\n\t\t// Load table\r\n\t\t$table = Table::model()->findByPk(array(\r\n\t\t\t'TABLE_SCHEMA' => 'indextest',\r\n\t\t\t'TABLE_NAME' => 'table2',\r\n\t\t));\r\n\r\n\t\t// Delete all indices\r\n\t\tforeach($table->indices AS $index)\r\n\t\t{\r\n\t\t\t$this->assertNotSame(false, $index->delete());\r\n\t\t}\r\n\r\n\t\t// Reload table\r\n\t\t$table->refresh();\r\n\r\n\t\t// Check index count\r\n\t\t$this->assertEquals(0, count($table->indices));\r\n\t}", "public function testDeleteGetForm(): void\n {\n $this->_loginUser(1);\n $source = 2;\n $target = 4;\n\n $this->get('/admin/categories/delete/2');\n\n $targetCategories = $this->viewVariable('targetCategories');\n $this->assertCount(4, $targetCategories);\n $this->assertArraySubset([4 => 'Offtopic', 5 => 'Trash'], $targetCategories);\n }", "public function testAdminDeleteFeature()\n {\n $client = static::createClient([], self::SERVER);\n\n $feature = $client->getContainer()->get('doctrine')\n ->getRepository(Feature::class)->findOneBy([\n 'name' => self::EDITED,\n ])->getId();\n\n $crawler = $client->request('GET', '/en/admin/feature');\n $client->submit($crawler->filter('#delete-form-'.$feature)->form());\n $this->assertSame(Response::HTTP_FOUND, $client->getResponse()->getStatusCode());\n\n $this->assertNull($client->getContainer()->get('doctrine')\n ->getRepository(Feature::class)->findOneBy([\n 'name' => self::EDITED,\n ]));\n }", "public function testUserDelete()\n {\n $this->browse(function (Browser $browser) {\n $delete_button = self::$locator . ' td .delete_button';\n\n $browser->visit('/')\n ->click($delete_button)\n\n ->waitForText('User ' . self::$username . ' has been successfully deleted!')\n ->assertSee('User ' . self::$username . ' has been successfully deleted!');\n });\n }", "public function testDeleteBrandUsingDELETE()\n {\n }", "public function testWebinarPanelistsDelete()\n {\n }", "public function test404Page()\n { \n factory(User::class, 4)->create();\n $user = User::find(4);\n $this->browse(function (Browser $browser) use ($user) {\n $browser->visit('/admin/user')\n ->assertSee('List Users')\n ->press('#table-contain tbody tr:nth-child(2) td:nth-child(8) button');\n $user->delete();\n $browser->waitFor(null, '1')\n ->assertSee('Are you sure you want to delete?')\n ->click('#delete-btn')\n ->assertSee('404 - Page Not found');\n });\n }", "public function testUserDeleteInvalidId()\n {\n $this->browse(function (Browser $browser) {\n $browser->visit('/delete_user/1000')\n ->waitForText('Sorry, the page you are looking for could not be found.')\n ->assertSee('Sorry, the page you are looking for could not be found.');\n });\n }", "public function testDeleteDocument()\n {\n }", "public function testRenderRemoveNoID()\n {\n $this->withSession($this->adminSession)\n ->call('GET', '/branch/remove');\n \n $this->assertResponseStatus(404);\n }", "public function testDeleteAnomymousTaskSubmitNotLoggedIn()\n {\n $task_id = self::getTaskIdByTitle('Tâche anonyme n°1');\n\n $this->client->request('GET', '/tasks/'.$task_id.'/delete');\n\n // When requesting this URL not being logged in,\n // we should be redirected (with status code 302) to the login form page.\n $this->assertEquals(302, $this->client->getResponse()->getStatusCode());\n $this->assertRegExp('/login$/', $this->client->getResponse()->headers->get('Location'));\n\n $this->client->followRedirect();\n\n $this->assertSelectorTextContains('.navbar-brand', 'To Do List app');\n }", "function testDeletingCategory()\n {\n \n $this->tester->seeRecord('common\\models\\Category', ['description' => 'abc']);\n\n $category = Category::find()->where(['description' => 'abc'])->One();\n $category->delete();\n\n $this->tester->dontseeRecord('common\\models\\Category', ['description' => 'abc']);;\n }", "public function testDeleteSurveyQuestionChoice0()\n {\n }", "public function testDeleteSurveyQuestionChoice0()\n {\n }", "public function testDelete()\n {\n $dataLoader = $this->getDataLoader();\n $data = $dataLoader->getOne();\n $this->deleteTest($data['user']);\n }", "public function testQuestionDeleteWithValidData() {\n $response = $this->get('question/' . $this->question->id . '/delete');\n $this->assertEquals('200', $response->foundation->getStatusCode());\n $this->assertEquals('general.permission', $response->content->view);\n }", "public function testDeleteAppearance()\n {\n }", "public function testDelete()\n {\n $model = $this->makeFactory();\n $model->save();\n\n $this->json('DELETE', static::ROUTE . '/' . $model->id, [], [\n 'Authorization' => 'Token ' . self::getToken()\n ])\n ->seeStatusCode(JsonResponse::HTTP_NO_CONTENT);\n }", "public function test404PageForClickShow()\n {\n $order = Order::with('user', 'orderdetails')->first();\n $this->browse(function (Browser $browser) use ($order) {\n $browser->loginAs(User::find(1))\n ->visit('/admin/order')\n ->assertSee('List Orders');\n $order->delete();\n $browser->click('tbody tr:nth-child(2) td:nth-child(7) .fa-info');\n $browser->assertSee('Can not find user with corresponding id.');\n });\n }", "public function testDeleteStore() {\n $store = $this->createStore();\n $this->drupalGet($store->toUrl('delete-form'));\n $this->assertSession()->pageTextContains('This action cannot be undone.');\n $this->submitForm([], t('Delete'));\n\n $this->container->get('entity_type.manager')->getStorage('commerce_store')->resetCache([$store->id()]);\n $store_exists = (bool) Store::load($store->id());\n $this->assertEmpty($store_exists);\n }", "public function testDeleteField()\n {\n $fakePista = factory(Pista::class,1)->create([\n 'id' => 4545,\n 'id_club' => factory(Establecimiento::Class,1)->create([\n 'id' => 9999\n ]),\n ]);\n Pista::deleteField(4545);\n $this->assertDatabaseMissing('pista',[\n 'id' => 4545\n ]);\n\n }", "public function testDeleteSurveyQuestion0()\n {\n }", "public function testDeleteSurveyQuestion0()\n {\n }", "public function testDeleteSite()\n {\n }", "public function testQuarantineDeleteById()\n {\n\n }", "public function testDelete()\n\t{\n\t\t// Remove the following lines when you implement this test.\n\t\t$this->markTestIncomplete(\n\t\t\t'This test has not been implemented yet.'\n\t\t);\n\t}", "public function test_admin_search_keyword()\n {\n $this->request('POST', 'pages/Login',['username'=>'superadmin-samuel','password'=>'J6gDEXs1yUxB7ssa9QtDRsk=']);\n $this->request('GET', ['pages/SearchResult', 'index']);\n $this->assertResponseCode(404);\n }", "function student_form_delete() {\n $id = arg(1);\n $num_deleted = db_delete('student')\n ->condition('st_id', $id)\n ->execute();\n if ($num_deleted) {\n drupal_set_message(t('entry has been deleted.'));\n drupal_goto(\"formlist\");\n }\n else {\n drupal_set_message(t('error in query'));\n }\n}", "public function testDeleteDocument()\n {\n echo \"\\nTesting subject deletion...\";\n $id = \"0\";\n \n //$url = TestServiceAsReadOnly::$elasticsearchHost . \"/CIL_RS/index.php/rest/documents/\".$id;\n $url = TestServiceAsReadOnly::$elasticsearchHost .$this->context.\"/documents/\".$id;\n \n $response = $this->curl_delete($url);\n // echo $response;\n $json = json_decode($response);\n $this->assertTrue(!$json->success);\n }", "public function testDeleteAuthorizationDivision()\n {\n }", "public function testDelete()\n\t{\n\t\t$saddle = $this->saddles[0];\n\n\t\t$this->actingAs($this->admin, 'api')\n\t\t\t ->delete('/api/v1/admin/saddles/' . $saddle->id)\n\t\t\t ->assertStatus(200);\n\n\t\t$this->assertDatabaseMissing('saddles', ['id' => $saddle->id]);\n\t}", "public function testDeleteSupplierGroup()\n {\n }", "public function testDelete(): void\n {\n $this->createInstance();\n $this->createAndLogin();\n\n\n $res = $this->fConnector->getDiscussionManagement()->postTopic('Hello title', 'My content', [$this->configTest['testTagId']],null)->wait();\n $res2 = $this->fConnector->getDiscussionManagement()->deleteTopic($res->id)->wait();\n $this->assertTrue($res2, 'Test delete of a topic');\n $res3 = $this->fConnector->getDiscussionManagement()->getDiscussions($this->configTest['testTagName'])->wait();\n $found = false;\n foreach($res3 as $discussion){\n if($discussion->id === $res->id){\n $found = true;\n break;\n }\n }\n $this->assertFalse($found, 'Test delete of a topic, search for deleted topic');\n\n }", "public function testPageDelete()\n {\n $faker = Faker::create();\n $page = Page::inRandomOrder()->first();\n $response = $this\n ->actingAs(User::where(\"admin\", true)->whereNotNull(\"verified\")->inRandomOrder()->first(), 'api')\n ->withHeaders([\n \"User-Agent\" => $faker->userAgent(),\n ])\n ->json('DELETE', \"/api/pages/\" . $page->slug);\n $response\n ->assertStatus(200);\n }", "function testDelete()\n {\n\n //Arrange\n $brand_name = \"Nike\";\n $test_brand = new Brand($brand_name);\n $test_brand->save();\n\n $brand_name2 = \"Adidas\";\n $test_brand2 = new Brand($brand_name2);\n $test_brand2->save();\n\n //Act\n $test_brand->delete();\n\n //Assert\n $this->assertEquals( [$test_brand2], Brand::getAll());\n }", "public function testStoreDelete()\n {\n\n }", "public function testRemove() {\n $index = Phish_Index::load();\n $index->store('TestA', 'testa.php');\n $index->store('TestB', 'testb.php');\n $index->remove('TestA');\n $this->assertNotEmpty($index->classes());\n }", "public function testDelete() {\n $this->initializePurgersService(['c']);\n $this->drupalLogin($this->adminUser);\n $this->drupalGet(Url::fromRoute($this->route, ['id' => 'id0']));\n $this->assertRaw('Yes, delete this purger!');\n $this->assertTrue(array_key_exists('id0', $this->purgePurgers->getPluginsEnabled()));\n $json = $this->drupalPostAjaxForm(Url::fromRoute($this->route, ['id' => 'id0'])->toString(), [], ['op' => 'Yes, delete this purger!']);\n $this->assertEqual('closeDialog', $json[1]['command']);\n $this->assertEqual('redirect', $json[2]['command']);\n $this->purgePurgers->reload();\n $this->assertTrue(is_array($this->purgePurgers->getPluginsEnabled()));\n $this->assertTrue(empty($this->purgePurgers->getPluginsEnabled()));\n $this->assertEqual(3, count($json));\n // Assert that deleting a purger that does not exist, passes silently.\n $json = $this->drupalPostAjaxForm(Url::fromRoute($this->route, ['id' => 'doesnotexist'])->toString(), [], ['op' => 'Yes, delete this purger!']);\n $this->assertEqual('closeDialog', $json[1]['command']);\n $this->assertEqual(2, count($json));\n }", "public function testDeleteDevice()\n {\n $this->browse(function (Browser $browser) {\n $browser->visit('/devices')\n ->mouseover('#devices-list-group a:nth-child(5) i.mdi-delete')\n ->click('#devices-list-group a:nth-child(5) i.mdi-delete')\n ->assertPathIs('/device/5/delete')\n ->assertSee('Delete Electricity Meter U')\n ->press('Delete')\n ->assertPathIs('/devices')\n ->assertDontSee('Electricity Meter U');\n });\n }", "public function test_search_no_item_result_with_keyword(){\n $this->browse(function (Browser $browser) {\n $browser->visit('/item-search')\n ->assertPathIs('/item-search')\n ->select('type', 4)\n ->click('button[type=\"submit\"]')\n ->assertPathIs('/item-search-result')\n ->assertSee(\"Oh! sorry no items to display.\");\n });\n }", "public function testExample()\n {\n $car= Car::find(2);\n $car->delete();\n $this->assertDatabaseMissing('cars', [\n 'id' => 2,\n ]);\n }", "public function test_delete_components() {\n $result = cy\\JORK::from('Model_Topic')\n ->with('posts')\n ->where('id', '=', cy\\DB::esc(1))\n ->exec('jork_test');\n $topic = $result[0];\n $topic->delete();\n $this->assertEquals(2, count(DB::select()->from('t_posts')\n ->where('topicFk', 'is', NULL)->exec('jork_test')));\n\n }", "public function testDeleteNew()\r\n\t{\r\n\t\t$index = new Index();\r\n\t\t$index->delete();\r\n\t}", "public function testDeleteModelSet()\n {\n }", "public function test_users_destroy_valid_from_admin_removes_from_db(){\n $this->signInAdmin();\n $this->delete(route('users.destroy', ['user' => 5])); \n $this->assertDatabaseMissing('users', ['id' => 5]);\n }", "public function testRemove()\n {\n $context = $this->createPageContext();\n $storage = $this->createStorage();\n $tokenStorage = $this->createTokenStorage();\n\n $layout1 = $storage->create();\n $layout2 = $storage->create();\n $layout3 = $storage->create();\n\n $context->addLayoutList([$layout1->getId(), $layout2->getId(), $layout3->getId()]);\n $token = $context->createEditToken([$layout1->getId(), $layout3->getId()], ['user_id' => 17]);\n $tokenString = $token->getToken();\n $tokenStorage->saveToken($token);\n\n // Save our editable instances\n $tokenStorage->update($tokenString, $layout1);\n $tokenStorage->update($tokenString, $layout3);\n\n // And now remove one layout\n $tokenStorage->remove($tokenString, $layout2->getId());\n $this->assertTrue($token->contains($layout1->getId()));\n $this->assertFalse($token->contains($layout2->getId()));\n $this->assertTrue($token->contains($layout3->getId()));\n\n try {\n $tokenStorage->load($tokenString, $layout2->getId());\n $this->fail();\n } catch (InvalidTokenError $e) {\n $this->assertTrue(true);\n }\n\n // And the other two still work\n $tokenStorage->load($tokenString, $layout1->getId());\n $tokenStorage->load($tokenString, $layout3->getId());\n }", "public function testDeleteTagAdmin(): void\n {\n // given\n $expectedStatusCode = 200;\n $adminUser = $this->createUser([User::ROLE_USER, User::ROLE_ADMIN]);\n $this->logIn($adminUser);\n\n $expectedTag = new Tag();\n $expectedTag->setName('Test Tag To Delete');\n $tagRepository = self::$container->get(TagRepository::class);\n $tagRepository->save($expectedTag);\n\n // when\n $crawler = $this->httpClient->request('GET', '/tag/'.$expectedTag->getId().'/delete');\n $resultStatusCode = $this->httpClient->getResponse()->getStatusCode();\n $form = $crawler->selectButton('usuń')->form();\n $this->httpClient->submit($form);\n $this->httpClient->followRedirect();\n\n // then\n $this->assertEquals($expectedStatusCode, $resultStatusCode);\n $this->assertStringContainsString('Usuwanie powiodło się', $this->httpClient->getResponse()->getContent());\n }", "public function testDeleteCategoryUsingDELETE()\n {\n }", "public function testCancelDeleteDevice()\n {\n $this->browse(function (Browser $browser) {\n $browser->visit('/devices')\n ->mouseover('#devices-list-group a:nth-child(5) i.mdi-delete')\n ->click('#devices-list-group a:nth-child(5) i.mdi-delete')\n ->assertPathIs('/device/5/delete')\n ->assertSee('Delete Electricity Meter U')\n ->clickLink('Cancel')\n ->assertPathIs('/devices')\n ->assertSee('Electricity Meter U');\n });\n }", "public function test_deleteItemCategory() {\n\n }", "public function testWorkflowsWorkflowIdDelete()\n {\n }", "public function testDeleteOrder()\n {\n }", "public function testRemoveField()\n\t{\n\t\t$this->instance->removeField('content');\n\n\t\t$this->instance->bind($this->getTestData());\n\n\t\t$this->assertNull($this->instance->content);\n\t}", "public function testDeleteEmptyIdForAdmin() {\n\t\t$userInfo = [\n\t\t\t'role' => USER_ROLE_USER | USER_ROLE_ADMIN,\n\t\t\t'prefix' => 'admin',\n\t\t];\n\t\t$this->applyUserInfo($userInfo);\n\t\t$this->generateMockedController();\n\t\t$opt = [\n\t\t\t'method' => 'POST',\n\t\t\t'return' => 'result',\n\t\t];\n\t\t$this->testAction('/admin/logs/delete', $opt);\n\t\t$this->checkFlashMessage(__('Invalid ID for record of log'));\n\t\t$this->checkRedirect(true);\n\t}", "public function delete()\n\t{\n\t\t$this->plugin->setResponse('in delete');\n\t}", "public function test_deleteItemCategoryTag() {\n\n }", "function testPageDeleteById()\n {\n $page = $this->_pageTable->createRow($this->_data);\n $page->save();\n\n $pageId = $page->id;\n\n $this->assertNotNull($pageId);\n\n // Delete Record in DB\n $res = $this->_pageTable->deleteById($pageId);\n $this->assertEquals(1, $res);\n\n // Get Record from DB\n //$page = $this->_pageTable->find($pageId);\n //$this->assertNull($page->id);\n }", "public function test_deleteReplenishmentProcessTag() {\n\n }", "public function testRenderRemoveNoID()\n {\n $this->withSession($this->adminSession)\n ->call('GET', '/dealer-account/remove');\n \n $this->assertResponseStatus(404);\n }", "function testSearchByCustomFieldWithNegation() {\n\t\t$this->setUrl('/search/advanced?r=per&q[per_900][op]=IS+NOT&q[per_900][value]=100');\n\t\t$this->app->go();\n\t\t$this->assertFalse(Flash::Instance()->hasErrors());\n\t\t$this->assertPattern('/id=\"qb_per_900\"/', $this->view->output);\n\t\t$this->assertPattern('/<th>Favourite Colour<\\/th>/', $this->view->output);\n\t\t$this->assertPattern('/<td>Blue<\\/td>/', $this->view->output);\n\t\t$collection = $this->view->get('collection');\n\t\t$names = $collection->pluck('name');\n\t\t$this->assertEqual($names, array('David Edwards', 'Greg Jones', 'Bob Smith'));\n\t}", "public function testDeleteIfNotAuthor()\n {\n $this->addTestFixtures();\n $id = $this->task->getId();\n $this->logInAsUser();\n\n $this->client->request('GET', '/tasks/'.$id.'/delete');\n\n $title = $this->task->getTitle();\n\n $statusCode = $this->client->getResponse()->getStatusCode();\n $this->assertEquals(302, $statusCode);\n\n $crawler = $this->client->followRedirect();\n $response = $this->client->getResponse();\n $statusCode = $response->getStatusCode();\n\n $this->assertEquals(200, $statusCode);\n $this->assertContains('Oops! La tâche '.$title.' n\\'a pas été supprimée car vous n\\'en êtes pas l\\'auteur.', $crawler->filter('div.alert.alert-danger')->text());\n }", "public function testRenderRemoveNoBranch()\n {\n $this->withSession($this->adminSession)\n ->call('GET', '/branch/remove', ['ID' => 2]);\n \n $this->assertResponseStatus(404);\n }", "public function testDeleteSiteMembership()\n {\n }", "public function DeleteTaphonomyOrgAdmin()\n {\n // Test user login\n $user = ['email' => '[email protected]', 'password' => 'Password!23'];\n $this->browse(function ($browser) use ($user) {\n $browser->visit(new loginPage)\n ->loginUser($user['email'], $user['password'])\n ->assertSee('Welcome');\n\n // Skeletal elements search set up\n $browser->visit(new specimenPage)\n ->pause(1000)\n ->select('@search-type-selector','SE-P1')\n ->pause(1000)\n ->type('@cora-search','888')\n ->keys('@cora-search','{enter}')\n\n // Search Result Assertions for humerus ABC999-888-777-555\n ->waitForLink('ABC999-888-777-555')\n ->assertSeeLink('ABC999-888-777-555')\n ->assertSee('Humerus')\n ->assertSee('Left')\n ->assertSee('Bone')\n ->assertSee('Side')\n ->assertSee('DNA Sampled')\n\n // Specimen Assertions\n ->clickLink('ABC999-888-777-555')\n ->assertSee('View Specimen - ABC999-888-777-555')\n ->click('@se-details-menu')\n ->click('@se-taphonomys-menu')\n ->assertSee('Taphonomies: ABC999-888-777-555')\n ->assertPathIs('/skeletalelements/1220/taphonomys')\n\n // Open Edit Functions\n ->click('@se-taphonomys-menu')\n ->click('@taphonomy-actions-edit')\n ->assertSee('Taphonomies: ABC999-888-777-555')\n ->assertSee('Save')\n ->assertPathIs('/skeletalelements/1220/associatetaphonomys')\n\n // Delete and Save an existing taphonomy\n ->keys('#app > div > div.container-fluid.app-content > div > div > div > div > div.card-body > form:nth-child(2) > div > div.card-body > div > div.col-lg-12.form-group.taphonomys > span > span.selection > span > ul > li > input','{backspace}','{backspace}','{backspace}','{backspace}','{backspace}','{backspace}','{backspace}','{backspace}','{backspace}','{backspace}','{backspace}','{backspace}','{backspace}','{backspace}','{backspace}','{backspace}','{backspace}','{backspace}','{backspace}','{backspace}','{backspace}','{backspace}','{backspace}','{backspace}','{backspace}','{backspace}','{backspace}','{backspace}','{backspace}')\n ->click('@se-taphonomy-save')\n ->acceptDialog()\n ->assertSee('Taphonomies successfully associated')\n ->assertPathIs('/skeletalelements/1220/associatetaphonomys')\n\n ->logoutUser();\n });\n }", "public function testDeleteReplenishmentTag()\n {\n }", "public function test_admin_search_keyword_b()\n {\n $this->request('GET', ['pages/SearchResult', 'index']);\n $this->assertResponseCode(404);\n }", "public function testExample()\n {\n $car = \\App\\Car::find(32);\n $delete= $car->delete();\n $this->assertTrue($delete);\n\n }", "public function testDeleteSuccessForAdmin() {\n\t\t$userInfo = [\n\t\t\t'role' => USER_ROLE_USER | USER_ROLE_ADMIN,\n\t\t\t'prefix' => 'admin'\n\t\t];\n\t\t$opt = [\n\t\t\t'method' => 'POST',\n\t\t];\n\t\t$this->applyUserInfo($userInfo);\n\t\t$this->generateMockedController();\n\t\t$url = '/admin/deferred/delete/2';\n\t\t$this->testAction($url, $opt);\n\t\t$this->checkFlashMessage(__('The deferred save has been deleted.'));\n\t\t$result = $this->Controller->Deferred->find('list', ['recursive' => -1]);\n\t\t$expected = [\n\t\t\t1 => '1',\n\t\t\t3 => '3',\n\t\t\t4 => '4',\n\t\t\t5 => '5',\n\t\t];\n\t\t$this->assertData($expected, $result);\n\t}", "public function testDeleteUnsuccessfulReason()\n {\n }", "public function testDeleteItemSubCategory()\n {\n }", "public function testRemoveMenuAction()\n {\n parent::login();\n $this->clickAt(\"link=CMS\", \"\");\n $this->click(\"link=Menus\");\n $this->waitForPageToLoad(\"30000\");\n $this->dragAndDropToObject(\"css=ul#sortable1.connectedSortable.ui-sortable li#id-1\", \"css=ul#sortable2\");\n $this->clickAt(\"link=CMS\", \"\");\n $this->click(\"link=Menus\");\n $this->waitForPageToLoad(\"30000\");\n $this->assertFalse($this->isElementPresent(\"css=ul#sortable1.connectedSortable.ui-sortable li#id-1.ui-state-default.ui-sortable-handle\"));\n $this->isElementPresent(\"css=ul#sortable2.connectedSortable.ui-sortable li#id-1.ui-state-default.ui-sortable-handle\");\n $this->assertElementContainsText(\"css=ul#sortable2.connectedSortable.ui-sortable li#id-1.ui-state-default.ui-sortable-handle\", \"Test Menu Selenium 1\");\n parent::logout();\n }", "function testDelete() {\n /** @var \\Drupal\\linkit\\AttributeInterface $plugin */\n $plugin = $this->manager->createInstance('dummy_matcher');\n\n $profile = $this->createProfile();\n $plugin_uuid = $profile->addMatcher($plugin->getConfiguration());\n $profile->save();\n\n // Try delete a matcher that is not attached to the profile.\n $this->drupalGet(Url::fromRoute('linkit.matcher.delete', [\n 'linkit_profile' => $profile->id(),\n 'plugin_instance_id' => 'doesntexists'\n ]));\n $this->assertResponse('404');\n\n // Go to the delete page, but press cancel.\n $this->drupalGet(Url::fromRoute('linkit.matcher.delete', [\n 'linkit_profile' => $profile->id(),\n 'plugin_instance_id' => $plugin_uuid,\n ]));\n $this->clickLink(t('Cancel'));\n $this->assertUrl(Url::fromRoute('linkit.matchers', [\n 'linkit_profile' => $profile->id(),\n ]));\n\n // Delete the matcher from the profile.\n $this->drupalGet(Url::fromRoute('linkit.matcher.delete', [\n 'linkit_profile' => $profile->id(),\n 'plugin_instance_id' => $plugin_uuid,\n ]));\n\n $this->drupalPostForm(NULL, [], t('Confirm'));\n $this->assertRaw(t('The matcher %plugin has been deleted.', ['%plugin' => $plugin->getLabel()]));\n $this->assertUrl(Url::fromRoute('linkit.matchers', [\n 'linkit_profile' => $profile->id(),\n ]));\n $this->assertText(t('No matchers added.'));\n\n /** @var \\Drupal\\linkit\\Entity\\Profile $updated_profile */\n $updated_profile = Profile::load($profile->id());\n $this->assertFalse($updated_profile->getMatchers()->has($plugin_uuid), 'The user matcher is deleted from the profile');\n }", "function test_treatments_can_be_deleted_true()\n {\n $this->seed();\n \n $user = User::where('email', '=', '[email protected]')->first();\n\n $treatments = Treatment::factory()\n ->count(3)\n ->for($user)\n ->create();\n $treatment = Treatment::first();\n \n $token = JWTAuth::fromUser($user);\n $response = $this->json('DELETE', '/api/treatments/'.$treatment->id.'?token='.$token);\n $response->assertNoContent();\n }", "public function testDestroy()\n {\n Item::factory()->create(\n ['email' => '[email protected]', 'name' => 'test']\n );\n Item::factory()->count(10)->create();\n\n //test item not found\n $this->delete('/items/11111')\n ->seeJson([\n 'error' => 'Item Not Found',\n ])\n ->seeJson([\n 'code' => 404,\n ]);\n\n //test success deleted item\n $this->delete('/items/1')\n ->seeJson([\n 'message' => 'Item 1 deleted',\n ])\n ->seeJson([\n 'status' => 'ok',\n ]);\n\n $this->notSeeInDatabase('items', array('id' => 1));\n }", "public function testDeleteUnauthorized()\n {\n $model = $this->makeFactory();\n $model->save();\n\n $this->json('DELETE', static::ROUTE . '/' . $model->id, [], [])\n ->seeStatusCode(JsonResponse::HTTP_UNAUTHORIZED);\n }", "function mongo_node_page_delete($form, $form_state, $entity_type, $entity) {\n $form['#entity'] = $entity;\n $uri = entity_uri($entity_type, $entity);\n\n return confirm_form($form,\n t('Are you sure you want to delete %title', array('%title' => $entity->title)),\n $uri['path'],\n t('This action cannot be undone'),\n t('Delete'),\n t('Cancel')\n );\n}" ]
[ "0.6619145", "0.64568603", "0.6391541", "0.6372882", "0.62606907", "0.6231395", "0.6209363", "0.6123759", "0.61232966", "0.6114757", "0.6114757", "0.6100538", "0.6078252", "0.6073787", "0.607343", "0.6056999", "0.60497165", "0.60128564", "0.5964785", "0.59627616", "0.5953366", "0.5949297", "0.5944762", "0.5944762", "0.5929935", "0.59248173", "0.59153485", "0.5895236", "0.5891401", "0.58843184", "0.5879519", "0.5856147", "0.58492917", "0.58454823", "0.5837612", "0.58374494", "0.5834155", "0.58267033", "0.58267033", "0.58042103", "0.58007544", "0.57931775", "0.5780769", "0.5776834", "0.5774064", "0.57723397", "0.57685184", "0.57685184", "0.57640076", "0.5755967", "0.57501763", "0.57443106", "0.5739167", "0.5729503", "0.5726847", "0.5724191", "0.57134676", "0.57111263", "0.5709909", "0.57022446", "0.5701967", "0.5692733", "0.5692069", "0.5685549", "0.5679661", "0.5674315", "0.5669741", "0.5660952", "0.56602883", "0.56576896", "0.56492805", "0.56341803", "0.56243974", "0.56216294", "0.5600421", "0.56003696", "0.5596993", "0.5588403", "0.5574935", "0.55740464", "0.5571347", "0.55688536", "0.5561863", "0.5561312", "0.5560612", "0.5557657", "0.55477023", "0.55463064", "0.55449283", "0.55423033", "0.5517469", "0.5515179", "0.551149", "0.5511301", "0.550082", "0.5495805", "0.5495514", "0.5490163", "0.5485101", "0.54841834", "0.5482282" ]
0.0
-1
Returns a string representation of the object
public function toString() { return 'AssertWebposCheckGUICustomerPriceCP54 Staff Location was not found in grid.'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function toString()\n {\n return json_encode($this->obj);\n }", "public function __toString()\n\t{\n\t\treturn $this->dump();\n\t}", "public function __toString() {\n\t\treturn get_class($this) . '-object ' . \"\\n\" .\n\t\t\t 'attributes: ' . print_r($this->attributes, 1) . \"\\n\";\n\t}", "public function to_string() { return $this->__toString(); }", "public function __toString() {\n\t\treturn get_class($this) . '-object ' . \"\\n\";\n\t}", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString();", "public function __toString()\n\t{\n\t\treturn $this->serialize();\n\t}", "public function __tostring() {\n\n\t\t\t//convet to string\n\t\t\treturn \"{\".\n\t\t\t\t\t\t\"id:\".$this->_id.\n\t\t\t\t\t\t\"type:\".$this->_type.\n\t\t\t\t\t\t\"path:\".$this->_path.\n\t\t\t\t\t\t\"name:\".$this->_name.\n\t\t\t\t\t\"}\";\n\n\t\t}", "public function __toString() { return $this->as_string(); }", "public function toString()\n {\n return $this->__toString();\n }", "public function __toString() {\n return $this->as_string();\n }", "public function __toString()\n {\n notice('Object: \"'.get_class($this).'\" is used as string');\n\n return 'Object('.get_class($this).')';\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->toJson();\n }", "public function toString()\n {\n $data = $this->getProperties();\n $out = get_class($this).' ('.CRLF;\n foreach ($data as $key => $value) {\n $type = gettype($value);\n $value = is_bool($value) ? (int) $value : $value;\n $value = is_string($value) ? '\"'.$value.'\"' : $value;\n $value = is_object($value) ? implode(CRLF.TAB, explode(CRLF, (string) $value)) : $value;\n $value = is_array($value) ? print_r($value, true) : $value;\n $out .= TAB.$key.' ('.$type.')';\n $out .= ': '.$value.CRLF;\n }\n\n return $out.');';\n }", "public function __toString(): string\n {\n return $this->toJson();\n }", "public function __toString()\n {\n return $this->make()->toString();\n }", "public function __toString()\n {\n return $this->formatAsString();\n }", "public function __toString()\n\t{\n\t\treturn $this->_toString();\n\t}", "public function __toString() : string\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }", "public function __toString() : string\n {\n return json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }", "public function __tostring();", "public function __toString() {\n \n return $this->toString();\n }", "public function __toString() {\n return $this->toString();\n }", "public function __toString() {\n return $this->toString();\n }", "public function __toString() {\n\t\treturn $this->toString();\n\t}", "public function __toString() {\n\t\treturn $this->toString();\n\t}", "public function __toString() {\r\n return $this->toString();\r\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString()\n {\n return $this->toString();\n }", "public function __toString() : string\n {\n return \\json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }", "public function __toString() : string\n {\n return \\json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }", "public function __toString() : string\n {\n return \\json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }", "public function __toString() : string\n {\n return \\json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }", "public function __toString() : string\n {\n return \\json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }", "public function __toString() : string\n {\n return \\json_encode(\n ObjectSerializer::sanitizeForSerialization($this),\n JSON_PRETTY_PRINT\n );\n }" ]
[ "0.8412044", "0.8298062", "0.82603896", "0.824937", "0.824653", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.82445264", "0.8232678", "0.8212214", "0.81775415", "0.8175124", "0.8154461", "0.8151146", "0.8150045", "0.8150045", "0.8150045", "0.8150045", "0.8150045", "0.8150045", "0.8150045", "0.8150045", "0.8150045", "0.8150045", "0.8150045", "0.8150045", "0.8150045", "0.8150045", "0.8150045", "0.8150045", "0.8150045", "0.8150045", "0.8125086", "0.8124532", "0.811685", "0.8094144", "0.80926675", "0.8079608", "0.8079608", "0.8076217", "0.8072904", "0.80598336", "0.80598336", "0.8054171", "0.8054171", "0.80497205", "0.8047067", "0.8047067", "0.8047067", "0.8047067", "0.8047067", "0.8047067", "0.8047067", "0.8047067", "0.8047067", "0.8047067", "0.8047067", "0.8047067", "0.8047067", "0.8047067", "0.8047067", "0.8045948", "0.8045948", "0.8045948", "0.8045948", "0.8045948", "0.8045948" ]
0.0
-1
Transform the resource into an array.
public function toArray($request) { return [ 'id' => $this->id, 'parent_id' => $this->parent_id, 'player_id' => $this->player_id, 'table' => $this->on_table, 'type' => $this->cardable_type === Package::class ? 'package' : 'distributionCentre', 'data' => $this->cardable_type === Package::class ? new PackageResource($this->cardable) : new DistributionCentreResource($this->cardable), ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function toArray(): array\n {\n if (is_null($this->resource)) {\n return [];\n }\n\n return is_array($this->resource)\n ? $this->resource\n : $this->resource->toArray();\n }", "public function toArray(): array\n {\n if (is_null($this->resource)) {\n return [];\n }\n\n return is_array($this->resource)\n ? $this->resource\n : $this->resource->toArray();\n }", "public function asArray() {\n return $this->resource;\n }", "public function transform($resource)\n {\n return [];\n }", "public function toArray()\n {\n if ($this->resource instanceof ArrayableInterface) {\n\n return $this->resource->toArray();\n } else {\n\n return null;\n }\n }", "public function parse($resource)\n {\n return $resource->toArray();\n }", "public function transform($resource)\n {\n return [\n 'id' => $resource['id'],\n 'item' => $resource['item'],\n 'qty' => $resource['qty'],\n\n ];\n }", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "public function toArray() {}", "abstract protected function toArray();", "public function getAsArray();", "public function asArray();", "public function asArray();", "public function asArray();", "public function asArray();", "public function asArray();", "public function asArray();", "public function getAsArray()\n\t{\n\t\t\n\t\t$path = $this->get();\n\t\t\n\t\treturn self::toArray($path);\n\t\t\n\t}", "public function transform($resource)\n {\n return [\n\n 'id' => (int) $resource->id,\n\t\t\t'name' => $resource->name,\n\t\t\t'description' => $resource->description,\n 'seat_count' => $resource->seat_count,\n\t\t\t'is_active' => $resource->is_active,\n\t\t\t'status' => $resource->status,\n\t\t\t'created_at' => $resource->created_at->toDateTimeString(),\n\t\t\t'updated_at' => $resource->updated_at->toDateTimeString(),\n\t\t\t\n ];\n }", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray();", "public function toArray(): array\n {\n return [\n 'users' => HiUserResource::collection($this->resource),\n ];\n }", "public function toArray()\n {\n return $this->transform();\n }", "function toArray() ;", "function toArray() ;", "public function convertItemArray() {}", "public function toArray(): array\n {\n $content = $this->getContent();\n\n if (\\is_array($content)) {\n return $this instanceof Filterable\n ? (array) $this->filterResponse($content)\n : $content;\n }\n\n return [];\n }", "protected function asArray()\n\t{\n\t\treturn \\json_decode($this->response, true);\n\t}", "public function arr() {\n\t\t\treturn \\uri\\generate::to_array($this->object);\n\t\t}", "public function toArray()\n {\n return $this->getContent();\n }", "public function toArray()\n {\n\n }", "public function asArray(): array\n {\n return json_decode($this->result, true);\n }", "public function toArray()\n {\n return $this->cast('array');\n }", "function toArray(){\r\n\t\treturn $this->data;\r\n\t}", "private function arrayify(): array\n {\n return $this->toArray();\n }", "abstract public function toArray();", "abstract public function toArray();", "abstract public function toArray();", "abstract public function toArray();", "abstract public function toArray();", "public function toArray() // untested\n {\n return $this->data;\n }", "public function toArray(){\n $this->buildArray();\n return $this->array;\n }", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;", "public function toArray(): array;" ]
[ "0.7750928", "0.7750928", "0.7715773", "0.75906307", "0.7310379", "0.7138024", "0.7134791", "0.7096877", "0.7096877", "0.70968604", "0.70968604", "0.70968604", "0.70968604", "0.70955557", "0.70955557", "0.70955557", "0.70955557", "0.70955557", "0.70955557", "0.70955557", "0.70955557", "0.70955557", "0.70955557", "0.6959165", "0.69560915", "0.68910366", "0.68910366", "0.68910366", "0.68910366", "0.68910366", "0.68910366", "0.6881386", "0.6868011", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6852651", "0.6851924", "0.6790647", "0.674651", "0.674651", "0.67363435", "0.6720337", "0.6712338", "0.67115825", "0.6710179", "0.666141", "0.66587526", "0.6656767", "0.6655622", "0.66545117", "0.6648871", "0.6648871", "0.6648871", "0.6648871", "0.6648871", "0.66377884", "0.6637001", "0.6629", "0.6629", "0.6629", "0.6629", "0.6629", "0.6629", "0.6629" ]
0.0
-1
Check to see if the honeypot captcha field was filled in
function validate(){ if(trim($_POST['checking']) !== '') { $this->add_error('capthcaError', true); return; } if(!isset($_POST["cico_nonce"]) || !wp_verify_nonce( $_POST["cico_nonce"], wp_get_theme()->Name)){ $this->add_error('nonceError', true); return; } //Check to make sure that the name field is not empty if($this->emailParams['userName'] === '') { //TODO: check if the clinician even exists $this->add_error('userError', 'You didn\'t specify a clinician.'); } if($this->emailParams['name'] === '') { $this->add_error('nameError', 'You forgot to enter your name.'); } //Check to make sure sure that a valid email address is submitted if($this->emailParams['email'] === '') { $this->add_error('emailError', 'You forgot to enter your email address.'); } else if (!eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+.[A-Z]{2,4}$", $this->emailParams['email'])) { $this->add_error('emailError', 'You entered an invalid email address.'); } //Check to make sure comments were entered if($this->emailParams['body'] === '') { $this->add_error('commentError', 'You forgot to enter your comments.'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function check_the_field( $name ) {\n return @($_SESSION['reponse']['result']=='error' && ( isset($_SESSION['reponse']['message'][$name]) || $name==='captcha' ));\n}", "function check_the_field( $name ) {\n return @($_SESSION['reponse']['result']=='error' && ( isset($_SESSION['reponse']['message'][$name]) || $name==='captcha' ));\n}", "function checkCaptcha(){\n return true; //for future \n }", "function _check_captcha()\n\t{\n\t\t\t\t// First, delete old captchas\n\t\t\t\t$expiration = time() - config_item('captcha_expire');\n\t\t\t\t$this->db->query(\"DELETE FROM fx_captcha WHERE captcha_time < \".$expiration);\n\n\t\t\t\t// Then see if a captcha exists:\n\t\t\t\t$sql = \"SELECT COUNT(*) AS count FROM fx_captcha WHERE word = ? AND ip_address = ? AND captcha_time > ?\";\n\t\t\t\t$binds = array($_POST['captcha'], $this->input->ip_address(), $expiration);\n\t\t\t\t$query = $this->db->query($sql, $binds);\n\t\t\t\t$row = $query->row();\n\n\t\t\t\tif ($row->count == 0)\n\t\t\t\t{\n\t\t\t\t\t$this->form_validation->set_message('_check_captcha', $this->lang->line('auth_incorrect_captcha'));\n\t\t\t\t return FALSE;\n\t\t\t\t}else{\n\t\t\t\t\treturn TRUE;\n\t\t\t\t}\n\t}", "public function checkHoneypotFields(): bool {\n\t\tforeach($this->honeypotFields as $field) {\n\t\t\tif($this->currentForm !== $field->formId) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif(! isset($_POST[$field->name])) {\n\t\t\t\t$_POST[$field->name] = '';\n\t\t\t}\n\n\t\t\t// ensure null (string) check, because JS acts strangly sometimes...\n\t\t\tif(! empty($_POST[$field->name]) && $_POST[$field->name] !== 'null') {\n\t\t\t\t$this->spamAttempts++;\n\t\t\t\t$this->saveSession();\n\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "function check_captcha()\t\n\t {\n\t \t $expiration = time()-3600;\t\n\t \t $sql = \"DELETE FROM captcha WHERE captcha_time < ?\";\t\n\t \t $binds = array($expiration);\t\n\t \t $query = $this->db->query($sql, $binds);\t\n\t \t //checking\tinput\t\n\t \t $sql = \"SELECT COUNT(*) AS count FROM captcha WHERE word = ? AND ip_address = ? AND captcha_time > ?\";\t\n\t\t $binds = array($_POST['captcha'], $this->input->ip_address(), $expiration);\t\n\t \t $query = $this->db->query($sql, $binds);\t\n\t \t $row = $query->row();\t\n\t \t if\t($row->count>0)\t{\t\n\t \t \t return\ttrue;\t\n\t \t }\t\n\t \t return\tfalse;\t\n\t }", "function check_captcha(){\n\t\t$captcha = FSInput::get('txtCaptcha');\n if ( $captcha == $_SESSION[\"security_code\"]){\n return true;\n } \n return false;\n\t}", "function is_valid_captcha($obj, $captcha)\n{\n\t$result = FALSE;\n\t# First, delete old captchas\n\t$expiration = time()-7200; # Two hour limit\n\t$obj->db->query($obj->Query_reader->get_query_by_code('delete_old_captchas', array('oldesttime'=>$expiration))); \n\t\t\n\t$captcha_data = $obj->Query_reader->get_row_as_array('check_for_captcha', array('theword'=>$captcha, 'thisip'=>$obj->input->ip_address(), 'oldestdate'=>$expiration));\n\t\n\tif($captcha_data['count'] > 0)\n\t{\n\t\t$result = TRUE;\n\t}\t\t\n\treturn $result;\n}", "public function validate()\n\t{\n\t\t$arrCaptcha = $this->Session->get('captcha_' . $this->strId);\n\n\t\tif (!is_array($arrCaptcha) || !strlen($arrCaptcha['key']) || !strlen($arrCaptcha['sum']) || \\Input::post($arrCaptcha['key']) != $arrCaptcha['sum'] || $arrCaptcha['time'] > (time() - 3))\n\t\t{\n\t\t\t$this->class = 'error';\n\t\t\t$this->addError($GLOBALS['TL_LANG']['ERR']['captcha']);\n\t\t}\n\n\t\t$this->Session->set('captcha_' . $this->strId, '');\n\t}", "private function captcha_is_valid() {\r\n\t\tif( !$this->check_nonce( $_POST['captcha_nonce'] ) ) {\r\n\t\t\treturn __('Trying something funny, are we?', 'wp-conditional-captcha');\r\n\t\t}\r\n\r\n\t\t// if reCAPTCHA\r\n\t\tif( 'recaptcha' == $this->options['captcha-type'] ) {\r\n\t\t\t$resp = $this->recaptcha_check();\r\n\t\t\tif( true !== $resp ) {\r\n\t\t\t\treturn sprintf( __(\"Sorry, the CAPTCHA wasn't entered correctly. (reCAPTCHA said: %s)\", 'wp-conditional-captcha'), $resp );\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// do default validation\r\n\t\t\tif( $_POST['captcha_hash'] != $this->hash( strtoupper($_POST['captcha_response'] ) ) ) {\r\n\t\t\t\treturn __(\"Sorry, the CAPTCHA wasn't entered correctly.\", 'wp-conditional-captcha');\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "public function _checkCaptcha($input) {\n $code = $this->session->userdata('captcha_code');\n if (strcasecmp($code, $input) == 0) {\n return true;\n }\n $this->form_validation->set_message(__FUNCTION__, 'Captcha incorrect.');\n return false;\n }", "public function checkCaptcha() {\n if ($this->input->post('input_captcha_value') == $this->session->userdata('security_answer')) {\n echo 'true';\n } else {\n echo 'false';\n }\n }", "function _check_capthca()\n\t\t{\n\t\t\t$expiration = time()-3600 ;\n\t\t\t$sql = \" DELETE FROM captcha WHERE captcha_time < ? \";\n\t\t\t$binds = array($expiration);\n\t\t\t$query = $this->db->query($sql, $binds);\n\n\t\t\t//checking input\n\t\t\t$sql = \"SELECT COUNT(*) AS count FROM captcha WHERE word = ? AND ip_address = ? AND captcha_time > ?\";\n\t\t\t$binds = array($_POST['captcha'], $this->input->ip_address(), $expiration);\n\t\t\t$query = $this->db->query($sql, $binds);\n\t\t\t$row = $query->row();\n\n\t\tif ( $row -> count > 0 ){\n\t\t\t\treturn true;\n\t\t}\n\t\t\t\treturn false;\n\n\t\t}", "function captchaExists()\n\t{\n\t\tif ( $this->mode == ADD_ONTHEFLY || $this->mode == ADD_INLINE || $this->mode == EDIT_INLINE )\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn $this->pSet->isCaptchaEnabledOnEdit();\n\t}", "function isValidCaptcha(){\n\n\t$CI = &get_instance();\n\t$bReturn = false;\n\n\t$CI->load->config('captcha');\n\n\n\t$sFnName = c('captcha_case_sensitive') ? 'strcmp' : 'strcasecmp';\n\n\n\tif( 0 === $sFnName($CI->input->post('captcha'), s('word')) ) {\n\n\t\t$bReturn = true;\n\n\t}\n\n\tdestroyCaptcha();\n\n\treturn $bReturn;\n\n}", "public function signup_captcha_enabled() {\n global $CFG;\n return !empty($CFG->recaptchapublickey) && !empty($CFG->recaptchaprivatekey) && get_config('auth_enrolkey', 'recaptcha');\n }", "function captchaVerified() {\n\t\t$GLOBALS[\"TSFE\"]->fe_user->fetchSessionData();\n\t\treturn ((int) $GLOBALS[\"TSFE\"]->fe_user->sesData[$this->extKey . \"_captcha_verified\"]) ? TRUE : FALSE;\n\t}", "function _check_recaptcha()\n {\n $this->load->helper('recaptcha');\n\n $resp = recaptcha_check_answer($this->config->item('recaptcha_private_key', 'tank_auth'),\n $_SERVER['REMOTE_ADDR'],\n $_POST['recaptcha_challenge_field'],\n $_POST['recaptcha_response_field']);\n\n if (!$resp->is_valid) {\n $this->form_validation->set_message('_check_recaptcha', $this->lang->line('auth_incorrect_captcha'));\n return FALSE;\n }\n return TRUE;\n }", "protected function check($posted_captcha)\n {\n $captcha = new sfCryptoCaptcha(false);\n //The \"false\" option here is very important (or the captcha will display the flood error [Error - you're refreshing too fast])\n return $captcha->testCaptcha($posted_captcha);\n }", "protected function _captcha_enabled ()\n {\n return $this->login->is_anonymous ();\n }", "function is_captcha_valid($response)\n {\n if (empty($response))\n {\n return false;\n }\n\n $passed_data = array(\n 'secret' => '6Lcr_SUTAAAAAFJ7UFpI-wP25i4NMDrBEFxvXU5S',\n 'response' => $response,\n 'remoteip' => $_SERVER['REMOTE_ADDR']\n );\n\n $stream_options = array(\n 'http' => array(\n 'header' => \"Content-type: application/x-www-form-urlencoded\\r\\n\",\n 'method' => 'POST',\n 'content' => http_build_query($passed_data) \n )\n );\n\n return json_decode(file_get_contents('https://www.google.com/recaptcha/api/siteverify', false, stream_context_create($stream_options)))->success;\n }", "public function isValid()\n {\n\n if (!$this->isActive())\n {\n throw new EngineNotInitialisedException('Simple CAPTCHA engine not initialised');\n }\n\n $key = $this->_dependencies->input->post('_bourbon_captcha_key', false);\n $answer = $this->_dependencies->session->read('_bourbon_captcha_' . $key);\n $user_answer = $this->_dependencies->input->post('_bourbon_captcha_value', false);\n $user_answer = strtoupper($user_answer);\n\n if (!is_null($key) AND !is_null($answer) AND $user_answer == $answer)\n {\n return true;\n }\n\n return false;\n\n }", "function isValidatedCaptcha(){\n\n\t$CI = &get_instance();\n\t$bReturn = false;\n\tif( $CI->session->userdata('validated_captcha_code') == $CI->input->post('validated_captcha_code') ){\n\t\t$bReturn = true;\n\t}\n\n\t$CI->session->unset_userdata('validated_captcha_code');\n\treturn $bReturn;\n}", "protected function check_recaptcha()\n\t{\n\t\tif ( ! post('recaptcha_challenge_field') OR ! post('recaptcha_response_field'))\n\t\t{\n\t\t\treturn 'incorrect-captcha-sol';\n\t\t}\n\t\n\t\t// Compile the post fields\n\t\t$post = array(\n\t\t\t'privatekey' => config('recaptcha_private_key'),\n\t\t\t'remoteip' => server(\"REMOTE_ADDR\"),\n\t\t\t'challenge' => (string) post('recaptcha_challenge_field'),\n\t\t\t'response' => (string) post('recaptcha_response_field')\n\t\t);\n\t\t\n\t\t$response = curl::post('http://www.google.com/recaptcha/api/verify', $post);\n\t\t\n\t\tif($result = explode(\"\\n\", $response->response, 2))\n\t\t{\n\t\t\treturn ($result[0] === 'false') ? $result[1] : FALSE;\n\t\t}\n\t}", "function _check_recaptcha()\n\t{\n\t\t$this->load->helper('recaptcha');\n\n\t\t$resp = recaptcha_check_answer($this->config->item('recaptcha_private_key', 'tank_auth'),\n\t\t\t\t$_SERVER['REMOTE_ADDR'],\n\t\t\t\t$_POST['recaptcha_challenge_field'],\n\t\t\t\t$_POST['recaptcha_response_field']);\n\n\t\tif (!$resp->is_valid) {\n\t\t\t$this->form_validation->set_message('_check_recaptcha', $this->lang->line('auth_incorrect_captcha'));\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n\t}", "function _check_recaptcha()\n\t{\n\t\t$this->load->helper('recaptcha');\n\n\t\t$resp = recaptcha_check_answer($this->config->item('recaptcha_private_key', 'tank_auth'),\n\t\t\t\t$_SERVER['REMOTE_ADDR'],\n\t\t\t\t$_POST['recaptcha_challenge_field'],\n\t\t\t\t$_POST['recaptcha_response_field']);\n\n\t\tif (!$resp->is_valid) {\n\t\t\t$this->form_validation->set_message('_check_recaptcha', $this->lang->line('auth_incorrect_captcha'));\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n\t}", "function check_captcha($str){\n\t\tif(isset($_SESSION['captcha']) && !empty($_SESSION['captcha']) && $str != $_SESSION['captcha']){\n\t\t\t$this->form_validation->set_message('check_captcha','Text does not match with captcha!');\n\t\t\treturn false;\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}", "function acadp_is_human( $form ) {\n\n\t$recaptcha_settings = get_option( 'acadp_recaptcha_settings' );\n\n\t$has_captcha = false;\n\tif( isset( $recaptcha_settings['forms'] ) && '' !== $recaptcha_settings['site_key'] && '' !== $recaptcha_settings['secret_key'] ) {\n\t\tif( in_array( $form, $recaptcha_settings['forms'] ) ) {\n\t\t\t$has_captcha = true;\n\t\t}\n\t}\n\n\tif( $has_captcha ) {\n\n\t\t$response = isset( $_POST['g-recaptcha-response'] ) ? esc_attr( $_POST['g-recaptcha-response'] ) : '';\n\n\t\tif( '' !== $response ) {\n\n\t\t\t// make a GET request to the Google reCAPTCHA Server\n\t\t\t$request = wp_remote_get( 'https://www.google.com/recaptcha/api/siteverify?secret=' . $recaptcha_settings['secret_key'] . '&response=' . $response . '&remoteip=' . $_SERVER[\"REMOTE_ADDR\"] );\n\n\t\t\t// get the request response body\n\t\t\t$response_body = wp_remote_retrieve_body( $request );\n\n\t\t\t$result = json_decode( $response_body, true );\n\n\t\t\t// return true or false, based on users input\n\t\t\treturn ( true == $result['success'] ) ? true : false;\n\n\t\t} else {\n\n\t\t\treturn false;\n\n\t\t}\n\n\t}\n\n\treturn true;\n\n}", "function matchCaptcha($inputValue)\t{\n\t\treturn $inputValue['captcha']==$this->getCaptcha(); //return true or false after comparing submitted value with set value of captcha\n\t}", "function _check_captcha($code) {\r\n $word = $this->session->flashdata('captcha_word');\r\n if (($this->config->item('captcha_case_sensitive') AND $code != $word) OR\r\n strtolower($code) != strtolower($word)) {\r\n return FALSE;\r\n }\r\n return TRUE;\r\n }", "function _check_captcha($code)\n\t{\n\t\t$time = $this->session->flashdata('captcha_time');\n\t\t$word = $this->session->flashdata('captcha_word');\n\n\t\tlist($usec, $sec) = explode(\" \", microtime());\n\t\t$now = ((float)$usec + (float)$sec);\n\n\t\tif ($now - $time > $this->config->item('captcha_expire', 'tank_auth')) {\n\t\t\t$this->form_validation->set_message('_check_captcha', $this->lang->line('auth_captcha_expired'));\n\t\t\treturn FALSE;\n\n\t\t} elseif (($this->config->item('captcha_case_sensitive', 'tank_auth') AND\n\t\t\t\t$code != $word) OR\n\t\t\t\tstrtolower($code) != strtolower($word)) {\n\t\t\t$this->form_validation->set_message('_check_captcha', $this->lang->line('auth_incorrect_captcha'));\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n\t}", "function _check_captcha($code)\n {\n $time = $this->session->flashdata('captcha_time');\n $word = $this->session->flashdata('captcha_word');\n\n list($usec, $sec) = explode(\" \", microtime());\n $now = ((float)$usec + (float)$sec);\n\n if ($now - $time > $this->config->item('captcha_expire', 'tank_auth')) {\n $this->form_validation->set_message('_check_captcha', $this->lang->line('auth_captcha_expired'));\n return FALSE;\n\n } elseif (($this->config->item('captcha_case_sensitive', 'tank_auth') AND\n $code != $word) OR\n strtolower($code) != strtolower($word)) {\n $this->form_validation->set_message('_check_captcha', $this->lang->line('auth_incorrect_captcha'));\n return FALSE;\n }\n return TRUE;\n }", "private function is_valid_field_data() {\n\t\t$data = rgpost( $this->get_input_name() );\n\n\t\tif ( empty( $data ) ) {\n\t\t\tgf_recaptcha()->log_debug( __METHOD__ . \"(): Input {$this->get_input_name()} empty.\" );\n\n\t\t\treturn false;\n\t\t}\n\n\t\treturn gf_recaptcha()->get_token_verifier()->verify_submission( $data );\n\t}", "function captcha_validate( $captcha_unique_id, $captcha_input )\n\t{\n\t\t//-----------------------------------------\n\t\t// INIT\n\t\t//-----------------------------------------\n\t\t\n\t\t$captcha_input = trim( strtolower($captcha_input) );\n\t\t\n\t\t//-----------------------------------------\n\t\t// Get the info from the DB\n\t\t//-----------------------------------------\n\t\t\n\t\t$captcha = $this->ipsclass->DB->build_and_exec_query( array( 'select' => '*',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'from' => 'captcha',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'where' => \"captcha_unique_id='\".$captcha_unique_id.\"'\" ) );\n\t\n\t\tif ( ! $captcha['captcha_unique_id'] )\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t\t//-----------------------------------------\n\t\t// Check...\n\t\t//-----------------------------------------\n\t\t\n\t\tif ( $captcha['captcha_string'] != $captcha_input )\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn TRUE;\n\t\t}\n\t}", "function _check_recaptcha()\n\t{\n\t\t$this->load->helper('recaptcha');\n\n\t\t$resp = recaptcha_check_answer(config_item('recaptcha_private_key'),\n\t\t\t\t$_SERVER['REMOTE_ADDR'],\n\t\t\t\t$_POST['recaptcha_challenge_field'],\n\t\t\t\t$_POST['recaptcha_response_field']);\n\n\t\tif (!$resp->is_valid) {\n\t\t\t$this->form_validation->set_message('_check_recaptcha', $this->lang->line('auth_incorrect_captcha'));\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n\t}", "function CheckCaptcha(&$tNG) {\n\t$captcha = new tNG_Captcha(\"captcha_id_id\", $tNG);\n\t$captcha->setFormField(\"POST\", \"captcha_id\");\n\t$captcha->setErrorMsg(\"Insira os caracteres exibidos\");\n\treturn $captcha->Execute();\n}", "public function checkCaptcha(array $data = array()) {\n if (empty($data['id'])) {\n return FALSE;\n }\n // The ID originates from raw form input. Ensure we hit the right endpoint\n // in case a bogus bot fills in even hidden input fields with random\n // strings, by performing a basic syntax validation.\n if (!preg_match('@^[a-z0-9-]+$@i', $data['id'])) {\n return FALSE;\n }\n $path = 'captcha/' . rawurlencode($data['id']);\n unset($data['id']);\n $result = $this->query('POST', $path, $data, array('captcha', 'id'));\n\n return isset($result['captcha']) ? $result['captcha'] : $result;\n }", "abstract public function isCaptcha($plugin = 'recaptcha');", "function checkCaptcha($field, $options = array()) {\n\t\textract($options);\n\t\tif ($this->data[$this->name][$field1] == $this->data[$this->name][$field2]) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function ajax_check_recaptcha() {\n\t\tglobal $wpdb;\n\n\t\tif ( !isset( $_REQUEST['action'] ) )\n\t\t\treturn;\n\n\t\tif ( $_REQUEST['action'] !== 'visual_form_builder_check_recaptcha' )\n\t\t\treturn;\n\n\t\t$vfb_settings = get_option( 'vfb-settings' );\n\t\t$private_key = $vfb_settings['recaptcha-private-key'];\n\n\t\tif ( !function_exists( 'recaptcha_get_html' ) )\n\t \trequire_once( trailingslashit( plugin_dir_path( __FILE__ ) ) . 'includes/libraries/recaptchalib.php' );\n\n\t\t$resp = recaptcha_check_answer( $private_key,\n\t $_SERVER['REMOTE_ADDR'],\n\t $_POST['recaptcha_challenge_field'],\n\t $_POST['recaptcha_response_field']\n\t );\n\n\t\t$valid = 'true';\n\n\t if ( !$resp->is_valid )\n\t \t$valid = 'false';\n\n\t echo $valid;\n\n\t\tdie(1);\n\t}", "function _check_captcha($code)\n\t{\n\t\t$time = $this->session->flashdata('captcha_time');\n\t\t$word = $this->session->flashdata('captcha_word');\n\t\t$word = $_COOKIE['captchaword'];\n\t\t$time = $_COOKIE['captchatime'];\n\t\tlist($usec, $sec) = explode(\" \", microtime());\n\t\t$now = ((float)$usec + (float)$sec);\n\n\t\tif ($now - $time > $this->config->item('captcha_expire', 'tank_auth')) {\n\t\t\t$this->form_validation->set_message('_check_captcha', $this->lang->line('auth_captcha_expired'));\n\t\t\treturn FALSE;\n\n\t\t} elseif (($this->config->item('captcha_case_sensitive', 'tank_auth') AND\n\t\t\t\t$code != $word) OR\n\t\t\t\tstrtolower($code) != strtolower($word)) {\n\t\t\t$this->form_validation->set_message('_check_captcha', $this->lang->line('auth_incorrect_captcha'));\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n\t}", "function check_google_validate_captcha() {\n\t\t\n\t\t$google_captcha = $this->input->post('g-recaptcha-response');\n\t\t\n\t\t$google_response = file_get_contents(\"https://www.google.com/recaptcha/api/siteverify?secret=6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe&response=\" . $google_captcha . \"&remoteip=\" . $_SERVER['REMOTE_ADDR']);\n\t\t\n\t\tif ($google_response . 'success' == false) {\n\t\t\t\n\t\t\t$this->form_validation->set_message('check_google_validate_captcha', 'Please check the the captcha form');\n\t\t\t\n\t\t\treturn FALSE;\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\treturn TRUE;\n\t\t}\n\t}", "public function captcha_validate($code) {\n\t// user considered human if they previously solved the Captcha...\n\t$isHuman = $this->botdetectcaptcha->IsSolved;\n\tif (!$isHuman) {\n\t // ...or if they solved the current Captcha\n\t $isHuman = $this->botdetectcaptcha->Validate($code);\n\t}\n\n\t// set error if Captcha validation failed\n\tif (!$isHuman) {\n\t $this->form_validation->set_message('captcha_validate', 'Please retype \n\t\tthe characters from the image correctly.');\n\t}\n\n\treturn $isHuman;\n\t}", "function templ_captcha_check_comment( $comment_data ) {\n\tglobal $user_ID;\n\t $pcd = explode( ',',get_option( 'ptthemes_recaptcha_reg_flag' ) );\n\tif ( ( @in_array( 'User Registration Page', $pcd ) || @in_array( 'All of them', $pcd ) ) && $user_ID == '' ) {\n\t\t/* do not check trackbacks/pingbacks*/\n\t\tif ( $comment_data['comment_type'] == '' ) {\n\t\t\t/*fetch captcha private key*/\n\t\t\t$privatekey = get_option( 'ptthemes_recaptcha_secret' );\n\t\t\t/*get the response from captcha that the entered captcha is valid or not*/\n\t\t\t$response = wp_remote_get( 'https://www.google.com/recaptcha/api/siteverify?secret=' . $privatekey . '&response=' . $_REQUEST['g-recaptcha-response'] . '&remoteip=' . getenv( 'REMOTE_ADDR' ) );\n\t\t\t/*decode the captcha response*/\n\t\t\t$responde_encode = json_decode( $response['body'] );\n\t\t\t/*check the response is valid or not*/\n\t\t\tif ( ! $responde_encode->success ) {\n\t\t\t\tadd_filter('pre_comment_approved',\n\t\t\t\t/*create_function( '$a', 'return \\'spam\\';' ));*//*PHP7 Compatibility*/\n\t\t\t\tfunction($a){ return 'spam';});\n\t\t\t}\n\t\t}\n\t}\n\treturn $comment_data;\n}", "function validate_recaptcha() {\n\t\tglobal $RECAPTCHA_PRIVATE_KEY;\n\t\t$recaptcha_response = recaptcha_check_answer(\t$RECAPTCHA_PRIVATE_KEY,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$_SERVER['REMOTE_ADDR'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$_POST['recaptcha_challenge_field'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$_POST['recaptcha_response_field']);\n\t\tif (!$recaptcha_response->is_valid)\n\t\t\treturn 'You entered the reCaptcha incorrectly';\n\t\treturn true;\n\t}", "public function is_captcha_existed($data)\n {\n $sql = 'SELECT COUNT(*) AS count FROM captcha WHERE word = ? AND ip_address = ? AND captcha_time > ?';\n $query = $this->db->query($sql, $data);\n $raw = $query->row();\n return ($raw->count > 0);\n }", "public function isNeedToShowCaptcha()\n {\n if ($this->configProvider->isEnabled() && $this->configProvider->isConfigured()) {\n if ($this->session->getCustomerGroupId() == Group::NOT_LOGGED_IN_ID\n || !$this->configProvider->isEnabledForGuestsOnly()\n ) {\n if (!in_array($this->getCustomerIp->getCurrentIp(), $this->configProvider->getWhiteIps())) {\n return true;\n }\n }\n }\n\n return false;\n }", "protected function validateHoneypot($fieldName)\n {\n if (!$fieldName)\n {\n return true;\n }\n $honey = craft()->request->getPost($fieldName);\n return $honey == '';\n }", "public function showCaptcha() {\n CaptchaModel::generateAndShowCaptcha();\n }", "function _check_security_code($value)\n {\n $this->load->library('captcha_library');\n\n if (!$this->captcha_library->check($value, 'four')) {\n $this->form_validation->set_message(__FUNCTION__, lang('notice_value_incorrect'));\n return FALSE;\n }\n\n return TRUE;\n }", "public function check(){\n if(isset($_POST)){\n $SecretKey = $this->input->post('k');\n function cap($SecretKey){\n $Response = file_get_contents(\"https://www.google.com/recaptcha/api/siteverify?secret=\".SECRET_KEY.\"&response={$SecretKey}\");\n $Return = json_decode($Response);\n return $Return;\n }\n $Return = cap($SecretKey);\n if($Return->success == 1 && $Return->score >= 0.5){\n $this->accept_data(); \n $this->line_noti();\n }else{\n // echo 'U R BOT';\n redirect(base_url());\n }\n } \n }", "function isCAPTCHAInTemplate($tpl)\n\t{\n\t\t$check_str = '$FORM->ShowCaptcha';\n\n\t\treturn strpos($tpl, $check_str) !== false;\n\n\t}", "public function enableCaptcha(): void;", "function _check_security_code($value)\n\t{\n\t\t$this->load->library('captcha_library');\n\t\t\n\t\tif ( ! $this->captcha_library->check($value, 'four'))\n\t\t{\n\t\t\t$this->form_validation->set_message(__FUNCTION__, lang('notice_value_incorrect'));\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t\treturn TRUE;\n\t}", "function CaptchaIsValid($element_id='',$forceMode=false)\n{\n global $mainsettings, $sdlanguage, $userinfo, $captcha;\n\n $forceMode = isset($forceMode)?Is_Valid_Number($forceMode,false,1,3):false; //SD342\n //SD332: new flag \"require_vvc\" added\n //SD343: disabled captcha by empty captcha_method was missing\n if(!empty($userinfo['adminaccess']) ||\n (!$forceMode && (!$userinfo['require_vvc'] || empty($mainsettings['captcha_method']) ||\n (!empty($userinfo['loggedin']) && !empty($mainsettings['captcha_guests_only'])))) )\n {\n return true;\n }\n\n if(($forceMode=='1') || ($mainsettings['captcha_method'] == '1'))\n {\n if(!strlen($captcha->privatekey) || !strlen($captcha->publickey))\n {\n // Fallback to VVC!\n $mainsettings['captcha_method'] = 2;\n }\n else\n {\n if(isset($_POST['g-recaptcha-response']))\n {\n return $captcha->IsValid();\n }\n else\n {\n return false;\n }\n }\n }\n\n if(($forceMode=='2') || ($mainsettings['captcha_method'] == '2'))\n {\n $vvcid = GetVar($element_id.'_vvcid', '', 'string', true, false);\n $code = GetVar($element_id.'_verifycode', null, 'string', true, false);\n if(!empty($vvcid) && !empty($code) && ValidVisualVerifyCode($vvcid, $code))\n {\n return true;\n }\n }\n\n if(($forceMode=='3') || ($mainsettings['captcha_method'] == '3')) //SD342 - simple math question\n {\n $vvcid = GetVar($element_id.'_vvcid', '', 'string', true, false);\n $code = GetVar($element_id.'_verifycode', null, 'natural_number', true, false);\n if(!empty($vvcid) && isset($code) && ($vvcid == md5($code.date(\"H\").'37')))\n {\n return true;\n }\n }\n\n return false;\n\n}", "public function check($input)\n {\n if (!session()->has('captcha')) {\n return false;\n }\n\n $code = session()->pull('captcha');\n\n if (config('captcha.sensitive')) {\n if ($input == $code) {\n return true;\n } else {\n return false;\n }\n } else {\n if (strtolower($input) == strtolower($code)) {\n return true;\n } else {\n return false;\n }\n }\n }", "function _inputCheck(){\n if (isset($_POST['verder']) && $this->_verify() == \"\") {\n return true;\n }\n else {\n return false;\n }\n }", "function realtor_single_property_form_submit()\n{\n $captcha_enabled=true;\n\n if($captcha_enabled) {\n //echo $_POST['g-recaptcha-response'];\n //$request = wp_remote_get(\n //'https://www.google.com/recaptcha/api/siteverify?secret=your_secret&response=' . $response . '&remoteip=' . $remote_ip);\n $response = wp_remote_post(\n 'https://www.google.com/recaptcha/api/siteverify', array(\n 'method' => 'POST',\n 'timeout' => 45,\n 'redirection' => 5,\n 'httpversion' => '1.0',\n 'blocking' => true,\n 'headers' => array(),\n 'body' => array( 'secret' => '6LeErQoUAAAAAHfzuGL1W7fROtUOffMJOH7W_T_P', 'response' => $_POST['g-recaptcha-response'], 'remoteip' => $_SERVER['REMOTE_ADDR'] ),\n 'cookies' => array()\n )\n );\n\n if(strpos($response['body'], 'true') == null) {\n echo __(\"CAPTCHA error! Please resubmit.\", 'realtor');\n wp_die();\n }\n\n\n }\n\n if(!( trim($_POST['full-name']) == \"\" \n && trim($_POST['phone-number']) == \"\" \n && trim($_POST['email']) == \"\" \n && trim($_POST['message']) == \"\" )\n ) {\n echo trim($_POST['full-name']) == \"\";\n $name=$_POST['full-name'];\n $phone=$_POST['phone-number'];\n $email=$_POST['email'];\n $message=$_POST['message'];\n $author_id=$_POST['author-id'];\n\n\n if(wp_mail(\n get_the_author_meta('email', $author_id), \"Realtor - Message From \".$name, $message.'<p>Phone Number:'.$phone.'</p>',\n array(\n 'From: '.$name.'<'.$email.'>',\n )\n )) {\n echo __(\"Message Sent!\", 'realtor');\n }\n else\n { \n echo __(\"There was an error. Message not sent\", 'realtor');\n }\n }\n else\n {\n echo __(\"Message was not sent. Please fill all fields.\", 'realtor');\n\n }\n \n wp_die();\n}", "function feedback($is_input_correct)\n\t{\n\t\t$this->_post_data(\"http://bypasscaptcha.com/check_value.php\", array(\n\t\t\t\t\t\t\t\"key\" \t\t=> $this->_get_key(),\n\t\t\t\t\t\t\t\"task_id\" \t=> $this->task_id,\n\t\t\t\t\t\t\t\"cv\" \t\t=> ($is_input_correct ? 1 : 0),\n\t\t\t\t\t\t\t\"submit\" \t=> \"Submit\",\n\t\t));\n\t}", "public function validate_recaptcha() {\n $this->load->helper('recaptcha');\n\n $response = recaptcha_check_answer(\n $this->auth->auth_security['recaptcha_private_key'],\n $this->input->ip_address(),\n $this->input->post('recaptcha_challenge_field'),\n $this->input->post('recaptcha_response_field')\n );\n\n return $response->is_valid;\n }", "public static function getCaptchaFormIfNeed() {\n if (self::isCaptchaNeed()) {\n return self::getCaptchaForm();\n }\n return \"\";\n }", "public function createCaptcha();", "function settings_page() {\r\n\t\tif( isset( $_GET['captcha_preview'] ) && isset( $_GET['noheader'] ) && check_admin_referer('conditional_captcha_preview') ) {\r\n\t\t\t$this->do_captcha( false, false );\t// will exit\r\n\t\t}\r\n\r\n\t\t$opts = $this->options;\r\n\t\t$message = '';\r\n\t\t$invalid_keys = __('The reCAPTCHA API keys you entered do not appear to be valid. Please check that each key is exactly 40 characters long and contains no spaces.', 'wp-conditional-captcha');\r\n\t\t$missing_keys = __('You need to supply reCAPTCHA API keys if you want to use reCAPTCHA. Please enter private and public key values.', 'wp-conditional-captcha');\r\n\r\n\t\tif ( isset($_POST['submit']) ) {\r\n\t\t\tcheck_admin_referer( 'conditional-captcha-settings' );\r\n\t\t\t$errors = array();\r\n\t\t\tforeach( array( 'pass_action', 'fail_action', 'style', 'captcha-type', 'recaptcha-private-key', 'recaptcha-public-key', 'prompt_text' ) as $o ) {\r\n\t\t\t\t$opts[$o] = trim( $_POST[$o] );\r\n\t\t\t}\r\n\r\n\t\t\t$opts['recaptcha_use_new_api'] = isset( $_POST['recaptcha_use_new_api'] );\r\n\r\n\t\t\t$opts['style'] = str_replace( \"\\r\\n\", \"\\n\", strip_tags( stripslashes( $opts['style'] ) ) ); // css only please\r\n\t\t\tif( $opts['style'] == trim( str_replace( \"\\r\\n\", \"\\n\", file_get_contents( $this->cssfile ) ) ) ) {\r\n\t\t\t\t$opts['style'] = '';\r\n\t\t\t}\r\n\r\n\t\t\t$opts['prompt_text'] = str_replace( \"\\r\\n\", \"\\n\", strip_tags( stripslashes( $opts['prompt_text'] ) ) ); // text only please\r\n\t\t\tif( $opts['prompt_text'] == $this->prompt_text( true ) ) {\r\n\t\t\t\t$opts['prompt_text'] = '';\r\n\t\t\t}\r\n\r\n\t\t\t// check pass/fail action conflicts\r\n\t\t\tif( $opts['pass_action'] == $opts['fail_action'] ) {\r\n\t\t\t\t$errors['action_conflict'] = __( 'You cannot select the same action for both correctly and incorrectly completed CAPTCHAs. The action for incorrectly completed CAPTCHAs has been reset to \"Trash the comment\".' );\r\n\t\t\t\t$opts['fail_action'] = 'trash';\r\n\t\t\t}\r\n\r\n\t\t\t// check that keys have been supplied for recaptcha\r\n\t\t\tif( 'recaptcha' == $opts['captcha-type'] ) {\r\n\t\t\t\tif( !$opts['recaptcha-private-key'] || !$opts['recaptcha-public-key'] )\r\n\t\t\t\t\t$errors['recaptcha'] = $missing_keys;\r\n\t\t\t\telseif( strlen( $opts['recaptcha-private-key'] ) != 40 || strlen( $opts['recaptcha-public-key'] ) != 40 )\r\n\t\t\t\t\t$errors['recaptcha'] = $invalid_keys;\r\n\t\t\t}\r\n\r\n\t\t\tif( isset( $errors['recaptcha'] ) )\r\n\t\t\t\t$opts['captcha-type'] = 'default';\t// revert to default\r\n\r\n\t\t\t$opts['akismet_no_login'] = isset( $_POST['akismet_no_login'] );\r\n\t\t\t$opts['akismet_no_history'] = isset( $_POST['akismet_no_history'] );\r\n\r\n\t\t\tupdate_option('conditional_captcha_options', $opts);\r\n\t\t\t$this->options = $opts;\r\n\t\t\t$message = $errors ? '<div class=\"error fade\"><p>' . implode( '</p><p>', $errors ) . '</p></div>' : '<div id=\"message\" class=\"updated fade\"><p>'.__( 'Options updated.', 'wp-conditional-captcha' ) . '</p></div>';\r\n\t\t}\r\n\t?>\r\n\t<style>\r\n\t.indent {padding-left: 2em}\r\n\t#settings .input-error {border-color: red; background-color: #FFEBE8}\r\n\ttable textarea {font-family: Consolas,Monaco,monospace; background: #FAFAFA}\r\n\t.form-table tr {border-top: 1px solid #EEE}\r\n\t.form-table tr:first-child {border-top: none}\r\n\t</style>\r\n\t<div class=\"wrap\">\r\n\t<h1><?php _e('Conditional CAPTCHA Settings', 'wp-conditional-captcha');?></h1>\r\n\t<?php echo $message; ?>\r\n\t<div id=\"settings\">\r\n\t<p><?php _e(\"This plugin provides a CAPTCHA complement to spam detection plugins. If your spam detection plugin identifies a comment as spam, the commenter will be presented with a CAPTCHA to prove that they are human. The behaviour of the plugin can be configured below.\", 'wp-conditional-captcha');?></p>\r\n\t<form action=\"\" method=\"post\" id=\"conditional-captcha-settings\">\r\n\r\n\t<h2><?php _e( 'Basic setup', 'wp-conditional-captcha' ) ?></h2>\r\n\t<table class=\"form-table\"><tbody>\r\n\t<tr><th><?php _e('Plugin Mode', 'wp-conditional-captcha');?></th><td>\r\n\t<p><?php\r\n\tif( $this->antispam )\r\n\t\t_e( '<strong>Akismet-enhanced mode</strong>. Akismet is installed and active on your site. <em>Conditional CAPTCHA</em> will serve a CAPTCHA when Akismet identifies a comment as spam.', 'wp-conditional-captcha' );\r\n\telse\r\n\t\techo __( '<strong>Basic mode</strong>. <em>Conditional CAPTCHA</em> will serve a CAPTCHA to all new commenters on your site.', 'wp-conditional-captcha' ) . '</p><p>' . __( 'If you install and activate the Akismet plugin, then it will only serve a CAPTCHA to comments that Akismet identifies as spam. This is recommended because it will reduce the number of commenters that ever have to complete a CAPTCHA.', 'wp-conditional-captcha' );\r\n\t?>\r\n\t</p>\r\n\t</td></tr>\r\n\t<tr><th><?php _e('CAPTCHA Method', 'wp-conditional-captcha');?></th><td>\r\n\t<p><?php printf( __('The default captcha is a simple text-based test, but if you prefer you can also use a <a href=\"%s\" target=\"_blank\">reCAPTCHA</a>. Note that you will need an API key to use reCAPTCHA.', 'wp-conditional-captcha'), 'https://www.google.com/recaptcha');?></p>\r\n\t<ul class=\"indent\">\r\n\t<li><label><input type=\"radio\" name=\"captcha-type\" class=\"captcha-type\" id=\"type-default\" value=\"default\" <?php checked( $opts['captcha-type'], 'default' );?> /> <?php _e('Use the default text-based CAPTCHA', 'wp-conditional-captcha');?></label></li>\r\n\t<li><label><input type=\"radio\" name=\"captcha-type\" class=\"captcha-type\" id=\"type-recaptcha\" value=\"recaptcha\" <?php checked( $opts['captcha-type'], 'recaptcha' );?> /> <?php _e('Use reCAPTCHA', 'wp-conditional-captcha');?></label></li>\r\n\t</ul>\r\n\t<div id=\"recaptcha-settings\" class=\"indent\">\r\n\t\t<ul class=\"indent\">\r\n\t\t<li><label><?php _e('Site key:', 'wp-conditional-captcha');?> <input type=\"text\" name=\"recaptcha-public-key\" id=\"recaptcha-public-key\" size=\"50\" value=\"<?php echo $opts['recaptcha-public-key'] ?>\" /></label></li>\r\n\t\t<li><label><?php _e('Private key:', 'wp-conditional-captcha');?> <input type=\"text\" name=\"recaptcha-private-key\" id=\"recaptcha-private-key\" size=\"50\" value=\"<?php echo $opts['recaptcha-private-key'] ?>\" /></label></li>\r\n\t\t<li><label><input type=\"checkbox\" id=\"recaptcha_use_new_api\" name=\"recaptcha_use_new_api\" value=\"1\" <?php checked($opts['recaptcha_use_new_api']);?> /> <?php _e('Use the new (No CAPTCHA) ReCAPTCHA', 'wp-conditional-captcha');?> </label></li>\r\n\t\t</ul>\r\n\t\t<p><small><?php printf(__('You can <a href=\"%s\" target=\"_blank\">sign up for a key here</a> (it\\'s free)', 'wp-conditional-captcha'), 'https://www.google.com/recaptcha');?></small></p>\r\n\t</div>\r\n\t</td></tr>\r\n\t<tr><th><?php _e('Comment Handling', 'wp-conditional-captcha');?></th><td>\r\n\t<p><?php _e('When a CAPTCHA is completed correctly:', 'wp-conditional-captcha');?></p>\r\n\t<ul class=\"indent plugin-actions\">\r\n\t<li><label><input type=\"radio\" name=\"pass_action\" id=\"pass_action_spam\" value=\"spam\" <?php checked($opts['pass_action'], 'spam');?> /> <?php _e('Leave the comment in the spam queue', 'wp-conditional-captcha');?></label></li>\r\n\t<li><label><input type=\"radio\" name=\"pass_action\" id=\"pass_action_hold\" value=\"hold\" <?php checked( $opts['pass_action'], 'hold');?> /> <?php _e('Queue the comment for moderation', 'wp-conditional-captcha');?></label></li>\r\n\t<li><label><input type=\"radio\" name=\"pass_action\" id=\"pass_action_approve\" value=\"approve\" <?php checked( $opts['pass_action'], 'approve');?> /> <?php _e('Approve the comment', 'wp-conditional-captcha');?></label></li>\r\n\t</ul>\r\n\t<p><?php _e('When a CAPTCHA is <strong>not</strong> completed correctly:', 'wp-conditional-captcha');?></p>\r\n\t<ul class=\"indent plugin-actions\">\r\n\t<li><label><input type=\"radio\" name=\"fail_action\" id=\"fail_action_spam\" value=\"spam\" <?php checked( $opts['fail_action'], 'spam' );?> /> <?php _e('Leave the comment in the spam queue', 'wp-conditional-captcha');?></label></li>\r\n\t<li><label><input type=\"radio\" name=\"fail_action\" id=\"fail_action_trash\" value=\"trash\" <?php checked( $opts['fail_action'], 'trash' );?> /> <?php _e('Trash the comment', 'wp-conditional-captcha');?></label></li>\r\n\t<li><label><input type=\"radio\" name=\"fail_action\" id=\"fail_action_delete\" value=\"delete\" <?php checked( $opts['fail_action'], 'delete' );?> /> <?php _e('Delete the comment permanently', 'wp-conditional-captcha');?></label></li>\r\n\t</ul>\r\n\t<p><?php printf( __( 'Note: this behaviour only applies if a CAPTCHA is served. The rest of the time, the <a href=\"%s\" target=\"_blank\">default WordPress settings</a> apply.', 'wp-conditional-captcha' ), admin_url( 'options-discussion.php' ) ) ;?></p>\r\n\t</td></tr>\r\n\t</table>\r\n\r\n\t<h2><?php _e( 'Tweaks', 'wp-conditional-captcha' ) ?></h2>\r\n\t<table class=\"form-table\">\r\n\t<tr><th><?php _e('CAPTCHA Page Style', 'wp-conditional-captcha');?></th><td>\r\n\t<p><?php _e('If you want to style your CAPTCHA page to fit with your own theme, you can modify the default style.', 'wp-conditional-captcha');?></p>\r\n\t<textarea id=\"captcha_css\" name=\"style\" rows=\"6\" cols=\"80\"><?php echo ( $opts['style'] ? $opts['style'] : file_get_contents( $this->cssfile ) );?></textarea>\r\n\t<p><small><?php _e( 'Empty this box to revert to the default.', 'wp-conditional-captcha' );?></small></p>\r\n\t</td></tr>\r\n\t<tr><th><?php _e('CAPTCHA Prompt', 'wp-conditional-captcha');?></th><td>\r\n\t<p><?php _e('Users will be presented with the following prompt text when a CAPTCHA is displayed. You can modify it if you want.', 'wp-conditional-captcha');?></p>\r\n\t<textarea id=\"prompt_text\" name=\"prompt_text\" rows=\"4\" cols=\"80\"><?php echo esc_html( $this->prompt_text() );?></textarea>\r\n\t<p><small><?php echo __( 'Empty this box to revert to the default.', 'wp-conditional-captcha' ) . ' ' . __( 'HTML is not allowed.', 'wp-conditional-captcha' );?></small></p>\r\n\t</td></tr>\r\n\t<tr id=\"captcha_preview_row\" class=\"hide-if-no-js\"><th><?php _e('CAPTCHA Preview', 'wp-conditional-captcha');?></th><td>\r\n\t<div id=\"captcha_preview\">\r\n\t\t<p><?php _e('Click the button below to view a preview of what the CAPTCHA page will look like. If you have made changes above, please submit them first.', 'wp-conditional-captcha');?></p>\r\n\t\t<p><a class=\"button-secondary\" target=\"_blank\" href=\"<?php echo wp_nonce_url( menu_page_url('conditional_captcha_settings', false), 'conditional_captcha_preview' ) . '&amp;captcha_preview=1&amp;noheader=true'; ?>\"><?php _e('Show preview of CAPTCHA page (opens in new window)', 'wp-conditional-captcha');?></a></p>\r\n\t</div>\r\n\t</td></tr>\r\n\t<?php if( $this->antispam ): ?>\r\n\t<tr><th><?php _e('Akismet Behaviour', 'wp-conditional-captcha');?></th><td>\r\n\t<ul>\r\n\t<li><label><input type=\"checkbox\" name=\"akismet_no_login\" id=\"akismet_no_login\" value=\"1\" <?php checked($opts['akismet_no_login']);?> /> <?php _e('Preventing Akismet from checking comments for logged-in users', 'wp-conditional-captcha');?></label></li>\r\n\t<li><label><input type=\"checkbox\" name=\"akismet_no_history\" id=\"akismet_no_history\" value=\"1\" <?php checked($opts['akismet_no_history']);?> /> <?php printf( __('Prevent Akismet from storing comment histories (see <a href=\"%s\" target=\"_blank\">the FAQs</a> for more on this)', 'wp-conditional-captcha'), 'http://wordpress.org/extend/plugins/wp-conditional-captcha/faq/' ) ;?></label></li>\r\n\t</ul>\r\n\t</td></tr>\r\n\t<?php endif; // Akismet tweaks ?>\r\n\t</tbody></table>\r\n\t<?php wp_nonce_field( 'conditional-captcha-settings' );?>\r\n\t<p class=\"submit\"><input class=\"button-primary\" type=\"submit\" name=\"submit\" value=\"<?php _e('Update settings', 'wp-conditional-captcha');?>\" /></p>\r\n\t</form>\r\n\t</div>\r\n\t</div>\r\n\t<script type=\"text/javascript\">\r\n\tjQuery(document).ready(function($){\r\n\t\tif(!$('#type-recaptcha').is(':checked')) $('#recaptcha-settings').hide();\r\n\t\t$('input.captcha-type, #captcha_css, #recaptcha_use_new_api, #prompt_text').change( function(){\r\n\t\t\t$('#captcha_preview').html('<p><?php echo esc_html( __('You have changed some settings above that affect how the CAPTCHA is displayed. Please submit the changes to be able to see a preview.', 'wp-conditional-captcha') );?></p>')}\r\n\t\t);\r\n\r\n\t\tfunction resolve_conflicts(){\r\n\t\t\tvar p = $('#pass_action_spam'), f = $('#fail_action_spam');\r\n\t\t\tp.attr('disabled', f.is(':checked'));\t// this should really use prop() but only works for jQuery > 1.6 (WP > 3.2)\r\n\t\t\tf.attr('disabled', p.is(':checked'));\r\n\r\n\t\t\tp.closest(\"li\").toggleClass('disabled-option', p.is(':disabled'));\r\n\t\t\tf.closest(\"li\").toggleClass('disabled-option', f.is(':disabled'));\r\n\r\n\t\t\t$('.plugin-actions li').unbind('click');\r\n\t\t\t$('li.disabled-option').click( function(){\r\n\t\t\t\talert('<?php echo esc_html( __('You cannot select the same action for both successful and unsuccessful CAPTCHA responses.', 'wp-conditional-captcha') );?>');\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\t$('.plugin-actions input').click(resolve_conflicts);\r\n\t\tresolve_conflicts();\r\n\r\n\t\t$('input[name=\"captcha-type\"]').change(function() {\r\n\t\t\tif($('#type-recaptcha').is(':checked')) $('#recaptcha-settings').slideDown();\r\n\t\t\telse $('#recaptcha-settings').slideUp();\r\n\t\t});\r\n\r\n\t\t$('#conditional-captcha-settings').submit( function(){\r\n\t\t\t// check API keys\r\n\t\t\tif( $('#type-recaptcha').is(':checked') ) {\r\n\t\t\t\tvar msg = '';\r\n\t\t\t\tif( $('#recaptcha-private-key').val() == '' || $('#recaptcha-public-key').val() == '' )\r\n\t\t\t\t\tmsg = '<?php echo esc_html( $missing_keys );?>';\r\n\t\t\t\telse if( $('#recaptcha-private-key').val().length != 40 || $('#recaptcha-public-key').val().length != 40 )\r\n\t\t\t\t\tmsg = '<?php echo esc_html( $invalid_keys );?>';\r\n\r\n\t\t\t\tif( msg ) {\r\n\t\t\t\t\talert( msg );\r\n\t\t\t\t\t$('#recaptcha-settings input').addClass('input-error');\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t$(\"#conditional-captcha-settings :input\").change( function(){\r\n\t\t\t$(\"#message\").slideUp();\r\n\t\t});\r\n\t});\r\n\t</script>\r\n<?php\r\n\t}", "private function check_ReCAPTCHA($sorce){\r\n\r\n // Secret key from server\r\n $secret_key = \"6Ld7VU0UAAAAADcTAMHGHW4cU_B2Ryo8-6FC6qdn\";\r\n\r\n // Send query into server\r\n $check = file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret='.$secret_key.'&response='.$sorce['g-recaptcha-response']);\r\n\r\n // Decode jquery code\r\n $answer = json_decode($check);\r\n\r\n // Check answer\r\n if ($answer->success==false){\r\n\r\n $this->_flag = false;\r\n\r\n\t\t\tSession::put('e_reCAPTCHA','Proof you are not a robot');\r\n\t\t}\r\n }", "static function validate($secretKey, $captchaResponse, $ip = null){\n\t\t$ipCode = \"\";\n\t\tif ($ip) {\n\t\t\t$ipCode = \"&remoteip=\".$ip;\n\t\t}\n\t\t$response=file_get_contents(self::CaptchaAdress.\"?secret=\".$secretKey.\"&response=\".$captchaResponse.$ipCode);\n\t\t$responseJson=json_decode($response,true);\n\t\treturn intval($responseJson[\"success\"]) === 1;\n\t}", "function ig_es_add_captcha_option( $form_data ) {\n\n\tif ( ! ES()->is_premium_installed() ) {\n\n\t\t$utm_args = array(\n\t\t\t\"utm_medium\" => \"es_form_captcha\"\n\t\t);\n\n\t\t$pricing_url = ES_Common::get_utm_tracking_url( $utm_args );\n\n\t\t?>\n\n\t\t<div class=\"flex border-b border-gray-100 \">\n\t\t\t<div class=\"w-2/5 mr-16\">\n\t\t\t\t<div class=\"flex flex-row w-full\">\n\t\t\t\t\t<div class=\"flex w-2/4\">\n\t\t\t\t\t\t<div class=\"ml-4 mr-8 mr-4 pt-4 mb-2\">\n\t\t\t\t\t\t\t<label for=\"tag-link\"><span class=\"block ml-4 pr-4 text-sm font-medium text-gray-600 pb-2\"><?php echo __( 'Enable Captcha' ); ?></span></label>\n\t\t\t\t\t\t\t<p class=\"italic text-xs text-gray-400 mt-2 ml-4 leading-snug pb-4\"><?php _e( 'Show a captcha to protect from bot signups.', 'email-subscribers' ); ?></p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"flex\">\n\t\t\t\t\t\t<div class=\"ml-16 mb-4 mr-4 mt-12\">\n\t\t\t\t\t\t\t<label for=\"captcha\" class=\" inline-flex items-center cursor-pointer\">\n\t\t\t\t\t\t\t\t<span class=\"relative\">\n\t\t\t\t\t\t\t\t\t<span class=\"relative es-mail-toggle-line block w-10 h-6 bg-gray-300 rounded-full shadow-inner\"></span>\n\t\t\t\t\t\t\t\t\t<span class=\"es-mail-toggle-dot absolute transition-all duration-300 ease-in-out block w-4 h-4 mt-1 ml-1 bg-white rounded-full shadow inset-y-0 left-0 focus-within:shadow-outline \"></span>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div class=\"w-3/6 mt-3.5 pr-4\">\n\t\t\t\t<div class=\"inline-flex rounded-md bg-teal-50 px-2 pt-1 w-full\">\n\t\t\t\t\t<div class=\"px-2 pt-2 pb-2\">\n\t\t\t\t\t\t<div class=\"flex\">\n\t\t\t\t\t\t\t<div class=\"flex-shrink-0\">\n\t\t\t\t\t\t\t\t<svg class='h-5 w-5 text-teal-400' fill='currentColor' viewBox='0 0 20 20'>\n\t\t\t\t\t\t\t\t\t<path fill-rule='evenodd' d='M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z' clip-rule='evenodd'/>\n\t\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"ml-3\">\n\t\t\t\t\t\t\t\t<h3 class=\"text-sm leading-5 font-medium text-blue-800\">\n\t\t\t\t\t\t\t\t\t<?php _e( sprintf(\"<a href='%s' target='_blank'>Upgrade to ES PRO</a>\", $pricing_url), 'email-subscribers' ); ?>\n\t\t\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t\t\t<div class=\"mt-2 text-sm leading-5 text-teal-700\">\n\t\t\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t\t\t<?php _e( 'Secure your form and avoid spam signups with form Captcha', 'email-subscribers' ); ?>\n\n\t\t\t\t\t\t\t\t\t\t<?php if(ES_Common::can_show_coupon('PREMIUM10')) { _e( 'Get <b>10% flat discount</b> if you upgrade now!. <br /><br />Use coupon code <b>PREMIUM10</b>', 'email-subscribers' );}?>\n\t\t\t\t\t\t\t\t\t</p>\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>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t<?php }\n}", "private function generate_captcha(){\n\t\t$s = $this->session;\n\t\tif($s->contains('captcha') && $s->get('captcha_time') > time() - 1800){\n\t\t\t$s->set('captcha', $s->get('captcha') + 1);\n\t\t\tif($s->get('captcha') > 10) {\n\t\t\t\t$this->data['show_captcha'] = true;\n\t\t\t\t$s->set('require_captcha', true);\n\t\t\t}\n\t\t} else {\n\t\t\t$s->set('captcha', 1);\n\t\t\t$s->set('captcha_time', time());\n\t\t\t$s->wipe('require_captcha');\n\t\t}\n\t}", "function wppb_check_password_value( $message, $field, $request_data, $form_location ){\r\n\tif ( $form_location == 'register' ){\r\n\t\tif ( ( isset( $request_data['passw1'] ) && ( trim( $request_data['passw1'] ) == '' ) ) && ( $field['required'] == 'Yes' ) )\r\n\t\t\treturn wppb_required_field_error($field[\"field-title\"]);\r\n\t\t\r\n\t\telseif ( !isset( $request_data['passw1'] ) && ( $field['required'] == 'Yes' ) )\r\n\t\t\treturn wppb_required_field_error($field[\"field-title\"]);\r\n\t}\r\n\r\n if ( trim( $request_data['passw1'] ) != '' ){\r\n $wppb_generalSettings = get_option( 'wppb_general_settings' );\r\n\r\n if( wppb_check_password_length( $request_data['passw1'] ) )\r\n return '<br/>'. sprintf( __( \"The password must have the minimum length of %s characters\", \"profile-builder\" ), $wppb_generalSettings['minimum_password_length'] );\r\n\r\n\r\n if( wppb_check_password_strength() ){\r\n return '<br/>' . sprintf( __( \"The password must have a minimum strength of %s\", \"profile-builder\" ), wppb_check_password_strength() );\r\n }\r\n }\r\n\r\n return $message;\r\n}", "function capcha_draw($min_length,$max_length)\n{\n\n require_once('kcaptcha/kcaptcha.php');\n\n $kcaptcha = new KCAPTCHA($min_length,$max_length);\n //$_SESSION['capcha_code'] = $kcaptcha->getKeyString();\n session_set('capcha_code',$kcaptcha->getKeyString());\n return true;\n}", "protected function shouldActivate(): bool\n {\n return boolval(config('captcha.enable', false));\n }", "function validation_google_captcha( $captch_response){\n\n\t/* Replace google captcha secret key*/\n\t$captch_secret_key = 'Add your secret key here';\n\t\n\t$data = array(\n 'secret' => $captch_secret_key,\n 'response' => $captch_response,\n\t\t\t'remoteip' => $_SERVER['REMOTE_ADDR']\n );\n\t$verify = curl_init();\n\tcurl_setopt($verify, CURLOPT_URL, \"https://www.google.com/recaptcha/api/siteverify\");\n\tcurl_setopt($verify, CURLOPT_POST, true);\n\tcurl_setopt($verify, CURLOPT_POSTFIELDS, http_build_query($data));\n\tcurl_setopt($verify, CURLOPT_SSL_VERIFYPEER, false);\n\tcurl_setopt($verify, CURLOPT_RETURNTRANSFER, true);\n\t$response = curl_exec($verify);\n\t$response = json_decode( $response, true );\n\t$error_message='';\n\tif( isset($response['error-codes']) && !empty($response['error-codes'])){\n\t\tif( $response['error-codes'][0] == 'missing-input-secret' ){\n\t\t\t\n\t\t\t$error_message = '<p>The recaptcha secret parameter is missing.</p>';\n\t\t\t\n\t\t}elseif( $response['error-codes'][0] == 'invalid-input-secret' ){\n\t\t\t\n\t\t\t$error_message = '<p>The recaptcha secret parameter is invalid or malformed.</p>';\n\t\t\t\n\t\t}elseif( $response['error-codes'][0] == 'missing-input-response' ){\n\t\t\t\n\t\t\t$error_message = '<p>The recaptcha response parameter is missing.</p>';\n\t\t\t\n\t\t}elseif( $response['error-codes'][0] == 'invalid-input-response' ){\n\t\t\t\n\t\t\t$error_message = '<p>The recaptcha response parameter is invalid or malformed.</p>';\n\t\t\t\n\t\t}elseif( $response['error-codes'][0] == 'bad-request' ){\n\t\t\t\n\t\t\t$error_message = '<p>The recaptcha request is invalid or malformed.</p>';\n\t\t}\n\t}\t\n\tif( $error_message !=''){\n\t\treturn $error_message;\n\t}else{\n\t\treturn '';\n\t}\n }", "function showCaptcha()\n {\n $login_model = $this->loadModel('Login');\n $login_model->generateCaptcha();\n }", "function onCaptchaRequired( $captchagroup = '' ) {\r\n\r\n\t\t$captchaplugin = &JPluginHelper::getPlugin( 'system', 'captcha' );\r\n\t\t$captchaparameters = new JParameter( $captchaplugin->params );\r\n\t\t$enabledcaptchas = $captchaparameters->def( 'enabledcaptchas', '' );\r\n\t\t// do not required if disabled group and\r\n\t\t// do not required if captchas distroy (Disabled captchas) and\r\n\t\t// do not required if parameters of plugin is not saved\r\n\t\t$enabledcaptchas = str_replace( ' ', '', $enabledcaptchas );\r\n\t\tif (!(($captchagroup) && (substr_count( (',' . $enabledcaptchas . ','), (',' . $captchagroup . ',') )))) return false;\r\n\r\n\t\t$user = &JFactory::getUser();\r\n\t\tif ($user->guest) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "function ShowCaptcha($param = '') {\n if (USER::$logged_in) {\n return '';\n }\n $captcha = empty($param) ? CONFIG::getValue('main', 'captcha') : $param;\n $code = mt_rand(0, 666);\n if ($captcha === 'Random') {\n $types = ['Original', 'Color'];\n $captcha = $types[mt_rand(0, 1)]; # Change system CAPTCHA\n $result = ShowCaptcha($captcha);\n $captcha = 'Random'; # Restore system CAPTCHA\n return $result;\n }\n return '\n <img src=\"'.TOOLS.'captcha.php?code='.$code.'\" width=\"90\" height=\"30\" alt=\"CAPTCHA\" /><br />\n <input type=\"hidden\" name=\"antispam\" value=\"'.$code.'\" />\n <input type=\"text\" name=\"captcheckout\" id=\"captcheckout\" value=\"\" size=\"10\" class=\"required\" />\n ';\n}", "function checkSubmitForm($from_email,$from_name,$subject,$msg,$captcha,$security_code)\n{\n\t$error = '';\n\tif (!validateEmail($from_email)){\n\t\t$error[] = 1;\n\t}\n\tif (empty($from_name)) {\n\t\t$error[] = 2; \n\t}\n\tif (empty($subject)) {\n\t\t$error[] = 3;\n\t}\n\tif (empty($msg)) {\n\t\t$error[] = 4;\n\t}\n\tif (!empty($security_code) && $security_code !== $captcha) {\n\t\t$error[] = 5;\n\t}\n\tif (empty($captcha)) {\n\t\t$error[] = 6;\n\t} \n\tif ($error) {\n\t\treturn $error;\n\t} else {\n\t\treturn 99;\n\t}\n}", "function validate_submit($image,$attempt)\n\t\t{\n\t\t\t$correct_hash = substr($image,-36,32);\n\t\t\tif($this->case_sensitive==0) $attempt = strtoupper($attempt);\n\t\t\tif($this->check_captcha($correct_hash,$attempt))\n\t\t\t{\n\t\t\t\tif($this->debug) echo \"\\n<br>-Captcha-Debug: Validating submitted form returns: (1)\";\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif($this->debug) echo \"\\n<br>-Captcha-Debug: Validating submitted form returns: (0)\";\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t}", "public function check_form()\n\t{\n\t\tProfil_fields_forum::validate(PROFIL_FIELDS_CONTACT, 'contact', $this->errstr, Fsb::$session->id());\n\t}", "private function _generateCaptcha() {\n echo '<div class=\"g-recaptcha\" data-sitekey=\"' . self::$siteKey . '\"></div>';\n }", "public static function validate()\n {\n parent::validate();\n foreach(static::getRules() as $field => $rules)\n {\n if(array_key_exists('captcha', $rules))\n {\n $captchaResponse = \\helper\\Captcha::recaptchaValidate($_POST[$rules['captcha']], $_POST[$field]);\n // if captcha error...\n if($captchaResponse !== true)\n {\n static::$errors[] = array($field => _('Incorrect captcha solution'));\n }\n }\n }\n return (0 === count(static::$errors));\n }", "public function captcha()\n {\n //生成验证码图片的Builder对象,配置相应属性\n $builder = new CaptchaBuilder;\n //可以设置图片宽高及字体\n $builder->build($width = 80, $height = 40, $font = null);\n //获取验证码的内容\n $phrase = $builder->getPhrase();\n\n //把内容存入session\n Session::flash('code', $phrase);\n //生成图片\n header(\"Cache-Control: no-cache, must-revalidate\");\n header('Content-Type: image/jpeg');\n $builder->output();\n }", "function GoogleValidation($post) {\n // Do the google stuff here.\n if (isset($post['g-recaptcha-response'])) {\n $gsecret = \"\"; //gsecret code.\n $captcha = filter_var($post['g-recaptcha-response'], FILTER_SANITIZE_STRING); // Sanitize the string before making call to Google.\n $response=json_decode(file_get_contents(\"https://www.google.com/recaptcha/api/siteverify?secret=\" . $gsecret . \"&response=\" . $captcha . \"&remoteip=\" . $_SERVER['REMOTE_ADDR']), true);\n \n if ($response['success'] == true) {\n return true;\n } else {\n return false;\n }\n }\n return false;\n }", "function honeypot_field() {\n add_action('login_form','simpleHoneypot_honeypot_login_field');\n function bOnline_honeypot_login_field(){\n wp_register_script( 'honeypot_script', plugins_url('./honeypot.js', __FILE__));\n wp_enqueue_script('honeypot_script')\n //Hidden fields added to the login page\n ?>\n <div class=\"simpleHoneypot\" style=\"display:none\">\n <label>Don't Fill In This Field</label>\n <input type=\"text\" name=\"simpleHoneypot\" id=\"simpleHoneypot\" />\n </div>\n <?php\n }\n}", "public function checkAccess()\n {\n if(!Module::isInstalled('lddw_grecaptcha')) {\n return parent::checkAccess();\n }\n $valid = Hook::exec('onSubmitContactForm');\n if(empty($valid)) {\n $this->errors[] = Tools::displayError('Invalid ReCaptcha Response');\n }\n\n return $valid;\n }", "function showCaptcha()\n {\n $captcha_model = $this->loadModel('Captcha');\n $captcha_model->generateCaptcha();\n }", "public function test_error_on_missed_captcha()\n {\n $response = $this->post('/proposal/store', [\n 'name' => 'Test Name',\n 'title' => 'Test Title'.mt_rand(1, 10000),\n 'description' => 'Test Description',\n ]);\n\n $response->assertStatus(302);\n $response->assertSessionHas('error', 'Captcha code is empty!');\n }", "function phpfmg_captcha_name(){\r\n if( !isset($_SESSION['captcha_name']) ){\r\n $_SESSION['captcha_name'] = phpfmg_rand(8); //PHPFMG_ID.'fmgCaptchCode';\r\n };\r\n return $_SESSION['captcha_name'];\r\n}", "function form_check() {\n\tglobal $dbh, $cust_cpns_tbl;\n\t\n\t// required fields array\n\t$required_fields = array(\n\t\t\t\t\t\t\t'Code'=> $cust_cpns_tbl->code,\n\t\t\t\t\t\t\t'Value'=> $cust_cpns_tbl->value,\n\t\t\t\t\t\t\t'Expires'=> $cust_cpns_tbl->expires\n\t\t\t\t\t\t\t);\n\t\t\n\t// check error values and write error array\t\t\t\t\t\n\tforeach($required_fields as $field_name => $output) {\n\t if (empty($output)) {\n\t\t$errors_array[] = $field_name;\n\t }\n\t}\n\t\n\tif (!empty($errors_array)) {\n\t $error_message = 'You did not supply a value for these fields: ' . implode(', ',$errors_array);\n\t}\n\t\n\tif ($cust_cpns_tbl->existing_code_check() > 0) {\n\t $error_message .= '<center>Coupon code already assigned. Please enter another.</center>'.LB;\n\t}\n\t\n return $error_message;\n }", "public function getCaptcha(){\r\n\t\treturn \"<script type=\\\"text/javascript\\\">var spamCaptcher ={settings : \" . $this->initSettings . \"};spamCaptcher.settings.accountID = \\\"\" . $this->accountID . \"\\\";</script><script type=\\\"text/javascript\\\" src=\\\"https://api.spamcaptcher.com/initCaptcha.js\\\"></script><noscript>SpamCaptcher NoScript Session:&nbsp;<input type=\\\"text\\\" name=\\\"spamCaptcherSessionID\\\" /><br /><iframe height=\\\"275px\\\" width=\\\"500px\\\" src=\\\"https://api.spamcaptcher.com/noscript/getCaptcha.jsp?k=\" . $this->accountID .\"&atma=\" . ($this->allowTrustMeAccount ? \"1\" : \"0\") . \"&ftma=\" . ($this->forceTrustMeAccount ? \"1\" : \"0\") . \"&ogtmas=\" . ($this->overwriteGlobalTMASettings ? \"1\" : \"0\") . \"\\\"><strong>Please upgrade your browser to one that supports iframes or enable JavaScript.</strong></iframe></noscript>\";\r\n\t}", "public function verify_recaptcha($response) \n { \n // if no response received \n if(empty($response))\n {\n $this->form_validation->set_message('verify_recaptcha', 'Please confirm that you are not a robot.');\n return false; \n }\n else \n {\n // check if response code verified\n $result = $this->recaptcha->verifyResponse($response);\n \n if(!$result['success'])\n { \n $this->form_validation->set_message('verify_recaptcha', 'Verifying reCAPTCHA is unsuccessful. Error: '.$result['error-codes']);\n return false; \n }\n } \n\n return true;\n }", "public function getCaptcha() {\n\t\t$this->getCaptchaString();\n\t\t$this->generateImage();\n\t}", "function EnterCaptcha($captchaImg, $inputs, $captchaSize = '5', $sname = 'Enter Captcha', $iname = 'captcha') {\n\techo \"\\n<form name='captcha' method='POST'>\\n\";\n\tforeach ($inputs as $name => $input) echo \"\\t<input type='hidden' name='$name' id='$name' value='$input' />\\n\";\n\techo \"\\t<h4>\" . lang(301) . \" <img alt='CAPTCHA Image' src='$captchaImg' /> \" . lang(302) . \": <input type='text' id='captcha' name='$iname' size='$captchaSize' />&nbsp;&nbsp;\\n\\t\\t<input type='submit' onclick='return check();' value='$sname' />\\n\\t</h4>\\n\\t<script type='text/javascript'>/* <![CDATA[ */\\n\\t\\tfunction check() {\\n\\t\\t\\tvar captcha=document.getElementById('captcha').value;\\n\\t\\t\\tif (captcha == '') {\\n\\t\\t\\t\\twindow.alert('You didn\\'t enter the image verification code');\\n\\t\\t\\t\\treturn false;\\n\\t\\t\\t} else return true;\\n\\t\\t}\\n\\t/* ]]> */</script>\\n</form>\\n</body>\\n</html>\";\n}", "public function getCaptcha()\n {\n return $this->captcha;\n }", "function setValidatedCaptcha(){\n\n\t$CI = &get_instance();\n\t$code = mt_rand();\n\t$CI->session->set_userdata('validated_captcha_code', $code);\n\treturn $code;\n}", "abstract public function isGlobalCaptcha($plugin = 'recaptcha');", "function valid_form_data($form_values,$checkrecaptcha=true,$checkpassword=true)\n{\n\tglobal $recaptchaPrivateKey, $recaptchPublicKey;\n\trequire_once('recaptchalib.php');\n\t\n\tglobal $lang_firstname,$lang_lastname,$lang_email,$lang_password,$lang_street,$lang_street_num,$lang_municipality,$lang_postal_code,\n\t\t$lang_isp,$lang_connection,$lang_connection_name,$lang_bandwidth,$lang_invalid_input,$bandwidths,$lang_not_matching_municipality,$lang_email_exists;\n\n\t$invalid = false;\n\t$invalid_fields = \"\";\n\n\tif($checkrecaptcha)\n\t{\n\t\t$resp = recaptcha_check_answer ($recaptchaPrivateKey,\n\t\t\t$_SERVER[\"REMOTE_ADDR\"],\n\t\t\t$_POST[\"recaptcha_challenge_field\"],\n\t\t\t$_POST[\"recaptcha_response_field\"]);\n\n\t\tif (!$resp->is_valid) {\n\t\t\t$invalid = true;\n\t\t\t$invalid_fields .= \" RECAPTCHA\";\n\t\t\techo \"<!-- RECAPTCHA_ERROR: \" .\"The reCAPTCHA wasn't entered correctly. Go back and try it again.\" .\n\t\t\t\t\"(reCAPTCHA said: \" . $resp->error . \")\" . \" -->\";\n\t\t}\n\t}\n\n\t/*********************** Remove name field\n\tif (!string_valid(trim($form_values['firstname'])))\n\t{\n\t\t$form_values['firstname'] = \"\";\n\t\tif ($invalid) \n\t\t\t$invalid_fields .= \",\";\n\t\t$invalid = true;\n\t\t$invalid_fields .= \" $lang_firstname\";\n\t}\n\tif (!string_valid(trim($form_values['lastname'])))\n\t{\n\t\t$form_values['lastname'] = \"\";\n\t\tif ($invalid) \n\t\t\t$invalid_fields .= \",\";\n\t\t$invalid = true;\n\t\t$invalid_fields .= \" $lang_lastname\";\n\t}\n\t*********************************/\n\t$newuser = ($form_values['command'] == 'register')? true:false;\n\tif (!email_valid(trim($form_values['email']), $newuser))\n\t{\n\t\t$form_values['email'] = \"\";\n\t\tif ($invalid) \n\t\t\t$invalid_fields .= \",\";\n\t\t$invalid = true;\n\t\t$invalid_fields .= \" $lang_email\";\n\t\t$lang_email = str_replace(array($lang_email_exists,'(',')'), \"\", $lang_email);\n\t}\n\tif ($form_values['password'] != $form_values['password_confirm'])\n\t{\n\t\t$form_values['password'] = \"\";\n\t\t$form_values['password_confirm'] = \"\";\n\t\tif ($invalid) \n\t\t\t$invalid_fields .= \",\";\n\t\t$invalid = true;\n\t\t$invalid_fields .= \" $lang_password\";\n\t}\n\tif (isset($form_values['connectionid']) && !empty($form_values['connectionid']) && !db_cross_valid($form_values['connectionid'], $_SESSION['user_id'], \"connection_id\", \"user_id\", \"ii\", \"user_connection\"))\n\t{\n\t\t$form_values['connectionid'] = \"\";\n\t\tif ($invalid) \n\t\t\t$invalid_fields .= \",\";\n\t\t$invalid = true;\n\t\t$invalid_fields .= \"$lang_connection\";\n\t}\n\tif (trim($form_values['connectionname']) != \"\" && !string_valid(trim($form_values['connectionname'])))\n\t{\n\t\t$form_values['connectionname'] = \"\";\n\t\tif ($invalid) \n\t\t\t$invalid_fields .= \",\";\n\t\t$invalid = true;\n\t\t$invalid_fields .= \" $lang_connection_name\";\n\t}\n\tif (!string_valid(trim($form_values['street'])))\n\t{\n\t\t$form_values['street'] = \"\";\n\t\tif ($invalid) \n\t\t\t$invalid_fields .= \",\";\n\t\t$invalid = true;\n\t\t$invalid_fields .= \" $lang_street\";\n\t}\n\tif (!strnum_valid(trim($form_values['street_num'])))\n\t{\n\t\t$form_values['street_num'] = \"\";\n\t\tif ($invalid) \n\t\t\t$invalid_fields .= \",\";\n\t\t$invalid = true;\n\t\t$invalid_fields .= \" $lang_street_num\";\n\t}\n\tif (!string_valid(trim($form_values['region'])) || !db_valid(greek_municipality(trim($form_values['region'])),\"name_lang0\",'s',\"region_level_2\"))\n\t{\n\t\t$form_values['region'] = \"\";\n\t\tif ($invalid) \n\t\t\t$invalid_fields .= \",\";\n\t\t$invalid = true;\n\t\t$invalid_fields .= \" $lang_division_names[2]\";\n\t}\n\telseif(!string_valid(trim($form_values['postal_code'])))\n\t{\n\t\t$form_values['postal_code'] = \"\";\n\t\tif ($invalid) \n\t\t\t$invalid_fields .= \",\";\n\t\t$invalid = true;\n\t\t$invalid_fields .= \" $lang_postal_code\";\n\t}\n\telseif(!coord_valid(trim($form_values['addrlat'])) || !coord_valid(trim($form_values['addrlng'])))\n\t{\n\t\t$form_values['addrlat'] = \"\";\n\t\t$form_values['addrlng'] = \"\";\n\t\tif ($invalid) \n\t\t\t$invalid_fields .= \",\";\n\t\t$invalid = true;\n\t\t$invalid_fields .= \" $lang_coordinates\";\n\t}\n\t\n\telseif(get_municipality_code(greek_municipality(trim($form_values['municipality'])),intval(trim($form_values['postal_code'])))<=0)\n\t{ \n\t\t$form_values['postal_code'] = \"\";\n\t\tif ($invalid) \n\t\t\t$invalid_fields .= \",\";\n\t\t$invalid = true;\n\t\t$invalid_fields .= \" $lang_postal_code ($lang_not_matching_region {$form_values['municipality']})\";\n\t}\n\tif (!db_valid(trim($form_values['isp']),\"isp_id\",'i',\"isp\"))\n\t{\n\t\t$form_values['isp'] = -1;\n\t\tif ($invalid) \n\t\t\t$invalid_fields .= \",\";\n\t\t$invalid = true;\n\t\t$invalid_fields .= \" $lang_isp\";\n\t}\n\tif (trim($form_values['bandwidth'])<0 || trim($form_values['bandwidth'])>count($bandwidths)-1)\n\t{\n\t\t$form_values['bandwidth'] = -1;\n\t\tif ($invalid) \n\t\t\t$invalid_fields .= \",\";\n\t\t$invalid = true;\n\t\t$invalid_fields .= \" $lang_bandwidth\";\n\t}\n\t\n\tif ($invalid)\n\t{\t\n\t\t$form_values['error'] = \"$lang_invalid_input $invalid_fields\";\n\t\treturn $form_values;\n\t}\n\telse\n\t\treturn true;\n}", "function emptyInputSignup($email, $firstName, $lastName, $pwd, $pwdrepeat, $phone\n) {\n $result;\n if (empty($email) ||empty($firstName) ||empty($lastName) ||empty($pwd) ||empty($pwdrepeat)) {\n $result = true;\n } else {\n $result = false;\n }\n return $result;\n }", "private function setCaptchaCode()\n\t{\n\t\t$Pass= Controler_Main::getInstance()->getRandomPass(5);\n\t\t$_SESSION['Captcha']=$Pass;\n\t}", "function empty_field_check() {\n $all_full =\n isset($_POST['email']) &&\n isset($_POST['username']) &&\n isset($_POST['password']) &&\n isset($_POST['name']) &&\n isset($_POST['surname']);\n \n if(!$all_full)\n launch_error(\"Some fields are empty.\");\n}", "function captcha(){\n $ci = get_instance();\n // Write your logic as per requirement\n //Caractère permis\n $permitted_chars = 'ABCDEFGHJKLMNOPQRSTUVWXYZ1234567890';\n\n $image = imagecreatetruecolor(200, 50);\n imageantialias($image, true);\n\n //Variable de couleur\n $colors = [];\n //Liste couleur aléatoire\n $red = rand(125, 170);\n $green = rand(125, 175);\n $blue = rand(125, 180);\n\n for($i = 0; $i < 5; $i++){\n //Contaste trame de fond\n $colors[] = imagecolorallocate($image, $red - 25*$i, $green - 25*$i, $blue - 25*$i);\n }\n\n //Couleur du fond BG\n imagefill($image, 100, 0, $colors[0]);\n\n for($i = 0; $i < 10; $i++){\n //largeur des traits aléatoire\n imagesetthickness($image, rand(2, 10));\n //Couleur des traits\n $line_color = $colors[rand(1, 4)];\n imagerectangle($image, rand(-10, 190), rand(-10, 10), rand(-10, 190), rand(40, 60), $line_color);\n }\n\n //Couleur du texte\n $white = imagecolorallocate($image, 255, 255, 255);\n\n //Police d'écriture\n $fonts = [APPPATH . 'helpers/Captcha/fonts/VEnigma/VEnigma45.ttf',\n APPPATH . 'helpers/Captcha/fonts/Ubuntu/Ubuntu-Regular.ttf',\n APPPATH . 'helpers/Captcha/fonts/Didact_Gothic/DidactGothic-Regular.ttf'\n ];\n\n //Longueur de la chaine caractère\n $string_length = \"4\";\n $captcha_string = generate_string($permitted_chars, $string_length);\n\n $_SESSION['captcha_text'] = $captcha_string;\n\n for($i = 0; $i < $string_length; $i++) {\n $letter_space = 170/$string_length;\n $initial = 15;\n imagettftext($image, 24, rand(-15, 15), $initial + $i*$letter_space, rand(25, 45), $white, $fonts[array_rand($fonts)], $captcha_string[$i]);\n }\n\n //header('Content-type: image/png');\n ob_start();\n imagepng($image);\n imagedestroy($image);\n $imagedata = ob_get_clean();\n\n return base64_encode($imagedata);\n }", "function form_check() {\n\tglobal $cert_amt_tbl;\n\t\n\t// required fields array\n\t$required_fields = array('Discount Amount'=> $cert_amt_tbl->discount_amount);\n\t\t\n\t// check error values and write error array\t\t\t\t\t\n\tforeach($required_fields as $field_name => $output) {\n\t if (empty($output)) {\n\t\t$errors_array[] = $field_name;\n\t }\n\t}\n\t\n\tif (!empty($errors_array)) {\n\t $error_message = 'You did not supply a value for these fields: ' . implode(', ',$errors_array);\n\t}\n\t\n return $error_message;\n }" ]
[ "0.73600197", "0.73600197", "0.7222749", "0.7135259", "0.7097424", "0.70413125", "0.7015237", "0.69780856", "0.69344014", "0.6927632", "0.6807252", "0.6749336", "0.67282367", "0.668294", "0.6638356", "0.66358066", "0.6573138", "0.64955837", "0.6490238", "0.6487723", "0.6460183", "0.6459865", "0.64131695", "0.64114785", "0.64076596", "0.64076596", "0.64074427", "0.64067864", "0.63890827", "0.63626444", "0.6356922", "0.6355791", "0.63243824", "0.6324357", "0.6316715", "0.6308245", "0.62948054", "0.6282407", "0.62776387", "0.6275456", "0.62643796", "0.6262801", "0.6237525", "0.6207898", "0.62041813", "0.61716336", "0.61710286", "0.6149706", "0.6143808", "0.60882956", "0.6074573", "0.606804", "0.60664916", "0.6037324", "0.6031646", "0.59647095", "0.59441143", "0.5927452", "0.5927315", "0.59263057", "0.59129244", "0.5902037", "0.589914", "0.58903885", "0.5881166", "0.5877694", "0.58527786", "0.584187", "0.5813517", "0.58133525", "0.5804703", "0.58019876", "0.57988447", "0.5797415", "0.5779074", "0.5765092", "0.5748503", "0.57404494", "0.5740281", "0.5735714", "0.5715367", "0.57149583", "0.5713405", "0.57077867", "0.57043034", "0.57003635", "0.5690314", "0.56847245", "0.5660653", "0.5658973", "0.565017", "0.5641881", "0.5637125", "0.5627691", "0.56265295", "0.5622628", "0.5622623", "0.5607648", "0.5606802", "0.56067276" ]
0.5747789
77
/ Load data fixtures with the passed EntityManager
public function load(ObjectManager $manager) { $length = count($this->matches); $faker = \Faker\Factory::create(); for ($i = 0; $i < $length; $i++) { $schedule = $this->matches[$i]; $match = $this->createMatch($schedule, $manager, $faker); $ticket = new Ticket(); $ticket->setPrice(160); $ticket->setQuantity(500); $match->setTicket($ticket); $ticket->setMatch($match); $manager->persist($match); $manager->persist($ticket); $manager->flush(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function loadData(ObjectManager $em);", "private function myLoadFixtures()\n {\n $em = $this->getDatabaseManager();\n\n // load fixtures\n $client = static::createClient();\n $classes = array(\n // classes implementing Doctrine\\Common\\DataFixtures\\FixtureInterface\n 'Demofony2\\AppBundle\\DataFixtures\\ORM\\FixturesLoader',\n );\n\n $this->loadFixtures($classes);\n }", "public function load(ObjectManager $manager)\n {\n // Fixtures are split into separate files\n }", "public function load(ObjectManager $manager)\n {\n $entities = Fixtures::load($this->getFixtures(), $manager);\n }", "private function loadGenerated(ObjectManager $em)\n {\n for ($i = 100; $i <= 130; $i++) {\n $fixture = new AlumniExperiences();\n\n $ref_aid = $this->getReference('alumni-anon-'.$i);\n\n $fixture\n ->setAlumni($em->merge($ref_aid))\n ->setOrganization('PT. '.$i)\n ->setDescription('Pekerjaan '.$i);\n\n $em->persist($fixture);\n }\n\n $em->flush();\n }", "protected function loadData(ObjectManager $em)\n {\n }", "public function load(ObjectManager $manager)\n {\n /**\n * Ingredients fixtures\n */\n\n // Ingredients List\n// $ingredientsList = array(\n// 'Cereals' => ['シリアル', 'cereals.jpg', 0],\n// 'Dairy' => ['乳製品', 'dairy.jpg', 0],\n// 'Fruits' => ['果物', 'fruits.jpg', 0],\n// 'Meat' => ['肉', 'meat.jpg', 0],\n// 'Nuts, seeds & oils' => ['ナツ、油', 'nuts-seeds-oils.jpg', 0],\n// 'Other ingredients' => ['その他', 'other-ingredients.jpg', 0],\n// 'Seafood' => ['シーフード', 'seafood.jpg', 0],\n// 'Spices & herbs' => ['スパイス&ハーブ', 'spices-and-herbs.jpg', 0],\n// 'Sugar products' => ['砂糖', 'sugar-products.jpg', 0],\n// 'Vegetables' => ['野菜', 'vegetables.jpg', 0]\n// );\n//\n// foreach ($ingredientsList as $key => $ingredient) {\n// $ingredientDb = new Ingredient();\n// $ingredientDb->setName($key);\n// $ingredientDb->setNameJa($ingredient[0]);\n// $ingredientDb->setImage($ingredient[1]);\n// $ingredientDb->setParent($ingredient[2]);\n//\n// $manager->persist($ingredientDb);\n// $manager->flush();\n// }\n\n// $parentPath = \"web/images/ingredients\";\n// $parentDir = new DirectoryIterator(dirname($parentPath.\"/*\"));\n// $filetypes = array(\"jpg\", \"png\");\n//\n// foreach ($parentDir as $fileParentInfo) {\n// if (!$fileParentInfo->isDot() && $fileParentInfo->isFile()) {\n//\n// $fullName = str_replace('-',' ', ucfirst(substr($fileParentInfo->getFilename(), 0, -4)));\n// $ingredientDb = new Ingredient();\n// $ingredientDb->setName($fullName);\n//\n// $ingredientDb->setImage($fileParentInfo->getFilename());\n// $ingredientDb->setParent(0);\n// $manager->persist($ingredientDb);\n// $manager->flush();\n//\n// $childPath = $parentPath.'/'.$fullName.'/*';\n// $currentId = $ingredientDb->getId();\n// $childDir = new DirectoryIterator(dirname($childPath));\n//\n// foreach ($childDir as $fileinfo) {\n// if (!$fileinfo->isDot() && $fileinfo->isFile() && in_array(strtolower($fileinfo->getExtension()), $filetypes)) {\n// var_dump($fileinfo->getFilename());\n//\n// $childFullName = str_replace('-',' ', ucfirst(substr($fileinfo->getFilename(), 0, -4)));\n// $ingredientDb = new Ingredient();\n// $ingredientDb->setName($childFullName);\n// $ingredientDb->setImage($fullName.'/'.$fileinfo->getFilename());\n// $ingredientDb->setParent($currentId);\n//\n// $manager->persist($ingredientDb);\n// $manager->flush();\n//\n// }\n// }\n// }\n// }\n\n\n// $dir = new DirectoryIterator(dirname(\"web/images/ingredients/vegetables/*\"));\n//\n//\n//\n// foreach ($dir as $fileinfo) {\n// if (!$fileinfo->isDot() && $fileinfo->isFile() && in_array(strtolower($fileinfo->getExtension()), $filetypes)) {\n//\n// $fullName = str_replace('-',' ', ucfirst(substr($fileinfo->getFilename(), 0, -4)));\n// $ingredientDb = new Ingredient();\n// $ingredientDb->setName($fullName);\n//// $ingredientDb->setNameJa($ingredient[0]);\n// $ingredientDb->setImage($fileinfo->getFilename());\n// $ingredientDb->setParent(10);\n////\n// $manager->persist($ingredientDb);\n// $manager->flush();\n//\n// }\n// }\n\n }", "public function loadData(ObjectManager $manager)\n {\n // $manager->persist($product);\n $this->createMany(50, \"abonne\", function($num){\n //\"abonne\" s'il est en clé étrangère dans une autre table\n //$num, quel numéro de boucle\n $prenom = $this->faker->firstName;\n $email = $prenom . \".\" . $this->faker->lastName . \"@yopmail.com\";\n return (new Abonne)->setPrenom($prenom)\n ->setEmail($email);\n });\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n// $band->setName('Obituary' . rand(1, 100));\n// $band->setSubGenre('Death Metal');\n//\n// $manager->persist($band);\n// $manager->flush();\n \n Fixtures::load(__DIR__.'/fixtures.yml', $manager, [ 'providers' => [$this] ]);\n \n }", "public function load(ObjectManager $manager)\n {\n // Array of data for the fixture\n $usersData = array(\n array(\n 'username' => 'superman',\n 'email' => '[email protected]',\n 'password' => 'sup',\n 'roles' => array('ROLE_ADMIN'),\n ),\n array(\n 'username' => 'batman',\n 'email' => '[email protected]',\n 'password' => 'bat',\n 'roles' => array('ROLE_ADMIN'),\n ),\n array(\n 'username' => 'spiderman',\n 'email' => '[email protected]',\n 'password' => 'spi',\n// 'roles' => array(),\n 'roles' => array('ROLE_USER'),\n ),\n array(\n 'username' => 'Martine',\n 'email' => '[email protected]',\n 'password' => 'mar',\n 'roles' => array(),\n ),\n array(\n 'username' => 'Jean',\n 'email' => '[email protected]',\n 'password' => 'jea',\n 'roles' => array(),\n ),\n array(\n 'username' => 'Marc',\n 'email' => '[email protected]',\n 'password' => 'mar',\n 'roles' => array(),\n ),\n array(\n 'username' => 'David',\n 'email' => '[email protected]',\n 'password' => 'dav',\n 'roles' => array(),\n ),\n\n );\n\n // Accessing the user manager service\n $userManager = $this->container->get('fos_user.user_manager');\n\n foreach ($usersData as $i => $userData)\n {\n $user = $userManager->createUser();\n $user->setUsername($userData['username']);\n $user->setEmail($userData['email']);\n $user->setPlainPassword($userData['password']);\n $user->setEnabled(true);\n $user->setRoles($userData['roles']);\n\n $manager->persist($user);\n $this->addReference(sprintf('user-%s', $i), $user);\n }\n $manager->flush();\n }", "public function testLoadAllFixtures(): void\n {\n $this->loadFixtures();\n $article = $this->getTableLocator()->get('Articles')->get(1);\n $this->assertSame(1, $article->id);\n $category = $this->getTableLocator()->get('Categories')->get(1);\n $this->assertSame(1, $category->id);\n }", "public function load(ObjectManager $em)\n {\n $faker = FakerFactory::create();\n $admin = $this->getReference('user_admin');\n\n for ($i = 0 ; $i < 30 ; $i++) {\n $article = new Article();\n\n $article->setTitle($faker->sentence(4));\n $article->setAuthor($admin);\n $article->setContent('<p>'.$faker->text(500).'</p>');\n $article->setVisible(0 == $i % 2);\n $article->setCreated(new \\DateTime('-'.($i * 4).' day'));\n\n $em->persist($article);\n }\n\n $em->flush();\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n for ($i=1; $i <= 100 ; $i++) { \n \t$article = new Article();\n \t$article->setTitre(\"Titre de l'article n°$i\")\n \t\t\t->setContenu(\"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repudiandae eum et vel inventore harum omnis minus. Minima neque perspiciatis, doloremque quia obcaecati harum, quae ut ipsa illo ad autem facilis beatae doloribus delectus veniam. Alias quibusdam praesentium saepe nisi repellat.\n Lorem ipsum dolor sit amet, consectetur adipisicing elit. Adipisci ab magnam dolor excepturi quidem blanditiis, consectetur reiciendis similique, voluptates incidunt odio accusantium quas.\n Officia sed, aliquid provident sapiente odio voluptate praesentium neque nobis, culpa animi consequatur ducimus atque repudiandae incidunt aperiam sint! Cum tempora hic velit.\n Dolorum pariatur facere vel consequuntur dignissimos a mollitia sint porro sequi, sed possimus temporibus eum. Ipsum facere quis eius harum, voluptates odit iusto.\n Mollitia, tempore, odio. Itaque sunt ducimus earum nostrum dolorum ratione saepe pariatur ipsum, in ad atque id, corporis, cum ea, omnis hic amet?\n Provident, iure quia nam minus praesentium velit hic placeat soluta ab recusandae, temporibus at aspernatur nisi magnam doloremque. Autem tempore inventore, unde architecto!\")\n \t\t\t->setDate(new \\DateTime());\n\n \t\t\t$manager->persist($article);\n }\n\n $manager->flush();\n }", "public function testFixtureLoadOnDemand(): void\n {\n $this->loadFixtures('Categories');\n }", "protected function reloadDataFixtures()\n {\n $em = $this->getEntityManager();\n $loader = new Loader;\n foreach ($this->dataFixturePaths as $path) {\n $loader->loadFromDirectory($path);\n }\n $purger = new ORMPurger($em);\n $executor = new ORMExecutor($em, $purger);\n $executor->execute($loader->getFixtures());\n $this->fixturesReloaded = true;\n }", "public function load(ObjectManager $manager)\n {\n //FOR LOAD METHOD WITHOUT DROP TABLE \"symfony console doctrine:fixtures:load --append\"\n $contenu_fichier_json = file_get_contents(__DIR__.'/datas.json');\n $datas = json_decode($contenu_fichier_json, true);\n\n foreach($datas['tools'] as $tools ){\n $user = new User();\n $user->setUsername($this->faker->userName)\n ->setEmail($this->faker->email)\n ->setRoles(User::ROLE_USER)\n ->setPassword($this->encoder->encodePassword($user, \"Hub3E2021!\"));\n $manager->persist($user);\n\n $newTools = new Tools();\n $newTools->setName($tools[\"name\"])\n ->setDescription($tools[\"description\"])\n ->setRelation($user);\n $manager->persist($newTools);\n }\n $simpleUser = new User();\n $simpleUser->setUsername(\"user\")\n ->setEmail(\"[email protected]\")\n ->setRoles(User::ROLE_USER)\n ->setPassword($this->encoder->encodePassword($simpleUser, \"Hub3E2021!\"));\n $manager->persist($simpleUser);\n\n $user = new User();\n $user->setUsername(\"admin\")\n ->setEmail(\"[email protected]\")\n ->setRoles(User::ROLE_ADMIN)\n ->setPassword($this->encoder->encodePassword($user, \"Hub3E2021!\"));\n $manager->persist($user);\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n #\n #\n //Fixtures::load(__DIR__.'/fixtures.yml', $manager);\n\n #\n # Same as above but with an extra 3th argument for the formatter providers\n # providers -> passing in this will add all providers to the yml file\n Fixtures::load(\n __DIR__.'/fixtures.yml',\n $manager,\n ['providers' => [$this] ]\n );\n\n\n\n #\n # Load yml file trough nativeloader\n #\n// $loader = new \\Nelmio\\Alice\\Fixtures\\Loader();\n// $objects = $loader->load(__DIR__.'/fixtures.yml', $manager);\n//\n// $persister = new \\Nelmio\\Alice\\Persister\\Doctrine($manager);\n// $persister->persist($objects);\n\n #\n # Loop a few times to create random entries\n #\n// // create 20 products! Bam!\n// for ($i = 0; $i < 20; $i++) {\n//\n// $genius = new Genius();\n// $genius->setName('Octopus'.rand(1, 100));\n// $genius->setSubFamily('Family'.rand(1, 100));\n// $genius->setSpeciesCount(rand(1, 100));\n// $genius->setFunFact('Funfact: '.rand(1, 100));\n// $genius->setLastUpdateAt( new \\DateTime(\"now\") );\n//\n// $manager->persist($genius);\n// $manager->flush();\n\n\n }", "public function load(ObjectManager $manager)\n {\n $userManager = $this->container->get('fos_user.user_manager');\n\n $user = $userManager->createUser();\n $user->setEmail('[email protected]');\n $user->setUsername('admin');\n $user->setname('admin');\n $user->setPlainPassword('admin');\n $user->setEnabled(true);\n $user->addRole('ROLE_ADMIN');\n $this->addReference('user-admin', $user);\n $userManager->updateUser($user);\n\n // Fixture article !\n for ($i = 0; $i < 8; $i++) {\n $Article = new Article();\n $Article->setTitle('Titre' . $i);\n $Article->setContent('Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.');\n $Article->setPrice('1399');\n $Article->setMainPicture('fixture0.jpeg');\n $Article->setGalleryPicture(['fixture1.jpeg','fixture2.jpeg','fixture3.jpeg','fixture4.jpeg','fixture5.jpeg','fixture6.jpeg']);\n $manager->persist($Article);\n }\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // Instance de la classe Faker avec un paramètre pour obtenir les données dans la langue souhaitée ->\n $faker = \\Faker\\Factory::create('fr_FR');\n\n // Création d'un tableau regroupant tous les faux utilisateurs ->\n $users = [];\n\n /*-------------------------------\n | CREATION D'UTILISATEURS |\n -------------------------------*/\n\n for ($m = 0; $m <= 10; $m++) {\n $user = new User();\n $user->setEmail($faker->email())\n ->setUsername($faker->name())\n ->setPassword($this->encoder->encodePassword($user, 'password'));\n\n $manager->persist($user);\n\n // Envoi de l'utilisateur vers le tableau ->\n $users[] = $user;\n } // EO for\n\n /*-------------------------------------------------------------------\n | CREATION DE CATEGORIES, D'ARTICLES, DE COMMENTAIRES ET DE LIKES |\n -------------------------------------------------------------------*/\n\n // Création de 3 fakes catégories ->\n for ($i = 1; $i <= 3; $i++) {\n $category = new Category();\n $category->setTitle($faker->sentence())\n ->setDescription($faker->paragraph());\n\n // Pour préparer la persistance des données ->\n $manager->persist($category);\n\n // Création de fakes articles à l'intérieur de ces catégories (entre 4 et 6) ->\n for ($j = 1; $j <= mt_rand(4, 6); $j++) {\n $article = new Article();\n $article->setTitle($faker->sentence())\n ->setContent($faker->paragraphs(5, true))\n ->setImage($faker->imageUrl(640, 480, 'Article illustration'))\n ->setCreatedAt($faker->dateTimeBetween('-6 months'))\n ->setCategory($category);\n\n $manager->persist($article);\n\n // Création de fakes commentaires pour ces articles (entre 4 et 10) ->\n for ($k = 1; $k <= mt_rand(4, 10); $k++) {\n $comment = new Comment();\n\n // Pour le createdAt du commentaire (forcément compris entre la date de création de l'article et aujourd'hui) ->\n $days = (new \\DateTime())->diff($article->getCreatedAt())->days;\n\n $comment->setAuthor($faker->name())\n ->setContent($faker->paragraphs(2, true))\n ->setCreatedAt($faker->dateTimeBetween('-' . $days . ' days'))\n ->setArticle($article);\n\n $manager->persist($comment);\n } // EO for\n\n // Création de fakes likes pour ces articles (entre 0 et 10) ->\n for ($l = 1; $l <= mt_rand(0, 10); $l++) {\n $like = new ArticleLike();\n $like->setArticle($article)\n ->setUser($faker->randomElement($users));\n\n $manager->persist($like);\n } // EO for\n\n } // EO for\n\n } // EO for\n\n /*-----------------------------\n | ENVOI DES FAUSSES DONNÉES |\n -----------------------------*/\n\n $manager->flush();\n\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n\n foreach( AbstractDataFixtures::CATEGORIES as $cat => $sub){\n $slugger = new AsciiSlugger();\n $mainCat = new Category();\n $mainCat\n ->setName($cat)\n ->setSlug($slugger->slug($cat));\n \n $manager->persist($mainCat);\n \n foreach ($sub as $subcats) {\n $subCat = new Category();\n $subCat\n ->setName($subcats)\n ->setSlug($slugger->slug($subcats))\n ->setParent($mainCat);\n \n $manager->persist($subCat);\n\n // mise en memoire les entité pour pouvoir y acceder dans d'autres fixtures\n // addReference : 2 parametres\n // identifiant unique de la référence\n // entité liée à la référence\n $this->addReference(\"subcategory-$subcats\", $subCat);\n }\n }\n \n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n //création de faux articles avec faker sans mettre de 'use'\n $faker = \\Faker\\Factory::create('fr_FR');\n for ($i=0; $i < 10; $i++) { \n $article = new Article();\n $article->setTitle($faker->word(2, true))\n ->setContent($faker->paragraphs(2, true))\n ->setImage($faker->imageUrl(300, 250))\n ->setCreatedAt($faker->dateTimeBetween('-6 month'));\n\n //sauvegarder article (objet) dans un tableau\n $manager->persist($article);\n }\n \n //envoie en bdd\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n $faker = \\Faker\\Factory::create('fr_FR');\n $user = [];\n for($i=0; $i < 10; $i++){\n $user = new User();\n $user->setFirstname($faker->firstname());\n $user->setLastname($faker->lastname());\n $user->setEmail($faker->email());\n $user->setPassword($faker->password());\n $user->setCreatedAt(new\\DateTime());\n $user->setBirthday(new\\DateTime());\n $manager->persist($user);\n $users[]= $user;\n\n }\n\n $category =[];\n for($i=0; $i < 3; $i++){\n $category = new Category();\n $category->setTitle($faker->text(50));\n $category->setDescription($faker->text(250));\n $category->setImage($faker->imageUrl());\n $manager->persist($category);\n $categories[] = $category;\n }\n $articles = [];\n for($i=0; $i < 6; $i++){\n $article =new Article();\n $article->setTitle($faker->text(50));\n $article->setContent($faker->text(1000));\n $article->setImage($faker->imageUrl());\n $article->setCreatedAt(new\\DateTimeImmutable());\n $article->addCategory($categories[$faker->numberBetween(0,2)]);\n $article->setAuthor($users[$faker->numberBetween(0,9)]);\n $manager->persist($article);\n }\n\n $manager->flush();\n }", "public function createData(EntityManager $em);", "public function load(ObjectManager $manager)\n {\n $faker = \\Faker\\Factory::create();\n\n $category = new Category();\n $category->setName($faker->sentence());\n $category->setDescription(\n $faker->realText($maxNbChars = 150, $indexSize = 2)\n );\n $manager->persist($category);\n $user = new User();\n $user->setUsername('username');\n $user->setEmail($faker->email());\n $user->setPassword($this->encoder->encodePassword($user, 'demo'));\n $user->setToken($faker->md5());\n $user->setIsValidated($faker->boolean());\n $user->setAvatar('avatarDefault.png');\n $user->setSubscribedAT($faker->dateTime());\n $user->setRoles(['ROLE_USER']);\n $manager->persist($user);\n for ($i = 1; $i <=10; $i++) {\n $trick = new Trick();\n $trick->setUser($user);\n $trick->setCategory($category);\n $trick->setName($faker->sentence());\n $content = '<p>'.join($faker->paragraphs(3), '</p><p>').'</p><p>';\n $trick->setDescription($content);\n $trick->setCreatedAt($faker->dateTime());\n $trick->setUpdatedAt($faker->dateTime());\n $manager->persist($trick);\n for ($j=1; $j<=5; $j++) {\n $comment = new Comment();\n $comment->setTrick($trick);\n $comment->setUser($user);\n $comment->setContent($faker->paragraph());\n $comment->setCommentedAt($faker->dateTime());\n $manager->persist($comment);\n }\n for ($k=1; $k<=3; $k++) {\n $image = new Illustration();\n $image->setTrick($trick);\n $image->setName($faker->name());\n $image->setUrl(\"fixtures$k.jpeg\");\n $manager->persist($image);\n }\n for ($m=1; $m<=3; $m++) {\n $media = new Video();\n $media->setTrick($trick);\n $media->setPlatform(\"youtube\");\n $media->setUrl('<iframe width=\"853\" height=\"480\" src=\"https://www.youtube.com/embed/V9xuy-rVj9w\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>');\n $manager->persist($media);\n }\n }\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n $faker = Factory::create('fr_FR');\n \n $user = new User();\n $user->setFirstname('Matthieu')\n ->setLastname('Poncet')\n ->setEmail('[email protected]')\n ->setPassword($this->passwordHasher->hashPassword($user,'123456'))\n ->setCreatedAt(new \\DateTime($faker->date('Y-m-d h:i')))\n ->setValid(true)\n ->setRoles(['ROLE_ADMIN']);\n\n $manager->persist($user);\n\n\n for ($i=0; $i < 10; $i++) { \n $category = new Category();\n $category->setTitle($faker->sentence(3))\n ->setDescription($faker->realText(600))\n ->setPicture('https://picsum.photos/300/200?id='.uniqid())\n ->setSlug($faker->slug(4));\n\n $manager->persist($category);\n for ($j=0; $j < 10; $j++) { \n $article = new Article();\n $article->setTitle($faker->sentence(3))\n ->setSubtitle($faker->sentence(10))\n ->setContent($faker->realText(600))\n ->setCreateAt(new \\DateTime($faker->date('Y-m-d H:i')))\n ->setPublishedAt(new \\DateTime($faker->date('Y-m-d H:i')))\n ->setPicture('https://picsum.photos/300/200?id='.uniqid())\n ->setValid(true)\n ->setAuthor($user)\n ->addCategory($category)\n ->setSlug($faker->slug(4));\n \n $manager->persist($article); \n }\n\n }\n\n\n $manager->flush();\n }", "private function loadItems(ObjectManager $em, $items)\n {\n foreach ($items as $ref => $item) {\n $fixture = new AlumniExperiences();\n\n $ref_aid = $this->getReference('alumni-'.$item['aid']);\n\n $fixture\n ->setAlumni($em->merge($ref_aid))\n ->setOrganization($item['organization']);\n\n if (array_key_exists('description', $item)) {\n $fixture->setDescription($item['description']);\n }\n\n if (array_key_exists('job_position', $item)) {\n $fixture->setJobPosition($item['job_position']);\n }\n\n if (array_key_exists('year_in', $item)) {\n $fixture->setYearIn($item['year_in']);\n }\n\n if (array_key_exists('year_out', $item)) {\n $fixture->setYearOut($item['year_out']);\n }\n\n $em->persist($fixture);\n }\n $em->flush();\n }", "public function load(ObjectManager $manager)\n {\n // TODO : Lorsque les fonctions de location seront créer refaire cette fixture en prenant en compte les état des véhicule (loué ou disponible)\n\n $faker = Factory::create('fr_FR');\n\n $users = $this->userRepository->findAll();\n $vehicle = $this->vehicleRepository->findBy(['state' => true]);\n\n\n for ($i = 0; $i <= 10; $i++) {\n $rental = new Rental();\n $rental->setClient($faker->randomElement($users));\n $rental->setVehicle($faker->randomElement($vehicle));\n $rental->setStartRentalDate(new DateTime());\n $rental->setEstimatedReturnDate(new DateTime());\n $rental->setRealReturnDate(new DateTime());\n $rental->setPrice($faker->randomFloat(2, 20, 220));\n\n $manager->persist($rental);\n }\n\n $manager->flush();\n\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n $faker = Factory::create('fr_FR');\n\n for($i=0;$i<15;$i++)\n {\n $post=new Post();\n $title=$faker->sentence($nbWords=5, $variableNbWords = true);\n $post->setTitle($title)\n ->setContent($faker->text($maxNbChars = 10000));\n\n $manager->persist($post);\n }\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n $this->manager = $manager;\n $this->faker = Faker\\Factory::create('fr_FR');\n\n // Executes the loadData function implemented by the user\n $this->loadData($manager);\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n\n $faker = Factory::create('fr_FR');\n\n\n for ($i = 0; $i < 8; $i++) {\n $patient = new Patient();\n\n // $chrono = 1;\n\n $patient->setFirstName($faker->firstName())\n ->setLastName($faker->lastName)\n ->setBirthdate($faker->dateTimeBetween('-30 years', '-15 years'));\n\n $user = new User();\n $user->setUsername(strtolower(substr($patient->getFirstName(), 0, 1)) . '.' . strtolower($patient->getLastName()))\n ->setPatient($patient)\n ->setPassword($this->encoder->encodePassword($user, $patient->getBirthdate()->format('Y-m-d'))); // format mot de passe 2002-07-21\n\n $manager->persist($patient);\n $manager->persist($user);\n\n /*for ($c = 0; $c < mt_rand(0, 4); $c++) {\n $exercice = new Exercice();\n $exercice->setName(strtoupper($faker->randomLetter))\n ->setNumberOf($faker->numberBetween(5, 20))\n ->setPatient($patient)\n ->setChrono($chrono);\n\n $chrono++;\n\n $manager->persist($exercice);\n }*/\n }\n\n\n $manager->flush();\n }", "protected function loadData(ObjectManager $manager)\n {\n for ($y = 0; $y < 15; $y++) {\n $this->createMany(User::class, 100, function (User $user, int $i) use ($y) {\n if ($y === 0 && $i === 0) {\n // Create default user\n $user\n ->setEmail('[email protected]')\n ->setFirstName('Default')\n ->setLastName('User')\n ->setAge($this->faker->numberBetween(15, 100))\n ->setSex($this->faker->randomElement(GenderEnum::getAvailableTypes()))\n ->setAboutMe($this->faker->text)\n ->setPassword($this->encoder->encodePassword($user, 'test'))\n ->setRoles(['ROLE_USER']);\n return;\n }\n\n // Create random users\n $user\n ->setEmail(($y + 1) . $i . $this->faker->email)\n ->setFirstName($this->faker->firstName)\n ->setLastName($this->faker->lastName)\n ->setAge($this->faker->numberBetween(7, 120))\n ->setSex($this->faker->randomElement(GenderEnum::getAvailableTypes()))\n ->setAboutMe($this->faker->text)\n ->setPassword($this->encoder->encodePassword($user, $user->getEmail()))\n ->setRoles(['ROLE_USER']);\n }, $y);\n\n $manager->flush();\n }\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n\n $faker = \\Faker\\Factory::create();\n \n for($i=0; $i<5; $i++)\n { \n $categorie = new Categorie();\n $categorie ->setTitre ($faker->sentence())\n ->setResumer ($faker->paragraph());\n \n $manager ->persist($categorie);\n \n for($j=0; $j<10; $j++)\n {\n $article = new Article();\n $article ->setTitle($faker->sentence())\n ->setContent($faker->paragraph($nbSentences = 10, $variableNbSentences = true))\n ->setImage($faker->imageUrl($width=400, $height=200))\n ->setCreatedAt(new \\DateTime())\n ->setCategorie ($categorie);\n \n $manager->persist($article);\n \n for($k=0; $k<10; $k++)\n {\n $commentaire = new commentaire();\n $commentaire ->setAuteur($faker->userName())\n ->setCommentaire($faker->paragraph())\n ->setCreatedAt(new \\DateTime())\n ->setArticle ($article);\n\n $manager->persist($commentaire);\n\n }\n }\n }\n\n $manager->flush(); \n \n }", "protected function loadData(ObjectManager $manager)\n {\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n $faker = Factory::create('fr_FR');\n\n for ($i = 0; $i < 10; $i++) {\n $post = new Post();\n $post->setTitle($faker->sentence($nbWords = 2, $variableNbWords = true))\n ->setContent($faker->sentence($nbWords = 10, $variableNbWords = true))\n ->setAuthor($faker->name())\n ->setCreatedAt($faker->dateTimeBetween('-6 months'));\n\n $manager->persist($post);\n }\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n $this->manager = $manager;\n $this->faker = Faker::create();\n\n $this->loadData($manager);\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n $faker = Faker\\Factory::create('fr_FR');\n //users \n // on créé 10 personnes\n for ($i = 0; $i < 10; $i++) {\n $user = new Users();\n $user->setName($faker->name);\n $manager->persist($user);\n\n $question = new Questions();\n $question->setTitle($faker->title);\n $question->setContent($faker->realText);\n $question->setUser($user);\n $manager->persist($question);\n\n $answer = new Answers();\n $answer->setContent($faker->realText);\n $answer->setStatus($faker->boolean);\n $answer->setQuestion($question);\n $manager->persist($answer);\n }\n\n //answers\n $manager->flush();\n }", "public function load(ObjectManager $em)\n {\n $faker = Faker\\Factory::create('fr_FR');\n\n for ($i = 0; $i < DataParameters::NB_PRODUCT; $i++)\n {\n $product = new Product();\n $product->setName($faker->word(1, true));\n $product->setDescription($faker->sentences(7, true));\n $em->persist($product);\n\n $this->setReference('product_id_' . $i, $product);\n }\n $em->flush();\n\n }", "public function load(ObjectManager $manager)\n {\n $content1 = new Content();\n $content1->setName(\"Test_Content_1\");\n $content1->setPath(\"https://bitdash-a.akamaihd.net/content/MI201109210084_1/mpds/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.mpd\");\n $content1->setOrdinance(1);\n $manager->persist($content1);\n\n $content2 = new Content();\n $content2->setName(\"Test_Content_2\");\n $content2->setPath(\"https://bitdash-a.akamaihd.net/content/MI201109210084_1/mpds/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.mpd\");\n $content2->setOrdinance(2);\n $manager->persist($content2);\n\n $content3 = new Content();\n $content3->setName(\"Test_Content_3\");\n $content3->setPath(\"https://bitdash-a.akamaihd.net/content/MI201109210084_1/mpds/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.mpd\");\n $content3->setOrdinance(3);\n $manager->persist($content3);\n\n $content4 = new Content();\n $content4->setName(\"Test_Content_4\");\n $content4->setPath(\"https://bitdash-a.akamaihd.net/content/MI201109210084_1/mpds/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.mpd\");\n $content4->setOrdinance(4);\n $manager->persist($content4);\n\n $content5 = new Content();\n $content5->setName(\"Test_Content_5\");\n $content5->setPath(\"https://bitdash-a.akamaihd.net/content/MI201109210084_1/mpds/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.mpd\");\n $content5->setOrdinance(5);\n $manager->persist($content5);\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n for ($i = 100; $i <= 105; $i++)\n {\n $jobs_sensio_labs = new Job();\n $jobs_sensio_labs->setCategory($manager->merge($this->getReference(\"category-programming\")));\n $jobs_sensio_labs->setType(\"full-time\");\n $jobs_sensio_labs->setCompany(\"Sensio Labs\" . $i);\n $jobs_sensio_labs->setLogo(\"sensio-labs.gif\");\n $jobs_sensio_labs->setUrl(\"http://www.sensiolabs.com/\");\n $jobs_sensio_labs->setPosition(\"Web Developer\");\n $jobs_sensio_labs->setLocation(\"Paris, France\");\n $jobs_sensio_labs->setDescription(\"You've already developed websites with symfony and you want to work with Open-Source technologies. You have a minimum of 3 years experience in web development with PHP or Java and you wish to participate to development of Web 2.0 sites using the best frameworks available.\");\n $jobs_sensio_labs->setHowToApply(\"Send your resume to fabien[a]sensio.com\");\n $jobs_sensio_labs->setIsPublic(true);\n $jobs_sensio_labs->setIsActivated(true);\n $jobs_sensio_labs->setEmail(\"[email protected]\");\n $jobs_sensio_labs->setExpiresAt(new \\DateTime(\"+30 days\"));\n\n $manager->persist($jobs_sensio_labs);\n }\n\n for ($i = 100; $i <= 130; $i++)\n {\n $job_extreme_sensio = new Job();\n $job_extreme_sensio->setCategory($manager->merge($this->getReference('category-design')));\n $job_extreme_sensio->setType('part-time');\n $job_extreme_sensio->setCompany('Extreme Sensio ' . $i);\n $job_extreme_sensio->setLogo('extreme-sensio.gif');\n $job_extreme_sensio->setUrl('http://www.extreme-sensio.com/');\n $job_extreme_sensio->setPosition('Web Designer');\n $job_extreme_sensio->setLocation('Paris, France');\n $job_extreme_sensio->setDescription('Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in.');\n $job_extreme_sensio->setHowToApply('Send your resume to fabien.potencier [at] sensio.com');\n $job_extreme_sensio->setIsPublic(true);\n $job_extreme_sensio->setIsActivated(true);\n $job_extreme_sensio->setEmail('[email protected]');\n $job_extreme_sensio->setExpiresAt(new \\DateTime('+30 days'));\n\n $manager->persist($job_extreme_sensio);\n }\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n $date = new \\DateTime();\n\n\n for ($i = 0; $i < 20; $i++) {\n $article = new Article();\n $article->setTitle('article ' . $i);\n $article->setContent($this->generer_lipsum(300, 'words'));\n $article->setAuthor('Bibi');\n $article->setDate( $date );\n $article->setCategory('catégorie ' . mt_rand(1, 5));\n $article->setViewCount(mt_rand(1, 1000));\n\n $manager->persist($article);\n }\n $manager->flush();\n }", "protected function createFixtures()\n {\n // Due to a dubious bug(?) in doctrine - product types need to be loaded first.\n $typeFixtures = new LoadProductTypes();\n $typeFixtures->load($this->entityManager);\n $this->productType = $this->getProductTypeRepository()->find(self::PRODUCT_TYPE_ID);\n $this->addonProductType = $this->getProductTypeRepository()->find(self::PRODUCT_TYPE_ADDON_ID);\n\n $countries = new LoadCountries();\n $countries->load($this->entityManager);\n\n $this->contactTestData = new ContactTestData($this->container);\n\n $loadCurrencies = new LoadCurrencies();\n $loadCurrencies->load($this->entityManager);\n\n $this->currency = $this->getCurrencyRepository()->findByCode($this->defaultCurrencyCode);\n\n $unitFixtures = new LoadUnits();\n $unitFixtures->load($this->entityManager);\n $this->orderUnit = $this->getProductUnitRepository()->find(self::ORDER_UNIT_ID);\n\n $this->contentUnit = $this->getProductUnitRepository()->find(self::CONTENT_UNIT_ID);\n\n $taxClasses = new LoadTaxClasses();\n $taxClasses->load($this->entityManager);\n $this->taxClass = $this->getTaxClassRepository()->find(self::TAX_CLASS_ID);\n\n $countryTaxes = new LoadCountryTaxes();\n $countryTaxes->load($this->entityManager);\n\n $collectionTypes = new LoadCollectionTypes();\n $collectionTypes->load($this->entityManager);\n\n $mediaTypes = new LoadMediaTypes();\n $mediaTypes->load($this->entityManager);\n\n $attributeTypes = new LoadAttributeTypes();\n $attributeTypes->load($this->entityManager);\n $this->attributeType = $this->getAttributeTypeRepository()->find(self::ATTRIBUTE_TYPE_ID);\n\n $statusFixtures = new LoadProductStatuses();\n $statusFixtures->load($this->entityManager);\n $this->productStatus = $this->getProductStatusRepository()->find(Status::ACTIVE);\n $this->productStatusChanged = $this->getProductStatusRepository()->find(Status::CHANGED);\n $this->productStatusImported = $this->getProductStatusRepository()->find(Status::IMPORTED);\n $this->productStatusSubmitted = $this->getProductStatusRepository()->find(Status::SUBMITTED);\n\n $deliveryStatusFixtures = new LoadDeliveryStatuses();\n $deliveryStatusFixtures->load($this->entityManager);\n }", "function load(ObjectManager $manager)\n\t{\n\t\t$entities = [\n\t\t\tEntity::createDefault(1, 18, 0), // 1\n\t\t\tEntity::createDefault(2, 5, 1), // 2\n\t\t\tEntity::createDefault(6, 15, 1), // 3\n\t\t\tEntity::createDefault(16, 17, 1), // 4\n\t\t\tEntity::createDefault(3, 4, 2), // 5\n\t\t\tEntity::createDefault(7, 8, 2), // 6\n\t\t\tEntity::createDefault(9, 10, 2), // 7\n\t\t\tEntity::createDefault(11, 14, 2), // 8\n\t\t\tEntity::createDefault(12, 13, 3), // 9\n\t\t];\n\t\tforeach ($entities as $entity) {\n\t\t\t$manager->persist($entity);\n\t\t}\n\t\t$manager->flush();\n\t}", "public function load(ObjectManager $manager)\n {\n $employees = array(\n array(\"remi\", \"rebeil\", \"blabla\", \"https://www.youtube.com/watch?v=HeNURpr3vaw\"),\n array(\"christophe\", \"lacassagne\", \"blathrhe\", \"https://www.youtube.com/watch?v=Ua4XhSoEQZ0\"),\n array(\"delphine\", \"janton\", \"zdfsdf\", \"https://www.youtube.com/watch?v=DD7hm67cfbc\"),\n );\n\n foreach ($employees as $employee) {\n $employeeObj = new Employees();\n $employeeObj->setFirstName($employee[0]);\n $employeeObj->setLastName($employee[1]);\n $employeeObj->setVideoDescription($employee[2]);\n $employeeObj->setVideoUrl($employee[3]);\n\n $manager->persist($employeeObj);\n unset($employeeObj);\n }\n $manager->flush();\n $manager->clear();\n }", "protected function getFixtures()\n {\n return array(\n // __DIR__ . '/../../Resources/fixtures/majora_entitys.yml',\n );\n }", "public function load(ObjectManager $manager)\n {\n // TODO: Implement load() method.\n //load medecin\n for($i=1;$i<20;$i++){\n $medecin= new Medecin();\n $medecin->setNomComplet('medecin'.$i);\n $medecin->setMatricule('mat'.$i);\n $manager->persist($medecin);\n }\n //load patient\n for($i=1;$i<20;$i++){\n $patient= new Patient();\n $patient->setNomComplet('patient'.$i);\n $patient->setDateNaissance(new \\DateTime());\n $patient->setNumDossier('dossier'.' '.$i);\n $manager->persist($patient);\n }\n $user = new User();\n $user->setEmail('[email protected]');\n $user->setUsername('admin');\n $user->setPlainPassword('admin');\n $user->setEnabled(true);\n $manager->persist($user);\n\n //events\n $schedule = new Schedule();\n $schedule->setTitle('Yoga class');\n $today = new \\DateTime();\n $endate= new \\DateTime(\"tomorrow\");\n $schedule->setStart($today);\n $schedule->setEnd($endate);\n $manager->persist($schedule);\n $schedule = new Schedule();\n $schedule->setTitle('German class');\n $tomorrow = new \\DateTime('tomorrow');\n $schedule->setStart($tomorrow);\n $schedule->setEnd($tomorrow);\n $manager->persist($schedule);\n $schedule = new Schedule();\n $schedule->setTitle('rendez vous');\n $tomorrow = new \\DateTime('tomorrow');\n $schedule->setStart($tomorrow);\n $schedule->setEnd($tomorrow);\n $manager->persist($schedule);\n\n //load crenneau medecin\n/* for($i=1;$i<20;$i++){\n $crenneauMedecin=new CreneauxMedecin();\n $crenneauMedecin->setCodeCrenneaux('creMedecin n°'.$i);\n $crenneauMedecin->setMedecin($manager->getRepository('AppBundle:Medecin')->findOneBy(array('nomComplet'=>'medecin'.$i)));\n $crenneauMedecin->setHeureDebut(new \\DateTime());\n $crenneauMedecin->setHeureFin(new \\DateTime());\n $manager->persist($crenneauMedecin);\n\n }*/\n $manager->flush();\n }", "protected function _loadFixture($fixture)\n {\n $this->db->query(file_get_contents(\n NL_TEST_DIR.\"/tests/migration/fixtures/$fixture.sql\"\n ));\n }", "public function load(ObjectManager $manager)\r\n {\r\n\r\n $faker = Faker::create();\r\n foreach (range(1,20) as $key => $value){\r\n $tag = new Tag();\r\n $tag->setNome($faker->city);\r\n $this->addCustomers($tag);\r\n $this->addCampaigns($tag);\r\n $manager->persist($tag);\r\n }\r\n\r\n $manager->flush();\r\n }", "public function load()\n {\n $this\n ->objectManager\n ->createQuery('DELETE FROM ' . Member::class)\n ->execute()\n ;\n Fixtures::load(\n __DIR__ . '/../../fixtures/members.yml',\n $this->objectManager\n );\n }", "public function load(ObjectManager $manager)\n {\n $faker = Factory::create();\n\n foreach (['ile-mysterieuse', 'dale' ] as $bookRef) {\n $book = $this->getReference($bookRef);\n $exemplaire = new Exemplaire();\n\n $exemplaire->setLivre($book);\n\n $exemplaire->setDateAcquis($faker->dateTime)\n ->setCode($faker->ean8)\n ->setCout(5000)\n ->setEtat(\"parfait\");\n\n $exemplaire->getLivre()->addExemplaire($exemplaire);\n\n $manager->persist($exemplaire);\n $manager->persist($book);\n $manager->flush();\n\n $this->addReference(\"exemplaire-$bookRef\", $exemplaire);\n }\n\n\n }", "public function load(ObjectManager $manager)\n {\n\n $faker = Faker\\Factory::create('en_US');\n\n // Creating admin user\n $admin = new User();\n $admin->setEmail('[email protected]');\n $admin->setRoles(['ROLE_ADMIN']);\n $admin->setPassword($this->passwordEncoder->encodePassword(\n $admin,\n 'adminpassword'\n ));\n\n $manager->persist($admin);\n\n // Creating cluber user : run team\n $cluber = new User();\n $cluber->setEmail('[email protected]');\n $cluber->setRoles(['ROLE_CLUBER']);\n $cluber->setPassword($this->passwordEncoder->encodePassword(\n $cluber,\n 'clubpassword'\n ));\n $manager->persist($cluber);\n\n // Creating cluber user : swim team\n $cluber2 = new User();\n $cluber2->setEmail('[email protected]');\n $cluber2->setRoles(['ROLE_CLUBER']);\n $cluber2->setPassword($this->passwordEncoder->encodePassword(\n $cluber2,\n 'clubpassword'\n ));\n $manager->persist($cluber2);\n\n // Fixtures for profil -(//\n $profilClub = new ProfilClub();\n $profilClub->setNameClub('Run Team');\n $profilClub->setCityClub('Lille');\n $profilClub->setLogoClub('avatar2.jpg');\n $profilClub->setDescriptionClub('Petite equipe Lilloise');\n $profilClub->addUser($cluber);\n $manager->persist($profilClub);\n\n $profilClub2 = new ProfilClub();\n $profilClub2->setNameClub('Swim Team');\n $profilClub2->setCityClub('Douai');\n $profilClub2->setLogoClub(\n 'https://image.shutterstock.com/image-vector/swimming-club-logo-design-swimmer-600w-255149764.jpg'\n );\n $profilClub2->setDescriptionClub('Club de natation');\n $profilClub2->addUser($cluber2);\n $manager->persist($profilClub2);\n\n // Fixtures for profil Solo//\n $profilSolo = new ProfilSolo();\n $profilSolo->setLastname('Doe');\n $profilSolo->setFirstname('Jonh');\n $profilSolo->setBirthdate(new DateTime(141220));\n $profilSolo->setDescription('J\\'ai perdu la mémoire ! Mais j\\'aime nager en crawl.');\n $profilSolo->setGender(0);\n $profilSolo->setAvatar('https://randomuser.me/api/portraits/men/97.jpg');\n $profilSolo->setEmergencyContactName('Pascale Dino');\n $profilSolo->setLevel(1);\n $profilSolo->setSportFrequency(2);\n $profilSolo->setPhone('0000000000');\n $profilSolo->setEmergencyPhone('0000000000');\n $profilSolo->setProfilClub($profilClub2);\n $manager->persist($profilSolo);\n\n // Fixtures for profil Solo2//\n $profilSolo2= new ProfilSolo();\n $profilSolo2->setLastname('Franz');\n $profilSolo2->setFirstname('Albert');\n $profilSolo2->setBirthdate(new DateTime(141220));\n $profilSolo2->setDescription('Je suis Albert');\n $profilSolo2->setGender(0);\n $profilSolo2->setAvatar('https://randomuser.me/api/portraits/men/97.jpg');\n $profilSolo2->setEmergencyContactName('Pascale Dino');\n $profilSolo2->setLevel(1);\n $profilSolo2->setSportFrequency(2);\n $profilSolo2->setPhone('0000000000');\n $profilSolo2->setEmergencyPhone('0000000000');\n $profilSolo2->setProfilClub($profilClub2);\n $manager->persist($profilSolo2);\n\n\n // Creating lambda user\n $user = new User();\n $user->setProfilSolo($profilSolo);\n $user->setEmail('[email protected]');\n $user->setRoles(['ROLE_USER']);\n $user->setPassword($this->passwordEncoder->encodePassword(\n $user,\n 'userpassword'\n ));\n\n \n $manager->persist($user);\n\n /* $users[] = $user;*/\n \n // Creating lambda user2\n $user2 = new User();\n $user2->setProfilSolo($profilSolo2);\n $user2->setEmail('[email protected]');\n $user2->setRoles(['ROLE_USER']);\n $user2->setPassword($this->passwordEncoder->encodePassword(\n $user2,\n 'userpassword'\n ));\n $manager->persist($user2);\n\n // Fixtures for sportCategory//\n $sportCategory = new SportCategory();\n $sportCategory->setNameCategory('Running');\n $manager->persist($sportCategory);\n\n // Fixtures for sport//\n $sport= new Sport();\n $sport->setSportName('Course à pied');\n $sport->setSportCategory($sportCategory);\n $manager->persist($sport);\n\n // Fixtures for event page//\n $event = new Event();\n $event->setNameEvent('Entrainement de course ');\n $event->setLevelEvent(1);\n $event->setDateEvent($faker->dateTimeThisMonth);\n $event->setTimeEvent($faker->dateTimeThisMonth);\n $event->setDescription('Courses dans la nature');\n $event->setParticipantLimit('10');\n $event->setPlaceEvent('23 place des ecoliers 59000 Lille');\n $event->setSport($sport);\n $event->setCreatorClub($profilClub);\n $manager->persist($event);\n\n // Fixtures for GeneralChatClub\n $messageClub = new GeneralChatClub();\n $messageClub->setProfilClub($profilClub2);\n $messageClub->setDateMessage(new DateTime('now'));\n $messageClub->setContentMessage('Bonjour, je suis un club de natation');\n $manager->persist($messageClub);\n\n \n //participation\n /*for ($j = 0; $j < mt_rand(0, 10); $j++) {\n $participationLike = new ParticipationLike();\n\n $participationLike->setEvent($event)\n ->setUser($faker->randomElement($users));\n $manager->persist($participationLike);\n\n\n $manager->flush();\n }*/\n\n $messageClub2 = new GeneralChatClub();\n $messageClub2->setProfilClub($profilClub);\n $messageClub2->setDateMessage(new DateTime('now'));\n $messageClub2->setContentMessage('Bonjour, je suis un club de run');\n $manager->persist($messageClub2);\n\n $messageSolo = new GeneralChatClub();\n $messageSolo->setProfilClub($profilClub2);\n $messageSolo->setProfilSolo($profilSolo);\n $messageSolo->setDateMessage(new DateTime('now'));\n $messageSolo->setContentMessage('Bonjour, je suis John.');\n $manager->persist($messageSolo);\n\n $manager->flush();\n }", "public function load(ObjectManager $manager) {\n for ($i = 0; $i < 2; $i++) {\n $jobFaker = Faker\\Factory::create();\n\n // Employeer\n $employeer = new Employeers();\n $employeer->setUsername(\"empleador_$i\");\n $employeer->setEmail(\"[email protected]\");\n $employeer->setPassword(\"4Vientos\");\n\n $employeer->setVCIF(\"82102288A\");\n $employeer->setVName($jobFaker->company);\n $employeer->setVLogo($jobFaker->imageUrl($width = 640, $height = 480));\n $employeer->setVDescription($jobFaker->sentence);\n $employeer->setVContactName($jobFaker->name);\n $employeer->setVContactPhone($jobFaker->phoneNumber);\n $employeer->setVContactMail($jobFaker->companyEmail);\n $employeer->setVLocation($jobFaker->address);\n $employeer->setNNumberOfWorkers($jobFaker->numberBetween(0, 255));\n $employeer->setCreationUser(\"InitialFixture\");\n $employeer->setCreationDate(new \\DateTime(\"2018-6-1\"));\n $employeer->setModificationUser(\"InitialFixture\");\n $employeer->setModificationDate(new \\DateTime(\"2018-6-1\"));\n\n $manager->persist($employeer);\n\n // Poemas\n \n $poema = new poemas();\n $poema->setUser();\n $poema->setTexto($texto);\n $poema->setCategory();\n \n // Offer\n $offer = new Offers();\n $offer->setVOfferCode(\"ACTIVE\");\n $offer->setVOfferType('full-time');\n $offer->setDActivationDate(new \\DateTime(\"2019-1-1\"));\n $offer->setDDueDate(new \\DateTime(\"2019-2-$i\"));\n $offer->setVPosition(\"Developer\");\n $offer->setLtextDuties($jobFaker->paragraph);\n $offer->setLtextDescription($jobFaker->paragraph);\n $offer->setVSalaray(\"1200\");\n $offer->setLtextExperienceRequirements($jobFaker->paragraph);\n $offer->setVLocation($jobFaker->city . ', ' . $jobFaker->country);\n\n $offer->setEmployeer($employeer);\n\n $offer->setCreationUser(\"InitialFixture\");\n $offer->setCreationDate(new \\DateTime(\"2018-6-1\"));\n $offer->setModificationUser(\"InitialFixture\");\n $offer->setModificationDate(new \\DateTime(\"2018-6-1\"));\n\n $manager->persist($offer);\n }\n\n // Creating 2 FormedStudents\n for ($i = 0; $i < 2; $i++) {\n $studentFaker = Faker\\Factory::create();\n\n $formedStudent = new FormerStudents();\n $formedStudent->setUsername(\"exalumno_$i\");\n $formedStudent->setEmail(\"[email protected]\");\n $formedStudent->setPassword(\"4Vientos\");\n\n $formedStudent->setVNIF($studentFaker->randomNumber(6));\n $formedStudent->setVName($studentFaker->firstName);\n $formedStudent->setVSurnames($studentFaker->lastName);\n $formedStudent->setVAddress($studentFaker->streetAddress);\n $formedStudent->setDBirthDate($studentFaker->dateTime);\n $formedStudent->setBVehicle($studentFaker->boolean);\n\n $formedStudent->setCreationUser(\"InitialFixture\");\n $formedStudent->setCreationDate(new \\DateTime(\"2018-8-1\"));\n $formedStudent->setModificationUser(\"InitialFixture\");\n $formedStudent->setModificationDate(new \\DateTime(\"2018-6-1\"));\n $manager->persist($formedStudent);\n }\n\n \n\n\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n $person1 = new Person();\n $person1->setPseudo('MOI')\n ->setLastname('Pikachu')\n ->setLevel(100)\n ->setGuild('Pokemon')\n ->setRank($this->getReference(RankFixtures::RANK_ONE))\n ->setImage('')\n ->setUser($this->getReference(UserFixtures::USER_ONE));\n\n $manager->persist($person1);\n $manager->flush();\n\n $person2 = new Person();\n $person2->setPseudo('KAL-EL')\n ->setLastname('Kent')\n ->setFirstname('Clark')\n ->setLevel(90)\n ->setGuild('Alien')\n ->setRank($this->getReference(RankFixtures::RANK_TWO))\n ->setImage('')\n ->setUser($this->getReference(UserFixtures::USER_TWO));\n\n $manager->persist($person2);\n $manager->flush();\n\n $person3 = new Person();\n $person3->setPseudo('One-PunchMan')\n ->setLastname('Saitama')\n ->setLevel(90)\n ->setGuild('Human')\n ->setRank($this->getReference(RankFixtures::RANK_TWO))\n ->setImage('')\n ->setUser($this->getReference(UserFixtures::USER_THREE));\n\n $manager->persist($person3);\n $manager->flush();\n\n $person4 = new Person();\n $person4->setPseudo('Mugiwara')\n ->setName('Monkey.D')\n ->setFirstname('Luffy')\n ->setLevel(80)\n ->setGuild('Pirate')\n ->setRank($this->getReference(RankFixtures::RANK_FOUR))\n ->setImage('')\n ->setUser($this->getReference(UserFixtures::USER_FOUR));\n\n $manager->persist($person4);\n $manager->flush();\n\n }", "public function load(ObjectManager $manager)\n {\n $user = new User();\n $user\n ->setUsername('admin')\n ->setEmail('[email protected]')\n ->setIsActive(true)\n ;\n $password = $this->encoder->encodePassword($user, '20E!xI&$Zx');\n $user->setPassword($password);\n\n $manager->persist($user);\n\n\n $user = new User();\n $user\n ->setUsername('pete')\n ->setEmail('[email protected]')\n ->setIsActive(true)\n ;\n $password = $this->encoder->encodePassword($user, 'shuoop');\n $user->setPassword($password);\n\n $manager->persist($user);\n\n // Create some customers\n for ($i = 0; $i < 25; $i++) {\n $cust = new Customer();\n $cust\n ->setAccountRef('CUST000' . $i)\n ->setName($this->faker->company)\n ->setTelephone($this->faker->phoneNumber)\n ->setEmail($this->faker->companyEmail)\n ->setContactName($this->faker->name)\n ->setAddress($this->address())\n ;\n $manager->persist($cust);\n }\n\n // Create some vehicles\n for ($i = 0; $i < 15; $i++) {\n $vehicle = new Vehicle();\n $vehicle\n ->setRegistration(strtoupper($this->vehicleReg()))\n ->setModel(ucfirst($this->faker->word))\n ->setMake(ucfirst($this->faker->word))\n ->setVehicleType($manager->getReference(VehicleType::class, $this->vehicleTypes()[array_rand($this->vehicleTypes())]))\n ->setDepth($this->faker->randomFloat(2, 0, 100))\n ->setWidth($this->faker->randomFloat(2, 0, 100))\n ->setHeight($this->faker->randomFloat(2, 0, 100))\n ;\n $manager->persist($vehicle);\n }\n\n // Create some drivers\n for ($i = 0; $i < 15; $i++) {\n $driver = new Driver();\n $driver\n ->setName($this->faker->name)\n ->setTelephone($this->faker->phoneNumber)\n ->setEmail($this->faker->freeEmail)\n ->setTradingName($driver->getName())\n ->setAddress($this->address())\n ->setSubcontractor(false)\n ;\n $manager->persist($driver);\n }\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n\n $empresa1=new Empresas();\n $empresa1->setNombre(\"Vodafone\");\n $empresa1->setDireccion('C/La piruleta 34');\n $empresa1->setFechaRegistro(new \\DateTime('2019-05-04'));\n $manager->persist($empresa1);\n\n $empresa2=new Empresas();\n $empresa2->setNombre(\"Apple\");\n $empresa2->setDireccion('C/Inventada 24');\n $empresa2->setFechaRegistro(new \\DateTime('1980-03-10'));\n $manager->persist($empresa2);\n\n $empresa3=new Empresas();\n $empresa3->setNombre(\"Xiaomi\");\n $empresa3->setDireccion('C/Inexistente 1');\n $empresa3->setFechaRegistro(new \\DateTime('2010-06-12'));\n $manager->persist($empresa3);\n\n $empresa4=new Empresas();\n $empresa4->setNombre(\"Acer\");\n $empresa4->setDireccion('Avda. El Brillante 9');\n $empresa4->setFechaRegistro(new \\DateTime('2004-08-22'));\n $manager->persist($empresa4);\n\n $empresa5=new Empresas();\n $empresa5->setNombre(\"Philips\");\n $empresa5->setDireccion('C/No se 7');\n $empresa5->setFechaRegistro(new \\DateTime('1995-06-02'));\n $manager->persist($empresa5);\n\n\n $empleado1=new Empleados();\n $empleado1->setNombre('Manuel');\n $empleado1->setApellidos('Jimenez Rodriguez');\n $empleado1->setEstadoCivil('soltero');\n $empleado1->setActivo(true);\n $empleado1->setImagen(null);\n $empleado1->setEmpresa($empresa1);\n $empleado1->setNumeroHijos(0);\n $empleado1->setFechaNacimiento(new \\DateTime('2020-01-01'));\n $manager->persist($empleado1);\n\n $empleado2=new Empleados();\n $empleado2->setNombre('Gonzalo');\n $empleado2->setApellidos('Sanchez Lopez');\n $empleado2->setEstadoCivil('divorciado');\n $empleado2->setActivo(true);\n $empleado2->setImagen(null);\n $empleado2->setEmpresa($empresa1);\n $empleado2->setNumeroHijos(1);\n $empleado2->setFechaNacimiento(new \\DateTime('1940-05-10'));\n $manager->persist($empleado2);\n\n $empleado3=new Empleados();\n $empleado3->setNombre('Maria');\n $empleado3->setApellidos('Fernandez Alamo');\n $empleado3->setEstadoCivil('casado');\n $empleado3->setActivo(true);\n $empleado3->setImagen(null);\n $empleado3->setEmpresa($empresa1);\n $empleado3->setNumeroHijos(3);\n $empleado3->setFechaNacimiento(new \\DateTime('1990-01-01'));\n $manager->persist($empleado3);\n\n $empleado4=new Empleados();\n $empleado4->setNombre('Ana');\n $empleado4->setApellidos('Cabezas Rodriguez');\n $empleado4->setEstadoCivil('viudo');\n $empleado4->setActivo(true);\n $empleado4->setImagen(null);\n $empleado4->setEmpresa($empresa2);\n $empleado4->setNumeroHijos(0);\n $empleado4->setFechaNacimiento(new \\DateTime('1993-04-10'));\n $manager->persist($empleado4);\n\n $empleado5=new Empleados();\n $empleado5->setNombre('Raul');\n $empleado5->setApellidos('Prieto Martinez');\n $empleado5->setEstadoCivil('soltero');\n $empleado5->setActivo(true);\n $empleado5->setImagen(null);\n $empleado5->setEmpresa($empresa3);\n $empleado5->setNumeroHijos(0);\n $empleado5->setFechaNacimiento(new \\DateTime('2001-05-12'));\n $manager->persist($empleado5);\n\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n\n $parent = new Parents();\n $parent->setPrenom(\"Soiei\");\n $parent->setNom(\"SIe\");\n $parent->setEmail(\"SIseos\");\n $parent->setAdr(\"SOskaoisa\");\n $parent->setMethodeContact(\"OISoeie\");\n $parent->setTel(\"S0Keiosk\");\n $parent->setResponsable(\"OSkes\");\n\n $parents=new ArrayCollection();\n $parents->add($parent);\n\n // create 20 products! Bam!\n for ($i = 0; $i < 3; $i++) {\n $eleve = new Eleve();\n $parent->setEleve($eleve);\n\n $eleve->setNom('NomEns '.$i);\n $eleve->setPrenom('PrenomEns '.$i);\n $eleve->setUsername('setUsername '.$i);\n $eleve->setPassword('setPassword '.$i);\n $eleve->setEmail('setEmail '.$i);\n $eleve->setAdresse('setAdresse '.$i);\n $eleve->setRoles(['ROLE_ELEVE']);\n $eleve->setImageName(\"tester.jpg\");\n $eleve->setDateNaissance(new \\DateTime());\n $eleve->setTelephone(\"2205826\".$i);\n $eleve->setSex(\"H\");\n $eleve->addParent($parent);\n\n\n $manager->persist($eleve);\n $this->addReference('eleve'.$i, $eleve);\n\n }\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\r\n {\r\n $disciplinas = $manager->getRepository('BackendBundle:Disciplinas')->findAll();\r\n\r\n foreach ($disciplinas as $disciplina) {\r\n $deportesTinn = new CampeonatoDisciplina();\r\n $deportesTinn->setMaximo(50); \r\n $deportesTinn->setMinimo(50);\r\n $deportesTinn->setInicio(new \\DateTime('2016-11-21'));\r\n $deportesTinn->setFin(new \\DateTime('2016-12-16'));\r\n $deportesTinn->setDisciplina($disciplina);\r\n $deportesTinn->setCampeonato($this->getReference('campeonato'));\r\n $deportesTinn->setAbierto(50);\r\n $deportesTinn->setEntrenador(1);\r\n $deportesTinn->setAsistente(1);\r\n $deportesTinn->setDelegado(1);\r\n $deportesTinn->setMedico(1);\r\n $deportesTinn->setLogistico(1);\r\n $manager->persist($deportesTinn);\r\n $manager->flush(); \r\n }\r\n }", "public function load(ObjectManager $manager)\n {\n for ($i = 0; $i < 20; $i++) {\n $article = new Article();\n $article->setTitle('product '.$i)\n ->setSlug(\"product-\".$i)\n ->setContent(\"Contenu du produit...\")\n ->setPicture(\"\")\n ->setIsPublished(true)\n ->setPublishedAt(new \\DateTime('now'))\n ->setUpdatedAt(new \\DateTime('now'))\n ;\n $manager->persist($article);\n }\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n $exampleSet = array();\n\n shuffle(self::$tweets);\n shuffle(self::$growls);\n shuffle(self::$hisses);\n\n shuffle(self::$feathersDescriptions);\n shuffle(self::$furDescriptions);\n shuffle(self::$scaleDescriptions);\n\n shuffle(self::$names);\n\n $this->loadMammals($exampleSet);\n $this->loadReptiles($exampleSet);\n $this->loadBirds($exampleSet);\n\n foreach ($exampleSet as $example)\n {\n $manager->persist($example);\n }\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n $entry1 = new Entry();\n $entry1->setAvgSpeed(10.0);\n $dateInput = \"2014-01-01\";\n $date = $date = new DateTime();\n $date->setTimestamp(strtotime($dateInput));\n $entry1->setDate($date);\n $entry1->setDistance(12);\n $entry1->setTime(1.2);\n $entry1->setUserId(2);\n $manager->persist($entry1);\n\n $entry2 = new Entry();\n $entry2->setAvgSpeed(2.0);\n $dateInput = \"2013-01-01\";\n $date = $date = new DateTime();\n $date->setTimestamp(strtotime($dateInput));\n $entry2->setDate($date);\n $entry2->setDistance(10);\n $entry2->setTime(5);\n $entry2->setUserId(2);\n $manager->persist($entry2);\n\n\n print(\"Creating some entries\");\n $manager->flush();\n\n }", "protected function setUp()\n {\n self::bootKernel();\n\n $this->em = static::$kernel->getContainer()\n ->get('doctrine')\n ->getManager();\n $schemaTool = new SchemaTool($this->em);\n $metadata = $this->em->getMetadataFactory()->getAllMetadata();\n\n // Drop and recreate tables for all entities\n $schemaTool->dropSchema($metadata);\n $schemaTool->createSchema($metadata);\n $users = new LoadUserData();\n $users->setContainer(static::$kernel->getContainer());\n $users->load($this->em);\n }", "function load(ObjectManager $manager)\n {\n\n $data = $this->getData();\n\n foreach ($data as $userData) {\n $user = new User();\n\n $user->setUsername($userData['username']);\n $user->setEmail($userData['email']);\n $user->setPlainPassword($userData['plainPassword']);\n $user->setEnabled($userData['enabled']);\n $user->setSuperAdmin($userData['superAdmin']);\n $manager->persist($user);\n $manager->flush();\n $this->setReference($userData['reference'], $user);\n }\n\n// $manager->flush();\n//\n// $admin = new User();\n// $admin->setUsername('admin');\n// $admin->setEmail('[email protected]');\n// $admin->setPlainPassword('admin');\n// $admin->setEnabled(true);\n// $admin->setSuperAdmin(true);\n// $manager->persist($admin);\n//\n// $user1 = new User();\n// $user1->setUsername('user1');\n// $user1->setEmail('[email protected]');\n// $user1->setPlainPassword('user1');\n// $user1->setEnabled(true);\n// $user1->setSuperAdmin(false);\n// $manager->persist($user1);\n//\n// $manager->flush();\n//\n// $this->setReference('user_admin', $admin);\n// $this->setReference('user_user1', $user1);\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n\n $p1 = new Personne();\n $p1->setNom(\"Milo\");\n $manager->persist($p1);\n\n $p2 = new Personne();\n $p2->setNom(\"Tya\");\n $manager->persist($p2);\n\n $p3 = new Personne();\n $p3->setNom(\"Lili\");\n $manager->persist($p3);\n\n $continent1=new Continent();\n $continent1->setLibelle(\"Europe\");\n $manager->persist($continent1);\n\n $continent2=new Continent();\n $continent2->setLibelle(\"Asie\");\n $manager->persist($continent2);\n\n $continent3=new Continent();\n $continent3->setLibelle(\"Afrique\");\n $manager->persist($continent3);\n\n $continent4=new Continent();\n $continent4->setLibelle(\"Océanie\");\n $manager->persist($continent4);\n\n $continent5=new Continent();\n $continent5->setLibelle(\"Amérique\");\n $manager->persist($continent5);\n\n $c1 = new Famille();\n $c1 ->setDescription(\"Animaux vertébrés nourissant leurs petis avec du lait\")\n ->setLibelle(\"Mammifères\")\n ;\n $manager->persist($c1);\n\n $c2 = new Famille();\n $c2 ->setDescription(\"Animaux vertébrés qui rampent\")\n ->setLibelle(\"Reptiles\")\n ;\n $manager->persist($c2);\n\n $c3 = new Famille();\n $c3 ->setDescription(\"Animaux invertébrés du monde aquatique\")\n ->setLibelle(\"Poissons\")\n ;\n $manager->persist($c3);\n\n\n $a1= new Animal();\n $a1->setNom(\"Chien\")\n ->setDescription(\"Un animal domestique\")\n ->setImage(\"chien.png\")\n ->setPoids(10)\n ->setDangereux(false)\n ->setFamille($c1)\n ->addContinent($continent1)\n ->addContinent($continent2)\n ->addContinent($continent3)\n ->addContinent($continent4)\n ->addContinent($continent5)\n\n ;\n $manager->persist($a1);\n\n $a2= new Animal();\n $a2->setNom(\"Cochon\")\n ->setDescription(\"Un animal d'élevage\")\n ->setImage(\"cochon.png\")\n ->setPoids(300)\n ->setDangereux(false)\n ->setFamille($c1)\n ->addContinent($continent1)\n ->addContinent($continent5)\n\n\n ;\n $manager->persist($a2);\n\n $a3= new Animal();\n $a3->setNom(\"Serpent\")\n ->setDescription(\"Un animal dangereux\")\n ->setImage(\"serpent.png\")\n ->setPoids(5)\n ->setDangereux(true)\n ->setFamille($c2)\n ->addContinent($continent2)\n ->addContinent($continent3)\n ->addContinent($continent4)\n\n ;\n $manager->persist($a3);\n\n $a4= new Animal();\n $a4->setNom(\"Crocodile\")\n ->setDescription(\"Un animal très dangereux\")\n ->setImage(\"croco.png\")\n ->setPoids(500)\n ->setDangereux(true)\n ->setFamille($c2)\n ->addContinent($continent3)\n ->addContinent($continent4)\n ;\n $manager->persist($a4);\n\n $a5= new Animal();\n $a5->setNom(\"Requin\")\n ->setDescription(\"Un animal marin très dangereux\")\n ->setImage(\"requin.png\")\n ->setPoids(800)\n ->setDangereux(true)\n ->setFamille($c3)\n ->addContinent($continent4)\n ->addContinent($continent5)\n ;\n $manager->persist($a5);\n\n $d1 = new Dispose();\n $d1 ->setPersonne($p1)\n ->setAnimal($a1)\n ->setNb(30);\n $manager->persist($d1);\n\n $d2 = new Dispose();\n $d2 ->setPersonne($p1)\n ->setAnimal($a2)\n ->setNb(10);\n $manager->persist($d2);\n\n $d3 = new Dispose();\n $d3 ->setPersonne($p1)\n ->setAnimal($a3)\n ->setNb(2);\n $manager->persist($d3);\n \n $d4 = new Dispose();\n $d4 ->setPersonne($p2)\n ->setAnimal($a3)\n ->setNb(5);\n $manager->persist($d4);\n\n $d5 = new Dispose();\n $d5 ->setPersonne($p2)\n ->setAnimal($a4)\n ->setNb(2);\n $manager->persist($d5);\n\n $d6 = new Dispose();\n $d6 ->setPersonne($p3)\n ->setAnimal($a5)\n ->setNb(20);\n $manager->persist($d6);\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n\n\n $images = [\n 'ballon.jpg',\n 'hamac.jpg',\n 'ventilo.jpg',\n 'parasol.jpg',\n 'ete.jpg',\n 'mer-ete.jpg',\n 'ete-plage.jpg'\n\n ];\n\n //Recuperation du Faker\n $generator = Factory::create('fr_FR');\n // Populateur d'Entités (se base sur /src/Entity)\n $populator = new Populator($generator, $manager);\n\n //Creation des categories\n $populator->addEntity(Category::class, 10);\n $populator->addEntity(Tag::class, 20);\n $populator->addEntity(User::class, 20);\n $populator->addEntity(Product::class, 30, [\n 'price' => function () use ($generator) {\n return $generator->randomFloat(2, 0, 9999999, 99);\n },\n 'imageName' => function() use ($images) {\n return $images[rand(0, sizeof($images)-1)];\n }\n\n\n ]);\n\n // Flush\n $populator->execute();\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n\n /* for($i = 1; $i <= 10; $i++){\n $eleve = new Eleve();\n\n $eleve->setNom(\"Nom n° {$i} \")\n ->setPrenom(\"Prenom n° {$i} \")\n ->setDateNaissanceAt(new \\DateTime())\n ->setMoyenne($i)\n ->setAppreciation(\"Appreciation n° {$i} \")\n ;\n \n $manager->persist($eleve);\n } */\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n $faker = \\Faker\\Factory::create();\n $projets = $manager->getRepository(Projet::class)->findAll();\n $devis = $manager->getRepository(Devis::class)->findAll();\n\n $facture = new Facture();\n $facture->setIdProjet( $projets[array_rand($projets)]);\n $facture->setAutresCharges($faker->randomFloat());\n $facture->setDevis($devis[array_rand($devis)]);\n $facture->setNbrHeures($faker->randomDigitNotNull);\n $facture->setNomFacture($faker->randomLetter);\n $facture->setPrixHT($faker->randomFloat());\n $facture->setPrixTTC($faker->randomFloat());\n $facture->setTauxH($faker->randomDigitNotNull);\n $manager->persist($facture);\n\n\n $manager->flush();\n }", "abstract protected function getFixtures();", "public function load(ObjectManager $manager)\n {\n $p1 = new Post();\n $p1->setTitle('Donec mollis turpis orci');\n $p1->setBody('Ut molestie lectus porttitor vel. Aenean sagittis sed mi vitae suscipit. Maecenas eu odio risus. Cras ut libero in diam faucibus condimentum in sit amet sem. Nullam ac varius libero, ac suscipit nisl. Vivamus ullamcorper tortor in lacus lacinia, a porttitor quam iaculis. Vestibulum nec tincidunt sapien, nec maximus diam. Aliquam lobortis sit amet lacus sed maximus. Fusce posuere eget enim nec mollis. Nam vel leo posuere, consectetur sapien sit amet, pulvinar justo.');\n $p1->setAuthor($this->getAuthor($manager, 'David'));\n\n $p2 = new Post();\n $p2->setTitle('Sed pharetra blandit velit id laoreet');\n $p2->setBody('Nulla sodales justo eleifend ipsum efficitur vehicula. In vel pretium libero. Vestibulum dignissim tortor eu efficitur faucibus. Nullam dictum dictum orci, ut consequat mauris volutpat quis. Nam blandit porta orci, aliquet mollis elit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Aenean maximus nibh vel purus mollis, eget egestas ipsum viverra. Ut eu maximus enim, vitae luctus magna. In vitae facilisis magna. Nulla ut condimentum metus, ut condimentum odio. Etiam euismod massa id nibh scelerisque, sit amet condimentum enim malesuada.');\n $p2->setAuthor($this->getAuthor($manager, 'Eddie'));\n\n $p3 = new Post();\n $p3->setTitle('Nullam dignissim ipsum sed faucibus finibus');\n $p3->setBody('Maecenas in dui ex. Integer luctus dui metus, eu elementum elit aliquet non. Vestibulum mollis ullamcorper risus. Donec pharetra, mauris at malesuada faucibus, orci odio vehicula risus, id euismod tortor mauris sed libero. Nam libero risus, pharetra quis tortor ut, dapibus luctus dolor. Etiam consequat fermentum lectus. Phasellus id tempus purus, sed ullamcorper dolor. In id justo nibh.');\n $p3->setAuthor($this->getAuthor($manager, 'Eddie'));\n\n $manager->persist($p1);\n $manager->persist($p2);\n $manager->persist($p3);\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n $faker = Factory::create('fr_FR');\n\n for ($i = 0; $i < 30; $i++){\n $adherent = new Adherent();\n for ($i = 0; $i < 2; $i++){\n $sexe = new Sexe();\n $sexe->setNom($faker->lastName);\n $manager->persist($sexe);\n }\n for ($j = 0; $j < 2; $j++){\n $filiere = new Filiere();\n $filiere->setNom($faker->lastName);\n $manager->persist($filiere);\n }\n for ($i = 0; $i < 5; $i++){\n $poste = new Poste();\n $poste->setNom($faker->lastName);\n $manager->persist($poste);\n }\n $adherent\n ->setNom($faker->name)\n ->setPrenom($faker->lastName)\n ->setSexe($sexe)\n ->setPoste($poste)\n ->setFiliere($filiere)\n ->setMatricule('20G0062'.$i)\n ->setMdp('password');\n $manager->persist($adherent);\n }\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n $translator = $this->container->get(\"translator\");\n\n /* These are the standard data of the system */\n $standardInserts = [\n [\n 'layoutId' => 0,\n 'title' => $translator->trans('Listing'),\n 'updated' => new \\DateTime(),\n 'entered' => new \\DateTime(),\n 'status' => 'enabled',\n 'price' => 0.00,\n 'catId' => '',\n 'editable' => 'n',\n ],\n ];\n\n $repository = $manager->getRepository('ListingBundle:ListingTemplate');\n\n foreach ($standardInserts as $listingTemplateInsert) {\n $query = $repository->findOneBy([\n 'title' => $listingTemplateInsert['title'],\n ]);\n\n $listingTemplate = new ListingTemplate();\n\n /* checks if the ListingTemplate already exist so they can be updated or added */\n if ($query) {\n $listingTemplate = $query;\n }\n\n $listingTemplate->setLayoutId($listingTemplateInsert['layoutId']);\n $listingTemplate->setTitle($listingTemplateInsert['title']);\n $listingTemplate->setUpdated($listingTemplateInsert['updated']);\n $listingTemplate->setEntered($listingTemplateInsert['entered']);\n $listingTemplate->setStatus($listingTemplateInsert['status']);\n $listingTemplate->setPrice($listingTemplateInsert['price']);\n $listingTemplate->setCatId($listingTemplateInsert['catId']);\n $listingTemplate->setEditable($listingTemplateInsert['editable']);\n\n $manager->persist($listingTemplate);\n }\n\n $manager->flush();\n }", "public function setupFixtures()\n {\n if ($this->_fixtures === null) {\n $loadedFixtures = [];\n foreach ($this->fixtures() as $fixtureClass) {\n $loadedFixtures[$fixtureClass] = Yii::createObject($fixtureClass);\n }\n\n $this->_fixtures = $loadedFixtures;\n }\n }", "public function load(ObjectManager $manager)\r\n {\r\n $data = [\r\n [\r\n 'fields' =>\r\n [\r\n 'familyStatus' => 'Single',\r\n ],\r\n 'reference' => 'family_status_1'\r\n ],\r\n [\r\n 'fields' =>\r\n [\r\n 'familyStatus' => 'Married',\r\n ],\r\n 'reference' => 'family_status_2'\r\n ],\r\n [\r\n 'fields' =>\r\n [\r\n 'familyStatus' => 'Divorced',\r\n ],\r\n 'reference' => 'family_status_3'\r\n ],\r\n [\r\n 'fields' =>\r\n [\r\n 'familyStatus' => 'Widowed',\r\n ],\r\n 'reference' => 'family_status_4'\r\n ],\r\n [\r\n 'fields' =>\r\n [\r\n 'familyStatus' => 'In active search',\r\n ],\r\n 'reference' => 'family_status_5'\r\n ],\r\n [\r\n 'fields' =>\r\n [\r\n 'familyStatus' => 'It\\'s Complicated',\r\n ],\r\n 'reference' => 'family_status_6'\r\n ],\r\n ];\r\n\r\n foreach ($data as $itemData) {\r\n $entity = $this->fillEntityFromArray($itemData['fields'], \\ApiBundle\\Entity\\FamilyStatuses::class);\r\n $manager->persist($entity);\r\n if(array_key_exists('reference', $itemData)){\r\n $this->addReference($itemData['reference'], $entity);\r\n }\r\n }\r\n $manager->flush();\r\n\r\n }", "public function load(ObjectManager $manager)\n {\n $ushuaia = new Localidad();\n $ushuaia->setNombre('Ushuaia');\n $ushuaia->setCodigoPostal('9410');\n $rioGrande = new Localidad();\n $rioGrande->setNombre('Río Grande');\n $rioGrande->setCodigoPostal('9420');\n\n $manager->persist($ushuaia);\n $manager->persist($rioGrande);\n $manager->flush();\n\n // Los objetos $ushuaia y $riogrande pueden ser referenciados por otros\n // fixtures que tengan un orden más alto, vía 'ushuaia' y 'riogrande'.\n $this->addReference('ushuaia', $ushuaia);\n $this->addReference('riogrande', $rioGrande);\n\n }", "public function load(ObjectManager $em)\n {\n\n /* Create lucie.ginette with teacher role and student role */\n $testUser1 = new User();\n $testUser1->setLogin(\"lucie.ginette\");\n $testUser1->setFirstName(\"Lucie\");\n $testUser1->setLastName(\"GINETTE\");\n $testUser1->setMail(\"[email protected]\");\n $testUser1->setAuthType('internal');\n $testUser1->setSalt(md5(time()));\n $encoder = $this->container->get('security.encoder_factory')->getEncoder($testUser1);\n $testUser1->setPassword($encoder->encodePassword('1234', $testUser1->getSalt()));\n $testUser1->setStudentRole(new StudentRole());\n $testUser1->setTeacherRole(new TeacherRole());\n\n /* Create marc.thomas with admin role */\n $testUser2 = new User();\n $testUser2->setLogin(\"marc.thomas\");\n $testUser2->setFirstName(\"Marc\");\n $testUser2->setLastName(\"THOMAS\");\n $testUser2->setMail(\"[email protected]\");\n $testUser2->setAuthType('internal');\n $testUser2->setSalt(md5(time()));\n $encoder = $this->container->get('security.encoder_factory')->getEncoder($testUser2);\n $testUser2->setPassword($encoder->encodePassword('5678', $testUser2->getSalt()));\n $testUser2->setAdminRole(new AdminRole());\n\n /* Creation of 10 generic sample students */\n for ($i = 0; $i < 10; $i++) {\n $testUser = new User();\n $testUser->setLogin('student.' . $i);\n $testUser->setFirstName('StudentFirstName ' . $i);\n $testUser->setLastName('StudentLastName ' . $i);\n $testUser->setMail('student.' . $i . '@lms.local');\n $testUser->setAuthType('internal');\n $testUser->setSalt(md5(time()));\n $encoder = $this->container->get('security.encoder_factory')->getEncoder($testUser);\n $testUser->setPassword($encoder->encodePassword('student' . $i, $testUser->getSalt()));\n $testUser->setStudentRole(new StudentRole());\n $em->persist($testUser);\n }\n\n $em->persist($testUser1);\n $em->persist($testUser2);\n $em->flush();\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n // configurer la langue\n //$faker = Factory::create('fr_FR');\n //for ($p=0; $p < 3; $p++) { \n //$users = new User();\n //$harsh = $this->encoder->encodePassword($users, 'password');\n // users\n //$users->setPrenom($faker->firstname);\n //$users->setNom($faker->lastname);\n //$users->setPassword($harsh);\n //$users->setEmail($faker->email);\n //$users->setProfil($this->getReference(ProfilFixtures::PROFIL));\n //$users->setProfil($this->getReference($p));\n\n // persist\n //$manager->persist($users);\n //}\n\n //$manager->flush();\n }", "function load(ObjectManager $manager)\n {\n $data = $this->getData();\n $i = 0;\n\n foreach ($data as $categoryName) {\n $category = new Category();\n $category->setTitle($categoryName);\n $manager->persist($category);\n $this->addReference('category_' . (++$i), $category);\n\n $subData = $this->getData($i);\n $j = 0;\n foreach ($subData as $subcategoryName) {\n $subCategory = new Category();\n $subCategory->setTitle($subcategoryName);\n $subCategory->setParent($category);\n $manager->persist($subCategory);\n $this->addReference('category_' . $i . '_' . (++$j), $subCategory);\n }\n }\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n for($i=1; $i<= 50; $i++){\n //génération aléatoire de date\n $timestamp = mt_rand(1, time());\n $randomDate = date('Y-m-d H:i:s', $timestamp);\n //tableau d'auteurs\n $auteurs = ['Verlaine', 'Hugo', 'Voltaire', 'Philip K Dick', 'Zola', 'Dumas', 'Molière'];\n //génération de lorem\n $content = simplexml_load_file('http://www.lipsum.com/feed/xml?amount=1&what=paras&start=0')->lipsum;\n\n $user = new User();\n if($i===1){\n $roles = ['ROLE_ADMIN', 'ROLE_USER'];\n }else{\n $roles = ['ROLE_USER'];\n }\n $user->setUsername('user' .$i);\n $user->setEmail('user'.$i.'@gmail.com');\n $user->setRoles($roles);\n $plainPwd = 'mdp';\n $mdpEncoded = $this->encoder->encodePassword($user, $plainPwd);\n $user->setPassword($mdpEncoded);\n\n\n\n\n $categorie = new Categorie();\n $categorie->setLibelle('catégorie' . $i);\n $categorie->setDescription('description' . $i);\n $categorie->setDateCreation(new \\DateTime($randomDate));\n\n $message = new Message();\n $message->setSujet('sujet' .$i);\n $message->setContenu($content);\n $message->setEmail('email' .$i);\n $message->setNom($auteurs[array_rand($auteurs)]);\n $message->setDateenvoi(new \\DateTime($randomDate));\n\n $article = new Article();\n $article->setTitle('title' .$i);\n $article->setContent($content);\n $article->setAuthor($auteurs[array_rand($auteurs)]);\n $article->setDatePubli(new \\DateTime($randomDate));\n\n\n\n $manager->persist($categorie);\n $manager->persist($message);\n $manager->persist($article);\n $manager->persist($user);\n }\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n //*\n $faker= Faker\\Factory::create();\n for ($i=0;$i<5;$i++){\n $group = new Group();\n $group->setName($faker->company);\n $group->setRoles(array($this->getRandomRole()));\n $manager->persist($group);\n }\n $manager->flush();\n //*/\n }", "public function setUp()\n {\n $this->fixtures('articles');\n }", "public function load(ObjectManager $manager)\n {\n for ($i = 0; $i < 5; $i++) {\n $equipo = new Equipos();\n $equipo->setNombre('Equipo '.$i);\n $manager->persist($equipo);\n for ($x = 0; $x < 23; $x++) {\n $jugador = new Jugadores();\n $jugador->setNombre(\"Nombre \".$x);\n $jugador->setApellido(\"Apellido \".$x);\n $jugador->setEquipos($equipo);\n $manager->persist($jugador);\n }\n }\n\n $manager->flush();\n }", "protected static function getDataFixtures()\n {\n return array(\n new LoadTestUser(),\n new LoadSuperUser(),\n );\n }", "public function load(ObjectManager $manager): void\n {\n for ($i = 1; $i < 16; $i++) {\n $task = new Task();\n $task\n ->setTitle('task'.$i)\n ->setContent(\n 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce varius at ligula nec sollicitudin.'\n )\n ->setCreatedAt(new DateTime())\n ;\n if ($i < 6) {\n $task->setAuthor(null);\n } elseif ($i > 5 && $i < 11) {\n $task->setAuthor(\n $this->getReference(UserFixtures::AUTHOR_REFERENCE_PREFIX.'1')\n );\n } elseif ($i > 10) {\n $task->setAuthor(\n $this->getReference(UserFixtures::AUTHOR_REFERENCE_PREFIX.'2')\n );\n }\n\n $manager->persist($task);\n }\n\n $manager->flush();\n }", "public function load(ObjectManager $dbmanager)\n {\n $employee1 = Employee::createUser(\"johndoe\", \"password123\", \"John Doe\", \"[email protected]\", \"123-456-7890\");\n $employee2 = Employee::createUser(\"janedoe\", \"password123\", \"Jane Doe\", \"[email protected]\", null);\n $employee3 = Employee::createUser(\"billybob\", \"password123\", \"Billy Bob\", \"[email protected]\", \"198-765-4321\");\n $employee4 = Employee::createUser(\"kevinbacon\", \"password123\", \"Kevin Bacon\", \"[email protected]\", \"534-765-6524\");\n $employee5 = Employee::createUser(\"jamesbond\", \"password123\", \"James Bond\", \"[email protected]\", \"432-007-2353\");\n\n $dbmanager->persist($employee1);\n $dbmanager->persist($employee2);\n $dbmanager->persist($employee3);\n $dbmanager->persist($employee4);\n $dbmanager->persist($employee5);\n\n # Create a bunch of managers\n $manager1 = Manager::createUser(\"randyrhoads\", \"password123\", \"Randy Roads\", \"[email protected]\", \"333-231-4432\");\n $manager2 = Manager::createUser(\"dansmith\", \"password123\", \"Dan Smith\", null, \"883-233-4441\");\n\n $dbmanager->persist($manager1);\n $dbmanager->persist($manager2);\n\n # Create a bunch of shifts\n $begin = new \\DateTime('2017-10-01 08:00:00');\n $end = new \\DateTime('2017-11-01 08:00:00');\n\n # A shift for every day inbetween the above dates\n $interval = new \\DateInterval('P1D');\n $daterange = new \\DatePeriod($begin, $interval ,$end);\n\n $managers = [$manager1, $manager2];\n $employees = [$employee1, $employee2, $employee3, $employee4, $employee5, null];\n\n # Create three shifts for each day with random employees and random managers.\n # The null value in the employee list is to allow for empty shifts\n foreach($daterange as $date){\n $shiftEmployeesKeys = array_rand($employees, 3);\n $shiftManagerKey = array_rand($managers);\n\n foreach ($shiftEmployeesKeys as $employeeKey) {\n $startDateTime = clone $date;\n $endDateTime = clone $date;\n $endDateTime->modify('+8 hours');\n\n $shift = new Shift();\n $shift->setStartTime($startDateTime);\n $shift->setEndTime($endDateTime);\n $shift->setBreak(0.5);\n $shift->setEmployee($employees[$employeeKey]);\n $shift->setManager($managers[$shiftManagerKey]);\n $dbmanager->persist($shift);\n }\n }\n\n $dbmanager->flush();\n }", "public function load(ObjectManager $manager)\n {\n $seed = [];\n for ($i = 0; $i < 20; $i += 2) {\n $seed[$i] = $this->faker->dateTimeBetween('-1 month', 'yesterday');\n $seed[$i+1] = $this->faker->dateTimeInInterval($seed[$i], '+10 hours');\n }\n\n sort($seed);\n\n for ($i = 0; $i < 20; $i += 2) {\n $interval = new TimeInterval();\n /** @var Task $task */\n $task = $this->getReference('Task-' . random_int(1, 5));\n if ($task->getCreatedAt() > $seed[$i]) {\n $task->setCreatedAt($this->faker->dateTimeInInterval($seed[$i], '-2 days'));\n }\n\n $interval->setStartsAt($seed[$i])\n ->setEndsAt($seed[$i+1])\n ->setTask($task)\n ;\n\n $manager->persist($interval);\n }\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n\n \t$admin = (new User('admin'))\n \t\t\t\t->setPlainPassword('123')\n \t\t\t\t->addRole(User::ROLE_ADMIN);\n// $tokenAdmin = $JWTTokenManager->create($admin);\n\n \t$customer = (new User('customer'))\n \t\t\t\t->setPlainPassword('123')\n \t\t\t\t->addRole(User::ROLE_CUSTOMER);\n// $tokenCustomer = $JWTTokenManager->create($customer);\n\n \t$manager->persist($admin);\n \t$manager->persist($customer);\n\n $coffeesData = [\n ['name' => 'ristretto', 'intensity' => 10, 'price' => 3, 'stock' => 20],\n ['name' => 'cubita', 'intensity' => 6, 'price' => 2, 'stock' => 50],\n ['name' => 'bustelo', 'intensity' => 9, 'price' => 6, 'stock' => 5],\n ['name' => 'serrano', 'intensity' => 10, 'price' => 3, 'stock' => 10]\n ];\n\n foreach ($coffeesData as $key => $value) {\n $coffee = (new Coffee())\n ->setName($value['name'])\n ->setIntensity($value['intensity'])\n ->setTextPrice($value['price'])\n ->setStock($value['stock']);\n $manager->persist($coffee);\n }\n\n $manager->flush();\n }", "public static function loadFixture()\n {\n //include __DIR__ .'/../_files/customer.php';\n include __DIR__ .'/../_files/order_fee_variation.php';\n\n }", "public function load(ObjectManager $manager)\n {\n // TODO: Implement load() method.\n $participant1 = new Participant();\n $participant1->setNom('BAUDRY');\n $participant1->setPrenom('Quentin');\n $participant1->setPseudo('qbaudry');\n $participant1->setTelephone('0123456789');\n $participant1->setMail('[email protected]');\n $participant1->setRoles(['ROLE_USER']);\n $participant1->setActif(false);\n $password = $this->encoder->encodePassword($participant1, '123');\n $participant1->setPassword($password);\n $site = $this->getReference(SiteFixture::SITE_REFERENCE1);\n $participant1->setSite($site);\n\n $participant2 = new Participant();\n $participant2->setNom('TENAUD');\n $participant2->setPrenom('Willy');\n $participant2->setPseudo('wtenaud');\n $participant2->setTelephone('0123456789');\n $participant2->setMail('[email protected]');\n $participant2->setRoles(['ROLE_USER']);\n $participant2->setActif(true);\n $password = $this->encoder->encodePassword($participant2, '123');\n $participant2->setPassword($password);\n $site = $this->getReference(SiteFixture::SITE_REFERENCE4);\n $participant2->setSite($site);\n\n $participant3 = new Participant();\n $participant3->setNom('LELODET');\n $participant3->setPrenom('Bastien');\n $participant3->setPseudo('blelodet');\n $participant3->setTelephone('0123456789');\n $participant3->setMail('[email protected]');\n $participant3->setRoles(['ROLE_USER']);\n $participant3->setActif(true);\n $password = $this->encoder->encodePassword($participant3, '123');\n $participant3->setPassword($password);\n $site = $this->getReference(SiteFixture::SITE_REFERENCE3);\n $participant3->setSite($site);\n\n $participant4 = new Participant();\n $participant4->setNom('SUPER');\n $participant4->setPrenom('Admin');\n $participant4->setPseudo('admin');\n $participant4->setTelephone('0123456789');\n $participant4->setMail('[email protected]');\n $participant4->setRoles(['ROLE_ADMIN']);\n $participant4->setActif(true);\n $password = $this->encoder->encodePassword($participant4, '123');\n $participant4->setPassword($password);\n $site = $this->getReference(SiteFixture::SITE_REFERENCE1);\n $participant4->setSite($site);\n\n $manager->persist($participant1);\n $manager->persist($participant2);\n $manager->persist($participant3);\n $manager->persist($participant4);\n\n $photo1 = new Profil();\n $photo1->setParticipant($participant1);\n $photo2 = new Profil();\n $photo2->setParticipant($participant2);\n $photo3 = new Profil();\n $photo3->setParticipant($participant3);\n $photo4 = new Profil();\n $photo4->setParticipant($participant4);\n\n $manager->persist($photo1);\n $manager->persist($photo2);\n $manager->persist($photo3);\n $manager->persist($photo4);\n\n $manager->flush();\n\n $this->addReference(self::PARTICIPANT_REFERENCE1, $participant1);\n $this->addReference(self::PARTICIPANT_REFERENCE2, $participant2);\n $this->addReference(self::PARTICIPANT_REFERENCE3, $participant3);\n $this->addReference(self::PARTICIPANT_REFERENCE4, $participant4);\n }", "protected function getFixtures()\n {\n return array(\n __DIR__ . '/../../Resources/fixtures/BlogArticle.yml',\n );\n }", "public function load(ObjectManager $manager)\r\n {\r\n $suffix = 'A';\r\n for($i=0;$i<10;$i++)\r\n {\r\n $project = (new Project())\r\n ->setName('Project'.$suffix);\r\n $suffix++;\r\n\r\n $manager->persist($project);\r\n }\r\n\r\n $manager->flush();\r\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n\n // Créer 2 Catégories\n $category1 = (new Category())->setLabel(\"fruit\");\n $category2 = (new Category())->setLabel(\"exotic\");\n //setProduct\n $manager->persist($category1, $category2);\n\n // Créer 1 Images\n $picture = new Picture();\n $picture\n ->setUrl(\"https://dummyimage.com/200x100.png\")\n ->setDescription(\"iezfj\");\n $manager->persist($picture);\n \n // Créer 3 Produits\n $products = [\n \"Banana\" => 3,\n \"Apple\" => 2,\n \"Grapes\"=> 4\n ];\n\n $productEntity = [];\n\n foreach ($products as $k => $v) {\n $fruit = new Product();\n $fruit\n ->setTitle($k)\n ->setPrice($v)\n ->setRef(\"773894\")\n ->setDescription(\"tasty fruit\")\n ->setInStock(true)\n ->setStockQuantiy(42)\n ->setCategory($category1)\n ->addPicture($picture);\n \n $productEntity[] = $fruit;\n $manager->persist($fruit);\n }\n\n // Créer 1 Utilisateur\n $user = new User();\n $user\n ->setEmail(\"[email protected]\")\n ->setPassword(\"zeiopjJIO%ZEOIJ\")\n ->setCreatedAt(new \\DateTime())\n ->setFirstName(\"Joe\")\n ->setLastName(\"Crazy\");\n $manager->persist($user);\n \n // Créer 2 Lignes de commandes\n $orderLine = new OrderLine();\n $orderLine\n ->setQuantity(34);\n $manager->persist($orderLine);\n \n // Créer 1 Commande\n $order = new Order();\n $order\n ->setCreatedAt(new \\DateTime())\n ->setShippingAt(new \\DateTime(\"2021-08-19\"))\n ->setTotal(42,2)\n ->setValid(false)\n ->addOrderLine($orderLine)\n ->setUser($user);\n\n $manager->persist($order);\n\n\n //////\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n $propriete = new propriete(); \n $propriete->setDescription('Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut \n aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in.');\n $propriete->setNomPropriete(\"villa bonheur\");\n $propriete->setTypepropriete(\"Appartement\");\n \n $propriete2 = new propriete(); \n $propriete2->setDescription('Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut \n aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in.');\n $propriete2->setNomPropriete(\"villa\");\n $propriete2->setTypepropriete(\"Maison\");\n \n $propriete3 = new propriete(); \n $propriete3->setDescription('Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut \n aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in.');\n $propriete3->setNomPropriete(\"villa bonheur\");\n $propriete3->setTypepropriete(\"Villa\");\n \n $propriete4 = new propriete(); \n $propriete4->setDescription('Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut \n aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in.');\n $propriete4->setNomPropriete(\"villa\");\n $propriete4->setTypepropriete(\"Villa\");\n \n /*GESTION DES CLES */\n $propriete->setAdresse($this->getReference('user_adrPropriete'));\n $propriete->setProprietaire($this->getReference('loca_proprio'));\n \n $propriete2->setAdresse($this->getReference('user_adrPropriete2'));\n $propriete2->setProprietaire($this->getReference('loca_proprio2'));\n \n $propriete3->setAdresse($this->getReference('user_adrPropriete'));\n $propriete3->setProprietaire($this->getReference('loca_proprio'));\n \n $propriete4->setAdresse($this->getReference('user_adrPropriete'));\n $propriete4->setProprietaire($this->getReference('loca_proprio2'));\n \n $manager->persist($propriete);$manager->persist($propriete2);\n $manager->persist($propriete3);$manager->persist($propriete4);\n $manager->flush();\n \n $this->addReference('loca_propriete', $propriete);\n $this->addReference('loca_propriete2', $propriete2);\n $this->addReference('loca_propriete3', $propriete3);\n $this->addReference('loca_propriete4', $propriete4);\n }", "public function load(ObjectManager $manager)\n {\n for ($i = 1; $i < 6; $i++) {\n $task = new Task();\n $task->setName($this->faker->jobTitle)\n ->setDescription($this->faker->text());\n\n $this->addReference('Task-' . $i, $task);\n $manager->persist($task);\n }\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\r\n {\r\n\r\n /**\r\n * Database `hackathon2019`\r\n */\r\n\r\n /** new user @fr */\r\n\r\n $user = new User();\r\n $user->setMail('[email protected]');\r\n $user->setMd5Password(md5('test'));\r\n $user->setNom('Roger');\r\n $user->setPrenom('Francois');\r\n $user->setPrivilege(1);\r\n\r\n $manager->persist($user);\r\n\r\n $manager->flush();\r\n\r\n /* `hackathon2019`.`regions` */\r\n $regions = array(\r\n array('ville_nom_simple' => 'saint genis pouilly','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'peronnas','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'miribel','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'divonne les bains','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'lagnieu','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'amberieu en bugey','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'ferney voltaire','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'viriat','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'oyonnax','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'montluel','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'belley','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'jassans riottier','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'meximieux','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'prevessin moens','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'trevoux','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'bellegarde sur valserine','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'bourg en bresse','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint denis les bourg','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'gex','ville_departement' => '01','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'soissons','ville_departement' => '02','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'chauny','ville_departement' => '02','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'laon','ville_departement' => '02','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'tergnier','ville_departement' => '02','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'hirson','ville_departement' => '02','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'guise','ville_departement' => '02','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'chateau thierry','ville_departement' => '02','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'saint quentin','ville_departement' => '02','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'villers cotterets','ville_departement' => '02','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'bohain en vermandois','ville_departement' => '02','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'gauchy','ville_departement' => '02','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'domerat','ville_departement' => '03','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'yzeure','ville_departement' => '03','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'gannat','ville_departement' => '03','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'montlucon','ville_departement' => '03','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'bellerive sur allier','ville_departement' => '03','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint pourcain sur sioule','ville_departement' => '03','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'vichy','ville_departement' => '03','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'commentry','ville_departement' => '03','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'cusset','ville_departement' => '03','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'moulins','ville_departement' => '03','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'chateau arnoux saint auban','ville_departement' => '04','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'oraison','ville_departement' => '04','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'sisteron','ville_departement' => '04','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'manosque','ville_departement' => '04','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'digne les bains','ville_departement' => '04','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'embrun','ville_departement' => '05','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'gap','ville_departement' => '05','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'briancon','ville_departement' => '05','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'la gaude','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'vence','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'grasse','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'peymeinade','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'beausoleil','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'roquefort les pins','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'biot','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'villefranche sur mer','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'valbonne','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'vallauris','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'contes','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'mouans sartoux','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'antibes','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'cannes','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'villeneuve loubet','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'pegomas','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'mougins','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'le cannet','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'carros','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'la trinite','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'cagnes sur mer','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'menton','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'saint laurent du var','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'nice','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'roquebrune cap martin','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'la colle sur loup','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'mandelieu la napoule','ville_departement' => '06','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'saint peray','ville_departement' => '07','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'le teil','ville_departement' => '07','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'guilherand granges','ville_departement' => '07','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'privas','ville_departement' => '07','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'tournon sur rhone','ville_departement' => '07','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'annonay','ville_departement' => '07','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'bourg saint andeol','ville_departement' => '07','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'aubenas','ville_departement' => '07','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'givet','ville_departement' => '08','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'nouzonville','ville_departement' => '08','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'charleville mezieres','ville_departement' => '08','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'revin','ville_departement' => '08','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'rethel','ville_departement' => '08','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'bogny sur meuse','ville_departement' => '08','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'sedan','ville_departement' => '08','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'saint girons','ville_departement' => '09','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'foix','ville_departement' => '09','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'lavelanet','ville_departement' => '09','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'pamiers','ville_departement' => '09','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint julien les villas','ville_departement' => '10','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'la chapelle saint luc','ville_departement' => '10','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'sainte savine','ville_departement' => '10','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'nogent sur seine','ville_departement' => '10','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'romilly sur seine','ville_departement' => '10','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'saint andre les vergers','ville_departement' => '10','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'bar sur aube','ville_departement' => '10','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'troyes','ville_departement' => '10','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'carcassonne','ville_departement' => '11','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'castelnaudary','ville_departement' => '11','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'limoux','ville_departement' => '11','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'narbonne','ville_departement' => '11','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'sigean','ville_departement' => '11','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'port la nouvelle','ville_departement' => '11','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'lezignan corbieres','ville_departement' => '11','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'trebes','ville_departement' => '11','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'coursan','ville_departement' => '11','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'luc la primaube','ville_departement' => '12','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'onet le chateau','ville_departement' => '12','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'rodez','ville_departement' => '12','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint affrique','ville_departement' => '12','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'millau','ville_departement' => '12','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'villefranche de rouergue','ville_departement' => '12','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'decazeville','ville_departement' => '12','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'la roque d antheron','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'cassis','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'senas','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'saint remy de provence','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'eguilles','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'istres','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'noves','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'aix en provence','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'allauch','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'la fare les oliviers','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'saint cannat','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'bouc bel air','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'peypin','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'la bouilladisse','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'saint victoret','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'salon de provence','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'marseille','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'port saint louis du rhone','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'le puy sainte reparade','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'chateaurenard','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'mallemort','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'cabries','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'saint chamas','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'saint mitre les remparts','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'rognac','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'plan de cuques','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'arles','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'venelles','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'aubagne','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'martigues','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'port de bouc','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'gignac la nerthe','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'vitrolles','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'tarascon','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'septemes les vallons','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'sausset les pins','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'miramas','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'fuveau','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'roquevaire','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'fos sur mer','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'meyreuil','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'les pennes mirabeau','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'pelissanne','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'la ciotat','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'la penne sur huveaune','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'trets','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'gemenos','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'carry le rouet','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'saint martin de crau','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'ensues la redonne','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'marignane','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'simiane collongue','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'lancon provence','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'lambesc','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'carnoux en provence','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'eyguieres','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'velaux','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'gardanne','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'berre l etang','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'auriol','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'chateauneuf les martigues','ville_departement' => '13','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'blainville sur orne','ville_departement' => '14','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'ouistreham','ville_departement' => '14','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'vire','ville_departement' => '14','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'ifs','ville_departement' => '14','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'conde sur noireau','ville_departement' => '14','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'colombelles','ville_departement' => '14','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'lisieux','ville_departement' => '14','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'falaise','ville_departement' => '14','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'bayeux','ville_departement' => '14','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'mondeville','ville_departement' => '14','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'herouville saint clair','ville_departement' => '14','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'caen','ville_departement' => '14','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'dives sur mer','ville_departement' => '14','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'honfleur','ville_departement' => '14','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'aurillac','ville_departement' => '15','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint flour','ville_departement' => '15','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'arpajon sur cere','ville_departement' => '15','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'soyaux','ville_departement' => '16','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'la couronne','ville_departement' => '16','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint yrieix sur charente','ville_departement' => '16','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'gond pontouvre','ville_departement' => '16','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'ruelle sur touvre','ville_departement' => '16','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'cognac','ville_departement' => '16','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'angouleme','ville_departement' => '16','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'champniers','ville_departement' => '16','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'l isle d espagnac','ville_departement' => '16','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint pierre d oleron','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'surgeres','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'perigny','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saintes','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'nieul sur mer','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saujon','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'la rochelle','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'aytre','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'royan','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'dompierre sur mer','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint jean d angely','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'marennes','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'tonnay charente','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'rochefort','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'lagord','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'chatelaillon plage','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'puilboreau','ville_departement' => '17','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint doulchard','ville_departement' => '18','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'saint amand montrond','ville_departement' => '18','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'vierzon','ville_departement' => '18','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'mehun sur yevre','ville_departement' => '18','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'saint florent sur cher','ville_departement' => '18','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'bourges','ville_departement' => '18','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'aubigny sur nere','ville_departement' => '18','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'tulle','ville_departement' => '19','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'ussel','ville_departement' => '19','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'malemort sur correze','ville_departement' => '19','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'brive la gaillarde','ville_departement' => '19','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'quetigny','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'montbard','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'nuits saint georges','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'chenove','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'beaune','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'dijon','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'chatillon sur seine','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'fontaine les dijon','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'talant','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'marsannay la cote','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'genlis','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'auxonne','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'saint apollinaire','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'chevigny saint sauveur','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'longvic','ville_departement' => '21','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'ploufragan','ville_departement' => '22','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'perros guirec','ville_departement' => '22','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'paimpol','ville_departement' => '22','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'loudeac','ville_departement' => '22','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'saint brieuc','ville_departement' => '22','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'guingamp','ville_departement' => '22','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'pordic','ville_departement' => '22','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'lannion','ville_departement' => '22','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'langueux','ville_departement' => '22','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'tregueux','ville_departement' => '22','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'dinan','ville_departement' => '22','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'lamballe','ville_departement' => '22','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'pledran','ville_departement' => '22','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'plerin','ville_departement' => '22','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'gueret','ville_departement' => '23','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'la souterraine','ville_departement' => '23','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'boulazac','ville_departement' => '24','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'coulounieix chamiers','ville_departement' => '24','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'perigueux','ville_departement' => '24','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'sarlat la caneda','ville_departement' => '24','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'bergerac','ville_departement' => '24','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'trelissac','ville_departement' => '24','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'montpon menesterol','ville_departement' => '24','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint astier','ville_departement' => '24','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'terrasson lavilledieu','ville_departement' => '24','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'morteau','ville_departement' => '25','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'bethoncourt','ville_departement' => '25','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'valentigney','ville_departement' => '25','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'pontarlier','ville_departement' => '25','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'seloncourt','ville_departement' => '25','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'baume les dames','ville_departement' => '25','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'montbeliard','ville_departement' => '25','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'audincourt','ville_departement' => '25','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'besancon','ville_departement' => '25','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'nyons','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'romans sur isere','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'valence','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'crest','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'livron sur drome','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'montelimar','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'tain l hermitage','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint rambert d albon','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'bourg les valence','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'loriol sur drome','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint paul trois chateaux','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'portes les valence','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'donzere','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'pierrelatte','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'bourg de peage','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'chabeuil','ville_departement' => '26','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'gisors','ville_departement' => '27','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'louviers','ville_departement' => '27','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'bernay','ville_departement' => '27','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'pont audemer','ville_departement' => '27','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'vernon','ville_departement' => '27','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'les andelys','ville_departement' => '27','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'val de reuil','ville_departement' => '27','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'gaillon','ville_departement' => '27','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'evreux','ville_departement' => '27','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'verneuil sur avre','ville_departement' => '27','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'epernon','ville_departement' => '28','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'luce','ville_departement' => '28','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'chartres','ville_departement' => '28','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'dreux','ville_departement' => '28','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'vernouillet','ville_departement' => '28','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'chateaudun','ville_departement' => '28','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'mainvilliers','ville_departement' => '28','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'nogent le rotrou','ville_departement' => '28','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'luisant','ville_departement' => '28','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'le relecq kerhuon','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'guilers','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'lannilis','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'briec','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'quimperle','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'plougastel daoulas','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'saint pol de leon','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'plouguerneau','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'fouesnant','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'scaer','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'chateaulin','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'pont l abbe','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'guipavas','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'saint renan','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'concarneau','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'gouesnou','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'lesneven','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'landivisiau','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'tregunc','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'crozon','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'plabennec','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'morlaix','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'plouzane','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'rosporden','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'bannalec','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'ergue gaberic','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'quimper','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'penmarch','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'douarnenez','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'landerneau','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'moelan sur mer','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'ploneour lanvern','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'carhaix plouguer','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'brest','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'ploudalmezeau','ville_departement' => '29','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'le grau du roi','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'roquemaure','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'beaucaire','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'aigues mortes','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'manduel','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'les angles','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'pont saint esprit','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'rochefort du gard','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'la grand combe','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint gilles','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'nimes','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'bagnols sur ceze','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'milhaud','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'uzes','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'marguerittes','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'ales','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'vauvert','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'villeneuve les avignon','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint christol les ales','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'bellegarde','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'bouillargues','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'laudun l ardoise','ville_departement' => '30','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'beauzelle','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint gaudens','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'leguevin','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'colomiers','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'muret','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint lys','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'ramonville saint agne','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'cornebarrieu','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'fenouillet','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'castanet tolosan','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'tournefeuille','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'portet sur garonne','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'castelginest','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'la salvetat saint gilles','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'villemur sur tarn','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'pibrac','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'blagnac','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'toulouse','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'frouzins','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'auterive','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'escalquens','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'seysses','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'aussonne','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'villeneuve tolosane','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint jean','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'aucamville','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'l union','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'castelnau d estretefonds','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint orens de gameville','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'fonsorbes','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'cugnaux','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'balma','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint alban','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'launaguet','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'plaisance du touch','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'revel','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'grenade','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'fronton','ville_departement' => '31','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'l isle jourdain','ville_departement' => '32','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'auch','ville_departement' => '32','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'condom','ville_departement' => '32','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'fleurance','ville_departement' => '32','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint jean d illac','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'le bouscat','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'libourne','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'floirac','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'langon','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'gradignan','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'coutras','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'biganos','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'bordeaux','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'begles','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'parempuyre','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'audenge','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'bassens','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint aubin de medoc','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'le haillan','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'lesparre medoc','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'la teste de buch','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'eysines','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'pauillac','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'arcachon','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'gujan mestras','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint loubes','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'andernos les bains','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint medard en jalles','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'le teich','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'blanquefort','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'artigues pres bordeaux','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'ares','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'bruges','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'le pian medoc','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'martignas sur jalle','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'lormont','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'carbon blanc','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'villenave d ornon','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'mios','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'cestas','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'ambares et lagrave','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'leognan','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'talence','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'pessac','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'lanton','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'izon','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'merignac','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'le taillan medoc','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'cenon','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'salles','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'lege cap ferret','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint andre de cubzac','ville_departement' => '33','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'mauguio','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'perols','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'castelnau le lez','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'fabregues','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'baillargues','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'marsillargues','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'bedarieux','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'lattes','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint georges d orques','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'agde','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'beziers','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'balaruc les bains','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'meze','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'sete','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint jean de vedas','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'lodeve','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint clement de riviere','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'clapiers','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'pezenas','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'gignac','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint gely du fesc','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'pignan','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'castries','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'frontignan','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'marseillan','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'le cres','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'montpellier','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'villeneuve les maguelone','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'serignan','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'vendargues','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'cournonterral','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'lunel','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'grabels','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'la grande motte','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'vias','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'juvignac','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'clermont l herault','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'gigean','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'palavas les flots','ville_departement' => '34','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'bain de bretagne','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'rennes','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'redon','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'saint malo','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'dinard','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'cancale','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'saint gregoire','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'vern sur seiche','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'combourg','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'liffre','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'montfort sur meu','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'janze','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'bruz','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'thorigne fouillard','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'betton','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'fougeres','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'noyal chatillon sur seiche','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'vitre','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'pleurtuit','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'pace','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'le rheu','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'saint jacques de la lande','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'noyal sur vilaine','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'guichen','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'chantepie','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'cesson sevigne','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'chartres de bretagne','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'chateaugiron','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'melesse','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'acigne','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'mordelles','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'chateaubourg','ville_departement' => '35','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'deols','ville_departement' => '36','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'issoudun','ville_departement' => '36','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'chateauroux','ville_departement' => '36','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'le poinconnet','ville_departement' => '36','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'argenton sur creuse','ville_departement' => '36','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'le blanc','ville_departement' => '36','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'blere','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'saint cyr sur loire','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'ballan mire','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'amboise','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'loches','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'chinon','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'chambray les tours','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'tours','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'saint pierre des corps','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'joue les tours','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'monts','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'chateau renault','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'montlouis sur loire','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'saint avertin','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'fondettes','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'veigne','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'la riche','ville_departement' => '37','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'voiron','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'le peage de roussillon','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint martin d heres','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'meylan','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'charvieu chavagneux','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'la verpilliere','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'vizille','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'la tour du pin','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'roussillon','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint ismier','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'fontaine','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'echirolles','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'les avenieres','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'grenoble','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'varces allieres et risset','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'domene','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'bourgoin jallieu','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint martin le vinoux','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'la tronche','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'tignieu jameyzieu','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'le pont de claix','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint egreve','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint martin d uriage','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint marcellin','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'rives','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'moirans','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint maurice l exil','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'villefontaine','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint quentin fallavier','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'pont eveque','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'sassenage','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'la mure','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'l isle d abeau','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'gieres','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'villard bonnot','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'tullins','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'crolles','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'voreppe','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'seyssins','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'claix','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'vif','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'seyssinet pariset','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'vienne','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'pontcharra','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'eybens','ville_departement' => '38','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint claude','ville_departement' => '39','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'morez','ville_departement' => '39','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'dole','ville_departement' => '39','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'lons le saunier','ville_departement' => '39','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'champagnole','ville_departement' => '39','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'aire sur l adour','ville_departement' => '40','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'parentis en born','ville_departement' => '40','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'mimizan','ville_departement' => '40','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'biscarrosse','ville_departement' => '40','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'dax','ville_departement' => '40','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'capbreton','ville_departement' => '40','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint pierre du mont','ville_departement' => '40','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'tarnos','ville_departement' => '40','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'mont de marsan','ville_departement' => '40','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'soustons','ville_departement' => '40','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint paul les dax','ville_departement' => '40','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint vincent de tyrosse','ville_departement' => '40','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'romorantin lanthenay','ville_departement' => '41','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'vineuil','ville_departement' => '41','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'vendome','ville_departement' => '41','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'salbris','ville_departement' => '41','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'blois','ville_departement' => '41','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'mer','ville_departement' => '41','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'rive de gier','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'firminy','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint genest lerpt','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint galmier','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'la talaudiere','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'unieux','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'veauche','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'sorbiers','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'montbrison','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint etienne','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint jean bonnefonds','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'sury le comtal','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'andrezieux boutheon','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'le chambon feugerolles','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'chazelles sur lyon','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'le coteau','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint chamond','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint just saint rambert','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'la grand croix','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint priest en jarez','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'mably','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'la ricamarie','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'roche la moliere','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'villars','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'roanne','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'feurs','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'riorges','ville_departement' => '42','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'monistrol sur loire','ville_departement' => '43','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'brioude','ville_departement' => '43','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'aurec sur loire','ville_departement' => '43','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'sainte sigolene','ville_departement' => '43','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'le puy en velay','ville_departement' => '43','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'yssingeaux','ville_departement' => '43','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'sainte pazanne','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'carquefou','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saint herblain','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'vallet','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'donges','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'blain','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'pornic','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'suce sur erdre','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'le pouliguen','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'montoir de bretagne','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'basse goulaine','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'le loroux bottereau','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'trignac','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'thouare sur loire','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saint andre des eaux','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'bouguenais','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'les sorinieres','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saint sebastien sur loire','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'savenay','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'herbignac','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'pont saint martin','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'treillieres','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'la montagne','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'coueron','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'orvault','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'sautron','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'clisson','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'machecoul','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'pontchateau','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saint etienne de montluc','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saint julien de concelles','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'pornichet','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'vertou','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'nantes','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'sainte luce sur loire','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'reze','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'chateaubriant','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saint philbert de grand lieu','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'heric','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'bouaye','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'guerande','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'ancenis','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'nort sur erdre','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saint brevin les pins','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'vigneux de bretagne','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'la baule escoublac','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'la chapelle sur erdre','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saint nazaire','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'haute goulaine','ville_departement' => '44','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'amilly','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'la ferte saint aubin','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'briare','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'saint jean de braye','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'gien','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'villemandeur','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'beaugency','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'pithiviers','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'montargis','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'meung sur loire','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'chalette sur loing','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'la chapelle saint mesmin','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'fleury les aubrais','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'checy','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'malesherbes','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'saran','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'sully sur loire','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'saint jean de la ruelle','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'saint pryve saint mesmin','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'saint jean le blanc','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'ingre','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'saint denis en val','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'orleans','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'chateauneuf sur loire','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'olivet','ville_departement' => '45','name' => 'Centre-Val de Loire'),\r\n array('ville_nom_simple' => 'figeac','ville_departement' => '46','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'cahors','ville_departement' => '46','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'bon encontre','ville_departement' => '47','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'tonneins','ville_departement' => '47','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'agen','ville_departement' => '47','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'villeneuve sur lot','ville_departement' => '47','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'boe','ville_departement' => '47','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'le passage','ville_departement' => '47','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'marmande','ville_departement' => '47','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'sainte livrade sur lot','ville_departement' => '47','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'fumel','ville_departement' => '47','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'nerac','ville_departement' => '47','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'mende','ville_departement' => '48','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'chemille','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'cholet','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'beaupreau','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'angers','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'beaufort en vallee','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'montreuil juigne','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'trelaze','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saint barthelemy d anjou','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'avrille','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'segre','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'chalonnes sur loire','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'bouchemaine','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'doue la fontaine','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'les ponts de ce','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'longue jumelles','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saumur','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'murs erigne','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saint macaire en mauges','ville_departement' => '49','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'equeurdreville hainneville','ville_departement' => '50','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'avranches','ville_departement' => '50','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'tourlaville','ville_departement' => '50','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'granville','ville_departement' => '50','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'coutances','ville_departement' => '50','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'carentan','ville_departement' => '50','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'querqueville','ville_departement' => '50','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'cherbourg octeville','ville_departement' => '50','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'saint lo','ville_departement' => '50','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'valognes','ville_departement' => '50','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'la glacerie','ville_departement' => '50','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'betheny','ville_departement' => '51','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'reims','ville_departement' => '51','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'epernay','ville_departement' => '51','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'vitry le francois','ville_departement' => '51','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'chalons en champagne','ville_departement' => '51','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'cormontreuil','ville_departement' => '51','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'sezanne','ville_departement' => '51','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'tinqueux','ville_departement' => '51','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'fismes','ville_departement' => '51','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'saint memmie','ville_departement' => '51','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'chaumont','ville_departement' => '52','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'langres','ville_departement' => '52','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'saint dizier','ville_departement' => '52','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'chateau gontier','ville_departement' => '53','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'change','ville_departement' => '53','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'ernee','ville_departement' => '53','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saint berthevin','ville_departement' => '53','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'mayenne','ville_departement' => '53','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'evron','ville_departement' => '53','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'bonchamp les laval','ville_departement' => '53','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'laval','ville_departement' => '53','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'joeuf','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'tomblaine','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'malzeville','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'mont saint martin','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'laneuveville devant nancy','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'saint nicolas de port','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'jarville la malgrange','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'jarny','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'villerupt','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'frouard','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'longwy','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'saint max','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'nancy','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'pompey','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'ludres','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'longuyon','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'pont a mousson','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'champigneulles','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'briey','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'heillecourt','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'luneville','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'essey les nancy','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'seichamps','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'maxeville','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'vandoeuvre les nancy','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'neuves maisons','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'dombasle sur meurthe','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'toul','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'villers les nancy','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'liverdun','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'homecourt','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'laxou','ville_departement' => '54','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'verdun','ville_departement' => '55','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'commercy','ville_departement' => '55','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'bar le duc','ville_departement' => '55','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'auray','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'questembert','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'queven','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'theix','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'sarzeau','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'pontivy','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'lorient','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'vannes','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'arradon','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'sene','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'caudan','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'lanester','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'hennebont','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'languidic','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'ploeren','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'ploemeur','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'larmor plage','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'plouay','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'guidel','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'ploermel','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'inzinzac lochrist','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'guer','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'brech','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'pluvigner','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'baud','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'saint ave','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'kervignac','ville_departement' => '56','name' => 'Bretagne'),\r\n array('ville_nom_simple' => 'behren les forbach','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'marly','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'stiring wendel','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'yutz','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'florange','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'amneville','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'mondelange','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'uckange','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'forbach','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'woippy','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'moulins les metz','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'freyming merlebach','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'l hopital','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'metz','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'hombourg haut','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'hayange','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'talange','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'fameck','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'petite rosselle','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'guenange','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'thionville','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'sarrebourg','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'hagondange','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'terville','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'moyeuvre grande','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'faulquemont','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'bitche','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'maizieres les metz','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'rombas','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'farebersviller','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'saint avold','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'hettange grande','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'sarreguemines','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'audun le tiche','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'marange silvange','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'montigny les metz','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'algrange','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'creutzwald','ville_departement' => '57','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'decize','ville_departement' => '58','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'cosne cours sur loire','ville_departement' => '58','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'varennes vauzelles','ville_departement' => '58','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'la charite sur loire','ville_departement' => '58','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'nevers','ville_departement' => '58','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'waziers','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'conde sur l escaut','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'sainghin en weppes','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'roubaix','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'wattrelos','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'villeneuve d ascq','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'trith saint leger','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'roncq','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'bauvin','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'fourmies','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'lille','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'marquette lez lille','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'mons en baroeul','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'wattignies','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'sin le noble','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'aniche','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'la bassee','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'loos','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'fresnes sur escaut','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'le cateau cambresis','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'halluin','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'roost warendin','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'bourbourg','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'valenciennes','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'la madeleine','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'loon plage','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'wormhout','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'louvroil','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'lys lez lannoy','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'quesnoy sur deule','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'perenchies','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'saint saulve','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'santes','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'hazebrouck','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'onnaing','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'templeuve','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'bruay sur l escaut','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'houplines','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'vieux conde','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'lesquin','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'gravelines','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'hautmont','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'aulnoye aymeries','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'saint andre lez lille','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'quievrechain','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'maubeuge','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'merville','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'tourcoing','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'caudry','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'neuville en ferrain','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'jeumont','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'lallaing','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'coudekerque branche','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'annoeullin','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'fenain','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'croix','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'anzin','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'comines','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'marly','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'pecquencourt','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'ronchin','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'bondues','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'dunkerque','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'douchy les mines','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'ferriere la grande','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'escaudain','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'flines lez raches','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'saint amand les eaux','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'douai','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'orchies','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'wallers','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'grand fort philippe','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'nieppe','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'la gorgue','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'armentieres','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'wasquehal','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'mouvaux','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'seclin','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'lambersart','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'bailleul','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'cambrai','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'marcq en baroeul','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'estaires','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'lambres lez douai','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'denain','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'hem','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'la chapelle d armentieres','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'aulnoy lez valenciennes','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'raismes','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'leers','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'cuincy','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'haubourdin','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'flers en escrebieux','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'grande synthe','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'teteghem','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'faches thumesnil','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'wambrechies','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'somain','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'cappelle la grande','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'feignies','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'ostricourt','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'linselles','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'auby','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'dechy','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'wavrin','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'beuvrages','ville_departement' => '59','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'compiegne','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'chambly','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'nogent sur oise','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'mouy','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'meru','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'saint just en chaussee','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'senlis','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'noyon','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'creil','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'crepy en valois','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'gouvieux','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'pont sainte maxence','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'margny les compiegne','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'beauvais','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'lamorlaye','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'liancourt','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'villers saint paul','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'montataire','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'chantilly','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'clermont','ville_departement' => '60','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'flers','ville_departement' => '61','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'argentan','ville_departement' => '61','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'alencon','ville_departement' => '61','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'l aigle','ville_departement' => '61','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'la ferte mace','ville_departement' => '61','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'marquise','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'divion','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'grenay','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'mericourt','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'saint etienne au mont','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'oignies','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'marck','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'lievin','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'auchel','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'henin beaumont','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'guines','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'hersin coupigny','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'saint omer','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'harnes','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'wingles','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'rouvroy','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'cucq','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'arras','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'desvres','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'oye plage','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'sallaumines','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'noyelles sous lens','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'noeux les mines','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'montigny en gohelle','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'marles les mines','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'coulogne','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'annezin','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'beuvry','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'dainville','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'loison sous lens','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'arques','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'calais','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'wimereux','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'boulogne sur mer','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'etaples','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'libercourt','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'lillers','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'bethune','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'isbergues','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'le touquet paris plage','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'saint pol sur ternoise','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'courcelles les lens','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'leforest','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'carvin','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'loos en gohelle','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'aire sur la lys','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'le portel','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'barlin','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'bully les mines','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'bruay la buissiere','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'dourges','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'avion','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'outreau','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'courrieres','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'noyelles godault','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'saint laurent blangy','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'billy montigny','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'douvrin','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'fouquieres les lens','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'mazingarbe','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'longuenesse','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'lens','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'blendecques','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'vendin le vieil','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'houdain','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'beaurains','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'berck','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'saint martin boulogne','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'sains en gohelle','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'achicourt','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'calonne ricouart','ville_departement' => '62','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'pont du chateau','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'cournon d auvergne','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'ambert','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'clermont ferrand','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'issoire','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'ceyrat','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'lempdes','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'chamalieres','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'thiers','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'lezoux','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'cebazat','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'gerzat','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'riom','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'aubiere','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'beaumont','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'chatel guyon','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'romagnat','ville_departement' => '63','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'boucau','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'mourenx','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'hendaye','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'lescar','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'pau','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'oloron sainte marie','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'hasparren','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'lons','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'cambo les bains','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'bayonne','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'biarritz','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'urrugne','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'jurancon','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'bidart','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'ciboure','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'anglet','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'gan','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint pee sur nivelle','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'ustaritz','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'orthez','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint jean de luz','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'billere','ville_departement' => '64','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'aureilhan','ville_departement' => '65','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'lannemezan','ville_departement' => '65','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'tarbes','ville_departement' => '65','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'vic en bigorre','ville_departement' => '65','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'bagneres de bigorre','ville_departement' => '65','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'lourdes','ville_departement' => '65','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'cabestany','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'bompas','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint cyprien','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'ille sur tet','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint esteve','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'argeles sur mer','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'elne','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint laurent de la salanque','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'rivesaltes','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'thuir','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'ceret','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'le boulou','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'pia','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'canet en roussillon','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'prades','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'le soler','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'toulouges','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'perpignan','ville_departement' => '66','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'ostwald','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'mundolsheim','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'wasselonne','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'molsheim','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'barr','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'eckbolsheim','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'obernai','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'saverne','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'strasbourg','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'benfeld','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'bischwiller','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'vendenheim','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'geispolsheim','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'bischheim','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'schiltigheim','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'reichshoffen','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'souffelweyersheim','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'illkirch graffenstaden','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'selestat','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'hoenheim','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'erstein','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'brumath','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'la wantzenau','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'fegersheim','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'haguenau','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'mutzig','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'lingolsheim','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'wissembourg','ville_departement' => '67','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'wittelsheim','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'colmar','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'altkirch','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'kingersheim','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'saint louis','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'wintzenheim','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'illzach','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'wittenheim','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'sainte marie aux mines','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'cernay','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'thann','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'huningue','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'ensisheim','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'soultz haut rhin','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'riedisheim','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'brunstatt','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'pfastatt','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'sausheim','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'rixheim','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'lutterbach','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'guebwiller','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'mulhouse','ville_departement' => '68','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'oullins','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'neuville sur saone','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'grigny','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'venissieux','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'jonage','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'villefranche sur saone','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'tassin la demi lune','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'mions','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'corbas','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'gleize','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'caluire et cuire','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'irigny','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'chaponost','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'lentilly','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint fons','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint genis laval','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'amplepuis','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint symphorien d ozon','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'lyon','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint priest','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'brindas','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'genas','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'vaulx en velin','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'belleville','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'chassieu','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'craponne','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint bonnet de mure','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'villeurbanne','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'pierre benite','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'fontaines sur saone','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'francheville','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'brignais','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'ternay','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'meyzieu','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'l arbresle','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint cyr au mont d or','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'anse','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'bron','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'rillieux la pape','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'la mulatiere','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'ecully','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'decines charpieu','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'dardilly','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint didier au mont d or','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'feyzin','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'tarare','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'mornant','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'givors','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'sainte foy les lyon','ville_departement' => '69','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'lure','ville_departement' => '70','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'vesoul','ville_departement' => '70','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'luxeuil les bains','ville_departement' => '70','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'gray','ville_departement' => '70','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'hericourt','ville_departement' => '70','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'saint vallier','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'louhans','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'tournus','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'saint remy','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'montchanin','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'le creusot','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'digoin','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'montceau les mines','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'charnay les macon','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'chagny','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'paray le monial','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'macon','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'chalon sur saone','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'gueugnon','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'blanzy','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'saint marcel','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'chatenoy le royal','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'autun','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'bourbon lancy','ville_departement' => '71','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'le mans','ville_departement' => '72','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'mamers','ville_departement' => '72','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'change','ville_departement' => '72','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'allonnes','ville_departement' => '72','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'sable sur sarthe','ville_departement' => '72','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'coulaines','ville_departement' => '72','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'la ferte bernard','ville_departement' => '72','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'la fleche','ville_departement' => '72','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'arnage','ville_departement' => '72','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'aix les bains','ville_departement' => '73','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'albertville','ville_departement' => '73','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint jean de maurienne','ville_departement' => '73','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'la ravoire','ville_departement' => '73','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'chambery','ville_departement' => '73','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'challes les eaux','ville_departement' => '73','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint alban leysse','ville_departement' => '73','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'la motte servolex','ville_departement' => '73','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'ugine','ville_departement' => '73','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'bourg saint maurice','ville_departement' => '73','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'cognin','ville_departement' => '73','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'la roche sur foron','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'seynod','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'annecy','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'marnaz','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'sciez','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'thyez','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'evian les bains','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'meythet','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'thones','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'ville la grand','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'bonneville','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'passy','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint jorioz','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'thonon les bains','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'annecy le vieux','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'cran gevrier','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint pierre en faucigny','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'reignier esery','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'gaillard','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'sallanches','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'rumilly','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'poisy','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'annemasse','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'chamonix mont blanc','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'vetraz monthoux','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'marignier','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'scionzier','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'publier','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'cranves sales','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint gervais les bains','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'faverges','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'saint julien en genevois','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'cluses','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'ambilly','ville_departement' => '74','name' => 'Auvergne-Rhône-Alpes'),\r\n array('ville_nom_simple' => 'paris','ville_departement' => '75','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint pierre les elbeuf','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'octeville sur mer','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'le treport','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'cleon','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'le petit quevilly','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'gournay en bray','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'oissel','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'eu','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'darnetal','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'yvetot','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'grand couronne','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'le grand quevilly','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'elbeuf','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'bois guillaume','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'barentin','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'harfleur','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'le trait','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'saint etienne du rouvray','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'deville les rouen','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'malaunay','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'maromme','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'notre dame de gravenchon','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'franqueville saint pierre','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'notre dame de bondeville','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'bihorel','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'rouen','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'mont saint aignan','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'bonsecours','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'dieppe','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'montivilliers','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'sotteville les rouen','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'petit couronne','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'pavilly','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'saint aubin les elbeuf','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'caudebec les elbeuf','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'lillebonne','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'sainte adresse','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'le mesnil esnard','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'fecamp','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'gonfreville l orcher','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'canteleu','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'bolbec','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'le havre','ville_departement' => '76','name' => 'Normandie'),\r\n array('ville_nom_simple' => 'emerainville','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'nangis','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'avon','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'nanteuil les meaux','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'magny le hongre','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'lieusaint','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'gretz armainvilliers','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint thibault des vignes','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'moissy cramayel','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'vert saint denis','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'lagny sur marne','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint pierre les nemours','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'claye souilly','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bois le roi','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'champs sur marne','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'esbly','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'chelles','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'torcy','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'dammarie les lys','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'roissy en brie','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'fontainebleau','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'meaux','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'nemours','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'brie comte robert','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'othis','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'vaires sur marne','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'montereau fault yonne','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bailly romainvilliers','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'combs la ville','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'pontault combault','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'dammartin en goele','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'coulommiers','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'champagne sur seine','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'vaux le penil','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'cesson','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'ozoir la ferriere','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'tournan en brie','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'noisiel','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'souppes sur loing','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'lognes','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'provins','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'la ferte sous jouarre','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'thorigny sur marne','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bussy saint georges','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'fontenay tresigny','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'nandy','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'melun','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'savigny le temple','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'serris','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le mee sur seine','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint fargeau ponthierry','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint pathus','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'mitry mory','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'montevrain','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villeparisis','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'courtry','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'lesigny','ville_departement' => '77','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'chanteloup les vignes','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'chambourcy','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'meulan en yvelines','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'rambouillet','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'montesson','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le vesinet','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'maisons laffitte','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'maurepas','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'houilles','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'les mureaux','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'sartrouville','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'la verriere','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'croissy sur seine','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bois d arcy','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'triel sur seine','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'acheres','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'carrieres sous poissy','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint nom la breteche','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'poissy','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'les essarts le roi','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'marly le roi','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'carrieres sur seine','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'verneuil sur seine','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'andresy','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'epone','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'plaisir','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'magny les hameaux','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'mantes la ville','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'gargenville','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'rosny sur seine','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint cyr l ecole','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'versailles','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'guyancourt','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'buc','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'chatou','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'trappes','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'vernouillet','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'fontenay le fleury','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le chesnay','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'beynes','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bougival','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'louveciennes','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'magnanville','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'maule','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'conflans sainte honorine','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'mantes la jolie','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint germain en laye','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'aubergenville','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'voisins le bretonneux','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'les clayes sous bois','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le pecq','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le perray en yvelines','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villepreux','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'montigny le bretonneux','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'noisy le roi','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'elancourt','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'jouy en josas','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'viroflay','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villennes sur seine','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'orgeval','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'limay','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'jouars pontchartrain','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le mesnil le roi','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'chevreuse','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'la celle saint cloud','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'velizy villacoublay','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le mesnil saint denis','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint remy les chevreuse','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint arnoult en yvelines','ville_departement' => '78','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'parthenay','ville_departement' => '79','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'niort','ville_departement' => '79','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'chauray','ville_departement' => '79','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint maixent l ecole','ville_departement' => '79','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'aiffres','ville_departement' => '79','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'la creche','ville_departement' => '79','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'bressuire','ville_departement' => '79','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'thouars','ville_departement' => '79','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'nueil les aubiers','ville_departement' => '79','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'mauleon','ville_departement' => '79','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'doullens','ville_departement' => '80','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'peronne','ville_departement' => '80','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'montdidier','ville_departement' => '80','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'roye','ville_departement' => '80','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'abbeville','ville_departement' => '80','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'ham','ville_departement' => '80','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'longueau','ville_departement' => '80','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'corbie','ville_departement' => '80','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'amiens','ville_departement' => '80','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'albert','ville_departement' => '80','name' => 'Hauts-de-France'),\r\n array('ville_nom_simple' => 'albi','ville_departement' => '81','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'gaillac','ville_departement' => '81','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint juery','ville_departement' => '81','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'mazamet','ville_departement' => '81','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'lavaur','ville_departement' => '81','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'graulhet','ville_departement' => '81','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'aussillon','ville_departement' => '81','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'saint sulpice','ville_departement' => '81','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'labruguiere','ville_departement' => '81','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'carmaux','ville_departement' => '81','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'castres','ville_departement' => '81','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'castelsarrasin','ville_departement' => '82','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'valence','ville_departement' => '82','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'moissac','ville_departement' => '82','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'caussade','ville_departement' => '82','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'montech','ville_departement' => '82','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'montauban','ville_departement' => '82','name' => 'Occitanie'),\r\n array('ville_nom_simple' => 'sollies toucas','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'cogolin','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'la londe les maures','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'sainte maxime','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'sollies pont','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'saint cyr sur mer','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'cavalaire sur mer','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'la garde','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'puget sur argens','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'sanary sur mer','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'hyeres','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'la valette du var','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'ollioules','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'saint maximin la sainte baume','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'lorgues','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'les arcs','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'roquebrune sur argens','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'le pradet','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'bormes les mimosas','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'carqueiranne','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'six fours les plages','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'vidauban','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'gareoult','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'draguignan','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'montauroux','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'trans en provence','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'le muy','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'frejus','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'cuers','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'la crau','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'le lavandou','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'toulon','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'le beausset','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'la cadiere d azur','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'brignoles','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'saint raphael','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'le luc','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'saint tropez','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'pierrefeu du var','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'la farlede','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'saint mandrier sur mer','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'bandol','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'la seyne sur mer','ville_departement' => '83','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'bedarrides','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'le pontet','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'cavaillon','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'vedene','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'morieres les avignon','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'pernes les fontaines','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'sarrians','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'sorgues','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'l isle sur la sorgue','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'valreas','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'carpentras','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'courthezon','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'entraigues sur la sorgue','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'mazan','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'bollene','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'monteux','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'orange','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'avignon','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'pertuis','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'le thor','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'apt','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'vaison la romaine','ville_departement' => '84','name' => 'Provence-Alpes-Côte d\\'Azur'),\r\n array('ville_nom_simple' => 'talmont saint hilaire','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'le poire sur vie','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'chateau d olonne','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saint jean de monts','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'fontenay le comte','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'olonne sur mer','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'pouzauges','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'challans','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'lucon','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'les sables d olonne','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'la roche sur yon','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saint gilles croix de vie','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'chantonnay','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'mortagne sur sevre','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'saint hilaire de riez','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'les herbiers','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'aizenay','ville_departement' => '85','name' => 'Pays de la Loire'),\r\n array('ville_nom_simple' => 'montmorillon','ville_departement' => '86','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'buxerolles','ville_departement' => '86','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'jaunay clan','ville_departement' => '86','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'naintre','ville_departement' => '86','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'poitiers','ville_departement' => '86','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'loudun','ville_departement' => '86','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint benoit','ville_departement' => '86','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'chatellerault','ville_departement' => '86','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'migne auxances','ville_departement' => '86','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'chauvigny','ville_departement' => '86','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'isle','ville_departement' => '87','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint junien','ville_departement' => '87','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'feytiat','ville_departement' => '87','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'limoges','ville_departement' => '87','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'saint yrieix la perche','ville_departement' => '87','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'aixe sur vienne','ville_departement' => '87','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'ambazac','ville_departement' => '87','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'couzeix','ville_departement' => '87','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'panazol','ville_departement' => '87','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'le palais sur vienne','ville_departement' => '87','name' => 'Nouvelle-Aquitaine'),\r\n array('ville_nom_simple' => 'vittel','ville_departement' => '88','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'epinal','ville_departement' => '88','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'golbey','ville_departement' => '88','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'thaon les vosges','ville_departement' => '88','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'raon l etape','ville_departement' => '88','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'gerardmer','ville_departement' => '88','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'mirecourt','ville_departement' => '88','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'saint die des vosges','ville_departement' => '88','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'remiremont','ville_departement' => '88','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'rambervillers','ville_departement' => '88','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'neufchateau','ville_departement' => '88','name' => 'Grand Est'),\r\n array('ville_nom_simple' => 'tonnerre','ville_departement' => '89','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'villeneuve sur yonne','ville_departement' => '89','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'avallon','ville_departement' => '89','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'migennes','ville_departement' => '89','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'sens','ville_departement' => '89','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'joigny','ville_departement' => '89','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'auxerre','ville_departement' => '89','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'belfort','ville_departement' => '90','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'delle','ville_departement' => '90','name' => 'Bourgogne-Franche-Comté'),\r\n array('ville_nom_simple' => 'brunoy','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villebon sur yvette','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'evry','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'dourdan','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'draveil','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'mennecy','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'grigny','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'wissous','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'ris orangis','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bures sur yvette','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'palaiseau','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'arpajon','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'epinay sur orge','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'boussy saint antoine','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'la ville du bois','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'verrieres le buisson','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'crosne','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'longpont sur orge','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint michel sur orge','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint pierre du perray','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'ballancourt sur essonne','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'vigneux sur seine','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'courcouronnes','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'etrechy','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saintry sur seine','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'montlhery','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'fleury merogis','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'quincy sous senart','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'igny','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'viry chatillon','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'etampes','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'corbeil essonnes','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'orsay','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'massy','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'yerres','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'paray vieille poste','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint germain les arpajon','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'gif sur yvette','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'morangis','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'chilly mazarin','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'epinay sous senart','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'les ulis','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'athis mons','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'soisy sur seine','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'lisses','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'marcoussis','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'linas','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'morsang sur orge','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'juvisy sur orge','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'montgeron','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bretigny sur orge','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villemoisson sur orge','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bondoufle','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'egly','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint germain les corbeil','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'itteville','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'breuillet','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'lardy','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'sainte genevieve des bois','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'savigny sur orge','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'limours','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'longjumeau','ville_departement' => '91','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'neuilly sur seine','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'chatillon','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bois colombes','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'puteaux','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'clamart','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'meudon','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'issy les moulineaux','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'vaucresson','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'rueil malmaison','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'antony','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le plessis robinson','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'levallois perret','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'boulogne billancourt','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'asnieres sur seine','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'colombes','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'fontenay aux roses','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'garches','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villeneuve la garenne','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'courbevoie','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'montrouge','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'chatenay malabry','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'clichy','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'vanves','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'ville d avray','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'suresnes','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'sevres','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'sceaux','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'chaville','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'la garenne colombes','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'gennevilliers','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'nanterre','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint cloud','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'malakoff','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bagneux','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bourg la reine','ville_departement' => '92','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le bourget','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bagnolet','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'la courneuve','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'les pavillons sous bois','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'sevran','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villemomble','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'montreuil','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'livry gargan','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'aulnay sous bois','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'dugny','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villetaneuse','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le raincy','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint denis','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'les lilas','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'clichy sous bois','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'noisy le grand','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'romainville','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'aubervilliers','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'noisy le sec','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villepinte','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bobigny','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'pierrefitte sur seine','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'tremblay en france','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'vaujours','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'montfermeil','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'l ile saint denis','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le pre saint gervais','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'stains','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'pantin','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'neuilly plaisance','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'rosny sous bois','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint ouen','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'gournay sur marne','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bondy','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'epinay sur seine','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'neuilly sur marne','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'drancy','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le blanc mesnil','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'gagny','ville_departement' => '93','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'fontenay sous bois','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'l hay les roses','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'limeil brevannes','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'alfortville','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le plessis trevise','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'choisy le roi','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint mande','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'fresnes','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villiers sur marne','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le kremlin bicetre','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'boissy saint leger','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'la queue en brie','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'ormesson sur marne','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'arcueil','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'marolles en brie','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villecresnes','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le perreux sur marne','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'valenton','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'nogent sur marne','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'cachan','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint maur des fosses','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'rungis','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'thiais','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'sucy en brie','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'vincennes','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'charenton le pont','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint maurice','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bry sur marne','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bonneuil sur marne','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'joinville le pont','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'ablon sur seine','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'gentilly','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villejuif','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'vitry sur seine','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'chevilly larue','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'chennevieres sur marne','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'champigny sur marne','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'ivry sur seine','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'maisons alfort','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'orly','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villeneuve le roi','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villeneuve saint georges','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'creteil','ville_departement' => '94','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'osny','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'cergy','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'ezanville','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'jouy le moutier','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'magny en vexin','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'domont','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'montmorency','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'pontoise','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'vaureal','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'marly la ville','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'groslay','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'menucourt','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'herblay','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'ermont','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'auvers sur oise','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint brice sous foret','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'goussainville','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'pierrelaye','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'franconville','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'louvres','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'gonesse','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'deuil la barre','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bezons','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'courdimanche','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint gratien','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'taverny','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bessancourt','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'beaumont sur oise','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'cormeilles en parisis','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'bouffemont','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'sannois','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'ecouen','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint prix','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint leu la foret','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'saint ouen l aumone','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'persan','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'l isle adam','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'garges les gonesse','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'montmagny','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'montigny les cormeilles','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'eaubonne','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'parmain','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'argenteuil','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'le plessis bouchard','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'villiers le bel','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'eragny','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'sarcelles','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'mery sur oise','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'soisy sous montmorency','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'beauchamp','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'enghien les bains','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'arnouville','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'fosses','ville_departement' => '95','name' => 'Île-de-France'),\r\n array('ville_nom_simple' => 'ajaccio','ville_departement' => '2A','name' => 'Corse'),\r\n array('ville_nom_simple' => 'porto vecchio','ville_departement' => '2A','name' => 'Corse'),\r\n array('ville_nom_simple' => 'corte','ville_departement' => '2B','name' => 'Corse'),\r\n array('ville_nom_simple' => 'bastia','ville_departement' => '2B','name' => 'Corse'),\r\n array('ville_nom_simple' => 'biguglia','ville_departement' => '2B','name' => 'Corse'),\r\n array('ville_nom_simple' => 'borgo','ville_departement' => '2B','name' => 'Corse'),\r\n array('ville_nom_simple' => 'calvi','ville_departement' => '2B','name' => 'Corse'),\r\n array('ville_nom_simple' => 'les abymes','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'baie mahault','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'baillif','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'basse terre','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'pigeon','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'capesterre belle eau','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'gourbeyre','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'grand bourg','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'le gosier','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'goyave','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'lamentin','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'morne a l eau','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'le moule','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'petit bourg','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'petit canal','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'pointe a pitre','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'pointe noire','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'port louis','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'st claude','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'st francois','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'ste anne','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'ste rose','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'trois rivieres','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'vieux habitants','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'le diamant','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'ducos','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'fort de france','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'le francois','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'gros morne','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'le lamentin','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'le lorrain','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'le marin','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'le morne rouge','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'riviere pilote','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'riviere salee','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'le robert','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'st esprit','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'st joseph','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'ste luce','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'ste marie','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'shoelcher','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'la trinite','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'les trois ilets','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'le vauclin','ville_departement' => '972','name' => 'Martinique'),\r\n array('ville_nom_simple' => 'cayenne','ville_departement' => '973','name' => 'Guyane'),\r\n array('ville_nom_simple' => 'kourou','ville_departement' => '973','name' => 'Guyane'),\r\n array('ville_nom_simple' => 'macouria tonate','ville_departement' => '973','name' => 'Guyane'),\r\n array('ville_nom_simple' => 'mana','ville_departement' => '973','name' => 'Guyane'),\r\n array('ville_nom_simple' => 'matoury','ville_departement' => '973','name' => 'Guyane'),\r\n array('ville_nom_simple' => 'remire montjoly','ville_departement' => '973','name' => 'Guyane'),\r\n array('ville_nom_simple' => 'st laurent du maroni','ville_departement' => '973','name' => 'Guyane'),\r\n array('ville_nom_simple' => 'maripasoula','ville_departement' => '973','name' => 'Guyane'),\r\n array('ville_nom_simple' => 'grand santi','ville_departement' => '973','name' => 'Guyane'),\r\n array('ville_nom_simple' => 'apatou','ville_departement' => '973','name' => 'Guyane'),\r\n array('ville_nom_simple' => 'les avirons','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'bras panon','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'entre deux','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'l etang sale','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'petite ile','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'la plaine des palmistes','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'le port','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'la possession','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'st andre','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'st benoit','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'ste clotilde','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'st joseph','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'st leu','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'st louis','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'st paul','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'ravine des cabris','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'st philippe','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'ste marie','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'ste rose','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'ste suzanne','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'salazie','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'le tampon','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'les trois bassins','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'cilaos','ville_departement' => '974','name' => 'La Réunion'),\r\n array('ville_nom_simple' => 'bandraboua','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'bandrele','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'boueni','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'chiconi','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'chirongui','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'dembeni','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'dzaoudzi','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'koungou','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'mamoudzou','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'mtsamboro','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'm tsangamouji','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'ouangani','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'pamandzi','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'sada','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'tsingoni','ville_departement' => '976','name' => 'Mayotte'),\r\n array('ville_nom_simple' => 'st barthelemy','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'st martin','ville_departement' => '971','name' => 'Guadeloupe'),\r\n array('ville_nom_simple' => 'st pierre et miquelon','ville_departement' => '975','name' => 'Collectivités d\\'Outre-Mer')\r\n );\r\n\r\n\r\n foreach ($regions as $region_data) {\r\n\r\n $bool = false;\r\n $all_region = $manager->getRepository(Region::class)->findBy(['name' => $region_data['name']]);\r\n $departement = new Departement();\r\n $departement->setName($region_data['ville_departement']);\r\n foreach ($all_region as $a_region) {\r\n $departement->setRegion($a_region);\r\n $bool = true;\r\n }\r\n\r\n if (!$bool) {\r\n $region = new Region();\r\n $region->setName($region_data['name']);\r\n $departement->setRegion($region);\r\n }\r\n\r\n $manager->persist($departement);\r\n $manager->flush();\r\n }\r\n\r\n $method = 'GET';\r\n\r\n\r\n $url = 'https://api.ozae.com/gnw/articles?date=20180101__20190320&key=f287095e988e47c0804e92fd513b9843&edition=fr-fr&query=accident';\r\n $data = null;\r\n $curl = curl_init();\r\n\r\n switch ($method) {\r\n case \"POST\":\r\n curl_setopt($curl, CURLOPT_POST, 1);\r\n\r\n if ($data)\r\n curl_setopt($curl, CURLOPT_POSTFIELDS, $data);\r\n break;\r\n\r\n case \"PUT\":\r\n curl_setopt($curl, CURLOPT_PUT, 1);\r\n break;\r\n default:\r\n if ($data)\r\n $url = sprintf(\"%s?%s\", $url, http_build_query($data));\r\n }\r\n\r\n // Optional Authentication:\r\n curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);\r\n curl_setopt($curl, CURLOPT_USERPWD, \"username:password\");\r\n\r\n curl_setopt($curl, CURLOPT_URL, $url);\r\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);\r\n\r\n $result = curl_exec($curl);\r\n\r\n curl_close($curl);\r\n\r\n $result = json_decode($result);\r\n\r\n foreach ($result->articles as $key => $aResult) {\r\n $date = new \\DateTime('2017/1/1');\r\n $date_first_seen = new \\DateTime($aResult->date_first_seen);\r\n $date_last_seen = new \\DateTime($aResult->date_last_seen);\r\n $categories = array();\r\n\r\n $article = new Article();\r\n $html_content = $this->callAPI($aResult->id,'test');\r\n $tags = array(\r\n 'moto',\r\n 'motocyclisme',\r\n 'scooter',\r\n 'circulation',\r\n 'jeep',\r\n 'fourgon',\r\n 'conducteur',\r\n 'chauffeur',\r\n 'voiture',\r\n 'vélo',\r\n 'automobile',\r\n 'avion',\r\n 'véhicule',\r\n 'train',\r\n 'bicyclette',\r\n );\r\n foreach ($tags as $tag) {\r\n if (strpos($html_content, $tag) !== false) {\r\n array_push($categories, $tag);\r\n }\r\n }\r\n $gravite = array();\r\n if (count($categories) !== 0) {\r\n $tags = array(\r\n 'mort',\r\n 'décès',\r\n 'drame',\r\n 'tragédie',\r\n 'dramatique',\r\n 'tragique',\r\n 'trépas',\r\n 'tué',\r\n 'décédé',\r\n 'blessé',\r\n 'grave',\r\n 'sans conséquence',\r\n );\r\n foreach ($tags as $tag) {\r\n if (strpos($html_content, $tag) !== false) {\r\n array_push($gravite, $tag);\r\n }\r\n }\r\n\r\n $tags = array(\r\n 'soirée alcoolisée',\r\n 'minuit',\r\n 'stupéfiant',\r\n 'drogue',\r\n 'cannabis',\r\n );\r\n $causes = array();\r\n foreach ($tags as $tag) {\r\n if (strpos($html_content, 'négatif') === false) {\r\n if (strpos($html_content, $tag) !== false) {\r\n array_push($causes, $tag);\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (count($categories) !== 0) {\r\n $article->setName($aResult->name);\r\n $article->setAuthor('John doe');\r\n $article->setArticleScore($aResult->article_score);\r\n $article->setContentHtml($html_content);\r\n $article->setDateFirstSeen($date_first_seen);\r\n $article->setDateLastSeen($date_last_seen);\r\n $article->setImgUri($aResult->img_uri);\r\n $article->setNewsonfire(true);\r\n $article->setShowInterval($date);\r\n $article->setSocialScore($aResult->social_score);\r\n $article->setUrl($aResult->url);\r\n $article->setSocialSpeedSph($aResult->social_speed_sph);\r\n $article->setCategories($categories);\r\n $article->setCauses($causes);\r\n $article->setGravite($gravite);\r\n $all_departement = $manager->getRepository(Departement::class)->findAll();\r\n $added_departement= array();\r\n foreach ($all_departement as $departement) {\r\n if ( (strpos($html_content, $departement->getName()) !== false) ) {\r\n if(!in_array($departement->getName(),$added_departement)) {\r\n array_push($added_departement, $departement->getName());\r\n $article->addDepartement($departement);\r\n $article->addRegion($departement->getRegion());\r\n }\r\n }\r\n }\r\n $manager->persist($article);\r\n }\r\n }\r\n\r\n $manager->flush();\r\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n $faker = Factory::create();\n $faker->seed(2);\n\n for ($i = 0; $i < 20; $i++) {\n $user = $this->getReference('users_user' . $faker->numberBetween(1, 24));\n $article = $this->getReference('articles_article' . $faker->numberBetween(0, 19));\n \n $share = new Shares();\n $share\n ->setArticles($article)\n ->setUser($user)\n ->setSharedAt($faker->dateTimeInInterval('-10 months', '+6 months'));\n $manager->persist($share);\n }\n\n $manager->flush();\n }", "public function loadFixtures($path) : void\n {\n /** @var EntityManager $em */\n $em = $this->getApplicationServiceLocator()->get(EntityManager::class);\n $em->getConnection()->exec('SET foreign_key_checks = 0');\n $loader = new Loader();\n $loader->loadFromDirectory($path);\n $purger = new ORMPurger($em);\n $purger->setPurgeMode(ORMPurger::PURGE_MODE_TRUNCATE);\n $executor = new ORMExecutor($em, $purger);\n $executor->execute($loader->getFixtures());\n $em->getConnection()->exec('SET foreign_key_checks = 1');\n }", "public function setUp()\n\t{\n\t\tparent::setUp();\n if(is_array($this->fixtures)){\n foreach($this->fixtures as $fixtureName=>$modelClass)\n {\n $tableName=WF_Table::model($modelClass)->tableName();\n $this->resetTable($tableName);\n $rows=$this->loadFixtures($modelClass, $tableName);\n if(is_array($rows) && is_string($fixtureName))\n {\n $this->_rows[$fixtureName]=$rows;\n if(isset($modelClass))\n {\n foreach(array_keys($rows) as $alias)\n $this->_records[$fixtureName][$alias]=$modelClass;\n }\n }\n }\n }\n }", "public function load(ObjectManager $manager)\n {\n $centers = Yaml::parseFile(__DIR__.'/centersData.yaml');\n\n // loop on 3 centers and set data\n for ($i = 0; $i < 3; $i++) {\n // Center\n $center = New Center();\n $center->setName($centers['name'][$i]);\n $center->setCode(124 + $i);\n $center->setPicture((124 + $i).'.jpg');\n $center->setDescription($centers['description'][$i]);\n\n $address = new Address();\n $address->setAddress($centers['address'][$i]);\n $address->setCity($centers['city'][$i]);\n $address->setZipCode($centers['zipCode'][$i]);\n\n $center->setAddress($address);\n\n $this->addReference(\"center\".$i, $center);\n\n $manager->persist($center);\n }\n\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n $actividades = $manager->createQuery('Select a FROM EquipoBundle:Actividad a')\n ->setMaxResults(20)\n ->getResult();\n\n foreach ($actividades as $actividad) {\n\n for ($j=1; $j<=5; $j++) {\n $anuncio = new Anuncio();\n\n $nombre = $this->getNombre();\n $anuncio->setNombre($nombre);\n $anuncio->setDescripcion($this->getDescripcion());\n $anuncio->setSlug(Util::slugify($nombre));\n $anuncio->setFecha(new \\DateTime('now - '.rand(1, 150).' days'));\n $anuncio->setActividad($actividad);\n\n $manager->persist($anuncio);\n\n }\n }\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n $categories = $this->categoryRepository->findAll();\n $type = $this->typeRepository->findAll();\n\n for($i = 1; $i < 40; $i++){\n $product = new Product();\n $name = 'product' . $i;\n\n $product->setPrice(rand(3, 50));\n $product->setName($name);\n $product->setCategory($categories[array_rand($categories)]);\n $product->setSlug($this->slugify->slugify($name));\n $product->setDescription('whatever' . $i);\n $product->setProductType($type[array_rand($type)]);\n\n $manager->persist($product);\n }\n $manager->flush();\n }", "public function load(ObjectManager $manager)\n {\n// $pegawai1 = new Pegawai();\n// $pegawai1->setNama('Pegawai 1');\n// $pegawai1->setUser(NewUserFixtures::USER_SUPER_ADMIN);\n// $pegawai1->setTempatLahir('Jakarta');\n// $pegawai1->setTanggalLahir(new DateTimeImmutable());\n// $pegawai1->setJenisKelamin(JenisKelaminFixtures::LAKI);\n// $pegawai1->setAgama(AgamaFixtures::AGAMA_1);\n// $pegawai1->setNik('9999999999999999');\n// $pegawai1->setNip9('999999999');\n// $pegawai1->setNip18('999999999999999999');\n// $manager->persist($pegawai1);\n//\n// $manager->flush();\n//\n// $this->addReference(self::PEGAWAI_1, $pegawai1);\n }", "public function load(ObjectManager $manager)\n {\n // projects\n $preorder = new Project();\n $preorder->setName('preorder.it');\n $preorder->setSlug('preorder-it');\n $preorder->setUrl('http://preorder.it');\n $preorder->setDate(new \\DateTime('now'));\n $preorder->setDescription('Press-releases and reviews of the latest electronic novelties. The possibility to leave a pre-order.');\n $preorder->setUsers('<dl><dt>art-director and designer</dt><dd>Oleg Ulasyuk</dd></dl>');\n $preorder->setOnFrontPage(0);\n $preorder->setOrdernum(0);\n $preorder->addCategory($manager->merge($this->getReference('category-development')));\n $manager->persist($preorder);\n\n $eprice = new Project();\n $eprice->setName('eprice.kz');\n $eprice->setSlug('eprice-kz');\n $eprice->setUrl('http://eprice.kz');\n $eprice->setDate(new \\DateTime('now'));\n $eprice->setDescription('Comparison of the prices of mobile phones, computers, monitors, audio and video in Kazakhstan');\n $eprice->setOnFrontPage(1);\n $eprice->setOrdernum(1);\n $eprice->addCategory($manager->merge($this->getReference('category-development')));\n $manager->persist($eprice);\n\n $manager->flush();\n\n $this->addReference('project-preorder', $preorder);\n $this->addReference('project-eprice', $eprice);\n\n for ($i = 0; $i < 16; $i++) {\n $example = new Project();\n $example->setName('example.com_' . $i);\n $example->setSlug('example-com_' . $i);\n $example->setUrl('http://example.com');\n $example->setDate(new \\DateTime('now'));\n $example->setDescription('As described in RFC 2606, we maintain a number of domains such as EXAMPLE.COM and EXAMPLE.ORG for documentation purposes. These domains may be used as illustrative examples in documents without prior coordination with us. They are not available for registration.');\n $example->setOnFrontPage(0);\n $example->setOrdernum(2 + $i);\n $example->addCategory($manager->merge($this->getReference('category-development')));\n $manager->persist($example);\n }\n $manager->flush();\n }", "public function load(ObjectManager $om)\n {\n // auto save to db example\n // $members = Fixtures::load(__DIR__.'/members.yml', $om);\n\n $loader = new Loader();\n $members = $loader->load(__DIR__.'/members.yml');\n\n\n $manager = $this->container->get('member.manager');\n\n\n foreach ($members as $member) {\n $manager->updateMember($member, false);\n }\n\n $persister = new Doctrine($om);\n $persister->persist($members);\n }" ]
[ "0.7716538", "0.7529439", "0.7402691", "0.72777444", "0.7223488", "0.7209462", "0.7139631", "0.6915006", "0.68990153", "0.6875326", "0.6875137", "0.6855718", "0.6788501", "0.6783442", "0.67567796", "0.67101395", "0.66844124", "0.6680024", "0.6670111", "0.66346544", "0.66220057", "0.6611413", "0.6602248", "0.6585641", "0.65783095", "0.6555447", "0.65541506", "0.65529454", "0.65423167", "0.653727", "0.6530299", "0.6529559", "0.64883107", "0.64865166", "0.64806485", "0.64740777", "0.645328", "0.6443378", "0.6438564", "0.64308065", "0.64176625", "0.6378031", "0.6372432", "0.637175", "0.6357214", "0.63507164", "0.6341343", "0.6324048", "0.6292299", "0.6281388", "0.6281062", "0.6269478", "0.62521875", "0.62473273", "0.6222548", "0.62207615", "0.6205931", "0.6205512", "0.61966026", "0.61904573", "0.61850125", "0.6182238", "0.6176135", "0.6174774", "0.6167386", "0.6162453", "0.61538655", "0.6137397", "0.6134901", "0.61321163", "0.6130035", "0.61287075", "0.61196285", "0.6115655", "0.61137927", "0.61132103", "0.6103256", "0.6097258", "0.60855615", "0.60841244", "0.6084101", "0.6081804", "0.6072515", "0.606031", "0.6059742", "0.6055301", "0.6050595", "0.60482025", "0.60413927", "0.6040973", "0.6039172", "0.6035793", "0.6032488", "0.6030243", "0.6027507", "0.6026071", "0.602311", "0.602031", "0.60124457", "0.60113037", "0.59893775" ]
0.0
-1
Put data source for user
function sumo_put_datasource($id='') { GLOBAL $SUMO, $language; $list = "<select name='datasource_id' " ."onchange='if(this.value>1){if(document.forms[0].new_password!=null){document.forms[0].new_password.disabled=true;document.forms[0].renew_password.disabled=true;}}" ."else{if(document.forms[0].new_password!=null){document.forms[0].new_password.disabled=false;document.forms[0].renew_password.disabled=false;}}" ."'>\n"; $query = "SELECT * FROM ".SUMO_TABLE_DATASOURCES." ORDER BY name"; $rs = $SUMO['DB']->Execute($query); while($tab = $rs->FetchRow()) { $selected = ($tab['id'] == $id || $id == "") ? ' selected' : ''; $list .= " <option value='".$tab['id']."'$selected>" .$tab['name'] ."</option>\n"; } $selected = $id === 0 ? ' selected' : ''; if($_SERVER["USER"] == 'root') $list .= " <option value='0'$selected>".$language['Unix']."</option>\n"; $list .= "</select>"; return $list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createDataSource()\n {\n $this->debug(\"Creating data source\");\n $this->dataSource = DataSourceRepository::createDataSource(\n $this->config['datasource']['key'],\n $this->config['datasource']['title'],\n 'SYSTEM'\n );\n $this->dataSource->setDataSourceAttribute(\"manual_publish\", 0);\n $this->dataSource->setDataSourceAttribute(\"qa_flag\", 0);\n\n $this->log(\"Data source {$this->dataSource->title}({$this->dataSource->data_source_id}) created\");\n }", "function setStaticUserSource($data){\n\t\t$this->user_data=$data;\n\t\treturn $this;\n\t}", "protected function _useSourceDatasource() {\n\n // Instantiate source datasource if it's not already instantiated\n if (is_null($this->_externalNewsSourceDatasource)) {\n $this->_externalNewsSourceDatasource = new Datasource_Cms_ExternalNews_Source();\n }\n }", "protected function _prepareDataSource()\n {\n $studentDbTable = new Admin_Db_Table_Student();\n $this->setDataSource($studentDbTable->dataGrid());\n }", "function put(){\r\n\t\t//Connect\r\n\t\t$sql = new DataBase;\r\n\t\t$sql->connect();\r\n\t}", "public function setDataSource($ds) {\n $this->payload['ds'] = $ds ;\n }", "protected function _prepareDataSource()\n {\n $studentDbTable = new Admin_Db_Table_Student();\n $this->setDataSource($studentDbTable->getByClasses(array($this->_options->classesId)));\n }", "protected function setSource($source) {}", "public function setSource($source);", "public function setDatasource($datasource)\n {\n $this->datasource = $datasource;\n }", "public function dataBind(&$dataSource);", "public function setDataSrc($src)\n {\n $this->_dataSrc = $src;\n }", "public function registerDataSource(string $name, SourceInterface $dataSource): void {\n\n $this->dataSourceCollection->registerDataSource($name, $dataSource);\n\n }", "function setUserSource($table,$db_fields=\"*\",$user_id=null){\n\t\tif(!$this->api->db)throw new BaseException('DB must be initialized if you want to use setSource');\n\t\t$this->user_dq = $this->api->db->dsql();\n\t\t$this->user_id=$user_id;\n\n\t\t$this->user_dq->table($table);\n\t\t$this->user_dq->field($db_fields);\n\t\t$this->user_dq->where('user_id',$this->user_id);\n\t\treturn $this;\n\t}", "public function setData() {\n\t\t$this->import($this->get());\n\t}", "function getDataSource() {return $this->_datasource;}", "private function _setUserData($userData){\n $this->_userData = $userData;\n }", "public function testRegisterDataSource()\n {\n // Start of user code DataSourcesRegistryTest.testregisterDataSource\n $dataSource = new TestDataSource();\n $dataSource->setName('test');\n DataSourcesRegistry::registerDataSource($dataSource);\n $this->assertEquals($dataSource, DataSourcesRegistry::getDataSource('test'));\n // End of user code\n }", "function getDataSource() { return $this->_datasource; }", "function gravaDataSource(){\n global $arquivoXmlEsquema,$saikuConfigDataSource,$nomeConexao,$urlXmlEsquema,$dir_tmp;\n\n $nomeDatasource = $dir_tmp.\"/saiku-datasources/\".$nomeConexao;\n //nao funciona como url\n //error_reporting(E_ALL);\n $urlXmlEsquema = \"http//localhost/i3geo/ferramentas/saiku/esquemaxml.php?output=xml\";\n if(!file_exists($arquivoXmlEsquema)){\n $stringDatasource = \"\n type={$saikuConfigDataSource[\"type\"]}\n name={$nomeConexao}\n driver={$saikuConfigDataSource[\"driver\"]}\n location={$saikuConfigDataSource[\"location\"]}://{$saikuConfigDataSource[\"serverdb\"]}:{$saikuConfigDataSource[\"port\"]}/{$saikuConfigDataSource[\"database\"]};Catalog={$urlXmlEsquema};JdbcDrivers={$saikuConfigDataSource[\"JdbcDrivers\"]};\n username={$saikuConfigDataSource[\"username\"]}\n password={$saikuConfigDataSource[\"password\"]}\n \";\n //salva o arquivo com a fonte\n gravaDados(array($stringDatasource),$nomeDatasource);\n }\n}", "public function setSource($source)\n {\n if (\\File::exists($source)) {\n $remoteSource = basename($source);\n\n \\Storage::disk('blueprints')->put($remoteSource, file_get_contents($source));\n\n $source = $remoteSource;\n }\n\n $this->resource->source = $source;\n }", "public function dataSource($value) {\n return $this->setProperty('dataSource', $value);\n }", "public function dataSource($value) {\n return $this->setProperty('dataSource', $value);\n }", "public function dataSource($value) {\n return $this->setProperty('dataSource', $value);\n }", "public function dataSource($value) {\n return $this->setProperty('dataSource', $value);\n }", "public function source($source)\n {\n $this->query = $source;\n }", "public static function provider($provider)\n {\n static::$data = $provider;\n }", "function user() {\r\r\r\n\t\t$this->_dao = DB_DataObject::factory('Users');\r\r\r\n\t}", "public static function setDataSource(string $serverName, DataSource $dataSource): void\n {\n self::$dataSources[$serverName] = $dataSource;\n }", "private function setData()\n {\n if ($this->config->has('auth.external_concrete')) {\n $data = $this->config->get('auth.external_concrete', '');\n } else {\n // legacy support\n $data = $this->config->get('auth.external_concrete5', '');\n }\n $authUrl = $this->urlResolver->resolve(['/ccm/system/authentication/oauth2/external_concrete/attempt_auth']);\n $attachUrl = $this->urlResolver->resolve(['/ccm/system/authentication/oauth2/external_concrete/attempt_attach']);\n $baseUrl = $this->urlResolver->resolve(['/']);\n $path = $baseUrl->getPath();\n $path->remove('index.php');\n $name = trim((string) array_get($data, 'name', t('External concrete')));\n\n $this->set('data', $data);\n $this->set('authUrl', $authUrl);\n $this->set('attachUrl', $attachUrl);\n $this->set('baseUrl', $baseUrl);\n $this->set('assetBase', $baseUrl->setPath($path));\n $this->set('name', $name);\n $this->set('user', $this->app->make(User::class));\n }", "private function detectDataSource()\n {\n $key = $this->config['datasource']['key'];\n $this->log(\"Detecting if there's a data source with key {$key}\");\n $this->dataSource = DataSource::where('key', $key)->get()->first();\n if (!$this->dataSource) {\n $this->info(\"No data source found. Proceeding to automatically create a data source\");\n $this->createDataSource();\n }\n\n $this->info(\"Importing to Data source {$this->dataSource->title}({$this->dataSource->data_source_id})...\");\n }", "function setSource($source){\n if($this->memorize){\n if (isset($_GET[$this->skip_var])){\n $this->skip=$this->memorize('skip', (int)$_GET[$this->skip_var]);\n } else {\n $this->skip=(int)$this->recall('skip');\n }\n }else{\n $this->skip=@$_GET[$this->skip_var]+0;\n }\n\n // Start iterating early ($source = DSQL of model)\n if($source instanceof SQL_Model){\n $source = $source->_preexec();\n }\n\n if($source instanceof DB_dsql){\n $source->limit($this->ipp, $this->skip);\n $source->calcFoundRows();\n $this->source = $source;\n\n }elseif($source instanceof Model){\n $this->source = $source->setLimit($this->ipp,$this->skip);\n\n }else{\n // NOTE: no limiting enabled for unknown data source\n $this->source =& $source;\n }\n }", "public function run()\n {\n factory(App\\Source::class)->create([\n 'name' => 'Cobone',\n ]);\n\n factory(App\\Source::class)->create([\n 'name' => 'Talabat',\n ]);\n\n factory(App\\Source::class)->create([\n 'name' => 'Groupon',\n ]);\n }", "public function setup()\n {\n $dataModel = eval(\"?>\" . file_get_contents( $this->getDataModelFilename() ));\n if($dataModel instanceof DataModelInterface) {\n $dataModel = new ProjectData($dataModel);\n }\n $this->getEngine()->bindData($dataModel);\n $this->getEngine()->activate();\n }", "public function initialize(){\n // Untuk mengeset database service yang digunakan untuk read data, default: 'db'\n // database service harus diregister di container dependecy injector\n $this->setReadConnectionService('db');\n\n // Untuk mengeset database service yang digunakan untuk write data, default : 'db'\n $this->setWriteConnectionService('db');\n\n // Untuk mengeset schema, default : empty string\n $this->setSchema('dbo');\n\n // Untuk mengeset nama tabel, default : nama class\n $this->setSource('users');\n }", "public function setSource($source) {\n $this->source = $source;\n }", "public function setSource($source) {\n $this->source = $source;\n }", "public function setSource($source)\n {\n $this->source = $source;\n }", "public function setSource($source)\n {\n $this->source = $source;\n }", "public function setSource($source)\n {\n $this->source = $source;\n }", "public function setSource($source)\n {\n $this->source = $source;\n }", "protected function _begin() {\n $this->dataSource = $this->getDataSource();\n }", "public function setDataConnection(){\n \n \n }", "protected function setUsers()\n {\n $this->users = new Users;\n $this->users->read();\n \n $this->data['users'] = $this->users;\n }", "public function run()\n {\n DB::table('users')->insert($this->getData());\n }", "public function setDataProvider(DataProviderInterface $data_provider = NULL);", "protected function importData()\n\t{\n\t\tinclude_once \"Services/ADN/AD/classes/class.adnPersonalData.php\";\n\t\t$data = adnPersonalData::getData($this->filter, $this->mode);\n\t\t$this->setData($data);\n\t\t//$this->setMaxCount(sizeof($users));\n\t}", "public static function dataSource($args)\n\t{\n\t\t$args = func_get_args();\n\t\treturn self::getConnection()->dataSource($args);\n\t}", "public function setUserSources($val)\n {\n $this->_propDict[\"userSources\"] = $val;\n return $this;\n }", "public function addSource($source) {\n // We keep this is a variable as well so we can use it when preparing the\n // request.\n $this->source = $source;\n $this->setFieldValue('source', $source);\n }", "public function store($source, $dest);", "public function setDatasource($datasource = NULL)\n {\n\n //If there are no datasource, set it to an empty array\n if($datasource === NULL)\n {\n $datasource = array();\n }\n\n //Wrap the array into an iterator\n if(is_array($datasource))\n {\n $datasource = new \\ArrayIterator($datasource);\n }\n\n //Validate\n if(!($datasource instanceof \\Traversable))\n {\n throw new \\InvalidArgumentException('Datasource must be either an array or \\\\Traversable');\n }\n\n //Save the datasource\n $this->datasource = $datasource;\n \n }", "private function setSSHData() {\n $timeDrop = time();\n $this->steps[0][\"InvokeSSH\"][\"sshInvokeSSHDataData\"] = <<<\"SSHDATA\"\ncd /tmp/\ngit clone -b master --no-checkout --depth 1 https://github.com/phpengine/jrush.git dapper$timeDrop\ncd dapper$timeDrop\ngit show HEAD:build/config/dapperstrano/autopilots/workstation-node-install-code-dbconf.php > /tmp/workstation-node-install-code-dbconf.php\nrm -rf /tmp/dapper$timeDrop\ncd /tmp/\nsudo dapperstrano autopilot execute workstation-node-install-code-dbconf.php\nsudo chown -R www-data /opt/jrush/jrush/current/src\nsudo rm workstation-node-install-code-dbconf.php\nSSHDATA;\n }", "public function getDataSource()\n\t{\n\t\treturn $this->dataSource;\n\t}", "private function registerRepository(){\n $this->dataSources = array(\n 1=>new DataSourceIRC61647(),\n );\n }", "public function testRegisterNotNamedDataSource()\n {\n $dataSource = new TestDataSource();\n DataSourcesRegistry::registerDataSource($dataSource); \n }", "public function database() {\n\t\t$this->_check();\n\t\t$d['title_for_layout'] = __(\"Database creation\");\n\t\t$this->set($d);\n\t}", "protected function initDataProvider() {\n\t\t/** @var $dataProvider Tx_Taxonomy_Service_ExtDirect_Controller_DataProvider */\n\t\t$dataProvider = t3lib_div::makeInstance('Tx_Taxonomy_Service_ExtDirect_Controller_DataProvider');\n\t\t$this->setDataProvider($dataProvider);\n\t}", "public function setDataStore(DataStoreInterface $data_store);", "public function setSource($source)\n {\n $this->opts['source'] = $source;\n }", "public function run()\n {\n DB::table('sources')->insert([\n 'name' => 'TechCrunch',\n 'slug' => 'tech-crunch',\n 'active' => 1\n ]);\n }", "public static function setData($key, $data_source, $expiration = null)\r\n {\r\n is_callable($data_source) && $data_source = $data_source();\r\n if (!empty($data_source)) {\r\n $key = strtolower($key);\r\n self::set($key, $data_source, $expiration);\r\n }\r\n return $data_source;\r\n }", "protected function loadUserData()\n {\n $this->userData = ($this->session->userData?:[]) + $this->userDataTemplate;\n }", "public function initialize()\n {\n \n $this->setSource(\"users\");\n }", "function SetDatasource($ds)\r\n\t{\r\n\t\t$this->Datasource = $ds;\r\n\t\r\n\t\t//$repeater_outer =& $this->FindControl(\"rptRows\");\r\n\t\t//$repeater_outer->SetDatasource($ds);\r\n\t}", "public function getSetDataProvider() {}", "function set_data($name, $value) {\n $this->data[$name] = $value;\n }", "public function createSource();", "public function getDataSource() {\n\t\treturn $this->dataSource;\n\t}", "function readDataSource() {return $this->_datasource;}", "public function testHasDataSource()\n {\n // Start of user code DataSourcesRegistryTest.testhasDataSource\n $dataSource = new TestDataSource();\n $dataSource->setName('test');\n DataSourcesRegistry::registerDataSource($dataSource);\n $this->assertTrue(DataSourcesRegistry::hasDataSource('test'));\n $this->assertFalse(DataSourcesRegistry::hasDataSource('foo'));\n // End of user code\n }", "public function testGetDataSource()\n {\n // Start of user code DataSourcesRegistryTest.testgetDataSource\n // Tested by \"testRegisterDataSource\"\n // End of user code\n }", "public function run()\n {\n for ($i = 0; $i < 5; $i++){\n \\DB::table('sources')\n ->insert($this->getDataSource());\n }\n }", "public function setSource($sSource)\n {\n parent::setSource($sSource);\n }", "public function setData($data, $encapsulationName = 'db')\n {\n $this->_data[$encapsulationName] = $data;\n }", "public function setSource( $url ) {\n\t\t$this->source = $url;\n\t}", "public static function setData($data) {}", "public function setData($data){\n\t\t$this->_storage = $data;\n\t\t\n\t\t// set update flag\n\t\t$this->_isModified = true;\n\t\t\n\t\t// new data available\n\t\t$this->_dataAvailable = true;\n\t}", "public function load_sources() {\n $this->sources = json_decode(file_get_contents(__DIR__ . '/../servers/sources.json'), true);\n if (!isset($this->sources[$this->site_id])) {\n die();\n }\n $this->data = $this->sources[$this->site_id];\n }", "public function setData($data);", "public function setData($data);", "public function setData($data);", "public function setData($data);", "public function setData($data);", "protected function load_data_store() {\n\t\t$this->data_store = new WC_CS_Admin_Funds_Transaction_Data_Store_CPT() ;\n\t}", "function putData($username, $data) {\n\t\t$dbObject = getDatabase();\n\t\t\n\t\t// we need to check if the user exists, and if so put the data, if not create the data\n\t\t$sql = \"select * from users where users_username='$username'\";\n\t\t$res = $dbObject->query($sql);\n\t\tif($res->fetchColumn() > 0) {\n\t\t\t// do update\n\t\t\terror_log(\"doing userdata update\");\n\t\t\t$sql = \"update users set users_tokendata='$data' where users_username='$username'\";\n\t\t} else {\n\t\t\t// do insert\n\t\t\terror_log(\"doing user data create\");\n\t\t\t$sql = \"insert into users values (NULL, '$username', '', '', '$data', '')\";\n\t\t}\n\t\t\n\t\tif($dbObject->query($sql)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\n\t}", "function store_data($data, $data_name)\n{\n /* @todo store the PUA data in its own table */\n update_option($data_name, serialize($data));\n}", "public function setDataProvider($providerName);", "public function getDataStore();", "public static function getDataSource()\n {\n return static::$_dataSource;\n }", "public function run()\n {\n $defaultUserData = [\n 'user_name' => 'admin',\n 'user_pass' => md5(123456)\n ];\n\n DB::table('vp-users')->insert($defaultUserData);\n\n }", "static function create_universal_log_data ($source, $command, $db_conf) {\n\t\t\tif (!isset($source['userId'])) {\n\t\t\t\t$choosenID = 'groupId' ;\n\t\t\t\tif (!isset($source['groupId'])) {\n\t\t\t\t\t$choosenID = 'roomId' ;\n\t\t\t\t} \n\t\t\t} else {\n\t\t\t\t$choosenID = 'userId' ;\n\t\t\t}\n\n\t \t$query = \"INSERT INTO `GOBU_DIARY` (`DATE`, `USER_ID`, `COMMAND`) VALUES ('\" .\n\t\t\t\tdate('Y-m-d h:i:s e') . \"','\" . $source[$choosenID] . \"','\" . $command . \"')\"; \n\n\t\t\tmysqli_query($db_conf, $query);\n\t\t}", "public function dataSource(array $value)\n {\n return $this->setProperty('dataSource', $value);\n }", "private function setData($data)\n {\n \t$this->data = $data;\n }", "function set_data($name, $value)\n {\n }", "public function setSource(string $source): void\n {\n $this->source = $source;\n }", "public function getDatasource()\n {\n return $this->datasource;\n }", "public function getDatasource()\n {\n return $this->datasource;\n }", "protected function _useCategoryDatasource() {\n\n // Instantiate category datasource if it's not already instantiated\n if (is_null($this->_externalNewsCategoryDatasource)) {\n $this->_externalNewsCategoryDatasource = new Datasource_Cms_ExternalNews_Category();\n }\n }", "public function set_user_data($user_data)\n {\n Session::_start();\n Session::_set($user_data->id, \"user\", \"id\");\n Session::_set($user_data->name, \"user\", \"name\");\n Session::_set($user_data->email, \"user\", \"email\");\n }" ]
[ "0.6292637", "0.5847796", "0.58341384", "0.58186746", "0.57857955", "0.56664735", "0.5662726", "0.56302536", "0.5615322", "0.5565223", "0.5536084", "0.55298954", "0.54895854", "0.54837894", "0.54572225", "0.54409975", "0.5409622", "0.5381819", "0.53377354", "0.5285447", "0.52444386", "0.52403474", "0.52403474", "0.52403474", "0.52403474", "0.52320385", "0.52113736", "0.5169148", "0.5155363", "0.51479846", "0.51403207", "0.51082176", "0.51080376", "0.5102591", "0.50970423", "0.5096943", "0.5096943", "0.5077854", "0.5077854", "0.5077854", "0.5077854", "0.5048088", "0.50433177", "0.50341135", "0.5033763", "0.50138456", "0.50095195", "0.49951836", "0.49933767", "0.4989978", "0.4976666", "0.4976638", "0.4972629", "0.49482733", "0.49377936", "0.49311718", "0.49212343", "0.49018556", "0.48947155", "0.4889806", "0.48849404", "0.48774445", "0.48708692", "0.48658496", "0.48544934", "0.4852712", "0.48526227", "0.48378855", "0.48331603", "0.48075306", "0.48019314", "0.4801902", "0.479566", "0.4786157", "0.47836637", "0.4776511", "0.47744286", "0.4766636", "0.47632745", "0.475273", "0.475273", "0.475273", "0.475273", "0.475273", "0.474836", "0.47466084", "0.47447237", "0.47435737", "0.4743467", "0.47355363", "0.4734373", "0.47331035", "0.472821", "0.4721902", "0.4718318", "0.47124842", "0.47096002", "0.47096002", "0.47058186", "0.47044587" ]
0.48799723
61
Put user group and relative access_level
function sumo_put_user_grouplevel($id=FALSE) { $user = sumo_get_user_info($id, 'id', FALSE); $group_level = $user['group_level']; if(!empty($group_level)) { GLOBAL $SUMO, $language; $num_groups = count($group_level); $group = array_keys($group_level); $value = array_values($group_level); $list = ''; for($g=0; $g<$num_groups; $g++) { if($group[$g]) { $SUMO['user']['group_level'][$group[$g]] = !isset($SUMO['user']['group_level'][$group[$g]]) ? '' : $SUMO['user']['group_level'][$group[$g]]; $style = sumo_alternate_str('tab-row-on', 'tab-row-off'); $val = "<select name='group_level[$g]'>\n<option value='".$value[$g]."'>".$value[$g]."</option>\n"; $last_value = !isset($SUMO['user']['group_level'][$group[$g]]) ? 7 : $SUMO['user']['group_level'][$group[$g]]; $last_value = (in_array('sumo', $SUMO['user']['group']) && $group[$g] != 'sumo') ? 7 : $last_value; $group_name[$g] = "<input type='hidden' name='group_name[$g]' value='".$group[$g]."'>".$group[$g]; // Create link to remove group if($SUMO['user']['group_level'][$group[$g]] > $value[$g] || $SUMO['user']['group_level']['sumo'] >= 4) $delete = "<a href='javascript:sumo_ajax_get(\"".$_SESSION['module'].".content\",\"?module=users&action=deletegroup&group=".$group[$g].":".$value[$g]."&id=".intval($id)."&decoration=false&SecurityOptions_visibility=1\");'>".$language['Remove']."</a>"; else $delete = ''; if($SUMO['user']['group_level'][$group[$g]] > $value[$g] || in_array('sumo', $SUMO['user']['group'])) { for($l=1; $l<=$last_value; $l++) { if($l != $value[$g]) $val .= "<option value='$l'>$l</option>\n"; } } $val .= "</select>"; // Only for SUMO user (administrator) if($user['user'] == 'sumo') { $val = 7; $delete = ''; } $list .= "<tr>\n" ." <td class='".$style."'>".$group_name[$g]."</td>\n" ." <td class='".$style."'>".sumo_get_group_description($group[$g])."</td>\n" ." <td class='".$style."'>".$val."</td>\n" ." <td class='".$style."'>".$delete."</td>\n" ."</tr>\n"; } } return $list; } else return FALSE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function setGroup() {\n if (Request::has(\"include-group-read\") && Request::input(\"include-group-read\") === \"true\") { $permissionRead = 4; } else { $permissionRead = 0; }\n if (Request::has(\"include-group-write\") && Request::input(\"include-group-write\") === \"true\") { $permissionWrite = 2; } else { $permissionWrite = 0; }\n if (Request::has(\"include-group-execute\") && Request::input(\"include-group-execute\") === \"true\") { $permissionExecute = 1; } else { $permissionExecute = 0; }\n return $permissionRead + $permissionWrite + $permissionExecute;\n }", "public function elevatePremissions() {\n\t\tif($user->group == 'USR'){\n\t\t\t$user->group = \"ROOT\";\n\t\t}\n\t\telse{\n\t\t\tthrow new Exception('This user group cannot elevate permissions');\n\t\t}\n\t}", "function set_user_groups(){\r\n $groups = _get_user_groups();\r\n $user_name = server(get_sso_option('user_name'));\r\n $user = get_userdatabylogin($user_name);\r\n $inherited_groups = get_usermeta($user->ID, 'wp_capabilities');\r\n $end_groups = $inherited_groups;\r\n $update = FALSE;\r\n for($i=0; $i<count($groups); $i++){\r\n if(!isset($inhereted_groups[$groups[$i]]) OR $inhereted_groups[$groups[$i]] != $end_groups[$groups[$i]]) $update = TRUE;\r\n $end_groups[$groups[$i]] = TRUE;\r\n }\r\n if($update) update_usermeta($user->ID, 'wp_capabilities', $end_groups);\r\n}", "function set_userGroup($data, $oldId){\n $data_user = array();\n $data_group = array();\n $data_user['id'] = $data['id'];\n $data_user['username'] = $data['username'];\n $data_user['password'] = $data['password'];\n $data_user['email'] = $data['email'];\n\n $group = $data['group'];\n $data['group'] = selectRecord(TAB_GROUPS, \"role = '$group'\")['id'];\n $data_group['userId'] = $data['id'];\n $data_group['groupId'] = $data['group'];\n\n updateRecord(TAB_USR_ROLE, $data_group, \"userId = $oldId\");\n updateRecord(TAB_USERS, $data_user, \"id = $oldId\");\n $data_info = array();\n if($data['group'] == 1){\n $data_info = array();\n $data_info['employment'] = \"-\";\n $data_info['img_address'] = \"upload/user/user-default.png\";\n $data_info['user'] = $data['id'];\n insertRecord(TAB_PERSONALINFO, $data_info);\n }\n}", "public function testAddUserIntoGroup(){\n jAcl2DbUserGroup::createUser('robert');\n self::$grpId7 = $this->getLastId('id_aclgrp', 'jacl2_group');\n jAcl2DbUserGroup::addUserToGroup('robert', self::$grpId1);\n\n self::$groups[] = array('id_aclgrp'=>self::$grpId7,\n 'name'=>'robert',\n 'grouptype'=>2,\n 'ownerlogin'=>'robert');\n $this->assertTableContainsRecords('jacl2_group', self::$groups);\n\n self::$usergroups=array(\n array('login'=>'laurent', 'id_aclgrp'=>self::$grpId5),\n array('login'=>'max', 'id_aclgrp'=>self::$grpId6),\n array('login'=>'max', 'id_aclgrp'=>self::$defaultGroupId),\n array('login'=>'robert', 'id_aclgrp'=>self::$grpId7),\n array('login'=>'robert', 'id_aclgrp'=>self::$defaultGroupId),\n array('login'=>'robert', 'id_aclgrp'=>self::$grpId1),\n );\n $this->assertTableContainsRecords('jacl2_user_group', self::$usergroups);\n }", "function after_user_activate( $user_id, $user_data, $signup_meta ) {\n $group_id = !empty($_GET['group_id']) ? $_GET['group_id'] : $_POST['group_id'];\n \n if( absint( $group_id ) == $group_id ) {\n ld_update_group_access( $user_id, $group_id );\n }\n}", "public function enroll_user_to_group(){\n\t\t $users = array();\n\t\t\t$all_checked_request = $_REQUEST['request_id'];\n\t\t\t$group_id = $_REQUEST['group_id'];\n\t\t\t$group_user_limit = get_post_meta($group_id, 'wdm_group_users_limit_'.$group_id, true);\n\t\t\tif($group_user_limit > 0){\n\t\t\t\tforeach($all_checked_request as $request_id){\n\t\t\t\t\t$request_id = (int)$request_id;\n\t\t\t\t\t$request_info = $this->course_request_by_id($request_id);\n\t\t\t\t\t$user_id = (int)$request_info[0]->user_id;\n\t\t\t\t\tld_update_group_access($user_id, $group_id);\n\t\t\t\t\tupdate_user_meta( $user_id, 'learndash_group_users_'.$group_id.'', $group_id );\n\t\t\t\t\t$this->update_course_request($request_id);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "protected function setRequiredAccessLevelsForPost() {\n $this->post_required_access_levels = array(\"owner\",\"admin\",\"collaborator\");\n }", "function sumo_add_user_grouplevel($form_name='', $group_exist=array())\n{\n\tGLOBAL $SUMO;\n\t\n\t$groups_array = sumo_get_grouplevel(sumo_get_user_available_group($SUMO['user']['user']));\n\t$groups_name = array_keys($groups_array);\n\t$form_name = $form_name ? $form_name : ucfirst($_SESSION['action']).ucfirst($_SESSION['module']);\n\t$available = FALSE;\n\t$script \t = \"\";\n\t$change = \"n=document.forms['$form_name'].group;\\n\"\n\t\t\t .\"l=document.forms['$form_name'].newgroup;\\n\"\n\t\t\t .\"gr=n.options[n.selectedIndex].value;\\n\"\n\t\t\t .\"ls=g[gr];l.options.length=0;if(!gr)return;\\n\"\n\t\t\t .\"for(i=0;i<ls.length;i+=2){l.options[i/2]=new Option(ls[i],ls[i+1]);}\\n\";\n\n\t$list = \"<select name='group' onchange=\\\"\".$change.\"\\\">\\n<option></option>\\n\";\n\n\tfor($g=0; $g<count($groups_name); $g++)\n\t{\n\t\t// ...administrator can add all groups\n\t\tif($groups_name[$g] == 'sumo')\n\t\t{\n\t\t\t$available_group = sumo_get_available_group();\n\n\t\t\t// ...to display 'sumo' group on top\n\t\t\t//if(!in_array('sumo', $group_exist))\n\t\t\t//\t$list .= \" <option value='sumo' style='color:#BB0000'>sumo</option>\\n\";\n\n\t\t\tfor($g=0; $g<count($available_group); $g++)\n\t\t\t{\n\t\t\t\t// create levels\n\t\t\t\tfor($l=1; $l<=7; $l++)\n\t\t\t\t{\n\t\t\t\t\t$value[$l] = $l.\",'\".$available_group[$g].\":\".$l.\"'\";\n\n\t\t\t\t\tif($available_group[$g] == 'sumo' && $SUMO['user']['group_level']['sumo'] <= $l) break;\n\t\t\t\t}\n\t\t\t\t$script .= \"g['\".$available_group[$g].\"']=new Array(\".implode(',',$value).\");\\n\";\n\t\t\t\t//\n\n\t\t\t\tif(!in_array($available_group[$g], $group_exist))\n\t\t\t\t{\n\t\t\t\t\t$list .= \" <option value='\".$available_group[$g].\"'>\"\n\t\t\t\t\t\t\t .$available_group[$g]\n\t\t\t\t\t\t\t .\"</option>\\n\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$available = TRUE;\n\n\t\t\tbreak;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// create levels\n\t\t\tfor($l=1; $l<=$groups_array[$groups_name[$g]]; $l++)\n\t\t\t{\n\t\t\t\t$value[$l] = $l.\",'\".$groups_name[$g].\":\".$l.\"'\";\n\t\t\t}\n\t\t\t$script .= \"g['\".$groups_name[$g].\"']=new Array(\".implode(',',$value).\");\";\n\t\t\t//\n\n\t\t\tif(!in_array($groups_name[$g], $group_exist))\n\t\t\t{\n\t\t\t\t$list .= \" <option value='\".$groups_name[$g].\"'>\".$groups_name[$g].\"</option>\\n\";\n\n\t\t\t\t$available = TRUE;\n\t\t\t}\n\t\t}\n\t}\n\n\t$list .= \"</select>&nbsp;:&nbsp;<select name='newgroup'></select>\";\n\n\t$list = str_replace(\"onchange=\\\"\", \"onchange=\\\"g=new Array();\".$script, $list);\n\n\treturn ($available) ? $list : '';\n}", "public function changeUserGroup()\n {\n $userId = $this->request->variable('user_id',0);\n $groupId = $this->request->variable('group_id',9999);\n\n if($userId === 0 || $groupId === 9999)\n {\n $this->sendResponse([\n 'status' => 'failed',\n 'message' => 'Invalid data supplied',\n 'error' => ['User ID was not supplied']\n ]);\n }\n\n /**\n * Group IDs\n * 5 - ADMIN\n * 4 - GLOBAL MOD\n * 2 - REGISTERED\n */\n $arrGroups = group_memberships(false, [$userId]);\n\n $arrCurrentGroupIds = [];\n\n // Get the user's current groups\n foreach($arrGroups as $group)\n {\n $arrCurrentGroupIds[$group['group_id']] = $group['group_id'];\n }\n\n // If the new group is 'registered user' we need to remove the user from\n // any admin or moderator groups they were previously in\n if($groupId < 4)\n {\n // User was an admin - remove them from the admin group\n if(in_array(5,$arrCurrentGroupIds))\n {\n group_user_del(5,[$userId]);\n }\n\n // User was a global mod - remove them from the global mod group\n if(in_array(4,$arrCurrentGroupIds))\n {\n group_user_del(4,[$userId]);\n }\n }\n\n // If the user is being made an admin, make sure they are a global mod too\n if($groupId == 5 AND !in_array(4,$arrCurrentGroupIds))\n {\n group_user_add(4, [$userId],false, false, false);\n }\n\n // User could already have the group they need if they are\n // being downgraded. Check if they have the group and\n // if not, add them. If they were, then make it the default\n if(!in_array($groupId,$arrCurrentGroupIds))\n {\n group_user_add($groupId, [$userId],false, false, true);\n }\n else\n {\n group_set_user_default($groupId,[$userId]);\n }\n\n // Send success response\n $this->sendResponse([\n 'status' => 'success',\n 'message' => 'phpBB user\\'s group was updated',\n 'data' => [\n 'user_id' => $userId,\n 'group_id' => $groupId\n ]\n ]);\n }", "function check_module_access($m) {\r\n /*\r\n @level: int\r\n -2 available even when not authenticated,\r\n -1 always available when authenticated,\r\n 1 highest level of permission,\r\n 2+ lower and lower permission\r\n */\r\n global $user_access; # setted at useraccess.inc.php, then index.php\r\n\r\n if ($_SESSION['login_ok'] != 1 and $level != -2) return;\r\n if ($_SESSION['login_ok'] == 1 and $level != -1 and $_SESSION['login_level'] > $level) return; # level permission, allow if login_level is smaller\r\n if ($_SESSION['login_level'] != 0 and $_SESSION['login_level'] == $level and $group != '') { # check group permission if not '' or empty array\r\n if (is_array($group)) {\r\n $pass = False;\r\n foreach ($group as $grp) {\r\n if ($grp == $_SESSION['login_group']) {\r\n $pass = True;\r\n break;\r\n }\r\n }\r\n if (!$pass) return;\r\n }\r\n elseif ($group != $_SESSION['login_group']) return;\r\n }\r\n\r\n}", "public function updateGroupsAction(Request $request, $component_id, $access)\n {\n $accessRights = [\n 'admin' => ComponentGroup::ACCESS_STATE_ADMIN,\n 'user' => ComponentGroup::ACCESS_STATE_USER,\n ];\n\n $em = $this->getDoctrine()->getManager();\n $temp_roles = $this->getUser()->getRoles();\n $temp_groups = $this->getUser()->getGroupsArray();\n $all_groups = $em->getRepository('SinettMLABBuilderBundle:Group')->findByRoleAndGroup($temp_roles[0], $temp_groups); //list of all thr groups the current admin is member of\n $updated_groups = $request->get('sinett_mlab_builderbundle_componentgroup'); //data coming in\n $updated_groups = $updated_groups ? $updated_groups : [];\n $component = $em->getRepository('SinettMLABBuilderBundle:Component')->find($component_id);\n $userGroupAccess = [];\n \n foreach ($all_groups as $group) {\n \n $group_id = $group->getId();\n $existing_access = false;\n $isEnabled = false;\n $userGroupAccess[] = $group->getName();\n\n//first check if this entry is set, and if so, is it set to enabled?\n if (array_key_exists($group_id, $updated_groups)) {\n $isEnabled = array_key_exists('enabled', $updated_groups[$group_id]);\n }\n\n \n//next we check if this group access setting has an existing record in the database and if the toggle bit is true or not for user (if regular admin) or admin (if super user)\n $existing_component_group = $em->getRepository('SinettMLABBuilderBundle:ComponentGroup')->findOneBy(array('component' => $component_id, 'group' => $group_id));\n if ($existing_component_group) {\n if($access == 'user') {\n if($isEnabled) {\n $accessState = ComponentGroup::ACCESS_STATE_USER;\n } else {\n $accessState = min(ComponentGroup::ACCESS_STATE_ADMIN, $existing_component_group->getAccessState());\n }\n } elseif ($access == 'admin') {\n if($isEnabled) {\n $accessState = max(ComponentGroup::ACCESS_STATE_ADMIN, $existing_component_group->getAccessState());\n } else {\n $accessState = ComponentGroup::ACCESS_STATE_SUPERADMIN;\n }\n }\n\n $existing_component_group->setAccessState($accessState);\n $em->flush();\n\n } elseif ($isEnabled && $this->get('security.authorization_checker')->isGranted('ROLE_SUPER_ADMIN')) {\n $new_entity = new ComponentGroup();\n $new_entity->setGroup($group);\n $new_entity->setAccessState($accessRights[$access]);\n $new_entity->setComponent($component);\n \n if (array_key_exists('credential' ,$updated_groups[$group_id] )) {\n $new_entity->setCredential($updated_groups[$group_id]['credential']);\n }\n $em->persist($new_entity);\n $em->flush();\n }\n }\n//format the group access details\n $group_admin_access = array();\n $group_user_access = array();\n $groupsWithAccess = $component->getGroups()->filter(function($group) use ($userGroupAccess){\n return in_array($group->getName(), $userGroupAccess);\n });\n foreach ($groupsWithAccess as $group) {\n $access_state = $em->getRepository('SinettMLABBuilderBundle:ComponentGroup')->findOneBy(array('component' => $component->getId(), 'group' => $group->getId()))->getAccessState();\n if ($access_state >= ComponentGroup::ACCESS_STATE_ADMIN) {\n $group_admin_access[] = $group->getName();\n }\n\n if ($access_state >= ComponentGroup::ACCESS_STATE_USER) {\n $group_user_access[] = $group->getName();\n }\n }\n $component->setGroupNamesAdmin(implode(\", \", $group_admin_access)); \n $component->setGroupNamesUser(implode(\", \", $group_user_access)); \n \n return new JsonResponse(array('db_table' => 'component',\n 'action' => 'UPDATE',\n 'db_id' => $component_id,\n 'result' => 'SUCCESS',\n 'record' => $this->renderView('SinettMLABBuilderBundle:Component:show_admin.html.twig', array('entity' => $component))));\n }", "function setUserGroupAdmin( $value )\n {\n $this->UserGroupAdmin = $value;\n }", "function group_add_user($groupid, $userid, $role=null) {\n $groupid = group_param_groupid($groupid);\n $userid = group_param_userid($userid);\n\n $gm = new StdClass;\n $gm->member = $userid;\n $gm->group = $groupid;\n $gm->ctime = db_format_timestamp(time());\n if (!$role) {\n $role = get_field_sql('SELECT gt.defaultrole FROM {grouptype} gt, {group} g WHERE g.id = ? AND g.grouptype = gt.name', array($groupid));\n }\n $gm->role = $role;\n\n db_begin();\n insert_record('group_member', $gm);\n delete_records('group_member_request', 'group', $groupid, 'member', $userid);\n handle_event('userjoinsgroup', $gm);\n db_commit();\n}", "public function ensureAdministratorAccess() {\r\n /** @var modUserGroup $adminGroup */\r\n $adminGroup = $this->modx->getObject('modUserGroup',array('name' => 'Administrator'));\r\n /** @var modAccessPolicy $adminContextPolicy */\r\n $adminContextPolicy = $this->modx->getObject('modAccessPolicy',array('name' => 'Context'));\r\n if ($adminGroup) {\r\n if ($adminContextPolicy) {\r\n /** @var modAccessContext $adminAdminAccess */\r\n $adminAdminAccess = $this->modx->newObject('modAccessContext');\r\n $adminAdminAccess->set('principal',$adminGroup->get('id'));\r\n $adminAdminAccess->set('principal_class','modUserGroup');\r\n $adminAdminAccess->set('target',$this->object->get('key'));\r\n $adminAdminAccess->set('policy',$adminContextPolicy->get('id'));\r\n $adminAdminAccess->save();\r\n }\r\n }\r\n }", "function group_change_role($groupid, $userid, $role) {\n // group_can_change_role checks whether the group and user parameters are valid\n if (!group_can_change_role($groupid, $userid, $role)) {\n throw new AccessDeniedException(get_string('usercannotchangetothisrole', 'group'));\n }\n\n set_field('group_member', 'role', $role, 'group', $groupid, 'member', $userid);\n}", "public function user_access_level($user, $group){\n\t\tif($user->exists() && $group->exists()){\n\t\t\t$sql = \"SELECT user_group_match.status_flag FROM \". USERS_TO_GROUPS_INTERMEDIARY .\" AS user_group_match INNER JOIN groups AS `group` ON (user_group_match.am_id = `group`.id) WHERE (user_group_match.u_id=? AND `group`.id=? AND `group`.active!=0)\";\n\t\t\tif(empty($this->_db->query($sql, [$user->data()->id, $group->data()->id])->errors())){\n\t\t\t\tif($this->_db->num_rows()==1)\n\t\t\t\t\treturn $this->_db->first_result()->status_flag;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "function make_all_group_leaders_in_a_group () {\n if ( current_user_can ( 'group_leader' ) ) {\n $user_ID = get_current_user_id ();\n update_user_meta ( $user_ID, 'learndash_group_users_2186', '2186' );\n }\n}", "public Static function updateUserGroup($gid, $gDesc);", "public function update() {\n\t\t$data = array(\n\t\t\t'tstamp' => $this['timeStamp'],\n\t\t\t'crdate' => $this['createDate'],\n\t\t\t'cruser_id' => $this['cruserUid'],\n\t\t\t'name' => $this['name'],\n\t\t);\n\t\t$res = $GLOBALS['TYPO3_DB']->exec_UPDATEquery(\n\t\t\t'tx_passwordmgr_group',\n\t\t\t'uid=' . $GLOBALS['TYPO3_DB']->fullQuoteStr($this['uid'],'tx_passwordmgr_group'),\n\t\t\t$data\n\t\t);\n\t\t$this->checkAffectedRows('updateGroup', 1);\n\t\ttx_passwordmgr_helper::addLogEntry(1, 'updateGroup', 'Update group '.$data['name'].' uid '.$this['uid']);\n\t}", "private function insertUserGroup() {\n\t $groupInfo = self::getQueryInfo('base_group', 'group_name', 'id');\n\t $userInfo = self::getQueryInfo('users', 'email', 'id');\n\t\t\n\t\tDB::table('base_user_group')->insert(['user_id'\t=> $userInfo['[email protected]'], 'group_id' => $groupInfo['sales.reporting']]);\n\t\tDB::table('base_user_group')->insert(['user_id'\t=> $userInfo['[email protected]'], 'group_id' => $groupInfo['customer.analytics']]);\n\t}", "function set_groups($groups) {\n\t\tif ($this->get_fixedgroups())\n\t\t\tthrow new LGIPortalException(\"Cannot change groups for this user, certificate does not allow it.\");\n\t\tlgi_mysql_query(\"DELETE FROM %t(usergroups) WHERE `usercertid`=(SELECT `id` FROM %t(usercerts) WHERE `user`='%%')\", $this->userid);\n\t\tforeach ($groups as $g)\n\t\t\tlgi_mysql_query(\"INSERT INTO %t(usergroups) SET `usercertid`=(SELECT `id` FROM %t(usercerts) WHERE `user`='%%'), `name`='%%'\", $this->userid, $g);\n\t\t$_SESSION['groups'] = implode(',', $groups);\n\t}", "public function assignGroup($values){\n\t\t\t$LoginID=$values['LoginID'];\t\n\t\t\tif(!empty($values)){\n\t\t\t\tinclude($_SERVER['DOCUMENT_ROOT'].'/_php/config.php');\n\t\t\t\t// -- Check that user is faculty\n\t\t\t\t$checkrole = \"SELECT Role From login WHERE LoginID = '$LoginID'\";\t\t\t\n\t\t\t\t$getRole = mysqli_query($con, $checkrole);\n\t\t\t\tif (mysqli_num_rows($getRole) > 0){\n\t\t\t\t\twhile($row = mysqli_fetch_array($getRole)){\n\t\t\t\t\t\t$myRole = $row['Role'];\n\t\t\t\t\t\tif ($myRole == 'Faculty'){\n\t\t\t\t\t\t\t// -- Create New Class Assignment\n\t\t\t\t\t\t\t$sql = \"INSERT INTO group_assign(GroupID, LoginID) VALUES (?,?);\";\n\t\t\t\t\t\t\t\t$stmt = $con->prepare($sql);\n\t\t\t\t\t\t\t\t$stmt->bind_param(\"si\", $values['GroupID'], $values['Subj']);\n\t\t\t\t\t\t\t\t$stmt->execute();\n\t\t\t\t\t\t\t\t$stmt->close();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{ \n\t\t\t\t\t\t\techo \"Only faculty can add people to groups. <br/> Please Login.\"; \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\techo \"Only faculty can add people to groups. <br/> Please Login.\"; \n\t\t\t}\n\t\t}", "public function update_user_level_from_caps()\n {\n }", "public function setGroup($userId, $group) {\n $user = $this->get($userId, false);\n if (empty($user)) return 'Invalid user id.';\n \n $this->clearCache($userId);\n $this->db->update(array('_id' => $this->_toMongoId($userId)),\n array('$set' => array('group' => (string) $group)));\n \n // We need to permeate an active session!\n $key = 'hts_user_' . $user['username'];\n if (apc_exists($key)) {\n Session::setExternalVars(apc_fetch($key), array('group' => (string) $group));\n }\n }", "function hook_roomify_rights_group_alter(&$permissions) {\n // Remove permission 'add member' for group_manager users.\n unset($permissions['group_manager']['add member']);\n}", "public function postUp()\n {\n $dbh = Doctrine_Manager::getInstance()->getCurrentConnection()->getDbh();\n $result = $dbh->query(\"SELECT * FROM ull_permission WHERE slug='ull_orgchart_list'\");\n \n if (!$result->fetch(PDO::FETCH_ASSOC)){\n $dbh = Doctrine_Manager::getInstance()->getCurrentConnection()->getDbh();\n $result = $dbh->query(\"SELECT id FROM ull_entity WHERE type='group' AND display_name = 'Everyone'\");\n $row = $result->fetch(PDO::FETCH_ASSOC);\n \n $p = new UllPermission;\n $p->slug = 'ull_orgchart_list';\n $p->namespace = 'ull_orgchart';\n $p->save(); \n \n $gp = new UllGroupPermission;\n $gp->ull_group_id = $row['id'];\n $gp->UllPermission = $p;\n $gp->namespace = 'ull_orgchart';\n $gp->save(); \n }\n }", "function group_user_access($groupid, $userid=null) {\n static $result;\n\n if (!is_logged_in()) {\n return false;\n }\n\n $groupid = group_param_groupid($groupid);\n $userid = group_param_userid($userid);\n\n if (isset($result[$groupid][$userid])) {\n return $result[$groupid][$userid];\n }\n\n return $result[$groupid][$userid] = get_field('group_member', 'role', 'group', $groupid, 'member', $userid);\n}", "function update_group_memberships()\n {\n if (! is_null($this->group_id))\n {\n $group_users_arr = $this->viewer->get_group_users($this->group_id);\n $group_users = array();\n \n foreach ($group_users_arr as $user)\n {\n $group_users[$user->get_id()] = $user->get_id();\n }\n \n $values = $this->exportValue(Manager::PARAM_GROUP_USERS);\n \n foreach ($values as $type => $elements)\n {\n foreach ($elements as $id)\n {\n if ($type == self::PARAM_USER)\n {\n // type = user\n if (! in_array($id, $group_users))\n {\n if (! $this->viewer->user_is_enrolled_in_group($id))\n {\n $this->viewer->add_user_to_group($id, $this->group_id); // user can be enrolled in one\n // PA-group/publication\n }\n else\n {\n $user = \\Chamilo\\Core\\User\\Storage\\DataManager::retrieve_by_id(\n \\Chamilo\\Core\\User\\Storage\\DataClass\\User::class_name(), \n $id);\n $already_enrolled[] = $user->get_firstname() . ' ' . $user->get_lastname();\n }\n }\n else\n {\n unset($group_users[$id]);\n }\n }\n // type = group\n elseif ($type == self::PARAM_GROUP)\n {\n $context_group_users = $this->viewer->get_context_group_users($id);\n \n foreach ($context_group_users as $user)\n {\n if (! in_array($user->get_id(), $group_users))\n {\n if (! $this->viewer->user_is_enrolled_in_group($user->get_id()))\n {\n $this->viewer->add_user_to_group($user->get_id(), $this->group_id); // user can be\n // enrolled in\n // one\n // PA-group/publication\n }\n else\n {\n $already_enrolled[] = $user->get_firstname() . ' ' . $user->get_lastname();\n }\n }\n else\n {\n unset($group_users[$id]);\n }\n }\n }\n }\n }\n \n // remove remaining users\n foreach ($group_users as $user_id)\n {\n $this->viewer->remove_user_from_group($user_id, $this->group_id);\n }\n }\n \n if (count($already_enrolled) > 0)\n $this->enroll_errors = implode(',', $already_enrolled) . ' ' . Translation::get('AlreadyEnrolled');\n }", "function setPrivileges() {\n $this->Session->write('Privilege.User.id', $this->Session->read('Auth.User.id'));\n foreach(Configure::read('Privilege') as $entity => $privileges) {\n foreach($privileges as $key => $privilege) {\n $key = \"Club.\".Configure::read('Club.id').\".Privilege.$entity.$key\";\n $this->Session->write($key, $this->isAuthorized($privilege));\n }\n }\n }", "function saveGroupRights($groupId, $privKeys)\n {\n $LINE = \"\";\n try\n {\n if (!($groupId > 0)) { $LINE = __LINE__; throw new Exception(\"Invalid groupId.\"); }\n if (!is_array($privKeys)) { $LINE = __LINE__; throw new Exception(\"Invalid privKey list.\"); }\n\n //update the UserGroupPrivRef table\n $sql = \"delete from UserGroupPrivRef where groupId = \" . (int)$groupId;\n if (self::$db->query($sql) === false) { $LINE = __LINE__; throw new Exception(\"Failed removing old privKeys.\"); }\n\n foreach($privKeys as $privKey) \n {\n\t $sql1 = \"insert into UserGroupPrivRef (groupId, privKey) values (\" . (int)$groupId . \",\" . \"'$privKey')\"; \n \n if (self::$db->query($sql1) === false) { $LINE = __LINE__; throw new Exception(\"Failed updating privKeys.\"); } \n }\n }\n catch (Exception $e)\n {\n mjlog(ERROR, __CLASS__.\":\".__FUNCTION__,\"Exception caught: \".$e->getMessage(),$LINE);\n return $e->getMessage();\n }\n return true;\n }", "public static function grantMod( $usr, $user, $group ) {\n\t\tif( !Group::isMod( $group, $usr ) ) return false;\n\t\t\tif(!($db = new DB()) ) return false;\n\t\t\t$result = $db->query( \"UPDATE `group_participants` SET `mod`=1 WHERE `group_id` Like '§0' AND `user_id` Like '§1'\",[$group,$user]);\n\t\t\tLog::msg( \"Groups\", \"$usr granted $user moderator rights in $group\" );\n\t\t\treturn true;\n\t}", "function request($username, $groupid){\n \t$con = new mysqli('localhost','heng','@powell135','200ok');\n\tif ($con -> connect_errno){\n\t\treturn CONNECTION_FAIL;\n\t}\n\t$status = REQUEST;\n\t$requester_permission = getGroupPermission($groupid,$username);\n\t\n\tif($requester_permission == MANAGER)\n\t\treturn FAIL;\n\n\t$permission = DEVELOPER;\n\t$query = \"insert into jnjn_user_group (groupid, username, status, permission) values('$groupid', '$username', '$status', '$permission')\";\n\tif($con -> query($query))\n\t\treturn SUCCESS;\n\telse\n\t\treturn FAIL;\n }", "private function grantAdminAccess()\n {\n if ($this->checkColumn(\"shopgate\", TABLE_ADMIN_ACCESS)) {\n // Create column shopgate in admin_access...\n xtc_db_query(\n \"alter table \" . TABLE_ADMIN_ACCESS\n . \" ADD shopgate INT( 1 ) NOT NULL\"\n );\n\n // ... grant access to to shopgate for main administrator\n xtc_db_query(\n \"update \" . TABLE_ADMIN_ACCESS\n . \" SET shopgate=1 where customers_id=1 LIMIT 1\"\n );\n\n if (!empty($_SESSION['customer_id'])\n && $_SESSION['customer_id'] != 1\n ) {\n // grant access also to current user\n xtc_db_query(\n \"update \" . TABLE_ADMIN_ACCESS\n . \" SET shopgate = 1 where customers_id='\"\n . $_SESSION['customer_id']\n . \"' LIMIT 1\"\n );\n }\n\n xtc_db_query(\n \"update \" . TABLE_ADMIN_ACCESS\n . \" SET shopgate = 5 where customers_id = 'groups'\"\n );\n }\n }", "function add_access_grant_to_invited_group($event, $type, $object) {\n\tif ($object->relationship == 'invited') {\n\t\tadd_entity_relationship($object->guid_one, 'access_grant', $object->guid_two);\n\t}\n}", "function insert_userGroup($data){\n $user = array();\n $user_group = array();\n\n // Insert user\n $user['id'] = $data['id'];\n $user['username'] = $data['username'];\n $user['password'] = md5($data['password']);\n $user['email'] = $data['email'];\n insertRecord(TAB_USERS, $user);\n\n // Insert user-role\n $group = $data['group'];\n $data['group'] = selectRecord(TAB_GROUPS, \"role = '$group'\")['id'];\n $user_group['userId'] = $data['id'];\n $user_group['groupId'] = $data['group'];\n insertRecord(TAB_USR_ROLE, $user_group);\n if($group['id'] == 1){\n $data_info = array();\n $data_info['employment'] = \"-\";\n $data_info['img_address'] = \"upload/user/user-default.png\";\n $data_info['user'] = $data['id'];\n insertRecord(TAB_PERSONALINFO, $data_info);\n }\n}", "function set_cur_group($group) {\n\t\tlgi_mysql_query(\"UPDATE %t(usergroups) SET `dfl`=(`name`='%%') WHERE `usercertid`=(SELECT `id` FROM %t(usercerts) WHERE `user`='%%')\", $group, $this->userid);\n\t\t$_SESSION['dfl_group'] = $group;\n\t}", "public function updateUser($groupId, $userId) {\n //new groupId\n \t$this->vertify(\"groupId\", $this->receiver);\n //person permission set ids\n \t$this->vertify(\"permissions\", $this->receiver); \t\n\n $actor = PlatformUser::instanceBySession(); \n \n $personEffectRows = 0;\n $groupEffectRows = 0;\n\n //group\n $newGroupId = $this->receiver['groupId']; \n $PlatformUserGroupHasPermission = new PlatformUserGroupHasPermissionCollection();\n $groupPermissionIds = $PlatformUserGroupHasPermission->getIdsByGroupId( $newGroupId );\n $PlatformUserHasGroupPermission = new PlatformUserHasGroupPermissionCollection();\n $PlatformUserHasGroupPermission->removeByUserId($userId);\n $groupEffectRows = $PlatformUserHasGroupPermission->append($userId, $groupPermissionIds);\n if( $groupEffectRows != count($groupPermissionIds) ){\n throw new Exception(\"Append group permission ids into group by PlatformUserHasGroupPermissionCollection.\", 1);\n }\n $user = (new PlatformUserCollection())->getById($userId);\n $isSuccess = $user->update(array('group_id'=>$newGroupId));\n\n //person\n $personPermissionSetIds = $this->receiver['permissions'];\n $PlatformUserHasPermissionSet = new PlatformUserHasPermissionSetCollection();\n $user->DestoryPersonPermissions();\n if( !empty($personPermissionSetIds) ){\n\n $effectRows = $PlatformUserHasPermissionSet->append($userId,$personPermissionSetIds);\n if( $effectRows != count($personPermissionSetIds) ){\n throw new Exception(\"Append new person PermissionSets into this user is error.\", 1);\n }\n $permissionSet = new PermissionSetHasPermissionCollection();\n $personPermissions = $permissionSet->getPermissionIdsByIds($personPermissionSetIds);\n $personEffectRows = $user->appendPersonPermissions($personPermissions);\n if( $personEffectRows != count($personPermissions) ){\n throw new Exception(\"Append new person permissions into this user is error.\", 1);\n }\n\n }\n\n return array( \"personEffectRows\"=> $personEffectRows, \"groupEffectRows\"=>$groupEffectRows );\n\n\t}", "public function admin_user_group()\n\t{\n\t\t$crud = $this->generate_crud('admin_groups');\n\t\t$this->mTitle.= 'Admin User Groups';\n\t\t$this->render_crud();\n\t}", "function modify_groups() {\n\t//checks if user is admin - if yes then show them the page attributes box so they can set hierarchy\n\tif ( current_user_can ( 'manage_options') ) {\n \tadd_post_type_support('groups','page-attributes');\n }\n\t\n if ( post_type_exists( 'groups' ) ) {\n \t\n /* Give groups hierarchy */\n /* Give products hierarchy (for house plans) */\n global $wp_post_types, $wp_rewrite;\n $wp_post_types['groups']->hierarchical = true;\n $args = $wp_post_types['groups'];\n $wp_rewrite->add_rewrite_tag(\"%groups%\", '(.+?)', $args->query_var ? \"{$args->query_var}=\" : \"post_type=groups=\");\n \n }\n\n}", "function sf_setup_usergroup_data($membergroup, $moderatorgroup, $upgrade, $keys)\n{\n\tglobal $wpdb, $current_user;\n\n\t# if upgrade check if any moderators\n\t$modusers = '';\n\tif($upgrade) $modusers = get_option('sfmodusers');\n\tif(!empty($modusers))\n\t{\n\t\t$modusers = explode(';',get_option('sfmodusers'));\n\t}\n\n\t# get the list of users and do the stuff\n\t$userlist = $wpdb->get_results(\"SELECT ID FROM \".SFUSERS.\" ORDER BY display_name ASC;\");\n\tif($userlist)\n\t{\n\t\tforeach($userlist as $user)\n\t\t{\n\t\t\t# check it's not the admin\n\t\t\tif($user->ID != $current_user->ID)\n\t\t\t{\n\t\t\t\t$target = $membergroup;\n\t\t\t\t# is user a moderator?\n\t\t\t\tif(!empty($modusers))\n\t\t\t\t{\n\t\t\t\t\tif(in_array($user->ID, $modusers)) $target = $moderatorgroup;\n\t\t\t\t}\n\t\t\t\t$memberships = get_usermeta($user->ID, 'sfusergroup');\n\t\t\t\t$memberships[] = $target;\n\t\t\t\tupdate_usermeta($user->ID, 'sfusergroup', $memberships);\n\t\t\t}\n\t\t}\n\t}\n\n\t# Now to assign all 3 default usergroups to all forums\n\tif(($keys) && ($upgrade))\n\t{\n\t\t$forums = $wpdb->get_results(\"SELECT forum_id FROM \".SFFORUMS.\";\");\n\t\tif($forums)\n\t\t{\n\t\t\tforeach($forums as $forum)\n\t\t\t{\n\t\t\t\tfor($x=0; $x<count($keys); $x++)\n\t\t\t\t{\n\t\t\t\t\t$group = $keys[$x]['usergroup'];\n\t\t\t\t\t$perm = $keys[$x]['permission'];\n\n\t\t\t\t\t$sql =\"INSERT INTO \".SFPERMISSIONS.\" (forum_id, usergroup_id, permission_role) \";\n\t\t\t\t\t$sql.=\"VALUES (\".$forum->forum_id.\", \".$group.\", \".$perm.\");\";\n\t\t\t\t\t$wpdb->query($sql);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn;\n}", "public static function saveUserGroup($gDesc);", "function addToGroup($userId, $db, $group, $leader) {\n if ($group == 0) {\n echo \"<meta http-equiv='REFRESH' content='0;url=createGroup.php'>\";\n return 0;\n }\n $query = ('UPDATE users SET currentGroup = :group, groupLeader = :leader WHERE id = :userId');\n $statement = $db -> prepare($query);\n $statement -> bindValue(':userId', $userId);\n $statement -> bindValue(':group', $group);\n $statement -> bindValue(':leader', $leader);\n\n // execute query and print error message if not\n if (!$statement -> execute()) { return print_r($stm->errorInfo(), true);} else {\n return true;\n }\n}", "function sf_group_def_perms()\n{\n\tglobal $wpdb;\n\n\t# grab the \"default\" permissions if they exist\n\t$noaccess = $wpdb->get_var(\"SELECT role_id FROM \".SFROLES.\" WHERE role_name='No Access'\");\n\tif (!$noaccess) $noaccess = -1;\n\t$readonly = $wpdb->get_var(\"SELECT role_id FROM \".SFROLES.\" WHERE role_name='Read Only Access'\");\n\tif (!$readonly) $readonly = -1;\n\t$standard = $wpdb->get_var(\"SELECT role_id FROM \".SFROLES.\" WHERE role_name='Standard Access'\");\n\tif (!$standard) $standard = -1;\n\t$moderator = $wpdb->get_var(\"SELECT role_id FROM \".SFROLES.\" WHERE role_name='Moderator Access'\");\n\tif (!$moderator) $moderator = -1;\n\n\t$usergroups = $wpdb->get_results(\"SELECT * FROM \".SFUSERGROUPS);\n\t$groups = $wpdb->get_results(\"SELECT group_id FROM \".SFGROUPS);\n\tif ($groups && $usergroups)\n\t{\n\t\tforeach ($groups as $group)\n\t\t{\n\t\t\tforeach ($usergroups as $usergroup)\n\t\t\t{\n\t\t\t\tif ($usergroup->usergroup_name == 'Guests')\n\t\t\t\t{\n\t\t\t\t\t$rid = $readonly;\n\t\t\t\t} else if ($usergroup->usergroup_name == 'Members')\n\t\t\t\t{\n\t\t\t\t\t$rid = $standard;\n\t\t\t\t} else if ($usergroup->usergroup_name == 'Moderators')\n\t\t\t\t{\n\t\t\t\t\t$rid = $moderator;\n\t\t\t\t} else {\n\t\t\t\t\t$rid = $noaccess;\n\t\t\t\t}\n\t\t\t\t$wpdb->query(\"\n\t\t\t\t\tINSERT INTO \".SFDEFPERMISSIONS.\"\n\t\t\t\t\t(group_id, usergroup_id, permission_role)\n\t\t\t\t\tVALUES\n\t\t\t\t\t($group->group_id, $usergroup->usergroup_id, $rid)\");\n\t\t\t}\n\t\t}\n\t}\n}", "public function setUserGroup($groupId);", "public function store()\n\t{\n try\n {\n\n $user_id=Input::get('user_id');\n $group_id=Input::get('group_id');\n // Find the user using the user id\n $user = Sentry::findUserById($user_id);\n\n // Find the group using the group id\n $adminGroup = Sentry::findGroupById($group_id);\n\n // Assign the group to the user\n if ($user->addGroup($adminGroup))\n {\n echo 'success';\n }\n else\n {\n // Group was not assigned\n }\n }\n catch (Cartalyst\\Sentry\\Users\\UserNotFoundException $e)\n {\n echo 'User was not found.';\n }\n catch (Cartalyst\\Sentry\\Groups\\GroupNotFoundException $e)\n {\n echo 'Group was not found.';\n }\n\t}", "public function setLoggedUser(){\n\t\tif(isset($_SESSION['ccUser']) && !empty($_SESSION['ccUser'])){\n\t\t\t$id = $_SESSION['ccUser'];\n\n\t\t\t$sql = $this->db->prepare(\"SELECT * FROM users WHERE id = :id\");\n\t\t\t$sql->bindValue(':id', $id);\n\t\t\t$sql->execute();\n\n\t\t\tif($sql->rowCount() > 0){\n\t\t\t\t$this->userInfo = $sql->fetch();\n\t\t\t\t$this->permissions = new Permissions();\n\t\t\t\t$this->permissions->setGroup($this->userInfo['id_group']);\n\t\t\t}\n\t\t}\n\t}", "public function setLoggedUser(){\n\t\tif(isset($_SESSION['ccUser']) && !empty($_SESSION['ccUser'])){\n\t\t\t$id = $_SESSION['ccUser'];\n\n\t\t\t$sql = $this->db->prepare(\"SELECT * FROM users WHERE id = :id\");\n\t\t\t$sql->bindValue(':id', $id);\n\t\t\t$sql->execute();\n\n\t\t\tif($sql->rowCount() > 0){\n\t\t\t\t$this->userInfo = $sql->fetch();\n\t\t\t\t$this->permissions = new Permissions();\n\t\t\t\t$this->permissions->setGroup($this->userInfo['id_group']);\n\t\t\t}\n\t\t}\n\t}", "function eio_grp_add($grp, $req)\n{\n}", "public function ajax_updateperm() {\n\t\t\t\n\t\t\tif( !isset($_GET['usergroup']) || !isset($_GET['key']) || !isset($_GET['value']) )\n\t\t\t\tdie( \"error\" );\n\t\t\t\t\n\t\t\t$Usergroup = $this->usergroup_model->GetByID( intval( $this->input->get('usergroup') ) );\n\t\t\tif( $Usergroup == false ) die( \"error\" );\n\t\t\t\n\t\t\tif( $_GET[ \"key\" ] == \"name\" ) {\n\t\t\t\t$NewName = $this->db->escape( $_GET[ \"value\" ] );\n\t\t\t\tget_instance()->db->query( \"UPDATE `usergroups` SET `Name` = {$NewName} WHERE `ID` = {$Usergroup->ID};\" );\n\t\t\t\tdie( \"success\" );\n\t\t\t}\n\t\t\t\n\t\t\tif( $_GET[ \"value\" ] == \"enable_cat\" || $_GET[ \"value\" ] == \"disable_cat\" ) {\n\t\t\t\t$CatID = intval( $_GET['key'] );\n\t\t\t\t\n\t\t\t\tif( $_GET[ \"value\" ] == \"enable_cat\" ) {\n\t\t\t\t\t$Usergroup->AddTicketCat( $CatID );\n\t\t\t\t}else{\n\t\t\t\t\t$Usergroup->RemoveTicketCat( $CatID );\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdie( \"success\" );\n\t\t\t}\n\t\t\t\n\t\t\t$Permission = Permissions::GetByKey( $this->input->get('key') );\n\t\t\tif( $Permission == false ) die( \"error\" );\n\t\t\t\n\t\t\tif( intval( $_GET['value'] ) == 1 ) {\n\t\t\t\t$Usergroup->GivePermission( $Permission->ID );\n\t\t\t}else{\n\t\t\t\t$Usergroup->RemovePermission( $Permission->ID );\n\t\t\t}\n\t\t\t\n\t\t\tdie( \"success\" );\n\t\t}", "protected function editLockPermissions() {}", "public function update( $id ){\n\n $user = PlatformUser::instanceBySession();\n $PlatformUserGroups = new PlatformUserGroupCollection();\n $PlatformUserGroups->setActor($user);\n $PlatformUserGroup = $PlatformUserGroups->getById($id);\n $params = array( \"name\"=>$this->params(\"name\") );\n $isSuccess = $PlatformUserGroup->update($params);\n\n $PlatformUserGroupHasPermissionSet = new PlatformUserGroupHasPermissionSetCollection();\n $PlatformUserGroupHasPermissionSet->setActor($user);\n $PlatformUserGroupHasPermissionSet->removeByPlatformUserGroupId($id);\n $permissionSetIds = $this->params(\"permissions\");\n $effectRows = $PlatformUserGroupHasPermissionSet->append($id, $permissionSetIds);\n if( $effectRows != count($permissionSetIds) ){\n throw new Exception(\"Append permission set ids into group by PlatformUserHasPermissionSetCollection.\", 1);\n }\n\n $groupPermissionSetIds = $PlatformUserGroupHasPermissionSet->getPermissionSetIdsByGroupId($id);\n $permissionIds = (new PermissionSetHasPermissionCollection())->getPermissionIdsByIds($groupPermissionSetIds);\n\n $PlatformUserGroupHasPermission = new PlatformUserGroupHasPermissionCollection();\n $PlatformUserGroupHasPermission->setActor($user);\n $PlatformUserGroupHasPermission->removeByPlatformUserGroupId($id);\n $effectRows = $PlatformUserGroupHasPermission->append($id, $permissionIds);\n if( $effectRows != count($permissionIds) ){\n throw new Exception(\"Append permission ids into group by PlatformUserHasPermissionCollection.\", 1);\n }\n\n $users = new PlatformUserCollection();\n $userIds = $users->getUserIdsByGroupId($id);\n\n $groupPermissionIds = $PlatformUserGroupHasPermission->getIdsByGroupId( $id );\n $PlatformUserHasGroupPermission = new PlatformUserHasGroupPermissionCollection();\n foreach ($userIds as $key => $userId) {\n $PlatformUserHasGroupPermission->removeByUserId($userId);\n $effectRows = $PlatformUserHasGroupPermission->append($userId, $groupPermissionIds);\n if( $effectRows != count($groupPermissionIds) ){\n throw new Exception(\"Append group permission ids into group by PlatformUserHasGroupPermissionCollection.\", 1);\n }\n }\n \n return array();\n\n }", "public function addAction() {\n list(, $groups) = Admin_Service_Group::getAllGroup();\n $this->assign('groups', $groups);\n $this->assign(\"meunOn\", \"sys_user\");\n }", "function grant_super_admin($user_id)\n {\n }", "function system_add_group($paramv)\n{\n}", "public function testGroupContentEntityOperationAccessAlterHook(string $operation): void {\n // Check that our test user doesn't have access to edit or delete comments\n // in the group.\n // This is the default behavior for users that are not a group member.\n $this->assertFalse($this->userHasAccess($operation));\n\n // Now enable our hook which will alter the group content entity operation\n // access rules to allow moderators to edit and delete comments in all\n // groups. Since our user is a moderator they should now have access.\n \\Drupal::state()->set('og_test_group_content_entity_operation_access_alter', TRUE);\n $this->assertTrue($this->userHasAccess($operation));\n }", "public function testUpdatePermissionSet()\n {\n }", "public function modifyGroupRights($aScene) {\n\t\t//remove existing permissions\n\t\t$this->removeGroupPermissions($aScene->group_id);\n\t\t\n\t\t//add new permissions\n\t\t$theRightsList = array();\n\t\t$theRightGroups = $aScene->getPermissionRes('namespace');\n\t\tforeach ($theRightGroups as $ns => $nsInfo) {\n\t\t\t$nsInfo; //no-op to avoid warning of not using var\n\t\t\tforeach ($aScene->getPermissionRes($ns) as $theRight => $theRightInfo) {\n\t\t\t\t$theRightInfo; //no-op to avoid warning of not using var\n\t\t\t\t$varName = $ns.'__'.$theRight;\n\t\t\t\t$theAssignment = $aScene->$varName;\n\t\t\t\t//$this->debugLog($varName.'='.$theAssignment);\n\t\t\t\tif ($theAssignment==self::FORM_VALUE_Allow) {\n\t\t\t\t\tarray_push($theRightsList, array('ns'=>$ns, 'perm'=>$theRight, 'group_id'=>$aScene->group_id, 'value'=>self::VALUE_Allow) );\n\t\t\t\t} else if ($theAssignment==self::FORM_VALUE_Deny) {\n\t\t\t\t\tarray_push($theRightsList, array('ns'=>$ns, 'perm'=>$theRight, 'group_id'=>$aScene->group_id, 'value'=>self::VALUE_Deny) );\n\t\t\t\t}\n\t\t\t}//end foreach\n\t\t}//end foreach\n\t\tif (!empty($theRightsList)) {\n\t\t\t$theSql = SqlBuilder::withModel($this)->obtainParamsFrom($aScene);\n\t\t\t$theSql->startWith('INSERT INTO')->add($this->tnPermissions);\n\t\t\t$theSql->add('(namespace, permission, group_id, value) VALUES (:ns, :perm, :group_id, :value)');\n\t\t\t$theSql->execMultiDML($theRightsList);\n\t\t}\n\t}", "function update_permission_group_status($groupId, $status, $userId)\n\t{\n\t\tlog_message('debug', '_setting/update_permission_group_status');\n\t\tlog_message('debug', '_setting/update_permission_group_status:: [1] groupId='.$groupId.' status='.$status.' userId='.$userId);\n\n\t\t$result = server_curl(IAM_SERVER_URL, array('__action'=>'run', 'return'=>'plain', 'query'=>'update_permission_group_status', 'variables'=>array('group_id'=>$groupId, 'status'=>$status, 'user_id'=>$userId) ));\n\t\tlog_message('debug', '_setting/save_permission_group:: [2] result='.$result);\n\n\t\treturn array('success'=>($result? 'TRUE': 'FALSE'));\n\t}", "function save_permission_group($groupId, $groupName, $groupType, $groupCategory, $rules, $permissions, $userId)\n\t{\n\t\tlog_message('debug', '_setting/save_permission_group');\n\t\tlog_message('debug', '_setting/save_permission_group:: [1] groupId='.$groupId.' groupName='.$groupName.' groupType='.$groupType.' groupCategory='.$groupCategory.' rules='.$rules.' permissions='.$permissions.' userId='.$userId);\n\n\t\t# This is a new group\n\t\tif(empty($groupId)) {\n\t\t\t$groupId = server_curl(IAM_SERVER_URL, array('__action'=>'add_data', 'return'=>'plain', 'query'=>'add_permission_group',\n\t\t\t\t'variables'=>array(\n\t\t\t\t\t'name'=>htmlentities($groupName, ENT_QUOTES),\n\t\t\t\t\t'group_type'=>(!empty($groupType)? $groupType: 'random_shopper'),\n\t\t\t\t\t'group_category'=>(!empty($groupCategory)? $groupCategory: 'shopper'),\n\t\t\t\t\t'is_removable'=>'Y',\n\t\t\t\t\t'status'=>'active',\n\t\t\t\t\t'user_id'=>$userId\n\t\t\t\t)));\n\t\t\tlog_message('debug', '_setting/save_permission_group:: [2] groupId='.$groupId);\n\n\t\t\t$result = !empty($groupId);\n\t\t}\n\t\t# Simply updating a group's details\n\t\telse {\n\t\t\t$result = server_curl(IAM_SERVER_URL, array('__action'=>'run', 'return'=>'plain', 'query'=>'update_permission_group',\n\t\t\t\t'variables'=>array(\n\t\t\t\t\t'name'=>htmlentities($groupName, ENT_QUOTES),\n\t\t\t\t\t'group_type'=>(!empty($groupType)? $groupType: 'random_shopper'),\n\t\t\t\t\t'user_id'=>$userId,\n\t\t\t\t\t'group_id'=>$groupId\n\t\t\t\t)));\n\t\t}\n\t\tlog_message('debug', '_setting/save_permission_group:: [3] result='.$result);\n\n\t\t# Proceed if the above passed\n\t\tif($result){\n\t\t\t# Remove the old group permissions and then add the new ones\n\t\t\t$result = server_curl(IAM_SERVER_URL, array('__action'=>'run', 'return'=>'plain', 'query'=>'delete_group_permissions', 'variables'=>array('group_id'=>$groupId)));\n\n\t\t\tif($result) $result = server_curl(IAM_SERVER_URL, array('__action'=>'run', 'return'=>'plain', 'query'=>'add_group_permissions', 'variables'=>array('group_id'=>$groupId, 'permission_ids'=>implode(\"','\", $permissions), 'user_id'=>$userId )));\n\t\t\t# Remove the old group rules and then add the new ones\n\t\t\tif($result) $result = server_curl(IAM_SERVER_URL, array('__action'=>'run', 'return'=>'plain', 'query'=>'delete_group_rules', 'variables'=>array('group_id'=>$groupId)));\n\n\t\t\tif($result) $result = server_curl(IAM_SERVER_URL, array('__action'=>'run', 'return'=>'plain', 'query'=>'add_group_rules', 'variables'=>array('group_id'=>$groupId, 'rule_ids'=>implode(\"','\", $rules), 'user_id'=>$userId )));\n\t\t}\n\t\tlog_message('debug', '_setting/save_permission_group:: [4] result='.$result);\n\n\t\treturn array('success'=>($result? 'TRUE': 'FALSE'));\n\t}", "function update_user_group_mapping($newGroupId, $userIdList, $userId, $details)\n\t{\n\t\tlog_message('debug', '_setting/update_user_group_mapping');\n\t\tlog_message('debug', '_setting/update_user_group_mapping:: [1] newGroupId='.$newGroupId.' userIdList='.$userIdList.' userId='.$userId.' details='.$details);\n\n\t\t$response = server_curl(IAM_SERVER_URL, array(\n\t\t\t'__action'=>'update_user_group_mapping',\n\t\t\t'newGroupId'=>$newGroupId,\n\t\t\t'userIdList'=>implode(',',$userIdList),\n\t\t\t'userId'=>$userId\n\t\t));\n\n\t\tlog_message('debug', '_setting/update_user_group_mapping:: [2] response='.json_encode($response));\n\n\t\t# apply the rule for updating the user group types for all referred users based on the\n\t\tif(!empty($response['result']) && $response['result'] == 'SUCCESS'){\n\t\t\t$group = server_curl(IAM_SERVER_URL, array('__action'=>'get_row_as_array', 'query'=>'get_group_by_id', 'variables'=>array('group_id'=>$newGroupId )));\n\t\t\tlog_message('debug', '_setting/update_user_group_mapping:: [3] group='.json_encode($group));\n\n\t\t\t# but wait! have we updated the user security settings in the main db?\n\t\t\tforeach($userIdList AS $id){\n\t\t\t\t$result = $this->_query_reader->run('update_user_security_settings', array(\n\t\t\t\t\t'user_type'=>$group['group_type'],\n\t\t\t\t\t'user_id'=>$id,\n\t\t\t\t\t'updated_by'=>$userId\n\t\t\t\t));\n\t\t\t}\n\t\t\tlog_message('debug', '_setting/update_user_group_mapping:: [4] result='.$result);\n\n\n\t\t\t# invited user\n\t\t\tif($group['group_type'] == 'invited_shopper') {\n\t\t\t\tforeach($userIdList AS $id){\n\t\t\t\t\tif(rule_check($this,'permission_update_to_invited_user', array('user_id'=>$id))){\n\t\t\t\t\t\t$result = apply_rule($this,'permission_update_to_invited_user', array('user_id'=>$id));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t# random user\n\t\t\telse if($group['group_type'] == 'random_shopper') {\n\t\t\t\tforeach($userIdList AS $id){\n\t\t\t\t\tif(rule_check($this,'permission_update_to_random_user', array('user_id'=>$id))){\n\t\t\t\t\t\t$result = apply_rule($this,'permission_update_to_random_user', array('user_id'=>$id));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t# whats the overall result?\n\t\t\t$response['result'] = $result? 'SUCCESS': 'FAIL';\n\t\t}\n\n\n\n\n\t\t# Log activity\n\t\t$this->_logger->add_event(array(\n\t\t\t'user_id'=>$userId,\n\t\t\t'activity_code'=>'update_user_group_mapping',\n\t\t\t'result'=>(!empty($response['result']) && $response['result'] == 'SUCCESS'? 'SUCCESS':'FAIL'),\n\t\t\t'log_details'=>\"new_group_id=\".$newGroupId.\"|user_id_list=\".implode(', ',$userIdList).\"|device=\".(!empty($details['device'])? $details['device']: 'unknown').\"|browser=\".(!empty($details['browser'])? $details['browser']: 'unknown'),\n\t\t\t'uri'=>(!empty($details['uri'])? $details['uri']: ''),\n\t\t\t'ip_address'=>(!empty($details['ip_address'])? $details['ip_address']: '')\n\t\t));\n\t\tlog_message('debug', '_setting/update_user_group_mapping:: [5] response='.json_encode($response));\n\n\t\treturn $response;\n\t}", "function egsr_add_group_site_roles()\n{\n // Exit if script is run from other than Admin\n if ( !current_user_can('administrator') ) {\n return;\n }\n $group_site_roles = egsr_custom_site_roles();\n foreach ($group_site_roles as $key => $value) {\n $role = get_role($key);\n // Check if Role doesn't exist already\n if(!isset($role->name) == $key){\n // Add role + capabilities\n add_role(\n $key,\n $value['label'],\n $value['caps']\n );\n }\n }\n}", "public function resetUserGroupMembership($systemType)\n {\n // DB connection\n $dbCon = $this->_dbCon;\n\n $userList = $this->_userDao->getUserList();\n\n // loop through every user and fix it\n foreach ($userList as $user) {\n /*\n * Remove current group membership\n */\n $dbCon->rawExec('DELETE FROM usergroups WHERE userid = '.(int) $user['userid']);\n\n /*\n * Actually update the group membership, depending\n * on what kind of user this is\n */\n if ($user['userid'] == 1) {\n // Anonymous user\n if ($systemType == 'shared') {\n /* Grant the group with only logon rights */\n $dbCon->rawExec('INSERT INTO usergroups(userid,groupid,prio) VALUES(1, 1, 1)');\n } else {\n /* Grant the group with the view permissions */\n $dbCon->rawExec('INSERT INTO usergroups(userid,groupid,prio) VALUES(1, 2, 1)');\n } // else\n } elseif (($user['userid'] == 2) || ($user['userid'] == $this->_settings->get('custom_admin_userid'))) {\n // Admin user\n $dbCon->rawExec('INSERT INTO usergroups(userid,groupid,prio) VALUES('.$user['userid'].', 2, 1)');\n $dbCon->rawExec('INSERT INTO usergroups(userid,groupid,prio) VALUES('.$user['userid'].', 3, 2)');\n $dbCon->rawExec('INSERT INTO usergroups(userid,groupid,prio) VALUES('.$user['userid'].', 4, 3)');\n $dbCon->rawExec('INSERT INTO usergroups(userid,groupid,prio) VALUES('.$user['userid'].', 5, 4)');\n } else {\n // Grant the regular users all the necessary security groups\n $dbCon->rawExec('INSERT INTO usergroups(userid,groupid,prio) VALUES('.$user['userid'].', 2, 1)');\n $dbCon->rawExec('INSERT INTO usergroups(userid,groupid,prio) VALUES('.$user['userid'].', 3, 2)');\n\n // For a shared and single system, all users are trusted\n if (($systemType == 'shared') || ($systemType == 'single')) {\n $dbCon->rawExec('INSERT INTO usergroups(userid,groupid,prio) VALUES('.$user['userid'].', 4, 3)');\n } // if\n\n // For a single system, all users are administrators as well (there should only be one additional user)\n if ($systemType == 'single') {\n $dbCon->rawExec('INSERT INTO usergroups(userid,groupid,prio) VALUES('.$user['userid'].', 5, 4)');\n } // if\n } // else\n } // foreach\n }", "public function groupAccessLevel(){\n\t\n\t global $db;\n\t \n\t #see if user is guest, if so, they have zero-level access.\n\t\tif($this->user == \"guest\"){\n\t\t $getAccessLevel = 0;\n\t\t return($getAccessLevel);\n\t\t}else{\n\t \t$db->SQL = \"SELECT Level FROM ebb_groups where id='\".$this->gid.\"' LIMIT 1\";\n\t\t\t$getAccessLevel = $db->fetchResults();\n\n\t\t\treturn($getAccessLevel['Level']);\n\t\t}\n\t}", "public function add() {\n\t\t$data = array (\n\t\t\t'be_users_uid' => $this['beUserUid'],\n\t\t\t'group_uid' => $this['groupUid'],\n\t\t\t'rights' => $this['rights']\n\t\t);\n\t\t$res = $GLOBALS['TYPO3_DB']->exec_INSERTquery(\n\t\t\t'tx_passwordmgr_group_be_users_mm',\n\t\t\t$data\n\t\t);\n\t\tif ( $res ) {\n\t\t\ttx_passwordmgr_helper::addLogEntry(1, 'addMembership', 'Added user '.$data['be_users_uid'].' to group '.$data['group_uid']);\n\t\t} else {\n\t\t\tthrow new Exception ('Error adding user. user / group: ' . $data['be_users_uid'] . ' ' . $data['group_uid']);\n\t\t}\n\t}", "public function assignOrRemoveUserToGroup($user_id, $group_id, $action, $site_id=site_id) {\n if($action==='assign') {\n try {\n $stm = $this->uFunc->pdo('uAuth')->prepare('REPLACE INTO\n u235_usersinfo_groups (\n user_id,\n group_id,\n site_id\n ) VALUES (\n :user_id,\n :group_id,\n :site_id\n )\n ');\n $stm->bindParam(':user_id', $user_id, PDO::PARAM_INT);\n $stm->bindParam(':group_id', $group_id, PDO::PARAM_INT);\n $stm->bindParam(':site_id', $site_id, PDO::PARAM_INT);\n $stm->execute();\n } catch (PDOException $e) {\n $this->uFunc->error('1587236839'/*.$e->getMessage()*/,1);\n }\n }\n else {\n try {\n $stm = $this->uFunc->pdo('uAuth')->prepare('DELETE FROM\n u235_usersinfo_groups \n WHERE\n user_id=:user_id AND\n group_id=:group_id AND\n site_id=:site_id\n ');\n $stm->bindParam(':user_id', $user_id, PDO::PARAM_INT);\n $stm->bindParam(':group_id', $group_id, PDO::PARAM_INT);\n $stm->bindParam(':site_id', $site_id, PDO::PARAM_INT);\n $stm->execute();\n } catch (PDOException $e) {\n $this->uFunc->error('1587237190'/*.$e->getMessage()*/,1);\n }\n }\n }", "function page_require_level($required_level) {\n global $session;\n $current_user = current_user();\n\n /* caution */\n /* === === */\n if ( !$current_user ) {\n redirect('home.php',FALSE);\n return FALSE;\n }\n $login_group = find_by_groupLevel($current_user['nivel_usuario']);\n\n // if user is not logged in\n if (!$session->isUserLoggedIn(TRUE)) {\n $session->msg('d','Por favor Iniciar sesión...');\n redirect('index.php', FALSE);\n }\n // if group status is inactive\n elseif($login_group['estatus_gpo'] === '0') {\n $session->msg('d','Este nivel de usaurio esta inactivo!');\n redirect('home.php',FALSE);\n }\n // checking if (user level) <= (required level)\n elseif($current_user['nivel_usuario'] <= (int)$required_level) {\n return TRUE;\n }\n else {\n $session->msg(\"d\", \"¡Lo siento! no tienes permiso para ver la página.\");\n redirect('home.php', FALSE);\n }\n}", "function addUsersToGroup($group_id, $user_ids){\n\n}", "function addGroup($groupname){\r\n\t\t$file=fopen($this->fHtgroup,\"a\");\r\n\t\tfclose($file);\r\n\t}", "public function setUserAccessLevel (int $userAccessLevel) {\n\t\t\n\t\t//make sure user access level= 1 or 0\n\t\tif(($userAccessLevel !== 0) && ($userAccessLevel !== 1)) {\n\t\t\tthrow(new\\RangeException(\"user access level has to be 0 or 1\"));\n\t\t}\n\t\t//convert and store user access level\n\t\t$this->userAccessLevel = $userAccessLevel;\n\t}", "public function setPrivilages()\n {\n // $this->acl->allow('guest',null, array('view', 'index'));\n // $this->acl->allow('editor',array('view','edit'));\n // $this->acl->allow('admin');\n \n // Setting privilages for actions as per particular controller\n // $this->acl->allow('<role>','<controller>', <array of controller actions>);\n // You can also fetch it from DB.\n \n// // $this->acl->deny('guest','news', 'index');\n// $this->acl->allow('guest','news', array( 'demo1', 'view', 'index'));\n// $this->acl->allow('guest','job-board', array('index'));\n//\n// $this->acl->allow('editor','news', array( 'edit', 'view', 'index')); \n// $this->acl->allow('editor','job-board', array('edit', 'index'));\n//\n// $this->acl->allow('admin');\n //$this->acl->allow('guest');\n //Guest ACL\n $this->acl->deny('guest',array('user','shop','admin'));\n $this->acl->allow('guest','index');\n \n //User ACL\n $this->acl->deny('user',array('shop','admin'));\n $this->acl->allow('user','user');\n $this->acl->allow('user','index',array('logout','notfound'));\n \n \n // Shop ACL\n $this->acl->deny('shop',array('user','admin'));\n $this->acl->allow('shop',array('index','shop'));\n \n //Admin ACL\n //$this->acl->deny('admin',array('user','shop'));\n //$this->acl->allow('admin',array('index','admin'));\n $this->acl->allow('admin');\n // Note that the actions which are not mentioned above i.e. inside array of\n // controller-action - becomes access-denied automatically\n // as in above example, news controller also have one more action demo2,\n // but demo2 is not mentioned in above allow actions, so \n // when guest tries to access the action - demo2, it would not show the \n // content of demo2, rather It would show content of error/index.phtml\n }", "function updateMemberGroup()\n {\n // ------------------------------------\n // Only super admins can administrate member groups\n // ------------------------------------\n\n if (Session::userdata('group_id') != 1) {\n return Cp::unauthorizedAccess(__('members.only_superadmins_can_admin_groups'));\n }\n\n $edit = (bool) Request::has('group_id');\n\n $group_id = Request::input('group_id');\n $clone_id = Request::input('clone_id');\n\n unset($_POST['group_id']);\n unset($_POST['clone_id']);\n\n // No group name\n if ( ! Request::input('group_name')) {\n return Cp::errorMessage(__('members.missing_group_name'));\n }\n\n $return = (Request::has('return'));\n\n $site_ids = [];\n $plugin_ids = [];\n $weblog_ids = [];\n $template_ids = [];\n\n // ------------------------------------\n // Remove and Store Weblog and Template Permissions\n // ------------------------------------\n\n $data = [\n 'group_name' => Request::input('group_name'),\n 'group_description' => Request::input('group_description'),\n ];\n\n $duplicate = DB::table('member_groups')\n ->where('group_name', $data['group_name']);\n\n if (!empty($group_id)) {\n $duplicate->where('group_id', '!=', $group_id);\n }\n\n if($duplicate->count() > 0) {\n return Cp::errorMessage(__('members.duplicate_group_name'));\n }\n\n // ------------------------------------\n // Preferences\n // ------------------------------------\n\n $preferences['group_id'] = $group_id;\n $preferences['is_locked'] = Request::input('is_locked');\n\n foreach(static::$group_preferences as $group => $prefs) {\n foreach((array) $prefs as $key => $default) {\n if (Request::has($key)) {\n $preferences[$key] = Request::get($key);\n }\n }\n }\n\n foreach (Request::all() as $key => $val)\n {\n if (substr($key, 0, strlen('weblog_id_')) == 'weblog_id_') {\n $preferences[$key] = ($val == 'y') ? 'y' : 'n';\n } elseif (substr($key, 0, strlen('plugin_name_')) == 'plugin_name_') {\n $preferences[$key] = ($val == 'y') ? 'y' : 'n';\n } elseif (substr($key, 0, strlen('can_access_offline_site_id_')) == 'can_access_offline_site_id_') {\n $preferences[$key] = ($val == 'y') ? 'y' : 'n';\n } elseif (substr($key, 0, strlen('can_access_cp_site_id_')) == 'can_access_cp_site_id_') {\n $preferences[$key] = ($val == 'y') ? 'y' : 'n';\n } else {\n continue;\n }\n }\n\n if ($edit === false)\n {\n $group_id = DB::table('member_groups')->insertGetId($data);\n\n foreach($preferences as $handle => $value) {\n $prefs =\n [\n 'group_id' => $data['group_id'],\n 'handle' => $handle,\n 'value' => $value\n ];\n\n DB::table('member_group_preferences')->insert($prefs);\n }\n\n $uploads = DB::table('upload_prefs')\n ->select('id')\n ->get();\n\n foreach($uploads as $yeeha)\n {\n DB::table('upload_no_access')\n ->insert(\n [\n 'upload_id' => $yeeha->id,\n 'upload_loc' => 'cp',\n 'member_group' => $group_id\n ]);\n }\n\n $message = __('members.member_group_created').'&nbsp;'.$_POST['group_name'];\n }\n else\n {\n DB::table('member_groups')\n ->where('group_id', $data['group_id'])\n ->update($data);\n\n DB::table('member_group_preferences')\n ->where('group_id', $data['group_id'])\n ->delete();\n\n foreach($preferences as $handle => $value) {\n $prefs =\n [\n 'group_id' => $data['group_id'],\n 'handle' => $handle,\n 'value' => $value\n ];\n\n DB::table('member_group_preferences')->insert($prefs);\n }\n\n $message = __('members.member_group_updated').'&nbsp;'.$_POST['group_name'];\n }\n\n // Update CP log\n Cp::log($message);\n\n $this->clearMemberGroupCache($data['group_id']);\n\n if ($return == true) {\n return $this->member_group_manager($message);\n }\n\n return $this->editMemberGroup($message, $group_id);\n }", "public function testChown_Chgrp()\n {\n if (!function_exists('posix_getuid')) $this->markTestSkipped(\"Posix functions not available: I don't know if I'm root.\");\n \tif (posix_getuid() !== 0) $this->markTestSkipped(\"Can only chown as root.\");\n\n \t$sysusr = posix_getpwuid(3);\n \tif (!$sysusr) $this->markTestSkipped(\"The system has no user with uid 3, which is used in the test.\");\n\n \t$sysgrp = posix_getgrgid(2);\n \tif (!$sysgrp) $this->markTestSkipped(\"The system has no group with gid 2, which is used in the test.\");\n\n clearstatcache(false, $this->file);\n $this->Fs_Node->chown(array($sysusr['name'], $sysgrp['name']));\n $this->assertEquals(3, fileowner($this->file));\n $this->assertEquals(2, filegroup($this->file));\n\n clearstatcache(false, $this->file);\n $this->Fs_Node->chown(array(0, 0));\n $this->assertEquals(0, fileowner($this->file));\n $this->assertEquals(0, filegroup($this->file));\n }", "function alterGroup($groupinfo) {\n // make sure user is authorized to do this\n die ('unimplemented: '.__CLASS__.'::'.__FUNCTION__.' ('.__LINE__.':'.__FILE__.')');\n }", "function add_group() {\n $this->acl->validate_update();\n\n $where = array(\n 'user_id' => $this->input->post('user_id'),\n 'group_id' => $this->input->post('group_id')\n );\n // Insert or update, to minimize redundancy\n list($flag, $msg) = $this->m_general->insert_update('users_group', $this->input->post(), $where);\n\n return JSONRES($flag, $msg);\n }", "function havp_set_file_access($dir, $owner, $mod) {\n\tif (file_exists($dir)) {\n\t\tmwexec(\"/usr/bin/chgrp -R -v $owner $dir\");\n\t\tmwexec(\"/usr/sbin/chown -R -v $owner $dir\");\n\t\tif (!empty($mod)) {\n\t\t\tmwexec( \"/bin/chmod -R -v $mod $dir\");\n\t\t}\n\t}\n}", "function checkAccess($group, $accessRequired) {\n if ($group > $accessRequired) {\n $retval = 0;\n header('Location: index.php');\n } else {\n $retval = 1;\n }\n return $retval;\n}", "function auth_can_edit_user($user, $target)\n{\n global $min_user_editing_level;\n \n // Always allowed to modify your own stuff\n if(strcasecmp($user, $target) == 0)\n {\n return 1;\n }\n\n if(authGetUserLevel($user) >= $min_user_editing_level)\n {\n return 1;\n }\n\n // Unathorised access\n return 0;\n}", "function assignToken($domain,$accesslevel) {\n\n}", "public function modify_cache_groups() {\n\t\t$cache = $GLOBALS['wp_object_cache'];\n\n\t\t$reflection = new ReflectionClass( $cache );\n\t\tif ( ! $reflection->hasProperty( 'global_groups' ) ) {\n\t\t\twp_die( 'Your object cache plugin is not compatible with WP_Separate_User_Base' );\n\t\t}\n\n\t\t$global_groups = $reflection->getProperty( 'global_groups' );\n\t\t$global_groups->setAccessible( true );\n\t\t$groups = $global_groups->getValue( $cache );\n\n\t\tunset( $groups['useremail'] );\n\n\t\t$global_groups->setValue( $cache, $groups );\n\t}", "function system_addto_group($paramv)\n{\n}", "function update_user_group($update_user_group, $update_other_user_id) {\n $this->db->where('user_id', $update_other_user_id);\n $this->db->update('users_groups', $update_user_group);\n //echo $this->db->last_query();\n }", "function publisher_saveCategoryPermissions($groups, $categoryid, $perm_name)\r\n{\r\n $publisher = PublisherPublisher::getInstance();\r\n\r\n $result = true;\r\n\r\n $module_id = $publisher->getModule()->getVar('mid');\r\n $gperm_handler = xoops_gethandler('groupperm');\r\n // First, if the permissions are already there, delete them\r\n $gperm_handler->deleteByModule($module_id, $perm_name, $categoryid);\r\n\r\n // Save the new permissions\r\n if (count($groups) > 0) {\r\n foreach ($groups as $group_id) {\r\n $gperm_handler->addRight($perm_name, $categoryid, $group_id, $module_id);\r\n }\r\n }\r\n return $result;\r\n}", "private function fillUserGroup(User $user, Request $request) {\n $user->UserGroup = $request->usergroup;\n }", "public function update_user_group_status($user, $group, $status){\n\t\treturn false;\n\t}", "function addGroupMember($mysqli, $groupID, $userID, $isAdmin, $isAccepted){\r\n $mysqli->query('INSERT INTO `group_members` VALUES ('.$groupID.','.$userID.','.$isAdmin.','.$isAccepted.')');\r\n }", "public function modify_user($user);", "function group ( $user_id )\n\t{\n\t\t$userObj = App::getUser() ;\n\t\t\n\t\tif ( $userObj->getTrueLevel() > 0 )\n\t\t{\n\t\t\tApp::do401 ('Level not valid') ; \n\t\t}\n\t\t\n\t\t$this->view->layoutName = 'layout-backend' ;\n\t\t\n\t\t$user = $this->db->find('ae_users', $user_id ) ;\n\t\t\n\t\tif ( empty($user) )\n\t\t{\n\t\t\tApp::do404 ('User not found') ;\n\t\t}\n\t\t\n\t\t$done = false ;\n\t\t$groups = $this->db->findAll('ae_groups') ;\n\t\t\n\t\tif ( !empty ( $this->data ) )\n\t\t{\n\t\t\tif ( ake('user/group', $this->data) )\n\t\t\t{\n\t\t\t\t$g = $this->data['user/group'] ;\n\t\t\t\t\n\t\t\t\tforeach ( $groups as $group )\n\t\t\t\t{\n\t\t\t\t\tif ( $group['id'] == $g )\n\t\t\t\t\t{\n\t\t\t\t\t\t$g = $group ;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ( is_array($g) && $g['id'] != $suer['group'] && $this->db->edit('ae_users',$user_id,array('group'=>$g['id'])) )\n\t\t\t\t{\n\t\t\t\t\t$done = true ;\n\t\t\t\t\n\t\t\t\t\t$mailer = new AeMail () ;\n\t\t\t\t\tif ( $mailer->sendThis (\n\t\t\t\t\t\tarray ( \n\t\t\t\t\t\t\t'to' => $user['email'],\n\t\t\t\t\t\t\t'subject' => sprintf(_('[%s] %s group information'), Config::get(App::APP_NAME), $g['label'] ) ,\n\t\t\t\t\t\t\t'template' => array (\n\t\t\t\t\t\t\t\t'file'=>'email'.DS.'user-core'.DS.'group-edited.thtml',\n\t\t\t\t\t\t\t\t'vars'=> array (\n\t\t\t\t\t\t\t\t\t'firstname' => $user['firstname'],\n\t\t\t\t\t\t\t\t\t'lastname' => $user['lastname'],\n\t\t\t\t\t\t\t\t\t'group' => $g['label'] \n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t) ,\n\t\t\t\t\t\t)\n\t\t\t\t\t) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$user['group'] = $g['id'] ;\n\t\t\t\t\t\t$this->addResponse(sprintf(_('Group has been successfully changed, and an email has been sent to %s to warn this person about the group edition.'), $user['email'])) ;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tApp::do500('Sending mail failure');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif ( !$done )\n\t\t\t{\n\t\t\t\t$this->addResponse(_('Group not valid. Please retry.'), self::RESPONSE_ERROR ) ;\n\t\t\t}\n\t\t}\n\t\n\t\tforeach ( $groups as $group )\n\t\t{\n\t\t\tif ( $group['id'] == $user['group'] )\n\t\t\t{\n\t\t\t\t$this->addResponse(sprintf(_('User <strong>%s</strong>, also known as <strong>%s %s</strong>, is currently in <strong>%s</strong> group '),$user['email'],$user['firstname'],$user['lastname'],$group['label']) , self::RESPONSE_INFO ) ;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t$this->view->set('done', $done);\n\t\t$this->view->set('user',$user);\n\t\t$this->view->set('groups',$groups);\n\t\t\n\t}", "function addUserToXoopsGroup( $gid, $uid ) {\n\t$member_handler =& xoops_gethandler('member');\n\tif ( ! $member_handler->addUserToGroup( $gid, $uid ) ) {\n\t\treturn false;\n\t}\n\t$myuid = $GLOBALS['xoopsUser']->getVar( 'uid', 'n' );\n\tif ( $myuid == $uid ) {\n\t\t// update group cache and session\n\t\t$mygroups = $member_handler->getGroupsByUser( $uid );\n\t\t$GLOBALS['xoopsUser']->setGroups( $mygroups );\n\t\tif ( isset( $_SESSION['xoopsUserGroups'] ) ) {\n\t\t\t$_SESSION['xoopsUserGroups'] = $mygroups;\n\t\t}\n\t}\n\treturn true;\n}", "public function addAccessGroups($accessGroups)\n\t{\n\t\t$this->accessGroupsScope = (array)$accessGroups;\n\t}", "function wpcw_groups_grading_AddGroupInstructor($group_id, $user_id)\n{\n global $wpdb;\n\n add_user_meta($user_id, 'instructor_group_id', $group_id);\n}", "function addGroup($groupname){\n $file=fopen($this->fHtgroup,\"a\");\n fclose($file);\n }", "function addGroup($groupname){\n $file=fopen($this->fHtgroup,\"a\");\n fclose($file);\n }", "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 }", "public function update_user_access($id, $req_access) {\n\t\t$query1 = \"SELECT access_level, loss_date FROM users WHERE id='$id'\";\n\t\t$check_database1 = mysqli_query($this->con, $query1);\n\t\t$currentRow = mysqli_fetch_assoc($check_database1);\n\n\n\t\t//Check if Submitted Access level is not the same as the current level. If it is the same Return Null.\n\t\tif($req_access !== $currentRow['access_level']) {\n\t\t\t//Pull Employee ID of posted ID for dataase update\n\t\t\t$employee_id = $this->check_employee_id($id);\n\t\t\t$nameOfUser = $this->get_nameOfUser($_SESSION['username']);\n\t\t\t$curr_access = $currentRow['access_level'];\n\t\t\t//Pull Data from Database to update user_history\n\t\t\t\n\n\n\t\t\t//Check if the submitted access change is 0 (No Access)\n\t\t\tif($req_access == 0) {\n\t\t\t\t//Update user access to 0\n\t\t\t\t$date = date(\"Y-m-d\");\n\t\t\t\t$query2 = \"UPDATE users SET access_level='$req_access', loss_date='$date' WHERE id='$id'\";\n\t\t\t\t$update_database = mysqli_query($this->con, $query2);\n\t\t\t\t//Document User History\n\t\t\t\t$query2 = \"INSERT INTO user_history (employee_id, access_prior, access_after, updated_by, note) VALUES ('$employee_id','$curr_access', '$req_access', '$nameOfUser', 'Access has been removed from this user.')\";\n\t\t\t\t$insert_database = mysqli_query($this->con, $query2);\n\t\t\t}\n\t\t\t//If Submitted access level is above 0.\n\t\t\telse {\n\t\t\t\t//Update User Access on the table\n\t\t\t\t$query2 = \"UPDATE users SET access_level='$req_access' WHERE id='$id'\";\n\t\t\t\t$update_database = mysqli_query($this->con, $query2);\n\t\t\t\t//Document User History\n\t\t\t\t$query2 = \"INSERT INTO user_history (employee_id, access_prior, access_after, updated_by, note) VALUES ('$employee_id','$curr_access', '$req_access', '$nameOfUser', 'Access Level has been changed.')\";\n\t\t\t\t$insert_database = mysqli_query($this->con, $query2);\n\t\t\t}\t\n\t\t}\n\t\t//Check if the Current Access Level is equal to 0\n\t\telse if($currentRow['access_level'] == 0) {\n\t\t\t$startDate = new DateTime($currentRow['loss_date']);\n\t\t\t$currentDate = date(\"Y/m/d\");\n\t\t\t$endDate = new DateTime($currentDate);\n\t\t\t$diff = $startDate->diff($endDate);\n\t\t\t//Deactivate User if they have had no access to the system for 180 days (6 Months)\n\t\t\tif($diff->d >= 180) {\n\t\t\t\t$this->deactivate_user($id);\n\t\t\t}\n\t\t}\n\t}", "function updatePermissionGroup($id, $name, $level, $descr) // admin_permission.php\r\n\r\n{\r\n\r\n\tglobal $mysqli,$db_table_prefix;\r\n\r\n\t$stmt = $mysqli->prepare(\"UPDATE \".$db_table_prefix.\"permissions\r\n\r\n\t\tSET name = ?, \r\n\t\t\r\n\t\taccess_level = ?, \r\n\t\t\r\n\t\tdescription = ?\r\n\r\n\t\tWHERE\r\n\r\n\t\tid = ?\r\n\r\n\t\tLIMIT 1\");\r\n\r\n\t$stmt->bind_param(\"sssi\", $name, $level, $descr, $id);\r\n\r\n\t$result = $stmt->execute();\r\n\r\n\t$stmt->close();\t\r\n\r\n\treturn $result;\t\r\n\r\n}", "public function updateUserRoles($klant_id, $group_id){\r\r\n $data = array(\r\r\n 'group_id' => $group_id\r\r\n\r\r\n );\r\r\n $this->db->where('klant_id', $klant_id);\r\r\n $this->db->update('user_group', $data);\r\r\n }", "function hook_roomify_rights_group() {\n $rights['roomify_rights'] = array(\n 'group_manager' => array(\n 'add member',\n ),\n );\n\n return $rights;\n}", "private function setUser() {\n if (Request::has(\"include-user-read\") && Request::input(\"include-user-read\") === \"true\") { $permissionRead = 4; } else { $permissionRead = 0; }\n if (Request::has(\"include-user-write\") && Request::input(\"include-user-write\") === \"true\") { $permissionWrite = 2; } else { $permissionWrite = 0; }\n if (Request::has(\"include-user-execute\") && Request::input(\"include-user-execute\") === \"true\") { $permissionExecute = 1; } else { $permissionExecute = 0; }\n return $permissionRead + $permissionWrite + $permissionExecute;\n }", "function virustotalscan_check_permissions($groups_comma)\r\n{\r\n global $mybb;\r\n // daca nu a fost trimis niciun grup ca si parametru\r\n if ($groups_comma == '') return false;\r\n // se verifica posibilitatea ca nu cumva sa fie mai multe grupuri trimise ca parametru\r\n $groups = explode(\",\", $groups_comma);\r\n // se creaza vectori cu acestee grupuri\r\n $add_groups = explode(\",\", $mybb->user['additionalgroups']);\r\n // se fac teste de apartenenta\r\n if (!in_array($mybb->user['usergroup'], $groups)) { \r\n // in grupul primar nu este\r\n // verificam mai departe daca este in cel aditional, secundar\r\n if ($add_groups) {\r\n if (count(array_intersect($add_groups, $groups)) == 0)\r\n return false;\r\n else\r\n return true;\r\n }\r\n else \r\n return false;\r\n }\r\n else\r\n return true;\r\n}" ]
[ "0.6694954", "0.636006", "0.6294957", "0.6277538", "0.62108296", "0.6128672", "0.606399", "0.6010065", "0.59724665", "0.5963371", "0.5930659", "0.59160274", "0.5903983", "0.589186", "0.58901453", "0.5814587", "0.5813246", "0.58056825", "0.58027786", "0.57895553", "0.5750138", "0.56885666", "0.56658316", "0.56640947", "0.56469184", "0.56448513", "0.5641073", "0.56195337", "0.56145525", "0.5611337", "0.5605645", "0.5590281", "0.5570118", "0.55690336", "0.5550638", "0.55493504", "0.55457115", "0.5536232", "0.5530474", "0.5513138", "0.5507135", "0.5499174", "0.5498312", "0.54909384", "0.54712653", "0.54621375", "0.54449767", "0.54449767", "0.5442669", "0.5436739", "0.542307", "0.5410516", "0.54105157", "0.54031956", "0.539895", "0.53947973", "0.53801125", "0.53787255", "0.5377777", "0.53701997", "0.536989", "0.53677917", "0.5362949", "0.5359762", "0.5349346", "0.5349027", "0.5337804", "0.5337054", "0.5330085", "0.5328554", "0.532648", "0.53232825", "0.5317675", "0.53164077", "0.53084236", "0.5298345", "0.52974504", "0.52958304", "0.52944285", "0.52909476", "0.52708405", "0.5270576", "0.5269447", "0.52630436", "0.52583224", "0.52568525", "0.5256775", "0.52565354", "0.5253148", "0.52419305", "0.52395546", "0.52365434", "0.52365434", "0.52331644", "0.52265567", "0.5224465", "0.5220582", "0.5219816", "0.5219022", "0.5209331" ]
0.6356618
2
Get list of pages that user can access
function sumo_get_user_accesspoints($id=NULL, $html=FALSE) { if($id) { GLOBAL $SUMO, $language; $user_data = sumo_get_user_info($id, 'id', FALSE); $num_groups = count($user_data['group']); $group_query = ''; if(!in_array('sumo', $user_data['group'])) { $group_query = " WHERE "; for($g=0; $g<$num_groups; $g++) { $group_query .= "usergroup='".$user_data['group'][$g]."' OR usergroup LIKE '".$user_data['group'][$g].";%' OR usergroup LIKE '%;".$user_data['group'][$g].";%'"; if($g < $num_groups-1) $group_query .= " OR "; } } $query = "SELECT * FROM ".SUMO_TABLE_ACCESSPOINTS." ".$group_query." ORDER BY name"; $rs = $SUMO['DB']->Execute($query); $ap = array(); while($tab = $rs->FetchRow()) { $ap[] = $tab; } // html output if($html) { if(in_array('sumo', $user_data['group'])) return $language['AllAccessPoints']; $list = ''; $num_ap = count($ap); if($num_ap > 0) { $list = "<table cellspacing='0' class='tab'>\n" ." <tr>\n" ." <td class='tab-title'>".$language['Page']."</td>\n" ." <td class='tab-title'>".$language['Path']."</td>\n" //." <td class='tab-title'>".$language['Group']."</td>\n" ." </tr>\n"; for($p=0; $p<$num_ap; $p++) { $style = sumo_alternate_str('tab-row-on', 'tab-row-off'); // Format group string to display it $group = preg_replace("/sumo:7/", "<b><font color='#BB0000'>sumo:7</font></b>", $ap[$p]['usergroup']); $group = preg_replace("/sumo:/", "<font color='#BB0000'>sumo</font>:", $group); $group = str_replace(';', '; ', $group); $group = strlen(strip_tags($group)) > 50 ? substr($group, 0, 50).'...' : $group; // Format path string to display it $path = strlen($ap[$p]['path']) > 50 ? substr($ap[$p]['path'], 0, 50).'...' : $ap[$p]['path']; $path = "<a href='".$ap[$p]['path']."' target='_blank'>".$path."</a>"; $name = sumo_get_accesspoint_name($ap[$p]['name'], $_COOKIE['language']); $list .= "<tr>\n" ." <td class='".$style."'>".$name."</td>\n" ." <td class='".$style."'>".$path."</td>\n" //." <td class='".$style."'>".$group."</td>\n" ."</tr>\n"; } $list .= "</table>"; } $ap = $list; } return $ap; } else return FALSE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPages();", "public function getAllPages()\n {\n // Get a list of all viewable pages\n $home = Page::getByID(1);\n $homeStr = $home->getCollectionPath();\n\n $pl = new PageList();\n $pl->filterByPath($homeStr, TRUE);\n $pl->ignoreAliases();\n\n $allowedPages = (array) $pl->get();\n $perm = new Permissions($home);\n\n if($perm->canRead()) array_unshift($allowedPages, $home);\n\n $this->set('allowedPages', $allowedPages);\n }", "public function getPages() {}", "public function pagesOnly() {}", "public function getPagesAction() {\n\n //FETCH\n $paramss = array();\n $paramss['title'] = $this->_getParam('text');\n $paramss['viewer_id'] = Engine_Api::_()->user()->getViewer()->getIdentity();\n $paramss['limit'] = $this->_getParam('limit', 40);\n $paramss['orderby'] = 'title ASC';\n $usersitepages = Engine_Api::_()->getDbtable('pages', 'sitepage')->getSuggestClaimPage($paramss);\n $data = array();\n $mode = $this->_getParam('struct');\n if ($mode == 'text') {\n foreach ($usersitepages as $usersitepage) {\n $content_photo = $this->view->itemPhoto($usersitepage, 'thumb.icon');\n $data[] = array(\n 'id' => $usersitepage->page_id,\n 'label' => $usersitepage->title,\n 'photo' => $content_photo\n );\n }\n } else {\n foreach ($usersitepages as $usersitepage) {\n $content_photo = $this->view->itemPhoto($usersitepage, 'thumb.icon');\n $data[] = array(\n 'id' => $usersitepage->page_id,\n 'label' => $usersitepage->title,\n 'photo' => $content_photo\n );\n }\n }\n return $this->_helper->json($data);\n }", "public function canManagePages();", "function wv_wp_page_list() {\n\n $arglist = array(\n 'sort_order' => 'ASC',\n 'sort_column' => 'post_title',\n 'hierarchical' => 1,\n 'post_type' => 'page',\n 'post_status' => 'publish'\n );\n $mypages = get_pages($arglist);\n return $mypages;\n }", "function pts_allowed_pages($pages)\n {\n }", "public function showListPages(){\n\n $client = new Client();\n $result = $client->get('https://graph.facebook.com/v6.0/3693880870623784/accounts', [\n 'headers' => [\n 'Accept' => 'application/json',\n 'Authorization' => 'Bearer '.Session::get('access_token')\n ]\n ]);\n\n $pages = json_decode($result->getBody());\n\n return view('home', compact('pages'));\n }", "public static function getPages(): ?array\n {\n return collect(Filament::getPages())\n ->filter(function ($page) {\n if (Utils::isGeneralExcludeEnabled()) {\n return ! in_array(Str::afterLast($page, '\\\\'), Utils::getExcludedPages());\n }\n\n return true;\n })\n ->reduce(function ($pages, $page) {\n $prepend = Str::of(Utils::getPagePermissionPrefix())->append('_');\n $name = Str::of(class_basename($page))\n ->prepend($prepend);\n\n $pages[\"{$name}\"] = \"{$name}\";\n\n return $pages;\n }, collect())\n ->toArray();\n }", "public function getPages()\n {\n list($page_id, $scope_pages, $scope_page_type) = array(\n $this['page_id'],\n $this['scope']['pages'],\n $this['scope']['page_type']\n );\n\n $result_pages = array();\n\n if ($scope_pages == 'this') {\n /**\n * Only current page\n */\n $result_pages[] = $page_id;\n } elseif (in_array($scope_pages, array('descendants', 'children'))) {\n /**\n * All descendants\n */\n $finder = fx::data('content')->descendantsOf($page_id);\n if ($scope_page_type) {\n $finder->where('type', $scope_page_type);\n }\n $result_pages = array_merge($result_pages, $finder->all()->getValues('id'));\n /**\n * With self page\n */\n if ($scope_pages == 'descendants') {\n $result_pages[] = $page_id;\n }\n }\n return array_unique($result_pages);\n }", "function getPages() {\n\t\t$sql = 'SELECT * FROM page WHERE vis = 1 ORDER BY psn';\n\t\t$qrh = mysqli_query($this->lnk, $sql);\n\t\t$i = 1;\n\t\t\n\t\t// iterate and extract data to be passed to view\n\t\twhile ( $res = mysqli_fetch_array($qrh)) {\n\t\t\t$results[] = array('id' => $res['id'],'name' => $res['nam']);\n\t\t\t$i++;\n\t\t}\n\t\t\n\t\treturn $results;\n\t\t\n\t}", "public function myPagesAction() {\n\n //CHECK USER VALIDATION\n if (!$this->_helper->requireUser()->isValid())\n return;\n\n //CHECK CLAIM IS ENABLED OR NOT\n $claimEnabled = Engine_Api::_()->getApi('settings', 'core')->getSetting('sitepage.claimlink', 1);\n if (empty($claimEnabled)) {\n return $this->_forward('requireauth', 'error', 'core');\n }\n\n //GET LOGGED IN USER INFORMATION\n $viewer = Engine_Api::_()->user()->getViewer();\n $this->view->viewer_id = $viewer_id = $viewer->getIdentity();\n\n //CHECK THAT MEMBER HAS ALLOED FOR CLAIM OR NOT\n $canClaim = Engine_Api::_()->authorization()->getPermission($viewer->level_id, 'sitepage_page', 'claim');\n if (empty($canClaim)) {\n return $this->_forward('requireauth', 'error', 'core');\n }\n\n //GET NAVIGATION\n $this->view->navigation = Engine_Api::_()->getApi('menus', 'core')->getNavigation('sitepage_main', array(), 'sitepage_main_manage');\n\n //MAKE PAGINATOR\n $this->view->paginator = $paginator = Engine_Api::_()->getDbtable('claims', 'sitepage')->getMyClaimPages($viewer_id);\n\n //GET PAGINATOR\n $items_count = (int) Engine_Api::_()->getApi('settings', 'core')->getSetting('sitepage.page', 10);\n $paginator->setItemCountPerPage($items_count);\n $this->view->paginator = $paginator->setCurrentPageNumber(10);\n }", "public function getPages() {\r\n\t$pages = array();\r\n\tforeach ($this->pages as $key => $page) {\r\n\t $page = $this->getPage($key);\r\n\t if ($page != FALSE)\r\n\t\t$pages[$key] = $page;\r\n\t}\r\n\treturn $pages;\r\n }", "public function getPages()\n\t{\n\t\treturn $this->dashletdefs['pages'];\n\t}", "public function get_admin_pages() {\n\t\treturn apply_filters( 'pslug_admin_pages_object', array(\n\t\t\t'settings' => array(\n\t\t\t\t'general',\n\t\t\t),\n\t\t) );\n\t}", "private function getPages()\n {\n $directory = __DIR__.'/Page/';\n // remove .. and . folder in unix\n $pageFolders = array_diff(scandir($directory), array('..', '.'));\n\n return $pageFolders;\n }", "protected function _getPages(){\n $pages = array(\n array(\n 'main' => array(\n 'label' => 'Dashboard',\n 'controller' => 'dashboard',\n 'action' => 'index'\n ),\n 'pages' => array(\n array(\n 'label' => 'Summary',\n 'controller' => 'dashboard',\n 'action' => 'index',\n ),\n array(\n 'label' => 'Profile',\n 'controller' => 'profile',\n 'action' => 'index',\n ),\n \tarray(\n \t\t'label' => 'Phpinfo',\n \t\t'controller' => 'system',\n \t\t'action' => 'phpinfo',\n \t),\n ),\n ),\n array(\n 'main' => array(\n 'label' => 'System',\n 'controller' => 'system',\n 'action' => 'index'\n ),\n 'pages' => array(\n array(\n 'label' => 'Groups',\n 'controller' => 'groups',\n 'action' => 'index',\n 'scope' => '*'\n ),\n array(\n 'label' => 'Users',\n 'controller' => 'users',\n 'action' => 'index',\n 'scope' => '*'\n ),\n array(\n 'label' => 'Privileges',\n 'controller' => 'privileges',\n 'action' => 'index',\n 'scope' => '*'\n ),\n array(\n 'label' => 'Flags',\n 'controller' => 'flags',\n 'action' => 'index',\n 'scope' => '*'\n ),\n ),\n\n ),\n array(\n 'main' => array(\n 'label' => 'Parameters',\n 'controller' => 'portails',\n 'action' => 'index'\n ),\n 'pages' => array(\n array(\n 'label' => 'Portails',\n 'controller' => 'portails',\n 'action' => 'index',\n 'scope' => '*'\n ),\n array(\n 'label' => 'PortailUrl',\n 'controller' => 'portailurl',\n 'action' => 'index',\n 'scope' => '*'\n ),\n array(\n 'label' => 'Paramètres',\n 'controller' => 'params',\n 'action' => 'index',\n //'scope' => '*'\n ),\n array(\n 'label' => 'Mails',\n 'controller' => 'mails',\n 'action' => 'index',\n 'scope' => '*'\n ),\n array(\n 'label' => 'Exporter',\n 'controller' => 'params',\n 'action' => 'exportparam',\n //'scope' => 'export'\n ),\n ),\n ),\n array(\n 'main' => array(\n 'label' => 'Tools',\n 'controller' => 'tools',\n 'action' => 'index'\n ),\n 'pages' => array(\n array(\n 'label' => 'Generate Models',\n 'controller' => 'generate',\n 'action' => 'index',\n 'scope' => '*'\n ),\n array(\n 'label' => 'Clear Cache',\n 'controller' => 'tools',\n 'action' => 'cleancache',\n //'scope' => '*'\n ),\n array(\n 'label' => 'Bdd',\n 'controller' => 'tools',\n 'action' => 'adminer',\n //'scope' => '*'\n ),\n\n ),\n ),\n array(\n 'main' => array(\n 'label' => 'Backups',\n 'controller' => 'backup',\n 'action' => 'index'\n ),\n 'pages' => array(\n array(\n 'label' => 'Backup Bdd',\n 'controller' => 'backup',\n 'action' => 'bdd',\n //'scope' => '*'\n ),\n array(\n 'label' => 'Backup Files',\n 'controller' => 'backup',\n 'action' => 'files',\n //'scope' => '*'\n ),\n\n ),\n ),\n array(\n 'main' => array(\n 'label' => 'Benchmark',\n 'controller' => 'benchmark',\n 'action' => 'index'\n ),\n 'pages' => array(\n array(\n 'label' => 'Benchmark 1',\n 'controller' => 'benchmark',\n 'action' => 'benchmark1',\n //'scope' => '*'\n ),\n array(\n 'label' => 'Benchmark 2',\n 'controller' => 'benchmark',\n 'action' => 'benchmark2',\n //'scope' => '*'\n ),\n\n ),\n ),\n array(\n 'main' => array(\n 'label' => 'Examples',\n 'controller' => 'system',\n 'action' => 'example'\n ),\n 'pages' => array(\n array(\n 'label' => 'Theme',\n 'controller' => 'system',\n 'action' => 'example',\n //'scope' => '*'\n ),\n array(\n 'label' => 'Errors',\n 'controller' => 'system',\n 'action' => 'example-errors',\n //'scope' => '*'\n ),\n\n ),\n\n ),\n );\n\n return $pages;\n }", "public function get_pages($args = [])\n {\n global $db, $system;\n /* initialize arguments */\n $user_id = !isset($args['user_id']) ? null : $args['user_id'];\n $offset = !isset($args['offset']) ? 0 : $args['offset'];\n $promoted = !isset($args['promoted']) ? false : true;\n $suggested = !isset($args['suggested']) ? false : true;\n $random = !isset($args['random']) ? false : true;\n $boosted = !isset($args['boosted']) ? false : true;\n $managed = !isset($args['managed']) ? false : true;\n $results = !isset($args['results']) ? $system['max_results_even'] : $args['results'];\n /* initialize vars */\n $pages = [];\n $offset *= $results;\n /* get suggested pages */\n if ($promoted) {\n $get_pages = $db->query(sprintf(\"SELECT * FROM pages WHERE page_boosted = '1' ORDER BY RAND() LIMIT %s\", $system['max_results'])) or _error(\"SQL_ERROR_THROWEN\");\n } elseif ($suggested) {\n $pages_ids = $this->get_pages_ids();\n $random_statement = ($random) ? \"ORDER BY RAND()\" : \"\";\n if (count($pages_ids) > 0) {\n /* make a list from liked pages */\n $pages_list = implode(',', $pages_ids);\n $get_pages = $db->query(sprintf(\"SELECT * FROM pages WHERE page_id NOT IN (%s) \" . $random_statement . \" LIMIT %s, %s\", $pages_list, secure($offset, 'int', false), secure($results, 'int', false))) or _error(\"SQL_ERROR_THROWEN\");\n } else {\n $get_pages = $db->query(sprintf(\"SELECT * FROM pages \" . $random_statement . \" LIMIT %s, %s\", secure($offset, 'int', false), secure($results, 'int', false))) or _error(\"SQL_ERROR_THROWEN\");\n }\n /* get the \"viewer\" boosted pages */\n } elseif ($boosted) {\n $get_pages = $db->query(sprintf(\"SELECT * FROM pages WHERE page_boosted = '1' AND page_boosted_by = %s LIMIT %s, %s\", secure($this->_data['user_id'], 'int'), secure($offset, 'int', false), secure($results, 'int', false))) or _error(\"SQL_ERROR_THROWEN\");\n /* get the \"taget\" all pages who admin */\n } elseif ($managed) {\n $get_pages = $db->query(sprintf(\"SELECT pages.* FROM pages_admins INNER JOIN pages ON pages_admins.page_id = pages.page_id WHERE pages_admins.user_id = %s ORDER BY page_id DESC\", secure($user_id, 'int'))) or _error(\"SQL_ERROR_THROWEN\");\n /* get the \"viewer\" pages who admin */\n } elseif ($user_id == null) {\n $get_pages = $db->query(sprintf(\"SELECT pages.* FROM pages_admins INNER JOIN pages ON pages_admins.page_id = pages.page_id WHERE pages_admins.user_id = %s ORDER BY page_id DESC LIMIT %s, %s\", secure($this->_data['user_id'], 'int'), secure($offset, 'int', false), secure($results, 'int', false))) or _error(\"SQL_ERROR_THROWEN\");\n /* get the \"target\" liked pages*/\n } else {\n /* get the target user's privacy */\n $get_privacy = $db->query(sprintf(\"SELECT user_privacy_pages FROM users WHERE user_id = %s\", secure($user_id, 'int'))) or _error(\"SQL_ERROR_THROWEN\");\n $privacy = $get_privacy->fetch_assoc();\n /* check the target user's privacy */\n if (!$this->check_privacy($privacy['user_privacy_pages'], $user_id)) {\n return $pages;\n }\n $get_pages = $db->query(sprintf(\"SELECT pages.* FROM pages INNER JOIN pages_likes ON pages.page_id = pages_likes.page_id WHERE pages_likes.user_id = %s LIMIT %s, %s\", secure($user_id, 'int'), secure($offset, 'int', false), secure($results, 'int', false))) or _error(\"SQL_ERROR_THROWEN\");\n }\n if ($get_pages->num_rows > 0) {\n while ($page = $get_pages->fetch_assoc()) {\n $page['page_picture'] = get_picture($page['page_picture'], 'page');\n /* check if the viewer liked the page */\n $page['i_like'] = $this->check_page_membership($this->_data['user_id'], $page['page_id']);\n $pages[] = $page;\n }\n }\n return $pages;\n }", "public function getList($page);", "final public function getPages(): array\n {\n return $this->pages;\n }", "function requestUserManagePagesList (){\t\n\t\tinclude ($_SERVER['DOCUMENT_ROOT'] . '_inc/controller/fb/requestUserManagePagesList.fb.inc.php');\n\t}", "public function getPages()\n {\n return $this->getTable('ExhibitPage')->findBy(array('exhibit' => $this->id, 'sort_field' => 'order'));\n }", "static function get_pages(){\n\t\tglobal $wpdb;\n\t\t$sql = \"SELECT ID, post_title FROM $wpdb->posts WHERE post_type = 'page' AND post_status = 'publish'\";\n\t\t\n\t\treturn $wpdb->get_results($sql);\n\t}", "function getPages()\n\t{\n\t\t$pages = $this->input->post('pages');\n\t\t$response = $this->mapi->getPages($pages);\n\n\t\techo json_encode($response);\n\t}", "public function getPage();", "public function getPages()\n {\n $types = Page::all();\n $values = [];\n foreach ($types as $key) {\n $values[] = $key->page;\n }\n return $values;\n }", "public function getPageVisible() {}", "public function getPages()\n {\n return $this->pages;\n }", "public function getPages()\n {\n return $this->pages;\n }", "public function getPages()\n {\n return $this->pages;\n }", "function findPageUrls();", "public function pages() {\n\t\t// Build the MindTouch API URL to fetch the pages.\n\t\t$url = \"pages\";\n\n\t\t// Get output from API.\n\t\t$output = $this->get($url);\n\n\t\t// Parse the output.\n\t\t$output = $this->parseOutput($output);\n\n\t\treturn $output;\n\t}", "public function get_pages()\n\t{\n\t\treturn $this->_EE->db->select(array('heading', 'short_name'))\n\t\t\t ->get('exp_dd_doc_sections')\n\t\t\t ->result_array();\n\t}", "public function getPageFolders();", "public function pages()\n {\n return $this->morphedByMany('App\\Page', 'imageable');\n }", "private function userHasAccessToPages() {\n\t\t$configurationProxy = tx_oelib_configurationProxy::getInstance('realty');\n\n\t\t$objectsPid = $configurationProxy->getAsInteger(\n\t\t\t'pidForRealtyObjectsAndImages'\n\t\t);\n\t\t$canWriteObjectsPage = $GLOBALS['BE_USER']->doesUserHaveAccess(\n\t\t\tt3lib_BEfunc::getRecord('pages', $objectsPid), 16\n\t\t);\n\n\t\t$auxiliaryPid = $configurationProxy->getAsInteger(\n\t\t\t'pidForAuxiliaryRecords'\n\t\t);\n\t\t$canWriteAuxiliaryPage = $GLOBALS['BE_USER']->doesUserHaveAccess(\n\t\t\tt3lib_BEfunc::getRecord('pages', $auxiliaryPid), 16\n\t\t);\n\n\t\tif (!$canWriteObjectsPage) {\n\t\t\t$this->storeErrorMessage('objects_pid', $objectsPid);\n\t\t}\n\t\tif (!$canWriteAuxiliaryPage) {\n\t\t\t$this->storeErrorMessage('auxiliary_pid', $auxiliaryPid);\n\t\t}\n\n\t\treturn $canWriteObjectsPage && $canWriteAuxiliaryPage;\n\t}", "public function getUserPages()\n\t{\n\t\t$users_pages = array();\n\t\tif (!$this->fb) {\n\t\t\treturn array();\n\t\t}\n\t\t$accounts = (new FacebookRequest(\n\t\t\t$this->fb, 'GET', '/me/accounts'\n\t\t))->execute()->getGraphObject(GraphUser::className());\n\t\tif ($accounts = $accounts->asArray()) {\n\t\t\tforeach ($accounts['data'] as $account) {\n\t\t\t\tif ($account->category != 'Application') {\n\t\t\t\t\tif (!empty($account->id) && !empty($account->name)) {\n\t\t\t\t\t\t$account->twitterid = '';\n\t\t\t\t\t\t$users_pages[$account->id] = $account;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->log('invalid account: ' . print_r($account, true), 'badaccounts');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$rs = $this->db->query(\"SELECT * from selective_status_users where fbuid IN ('\" . implode(\"', '\", array_keys($users_pages)) . \"')\");\n\t\t\twhile ($rs && $row = $rs->fetch()) {\n\t\t\t\t$users_pages[$row['fbuid']]->twitterid = $row['twitterid'];\n\t\t\t}\n\t\t}\n\t\treturn $users_pages;\n\t}", "public function getWikiPages()\n {\n if ($this->request->get('explore')) {\n // Fetch the pages tree to a specified page\n return $this->explorePagesTo($this->request->get('page'));\n }\n\n if ($this->request->get('wiki')) {\n // Get the root pages of a wiki\n return $this->getWikiRootPages($this->request->get('wiki'));\n }\n\n // Get the child pages of a page\n return $this->getPageChilds($this->request->get('page'));\n }", "public function getPages()\r\n {\r\n return $this->_pages;\r\n }", "public function getPageUris();", "function get_all_page_ids()\n {\n }", "public function getPages() : array\n {\n return $this->pages;\n }", "public function getPages()\n {\n return $this->_pages;\n }", "public function getPages()\n {\n return $this->_pages;\n }", "function listAllPages() {\n $PAGES_PATH = $_SERVER['DOCUMENT_ROOT'] . '/pages';\n //Ignore '.', '..', and '.gitkeep' in the returned directory array:\n $files = array_diff(scandir($PAGES_PATH), array('.', '..', '.gitkeep'));\n\n //ignore if there are no pages\n if ($files) {\n foreach($files as $file) {\n $pageName = substr($file, 0, strrpos($file, \".\"));\n echo '<li class=\"pages-menu-item\"><a href=\"/pages/' . $pageName . '.php\" id=\"pages-menu-' . $pageName . '\" style=\"text-decoration: none; color: #FFFFFF;\">' . $pageName . '</a></li>';\n }\n }\n }", "public function getPages()\n\t{\n\t\treturn $this->getOptionData('tl_page');\n\t}", "protected function getUpdatablePages() {}", "public function getJoinPagesForQuery() {}", "public function getJoinPagesForQuery() {}", "function getNavs() {\n\t$pageData = getPageData();\n\t$li = '';\n\tforeach($pageData as $k => $v) {\n\t\t$li .= '<li><a href=\"' . COVER_PAGE . '?show=' . $k .'\">' . $k . '</a></li>' . \"\\n\";\n\t}\n\treturn $li;\n}", "function fetchAllPages() {\n try {\n global $db_table_prefix;\n\n $results = array();\n\n $db = pdoConnect();\n\n $query = \"SELECT\n id,\n page,\n private\n FROM \".$db_table_prefix.\"pages\";\n\n $stmt = $db->prepare($query);\n\n if (!$stmt->execute()){\n // Error\n return false;\n }\n\n while ($r = $stmt->fetch(PDO::FETCH_ASSOC)) {\n $page = $r['page'];\n $results[$page] = $r;\n }\n $stmt = null;\n\n return $results;\n } catch (PDOException $e) {\n addAlert(\"danger\", \"Oops, looks like our database encountered an error.\");\n error_log(\"Error in \" . $e->getFile() . \" on line \" . $e->getLine() . \": \" . $e->getMessage());\n return false;\n } catch (ErrorException $e) {\n addAlert(\"danger\", \"Oops, looks like our server might have goofed. If you're an admin, please check the PHP error logs.\");\n return false;\n }\n}", "public function getPages()\n {\n return $this->getPosts();\n }", "public function index()\n {\n //\n // $this->authorize('viewAny', Page::class);\n $pages=Page::all();\n return response(['page' => PageResource::collection($pages), 'message' => 'Retrieved successfully']);\n }", "public function page_list($limit='0')\n\t{\n\t\tif(!$this->session->userdata('logged_in')){\n\t\t\tredirect('login');\n\t\t\t\n\t\t}\n\t\t$logged_in=$this->session->userdata('logged_in');\n\t\tif($logged_in['base_url'] != base_url()){\n\t\t$this->session->unset_userdata('logged_in');\t\t\n\t\tredirect('login');\n\t\t}\n\t\t\n\t \t\t$logged_in=$this->session->userdata('logged_in');\n $acp=explode(',',$logged_in['setting']);\n\t\t\tif(!in_array('All',$acp)){\n\t\t\texit($this->lang->line('permission_denied'));\n\t\t\t}\n\t\t\t\n\t\t\n\t\t \t \n\t\t\t\n\t\t\t\n\t $data['title']=$this->lang->line('page_list');\n\t\t\t\t$data['result']=$this->Cms_model->page_list_all($limit);\n\t\t\t\t \n\t\t$this->load->view('header',$data);\n\t\t $this->load->view('page_list',$data);\n\t\t$this->load->view('footer',$data);\n\t}", "public function index()\n {\n // $this->authorize('isAdmin');\n if (\\Gate::allows('isAdmin') || \\Gate::allows('isAuthor')) {\n return User::latest()->paginate(3);\n }\n\n }", "public function getPages()\n\t{\n\t\treturn $this->_pages;\n\t}", "public function index()\n {\n if(Auth::user()->role_id != 3) {\n abort(404);\n }\n return view('admin.pages.index',[\n 'pages' => Page::orderBy('title', 'asc')->paginate(25)\n ]);\n }", "public function allpages() {\n $query = $this->db->get('page');\n return $query->result();\n }", "public function getUserPages($cache = false) {\n $pages = false;\n if ($cache) $pages = Cache::read(\"pages\" . $this->uid);\n if ($pages === false) {\n $pages = $this->api(\"/me/accounts\");\n if ($cache && $pages) Cache::write(\"pages\" . $this->uid, $pages);\n }\n return $pages;\n }", "public function getActivePages()\n {\n $qb = $this->getEntityManager()->createQueryBuilder();\n $qb->select(['p'])\n ->from('ArcmediaCmsBundle:ArcmediaPage', 'p')\n ->where('p.active = :state')\n ->orderBy('p.order', 'ASC')\n ->setParameter('state',true)\n ;\n\n return $qb->getQuery()->getResult();\n }", "function getPages() {\r\n\tglobal $S;\r\n\tif (!is_array($S->arbo)) {\r\n\t\trequire_once('../lib/class/class_arbo.php');\r\n\t\t$S =& new ARBO();\r\n\t\t$S->fields = array('id', 'pid', 'type_id', 'titre_fr');\r\n\t\t$S->buildArbo();\r\n\t}\r\n\t$options = array();\r\n\tforeach($S->arbo as $rid=>$tmp) {\r\n\t\t$options[urlencode($S->arbo[$rid]['url'])] = $S->arbo[$rid]['titre_fr'].' (#'.$rid.')';\r\n\t}\r\n\treturn $options;\r\n}", "protected function getPage() {}", "protected function getPage() {}", "public static function accessPages(int $userid) {\n $division_temp = User::where($userid)\n ->select('division', 'role')\n ->get()->all();\n $division_id = $division_temp[0][\"division\"];\n $role_id = $division_temp[0][\"role\"];\n\n //get associates' ids\n $associates_temp = User::where('reportto', $userid)\n ->select('id')\n ->get()->all();\n\n $associates = array();\n foreach($associates_temp as $k => $v) {\n $associates[] = $v->id;\n }\n\n $temps = Access::where('status', 1)\n ->select('id')\n ->orderBy('id')\n ->get()->all();\n //[{\"id\":2},{\"id\":5}] \n $users = array();\n foreach($temps as $k => $v) {\n $users[] = $v->id;\n }\n }", "public function getPages()\n\t {\n\t \t$args = array(\n\t\t\t\t'sort_order' => 'asc',\n\t\t\t\t'sort_column' => 'post_title',\n\t\t\t\t'hierarchical' => 1,\n\t\t\t\t'child_of' => 0,\n\t\t\t\t'parent' => -1,\n\t\t\t\t'post_type' => 'page',\n\t\t\t\t'post_status' => 'publish'\n\t\t\t); \n\n\t\t\treturn get_pages($args);\n\t }", "function fetchPermissionPages($permission_id) {\n\t$db = DB::getInstance();\n\n\t$query = $db->query(\n\t\"SELECT m.id as id, m.page_id as page_id, p.page as page, p.private as private\n\tFROM permission_page_matches AS m\n\tINNER JOIN pages AS p ON m.page_id = p.id\n\tWHERE m.permission_id = ?\",[$permission_id]);\n\t$results = $query->results();\n\treturn ($results);\n}", "public function canAccessPage(){\n\n\t\t\t$nav = $this->getNavigationArray();\n\t\t\t$page = '/' . trim(getCurrentPage(), '/') . '/';\n\n\t\t\t$page_limit = 'author';\n\n\t\t\tforeach($nav as $item){\n\t\t\t\tif(General::in_array_multi($page, $item['children'])){\n\n\t\t\t\t\tif(is_array($item['children'])){\n\t\t\t\t\t\tforeach($item['children'] as $c){\n\t\t\t\t\t\t\tif($c['type'] == 'section' && $c['visible'] == 'no' && preg_match('#^' . $c['link'] . '#', $page)) {\n\t\t\t\t\t\t\t\t$page_limit = 'developer';\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif($c['link'] == $page && isset($c['limit'])) {\n\t\t\t\t\t\t\t\t$page_limit\t= $c['limit'];\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(isset($item['limit']) && $page_limit != 'primary'){\n\t\t\t\t\t\tif($page_limit == 'author' && $item['limit'] == 'developer') $page_limit = 'developer';\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\telseif(isset($item['link']) && ($page == $item['link']) && isset($item['limit'])){\n\t\t\t\t\t$page_limit\t= $item['limit'];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif($page_limit == 'author')\n\t\t\t\treturn true;\n\n\t\t\telseif($page_limit == 'developer' && Administration::instance()->Author->isDeveloper())\n\t\t\t\treturn true;\n\n\t\t\telseif($page_limit == 'primary' && Administration::instance()->Author->isPrimaryAccount())\n\t\t\t\treturn true;\n\n\t\t\treturn false;\n\t\t}", "function getAllPermissionsOnPage($pagepath, $modifiableGroups, $grantableActions) {\n\t/// $grantableActions is of the form:\n\t/// $grantableActions['moduleName_i'] =\n\t///\t\t\tarray(\n\t///\t\t\t\tarray1(permid, actionname, actiondescription),\n\t///\t\t\t\tarray2(permid, actionname, actiondescription)\n\t///\t\t\t)\n\n\t/// Retrieve Ids and Names of all groups\n\t$groupIds = array(0, 1);\n\t$groupNames = array('0' => 'Everyone', '1' => 'Logged In Users'); ///< Associative array relative group ids to group names\n\t$groupCount = 2;\n\t$groupsQuery = 'SELECT `group_id`, `group_name` FROM `' . MYSQL_DATABASE_PREFIX . 'groups`';\n\t$groupsResult = mysql_query($groupsQuery);\n\twhile($groupsRow = mysql_fetch_row($groupsResult)) {\n\t\t$groupIds[] = $groupsRow[0];\n\t\t$groupNames[$groupsRow[0]] = $groupsRow[1];\n\t\t$groupCount++;\n\t}\n\tmysql_free_result($groupsResult);\n\n\t/// Retrieve Ids and Names of all users\n\t$userIds = array(0);\n\t$userNames = array('0' => 'Anonymous');\n\t$userCount = 1;\n\t$usersQuery = 'SELECT `user_id`, `user_name` FROM `' . MYSQL_DATABASE_PREFIX . 'users`';\n\t$usersResult = mysql_query($usersQuery);\n\twhile($usersRow = mysql_fetch_row($usersResult)) {\n\t\t$userNames[$usersRow[0]] = $usersRow[1];\n\t\t$userIds[] = $usersRow[0];\n\t\t$userCount++;\n\t}\n\tmysql_free_result($usersResult);\n\n\t/// $permList: Array of the form\n\t///\t\t$permList[$permId] = array($moduleName, $actionName, $actionDescription)\n\t$permIds = array();\n\t$permCount = 0;\n\t$permList = array();\n\tforeach($grantableActions as $moduleName => $actionData) {\n\t\tif(is_array($actionData) && ($actionCount = count($actionData)) > 0) {\n\t\t\tfor($i = 0; $i < $actionCount; $i++) {\n\t\t\t\t$permList[$actionData[$i][0]] = array($moduleName, $actionData[$i][1], $actionData[$i][2]);\n\t\t\t\t$permIds[] = $actionData[$i][0];\n\t\t\t\t$permCount++;\n\t\t\t}\n\t\t}\n\t}\n\n\tif(count($permList) <= 0 || count($pagepath) <= 0) {\n\t\tdisplayerror('Fatal Error: Missing arguments to function.');\n\t\treturn;\n\t}\n\n\t/// Retrieve all the permissions set on the page path\n\t/// $groupSetPermissions and $userSetPermissions are arrays of the form\n\t/// $<user/group>SetPermissions[pageid][<user/group>id][permid] = true / false / unset\n\t/// This array will be used later to compute $groupEffectivePermissions and $userEffectivePermission\n\t$groupSetPermissions = array();\n\t$userSetPermissions = array();\n\n\t$userPermTable = '`' . MYSQL_DATABASE_PREFIX . 'userpageperm`';\n\t$permListTable = '`' . MYSQL_DATABASE_PREFIX . 'permissionlist`';\n\t$permQuery = \"SELECT `perm_type`, $userPermTable.`perm_id` AS `perm_id`, `page_id`, `usergroup_id`, `perm_permission` \" .\n\t \"FROM $userPermTable, $permListTable WHERE `page_id` IN (\" . join($pagepath, ', ') . \") AND \" .\n\t \"$userPermTable.`perm_id` IN (\" . join($permIds, ', ') .\n\t \") AND $userPermTable.`perm_id` = $permListTable.`perm_id`\";\n\t$permResult = mysql_query($permQuery);\n\n\twhile($permRow = mysql_fetch_assoc($permResult)) {\n\t\t$pageId = $permRow['page_id'];\n\t\t$permId = $permRow['perm_id'];\n\t\t$usergroupId = $permRow['usergroup_id'];\n\n\t\t$setPermissions = &$groupSetPermissions;\n\t\tif($permRow['perm_type'] == 'user') {\n\t\t\t$setPermissions = &$userSetPermissions;\n\t\t}\n\n\t\tif(!isset($setPermissions[$pageId])) {\n\t\t\t$setPermissions[$pageId] = array();\n\t\t}\n\t\tif(!isset($setPermissions[$pageId][$usergroupId])) {\n\t\t\t$setPermissions[$pageId][$usergroupId] = array();\n\t\t}\n\t\t$setPermissions[$pageId][$usergroupId][$permId] = $permRow['perm_permission'] == 'Y' ? true : false;\n\t}\n\n\t/// Now, compute effective permissions for all groups.\n\t/// Computing for groups first will make things easier for users (yeah, right!)\n\t$groupEffectivePermissions = array();\n\t/// Loop 1 counts down through page numbers.\n\t/// Loop 2 takes each group\n\t/// Loop 3 takes each permission\n\t/// Inside loop three, if the groupSetPermissions for pageid, groupid, permid is set,\n\t/// check if groupEffectivePermissions has been set for that groupid and permid\n\t/// Yes: If groupEffectivePermissions is false, leave it as such. Otherwise, copy setPerm\n\t/// No: copySetPermissions\n\t///\n\t/// $pSP stands for SetPermissions for that particular pageId and\n\t/// $gSP stands for SetPermissions for that particular groupId on that pageId.\n\t/// $pSP is a 2D array, and $gSP is a 1D array, respectively (see their initializations)\n\t/// $gEP stands for Effective Permissions for a group on the current page\n\t/// as calculated so far\n\t/// pSP, gSP and gEP are aimed at reducing the number of times the 3D array needs to be indexed\n\t///\tand at making the code a little easier to read\n\tfor($i = count($pagepath) - 1; $i >= 0; $i--) {\n\t\tif(!isset($groupSetPermissions[$pagepath[$i]])) continue;\n\t\t$pSP = &$groupSetPermissions[$pagepath[$i]];\n\n\t\tfor($j = 0; $j < $groupCount; $j++) {\n\t\t\tif(!isset($pSP[$groupIds[$j]])) continue;\n\t\t\t$gSP = &$pSP[$groupIds[$j]];\n\t\t\tif(!isset($groupEffectivePermissions[$groupIds[$j]]))\n\t\t\t\t$groupEffectivePermissions[$groupIds[$j]] = array();\n\t\t\t$gEP = &$groupEffectivePermissions[$groupIds[$j]];\n\n\t\t\tfor($k = 0; $k < $permCount; $k++) {\n\t\t\t\tif(isset($gSP[$permIds[$k]])) {\n\t\t\t\t\tif(!isset($gEP[$permIds[$k]]) || $gEP[$permIds[$k]] !== false) {\n\t\t\t\t\t\t$gEP[$permIds[$k]] = $gSP[$permIds[$k]];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/// Now to compute the effective permissions for the users\n\t$userEffectivePermissions = array();\n\n\tfor($i = count($pagepath) - 1; $i >= 0; $i--) {\n\t\tif(!isset($userSetPermissions[$pagepath[$i]])) continue;\n\t\t$pSP = &$userSetPermissions[$pagepath[$i]];\n\n\t\tfor($j = 0; $j < $userCount; $j++) {\n\t\t\tif(!isset($pSP[$userIds[$j]])) continue;\n\t\t\t$uSP = &$pSP[$userIds[$j]];\n\t\t\tif(!isset($userEffectivePermissions[$userIds[$j]]))\n\t\t\t\t$userEffectivePermissions[$userIds[$j]] = array();\n\t\t\t$uEP = &$userEffectivePermissions[$userIds[$j]];\n\n\t\t\tfor($k = 0; $k < $permCount; $k++) {\n\t\t\t\tif(isset($uSP[$permIds[$k]])) {\n\t\t\t\t\tif(!isset($uEP[$permIds[$k]]) || $uEP[$permIds[$k]] !== false) {\n\t\t\t\t\t\t$uEP[$permIds[$k]] = $uSP[$permIds[$k]];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/// Get all the groups each user belongs to\n\t$userGroups = array();\n\t$groupsQuery = 'SELECT `user_id`, `group_id` FROM `'.MYSQL_DATABASE_PREFIX.'usergroup` ' .\n\t 'ORDER BY `user_id`';\n\t$groupsResult = mysql_query($groupsQuery);\n\twhile($groupsRow = mysql_fetch_row($groupsResult)) {\n\t\tif(!isset($userGroups[$groupsRow[0]])) $userGroups[$groupsRow[0]] = array();\n\t\t$userGroups[$groupsRow[0]][] = $groupsRow[1];\n\t}\n\tmysql_free_result($groupsResult);\n\n\n\t/// Calculate permissions as far as groups are concerned.\n\tfor($i = 0; $i < $userCount; $i++) {\n\t\tif(!isset($userGroups[$userIds[$i]])) {\n\t\t\tif($userIds[$i] == 0)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\t$userGroups[$userIds[$i]] = array(0, 1);\n\t\t}\n\t\tif(!isset($userEffectivePermissions[$userIds[$i]]))\n\t\t\t$userEffectivePermissions[$userIds[$i]] = array();\n\n\t\tfor($j = 0; $j < $permCount; $j++) {\n\t\t\t$userGroupCount = count($userGroups[$userIds[$i]]);\n\n\t\t\tfor($k = 0; $k < $userGroupCount; $k++) {\n\t\t\t\tif (\n\t\t\t\t\t\tisset($groupEffectivePermissions[$userGroups[$userIds[$i]][$k]]) &&\n\t\t\t\t\t\tisset($groupEffectivePermissions[$userGroups[$userIds[$i]][$k]][$permIds[$j]])\n\t\t\t\t\t) {\n\n\t\t\t\t\tif(!isset($userEffectivePermissions[$userIds[$i]][$permIds[$j]]))\n\t\t\t\t\t\t$userEffectivePermissions[$userIds[$i]][$permIds[$j]] = false;\n\n\t\t\t\t\t$userEffectivePermissions[$userIds[$i]][$permIds[$j]] =\n\t\t\t\t\t\t\t\t\t\t\t\t\t$userEffectivePermissions[$userIds[$i]][$permIds[$j]] ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t$groupEffectivePermissions[$userGroups[$userIds[$i]][$k]][$permIds[$j]];\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t\n\t$sortedGroupPerms = array('Y' => array(), 'N' => array());\n\t$sortedUserPerms = array('Y' => array(), 'N' => array());\n\t\n\tforeach($groupEffectivePermissions as $groupid => $data) {\n\t\tforeach($groupEffectivePermissions[$groupid] as $permid => $value) {\n\t\t\tif($value === true) {\n\t\t\t\tif(!isset($sortedGroupPerms['Y'][$groupid]))\n\t\t\t\t\t$sortedGroupPerms['Y'][$groupid] = array();\n\t\t\t\t$sortedGroupPerms['Y'][$groupid][] = $permid;\n\t\t\t} else {\n\t\t\t\tif(!isset($sortedGroupPerms['N'][$groupid]))\n\t\t\t\t\t$sortedGroupPerms['N'][$groupid] = array();\n\t\t\t\t$sortedGroupPerms['N'][$groupid][] = $permid;\n\t\t\t}\n\t\t}\n\t}\n\t\n\tforeach($userEffectivePermissions as $userid => $data) {\n\t\tforeach($userEffectivePermissions[$userid] as $permid => $value) {\n\t\t\tif($value === true) {\n\t\t\t\tif(!isset($sortedUserPerms['Y'][$userid]))\n\t\t\t\t\t$sortedUserPerms['Y'][$userid] = array();\n\t\t\t\t$sortedUserPerms['Y'][$userid][] = $permid;\n\t\t\t} else {\n\t\t\t\tif(!isset($sortedUserPerms['N'][$userid]))\n\t\t\t\t\t$sortedUserPerms['N'][$userid] = array();\n\t\t\t\t$sortedUserPerms['N'][$userid][] = $permid;\n\t\t\t}\n\t\t}\n\t}\n\t\n\treturn array($sortedGroupPerms,$sortedUserPerms);\n}", "public function getListPage(){\n\t\ttry{\n\t\t\t$sql = \"SELECT * FROM page\";\n\t\t\t$stmt = $this->_db->prepare($sql);\n\t\t\t$stmt->execute();\n\t\t\tif($stmt->errorCode() != 0){\n\t\t\t\t$error = $stmt->errorInfo();\n\t\t\t\tthrow new SQLException($error[2], $error[0], $sql, \"Impossible d'obtenir la liste des pages\");\n\t\t\t}\n\t\t\t$list = array();\n\t\t\twhile ($data = $stmt->fetch(PDO::FETCH_ASSOC)){\n\t\t\t\t$list[] = new Page($data);\n\t\t\t}\n\t\t\treturn $list;\n\t\t}catch(PDOException $e){\n\t\t\tthrow new DatabaseException($e->getCode(), $e->getMessage(), \"Impossible d'obtenir la liste des pages\");\n\t\t}\n\t}", "public function hasPages();", "public function hasPages();", "public function allpagesActionGet() : object\n {\n $page = $this->app->page;\n $title = \"Alla pages i databasen\";\n $db = $this->app->db;\n\n $db->connect();\n $sql = <<<EOD\nSELECT\n *,\n CASE \n WHEN (deleted <= NOW()) THEN \"isDeleted\"\n WHEN (published <= NOW()) THEN \"isPublished\"\n ELSE \"notPublished\"\n END AS status\nFROM content\nWHERE type=?\n;\nEOD;\n $resultset = $db->executeFetchAll($sql, [\"page\"]);\n\n $page->add(\"cms/header\");\n $page->add(\"cms/allpages\", [\n \"resultset\" => $resultset\n ]);\n return $page->render([\n \"title\" => $title\n ]);\n }", "public function getAllPotentialPageEditors() : array\n {\n $users = get_users();\n $potentials = [];\n foreach ($users as $user) {\n if (!$this->isAdmin($user->allcaps) && $user->allcaps['edit_pages']) {\n $potentials[] = $user;\n }\n }\n return $potentials;\n }", "public function actionList()\n {\n $this->adminOnly();\n\n $pages = $this->findAll();\n return $this->render('@custom_pages/views/common/list', [\n 'pages' => $pages,\n 'label' => Yii::createObject($this->getPageClassName())->getLabel(),\n 'subNav' => \\humhub\\modules\\custom_pages\\widgets\\ContainerPageMenu::widget()\n ]);\n }", "function emarking_get_allowed_pages($emarking) {\n global $DB, $USER;\n $allowedpages = array();\n // We add page 0 so array_search returns only positive values for normal pages.\n $allowedpages [] = 0;\n // If there is criteria assigned for this emarking activity.\n if ($criteria = $DB->get_records('emarking_page_criterion', array(\n 'emarking' => $emarking->id))) {\n // Organize pages per criterion.\n $criteriapages = array();\n foreach ($criteria as $cr) {\n if (! isset($criteriapages [$cr->criterion])) {\n $criteriapages [$cr->criterion] = array();\n }\n $criteriapages [$cr->criterion] [] = $cr->page;\n }\n $filteredbycriteria = true;\n // Get criteria the user is allowed to see.\n $usercriteria = $DB->get_records('emarking_marker_criterion',\n array(\n 'emarking' => $emarking->id,\n 'marker' => $USER->id));\n // Add pages to allowed array if the user can see them.\n foreach ($usercriteria as $uc) {\n if (isset($criteriapages [$uc->criterion])) {\n $allowedpages = array_merge($allowedpages, $criteriapages [$uc->criterion]);\n }\n }\n // If there is no criteria assigned, all pages are allowed.\n } else {\n // Get the maximum page number in the emarking activity.\n if ($max = $DB->get_record_sql(\n '\n\t\t\t\tSELECT MAX(page) AS pagenumber\n\t\t\t\tFROM {emarking_submission} s\n\t\t\t\tINNER JOIN {emarking_page} p ON (p.submission = s.id AND s.emarking = :emarking)',\n array(\n 'emarking' => $emarking->id))) {\n for ($i = 1; $i <= $max->pagenumber; $i ++) {\n $allowedpages [] = $i;\n }\n // If no pages yet, we get the total pages from the activity if it is set.\n } else if ($emarking->totalpages > 0) {\n for ($i = 1; $i <= $emarking->totalpages; $i ++) {\n $allowedpages [] = $i;\n }\n // Finally we assume there are less than 50 pages.\n } else {\n for ($i = 1; $i <= 50; $i ++) {\n $allowedpages [] = $i;\n }\n }\n }\n // Sort the array.\n asort($allowedpages);\n return $allowedpages;\n}", "public function checkAccessToPage($path){\n\t\t//Get current authenticated user data\n\t\t$admin = Auth::user();\n\t\t//Get user role\n\t\t$admin_roles = Roles::select('slug', 'access_pages')->where('slug', '=', $admin['role'])->first();\n\t\t//Check for Grant-access rules\n\t\tif($admin_roles->access_pages == 'grant_access'){\n\t\t\treturn true;\n\t\t}\n\n\t\t//Get accesses list for current role (access_pages is forbidden pages list)\n\t\t$forbidden_pages = (array)json_decode($admin_roles->access_pages);\n\t\t//get path for current page\n\t\t$natural_path = $this->getNaturalPath($path);\n\t\t//Get current page data\n\t\t$current_page = AdminMenu::select('id', 'slug')->where('slug', '=', $natural_path)->first();\n\n\t\t//if there is no id of current page in forbidden pages list\n\t\tif(!in_array($current_page->id, array_keys($forbidden_pages))){\n\t\t\treturn true;\n\t\t}else{\n\t\t\t//Check for CRUD restrictions\n\t\t\t$forbidden_pages = json_decode($admin_roles->access_pages);\n\t\t\t$current_page_id = $current_page->id;\n\n\t\t\t//convert current page path to full-slash view\n\t\t\t$path = (substr($path, 0,1) != '/')? '/'.$path: $path;\n\t\t\t//create path to links array\n\t\t\t$path_array = array_values(array_diff(explode('/',$path), ['']));\n\t\t\t//check for action-path\n\t\t\tswitch($path_array[count($path_array) -1]){\n\t\t\t\tcase 'edit':\n\t\t\t\tcase 'update':\n\t\t\t\t\tif(strpos($forbidden_pages->$current_page_id, 'u') !== false){\n\t\t\t\t\t\treturn abort(503);\n\t\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\tcase 'create':\n\t\t\t\tcase 'store':\n\t\t\t\t\tif(strpos($forbidden_pages->$current_page_id, 'c') !== false){\n\t\t\t\t\t\treturn abort(503);\n\t\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif(strpos($forbidden_pages->$current_page_id, 'r') !== false){\n\t\t\t\t\t\treturn abort(503);\n\t\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t}", "public function getPaginated();", "public static function find_all()\n\t{\n\t\t# TODO: return WikirPage instances\n\t\treturn file_list_dir(option('pages_dir'));\n\t}", "public function getPageTypes() {}", "public function pages_list() {\n\n $all_pages = Page::select('id', 'type', 'title', 'heading')->get()->toArray();\n\n $all_pages = count($all_pages) > 0 ? array_chunk($all_pages, 4) : [];\n\n $all_pages = ['success'=>true, 'data'=>$all_pages];\n\n return response()->json($all_pages, 200);\n\n }", "private static function admin_pages() {\n\t\tglobal $wpseo_admin_pages;\n\n\t\treturn $wpseo_admin_pages;\n\t}", "public function getPages(){\n $defaultTheme = env('THEME', 'default');\n $path = app_path() . \"/../resources/views/themes/$defaultTheme/\";\n $pagePath = $path . \"pages\";\n $metaFilePath = $path . \"$defaultTheme.json\";\n\n try{\n\n $validator = file_exists($metaFilePath) && is_dir($pagePath);\n if ($validator){\n // Read file list from directory\n $pages = [];\n if ($dh = opendir($pagePath)){\n while (($file = readdir($dh)) !== false){\n $filePath = $pagePath . '/' . $file; \n if ($file == '.' || $file == '..') {\n continue;\n }\n $content = file_get_contents($filePath);\n $info = $this->extractInfo($content);\n $pages[] = [\n 'name' => $file,\n 'page-name' => substr($file, 0, strpos($file, '.')),\n 'info' => isset($info[1]) ? json_decode($info[1], true) : null\n ];\n }\n closedir($dh);\n }\n return $pages;\n }\n else{\n return [];\n }\n }\n catch (\\Exception $e){ \n return [];\n }\n }", "function workspace_getPages($workspaces) {\n\tglobal $Auth;\n\t## multiclient\n\t$client_id = $Auth->auth[\"client_id\"];\n\n\t$db_connection = new DB_Sql();\n\t\n\t\n\t## prepare the query\n\t$query = '';\n\tforeach($workspaces as $current_workspace) {\n\t\tif($query=='') {\n\t\t\t$query .= \"workspace_id='\".$current_workspace.\"'\";\n\t\t} else {\n\t\t\t$query .= \" OR workspace_id='\".$current_workspace.\"'\";\n\t\t}\n\t}\t\n\t\n\t## now do the actually query\n\t$query = \"SELECT DISTINCT(workspace_item) FROM \".DB_PREFIX.\"workspace_item WHERE client_id='$client_id' AND (\".$query.\")\";\n\t$result_pointer = $db_connection->query($query);\n\n\t$results = array();\n\twhile($db_connection->next_record()) {\t\n\t\t$results[] = $db_connection->Record[\"workspace_item\"];\t\n\t}\n\treturn $results;\t\n}", "function fetchPagePermissions($page_id) {\n\t$db = DB::getInstance();\n\t$query = $db->query(\"SELECT id, permission_id FROM permission_page_matches WHERE page_id = ? \",array($page_id));\n\t$results = $query->results();\n\treturn($results);\n}", "private function pageList() {\n //get pager range\n $this->getPagerRange();\n\n //loop specified ranged pager list\n\t\t//there is no link for current page number\n for ($i = $this->minPager; $i <= $this->maxPager; $i++) {\n if ($i == $this->currentPage) {\n print '<li class=\"current-page\">' . $i . '</li>';\n } else {\n print '<li><a href=\"' . $this->url . '&page=' . $i . '\">' . $i . '</a></li>';\n }\n }\n }", "public function get_instance_pages() {\n\n\t\t\t$base_path = $this->component_path( 'pages/' );\n\n\t\t\treturn array(\n\t\t\t\t'Jet_Engine_Relations_Page_List' => $base_path . 'list.php',\n\t\t\t\t'Jet_Engine_Relations_Page_Edit' => $base_path . 'edit.php',\n\t\t\t);\n\t\t}", "public function get_pages() {\n\t\tif (!isset($this->_xml->pages)\n\t\t\t\t|| !isset($this->_xml->pages->page)) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$pages_info = array();\n\t\tforeach ($this->_xml->pages->page as $page_node) {\n\t\t\t$this->parse_page($page_node, $pages_info);\n\t\t}\n\t\treturn $pages_info;\n\t}", "private function _getPermitedScripts ()\r\n {\r\n $sql = \"SELECT `link`, `pagini_derivate` FROM `admin_drepturi` AS `d` LEFT JOIN `admin_zone` AS `z` ON d.zone_id = z.id WHERE d.user_id = '{$this->_userId}'\" . ($this->_tip == \"powerUser\" ? \" UNION SELECT `link`, `pagini_derivate` FROM `admin_zone` WHERE `powerUserZone` = '1'\" : \"\");\r\n $result = mysql_query($sql, db_c());\r\n while ($row = mysql_fetch_assoc($result)) {\r\n array_push($this->_scriptAccess, $row['link']);\r\n foreach (explode(\",\", $row['pagini_derivate']) as $key => $page) {\r\n if ($page)\r\n array_push($this->_scriptAccess, $page);\r\n }\r\n }\r\n }", "public function pages()\n {\n if ($_SESSION['role'] == 1)\n { \n $this->view('AdminDashboard/pages', ['viewName' => 'Dashboard - Pages']);\n }\n else\n {\n header('location: '.URL.'Login');\n }\n }", "function page_allowed($conn,$conn_admin,$id,$page)\n {\n $sql=\"select cn.id from customer_navbar cn left outer join customer_navbar_corresponding_pages cncp on cn.id=cncp.navbar_id where cn.link='$page' or cncp.link='$page' \";\n $res=$conn_admin->query($sql);\n if($res->num_rows>0)\n {\n $row=$res->fetch_assoc();\n $nid=$row['id'];\n $sql=\"select access from navbar_access where navbar_id=$nid and staff_id=$id\";\n \t\tif($res=$conn->query($sql))\n \t\t{\n \t\t\tif($res->num_rows>0)\n \t\t\t{\n \t\t\t\t$row=$res->fetch_assoc();\n \t\t\t\tif($row['access']!=0)\n \t\t\t\t\treturn true;\n \t\t\t\telse\n \t\t\t\t\treturn false;\n \t\t\t}\n \t\t}\n \t\telse\n \t\t{\n \t\t\t$sql=\"\";\n \t\t\treturn false;\n \t\t}\n }\n\t\telse\n\t\t{\n\t\t\t$sql=\"\";\n\t\t\treturn false;\n\t\t} \n }", "public function getPage() {}", "public function getPage() {}", "public function getPagesAction()\r\n {\r\n $modelPage = $this->getServiceLocator()->get('DotsPages\\Db\\Model\\Page');\r\n $query = $this->getRequest()->getQuery()->toArray();\r\n $pages = $modelPage->getAllLikeTitle('%' . $query['term'] . '%');\r\n $data = array();\r\n foreach($pages as $page){\r\n $data[] = array(\r\n 'id'=>$page->id,\r\n 'label'=>$page->title,\r\n 'value'=>$page->title,\r\n );\r\n }\r\n return $this->jsonResponse($data);\r\n }", "function list_pages($subject_id) {\r\n\t\t$page_set = find_pages_for_subject($subject_id);\r\n\t\t\t$output = \"<ul>\";\r\n\t\t\twhile($page = mysqli_fetch_assoc($page_set)) {\r\n\t\t\t\t$output .= \"<li>\";\r\n\t\t\t\t$output .= \"<a href=\\\"manage_content.php?page=\";\r\n\t\t\t\t$output .= urlencode($page[\"id\"]);\r\n\t\t\t\t$output .= \"\\\">\";\r\n\t\t\t\t$output .= htmlentities($page[\"menu_name\"]);\r\n\t\t\t\t$output .= \"</a>\";\r\n\t\t\t\t$output .= \"</li>\";\r\n\t\t\t}\r\n\t\t\t$output .= \"</ul>\"; \r\n\t\t\treturn $output;\r\n\t\t\t\r\n\t\t\tmysqli_free_result($page_set);\r\n\t}", "function getPagesLinks()\n\t{\n\t\tglobal $mainframe;\n\n\t\t$lang =& JFactory::getLanguage();\n\n\t\t// Build the page navigation list\n\t\t$data = $this->_buildDataObject();\n\n\t\t$list = array();\n\n\t\t$itemOverride = false;\n\t\t$listOverride = false;\n\n\t\t$chromePath = JPATH_THEMES.DS.$mainframe->getTemplate().DS.'html'.DS.'pagination.php';\n\t\tif (file_exists($chromePath))\n\t\t{\n\t\t\trequire_once ($chromePath);\n\t\t\tif (function_exists('pagination_item_active') && function_exists('pagination_item_inactive')) {\n\t\t\t\t$itemOverride = true;\n\t\t\t}\n\t\t\tif (function_exists('pagination_list_render')) {\n\t\t\t\t$listOverride = true;\n\t\t\t}\n\t\t}\n\n\t\t// Build the select list\n\t\tif ($data->all->base !== null) {\n\t\t\t$list['all']['active'] = true;\n\t\t\t$list['all']['data'] = ($itemOverride) ? pagination_item_active($data->all) : $this->_item_active($data->all);\n\t\t} else {\n\t\t\t$list['all']['active'] = false;\n\t\t\t$list['all']['data'] = ($itemOverride) ? pagination_item_inactive($data->all) : $this->_item_inactive($data->all);\n\t\t}\n\n\t\tif ($data->start->base !== null) {\n\t\t\t$list['start']['active'] = true;\n\t\t\t$list['start']['data'] = ($itemOverride) ? pagination_item_active($data->start) : $this->_item_active($data->start);\n\t\t} else {\n\t\t\t$list['start']['active'] = false;\n\t\t\t$list['start']['data'] = ($itemOverride) ? pagination_item_inactive($data->start) : $this->_item_inactive($data->start);\n\t\t}\n\t\tif ($data->previous->base !== null) {\n\t\t\t$list['previous']['active'] = true;\n\t\t\t$list['previous']['data'] = ($itemOverride) ? pagination_item_active($data->previous) : $this->_item_active($data->previous);\n\t\t} else {\n\t\t\t$list['previous']['active'] = false;\n\t\t\t$list['previous']['data'] = ($itemOverride) ? pagination_item_inactive($data->previous) : $this->_item_inactive($data->previous);\n\t\t}\n\n\t\t$list['pages'] = array(); //make sure it exists\n\t\tforeach ($data->pages as $i => $page)\n\t\t{\n\t\t\tif ($page->base !== null) {\n\t\t\t\t$list['pages'][$i]['active'] = true;\n\t\t\t\t$list['pages'][$i]['data'] = ($itemOverride) ? pagination_item_active($page) : $this->_item_active($page);\n\t\t\t} else {\n\t\t\t\t$list['pages'][$i]['active'] = false;\n\t\t\t\t$list['pages'][$i]['data'] = ($itemOverride) ? pagination_item_inactive($page) : $this->_item_inactive($page);\n\t\t\t}\n\t\t}\n\n\t\tif ($data->next->base !== null) {\n\t\t\t$list['next']['active'] = true;\n\t\t\t$list['next']['data'] = ($itemOverride) ? pagination_item_active($data->next) : $this->_item_active($data->next);\n\t\t} else {\n\t\t\t$list['next']['active'] = false;\n\t\t\t$list['next']['data'] = ($itemOverride) ? pagination_item_inactive($data->next) : $this->_item_inactive($data->next);\n\t\t}\n\t\tif ($data->end->base !== null) {\n\t\t\t$list['end']['active'] = true;\n\t\t\t$list['end']['data'] = ($itemOverride) ? pagination_item_active($data->end) : $this->_item_active($data->end);\n\t\t} else {\n\t\t\t$list['end']['active'] = false;\n\t\t\t$list['end']['data'] = ($itemOverride) ? pagination_item_inactive($data->end) : $this->_item_inactive($data->end);\n\t\t}\n\n\t\tif($this->total > $this->limit){\n\t\t\treturn ($listOverride) ? pagination_list_render($list) : $this->_list_render($list);\n\t\t}\n\t\telse{\n\t\t\treturn '';\n\t\t}\n\t}", "public function index()\n {\n $pages = Page::active()->orderBy('order' , 'DESC')->get();\n\n return PageResource::collection($pages);\n }", "public function index()\n {\n if (Gate::allows('admin-only', auth()->user())) {\n \n return view('page.page01');\n\n }else if(Gate::allows('about-page', auth()->user())){\n\n return view('page.page01');\n\n }else{\n \n return redirect('/denied')->with('error','You dont have access to page -ABOUT- ! Your Admin Premission without page access!'); \n }\n }", "function fetchAllPages() // admin_pages.php, admin_permission.php\r\n\r\n{\r\n\r\n\tglobal $mysqli,$db_table_prefix; \r\n\r\n\t$stmt = $mysqli->prepare(\"SELECT \r\n\r\n\t\tid,\r\n\r\n\t\tpage,\r\n\r\n\t\tprivate\r\n\r\n\t\tFROM \".$db_table_prefix.\"pages\");\r\n\r\n\t$stmt->execute();\r\n\r\n\t$stmt->bind_result($id, $page, $private);\r\n\r\n\twhile ($stmt->fetch()){\r\n\r\n\t\t$row[$page] = array('id' => $id, 'page' => $page, 'private' => $private);\r\n\r\n\t}\r\n\r\n\t$stmt->close();\r\n\r\n\tif (isset($row)){\r\n\r\n\t\treturn ($row);\r\n\r\n\t}\r\n\r\n}", "public function index()\n {\n $user = Auth::user()->id;\n\n $pages = Page::where('user_id', $user)->orderBy('updated_at', 'DESC')->get();\n\n return view('admin.pages.index', compact('pages'));\n }", "public function index()\n {\n\n //$users = User::paginate(10, ['*'], 'page', 15);\n return view('admin.pages.user_manage.list');\n }" ]
[ "0.7573449", "0.7536583", "0.7453839", "0.71516967", "0.69944286", "0.6877199", "0.6868186", "0.6834276", "0.6805929", "0.6751797", "0.6747323", "0.67380625", "0.663329", "0.6614863", "0.6583852", "0.65454894", "0.6506064", "0.64467156", "0.64376116", "0.6435704", "0.64352936", "0.6418249", "0.6415593", "0.641013", "0.63973814", "0.6389903", "0.63856447", "0.6363249", "0.63468647", "0.63468647", "0.63468647", "0.63414365", "0.6334822", "0.6324194", "0.6306965", "0.6302408", "0.63003916", "0.6299862", "0.6286705", "0.6284907", "0.6282313", "0.6281497", "0.6279156", "0.62721616", "0.62721616", "0.6262761", "0.6248683", "0.621293", "0.6202661", "0.6202661", "0.6199915", "0.6193612", "0.6185574", "0.6179858", "0.6176109", "0.6171849", "0.61638373", "0.6159052", "0.6155351", "0.6153965", "0.6139567", "0.61392516", "0.61170167", "0.61167103", "0.6115737", "0.61024123", "0.6093259", "0.60838515", "0.6081696", "0.6078547", "0.6069821", "0.6069821", "0.60549456", "0.605078", "0.60497296", "0.6035288", "0.6032401", "0.6026697", "0.6026447", "0.6024791", "0.60229605", "0.6018411", "0.60117143", "0.60068846", "0.59955233", "0.5995489", "0.59857917", "0.598541", "0.59787184", "0.5969606", "0.5967418", "0.596073", "0.596073", "0.5960052", "0.59574276", "0.5941944", "0.59333813", "0.5932669", "0.59303737", "0.592012", "0.59186214" ]
0.0
-1
Verify if password was updated
function sumo_update_password_date($id=FALSE, $new_pwd=FALSE) { if($id) { GLOBAL $SUMO; $query = "SELECT password FROM ".SUMO_TABLE_USERS." WHERE id=".$id; $rs = $SUMO['DB']->Execute($query); $tab = $rs->FetchRow(); // update password date if($tab[0] != $new_pwd && $new_pwd) { $query = "UPDATE ".SUMO_TABLE_USERS." SET pwd_updated=".$SUMO['server']['time']." WHERE id=".$id; $SUMO['DB']->Execute($query); } } else return FALSE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function password_verifies() {\n\t\treturn AuthComponent::password($this->data[$this->alias]['old_password']) === $this->data[$this->alias]['password'];\n\t}", "public function testUpdatePasswordNotGiven(): void { }", "function m_verifyEditPass()\n\t{\n\t\t$this->errMsg=MSG_HEAD.\"<br>\";\n\t\tif(empty($this->request['password']))\n\t\t{\n\t\t\t$this->err=1;\n\t\t\t$this->errMsg.=MSG_PASS_EMPTY.\"<br>\";\n\t\t}\n\t\tif(empty($this->request['verify_pw']))\n\t\t{\n\t\t\t$this->err=1;\n\t\t\t$this->errMsg.=MSG_VERIFYPASS_EMPTY.\"<br>\";\n\t\t}\n\t\tif($this->request['password']!=$this->request['verify_pw'])\n\t\t{\n\t\t\t$this->err=1;\n\t\t\t$this->errMsg.=MSG_PASS_NOTMATCHED.\"<br>\";\n\t\t}\n\t\treturn $this->err;\n\t}", "public function testUpdatePasswordsDontMatch(): void { }", "public function password_change_verification() {\n\n $criteria = array(\"id\" => $this->ci->input->post(\"id\"));\n\n $passed = $this->verify_password($criteria, $this->ci->input->post(\"old_password\")); // variable to mark the user is allowed to pass or not.\n\n if (!$passed) {\n $this->ci->form_validation->set_message(\"password_change_verification\", \"Invalid password.\");\n }\n\n return $passed;\n }", "public function isPasswordChangeEnabled();", "function oldPassword() {\n\t\t$fields = $this->_settings['fields'];\n\t\tif (\n\t\t\tSecurity::hash($this->model->data[$this->model->name][$fields['old_password']], null, true) \n\t\t\t== $this->model->field($fields['password'])\n\t\t) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function vxUserPasswordUpdateCheck() {\n\t\t$rt = array();\n\t\t\n\t\t$rt['errors'] = 0;\n\t\t\n\t\t$rt['pswitch'] = 'a';\n\t\t\n\t\t$rt['usr_password_value'] = '';\n\t\t$rt['usr_confirm_value'] = '';\n\t\t/* usr_password_error:\n\t\t0 => no error\n\t\t1 => empty\n\t\t2 => overflow (32 sbs)\n\t\t3 => invalid characters\n\t\t4 => not identical\n\t\t5 => modify empty\n\t\t999 => unspecific */\n\t\t$rt['usr_password_error'] = 0;\n\t\t$rt['usr_password_touched'] = 0;\n\t\t$rt['usr_password_error_msg'] = array(1 => '你忘记填写密码了', 2 => '你的这个密码太长了,缩减一下吧', 3 => '你填写的密码中包含了不被允许的字符', 4 => '你所填写的两个密码不匹配', 5 => '你修改密码时需要将新密码输入两遍');\n\t\t/* usr_confirm_error:\n\t\t0 => no error\n\t\t1 => empty\n\t\t2 => overflow (32 sbs)\n\t\t3 => invalid characters(should not reach here in final rendering)\n\t\t4 => not identical\n\t\t5 => modify empty\n\t\t999 => unspecific */\n\t\t$rt['usr_confirm_error'] = 0;\n\t\t$rt['usr_confirm_touched'] = 0;\n\t\t$rt['usr_confirm_error_msg'] = array(1 => '你忘记填写密码确认了', 2 => '你的这个密码确认太长了,缩减一下吧', 3 => '你填写的密码中包含了不被允许的字符', 4 => '你所填写的两个密码不匹配', 5 => '你修改密码时需要将新密码输入两遍');\n\n\t\t/* S check: usr_password and usr_confirm */\n\t\t\n\t\tif (isset($_POST['usr_password'])) {\n\t\t\t$rt['usr_password_value'] = $_POST['usr_password'];\n\t\t\tif (strlen($rt['usr_password_value']) == 0) {\n\t\t\t\t$rt['usr_password_touched'] = 0;\n\t\t\t\t$rt['usr_password_error'] = 1;\n\t\t\t\t$rt['errors']++;\n\t\t\t} else {\n\t\t\t\t$rt['usr_password_touched'] = 1;\n\t\t\t}\n\t\t} else {\n\t\t\t$rt['usr_password_touched'] = 0;\n\t\t\t$rt['usr_password_error'] = 1;\n\t\t\t$rt['errors']++;\n\t\t}\n\t\t\n\t\tif (isset($_POST['usr_confirm'])) {\n\t\t\t$rt['usr_confirm_value'] = $_POST['usr_confirm'];\n\t\t\tif (strlen($rt['usr_confirm_value']) == 0) {\n\t\t\t\t$rt['usr_confirm_touched'] = 0;\n\t\t\t\t$rt['usr_confirm_error'] = 1;\n\t\t\t\t$rt['errors']++;\n\t\t\t} else {\n\t\t\t\t$rt['usr_confirm_touched'] = 1;\n\t\t\t}\n\t\t} else {\n\t\t\t$rt['usr_confirm_touched'] = 0;\n\t\t\t$rt['usr_confirm_error'] = 1;\n\t\t\t$rt['errors']++;\n\t\t}\n\t\t\n\t\tif (($rt['usr_password_touched'] == 0) && ($rt['usr_confirm_touched'] == 0)) {\n\t\t\t$rt['pswitch'] = 'a'; /* both blank */\n\t\t}\n\t\t\n\t\tif (($rt['usr_password_touched'] == 1) && ($rt['usr_confirm_touched'] == 1)) {\n\t\t\t$rt['pswitch'] = 'b'; /* both touched */\n\t\t}\n\t\t\n\t\tif (($rt['usr_password_touched'] == 1) && ($rt['usr_confirm_touched'] == 0)) {\n\t\t\t$rt['pswitch'] = 'c'; /* first touched */\n\t\t}\n\t\t\t\n\t\tif (($rt['usr_password_touched'] == 0) && ($rt['usr_confirm_touched'] == 1)) {\n\t\t\t$rt['pswitch'] = 'd'; /* second touched */\n\t\t}\n\t\t\n\t\tswitch ($rt['pswitch']) {\n\t\t\tdefault:\n\t\t\tcase 'a':\n\t\t\t\t/* nothing will happen */\n\t\t\t\tbreak;\n\t\t\tcase 'b':\n\t\t\t\t/* a lot check here */\n\t\t\t\tif (strlen($rt['usr_password_value']) > 32) {\n\t\t\t\t\t$rt['usr_password_error'] = 2;\n\t\t\t\t\t$rt['errors']++;\n\t\t\t\t}\n\t\t\t\n\t\t\t\tif (strlen($rt['usr_confirm_value']) > 32) {\n\t\t\t\t\t$rt['usr_confirm_error'] = 2;\n\t\t\t\t\t$rt['errors']++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (($rt['usr_password_error'] == 0) && ($rt['usr_confirm_error'] == 0)) {\n\t\t\t\t\tif ($rt['usr_password_value'] != $rt['usr_confirm_value']) {\n\t\t\t\t\t\t$rt['usr_confirm_error'] = 4;\n\t\t\t\t\t\t$rt['errors']++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'c':\n\t\t\t\t$rt['usr_confirm_error'] = 5;\n\t\t\t\t$rt['errors']++;\n\t\t\t\tbreak;\n\t\t\tcase 'd':\n\t\t\t\t$rt['usr_password_error'] = 5;\n\t\t\t\t$rt['errors']++;\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\treturn $rt;\n\t}", "function confirmPassword() {\n\t\t$fields = $this->_settings['fields'];\n\t\tif (\n\t\t\tSecurity::hash($this->model->data[$this->model->name][$fields['confirm_password']], null, true) \n\t\t\t== $this->model->data[$this->model->name][$fields['password']]\n\t\t) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "function update_password()\n {\n }", "public function testUpdatePasswordOk()\n {\n // Config\n $currentPassword = '123456789';\n $newPassword = 'abcdef123456';\n\n // Prepare\n $user = factory(User::class)->create([\n 'password' => bcrypt($currentPassword),\n ]);\n\n $requestData = [\n 'currentpassword' => $currentPassword,\n 'newpassword' => $newPassword,\n ];\n\n $response = $this->actingAs($user)->call('POST', $this->accountChangePasswordPostUrl, $requestData);\n\n // Asserts\n $response->assertStatus(302);\n $response->assertRedirect($this->accountChangePasswordPageUrl);\n $response->assertSessionHas('success', trans('home.password_changed'));\n }", "public function validatePassword() {\n if (!$this->hasErrors()) {\n $user = Yii::$app->user->identity;\n if (!$user || !$user->validatePassword($this->password_old)) {\n // $this->addError('password_old', 'Incorrect current password.');\n }\n }\n }", "public function should_return_ok_after_user_changed_password()\n {\n factory(User::class)->create();\n $this->expectsEvents(PasswordChanged::class);\n\n $this->put('/v1/users/1/password', [\n 'old_password' => 'secrete123',\n 'new_password' => 'new123password',\n 'new_password_confirmation' => 'new123password'\n ]);\n\n $this->seeStatusCode(HttpStatus::OK);\n $this->seeJsonContains(['message' => 'The password has been changed successfully.']);\n\n // Just verifying if old password has been invalidated\n $user = User::find(1);\n $this->assertFalse(Hash::check('secrete123', $user->password));\n $this->assertTrue(Hash::check('new123password', $user->password));\n }", "function checkPassword(): bool\n {\n $user = FPersistantManager::getInstance()->search(\"utente\", \"UserName\", $this->getUsername());\n if($this->getPassword() == $user[0]->getPassword())\n return true;\n else\n return false;\n }", "public function hasPassword() : bool;", "protected function _updatePassword() {\n\t\tif(!check($this->_userid)) return;\n\t\tif(!check($this->_username)) return;\n\t\tif(!check($this->_newPassword)) return;\n\t\tif($this->_md5Enabled) {\n\t\t\t$data = array(\n\t\t\t\t'userid' => $this->_userid,\n\t\t\t\t'username' => $this->_username,\n\t\t\t\t'newpassword' => $this->_newPassword\n\t\t\t);\n\t\t\t$query = \"UPDATE \"._TBL_MI_.\" SET \"._CLMN_PASSWD_.\" = [dbo].[fn_md5](:newpassword, :username) WHERE \"._CLMN_MEMBID_.\" = :userid\";\n\t\t} else {\n\t\t\t$data = array(\n\t\t\t\t'userid' => $this->_userid,\n\t\t\t\t'newpassword' => $this->_newPassword\n\t\t\t);\n\t\t\t$query = \"UPDATE \"._TBL_MI_.\" SET \"._CLMN_PASSWD_.\" = :newpassword WHERE \"._CLMN_MEMBID_.\" = :userid\";\n\t\t}\n\t\t\n\t\t$result = $this->db->query($query, $data);\n\t\tif(!$result) return;\n\t\t\n\t\treturn true;\n\t}", "public function run_chg_pass_if()\n\t{\n\t\t$msg='';\n\t\tif(isset($_POST['old_pass']))\n\t\t{\n\t\t\tif(md5($_POST['old_pass'])==$_SESSION['waf_user']['pass'])\n\t\t\t\t{\n\t\t\t\t\tif($_POST['pass']!=$_POST['pass1'])\n\t\t\t\t\t{\n\t\t\t\t\t\t$msg='Passwords not equal! Try again.';\n\t\t\t\t\t}else{\n\t\t\t\t\t$this->change_password($_SESSION['waf_user']['id'],$_POST['pass']);\n\t\t\t\t\t$msg='Password successfully changed';\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t$msg='Old Password wrong! Password not changed';\t\n\t\t\t\t}\n\t\t}\n\t\t$this->error=$msg;\n\t}", "public function validatePassword()\n {\n /* @var $user User */\n $user = Yii::$app->user->identity;\n if (!$user || !$user->validatePassword($this->oldPassword)) {\n $this->addError('oldPassword', 'Incorrect old password.');\n }\n }", "public function editUserPasswordChk() {\r\n\r\n $table_to_pass = 'mst_users';\r\n $fields_to_pass = array('user_id', 'user_password');\r\n $condition_to_pass = array(\"user_password\" => base64_encode($this->input->post('old_user_password')));\r\n $arr_login_data = $this->user_model->getUserInformation($table_to_pass, $fields_to_pass, $condition_to_pass, $order_by_to_pass = '', $limit_to_pass = '', $debug_to_pass = 0);\r\n if (count($arr_login_data)) {\r\n echo 'true';\r\n } else {\r\n echo 'false';\r\n }\r\n }", "public function testUpdateCPasswordNotGiven(): void { }", "public function testPasswordChange(): void\n {\n // Test strong password - should pass.\n $this->setUpUserPostData(Constants::SAFE_PASSWORD);\n $this->assertIsInt(\\edit_user($this->dummy_user_id));\n\n // Test weak password - should pass as well.\n $this->setUpUserPostData(Constants::PWNED_PASSWORD);\n $this->assertIsInt(\\edit_user($this->dummy_user_id));\n\n // Clean up.\n $this->tearDownUserPostData();\n }", "public function comparePassword() {\r\n if ($this->data[$this->name]['Password'] !== $this->data[$this->name]['RetypePass']) {\r\n return FALSE;\r\n } else {\r\n return TRUE;\r\n }\r\n }", "function password_check($old_password)\n\t\t{\n\t\t\tif ($this->ion_auth->hash_password_db($this->data['user']->id, $old_password))\n\t\t\t{\n\t\t\t\treturn TRUE;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->form_validation->set_message('password_check', 'Sorry, the password did not match');\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}", "public function checkPassword($value);", "function eventUpdatePassword(){\r\n\t\t$userid = util::getData(\"id\");\r\n\t\t$password1 = util::getData(\"password1\");\r\n\t\t$password2 = util::getData(\"password2\");\r\n\r\n\t\tif(!$this->canUpdateUser($userid))\r\n\t\t\treturn $this->setEventResult(false, \"You cannot update this account\");\r\n\r\n\t\t$result = dkpAccountUtil::SetOfficerAccountPassword($this->guild->id, $userid, $password1, $password2);\r\n\r\n\t\tif($result != dkpAccountUtil::UPDATE_OK)\r\n\t\t\t$this->setEventResult(false, dkpAccountUtil::GetErrorString($result));\r\n\t\telse\r\n\t\t\t$this->setEventResult(true,\"Password Changed!\");\r\n\r\n\t}", "public function validateChangedPasswordsIsTheSame(): bool\n {\n return $this->newPassword1 === $this->newPassword2;\n }", "public function can_change_password() {\n return false;\n }", "public function passwordEqual() {\n if($this->getPassword() == $this->getPasswordRepeat()) return TRUE;\n else return FALSE;\n }", "protected function changePassword() {}", "public function validatePassword()\n {\n if (!$this->hasErrors()) {\n if (!$this->user->validatePassword($this->old_password)) {\n $this->addError('old_password', 'Incorrect email or password.');\n }\n }\n }", "public function testChangesAUsersPassword()\n {\n $user = factory(User::class)->create();\n $token = Password::createToken($user);\n $response = $this->post('/password/reset', [\n 'token' => $token,\n 'email' => $user->email,\n 'password' => 'password',\n 'password_confirmation' => 'password'\n ]);\n $this->assertTrue(Hash::check('password', $user->fresh()->password));\n }", "function can_change_password() {\n return !empty($this->config->changepasswordurl);\n }", "function update_password() {\n\t\t$old_password = $_POST['old_password'];\n\t\t$new_password = $_POST['new_password'];\n\t\tif (!empty($old_password) && !empty($new_password)) {\n\t\t\t$admin_records = $this -> conn -> get_table_row_byidvalue('pg_track_admin', 'admin_password', md5($old_password));\n\t\t\tif (!empty($admin_records)) {\n\t\t\t\t$data['admin_password'] = md5($new_password);\n\t\t\t\t$update_toekn = $this -> conn -> updatetablebyid('pg_track_admin', 'admin_status', 1, $data);\n\t\t\t\t$post = array(\"status\" => \"true\", \"message\" => \"Password changed successfully\");\n\t\t\t} else {\n\t\t\t\t$post = array(\"status\" => \"false\", \"message\" => \"Invalid Old Password\");\n\t\t\t}\n\t\t} else {\n\t\t\t$post = array(\"status\" => \"false\", \"message\" => \"Missing parameter\", 'old_password' => $old_password, 'new_password' => $new_password);\n\t\t}\n\t\techo $this -> json($post);\n\t}", "public function testUpdatePasswordValidationError()\n {\n // Config\n $currentPassword = '123456789';\n $newPassword = '123';\n\n // Prepare\n $user = factory(User::class)->create([\n 'password' => bcrypt($currentPassword),\n ]);\n\n $requestData = [\n 'currentpassword' => '123456789',\n 'newpassword' => $newPassword,\n ];\n\n $response = $this->actingAs($user)->call('POST', $this->accountChangePasswordPostUrl, $requestData);\n\n // Asserts\n $response->assertStatus(302);\n $response->assertRedirect($this->accountChangePasswordPageUrl);\n $response->assertSessionHasErrors('password');\n $response->assertSessionMissing('success');\n }", "public function updatepassword()\n\t\t{\n\t\t\t$user = Session::get('loggedinuser');\n\t\t\t$userid = DB::table('users')->where('username', $user)->pluck('id');\n\t\t\t$updateduser = User::find($userid);\n\t\t\t$newpassword = Input::get('password');\n\t\t\tif($newpassword == Input::get('confirm')) {\n\t\t\t\t$updateduser->password = Hash::make($newpassword);\n\t\t\t\t$updateduser->save();\n\t\t\t\tSession::flash('successMessage', 'Password successfully updated');\n\t\t\t\treturn Redirect::action('UsersController@index');\n\t\t\t} else {\n\t\t\t\tSession::flash('errorMessage', 'Your passwords do not match!');\n\t\t\t\treturn Redirect::back();\n\t\t\t}\n\t\t}", "public function updatePwd(){\n if(\n !empty($_POST['pwd1']) &&\n !empty($_POST['pwd2']) &&\n $_POST['pwd1'] == $_POST['pwd2']){\n $pwd = $_POST['pwd1'];\n $id = $_SESSION['userID'];\n $user = new User();\n $user->updatePwd($pwd, $id);\n }\n else {\n echo \"false\";\n }\n }", "public function actionUpdatePassword()\n\t{\n\t\t$emp_id=isset($_POST['emp_id'])?$_POST['emp_id']:'';\n\t\t$old_password=isset($_POST['old_password'])?$_POST['old_password']:'';\n\t\t$new_password=isset($_POST['password'])?$_POST['password']:'';\n\t\tif($emp_id)\n\t\t{\n\t\t\t$model=$this->loadModel($emp_id);\t\n\t\t}\n\t\t\n\t\tif(md5($old_password)==$model->password)\n\t\t{\n\t\t\t$model->password=md5($new_password);\n\t\t\tif($model->save())\n\t\t\t\techo 1;\n\t\t}\n\t\telse{\n\t\t echo 2;\t\n\t\t}\n\t\t\n\t\t}", "function validateCurrentPassword(&$Model, $data) {\r\n\t\t$key = key($data);\r\n\t\t$value = $data[$key];\r\n\t\tif (!$value) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\textract($this->settings[$Model->alias]);\r\n\t\treturn (Security::hash($value, null, true) === $Model->field($fields['password']));\r\n\t}", "public function passwordUpdated()\n {\n $message = \\trans('orchestra/foundation::response.account.password.update');\n\n return $this->redirectWithMessage(\\handles('orchestra::account/password'), $message);\n }", "public function change()\r\n {\r\n// var_dump($this->validate());die;\r\n if ($this->validate()) {\r\n $user = $this->_user; \r\n $user->setPassword($this->newPwd);\r\n $user->removePasswordResetToken();\r\n return $user->save(false);\r\n }\r\n \r\n return false;\r\n }", "public function password(){\r\n\r\n\t\t\t$user_info = Helper_User::get_user_by_id($this->user_id);\r\n\r\n\t\t\tif($_POST){\r\n\r\n\t\t\t\t$formdata = form_post_data(array(\"old_password\", \"new_password\", \"repeat_new_password\"));\r\n\t\t\t\t\r\n\t\t\t\t$old_password = trim($formdata[\"old_password\"]);\r\n\t\t\t\t$new_password = trim($formdata[\"new_password\"]);\r\n\t\t\t\t$repeat_new_password = trim($formdata[\"repeat_new_password\"]);\r\n\r\n\t\t\t\t$error_flag = false;\r\n\r\n\t\t\t\tif(strlen($old_password) <= 0){\r\n\t\t\t\t\t$error_flag = true;\r\n\t\t\t\t\tTemplate::notify(\"error\", \"Please enter the old password\");\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t\tif(strlen($new_password) > 0 && strlen($repeat_new_password) > 0){\r\n\t\t\t\t\t\t// if both fields are not empty\r\n\r\n\t\t\t\t\t\tif(strlen($new_password) < 6){\r\n\t\t\t\t\t\t\t// the password cannot be less than 6 characters\r\n\t\t\t\t\t\t\t$error_flag = true;\r\n\t\t\t\t\t\t\tTemplate::notify(\"error\", \"Too short password. Password must be at least 6 characters long.\");\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// now compare the two new passwords\r\n\t\t\t\t\t\t\tif(strcmp($new_password, $repeat_new_password) !== 0){\r\n\t\t\t\t\t\t\t\t// both passwords are not same\r\n\t\t\t\t\t\t\t\t$error_flag = true;\r\n\t\t\t\t\t\t\t\tTemplate::notify(\"error\", \"New Passwords do not match. Please try again.\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tTemplate::notify(\"error\", \"Please enter the new password\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif(!$error_flag){\r\n\t\t\t\t\t// means there are no any errors\r\n\t\t\t\t\t// get the current user account from the database\r\n\t\t\t\t\t// if the old password matches with the one that the user entered\r\n\t\t\t\t\t// change the password, else throw an error\r\n\r\n\t\t\t\t\t$old_password_hash = Config::hash($old_password);\r\n\r\n\t\t\t\t\tif(strcmp($old_password_hash, trim($user_info->password)) === 0){\r\n\r\n\t\t\t\t\t\t\tif($this->change_password($new_password, $user_info)){\r\n\t\t\t\t\t\t\t\tTemplate::notify(\"success\", \"Password changed successfully\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tredirect(Config::url(\"account\"));\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tTemplate::notify(\"error\", \"Wrong Old Password. Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tConfig::set(\"active_link\", \"password\");\r\n\t\t\tConfig::set(\"page_title\", \"Change Account Password\");\r\n\r\n\t\t\t$view_data[\"user_info\"] = $user_info;\r\n\r\n\t\t\tTemplate::setvar(\"page\", \"account/password\");\r\n\t\t\tTemplate::set(\"account/template\", $view_data);\r\n\t\t}", "function user_changed_password($user_id, $new_password) {\n \n }", "private function valid_password() {\n return (strlen($this->password) == 6);\n }", "function testActivatePasswordSuccess() {\r\n $this->User = new User();\r\n \t\r\n\t\t$expected = $this->User->field('password', array('id'=>'1'));\t\r\n \t\r\n \t// should return the new password\r\n $password = $this->User->activatePassword('1bc29b36f623ba82aaf6724fd3b16718');\r\n $this->assertTrue($password);\r\n \r\n //checkk if the password has changed\r\n\t\t$result = $this->User->field('password', array('id'=>'1'));\t\r\n \t$this->assertNotEqual($result, $expected);\r\n \t\r\n \t//check if the returned password is the same as in the database\r\n \t$this->assertEqual(md5($password), $result);\r\n \t\r\n \t\r\n \t\r\n \t//test done set data to the original values\r\n \t$this->User->id=1;\r\n \t$this->User->saveField('password', $expected);\r\n \t$this->User->saveField('password_key', '1bc29b36f623ba82aaf6724fd3b16718');\r\n }", "public function testverifyIfPasswordIsNotSet()\n {\n $state=Database::findAdmin($this->db->getPdo(),\"\",\"cool\");\n $this->assertFalse($state);\n }", "public function test_can_update_password_after_send_request_reset_password()\n {\n $postUpdatePassword = $this->makeResetPasswordData();\n $existsTokenData = array_only($postUpdatePassword, ['email', 'token']);\n\n $this->seeInDatabase($this->passwordsTable(), $existsTokenData);\n $changedPassword = $this->put(\n route('api.admin.auth.password.resetPassword', $this->token),\n $postUpdatePassword\n );\n $changedPassword->assertResponseOk()->isJson();\n $changedPassword->dontSeeInDatabase($this->passwordsTable(), $existsTokenData);\n }", "public function partner_old_password()\n {\n $oldpassword = md5($this->input->post('oldpassword'));\n $user_id = $this->session->userdata('user_id'); \n if(!empty($oldpassword) && !empty($user_id))\n {\n $this->db->select('password')->from('users')->where('id',$user_id);\n $query = $this->db->get();\n $result = $query->row();\n if($result->password == $oldpassword)\n {\n echo \"true\";\n }\n else\n {\n echo \"false\";\n }\n \n }\n }", "function testPasswordGet()\n {\n $this->assertEqual($this->referenceHash, auth::getPassword(1), \"Testing password retrieval.\");\n }", "function verifyPassword($password)\n {\n $this->getById();\n $date = $this->created_date;\n $date = strtotime($date);\n $year = date('Y', $date);\n $salt = 'ISM';\n $tempHash = $password . (string) $date . (string) $salt;\n for ($i = 0; $i < $year; $i++) $tempHash = md5($tempHash);\n return $tempHash === $this->password;\n }", "public function testUpdatePasswordCurrentIsIncorrectError()\n {\n // Config\n $currentPassword = '123456789';\n $newPassword = 'abcdef123456';\n\n // Prepare\n $user = factory(User::class)->create([\n 'password' => bcrypt($currentPassword),\n ]);\n\n $requestData = [\n 'currentpassword' => 'thisisnotthepassword',\n 'newpassword' => $newPassword,\n ];\n\n $response = $this->actingAs($user)->call('POST', $this->accountChangePasswordPostUrl, $requestData);\n\n // Asserts\n $response->assertStatus(302);\n $response->assertRedirect($this->accountChangePasswordPageUrl);\n $response->assertSessionHasErrors('password');\n $response->assertSessionMissing('success');\n }", "public function testUserPassword() {\n\t\t// make new User and save it to the database\n\t\t$newPassword = Generate::hash();\n\n\t\t// change the User password\n\t\t$this->visit('/home')\n\t\t\t->click('#user-update-button')\n\t\t\t->seePageIs('/user/update')\n\t\t\t->click('Change Password')\n\t\t\t->seePageIs('/user/password')\n\t\t\t->type($this->password, 'old_password')\n\t\t\t->type($newPassword, 'password')\n\t\t\t->type($newPassword, 'password_confirmation')\n\t\t\t->press('Change Password')\n\t\t\t->seePageIs('/home')\n\t\t\t->see('Your password was changed successfully!')\n\t\t\t->click('Logout')\n\t\t\t->seePageIs('/');\n\n\t\t// test a regular User's login with the new password\n\t\t// TODO: check the database instead of testing the login process\n\t\t$this->visit('/')\n\t\t\t->click('#login-button')\n\t\t\t->seePageIs('/login')\n\t\t\t->type($this->User->email, 'email')\n\t\t\t->type($newPassword, 'password')\n\t\t\t->press('Login')\n\t\t\t->seePageIs('/home')\n\t\t\t->within('#nav', function() {\n\t\t\t\t$this->see('Logout')\n\t\t\t\t\t->dontSee('Login')\n\t\t\t\t\t->dontSee('Admin');\n\t\t\t});\n\t}", "function allowPasswordChange() {\r\n\t\treturn true;\r\n\t}", "public function change_password()\n {\n $currentPassword = $this->input->post('currentPassword');\n $newPassword = $this->input->post('newPassword');\n\n $isPasswordChanged = $this->CustomModel->changePassword(\n $_SESSION['u_id'], $currentPassword, $newPassword\n );\n\n if ($isPasswordChanged) {\n echo 'success';\n }\n }", "public function changePassword($data){\n\t\tif(isset($data['User']['current_password']) && isset($data['User']['id'])){\n\t\t\tif($this->checkPassword($data['User']['id'], $data['User']['current_password'])){\n\t\t\t\tunset($data['User']['current_password']);\n\t\t\t\treturn $this->save($data);\n\t\t\t}\telse {\n\t\t\t\t$this->invalidate('current_password', 'Your current password is not correct.');\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "function checkPassword($password) {\n\t\treturn ($this->_password === $password);\n\t}", "public function updatepassword() {\n $request = Request::all();\n $rules = ['old_password' => 'required', 'password' => 'required|confirmed|min:6'];\n $v = Validator::make($request, $rules);\n if ($v->fails()) {\n return redirect()->back()->withErrors($v->errors());\n }\n $user = User::find(Auth::user()->id);\n if (!Hash::check($request['old_password'], $user->password)) {\n return redirect()->back()->withErrors([\"old_password\" => [0 => \"The old password does not match.\"]]);\n }\n\n $user->password = bcrypt($request['password']);\n $user->save();\n return redirect()->back()->with('status', 'Your password changed succesfully');\n }", "public function canModifyPasswords()\n {\n return in_array($this->encryption, ['tls', 'ssl']);\n }", "public function checkCurrentPassword(Request $request){\n $data = $request->all();\n //password check function\n if(Hash::check($data['current_pwd'],Auth::guard('admin')->user()->password)){\n echo \"true\";\n }else{\n echo \"false\";\n }\n }", "function update_paypassword()\n {\n }", "public function checkPass()\n {\n $pass = sha1($_POST['pass']);\n $pass2 = sha1($_POST['confirmation_pass']);\n if (!empty($_POST['pass']) &&\n !empty($_POST['confirmation_pass'])) {\n if ($pass == $pass2) {\n return true;\n } else {\n return $message = 'Vos mots de passes ne correspondent pas';\n }\n } else {\n return $message = 'Tous les champs ne sont pas complétés';\n }\n }", "public function Change_Password_Validation($sorce){\r\n\r\n if (empty($sorce['current_password']))\r\n {\r\n \t$this->_flag = false;\r\n\r\n Session::put('e_password', 'You must enter your old password');\r\n }\r\n if($this->_flag){\r\n\r\n // Copy send values into local instances\r\n $password1 = $sorce['password1'];\r\n $password2 = $sorce['password2'];\r\n\r\n // Check if password is too long\r\n if(self::check_Max($password1)){\r\n\r\n $this->_flag = false;\r\n\r\n Session::put('e_password1', 'Your new password is too long, max '.$this->_max.' chars!');\r\n }\r\n\r\n // Check if password is too short\r\n else if(self::check_Min($password1)){\r\n\r\n $this->_flag = false;\r\n\r\n Session::put('e_password1', 'Your new password is too short , min '.$this->_min.' chars!');\r\n }\r\n\r\n // Check if passwords are the same\r\n else if(self::check_If_The_Same_Passwords($password1,$password2)){\r\n\r\n $this->_flag = false;\r\n\r\n Session::put('e_password1', 'Different new passwords!');\r\n }\r\n }\r\n }", "static function password_expired() {\n $model = \\Auth::$model;\n\n # hash GET param exists\n if (!$hash = data('hash'))\n go('/');\n\n # user hash exists\n $user = $model::first(array(\n 'fields' => 'id, email, name',\n 'where' => \"hash_password_expired = '$hash'\"\n ));\n\n if (empty($user))\n go('/');\n\n # POST passwords sent\n if ($model::data()) {\n $user->password = $model::data('password');\n $user->password_confirm = $model::data('password_confirm');\n\n # validate passwords\n if ($user->validate()) {\n \n # password edit\n $code = password_edit($user->email, $user->password);\n\n # check status\n if ($code === -2)\n flash('Algo ocorreu errado. Tente novamente mais tarde.', 'error');\n else if ($code === true)\n flash('Sua senha foi renovada com sucesso.');\n\n go('/');\n }\n }\n\n globals('user', $user);\n }", "function _chk_old_pass($str) {\n $id = $this->session->userdata('id');\n $get_user_where = array('id' => $id);\n $get_user_select = array('password'); //,'password_history'\n $get_user = $this->Common_model->getsingle('ai_users', $get_user_where, $get_user_select);\n\n if ($get_user != 'no record found') {\n $old_pass_db = $get_user->password;\n\t\t\t$npass = $str;\n $old_pass_us = $npass;\n\n if ($old_pass_db != $old_pass_us) {\n $this->form_validation->set_message('_chk_old_pass', 'The %s is incorrect.');\n return FALSE;\n } else {\n return TRUE;\n }\n } else {\n $this->form_validation->set_message('_chk_old_pass', 'The %s is incorrect.');\n return FALSE;\n }\n }", "public function testUserEditNonMatchingPasswords()\n {\n $this->browse(function (Browser $browser) {\n $update_button = self::$locator . ' td .update_button';\n\n $browser->visit('/')\n ->click($update_button)\n ->type('username', self::$username)\n ->type('first_name', 'aaaa')\n ->type('last_name', 'aaaa')\n ->type('password', 'abcd1234')\n ->type('password_confirmation', 'abcder1234')\n ->click('button[type=\"submit\"]')\n\n ->waitForText('The password confirmation does not match.')\n ->assertSee('The password confirmation does not match.');\n });\n }", "function can_change_password() {\n return false;\n }", "public function update()\n {\n $new_password = $this->input->post('inputNewPassword');\n if ($this->authentication->change_password($new_password))\n {\n $this->flash_message('Password Akun Berhasil di Update');\n } else {\n $this->flash_message('Password Akun Gagal di Update');\n }\n redirect($this->data['user'].'/editPassword');\n }", "function testPassword()\n {\n $this->f->_isSubmitted = true;\n $this->assertEquals(\"\", $this->f->password());\n $this->assertEquals(\"V\", $this->f->password(\"L\", \"H\", \"V\"));\n $val = &$this->f->password(\"L\", \"H\", \"V\");\n $this->f->error();\n $this->assertTrue($this->f->_hasErrors);\n $this->assertEquals(\"\", $val);\n }", "public function password()\n {\n $this->isUser();\n\n $this->data['noCabinetOrAdmin'] = true;\n\n if ($_POST) {\n\n if (!$_POST['old-password'] && !$_POST['new-password']) {\n\n $userModel = new UserModel();\n\n $validateResult = $userModel->validate($_POST);\n\n if ($validateResult === true) {\n\n $checkPassword = $userModel->checkOldPassword($_POST['old-password']);\n\n if ($checkPassword) {\n\n if ($userModel->refreshPassword($_POST)) {\n\n $this->data['success'] = 'Пароль успешно изменен';\n\n } else {\n\n $this->data['warning'] = 'Произошла ошибка';\n }\n\n } else {\n\n $this->data['warning'] = 'Старый пароль введен не правильно';\n }\n\n } else {\n\n $this->data['warning'] = $validateResult;\n }\n\n } else {\n\n $this->data['warning'] = 'Все поля должны быть заполнены';\n }\n }\n\n $this->render('password');\n }", "function can_change_password() {\n\t\treturn false;\n\t}", "public function updatePassword()\n {\n $user = User::find(Database::connection(), $_SESSION['id']);\n\n // Update password\n return $user->updatePassword(Database::connection(), $_POST['password']);\n }", "function changePassword($data){\r\n if(!empty($this->user_id) || $this->matchPasswordForUsername($data['userName'],$data['code'])){\r\n if(!empty($this->user_id)){\r\n $data['userName'] = $this->user_profile['username'];\r\n }\r\n if($data['newpwd']==$data['newpwdagn']){\r\n\r\n\t\t\t// check if the password is strong\r\n\t\t\tif(!$this->isPasswordStrong($data['newpwd'])){\r\n\t\t\t\t$this->setStdError('weak_password');\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n // if the password is one of last n passwords\r\n if($this->isOneOfLastNPasswords($data['newpwd'])){\r\n $this->setError('Your password is one of last '.$this->app_config['password_no_repeat'].' passwords.');\r\n return false;\r\n }\r\n\r\n global $pdo;\r\n try{\r\n $update=$pdo->prepare(\"UPDATE users SET `password`=?, `status` = 1 WHERE id= ?\");\r\n $userid = $this->getUserIdFromUsername($data['userName']);\r\n $update->execute(array($this->getPasswordHashOfUser($data['userName'],$data['newpwd']), $userid));\r\n //update the password log\r\n if(empty($this->user_id)){\r\n $this->user_id = $userid;\r\n }\r\n $this->updatePasswordLog($this->getPasswordHashOfUser($data['userName'],$data['newpwd']));\r\n\r\n $this->updatePasswordResetQueue($userid);\r\n\t\t\t\t\t$log = debug_backtrace();\r\n\t\t\t\t\t$this->createActionLog($log);\r\n return true;\r\n }\r\n catch(PDOException $e){\r\n $this->setError($e->getMessage());\r\n return false;\r\n }\r\n\r\n }else{\r\n $this->setError(\"Passwords entered do not match. Please check and type again.\");\r\n return false;\r\n }\r\n }\r\n else{\r\n $this->setError(\"Password was not reset.\");\r\n return false;\r\n }\r\n }", "public function userPasswordUpdate() {\n $password = Hash::make($this->request->input(\"new_password\"));\n $updateArray = [\n \"password\" => $password\n ];\n $whereArray = [\n [\"user_id\", '=', $this->request->input(\"user_id\")]\n ];\n $this->usersModel->setTableName(\"cvd_users\");\n $this->usersModel->setInsertUpdateData($updateArray);\n $this->usersModel->setWhere($whereArray);\n $this->usersModel->updateData();\n }", "public function passwordValide () {\n $password = $this->donnees[self::PASSWORD_REF];\n // Le champ password ne doit pas ?tre vide\n if ($password == null) {\n $this->erreur[self::PASSWORD_REF] = \"Veuillez remplir le champ password\";\n return false;\n }\n // Si le password entr? correspond au password contenu dans la base de donn?es on retourne true\n if ($this->utilisateurs->identificationUser($this->donnees[self::LOGIN_REF], $this->donnees[self::PASSWORD_REF])) {\n return true;\n // Sinon on cr?e une erreur et on renvoie false\n } else {\n $this->erreur[self::PASSWORD_REF] .= \"Mot de passe erron?\";\n return false;\n }\n }", "public function hasPassword()\n {\n return $this->get(self::PASSWORD) !== null;\n }", "public function check_password($password)\n {\n }", "function allowPasswordChange()\n\t{\n\t\tglobal $ilUser, $ilSetting;\n\t\t\n\t\t\n\t\treturn ilAuthUtils::isPasswordModificationEnabled($ilUser->getAuthMode(true));\n\t\t\n\t\t// Moved to ilAuthUtils\n\t\t\n\t\t// do nothing if auth mode is not local database\n\t\tif ($ilUser->getAuthMode(true) != AUTH_LOCAL &&\n\t\t\t($ilUser->getAuthMode(true) != AUTH_CAS || !$ilSetting->get(\"cas_allow_local\")) &&\n\t\t\t($ilUser->getAuthMode(true) != AUTH_SHIBBOLETH || !$ilSetting->get(\"shib_auth_allow_local\")) &&\n\t\t\t($ilUser->getAuthMode(true) != AUTH_SOAP || !$ilSetting->get(\"soap_auth_allow_local\")) &&\n\t\t\t($ilUser->getAuthMode(true) != AUTH_OPENID)\n\t\t\t)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (!$this->userSettingVisible('password') ||\n\t\t\t$this->ilias->getSetting('usr_settings_disable_password'))\n\t\t{\n\t\t\treturn false;\n\t\t}\t\t\n\t\treturn true;\n\t}", "public function verify($password): bool;", "public function testUpdatePasswordProblemsWithPass()\n {\n // overriding utility function\n oxTestModules::addFunction(\"oxUtilsView\", \"addErrorToDisplay\", \"{ throw new Exception( \\$aA[0] ); }\");\n\n $oView = oxNew('forgotpwd');\n\n // no pass\n $this->setRequestParameter('password_new', null);\n $this->setRequestParameter('password_new_confirm', null);\n try {\n $blExcp = false;\n $oView->updatePassword();\n } catch (Exception $oExcp) {\n $blExcp = $oExcp->getMessage() == oxRegistry::getLang()->translateString('ERROR_MESSAGE_INPUT_EMPTYPASS');\n }\n $this->assertTrue($blExcp);\n\n // pass does not match\n $this->setRequestParameter('password_new', 'aaaaaa');\n $this->setRequestParameter('password_new_confirm', 'bbbbbb');\n try {\n $blExcp = false;\n $oView->updatePassword();\n } catch (Exception $oExcp) {\n $blExcp = $oExcp->getMessage() == oxRegistry::getLang()->translateString('ERROR_MESSAGE_PASSWORD_DO_NOT_MATCH');\n }\n $this->assertTrue($blExcp);\n\n // pass too short\n $this->setRequestParameter('password_new', 'aaa');\n $this->setRequestParameter('password_new_confirm', 'aaa');\n try {\n $blExcp = false;\n $oView->updatePassword();\n } catch (Exception $oExcp) {\n $blExcp = $oExcp->getMessage() == oxRegistry::getLang()->translateString('ERROR_MESSAGE_PASSWORD_TOO_SHORT');\n }\n\n $this->assertTrue($blExcp);\n }", "function testActivatePasswordFail() {\r\n $this->User = new User();\r\n \r\n //get the current password-hash\r\n \t$expected = $this->User->field('password', array('id'=>'1'));\r\n \t\r\n \t//activate with wrong key - should fail\r\n $result = $this->User->activatePassword('wrongkey');\r\n $this->assertFalse($result);\r\n \r\n //check if the password in the database has changed\r\n \t$result = $this->User->field('password', array('id'=>'1'));\r\n \t$this->assertEqual($result, $expected);\r\n }", "function is_password_valid ($password, $user_data) {\n // the one in the user records.\n $is_valid = $password == $user_data['password'];\n return $is_valid;\n}", "public function verifyPassword (string $hash, string $password): bool;", "public function testInvalidConfirmPassword()\n\t{\n\t\t$this->validator->isPassword(self::USER1_PASSWORD, self::INVALID_PASSWORD);\n\t}", "public function testCheckPassword()\n {\n $hasher = new PasswordHash(8, true);\n\n $testHash = '$P$BbD1flG/hKEkXd/LLBY.dp3xuD02MQ/';\n $testCorrectPassword = 'test123456!@#';\n $testIncorrectPassword = 'test123456!#$';\n\n $this->assertTrue($hasher->CheckPassword($testCorrectPassword, $testHash));\n $this->assertFalse($hasher->CheckPassword($testIncorrectPassword, $testHash));\n }", "public function setPassword($newPassword);", "public function testExpiredPassword()\n {\n pdo_query(\"UPDATE password SET date='2011-07-22 15:37:57' WHERE userid=$this->UserId\");\n\n // Make sure we get redirected when visiting a non-Angular page.\n $this->login('jane@smith', '12345');\n $content = $this->get($this->url . '/upgrade.php');\n if (strpos($content, 'Your password has expired') === false) {\n $this->fail(\"'Your password has expired' not found when expected\");\n return 1;\n }\n\n // Make sure API endpoints tell the controller to redirect.\n $content = $this->connect($this->url . '/api/v1/index.php?project=InsightExample');\n $jsonobj = json_decode($content, true);\n if (!array_key_exists('redirect', $jsonobj)) {\n $this->fail(\"No 'redirect' key found when expected\");\n return 1;\n }\n $expected = 'editUser.php?reason=expired';\n $found = $jsonobj['redirect'];\n if (strpos($found, $expected) === false) {\n $this->fail(\"Expected $expected, found $found\");\n return 1;\n }\n }", "public function update_pwd(Request $request) {\n \n $return_with_errors = false;\n $errors = [];\n //first check if old pwd was correct\n if(!(Hash::check($request->old_pwd, Auth::user()->password))) {\n $return_with_errors = true;\n $errors['old_pwd'] = \"Oude wachtwoord is incorrect.\";\n }\n //check if new password is valid\n if(strlen($request->new_pwd) < 6) {\n $return_with_errors = true;\n $errors['new_pwd_length'] = \"Het nieuwe wachtwoord moet minstens uit 6 karakters bestaan\";\n }\n if($request->new_pwd != $request->new_pwd_check) {\n $return_with_errors = true;\n $errors['new_pwd'] = \"Het nieuwe wachtwoord moet tweemaal hetzelfde ingegeven worden.\";\n }\n if($return_with_errors) {\n return redirect('/')->with('error_msg', $errors);\n }\n else {\n Auth::user()->password = Hash::make($request->new_pwd);\n Auth::user()->tmp_password = null;\n Auth::user()->save();\n return redirect('/')->with('success_msg', 'Je hebt je wachtwoord succesvol geüpdatet.');\n }\n }", "public function passwordEntryIsValid() {\r\n \r\n //todo put logic here (same as email)\r\n // also check if it matches confirmpassword\r\n // set the var equal to function call of getpassword\r\n $password = $this->getPassword();\r\n // If the fields empty\r\n if ( empty($password) ) {\r\n // Will send it to errors as username and display the message to user\r\n $this->errors[\"password\"] = \"Password is missing.\";\r\n } \r\n // Calls the password function above and if its not equal to the orgincal password returns error\r\n else if ( $this->getConfirmpassword() !== $this->getPassword() ){\r\n // Message displayed to user\r\n $this->errors[\"password\"] = \"Password does not match confirmation password.\";\r\n }\r\n // Also goes test the password against the password is valid function in the validator class\r\n else if ( !Validator::passwordIsValid($this->getPassword()) ) {\r\n $this->errors[\"password\"] = \"Password is not valid.\"; \r\n }\r\n //Will return if its empty and whether any errors are contained\r\n return ( empty($this->errors[\"password\"]) ? true : false ) ;\r\n }", "public function savenewPassword($random)\n {\n $this->setRules([ 'password' => 'required|min:6',//'password_confirmation' => 'required|same:password|min:6' \n ]);\n $this->_validate();\n $checkuser = $this->_customer->where('forgot_password', $random)->first();\n if (count($checkuser) > 0) {\n $checkuser->password = Hash::make($this->request->password);\n $checkuser->forgot_password = null;\n $checkuser->save();\n return true;\n } else {\n return false;\n }\n }", "function validatePassword($cur, $new1, $new2)\n {\n\t\t//Get user's current hashed password and compare to their entered one here\n\t\tif (getUserElement('password') != md5($cur)) return \"Your current password was incorrect.\\\\n\";\n\t\t//Check if the two new passwords match each other\n\t\tif ($new1 != $new2) return \"Your new password and the confirmation do not match.\\\\n\";\n\t\treturn \"\";\n }", "function passwordMatch($id, $password) {\n \n $userdata = $this->getUserDataByUserId($id);\n \n // use pass word verify to decrypt the pass stored in the database and compare it eith the one user provided\n if(password_verify($password,$userdata['pwd'])) {\n return true;\n } else {\n return false;\n }\n \n \n }", "function ForgetPassword($enteredEmail, $enteredPassword){\n $database = new Databaseclass();\n $db = $database->getConnection();\n $user = new Users($db);\n\n $user->password=md5($enteredPassword);\n $user->username=$enteredEmail;\n\n if($user->update()){\n echo 'Password changed';\n }\n else{\n echo 'THERE IS NO changes';\n }\n}", "static public function tryToSetNewPassword() {\r\n\t\tif (!isset($_POST['chpw_hash']) || !isset($_POST['new_pw']) || !isset($_POST['new_pw_again']) || !isset($_POST['chpw_username']))\r\n\t\t\treturn;\r\n\r\n\t\tif ($_POST['chpw_username'] == self::getUsernameForChangePasswordHash()) {\r\n\t\t\tif ($_POST['new_pw'] != $_POST['new_pw_again'])\r\n\t\t\t\treturn array( __('The passwords have to be the same.') );\r\n\t\t\telseif (strlen($_POST['new_pw']) < self::$PASS_MIN_LENGTH)\r\n\t\t\t\treturn array( sprintf( __('The password has to contain at least %s signs.'), self::$PASS_MIN_LENGTH) );\r\n\t\t\telse {\r\n\t\t\t\tself::updateAccount($_POST['chpw_username'],\r\n\t\t\t\t\tarray('password', 'changepw_hash', 'changepw_timelimit'),\r\n\t\t\t\t\tarray(self::passwordToHash($_POST['new_pw']), '', 0));\r\n\t\t\t\theader('Location: login.php');\r\n\t\t\t}\r\n\t\t} else\r\n\t\t\treturn array( __('Something went wrong.') );\r\n\t}", "public function validate_old_password(){\n\t\t\t\n\t\t\t$username = $this->session->userdata('admin_username');\n\t\t\t$old_password = $this->input->post('old_password');\n\t\t\t$hashed_password = '';\n\t\t\t\n\t\t\t//get users info frm db using username\n\t\t\t$user_array = $this->Admin->get_user($username);\n\t\t\tif($user_array){\n\t\t\t\t//get stored password\n\t\t\t\tforeach($user_array as $user){\n\t\t\t\t\t$hashed_password = $user->admin_password;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// If the password inputs matched the hashed password in the database\n\t\t\tif (password_verify($old_password, $hashed_password)){\n\t\t\t\treturn TRUE;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$this->form_validation->set_message('validate_old_password', 'The Old Password is invalid');\n\t\t\t\treturn FALSE;\n\t\t\t\t\n\t\t\t}\n\t\t}", "protected function beforeSave() {\n\t\tif (!empty($this->newPassword))\n\t\t\t$this->password = UtilHelper::encryptPwd($this->newPassword, $this->salt);\n\t\treturn true;\n\t}", "function user_changed_password($user_id, $new_password)\n\t{\n\t}", "public function testverifyIfPasswordIsFalse()\n {\n $state=Database::findAdmin($this->db->getPdo(),\"bill\",\"cool\");\n $this->assertFalse($state);\n }", "function confirmPassword($password, $confirmPassword){\n return $password == $confirmPassword;\n }", "public function testUpdatePasswordOnlyLowerCase(): void { }", "public function testPasswordSetVerify()\n {\n $password = \"testPasswordForTesting\";\n $user = new User();\n\n // Set our password\n $user->setPassword($password);\n\n // Verify that our password works\n $this->assertTrue($user->verifyPassword($password));\n\n // Verify that an invalid password doesn't work\n $password .= \"ThisIsNowInvalid\";\n $this->assertFalse($user->verifyPassword($password));\n }", "public function validar_old_passwords(){\r\n\t\tif($_POST['old_password'] != $_POST['old_password2']){\r\n\t\t\t$this->error = $this->errores[16];\r\n\t\t}\r\n\t}", "public function password_update(Request $request)\n {\n if(Setting::get('demo_mode', 0) == 1) {\n return back()->with('flash_error','Disabled for demo purposes! Please contact us at [email protected]');\n }\n\n $this->validate($request,[\n 'old_password' => 'required',\n 'password' => 'required|min:6|confirmed',\n ]);\n\n try {\n\n $Account = Account::find(Auth::guard('account')->user()->id);\n\n if(password_verify($request->old_password, $Account->password))\n {\n $Account->password = bcrypt($request->password);\n $Account->save();\n\n return redirect()->back()->with('flash_success','Password Updated');\n }\n } catch (Exception $e) {\n return back()->with('flash_error','Something Went Wrong!');\n }\n }" ]
[ "0.8249291", "0.7835361", "0.76838976", "0.7646079", "0.75162446", "0.74580765", "0.74356574", "0.73417705", "0.7280162", "0.7275946", "0.7260242", "0.7251221", "0.7219515", "0.7188272", "0.7176218", "0.7167692", "0.7164916", "0.7163952", "0.71435684", "0.7136418", "0.71358305", "0.7120421", "0.7072244", "0.7064298", "0.703147", "0.7023332", "0.6960842", "0.6955441", "0.69452864", "0.6943252", "0.6931899", "0.6910449", "0.68760264", "0.68713206", "0.68494445", "0.68403316", "0.6831876", "0.68280286", "0.6826338", "0.6824227", "0.6813714", "0.6796259", "0.6792654", "0.6779743", "0.6778313", "0.67698437", "0.6768091", "0.6751142", "0.6749665", "0.67487353", "0.6746113", "0.6742355", "0.67378044", "0.67370087", "0.67229074", "0.6721216", "0.6712555", "0.67114896", "0.67050016", "0.66996473", "0.6696515", "0.669606", "0.6692307", "0.6691605", "0.66883254", "0.6683389", "0.6682128", "0.668143", "0.66520095", "0.66511905", "0.6649732", "0.66336244", "0.6628413", "0.6627168", "0.6626798", "0.66246414", "0.66243035", "0.662212", "0.66188484", "0.6611595", "0.66073054", "0.6603241", "0.6599886", "0.65971625", "0.65940464", "0.65922153", "0.65919447", "0.6591714", "0.6591682", "0.6591329", "0.65905", "0.6586628", "0.65735465", "0.65720975", "0.656972", "0.6564106", "0.65605164", "0.655695", "0.6555967", "0.65520024", "0.65464985" ]
0.0
-1
Combo box to add group and relative level to user
function sumo_add_user_grouplevel($form_name='', $group_exist=array()) { GLOBAL $SUMO; $groups_array = sumo_get_grouplevel(sumo_get_user_available_group($SUMO['user']['user'])); $groups_name = array_keys($groups_array); $form_name = $form_name ? $form_name : ucfirst($_SESSION['action']).ucfirst($_SESSION['module']); $available = FALSE; $script = ""; $change = "n=document.forms['$form_name'].group;\n" ."l=document.forms['$form_name'].newgroup;\n" ."gr=n.options[n.selectedIndex].value;\n" ."ls=g[gr];l.options.length=0;if(!gr)return;\n" ."for(i=0;i<ls.length;i+=2){l.options[i/2]=new Option(ls[i],ls[i+1]);}\n"; $list = "<select name='group' onchange=\"".$change."\">\n<option></option>\n"; for($g=0; $g<count($groups_name); $g++) { // ...administrator can add all groups if($groups_name[$g] == 'sumo') { $available_group = sumo_get_available_group(); // ...to display 'sumo' group on top //if(!in_array('sumo', $group_exist)) // $list .= " <option value='sumo' style='color:#BB0000'>sumo</option>\n"; for($g=0; $g<count($available_group); $g++) { // create levels for($l=1; $l<=7; $l++) { $value[$l] = $l.",'".$available_group[$g].":".$l."'"; if($available_group[$g] == 'sumo' && $SUMO['user']['group_level']['sumo'] <= $l) break; } $script .= "g['".$available_group[$g]."']=new Array(".implode(',',$value).");\n"; // if(!in_array($available_group[$g], $group_exist)) { $list .= " <option value='".$available_group[$g]."'>" .$available_group[$g] ."</option>\n"; } } $available = TRUE; break; } else { // create levels for($l=1; $l<=$groups_array[$groups_name[$g]]; $l++) { $value[$l] = $l.",'".$groups_name[$g].":".$l."'"; } $script .= "g['".$groups_name[$g]."']=new Array(".implode(',',$value).");"; // if(!in_array($groups_name[$g], $group_exist)) { $list .= " <option value='".$groups_name[$g]."'>".$groups_name[$g]."</option>\n"; $available = TRUE; } } } $list .= "</select>&nbsp;:&nbsp;<select name='newgroup'></select>"; $list = str_replace("onchange=\"", "onchange=\"g=new Array();".$script, $list); return ($available) ? $list : ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sumo_put_user_grouplevel($id=FALSE)\n{\n\t$user\t = sumo_get_user_info($id, 'id', FALSE);\n\t$group_level = $user['group_level'];\n\n\tif(!empty($group_level))\n\t{\n\t\tGLOBAL $SUMO, $language;\n\n\t\t$num_groups = count($group_level);\n\t\t$group \t\t= array_keys($group_level);\n\t\t$value\t\t= array_values($group_level);\n\t\t$list \t\t= '';\n\n\t\tfor($g=0; $g<$num_groups; $g++)\n\t\t{\n\t\t\tif($group[$g])\n\t\t\t{\n\t\t\t\t$SUMO['user']['group_level'][$group[$g]] = !isset($SUMO['user']['group_level'][$group[$g]]) ? '' : $SUMO['user']['group_level'][$group[$g]];\n\n\t\t\t\t$style \t\t\t= sumo_alternate_str('tab-row-on', 'tab-row-off');\n\t\t\t\t$val \t\t\t= \"<select name='group_level[$g]'>\\n<option value='\".$value[$g].\"'>\".$value[$g].\"</option>\\n\";\n\t\t\t\t$last_value\t\t= !isset($SUMO['user']['group_level'][$group[$g]]) ? 7 : $SUMO['user']['group_level'][$group[$g]];\n\t\t\t\t$last_value = (in_array('sumo', $SUMO['user']['group']) && $group[$g] != 'sumo') ? 7 : $last_value;\n\t\t\t\t$group_name[$g] = \"<input type='hidden' name='group_name[$g]' value='\".$group[$g].\"'>\".$group[$g];\n\n\t\t\t\t// Create link to remove group\n\t\t\t\tif($SUMO['user']['group_level'][$group[$g]] > $value[$g] || $SUMO['user']['group_level']['sumo'] >= 4)\n\t\t\t\t\t$delete = \"<a href='javascript:sumo_ajax_get(\\\"\".$_SESSION['module'].\".content\\\",\\\"?module=users&action=deletegroup&group=\".$group[$g].\":\".$value[$g].\"&id=\".intval($id).\"&decoration=false&SecurityOptions_visibility=1\\\");'>\".$language['Remove'].\"</a>\";\n\t\t\t\telse\n\t\t\t\t\t$delete = '';\n\n\n\t\t\t\tif($SUMO['user']['group_level'][$group[$g]] > $value[$g] || in_array('sumo', $SUMO['user']['group']))\n\t\t\t\t{\n\t\t\t\t\tfor($l=1; $l<=$last_value; $l++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif($l != $value[$g]) $val .= \"<option value='$l'>$l</option>\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$val .= \"</select>\";\n\n\t\t\t\t// Only for SUMO user (administrator)\n\t\t\t\tif($user['user'] == 'sumo')\n\t\t\t\t{\n\t\t\t\t\t$val = 7;\n\t\t\t\t\t$delete = '';\n\t\t\t\t}\n\n\n\t\t\t\t$list .= \"<tr>\\n\"\n\t\t\t\t\t\t.\" <td class='\".$style.\"'>\".$group_name[$g].\"</td>\\n\"\n\t\t\t\t\t\t.\" <td class='\".$style.\"'>\".sumo_get_group_description($group[$g]).\"</td>\\n\"\n\t\t\t\t\t\t.\" <td class='\".$style.\"'>\".$val.\"</td>\\n\"\n\t\t\t\t\t\t.\" <td class='\".$style.\"'>\".$delete.\"</td>\\n\"\n\t\t\t\t\t\t.\"</tr>\\n\";\n\t\t\t}\n\t\t}\n\n\t\treturn $list;\n\t}\n\telse return FALSE;\n}", "protected function createUserAndGroupListForSelectOptions() {}", "function get_member_level( $id = \"\", $name = \"levelid\" )\n{\n\tglobal $db;\n\tglobal $db_mymps;\n\t$member_level = $db->getall( \"SELECT id,levelname FROM `\".$db_mymps.\"member_level`\" );\n\t$mymps .= \"<select name=\\\"\".$name.\"\\\">\";\n\t$mymps .= \"<option value=''>>不限组别</option>\";\n\tforeach ( $member_level as $k => $value )\n\t{\n\t\t$mymps .= \"<option value=\".$value[id].\"\";\n\t\t$mymps .= $id == $value[id] ? \" selected style=\\\"background-color:#6EB00C;color:white\\\"\" : \"\";\n\t\t$mymps .= \">\".$value[levelname].\"</option>\";\n\t}\n\t$mymps .= \"</select>\";\n\treturn $mymps;\n}", "public function dropdown_level()\n {\n //Menyusun value pada dropdown\n $value[''] = '--CHOOSE--';\n $value['Admin'] = 'Admin';\n $value['Technician'] = 'Technician';\n $value['User'] = 'User';\n\n return $value;\n }", "function addLevel()\n\t{\n\t\tglobal $tpl;\n\n\t\t$this->initLevelForm(\"create\");\n\t\t$tpl->setContent($this->form->getHTML());\n\t}", "function cmdCollectorLevel($name, $caption, $width = null) {\n $url = \"services/runCRUD.php?func=datasource&lookup=mst/coll_lev&pk=clev_code&sk=clev_name&order=clev_name\";\n //remotecombobox($name,$caption,100,$url,'clev_code','clev_name');\n $field = array\n (\n array(\"clev_code\", \"Code\", 100),\n array(\"clev_name\", \"Name\", 220),\n );\n cmbGridSingle($name, $caption, $url, $field, $width);\n}", "private function setLevel()\n\t{\n\t\t$level_count = $this->db->cacheGetOne(\"SELECT COUNT(*) FROM `bin_level` WHERE 1\");\n\t\tif ($level_count > 1) // binary level\n\t\t{\n\t\t\t$this->levelType = 1;\n\t\t\t$this->levelArr = $this->db->getAssoc(\"SELECT `id`, `name` FROM `bin_level` WHERE 1\");\n\t\t}else{\n\t\t\t$level_count = $this->db->cacheGetOne(\"SELECT COUNT(*) FROM `bin_serial_type` WHERE 1\");\n\t\t\tif ($level_count > 1)\n\t\t\t{\n\t\t\t\t$this->levelType = 2;\n\t\t\t\t$this->levelArr = $this->db->getAssoc(\"SELECT `id`, `name` FROM `bin_serial_type` WHERE 1\");\n\t\t\t}else{\n\t\t\t\t$level_count = $this->db->cacheGetOne(\"SELECT COUNT(*) FROM `bbc_user_group` WHERE `is_admin`=0\");\n\t\t\t\tif ($level_count > 2) // user group level\n\t\t\t\t{\n\t\t\t\t\t$this->levelType = 3;\n\t\t\t\t\t$this->levelArr = $this->db->getAssoc(\"SELECT `id`, `name` FROM `bbc_user_group` WHERE `is_admin`=0\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "function cmdSubGroup($name, $caption, $width = null) {\n $url = \"services/runCRUD.php?func=datasource&lookup=mst/prt_sgrp&pk=sgrp_code&sk=sgrp_name&order=sgrp_name\";\n //remotecombobox($name,$caption,100,$url,'sgrp_code','sgrp_name');\n $field = array\n (\n array(\"sgrp_code\", \"Code\", 100),\n array(\"sgrp_name\", \"Name\", 220),\n );\n cmbGridSingle($name, $caption, $url, $field, $width);\n}", "public function admin_user_group()\n\t{\n\t\t$crud = $this->generate_crud('admin_groups');\n\t\t$this->mTitle.= 'Admin User Groups';\n\t\t$this->render_crud();\n\t}", "function getUserGroup(){\n\t\t$con = connect();\n\t\t$sql= \"SELECT ID,userGroup FROM user_group\" ;\n \t$stmt = $con->prepare($sql);\n\t\t$stmt->execute();\n\t\t$result = $stmt->fetchAll();\n\t \tforeach($result as $row){\n\t\t\t echo \"<option value=\" .$row['ID'].\">\" . $row['userGroup'] . \"</option>\";\n\t\t\t}\n\t}", "private static function AddMembergroupOptions(CheckList $field)\n {\n $sql = Access::SqlBuilder();\n $tbl = Membergroup::Schema()->Table();\n $orderBy = $sql->OrderList($sql->OrderAsc($tbl->Field('Name')));\n $groups = Membergroup::Schema()->Fetch(false, null, $orderBy);\n foreach ($groups as $group)\n {\n $field->AddOption($group->GetID(), $group->GetName());\n }\n }", "public function get_level(){\n\t\t//return $q;\n\t\t$result = $this->db->get(\"level_user\");\n\t\t$options = array();\n\t\tforeach ($result->result_array() as $row) {\n\t\t\t$options[$row[\"kode_level\"]] = $row[\"nama_level\"];\n\t\t\t# code...\n\t\t}\n\t\treturn $options;\n\t}", "function addJsGroupsAndRights() \n\t{\n\t\t$this->jsSettings['tableSettings'][$this->tName]['usersList'] = $this->users;\n\t\t$this->jsSettings['tableSettings'][$this->tName]['rightsGroups'] = array();\n\t\t\n\t\tforeach ($this->groups as $grArr)\n\t\t\t$this->jsSettings['tableSettings'][$this->tName]['rightsGroups'][] = $grArr[0];\n\t}", "public function actionAddGroup()\n {\n echo \"Create an user group ...\\n\";\n $name = trim($this->prompt('Group name (max length 32 varchar):'));\n $desc = trim($this->prompt('Group description (max length 255 varchar):'));\n if ($name && $this->confirm(\"Are your sure to create an user group?\")) {\n if (DIRECTORY_SEPARATOR === '\\\\') {\n $name = iconv('GBK','UTF-8//IGNORE', $name);\n $desc = iconv('GBK','UTF-8//IGNORE', $desc);\n }\n $model = Yii::$app->menuManager->addGroup($name, $desc);\n if ($model->hasErrors()) {\n echo join(',', $model->getFirstErrors()) . \"\\n\";\n return self::EXIT_CODE_ERROR;\n }\n echo \"Success.\\n\";\n return self::EXIT_CODE_NORMAL;\n }\n echo \"Canceled!\\n\";\n return self::EXIT_CODE_NORMAL;\n }", "public function addAction() {\n list(, $groups) = Admin_Service_Group::getAllGroup();\n $this->assign('groups', $groups);\n $this->assign(\"meunOn\", \"sys_user\");\n }", "public function admin_user_group()\n\t{\n\t\t$crud = $this->generate_crud('admin_groups');\n\t\t$crud->set_theme('datatables');\n\t\t$this->mPageTitle = 'Admin User Groups';\n\t\t$this->render_crud();\n\t}", "function default_add(){\n\tglobal $assign_list, $_CONFIG, $_SITE_ROOT, $mod;\n\tglobal $core, $clsModule, $clsButtonNav;\n\t$tableName = \"mdl_user\";\n\t$classTable = \"User\";\n\t$pkeyTable = \"id\";\n\t\n\trequire_once DIR_COMMON.\"/clsForm.php\";\n\t//get _GET, _POST\n\t$pvalTable = isset($_REQUEST[$pkeyTable])? $_REQUEST[$pkeyTable] : \"\";\n\t$btnSave = isset($_POST[\"btnSave\"])? $_POST[\"btnSave\"] : \"\";\n\t//get Mode\n\t$mode = ($pvalTable!=\"\")? \"Edit\" : \"New\";\n\t//init Button\n\t$clsButtonNav->set(\"Save\", \"/icon/disks.png\", \"Save\", 1, \"save\");\n\tif ($mode==\"Edit\"){\n\t\t$clsButtonNav->set(\"New\", \"/icon/add2.png\", \"?admin&mod=$mod&act=add\",1);\n\t\t$clsButtonNav->set(\"Delete\", \"/icon/delete2.png\", \"?admin&mod=$mod&act=delete&$pkeyTable=$pvalTable\");\n\t}\n\t$clsButtonNav->set(\"Cancel\", \"/icon/undo.png\", \"?topica&mod=$mod\");\n\t//################### CHANGE BELOW CODE ###################\n\t$clsUserGroup = new UserGroup();\n\t$arrListUserGroup = $clsUserGroup->getAll();\n\t$arrOptionsUserGroup = array();\n\tif (is_array($arrListUserGroup))\n\tforeach ($arrListUserGroup as $key => $val){\n\t\t$arrOptionsUserGroup[$val[\"user_group_id\"]] = $val[\"display_name\"];\n\t}\n\t//init Form\n\t$arrPositionOptions = array(\"L\"=>\"LEFT\", \"R\"=>\"RIGHT\", \"B\"=>\"BOTTOM\", \"T\"=>\"TOP\");\n\t$arrYesNoOptions = array(\"NO\", \"YES\");\n\t$arrGenderOptions = array(\"Male\", \"Female\");\n\t$clsForm = new Form();\n\t$clsForm->setDbTable($tableName, $pkeyTable, $pvalTable);\n\t$clsForm->setTitle($core->getLang(\"Sửa thông tin sinh viên\"));\n\t//$clsForm->addInputText(\"username\", \"\", \"User Name\", 32, 0, \"style='width:200px'\");\n\t//$clsForm->addInputPassword(\"user_pass\", \"\", \"Password\", 255, 0, \"style='width:200px'\");\n\t//$user_pass_hint = ($mode==\"Edit\")? \"Leave if no change password\" : \"\";\n\t//$clsForm->addHint(\"user_pass\", $user_pass_hint);\n\t$clsForm->addInputText(\"firstname\", \"\", \"Họ\", 255, 1, \"style='width:200px'\");\n\t$clsForm->addInputText(\"lastname\", \"\", \"Tên\", 255, 1, \"style='width:200px'\");\n\t$clsForm->addInputText(\"username\", \"\", \"Username\", 255, 1, \"style='width:200px'\");\n\t$clsForm->addInputText(\"topica_lop\", \"\", \"Lớp\", 255, 1, \"style='width:200px'\");\n\t$clsForm->addInputText(\"topica_nganh\", \"\", \"Ngành\", 255, 1, \"style='width:200px'\");\n\t$clsForm->addInputText(\"topica_nhom\", \"\", \"Nhóm\", 255, 1, \"style='width:200px'\");\n\t$clsForm->addInputText(\"topica_coquan\", \"\", \"Cơ quan\", 255, 1, \"style='width:200px'\");\n\t$clsForm->addInputText(\"topica_chucdanh\", \"\", \"Chức danh\", 255, 1, \"style='width:200px'\");\n\t$clsForm->addInputText(\"topica_chucvutronglop\", \"\", \"Chức vụ trong lớp\", 255, 1, \"style='width:200px'\");\n\t$clsForm->addInputText(\"topica_chucvutrongnhom\", \"\", \"Chức vụ trong nhóm\", 255, 1, \"style='width:200px'\");\n\t$clsForm->addInputText(\"topica_trinhdo\", \"\", \"Trình độ\", 255, 1, \"style='width:200px'\");\n\t$clsForm->addInputText(\"topica_doituongtuyensinh\", \"\", \"Đối tượng tuyển sinh\", 255, 1, \"style='width:200px'\");\n\t\n\t//####################### ENG CHANGE ######################\n\t//do Action\n\tif ($btnSave!=\"\"){\n\t\tif ($clsForm->validate()){\n\t\t\tif ($clsForm->saveData($mode)){\n\t\t\t\theader(\"location: ?$_SITE_ROOT&mod=$mod\");\n\t\t\t}\n\t\t}\n\t}\n\t\n\t$assign_list[\"clsModule\"] = $clsModule;\n\t$assign_list[\"clsForm\"] = $clsForm;\n\t$assign_list[$pkeyTable] = $pvalTable;\n}", "function options_form(&$form, &$form_state) {\n $form['group_type'] = array(\n '#type' => 'select',\n '#title' => t('Group type'),\n '#description' => t('Select the group type.'),\n '#options' => og_get_all_group_entity(),\n '#default_value' => $this->options['group_type'],\n '#required' => og_get_all_group_entity(),\n );\n }", "function groupCallback($name, $element, $data) {\n $result = sprintf(\n '<select name=\"%s[%s]\" class=\"dialogSelect dialogScale\">',\n $this->paramName,\n $name\n );\n $selected = (!$data) ? ' selected=\"selected\"' : '';\n $result .= sprintf(\n '<option value=\"\"%s>%s</option>', $selected, $this->_gt('[any]')\n );\n $sql = \"SELECT surfergroup_id, surfergroup_title\n FROM %s\n ORDER BY surfergroup_title ASC\";\n $sqlData = array($this->tableGroups);\n if ($res = $this->databaseQueryFmt($sql, $sqlData)) {\n while ($row = $res->fetchRow(DB_FETCHMODE_ASSOC)) {\n $selected = ($data == $row['surfergroup_id']) ? ' selected=\"selected\"' : '';\n $result .= sprintf(\n '<option value=\"%s\"%s>%s</option>',\n $row['surfergroup_id'],\n $selected,\n $row['surfergroup_title']\n );\n }\n }\n $result .= '</select>';\n return $result;\n }", "function drawDropDownCustom($options)\n\t{\n\t\t$controlName=$options['controlName'];\n\t\t$orgValue=$options['orgValue'];\n\t\t$items=$options['items']; \n\t\t$valueColumnName=$options['valueColumnName'];\n\t\t$titleColumnName=$options['titleColumnName'];\n\t\t$levelColumnName=$options['levelColumnName'];\n\t\t$hasChildColumnName=$options['hasChildColumnName'];\n\t\t$groupNameColumnName=$options['groupNameColumnName'];\n\t\t$groupIdColumnName=$options['groupIdColumnName'];\n\t\t$defaultValue=$options['defaultValue'];\n\t\t$defaultTitle=$options['defaultTitle'];\n\t\t$moreAttributes=$options['attributes'];\n\t\t$useKeyAsKeyAndValueAsValue=$options['useKeyAsKeyAndValueAsValue'];\n\t\t\n\t\tif (is_string($items))\n\t\t\t$items=cmfcMySql::getRowsCustom($items);\n\n\t\t\t\n\t\tif ($options['selectType']=='multiSelect') {\n\t\t\t$moreAttributes['multiple']='multiple';\n\t\t\t$controlName.='[]';\n\t\t}\n\t\t\n\t\t/*\n\t\techo '<pre style=\"direction:ltr\">';\n\t\tprint_r($items);\n\t\techo \"</pre>\";\n\t\t*/\n\t\t$moreAttributesStr=cmfcHtml::attributesToHtml($moreAttributes);\n\t\t\n\t\t$lastGroupName='';\n\t\t$firstRow=true;\n\n\t\t$html=sprintf('<select name=\"%s\" %s >'.\"\\n\", $controlName, $moreAttributesStr);\n\t\tif (!is_null($defaultValue)) {\n\t\t\tif ($options['disabledDefaultValue']==true) {\n\t\t\t\t$disabledHtml='disabled=\"disabled\"';\n\t\t\t} else {\n\t\t\t\t$disabledHtml='';\n\t\t\t}\n\t\t\t$html.=sprintf('<option value=\"%s\" %s>%s</option>'.\"\\n\",$defaultValue,$disabledHtml, $defaultTitle);\n\t\t}\n\t\t//$i = 0; //count the number of selected orgValues\n\t\t\n\t\tif (!is_array($orgValue))\n\t\t\t$orgValues[] = $orgValue;\n\t\telse\n\t\t\t$orgValues = $orgValue;\n\t\t\t\n\t\tif(is_array($items)) // added by babak\n\t\tforeach ($items as $key=>$item) {\n\t\t\tif (is_array($item)) {\n\t\t\t\t$title=$item[$titleColumnName];\n\t\t\t\t$value=$item[$valueColumnName];\n\t\t\t} elseif (is_integer($key) and !$useKeyAsKeyAndValueAsValue) {\n\t\t\t\t$title=$item;\n\t\t\t\t$value=$item;\n\t\t\t} else {\n\t\t\t\t$title=$item;\n\t\t\t\t$value=$key;\n\t\t\t}\n\n\t\t\tif (!empty($groupNameColumnName) && ($options['interface']['group'] or !isset($options['interface']['group']))) {\n\t\t\t\t$groupName=$item[$groupNameColumnName];\n\t\t\t\t$groupId=$item[$groupIdColumnName];\n\t\t\t\t\n\t\t\t\tif ($lastGroupName==$groupName) {$groupChanged=false;} else {$groupChanged=true;}\n\t\t\t\t//echo \"[$lastGroupName:$groupName]\";\n\t\t\t\tif ($groupChanged==true) {\n\t\t\t\t\tif (!$firstRow) { $html.=\"</optgroup>\\n\"; }\n\t\t\t\t\t$html.=sprintf('<optgroup label=\"%s\" title=\"%s\">'.\"\\n\",$groupName, $groupId);\n\t\t\t\t\t$lastGroupName=$groupName;\n\t\t\t\t}\n\t\t\t\t$groupChanged=false;\n\t\t\t}\n\t\t\t$selected='';\n\t\t\tif (in_array($value,$orgValues)) {\n\t\t\t\t$selected='selected=\"selected\"';\n\t\t\t\t//$i++;\n\t\t\t} else {\n\t\t\t\t$selected = '';\n\t\t\t}\n\t\t\t\n\t\t\t$itemAttributes=array();\n\t\t\t#--(Begin)-->indent items to show them as a tree (hierarchical items)\n\t\t\tif (!empty($levelColumnName)) {\n\t\t\t\tif (empty($firstLevelNumber))\n\t\t\t\t\t$firstLevelNumber=$item[$levelColumnName];\n\t\t\t\t\t\n\t\t\t\t$depth=$item[$levelColumnName]-$firstLevelNumber;\n\t\t\t\tif (!isset($options['interface']['itemIndent'])) $options['interface']['itemIndent']=20;\n\t\t\t\t$itemIndent=intval($options['interface']['itemIndent']);\n\t\t\t\tif (!$options['interface']['isIe'])\t {\n\t\t\t\t\t$itemIndent=intval($options['interface']['itemIndent']);\n\t\t\t\t\tif ($options['interface']['direction']=='rightToLeft')\n\t\t\t\t\t\t$itemAttributes['style'].=';padding-right:'.($itemIndent*$depth).'px;';\n\t\t\t\t\telse\n\t\t\t\t\t\t$itemAttributes['style'].=';padding-left:'.($itemIndent*$depth).'px;';\n\t\t\t\t} else {\n\t\t\t\t\t$itemIndent=round($itemIndent/2)*$depth;\n\t\t\t\t\t$title=str_repeat('&nbsp;',$itemIndent).$title;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (isset($options['isParentsSelectable'])) {\n\t\t\t\t\t$item['isParentsSelectable'] = $options['isParentsSelectable'];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ($item[$hasChildColumnName]) {\n\t\t\t\t\t$itemAttributes['style'].=';font-weight:bold';\n\t\t\t\t\tif ($options['isParentsSelectable']!=true)\n\t\t\t\t\t\t$itemAttributes['disabled']=true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t#--(End)-->indent items to show them as a tree (hierarchical items)\n\t\t\t$itemAttributes=cmfcHtml::attributesToHtml($itemAttributes);\n\t\t\t\n\t\t\t$html.=sprintf('<option value=\"%s\" %s %s>%s</option>'.\"\\n\",\n\t\t\t\t\t\t\t$value, $selected, $itemAttributes,$title);\n\t\t\t$firstRow=false;\n\t\t}\n\t\tif (isset($groupName)) $html.=\"</optgroup>\\n\";\n\t\t$html.=\"</select>\\n\";\n\t\treturn $html;\n\t}", "function system_add_group($paramv)\n{\n}", "public static function groupList()\r\n\t{\r\n\t\t$arrayData = array();\r\n\t\t$criteria=new CDbCriteria;\r\n\t\t$criteria->order = 'level DESC';\r\n\t\t$criteria->compare('level <',Yii::app()->user->level -1,false);\r\n\t\t$result = self::model()->findAll($criteria);\r\n\t\tforeach ($result as $r) {\r\n\t\t\t$arrayData[$r->id] = $r->groupname;\r\n\t\t}\r\n\t\treturn $arrayData;\r\n\t}", "function fillGroups() \n\t{\n\t\t$this->groups[] = array(-1,\"<\".\"Admin\".\">\");\n\t\t$this->groupFullChecked[] = true;\n\t\t\n\t\t$trs = db_query(\"select , from `uggroups` order by \",$this->conn);\n\t\twhile($tdata = db_fetch_numarray($trs))\n\t\t{\n\t\t\t$this->groups[] = array($tdata[0],$tdata[1]);\n\t\t\t$this->groupFullChecked[] = true;\n\t\t}\n\t}", "function psts_levels_select($name, $selected) {\r\n\tglobal $psts;\r\n\t$psts->levels_select($name, $selected);\r\n}", "public function addAction() {\n\t\t$form = new Default_Form_UserGroup ();\n\t\t$userGroup = new Default_Model_UserGroup ();\n\t\t$userGroupMapper = new Default_Model_Mapper_UserGroup ();\n\t\t$this->_save ( $form, self::$ADD_MODE );\n\t\tunset($form->getElement('modules')->required);\n\t\t$this->view->form = $form;\n\t\t$this->render ( \"add-edit\" );\n\t}", "function add_group() {\n $this->acl->validate_update();\n\n $where = array(\n 'user_id' => $this->input->post('user_id'),\n 'group_id' => $this->input->post('group_id')\n );\n // Insert or update, to minimize redundancy\n list($flag, $msg) = $this->m_general->insert_update('users_group', $this->input->post(), $where);\n\n return JSONRES($flag, $msg);\n }", "function add_local_field_group(){\n // ...\n }", "function show_account_level_group_info($lv_group_id = '', $return_field = 'level_name') {\n\t\tif ( !is_numeric($lv_group_id) ) {return false;}\n\t\t$this->load->database();\n\t\t$this->db->where(\"level_group_id\", $lv_group_id);\n\t\t$query = $this->db->get($this->db->dbprefix(\"ws_account_level_group\"));\n\t\tif ( $query->num_rows() > 0 ) {\n\t\t\t$row = $query->row();\n\t\t\t$query->free_result();\n\t\t\treturn $row->$return_field;\n\t\t}\n\t\t$query->free_result();\n\t\treturn false;\n\t}", "function system_addto_group($paramv)\n{\n}", "function caldol_add_options_members_filter(){\n\techo '<option value=\"TomChoice\">doggie</option>';\n\t\t\n}", "private function setGroup() {\n if (Request::has(\"include-group-read\") && Request::input(\"include-group-read\") === \"true\") { $permissionRead = 4; } else { $permissionRead = 0; }\n if (Request::has(\"include-group-write\") && Request::input(\"include-group-write\") === \"true\") { $permissionWrite = 2; } else { $permissionWrite = 0; }\n if (Request::has(\"include-group-execute\") && Request::input(\"include-group-execute\") === \"true\") { $permissionExecute = 1; } else { $permissionExecute = 0; }\n return $permissionRead + $permissionWrite + $permissionExecute;\n }", "function dropdown_teknisi()\n { \n //Query untuk mengambil data user yang memiliki level 'Technician'\n $query = $this->db->query(\"SELECT A.username, B.nama FROM user A LEFT JOIN karyawan B ON B.nik = A.username WHERE A.level = 'Technician'\");\n\n //Value default pada dropdown\n $value[''] = '-- CHOOSE --';\n //Menaruh data user teknisi ke dalam dropdown, value yang akan diambil adalah value id_user yang memiliki level 'Technician'\n foreach ($query->result() as $row) {\n $value[$row->username] = $row->nama;\n }\n return $value;\n }", "public function testAddUserIntoGroup(){\n jAcl2DbUserGroup::createUser('robert');\n self::$grpId7 = $this->getLastId('id_aclgrp', 'jacl2_group');\n jAcl2DbUserGroup::addUserToGroup('robert', self::$grpId1);\n\n self::$groups[] = array('id_aclgrp'=>self::$grpId7,\n 'name'=>'robert',\n 'grouptype'=>2,\n 'ownerlogin'=>'robert');\n $this->assertTableContainsRecords('jacl2_group', self::$groups);\n\n self::$usergroups=array(\n array('login'=>'laurent', 'id_aclgrp'=>self::$grpId5),\n array('login'=>'max', 'id_aclgrp'=>self::$grpId6),\n array('login'=>'max', 'id_aclgrp'=>self::$defaultGroupId),\n array('login'=>'robert', 'id_aclgrp'=>self::$grpId7),\n array('login'=>'robert', 'id_aclgrp'=>self::$defaultGroupId),\n array('login'=>'robert', 'id_aclgrp'=>self::$grpId1),\n );\n $this->assertTableContainsRecords('jacl2_user_group', self::$usergroups);\n }", "function init_groups() {\r\n\tif (!HYPEGALLERY_GROUP_ALBUMS) {\r\n\t\treturn;\r\n\t}\r\n\tadd_group_tool_option('albums', elgg_echo('gallery:groupoption:enable'), true);\r\n\telgg_extend_view('groups/tool_latest', 'framework/gallery/group_module');\r\n}", "function option_definition() {\n $options = parent::option_definition();\n $groups = og_get_all_group_entity();\n $options['group_type'] = array('default' => key($groups));\n\n return $options;\n }", "function addAdminMenu()\n\t{\n\t\tglobal $tpl, $tree, $rbacsystem, $lng;\n\n\t\tinclude_once(\"./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php\");\n\t\t$gl = new ilGroupedListGUI();\n\n\t\t$objects = $tree->getChilds(SYSTEM_FOLDER_ID);\n\t\tforeach($objects as $object)\n\t\t{\n\t\t\t$new_objects[$object[\"title\"].\":\".$object[\"child\"]]\n\t\t\t\t= $object;\n\t\t\t//have to set it manually as translation type of main node cannot be \"sys\" as this type is a orgu itself.\n\t\t\tif($object[\"type\"] == \"orgu\")\n\t\t\t\t$new_objects[$object[\"title\"].\":\".$object[\"child\"]][\"title\"] = $lng->txt(\"obj_orgu\");\n\t\t}\n\n\t\t// add entry for switching to repository admin\n\t\t// note: please see showChilds methods which prevents infinite look\n\t\t$new_objects[$lng->txt(\"repository_admin\").\":\".ROOT_FOLDER_ID] =\n\t\t\tarray(\n\t\t\t\t\"tree\" => 1,\n\t\t\t\t\"child\" => ROOT_FOLDER_ID,\n\t\t\t\t\"ref_id\" => ROOT_FOLDER_ID,\n\t\t\t\t\"depth\" => 3,\n\t\t\t\t\"type\" => \"root\",\n\t\t\t\t\"title\" => $lng->txt(\"repository_admin\"),\n\t\t\t\t\"description\" => $lng->txt(\"repository_admin_desc\"),\n\t\t\t\t\"desc\" => $lng->txt(\"repository_admin_desc\"),\n\t\t\t);\n\n//$nd = $tree->getNodeData(SYSTEM_FOLDER_ID);\n//var_dump($nd);\n\t\t$new_objects[$lng->txt(\"general_settings\").\":\".SYSTEM_FOLDER_ID] =\n\t\t\tarray(\n\t\t\t\t\"tree\" => 1,\n\t\t\t\t\"child\" => SYSTEM_FOLDER_ID,\n\t\t\t\t\"ref_id\" => SYSTEM_FOLDER_ID,\n\t\t\t\t\"depth\" => 2,\n\t\t\t\t\"type\" => \"adm\",\n\t\t\t\t\"title\" => $lng->txt(\"general_settings\"),\n\t\t\t);\n\t\tksort($new_objects);\n\n\t\t// determine items to show\n\t\t$items = array();\n\t\tforeach ($new_objects as $c)\n\t\t{\n\t\t\t// check visibility\n\t\t\tif ($tree->getParentId($c[\"ref_id\"]) == ROOT_FOLDER_ID && $c[\"type\"] != \"adm\" &&\n\t\t\t\t$_GET[\"admin_mode\"] != \"repository\")\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// these objects may exist due to test cases that didnt clear\n\t\t\t// data properly\n\t\t\tif ($c[\"type\"] == \"\" || $c[\"type\"] == \"objf\" ||\n\t\t\t\t$c[\"type\"] == \"xxx\")\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$accessible = $rbacsystem->checkAccess('visible,read', $c[\"ref_id\"]);\n\t\t\tif (!$accessible)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif ($c[\"ref_id\"] == ROOT_FOLDER_ID &&\n\t\t\t\t!$rbacsystem->checkAccess('write', $c[\"ref_id\"]))\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif ($c[\"type\"] == \"rolf\" && $c[\"ref_id\"] != ROLE_FOLDER_ID)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$items[] = $c;\n\t\t}\n\n\t\t$titems = array();\n\t\tforeach ($items as $i)\n\t\t{\n\t\t\t$titems[$i[\"type\"]] = $i;\n\t\t}\n\t\t// admin menu layout\n\t\t$layout = array(\n\t\t\t1 => array(\n\t\t\t\t\"adn\" =>\n\t\t\t\t\tarray(\"xaad\", \"xaec\",\"xaed\", \"xaes\", \"xaep\", \"xacp\", \"xata\", \"xamd\", \"xast\"),\n\t\t\t\t\"basic\" =>\n\t\t\t\t\tarray(\"adm\", \"stys\", \"adve\", \"lngf\", \"hlps\", \"accs\", \"cmps\", \"extt\"),\n\t\t\t\t\"user_administration\" =>\n\t\t\t\t\tarray(\"usrf\", 'tos', \"rolf\", \"auth\", \"ps\", \"orgu\"),\n\t\t\t\t\"learning_outcomes\" =>\n\t\t\t\t\tarray(\"skmg\", \"cert\", \"trac\")\n\t\t\t),\n\t\t\t2 => array(\n\t\t\t\t\"user_services\" =>\n\t\t\t\t\tarray(\"pdts\", \"prfa\", \"nwss\", \"awra\", \"cadm\", \"cals\", \"mail\"),\n\t\t\t\t\"content_services\" =>\n\t\t\t\t\tarray(\"seas\", \"mds\", \"tags\", \"taxs\", 'ecss', \"pays\", \"otpl\"),\n\t\t\t\t\"maintenance\" =>\n\t\t\t\t\tarray('sysc', \"recf\", 'logs', \"root\")\n\t\t\t),\n\t\t\t3 => array(\n\t\t\t\t\"container\" =>\n\t\t\t\t\tarray(\"reps\", \"crss\", \"grps\", \"prgs\"),\n\t\t\t\t\"content_objects\" =>\n\t\t\t\t\tarray(\"bibs\", \"blga\", \"chta\", \"excs\", \"facs\", \"frma\",\n\t\t\t\t\t\t\"lrss\", \"mcts\", \"mobs\", \"svyf\", \"assf\", \"wbrs\", \"wiks\")\n\t\t\t)\n\t\t);\n\n\t\t// now get all items and groups that are accessible\n\t\t$groups = array();\n\t\tfor ($i = 1; $i <= 3; $i++)\n\t\t{\n\t\t\t$groups[$i] = array();\n\t\t\tforeach ($layout[$i] as $group => $entries)\n\t\t\t{\n\t\t\t\t$groups[$i][$group] = array();\n\t\t\t\t$entries_since_last_sep = false;\n\t\t\t\tforeach ($entries as $e)\n\t\t\t\t{\n\t\t\t\t\tif ($e == \"---\" || $titems[$e][\"type\"] != \"\")\n\t\t\t\t\t{\n\t\t\t\t\t\tif ($e == \"---\" && $entries_since_last_sep)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$groups[$i][$group][] = $e;\n\t\t\t\t\t\t\t$entries_since_last_sep = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if ($e != \"---\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$groups[$i][$group][] = $e;\n\t\t\t\t\t\t\t$entries_since_last_sep = true;\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\tinclude_once(\"./Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php\");\n\t\t$gl = new ilGroupedListGUI();\n\n\t\tfor ($i = 1; $i <= 3; $i++)\n\t\t{\n\t\t\tif ($i > 1)\n\t\t\t{\n//\t\t\t\t$gl->nextColumn();\n\t\t\t}\n\t\t\tforeach ($groups[$i] as $group => $entries)\n\t\t\t{\n\t\t\t\tif (count($entries) > 0)\n\t\t\t\t{\n\t\t\t\t\t$gl->addGroupHeader($lng->txt(\"adm_\".$group));\n\n\t\t\t\t\tforeach ($entries as $e)\n\t\t\t\t\t{\n\t\t\t\t\t\tif ($e == \"---\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$gl->addSeparator();\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$path = ilObject::_getIcon(\"\", \"tiny\", $titems[$e][\"type\"]);\n\t\t\t\t\t\t\t$icon = ($path != \"\")\n\t\t\t\t\t\t\t\t? ilUtil::img($path).\" \"\n\t\t\t\t\t\t\t\t: \"\";\n\n\t\t\t\t\t\t\tif ($_GET[\"admin_mode\"] == \"settings\" && $titems[$e][\"ref_id\"] == ROOT_FOLDER_ID)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$gl->addEntry($icon.$titems[$e][\"title\"],\n\t\t\t\t\t\t\t\t\t\"ilias.php?baseClass=ilAdministrationGUI&amp;ref_id=\".\n\t\t\t\t\t\t\t\t\t$titems[$e][\"ref_id\"].\"&amp;admin_mode=repository\",\n\t\t\t\t\t\t\t\t\t\"_top\", \"\", \"\", \"mm_adm_rep\",\n\t\t\t\t\t\t\t\t\tilHelp::getMainMenuTooltip(\"mm_adm_rep\"),\n\t\t\t\t\t\t\t\t\t\"bottom center\", \"top center\", false);\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$gl->addEntry($icon.$titems[$e][\"title\"],\n\t\t\t\t\t\t\t\t\t\"ilias.php?baseClass=ilAdministrationGUI&amp;ref_id=\".\n\t\t\t\t\t\t\t\t\t$titems[$e][\"ref_id\"].\"&amp;cmd=jump\",\n\t\t\t\t\t\t\t\t\t\"_top\", \"\", \"\", \"mm_adm_\".$titems[$e][\"type\"],\n\t\t\t\t\t\t\t\t\tilHelp::getMainMenuTooltip(\"mm_adm_\".$titems[$e][\"type\"]),\n\t\t\t\t\t\t\t\t\t\"bottom center\", \"top center\", false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//$gl->addSeparator();\n\n\t\t$tpl->setLeftNavContent(\"<div id='adn_adm_side_menu'>\".$gl->getHTML().\"</div>\");\n\t}", "public static function getAccessGroups()\n\t{\n\t\t/*\n\t\t$ug = Usergroup::all();\n\t\t$options = $ug\n\t\t\t->select('a.id', 'value')\n\t\t\t->select('a.title', 'text')\n\t\t\t->select('b.id', 'level', true)\n\t\t\t->from($ug->getTableName(), 'a')\n\t\t\t->joinRaw($ug->getTableName() . ' AS b', 'a.lft > b.lft AND a.rgt < b.rgt', 'left')\n\t\t\t->group('a.id')\n\t\t\t->group('a.title')\n\t\t\t->group('a.lft')\n\t\t\t->group('a.rgt')\n\t\t\t->order('a.lft', 'asc')\n\t\t\t->rows();\n\t\t*/\n\n\t\t$db = \\App::get('db');\n\t\t$db->setQuery(\n\t\t\t'SELECT a.id AS value, a.title AS text, COUNT(DISTINCT b.id) AS level' .\n\t\t\t' FROM #__usergroups AS a' .\n\t\t\t' LEFT JOIN '.$db->quoteName('#__usergroups').' AS b ON a.lft > b.lft AND a.rgt < b.rgt' .\n\t\t\t' GROUP BY a.id, a.title, a.lft, a.rgt' .\n\t\t\t' ORDER BY a.lft ASC'\n\t\t);\n\t\t$options = $db->loadObjectList();\n\n\t\t// Check for a database error.\n\t\tif ($db->getErrorNum())\n\t\t{\n\t\t\tthrow new \\Exception($db->getErrorMsg(), 500);\n\t\t\treturn null;\n\t\t}\n\n\t\tforeach ($options as &$option)\n\t\t{\n\t\t\t//$option->set('text', str_repeat('- ', $option->get('level')) . $option->get('text'));\n\t\t\t$option->text = str_repeat('- ', $option->level) . $option->text;\n\t\t}\n\n\t\treturn $options;\n\t}", "function create_option(){\r\n global $link;\r\n $query=\"SELECT * FROM user_group ug\r\n JOIN groups g ON ug.group_id=g.group_id\r\n WHERE user_id='{$_SESSION['id']}'\";\r\n $result=mysqli_query($link,$query);\r\n $i=0;\r\n while($i<mysqli_num_rows($result)){\r\n $rows=mysqli_fetch_array($result);\r\n echo \"\r\n <option value='{$rows['group_id']}'>{$rows['group_name']}</option>\r\n \";\r\n $i++;\r\n }\r\n}", "function cmdSalesLevel($name, $caption, $width = null) {\n $url = \"services/runCRUD.php?func=datasource&lookup=mst/srep_lev&pk=slev_code&sk=slev_name&order=slev_name\";\n //remotecombobox($name,$caption,100,$url,'slev_code','slev_name');\n $field = array\n (\n array(\"slev_code\", \"Code\", 100),\n array(\"slev_name\", \"Name\", 220),\n );\n cmbGridSingle($name, $caption, $url, $field, $width);\n}", "public function addLevel( $value){\n return $this->_add(2, $value);\n }", "public function choice_group() {\n return $this->group;\n }", "function modify_groups() {\n\t//checks if user is admin - if yes then show them the page attributes box so they can set hierarchy\n\tif ( current_user_can ( 'manage_options') ) {\n \tadd_post_type_support('groups','page-attributes');\n }\n\t\n if ( post_type_exists( 'groups' ) ) {\n \t\n /* Give groups hierarchy */\n /* Give products hierarchy (for house plans) */\n global $wp_post_types, $wp_rewrite;\n $wp_post_types['groups']->hierarchical = true;\n $args = $wp_post_types['groups'];\n $wp_rewrite->add_rewrite_tag(\"%groups%\", '(.+?)', $args->query_var ? \"{$args->query_var}=\" : \"post_type=groups=\");\n \n }\n\n}", "function create_group( $args ) {\r\n global $wpdb;\r\n\r\n //checking that Client Circle not exist other ID\r\n $result = $wpdb->get_row( $wpdb->prepare( \"SELECT group_id FROM {$wpdb->prefix}wpc_client_groups WHERE LOWER(group_name) = '%s'\", strtolower( $args['group_name'] ) ), \"ARRAY_A\");\r\n if ( $result ) {\r\n if ( \"0\" != $args['group_id'] && $result['group_id'] == $args['group_id'] ) {\r\n\r\n } else {\r\n //if Client Circle exist with other ID\r\n wp_redirect( add_query_arg( array( 'page' => 'wpclients_groups', 'updated' => 'true', 'dmsg' => urlencode( __( 'The Group already exists!!!', WPC_CLIENT_TEXT_DOMAIN ) ) ), 'admin.php' ) );\r\n exit;\r\n }\r\n }\r\n\r\n\r\n if ( '0' != $args['group_id'] ) {\r\n //update when edit Client Circle\r\n $result = $wpdb->query( $wpdb->prepare( \"UPDATE {$wpdb->prefix}wpc_client_groups SET group_name = '%s', auto_select = '%s', auto_add_clients = '%s' WHERE group_id = %d\",\r\n trim( $args['group_name'] ),\r\n $args['auto_select'],\r\n $args['auto_add_clients'],\r\n $args['group_id'] ) );\r\n wp_redirect( add_query_arg( array( 'page' => 'wpclients_groups', 'updated' => 'true', 'dmsg' => urlencode( __( 'The changes of the group are saved!', WPC_CLIENT_TEXT_DOMAIN ) ) ), 'admin.php' ) );\r\n exit;\r\n } else {\r\n //create new Client Circle\r\n $result = $wpdb->query( $wpdb->prepare( \"INSERT INTO {$wpdb->prefix}wpc_client_groups SET group_name = '%s', auto_select = '%s', auto_add_clients = '%s'\",\r\n trim( $args['group_name'] ),\r\n $args['auto_select'],\r\n $args['auto_add_clients']\r\n ) );\r\n\r\n //assign all clients\r\n if ( '1' == $args['assign_all'] ) {\r\n $new_group_id = $wpdb->insert_id;\r\n\r\n $args = array(\r\n 'role' => 'wpc_client',\r\n );\r\n\r\n $clients = get_users( $args );\r\n\r\n if ( is_array( $clients ) && 0 < count( $clients ) )\r\n foreach ( $clients as $client ) {\r\n $wpdb->query( $wpdb->prepare( \"INSERT INTO {$wpdb->prefix}wpc_client_group_clients SET group_id = %d, client_id = '%d'\", $new_group_id, $client->ID ) );\r\n }\r\n\r\n }\r\n\r\n\r\n wp_redirect( add_query_arg( array( 'page' => 'wpclients_groups', 'updated' => 'true', 'dmsg' => urlencode( __( 'Client Circle is created!', WPC_CLIENT_TEXT_DOMAIN ) ) ), 'admin.php' ) );\r\n exit;\r\n }\r\n\r\n }", "function getFilterLevel(){\n\t$data = M('user');\n\t$level_set = Array();\n\t$result = $data->where(Array('reserved_1' => 'normal'))->group('level')->order('level desc')->select();\n\tforeach($result as $value)\n\t\tarray_push($level_set, $value['level']);\n\n\treturn $level_set;\n}", "public function getUsergroup() {}", "public function inventoryGroup()\n\t{\n if (has_permission('inventory_items', '', 'view')) \n\t\t{\n\t\t\t$data = array\n\t\t\t(\n\t\t\t\t'group_type' => $this->input->post('inv_group_type'),\n\t\t\t\t'value' => $this->input->post('name'),\t\t\t\n\t\t\t\t'created_at' => date('Y-m-d H:i:s')\t\t\t\n\t\t\t);\n\t\t\t$save = $this->inventory_model->inventoryGroup($data);\n\t\t\tif($save)\n\t\t\t{\n\t\t\t\tset_alert('success', $this->input->post('inv_group_type').' '.'Added Successfully');\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tset_alert('warning', _l('group_type_inventory_warning', _l($this->input->post('inv_group_type'))));\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "function setup_groups() {\n global $CFG;\n\n /// find out current groups mode\n $this->group_selector = groups_print_course_menu($this->course, $this->pbarurl, true);\n $this->currentgroup = groups_get_course_group($this->course);\n\n if ($this->currentgroup) {\n $this->groupsql = \" LEFT JOIN {$CFG->prefix}groups_members gm ON gm.userid = u.id \";\n $this->groupwheresql = \" AND gm.groupid = $this->currentgroup \";\n }\n }", "private function status() {\n $element = new Select('status');\n $element->setLabel('Status');\n $element->setAttribute('class', 'custom-select col-12');\n $element->setOptions(User::getStatuses());\n $element->setUserOption('lblRequired', true);\n $this->add($element);\n }", "public function DisplaySettings() {\n $display_session = $this->user['DropdownDefault'];\n $level = substr($display_session->SelectedID, 0, 1);\n //Readable way to tell what level were on.\n if ($level == 'a') {\n $this->LevelView = 'Agency';\n } elseif ($level == 'g') {\n $this->LevelView = 'Group';\n } elseif ($level == 'c') {\n $this->LevelView = 'Client';\n } else {\n //if super admin\n $this->LevelView = 'Agency';\n //if group admin group level\n }\n }", "public function groups() {\n\t\t//variabel\n\t\t$data['datas'] = $this->PbkGroups_model->get_all();\n\t\t\n\t\t$template_data['title'] = 'SMS Gateway ';\n\t\t$template_data['subtitle'] = 'Kirim SMS';\n $template_data['crumb'] = ['SMS Gateway' => 'smsgateway', 'SMS Groups' => 'smsgateway/kirimsms/groups',];\n\t\t//view\n\t\t$this->layout->set_wrapper('groups_form', $data);\n\t\t$this->layout->auth();\n\t\t$this->layout->render('admin', $template_data);\n\t}", "function hook_roomify_rights_group() {\n $rights['roomify_rights'] = array(\n 'group_manager' => array(\n 'add member',\n ),\n );\n\n return $rights;\n}", "function getDropDown() ;", "function createGroup($args) {\n\t\t$this->editGroup($args);\n\t}", "function form_checkbox_group($field, $options) {\n\n}", "function getConDropDown(){\n\t\t $data = array();\n\t $this->db->select('*');\n\t\t\t$this->db->from('be_users');\n\t\t\t$this->db->where('group',3);\n\t\t\t$this->db->where('active',1);\n\t\t\t$this->db->order_by('be_users.username','ASC');\n\t $Q = $this->db->get();\n\t if ($Q->num_rows() > 0){\n\t foreach ($Q->result_array() as $row)\n\t\t\t {\n\t $data[$row['username']] = $row['username'];\n\t }\n\t }\n\t $Q->free_result(); \n\t return $data; \n\t }", "function cchl_directorio_boxes() {\n $directoriobox = new_cmb2_box(\n array(\n 'id' => '_cchl_listadopersonasbox',\n 'title' => 'Personas',\n 'object_types' => array('page', 'filsa-2017'),\n 'show_on' => array('key' => 'page-template', 'value' => array('templates/bs-listado-personas.php', 'templates/template-filsa-2017-invitados.php'))\n )\n );\n\n $directoriobox_id =$directoriobox->add_field(\n array(\n 'id' => '_cchl_listadopersonas',\n 'type' => 'group',\n 'description' => 'Información Persona',\n 'repeatable' => true, // use false if you want non-repeatable group\n 'options' => array(\n 'group_title' => 'Persona', // since version 1.1.4, {#} gets replaced by row number\n 'add_button' => 'Añadir otra persona',\n 'remove_button' => 'Borrar persona',\n 'sortable' => true, // beta\n // 'closed' => true, // true to have the groups closed by default\n )\n )\n );\n\n $directoriobox->add_group_field($directoriobox_id, \n array(\n 'name' => 'Nombre Persona',\n 'id' => 'nombre',\n 'type' => 'text'\n )\n );\n\n $directoriobox->add_group_field($directoriobox_id, \n array(\n 'name' => 'Cargo Persona',\n 'id' => 'cargo',\n 'type' => 'text'\n )\n );\n\n $directoriobox->add_group_field($directoriobox_id, \n array(\n 'name' => 'Descripción',\n 'id' => 'texto',\n 'type' => 'wysiwyg'\n )\n );\n\n if(get_post_meta($post->ID, 'imagen', true)):\n //Legacy support\n $directoriobox->add_group_field($directoriobox_id, \n array(\n 'name' => 'Fotografía persona',\n 'id' => 'imagen',\n 'type' => 'text',\n 'options' => array(\n 'url' => false\n )\n )\n );\n\n endif;\n\n $directoriobox->add_group_field($directoriobox_id, \n array(\n 'name' => 'Fotografía persona',\n 'id' => 'imagen_new',\n 'type' => 'file',\n 'options' => array(\n 'url' => false\n )\n )\n);\n\n}", "public function listGroupAdmin() {\n $group = (string)$this->object->info->info->form->group;\n $items = $this->object->getValues($group, true);\n $listItems = '';\n foreach ($items as $key=>$item) {\n $sortableListClass = ($this->object->hasOrd()) ? 'sortableList' : '';\n $list = new ListObjects($this->type, array('where'=>$group.'=\"'.$key.'\"',\n 'function'=>'Admin',\n 'order'=>$this->orderField()));\n $listItems .= '<div class=\"lineAdminBlock\">\n <div class=\"lineAdminTitle\">'.$item.'</div>\n <div class=\"lineAdminItems\">\n <div class=\"listAdmin '.$sortableListClass.'\" rel=\"'.url($this->type.'/sortSave/', true).'\">\n '.$list->showList(array('function'=>'Admin',\n 'message'=>'<div class=\"message\">'.__('noItems').'</div>'),\n array('userType'=>$this->login->get('type'))).'\n </div>\n </div>\n </div>';\n }\n return '<div class=\"lineAdminBlockWrapper\">'.$listItems.'</div>';\n }", "function system_mod_group($paramvect)\n{\n}", "function make_group_str($user)\n{\n $group = (int) (isset($user->group) ? $user->group : $user->power);\n $group2 = get_second_group($user);\n $group2 = $group2 < 0 ? '' : \",$group2\";\n return \"$group$group2\";\n}", "function cmb2_fields_home() {\n // Adiciona um bloco\n $cmb = new_cmb2_box([ /// está dentro de um Array, que é o [];\n 'id' => 'home_box', // id deve ser único\n 'title' => 'Menu da Semana', /// o title deve ser igual ao page-template\n 'object_types' => ['page'], // tipo de post\n 'show_on' => [\n 'key' => 'page-template',\n 'value' => 'page-home.php',\n ], // modelo de página\n ]);\n\n $cmb->add_field([\n 'name' => 'Descrição da página para SEO',\n 'id' => 'description_seo',\n 'type' => 'text',\n ]);\n\n // Adiciona um campo ao bloco criado\n $cmb->add_field([\n 'name' => 'Primeiro Prato',\n 'id' => 'comida1',\n 'type' => 'text',\n ]);\n\n // O campo repetidor é do tipo group // aqui é para repetir os pratos\n $pratos = $cmb->add_field([\n 'name' => 'Pratos',\n 'id' => 'pratos',\n 'type' => 'group',\n 'repeatable' => true,\n 'options' => [\n 'group_title' => 'Prato {#}', /// aqui aparece o numero da posição do prato\n 'add_button' => 'Adicionar Prato',\n 'remove_button' => 'Remover Prato',\n 'sortable' => true, /// se quero que o cliente mude a ordem;\n ],\n ]);\n\n // Cada campo é adicionado com add_group_field\n // Passando sempre o campo de grupo como primeiro argumento\n $cmb->add_group_field($pratos, [\n 'name' => 'Nome',\n 'id' => 'nome',\n 'type' => 'text',\n ]);\n\n $cmb->add_group_field($pratos, [\n 'name' => 'Descrição',\n 'id' => 'descricao',\n 'type' => 'text',\n ]);\n\n $cmb->add_group_field($pratos, [\n 'name' => 'Preço',\n 'id' => 'preco',\n 'type' => 'text',\n ]);\n\n // Adiciona um campo ao bloco criado\n $cmb->add_field([\n 'name' => 'Segundo Prato',\n 'id' => 'comida2',\n 'type' => 'text',\n ]);\n\n // O campo repetidor é do tipo group // aqui é para repetir os pratos\n $pratos2 = $cmb->add_field([\n 'name' => 'Pratos2',\n 'id' => 'pratos2',\n 'type' => 'group',\n 'repeatable' => true,\n 'options' => [\n 'group_title' => 'Prato {#}', /// aqui aparece o numero da posição do prato\n 'add_button' => 'Adicionar Prato Dois',\n 'remove_button' => 'Remover Prato Dois',\n 'sortable' => true, /// se quero que o cliente mude a ordem;\n ],\n ]);\n\n // Cada campo é adicionado com add_group_field\n // Passando sempre o campo de grupo como primeiro argumento\n $cmb->add_group_field($pratos2, [\n 'name' => 'Nome',\n 'id' => 'nome',\n 'type' => 'text',\n ]);\n\n $cmb->add_group_field($pratos2, [\n 'name' => 'Descrição',\n 'id' => 'descricao',\n 'type' => 'text',\n ]);\n\n $cmb->add_group_field($pratos2, [\n 'name' => 'Preço',\n 'id' => 'preco',\n 'type' => 'text',\n ]);\n}", "function group_form($type='edit')\n\t{\n\t\t$all_groups = array( 0 => array ('none', 'Не продвигать') );\n\n\t\tif ($type == 'edit')\n\t\t{\n\t\t\tif ($this->ipsclass->input['id'] == \"\")\n\t\t\t{\n\t\t\t\t$this->ipsclass->admin->error(\"Невозможно определить идентификатор (id) группы пользователей.\");\n\t\t\t}\n\n\t\t\tif ( $this->ipsclass->vars['admin_group'] == $this->ipsclass->input['id'] )\n\t\t\t{\n\t\t\t\tif ( $this->ipsclass->member['mgroup'] != $this->ipsclass->vars['admin_group'] )\n\t\t\t\t{\n\t\t\t\t\t$this->ipsclass->admin->error(\"Извините, у вас нет доступа к редактированию этой группы. Эта группа относится к главным администраторам.\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$form_code = 'doedit';\n\t\t\t$button = 'Изменить';\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$form_code = 'doadd';\n\t\t\t$button = 'Добавить';\n\t\t}\n\n\t\tif ($this->ipsclass->input['id'] != \"\")\n\t\t{\n\t\t\t$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'groups', 'where' => \"g_id=\".intval($this->ipsclass->input['id']) ) );\n\t\t\t$this->ipsclass->DB->simple_exec();\n\n\t\t\t$group = $this->ipsclass->DB->fetch_row();\n\n\t\t\t$this->ipsclass->DB->simple_construct( array( 'select' => 'g_id, g_title',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'from' => 'groups',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'where' => \"g_id <> \".intval($this->ipsclass->input['id']),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'order' => 'g_title' ) );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$group = array();\n\n\t\t\t$this->ipsclass->DB->simple_construct( array( 'select' => 'g_id, g_title',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'from' => 'groups',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'order' => 'g_title' ) );\n\t\t}\n\n\t\t//-----------------------------------------\n\t\t// sort out the promotion stuff\n\t\t//-----------------------------------------\n\n\t\tlist($group['g_promotion_id'], $group['g_promotion_posts']) = explode( '&', $group['g_promotion'] );\n\n\t\tif ($group['g_promotion_posts'] < 1)\n\t\t{\n\t\t\t$group['g_promotion_posts'] = '';\n\t\t}\n\n\t\t$this->ipsclass->DB->simple_exec();\n\n\t\twhile ( $r = $this->ipsclass->DB->fetch_row() )\n\t\t{\n\t\t\tif ( $r['g_id'] == $this->ipsclass->vars['admin_group'] )\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$all_groups[] = array( $r['g_id'], $r['g_title'] );\n\t\t}\n\n\t\t//-----------------------------------------\n\n\t\t$perm_masks = array();\n\n\t\t$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'forum_perms' ) );\n\t\t$this->ipsclass->DB->simple_exec();\n\n\t\twhile ( $r = $this->ipsclass->DB->fetch_row() )\n\t\t{\n\t\t\t$perm_masks[] = array( $r['perm_id'], $r['perm_name'] );\n\t\t}\n\n\t\t//-----------------------------------------\n\n\t\tif ($type == 'edit')\n\t\t{\n\t\t\t$this->ipsclass->admin->page_title = \"Изменение группы пользователей «{$group['g_title']}»\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->ipsclass->admin->page_title = 'Добавление группы пользователей';\n\t\t\t$group['g_title'] = 'Новая группа';\n\t\t}\n\n\t\t$guest_legend = \"\";\n\n\t\tif ($group['g_id'] == $this->ipsclass->vars['guest_group'])\n\t\t{\n\t\t\t$guest_legend = \"</b><br /><i>Не применительно к гостям.</i>\";\n\t\t}\n\n\t\t$this->ipsclass->admin->page_detail = \"Пожалуйста, перепроверьте все еще раз перед продолжением.\";\n\n\n\t\t//-----------------------------------------\n\n\t\t$this->ipsclass->html .= \"<script language='javascript'>\n\t\t\t\t\t\t <!--\n\t\t\t\t\t\t function checkform() {\n\n\t\t\t\t\t\t \tisAdmin = document.forms[0].g_access_cp;\n\t\t\t\t\t\t \tisMod = document.forms[0].g_is_supmod;\n\n\t\t\t\t\t\t \tmsg = '';\n\n\t\t\t\t\t\t \tif (isAdmin[0].checked == true)\n\t\t\t\t\t\t \t{\n\t\t\t\t\t\t \t\tmsg += 'Пользователи этой группы получат доступ в админцентр!\\\\n\\\\n';\n\t\t\t\t\t\t \t}\n\n\t\t\t\t\t\t \tif (isMod[0].checked == true)\n\t\t\t\t\t\t \t{\n\t\t\t\t\t\t \t\tmsg += 'Пользователи этой группы станут супермодераторами.\\\\n\\\\n';\n\t\t\t\t\t\t \t}\n\n\t\t\t\t\t\t \tif (msg != '')\n\t\t\t\t\t\t \t{\n\t\t\t\t\t\t \t\tmsg = 'Проверка безопасности\\\\n--------------\\\\nНазвание группы пользователей: ' + document.forms[0].g_title.value + '\\\\n--------------\\\\n\\\\n' + msg + 'Информация верна?';\n\n\t\t\t\t\t\t \t\tformCheck = confirm(msg);\n\n\t\t\t\t\t\t \t\tif (formCheck == true)\n\t\t\t\t\t\t \t\t{\n\t\t\t\t\t\t \t\t\treturn true;\n\t\t\t\t\t\t \t\t}\n\t\t\t\t\t\t \t\telse\n\t\t\t\t\t\t \t\t{\n\t\t\t\t\t\t \t\t\treturn false;\n\t\t\t\t\t\t \t\t}\n\t\t\t\t\t\t \t}\n\t\t\t\t\t\t }\n\t\t\t\t\t\t //-->\n\t\t\t\t\t\t </script>\\n\";\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->start_form( array( 1 => array( 'code' , $form_code ),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 2 => array( 'act' , 'group' ),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 3 => array( 'id' , $this->ipsclass->input['id'] ),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 4 => array( 'section', $this->ipsclass->section_code ),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) , 'adform', \"onSubmit='return checkform()'\" );\n\n\n\t\tlist($p_max, $p_width, $p_height) = explode( \":\", $group['g_photo_max_vars'] );\n\n\t\t//-----------------------------------------\n\n\t\t$this->ipsclass->adskin->td_header[] = array( \"&nbsp;\" , \"40%\" );\n\t\t$this->ipsclass->adskin->td_header[] = array( \"&nbsp;\" , \"60%\" );\n\n\t\t//-----------------------------------------\n\n\t\t$prefix = str_replace( \"'\", \"&#39;\", $group['prefix'] );\n\t\t$prefix = str_replace( '\"', \"&quot;\", $prefix );\n\t\t$prefix = str_replace( \"<\", \"&lt;\" , $prefix );\n\t\t$suffix = str_replace( \"'\", \"&#39;\", $group['suffix'] );\n\t\t$suffix = str_replace( '\"', \"&quot;\", $suffix );\n\t\t$suffix = str_replace( \"<\", \"&lt;\" , $suffix );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->start_table( \"Глобальные настройки\", \"Основные настройки группы\" );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Название группы</b>\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_input(\"g_title\", $group['g_title'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t//-----------------------------------------\n\t\t// Sort out default array\n\t\t//-----------------------------------------\n\n\t\t$this->ipsclass->html .=\n\t\t\"<script type='text/javascript'>\n\n\t\t\tvar show = '';\n\t\t\";\n\n\t\tforeach ($perm_masks as $d)\n\t\t{\n\t\t\t$this->ipsclass->html .= \" \t\tperms_$d[0] = '$d[1]';\\n\";\n\t\t}\n\n\t\t$this->ipsclass->html .=\n\t\t\"\n\t\t\tvar show = '';\n\n\t\t \tfunction saveit(f)\n\t\t \t{\n\t\t \t\tshow = '';\n\n\t\t \t\tfor (var i = 0 ; i < f.options.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif (f.options[i].selected)\n\t\t\t\t\t{\n\t\t\t\t\t\ttid = f.options[i].value;\n\t\t\t\t\t\tshow += '\\\\n' + eval('perms_'+tid);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfunction show_me()\n\t\t\t{\n\t\t\t\tif (show == '')\n\t\t\t\t{\n\t\t\t\t\tshow = 'Изменений не обнаружено\\\\nНажмите на мульти-выборочный блок для активации';\n\t\t\t\t}\n\n\t\t\t\talert('Выбранные маски доступа\\\\n---------------------------------\\\\n' + show);\n\t\t\t}\n\n\t\t</script>\";\n\n\t\t$arr = explode( \",\", $group['g_perm_id'] );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Использовать следующие маски доступа к форумам... </b><br />Можно выбрать несколько, удерживая клавишу Ctrl.\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_multiselect(\"permid[]\", $perm_masks, $arr, 5, 'onfocus=\"saveit(this)\"; onchange=\"saveit(this)\";' ).\"<br /><input style='margin-top:5px' id='editbutton' type='button' onclick='show_me();' value='Показать выбранные маски'>\"\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Картинка (иконка) группы</b><div class='desctext'>Может выглядеть как <b>style_images/1/folder_team_icons/admin.gif</b>,<br /> так и в виде полного адреса <b>'http://'</b><br/ >Используйте <b>style_images/<#IMG_DIR#>/folder_team_icons/{image}</b> (заменив {image} именем картинки) для динамической загрузки картинок из директории /style_images/ в стиль пользователей.<br />(заполнять не обязательно)</div>\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_textarea(\"g_icon\", htmlspecialchars($group['g_icon']) )\n\t\t\t\t\t\t\t\t\t ) );\n\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Отображение в списке активных пользователей<br />[приставка перед именем пользователя]</b><br />(поле можно оставить пустым)<br />(Пример: &lt;span style='color:red'>)\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_input(\"prefix\", $prefix )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Отображение в списке активных пользователей<br />[суффикс после имени пользователя]</b><br />(поле можно оставить пустым)<br />(Пример: &lt;/span>)\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_input(\"suffix\", $suffix )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Скрыть эту группу из списка пользователей?</b>\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_hide_from_list\", $group['g_hide_from_list'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->end_table();\n\n\t\t//-----------------------------------------\n\n\t\t$this->ipsclass->adskin->td_header[] = array( \"&nbsp;\" , \"40%\" );\n\t\t$this->ipsclass->adskin->td_header[] = array( \"&nbsp;\" , \"60%\" );\n\n\t\t//-----------------------------------------\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->start_table( \"Прикрепление файлов\", \"Управление правами на прикрепление файлов к сообщениям в темах, личных сообщениях и т.д.\" );\n\n\t\tif( $type == 'edit' AND $group['g_attach_max'] == 0 )\n\t\t{\n\t\t\t$group['g_attach_maxdis'] = \"<i>не ограничено</i>\";\n\t\t}\n\t\telse if( $type == 'edit' AND $group['g_attach_max'] == -1 )\n\t\t{\n\t\t\t$group['g_attach_maxdis'] = \"<i>отключено</i>\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$group['g_attach_maxdis'] = $this->ipsclass->size_format( $group['g_attach_max'] * 1024 );\n\t\t}\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Глобальные: Максимальное общее место на диске для всех файлов (включая личные сообщения и сообщения в темах) (в килобайтах)</b>\".$this->ipsclass->adskin->js_help_link('mg_upload').\"<div class='desctext'>Введите -1 для отключения возможности прикреплять файлы.<br />Введите 0 для отключения действия ограничения на место.</div>\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_input(\"g_attach_max\", $group['g_attach_max'] ). ' (сейчас: '.$group['g_attach_maxdis'].')'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t) );\n\n\t\tif( $type == 'edit' AND $group['g_attach_per_post'] == 0 )\n\t\t{\n\t\t\t$group['g_attach_per_postdis'] = \"<i>не ограничено</i>\";\n\t\t}\n\t\telse if( $type == 'edit' AND $group['g_attach_per_post'] == -1 )\n\t\t{\n\t\t\t$group['g_attach_per_postdis'] = \"<i>отключено</i>\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$group['g_attach_per_postdis'] = $this->ipsclass->size_format( $group['g_attach_per_post'] * 1024 );\n\t\t}\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>В сообщениях: Максимальное общее место на диске для прикрепленных файлов каждого сообщения или личного сообщения (в килобайтах)</b>\".$this->ipsclass->adskin->js_help_link('mg_upload').\"<div class='desctext'>Введите <b>0</b> для отключения действия ограничения на место.<br />Это значение должны быть меньшим, чем глобальное ограничение.</div>\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_input(\"g_attach_per_post\", $group['g_attach_per_post'] ). ' (сейчас: '.$group['g_attach_per_postdis'].')'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Фотография: Максимальное место на диске для фотографии пользователя (в килобайтах)</b><br />(Оставьте поле пустым для запрета загрузки фотографии вообще)\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_input(\"p_max\", $p_max ).\"<br />\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t .\"Максимальная ширина (px): <input type='text' size='3' class='textinput' name='p_width' value='{$p_width}'> \"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t .\"Максимальная высота (px): <input type='text' size='3' class='textinput' name='p_height' value='{$p_height}'>\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Аватар: Разрешить загрузку аватара с жесткого диска пользователя?$guest_legend\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_avatar_upload\", $group['g_avatar_upload'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Личные сообщения: Разрешить прикрепление файлов к личным сообщениям?$guest_legend\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_can_msg_attach\", $group['g_can_msg_attach'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->end_table();\n\n\t\t//-----------------------------------------\n\n\t\t$this->ipsclass->adskin->td_header[] = array( \"&nbsp;\" , \"40%\" );\n\t\t$this->ipsclass->adskin->td_header[] = array( \"&nbsp;\" , \"60%\" );\n\n\t\t//-----------------------------------------\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->start_table( \"Основные права\", \"Ограничения группы: что могут и не могут делать пользователи из данной группы\" );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Могут просматривать весь форум?</b>\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_view_board\", $group['g_view_board'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Могут просматривать ОТКЛЮЧЕННЫЙ (OFFLINE) ФОРУМ?</b>\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_access_offline\", $group['g_access_offline'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Могут просматривать профили пользователей и список пользователей?</b>\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_mem_info\", $group['g_mem_info'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Могут просматривать темы, созданные другими пользователями?</b>\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_other_topics\", $group['g_other_topics'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Могут использовать поиск по форуму?</b>\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_use_search\", $group['g_use_search'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Временной интервал между повторным поиском по форуму (защита от массовых атак сервера) (в секундах)</b><div class='desctext'>Введите количество секунд, в течение которых пользователь этой группы после использования поиска не сможет им воспользоваться повторно. Эта опция защищает форум от атак на сервер за счет массового поиска в короткий период времени.<br />Введите <b>0</b> для отключения ограничения.</div>\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_input(\"g_search_flood\", $group['g_search_flood'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\tlist( $limit, $flood ) = explode( \":\", $group['g_email_limit'] );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Пользователи этой группы могут отправлять письма с форума на e-mail?</b><br />Для отключения ограничений оставьте поле пустым $guest_legend\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_email_friend\", $group['g_email_friend'] )\n\t\t\t\t\t\t\t\t\t\t\t\t .\"<br />Разрешить отправку писем на e-mail только \". $this->ipsclass->adskin->form_simple_input(\"join_limit\", $limit, 2 ).\" штук в 24 часа\"\n\t\t\t\t\t\t\t\t\t\t\t\t .\"<br />... и разрешить отправку только 1 письма на e-mail каждые \".$this->ipsclass->adskin->form_simple_input(\"join_flood\", $flood, 2 ).\" минут\"\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Могут редактировать свои личные данные?$guest_legend\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_edit_profile\", $group['g_edit_profile'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Могут использовать личные сообщения (PM)?$guest_legend\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_use_pm\", $group['g_use_pm'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Введите максимальное число пользователей для массовой рассылки через личные сообщения пользователем данной группы?</b><div class='desctext'>(Введите 0 или оставьте поле пустым для отключения возможности массовой отправки личных сообщений)</div>\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_input(\"g_max_mass_pm\", $group['g_max_mass_pm'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Максимальное количество сохраняемых личных сообщений?$guest_legend\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_input(\"g_max_messages\", $group['g_max_messages'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->end_table();\n\n\t\t//-----------------------------------------\n\n\t\t$this->ipsclass->adskin->td_header[] = array( \"&nbsp;\" , \"40%\" );\n\t\t$this->ipsclass->adskin->td_header[] = array( \"&nbsp;\" , \"60%\" );\n\n\t\t//-----------------------------------------\n\n\t\t$dd_topic_rate = array( 0 => array( 0, 'Нет' ), 1 => array( 1, 'Да (Не позволять изменять голоса)' ), 2 => array( 2, 'Да (Разрешить изменять голоса)' ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->start_table( \"Настройки сообщений\", \"Права пользователей этой группы для тем и сообщений\" );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Могут открывать новые темы (где разрешено)?</b>\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_post_new_topics\", $group['g_post_new_topics'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Могут оценивать темы (где это разрешено)?</b>\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_dropdown(\"g_topic_rate_setting\", $dd_topic_rate, $group['g_topic_rate_setting'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Могут публиковать ответы в СВОИХ (созданных самим пользователем) темах?</b>\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_reply_own_topics\", $group['g_reply_own_topics'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Могут публиковать ответы на ЧУЖИЕ темы (где разрешено)?</b>\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_reply_other_topics\", $group['g_reply_other_topics'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Могут редактировать свои сообщения?$guest_legend\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_edit_posts\", $group['g_edit_posts'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Временное ограничение с даты публикации сообщения, после которого редактирование сообщения будет запрещено (в минутах)?$guest_legend</b><div class='desctext'>Запрещает пользователям этой группы редактировать свои сообщения после окончания указанного периода времени.<br />Введите <b>0</b> или оставьте поле пустым для отключения ограничения.</div>\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_input(\"g_edit_cutoff\", $group['g_edit_cutoff'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Могут удалять пометку «Отредактировано...» при редактировании сообщения?$guest_legend</b>\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_append_edit\", $group['g_append_edit'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Могут удалять свои сообщения?$guest_legend\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_delete_own_posts\", $group['g_delete_own_posts'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Могут открывать/закрывать свои темы?$guest_legend\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_open_close_posts\", $group['g_open_close_posts'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Могут изменять названия и описания своих тем?$guest_legend\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_edit_topic\", $group['g_edit_topic'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Могут удалять свои темы?$guest_legend\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_delete_own_topics\", $group['g_delete_own_topics'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Могут создавать новые опросы (где разрешено)?$guest_legend</b>\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_post_polls\", $group['g_post_polls'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Могут голосовать (где разрешено)?$guest_legend\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_vote_polls\", $group['g_vote_polls'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Не применять к пользователям данной группы флуд-контроль?</b>\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_avoid_flood\", $group['g_avoid_flood'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Не применять проверку сообщений перед публикацией модераторами для пользователей этой группы?</b>\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_avoid_q\", $group['g_avoid_q'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Могут использовать HTML в сообщениях?$guest_legend</b><br />\".$this->ipsclass->adskin->js_help_link('mg_dohtml') ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_dohtml\", $group['g_dohtml'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Не применять к пользователям данной группы фильтры плохих слов?$guest_legend</b><br />\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_bypass_badwords\", $group['g_bypass_badwords'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->end_table();\n\n\t\t//-----------------------------------------\n\t\t// DISPLAY NAME OPTIONS\n\t\t//-----------------------------------------\n\n\t\t$this->ipsclass->adskin->td_header[] = array( \"&nbsp;\" , \"40%\" );\n\t\t$this->ipsclass->adskin->td_header[] = array( \"&nbsp;\" , \"60%\" );\n\n\t\t//-----------------------------------------\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->start_table( \"Права на изменения имен\", \"Действителен, только когда стоит показ имен\" );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<strong>Изменение имени: Лимит дней</strong><div class='desctext'>Это количество дней в течение которых пользователь может произвести изменения. Для примера \\\"30\\\" это означает, что пользователь может изменить свое имя только на протяжении 30-ти дней.</div>\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_input(\"g_dname_date\", $group['g_dname_date'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<strong> Изменение имени: Макс. кол-во изменений в Х дней</strong><div class='desctext'>Здесь вы указываете число раз, сколько пользователь сможет изменить свое имя в течение Х дней. Установите \\\"0\\\", чтобы запретить пользоваться этим преимуществом.</div>\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_input(\"g_dname_changes\", $group['g_dname_changes'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->end_table();\n\n\t\t//-----------------------------------------\n\t\t// MODERATOR OPTIONS\n\t\t//-----------------------------------------\n\n\t\t$this->ipsclass->adskin->td_header[] = array( \"&nbsp;\" , \"40%\" );\n\t\t$this->ipsclass->adskin->td_header[] = array( \"&nbsp;\" , \"60%\" );\n\n\t\t//-----------------------------------------\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->start_table( \"Установки модерирования\", \"Управление модераторскими возможностями для этой группы пользователей\" );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Сделать пользователей этой группы супермодераторами (возможность модерировать везде)?$guest_legend\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_is_supmod\", $group['g_is_supmod'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Разрешить доступ к админцентру форума для пользователей этой группы (очень важный пункт!)?$guest_legend\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_access_cp\", $group['g_access_cp'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Позволить публиковать ответы в закрытых темах?\" ,\n\t\t\t\t\t\t\t\t\t\t\t\t $this->ipsclass->adskin->form_yes_no(\"g_post_closed\", $group['g_post_closed'] )\n\t\t\t\t\t\t\t\t\t ) );\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->end_table();\n\n\t\t//-----------------------------------------\n\n\t\t$this->ipsclass->adskin->td_header[] = array( \"&nbsp;\" , \"40%\" );\n\t\t$this->ipsclass->adskin->td_header[] = array( \"&nbsp;\" , \"60%\" );\n\n\t\t//-----------------------------------------\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->start_table( \"Продвижение пользователей группы\" );\n\n\t\tif ($group['g_id'] == $this->ipsclass->vars['admin_group'])\n\t\t{\n\t\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Выберите 'Не перемещать' для отключения продвижения</b><br />\".$this->ipsclass->adskin->js_help_link('mg_promote') ,\n\t\t\t\t\t\t\t\t\t\t\t\t\t \"Эта возможность отключена для группы главных администраторов.\"\n\t\t\t\t\t\t\t\t\t\t\t ) );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( \"<b>Выберите &laquo;Не продвигать&raquo; для отключения продвижения пользователей этой группы</b>$guest_legend<br />\".$this->ipsclass->adskin->js_help_link('mg_promote') ,\n\t\t\t\t\t\t\t\t\t\t\t\t\t 'Перемещать пользователей этой группы в другую группу пользователей (например, с более высокими правами) '.$this->ipsclass->adskin->form_dropdown(\"g_promotion_id\", $all_groups, $group['g_promotion_id'] )\n\t\t\t\t\t\t\t\t\t\t\t\t\t .'<br />когда они набирают указанное далее количество сообщений: '.$this->ipsclass->adskin->form_simple_input('g_promotion_posts', $group['g_promotion_posts'] ).'<br />(Тут используется значение счетчика сообщений пользователя).'\n\t\t\t\t\t\t\t\t\t\t\t ) );\n\t\t}\n\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->end_form($button);\n\n\t\t$this->ipsclass->html .= $this->ipsclass->adskin->end_table();\n\n\t\t$this->ipsclass->admin->output();\n\n\n\t}", "function set_userGroup($data, $oldId){\n $data_user = array();\n $data_group = array();\n $data_user['id'] = $data['id'];\n $data_user['username'] = $data['username'];\n $data_user['password'] = $data['password'];\n $data_user['email'] = $data['email'];\n\n $group = $data['group'];\n $data['group'] = selectRecord(TAB_GROUPS, \"role = '$group'\")['id'];\n $data_group['userId'] = $data['id'];\n $data_group['groupId'] = $data['group'];\n\n updateRecord(TAB_USR_ROLE, $data_group, \"userId = $oldId\");\n updateRecord(TAB_USERS, $data_user, \"id = $oldId\");\n $data_info = array();\n if($data['group'] == 1){\n $data_info = array();\n $data_info['employment'] = \"-\";\n $data_info['img_address'] = \"upload/user/user-default.png\";\n $data_info['user'] = $data['id'];\n insertRecord(TAB_PERSONALINFO, $data_info);\n }\n}", "protected function getGroups()\n\t{\n\t\t$groups = array();\n\n\t\t$groups[''] = array();\n\t\t$groups[''][] = JHtml::_('select.option', $this->value, $this->value, 'value', 'text');\n\n\t\t$this->addGroup($groups, 'User', \t\t$this->getUserFields());\n\t\t$this->addGroup($groups, 'Order', \t\t$this->getOrderFields());\n\t\t$this->addGroup($groups, 'Shipping', \t$this->getAddressFields('shipping'));\n\t\t$this->addGroup($groups, 'Billing',\t$this->getAddressFields('billing'));\n\t\t$this->addGroup($groups, 'Item',\t\t$this->getItemFields());\n\n\t\treset($groups);\n\n\t\treturn $groups;\n\t}", "public function setGroup($value) {\n$allowed = ['house', 'school', 'work', 'family'];\nif (!in_array($value, $allowed))\n throw new Exception('Please choose one of the valid groups');\n$this->group = $value;\nreturn $this;\n}", "public function create()\n\t{\n\t\t$data['title'] = \"Level Admin\";\n\t\t// $data['level'] = $this->level->getAll();\n\t\t$data['action'] = \"level/insert\";\n\t\t$this->template->admthemes('level/formCreate',$data);\n\t}", "function field_group_admin_head()\n\t{\n\t\t// Note: This function can be removed if not used\n\t}", "protected function getLevelSelector() {}", "public function create_group()\r\n\t{\r\n\t\t// Load template\r\n\t\tinclude(BLUPATH_TEMPLATES .'/site/modules/create_group.php');\r\n\t}", "public function getFormField($value = null)\n {\n if (MageBridgeHelper::isJoomla15()) {\n $acl = JFactory::getACL();\n $gtree = $acl->get_group_children_tree( null, 'USERS', false );\n return JHTML::_('select.genericlist', $gtree, 'usergroup_id', null, 'value', 'text', $value);\n } else {\n return JHTML::_('access.usergroup', 'usergroup_id', $value, null, null, null);\n }\n }", "function addGroupHandler() {\n global $inputs;\n\n $lastId = insert('group',[\n 'admin_id' => getLogin()['uid'],\n 'group_name' => $inputs['name'],\n 'description' => $inputs['desc'],\n ]);\n\n formatOutput(true, 'add success');\n}", "function find_by_groupLevel($level)\n{\n global $db;\n //$sql = \"SELECT group_level FROM user_groups WHERE group_level = '{$db->escape($level)}' LIMIT 1 \";\n $sql = \"SELECT * FROM grupos_usuarios WHERE nivel_gpo = '{$db->escape($level)}' LIMIT 1 \";\n $result = $db->query($sql);\n //return($db->num_rows($result) === 0 ? TRUE : FALSE);\n return $result->fetch_assoc();\n}", "function group_get_grouptype_options($currentgrouptype=null) {\n $groupoptions = array();\n $jointypecount = array('open' => 0, 'invite' => 0, 'request' => 0, 'controlled' => 0);\n $grouptypes = group_get_grouptypes();\n $enabled = array_map(create_function('$a', 'return $a->name;'), plugins_installed('grouptype'));\n if (is_null($currentgrouptype) || in_array($currentgrouptype, $enabled)) {\n $grouptypes = array_intersect($enabled, $grouptypes);\n }\n foreach ($grouptypes as $grouptype) {\n safe_require('grouptype', $grouptype);\n if (call_static_method('GroupType' . $grouptype, 'can_be_created_by_user')) {\n $grouptypename = get_string('name', 'grouptype.' . $grouptype);\n foreach (call_static_method('GroupType' . $grouptype, 'allowed_join_types') as $jointype) {\n $jointypecount[$jointype]++;\n $groupoptions['jointype'][\"$grouptype.$jointype\"] = get_string('membershiptype.'.$jointype, 'group');\n $groupoptions['grouptype'][\"$grouptype.$jointype\"] = $grouptypename . ': ' . get_string('membershiptype.'.$jointype, 'group');\n }\n }\n }\n $duplicates = array_reduce($jointypecount, create_function('$a, $b', 'return $a || $b > 1;'));\n if ($duplicates) {\n return $groupoptions['grouptype'];\n }\n return $groupoptions['jointype'];\n}", "function after_user_activate( $user_id, $user_data, $signup_meta ) {\n $group_id = !empty($_GET['group_id']) ? $_GET['group_id'] : $_POST['group_id'];\n \n if( absint( $group_id ) == $group_id ) {\n ld_update_group_access( $user_id, $group_id );\n }\n}", "public function getGroupsOptions()\n {\n return array(\n 'compulsory' => array(\n array('name' => 'Run Subtitle Spell Check before delivery', 'description' => 'Run Subtitle Spell Check before delivery', 'notice' => 'STOPPER'),\n array('name' => 'Run Subtitle Quality Check (SQC) before delivery', 'description' => 'Run Subtitle Quality Check (SQC) before delivery', 'notice' => 'STOPPER'),\n array('name' => 'Identical Narrative as in English template found', 'description' => 'When the text in the translate file is identical to the English template', 'notice' => 'STOPPER'),\n array('name' => 'Allow Empty Boxes', 'description' => 'Allow users to deliver file with empty boxes (boxes not containing any text)', 'notice' => 'STOPPER'),\n array('name' => 'Maximum Lines Per Box', 'description' => 'The maximum lines allowed in one box', 'notice' => 'STOPPER'),\n array('name' => 'Maximum Characters Per Line (Horizontal, Vertical)', 'description' => 'The maximum number of characters allowed per (horizontal, vertical) line', 'notice' => 'STOPPER'),\n array('name' => 'Main Title tag required', 'description' => 'The main title has not been tagged with a Main Title tag', 'notice' => 'STOPPER'),\n array('name' => 'Non-standard apostrophe used at position (pos)', 'description' => '', 'notice' => 'STOPPER'),\n array('name' => 'English template revision not acknowledged', 'description' => 'English template revision is not reviewed by a language user by clicking on the blinking red alarm clock', 'notice' => 'STOPPER'),\n array('name' => 'Minimum Box Duration', 'description' => 'The shortest duration allowed for a box. In frames or seconds', 'notice' => 'STOPPER'),\n array('name' => 'Maximum Box Duration', 'description' => 'The longest duration allowed for a box. In frames or seconds', 'notice' => 'STOPPER'),\n array('name' => 'Allow Box Overlap', 'description' => 'Allow users to deliver overlapping boxes', 'notice' => 'STOPPER'),\n array('name' => 'Floating captions found', 'description' => 'Allow caption to touch top or bottom', 'notice' => 'STOPPER'),\n array('name' => 'Teletext Character Set Only', 'description' => 'This is a special requirement for teletext deliveries as this format has restrictions on the characters allowed', 'notice' => 'STOPPER'),\n array('name' => 'Box start time is equal / exceeds its end time', 'description' => 'Timing discrepancy when a file has been imported into the system where the start timecode of a box can be greater than the end timecode of the box', 'notice' => 'STOPPER'),\n array('name' => 'Chapter stop overlaps with subtitle', 'description' => '', 'notice' => 'STOPPER'),\n ),\n \n 'spec' => array(\n array('name' => 'Maximum Lines Per Box', 'description' => 'The maximum lines allowed in one box', 'notice' => 'STOPPER'),\n array('name' => 'Minimum Frame Gap Between Boxes', 'description' => 'Minimal gap allowed between boxes. In frames or seconds', 'notice' => 'STOPPER'),\n array('name' => 'Frame gap violation between consecutive boxes found', 'description' => 'This puts restrictions on the frame gaps allowed between boxes. This is meant to disallow small gaps (under 1 second) between consecutive boxes, a special requirement. Example: 3f;1s mean that gap >= 3 frames and < 1 second not allowed', 'notice' => 'STOPPER'),\n array('name' => 'Allow Italics', 'description' => 'Are italics allowed?', 'notice' => 'STOPPER'),\n array('name' => 'Forced', 'description' => 'Allow Burned-in tag?', 'notice' => 'STOPPER'),\n array('name' => 'Only one sentence per box is allowed', 'description' => 'Only one sentence per subtitle is permitted', 'notice' => 'STOPPER'),\n array('name' => 'Text-heavy box found', 'description' => 'When too much text is present in a box as opposed to the box duration, readability gets affected', 'notice' => 'STOPPER'),\n ),\n \n 'compliance' => array(\n array('name' => 'Rating Allowed', 'description' => 'Is a rating allowed?', 'notice' => 'STOPPER'),\n array('name' => 'Translator Credit Allowed', 'description' => 'Is the translator credit allowed?', 'notice' => 'STOPPER'),\n array('name' => 'Disallowed characters found at start of subtitle', 'description' => 'Subtitle cannot start with any of the entered chars. Input chars as a string, without separators', 'notice' => 'STOPPER'),\n ),\n \n 'special' => array(\n array('name' => 'Allowable unedited auto-translation limit', 'description' => 'This special limit is set for translate jobs to define maximum allowable unedited auto translation in percents', 'notice' => 'STOPPER'),\n array('name' => 'Consecutive text-heavy 2-line subtitle found', 'description' => 'The maximum number of consecutive 2 line subs. Should be more than 1 or Disabled(-1). This is special requirement meant to discourage consecutive text heavy boxes', 'notice' => 'STOPPER'),\n array('name' => 'Space After Hypens Between Words', 'description' => 'Checks for space after or before a hyphen between two words. This is meant for a specific captioning requirement', 'notice' => 'STOPPER'),\n array('name' => 'Do Not Allow \"#\" Symbol', 'description' => 'This prevents users from delivering a file containing the pound symbol. This is a special requirement by some clients or file types', 'notice' => 'STOPPER'),\n array('name' => 'Space After Double Chevron', 'description' => 'Requires a space after a double hyphen. This is meant for specific French captioning requirements', 'notice' => 'STOPPER'),\n array('name' => 'Space After Hyphens', 'description' => 'Set a required space after speaker hyphen. This is meant for a specific captioning requirement', 'notice' => 'STOPPER'),\n array('name' => 'Speaker Hyphens style', 'description' => 'Set a required speaker hyphen style. This is meant for a specific captioning requirement', 'notice' => 'STOPPER'),\n array('name' => 'Disallowed characters found in subtitle', 'description' => 'Subtitle cannot contain any of entered chars. Input chars as a string, without separators', 'notice' => 'STOPPER'),\n array('name' => 'Text contains invalid XML characters', 'description' => '', 'notice' => 'STOPPER'),\n ),\n \n 'captions' => array(\n array('name' => 'Allow 32 Character Lines With Italics', 'description' => 'Is it possible to add 32 character line with italics?', 'notice' => 'STOPPER'),\n array('name' => 'Sound Cue Format', 'description' => 'Examples: \"[music]\", \"(MUSIC)\", ...', 'notice' => 'STOPPER'),\n ),\n \n 'other' => array( \n array('name' => 'Possible acronym should be written without periods and spaces', 'description' => '', 'notice' => 'NOTICE'),\n array('name' => 'Possible acronym should be written without accents', 'description' => '', 'notice' => 'STOPPER'),\n array('name' => 'Semicolon should be removed', 'description' => 'This is one of the SDH system checks only for LAS language', 'notice' => 'STOPPER'),\n array('name' => 'Continuity ellipsis at the end of the box should be removed', 'description' => '', 'notice' => 'STOPPER'),\n array('name' => 'Extra punctuation found', 'description' => '', 'notice' => 'STOPPER'),\n array('name' => 'Double quotation marks should be written without spaces', 'description' => '', 'notice' => 'STOPPER'),\n array('name' => 'Period should be written after a closing quote', 'description' => '', 'notice' => 'STOPPER'),\n array('name' => 'Song box should be fully italicized', 'description' => '', 'notice' => 'STOPPER'),\n array('name' => 'Song box punctuation: only question and exclamation marks allowed at the end of line', 'description' => '', 'notice' => 'STOPPER'), \n array('name' => 'Song box is not translated. Please OMIT box because translation is not required', 'description' => '', 'notice' => 'STOPPER'),\n array('name' => 'Unallowable forward slash in dialog', 'description' => '', 'notice' => 'STOPPER'),\n array('name' => 'HBO prohibited words', 'description' => 'Prevents the user from delivering a file containing some predefined words: \"A Em Por\", \"Até Entre Porém\", \"Ao Entretanto Quando\", \"Após Lhe Que\", \"Com Uma Se\", \"Como Me Sem\", \"Contudo Nos Sob\", \"Da O Sobre\", \"De Ou Te\", \"Desde Para Todavia\", \"Do Perante Vos\", \"E Pois\". This is a special requirement by some clients or file types', 'notice' => 'STOPPER'),\n array('name' => 'Do Not Allow \"$\" At The Beginning Of Sentence', 'description' => 'This prevents users from delivering a file containing the \"$\" symbol. This is a special requirement by some clients or file types', 'notice' => 'STOPPER'),\n array('name' => 'Positioning not allowed for this overlapped subtitle', 'description' => 'Positioning not allowed for particular overlapped subtitle. (For Japanese only)', 'notice' => 'STOPPER'),\n array('name' => 'Text casing does not match source', 'description' => '', 'notice' => 'NOTICE'),\n array('name' => 'Acceptance suggestion is unresolved', 'description' => 'Flagged for all boxes which are not accepted or declined by the QAer', 'notice' => 'STOPPER'),\n array('name' => 'Text alignment not permitted as per spec', 'description' => 'When text alignment does not match what is in the delivery specs', 'notice' => 'STOPPER'),\n array('name' => 'BRP Disallowed End Words', 'description' => '', 'notice' => 'STOPPER'),\n array('name' => 'BRP Disallowed Start Words', 'description' => '', 'notice' => 'STOPPER'),\n array('name' => 'Text found on the first cell of the first gridline', 'description' => 'Text resting on the first cell of the first gridline.(i.e. position 0,0) (For CC mode only)', 'notice' => 'NOTICE'),\n array('name' => 'File should contain an EMPTY first box', 'description' => '', 'notice' => 'STOPPER'),\n array('name' => 'Single quaver box should be min 5 secs long and have min 1 sec gap after it', 'description' => '', 'notice' => 'STOPPER'),\n array('name' => 'Italics or Underline found within word', 'description' => 'When italics or underline tags are found inside words. (For CC mode only)', 'notice' => 'STOPPER'), \n array('name' => 'Enter some note for the box with error type: Translation (objective/subjective)', 'description' => 'It forces a QA user to input a note if box error type is Translation: objective/subjective. (For Netflix client only)', 'notice' => 'STOPPER'),\n array('name' => 'Incorrect text formatting (&#60;HTML&#62;|&#60;P&#62;)', 'description' => '', 'notice' => 'STOPPER'),\n array('name' => 'Alignment / Positioning does not match source', 'description' => '', 'notice' => 'STOPPER'),\n array('name' => 'Box should be removed (omitted) according to the \"Texted\" delivery format', 'description' => '', 'notice' => 'NOTICE'),\n array('name' => 'Stand-alone punctuation present', 'description' => 'When any box in a file has only punctuation and no text in it', 'notice' => 'STOPPER'),\n array('name' => 'Double space found at line #(number)', 'description' => '', 'notice' => 'STOPPER'),\n array('name' => 'Error type is not chosen', 'description' => 'When a QAer makes a change but does not select an error category', 'notice' => 'STOPPER'),\n ),\n );\n }", "function gtags_group_category_form() {\n\tglobal $bp, $show_group_add_form_cats;\t\n\tif ($show_group_add_form_cats) return; // prevents showing form twice\n\t$show_group_add_form_cats = true;\n\n\t// the group category\t\n\t$group_cats = get_option('gtags_category'); \n\tif (empty($group_cats)) return;\n\t\n\t$selected = groups_get_groupmeta( $bp->groups->current_group->id, 'gtags_group_cat' ); \n\t?><label for=\"group-cat\"><?php _e( 'Group Category', 'gtags' ) ?></label>\n\t<select name=\"group-cat\" id=\"group-cat\" />\n\t\t<option value=\"\"><?php _e('--- SELECT ONE ---', 'gtags') ?></option>\n\t<?php foreach ( $group_cats as $tag => $desc ): ?>\n\t\t<?php if ( !$desc ) $desc = $tag; ?>\n\t\t<option value=\"<?php echo $tag; ?>\" <?php if ( $tag == $selected ) echo 'selected=\"selected\"' ?>><?php echo $desc; ?></option>\n\t<?php endforeach; ?>\n\t</select>\n\t<i><?php _e('(the primary group activity)', 'gtags'); ?></i><br><?php \t\n}", "function addnewuser() {\n \t\t\t$this->set('GetUserQ', $this->Users->GetUsers(0));\n \t\t\t$this->set('GetLevelsQ', $this->AccessLevels->index());\n \t\t}", "public function groupAccessLevel(){\n\t\n\t global $db;\n\t \n\t #see if user is guest, if so, they have zero-level access.\n\t\tif($this->user == \"guest\"){\n\t\t $getAccessLevel = 0;\n\t\t return($getAccessLevel);\n\t\t}else{\n\t \t$db->SQL = \"SELECT Level FROM ebb_groups where id='\".$this->gid.\"' LIMIT 1\";\n\t\t\t$getAccessLevel = $db->fetchResults();\n\n\t\t\treturn($getAccessLevel['Level']);\n\t\t}\n\t}", "function _options_push($option , $new_data, $group = null) {\n \n // si existe lo pone al dia\n if(_options_exist($option)){\n //echo \"$option \" ;\n _options_update($option , $new_data);\n \n \n }else{ // si no lo crea\n _options_add($option, $new_data, $group);\n\n }\n \n}", "function getPermCombo($name, $field, $data, $paramName = NULL) {\n if ($paramName === NULL) {\n $paramName = $this->paramName;\n }\n // Reload permission list if not set\n if (!(isset($this->permissionsList) && is_array($this->permissionsList))) {\n $this->loadPermList();\n }\n // Create select field\n $result = sprintf(\n '<select id=\"field_type\" name=\"%s[%s]\" class=\"dialogSelect dialogScale\" size=\"1\">'.LF,\n papaya_strings::escapeHTMLChars($paramName),\n papaya_strings::escapeHTMLChars($name)\n );\n $result .= sprintf(\n '<option value=\"0\">[%s]</option>'.LF,\n papaya_strings::escapeHTMLChars($this->_gt('globally allowed'))\n );\n // Iterate over all permissions\n foreach ($this->permissionsList as $perm) {\n // Use only active permissions\n if ($perm['surferperm_active']) {\n // Mark current permission as selected if it's the field value\n $selected = ($perm['surferperm_id'] == $data) ? ' selected=\"selected\"' : '';\n $result .= sprintf(\n '<option value=\"%s\" %s>%s</option>'.LF,\n papaya_strings::escapeHTMLChars($perm['surferperm_id']),\n $selected,\n papaya_strings::escapeHTMLChars($perm['surferperm_title'])\n );\n }\n }\n $result .= '</select>'.LF;\n return $result;\n }", "function set_cur_group($group) {\n\t\tlgi_mysql_query(\"UPDATE %t(usergroups) SET `dfl`=(`name`='%%') WHERE `usercertid`=(SELECT `id` FROM %t(usercerts) WHERE `user`='%%')\", $group, $this->userid);\n\t\t$_SESSION['dfl_group'] = $group;\n\t}", "function addUserGroups()\n {\n Log::add('User groups added in installation script', JLog::DEBUG, 'com_cajobboard');\n\n $db = JFactory::getDbo();\n\n // Get the PK of the \"Registered\" user group\n $query = $db->getQuery(true);\n\n $query\n ->select ($db->quoteName(array('id', 'title')))\n ->from ($db->quoteName('#__usergroups'))\n ->where ($db->quoteName('title') . ' = '. $db->quote('Registered'));\n\n $db->setQuery($query);\n\n $registeredGroupId = $db->loadResult();\n\n unset($query);\n\n // Get a list of all of the existing user groups so we don't duplicate adding ones we want\n $query = $db->getQuery(true);\n\n $query\n ->select ($db->quoteName('title'))\n ->from ($db->quoteName('#__usergroups'));\n\n $db->setQuery($query);\n\n $existingUserGroups = $db->loadColumn();\n\n // Add our new user groups\n foreach ($this->userGroups as $userGroup)\n {\n if (!in_array($userGroup, $existingUserGroups))\n {\n $groupModel = Table::getInstance('Usergroup');\n\n $groupModel->save(array(\n 'title' => $userGroup,\n 'parent_id' => $registeredGroupId\n ));\n }\n }\n\n Table::getInstance('Usergroup')->rebuild();\n }", "protected function _beforeSave () {\n $data = $this->getValue();\n\n //Default to using the default - don't let the customer select nothing\n if (empty($data))\n $this->setValue(array(ZetaPrints_AccessControl_Helper_Data::NONE));\n elseif (count($data) > 1) {\n if (in_array(ZetaPrints_AccessControl_Helper_Data::NONE, $data)) {\n //Remove all groups but the \"none\" value\n $data = array(ZetaPrints_AccessControl_Helper_Data::NONE);\n\n Mage::getSingleton('adminhtml/session')\n ->addNotice(Mage::helper('adminhtml')\n ->__('Customer groups besides NONE were removed from the selection.'));\n } elseif (in_array(ZetaPrints_AccessControl_Helper_Data::ALL, $data)) {\n $data = array(ZetaPrints_AccessControl_Helper_Data::ALL);\n\n Mage::getSingleton('adminhtml/session')\n ->addNotice(Mage::helper('adminhtml')\n ->__('Customer groups besides ALL were removed from the selection.'));\n } elseif (in_array(ZetaPrints_AccessControl_Helper_Data::REGISTERED, $data)) {\n $data = array(ZetaPrints_AccessControl_Helper_Data::REGISTERED);\n\n Mage::getSingleton('adminhtml/session')\n ->addNotice(Mage::helper('adminhtml')\n ->__('Customer groups besides REGISTERED were removed from the selection.'));\n }\n\n $this->setValue($data);\n }\n\n return parent::_beforeSave();\n }", "public function getNewChildSelectOptions()\n {\n return array('value' => $this->getType(),\n 'label' => Mage::helper('bronto_reminder')->__('SKU'));\n }", "function insert_userGroup($data){\n $user = array();\n $user_group = array();\n\n // Insert user\n $user['id'] = $data['id'];\n $user['username'] = $data['username'];\n $user['password'] = md5($data['password']);\n $user['email'] = $data['email'];\n insertRecord(TAB_USERS, $user);\n\n // Insert user-role\n $group = $data['group'];\n $data['group'] = selectRecord(TAB_GROUPS, \"role = '$group'\")['id'];\n $user_group['userId'] = $data['id'];\n $user_group['groupId'] = $data['group'];\n insertRecord(TAB_USR_ROLE, $user_group);\n if($group['id'] == 1){\n $data_info = array();\n $data_info['employment'] = \"-\";\n $data_info['img_address'] = \"upload/user/user-default.png\";\n $data_info['user'] = $data['id'];\n insertRecord(TAB_PERSONALINFO, $data_info);\n }\n}", "public function actionCreateGroup()\n\t{\n\t\t$authManager=Yii::app()->authManager;\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['name']) && !empty($_POST['name']))\n\t\t{\n\t\t\t$authManager->createAuthItem($_POST['name'], CAuthItem::TYPE_ROLE, $_POST['description']);\n\t\t\t$this->redirect(array('/user/groups'));\n\t\t}\n\n\t\t$this->layout='//layouts/column1';\n\t\t$this->render('create_group',array(\n\t\t\t'authManager'=>$authManager,\n\t\t));\n\t}", "private function insertUserGroup() {\n\t $groupInfo = self::getQueryInfo('base_group', 'group_name', 'id');\n\t $userInfo = self::getQueryInfo('users', 'email', 'id');\n\t\t\n\t\tDB::table('base_user_group')->insert(['user_id'\t=> $userInfo['[email protected]'], 'group_id' => $groupInfo['sales.reporting']]);\n\t\tDB::table('base_user_group')->insert(['user_id'\t=> $userInfo['[email protected]'], 'group_id' => $groupInfo['customer.analytics']]);\n\t}", "public function dropdownOption(): array\n {\n return [\n 'icon' => 'user',\n 'text' => $this->model->username(),\n ] + parent::dropdownOption();\n }", "public function add()\n {\n $data['action'] = $this->url->link('/admin/users-groups/submit');\n\n $data['pages'] = $this->getPermissionPages();\n\n return $this->view->render('admin/users-groups/form', $data);\n }", "function settings_fields($option_group)\n {\n }", "public function account_group()\n {\n //goal: one controller and one module for complete genric Creation.\n $form_validation='account_group';\n $table_name='account_group';\n $view='accounts/account_group';\n $field='account_group_name';\n $this->insert_genric($form_validation,$table_name,$view,$field);\n }", "public function account_group()\n {\n //goal: one controller and one module for complete genric Creation.\n $form_validation='account_group';\n $table_name='account_group';\n $view='accounts/account_group';\n $field='account_group_name';\n $this->insert_genric($form_validation,$table_name,$view,$field);\n }", "function grantsCreateFieldHtml( $field_name = FALSE, $field_value = FALSE, $options = array() )\n{\n global $db, $grants_fields, $grants_primary_key;\n if ($field_name === FALSE or $field_value === FALSE) return FALSE; \n\n // print_r($grants_fields);\n // echo $field_name;\n\n if ( !in_array($field_name, array_keys($grants_fields)) ){\n trigger_error($field_name . ' is not a recognized field in the grants table.');\n return FALSE;\n }\n\n $field_value = encode($field_value);\n\n $return_html = '';\n\n // set up opening divs and spans\n $return_html .= '<div class=\"field\">';\n $return_html .= '<div class=\"form-group\">';\n\n // set up the label\n $return_html .= '<label class=\"control-label col-xs-4\" for=\"'. $field_name . '\">'. convertFieldName($field_name) .'</label>';\n\n // handle special fields, e.g. drop down lookups\n $special_fields = array('status');\n if ( in_array($field_name, $special_fields) ){\n switch ($field_name) {\n case 'status':\n\n $lookups = getLookups('grants', 'status');\n\n // set up the select element\n $return_html .= '<div class=\"col-xs-8\">';\n $return_html .= '<select class=\"form-control \" id=\"' . $field_name . '\" name=\"'. $field_name .'\">';\n\n // deal with the possibility that the db has a value that is not on the lookup list\n if ( !empty($field_value) && array_search($field_value, array_column($lookups, 'lookup_value')) === FALSE ){\n $return_html .= '<option class=\"drop-down-option-default\" value=\"\" selected disabled>'. $field_value .' [invalid option]</option>';\n } else {\n $return_html .= '<option class=\"drop-down-option-default\" value=\"\"></option>';\n }\n foreach ($lookups as $key => $lookup) {\n $return_html .= '<option class=\"drop-down-option\" value=\"'. $lookup['lookup_value'] .'\" ';\n if ( $lookup['lookup_value'] === $field_value ) {\n $return_html .= 'selected';\n }\n $return_html .= '>'. $lookup['label'] . '</option>';\n }\n $return_html .= '</select>';\n $return_html .= '</div>';\n break;\n }\n } else {\n // do stuff for normal fields\n\n // figure out if i have integer, string, text, date, etc.\n // based on the DBAL Types\n $field_type = $grants_fields[$field_name]->getType();\n\n // echo \"my field type: \";\n // echo $field_type;\n switch ($field_type) {\n case 'Integer':\n case 'Decimal':\n case 'String':\n case 'Date':\n // add a normal input field for all four types\n $return_html .= '<div class=\"col-xs-8\">';\n $return_html .= '<input class=\"form-control\" type=\"text\" id=\"' . $field_name . '\" name=\"'. $field_name .'\" value=\"'. $field_value .'\"';\n if ($field_name === $grants_primary_key) {\n $return_html .= ' readonly';\n }\n $return_html .= ' />';\n $return_html .= '</div>';\n break;\n // TODO make date fields a date picker input\n case 'Text':\n $return_html .= '<div class=\"col-xs-8\">';\n $return_html .= '<textarea class=\"form-control\" rows=\"2\" id=\"'. $field_name . '\" name=\"'. $field_name . '\">' . $field_value . '</textarea>';\n $return_html .= '</div>';\n break;\n default:\n // TODO add a default\n break;\n } // end switch\n } // end if field name is in special fields\n\n // apply options\n\n // close the divs and spans\n $return_html .= '</div>'; // close form-group; \n $return_html .= '</div>'; // close field;\n\n return $return_html;\n\n}", "function grabUsergroupInfo(){\n\t\t// Check for request forgeries\n\t\tJSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));\n\t\t\n\t\t$app \t= JFactory::getApplication();\n\t\t$db\t= JFactory::getDbo();\n\t\t$user \t= JFactory::getUser();\n\t\t$ugid \t= $app->input->get('ugid', 0, 'int');\n\t\t\n\t\t//if the user has JoomBri profile, redirect him to the dashboard\n \t\t$hasJBProfile = JblanceHelper::hasJBProfile($user->id);\t\n \t\tif($hasJBProfile){\n \t\t\t$link = JRoute::_('index.php?option=com_jblance&view=user&layout=dashboard', false);\n \t\t\t$this->setRedirect($link);\n \t\t\treturn;\n \t\t}\n\t\n\t\t$session = JFactory::getSession();\n\t\t$session->set('ugid', $ugid, 'register');\n\t\t$session->clear('skipPlan', 'register');\t//clear or reset skip plan session if the registration is restarted.\n\t\n\t\t$freeMode = JblanceHelper::isFreeMode($ugid);\n\t\n\t\tif($freeMode){\n\t\t\t// if the user is not registered, direct him to registration page else to profile page.\n\t\t\tif($user->id == 0)\n\t\t\t\t$return = JRoute::_('index.php?option=com_jblance&view=guest&layout=register&step=3', false);\n\t\t\telse\n\t\t\t\t$return = JRoute::_('index.php?option=com_jblance&view=guest&layout=usergroupfield', false);\n\t\n\t\t}\n\t\telse {\n\t\t\t// check for skipping of plan selection for this usergroup. If skipped, set the default plan for the usergroup\n\t\t\t$userHelper = JblanceHelper::get('helper.user');\n\t\t\t$ugroup = $userHelper->getUserGroupInfo(null, $ugid);\n\t\t\t\n\t\t\tif($ugroup->skipPlan){\n\t\t\t\t\n\t\t\t\t$query = \"SELECT id FROM #__jblance_plan WHERE default_plan=1 AND ug_id=\".$db->quote($ugid);\n\t\t\t\t$db->setQuery($query);\n\t\t\t\t$defaultPlanId = $db->loadResult();\n\t\t\t\t\n\t\t\t\tif(empty($defaultPlanId)){\n\t\t\t\t\t$app->enqueueMessage(JText::_('COM_JBLANCE_NO_DEFAULT_PLAN_FOR_THE_USERGROUP', 'error'));\n\t\t\t\t\t$return = JRoute::_('index.php?option=com_jblance&view=guest&layout=showfront', false);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$session->set('planid', $defaultPlanId, 'register');\n\t\t\t\t\t$session->set('gateway', 'banktransfer', 'register');\n\t\t\t\t\t$session->set('skipPlan', 1, 'register');\n\t\t\t\t\t// if the user is not registered, direct him to registration page else to profile page.\n\t\t\t\t\tif($user->id == 0)\n\t\t\t\t\t\t$return = JRoute::_('index.php?option=com_jblance&view=guest&layout=register&step=2', false);\n\t\t\t\t\telse \n\t\t\t\t\t\t$return = JRoute::_('index.php?option=com_jblance&view=guest&layout=usergroupfield&step=2', false);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$return\t= JRoute::_('index.php?option=com_jblance&view=membership&layout=planadd&step=2', false);\n\t\t\t}\n\t\t}\n\t\t$this->setRedirect($return);\n\t\treturn;\n\t}", "public function getNonSelectableLevelList() {}", "public function init() {\n\t\t\t$auth = Zend_Auth::getInstance()->setStorage(new Zend_Auth_Storage_Session('admin'));\n $user = $auth->getIdentity();\n $group = $user->code_groupe;\n\t\t\tif ($group == 'cm') {\n $menu = \"<li><a id=\\\"new\\\" href=\\\"/eu-preinscription/new\\\" style=\\\"font-size:9px\\\">Nouveau</a></li>\".\n\t\t\t \"<li><a id=\\\"new\\\" href=\\\"/eu-preinscription/index\\\" style=\\\"font-size:11px\\\">Inscriptions activees</a></li>\";\n $this->view->placeholder(\"menu\")->set($menu);\n } elseif($group == 'filiere' or $group == 'scmacnev' or $group == 'technopole') {\n\t\t $menu = \"<li><a id=\\\"new\\\" href=\\\"/eu-preinscription/newm\\\" style=\\\"font-size:9px\\\">Nouveau</a></li>\".\n\t\t\t \"<li><a id=\\\"new\\\" href=\\\"/eu-preinscription/morale\\\" style=\\\"font-size:11px\\\">Inscriptions activees</a></li>\";\n $this->view->placeholder(\"menu\")->set($menu); \n\t\t } elseif($group == 'productiong' or $group == 'productionsg' or $group == 'productiond' or $group == 'transformationg' or $group == 'transformationsg' or $group == 'transformationd' or $group == 'distributiong' or $group == 'distributionsg' or $group == 'distributiond') {\n\t\t $menu = \"<li><a id=\\\"new\\\" href=\\\"/eu-preinscription/newmcreneau\\\" style=\\\"font-size:9px\\\">Nouveau</a></li>\".\n\t\t\t \"<li><a id=\\\"new\\\" href=\\\"/eu-preinscription/morale\\\" style=\\\"font-size:11px\\\">Inscriptions activees</a></li>\";\n $this->view->placeholder(\"menu\")->set($menu); \n\t\t } elseif($group == 'scmg' or $group == 'scmsg' or $group == 'scmd') {\n\t\t $menu = \"<li><a id=\\\"new\\\" href=\\\"/eu-preinscription/newmose\\\" style=\\\"font-size:9px\\\">Nouveau</a></li>\".\n\t\t\t \"<li><a id=\\\"new\\\" href=\\\"/eu-preinscription/morale\\\" style=\\\"font-size:11px\\\">Inscriptions activees</a></li>\";\n $this->view->placeholder(\"menu\")->set($menu); \n\t\t } elseif($group == 'scmgpbf' or $group == 'scmsgpbf' or $group == 'scmdpbf') {\n\t\t $menu = \"<li><a id=\\\"new\\\" href=\\\"/eu-preinscription/newmpbf\\\" style=\\\"font-size:9px\\\">Nouveau</a></li>\".\n\t\t\t \"<li><a id=\\\"new\\\" href=\\\"/eu-preinscription/morale\\\" style=\\\"font-size:11px\\\">Inscriptions activees</a></li>\";\n $this->view->placeholder(\"menu\")->set($menu); \n\t\t } elseif($group == 'scmgkr' or $group == 'scmsgkr' or $group == 'scmdkr') {\n\t\t $menu = \"<li><a id=\\\"new\\\" href=\\\"/eu-preinscription/newmkr\\\" style=\\\"font-size:9px\\\">Nouveau</a></li>\".\n\t\t\t \"<li><a id=\\\"new\\\" href=\\\"/eu-preinscription/morale\\\" style=\\\"font-size:11px\\\">Inscriptions activees</a></li>\";\n $this->view->placeholder(\"menu\")->set($menu); \n\t\t }\n\t\t\t$this->view->jQuery()->enable();\n $this->view->jQuery()->uiEnable();\n\t\t\n\t\t //$liste = \"abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n $liste = \"abcdefghjkmnpqrstuvwxyz23456789ABCDEFGHJKLMNPQRSTUVWXYZ\";\n $codesecret = \"\";\n while(strlen($codesecret) != 8) {\n $codesecret .= $liste[rand(0,strlen($liste)-1)];\n\t\t\t}\n\t\t $this->view->codesecret = $codesecret;\n\t\t}", "public function permissionGroupField()\n\t{\n\t\treturn \"g_eco_loan\";\n\t}", "public function uultra_internal_user_menu_options()\r\n\t{\r\n\t\tglobal $xoouserultra;\r\n\t\t\r\n\t\t$modules = $this->uultra_get_user_navigator_for_membership($this->mIsPaidMembership);\r\n\t\t\r\n\t\t$html = ' <ul class=\"uultra_u_dashboard_main_menu\">';\t\t\r\n\t\t\r\n\t\t\tforeach($modules as $key => $module)\r\n\t\t\t{\r\n\t\t\t\t$slug = $module['slug'];\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif($module['visible']==1)\r\n\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t$html .= '<li>'.$xoouserultra->userpanel->get_user_backend_menu_new($module).'</li>';\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\t$html .= ' </ul>';\r\n\t\t\r\n\t\treturn $html;\r\n\t\t\t\t\r\n\t}", "public function ADStaff_Add_Group_Memner($User='',$GroupCode='',$Roles='',$Filter=''){\n\t \n\t $result_key = parent::Initial_Result();\n\t $result = &$this->ModelResult[$result_key];\n\t \n\t try{\n\t\t\n\t\t// 檢查參數\n\t if(!strlen($User)){\n\t\t throw new Exception('_SYSTEM_ERROR_PARAMETER_FAILS');\n\t\t}\n\t\t$role_set = json_decode(base64_decode(rawurldecode($Roles)),true); \n\t\t$filter_conf = rawurldecode($Filter);\n\t\t \n\t\t// 查詢使用者\n\t\t$DB_OBJ = $this->DBLink->prepare(SQL_AdStaff::CHECK_MEMBER_ACCOUNT());\n\t\t$DB_OBJ->bindValue(':uno'\t,$User);\n\t\t$DB_OBJ->bindValue(':user_id'\t,$User);\n\t\t$DB_OBJ->bindValue(':user_name'\t,$User);\n\t\t$DB_OBJ->bindValue(':user_mail'\t,$User);\n\t\tif(!$DB_OBJ->execute()){\n\t\t throw new Exception('_SYSTEM_ERROR_DB_ACCESS_FAIL'); \n\t\t}\n\t\t\n\t\t$user = array();\n\t if(!$user = $DB_OBJ->fetch(PDO::FETCH_ASSOC)){\n\t\t throw new Exception('_LOGIN_INFO_ACCOUNT_UNFOUND'); \n\t }\n\t\t\n\t\t$user['roles'] = array_keys(array_filter($role_set));\n\t\t$user['master']= 0;\n\t\t$user['filter']= $filter_conf;\n\t\t\n\t\t// 執行新增\n\t\t$DB_ROLE\t= $this->DBLink->prepare(SQL_AdStaff::ADMIN_STAFF_UPDATE_STAFF_ROLES(array_keys($role_set)));\n\t\t$DB_ROLE->bindValue(':uid' , $user['uno']);\n\t\t$DB_ROLE->bindValue(':gid' , $GroupCode);\n\t\t$DB_ROLE->bindValue(':master' , 0);\n\t\t$DB_ROLE->bindValue(':filter' , $filter_conf);\n\t\t$DB_ROLE->bindValue(':user' , $this->USER->UserID);\n\t\tforeach($role_set as $rid => $rset){\n\t\t $DB_ROLE->bindValue(':'.$rid , intval($rset) ,PDO::PARAM_INT);\n\t\t}\n\t\t\n\t\tif(!$DB_ROLE->execute()){\n\t\t throw new Exception('_SYSTEM_ERROR_DB_ACCESS_FAIL'); \n\t\t}\n\t\t\n\t\t$result['action'] = true;\t\t\n\t\t$result['data'] = $user;\t\t\n\t \n\t } catch (Exception $e) {\n $result['message'][] = $e->getMessage();\n }\n\t return $result;\n\t}", "public function addGroup() {\n\t\tif ($this->request -> isPost()) {\n\t\t\t$this->UserGroup->set($this->data);\n\t\t\tif ($this->UserGroup->addValidate()) {\n\t\t\t\t$this->UserGroup->save($this->request->data,false);\n\t\t\t\t$this->Session->setFlash(__('The group is successfully added'));\n\t\t\t\t$this->redirect('/addGroup');\n\t\t\t}\n\t\t}\n\t}", "public function init_group_options() {\r\n\t\tif ( ! empty( $this->settings['options'] ) ) {\r\n\r\n\t\t\tif ( is_array( $this->settings['options'] ) ) {\r\n\r\n\t\t\t\tforeach ( $this->settings['options'] as $settings ) {\r\n\r\n\t\t\t\t\tif ( ! apply_filters( 'tf_create_option_continue_' . $this->getOptionNamespace(), true, $settings ) ) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t$obj = TitanFrameworkOption::factory( $settings, $this->owner );\r\n\t\t\t\t\t$this->options[] = $obj;\r\n\r\n\t\t\t\t\tdo_action( 'tf_create_option_' . $this->getOptionNamespace(), $obj );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}" ]
[ "0.6589393", "0.63100547", "0.61045957", "0.6056466", "0.5951794", "0.5906072", "0.5804027", "0.57859534", "0.5715032", "0.5626358", "0.5617798", "0.5588708", "0.5574987", "0.55238295", "0.5520334", "0.5508784", "0.5500513", "0.54942256", "0.54919964", "0.54823387", "0.54696167", "0.54620093", "0.5456518", "0.5447054", "0.54437506", "0.54408914", "0.5392954", "0.5390339", "0.5368769", "0.53664535", "0.5357757", "0.535604", "0.53466946", "0.5343475", "0.53394455", "0.5310775", "0.53041893", "0.5286997", "0.5286636", "0.52682674", "0.52678597", "0.5251841", "0.5231957", "0.5231499", "0.5222412", "0.5222081", "0.52137107", "0.5199465", "0.51957905", "0.5188725", "0.51751864", "0.51720566", "0.51719564", "0.51703244", "0.51664543", "0.5163389", "0.51535183", "0.51402944", "0.5138122", "0.51381", "0.51291025", "0.5128408", "0.51277494", "0.51273984", "0.51124847", "0.511185", "0.511034", "0.51060206", "0.5098966", "0.5095844", "0.5095638", "0.50915694", "0.50909793", "0.50904596", "0.5089647", "0.50874054", "0.50839734", "0.50838614", "0.5083266", "0.5083257", "0.5073027", "0.50724673", "0.5058027", "0.50579983", "0.50537884", "0.50518775", "0.5050078", "0.5049886", "0.50489974", "0.5044906", "0.5044906", "0.50442886", "0.50378233", "0.5036545", "0.50351495", "0.50300103", "0.50258714", "0.5024822", "0.50234324", "0.5022365" ]
0.71953136
0
Verify if in a group string there is administrator group.
function sumo_verify_sumogroup($group=array()) { if(is_array($group) && !empty($group)) { $num_group = count($group); for($g=0; $g<$num_group; $g++) { $group_level = explode(":", $group[$g]); if($group_level[0] == 'sumo') return 'sumo:'.$group_level[1]; } } else return FALSE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isCouAdminGroup($group) {\n return ($group['CoGroup']['group_type'] == GroupEnum::Admins\n && !empty($group['CoGroup']['cou_id']));\n }", "function is_admin($array) {\n global $userquery;\n extract($array);\n if (!@$groupid)\n e(lang('Unknown group'));\n elseif (!@$group) {\n $group = $this->get_group($groupid);\n }\n\n if (!@$uid)\n e(lang('Unknown group user'));\n elseif (!@$user) {\n $user = $userquery->get_user_details($uid);\n }\n if (!$group)\n e(lang(\"Unknown group\"));\n if (!$user)\n e(lang(\"Unknown user\"));\n\n //Moving group admins into an array\n $groupAdmins = $group['group_admins'];\n $groupAdmins = json_decode($groupAdmins, true);\n\n if ($group['userid'] == $uid && $checkowner) {\n if (@$error)\n e(sprintf(lang('%s is owner of %s'), $user['username'], $group['group_name']));\n return true;\n }elseif (@in_array($uid, $groupAdmins)) {\n if (@$error)\n e(sprintf(lang('%s is admin of %s'), $user['username'], $group['group_name']));\n return true;\n }\n\n return false;\n }", "function isAdminOfThisGroup($groupId)\n{\n\t$_c_user_id = (isset($_COOKIE[$GLOBALS['c_id']]) ? $_COOKIE[$GLOBALS['c_id']] : 0);\n\n\tif ($_c_user_id != 0 && isUserLoggedIn($user_id)) {\n \n\t\t$db = new db_util();\n\n\t $sql = \"SELECT * \n\t FROM vm_group \n\t WHERE v_group_leader_id='$_c_user_id' \n\t AND v_group_id = '$groupId'\";\n\n\t $result = $db->query($sql);\n\n\t if ($result !== false) {\n\t // if there any error in sql then it will false\n\t if ($result->num_rows > 0) {\n\t // if the sql execute successful then it give \n\t \n\t return true;\n\t }\n\t }\n }\n \n return false;\n}", "public function UserIsMemberOfGroupAdminOrDie() {\n\t\t\n\t\t// User must be member of group adm or die\n\t\tif($_SESSION['groupMemberUser'] != 'adm') \n\t\t\tdie('You do not have the authourity to access this page');\n\t}", "public function IsAdministrator() {\n\t\t$user = self::GetUserProfile();\n\t\t$ifAdmin = false;\n\t\t\n\t\tif($this->IsAuthenticated()) {\n\t\t\tforeach($user['groups'] as $val) {\n\t\t\t\tif($val['akronym'] == 'admin')\n\t\t\t\t\t$ifAdmin=true;\n\t\t\t}\n\t\t}\n\t\t\t\n\t\treturn $ifAdmin;\n\t}", "function isGroupAdmin($authorisers)\r\n{\r\n if ($authorisers == 999 || $authorisers == 0)\r\n return false;\r\n\r\n\treturn in_array($authorisers, $GLOBALS['group_membership']) \r\n\t\t\t|| \r\n\t\t\t\tin_array(2, $GLOBALS['group_membership']);\r\n}", "public function isAdmin()\n {\n return $this->group_id === 1;\n }", "public function isAdmin() {\n\t\t$groupId = $this->Session->read('UserAuth.User.user_group_id');\n\t\tif($groupId==ADMIN_GROUP_ID) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private function checkUserAdministrator():bool\n {\n $user = JFactory::getUser();\n if (in_array(8, $user->groups)) {\n return true;\n }\n return false;\n }", "function check_user_has_group($list) { $ar=explode(',', $list);\nforeach ($ar as $group) {\n $group=trim($group);\n if ( isset($_SESSION['groups'][$group]) && $_SESSION['groups'][$group]) {\nreturn true; return false;\n}} }", "private function validateGroup(){\n\n\t global $db;\n\t \n\t #see if this is a guest, if so, do some hard-coded checks.\n\t\tif($this->user == \"guest\"){\n\t\t if(($this->user == \"guest\") and ($this->gid == 0)){\n\t\t return(true);\n\t\t }else{\n\t\t return(false);\n\t\t }\n\t\t}else{\n\t\t\t$db->SQL = \"SELECT id FROM ebb_groups WHERE id='\".$this->gid.\"' LIMIT 1\";\n\t\t\t$validateGroup = $db->affectedRows();\n\n\t\t\tif($validateGroup == 1){\n\t\t\t return (true);\n\t\t\t}else{\n\t\t\t return(false);\n\t\t\t}\n\t\t}\n\t}", "public function has_group($group_name){\n // Administrator has all the things.\n if($this->uid == 1){\n return TRUE;\n }\n\n foreach($this->get_groups() as $group){\n /* @var $group_user private_party_group */\n if($group->name == $group_name){\n return TRUE;\n }\n }\n return FALSE;\n }", "public function authGroup($user, $group) \n {\n $valid = true;\n\n if ($this->mode === 'authGroupsFE' && ($group['uid'] === '-333' || $group['uid'] === '-444')) {\n $valid = false;\n } \n\n return $valid;\n }", "public function isAdmin() {\n return (json_decode($this->group->permissions))->admin;\n }", "protected function _valid_group($group)\n\t{\n\t\tif ( ! Valid::not_empty($group))\n\t\t\treturn FALSE;\n\n\t\t// Can only consist of alpha-numeric values, dashes, underscores, and slashes\n\t\tif (preg_match('/[^a-zA-Z0-9\\/_-]/', $group))\n\t\t\treturn FALSE;\n\n\t\t// Must also contain at least one alpha-numeric value\n\t\tif ( ! preg_match('/[a-zA-Z0-9]/', $group))\n\t\t\treturn FALSE; // --group=\"/\" breaks things but \"a/b\" should be allowed\n\n\t\treturn TRUE;\n\t}", "public function customerGroupCheck()\r\n {\r\n if (Mage::app()->getStore()->isAdmin())\r\n $customer = Mage::getSingleton('adminhtml/session_quote')->getCustomer();\r\n else\r\n $customer = Mage::getSingleton('customer/session')->getCustomer();\r\n $customer_group = $customer->getGroupId();\r\n $group = Mage::getStoreConfig('customercredit/general/assign_credit');\r\n $group = explode(',', $group);\r\n if (in_array($customer_group, $group)) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public function isAdmin() {\n\t\tif ($this->getLevelId() == 2 || $this->isSupervisor())\n\t\t\treturn true;\n\n\t\t$groups = $this->getGroups();\n\t\tforeach ($groups as $group) {\n\t\t\tif ($group->getGroupId() == 2)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function isAdmin(){\n if($this->role->name = 'Administrator'){\n return true;\n }\n return false;\n }", "public function isCouAdminOrMembersGroup($group) {\n $ret = $this->isCouAdminGroup($group)\n || $this->isCouMembersGroup($group);\n \n return $ret;\n }", "public function isAdministrator()\n\t{\n\t\treturn ($this->flags & self::ADMINISTRATOR) == self::ADMINISTRATOR;\n\t}", "function group_is_only_admin($groupid, $userid=null) {\n static $result;\n\n $groupid = group_param_groupid($groupid);\n $userid = group_param_userid($userid);\n\n if (isset($result[$groupid][$userid])) {\n return $result[$groupid][$userid];\n }\n\n return $result[$groupid][$userid] = (group_user_access($groupid, $userid) == 'admin'\n && count_records('group_member', 'group', $groupid, 'role', 'admin') == 1);\n}", "public function isAdministrator() {\n\t $adminuserId = Mage::getSingleton('admin/session')->getUser()->getUserId();\t \n\t $role_data = Mage::getModel('admin/user')->load($adminuserId)->getRole()->getData();\n\t \n\t return in_array(self::ADMIN_ROLE_NAME, $role_data);\n\t}", "static function getIsAdmin() {\n\t\t$user = ctrl_users::GetUserDetail();\n\t\tif($user['usergroupid'] == 1) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function groupExists()\n\t{\n\t\tself::authenticate();\n\n\t\t$search = FormUtil::getPassedValue('group', null, 'GETPOST');\n\t\t$return = false;\n\t\tif($search == 'admin') {\n\t\t\t$return = true;\n\t\t} else {\n\t\t\tif($search != '') {\n\t\t\t\t$where = 'name = \\'' . mysql_escape_string($search) . '\\'';\n\t\t\t} else {\n\t\t\t\t$where = '';\n\t\t\t}\n\t\t\t$offset = (integer)FormUtil::getPassedValue('offset', -1);\n\t\t\tif($offset == null) {\n\t\t\t\t$offset = -1;\n\t\t\t}\n\t\t\t$limit = (integer)FormUtil::getPassedValue('limit', -1);\n\t\t\tif($limit == null) {\n\t\t\t\t$limit = -1;\n\t\t\t}\n\n\t\t\t$groups = UserUtil::getGroups($where, 'name', $offset, $limit);\n\n\t\t\tif(count($groups) >= 1) {\n\t\t\t\t$return = true;\n\t\t\t}\n\t\t}\n\n\t\treturn self::ret($return);\n\t}", "public function isMemberOf($group_name){\n return $this->permission()->isMemberOf($this,$group_name);\n }", "function virustotalscan_check_permissions($groups_comma)\r\n{\r\n global $mybb;\r\n // daca nu a fost trimis niciun grup ca si parametru\r\n if ($groups_comma == '') return false;\r\n // se verifica posibilitatea ca nu cumva sa fie mai multe grupuri trimise ca parametru\r\n $groups = explode(\",\", $groups_comma);\r\n // se creaza vectori cu acestee grupuri\r\n $add_groups = explode(\",\", $mybb->user['additionalgroups']);\r\n // se fac teste de apartenenta\r\n if (!in_array($mybb->user['usergroup'], $groups)) { \r\n // in grupul primar nu este\r\n // verificam mai departe daca este in cel aditional, secundar\r\n if ($add_groups) {\r\n if (count(array_intersect($add_groups, $groups)) == 0)\r\n return false;\r\n else\r\n return true;\r\n }\r\n else \r\n return false;\r\n }\r\n else\r\n return true;\r\n}", "public static function checkAdminControl($data)\n {\n if ($data->hasRole('administrator')) {\n return true;\n } else {\n return false;\n }\n }", "function isInGroup($user, $group)\n{\n\tglobal $db;\n\n\t$ret = $db->query('select * from group_user where group_user_user=' . $user . ' and group_user_group=' . $group);\n\n\tif(count($ret))\n\t\treturn true;\n\telse\n\t\treturn false;\n}", "public function isAdmin()\n {\n if (strtolower($this->name) == 'administrator')\n {\n return true;\n }\n\n return false;\n }", "function tx_notusergroup($cmd){\r\n\t\t$cmd = t3lib_div::trimExplode('|',$cmd,true);\r\n\t\t$gr_list = $GLOBALS['TSFE']->gr_list;\r\n\t\tforeach( $cmd as $grp) {\r\n\t\t\tif(t3lib_div::inList($gr_list,$grp)){\r\n\t\t\t\treturn false; // matched a group so condition is false\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true; // no Group Found so return true;\r\n\t}", "private function validName() {\n\t\t\tif($this->conn->getNumResults(\"SELECT name FROM usergroup WHERE name = '\".mysql_real_escape_string($this->name).\"' AND groupId != '\".$this->groupId.\"'\") == 0)\n\t\t\t\treturn true;\n\t\t\treturn false;\n\t\t}", "public function getIsAdministrator() {}", "private function isAdmin() {\n\t\t$user = $this->userSession->getUser();\n\t\tif ($user !== null) {\n\t\t\treturn $this->groupManager->isAdmin($user->getUID());\n\t\t}\n\t\treturn false;\n\t}", "public function isAdministrator() {\n\n return ($this->getLevel() === self::LEVEL_ADMINISTRATOR);\n\n }", "function isAdmin( $addon_id = null )\n {\n if ( is_null( $addon_id ) ) {\n $addon_id = isset( $GLOBALS['zariliaAddon'] ) ? $GLOBALS['zariliaAddon']->getVar( 'mid', 'n' ) : 1;\n } elseif ( intval( $addon_id ) < 1 ) {\n $addon_id = 0;\n }\n $addonperm_handler = &zarilia_gethandler( 'groupperm' );\n return $addonperm_handler->checkRight( 'addon_admin', $addon_id, $this->getGroups() );\n }", "public function isAdmin() : bool\n\t{\n\t\tif ($this->isSuperAdmin()) {\n\t\t\treturn true;\n\t\t}\n\n\t\t$this->loadUsergroups();\n\t\tif (in_array(App::USERGROUPS['admins'], $this->usergroup_ids)) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function isSegmentAdmin()\n\t{\n\t return $this->group->segmentadmin == 1;\n\t}", "public function isAdmin()\n {\n foreach($this->roles as $role)\n {\n if ($role==='administrator')\n {\n return true;\n }\n }\n return false;\n }", "public function allowed_group()\n\t{\n\t\t$which = func_get_args();\n\n\t\tif ( ! count($which))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// Super Admins always have access\n\t\tif (ee()->session->userdata('group_id') == 1)\n\t\t{\n\t\t\treturn TRUE;\n\t\t}\n\n\t\tforeach ($which as $w)\n\t\t{\n\t\t\t$k = ee()->session->userdata($w);\n\n\t\t\tif ( ! $k OR $k !== 'y')\n\t\t\t{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}\n\n\t\treturn TRUE;\n\t}", "public function is_group( $args, $assoc_args = array() ) {\n\t\t$alias = $args[0];\n\n\t\t$aliases = WP_CLI::get_runner()->aliases;\n\n\t\tif ( empty( $aliases[ $alias ] ) ) {\n\t\t\tWP_CLI::error( \"No alias found with key '{$alias}'.\" );\n\t\t}\n\n\t\t// how do we know the alias is a group?\n\t\t// + array keys are numeric\n\t\t// + array values begin with '@'\n\n\t\t$first_item = $aliases[ $alias ];\n\t\t$first_item_key = key( $first_item );\n\t\t$first_item_value = $first_item[ $first_item_key ];\n\n\t\tif ( is_numeric( $first_item_key ) && substr( $first_item_value, 0, 1 ) === '@' ) {\n\t\t\tWP_CLI::halt( 0 );\n\t\t}\n\t\tWP_CLI::halt( 1 );\n\n\t}", "public function isOwnerOfGroup($group);", "function checkGroup($ad, $userdn, $groupdn)\n{\n $result = ldap_read($ad, $userdn, \"(memberof={$groupdn})\", array(\n 'members'\n ));\n if (! $result)\n {\n return false;\n }\n \n $entries = ldap_get_entries($ad, $result);\n \n return ($entries['count'] > 0);\n}", "public function isAdmin(){\n if($this->role==\"admin\"){\n return true;\n }\n return false;\n }", "function _lean_is_admin() {\n global $user;\n if (in_array('administrator', array_values($user->roles))) {\n return true;\n } else {\n return false;\n }\n}", "public function isAdministrator()\n {\n return $this->role ? $this->role->name === Role::NAME_ADMINISTRATOR : false;\n }", "public function isAdmin(){\n $role = $this->role->type;\n\n return $role === 'admin';\n }", "public static function isMemberOf(User $user,String $groupname){\r\n foreach($user->groups as $group){\r\n if($groupname ==$group->name)\r\n return true;\r\n }\r\n return false;\r\n }", "public function isUserAdmin()\n\t{\n\t if ($this->isAdmin()) {\n\t \treturn true;\n\t }\n\t \n\t $permissions = $this->group->permissions;\n\t \n\t return array_key_exists('system', $permissions)\n\t && in_array('user', $permissions['system']);\n\t}", "public function hasGroup( $group_name )\n {\n return in_array( $group_name, $this->groupNames );\n }", "public function in_group(Group $group) {\r\n\t\tif ($this->user_id && $group->group_id) {\r\n\t\t\t$sql = \"SELECT group_id FROM `group_members` WHERE group_id = '$group->group_id' AND user_id = '$this->user_id\";\r\n\t\t\t$result = $this->dbc->query($sql)\r\n\t\t\tor die ($this->dbc->error);\r\n\t\t\tif ($result->num_rows == 1) {\r\n\t\t\t\treturn true;\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}\r\n\t\telse {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "function AdminSecurityCheck(){\n\t\t$User = new User();\n\t\t$user = $this->session->userdata('Group');\n\t\tif ($user){\n\t\t\tif($user == 1){\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "public function isModerator() {\n if (!isset($this->groups)) {\n $this->groups = explode(',', $this->config['moderator']);\n array_walk($this->groups, 'trim');\n }\n\n return $this->modx->user->isMember($this->groups);\n }", "function _isGroup($address)\n {\n // First comma not in quotes, angles or escaped:\n $parts = explode(',', $address);\n $string = $this->_splitCheck($parts, ',');\n\n // Now we have the first address, we can reliably check for a\n // group by searching for a colon that's not escaped or in\n // quotes or angle brackets.\n if (count($parts = explode(':', $string)) > 1) {\n $string2 = $this->_splitCheck($parts, ':');\n return ($string2 !== $string);\n } else {\n return false;\n }\n }", "public function isUserOrGroupSet() {}", "private static function checkSettingGroupName($setting_group_name)\n\t{\n\t\tif (!\\preg_match(self::REG_SETTING_GROUP_NAME, $setting_group_name)) {\n\t\t\t\\trigger_error(\\sprintf('Invalid setting group name: %s', $setting_group_name), \\E_USER_ERROR);\n\t\t}\n\t}", "public function isAdmin()\n {\n return $this->role == 'Administrator' ? true : false;\n }", "function isMemberOfThisGroup($groupId)\n{\n\t$_c_user_id = (isset($_COOKIE[$GLOBALS['c_id']]) ? $_COOKIE[$GLOBALS['c_id']] : 0);\n\n\tif ($_c_user_id != 0 && isUserLoggedIn()) {\n \n\t\t$db = new db_util();\n\n\t $sql = \"SELECT * \n\t FROM vm_member_list \n\t WHERE vm_member_id='$_c_user_id' \n\t AND vm_group_id = '$groupId'\";\n\n\t $result = $db->query($sql);\n\n\t if ($result !== false) {\n\t // if there any error in sql then it will false\n\t if ($result->num_rows > 0) {\n\t // if the sql execute successful then it give \n\t \n\t return true;\n\t }\n\t }\n }\n \n return false;\n}", "function checkGroupEx($ad, $userdn, $groupdn)\n{\n $result = ldap_read($ad, $userdn, '(objectclass=*)', array(\n 'memberof'\n ));\n if (! $result)\n {\n return false;\n }\n \n $entries = ldap_get_entries($ad, $result);\n if ($entries['count'] <= 0)\n {\n return false;\n }\n \n if (empty($entries[0]['memberof']))\n {\n return false;\n }\n \n for ($i = 0; $i < $entries[0]['memberof']['count']; $i ++)\n {\n if ($entries[0]['memberof'][$i] == $groupdn)\n {\n return true;\n }\n elseif (checkGroupEx($ad, $entries[0]['memberof'][$i], $groupdn))\n {\n return true;\n }\n }\n \n return false;\n}", "function checkIfExistingGroup($chamber, $group) {\r\n $sql = $this->db->prepare(\"SELECT groupID FROM GROUPS WHERE name='$group' AND chamberID=$chamber\");\r\n if ($sql->execute()){\r\n if (!($sql->rowCount() == 0))\r\n return $sql->fetch(PDO::FETCH_ASSOC);\r\n else\r\n return false;\r\n }\r\n }", "function buildGroup($group_name) {\n return check_plain($group_name);\n }", "function is_admin()\n\t{\n\t\treturn strtolower($this->ci->session->userdata('DX_role_name')) == 'admin';\n\t}", "function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) { \n // Untuk keamanan, asumsikan bahwa visitor GAK dikenal \n $isValid = False; \n\n // Saat visitor udah login ke situs ini, variabel Session MM_Username nge-set sama dengan usernamenya.. \n // Jadinya, kita tahu kalau user GAK login jika variabel Session blank. \n if (!empty($UserName)) { \n // Selain bisa login, lu boleh ngakses ke ganya beberapa user berdasarkan ID saat mereka login.\n // Parse string ke arrays.\n $arrUsers = Explode(\",\", $strUsers); \n $arrGroups = Explode(\",\", $strGroups); \n if (in_array($UserName, $arrUsers)) { \n $isValid = true; \n } \n // Atau, lu bisa ngebuat restrict access hanya ke beberapa user berdasarkan username.\n if (in_array($UserGroup, $arrGroups)) { \n $isValid = true; \n } \n if (($strUsers == \"\") && true) { \n $isValid = true; \n } \n } \n return $isValid; \n}", "function find_by_groupName($val)\n {\n global $db;\n $sql = \"SELECT group_name FROM user_groups WHERE group_name = '{$db->escape($val)}' LIMIT 1 \";\n $result = $db->query($sql);\n return($db->num_rows($result) === 0 ? true : false);\n }", "public function isAdmin(string $name): bool;", "public function aim_is_admin($nick)\r\n\t{\r\n\t\tif ($this->core->user['admin'] === true) {\r\n\t\t\tif (is_array($this->core->user['admins'])) {\r\n\t\t\t\tif (in_array($this->core->aim_normalize($nick), $this->core->user['admins'])) return true;\r\n\t\t\t} \r\n\t\t} \r\n\t\treturn false;\r\n\t}", "public function isAdmin()\n {\n return $this->hasCredential('admin');\n }", "public function inGroup($name) {\r\n // Check if the user belongs to the group\r\n if (in_array($name, $this->groups)) {\r\n // If then do, return true\r\n return true;\r\n }\r\n // User doesn't belong to group, return false\r\n return false;\r\n }", "public static function isMod( $group, $user, $ignoreadmin=false ) {\n\t\tif( Login::isAdmin($user) && !$ignoreadmin ) return true;\n\t\tif(!($db = new DB()) ) return false;\n\t\tif(!($result = $db->query( \"SELECT 1 FROM `group_participants` WHERE `group_id` Like '§0' AND `user_id` Like '§1' AND `mod` Like 1\",[$group,$user]) ) ) return false;\n\t\treturn $result->num_rows > 0;\n\t}", "public static function authAdmin() {\n if (Yii::$app->user->can(\"administrator\") || Yii::$app->user->can(\"adminsite\")) {\n return TRUE; //admin ใหญ่\n }\n }", "function validAdminUser( $user_session ) {\n\t$ValidUser = 0;\n\t\n\tif ( array_key_exists( 'idn_super_admin', $user_session ) ) {\n\t\tif ( $user_session[ 'idn_super_admin' ] == 1 ) $ValidUser = 1;\n\t}\n\n\tif ( $ValidUser == 0 ) {\n\t\treturn FALSE;\n\t}\n\t\n\treturn TRUE;\n}", "private function isAdmin() : bool\n {\n return $this->role('admin');\n }", "public function isAdministrator()\n {\n return $this->hasRole(RoleInterface::ROLE_ADMINISTRATOR);\n }", "function isAdmin()\n\t{\n\t // if we've already worked this out, return it.\n\t\tif (isset($this->systemadmin)) {\n\t\t\treturn $this->systemadmin;\n\t\t}\n\t\t\n\t\t$admin = false;\n\t\t\n\t\tif ($this->group->systemadmin == 1) {\n\t\t $admin = true;\n\t\t}\n\t\t\n\t\t$this->systemadmin = $admin;\n\t\t\n\t\treturn $this->systemadmin;\n\t}", "function isAdmin()\n\t{\n\t\treturn $this->role == 3;\n\t}", "public function is_valid_group( $group ) {\n if (\n ! is_object( $group )\n || ! isset( $group->list_id )\n || ! isset( $group->category_id )\n || ! isset( $group->id )\n ) {\n return false;\n }\n return true;\n }", "function isAdmin($lvl){\n\treturn ($lvl >= 3);\n}", "public function hasGroup()\n {\n return $this->_has('_group');\n }", "function isOnlyAdministrator() {\n return $this->isAdministrator() && (Users::countAdministrators() == 1);\n }", "private function _isMemberOfRequiredGroup($memberGroups){\n\n if($this->settings['requireGroup'] === false)\n return true;\n\n $groupNameList = Hash::extract($memberGroups, '{n}.name');\n\n if(is_array($this->settings['requireGroup'])) {\n foreach($groupNameList as $group){\n if(in_array($group, $this->settings['requireGroup']))\n return true;\n }\n return false;\n }\n\n return in_array($this->settings['requireGroup'], $groupNameList);\n }", "function isAdmin(){\n\t\treturn ($this->userlevel == ADMIN_LEVEL || $this->username == ADMIN_NAME);\n\t}", "function exists($group)\n {\n return false;\n }", "public function isAdmin(){\n if($this->role->name == 'Administrator' && $this->is_active == 1){\n return true;\n }\n return false;\n }", "public function isAdmin();", "public function checkfor_groupname($name = '')\n {\n $query = 'SELECT gid FROM '.$this->Tbl['adb_group'].' WHERE owner='.$this->uid.' AND name=\"'.$this->esc($name).'\"';\n list ($result) = $this->fetchrow($this->query($query));\n return ($result) ? $result : false;\n }", "function checkIfDesacivable($memberOf, $refusedGroup=\"\"){\n $blacklisted = FALSE;\n foreach ($memberOf as $group) {\n if ($group == $refusedGroup){\n $blacklisted = TRUE;\n }\n }\n return $blacklisted;\n}", "function isOrgEditor($wpUser){\n for($i = 0; $i < count($wpUser->roles); $i++){\n if(strpos($wpUser->roles[$i], SARON_ROLE_PREFIX . SARON_ROLE_ORG) !== FALSE){ // CHECK IF THE USER IS A MEMBER OF THE GROUP (test)saron_edit\n return true;\n }\n } \n return false; \n }", "public static function isAdmin()\n {\n \t$user = Session::get('loginuser');\n \tif ($user == env('ADMINEMAIL')) {\n \t\treturn true;\n \t} else {\n \t\treturn false;\n \t}\n }", "public function isModuleAdmin($username,$module);", "public function isAdmin()\n {\n return $this->role == 1;\n }", "function check ($groups=NULL)\n\t{\n\t\t//header ('Location: index_alpha.php');\n\t\t//echo //\"hello\";\n\t\tglobal $xnyo_parent;\n\n\t\t// no groups? bleh, guess they can go in\n\t\tif (is_null($groups) || empty($groups))\n\t\t\treturn true;\n\n\t\t// a string? split it into the array\n\t\tif (!is_array($groups))\n\t\t\t$groups = explode(\",\", preg_replace('/\\s/', '', $groups));\n\n\t\t// If not allowed to be logged in\n\t\tif (in_array('none', $groups))\n\t\t\tif (!empty($xnyo_parent->user->username))\n\t\t\t\treturn false;\n\t\t\telse\n\t\t\t\treturn true;\n\t\t\n\t\t// guess we have to be logged in then hey\n\t\t//if (empty($xnyo_parent->user->user)) {\t//\tfuck\t\t\t\t\n\t\tif (empty($xnyo_parent->user['user'])) {\t\t\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t//print_r($groups);\n\t\t//echo \"HELLO<br>\";\n\t\t// required to be logged in, and they are\n\t\tif (in_array('required', $groups) || in_array('all', $groups))\n\t\t\treturn true;\n\n\t\t// ok, cycle the list\n\t\tforeach ($groups as $group) {\n\n\t\t\t// if its their username, fire away\n\t\t\tif (strtoupper($group) == strtoupper($_SESSION['auth']['user']))\n\t\t\t\treturn true;\n\n\t\t\tif (is_array($_SESSION['auth']['groups']))\n\t\t\t{\n\t\t\t\t// make the group into a regexp\n\t\t\t\t$group = preg_replace(\"/\\*/\", \".*?\", $group);\n\t\t\t\t$group = preg_replace(\"/([\\@\\(\\)\\|\\[\\]])/\", \"\\\\\\\\\\\\1\", $group);\n\n\t\t\t\t// see if our regexp matches a current group\n\t\t\t\tforeach ($_SESSION['auth']['groups'] as $var)\n\t\t\t\t\tif (preg_match(\"/$group/i\", $var))\n\t\t\t\t\t\treturn true;\n\n\t\t\t}\n\t\t}\n\n\t\t// guess they arent allowed in hey\n\t\treturn false;\n\n\t}", "public function isAdmin()\n {\n return ($this->username === \"admin\");\n }", "public function isAdmin()\n {\n return $this->role == 'admin';\n }", "public function isAdministrator(): bool\n {\n $roleModel = config('admin.database.roles_model');\n\n return $this->isRole($roleModel::ADMINISTRATOR);\n }", "function isAdminL($login) {\n\n\t\tif ($login != '' && isset($this->admin_list['TMLOGIN'])) {\n\t\t\treturn in_array($login, $this->admin_list['TMLOGIN']);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function hasGroup()\n {\n return isset($this->arrConfig['group']);\n }", "public function memberIsAdmin()\n {\n return $_SESSION['__COMMENTIA__']['member_role'] === 'admin';\n }", "protected function isAdminUser() {}", "public static function isAdministrator()\n {\n $roleModel = config('admin.database.roles_model');\n\n return ! config('admin.permission.enable') || Admin::user()->isRole($roleModel::ADMINISTRATOR);\n }", "public function is_admin()\n {\n $drupal_user = user_load($this->uid);\n if (in_array('administrator', array_values($drupal_user->roles))) {\n return true;\n }\n return false;\n }", "public function isAdmin()\n {\n if($this->u_r_id==null )\n {\n $this->u_r_id = array();\n $this->u_r_id[]=0;\n\n\n }\n foreach ($this->u_r_id as $int)\n {\n if($int==1)\n return true;\n }\n return false;\n }" ]
[ "0.68641746", "0.6828965", "0.67900985", "0.67118156", "0.6695179", "0.6694232", "0.66465706", "0.65762436", "0.64642215", "0.6455326", "0.6421155", "0.6342011", "0.63225305", "0.6309849", "0.6253698", "0.62411594", "0.6217164", "0.61095804", "0.6107043", "0.6079614", "0.6069142", "0.60425484", "0.6020349", "0.5974391", "0.5941388", "0.5922587", "0.5907565", "0.590496", "0.5898592", "0.58949", "0.5866893", "0.5866576", "0.5860572", "0.5828723", "0.5823083", "0.5822542", "0.5821528", "0.5817101", "0.5816385", "0.5785313", "0.5777815", "0.5770418", "0.57703966", "0.5761524", "0.5756386", "0.57476676", "0.57468796", "0.57450324", "0.5739898", "0.5735366", "0.5728546", "0.57275057", "0.5727384", "0.5706602", "0.5703973", "0.56953776", "0.56939936", "0.5690087", "0.56893665", "0.5668072", "0.566298", "0.56460094", "0.5638273", "0.56361127", "0.56351876", "0.5633152", "0.56297684", "0.56242764", "0.5623791", "0.5623345", "0.562315", "0.5613432", "0.56064373", "0.55982006", "0.5594266", "0.5593148", "0.5593131", "0.55733913", "0.5571487", "0.5568196", "0.55658424", "0.5565374", "0.5539925", "0.5539028", "0.5536164", "0.55348164", "0.55274194", "0.55220085", "0.5520636", "0.5506647", "0.55047846", "0.5502972", "0.5502772", "0.55027306", "0.5500113", "0.5497366", "0.5492182", "0.54892975", "0.54869103", "0.5486629" ]
0.6504394
8
The configuration of this Structure
public function configuration() { return array( 'uniquename' => 'text', 'extension' => '.txt', 'type' => 'text', 'viewable' => true, 'removable' => true, 'installable' => false, 'executable' => true, 'keepdata' => true ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function config()\n {\n }", "public function getConfiguration();", "public function getConfiguration();", "public function getConfiguration();", "public function getConfiguration() {}", "public function getConfiguration() {}", "protected function getConfiguration() {}", "public static function config();", "public function getConfig() {\r\n\r\n\t}", "public static function getConfiguration();", "public function getConfigurarion()\n {\n return $this->configuration;\n }", "function getConfiguration() ;", "public function getConfig();", "public function getConfig();", "public function getConfig();", "public function getConfig();", "public function getConfig();", "public function getConfig();", "public function getConfig();", "public function getConfig();", "public function config()\n\t{\n\t\treturn $this->config;\n\t}", "public function config()\n\t{\n\t\treturn $this->config;\n\t}", "public function config(): Config;", "public function config()\n {\n return $this->config;\n }", "abstract public function getConfig();", "public function getConfiguration()\n {\n return self::$config_array;\n }", "public function getConfig() {}", "public function getConfiguration() {\n return $this->configuration;\n }", "public function getConfiguration()\n {\n return $this->_config;\n }", "public function configure();", "public function getConfig(){\n return $this->config;\n }", "public function get_config()\n\t{\n\t\treturn $this->cfg;\n\t}", "public function getConfiguration() {\n return $this->configuration;\n }", "public function createConfig()\n\t{\n\t}", "public function getConfig() \n {\n return $this->config;\n }", "public function configure() {\r\n\t\r\n\t}", "public function getConfiguration()\n {\n $configuration = parent::getConfiguration();\n $configuration['debug'] = isset($configuration['debug']) ? $configuration['debug'] : false;\n $configuration['fileUri'] = $this->container->getParameter(\"mapbender.uploads_dir\") . \"/data-store\";\n\n if (isset($configuration[\"schemes\"]) && is_array($configuration[\"schemes\"])) {\n foreach ($configuration[\"schemes\"] as $key => &$scheme) {\n if (is_string($scheme['dataStore'])) {\n $storeId = $scheme['dataStore'];\n $dataStore = $this->container->getParameter('dataStores');\n $scheme['dataStore'] = $dataStore[ $storeId ];\n $scheme['dataStore'][\"id\"] = $storeId;\n //$dataStore = new DataStore($this->container, $configuration['source']);\n }\n if (isset($scheme['formItems'])) {\n $scheme['formItems'] = $this->prepareItems($scheme['formItems']);\n }\n }\n }\n return $configuration;\n }", "public function getConfig()\n {\n return $this['config'];\n }", "abstract protected function getConfig();", "public function getConfiguration()\n\t{\n\t\treturn $this->configuration;\n\t}", "public function getConfig() {\n \t\n \t// Return our configuration\n \treturn $this->aConfig;\n }", "public function configuration()\n {\n\n return array(\n 'installable' => false,\n 'type' => 'npc'\n );\n }", "public function getConfig(){\n\t\treturn $this->_config;\n\t}", "public function getConfiguration() {\n return $this->__configuration;\n }", "abstract public function configure();", "public function getConfiguration()\n {\n return $this->configuration;\n }", "private function configure() {\n\t\t$statement = $this -> database -> query(\"SELECT * FROM worlds\");\n\t\twhile ($worldData = $statement -> fetch(PDO::FETCH_ASSOC)) {\n\t\t\t$this -> worlds[$worldData['world']] = new World($worldData);\n\t\t}\n\t\t$statement = $this -> database -> query(\"SELECT * FROM server.configs\");\n\t\twhile ($configData = $statement -> fetch(PDO::FETCH_ASSOC)) {\n\t\t\t$this -> configs[$configData['key_']] = new Config($configData['key_'], $configData['value'], $configData['dataType']);\n\t\t}\n\t}", "private function _Config() {\n $data['ttcConfig'] = $this->cNavMenuBuilder->Config();\n return $data;\n }", "public function config()\n {\n return $this->context->getConfig();\n }", "public function getConfig()\n {\n return $this->config;\n }", "abstract public function generateConfiguration();", "protected function configure() {\n\n $this->xmlconfig = array(\n \"name\" => array(\"xpath\" => \"mads:authority/mads:name\", \"class_name\" => \"mads_name\"),\n\n \"permanent\" => array(\"xpath\" => \"mads:affiliation[mads:position = 'permanent resident']\",\n \"class_name\" => \"mads_affiliation\"),\n \"current\" => array(\"xpath\" => \"mads:affiliation[mads:position != 'permanent resident']\",\n \"class_name\" => \"mads_affiliation\"),\n \"netid\" => array(\"xpath\" => \"mads:identifier[@type='netid']\"),\n );\n }", "function getConfig()\n {\n return $this->config;\n }", "public function configure() {\n\t\t}", "public function getConfig()\r\n {\r\n return $this->_file;\r\n }", "public function getModuleConfiguration();", "public function getConfig() {\r\n return $this->config;\r\n }", "public function getConfig()\n {\n return $this->_config;\n }", "public function getConfig()\n {\n return $this->_config;\n }", "public function getConfig(): Configuration;", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfiguration(): array;", "public function getConfiguration(): array;", "abstract protected function defineConfiguration();", "protected function getPlateformeConfig()\r\n {\r\n return $this->config;\r\n }", "public static function getConfig()\n {\n }", "public function getConfig()\n\t{\n\t\treturn $this->config;\n\t}", "public function getConfig()\n\t{\n\t\treturn $this->config;\n\t}", "public function getConfig()\n\t{\n\t\treturn $this->config;\n\t}", "public function getConfig()\n\t{\n\t\treturn $this->config;\n\t}", "public function getConfig() {\n return $this->_config;\n }", "public function configAll() {\n \n return $this->config;\n \n }", "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}", "public function __construct()\n {\n\n // $configuration = $this->get('configuration');\n\n\n }", "public static function config() {\n require_once( 'includes/widget-config.php' );\n }", "protected function addConfiguration()\n {\n $this['config'] = $this->share(\n function () {\n $user_config_file = (file_exists('phpdoc.xml'))\n ? 'phpdoc.xml'\n : 'phpdoc.dist.xml';\n\n return \\Zend\\Config\\Factory::fromFiles(\n array(\n __DIR__.'/../../data/phpdoc.tpl.xml',\n $user_config_file\n ), true\n );\n }\n );\n }", "public function getConfiguration(): array\n {\n }", "protected static function config()\n {\n return [\n 'view' => ['viewRenderClass' => 'Ice:Php', 'layout' => ''],\n 'input' => [\n 'resources' => [\n 'default' => [\n 'modules' => [\n 'Ice' => [\n 'vendor_js' => [\n 'path' => 'js/vendor/',\n 'js' => ['-modernizr-2.8.3.min.js'],\n 'css' => [],\n 'isCopy' => false,\n ],\n 'vendor_css' => [\n 'path' => 'css/vendor/',\n 'js' => [],\n 'css' => ['empty.css'],\n 'isCopy' => false,\n ],\n 'vendor' => [\n 'path' => 'vendor/',\n 'js' => [],\n 'css' => [],\n 'isCopy' => false,\n ],\n 'common' => [\n 'path' => '',\n 'js' => [],\n 'css' => ['css/flags.css', 'css/preloader.css'],\n 'isCopy' => false,\n ],\n 'module' => [\n 'path' => 'Ice/',\n 'js' => ['Helper/String.js', 'Ui/Form.js', 'Ui/Menu.js', 'Ui/Data.js'],\n 'css' => [],\n 'isCopy' => false,\n ],\n ],\n ],\n// 'vendors' => [\n// 'jquery/jquery-ui' => [\n// 'jquery' => [\n// 'path' => '/',\n// 'js' => ['external/jquery/jquery.js', '-jquery-ui.min.js'],\n// 'css' => ['-jquery-ui.min.css', '-jquery-ui.structure.min.css', '-jquery-ui.theme.min.css'],\n// 'isCopy' => true,\n// ],\n// ],\n// 'twbs/bootstrap' => [\n// 'bootstrap' => [\n// 'path' => 'dist/',\n// 'js' => ['-js/bootstrap.min.js'],\n// 'css' => ['-css/bootstrap.min.css', '-css/bootstrap-theme.min.css'],\n// 'isCopy' => true,\n// 'css_replace' => ['url(../', 'url('],\n// ],\n// ],\n// ],\n ],\n ],\n 'js' => ['default' => []],\n 'css' => ['default' => []],\n 'routeName' => ['default' => ''],\n 'context' => ['default' => '/resource/']\n ],\n 'ttl' => 3600\n ];\n }", "abstract protected function configs(): array;", "public function getConfig() : \\codename\\core\\config {\r\n return $this->config;\r\n }", "public function getConf() {\n return static::$conf;\n }", "protected function config()\n {\n return $this->make('config');\n }", "public function config()\r\n {\r\n return function (ConfigDB $config) {\r\n\r\n $config->titleTitle = 'ФИО';\r\n\r\n $config->hasOne = [\r\n 'User' => [\r\n 'user_id' => 'id',\r\n 'deleted_by' => 'id',\r\n 'created_by' => 'id',\r\n 'modified_by' => 'id',\r\n ],\r\n 'PlaceCountry' => [\r\n 'place_country_id' => 'id',\r\n ],\r\n 'UserCompany' => [\r\n 'user_company_id' => 'id',\r\n ],\r\n ];\r\n $config->hasMany = [\r\n 'EyufDocument' => [\r\n 'eyuf_scholar_id' => 'id',\r\n ],\r\n 'EyufFile' => [\r\n 'eyuf_scholar_id' => 'id',\r\n ],\r\n 'EyufInvoice' => [\r\n 'eyuf_scholar_id' => 'id',\r\n ],\r\n 'EyufReport' => [\r\n 'eyuf_scholar_id' => 'id',\r\n ],\r\n 'EyufTicket' => [\r\n 'eyuf_scholar_id' => 'id',\r\n ],\r\n ];\r\n $config->title = Az::l('Стипендиат');\r\n\r\n return $config;\r\n };\r\n }", "public function configure() {}", "public function configure() {}", "public function config()\r\n {\r\n return function (ConfigDB $config) {\r\n\r\n $config->hasOne = [\n 'User' => [\n 'deleted_by' => 'id',\n 'created_by' => 'id',\n 'modified_by' => 'id',\n ],\n ];\r\n $config->hasMany = [\n 'DragForm' => [\n 'drag_config_id' => 'id',\n ],\n ];\r\n $config->title = Az::l('Системные формы');\r\n\r\n return $config;\r\n };\r\n }" ]
[ "0.7617266", "0.7471242", "0.7471242", "0.7471242", "0.7403366", "0.7402185", "0.72337025", "0.7201638", "0.7007635", "0.6997054", "0.6947026", "0.6907836", "0.68893486", "0.68893486", "0.68893486", "0.68893486", "0.68893486", "0.68893486", "0.68893486", "0.68893486", "0.6883524", "0.6883524", "0.6869635", "0.683896", "0.68304074", "0.68041414", "0.67933935", "0.6784443", "0.6781765", "0.67277193", "0.67018616", "0.66591984", "0.66257286", "0.6613556", "0.6597969", "0.6577296", "0.6574937", "0.6571543", "0.65587866", "0.6552355", "0.65480125", "0.6545185", "0.65242445", "0.65196556", "0.6519214", "0.6489076", "0.6482617", "0.6481856", "0.6479157", "0.64785963", "0.64728194", "0.64697504", "0.6465915", "0.6457869", "0.6444444", "0.6423787", "0.6402507", "0.6397314", "0.6397314", "0.6395587", "0.6385988", "0.6385988", "0.6385988", "0.6385988", "0.6385988", "0.6385988", "0.6385988", "0.6385988", "0.6385988", "0.6385988", "0.6385988", "0.6385988", "0.6385988", "0.6385988", "0.6385988", "0.6376531", "0.6376531", "0.6375288", "0.63729435", "0.6372941", "0.63681895", "0.63681895", "0.63681895", "0.63681895", "0.63655233", "0.6343336", "0.6338703", "0.63378525", "0.63341135", "0.6317277", "0.6306182", "0.630548", "0.6305306", "0.6288808", "0.62855285", "0.6283853", "0.6278638", "0.62556833", "0.62556833", "0.62510294" ]
0.65699035
38
Default size of 16.0
public function getDefaultSize() { return 16.0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getSize() ;", "function getSize() { return $this->_size; }", "public function getSize()\n {\n return 0;\n }", "public function getSize() {}", "public function getSize() {}", "public function getSize() {}", "public function getSize() {}", "public function getSize() {}", "public function getSize() {}", "public function getSize()\n {\n }", "function LayoutSize() {\n\treturn 1;\n }", "protected function randomSize()\n {\n return mt_rand(300, 700) / 100;\n }", "public function setDefaultSize() {\n return $this->setSize('medium');\n }", "function calc_size()\n\t{\n\t}", "public function getOptimizedSize(): int;", "public function getSize();", "public function getSize();", "public function getSize();", "public function getSize();", "public function getSize();", "public function getSize();", "public function getSize();", "public function getSize();", "public function getSize();", "public function getSize()\n {\n return \"Small\";\n }", "public function get_size()\n\t\t{\n\t\t\treturn $this->width().'x'.$this->height();\n\t\t}", "public function getCurrentSize() : int{\n return $this->currentSize;\n }", "public function getSize() \n {\n return $this->_size; \n }", "function getSize()\r\n\t{\r\n\t\treturn $this->size;\r\n\t}", "function getSize() {\n return $this->size;\n }", "public function opengraph_image_size() {\n return 'image--huge';\n }", "public function size() {\n return count($this->_values) * 32;\n }", "function setSize($size)\n\t{\n\t\t$this->size = 0+$size;\n\t}", "function getDefaultSampleSize(){\n\t\t return self::defaultSample;\n\t }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize(): int;", "public function getSize(): int;", "public function getSize(): int;", "public function getSize(): int;", "abstract protected function getSize(): int;", "public function getSize(): string;", "public function GetMinSize ();", "public function getSize()\n {\n return $this->details['bits'];\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getDefaultWidth() {}", "public function differentSizesDataProvider() {}", "public function getData() {\n\t\treturn [\n\t\t\t16 => [\"type\" => 0, \"value\" => $this->size]\n\t\t];\n\t}", "public function getOriginalSize(): int;", "public function getFormatSize() {}", "public function getSize() {\n return 8 * (strlen(Util::base64url_decode($this->data['n'])) - 1);\n }", "public function getSize() {\n\t \t return $this->size;\n\t }", "public function set_spacing_sizes()\n {\n }", "public function getBytesFromSizeMeasurementDataProvider() {}", "public function getSize() {\r\n return $this->iSize;\r\n }", "public function __construct($size = 50)\n {\n $this->size = $size;\n }", "public function getSize() {\n\n return $this->size;\n\t}", "public function getSize()\n {\n return null;\n }", "public function getSize()\n {\n return null;\n }", "public function GetMaxSize ();", "public function formatSizeDataProvider() {}", "public function getSize()\n {\n return $this->_Size;\n }", "public function get_size()\n {\n }", "function getOutputSize() {\n return $this->helper->getOutputSize();\n }", "function getOutputSize() {\n return $this->helper->getOutputSize();\n }", "function getOutputSize() {\n return $this->helper->getOutputSize();\n }", "function getOutputSize() {\n return $this->helper->getOutputSize();\n }", "function getOutputSize() {\n return $this->helper->getOutputSize();\n }", "public function setSize($size);", "public function getMaxSizeOfInstructions() {}", "public function getSize() {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public static function get_sizes()\n {\n }", "function custom_sizes() {\n\n}", "public function getIVSize();", "public function getMaxFrameSize(): int\n {\n }", "public function getSize() {\n return $this->_size;\n }", "function getImageSize() \n { \n return array($this->_width,$this->_height); \n }", "private function buildSize() {\n return '&size=' . $this->mappingOptions->size;\n }", "abstract public function getBoxSize();", "public function getOriginalSize():string\n {\n }", "public function getLabelSize() : string\n\t{\n\t\tif(is_null($this->labelSize)) {\n\t\t\t// default size\n\t\t\tif($this->getUseDestinationConfirmMail()) {\n\t\t\t\t// 7x3 is the default size for destination confirm mail\n\t\t\t\treturn LabelSize::SIZE_7X3;\n\t\t\t} else {\n\t\t\t\t// 4x6 is default size otherwise\n\t\t\t\treturn LabelSize::SIZE_4X6;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $this->labelSize;\n\t}", "public function getSize()\n {\n\n if ($this->size) {\n return $this->size;\n }\n\n $this->size = new Size($this->__get('width'), $this->__get('height'));\n\n return $this->size;\n }", "public function getSize() {\n return array(\"x\" => imagesx($this->current), \"y\" => imagesy($this->current));\n }", "public function getSize()\n {\n return $this->size;\n }", "public function setSize()\n {\n //Available sizes\n $sizes = [\n 'xs' => '16',\n 'sm' => '24',\n 'md' => '32',\n 'lg' => '48',\n 'xl' => '64',\n 'xxl' => '80',\n ];\n\n //Size class\n if (isset($sizes[$this->compParams['size']])) {\n $this->data['classList'][] = $this->getBaseClass() . \"--size-\" . $this->compParams['size'];\n } else {\n $this->data['classList'][] = $this->getBaseClass() . \"--size-inherit\";\n }\n\n return $this->data;\n }", "public function getAbsoluteSize();", "public function getSize()\n\t{\n\t\treturn $this->size;\n\t}", "public static function size ()\n {\n return ['x' => static::$_map_width, 'y' => static::$_map_height];\n }", "public function getCompressedSize():string\n {\n }", "private function getAliasSize()\n {\n $this->seek($this->offset + 14);\n\n return $this->readLong();\n }", "function pendrell_image_default_size( $size ) {\n if ( PENDRELL_COLUMNS > 1 )\n return 'medium';\n return 'large';\n}", "public function getCompressedSize(): int {}" ]
[ "0.6417494", "0.6411294", "0.6395799", "0.6395283", "0.63939905", "0.63938457", "0.63938457", "0.63938457", "0.63938457", "0.6357715", "0.6350477", "0.6342044", "0.6294065", "0.6263397", "0.62267184", "0.62229484", "0.62229484", "0.62229484", "0.62229484", "0.62229484", "0.62229484", "0.62229484", "0.62229484", "0.62229484", "0.6221314", "0.6131976", "0.6053629", "0.6030743", "0.5990705", "0.5979063", "0.5964253", "0.59579283", "0.59541047", "0.5943189", "0.59378636", "0.59378636", "0.59203136", "0.59203136", "0.59203136", "0.59203136", "0.59062415", "0.59017354", "0.58492315", "0.5838559", "0.5830764", "0.5799093", "0.57900536", "0.578099", "0.57780516", "0.5738421", "0.5737374", "0.57261163", "0.57226694", "0.5719867", "0.57149535", "0.5713655", "0.57114375", "0.5708296", "0.5708296", "0.57025695", "0.5686339", "0.5682523", "0.56815267", "0.56697536", "0.56697536", "0.56697536", "0.56697536", "0.56697536", "0.56693214", "0.5656743", "0.5655669", "0.5655022", "0.5655022", "0.5655022", "0.5655022", "0.5655022", "0.5655022", "0.5655022", "0.5655022", "0.56455904", "0.56416273", "0.56391895", "0.5623894", "0.5611544", "0.5608456", "0.5606427", "0.5606284", "0.5599908", "0.5584495", "0.55834675", "0.5581993", "0.55806667", "0.55779916", "0.55768776", "0.556416", "0.55628484", "0.5560195", "0.55556357", "0.55501163", "0.55488497" ]
0.82963765
0
Default level of 2.2
public function getDefaultLevel() { return 2.2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDefaultLevel()\n {\n return 5; # level binh thuong\n }", "function version() {\n\t\treturn 2;\n\t}", "public function getVersion()\n {\n return 2;\n }", "public function getDefaultAllLevel()\n {\n return 100; # dung chon loc thong tin\n }", "abstract public function getMinimumLevel()\n\t{\n\t\treturn 0.5;\n\t}", "function setCompatibilityLevel($value)\n {\n $this->_props['CompatibilityLevel'] = $value;\n }", "public function getLevel() {}", "public function initializeSecurityLevel() {\n\t\t// Standart level (GREEN).\n\t\t$this->securityLevel = self::SECURITYLEVEL_GREEN;\n\n\n\t\tif($this->XSSReport !== false) {\n\t\t\t$xssSecurityLevel = $this->XSSReport->getSecurityLevel();\n\t\t\tif($xssSecurityLevel < $this->securityLevel)\n\t\t\t\t$this->securityLevel = $xssSecurityLevel;\n\t\t}\n\t\t\t\n\t\tif($this->SQLInjectionReport !== false) {\n\t\t\t$sqlinjSecurityLevel = $this->SQLInjectionReport->getSecurityLevel();\n\t\t\tif($sqlinjSecurityLevel < $this->securityLevel)\n\t\t\t\t$this->securityLevel = $sqlinjSecurityLevel;\n\t\t}\n\t\t\t\n\t}", "function getLevel();", "public function set_level($level = \"INFO\") {\n if(Validator::isa($level,\"string\") \n && ($k=array_search($level,$this->order))!==false) \n $this->level = $this->order[$k];\n else \n $this->level = \"INFO\";\n }", "function setLevel($level);", "public static function getVersion() {\n return '2.1';\n }", "public function __construct( $level )\n {\n parent::__construct( $level );\n }", "public function addLevel( $value){\n return $this->_add(2, $value);\n }", "private function setLevel()\n\t{\n\t\t$level_count = $this->db->cacheGetOne(\"SELECT COUNT(*) FROM `bin_level` WHERE 1\");\n\t\tif ($level_count > 1) // binary level\n\t\t{\n\t\t\t$this->levelType = 1;\n\t\t\t$this->levelArr = $this->db->getAssoc(\"SELECT `id`, `name` FROM `bin_level` WHERE 1\");\n\t\t}else{\n\t\t\t$level_count = $this->db->cacheGetOne(\"SELECT COUNT(*) FROM `bin_serial_type` WHERE 1\");\n\t\t\tif ($level_count > 1)\n\t\t\t{\n\t\t\t\t$this->levelType = 2;\n\t\t\t\t$this->levelArr = $this->db->getAssoc(\"SELECT `id`, `name` FROM `bin_serial_type` WHERE 1\");\n\t\t\t}else{\n\t\t\t\t$level_count = $this->db->cacheGetOne(\"SELECT COUNT(*) FROM `bbc_user_group` WHERE `is_admin`=0\");\n\t\t\t\tif ($level_count > 2) // user group level\n\t\t\t\t{\n\t\t\t\t\t$this->levelType = 3;\n\t\t\t\t\t$this->levelArr = $this->db->getAssoc(\"SELECT `id`, `name` FROM `bbc_user_group` WHERE `is_admin`=0\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function getDefaultLevelAdmin()\n {\n return 3;\n }", "public function setLevel($level);", "function privCheckFormat($p_level = 0)\n {\n }", "public function getLevel()\n {\n return$this->level;\n }", "function getMultilevel() {\n\t\t}", "public function getLevel();", "public function getLevel();", "private static function getLevel() {\n if (empty(static::$level)) {\n static::$level = Conf::getIniVal(Conf::LOG_LEVEL, 3);\n }\n return static::$level;\n }", "function getCompatibilityLevel()\n {\n return $this->_props['CompatibilityLevel'];\n }", "public function setVerbosity($level)\n {\n }", "protected function getMinimumLogLevel() {}", "public function getLevel(): int {\n return $this->level;\n\n }", "function getLevel() {\n\t\treturn $this->_level;\n\t}", "function getVersion() {\r\n\t\treturn '1.1';\r\n\t}", "function getLevelTruck()\r\n {\r\n static $level;\r\n if (!isset($level)) $level = new CustomLoggerLevel(LOG4PHP_LEVEL_TRUCK_INT, 'TRUCK', 0);\r\n return $level;\r\n }", "public function level() {\n\n\t\t$this->count_attempts( 300 );\n\n\t\tswitch ( TRUE ) {\n\t\t\tcase ( $this->attempts > 2 && $this->attempts <= 100 ) :\n\t\t\t\treturn Logger::NOTICE;\n\t\t\tcase ( $this->attempts > 100 && $this->attempts <= 590 ) :\n\t\t\t\treturn Logger::WARNING;\n\t\t\tcase ( $this->attempts > 590 && $this->attempts <= 990 ) :\n\t\t\t\treturn Logger::ERROR;\n\t\t\tcase ( $this->attempts > 990 ) :\n\t\t\t\treturn Logger::CRITICAL;\n\t\t}\n\n\t\treturn 0;\n\t}", "public function getLevel(): int\n {\n return $this->level;\n }", "public function getLevel(): int\n {\n return $this->level;\n }", "public function getVersion()\n\t{\n\t}", "function sitemgr_upgrade1_2()\n{\n\t$GLOBALS['egw_setup']->db->update('egw_sitemgr_modules',array('module_name' => 'news_admin'),array('module_name' => 'news'),__LINE__,__FILE__);\n\n\t$GLOBALS['setup_info']['sitemgr']['currentver'] = '1.3.001';\n\treturn $GLOBALS['setup_info']['sitemgr']['currentver'];\n}", "function toLevel($arg, $defaultLevel = null)\r\n {\r\n if ($arg === null) {\r\n return $defaultLevel;\r\n }\r\n if (is_int($arg)) {\r\n switch($arg) {\r\n case LOG4PHP_LEVEL_TRUCK_INT: return CustomLoggerLevel::getLevelTruck();\r\n default: return LoggerLevel::toLevel($arg, $defaultLevel);\r\n }\r\n } else {\r\n switch(strtoupper($arg)) {\r\n case 'TRUCK': return CustomLoggerLevel::getLevelTruck();\r\n default: return LoggerLevel::toLevel($arg, $defaultLevel);\r\n }\r\n }\r\n }", "function plugin_version_estimation() {\n return [\n 'name' => 'Оценка качества работы с заявкой',\n 'version' => PLUGIN_ESTIMATION_VERSION,\n 'author' => 'Roman Gonyukov',\n 'license' => '',\n 'homepage' => '',\n 'requirements' => [\n 'glpi' => [\n 'min' => '9.2',\n ]\n ]\n ];\n}", "private function getDefaultClass(int $level): string\n {\n return sprintf('level%d', $level);\n }", "public function level($n) {\n\t\treturn $this->sets[':default']->level($n);\n\t}", "public function getSupportLevel()\n {\n return $this->supportLevel;\n }", "function sitemgr_upgrade1_4_002()\n{\n\treturn $GLOBALS['setup_info']['sitemgr']['currentver'] = '1.5.001';\n}", "public function getLevel() {\n\t\treturn isset($this->level) ? (int) $this->level : 1;\n\t}", "public function getLevel()\n {\n return $this->level;\n }", "public function getLevel()\n {\n return $this->level;\n }", "public function getLevel()\n {\n return $this->level;\n }", "public function getLevel()\n {\n return $this->level;\n }", "public function getLevel()\n {\n return $this->level;\n }", "public function getLevel()\n {\n return $this->level;\n }", "public function getLevel()\n {\n return $this->level;\n }", "public function getLevel() : int\n\t{\n\t\treturn $this->level;\n\t}", "public function getLevel() {\n return intval($this->level);\n }", "public function setVerbosity(int $level);", "public function ford()\n\t\t{\n\t\t\tif ($this->_depth <= 2.5)\n\t\t\t{\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\telseif ($this->_depth < 3.0) {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\telse{return 2;}\n\t\t}", "public function testRollbarConfigInternalCheckIgnoredLevelTooLow(): void\n {\n Rollbar::init([\n 'access_token' => $this->getTestAccessToken(),\n 'environment' => 'testing-php',\n 'verbose_logger' => $this->verboseLogger,\n 'minimum_level' => LogLevel::ERROR,\n ]);\n Rollbar::logger()->getConfig()->internalCheckIgnored(LogLevel::WARNING, \"Some message\");\n $this->assertVerboseLogContains('Occurrence\\'s level is too low', LogLevel::DEBUG);\n }", "function getServiceLevel();", "function __construct($_name = \"\", $_lastname = \"\", $_level = 1) {\n parent::__construct($_name, $_lastname);\n $this->level = $_level;\n\n }", "public function getLevel() {\n return $this->level;\n }", "function getNucleusPatchLevel() {\n return 0;\n}", "public function getLevel() : Level {\r\n\r\n return $this->level;\r\n\r\n }", "protected function http_version()\n {\n }", "public function level(): array {\n return [\n 'confirmation',\n 'information',\n 'warning',\n 'error',\n ];\n }", "function phpgwapi_upgrade0_9_14_505()\n\t{\n\t\t$GLOBALS['phpgw_setup']->oProc->query(\"UPDATE phpgw_access_log SET lo='0' WHERE lo=''\",__LINE__,__FILE__);\n\t\t$GLOBALS['phpgw_setup']->oProc->AlterColumn('phpgw_access_log','lo',array(\n\t\t\t'type' => 'int',\n\t\t\t'precision' => '4',\n\t\t\t'nullable' => True,\n\t\t\t'default' => '0'\n\t\t));\n\n\t\t$GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.14.506';\n\t\treturn $GLOBALS['setup_info']['phpgwapi']['currentver'];\n\t}", "function om_warnings_get_warning_levels()\n{\n\t// check if cache file exists, not - generate it\n\tif (!file_exists(FORUM_CACHE_DIR.'cache_om_warnings_levels.php'))\n\t\tom_warnings_generate_levels_cache();\n\n\trequire FORUM_CACHE_DIR.'cache_om_warnings_levels.php';\n\treturn $om_warnings_levels;\n}", "public function getDebugLevel()\n {\n }", "public function getLevelList(){\n return $this->_get(2);\n }", "public function getReadableLevel()\n {\n // we need to keep LEVEL array in this inverted format because of Symfony form elements\n return array_search($this->level, self::LEVELS);\n }", "public function getVerbosity()\n {\n }", "public function version()\n {\n\n }", "public function setLevel($level) {\n $this->level = $level;\n }", "public function GetLevel()\n {\n return $this->level;\n }", "public function getLevel()\n {\n return $this->get(self::_LEVEL);\n }", "public function getLevel()\n {\n return $this->get(self::_LEVEL);\n }", "public function getLevel()\n {\n return $this->get(self::_LEVEL);\n }", "public function getLevel()\n {\n return $this->get(self::_LEVEL);\n }", "public function getLevel()\n {\n return $this->get(self::_LEVEL);\n }", "public function getLevel()\n {\n return $this->get(self::_LEVEL);\n }", "private function __construct() {\n // Open source version.\n }", "protected static function defaultLockVersion()\n {\n return 1;\n }", "public function getAuthLevel() {\n }", "public static function getCardEaseXMLSDKVersion() {\n\t\treturn \"1.2.1\";\n\t}", "function adminbartweak_version() {return \"1.0.0\";}", "function ROHSTOFFLAGER($level)\r\n {\r\n \t//Debugmeldung\r\n \t$this->debug(\"Erzeuge ROHSTOFFLAGER - Objekt\");\r\n \t\r\n \t//Variablen setzen\r\n\t\t$this->level = $level;\r\n }", "function plugin_compatible_with_this_geeklog_version ()\n{\n return true;\n}", "private function _log_version_number () {\n\t\tupdate_option( $this->_token . '_version', $this->_version );\n\t}", "public function getLogLevel()\n {\n return $this->level;\n }", "public function getLogLevel()\n {\n return 'info';\n }", "function get_complevel() {\n\t$uname = posix_uname();\n\tswitch ($uname['sysname']) {\n\t case 'Linux':\n\t\t$cl = (1 - $this->linux_loadavg()) * 10;\n\t\t$level = (int)max(min(9, $cl), 0);\n\t\tbreak;\n\t case 'FreeBSD':\n\t\t$cl = (1 - $this->freebsd_loadavg()) * 10;\n\t\t$level = (int)max(min(9, $cl), 0);\n\t\tbreak;\n\t default:\n\t\t$level = 3;\n\t\tbreak;\n\t}\n\treturn $level;\n }", "public function getDefaultMethodNotMain()\n {\n return 2;\n }", "public function set_autodiscovery_level($level = \\SIMPLEPIE_LOCATOR_ALL)\n {\n }", "public function set_level($value) {\n\t\tif (is_anint($value)) {\n\t\t\t$this->init_from_type_and_level($this->type, $value);\n\t\t}\n\t}", "public static function transactionLevel()\n {\n }", "public function getKnackLogLevel();", "public function getMajorVersion() {}", "public function getPriority()\n {\n return 75;\n }", "public function getLogLevel()\r\n {\r\n return $this->level;\r\n }", "function MaximumCMSVersion() {\n\t\treturn \"2.0.0\";\n\t}", "abstract public function getVersion();", "abstract public function getVersion();", "abstract public function getVersion();", "abstract public function getVersion();" ]
[ "0.6657274", "0.6528692", "0.6376654", "0.6209509", "0.6036789", "0.59814835", "0.5944007", "0.5918303", "0.5902884", "0.5896877", "0.58793926", "0.5874584", "0.5835072", "0.5828635", "0.57994044", "0.5774966", "0.5741831", "0.5708294", "0.5705493", "0.5674099", "0.5645869", "0.5645869", "0.5637729", "0.5609277", "0.55943686", "0.55769575", "0.55440134", "0.55314296", "0.55274576", "0.5489179", "0.54713607", "0.5457155", "0.5457155", "0.5440818", "0.54355514", "0.5431867", "0.54241705", "0.54119873", "0.53968245", "0.53942823", "0.5387977", "0.53826356", "0.5377492", "0.5377492", "0.5377492", "0.5377492", "0.5377492", "0.5377492", "0.5377492", "0.5374938", "0.5366891", "0.5362441", "0.53450334", "0.53408474", "0.53332883", "0.5322593", "0.530968", "0.5300947", "0.5292315", "0.52801025", "0.527692", "0.526432", "0.52609426", "0.52544075", "0.5245582", "0.5233747", "0.5231766", "0.5211914", "0.52042973", "0.5197454", "0.51811266", "0.51811266", "0.51811266", "0.51811266", "0.51811266", "0.51811266", "0.5174322", "0.51725507", "0.5155059", "0.51501876", "0.515013", "0.51462156", "0.5140011", "0.5138061", "0.5134598", "0.51308924", "0.5122485", "0.5121667", "0.5121504", "0.511455", "0.51141393", "0.51118606", "0.5109464", "0.5108848", "0.5107443", "0.5096503", "0.50962424", "0.50962424", "0.50962424", "0.50962424" ]
0.79486316
0
Sets the value to the container
public function set($id, $value);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "public function setValue($value) {}", "function setValue($key, $val)\r\n {\r\n $this->container[$key] = $val;\r\n }", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "public function setValue($value);", "protected function value_set( $value ){\n\t\tif( is_array( $value ) ){\n\t\t\t$this->value = $value;\n\t\t}elseif( is_serialized( $value ) ){\n\t\t\t$this->value = unserialize( $value );\n\t\t}elseif( 0 === strpos( $value, '{' ) && is_object( $_value = json_decode( $value ) ) ){\n\t\t\t$this->value = (array) $_value;\n\t\t}else{\n\t\t\t$this->value = $value;\n\t\t}\n\t}", "abstract public function setValue($value);", "protected function setValue( array &$container, array $key, $value ) {\n\t\t$element = &$container;\n\t\tforeach ( $key as $subkey ) {\n\t\t\t$element = &$element[$subkey];\n\t\t}\n\t\t$element = $value;\n\t}", "public function __set($key, $value)\n\t{\n\t\t$this->container[$key] = $value;\n\t}", "function setValue($value){\r\n\t\t$this->value = $value;\r\n\t}", "function setValue($value) {\n $this->value = $value;\n }", "function setValue ($value) {\n\t\t$this->_value = $value;\n\t}", "public function setValue($value) {\n $this->value = $value->value;\n }", "public function setValue($value){\n $this->_value = $value;\n }", "#[\\ReturnTypeWillChange]\n\tpublic function offsetSet( $offset, $value ) {\n\t\tif ( is_null( $offset ) ) {\n\t\t\t$this->container[] = $value;\n\t\t} else {\n\t\t\t$this->container[ $offset ] = $value;\n\t\t}\n\t}", "#[\\ReturnTypeWillChange] \n public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "#[\\ReturnTypeWillChange] \n public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function setValue($value)\n {\n $this->_value = new Zend_Memory_Value($value, $this);\n }", "protected function doSet($value)\n {\n }", "public function offsetSet($key,$value) {\n\t\t$this->sets[$key] = $value;\n\t}", "public function offsetSet($offset, $value) : void\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value) : void\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "#[\\ReturnTypeWillChange]\n public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "#[\\ReturnTypeWillChange]\n public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "#[\\ReturnTypeWillChange]\n public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "#[\\ReturnTypeWillChange]\n public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "#[\\ReturnTypeWillChange]\n public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "#[\\ReturnTypeWillChange]\n public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "#[\\ReturnTypeWillChange]\n public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "#[\\ReturnTypeWillChange]\n public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "#[\\ReturnTypeWillChange]\n public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "#[\\ReturnTypeWillChange]\n public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "#[\\ReturnTypeWillChange]\n public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "#[\\ReturnTypeWillChange]\n public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "#[\\ReturnTypeWillChange]\n public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "#[\\ReturnTypeWillChange]\n public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "#[\\ReturnTypeWillChange]\n public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "#[\\ReturnTypeWillChange]\n public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "#[\\ReturnTypeWillChange]\n public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "#[\\ReturnTypeWillChange]\n public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "#[\\ReturnTypeWillChange]\n public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }" ]
[ "0.7102084", "0.7102084", "0.7102084", "0.7102084", "0.7102084", "0.7102084", "0.7102084", "0.7102084", "0.7102084", "0.7102084", "0.7102084", "0.7101816", "0.7101816", "0.70642626", "0.70180964", "0.70180964", "0.70180964", "0.70180964", "0.70180964", "0.70180964", "0.70180964", "0.70180964", "0.70180964", "0.70180964", "0.6938745", "0.6877547", "0.6858856", "0.68079513", "0.67789656", "0.6772985", "0.6764473", "0.6763842", "0.6751018", "0.6629089", "0.6606037", "0.6606037", "0.6601909", "0.6594207", "0.6535157", "0.65293753", "0.65293753", "0.65205985", "0.65205985", "0.65205985", "0.65205985", "0.65205985", "0.65205985", "0.65205985", "0.65205985", "0.65205985", "0.65205985", "0.65205985", "0.65205985", "0.65205985", "0.65205985", "0.65205985", "0.65205985", "0.65205985", "0.65205985", "0.65205985", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268", "0.6503268" ]
0.0
-1
Process callback, Remove Drupal specific items from the image array.
protected function imageProcess($value) { if (static::isArrayNumeric($value)) { $output = array(); foreach ($value as $item) { $output[] = $this->imageProcess($item); } return $output; } return array( 'id' => $value['fid'], 'self' => file_create_url($value['uri']), 'filemime' => $value['filemime'], 'filesize' => $value['filesize'], 'width' => $value['width'], 'height' => $value['height'], 'styles' => $value['image_styles'], ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function postProcessArray() {\n foreach (self::$files as $key => $item) {\n // remove link from tree nodes\n if (in_array($item['id'], self::$_treenodes)) {\n self::$files[$key]['href'] = ModUtil::url('DocTastic', $this->userType, 'view');\n }\n if ($item['parent_id'] == 0) continue;\n // remove entries with disallowed extensions\n if (in_array(FileUtil::getExtension($item['name']), $this->_disallowedExtensions)) {\n unset(self::$files[$key]);\n }\n }\n }", "function prostarter_preprocess_image(&$variables) {\n unset(\n $variables['width'],\n $variables['height'],\n $variables['attributes']['width'],\n $variables['attributes']['height']\n );\n }", "protected function processImage() {}", "function bethel_remove_filter_from_gallery_images ($edit) {\n remove_filter ('wp_get_attachment_image_attributes', 'bethel_filter_image_attributes_for_gallery', 10, 2);\n remove_filter ('wp_get_attachment_link', 'bethel_filter_attachment_link_for_gallery', 10, 6);\n return $edit;\n}", "function remove_custom_image_header()\n {\n }", "public function remove_image() {\n\t\t$this->join_name = \"images\";\n\t\t$this->use_layout=false;\n\t\t$this->page = new $this->model_class(Request::get('id'));\n\t\t$image = new WildfireFile($this->param(\"image\"));\n\t\t$this->page->images->unlink($image);\n\t}", "public function remove_image($item)\n\t{\n\t\tthrow new Exception('Not implemented yet.');\n\t}", "public function handleDeleteImage(){\n\n $session = $this->hlp->sess(\"images\");\n $img = $session->toDelete;\n $listingID = $this->hlp->sess(\"listing\")->listingID;\n $imgs = $this->listings->getListingImages($listingID);\n \n unset($imgs[$img]);\n\n //reindexed array after unset\n $newArray = array();\n \n foreach ($imgs as $image){\n array_push($newArray, $image);\n }\n \n unset($imgs);\n \n //final array - updated - without deleted images to store in db\n $images = serialize($newArray);\n \n $this->listings->updateListingImages($listingID, $images);\n $this->redirect(\"Listings:editListing\", $listingID);\n }", "function cmc_framework_markets_landing_process_uploaded_file($form, &$form_state) {\n \n for ($i=1; $i<=5; $i++) {\n $tab = 'tab' . $i;\n $image_key = 'cmc_framework_markets_tab' . $i . '_image';\n $image_key_delete = 'cmc_framework_markets_tab' . $i . '_image_delete';\n \n if ($form_state['values'][$image_key] != 0) {\n // The new file's status is set to 0 or temporary and in order to ensure\n // that the file is not removed after 6 hours we need to change it's status\n // to 1.\n $file = file_load($form_state['values'][$image_key]);\n $file->status = FILE_STATUS_PERMANENT;\n file_save($file);\n \n // delete current file\n $image_fid = variable_get($image_key, '');\n if ($image_fid) {\n $f = file_load($image_fid);\n if (!empty($f->fid) && file_delete($f)) {\n drupal_set_message($f->filename . ' deleted');\n }\n }\n \n }\n else {\n $image_delete = $form_state['values'][$image_key_delete];\n if (!$image_delete) {\n unset($form_state['values'][$image_key]);\n }\n else {\n $image_fid = variable_get($image_key, '');\n $file = file_load($image_fid);\n \n if (file_delete($file)) {\n drupal_set_message($file->filename . ' deleted');\n }\n else {\n drupal_set_message($file->filename . ' could not be deleted. ');\n \n // so we still keep a record fo the file\n unset($form_state['values'][$image_key]);\n }\n }\n }\n }\n\n}", "public function cleanImagesAction()\n {\n parent::cleanImagesAction();\n $this->clearRespizrImageCache();\n }", "private function processImageStack() {\n\n foreach($this->imagePath as $imagePath) {\n $this->processSingleImage($imagePath);\n }\n }", "public function actionRemoveFromBasket()\n\t{\n\t\t$removeThis = array($_GET['imageid']);\n\t\t$basket = Yii::app()->user->getState('basketContents');\n\t\t$newBasket = array_diff($basket,$removeThis);\n\t\t// reduces useless keys, blank keys, from the array\n\t\t$newBasket = array_values($newBasket);\n\t\tYii::app()->user->setState('basketContents',$newBasket);\n\t}", "function _wp_post_thumbnail_context_filter_remove()\n {\n }", "function ujExif_db_delete_item_listener($_data,$_user,$_conf,$_args,$event)\n{\n if ($_args['module'] == 'ujExif') {\n // We don't anything for this module \n return $_data;\n }\n while (true) {\n // Do a thousand at a time - lower memory usage\n $_sp = array(\n \"limit\" => 1000,\n \"search\" => array(\n \"exif_module = {$_args['module']}\",\n \"exif_item_id = {$_args['_item_id']}\"\n ),\n \"exclude_jrProfile_keys\" => true,\n \"exclude_jrUser_keys\" => true,\n 'return_keys' => array('_item_id')\n );\n $_rt = jrCore_db_search_items('ujExif',$_sp);\n if (isset($_rt) && isset($_rt['_items']) && is_array($_rt['_items'])) {\n $_id = array();\n foreach ($_rt['_items'] as $_item) {\n $_id[] = (int) $_item['_item_id'];\n }\n // NOTE: Since exif entries have no media, we set the 3rd param to \"false\" - this\n // let's the delete function skip checking for associated item media.\n jrCore_db_delete_multiple_items('ujExif',$_id,false);\n }\n else {\n break;\n }\n }\n return $_data;\n}", "public function delete_unknown_images() {\n global $wpdb;\n $wpdb->query('DELETE FROM `' . $wpdb->prefix . 'bwg_image` WHERE gallery_id=0');\n }", "function delete_image() {\n\tif(isset($_POST['remove'])){\n\t\tglobal $wpdb;\n\t\t$img_path = $_POST['path'];\n\n\t\t// We need to get the images meta ID.\n\t\t$query = \"SELECT ID FROM wp_posts where guid = '\" . esc_url($img_path) . \"' AND post_type = 'attachment'\";\n\t\t$results = $wpdb->get_results($query);\n\n\t\t// And delete it\n\t\tforeach ( $results as $row ) {\n\t\t\twp_delete_attachment( $row->ID ); //delete the image and also delete the attachment from the Media Library.\n\t\t}\n\t\tdelete_option('pochomaps_map_image'); //delete image path from database.\n\t}\n}", "function imageAllDelete();", "function medula_remove_plugin_image_sizes() {\n\tremove_image_size('image-name');\n}", "public function removeImage() {\n //check if we have an old image\n if ($this->image) {\n //store the old name to delete the image on the upadate\n $this->temp = $this->image;\n //delete the current image\n $this->setImage(NULL);\n }\n }", "public function reset() {\r\n\t\t$this->images = array();\r\n\t}", "public function remove(array $images) {\n foreach ($images as $id) {\n if (isset($this->_images[$id])) {\n unset($this->_images[$id]);\n }\n }\n }", "function qform_remove_item($def, $cfg)\n{\n global $config, $db_prefix;\n\n // do\n $primary_val = get_param('primary_val');\n $idx = get_param('idx');\n\n // remove_item can also remove multiple items, simple use: $_GET['primary_val'] = '1,2,3,4,5,6...';\n $pv_arr = explode(',', $primary_val);\n if (empty($pv_arr)) {\n $pv_arr = array($primary_val);\n }\n\n // get data\n foreach ($pv_arr as $primary_val) {\n $res = sql_query(\"SELECT * FROM $cfg[table] WHERE $cfg[primary_key] = '$primary_val' LIMIT 1\");\n $old_values = $row = sql_fetch_array($res);\n\n // remove files\n foreach ($def as $key=>$val) {\n @$fn = $row[$val['field']];\n if ($val['type'] == 'file') {\n @unlink($cfg['file_folder'].'/'.$fn);\n }\n if (($val['type'] == 'img') || ($val['type'] == 'image') || ($val['type'] == 'img_resize') || ($val['type'] == 'image_resize')) {\n @unlink($cfg['img_folder'].'/'.$fn);\n }\n if ($val['type'] == 'thumb') {\n @unlink($cfg['img_folder'].'/'.$fn);\n @unlink($cfg['thumb_folder'].'/'.$fn);\n }\n if (($val['type'] == 'img_series') || ($val['type'] == 'img_set')) {\n $ok = false;\n $i = 0;\n while (!$ok) {\n $i++;\n $fn = $val['prefix'].'_'.$primary_val.'_'.$i;\n if (!file_exists(\"$cfg[img_folder]/$fn.jpg\")) {\n $ok = true;\n } else {\n unlink(\"$cfg[img_folder]/$fn.jpg\");\n unlink(\"$cfg[thumb_folder]/$fn.jpg\");\n }\n }\n }\n }\n\n // remove from table...\n $old = sql_qquery(\"SELECT * FROM $cfg[table] WHERE $cfg[primary_key]='$primary_val' LIMIT 1\");\n\n if (!empty($cfg['enable_log'])) {\n $log_info = sql_qquery(\"SELECT $cfg[log_title] FROM $cfg[table] WHERE $cfg[primary_key] = '$primary_val' LIMIT 1\");\n }\n sql_query(\"DELETE FROM $cfg[table] WHERE $cfg[primary_key] = '$primary_val' LIMIT 1\");\n if (!empty($cfg['enable_log'])) {\n $new = array();\n qform_log($primary_val, $log_info[0], LOG_DEL, $old, $new, $cfg['table']);\n }\n\n // remove permalink\n if (!empty($cfg['permalink_script'])) {\n sql_query(\"DELETE FROM \".$db_prefix.\"permalink WHERE target_script='$cfg[permalink_script]' AND target_idx='$primary_val' LIMIT 1\");\n }\n }\n\n // cache\n if (!empty($cfg['auto_recache']) || !empty($cfg['recache']) || !empty($cfg['rebuild_cache'])) {\n qcache_clear();\n }\n\n // hurray! done!\n $strip = array('qform_cmd', 'id', 'primary_val');\n $url = str_replace('&amp;', '&', urldecode(clean_get_query($strip)));\n\n if (empty($cfg['post_process'])) {\n msg_die($cfg['msg']['ok'], $url);\n } else {\n if (function_exists($cfg['post_process'])) {\n call_user_func($cfg['post_process'], $cfg['cmd'], $primary_val, false, $old_values, $old_values, false);\n } else {\n redir($cfg['post_process'].\"&qform_cmd=$cfg[cmd]&qform_id=$primary_val\");\n }\n }\n}", "public function delImg($item_id, $imgfile)\n {\n $this->db->update(array('id'=>$item_id), array('$pull'=>array('imgs'=>$imgfile)));\n \n // if this img is defimg, remove it, and replace with next img if still exists\n if ( $this->db->getOne(array('id'=>$item_id, 'defimg'=>$imgfile)) )\n {\n $defimg = ( $imgs = $this->db->getOne(array('id'=>$item_id, array('imgs'))) ) ? $imgs[0] : null;\n $this->db->update(array('id'=>$item_id), array('defimg'=>null));\n }\n }", "function get_products_to_show()\n{\n $products = get_products();\n\n foreach ($products as $list_id => $product) {\n if (count($product['images']) == 0) {\n unset($products[$list_id]);\n }\n }\n\n return $products;\n}", "abstract public function mass_remove();", "function _wb_universe_displays_ajax_submit_remove($form_state, $group, $index)\n{\n $nbre_displays = $form_state->get('nbre_' . $group . '_displays');\n if (! empty($nbre_displays[$index])) {\n unset($nbre_displays[$index]);\n if (! empty($nbre_displays)) {\n $form_state->set('nbre_' . $group . '_displays', $nbre_displays);\n } else {\n $form_state->set('nbre_' . $group . '_displays', 0);\n }\n $form_state->setRebuild();\n }\n // Drupal::messenger()->addMessage(print_r($nbre_imagetextrightleft_displays, true));\n}", "function briavers_remove_image_type_support() {\n remove_post_type_support( 'image_contest', 'editor' );\n}", "function hmg_remove_featured() {\n\n\tif( get_option( 'hmg_manage_featured', true ) && get_option( 'hmg_post_type' ) )\n\t\tforeach( get_option( 'hmg_post_type' ) as $post_type )\n\t\t\tremove_meta_box( 'postimagediv', $post_type, 'side' );\n\n}", "private function deleteRecords(){\r\n\t\r\n\t\t$fileNames = explode(',', $this->collection['images']);\r\n\t\t// remove imagerecords which are not used anymore\r\n\t\tforeach($this->images as $filename => $image){\r\n\t\t\tif(array_search($filename, $fileNames) === false){\r\n\t\t\r\n\t\t\t\t$this->db->exec_DELETEquery('tx_gorillary_images', \"image='$filename' AND collection='\".$this->collection['uid'].\"'\");\r\n\t\t\t\t//unset ($this->images[$filename]);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function cleanup_theme_images($old_url)\n{\n\t$files_referenced=collapse_1d_complexity('path',$GLOBALS['SITE_DB']->query_select('theme_images',array('DISTINCT path')));\n\n\t$themes=find_all_themes();\n\tforeach (array_keys($themes) as $theme)\n\t{\n\t\t$files_existing=get_image_paths(get_custom_base_url().'/themes/'.rawurlencode($theme).'/images_custom/',get_custom_file_base().'/themes/'.$theme.'/images_custom/');\n\n\t\tforeach (array_keys($files_existing) as $path)\n\t\t{\n\t\t\t$path=str_replace(get_custom_file_base().'/','',filter_naughty($path));\n\t\t\t$encoded_path=substr($path,0,strrpos($path,'/')+1).rawurlencode(substr($path,strrpos($path,'/')+1));\n\t\t\tif ((!in_array($path,$files_referenced)) && (!in_array($encoded_path,$files_referenced)) && (($old_url==$path) || ($old_url==$encoded_path)))\n\t\t\t{\n\t\t\t\t@unlink(get_custom_file_base().'/'.$path);\n\t\t\t\tsync_file($path);\n\t\t\t}\n\t\t}\n\t}\n}", "public function remove()\n {\n foreach ($this->filters as $filter) {\n $filterWithoutAcceptedArguments = array_slice($filter, 0, 3);\n call_user_func_array($this->removeCallback, $filterWithoutAcceptedArguments);\n }\n }", "public function unsetImage($index)\n {\n unset($this->image[$index]);\n }", "public function onBeforeDelete(){\n\t\tparent::onBeforeDelete();\n\n\t\tif($this->Images() && $images = $this->Images()){\n\t\t\tforeach($images as $image){\n\t\t\t\tif($image->exists()){\n\t\t\t\t\t$image->delete();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "function _strip_image_tags($field)\r\n\t{\r\n\t\t$this->{$field} = strip_image_tags($this->{$field});\r\n\t}", "function medula_remove_image_size( $sizes ) {\n\tunset( $sizes['thumbnail'] );\n\tunset( $sizes['medium'] );\n\tunset( $sizes['large'] );\n\n\treturn $sizes;\n}", "public function product_image_remove($data)\n {\n \n\n $imageid = $data['imagekey'];\n $image_path = $data['image_path'];\n $product_id = $data['product_id'];\n\n $query = \"DELETE\n FROM \" . $this->db_table_prefix . \"images WHERE id = $imageid\";\n \n $result = $this->commonDatabaseAction($query);\n\n\n\n// if (@mysql_affected_rows($result) > 0)\n if ($result > 0)\n {\n\n $query2 = \"SELECT image_path FROM \" . $this->db_table_prefix. \"products where id = '\" . $product_id . \"'\";\n $result2 = $this->commonDatabaseAction($query2);\n $prArray = $this->resultArray($result2);\n \n if(trim($prArray[0]['image_path']) == trim($image_path))\n {\n\n $query3 = \"SELECT image_path FROM \" . $this->db_table_prefix. \"images where product_id = '\" . $product_id . \"' order by id DESC\";\n $result3 = $this->commonDatabaseAction($query3);\n $imgArray = $this->resultArray($result3);\n /*print_r(count($imgArray[0])); \n exit;*/\n if(count($imgArray[0])==1)\n { \n $query4= \"UPDATE \" . $this->db_table_prefix . \"products set image_path = '\".$imgArray[0]['image_path'].\"'WHERE id = $product_id\";\n $result4 = $this->commonDatabaseAction($query4);\n }\n else\n {\n $query5= \"UPDATE \" . $this->db_table_prefix . \"products set image_path = '' WHERE id = $product_id\";\n $result5 = $this->commonDatabaseAction($query5);\n }\n\n }\n\n return TRUE;\n }\n else\n {\n return FALSE;\n }\n }", "function zm_imagedeletions($data, $otherStuff = 'bupkis') {\n // $testObj = new stdClass;\n // $testObj->data = $data;\n // $testObj->otherStuff = $otherStuff;\n // return $testObj;\n // return $data;\n // if (!isset($data['secret'] || $data['secret'] !== 'topsecret')) {\n // return false; \n // }\n $start_time=microtime(true);\n\n // so ... what are we doing here?\n // this is the callback function ... so we do a query of a few rows, and then snip out the offending images, and\n // figuring out how to snip it will be more than just a simple regex.\n // we need to find the position of wp-image-vvvvv where vvvvv is the verbotten_image_id\n // \n // \n // $content = \"this is something with an <img src=\\\"test.png\\\"/> in it.\";\n // $content = preg_replace(\"/<img[^>]+\\>/i\", \"(image) \", $content); \n // echo $content;\n // $posts = $wpdb->get_results(\"SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'publish'\n // AND post_type='post' ORDER BY comment_count DESC LIMIT 0,4\")\n $limit = 1;\n global $wpdb;\n $someObj = new stdClass;\n \n // $someObj->numImages = $wpdb->get_results(\"SELECT COUNT(*) FROM verbottenimage_posts WHERE verbottenimage_posts.removed <> 1;\");\n $nextPostsWithVerbottenImages = $wpdb->get_results(\"SELECT DISTINCT verbottenimage_posts.post_id FROM verbottenimage_posts WHERE verbottenimage_posts.removed <> 1 ORDER BY post_id ASC LIMIT {$limit};\");\n \n // $someObj->nextPostsWithVerbottenImages = count($nextPostsWithVerbottenImages) > 0 ? $nextPostsWithVerbottenImages : false;\n $someObj->nextPostsWithVerbottenImages = $nextPostsWithVerbottenImages;\n\n $imagesSnipped = Array();\n forEach($nextPostsWithVerbottenImages AS $nextPost) {\n $nextPostID = $nextPost->post_id;\n $imagesSnipped[$nextPostID] = snipVerbottenImagesFromPost($nextPostID);// returns an array of all the verbotten_image_id snipped from th post\n }\n // $someObj->nextPostsWithVerbottenImages = \n\n $someObj->imagesSnipped = $imagesSnipped;\n\n $someObj->featuredImageSwitch = featuredImageSwitch($nextPostID);\n // $someObj->nextPostWithVerbottenImages = $nextPostWithVerbottenImages;\n // $someObj->nextPostWithVerbottenImages = $nextPostWithVerbottenImages[0]->post_id;\n\n // $numberOfVerbottenImagesQueryResult = $wpdb->get_results(\"SELECT COUNT(*) FROM verbottenimage_posts WHERE verbottenimage_posts.removed <> 1;\");\n // $numberOfRemainingVerbottenImages = count($numberOfVerbottenImagesQueryResult) > 0 ? $numberOfVerbottenImagesQueryResult[0] : 0;\n // $someObj->numberOfRemainingVerbottenImages = $numberOfRemainingVerbottenImages;\n\n // determine the next post to work on.\n // $someObj->numPosts = $wpdb->get_results(\"SELECT COUNT(DISTINCT post_id) FROM verbottenimage_posts WHERE verbottenimage_posts.removed <> 1;\");\n \n $end_time = microtime(true);\n $execution_time = bcsub($end_time, $start_time, 4);\n $someObj->execution_time = $execution_time;\n $someObj->memory_peak = memory_get_peak_usage(false) / (1024 * 1024) . 'M';\n return $someObj;\n }", "protected function cleanupImageContent(array $item)\n {\n array_walk_recursive(\n $item,\n function (&$entry, $key) {\n if ('content' === $key) {\n $entry = \"<CUT>\";\n }\n }\n );\n\n return $item;\n }", "function magazinevibe_child_remove_first_image( $content ) {\n\t$dom = new DOMDocument();\n\t$dom->loadHTML( $content );\n\t$images = $dom->getElementsByTagName( 'img' );\n\n\tforeach ( $images as $image ) {\n\t\t$parent = $image->parentNode;\n\t\tif ( $parent->nodeName ) {\n\t\t\t$parent->parentNode->removeChild( $parent );\n\t\t\t$content = $dom->saveHTML();\n\t\t\t$content = str_replace('&Acirc;', '', $content);\n\t\t\treturn $content;\n\t\t}\n\t}\n\n\t$content = str_replace('&Acirc;', '', $content);\n\n\treturn $content;\n}", "function clean_raw() {\r\n $this->cleaned_image = cloneImg($this->get_image());\r\n foreach ($this->text_blocks as $block) {\r\n $x1=$block->x1;\r\n $y1=$block->y1;\r\n $x2=$block->x2;\r\n $y2=$block->y2;\r\n $x3=$block->x3;\r\n $y3=$block->y3;\r\n $x4=$block->x4;\r\n $y4=$block->y4;\r\n $r=$block->background_color_alt[0];\r\n $g=$block->background_color_alt[1];\r\n $b=$block->background_color_alt[2];\r\n $background = imagecolorallocate($this->cleaned_image, $r, $g, $b);\r\n $polygon=array($x1,$y1,$x2,$y2,$x3,$y3,$x4,$y4);\r\n imagefilledpolygon($this->cleaned_image,$polygon,4,$background);\r\n $this->cleaned_image_path=\"uploads/\".microtime().\".jpg\";\r\n imagewrite($this->cleaned_image,$this->cleaned_image_path,$quality=100);\r\n }\r\n }", "function deleteImage($filename, $target_file)\n{\n // remove from list\n $list = read_file_list();\n $pivot = array_search($filename, $list);\n $left = array_slice($list, 0, $pivot);\n $right = array_slice($list, $pivot+1);\n $list = array_merge($left, $right);\n\n // remove file and output modified list\n unlink($target_file);\n write_file_list($list);\n\n echo $target_file . \" deleted successfully.<br>\";\n}", "function _wp_post_thumbnail_class_filter_remove($attr)\n {\n }", "function remove_image_links() {\n update_option('image_default_link_type', 'none');\n}", "public function delete_related_images($column_name = 'image',$folder) {\n\t\t$image_name = $this->getOriginal($column_name);\n\t\t// if we don't have previous image then no need to delete it.\n\t\tif ( ! is_null($image_name) && file_exists($this->upload_path .$folder.'/modified/'.$image_name)) {\n\t\t\t$image_path = $this->upload_path .$folder.'/modified/'.$image_name;\n\n\t\t\t$img = Image::make($image_path);\n\t\t\t$mask = $img->filename . '*.*';\n\n\t\t\tarray_map('delete_if_exists', glob(public_path('uploads/'.$folder.'/modified/' . $mask)));\n\t\t}\n\t}", "public function removeImage()\n {\n // Suppression de l'image principale\n $fichier = $this->getAbsolutePath();\n\n if (file_exists($fichier))\n {\n unlink($fichier);\n }\n\n // Suppression des thumbnails\n foreach($this->thumbnails as $key => $thumbnail)\n {\n $thumb = $this->getUploadRootDir() . '/' . $key . '-' . $this->name;\n if (file_exists($thumb))\n {\n unlink($thumb);\n }\n }\n }", "public function clearImageVariables()\n {\n $this->saveVariable('itempic', null);\n\n for ($i = 2; $i < 7; $i++) {\n $picture = 'itempic' . $i;\n $this->saveVariable($picture, null);\n }\n\n $this->saveVariable('category_name', null);\n $this->saveVariable('category', null);\n }", "public static function delete_unused_images(){\n\n $deleted_books = Media::delete_unused_images_for_table(CONFIG::DBTables()->book);\n $deleted_movies = Media::delete_unused_images_for_table(CONFIG::DBTables()->movie);\n $deleted_games = Media::delete_unused_images_for_table(CONFIG::DBTables()->game);\n $deleted_users = Media::delete_unused_images_for_table(CONFIG::DBTables()->user);\n\n $deleted_images = array(\n \"books\" => $deleted_books,\n \"movies\" => $deleted_movies,\n \"games\" => $deleted_games,\n \"users\" => $deleted_users\n );\n\n return $deleted_images;\n }", "function removeImage() {\n\t\t\n $image = $this->getImageByImageId();\n \n $file_image = $this->dir_path.$image['path_image'];\n\n $this->deleteImage(array('image_id' => $image['image_id'] ));\n\n if(file_exists($file_image)) {\n @unlink($file_image);\n }\n\t\t\n\t}", "public function remove_all_the_metaboxes() {\n\n global $wp_meta_boxes;\n\n // This is the post type you want to target. Adjust it to match yours.\n $post_type = 'envira';\n\n // These are the metabox IDs you want to pass over. They don't have to match exactly. preg_match will be run on them.\n $pass_over_defaults = array( 'submitdiv', 'envira' );\n $pass_over = apply_filters( 'envira_gallery_metabox_ids', $pass_over_defaults );\n\n // All the metabox contexts you want to check.\n $contexts_defaults = array( 'normal', 'advanced', 'side' );\n $contexts = apply_filters( 'envira_gallery_metabox_contexts', $contexts_defaults );\n\n // All the priorities you want to check.\n $priorities_defaults = array( 'high', 'core', 'default', 'low' );\n $priorities = apply_filters( 'envira_gallery_metabox_priorities', $priorities_defaults );\n\n // Loop through and target each context.\n foreach ( $contexts as $context ) {\n // Now loop through each priority and start the purging process.\n foreach ( $priorities as $priority ) {\n if ( isset( $wp_meta_boxes[$post_type][$context][$priority] ) ) {\n foreach ( (array) $wp_meta_boxes[$post_type][$context][$priority] as $id => $metabox_data ) {\n // If the metabox ID to pass over matches the ID given, remove it from the array and continue.\n if ( in_array( $id, $pass_over ) ) {\n unset( $pass_over[$id] );\n continue;\n }\n\n // Otherwise, loop through the pass_over IDs and if we have a match, continue.\n foreach ( $pass_over as $to_pass ) {\n if ( preg_match( '#^' . $id . '#i', $to_pass ) ) {\n continue;\n }\n }\n\n // If we reach this point, remove the metabox completely.\n unset( $wp_meta_boxes[$post_type][$context][$priority][$id] );\n }\n }\n }\n }\n\n }", "function unset_tiff($mime_types){\n unset($mime_types['tif|tiff']); //Removing the tif extension\n return $mime_types;\n}", "public function remove(PersistentImageInterface $image): void\n\t{\n\t}", "function imageAllReset();", "function more_zero_cleanup() {\n function zero_filter_ptags_on_images($content){\n return preg_replace('/<p>\\s*(<a .*>)?\\s*(<img .* \\/>)\\s*(<\\/a>)?\\s*<\\/p>/iU', '\\1\\2\\3', $content);\n }\n\n // This removes inline width/height from images\n function remove_thumbnail_dimensions( $html ) {\n $html = preg_replace( '/(width|height)=\\\"\\d*\\\"\\s/', \"\", $html );\n return $html;\n }\n\n add_filter( 'post_thumbnail_html', 'remove_thumbnail_dimensions', 10 );\n add_filter( 'image_send_to_editor', 'remove_thumbnail_dimensions', 10 );\n // Removes attached image sizes as well\n add_filter( 'the_content', 'remove_thumbnail_dimensions', 10 );\n\n\n }", "private function cleanImages(?array $objectImagesList)\n {\n //====================================================================//\n // If Variant Product Mode => Skip\n if (empty($objectImagesList)) {\n return;\n }\n //====================================================================//\n // If Current Image List Is Empty => Clear Remaining Local Images\n foreach ($objectImagesList as $imgArray) {\n //====================================================================//\n // Fetch Images Object\n $psImage = new Image($imgArray[\"id_image\"]);\n $psImage->deleteImage(true);\n $psImage->delete();\n $this->needUpdate();\n }\n }", "private static function purgeImages() {\n self::purgeFiles(self::getInterimImageFolder(), self::$interim_image_expiry);\n }", "function fumseck_exclude_image_posts( $query ) {\n\tif ( $query->is_main_query() && $query->is_home() ) {\n\t\t$feip_query = array(\n\t\t\tarray(\n\t\t\t\t'taxonomy' => 'post_format',\n\t\t\t\t'field' => 'slug',\n\t\t\t\t'terms' => array(\n\t\t\t\t\t'post-format-image'\n\t\t\t\t),\n\t\t\t\t'operator' => 'NOT IN',\n\t\t\t)\n\t\t);\n\t\t$query->set( 'tax_query', $feip_query );\n\t}\n}", "abstract public function deregisterImage($image_id);", "function vip_remove_enhanced_feed_images() {\n _deprecated_function( __FUNCTION__, '2.0.0' );\n}", "function _delete_site_logo_on_remove_theme_mods()\n {\n }", "public function testRemoveAllContextFromImagesByPublicIDsArray()\n {\n self::$uploadApi->addContext(self::CONTEXT_DATA, [self::$UNIQUE_TEST_ID]);\n\n $result = self::$uploadApi->removeAllContext([self::$UNIQUE_TEST_ID]);\n\n self::assertEquals([self::$UNIQUE_TEST_ID], $result['public_ids']);\n\n $resource = self::$adminApi->asset(self::$UNIQUE_TEST_ID);\n\n self::assertArrayNotHasKey('context', $resource);\n }", "function remove_theme_mods()\n {\n }", "function tfuse_delete_resized_images( $post_id ) {\r\n $metadata = wp_get_attachment_metadata( $post_id );\r\n if ( !$metadata )\r\n return;\r\n\r\n // Do some bailing if we cannot continue\r\n if ( !isset( $metadata['file'] ) || !isset( $metadata['image_meta']['resized_images'] ) )\r\n return;\r\n $pathinfo = pathinfo( $metadata['file'] );\r\n $resized_images = $metadata['image_meta']['resized_images'];\r\n\r\n // Get Wordpress uploads directory (and bail if it doesn't exist)\r\n $wp_upload_dir = wp_upload_dir();\r\n $upload_dir = $wp_upload_dir['basedir'];\r\n if ( !is_dir( $upload_dir ) )\r\n return;\r\n\r\n // Delete the resized images\r\n foreach ( $resized_images as $dims ) {\r\n\r\n // Get the resized images filename\r\n $file = $upload_dir .'/'. $pathinfo['dirname'] .'/'. $pathinfo['filename'] .'-'. $dims .'.'. $pathinfo['extension'];\r\n\r\n // Delete the resized image\r\n @unlink( $file );\r\n\r\n }\r\n\r\n $remote_uploaded_by_tfuse = get_option('tfuse_remote_images', array());\r\n $image_uri = wp_get_attachment_url($post_id);\r\n $key = array_search($image_uri, $remote_uploaded_by_tfuse);\r\n if($key)\r\n {\r\n unset($remote_uploaded_by_tfuse[$key]);\r\n update_option('tfuse_remote_images', $remote_uploaded_by_tfuse);\r\n }\r\n\r\n\r\n }", "function tidy_theme_img_code($new, $old, $table, $field, $db = null)\n{\n if ($new === $old) {\n return; // Still being used\n }\n\n $path = ($old == '') ? null : find_theme_image($old, true, true);\n if ((is_null($path)) || ($path == '')) {\n return;\n }\n\n if ((strpos($path, '/images_custom/') !== false) && ($GLOBALS['SITE_DB']->query_select_value('theme_images', 'COUNT(DISTINCT id)', array('path' => $path)) == 1)) {\n if (is_null($db)) {\n $db = $GLOBALS['SITE_DB'];\n }\n $count = $db->query_select_value($table, 'COUNT(*)', array($field => $old));\n if ($count == 0) {\n @unlink(get_custom_file_base() . '/' . $path);\n sync_file(get_custom_file_base() . '/' . $path);\n $GLOBALS['SITE_DB']->query_delete('theme_images', array('id' => $old));\n }\n }\n}", "function image_features_override_export_render_deletion($alter, $element) {\n $code = array();\n if (isset($alter['keys'])) {\n $component_start = \"\\$data['$element']\";\n $code_line = features_override_export_keys($alter['keys']);\n $code[] = \"\";\n $code[] = \" if (\" . $component_start . \"['storage'] == IMAGE_STORAGE_DEFAULT) {\";\n $code[] = ' unset(' . $component_start . $code_line . ');';\n $code[] = \" }\";\n }\n return $code;\n}", "public function removeImage($data)\n\t{\n\t\t$this->db->delete('tbl_gambar', $data);\n\t}", "static function remove($item){\n\t\tself::init();\n\t\tif( is_array($item)){\n\t\t\tforeach($item as $i)\n\t\t\t\tself::remove($i);\n\t\t\treturn;\n\t\t}\n\t\tself::$backend->removeItem($item);\n\t\tcacheItem::dropInstance($item);\n\t}", "function custom_my_account_menu_items($items)\n{\n unset($items['downloads']);\n return $items;\n}", "private function removeImages($entryid){\n\t\t$query = Queries::removeimages($entryid);\n\t\treturn $this->query($query);\n\t}", "private function _deleteDiscoveryFilesArray()\n {\n if (count($this->files) > 0) {\n foreach ($this->files as $file) {\n unlink($file);\n }\n }\n\n return;\n }", "public function excluirImagemGaleria(){ \n\t\t\n\t\t//deleta a imagem da pasta\n\t\tinclude_once(\"../funcoes/geral.php\");\n\t\t$sql = \"\n\t\t\tSELECT thumb\n\t\t\tFROM programa_imagem\n\t\t\"; \n\t\tif($this->idImagem)\n\t\t\t$sql .=\" WHERE id = '$this->idImagem'\";\n\n\t\t$this->sql = $sql;\n\t\t$this->qr = self::execSql($this->sql);\t\n\t\t$qtRegistros = $this->getQuantidadeData($sql); // retorna a quantidade de registro\t \n\t\tif($qtRegistros > 0){\n\t\t\twhile($lista = self::resultsAll($this->qr)){\n\n\t\t\t\tdeletaImagem($lista[\"thumb\"]);//deleto a imagem do arquivo\n\t\t\t\n\t\t\t}\n\t\t}\n\n\t}", "function remove_custom_background()\n {\n }", "public final function remove_header_image()\n {\n }", "public function deleteImages() {\n foreach (glob( ARTICLE_IMAGE_PATH . \"/\" . IMG_TYPE_FULLSIZE . \"/\" . $this->id . \".*\") as $filename) {\n if ( !unlink( $filename ) ) trigger_error( \"Book::deleteImages(): Couldn't delete image file.\", E_USER_ERROR );\n }\n \n // Delete all thumbnail images for this book\n foreach (glob( ARTICLE_IMAGE_PATH . \"/\" . IMG_TYPE_THUMB . \"/\" . $this->id . \".*\") as $filename) {\n if ( !unlink( $filename ) ) trigger_error( \"Book::deleteImages(): Couldn't delete thumbnail file.\", E_USER_ERROR );\n }\n \n // Remove the image filename extension from the object\n $this->imageExtension = \"\";\n }", "function dynamik_skin_images_cleanup()\n{\n\t$dynamik_gen_skin_options = get_option( 'dynamik_gen_skin_options' );\n\t$dynamik_gen_active_skin_options = get_option( 'dynamik_gen_' . $dynamik_gen_skin_options['active_skin'] . '_skin' );\n\t$skin_images_list = is_array( $dynamik_gen_active_skin_options['skin_images_list'] ) ? $dynamik_gen_active_skin_options['skin_images_list'] : array();\n\n\t$handle = opendir( dynamik_get_stylesheet_location( 'path' ) . 'images' );\n\twhile( false !== ( $file = readdir( $handle ) ) )\n\t{\n\t\t$ext = strtolower( substr( strrchr( $file, '.' ), 1 ) );\n\t\tif( $ext == 'jpg' || $ext == 'jpeg' || $ext == 'gif' || $ext == 'png' )\n\t\t{\n\t\t\tif( in_array( $file, $skin_images_list ) )\n\t\t\t{\n\t\t\t\tif( file_exists( dynamik_get_stylesheet_location( 'path' ) . 'images' . '/' . $file ) )\n\t\t\t\t\tunlink( dynamik_get_stylesheet_location( 'path' ) . 'images' . '/' . $file );\n\n\t\t\t\tif( file_exists( dynamik_get_stylesheet_location( 'path' ) . 'images' . '/adminthumbnails/' . $file ) )\n\t\t\t\t\tunlink( dynamik_get_stylesheet_location( 'path' ) . 'images' . '/adminthumbnails/' . $file );\n\t\t\t}\n\t\t}\n\t}\n\tclosedir( $handle );\n}", "public function removeImages($object)\n {\n return $this->createQuery('i')\n ->delete()\n ->where('i.imaged_model_id = ?', $object['id'])\n ->andWhere('i.imaged_model = ?', get_class($object))\n ->execute();\n }", "function acf_remove_loop($i = 'active')\n{\n}", "protected function _after()\n {\n unset($this->image);\n parent::_after();\n }", "public function clear_thumbnails() {\n\n $wpp_image = WPP_Image::get_instance();\n\n if ( $wpp_image->can_create_thumbnails() ) {\n\n $wpp_uploads_dir = $wpp_image->get_plugin_uploads_dir();\n\n if ( is_array($wpp_uploads_dir) && !empty($wpp_uploads_dir) ) {\n\n $token = isset( $_POST['token'] ) ? $_POST['token'] : null;\n $key = get_option( \"wpp_rand\" );\n\n if (\n current_user_can( 'manage_options' )\n && ( $token === $key )\n ) {\n\n if ( is_dir( $wpp_uploads_dir['basedir'] ) ) {\n\n $files = glob( \"{$wpp_uploads_dir['basedir']}/*\" ); // get all related images\n\n if ( is_array($files) && !empty($files) ) {\n\n foreach( $files as $file ){ // iterate files\n if ( is_file( $file ) ) {\n @unlink( $file ); // delete file\n }\n }\n\n echo 1;\n\n } else {\n echo 2;\n }\n\n } else {\n echo 3;\n }\n\n } else {\n echo 4;\n }\n\n }\n\n } else {\n echo 3;\n }\n\n wp_die();\n\n }", "public function cleanLogo(Partenaire $partenaire): void\n {\n $em = $this->getEntityManager();\n foreach ($partenaire->getLogo() as $tag) {\n $partenaire->removeTag($tag);\n }\n\n $em->flush();\n }", "protected function afterRemoving()\n {\n }", "public static function maintain() {\n// self::maintainItem($item, $fields);\n\n $db = JFactory::getDBO();\n\n $query = '\n SELECT DISTINCT v.fieldid, v.itemid\n FROM #__k2_extra_fields_values AS v,\n (\n SELECT DISTINCT vv.itemid, vv.fieldid\n FROM #__k2_extra_fields_values AS vv, #__k2_extra_fields_definition vf\n WHERE\n vv.itemid NOT IN (SELECT id FROM #__k2_items) AND\n vv.fieldid = vf.id AND\n vf.definition LIKE \"%valid=media%\" AND\n vv.partindex = 0 AND\n vv.value = \"upload\"\n ) AS f\n WHERE v.itemid = f.itemid AND v.fieldid = f.fieldid AND v.partindex = ' . (K2FieldsMedia::SRCPOS - 1);\n\n $db->setQuery($query);\n $entries = $db->loadObjectList();\n\n if (!empty($entries)) {\n $_entries = array();\n\n foreach ($entries as $entry) {\n if (!isset($_entries[$entry->fieldid])) $_entries[$entry->fieldid] = array();\n\n $_entries[$entry->fieldid][] = $entry->itemid;\n }\n\n $model = K2Model::getInstance('fields', 'K2FieldsModel');\n $fields = $model->getFieldsById(array_keys($_entries));\n\n foreach ($fields as $fieldid => $field) {\n $items = $_entries[$fieldid];\n\n foreach ($items as $item) {\n $dir = self::getStorageDirectory($field, $item);\n $thumbdir = K2FieldsModelFields::setting('thumbfolder', $field);\n\n if (JFolder::exists($dir.'/'.$thumbdir)) JFolder::delete($dir.'/'.$thumbdir);\n\n if (JFolder::exists($dir)) JFolder::delete($dir);\n }\n }\n }\n }", "public function removeImage(Image $image){\n $this->images->removeElement($image);\n }", "public static function FindUnusedImages()\n {\n }", "private function cleanImages($objectImagesList)\n {\n //====================================================================//\n // If Variant Product Mode => Skip\n if (empty($objectImagesList)) {\n return;\n }\n //====================================================================//\n // If Current Image List Is Empty => Clear Remaining Local Images\n foreach ($objectImagesList as $imgArray) {\n //====================================================================//\n // Fetch Images Object\n $psImage = new Image($imgArray[\"id_image\"]);\n $psImage->deleteImage(true);\n $psImage->delete();\n $this->needUpdate();\n }\n }", "protected function typo3CleanUp($imageResource) {\n \t$GLOBALS['TYPO3_DB']->exec_DELETEquery(\n\t\t\t'cache_imagesizes',\n\t\t\t'filename=' . $GLOBALS['TYPO3_DB']->fullQuoteStr($imageResource[3], 'cache_imagesizes')\n \t);\n \t\n \tunset($GLOBALS['TSFE']->tmpl->fileCache[$imageResource['fileCacheHash']]);\n }", "public function reset() {\n\n\t\t$type = Dba::escape($this->type);\n\t\t$uid = Dba::escape($this->uid);\n\n\t\t$sql = \"DELETE FROM `image` WHERE `object_id`='$uid' AND `object_type`='$type'\";\n\t\t$db_results = Dba::write($sql);\n\n\t}", "public function process($image_path)\n\t{\n\t\t$items = [];\n\t\t$image = new Image($image_path, $this->config);\n\t\t$summary = $image->getSummary();\n\t\tforeach ($summary['colors'] as $hex => $_) {\n\t\t\t$tiles = $this->config->getTilesOfColor($hex);\n\t\t\t$data = [];\n\t\t\tforeach ($tiles as $k => $tile) {\n\t\t\t\t$data[$k] = $tile->brick->getSize();\n\t\t\t}\n\t\t\tarray_multisort($data, SORT_DESC, $tiles);\n\t\t\tforeach ($tiles as $tile) {\n\t\t\t\t$item = new Item($tile, $image->fillTile($tile));\n\t\t\t\tif ($item->quantity) {\n\t\t\t\t\t$items[] = $item;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->merge($items);\n\t\treturn $image;\n\t}", "private static function toDelete(){\n $filesNotToDelete = [];\n $dir = public_path().'/images/';\n $filesInPublicFolder = scandir($dir);\n\n // izbacivanje assets foldera, .. i .\n $ignoreFiles = ['assets', '.', '..', 'pig.png', 'placeholder.png', 'logo.png', 'index.php'];\n foreach ($ignoreFiles as $toIgnore) {\n if (($key = array_search($toIgnore, $filesInPublicFolder)) !== false) {\n unset($filesInPublicFolder[$key]);\n }\n }\n // dd($filesInPublicFolder);\n $images = [];\n $collectionsOfObjectsWithImages = [Product::all(), ProductGroup::all(), Manufacturer::all(),\n Suggestion::all(), ImageSuggestion::all(), MainAd::all(),SecondAd::all()];\n\n foreach ($collectionsOfObjectsWithImages as $collection) {\n foreach ($collection as $object) {\n if($object->images->count()){\n foreach ($object->images as $image) {\n $images[] = $image->name;\n }\n }\n }\n }\n\n // dd($images);\n // dd(array_diff($filesInPublicFolder, $images));\n // dd($filesNotToDelete, $filesInPublicFolder);\n return $toDelete = array_diff($filesInPublicFolder, $images); //za fju array_dif vazan je redoslijed argumenata\n\n }", "public static function deleteImage(){}", "private function removeImages($images, $type = 'temp') {\n // if it's a single file (not an array), put the file in an array\n $imageArr = (!is_array($images)) ? array($images) : $images;\n $folder = ($type == 'temp') ? $this->tmpImgFolder : $this->imageFolder;\n\n foreach ($imageArr as $img) {\n if (File::exists($folder . $img)) {\n File::delete($folder . $img);\n }\n }\n\n if ($type == 'images') {\n // possibly add delete tracker\n }\n }", "protected function importLayoutImages_processCopiedImages(){\n\t\t\n\t\t\n\t\tforeach($this->arrImportImages as $key=>$arrImage){\n\t\t\t\n\t\t\t//get image ID\n\t\t\t$imageID = $this->insertAttachmentByImage($arrImage);\n\t\t\tif(empty($imageID))\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\t//update image id\n\t\t\t$arrImage[\"imageid\"] = $imageID;\n\t\t\t$this->arrImportImages[$key] = $arrImage;\n\t\t}\n\t\t\n\t}", "public function file_cleanup(){\n\t\t$query = $this->db->get('carousels');\n\t\t$map = directory_map('./carousel/', 1);\n\t\t$g = \"x\";\n\t\tforeach($map as $file)\n\t\t{\n\t\t\t\t\t\t\t\n\t\t\t//return $query->result();\n\t\t\t$g = $g . \"--\";\n\t\t\t$x = 0;\n\t\t\t$soundfile=\"\";\n\t\t\tforeach($query->result() as $row){\n\t\t\t\t//return $row;\n\t\t\t\t$picture = $row->image;\n\t\t\t\t$g = $g . \"<\" . $soundfile . \"-\" . $file . \">\";\n\t\t\t\tif ($file==$picture)\t{\n\t\t\t\t\t$g = $g . \"files are the same\";\n\t\t\t\t\t$x++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($x==0 )\n\t\t\t{\n\t\t\t \t$g = $g . \"we're in the loop\";\n\t\t\t\tunlink(\"./carousel/\" . $file);\n\t\t\t\t\t$g = $g . \" removed: \" . \"./carousel/\" . $file . \" - \";\n\t\t\t\t\n\t\t\t}\n\t\t\tif (strlen($g) > 700)\n \t\t\t\t$g = substr($g, 0, 700);\n\t\t}\n\t\t//return $g;\n\t\t//$this->session->set_flashdata('carousel_saved', $file . \"--\" . $soundfile );\n\t}", "function website_remove($fields){\n\n\tif(isset($fields['url']))\n\tunset($fields['url']);\n\n\treturn $fields;\n}", "public function removePhoto($value)\n {\n $key = array_search($value, $this->photos);\n if($key !== false) {\n unset($this->photos[$key]);\n }\n }", "function uc_order_pane_line_items_remove($form, &$form_state) {\n $order = &$form_state['order'];\n $line_item_id = intval($form_state['triggering_element']['#return_value']);\n\n uc_order_delete_line_item($line_item_id);\n $order->line_items = uc_order_load_line_items($order);\n\n $form_state['rebuild'] = TRUE;\n}", "public function galeriasExcluir_action()\n\t{\n\t\t$bd = new GaleriasImagens_Model();\n\t\t$id = abs((int) $this->getParam(2));\n\t\t$resultado = $bd->read(\"id={$id} AND usuario={$this->_usuario}\");\n\t\tunlink('uploads/img_'.$resultado[0]['imagem']);\n\t\tunlink('uploads/tb_'.$resultado[0]['imagem']);\n\t\tunlink('uploads/destaque_'.$resultado[0]['imagem']);\n\t\t$bd->delete(\"id={$id} AND usuario={$this->_usuario}\");\n\t\tHTML::certo('Imagem exclu&iacute;da.');\n\t\t//POG Temporário\n\t\tHTML::Imprime('<script>Abrir(\"#abreImagemGaleria\",\"#imagens\");</script>');\n\t}", "public function removeTags()\n\t{\n\t\tforeach ($this->argsArray(func_get_args()) as $tag) {\n\t\t\t$this->removed_tags[] = $tag;\n\t\t}\n\t}", "public function remove(...$items);", "function hook_image_style_delete($style) {\n // Administrators can choose an optional replacement style when deleting.\n // Update the modules style variable accordingly.\n if (isset($style['old_name']) && $style['old_name'] == variable_get('mymodule_image_style', '')) {\n variable_set('mymodule_image_style', $style['name']);\n }\n}", "function cs_pb_image($die = 0){\n\tglobal $cs_node, $count_node, $post;\n\tif ( isset($_POST['action']) ) {\n\t\t$name = $_POST['action'];\n\t\t$counter = $_POST['counter'];\n\t\t$image_element_size = '25';\n\t\t$image_width = '';\n\t\t$image_height = '';\n\t\t$image_lightbox = '';\n\t\t$image_source = '';\n\t\t$image_style = '';\n\t\t$image_caption = '';\n\t}\n\telse {\n\t\t$name = $cs_node->getName();\n\t\t\t$count_node++;\n\t\t\t$image_element_size = $cs_node->image_element_size;\n\t\t\t$image_width = $cs_node->image_width;\n\t\t\t$image_height = $cs_node->image_height;\n\t\t\t$image_lightbox = $cs_node->image_lightbox;\n\t\t\t$image_source = $cs_node->image_source;\n\t\t\t$image_style = $cs_node->image_style;\n\t\t\t$image_caption = $cs_node->image_caption;\n\t\t\t\t$counter = $post->ID.$count_node;\n}\n?> \n\t<div id=\"<?php echo $name.$counter?>_del\" class=\"column parentdelete column_<?php echo $image_element_size?>\" item=\"image_frame\" data=\"<?php echo element_size_data_array_index($image_element_size)?>\" >\n \t<div class=\"column-in\">\n <h5><?php echo ucfirst(str_replace(\"cs_pb_\",\"\",$name))?></h5>\n <input type=\"hidden\" name=\"image_element_size[]\" class=\"item\" value=\"<?php echo $image_element_size?>\" >\n <a href=\"javascript:hide_all('<?php echo $name.$counter?>')\" class=\"options\">Options</a> &nbsp; \n <a href=\"#\" class=\"delete-it btndeleteit\">Del</a> &nbsp; \n <a class=\"decrement\" onclick=\"javascript:decrement(this)\">Dec</a> &nbsp; \n <a class=\"increment\" onclick=\"javascript:increment(this)\">Inc</a>\n\t\t</div>\n \t<div class=\"poped-up\" id=\"<?php echo $name.$counter?>\" style=\"border:none; background:#f8f8f8;\" >\n <div class=\"opt-head\">\n <h5>Edit Image Options</h5>\n <a href=\"javascript:show_all('<?php echo $name.$counter?>')\" class=\"closeit\">&nbsp;</a>\n </div>\n <div class=\"opt-conts\">\n \t<ul class=\"form-elements\">\n <li class=\"to-label\"><label>Width</label></li>\n <li class=\"to-field\">\n \t<input type=\"text\" name=\"image_width[]\" class=\"txtfield\" value=\"<?php echo $image_width?>\" />\n <p>Enter value in PX</p>\n </li>\n </ul>\n <ul class=\"form-elements\">\n <li class=\"to-label\"><label>Height</label></li>\n <li class=\"to-field\">\n \t<input type=\"text\" name=\"image_height[]\" class=\"txtfield\" value=\"<?php echo $image_height?>\" />\n Enter value in PX\n </li>\n </ul>\n <ul class=\"form-elements\">\n <li class=\"to-label\"><label>Lightbox</label></li>\n <li class=\"to-field\">\n \t<select name=\"image_lightbox[]\">\n \t<option value=\"yes\" <?php if($image_lightbox==\"yes\")echo \"selected\";?> >Yes</option>\n \t<option value=\"no\" <?php if($image_lightbox==\"no\")echo \"selected\";?> >No</option>\n </select>\n </li>\n </ul>\n <ul class=\"form-elements\">\n <li class=\"to-label\"><label>Source</label></li>\n <li class=\"to-field\">\n \t<input type=\"text\" name=\"image_source[]\" class=\"txtfield\" value=\"<?php echo $image_source?>\" />\n </li>\n </ul>\n <ul class=\"form-elements\">\n <li class=\"to-label\"><label>Style</label></li>\n <li class=\"to-field\">\n \t<select name=\"image_style[]\">\n \t<option <?php if($image_style==\"frame1\")echo \"selected\";?> >frame1</option>\n \t<option <?php if($image_style==\"frame2\")echo \"selected\";?> >frame2</option>\n \t<option <?php if($image_style==\"frame3\")echo \"selected\";?> >frame3</option>\n \t<option <?php if($image_style==\"frame4\")echo \"selected\";?> >frame4</option>\n \t<option <?php if($image_style==\"frame5\")echo \"selected\";?> >frame5</option>\n \t<option <?php if($image_style==\"frame6\")echo \"selected\";?> >frame6</option>\n </select>\n </li>\n </ul>\n <ul class=\"form-elements\">\n <li class=\"to-label\"><label>Caption</label></li>\n <li class=\"to-field\">\n \t<input type=\"text\" name=\"image_caption[]\" class=\"txtfield\" value=\"<?php echo $image_caption?>\" />\n </li>\n </ul>\n <ul class=\"form-elements noborder\">\n <li class=\"to-label\"></li>\n <li class=\"to-field\">\n \t<input type=\"hidden\" name=\"cs_orderby[]\" value=\"image\" />\n <input type=\"button\" value=\"Save\" style=\"margin-right:10px;\" onclick=\"javascript:show_all('<?php echo $name.$counter?>')\" />\n </li>\n </ul>\n </div>\n </div>\n </div>\n<?php\n\tif ( $die <> 1 ) die();\n}", "function cleanImages()\r\n {\r\n if (!count($this->imagesContent)) return true;\r\n $this->_echo('<br>Очистка не используемых файлов картинок...');\r\n foreach ($this->imagesContent as $file) {\r\n @unlink($this->rootPath.$file);\r\n }\r\n }" ]
[ "0.6406336", "0.59731966", "0.5943757", "0.58205813", "0.57911533", "0.5788095", "0.57488906", "0.57400554", "0.56093574", "0.5605099", "0.5604629", "0.5564108", "0.55628806", "0.5541043", "0.5505003", "0.5489502", "0.5471697", "0.5461608", "0.5456661", "0.54153174", "0.53839296", "0.5377463", "0.5373083", "0.5367916", "0.5358291", "0.5356799", "0.5341051", "0.53179425", "0.5314149", "0.5309543", "0.5281247", "0.52660257", "0.52632916", "0.52265894", "0.5214876", "0.5209239", "0.5208048", "0.51881593", "0.51793325", "0.5178449", "0.5177848", "0.51650226", "0.5155171", "0.51423085", "0.5134739", "0.5130557", "0.5130459", "0.512654", "0.51252156", "0.5119201", "0.51144993", "0.5105806", "0.5104645", "0.5100226", "0.5098584", "0.5093251", "0.50921404", "0.5090166", "0.507887", "0.50751084", "0.5063826", "0.5053778", "0.5043237", "0.50423265", "0.5039141", "0.5023706", "0.5019492", "0.5009931", "0.5006604", "0.50064605", "0.5002719", "0.5002172", "0.4994763", "0.49933666", "0.49853826", "0.4977161", "0.49753568", "0.49716416", "0.49691132", "0.49664345", "0.49591157", "0.49547607", "0.49463767", "0.4945084", "0.4942069", "0.49162313", "0.49146137", "0.49145725", "0.49095812", "0.49080268", "0.49059722", "0.4903411", "0.49004173", "0.48965272", "0.48898515", "0.48839962", "0.48832503", "0.48821577", "0.48728618", "0.48659953", "0.48627204" ]
0.0
-1
This feels wrong because you'd expect the file entity to be loaded already.
protected function fileProcess($value) { $value = (array) file_load($value); return array( 'id' => $value['fid'], 'self' => file_create_url($value['uri']), 'filemime' => $value['filemime'], 'filesize' => $value['filesize'], 'width' => $value['width'], 'height' => $value['height'], 'styles' => $value['image_styles'], ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEntity() {\n return $this->file;\n }", "abstract protected function load();", "abstract protected function load();", "abstract protected function load();", "abstract protected function load();", "public function testPersistLoad()\n {\n// $this->configSetter->configEntityIfNeed($this->category);\n//\n// $path = realpath(__DIR__ . '/fixtures/');\n// $path2 = $path.'/source.jpg';\n// copy($path.'/image.jpeg' , $path2);\n// $file = new File($path2);\n// $this->category->setTitle('')->getImage()->setFile($file);\n// $this->_em->persist($this->category);\n// $this->_em->flush();\n// $this->_em->clear();\n// $id = $this->category->getId();\n//\n// $this->assertTrue(is_file($this->category->getImage()->getOriginFullFileName()));\n// unset($this->category);\n// $this->assertFalse(isset($this->category));\n//\n// $this->category = $this->_em->find('Rid\\Bundle\\ImageBundle\\Tests\\Entities\\Category', $id);\n// $this->assertInstanceOf('Rid\\Bundle\\ImageBundle\\Model\\RidImage', $this->category->getImage());\n// $this->assertInstanceOf('Rid\\Bundle\\ImageBundle\\Model\\RidFile', $this->category->getRidFile());\n// $this->assertInstanceOf('Rid\\Bundle\\ImageBundle\\Services\\Config', $this->category->getRidFile()->getConfig());\n }", "abstract public function load($file, $context);", "public function postLoad(LifecycleEventArgs $args)\n {\n $entity = $args->getEntity();\n\n if ($entity instanceof Files){\n\n return;\n }\n }", "function loadFileData() {\n if (isset($this->params['file_id'])) {\n if (isset($this->params['version_id']) && $this->params['version_id'] > 0) {\n $this->currentFile = $this->getFile($this->params['file_id'], $this->params['version_id']);\n } else {\n $this->currentFile = $this->getFile($this->params['file_id']);\n }\n $fileData = $this->getFileTrans(\n $this->params['file_id'], $this->lngSelect->currentLanguageId\n );\n if (isset($fileData[$this->params['file_id']])) {\n $this->currentFileData = $fileData[$this->params['file_id']];\n } else {\n unset($this->currentFileData);\n }\n }\n }", "abstract public function load();", "abstract public function load();", "public abstract function load();", "public function loadFromFile($file)\n {\n \n }", "public function testFileNotFoundException ()\n {\n $this->tran->loadFile(2);\n $this->tran->loadFile();\n $this->tran->loadFile(true);\n $this->tran->loadFile('asd');\n }", "protected function entityLoad(FeedsSource $source, $fid) {\n if ($this->config['update_existing'] == FEEDS_UPDATE_EXISTING) {\n $file = file_load($fid);\n }\n else {\n // We're replacing the existing file. Only load what's absolutely necessary.\n $file = db_query(\"SELECT fid, type, status, uri FROM {file_managed} WHERE fid = :fid\", array(':fid' => $fid))->fetchObject();\n $file->uid = $this->config['author'];\n }\n\n $this->debug($file, 'entityLoad');\n\n return $file;\n }", "abstract public function load($filename);", "public function getFile()\r\n\t{\r\n\t\t// This if statement allows for you to continue using this class AFTER insert\r\n\t\t// basically it will only get the file if you plan on using it further which means that\r\n\t\t// otherwise it omits at least one database call each time\r\n\t\tif($this->_id instanceof ObjectID && !$this->_file instanceof GridFSDownload){\r\n\t\t\treturn $this->_file = $this->getCollection()->get($this->_id);\r\n\t\t}\r\n\t\treturn $this->_file;\r\n\t}", "private function loadFile()\n\t{\n\t\tif( empty($this->content) ) {\n\t\t\tif( empty($this->file) ) {\n\t\t\t\tthrow new Exception('Which file should I parse, you ...!');\n\t\t\t} else {\n\t\t\t\tif( strtolower( $this->file->getExtension() ) == 'zip' ) {\n\t\t\t\t\t$this->content = $this->handleZipFile( $this->file );\n\t\t\t\t} else {\n\t\t\t\t\t$this->content = $this->file->getContents();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "abstract protected function _loadMappingFile($file);", "abstract protected function _loadMappingFile($file);", "public function testNoEntityLoading() {\n\t\t$file = CAKE . 'VERSION.txt';\n\t\t$xml = <<<XML\n<!DOCTYPE cakephp [\n <!ENTITY payload SYSTEM \"file://$file\" >]>\n<request>\n <xxe>&payload;</xxe>\n</request>\nXML;\n\t\ttry {\n\t\t\t$result = Xml::build($xml);\n\t\t\t$this->assertEquals('', (string)$result->xxe);\n\t\t} catch (Exception $e) {\n\t\t\t$this->assertTrue(true, 'A warning was raised meaning external entities were not loaded');\n\t\t}\n\t}", "public function load() {\n $filename = STORAGE_PATH.$this->id.'.fba';\n if (file_exists($filename)) {\n\n // Split the file where the blocks terminate '<!--SPLITME-->'\n $text = file_get_contents($filename);\n $array = explode('<!--SPLITME-->',$text);\n\n // Set the texts for this article\n $this->article_title = $array[0];\n $this->article_body = $array[1];\n $this->article_comments = $array[2];\n if(strpos($this->article_body, '<!--DESCRIPTION-->')) {\n $this->article_description = strip_tags((explode('<!--DESCRIPTION-->', $this->article_body))[0]);\n } else {\n $this->article_description = '';\n }\n // Confirm the existence of the article\n $this->existence = true;\n }\n }", "public function postLoad($entity);", "public function load($file);", "public function load($file);", "public function load($file);", "protected function childLoad() {}", "abstract protected function getFile(): File;", "function getFile(): object {\n return $this->file;\n }", "public function load() { }", "public function __load();", "public function testResourceFile()\n {\n $file = new ResourceFile('123', 'test.txt');\n $this->field->saveFile($file);\n\n $path = $this->field->getUploadTo();\n $this->assertEquals(sprintf('foo/FileModel/%s', date('Y-m-d')), $path);\n $this->assertEquals('123', file_get_contents(__DIR__.'/temp/'.$path.'/test.txt'));\n }", "public function load(): void;", "public function load(): void;", "public function testLargeAttribute() {\n $file = new Mock\\File();\n $file->data = file_get_contents('../src/ORM_Model.php');\n $file->name = 'ORM_Model.php';\n\n $this->assertTrue( $file->save(), \"Unable to save File\" );\n\n $storedFile = Mock\\File::Find( $file->id() );\n $this->assertEquals( $file->data, $storedFile->data );\n }", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "public function load();", "protected static function entityFactory($input) {\n\n\t\tif (!isset(self::$config['filestore_prefix'])) {\n\t\t\t$prefix = \"file/\";\n\t\t}\n\n\t\t$uploads = self::$uploads[$input];\n\t\t$handled_uploads = array();\n\t\t$entities = array();\n\n\t\tforeach ($uploads as $key => $upload) {\n\t\t\tif ($upload->error) {\n\t\t\t\t$handled_uploads[] = $upload;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\n\t\t\t$filehandler = new ElggFile();\n\t\t\tif (is_array(self::$attributes)) {\n\t\t\t\tforeach (self::$attributes as $key => $value) {\n\t\t\t\t\t$filehandler->$key = $value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$filestorename = elgg_strtolower(time() . $upload->name);\n\t\t\t$filehandler->setFilename($prefix . $filestorename);\n\n\t\t\t$filehandler->title = $upload->name;\n\t\t\t$filehandler->originalfilename = $upload->name;\n\t\t\t$filehandler->filesize = $upload->size;\n\t\t\t$filehandler->mimetype = $upload->mimetype;\n\t\t\t$filehandler->simpletype = $upload->simpletype;\n\n\t\t\t$filehandler->open('write');\n\t\t\t$filehandler->close();\n\n\t\t\tmove_uploaded_file($upload->path, $filehandler->getFilenameOnFilestore());\n\n\t\t\tif ($filehandler->save()) {\n\t\t\t\t$upload->guid = $filehandler->getGUID();\n\t\t\t\t$upload->file = $filehandler;\n\t\t\t\t$upload->not_attached = true;\n\n\t\t\t\t/*if ($filehandler->simpletype == \"image\") {\n\t\t\t\t\trequire_once(dirname(__FILE__) . '/IconHandler.php');\n\t\t\t\t\tIconHandler::makeIcons($filehandler);\n\t\t\t\t}*/\n\t\t\t\t// if image, we need to create thumbnails (this should be moved into a function)\n\t\t\t\tif ($upload->guid && $filehandler->simpletype == \"image\") {\n\t\t\t\t\tself::setImageThumbnails($filehandler);\n\t\t\t\t} else if ($upload->guid && $filehandler->mimetype == \"application/pdf\") {\n\t\t\t\t\tself::setPdfThumbnails($filehandler);\n\n\t\t\t\t} else if ($filehandler->icontime) {\n\t\t\t\t\t// if it is not an image, we do not need thumbnails\n\t\t\t\t\tunset($filehandler->icontime);\n\n\t\t\t\t\t$thumb = new ElggFile();\n\n\t\t\t\t\t$thumb->setFilename($prefix . \"thumb\" . $filestorename);\n\t\t\t\t\t$thumb->delete();\n\t\t\t\t\tunset($filehandler->thumbnail);\n\n\t\t\t\t\t$thumb->setFilename($prefix . \"smallthumb\" . $filestorename);\n\t\t\t\t\t$thumb->delete();\n\t\t\t\t\tunset($filehandler->smallthumb);\n\n\t\t\t\t\t$thumb->setFilename($prefix . \"largethumb\" . $filestorename);\n\t\t\t\t\t$thumb->delete();\n\t\t\t\t\tunset($filehandler->largethumb);\n\t\t\t\t}\n\n\n\t\t\t\t$entities[] = $filehandler;\n\t\t\t} else {\n\t\t\t\t$upload->error = elgg_echo('upload:error:unknown');\n\t\t\t}\n\n\t\t\t$handled_uploads[] = $upload;\n\t\t}\n\n\t\tself::$uploads[$input] = $handled_uploads;\n\t\tself::$files[$input] = $entities;\n\t}", "public function getFile() {}", "public function getFile() {}", "public function load()\n {\n }", "public function load()\n {\n }", "protected function setUp(): void\n {\n /** @var File $file */\n parent::setUp();\n TestAssetStore::activate('UsedOnTableTest');\n $path = dirname(__DIR__) . '/Forms/fixtures/testfile.txt';\n $content = file_get_contents($path ?? '');\n $file = File::get()->find('Name', 'testfile.txt');\n $file->setFromString($content, $file->generateFilename());\n }", "public function load(){\n\t\tif (is_file($this->_filename) && is_readable($this->_filename)){\n\t\t\t$this->_storage = require($this->_filename);\n\t\t\t$this->_dataAvailable = true;\n\t\t}\n\t}", "function ds_views_row_render_render_cache_file_managed($entity, $view_mode, $load_comments) {\n $element = render_cache_entity_view_single('file', $entity, $view_mode);\n return $element;\n}", "public function testAlreadyLoadedFileWillNotBeLoadedTwice()\n {\n $this->translator->load();\n $this->assertArrayHasKey('test_message', $this->translator->all());\n $this->translator->load();\n $this->assertTrue($this->translator->hasBeenLoaded('en'));\n }", "public function load() : Persistable;", "public function testGetFileById()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function DoctrineLoad()\n {\n // and call __load method\n }", "protected function initFileLoader() \n\t{\n\t\t$this->fileLoader = new FileLoader();\n\t}", "public function file()\n {\n return $this->belongsTo('App\\Models\\File');\n }", "public function file()\n {\n return $this->belongsTo('App\\File');\n }", "protected function _load()\n\t{\n\t\t$_file = $this->_storagePath . DIRECTORY_SEPARATOR . $this->_fileName;\n\n\t\tif ( is_file( $_file ) && file_exists( $_file ) && is_readable( $_file ) )\n\t\t{\n\t\t\tif ( false !== ( $_data = Utility\\Storage::defrost( file_get_contents( $_file ) ) ) )\n\t\t\t{\n\t\t\t\t//\tIf it wasn't frozen, a JSON string may be returned\n\t\t\t\tif ( is_string( $_data ) && false !== json_decode( $_data ) )\n\t\t\t\t{\n\t\t\t\t\t$_data = json_decode( $_data, true );\n\t\t\t\t}\n\n\t\t\t\t$this->merge( $_data );\n\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "protected function getFileFactory() {}", "public function file()\n {\n return $this->morphOne(File::class, 'fileable');\n }", "abstract public function setContentFromFile($file);", "abstract protected function loadDefinition();", "function hook_file_entity_access($op, $file, $account) {\n $type = is_string($file) ? $file : $file->type;\n\n if ($op !== 'create' && (REQUEST_TIME - $file->timestamp) < 3600) {\n // If the file was uploaded in the last hour, deny access to it.\n return FILE_ENTITY_ACCESS_DENY;\n }\n\n // Returning nothing from this function would have the same effect.\n return FILE_ENTITY_ACCESS_IGNORE;\n}", "public function getFileInstance()\n {\n return $this->file;\n }", "abstract protected function doTransload();", "protected function _setFile()\n\t{\n\t\t$this->_moveToImageDir();\n\n\t\tif (!$this->_validateMimeType()) {\n\t\t\tunlink($this->getFilePath()); // delete file\n\t\t\tthrow new Exception('Not Allowed MIME Type File ERROR!');\n\t\t}\n\n\t\t$this->_file = file_get_contents($this->getFilePath());\n\t}", "protected static function loadSingleExtTablesFiles() {}", "function loadFileFromDB() {\n\t\t// If file contents are in bin_data column, fetch data and store in file.\n\t\tif (isset($this->data_array[\"bin_data\"]) && \n\t\t\ttrim($this->data_array[\"bin_data\"]) != \"\") {\n\n\t\t\t// Need to decode the string first.\n\t\t\t$theFileContent = base64_decode($this->data_array[\"bin_data\"]);\n\n\t\t\t$theDir = dirname($this->getFile());\n\t\t\tif (!file_exists($theDir)) {\n\t\t\t\t// Its parent directory does not exist yet. Create it.\n\t\t\t\tmkdir($theDir);\n\t\t\t}\n\n\t\t\t// Create the file for future use.\n\t\t\t$fp = fopen($this->getFile(), \"w+\");\n\t\t\tfwrite($fp, $theFileContent);\n\t\t\tfclose($fp);\n\t\t}\n\t}", "public function hydrateUploads($entity)\n {\n if(!is_object($entity)) return;\n\n $class = new ReflectionClass($entity);\n foreach($class->getProperties() as $property)\n {\n $annotation = $this->reader->getPropertyAnnotation($property,self::ATTACHMENT_ANNOTATION);\n if($annotation instanceof AttachmentAnnotation)\n {\n $attachment = new Attachment($this,$entity,$annotation,$entity);\n $path = $attachment->path();\n if(is_file($path))\n {\n $file = new File($path);\n $this->resolver->set($entity,$property->getName(),$file);\n }\n }\n }\n }", "function uc_file_ca_entity() {\n\n // CA entity for a file expiration object.\n $entities['uc_file_expiration'] = array(\n '#title' => t('Ubercart file expiration(s)'),\n '#type' => 'array',\n );\n\n return $entities;\n}", "public function testLocalFile()\n {\n $file = new LocalFile(__DIR__.'/test.txt');\n $this->field->saveFile($file);\n\n $path = $this->field->getUploadTo();\n $this->assertEquals(sprintf('foo/FileModel/%s', date('Y-m-d')), $path);\n $this->assertEquals('123', file_get_contents(__DIR__.'/temp/'.$path.'/test.txt'));\n }", "public function prePersist(LifecycleEventArgs $args)\n {\n $entity = $args->getEntity();\n// $entityManager = $args->getEntityManager();\n// $className = $entityManager->getClassMetadata(get_class($entity))->getName();\n\n if ($entity instanceof Files){\n $entity->setName(uniqid());\n $entity->setCreatedAt($this->setupCreatedAt($entity));\n\n return;\n }\n }", "public static function getFile() {}", "public function importEntities() {\n\t\t$option = $this->option;\n\t\t// Access check\n\t\tif(!$this->allowEdit($option)) {\n\t\t\t$this->setRedirect('index.php?option=com_jmap&task=metainfo.display', JText::_('COM_JMAP_ERROR_ALERT_NOACCESS'), 'notice');\n\t\t\treturn false;\n\t\t}\n\t\n\t\t// Get the file manager instance with db connector dependency injection\n\t\t$filesManager = new JMapFileMetainfo(JFactory::getDbo(), $this->app);\n\t\n\t\tif(!$filesManager->import()) {\n\t\t\t// Model set exceptions for something gone wrong, so enqueue exceptions and levels on application object then set redirect and exit\n\t\t\t$filesManagerException = $filesManager->getError(null, false);\n\t\t\t$this->app->enqueueMessage($filesManagerException->getMessage(), $filesManagerException->getErrorLevel());\n\t\t\t$this->setRedirect ( \"index.php?option=$option&task=metainfo.display\", JText::_('COM_JMAP_METAINFO_ERROR_IMPORT'));\n\t\t\treturn false;\n\t\t}\n\t\n\t\t$this->setRedirect ( \"index.php?option=$option&task=metainfo.display\", JText::_('COM_JMAP_METAINFO_SUCCESS_IMPORT'));\n\t}", "public function overLoad()\n {\n $loader = new Loader($this->filePath, false);\n return $loader->load();\n }", "function load_from_database () : bool {\n $db = $this->getDatabase();\n\n $id = $db->escape($this->id);\n $sql = \"SELECT * FROM content_files WHERE content_id = '\" . $id . \"'\";\n if ( !($result = $db->query($sql)) ) {\n message_die(SQL_ERROR, \"Unable to query content\", '', __LINE__, __FILE__, $sql);\n }\n if (!$row = $db->fetchRow($result)) {\n $this->lastError = \"Content unknown: \" . $this->id;\n return false;\n }\n $this->load_from_row($row);\n return true;\n }", "public function load()\n {\n }", "public function load()\n {\n }", "public function load()\n {\n }", "public function load()\n {\n }", "public function load()\n {\n }", "function loadModel($name){\n\t\t$dir = APP . \"Entity\" . DS;\n\n\t\t$file = str_replace([$dir,\".php\"], [\"\",\"\"], $name);\n\n\t\tif(!isset($this->$file)){\n\t\t\trequire_once $name;\n\t\t\t$this->$file = new $file();\n\t\t\tif(isset($this->Form)){\n\t\t\t\t$this->$file->Form = $this->Form; \n\t\t\t}\n\t\t}\n\n\n\t}", "protected function getEntityExtractor( File $file ) {\n\t\t$name = $file->getName();\n\n\t\tif ( !$this->entityExtractors->hasKey( $name ) ) {\n\t\t\t$factory = $this->getFactoryByFile( $file );\n\t\t\t$adapter = $factory->createParserAdapter();\n\t\t\t$mapper = $factory->createNodeMapper();\n\n\t\t\t$extractor = new EntityExtractor( $file, $adapter, $mapper );\n\t\t\t$this->entityExtractors->set( $name, $extractor );\n\t\t}\n\n\t\treturn $this->entityExtractors->get( $name );\n\t}", "function import($file , $load_time = 0, $on_init = false)\r\n\t{\r\n\t\treturn parent::import($file, $load_time);\r\n\t}", "private function load_children() {\n\t\tif (isset($this->_children)) return;\n\t\t$this->_children = array();\n\t\t$this->_testcases = array();\n\t\tif (!$this->exists()) return; // entity doesn't actually exist\n\t\tforeach (new DirectoryIterator($this->data_path()) as $child) {\n\t\t\t$filename = $child->getFilename();\n\t\t\tif ($child->isDot() || $filename[0] == '.') {\n\t\t\t\t// skip hidden files and ..\n\t\t\t} else if ($child->isDir()) {\n\t\t\t\t// subdirectory = child entity\n\t\t\t\t$this->_children[$filename] = new Entity($this, $filename);\n\t\t\t} else if (substr($filename,-3) == '.in') {\n\t\t\t\t// \".in\" file = testcase\n\t\t\t\t$this->_testcases []= substr($filename,0,-3);\n\t\t\t}\n\t\t}\n\t\tsort($this->_testcases);\n\t\t//ksort($this->_children);\n\t\tuasort($this->_children, 'compare_order');\n\t}", "private function loadFromMediaItem(MediaItem $item)\n\t{\n\t\t// set srcPath dependent if absolute path was given or not\n\t\t$this->srcPath = $item->fullPath;\n\t\t// is the file existing\n\t\tif (!file_exists($this->srcPath))\n\t\t\tthrow new \\Exception(\"This File does not exist or path ROOT'$item->path' is wrong\");\n\t\t// load\n\t\t$this->intern_load();\n\t}", "static public function configureFileField() {}", "protected function loadMetaInformation()\n {\n try {\n $logger = new Logger('exiftool');\n $reader = BookReader::create($logger);\n $metadataBag = $reader->files($this->file->getRealPath())->first();\n foreach ($metadataBag as $meta) {\n $tagName = $meta->getTag()->getName();\n if (0 === strcasecmp($tagName, 'MIMEType')) {\n $this->mime = $meta->getValue()->asString();\n }\n if (0 === strcasecmp($tagName, 'FileType')) {\n $this->ext = strtolower($meta->getValue()->asString());\n }\n if ($this->ext && $this->mime) {\n break;\n }\n }\n } catch (\\Exception $e) {\n $logger->addNotice($e->getMessage());\n }\n finally {\n $this->mime = empty($this->mime) ? $this->file->getMimeType() : $this->mime;\n $this->ext = empty($this->ext) ? $this->file->guessExtension(): $this->ext;\n }\n }", "private function loadEntity($entityName) {\n $filename = \"model/\" . $entityName . \".php\";\n\n // on teste l'existence du fichier\n if (file_exists($filename)) {\n // on l'inclut s'il existe\n /** @todo vérifier s'il faut un include_once **/\n require($filename);\n\n return true;\n }\n return false;\n }", "public function __construct()\n {\n parent::__construct();\n $this->fileClassFactory = new FileFactory();\n }", "public function loadRaw()\n {\n $this->raw = $this->reader->raw($this->path);\n $this->rawLoaded = true;\n }", "protected function _construct() {\n\t\t$this->_fileObj = $this->fileObj();\n\t}", "function getFile() {\n\t\treturn ArtifactStorage::instance()->get($this->getID());\n\t}", "public function getFile ();", "function get_file()\n\t{\n\t\treturn $this->file;\n\t}" ]
[ "0.65437484", "0.63507384", "0.63507384", "0.63507384", "0.63507384", "0.63197213", "0.6272631", "0.6252562", "0.62238395", "0.6217116", "0.6217116", "0.61789775", "0.6150566", "0.60920423", "0.5984254", "0.5981016", "0.59498394", "0.59375244", "0.5843301", "0.5843301", "0.5840861", "0.58031785", "0.580233", "0.5798759", "0.5798759", "0.5798759", "0.5792612", "0.57912886", "0.57853293", "0.5759553", "0.575049", "0.57326233", "0.572675", "0.572675", "0.5685315", "0.5664849", "0.5664849", "0.5664849", "0.5664849", "0.5664849", "0.5664849", "0.5664849", "0.5664849", "0.5664849", "0.5664849", "0.5664849", "0.5664849", "0.5664849", "0.5649591", "0.558613", "0.55850357", "0.5578152", "0.5578152", "0.5556604", "0.5513269", "0.5512365", "0.54756105", "0.54699665", "0.5462697", "0.5456148", "0.5444217", "0.54436326", "0.5441398", "0.54378134", "0.5436583", "0.542186", "0.5418056", "0.54145825", "0.5397027", "0.5394937", "0.53848255", "0.53822696", "0.5381805", "0.5381193", "0.5349187", "0.53316593", "0.53268623", "0.531187", "0.53115094", "0.5300474", "0.530006", "0.52945167", "0.5291826", "0.5290933", "0.5290933", "0.5290933", "0.5290168", "0.52859825", "0.52854383", "0.528182", "0.527917", "0.5278349", "0.52770555", "0.5273281", "0.52680266", "0.5263393", "0.5256022", "0.52530086", "0.52524114", "0.5252318", "0.52461857" ]
0.0
-1
Sets a new mensagemErro
public function setMensagemErro(\ans\schemes\CtMotivoGlosaType $mensagemErro) { $this->mensagemErro = $mensagemErro; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setError ($msg) {\r\n $this->errors[]=$msg;\r\n }", "public function setErrorMessage($e){\n //checks if error message is cause due to invalid characters\n if($e -> getMessage() == EnumStatus::$InvalidCharactersError){\n //if so those are removed.\n $this -> saveDisplayName = strip_tags($this -> saveDisplayName);\n $this -> saveUserName = strip_tags($this -> saveUserName);\n }\n $this -> message = $e -> getMessage();\n }", "public function limpiarError(){\n\t\t$this->mensaje_error = null;\n\t}", "function addMessage($texte)\n {\n $this->errorData[][\"message\"] = $texte;\n }", "protected function setError($msg)\n {\n }", "public function impostaErrore($errore){\n $this->assign('errore',$errore);\n }", "public function impostaErrore($errore){\n $this->assign('errore',$errore);\n }", "public function setError($msg) {\n $this->__isError = true;\n $this->__errorMsg = $msg;\n }", "function set_error($err) {\n # Set Current Error Message\n $this->error_message = $err;\n\n # Add to Error Log\n $this->error_log[] = $err;\n\n # Increment Error Counter\n $this->error_count++;\n }", "public function setError($err);", "public static function setErrorMessage($msg){\n $_SESSION[UtilMessage::ERROR_REGISTER] = $msg;\n }", "private function setErrors($errorMensaje)\r\n\t\t{\r\n\t\t\t$this->_controlErrors[] = $errorMensaje;\r\n\t\t}", "public function setError($msg)\n {\n array_push($this->errors, $msg);\n }", "function setFailMsg($msg) { $this->_failMsg = $msg; }", "protected function setError($msg)\n {\n $this->error_count++;\n if ($this->Mailer == 'smtp' and !is_null($this->smtp)) {\n $lasterror = $this->smtp->getError();\n if (!empty($lasterror['error'])) {\n $msg .= $this->lang('smtp_error') . $lasterror['error'];\n if (!empty($lasterror['detail'])) {\n $msg .= ' Detail: '. $lasterror['detail'];\n }\n if (!empty($lasterror['smtp_code'])) {\n $msg .= ' SMTP code: ' . $lasterror['smtp_code'];\n }\n if (!empty($lasterror['smtp_code_ex'])) {\n $msg .= ' Additional SMTP info: ' . $lasterror['smtp_code_ex'];\n }\n }\n }\n $this->ErrorInfo = $msg;\n }", "public function setErrMsg($value) {\n return $this->set(self::ERR_MSG, $value);\n }", "public static function setErrors($msg){\n $_SESSION[UtilMessage::SET_ERRORS] = $msg;\n }", "function setError($message, $code)\n {\n $this->errorMsg\n = $this->errorMsg\n ? $this->errorMsg\n : $message;\n $this->errorIdentifier\n = $this->errorIdentifier\n ? $this->errorIdentifier\n : \"$this->moduleName / $code\";\n }", "function setError($message) {\n global $error;\n $error = (object) array(\n 'message' => $message\n );\n }", "public function SetError($msg=null) {\n if ($msg==null) { return $this->SetError(\"No message set\"); }\n $this->error_msg = $msg;\n return false;\n }", "public function setMsgError($error) {\r\n $this->msg_error = $error;\r\n }", "function setErrorMsg($error) {\r\r\n\t\t$this->errorMsg = KT_DynamicData($error, $this->tNG, '', false);\r\r\n\t}", "function setError($type, $msg) {\n\t\t$this->errorType = $type;\n\t\t$this->errorMsg = $msg;\n\t}", "public function setMsgNotFound($msg = \"Não existe nenhum post cadastrado!\"){\n\t\t$this->msgNotFound = $msg;\n\t}", "protected function set_error( $code, $message) {\n\t\t$this->errors->add($code, $message);\n\t}", "public function __construct() {\n $this->message = \"Ocorreu um problema ao tentar organizar natureza alfabeticamente.\";\n }", "public function setError($error, $code, $msg){\n $this->errors[$error] = array('code'=>$code, 'message'=>$msg);\n }", "public function set_mensagem($mensagem) : void\n {\n try {\n $this->obj_contato_anunciante->set_mensagem(Validador::Contato_Anunciante()::validar_mensagem($mensagem));\n } catch (Exception $e) {\n $this->erros[] = $e->getMessage();\n $this->campos['mensagem'] = \"erro\";\n }\n }", "public function setError($message, $key = null) {\n if (!is_null($key))\n $this->errors[$key] = $message;\n else\n $this->errors[] = $message;\n }", "public function posa_error($msg)\n {\n $this->error [] = $msg;\n }", "protected function setError($message, $detail = '', $smtp_code = '', $smtp_code_ex = '')\n {\n }", "public function setErrMsg(\\SKBuiltinString $value=null)\n {\n return $this->set(self::ERRMSG, $value);\n }", "protected function setErrorMessage(Message $msg) {\n $this->errors->clearContent()->append($msg);\n return $this;\n }", "public static function setError($message)\n {\n self::put(\"error\", $message);\n }", "public function __construct( ){\n\t\t$this->message = \"Algo errado em sua consulta\";\n\t}", "protected function setError($message, $code)\n\t{\n\t\t$this->error = true;\n\t\t$this->errorMessage = $message;\n\t\t$this->errorCode = $code;\n\t}", "protected function setError($message, $detail = '', $smtp_code = '', $smtp_code_ex = '')\n {\n $this->error = array(\n 'error' => $message,\n 'detail' => $detail,\n 'smtp_code' => $smtp_code,\n 'smtp_code_ex' => $smtp_code_ex\n );\n }", "function add_error($msg) {\n\t\t$this->errors[] = $msg;\n\t}", "function affichageErreur()\n\t{\n\t}", "private function setError($proyectos,$filtro){\n if(empty($proyectos) && isset($filtro) ){\n $this->view->error=\"No se hallaron coincidencias\";\n }\n return ;\n }", "public function registrarErro(){\r\n if($this->dataHora != null){\r\n if($this->classe != null){\r\n if($this->metodo != null){\r\n if(count($this->descricao != null)){\r\n //Registra o erro em arquivos de log .TXT----------\r\n $linha = \"\\n========================================================\\n\";\r\n $linha .= \"Data: \".$this->dataHora.\"\\n\";\r\n $linha .= \"Erro: \".$this->descricao.\"\\n\";\r\n $linha .= \"Classe: {$this->classe}\\n\";\r\n $linha .= \"Metodo: {$this->metodo}\\n\";\r\n $linha .= \"========================================================\\n\";\r\n $nomeArquivo = \"C:\\\\xampp\\\\htdocs\\\\sui\\\\logs\\\\\".date(\"Y-m-d\");\r\n $arquivo = fopen(\"{$nomeArquivo}.txt\", \"a\");\r\n fwrite($arquivo, $linha);\r\n fclose($arquivo);\r\n Helpers::msg(\"Erro\", \"Houve um erro no processo verifique o log para mais informacoes\");\r\n //Registra o erro em arquivos de log .TXT----------\r\n\r\n\r\n //Envia email para todos os programadores---------------------------\r\n// $conn = Conexoes::conectarCentral();\r\n// $programadores = $conn->query(\"select programadores.email from programadores\")->fetchAll();\r\n// $enderecos = Array();\r\n// if(count($programadores) > 0){\r\n// foreach ($programadores as $programador){\r\n// array_push($enderecos, $programador['email']);\r\n// }\r\n// }else{\r\n// array_push($enderecos, \"[email protected]\");\r\n// }\r\n// $email = new Mail();\r\n// $email->de = \"[email protected]\";\r\n// $email->para = $enderecos;\r\n// $email->titulo = \"Erro no sistema de integrações\";\r\n// $email->corpo = $this->corpoEmail();\r\n// try{\r\n// $email->enviaEmail();\r\n// } catch (Exception $ex) {\r\n// echo $ex->getMensage();\r\n// }\r\n// return true;\r\n //Envia email para todos os programadores---------------------------\r\n }else{\r\n echo \"A descricao do erro nao foi informada\";\r\n }\r\n }else{\r\n echo \"Metodo do erro nao foi informado\";\r\n }\r\n }else{\r\n echo \"Classe do erro nao foi informada\";\r\n }\r\n }else{\r\n echo \"Date e hora do erro não informada\";\r\n }\r\n }", "public function setErrorMessage($message)\n {\n $this->message = $message;\n }", "private function _setErrorMessage($errorCode = '')\n {\n $this->errorMessage = trans('evatr::messages.'.$errorCode);\n }", "private function setErrorMessage(ServerRequest $request, $message)\n {\n $messages = (array)$request->getSession()->read('Flash.flash');\n $messages[] = [\n 'key' => 'flash',\n 'element' => 'Flash/error',\n 'params' => [],\n 'message' => $message,\n ];\n $request->getSession()->write('Flash.flash', $messages);\n }", "protected function _setError($msg)\n\t{\n\t\tValidator::ensureParameterIsString($msg);\n\t\t$this->_usrError = $msg;\n\t}", "private function error($msg)\n {\n\t\t$this->error = true;\n\t\t$this->error_message .= $msg;\n }", "public function setErr($value)\n {\n return $this->set(self::ERR, $value);\n }", "public function setErr($value)\n {\n return $this->set(self::ERR, $value);\n }", "function err($msg, $field)\r\n\t\t{\r\n\t\t\t$this->msg->add($msg);\r\n\t\t\t$form_errors\t=\t$this->event->get('form_errors', array());\r\n\t\t\t$form_errors[]\t=\t$field;\r\n\t\t\t$this->event->set('form_errors', $form_errors);\r\n\t\t\t$this->error\t=\ttrue;\r\n\t\t}", "public function setErrors($error) {\n\t\t$params = $this->controller->request->params; \n\t\t$message = $error->getMessage();\n\t\t$url = $this->controller->request->here();\n\t\t$code = ($error->getCode() > 500 && $error->getCode() < 506) ? $error->getCode() : 500;\n\t\t$this->controller->response->statusCode($code);\n\t\t$this->controller->set(array(\n\t\t\t'name' => $message,\n\t\t\t'message' => h($url),\n\t\t\t'error' => $error,\n\t\t));\n\t\tif(isset($params['admin'])){\n\t\t\t$this->controller->render('/Errors/admin_error','admin_login');\n\t\t}else{\n\t\t\techo \"asdsadsadsa\"; die;\n\t\t\t$this->controller->render('/Errors/error','error');\n\t\t}\n\t}", "public function Error($err){\n\t\t$this->Add($err->getMessage());\n\t}", "public function Error($err){\n\t\t$this->Add($err->getMessage());\n\t}", "protected function setErrorMessage($message) {\n\t\t$this->lastError = $message;\n\t\treturn $this;\n\t}", "public function set_error($msg)\n\t{\n\t\tif (is_array($msg))\n\t\t{\n\t\t\tforeach ($msg as $val)\n\t\t\t{\n\t\t\t\t$msg = ($this->CI->lang->line($val) == FALSE) ? $val : $this->CI->lang->line($val);\n\t\t\t\t$this->error_msg[] = $msg;\n\t\t\t\tlog_message('error', $msg);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$msg = ($this->CI->lang->line($msg) == FALSE) ? $msg : $this->CI->lang->line($msg);\n\t\t\t$this->error_msg[] = $msg;\n\t\t\tlog_message('error', $msg);\n\t\t}\n\t}", "public function setErrorMessage($type='',$msg=''){\n\t\t($type == 'success') ? $msgVal = 'message-green' : $msgVal = 'message-red';\n\t\t$this->session->set_flashdata('sErrMSGType', $msgVal);\n\t\t$this->session->set_flashdata('sErrMSG', $msg);\n\t}", "public static function set_error($error = NULL)\n\t{\n\t\tSession::instance()->set_flash('error', $error);\n\t}", "protected function setFlashMessage()\n {\n if ($message = $this->session()->getFlash('flash-message')) {\n if ($this->session()->getFlash('flash-error')) {\n $this->pageView()->setError($message);\n } else {\n $this->pageView()->setMessage($message);\n }\n }\n }", "private function setError($value) {\r\n $this->debug('setError() was called with value: ' . $value);\r\n $this->error = $value;\r\n }", "public function setErrorMessage(?string $value): void {\n $this->getBackingStore()->set('errorMessage', $value);\n }", "public function setFailedMessage($val)\n {\n $this->_propDict[\"failedMessage\"] = $val;\n return $this;\n }", "protected function addErrorFlashMessage() {}", "public function AddError($err){\n\t\t$this->Add($err->getMessage());\n\t}", "public static function setError($message) {\n self::$_class = \"Example\\\\Excel\\\\Controllers\\\\Error\";\n throw new \\Exception($message);\n }", "public function setError($message, $code = 0) {\n\t\tif (!empty($message)) {\n\t\t\t$this->err_message = $message;\n\t\t\t$this->err_code = $code;\n\t\t\treturn TRUE;\n\t\t} else {\n\t\t\treturn FALSE;\n\t\t}\n\t}", "function setLog( $msg = NULL )\n {\n if( $msg == NULL ){\n \t\t$this->logErro = \n<<<EOT\n =============== *UPLOAD* LOG =============== <br />\n Pasta destino: $this->path <br />\n \tNome do arquivo: {$this->source[ \"name\" ]} <br />\n Tamanho do arquivo: {$this->source[ \"size\" ]} bytes<br />\n Tipo de arquivo: {$this->source[ \"type\" ]} <br />\n\t\t---------------------------------------------------------------<br /><br />\nEOT;\n }else{\n \t\t$this->logErro .= $msg;\n }\n }", "protected function setFlashError($message)\n {\n $this->get('session')->getFlashBag()->add('error', $message);\n }", "public function __construct() {\n $this->message = \"Falha na leitura de naturezas da planilha serie historica!\";\n }", "public function setException($err) {\n $this->exception = $err;\n }", "private function\t\tgestionError($mess, $subject, $destinataires)\n {\n \tif (!isset($mess))\n\t\t error::ErrorMail(\"corps du mail\");\n \tif (!isset($subject))\n \t\terror::ErrorMail(\"sujet du mail\");\n \tif (!isset($destinataires))\n \t\terror::ErrorMail(\"destinataire\");\n }", "protected function _set_custom_stuff() {\n //setup our custom error messages\n // $this->setCustomMessages( $this->_custom_messages );\n }", "function errorMSGControll() {\n $this->errorMSG = $this->model->getErrorMSG();\n $this->view->errorMSGHandler($this->errorMSG);\n }", "public function setMsgNotFoundTrash($msg = \"Não há nada na lixeira!\"){\n\t\t$this->msgNotFoundTash = $msg;\n\t}", "protected function setMessage($texto, $tipo = 'message') {\n $fmsg = new \\Zend\\Mvc\\Plugin\\FlashMessenger\\FlashMessenger;\n $fmsg->addMessage($texto, $tipo);\n }", "function add_exception($text) {\n $this->errors->add_msj($text);\n }", "private function _setMetaMessage( $msg, $code = 0 ) {\n if ( is_array($this->settings['errors']) === false ) { $this->settings['errors'] = array(); }\n if ( NoNull($msg) != '' ) { $this->settings['errors'][] = NoNull($msg); }\n if ( $code > 0 && nullInt($this->settings['status']) == 0 ) { $this->settings['status'] = nullInt($code); }\n }", "public static function setError($error = '', $type = 'notice', $id = '') {\r\n self::$errors[] = array('id' => $id,\r\n 'type' => $type,\r\n 'text' => $error);\r\n }", "public static function setError($error = '', $type = 'notice', $id = '') {\r\n self::$errors[] = array('id' => $id,\r\n 'type' => $type,\r\n 'text' => $error);\r\n }", "public function setMessage($msg){ \n\t\t\t$this->message = $msg;\n\t\t}", "public function addErrorMessage($message) {\n\t\t$message = '<i class=\"fa fa-times\"></i> ' . $message;\n\t\t$this->addMessage($message, 'error');\n\t}", "public static function setMsg($msg, $tipo=1){\n $titulo = \"Sucesso!\";\n $classe = \"alert-success alert-dismissible\";\n $icone = \"fas fa-check\";\n if($tipo==-1){\n $titulo = \"Atenção!\";\n $classe = \"alert-danger alert-dismissible\"; \n $icone = \"fas fa-ban\";\n }else if($tipo==2){\n $titulo = \"Informação!\";\n $classe=\"alert-info alert-dismissible\";\n $icone = \"fas fa-info\";\n }else if($tipo==3){\n $titulo = \"Alerta!\";\n $classe=\"alert-warning alert-dismissible\";\n $icone = \"fas fa-exclamation-triangle\";\n }\n \n $resultado = (object) array(\n \"tipo\" => $tipo,\n \"titulo\" => $titulo,\n \"msg\" => $msg,\n \"classe\"=> $classe,\n \"icone\" => $icone\n );\n \n $_SESSION[\"msg\"] = $resultado; \n }", "public function testSetMessage()\n {\n $inputInvalid = 'abcdefghij';\n $this->assertFalse($this->_validator->isValid($inputInvalid));\n $messages = $this->_validator->getMessages();\n $this->assertEquals(\"'$inputInvalid' is more than 8 characters long\", current($messages));\n\n $this->_validator->setMessage(\n 'Your value is too long',\n Zend_Validate_StringLength::TOO_LONG\n );\n\n $this->assertFalse($this->_validator->isValid('abcdefghij'));\n $messages = $this->_validator->getMessages();\n $this->assertEquals('Your value is too long', current($messages));\n }", "public function add_error($where, $msg){\r\n\r\n\t\t$this->log_error($where, $msg);\r\n\r\n\t\t$this->errors[] = $msg;\r\n\r\n\t\t$msg_array = array(\r\n\t\t\t\t'type' => 'error',\r\n\t\t\t\t'class' => $this::ERR_MSG_CLASS,\r\n\t\t\t\t'text' => $msg\r\n\t\t);\r\n\r\n\t\t$this->all_messages[] = $msg_array;\r\n\t}", "protected function mostraErrore($pagina) {\r\n $operatore = $_SESSION[\"op\"];\r\n $pagina->setContentFile(\"./view/benvenuto.php\");\r\n $pagina->setTitle(\"Errore\");\r\n OperatoreController::setruolo($pagina);\r\n include \"./view/masterPage.php\";\r\n }", "function error() {\n $this->escribirHeader(\"Error de Permisos\");\n }", "private function addError($key, $err_message){\n $this->errors[$key] = $err_message;\n }", "private static function setErrorMessage($message) {\n if (self::$_messages[self::$_inputElement][self::$_validationRule]) {\n $message = self::$_messages[self::$_inputElement][self::$_validationRule];\n }\n array_push(self::$_response, ucfirst($message));\n }", "protected function insereErradas() {\n date_default_timezone_set('America/Sao_Paulo');\n $datahora = date(\"Y-m-d H:i:s\");\n $create = new Create;\n $Dados = array(\"datahora\" => $datahora, \"flag\" => $this->resposta, \"usuario_id\" => $this->userid,);\n $create->IniCreate(\"erradas\", $Dados);\n if ($create->getResult()):\n return 0; // Cadastrado errada e retorna flag Incorreta\n endif;\n }", "public function setMensagem($value,$options=array('required'=>true)){ \n $this->_data['mensagem'] = new ZendT_Type_String($value,array('mask'=>''\n ,'charMask'=>''\n ,'filterDb'=>array (\n 0 => '',\n)\n ,'filter'=>array('trim', )));\n if ($options['db'])\n $this->_data['mensagem']->setValueFromDb($value);\n \n if (!$options['db']){\n \n if ($options['required'])\n $this->isRequired($value,'mensagem');\n \n $valid = new Zend_Validate_StringLength(array ( 'max' => 1000, ) );\n $valueValid = $this->_data['mensagem']->getValueToDb();\n if ($valueValid && !$valid->isValid($valueValid)){\n throw new ZendT_Exception_Business(implode(\"\\n\",$valid->getMessages()));\n }\n \n }\n return $this;\n }", "public function setErrorMSG($errorMSG) {\n if(is_string($errorMSG)){\n switch ($errorMSG) {\n case \"nameError\":\n $this->nameError = \"<small class='error'>Invalid name: Name has to be longer than 2 character and only alphabetic or numeric character</small>\";\n break;\n case \"imageError\":\n $this->imageError = \"<small class='error'>Invalid picture: Picture must be smaller than 3MB and be of types JPG/JPEG, PNG or GIF</small>\";\n break;\n case \"priceError\":\n $this->priceError = \"<small class='error'>Invalid price: Price must be between 1 - 10000 and be of numeric characters</small>\";\n break;\n case \"descError\":\n $this->descError = \"<small class='error'>Invalid description: Description must be longer than 10 characters </small>\";\n break;\n default:\n break;\n }\n }\n }", "public function addError($property, $message);", "function setError($message)\n{\n\t$args = array_slice(func_get_args(), 1) ;\n\t$message = vsprintf($this->t($message), $args);\n\n\tif ($this->throwsExceptions) {\n\t\tthrow new AuthException($message);\n\t}\n\telse {\n\t\t$this->errors[] = $message;\n\t\t$this->onError($message);\n\t}\n}", "protected function setErrorClassAttribute() {}", "private function _set_error($error)\n {\n // set error message in $_error property\n $this->_error = $error;\n\n return;\n }", "public function addMessage($msg)\n {\n $this->_errorMessages[] = $msg;\n return $this;\n }", "protected function error($message) { \n\t\t$this->error_found = true; \n\t\t$this->error_message = $message; \n\t}", "public function setError($value) {\n return $this->set(self::ERROR, $value);\n }", "public function setError($value) {\n return $this->set(self::ERROR, $value);\n }", "private function set_error( $key )\n\t{\n\t\tglobal $path;\n\t\tif( isset($this->err_code[$key]) && isset($this->err_code[$key]) )\n\t\t{\t\n\t\t\t$this->arr_error[].= $this->err_label[$key]; // => array_push\n\t\t\t// DEV -->\n\t\t\t$this->num_error += $this->err_code[$key];\n\t\t\t// <-- DEV\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttrigger_error( $key . ' undefined');\n\t\t\texit;\n\t\t}\n\t}" ]
[ "0.6972349", "0.69227725", "0.68863857", "0.67053187", "0.66909474", "0.6592707", "0.6592707", "0.65883535", "0.6585051", "0.6559726", "0.65563816", "0.652356", "0.6463059", "0.6432911", "0.6422364", "0.6384249", "0.63543844", "0.63313353", "0.62857044", "0.62674004", "0.6266626", "0.6263811", "0.62607", "0.62575895", "0.6233681", "0.62164354", "0.6206837", "0.61842066", "0.61140764", "0.606152", "0.6059672", "0.6058259", "0.60243344", "0.6020572", "0.6013023", "0.60047746", "0.5977993", "0.5972074", "0.59453315", "0.5942112", "0.5941531", "0.59053904", "0.58800906", "0.5870072", "0.5864631", "0.5861958", "0.5854952", "0.5854952", "0.5843832", "0.5842156", "0.5836853", "0.5836853", "0.58294785", "0.5816965", "0.5804852", "0.5799658", "0.57926965", "0.5771286", "0.5769812", "0.5766394", "0.5754782", "0.57352185", "0.5734035", "0.57285357", "0.57099205", "0.5707819", "0.5705861", "0.5699722", "0.56948787", "0.56861466", "0.5676672", "0.5676649", "0.56690156", "0.5664727", "0.5641133", "0.5636298", "0.5636298", "0.5633407", "0.5623435", "0.5613329", "0.5610859", "0.56095445", "0.56085926", "0.5593232", "0.5587809", "0.5585927", "0.5584806", "0.5579763", "0.55756927", "0.5573289", "0.5565056", "0.5557565", "0.5554003", "0.55525404", "0.5548074", "0.55463177", "0.55463177", "0.554352" ]
0.5824352
55
Sets a new autorizacaoServico
public function setAutorizacaoServico(array $autorizacaoServico) { $this->autorizacaoServico = $autorizacaoServico; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAutorizacaoDosServicos(\\ans\\schemes\\CtmAutorizacaoServicoType $autorizacaoDosServicos)\n {\n $this->autorizacaoDosServicos = $autorizacaoDosServicos;\n return $this;\n }", "public function setObservacao( $observacao )\n {\n \t$this->observacao = $observacao;\n }", "function FotografiaControl(){\n\t\t$this->acceso=new AccesoDatos();\n\t}", "public function autoriza(Request $request)\n {\n $this->inicializa();\n // obtiene el token del metodo de pago\n $payload = $request->input('payload', false);\n $valor = $request->input('valor', '12');\n $nonce = $payload['nonce'];\n\n $this->creaCliente();\n \n $status=$this->primerPago($nonce,$valor);\n \n $this->guardarPago($status);\n \n return response()->json($status);\n }", "function modificarCuentaServSoc()\n {\n // TODO: Implement modificarCuentaServSoc() method.\n }", "public function setIdusuario($value){\n $this->idusuario = $value;\n }", "function setObservaciones($observaciones) {\r\n $this->observaciones = $observaciones;\r\n }", "function setSorpresa($_caja){\r\n $this->sorpresa=$_caja;\r\n }", "public function asignarAccion(AutorizadorRequest $request)\n {\n $accion = AutorizadorAccion::create($request->all());\n return response()->json(['id' => $accion->id]);\n }", "public function editar(){\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\r\n\t\tif($this->_testarServicoExisteEdicao($this->getId(), $this->getNome()))\r\n\t\t\t// levanto a excessao//\r\n\t\t\tthrow new Exception(\"Servico já cadastrado en nossa base de dados\");\r\n\t\t\r\n\t\t// recuperando a instancia da classe de acesso a dados //\r\n\t\t$instancia = ServicoDAO::getInstancia(); \r\n\t\t// retornando o Usuario //\r\n\t\treturn $servico = $instancia->editar($this);\r\n\t}", "function altaCliente ($cliente){\r\n $this->clientes[] = $cliente; /// Este es el ejemplo de altaCliente que ha echo Jesús.\r\n }", "public function __construct($actualizar = true){\n if($actualizar) AutoexclusionController::getInstancia(false)->actualizarVencidosRenovados();\n }", "function setNuevaCuenta($origen, $subproducto, $socio,\n\t\t\t\t\t\t\t$observaciones = \"\", $credito = 1,\n\t\t\t\t\t\t\t$mancomunado1 = \"\", $mancomunado2 = \"\",\n\t\t\t\t\t\t\t$grupo = false, $fecha_de_alta = false,\n\t\t\t\t\t\t\t$tipo_de_cuenta = CAPTACION_TIPO_VISTA, $tipo_de_titulo = 99, $DiasInvertidos = false,\n\t\t\t\t\t\t\t$tasa = false, $CuentaDeInteres\t= false, $FechaVencimiento = false\n\t\t\t\t\t\t\t){\n\n\n\t\t$xT\t\t\t\t= new cTipos(0);\n\t\t$xF\t\t\t\t= new cFecha();\n\t\t$xLog\t\t\t= new cCoreLog();\n\t\t$socio\t\t\t= setNoMenorQueCero($socio);\n\t\t$ready\t\t\t= true;\n\t\t$tipo_de_cuenta\t= setNoMenorQueCero($tipo_de_cuenta);\n\t\t$tipo_de_titulo\t= setNoMenorQueCero($tipo_de_titulo);\n\t\t$credito\t\t= setNoMenorQueCero($credito);\n\t\t$grupo\t\t\t= setNoMenorQueCero($grupo);\n\t\t$DiasInvertidos\t= setNoMenorQueCero($DiasInvertidos);\n\t\t$tasa\t\t\t= setNoMenorQueCero($tasa, 4);\n\t\t$CuentaDeInteres= setNoMenorQueCero($CuentaDeInteres);\n\t\t$estado\t\t\t= 10;\n\t\t//Corrige el numero de persona\n\t\tif($socio <= DEFAULT_SOCIO AND $this->mSocioTitular > DEFAULT_SOCIO ){\n\t\t\t$xLog->add(\"WARN\\tCAMBIO Persona $socio a \" . $this->mSocioTitular . \"\\r\\n\", $xLog->DEVELOPER);\n\t\t\t$socio\t\t= $this->mSocioTitular;\n\t\t}\n\t\t$xSoc\t\t\t\t= new cSocio($socio);\n\t\tif($xSoc->init() == true){\n\t\t\t//$cuenta\t\t\t= $xSoc->getIDNuevoDocto($tipo_de_cuenta, $subproducto);\n\t\t\t$cuenta\t\t\t= $xSoc->getIDNuevoDocto(iDE_CAPTACION);\n\t\t\t$CuentaDeInteres= $xSoc->getCuentaDeCaptacionPrimaria(CAPTACION_TIPO_VISTA, CAPTACION_PRODUCTO_INTERESES);\n\t\t\tif($grupo == DEFAULT_GRUPO OR $grupo == 0){ $grupo = $xSoc->getClaveDeGrupo(); }\n\t\t} else {\n\t\t\t$xLog->add(\"ERROR\\tAl cargar la Persona $socio\\r\\n\", $xLog->DEVELOPER);\n\t\t\t$ready\t\t\t= false; //el socio existe\n\t\t}\n\t\t$xLog->add($xSoc->getMessages(), $xLog->DEVELOPER);\n\t\t//corrige la Cuenta de Intereses\n\t\t$CuentaDeInteres\t= ($CuentaDeInteres <= 0) ? DEFAULT_CUENTA_CORRIENTE : $CuentaDeInteres;\n\n\t\t$fecha_de_alta\t\t\t= $xF->getFechaISO($fecha_de_alta);\n\t\t$FechaVencimiento\t\t= $xF->getFechaISO($FechaVencimiento);\n\t\tif($tipo_de_cuenta == CAPTACION_TIPO_PLAZO){\n\t\t\t$DiasInvertidos\t\t= ($DiasInvertidos <=0 ) ? $this->mDiasInvertidos : $DiasInvertidos;\n\t\t\t$tasa\t\t\t\t= ($tasa <= 0) ? $this->mTasaInteres : $tasa;\n\t\t\t$FechaVencimiento\t= ($xF->getInt($FechaVencimiento) <= $xF->getInt($fecha_de_alta) ) ? $xF->setSumarDias($DiasInvertidos, $fecha_de_alta) : $FechaVencimiento;\n\t\t\t$estado\t\t\t\t= 20;\n\t\t\t$xLog->add(\"WARN\\tInversion Dias $DiasInvertidos Tasa $tasa Vencimiento $FechaVencimiento\\r\\n\", $xLog->DEVELOPER);\n\t\t\tif($xF->setRestarFechas($FechaVencimiento, $fecha_de_alta) != $DiasInvertidos){\n\t\t\t\t$DiasInvertidos\t= $xF->setRestarFechas($FechaVencimiento, $fecha_de_alta);\n\t\t\t\t$xLog->add(\"WARN\\tCAMBIO Inversion Dias $DiasInvertidos ($FechaVencimiento, $fecha_de_alta)\\r\\n\", $xLog->DEVELOPER);\n\t\t\t}\n\t\t} else {\n\t\t\t$xLog->add(\"WARN\\tVista $socio Producto $tipo_de_cuenta sub-producto $subproducto Origen $origen\\r\\n\", $xLog->DEVELOPER);\n\t\t}\n\t\t\n\t\t$xCta\t\t= new cCaptacion_cuentas();\n\t\t$xCta->cuenta_de_intereses($CuentaDeInteres);\n\t\t$xCta->dias_invertidos($DiasInvertidos);\n\t\t$xCta->eacp(EACP_CLAVE);\n\t\t$xCta->estatus_cuenta($estado);\n\t\t$xCta->fecha_afectacion($fecha_de_alta);\n\t\t$xCta->fecha_apertura($fecha_de_alta);\n\t\t$xCta->fecha_baja($xF->getFechaMaximaOperativa());\n\t\t$xCta->fecha_conciliada($fecha_de_alta);\n\t\t$xCta->idusuario(getUsuarioActual());\n\t\t$xCta->inversion_fecha_vcto($FechaVencimiento);\n\t\t$xCta->inversion_periodo(0);\n\t\t$xCta->minimo_mancomunantes(0);\n\t\t$xCta->nombre_mancomunado1($mancomunado1);\n\t\t$xCta->nombre_mancomunado2($mancomunado2);\n\t\t$xCta->numero_cuenta($cuenta);\n\t\t$xCta->numero_grupo($grupo);\n\t\t$xCta->numero_socio($socio);\n\t\t$xCta->numero_solicitud($credito);\n\t\t$xCta->observacion_cuenta($observaciones);\n\t\t$xCta->oficial_de_captacion(getUsuarioActual());\n\t\t$xCta->origen_cuenta($origen);\n\t\t$xCta->saldo_conciliado(0);\n\t\t$xCta->saldo_cuenta(0);\n\t\t$xCta->sucursal(getSucursal());\n\t\t$xCta->tasa_otorgada($tasa);\n\t\t$xCta->tipo_cuenta($tipo_de_cuenta);\n\t\t$xCta->tipo_titulo($tipo_de_titulo);\n\t\t$xCta->tipo_subproducto($subproducto);\n\t\t$xCta->ultimo_sdpm(0);\n\t\tif($ready == true){ \n\t\t\t$rs \t= $xCta->query()->insert()->save();\n\t\t\t$ready \t= ($rs == false) ? false : true;\n\t\t}\n\t\t//Asignar valores cargados\n\t\tif ( $ready == true) {\n\t\t\t$xLog->add(\"OK\\tSe Agrego Existosamente la Cuenta $cuenta del subproducto $subproducto \\r\\n\");\n\t\t\t$this->mSucess \t\t\t\t= true;\n\t\t\t$this->mSocioTitular\t\t= $socio;\n\t\t\t$this->mGrupoAsociado\t\t= $grupo;\n\t\t\t$this->mCreditoAsoc\t\t\t= $credito;\n\t\t\t$this->mNumeroCuenta\t\t= $cuenta;\n\t\t\t$this->mDiasInvertidos\t\t= $DiasInvertidos;\n\t\t\t$this->mFechaVencimiento\t= $FechaVencimiento;\n\t\t\t$this->mTasaInteres\t\t\t= $tasa;\n\t\t\t$this->mFechaOperacion\t\t= $fecha_de_alta;\n\t\t\t$this->init();\t\n\t\t} else {\n\t\t\t$xLog->add(\"ERROR\\tError al agregar la Cuenta $cuenta del subproducto $subproducto\\r\\n\");\n\t\t\t$this->mSucess \t\t\t\t= false;\n\t\t}\n\t\t//setLog($xLog->getMessages());\n\t\t$this->mMessages\t\t\t\t.= $xLog->getMessages();\n\t\treturn $this->mNumeroCuenta;\n\t}", "function modificarServicio(){\r\n\t\t$this->procedimiento='gev.f_tgv_servicio_ime';\r\n\t\t$this->tipo_procedimiento='IME';\r\n\t\t\t\t\r\n\t\t\r\n\t\t$parametros = $this->aParam->getArregloParametros('asignacion');\r\n\t\t//si esdel tipo matriz verifica en la primera posicion el tipo de vista\r\n\t\tif($this->esMatriz){\r\n\t\t $tipo_operacion =$parametros[0]['tipo_operacion'];\t\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\t$tipo_operacion =$parametros['tipo_operacion'];\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif($tipo_operacion=='asignacion'){\r\n\t\t $this->transaccion='tgv_SERVIC_MOD';\r\n } \r\n elseif($tipo_operacion=='cambiar_estado'){ \r\n\t\t $this->transaccion='tgv_SERCAMEST_MOD';\r\n\t\t $this->setParametro('operacion','operacion','varchar');// cuando finaliza los requerimientos, su valor es fin_requerimiento\r\n\t\t //$this->setParametro('id_abogado','id_abogado','int4');\r\n\t\t}\r\n\t\telseif ($tipo_operacion=='def_fechas'){ \r\n\t\t $this->transaccion='tgv_DEFFECHA_MOD';\r\n\t\t // $this->setParametro('operacion','operacion','varchar');// cuando finaliza los requerimientos, su valor es fin_requerimiento\r\n\t\t //$this->setParametro('id_abogado','id_abogado','int4');\r\n\t\t}\r\n\t\t\r\n\t\t//Define los parametros para la funcion\r\n\t\t$this->setParametro('id_servicio','id_servicio','int4');\r\n\t\t$this->setParametro('estado','estado','varchar');\r\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\r\n\t\t$this->setParametro('id_lugar_destino','id_lugar_destino','int4');\r\n\t\t$this->setParametro('id_ep','id_ep','int4');\r\n\t\t$this->setParametro('fecha_asig_fin','fecha_asig_fin','date');\r\n\t\t$this->setParametro('fecha_sol_ini','fecha_sol_ini','date');\r\n\t\t$this->setParametro('descripcion','descripcion','varchar');\r\n\t\t$this->setParametro('id_lugar_origen','id_lugar_origen','int4');\r\n\t\t$this->setParametro('cant_personas','cant_personas','int4');\r\n\t\t$this->setParametro('fecha_sol_fin','fecha_sol_fin','date');\r\n\t\t$this->setParametro('id_funcionario','id_funcionario','int4');\r\n\t\t$this->setParametro('fecha_asig_ini','fecha_asig_ini','date');\r\n\t\t$this->setParametro('id_funcionario_autoriz','id_funcionario_autoriz','int4');\r\n\t\t$this->setParametro('observaciones','observaciones','varchar');\r\n\r\n\t\t//Ejecuta la instruccion\r\n\t\t$this->armarConsulta();\r\n\t\t$this->ejecutarConsulta();\r\n\r\n\t\t//Devuelve la respuesta\r\n\t\treturn $this->respuesta;\r\n\t}", "public function setObservacao($sObservacao){\n $this->sObservacao = $sObservacao;\n }", "public function setObservacion($Observacion)\r\n {\r\n $this->Observacion = $Observacion;\r\n\r\n return $this;\r\n }", "public function setAtivo($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\tif (is_string($v)) {\n\t\t\t\t$v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true;\n\t\t\t} else {\n\t\t\t\t$v = (boolean) $v;\n\t\t\t}\n\t\t}\n\n\t\tif ($this->ativo !== $v) {\n\t\t\t$this->ativo = $v;\n\t\t\t$this->modifiedColumns[] = UsuarioPeer::ATIVO;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setCliente(Cliente $cliente);", "public function contratar ($id){\n\t\t$us= new Servicio();\n\t\t$this -> Servicio = $us-> find ( (int) $id); \n\t}", "public function iniciarSesion(PersonaFisica $usuario){\n $this->setUsuarioDB($usuario);\n //$this->usuario_db = $usuario; \n \n //$anio_socio = $usuario->getFechaNacimiento('Y');\n //$anio_socio = date('Y')-$anio_socio;\n //$this->setAttribute('edad', $anio_socio);\n //seteo la credencial de usuario\n $this->addCredential($usuario->getTipoUsuarioId());//getTipoSocioId());\n //Seteo el atributo \"nombre\" del usuario\n $this->setAttribute(\"userNom\", $usuario->getNombre());\n $this->setAttribute(\"user\", $usuario->getUsuario());\n $this->setAttribute(\"pass\", $usuario->getPassword());\n //Seteo el atributo \"dni\" del usuario\n $this->setAttribute(\"id\", $usuario->getIdPersonaFisica());\n //autentico el usuario.\n $this->setAuthenticated(true);\n }", "function setIdCliente($id_cliente)\r\n\t {\r\n\t\t $this->id_cliente = $id_cliente;\r\n\t }", "function insertarServicio(){\r\n\t\t$this->procedimiento='gev.f_tgv_servicio_ime';\r\n\t\t$this->transaccion='tgv_SERVIC_INS';\r\n\t\t$this->tipo_procedimiento='IME';\r\n\t\t\t\t\r\n\t\t\r\n\t\t//Define los parametros para la funcion\r\n\t\t$this->setParametro('estado','estado','varchar');\r\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\r\n\t\t$this->setParametro('id_lugar_destino','id_lugar_destino','int4');\r\n\t\t$this->setParametro('id_ep','id_ep','int4');\r\n\t\t$this->setParametro('fecha_asig_fin','fecha_asig_fin','date');\r\n\t\t$this->setParametro('fecha_sol_ini','fecha_sol_ini','date');\r\n\t\t$this->setParametro('descripcion','descripcion','varchar');\r\n\t\t$this->setParametro('id_lugar_origen','id_lugar_origen','int4');\r\n\t\t$this->setParametro('cant_personas','cant_personas','int4');\r\n\t\t$this->setParametro('fecha_sol_fin','fecha_sol_fin','date');\r\n\t\t$this->setParametro('id_funcionario','id_funcionario','int4');\r\n\t\t$this->setParametro('fecha_asig_ini','fecha_asig_ini','date');\r\n\t\t$this->setParametro('id_funcionario_autoriz','id_funcionario_autoriz','int4');\r\n\t\t$this->setParametro('observaciones','observaciones','varchar');\r\n\r\n\t\t//Ejecuta la instruccion\r\n\t\t$this->armarConsulta();\r\n\t\t$this->ejecutarConsulta();\r\n\r\n\t\t//Devuelve la respuesta\r\n\t\treturn $this->respuesta;\r\n\t}", "function habilitarContrato(){\n $this->procedimiento = 'adq.f_cotizacion_ime';\n $this->transaccion = 'ADQ_HABCONT_IME';\n $this->tipo_procedimiento='IME';\n \n //Define los parametros para la funcion\n $this->setParametro('id_cotizacion','id_cotizacion','int4');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "public function __set($atributo, $valor) {\n\t\t\t// $this->modelo = $valor;\n\t\t\t$this->$atributo = $valor;\n\t\t}", "function __construct(Cliente $persona, $email='', $contrasenia='', $rutaFoto=''){\r\n\t\t$this->id=null;\r\n\t\t$this->persona= $persona;\r\n\t\t$this->email= $email;\r\n\t\t$this->contrasenia= $contrasenia;\r\n\t\t$this->foto= $rutaFoto; //foto se guarda como un string ahora\r\n\t\t$this->tipoUsuario= 'Cliente';\r\n\t}", "public function SetIdConvocatoria($valor){\n\t\t $this->id_convocatoria= $valor;\n\t }", "public function setComando( $comando, $atributo=null ) {\n $this->comando=$comando;\n $this->atributo=$atributo;\n $this->enviarComando();\n $this->activarPantalla();\n //activa y enviar comando\n }", "public function __construct(){\r\n\t\t$this->tipoServicoDAO = new TipoServicoDAO();\r\n\t\t\r\n\t}", "public function set($atributo, $valor) {\r\n\t\t\t $this->$atributo = $valor;\r\n\t\t}", "function setActualizarPlaneacion($fecha, $persona, $credito){\n\t\t$xF\t\t\t\t\t\t= new cFecha();\n\t\t$fecha_esperar_hasta \t= $xF->setRestarDias( DIAS_ESPERA_CREDITO, $fecha );\n\t\t$grupo\t\t\t\t\t= $this->getCodigo();\n\t\t$sqlURec \t\t\t\t= \"UPDATE operaciones_recibos set docto_afectado=$credito WHERE numero_socio=$persona AND tipo_docto=14\t\tAND fecha_operacion>='$fecha_esperar_hasta' \";\n\t\t$sqlUMvto \t\t\t\t= \"UPDATE operaciones_mvtos set docto_afectado=$credito WHERE grupo_asociado=$grupo AND tipo_operacion=112 AND fecha_operacion>='$fecha_esperar_hasta'\";\n\t\tmy_query($sqlURec);\n\t\tmy_query($sqlUMvto);\n\t}", "public function actualizar_servicio_caja(Request $request, $id)\n {\n if (!$request->ajax()) return redirect('/'); \n \n \n $servicio = Servicio::findOrFail($id);\n\n $servicio->idcaja = $request->idcaja; \n $servicio->estado = \"Registrado\"; \n \n $servicio->save(); \n }", "public function setObservacao($observacao)\n {\n $this->observacao = $observacao;\n\n return $this;\n }", "public function set( $atributo = '', $valor ) {\n $this->$atributo = $atributo;\n return $this;\n }", "public function setDataContratacao($v)\n\t{\n\t\t$dt = PropelDateTime::newInstance($v, null, 'DateTime');\n\t\tif ($this->data_contratacao !== null || $dt !== null) {\n\t\t\t$currentDateAsString = ($this->data_contratacao !== null && $tmpDt = new DateTime($this->data_contratacao)) ? $tmpDt->format('Y-m-d') : null;\n\t\t\t$newDateAsString = $dt ? $dt->format('Y-m-d') : null;\n\t\t\tif ($currentDateAsString !== $newDateAsString) {\n\t\t\t\t$this->data_contratacao = $newDateAsString;\n\t\t\t\t$this->modifiedColumns[] = UsuarioPeer::DATA_CONTRATACAO;\n\t\t\t}\n\t\t} // if either are not null\n\n\t\treturn $this;\n\t}", "public function IngresarAplicacion(){}", "function ClienteWSInmuebles(){\n $this->auth = new ClienteWSAuthAgencia();\n }", "function Conexion($servidor, $baseDato, $usuario, $password)\n {\n # se guardan los datos de los parametros en las propiedades de la clase\n $this->servidor = $servidor;\n $this->baseDato = $baseDato;\n $this->usuario = $usuario;\n $this->password = $password;\n # se llama al metodo privado configurar()\n $this->configurar();\n }", "public function persitiRequesicao() : UsuarioAdaptadorInterface\n {\n $this->usuario->setNome(head($this->only([\"nome\"])))\n ->setEmail(head($this->only([\"email\"])))\n ->setPassword(head($this->only([\"password\"])))\n ->setRamal(head($this->only([\"ramal\"])))\n ->setStatus(head($this->only([\"status\"])));\n\n $this->usuario->repositorio()->create([\n \"nome\" => $this->usuario->getNome(),\n \"email\" => $this->usuario->getEmail(),\n \"password\" => $this->usuario->getPassword(),\n \"ramal\" => $this->usuario->getRamal(),\n \"status\" => $this->usuario->getStatus()\n ]);\n\n return $this->usuario;\n }", "function cilien_autoriser(){}", "function AsignarVacacion(){\n\t $this->procedimiento='asis.ft_vacacion_sel';\n\t\t$this->transaccion='ASIS_ASIGVAC_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\n\t\t$this->setCount(false); \n\t\t\n\t\t$this->tipo_conexion='seguridad';\n\t\t\n\t\t$this->arreglo=array(\"id_usuario\" =>1,\n\t\t\t\t\t\t\t \"tipo\"=>'TODOS'\n\t\t\t\t\t\t\t );\n\t\t\n\t\t$this->setParametro('id_usuario','id_usuario','int4');\t\t\t\t\t\t \n $this->captura('dias_asignados','int4');\n\n\t //Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t\n\t\t$this->ejecutarConsulta();\n\t\t\n\t\t//echo (\"entro al cron modelo vacacion juan \".$this->consulta.' fin juan');\n\t\t//exit;\n\t\t\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "public function setObservacionesAttribute($value)\n\t{\n\t\t$this->attributes['observaciones'] = mb_strtoupper($value);\n\t}", "public function setUsuario($operacao, $usuario) {\n switch ($operacao) {\n case 'I' :\n \n break;\n\n case 'A' :\n\n\n break;\n\n case 'D' :\n\n\n break;\n\n default :\n break;\n }\n }", "function MostrarPaginaIngresarServicio()\n {\n if ($this->admin) {\n $this->viewservices->ingresarServicio();\n } else {\n header(\"Location: \" . BASE_URL);\n }\n }", "public function setResaca($resaca){\n $this->resaca=$resaca;\n }", "public function setIdUsuario($idUsuario){\n $this->idUsuario = $idUsuario;\n }", "private function appConsolaOpciones() {\r\n\t\t\tdefine('ENV_ENTORNO', $this->entorno);\r\n\t\t\tdefine('ENV_TIPO', 'MVC');\r\n\t\t\tdate_default_timezone_set(ConfigAcceso::leer($this->aplicacion, 'sistema', 'tiempo', 'zona'));\r\n\t\t\t\r\n\t\t\trequire implode(DIRECTORY_SEPARATOR, array($this->appRuta, $this->entorno, 'Fuente', 'Configuracion', 'Parametros.php'));\r\n\t\t\t\r\n\t\t\t$consola = new \\AutoCargador('Consola', implode(DIRECTORY_SEPARATOR, array($this->appRuta, $this->entorno, 'Fuente', 'Complementos')));\r\n\t\t\t$consola->registrar();\r\n\t\t\t\r\n\t\t\t$entidades = new \\AutoCargador('Entidades', implode(DIRECTORY_SEPARATOR, array($this->appRuta, $this->entorno, 'Fuente', 'Complementos', 'ORM')));\r\n\t\t \t$entidades->registrar();\r\n\t\t \t\r\n\t\t \t$formulario = new \\AutoCargador('Formularios', implode(DIRECTORY_SEPARATOR, array($this->appRuta, $this->entorno, 'Fuente', 'Complementos')));\r\n\t\t \t$formulario->registrar();\r\n\t\t \t\r\n\t\t \t\r\n\t\t\t$interface = new \\AutoCargador('Interfaces', implode(DIRECTORY_SEPARATOR, array($this->appRuta, $this->entorno, 'Fuente', 'Complementos')));\r\n\t\t \t$interface->registrar();\r\n\t\t \t\r\n\t\t \tAutoloader::register(implode(DIRECTORY_SEPARATOR, array($this->appRuta, $this->entorno, 'Fuente', 'Complementos', 'ORM', 'Proxy')), 'Proxy');\r\n\t\t \t\r\n\t\t\t$utilidades = new \\AutoCargador('Utilidades', implode(DIRECTORY_SEPARATOR, array($this->appRuta, $this->entorno, 'Fuente', 'Complementos')));\r\n\t\t \t$utilidades->registrar();\r\n\t\t \t\r\n\t\t \t$modeloMVC = new \\AutoCargador('Modelo', implode(DIRECTORY_SEPARATOR, array($this->appRuta, $this->entorno, 'Fuente', 'Sistema')));\r\n\t\t \t$modeloMVC->registrarModelo();\r\n\t\t \t\r\n\t\t \t$this->consolaObjeto();\r\n\t\t}", "public function agregarUsuario(){\n \n }", "public function setDados(array $dados): AtualizarContactoService;", "public function setAtivo($ativo)\n {\n $this->ativo = $ativo;\n\n return $this;\n }", "public function setAtivo($ativo)\n {\n $this->ativo = $ativo;\n\n return $this;\n }", "public function setAtivo($ativo)\n {\n $this->ativo = $ativo;\n\n return $this;\n }", "public function autorizarRol(AutorizadorRolAccionesRequest $request)\n {\n $rol = AutorizadorRolAccion::create($request->all());\n return response()->json(['id' => $rol->id]);\n }", "public static function updateServizi()\n {\n //arrivano i servizi modificati\n if (isset($_REQUEST['update_servizi'])) {\n $_SESSION['update_servizi'] = $_REQUEST['update_servizi'];\n }\n // effettua la registrazione dell'azienda\n $update = UtenteFactory::updateServizi();\n if ($update == 1) {\n $_SESSION['errore'] = 6;\n } elseif ($update == 0) {\n $_SESSION['errore'] = 5;\n }\n $vd = new ViewDescriptor();\n $vd->setTitolo(\"SardiniaInFood: Profilo\");\n $vd->setLogoFile(\"../view/in/logo.php\");\n $vd->setMenuFile(\"../view/in/menu_modifica_profilo.php\");\n $vd->setContentFile(\"../view/in/azienda/modifica_servizi.php\");\n $vd->setErrorFile(\"../view/in/error_in.php\");\n $vd->setFooterFile(\"../view/in/footer_empty.php\");\n \n require_once '../view/Master.php';\n }", "public function setTipoAcesso($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->tipo_acesso !== $v) {\n\t\t\t$this->tipo_acesso = $v;\n\t\t\t$this->modifiedColumns[] = UsuarioPeer::TIPO_ACESSO;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function __construct($SolicitudServicio)\n { \n $this->SolicitudServicio = $SolicitudServicio;\n }", "public function setCusto($custo) {\n $this->custo = $custo;\n }", "public function setIdUsuarioAcalificar($idUsuarioAcalificar)\n {\n $this->idUsuarioAcalificar = $idUsuarioAcalificar;\n\n return $this;\n }", "function __set($modelo, $valor)\n\t{\n\t\t$this->modelo = $modelo;\n\t}", "private function setConexion()\r\n\t\t{\r\n\t\t\t$this->_conexion = New ConexionController();\r\n\t\t\t$this->_conn = $this->_conexion->initConectar('db');\r\n\t\t}", "private function setConexion()\r\n\t\t{\r\n\t\t\t$this->_conexion = New ConexionController();\r\n\t\t\t$this->_conn = $this->_conexion->initConectar('db');\r\n\t\t}", "public function __construct(Categoria $categoria, TipoServico $tipoServico)\n {\n $this->categoria = $categoria;\n $this->tipoServico = $tipoServico;\n }", "public function GuardarServicio(Request $request)\n {\n\n $slug = uniqid();\n $idusuario = Auth::user()->id;\n $servicio = new Servicio;\n $servicio->service_id=$slug;\n $servicio->user_id= $idusuario;\n $servicio->tipo_de_service = $request->get('tipo_de_service');\n $servicio->cantidad_de_horas_diarias = $request->get('cantidad_de_horas_diarias');\n $servicio->dias_de_la_semana = $request->get('cantidad_de_dias');\n $servicio->hora_de_inicio = $request->get('horario_de_inicio');\n $servicio->localidad_servicio = $request->get('localidad_servicio');\n $servicio->precio_de_servicio = $request->get('precio_de_servicio');\n $servicio->comision = $request->get('localidad_servicio');\n $servicio->estado_de_servicio = \"estado de servicio\";\n $servicio->save();\n\n return redirect(\"misservicios\")->with('status', 'Su servicio fue reservado correctamente, revise su correo por favor.');\n }", "function ini__operacion (){\n \n //obtenemos el arreglo almacenado en la operacion \"aulas disponibles\". Su formato es :\n //Array ('id_aula'=>x 'hora_inicio'=>x 'hora_fin'=>x)\n $datos_ad=toba::memoria()->get_parametros();\n //esta condicion es fundamental para no quedarnos en la misma pantalla\n if(isset($datos_ad['id_aula'])){\n $this->s__accion=\"Vinculo\";\n $this->s__aula_disponible=$datos_ad;\n \n //eliminamos la informacion guardada en el arreglo $_SESSION\n toba::memoria()->limpiar_memoria();\n $this->set_pantalla('pant_persona');\n }\n }", "public function set_clientes(objeto_cliente $cliente){\n\t$consulta_insertar = new Conectar();\n\t$consulta_insertar = $consulta_insertar->conexion();\n\t$query=\"insert into clientes (cliente_id, nombre, celular, pais, correo) values (:cl_id, :nom, :cel, :pais, :corr)\";\n\n\t$resultado=$consulta_insertar->prepare($query);\n\n\t$resultado->execute(array(\":cl_id\"=>$cliente->get_cliente_id(),\":nom\"=>$cliente->get_nombre(),\":cel\"=>$cliente->get_celular(),\":pais\"=>$cliente->get_pais(),\":corr\"=>$cliente->get_correo()));\n\n\n\t}", "public function setServidor ($oServidor) {\n $this->oServidor = $oServidor;\n return $this;\n }", "function SolicitarContrato(){\n $this->procedimiento = 'adq.f_cotizacion_ime';\n $this->transaccion = 'ADQ_SOLCON_IME';\n $this->tipo_procedimiento='IME';\n \n //Define los parametros para la funcion\n $this->setParametro('id_proceso_wf','id_proceso_wf','int4');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "public function ctrRutaServidor(){\n\n return 'http://localhost:8088/anunciosahagun/confAdmin/';\n }", "public function asignar(Request $request){\n if(!$request->ajax() || Auth::user()->rol_id == 11)return redirect('/');\n $rol = $request->rol_id;\n $user = new User();\n $user->id = $request->id_persona;\n $user->usuario = $request->usuario;\n $user->password = bcrypt( $request->password);\n $user->condicion = '1';\n $user->rol_id = $request->rol_id;\n\n if($user->rol_id == 2){\n $vendedor = new Vendedor();\n $vendedor->id = $request->id_persona;\n $vendedor->save();\n }\n\n switch($rol){// se le abilitan los modulos deacuerdo a su tipo de rol\n case 1: // Administrador\n {\n $user->administracion=1;\n $user->desarrollo=1;\n $user->precios=1;\n $user->obra=1;\n $user->ventas=1;\n $user->acceso=1;\n $user->reportes=1;\n //Administracion\n $user->departamentos=1;\n $user->personas=1;\n $user->empresas=1;\n $user->medios_public=1;\n $user->lugares_contacto=1;\n $user->servicios=1;\n $user->inst_financiamiento=1;\n $user->tipos_credito=1;\n $user->asig_servicios=1;\n $user->mis_asesores=0;\n //Desarrollo\n $user->fraccionamiento=1;\n $user->etapas=1;\n $user->modelos=1;\n $user->lotes=1;\n $user->asign_modelos=1;\n $user->licencias=1;\n $user->acta_terminacion=1;\n $user->p_etapa=0;\n\n //Precios\n $user->agregar_sobreprecios=1;\n $user->precios_etapas=1;\n $user->sobreprecios=1;\n $user->paquetes=1;\n $user->promociones=1;\n //Obra\n $user->contratistas=1;\n $user->ini_obra=1;\n $user->aviso_obra=1;\n $user->partidas=1;\n $user->avance=1;\n //Ventas\n $user->lotes_disp=1;\n $user->mis_prospectos=0;\n $user->simulacion_credito=1;\n $user->hist_simulaciones=1;\n $user->hist_creditos=1;\n $user->contratos=1;\n $user->docs=1;\n //Acceso\n $user->usuarios=1;\n $user->roles=1;\n //Reportes\n $user->mejora=1;\n break;\n }\n case 2: //Asesor de ventas\n {\n $user->administracion=1;\n $user->ventas=1;\n //Administracion\n $user->empresas=1;\n //Ventas\n $user->lotes_disp=1;\n $user->mis_prospectos=0;\n $user->simulacion_credito=1;\n break;\n }\n case 3: //Gerente de proyectos\n {\n $user->desarrollo=1;\n //Desarrollo\n $user->fraccionamiento=1;\n $user->modelos=1;\n $user->lotes=1;\n $user->licencias=1;\n $user->acta_terminacion=1;\n break;\n }\n case 4: //Gerente de ventas\n {\n $user->administracion=1;\n $user->ventas=1;\n $user->reportes=1;\n //Administracion\n $user->empresas=1;\n $user->inst_financiamiento=1;\n $user->tipos_credito=1;\n $user->mis_asesores=0;\n //Ventas\n $user->lotes_disp=1;\n $user->simulacion_credito=1;\n $user->hist_simulaciones=1;\n $user->contratos=1;\n $user->docs=1;\n //Reportes\n $user->mejora=1;\n break;\n }\n case 5: // Gerente de obra\n {\n $user->obra=1;\n\n //Obra\n $user->contratistas=1;\n $user->aviso_obra=1;\n $user->partidas=1;\n $user->avance=1;\n break;\n }\n case 6: // Admin ventas\n {\n $user->administracion=1;\n $user->desarrollo=1;\n $user->precios=1;\n $user->obra=1;\n $user->ventas=1;\n $user->acceso=1;\n $user->reportes=1;\n //Administracion\n $user->empresas=1;\n $user->personas=1;\n $user->inst_financiamiento=1;\n $user->tipos_credito=1;\n //Desarrollo\n $user->fraccionamiento=1;\n $user->etapas=1;\n $user->modelos=1;\n $user->asign_modelos=1;\n //Precios\n $user->agregar_sobreprecios=1;\n $user->precios_etapas=1;\n $user->sobreprecios=1;\n $user->paquetes=1;\n $user->promociones=1;\n //Obra\n $user->ini_obra=1;\n //Ventas\n $user->lotes_disp=1;\n $user->simulacion_credito=1;\n $user->hist_simulaciones=1;\n $user->hist_creditos=1;\n $user->contratos=1;\n $user->docs=1;\n //Acceso\n $user->usuarios=1;\n $user->roles=1;\n //Reportes\n $user->mejora=1;\n break;\n }\n case 7: // Publicidad\n {\n $user->administracion=1;\n $user->desarrollo=1;\n $user->reportes=1;\n //Administracion\n $user->medios_public=1;\n $user->lugares_contacto=1;\n $user->servicios=1;\n $user->asig_servicios=1;\n //Desarrollo\n $user->modelos=1;\n $user->p_etapa=0;\n\n //Reportes\n $user->mejora=1;\n break;\n }\n case 8: // Gestor ventas\n {\n $user->administracion=1;\n $user->ventas=1;\n //Administracion\n $user->empresas=1;\n $user->inst_financiamiento=1;\n $user->tipos_credito=1;\n //Ventas\n $user->lotes_disp=1;\n $user->simulacion_credito=1;\n $user->hist_simulaciones=1;\n $user->hist_creditos=1;\n $user->contratos=1;\n $user->docs=1;\n break;\n }\n case 9: // Contabilidad\n {\n $user->administracion=1;\n $user->saldo=1;\n //Administracion\n $user->cuenta=1;\n //Saldos\n $user->edo_cuenta=1;\n $user->depositos=1;\n $user->gastos_admn=1;\n break;\n }\n\n }\n\n $user->save();\n }", "public function __construct(Venda $venda)\n {\n $this->middleware('auth');\n $this->repository = $venda;\n }", "private function init_configuraciones(): controler\n {\n $this->titulo_lista = 'Registro de Clientes';\n\n return $this;\n }", "public function setConta($conta) {\n $this->conta = $conta;\n }", "public function AutentiqueAqui(FuncionarioAutenticavel $funcionario, $senha);", "public function __construct()\n {\n $this->middleware('auth:cliente');\n }", "function tienda(){\r\n $this->conexion = new Conexion();\r\n $this->conexion->Conexion();\r\n }", "public function __set( $name, $value )\n {\n\t\t\tif( property_exists( \"UserSVC\", $name ) )\n\t\t\t\t$this->$name = $value;\n }", "public function Ativar(){\n \n $idFrota = $_GET['id'];\n \n $frota = new Frota();\n \n $frota->id = $idFrota ;\n \n $frota::Ativando($frota);\n \n }", "public function setUsuario( $usuario ){\n\t\t \t$this->usuario = $usuario;\n\t\t }", "public function solicitaUsuario()\n {\n // Lo emitimos por evento\n $this->emit('cambioUsuario', $this->usuario);\n }", "public function actualizaEstado(){\n $this->estado = 'Completo';\n // $this->cotiza = $this->generarCustomID();\n $this->save();\n }", "public function actualizar_estado() {\n }", "public function __construct() {\n $this->conecta();\n }", "function crearCuentaServSoc()\n {\n include_once \"../model/SERVICIO_SOCIAL.php\";\n $objServSoc = new SERVICIO_SOCIAL();\n $query = \"INSERT INTO `servicio_social` (\n `id_alumno`, \n `clave_acceso`, \n `fecha_alta`, \n `fecha_inicio_serv`, \n `fecha_termino_serv`, \n `notas`, \n `permisos`, \n `estatus`) \n VALUES ('\".$objServSoc->getIdAlumno($this->getIdAlumno()).\"', \n '\".$objServSoc->getClaveAcceso().\"', \n '\".date('Y-m-d H:i:s').\"', \n '\".$objServSoc->getFechaInicioServ().\"', \n '\".$objServSoc->getFechaTerminoServ().\"', \n '\".$objServSoc->getNotas().\"', \n '\".$objServSoc->getPermisos().\"', \n '\".$objServSoc->getEstatus().\"')\";\n\n }", "public function setDataRescisao($v)\n\t{\n\t\t$dt = PropelDateTime::newInstance($v, null, 'DateTime');\n\t\tif ($this->data_rescisao !== null || $dt !== null) {\n\t\t\t$currentDateAsString = ($this->data_rescisao !== null && $tmpDt = new DateTime($this->data_rescisao)) ? $tmpDt->format('Y-m-d') : null;\n\t\t\t$newDateAsString = $dt ? $dt->format('Y-m-d') : null;\n\t\t\tif ($currentDateAsString !== $newDateAsString) {\n\t\t\t\t$this->data_rescisao = $newDateAsString;\n\t\t\t\t$this->modifiedColumns[] = UsuarioPeer::DATA_RESCISAO;\n\t\t\t}\n\t\t} // if either are not null\n\n\t\treturn $this;\n\t}", "function setActa($sacta = '')\n {\n $this->sacta = $sacta;\n }", "function setActa($sacta = '')\n {\n $this->sacta = $sacta;\n }", "public function testSetAutreContrat() {\n\n $obj = new AttestationCacm();\n\n $obj->setAutreContrat(\"autreContrat\");\n $this->assertEquals(\"autreContrat\", $obj->getAutreContrat());\n }", "function setAgregarUnPais(){\n\t\t$this->comienza_con++;\n\t}", "public function setActivo($activo)\n {\n $this->activo = $activo;\n\n return $this;\n }", "public function __construct()\n {\n $this->usuario = $usuario;\n }", "function setservicios($data = null){ \t\n\t\t\tif($data == null)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\t\t\t\n\t\t\t\t$equipId = $this->input->post('equipo');//\n\t\t\t\t$falla = $this->input->post('falla');//\n\t\t\t\t$userdata = $this->session->userdata('user_data');\n\t\t\t\t$empId = $userdata[0]['id_empresa'];\n\n\t\t\t\t$userdata = $this->session->userdata('user_data');\n\t\t\t\t$usrId = $userdata[0]['usrId']; // guarda usuario logueado\n\t\t\t\t$usrName = $userdata[0]['usrName'];\n\t\t\t\t$insert = array(\n\t\t\t\t\t'f_solicitado' => date('Y-m-d H:i:s'), \n\t\t\t\t\t'id_equipo' => $equipId,\n\t\t\t\t\t'estado' => 'S',\t// graba estado Solicitado, cambia a 'C' en Ord Serv\n\t\t\t\t\t'usrId' => $usrId,\n\t\t\t\t\t'solicitante' => $usrName,\n\t\t\t\t\t'causa' => $falla,\n\t\t\t\t\t'foto' => 'assets/files/orders/sinImagen.jpg',\n\t\t\t\t\t'id_empresa' => $empId\n\t\t\t\t);\n\t\t\t\t$this->db->insert('solicitud_reparacion', $insert);\n\n\t\t\t\t$idSolServicios = $this->db->insert_id();\n\t\t\t\treturn $idSolServicios;\n\n\t\t\t}\t\n\t\t}", "public function setDataCadastro($v)\n\t{\n\t\t$dt = PropelDateTime::newInstance($v, null, 'DateTime');\n\t\tif ($this->data_cadastro !== null || $dt !== null) {\n\t\t\t$currentDateAsString = ($this->data_cadastro !== null && $tmpDt = new DateTime($this->data_cadastro)) ? $tmpDt->format('Y-m-d H:i:s') : null;\n\t\t\t$newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null;\n\t\t\tif ($currentDateAsString !== $newDateAsString) {\n\t\t\t\t$this->data_cadastro = $newDateAsString;\n\t\t\t\t$this->modifiedColumns[] = UsuarioPeer::DATA_CADASTRO;\n\t\t\t}\n\t\t} // if either are not null\n\n\t\treturn $this;\n\t}", "function agregar($nombre,$correo,$usuario,$rol,$zonah,$estado,$psw)\n {\n $Valores = \"'\".$usuario.\"','\".$psw.\"','\".$nombre.\"','\".$correo.\"',\".$estado.\",\".$zonah.\",\".$rol;\n $this->Insertar(\"usuarios\",\"usuario,password,nombre,correo,activo,zonashorarias_id,roles_id\",$Valores);\n }", "public function autenticando_usuario_e_verificando_permissao_de_criar_empresa()\n {\n //Cria e loga o usuario\n $this->actingAs(factory('App\\User')->create());\n\n //And a task object\n $empresa = factory('App\\Empresa')->create();\n //When user submits post request to create task endpoint\n $this->post('empresa/create',$empresa->toArray());\n //It gets stored in the database\n $this->assertEquals(1, Empresa::all()->count());\n }", "public function __construct($id_anuncio, $autor, $moroso, $localidad, $descripcion, $fecha)\n {\n $this->id_anuncio = $id_anuncio;\n $this->autor = $autor;\n $this->moroso = $moroso;\n $this->localidad = $localidad;\n $this->descripcion = $descripcion;\n $this->fecha = $fecha;\n }", "public function setIdAtelier($valeur){\n $this->idAtelier = $valeur;\n }", "public function __construct()\n {\n $this->clienteRepository = new ClienteRepository();\n $this->middleware('guest')->except('logout');\n // Unique Token\n $this->token = uniqid(base64_encode(Str::random(60)));\n }", "public function __construct(\n ClienteService $clienteService\n ) {\n $this->clienteService = $clienteService;\n }", "public function testSetAutreAlleg() {\n\n $obj = new Employes();\n\n $obj->setAutreAlleg(true);\n $this->assertEquals(true, $obj->getAutreAlleg());\n }", "function configurar() {\n //SOLO EL ADMINISTRADOR PUEDE MATRICULAR\n if(!$this->AppUser->isRoot())\n return $this->vista->acceso_restringido();\n\n $this->includeModel('TComponente');\n\n //TODO: actualizar el codigo del programa a matricular.\n $cod_programa = $this->params['cod_programa'];\n $this->vista->addJS('jquery.dataTable');\n\n $tiene_cursos = $this->TPrograma->tieneCursos($cod_programa);\n \n $this->vista->set('tiene_cursos', $tiene_cursos);\n if(!$tiene_cursos){\n if($this->TPersona == null)\n $this->TPersona = new TPersona();\n $tiene_participantes = $this->TPersona->hayAdmitidos();\n $this->vista->set('tiene_participantes', $tiene_participantes);\n }\n \n $this->vista->display();\n }", "public function adiciona1()\n\t {\n\t\t\t$car=$_REQUEST['car'];\n\t\t\t$per=$_REQUEST['per'];\n\t\t\t$logi=$_REQUEST['logi'];\n\t\t\t$pas=$_REQUEST['pas'];\n\t\t\t$obs=$_REQUEST['obs'];\n\t\t\t$est=$_REQUEST['est'];\n\t\t\t//$usu=$_REQUEST['usu'];\n\t\t\t$user_data=array();\n\t\t\t$user_data['carnet']=$car;\n\t\t\t$user_data['login']=$logi;\n\t\t\t$user_data['password']=$pas;\n\t\t\t$user_data['estado']=$est;\n\t\t\t$user_data['observacion']=$obs;\n\t\t\t$user_data['perfil']=$per;\n\t\t\t//print_r($user_data);\n\t\t\t$usuario=new Usuarios;\n\t\t\t$usuario->set($user_data);\n\t\t\t//print_r($_SERVER['REQUEST_URI']);\n\t\t\t$data1=$usuario->lista();\n\t\t\t$this->principal();\n\t }" ]
[ "0.6389776", "0.59604025", "0.5704447", "0.5694507", "0.56284547", "0.56152624", "0.5605525", "0.5588263", "0.55619097", "0.5558911", "0.5553606", "0.5534095", "0.5508881", "0.54668474", "0.5465926", "0.5463528", "0.5432571", "0.5429347", "0.54110444", "0.5402906", "0.5382412", "0.537896", "0.53437525", "0.5334426", "0.53243124", "0.5321066", "0.5279687", "0.52519447", "0.5250101", "0.52292854", "0.52228475", "0.5222027", "0.5217289", "0.52081794", "0.5200188", "0.51961005", "0.5188558", "0.5187568", "0.5182696", "0.5179494", "0.51736253", "0.51670235", "0.51656646", "0.51578104", "0.5155809", "0.5147895", "0.5147016", "0.514197", "0.5129524", "0.5129524", "0.5129524", "0.51249427", "0.5121603", "0.51100445", "0.51053727", "0.51046205", "0.5070751", "0.50699455", "0.5062079", "0.5062079", "0.5057892", "0.5057818", "0.50543886", "0.5050092", "0.50425714", "0.50359565", "0.50356644", "0.5034009", "0.50262964", "0.50224334", "0.50213975", "0.50145274", "0.50066876", "0.50027937", "0.50004613", "0.49987197", "0.49982205", "0.49922952", "0.49912423", "0.49907714", "0.4985138", "0.49766684", "0.4973834", "0.49631926", "0.49631926", "0.49589446", "0.495885", "0.49546015", "0.49535033", "0.49507174", "0.49500072", "0.49492103", "0.49489567", "0.4944713", "0.4941908", "0.49418133", "0.49398935", "0.49335393", "0.49332082", "0.49328735" ]
0.74405515
0
Sets a new autorizacaoProrrogacao
public function setAutorizacaoProrrogacao(\ans\schemes\OperadoraPrestadorType\SituacaoAutorizacaoAType\AutorizacaoProrrogacaoAType $autorizacaoProrrogacao) { $this->autorizacaoProrrogacao = $autorizacaoProrrogacao; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function aprova()\n {\n $this -> estadoAtual -> aprova($this);\n }", "function setComprobantePagoARegistroPago() {\n\t\tglobal $bd;\t\t\n\t\tglobal $x_correlativo_comprobante;\n\t\t$correlatico_comprobante = $x_correlativo_comprobante;\n\t\t$x_array_comprobante = $_POST['p_comprobante'];\n\t\t$id_registro_pago = $_POST['idregistro_pago'];\n\n\t\t$idtipo_comprobante_serie = $x_array_comprobante['idtipo_comprobante_serie'];\n\t\t\n\t\t$sqlrp=\"update registro_pago set idtipo_comprobante_serie=\".$idtipo_comprobante_serie.\" where idregistro_pago=\".$id_registro_pago;\n\t\t$idregistro_pago=$bd->xConsulta_NoReturn($sqlrp);\n\t}", "function setSorpresa($_caja){\r\n $this->sorpresa=$_caja;\r\n }", "public function setResaca($resaca){\n $this->resaca=$resaca;\n }", "public function setPaid()\n {\n $this->update([\n 'status' => self::STATUS_PAID,\n 'paid_date' => Carbon::now(),\n ]);\n }", "public function set($atributo, $valor) {\r\n\t\t\t $this->$atributo = $valor;\r\n\t\t}", "public function __set($atributo, $valor) {\n\t\t\t// $this->modelo = $valor;\n\t\t\t$this->$atributo = $valor;\n\t\t}", "public function setProyectorActivo( $proyector ) {\n $this->proyector_activo=$proyector;\n $proyecActual=new Properties();\n $proyecActual->load(file_get_contents(\"./pantallaActiva.properties\"));\n if(strcmp($proyector, \"\")==0)\n $this->proyector_activo=$proyecActual->getProperty(\"Proyector.activo\");\n $proyecActual->setProperty(\"Proyector.activo\",$this->proyector_activo);\n file_put_contents('./pantallaActiva.properties', $proyecActual->toString(true));\n }", "public function set( $atributo = '', $valor ) {\n $this->$atributo = $atributo;\n return $this;\n }", "function setActualizarPlaneacion($fecha, $persona, $credito){\n\t\t$xF\t\t\t\t\t\t= new cFecha();\n\t\t$fecha_esperar_hasta \t= $xF->setRestarDias( DIAS_ESPERA_CREDITO, $fecha );\n\t\t$grupo\t\t\t\t\t= $this->getCodigo();\n\t\t$sqlURec \t\t\t\t= \"UPDATE operaciones_recibos set docto_afectado=$credito WHERE numero_socio=$persona AND tipo_docto=14\t\tAND fecha_operacion>='$fecha_esperar_hasta' \";\n\t\t$sqlUMvto \t\t\t\t= \"UPDATE operaciones_mvtos set docto_afectado=$credito WHERE grupo_asociado=$grupo AND tipo_operacion=112 AND fecha_operacion>='$fecha_esperar_hasta'\";\n\t\tmy_query($sqlURec);\n\t\tmy_query($sqlUMvto);\n\t}", "public function __set($propriedade, $valor) {\n $this->data[$propriedade] = $valor;\n }", "public function setAutorizacaoServico(array $autorizacaoServico)\n {\n $this->autorizacaoServico = $autorizacaoServico;\n return $this;\n }", "public function setAcomodacaoAutorizada($acomodacaoAutorizada)\n {\n $this->acomodacaoAutorizada = $acomodacaoAutorizada;\n return $this;\n }", "public function set_profil($_profil)\n {\n $this->_profil = $_profil;\n\n return $this;\n }", "public function activarPantalla() {\n $pantallaActual=new Properties();\n $pantallaActual->load(file_get_contents(\"./pantallaActiva.properties\"));\n $pantallaActual->setProperty(\"Pantalla.activa\",4);\n file_put_contents('./pantallaActiva.properties', $pantallaActual->toString(true));\n\n\n // $this->pantalla_activa=$pantalla;\n }", "public function setPR($r) {}", "function asignar_valores(){\n\t\t$this->nombre=$_POST['nombre'];\n\t\t$this->prioridad=$_POST['prioridad'];\n\t\t$this->etiqueta=$_POST['etiqueta'];\n\t\t$this->descripcion=$_POST['descripcion'];\n\t\t$this->claves=$_POST['claves'];\n\t\t$this->tipo=$_POST['tipo'];\n\t\t$this->icono=$_POST['icono'];\n\t}", "public function setAtributos($atributos)\n {\n $this->atributos = collect($atributos)->map(function ($item) {\n return [\"atributo_id\" => $item];\n });\n }", "public function set_autor($_autor)\n {\n $this->_autor = $_autor;\n\n return $this;\n }", "public function presupuestoModificado(){\n $this->iPresupuestoModificado = $this->iPresupuestoInicial;\n $this->save();\n }", "function asignar_valores(){\n $this->nombre=$_POST['nombre'];\n $this->prioridad=$_POST['prioridad'];\n $this->etiqueta=$_POST['etiqueta'];\n $this->descripcion=$_POST['descripcion'];\n $this->claves=$_POST['claves'];\n $this->tipo=$_POST['tipo'];\n }", "public function testSetAutreAlleg() {\n\n $obj = new Employes();\n\n $obj->setAutreAlleg(true);\n $this->assertEquals(true, $obj->getAutreAlleg());\n }", "function setPorc_asistencia($porc_asistencia){\n\t\t\n\t\t$this->porc_asistencia = $porc_asistencia;\n\t\t$this->cambios = true;\n\t}", "public function setEncendidoPizarra( $encendido ) {\n $this->pizarra_on=$encendido;\n $this->enviarComandoEstado();\n //$this->activarPantalla();\n }", "public function setForAuteur()\n {\n //met à jour les proposition qui n'ont pas de base contrat et qui ne sont pas null\n /*PLUS BESOIN DE BASE CONTRAT\n \t\t$dbP = new Model_DbTable_Iste_proposition();\n \t\t$dbP->update(array(\"base_contrat\"=>null), \"base_contrat=''\");\n */\n\t \t//récupère les vente qui n'ont pas de royalty\n\t \t$sql = \"SELECT \n ac.id_auteurxcontrat, ac.id_livre\n , ac.id_isbn, ac.pc_papier, ac.pc_ebook\n , a.prenom, a.nom, c.type, IFNULL(a.taxe_uk,'oui') taxe_uk\n ,i.num\n , v.id_vente, v.date_vente, v.montant_livre, v.id_boutique, v.type typeVente\n , i.id_editeur, i.type typeISBN\n , impF.conversion_livre_euro\n FROM iste_vente v\n INNER JOIN iste_isbn i ON v.id_isbn = i.id_isbn \n INNER JOIN iste_importdata impD ON impD.id_importdata = v.id_importdata\n INNER JOIN iste_importfic impF ON impF.id_importfic = impD.id_importfic\n INNER JOIN iste_auteurxcontrat ac ON ac.id_isbn = v.id_isbn\n INNER JOIN iste_contrat c ON c.id_contrat = ac.id_contrat\n INNER JOIN iste_auteur a ON a.id_auteur = ac.id_auteur\n INNER JOIN iste_livre l ON l.id_livre = i.id_livre \n LEFT JOIN iste_royalty r ON r.id_vente = v.id_vente AND r.id_auteurxcontrat = ac.id_auteurxcontrat\n WHERE pc_papier is not null AND pc_ebook is not null AND pc_papier != 0 AND pc_ebook != 0\n AND r.id_royalty is null \";\n\n $stmt = $this->_db->query($sql);\n \n \t\t$rs = $stmt->fetchAll(); \n \t\t$arrResult = array();\n \t\tforeach ($rs as $r) {\n\t\t\t//calcule les royalties\n \t\t\t//$mtE = floatval($r[\"montant_euro\"]) / intval($r[\"nbA\"]);\n \t\t\t//$mtE *= floatval($r[\"pc_papier\"])/100;\n \t\t\tif($r[\"typeVente\"]==\"ebook\")$pc = $r[\"pc_ebook\"];\n \t\t\telse $pc = $r[\"pc_papier\"];\n $mtL = floatval($r[\"montant_livre\"])*floatval($pc)/100;\n //ATTENTION le taux de conversion est passé en paramètre à l'import et le montant des ventes est calculé à ce moment\n \t\t\t//$mtD = $mtL*floatval($r[\"taux_livre_dollar\"]);\n \t\t\t$mtE = $mtL*floatval($r['conversion_livre_euro']);\n //ajoute les royalties pour l'auteur et la vente\n //ATTENTION les taxes de déduction sont calculer lors de l'édition avec le taux de l'année en cours\n $dt = array(\"pourcentage\"=>$pc,\"id_vente\"=>$r[\"id_vente\"]\n ,\"id_auteurxcontrat\"=>$r[\"id_auteurxcontrat\"],\"montant_euro\"=>$mtE,\"montant_livre\"=>$mtL\n ,\"conversion_livre_euro\"=>$r['conversion_livre_euro']);\n\t \t\t$arrResult[]= $this->ajouter($dt\n ,true,true);\n //print_r($dt);\n \t\t}\n \t\t\n \t\treturn $arrResult;\n }", "function asignar_valores3(){\n\t\t//$this->ciudad=$_SESSION['ciudad_admin'];\n\t\t\n\t\t$this->id=$_POST['id'];\n\t\t$this->temporada=$_POST['temporada'];\n\t\t$this->nombre=$_POST['nombre_plan'];\n\t\t$this->descripcion=$_POST['descripcion_plan'];\n\t\t$this->precio=$_POST['precio_plan'];\n\t\t$this->maxadultos=$_POST['maxadultos'];\n\t\t$this->prioridad=$_POST['prioridad'];\n\t\t$this->mostrar=$_POST['publica'];\n\t\t\n\t}", "public function setDiaAsignado($data)\n {\n\n if ($this->_diaAsignado != $data) {\n $this->_logChange('diaAsignado');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_diaAsignado = $data;\n } else if (!is_null($data)) {\n $this->_diaAsignado = (string) $data;\n } else {\n $this->_diaAsignado = $data;\n }\n return $this;\n }", "public function puestaACero() {\n $this -> horas = 0;\n $this -> minutos = 0;\n $this -> segundos = 0;\n }", "function setSumarPais(){\n\t\t$this->cantidad_paises++;\n\t}", "public function reprova()\n {\n $this -> estadoAtual -> reprova($this);\n }", "public function testSetAutreContrat() {\n\n $obj = new AttestationCacm();\n\n $obj->setAutreContrat(\"autreContrat\");\n $this->assertEquals(\"autreContrat\", $obj->getAutreContrat());\n }", "public function markAsPaid() {\n $this->status = parent::STATUS_PAID;\n $this->admin_id = Yii::app()->user->getId();\n\n //no reason to keep this (cause we will save to history)\n $this->decline_reason = null;\n $this->comment = null;\n\n return $this->save(false);\n }", "function asignar_valores(){\n\t\t$this->codigo=$_POST['codigo'];\n\t\t$this->nombre=$_POST['nombre'];\n\t\t$this->marca=$_POST['marca'];\n\t\t$this->fecha=$_POST['fecha'];\n\t\t$this->categoria=$_POST['categoria'];\n\t\t$this->hotel=$_POST['hoteles'];\n\t\t$this->cantidad=$_POST['cantidad'];\n\t\t$this->lugar=$_POST['lugar'];\n\t\t$this->prioridad=$_POST['prioridad'];\n\t\t$this->detal=$_POST['detal'];\n\t\t$this->mayor=$_POST['mayor'];\n\t\t$this->limite=$_POST['limite'];\n\t\t$this->descripcion=$_POST['descripcion'];\n\t\t$this->claves=$_POST['claves'];\n\t\t$this->segmento=$_POST['segmento'];\n\t\t$this->principal=$_POST['principal'];\n\t\t\n\t\t\n\t}", "public function presetCamaraPresidencia($posicion) {\n\n self::$presidencia->preset($posicion);\n\n }", "function carregaValors($id,$autor){\t\r\n\t\t\t\t$this->set_aut_idautor($id);\r\n\t\t\t\t$this->set_aut_autor($autor);\r\n\t\t}", "function asignar_valores(){\n\t\t//$this->ciudad=$_SESSION['ciudad_admin'];\n\t\t$this->nombre=$_POST['nombre'];\n\t\t$this->apellido=$_POST['apellido'];\n\t\t$this->cantidad=$_POST['cantidad'];\n\t\t$this->cedula=$_POST['cedula'];\n\t\t$this->correo=$_POST['correo'];\n\t}", "public function testSetPrenom() {\n\n $obj = new AttestationCacm();\n\n $obj->setPrenom(\"prenom\");\n $this->assertEquals(\"prenom\", $obj->getPrenom());\n }", "public function setRrAcquis(?float $rrAcquis): PrepaPaie {\n $this->rrAcquis = $rrAcquis;\n return $this;\n }", "public function testSetEmailReponseAuto() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailReponseAuto(true);\n $this->assertEquals(true, $obj->getEmailReponseAuto());\n }", "public function asignarAccion(AutorizadorRequest $request)\n {\n $accion = AutorizadorAccion::create($request->all());\n return response()->json(['id' => $accion->id]);\n }", "public function testSetCptAccompte() {\n\n $obj = new Employes();\n\n $obj->setCptAccompte(10);\n $this->assertEquals(10, $obj->getCptAccompte());\n }", "function evt__form_persona__alta ($datos){\n \n $this->dep('datos')->tabla('persona')->nueva_fila($datos);\n $this->dep('datos')->tabla('persona')->sincronizar();\n \n if(strcmp($datos['tipo'], 'Docente')==0){\n $docente=array(\n 'nro_doc' => $datos['nro_doc'],\n 'tipo_doc' => $datos['tipo_doc'],\n 'legajo' => $datos['legajo'],\n 'titulo' => $datos['titulo']\n );\n $this->dep('datos')->tabla('docente')->nueva_fila($docente);\n $this->dep('datos')->tabla('docente')->sincronizar();\n \n }\n \n $this->s__nro_doc=$datos['nro_doc'];\n $this->s__tipo_doc=$datos['tipo_doc'];\n $this->s__nombre=$datos['nombre'];\n $this->s__apellido=$datos['apellido'];\n $this->set_pantalla('pant_asignacion');\n }", "function setMontoAhorroPreferente($monto){\n\t\t$xOP\t= new cPersonasCatalogoOtrosDatos();\n\t\t$this->addOtrosParametros($xOP->PERSONAS_MONTO_AHORRO_PREFERENTE, $monto);\n\t\t\n\t\t$this->setUpdate(array(\"descuento_preferente\" => $monto) );\n\t\t\n\t\tif(PERSONAS_COMPARTIR_CON_ASOCIADA == true){\n\t\t\t//ejecutar el url\n\t\t\t$this->getExportarAsociada(TPERSONAS_GENERALES);\n\t\t\t$this->getExportarAsociada(TPERSONAS_DIRECCIONES);\n\t\t\t$this->getExportarAsociada(TPERSONAS_ACTIVIDAD_ECONOMICA);\n\t\t\tif($this->getEsEmpresaConConvenio() == true){\n\t\t\t\t$this->getExportarAsociada(TCATALOGOS_EMPRESAS);\n\t\t\t}\n\t\t}\n\t}", "function setAgregarUnPais(){\n\t\t$this->comienza_con++;\n\t}", "public function activarPantalla() {\n\n\n $pantallaActual=new Properties();\n $pantallaActual->load(file_get_contents(\"./pantallaActiva.properties\"));\n $pantallaActual->setProperty(\"Pantalla.activa\",12);\n file_put_contents('./pantallaActiva.properties', $pantallaActual->toString(true));\n }", "private function actualizar_fechaenvio_docxpagarcpe(){\n\n $this->docxpagar_cpe->fecha_envio = Carbon::now();\n $this->docxpagar_cpe->save();\n\n }", "function setRestarPais(){\n\t\t$this->cantidad_paises--;\n\t}", "public function setCirculante_A(){\n\t\t$this->Circulante_A = $this->getCaixa_e_Equivalentes_de_Caixa()\n\t\t+ $this->getContas_a_Receber_C()\n\t\t+ $this->getEstoques()\n\t\t+ $this->getOutros_Creditos()\n\t\t+ $this->getDespesas_do_Exercicio_Seguinte();\n\t}", "public function setDataRescisao($v)\n\t{\n\t\t$dt = PropelDateTime::newInstance($v, null, 'DateTime');\n\t\tif ($this->data_rescisao !== null || $dt !== null) {\n\t\t\t$currentDateAsString = ($this->data_rescisao !== null && $tmpDt = new DateTime($this->data_rescisao)) ? $tmpDt->format('Y-m-d') : null;\n\t\t\t$newDateAsString = $dt ? $dt->format('Y-m-d') : null;\n\t\t\tif ($currentDateAsString !== $newDateAsString) {\n\t\t\t\t$this->data_rescisao = $newDateAsString;\n\t\t\t\t$this->modifiedColumns[] = UsuarioPeer::DATA_RESCISAO;\n\t\t\t}\n\t\t} // if either are not null\n\n\t\treturn $this;\n\t}", "public function setAparece($value)\n\t{\n\t\t$this->aparece = $value;\n\t}", "function ini__operacion (){\n \n //obtenemos el arreglo almacenado en la operacion \"aulas disponibles\". Su formato es :\n //Array ('id_aula'=>x 'hora_inicio'=>x 'hora_fin'=>x)\n $datos_ad=toba::memoria()->get_parametros();\n //esta condicion es fundamental para no quedarnos en la misma pantalla\n if(isset($datos_ad['id_aula'])){\n $this->s__accion=\"Vinculo\";\n $this->s__aula_disponible=$datos_ad;\n \n //eliminamos la informacion guardada en el arreglo $_SESSION\n toba::memoria()->limpiar_memoria();\n $this->set_pantalla('pant_persona');\n }\n }", "public function setAutor($autor)\n {\n $this->autor = $autor;\n }", "public function asignarProyecto(Request $request){\n if(!$request->ajax() || Auth::user()->rol_id == 11)return redirect('/');\n $asign = new Asign_proyecto();\n $asign->proyecto_id = $request->proyecto;\n $asign->asesor_id = $request->asesor;\n $asign->save();\n }", "public function applyDefaultValues()\n\t{\n\t\t$this->ativo = true;\n\t\t$this->tipo_acesso = 'M';\n\t\t$this->estado_civil = 'O';\n\t\t$this->nivel_acesso = '1';\n\t\t$this->usuario_validado = false;\n\t}", "public function testSetNumeroOrdre() {\n\n $obj = new EmpRecapCodePenibilite();\n\n $obj->setNumeroOrdre(10);\n $this->assertEquals(10, $obj->getNumeroOrdre());\n }", "public function set_pa(Int $_pa){\n $this->_pa = $_pa;\n\n return $this;\n }", "function asignar_presupuesto($id_p){\n $data['menu']=$this->menu(2);\n $data['proyecto'] = $this->model_proyecto->get_id_proyecto($id_p); ///// datos del proyecto\n\n if(count($data['proyecto'])!=0){\n $data['titulo_proy']=strtoupper($data['proyecto'][0]['tipo']);\n $data['fase'] = $this->model_faseetapa->get_id_fase($id_p); ///// datos fase encendida\n $data['ffi'] = $this->model_faseetapa->fuentefinanciamiento(); ///// fuente financiamiento\n $data['fof'] = $this->model_faseetapa->organismofinanciador(); ///// organismo financiador\n $data['techo']=$this->techo_add($id_p);\n \n $this->load->view('admin/programacion/proy_anual/fase/fase_asig_ptto', $data);\n }\n else{\n redirect('admin/dashboard');\n }\n }", "public function testSetNumeroAttestation() {\n\n $obj = new AttestationCacm();\n\n $obj->setNumeroAttestation(\"numeroAttestation\");\n $this->assertEquals(\"numeroAttestation\", $obj->getNumeroAttestation());\n }", "public function setDataContratacao($v)\n\t{\n\t\t$dt = PropelDateTime::newInstance($v, null, 'DateTime');\n\t\tif ($this->data_contratacao !== null || $dt !== null) {\n\t\t\t$currentDateAsString = ($this->data_contratacao !== null && $tmpDt = new DateTime($this->data_contratacao)) ? $tmpDt->format('Y-m-d') : null;\n\t\t\t$newDateAsString = $dt ? $dt->format('Y-m-d') : null;\n\t\t\tif ($currentDateAsString !== $newDateAsString) {\n\t\t\t\t$this->data_contratacao = $newDateAsString;\n\t\t\t\t$this->modifiedColumns[] = UsuarioPeer::DATA_CONTRATACAO;\n\t\t\t}\n\t\t} // if either are not null\n\n\t\treturn $this;\n\t}", "public function __construct($cuenta)\n {\n $this->cuenta = $cuenta;\n $this->monto_permitido = Cuenta::join('tipo_cuentas', 'tipo_cuenta_id', 'tipo_cuentas.id')\n ->where('num_cuenta', $cuenta)\n ->first()\n ->apertura_minima;\n }", "public function setProducto($pro){ $this->producto = $pro;}", "public function activarPantalla() {\n\n\t$pantallaActual=new Properties();\n $pantallaActual->load(file_get_contents(\"./pantallaActiva.properties\"));\n $pantallaActual->setProperty(\"Pantalla.activa\",1);\n file_put_contents('./pantallaActiva.properties', $pantallaActual->toString(true));\n }", "protected function setVida() {\n $this->vida = 200;\n }", "public function set_taplicacion_codigo(string $taplicacion_codigo): void {\n $this->taplicacion_codigo = $taplicacion_codigo;\n }", "public function setIdempresa($idempresa){\n $this->idempresa = $idempresa;\n }", "function set_proyecto(){\n\n\t\tif($this->input->post('id')){\n\t\t\t\n\t\t\t$id = $this->input->post('id',true);\n\n\t\t\t$user = $this->session->userdata('cliente_id');\n\n\t\t\t//Validar que existe el proyecto\n\n\t\t\t$proyecto = applib::get_table_field(applib::$proyectos_table,array('id' => $id,'status' => 1),'*');\n\n\t\t\tif($proyecto == \"\"){\n\t\t\t\techo json_encode(array('res' => 'error'));\n\t\t\t\texit;\n\t\t\t}\n\n\t\t\t//Verificar si ha seleccionado un proyecto para no volver a mostrar\n\n\t\t\t$cliente = applib::get_table_field(applib::$clientes_table,array('id' => $user),'*');\n\t\t\t\n\t\t\tif($cliente['proyecto_id'] != null){\n\t\t\t\techo json_encode(array('res' => 'error'));\n\t\t\t\texit;\n\t\t\t}\n\n\t\t\t//Colocar proyecto \n\n\t\t\tapplib::update(array('id' => $user),applib::$clientes_table,array('proyecto_id' => $id));\n\n\t\t\techo json_encode(array('res' => 'success'));\n\t\t}\n\t}", "public static function updateProfiloAzienda()\n {\n define(\"nome_azienda_regexpr\", \"/^[a-zA-Z\\xE0\\xE8\\xE9\\xEC\\xF2\\xF9 ]{3,64}/\");\n define(\"descrizione_regexpr\", \"/^[A-Za-z0-9.,' \\xE0\\xE8\\xE9\\xEC\\xF2\\xF9]{1,250}$/\");\n define(\"citta_regexpr\", \"/^([a-zA-Z\\xE0\\xE8\\xE9\\xF9\\xF2\\xEC\\x27]\\s?)+$/\");\n define(\"indirizzo_regexpr\", \"/^[a-zA-Z0-9\\xE0\\xE8\\xE9\\xEC\\xF2\\xF9\\s,'-]*$/\");\n define(\"sito_web_regexpr\", \"/^((?:http(?:s)?\\:\\/\\/)?[a-zA-Z0-9_-]+(?:.[a-zA-Z0-9_-]+)*.[a-zA-Z]{2,4}(?:\\/[a-zA-Z0-9_]+)*(?:\\/[a-zA-Z0-9_]+.[a-zA-Z]{2,4}(?:\\?[a-zA-Z0-9_]+\\=[a-zA-Z0-9_]+)?)?(?:\\&[a-zA-Z0-9_]+\\=[a-zA-Z0-9_]+)*)$/\"); \n define(\"email_personale_regexpr\", \"/^\\w+@[a-zA-Z_]+?\\.[a-zA-Z]{2,3}$/\");\n $company_name = trim($_REQUEST['name_azienda']);\n $company_type = $_REQUEST['tipo_attivita_id'];\n $company_email = $_REQUEST['company_mail_azienda'];\n $company_description = trim($_REQUEST['descrizione_azienda']);\n $company_city = trim($_REQUEST['city_azienda']);\n $company_address = trim($_REQUEST['address_azienda']);\n $company_phone = $_REQUEST['phone_azienda'];\n $company_web_site = $_REQUEST['sito_web_azienda'];\n $id = $_SESSION['current_user']->getId();\n $error_rec = 0; //verifica la presenza di un generico errore\n $utente = new Azienda();\n // pulizia\n if (!empty($company_name)) {\n unset($_SESSION['name_azienda']);\n if (1 === preg_match(nome_azienda_regexpr, $company_name)) {\n $utente->setNomeAzienda($company_name);\n } else {\n $_SESSION['name_azienda'] = \"<div class='messaggio-errore'>Il campo nome azienda completo contiene caratteri non validi.<br>Verifica eventuali errori di battitura.</div>\";\n $error_rec++;\n }\n } else {\n $_SESSION['name_azienda'] = \"<div class='messaggio-errore'>Il campo nome azienda completo &egrave; vuoto</div>\";\n $error_rec++;\n }\n if (!empty($company_type)) {\n unset($_SESSION['tipo_attivita_id']);\n $utente->setTipo_attivita_id($company_type);\n }\n if ($company_type == \"-1\") {\n $_SESSION['tipo_attivita_id'] = \"<div class='messaggio-errore'>Il campo tipo di attivit&agrave; non &egrave; stata schelta.</div>\";\n $error_rec++;\n }\n if (!empty($company_email)) {\n unset($_SESSION['company_mail_azienda']);\n if (1 === preg_match(email_personale_regexpr, $company_email)) {\n $valido = UtenteFactory::cercaEmailUpdate($company_email, 2, $id);\n if ($valido == 'SI') {\n $utente->setEmail($company_email);\n } else {\n $_SESSION['email_personale_azienda'] = \"<div class='messaggio-errore'>Questa email &egrave; gi&agrave; stato utilizzata<br></div>\";\n $error_rec++;\n }\n } else {\n $_SESSION['company_mail_azienda'] = \"<div class='messaggio-errore'>Il campo email non &egrave; valido. [email protected]</div>\";\n $error_rec++;\n }\n } else {\n $_SESSION['company_mail_azienda'] = \"<div class='messaggio-errore'>Il campo email &egrave; vuoto</div>\";\n $error_rec++;\n }\n if (!empty($company_description)) {\n unset($_SESSION['descrizione_azienda']);\n if (1 === preg_match(descrizione_regexpr, $company_description)) {\n $utente->setDescrizione($company_description);\n } else {\n $contacaratteri = strlen($company_description);\n if ($contacaratteri >= 150) {\n $_SESSION['descrizione_azienda'] = \"<div class='messaggio-errore'>Il campo descrizione non &egrave; valido.<br>Il campo contiene $contacaratteri caratteri</div>\";\n } else {\n $_SESSION['descrizione_azienda'] = \"<div class='messaggio-errore'>Il campo descrizione non &egrave; valido.</div>\";\n }\n $error_rec++;\n }\n } else {\n $_SESSION['descrizione_azienda'] = \"<div class='messaggio-errore'>Il campo descrizione &egrave; vuoto</div>\";\n $error_rec++;\n }\n if (!empty($company_city)) {\n unset($_SESSION['city_azienda']);\n if (1 === preg_match(citta_regexpr, $company_city)) {\n $utente->setCitta($company_city);\n } else {\n $_SESSION['city_azienda'] = \"<div class='messaggio-errore'>Il campo citt&agrave; non &egrave; valido.<br>Verifica eventuali errori di battitura.</div>\";\n $error_rec++;\n }\n } else {\n $_SESSION['city_azienda'] = \"<div class='messaggio-errore'>Il campo citt&agrave; &egrave; vuoto</div>\";\n $error_rec++;\n }\n if (!empty($company_address)) {\n unset($_SESSION['address_azienda']);\n if (1 === preg_match(indirizzo_regexpr, $company_address)) {\n $utente->setIndirizzo($company_address);\n } else {\n $_SESSION['address_azienda'] = \"<div class='messaggio-errore'>Il campo indirizzo non &egrave; valido.<br>Verifica eventuali errori di battitura.</div>\";\n $error_rec++;\n }\n } else {\n $_SESSION['address_azienda'] = \"<div class='messaggio-errore'>Il campo indirizzo &egrave; vuoto</div>\";\n $error_rec++;\n }\n if (!empty($company_phone)) {\n unset($_SESSION['phone_azienda']);\n if (is_numeric($company_phone)) {\n $utente->setTelefono($company_phone);\n } else {\n $_SESSION['phone_azienda'] = \"<div class='messaggio-errore'>Il campo telefono non &egrave; valido.<br>Verifica eventuali errori di battitura.</div>\";\n $error_rec++;\n }\n } else {\n $_SESSION['phone_azienda'] = \"<div class='messaggio-errore'>Il campo telefono &egrave; vuoto</div>\";\n $error_rec++;\n }\n if (!empty($company_web_site)) {\n unset($_SESSION['sito_web_azienda']);\n if (1 === preg_match(sito_web_regexpr, $company_web_site)) {\n $utente->setSitoWeb($company_web_site);\n } else {\n $_SESSION['sito_web_azienda'] = \"<div class='messaggio-errore'>Il campo del sito web non &egrave; valido.<br>Verifica eventuali errori di battitura.</div>\";\n $error_rec++;\n }\n } else {\n $_SESSION['sito_web_azienda'] = \"<div class='messaggio-errore'>Il campo del sito web &egrave; vuoto</div>\";\n $error_rec++;\n }\n if ($error_rec == 0) {\n $update = UtenteFactory::updateProfiloAzienda($id, $utente);\n if ($update == 1) {\n $_SESSION['errore'] = 6;\n } elseif ($update == 0) {\n $_SESSION['errore'] = 5;\n }\n }\n \n $vd = new ViewDescriptor();\n $vd->setTitolo(\"SardiniaInFood: Profilo\");\n $vd->setLogoFile(\"../view/in/logo.php\");\n $vd->setMenuFile(\"../view/in/menu_modifica_profilo.php\");\n $vd->setContentFile(\"../view/in/azienda/modifica_profilo_azienda.php\");\n $vd->setErrorFile(\"../view/in/error_in.php\");\n $vd->setFooterFile(\"../view/in/footer_empty.php\");\n\n require_once '../view/Master.php';\n }", "function setVerificarValidez($GenerarAvisos = false, $CorreccionAutomatica = false){\n\t\t$D\t\t\t\t= $this->mDatosInArray;\n\t\t$msg\t\t\t= getSucursal();\n\t\t$presidenta\t\t= $this->mRepSocio;\n\t\t$vocal\t\t\t= $this->mVocalSocio;\n\t\t$tmpSucursal\t= \"\";\n\n\t\t$arrUpdate\t\t= array();\n\t\t//$DGrupo\n\t\tif ( $presidenta == DEFAULT_SOCIO ){\t\t$msg\t.= \"ERROR\\tLa Presidenta del Grupo tiene un Numero Invalido\\r\\n\";\t\t}\n\t\tif ( $vocal == DEFAULT_SOCIO ){\t\t$msg\t.= \"ERROR\\tLa Vocal del Grupo tiene un Numero Invalido\\r\\n\";\t\t}\n\t\t//Verificar si la Presidenta existe\n\t\tif ( $presidenta != DEFAULT_SOCIO ){\n\t\t\t$xPred\t\t\t= new cSocio($presidenta, true);\n\t\t\t$xPred->init();\n\t\t\t$DPred\t\t\t= $xPred->getDatosInArray();\n\t\t\t$nombre\t\t\t= trim( $xPred->getNombreCompleto() );\n\t\t\t$tmpSucursal\t= $DPred[\"sucursal\"];\n\t\t\tif ( !isset($tmpSucursal) ){\t\t$tmpSucursal\t= getSucursal();\t\t}\n\t\t\tif ( $nombre == \"\" ){\t\t\n\t\t\t\t$msg\t.= \"ERROR\\tLa Presidenta del Grupo no Existe\\r\\n\";\t\t\n\t\t\t} else {\n\t\t\t\tif ( $CorreccionAutomatica == true ){\n\t\t\t\t\t$arrUpdate[\"representante_nombrecompleto\"]\t= $nombre;\n\t\t\t\t\t$msg\t\t.= \"ACTUAL\\tLa Presidenta del Grupo se actualiza a $nombre \\r\\n\";\n\t\t\t\t\t//Actualiza la Colonia a Codigo Postal\n\t\t\t\t\t$xDom\t\t= $xPred->getDatosDomicilio();\n\t\t\t\tif (!isset($xDom[\"codigo_postal\"]) OR empty($xDom[\"codigo_postal\"]) ){ \t$xDom[\"codigo_postal\"] = DEFAULT_CODIGO_POSTAL; }\n\t\t\t\t\t$arrUpdate[\"colonia_gruposolidario\"]\t= $xDom[\"codigo_postal\"];\n\t\t\t\t\t$arrUpdate[\"direccion_gruposolidario\"]\t= trim($xPred->getDomicilio());\n\t\t\t\t\t$msg\t\t.= \"ACTUAL\\tEl Codigo Postal del Grupo se actualiza a \" . $xDom[\"codigo_postal\"] . \" \\r\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//Verificar si la Vocal de Vigilancia Existe\n\t\tif ( $vocal != DEFAULT_SOCIO ){\n\t\t\t$xVocal\t= new cSocio($vocal, true);\n\t\t\t$xVocal->init();\n\t\t\t$nombre\t= trim( $xVocal->getNombreCompleto() );\n\t\t\tif ( $nombre == \"\" ){\n\t\t\t\t$msg\t.= \"ERROR\\tLa Vocal de Vigilancia del Grupo no Existe\\r\\n\";\n\t\t\t} else {\n\t\t\t\tif ( $CorreccionAutomatica == true ){\n\t\t\t\t\t$arrUpdate[\"vocalvigilancia_nombrecompleto\"]\t= $nombre;\n\t\t\t\t\t$msg\t.= \"ERROR\\tLa Vocal de Vigilancia del Grupo se actualiza a $nombre\\r\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//Verificar si la Sucursal actual\n\t\tif ( ($this->mSucursal != $tmpSucursal) AND ( $vocal != DEFAULT_SOCIO ) ){\n\t\t\t$msg\t.= \"ERROR\\tLa Sucursal del Grupo(\" . $this->mSucursal . \") no es el mismo que el de la Presidenta del Grupo($tmpSucursal)\\r\\n\";\n\t\t\tif ( $CorreccionAutomatica == true ){ $arrUpdate[\"sucursal\"]\t= $tmpSucursal; }\n\t\t}\n\t\t//Actualizar\n\t\tif ( $CorreccionAutomatica == true ){\t$this->setUpdate($arrUpdate);\t}\n\t\treturn $msg;\n\t}", "public function testSetJoursRttAcquis() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setJoursRttAcquis(10.092018);\n $this->assertEquals(10.092018, $obj->getJoursRttAcquis());\n }", "private function getCodigoPresupuestarioApuestaLicita()\r\n\t\t{\r\n\t\t\t$codigoPresupuesto['codigo'] = '301021100';\r\n\t\t\treturn $codigo = self::getCodigoPresupuestarioByCodigo($codigoPresupuesto['codigo']);\r\n\t\t}", "function archobjet_autoriser() {\n}", "function cilien_autoriser(){}", "public function setEncendidoProyector( $encendido ) {\n $this->proyector_on=$encendido;\n $this->enviarComandoEstado();\n //$this->activarPantalla();\n }", "public function testSetAccesAutorisePlanFacturation() {\n\n $obj = new Collaborateurs();\n\n $obj->setAccesAutorisePlanFacturation(true);\n $this->assertEquals(true, $obj->getAccesAutorisePlanFacturation());\n }", "public function __construct(){\n $this->idade = 10;\n }", "public function setActivo($activo)\n {\n $this->activo = $activo;\n\n return $this;\n }", "function evt__form_asignacion__agregar_catedra (){\n $this->s__datos_form_asignacion=$this->dep('form_asignacion')->get_datos();\n $this->set_pantalla('pant_catedra');\n }", "function setAukstis($x) {\n $this->aukstis = $x; // privaciai reiksmei priskiriam kintamaji, kuris bus kazkuom pakeistas\n }", "function asignar_valores(){\n\t\t$this->nombre=$_POST['nombre'];\n\t\t$this->apellido=$_POST['apellido'];\n\t\t$this->telefono=$_POST['telefono'];\n\t\t$this->email=$_POST['email'];\n\t\t\n\t\t$this->tipo=$_POST['tipo'];\n\t\t$this->ano=$_POST['ano'];\n\t\t$this->valor_vehiculo=$_POST['valor_vehiculo'];\n\t\t$this->saldo=$_POST['saldo'];\n\t\t$this->valor_inicial=$_POST['valor_inicial'];\n\t\t$this->comision=$_POST['comision'];\n\t\t$this->plazo=$_POST['plazo'];\n\t\t$this->cuotas=$_POST['cuotas'];\n\t\t$this->total=$_POST['total'];\n\t}", "public function apagarPizarra( ) {\n $this->setComando(self::$PIZARRA_DIGITAL, \"OFF\");\n $this->setEncendidoPizarra(0);\n\n }", "public function __construct(){\n$this->acCodigo_area = \"\";\n$this->acCodificacion = \"\";\n$this->acUbicacion = \"\";\n}", "public function setOperador($operador)\r\n {\r\n // $this->_myParameters = $myParameters;\r\n $this->_OPERADOR = $operador;\r\n \t//$this->_OPERADOR='1';\r\n \t//Zend_Registry::get('logger')->log(\"testeddd\", Zend_Log::INFO);\r\n \t$projeto= new Application_Model_DbTable_Projeto();\r\n \t//$this->_PROJETOS=$projeto->getProjetoCombo() ;\r\n \t$this->_PROJETOS=$projeto->getProjetosOperadorPermissao($operador);\r\n \t\r\n }", "function set($ARBITRO_data=array()) {\n\t\tif(array_key_exists('identificacion', $ARBITRO_data)) {\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t$this->get($ARBITRO_data);\n\t\t\t\tif($ARBITRO_data['identificacion'] != $this->getIdentificacion()) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->setIdentificacion($ARBITRO_data['identificacion']);\n\t\t\t\t\t\t\t$id = $this->getIdentificacion();\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->setNombre($ARBITRO_data['nombre']);\n\t\t\t\t\t\t\t$nombre =$this->getNombre();\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->setApellido($ARBITRO_data['apellido']);\n\t\t\t\t\t\t\t$apellido =$this->getApellido();\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->setEmail($ARBITRO_data['email']);\t\t\n\t\t\t\t\t\t\t$email =$this->getEmail();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->setTelefono($ARBITRO_data['telefono']);\t\t\n\t\t\t\t\t\t\t$telefono =$this->getTelefono();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->setDireccion($ARBITRO_data['direccion']);\t\t\n\t\t\t\t\t\t\t$direccion =$this->getDireccion();\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->setTipoArbitro($ARBITRO_data['tipo']);\t\t\n\t\t\t\t\t\t\t$tipo =$this->getTipoArbitro();\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$Disponibilidad = 'Si';\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t$this->query = \"\n\t\t\t\t\t\t\t\t\t\tINSERT INTO arbitros\n\t\t\t\t\t\t\t\t\t\t(Identificacion, Nombre, Apellido, Email,TipoArbitro,Direccion,Telefono,Disponible)\n\t\t\t\t\t\t\t\t\t\tVALUES\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t('$id','$nombre', '$apellido', '$email','$tipo','$direccion','$telefono','$Disponibilidad')\n\t\t\t\t\t\t\t\t\t\t\";\t\t\t\t\t\t\n\t\t\t\t\t\t$this->execute_single_query();\t\t\t\t\t\t\n\t\t\t\t\t\t$this->mensaje = 'arbitro agregado exitosamente';\n\t\t\t\t\t\t\n\t\t\t } else \n\t\t\t\t\t\t$this->mensaje = 'El arbitro ya existe';\n\t\t\t\t\t \n\t\t} else \n\t\t\t\t$this->mensaje = 'Error al Agregar arbitro';\t\t\t\t\n\t}", "public function set_apelido(Apelido $object)\n {\n $this->apelido = $object;\n $this->apelido_id = $object->id;\n }", "public function create() {\n //\n $autor = new Autor();\n $autor->nombre = 'Alexis';\n $autor->save();\n// $autor = Autor::where(\"nombre\", \"=\", \"LEX\")->first();\n// foreach ($autores as $autor) {\n// \n// }\n }", "public function setRcAcquis(?float $rcAcquis): PrepaPaie {\n $this->rcAcquis = $rcAcquis;\n return $this;\n }", "public function testSetIndemnAutre() {\n\n $obj = new AttestationCacm();\n\n $obj->setIndemnAutre(true);\n $this->assertEquals(true, $obj->getIndemnAutre());\n }", "public function setComando( $comando, $atributo=null ) {\n $this->comando=$comando;\n $this->atributo=$atributo;\n $this->enviarComando();\n $this->activarPantalla();\n //activa y enviar comando\n }", "function asignar_valores2(){\n\t\t$this->nombre=$_POST['nombre'];\n\t\t$this->apellido=$_POST['apellido'];\n\t\t$this->telefono=$_POST['telefono'];\n\t\t$this->email=$_POST['email'];\n\t\t\n\t\t$this->marca=$_POST['marca'];\n\t\t$this->modelo=$_POST['modelo'];\n\t\t$this->ano=$_POST['ano'];\n\t\t$this->tipo=$_POST['tipo'];\n\t\t$this->descripcion=$_POST['descripcion'];\n\t}", "public function setCirculante_P(){\n\t\t$this->Circulante_P = $this->getFornecedores() \n\t\t+ $this->getEmprestimos_Bancarios() \n\t\t+ $this->getObrigacoes_Sociais_e_Impostos_a_Recolher() \n\t\t+ $this->getContas_a_Pagar_C() \n\t\t+ $this->getLucros_a_Distribuir() \n\t\t+ $this->getProvisoes();\n\t}", "private function _setAutor( $autor ){\n\n return array(\n 'idAuthor' => $autor['idAuthor'],\n 'nombreAuthor' => $autor['nombreAuthor'],\n 'apat' => $autor['apat'],\n 'amat' => $autor['amat'],\n 'edad' => $autor['edad'],\n 'correo' => $autor['correo'],\n 'Instituto_idInstituto' => $autor['Instituto_idInstituto'],\n 'Comite_idComite' => $autor['Comite_idComite']\n );\n }", "function asignar_valores2(){\n\t\t/* Metodo para recibir valores del exterior. */\n\t\t//$this->ciudad=$_SESSION['ciudad_admin'];\n\t\t\n\t\t$this->id=$_POST['id'];\n\t\t$this->desde=$_POST['desde'];\n\t\t$this->hasta=$_POST['hasta'];\n\t\t$this->titulo=$_POST['titulo'];\n\t\t$this->alternativo=$_POST['alternativo'];\n\t\t$this->paxadicional=$_POST['paxadicional'];\n\t\t$this->prioridad=$_POST['prioridad'];\n\t\t$this->mostrar=$_POST['publica'];\n\t\t\n\t\t$this->desde_a=$_POST['desde_a'];\n\t\t$this->hasta_a=$_POST['hasta_a'];\n\t\t$this->precio_a=$_POST['precio_a'];\n\t\t$this->desde_b=$_POST['desde_b'];\n\t\t$this->hasta_b=$_POST['hasta_b'];\n\t\t$this->precio_b=$_POST['precio_b'];\n\t\t\n\t}", "public function setAPrix($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prix !== $v) {\n $this->prix = $v;\n $this->modifiedColumns[CommandeTableMap::COL_PRIX] = true;\n }\n\n return $this;\n }", "function Proveeedor($cedulaProveedor, $nombre, $telefono, $productos) {\n $this->cedulaProveedor = $cedulaProveedor;\n $this->nombre = $nombre;\n $this->telefono = $telefono;\n $this->productos = $productos;\n }", "public function setPremios(PropelCollection $premios, PropelPDO $con = null)\n\t{\n\t\t$this->premiosScheduledForDeletion = $this->getPremios(new Criteria(), $con)->diff($premios);\n\n\t\tforeach ($premios as $premio) {\n\t\t\t// Fix issue with collection modified by reference\n\t\t\tif ($premio->isNew()) {\n\t\t\t\t$premio->setUsuario($this);\n\t\t\t}\n\t\t\t$this->addPremio($premio);\n\t\t}\n\n\t\t$this->collPremios = $premios;\n\t}", "public static function updateProfiloPersonale()\n {\n define(\"nome_completo_regexpr\", \"/^[a-zA-Z \\xE0\\xE8\\xE9\\xEC\\xF2\\xF9]{3,64}/\");\n define(\"email_personale_regexpr\", \"/^\\w+@[a-zA-Z_]+?\\.[a-zA-Z]{2,3}$/\");\n define(\"username_regexpr\", \"/^[A-Za-z0-9\\xE0\\xE8\\xE9\\xEC\\xF2\\xF9 ]{3,64}$/\");\n define(\"password_regexpr\", \"/^[a-zA-Z0-9\\xE0\\xE8\\xE9\\xEC\\xF2\\xF9]+$/\");\n $name = trim($_REQUEST['nome_completo_azienda']);\n $task = trim($_REQUEST['tipo_incarichi_id']);\n $mail = trim($_REQUEST['email_personale_azienda']);\n $username = trim($_REQUEST['username_azienda']);\n $pass = trim($_REQUEST['password_azienda']);\n $id = $_SESSION['current_user']->getId();\n $error_rec = 0; //verifica la presenza di un generico errore\n \n $utente = new Azienda();\n // verifica la correttezza dei valori inseriti nella compliazione del form\n if (!empty($name)) {\n unset($_SESSION['nome_completo_azienda']);\n if (1 === preg_match(nome_completo_regexpr, $name)) {\n $utente->setNomeCompleto($name);\n } else {\n $_SESSION['nome_completo_azienda'] = \"<div class='messaggio-errore'>Il campo nome completo contiene caratteri non validi.<br>Verifica eventuali errori di battitura.</div>\";\n $error_rec++;\n }\n } else {\n $_SESSION['nome_completo_azienda'] = \"<div class='messaggio-errore'>Il campo nome completo &egrave; vuoto</div>\";\n $error_rec++;\n }\n if (!empty($task)) {\n unset($_SESSION['tipo_incarichi_id']);\n $utente->setTipo_incarichi_id($task);\n }\n if ($task == \"-1\") {\n $_SESSION['tipo_incarichi_id'] = \"<div class='messaggio-errore'>Il campo tipo di incarico non &egrave; stato schelto</div>\";\n $error_rec++;\n }\n if (!empty($mail)) {\n unset($_SESSION['email_personale_azienda']);\n if (1 === preg_match(email_personale_regexpr, $mail)) {\n $valido = UtenteFactory::cercaEmailUpdate($mail, 1, $id);\n if ($valido == 'SI') {\n $utente->setEmailPersonale($mail);\n } else {\n $_SESSION['email_personale_azienda'] = \"<div class='messaggio-errore'>Questa email &egrave; gi&agrave; stato utilizzata<br></div>\";\n $error_rec++;\n }\n } else {\n $_SESSION['email_personale_azienda'] = \"<div class='messaggio-errore'>Questo indirizzo email non &egrave; valido.<br>Verifica eventuali errori di battitura.<br>Esempio email valida: [email protected]</div>\";\n $error_rec++;\n }\n } else {\n $_SESSION['email_personale_azienda'] = \"<div class='messaggio-errore'>Il campo email &egrave; vuoto</div>\";\n $error_rec++;\n }\n if (!empty($username)) {\n unset($_SESSION['username_azienda']);\n if (1 === preg_match(username_regexpr, $username)) {\n $valido = UtenteFactory::cercaUsernameUpdate($username, 1, $id);\n if ($valido == 'SI') {\n $utente->setUsername($username);\n } else {\n $_SESSION['username_azienda'] = \"<div class='messaggio-errore'>Questo Username &egrave; gi&agrave; stato utilizzato<br>scegline un altro</div>\";\n $error_rec++;\n }\n } else {\n $_SESSION['username_azienda'] = \"<div class='messaggio-errore'>Il campo username completo contiene caratteri non validi.<br>Verifica eventuali errori di battitura.</div>\";\n $error_rec++;\n }\n } else {\n $_SESSION['username_azienda'] = \"<div class='messaggio-errore'>Il campo username completo &egrave; vuoto</div>\";\n $error_rec++;\n }\n if (!empty($pass)) {\n unset($_SESSION['password_azienda']);\n if (1 === preg_match(password_regexpr, $pass)) {\n $utente->setPassword($pass);\n } else {\n $_SESSION['password_azienda'] = \"<div class='messaggio-errore'>Il campo password non &egrave; valido.<br>Verifica eventuali errori di battitura.</div>\";\n $error_rec++;\n }\n } else {\n $_SESSION['password_azienda'] = \"<div class='messaggio-errore'>Il campo password &egrave; vuoto</div>\";\n $error_rec++;\n }\n if ($error_rec == 0) {\n $update = UtenteFactory::updateProfiloPersonale($id, $utente);\n if ($update == 'INSUCCESSO') {\n $_SESSION['errore'] = 6;\n } elseif ($update == 'SUCCESSO') {\n $_SESSION['errore'] = 5;\n }\n }\n \n $vd = new ViewDescriptor();\n $vd->setTitolo(\"SardiniaInFood: Profilo\");\n $vd->setLogoFile(\"../view/in/logo.php\");\n $vd->setMenuFile(\"../view/in/menu_modifica_profilo.php\");\n $vd->setContentFile(\"../view/in/azienda/modifica_profilo_personale.php\");\n $vd->setErrorFile(\"../view/in/error_in.php\");\n $vd->setFooterFile(\"../view/in/footer_empty.php\");\n \n require_once '../view/Master.php';\n }", "public function setUsp_Active($ac){\n $this->active = (int)$ac;\n }", "public function asignarVerificador(Request $request){\n $ruv = Ruv::findOrFail($request->id);\n $fecha = Carbon::now();\n $ruv->empresa_id = $request->empresa;\n $ruv->fecha_asignacion = $fecha;\n $ruv->save();\n }", "public function setAutorizacaoOdonto(array $autorizacaoOdonto)\n {\n $this->autorizacaoOdonto = $autorizacaoOdonto;\n return $this;\n }", "public function setPrejuizos_Acumulados($object){\n\t\tif($object->getrelacao_cr_db()->getCr() == '2.3.3.02') {\n\t\t\t$this->Prejuizos_Acumulados -= $object->getvalor();\n\t\t}\n\t\t\n\t\t// Debita no prejuizos acumulados.\n\t\tif($object->getrelacao_cr_db()->getDb() == '2.3.3.02') {\n\t\t\t$this->Prejuizos_Acumulados += $object->getvalor();\n\t\t}\n\t}" ]
[ "0.60401285", "0.5911878", "0.58902484", "0.5828432", "0.56989944", "0.55687463", "0.5503695", "0.54488707", "0.54244053", "0.5401204", "0.53342164", "0.53277564", "0.5327665", "0.5281202", "0.5280218", "0.52641606", "0.5253771", "0.522291", "0.521371", "0.52098244", "0.52083576", "0.52080256", "0.5201693", "0.51844823", "0.51716906", "0.51656526", "0.51645577", "0.51613516", "0.51594204", "0.51531607", "0.51435655", "0.5133113", "0.5131597", "0.5130225", "0.5130097", "0.5128459", "0.51185864", "0.5118079", "0.51162463", "0.51119554", "0.5101837", "0.5090381", "0.5087019", "0.5069628", "0.50628984", "0.50617874", "0.5049032", "0.50475645", "0.50457877", "0.50395423", "0.5037211", "0.50370425", "0.5035032", "0.5029034", "0.50242394", "0.5016465", "0.50136083", "0.5007327", "0.5005772", "0.5005181", "0.50029093", "0.50014484", "0.49839056", "0.49787414", "0.49770576", "0.4976835", "0.49688613", "0.49626416", "0.49619862", "0.49614573", "0.49610913", "0.49600366", "0.4959253", "0.49575928", "0.49515375", "0.49462333", "0.49452043", "0.49412674", "0.49387515", "0.49291915", "0.49288836", "0.49101856", "0.48987302", "0.48985568", "0.489234", "0.48911932", "0.48896125", "0.48881373", "0.48846853", "0.48809752", "0.48790058", "0.48765904", "0.4863491", "0.48583314", "0.48519093", "0.48494285", "0.48457217", "0.48452696", "0.48423335", "0.48399568" ]
0.56136644
5
Sets a new autorizacaoOdonto
public function setAutorizacaoOdonto(array $autorizacaoOdonto) { $this->autorizacaoOdonto = $autorizacaoOdonto; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAcomodacaoAutorizada($acomodacaoAutorizada)\n {\n $this->acomodacaoAutorizada = $acomodacaoAutorizada;\n return $this;\n }", "public function setAutorizacaoServico(array $autorizacaoServico)\n {\n $this->autorizacaoServico = $autorizacaoServico;\n return $this;\n }", "public function setUsuario($operacao, $usuario) {\n switch ($operacao) {\n case 'I' :\n \n break;\n\n case 'A' :\n\n\n break;\n\n case 'D' :\n\n\n break;\n\n default :\n break;\n }\n }", "public function __set($atributo, $valor) {\n\t\t\t// $this->modelo = $valor;\n\t\t\t$this->$atributo = $valor;\n\t\t}", "public function setAno($ano)\n {\n $this->ano = $ano;\n }", "public function setIdusuario($value){\n $this->idusuario = $value;\n }", "protected function doEdicaoPeridoAcesso() {\r\n\t\t$editar = intval($this->system->input['editar']);\r\n\t\tif ($editar) {\t\t\t\r\n\t\t\t$erro_msg = $this->validarPeriodoAcesso();\r\n\t\t\t\r\n\t\t\tif ($erro_msg) {\r\n\t\t\t\t$this->system->view->assign('msg_alert', $erro_msg['msg']);\r\n\t\t\t\t$this->system->view->assign('periodo', $this->system->input);\r\n\t\t\t}else{\r\n\t\t\t\t$this->system->configuracoesgerais->atualizarPeriodoAcesso($this->system->input);\r\n\t\t\t\t$this->system->view->assign('msg_alert', 'Período de Acesso atualizado com sucesso!');\t\t\t\t\r\n\t\t\t\t$this->system->view->assign('periodo', $this->system->input);\r\n\t\t\t}\r\n\t\t} \t\t\r\n\t\t$this->system->view->assign('periodo',$this->system->configuracoesgerais->getPeriodoAcesso());\r\n\t\t\r\n\t\t$this->system->admin->topo(13);\r\n\t\t$this->system->view->display('administrador-geral/configuracoes_perido_acesso.tpl');\r\n\t\t$this->system->admin->rodape();\t\t\r\n\t}", "function setMontoAhorroPreferente($monto){\n\t\t$xOP\t= new cPersonasCatalogoOtrosDatos();\n\t\t$this->addOtrosParametros($xOP->PERSONAS_MONTO_AHORRO_PREFERENTE, $monto);\n\t\t\n\t\t$this->setUpdate(array(\"descuento_preferente\" => $monto) );\n\t\t\n\t\tif(PERSONAS_COMPARTIR_CON_ASOCIADA == true){\n\t\t\t//ejecutar el url\n\t\t\t$this->getExportarAsociada(TPERSONAS_GENERALES);\n\t\t\t$this->getExportarAsociada(TPERSONAS_DIRECCIONES);\n\t\t\t$this->getExportarAsociada(TPERSONAS_ACTIVIDAD_ECONOMICA);\n\t\t\tif($this->getEsEmpresaConConvenio() == true){\n\t\t\t\t$this->getExportarAsociada(TCATALOGOS_EMPRESAS);\n\t\t\t}\n\t\t}\n\t}", "public function setObservacao( $observacao )\n {\n \t$this->observacao = $observacao;\n }", "public function setAtributos($atributos)\n {\n $this->atributos = collect($atributos)->map(function ($item) {\n return [\"atributo_id\" => $item];\n });\n }", "public function testSetAutreAlleg() {\n\n $obj = new Employes();\n\n $obj->setAutreAlleg(true);\n $this->assertEquals(true, $obj->getAutreAlleg());\n }", "function ini__operacion (){\n \n //obtenemos el arreglo almacenado en la operacion \"aulas disponibles\". Su formato es :\n //Array ('id_aula'=>x 'hora_inicio'=>x 'hora_fin'=>x)\n $datos_ad=toba::memoria()->get_parametros();\n //esta condicion es fundamental para no quedarnos en la misma pantalla\n if(isset($datos_ad['id_aula'])){\n $this->s__accion=\"Vinculo\";\n $this->s__aula_disponible=$datos_ad;\n \n //eliminamos la informacion guardada en el arreglo $_SESSION\n toba::memoria()->limpiar_memoria();\n $this->set_pantalla('pant_persona');\n }\n }", "public function setDiariasAutorizadas($diariasAutorizadas)\n {\n $this->diariasAutorizadas = $diariasAutorizadas;\n return $this;\n }", "public function asignarAccion(AutorizadorRequest $request)\n {\n $accion = AutorizadorAccion::create($request->all());\n return response()->json(['id' => $accion->id]);\n }", "public function setAtivo($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\tif (is_string($v)) {\n\t\t\t\t$v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true;\n\t\t\t} else {\n\t\t\t\t$v = (boolean) $v;\n\t\t\t}\n\t\t}\n\n\t\tif ($this->ativo !== $v) {\n\t\t\t$this->ativo = $v;\n\t\t\t$this->modifiedColumns[] = UsuarioPeer::ATIVO;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setIdUsuarioOrigen($usuarioOrigen) {\n\t\t$this->usuarioOrigen = $usuarioOrigen;\n\t}", "function setSorpresa($_caja){\r\n $this->sorpresa=$_caja;\r\n }", "public function set($atributo, $valor) {\r\n\t\t\t $this->$atributo = $valor;\r\n\t\t}", "function setOrden($iorden = '')\n {\n $this->iorden = $iorden;\n }", "public function setAtivo($ativo)\n {\n $this->ativo = $ativo;\n\n return $this;\n }", "public function setAtivo($ativo)\n {\n $this->ativo = $ativo;\n\n return $this;\n }", "public function setAtivo($ativo)\n {\n $this->ativo = $ativo;\n\n return $this;\n }", "function __construct(){\n\t\t\t$this->setId(0);\n\t\t\t$this->setIdUsuario(0);\n\t\t\t$this->setFecha('');\n\t\t\t// $this->setHora('');\t\t\n\t\t\t$this->setObservacion('');\t\t\n\t\t\t$this->setEstado(true);\n\t\t\t$this->setIngreso(true);\n\t\t\t\n\t\t}", "public function create_edit_aluno()\n\t\t{\n\t\t\t//agora carregar todos os alunos acordo com o curso\n\t\t\t$this->data['alunos'] = $this->Aluno_model->get_aluno_por_curso($this->data['Turma']['curso_id'],$this->data['Turma']['id']);\n\t\t\t$this->view(\"turma/create_edit_aluno\",$this->data);\n\t\t}", "function archobjet_autoriser() {\n}", "public function testSetAutreContrat() {\n\n $obj = new AttestationCacm();\n\n $obj->setAutreContrat(\"autreContrat\");\n $this->assertEquals(\"autreContrat\", $obj->getAutreContrat());\n }", "public function set( $atributo = '', $valor ) {\n $this->$atributo = $atributo;\n return $this;\n }", "function setActualizarPlaneacion($fecha, $persona, $credito){\n\t\t$xF\t\t\t\t\t\t= new cFecha();\n\t\t$fecha_esperar_hasta \t= $xF->setRestarDias( DIAS_ESPERA_CREDITO, $fecha );\n\t\t$grupo\t\t\t\t\t= $this->getCodigo();\n\t\t$sqlURec \t\t\t\t= \"UPDATE operaciones_recibos set docto_afectado=$credito WHERE numero_socio=$persona AND tipo_docto=14\t\tAND fecha_operacion>='$fecha_esperar_hasta' \";\n\t\t$sqlUMvto \t\t\t\t= \"UPDATE operaciones_mvtos set docto_afectado=$credito WHERE grupo_asociado=$grupo AND tipo_operacion=112 AND fecha_operacion>='$fecha_esperar_hasta'\";\n\t\tmy_query($sqlURec);\n\t\tmy_query($sqlUMvto);\n\t}", "public function setOrden($orden) {\n $ord = ($orden != 0 && $orden != 1 && $orden != 2) ? 0 : $orden;\n if ($ord != $this->orden) {\n // Si cambia el orden, recarga los datos.\n $fecha = $this->fecha;\n $this->cargarAsistentes($fecha, $ord);\n }\n }", "public function set_view_contato_anunciante(View_Contato_Anunciante $view_contato_anunciante) : void\r\n {\r\n self::$view_contato_anunciante = $view_contato_anunciante;\r\n }", "public function testSetNumeroAttestation() {\n\n $obj = new AttestationCacm();\n\n $obj->setNumeroAttestation(\"numeroAttestation\");\n $this->assertEquals(\"numeroAttestation\", $obj->getNumeroAttestation());\n }", "public function testSetIndemnAutre() {\n\n $obj = new AttestationCacm();\n\n $obj->setIndemnAutre(true);\n $this->assertEquals(true, $obj->getIndemnAutre());\n }", "function usuarios_estados_datos()\n\t{\n\n\t\tparent::objeto();\n\n\t\t$this->tabla=\"usuarios_estados\";\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,\"Estado\",2);\n$this->agregarVariable2($v);\n\n\t}", "function setNuevaCuenta($origen, $subproducto, $socio,\n\t\t\t\t\t\t\t$observaciones = \"\", $credito = 1,\n\t\t\t\t\t\t\t$mancomunado1 = \"\", $mancomunado2 = \"\",\n\t\t\t\t\t\t\t$grupo = false, $fecha_de_alta = false,\n\t\t\t\t\t\t\t$tipo_de_cuenta = CAPTACION_TIPO_VISTA, $tipo_de_titulo = 99, $DiasInvertidos = false,\n\t\t\t\t\t\t\t$tasa = false, $CuentaDeInteres\t= false, $FechaVencimiento = false\n\t\t\t\t\t\t\t){\n\n\n\t\t$xT\t\t\t\t= new cTipos(0);\n\t\t$xF\t\t\t\t= new cFecha();\n\t\t$xLog\t\t\t= new cCoreLog();\n\t\t$socio\t\t\t= setNoMenorQueCero($socio);\n\t\t$ready\t\t\t= true;\n\t\t$tipo_de_cuenta\t= setNoMenorQueCero($tipo_de_cuenta);\n\t\t$tipo_de_titulo\t= setNoMenorQueCero($tipo_de_titulo);\n\t\t$credito\t\t= setNoMenorQueCero($credito);\n\t\t$grupo\t\t\t= setNoMenorQueCero($grupo);\n\t\t$DiasInvertidos\t= setNoMenorQueCero($DiasInvertidos);\n\t\t$tasa\t\t\t= setNoMenorQueCero($tasa, 4);\n\t\t$CuentaDeInteres= setNoMenorQueCero($CuentaDeInteres);\n\t\t$estado\t\t\t= 10;\n\t\t//Corrige el numero de persona\n\t\tif($socio <= DEFAULT_SOCIO AND $this->mSocioTitular > DEFAULT_SOCIO ){\n\t\t\t$xLog->add(\"WARN\\tCAMBIO Persona $socio a \" . $this->mSocioTitular . \"\\r\\n\", $xLog->DEVELOPER);\n\t\t\t$socio\t\t= $this->mSocioTitular;\n\t\t}\n\t\t$xSoc\t\t\t\t= new cSocio($socio);\n\t\tif($xSoc->init() == true){\n\t\t\t//$cuenta\t\t\t= $xSoc->getIDNuevoDocto($tipo_de_cuenta, $subproducto);\n\t\t\t$cuenta\t\t\t= $xSoc->getIDNuevoDocto(iDE_CAPTACION);\n\t\t\t$CuentaDeInteres= $xSoc->getCuentaDeCaptacionPrimaria(CAPTACION_TIPO_VISTA, CAPTACION_PRODUCTO_INTERESES);\n\t\t\tif($grupo == DEFAULT_GRUPO OR $grupo == 0){ $grupo = $xSoc->getClaveDeGrupo(); }\n\t\t} else {\n\t\t\t$xLog->add(\"ERROR\\tAl cargar la Persona $socio\\r\\n\", $xLog->DEVELOPER);\n\t\t\t$ready\t\t\t= false; //el socio existe\n\t\t}\n\t\t$xLog->add($xSoc->getMessages(), $xLog->DEVELOPER);\n\t\t//corrige la Cuenta de Intereses\n\t\t$CuentaDeInteres\t= ($CuentaDeInteres <= 0) ? DEFAULT_CUENTA_CORRIENTE : $CuentaDeInteres;\n\n\t\t$fecha_de_alta\t\t\t= $xF->getFechaISO($fecha_de_alta);\n\t\t$FechaVencimiento\t\t= $xF->getFechaISO($FechaVencimiento);\n\t\tif($tipo_de_cuenta == CAPTACION_TIPO_PLAZO){\n\t\t\t$DiasInvertidos\t\t= ($DiasInvertidos <=0 ) ? $this->mDiasInvertidos : $DiasInvertidos;\n\t\t\t$tasa\t\t\t\t= ($tasa <= 0) ? $this->mTasaInteres : $tasa;\n\t\t\t$FechaVencimiento\t= ($xF->getInt($FechaVencimiento) <= $xF->getInt($fecha_de_alta) ) ? $xF->setSumarDias($DiasInvertidos, $fecha_de_alta) : $FechaVencimiento;\n\t\t\t$estado\t\t\t\t= 20;\n\t\t\t$xLog->add(\"WARN\\tInversion Dias $DiasInvertidos Tasa $tasa Vencimiento $FechaVencimiento\\r\\n\", $xLog->DEVELOPER);\n\t\t\tif($xF->setRestarFechas($FechaVencimiento, $fecha_de_alta) != $DiasInvertidos){\n\t\t\t\t$DiasInvertidos\t= $xF->setRestarFechas($FechaVencimiento, $fecha_de_alta);\n\t\t\t\t$xLog->add(\"WARN\\tCAMBIO Inversion Dias $DiasInvertidos ($FechaVencimiento, $fecha_de_alta)\\r\\n\", $xLog->DEVELOPER);\n\t\t\t}\n\t\t} else {\n\t\t\t$xLog->add(\"WARN\\tVista $socio Producto $tipo_de_cuenta sub-producto $subproducto Origen $origen\\r\\n\", $xLog->DEVELOPER);\n\t\t}\n\t\t\n\t\t$xCta\t\t= new cCaptacion_cuentas();\n\t\t$xCta->cuenta_de_intereses($CuentaDeInteres);\n\t\t$xCta->dias_invertidos($DiasInvertidos);\n\t\t$xCta->eacp(EACP_CLAVE);\n\t\t$xCta->estatus_cuenta($estado);\n\t\t$xCta->fecha_afectacion($fecha_de_alta);\n\t\t$xCta->fecha_apertura($fecha_de_alta);\n\t\t$xCta->fecha_baja($xF->getFechaMaximaOperativa());\n\t\t$xCta->fecha_conciliada($fecha_de_alta);\n\t\t$xCta->idusuario(getUsuarioActual());\n\t\t$xCta->inversion_fecha_vcto($FechaVencimiento);\n\t\t$xCta->inversion_periodo(0);\n\t\t$xCta->minimo_mancomunantes(0);\n\t\t$xCta->nombre_mancomunado1($mancomunado1);\n\t\t$xCta->nombre_mancomunado2($mancomunado2);\n\t\t$xCta->numero_cuenta($cuenta);\n\t\t$xCta->numero_grupo($grupo);\n\t\t$xCta->numero_socio($socio);\n\t\t$xCta->numero_solicitud($credito);\n\t\t$xCta->observacion_cuenta($observaciones);\n\t\t$xCta->oficial_de_captacion(getUsuarioActual());\n\t\t$xCta->origen_cuenta($origen);\n\t\t$xCta->saldo_conciliado(0);\n\t\t$xCta->saldo_cuenta(0);\n\t\t$xCta->sucursal(getSucursal());\n\t\t$xCta->tasa_otorgada($tasa);\n\t\t$xCta->tipo_cuenta($tipo_de_cuenta);\n\t\t$xCta->tipo_titulo($tipo_de_titulo);\n\t\t$xCta->tipo_subproducto($subproducto);\n\t\t$xCta->ultimo_sdpm(0);\n\t\tif($ready == true){ \n\t\t\t$rs \t= $xCta->query()->insert()->save();\n\t\t\t$ready \t= ($rs == false) ? false : true;\n\t\t}\n\t\t//Asignar valores cargados\n\t\tif ( $ready == true) {\n\t\t\t$xLog->add(\"OK\\tSe Agrego Existosamente la Cuenta $cuenta del subproducto $subproducto \\r\\n\");\n\t\t\t$this->mSucess \t\t\t\t= true;\n\t\t\t$this->mSocioTitular\t\t= $socio;\n\t\t\t$this->mGrupoAsociado\t\t= $grupo;\n\t\t\t$this->mCreditoAsoc\t\t\t= $credito;\n\t\t\t$this->mNumeroCuenta\t\t= $cuenta;\n\t\t\t$this->mDiasInvertidos\t\t= $DiasInvertidos;\n\t\t\t$this->mFechaVencimiento\t= $FechaVencimiento;\n\t\t\t$this->mTasaInteres\t\t\t= $tasa;\n\t\t\t$this->mFechaOperacion\t\t= $fecha_de_alta;\n\t\t\t$this->init();\t\n\t\t} else {\n\t\t\t$xLog->add(\"ERROR\\tError al agregar la Cuenta $cuenta del subproducto $subproducto\\r\\n\");\n\t\t\t$this->mSucess \t\t\t\t= false;\n\t\t}\n\t\t//setLog($xLog->getMessages());\n\t\t$this->mMessages\t\t\t\t.= $xLog->getMessages();\n\t\treturn $this->mNumeroCuenta;\n\t}", "public function applyDefaultValues()\n\t{\n\t\t$this->ativo = true;\n\t\t$this->tipo_acesso = 'M';\n\t\t$this->estado_civil = 'O';\n\t\t$this->nivel_acesso = '1';\n\t\t$this->usuario_validado = false;\n\t}", "public function __construct($id_anuncio, $autor, $moroso, $localidad, $descripcion, $fecha)\n {\n $this->id_anuncio = $id_anuncio;\n $this->autor = $autor;\n $this->moroso = $moroso;\n $this->localidad = $localidad;\n $this->descripcion = $descripcion;\n $this->fecha = $fecha;\n }", "public function nova() {\n ob_start();\n session_start();\n $user = unserialize($_SESSION['user']);\n $visao = $this->getVisao(__CLASS__, \"formAtividade\", \"Cadastro de Atividade\");\n $dao = new AtividadeDAO();\n $atividades = $dao->listarPorUser($user->getId_usuario());\n\n $visao->setDado(\"atividades\", $atividades);\n\n $visao->exibir();\n }", "public function setAtocom($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->atocom !== $v) {\n $this->atocom = $v;\n $this->modifiedColumns[AliMemberTableMap::COL_ATOCOM] = true;\n }\n\n return $this;\n }", "public function setComando( $comando, $atributo=null ) {\n $this->comando=$comando;\n $this->atributo=$atributo;\n $this->enviarComando();\n $this->activarPantalla();\n //activa y enviar comando\n }", "public function setDataContratacao($v)\n\t{\n\t\t$dt = PropelDateTime::newInstance($v, null, 'DateTime');\n\t\tif ($this->data_contratacao !== null || $dt !== null) {\n\t\t\t$currentDateAsString = ($this->data_contratacao !== null && $tmpDt = new DateTime($this->data_contratacao)) ? $tmpDt->format('Y-m-d') : null;\n\t\t\t$newDateAsString = $dt ? $dt->format('Y-m-d') : null;\n\t\t\tif ($currentDateAsString !== $newDateAsString) {\n\t\t\t\t$this->data_contratacao = $newDateAsString;\n\t\t\t\t$this->modifiedColumns[] = UsuarioPeer::DATA_CONTRATACAO;\n\t\t\t}\n\t\t} // if either are not null\n\n\t\treturn $this;\n\t}", "public function setAutorizacaoDosServicos(\\ans\\schemes\\CtmAutorizacaoServicoType $autorizacaoDosServicos)\n {\n $this->autorizacaoDosServicos = $autorizacaoDosServicos;\n return $this;\n }", "public function setResaca($resaca){\n $this->resaca=$resaca;\n }", "public function setForAuteur()\n {\n //met à jour les proposition qui n'ont pas de base contrat et qui ne sont pas null\n /*PLUS BESOIN DE BASE CONTRAT\n \t\t$dbP = new Model_DbTable_Iste_proposition();\n \t\t$dbP->update(array(\"base_contrat\"=>null), \"base_contrat=''\");\n */\n\t \t//récupère les vente qui n'ont pas de royalty\n\t \t$sql = \"SELECT \n ac.id_auteurxcontrat, ac.id_livre\n , ac.id_isbn, ac.pc_papier, ac.pc_ebook\n , a.prenom, a.nom, c.type, IFNULL(a.taxe_uk,'oui') taxe_uk\n ,i.num\n , v.id_vente, v.date_vente, v.montant_livre, v.id_boutique, v.type typeVente\n , i.id_editeur, i.type typeISBN\n , impF.conversion_livre_euro\n FROM iste_vente v\n INNER JOIN iste_isbn i ON v.id_isbn = i.id_isbn \n INNER JOIN iste_importdata impD ON impD.id_importdata = v.id_importdata\n INNER JOIN iste_importfic impF ON impF.id_importfic = impD.id_importfic\n INNER JOIN iste_auteurxcontrat ac ON ac.id_isbn = v.id_isbn\n INNER JOIN iste_contrat c ON c.id_contrat = ac.id_contrat\n INNER JOIN iste_auteur a ON a.id_auteur = ac.id_auteur\n INNER JOIN iste_livre l ON l.id_livre = i.id_livre \n LEFT JOIN iste_royalty r ON r.id_vente = v.id_vente AND r.id_auteurxcontrat = ac.id_auteurxcontrat\n WHERE pc_papier is not null AND pc_ebook is not null AND pc_papier != 0 AND pc_ebook != 0\n AND r.id_royalty is null \";\n\n $stmt = $this->_db->query($sql);\n \n \t\t$rs = $stmt->fetchAll(); \n \t\t$arrResult = array();\n \t\tforeach ($rs as $r) {\n\t\t\t//calcule les royalties\n \t\t\t//$mtE = floatval($r[\"montant_euro\"]) / intval($r[\"nbA\"]);\n \t\t\t//$mtE *= floatval($r[\"pc_papier\"])/100;\n \t\t\tif($r[\"typeVente\"]==\"ebook\")$pc = $r[\"pc_ebook\"];\n \t\t\telse $pc = $r[\"pc_papier\"];\n $mtL = floatval($r[\"montant_livre\"])*floatval($pc)/100;\n //ATTENTION le taux de conversion est passé en paramètre à l'import et le montant des ventes est calculé à ce moment\n \t\t\t//$mtD = $mtL*floatval($r[\"taux_livre_dollar\"]);\n \t\t\t$mtE = $mtL*floatval($r['conversion_livre_euro']);\n //ajoute les royalties pour l'auteur et la vente\n //ATTENTION les taxes de déduction sont calculer lors de l'édition avec le taux de l'année en cours\n $dt = array(\"pourcentage\"=>$pc,\"id_vente\"=>$r[\"id_vente\"]\n ,\"id_auteurxcontrat\"=>$r[\"id_auteurxcontrat\"],\"montant_euro\"=>$mtE,\"montant_livre\"=>$mtL\n ,\"conversion_livre_euro\"=>$r['conversion_livre_euro']);\n\t \t\t$arrResult[]= $this->ajouter($dt\n ,true,true);\n //print_r($dt);\n \t\t}\n \t\t\n \t\treturn $arrResult;\n }", "public function setObservacion($Observacion)\r\n {\r\n $this->Observacion = $Observacion;\r\n\r\n return $this;\r\n }", "function editAuto(){\r\n\t\t$this->procedimiento='vef.ft_formula_v2_ime';\r\n\t\t$this->transaccion='VF_COAUTO_IME';\r\n\t\t$this->tipo_procedimiento='IME';\r\n\r\n\t\t//Define los parametros para la funcion\r\n\t\t$this->setParametro('id_formula','id_formula','int4');\r\n\t\t$this->setParametro('sw_autorizacion','sw_autorizacion','varchar');\r\n\t\t$this->setParametro('regionales','regionales','varchar');\r\n\t\t$this->setParametro('nivel_permiso','nivel_permiso','varchar');\r\n\r\n\t\t//Ejecuta la instruccion\r\n\t\t$this->armarConsulta();\r\n\t\t$this->ejecutarConsulta();\r\n\r\n\t\t//Devuelve la respuesta\r\n\t\treturn $this->respuesta;\r\n\t}", "public function setActivo($activo)\n {\n $this->activo = $activo;\n\n return $this;\n }", "function cilien_autoriser(){}", "public function setPrejuizos_Acumulados($object){\n\t\tif($object->getrelacao_cr_db()->getCr() == '2.3.3.02') {\n\t\t\t$this->Prejuizos_Acumulados -= $object->getvalor();\n\t\t}\n\t\t\n\t\t// Debita no prejuizos acumulados.\n\t\tif($object->getrelacao_cr_db()->getDb() == '2.3.3.02') {\n\t\t\t$this->Prejuizos_Acumulados += $object->getvalor();\n\t\t}\n\t}", "public function autoriza(Request $request)\n {\n $this->inicializa();\n // obtiene el token del metodo de pago\n $payload = $request->input('payload', false);\n $valor = $request->input('valor', '12');\n $nonce = $payload['nonce'];\n\n $this->creaCliente();\n \n $status=$this->primerPago($nonce,$valor);\n \n $this->guardarPago($status);\n \n return response()->json($status);\n }", "public function actualizaEstado(){\n $this->estado = 'Completo';\n // $this->cotiza = $this->generarCustomID();\n $this->save();\n }", "public function atualizar(){\r\n return (new Database('atividades'))->update('id = '.$this->id,[\r\n 'titulo' => $this->titulo,\r\n 'descricao' => $this->descricao,\r\n 'ativo' => $this->ativo,\r\n 'data' => $this->data\r\n ]);\r\n }", "function evt__form_asignacion__aceptar ($datos){\n print_r($this->s__accion);\n switch($this->s__accion){\n case \"Vinculo\" : $this->procesar_vinculo($datos);break;\n case \"Registrar\" : $this->procesar_carga($datos); break;\n case \"Borrar\" : $this->procesar_delete($datos); break;\n case \"Editar\" : $this->procesar_edicion($datos); break;\n case \"Cambiar\" : $this->procesar_cambio($datos); break;\n case \"Confirmar\" : $this->procesar_confirmacion($datos); break;\n default : toba::notificacion()->agregar(\"La variable accion esta vacia!\", 'error'); break;\n }\n \n }", "public function atualizar($oficina){\r\n\t\t$sql = 'UPDATE oficina SET id = :id, nome = :nome, data = :data, carga_horaria = :carga_horaria, horario = :horario, id_evento = :id_evento, tipo = :tipo, vagas = :vagas WHERE id = :id';\r\n\t\t$consulta = $conexao->prepare($sql);\r\n\t\t$consulta->bindValue(':id',$oficina->getId()); \n\r\t\t$consulta->bindValue(':nome',$oficina->getNome()); \n\r\t\t$consulta->bindValue(':data',$oficina->getData()); \n\r\t\t$consulta->bindValue(':carga_horaria',$oficina->getCarga_horaria()); \n\r\t\t$consulta->bindValue(':horario',$oficina->getHorario()); \n\r\t\t$consulta->bindValue(':id_evento',$oficina->getId_evento()); \n\r\t\t$consulta->bindValue(':tipo',$oficina->getTipo()); \n\r\t\t$consulta->bindValue(':vagas',$oficina->getVagas()); \r\n\t\t$consulta->execute();\r\n\t}", "public function __construct(){\n$this->acId = \"\";\n$this->acNombre = \"\";\n$this->acId_estado = \"\";\n}", "private function camposObligatorios()\n {\n $this->setRequiredField(\"mascara\");\n $this->setRequiredField(\"etiqueta\");\n/*\n $this->setRequiredField(\"id_padre\");\n*/\n $this->setRequiredField(\"posicion\");\n $this->setRequiredField(\"visible\");\n $this->setRequiredField(\"nivel_acceso\");\n/*\n $this->setRequiredField(\"accion\");\n*/\n\n return;\n }", "public function aprova()\n {\n $this -> estadoAtual -> aprova($this);\n }", "public function atualizar($cliente){\r\n\t\tinclude(\"../config/conexao.php\");\r\n\t\t$sql = 'UPDATE cliente SET n_casa = :n_casa, rua = :rua, bairro = :bairro, cidade = :cidade, estado = :estado, pais = :pais, cep = :cep, data_nasc = :data_nasc, nome = :nome, tel_celular = :tel_celular, tel_fixo = :tel_fixo, email = :email WHERE cod = :cod';\r\n\t\t$consulta = $pdo->prepare($sql);\r\n\t\t$consulta->bindValue(':cod',$cliente->getCod()); \r\n\t\t$consulta->bindValue(':n_casa',$cliente->getN_casa()); \r\n\t\t$consulta->bindValue(':rua',$cliente->getRua()); \r\n\t\t$consulta->bindValue(':bairro',$cliente->getBairro()); \r\n\t\t$consulta->bindValue(':cidade',$cliente->getCidade()); \r\n\t\t$consulta->bindValue(':estado',$cliente->getEstado()); \r\n\t\t$consulta->bindValue(':pais',$cliente->getPais()); \r\n\t\t$consulta->bindValue(':cep',$cliente->getCep()); \r\n\t\t$consulta->bindValue(':data_nasc',$cliente->getData_nasc()); \r\n\t\t$consulta->bindValue(':nome',$cliente->getNome()); \r\n\t\t$consulta->bindValue(':tel_celular',$cliente->getTel_celular()); \r\n\t\t$consulta->bindValue(':tel_fixo',$cliente->getTel_fixo()); \r\n\t\t$consulta->bindValue(':email',$cliente->getEmail()); \r\n\t\tif($consulta->execute())\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "private function setCodigoOrdem($iCodigoOrdem){\n $this->iCodigoOrdem = $iCodigoOrdem;\n }", "public function setIdUsuario($n)\n {\n $this->c_id_usuario = $n;\n }", "function setTipo_acta($itipo_acta = '')\n {\n $this->itipo_acta = $itipo_acta;\n }", "public function setEditais($editais)\n {\n if (!is_null($editais))\n $this->editais = $editais;\n }", "function FotografiaControl(){\n\t\t$this->acceso=new AccesoDatos();\n\t}", "function habilitarContrato(){\n $this->procedimiento = 'adq.f_cotizacion_ime';\n $this->transaccion = 'ADQ_HABCONT_IME';\n $this->tipo_procedimiento='IME';\n \n //Define los parametros para la funcion\n $this->setParametro('id_cotizacion','id_cotizacion','int4');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "public function setDataCadastro($v)\n\t{\n\t\t$dt = PropelDateTime::newInstance($v, null, 'DateTime');\n\t\tif ($this->data_cadastro !== null || $dt !== null) {\n\t\t\t$currentDateAsString = ($this->data_cadastro !== null && $tmpDt = new DateTime($this->data_cadastro)) ? $tmpDt->format('Y-m-d H:i:s') : null;\n\t\t\t$newDateAsString = $dt ? $dt->format('Y-m-d H:i:s') : null;\n\t\t\tif ($currentDateAsString !== $newDateAsString) {\n\t\t\t\t$this->data_cadastro = $newDateAsString;\n\t\t\t\t$this->modifiedColumns[] = UsuarioPeer::DATA_CADASTRO;\n\t\t\t}\n\t\t} // if either are not null\n\n\t\treturn $this;\n\t}", "function date_modif_manuelle_autoriser() {\n}", "public function activarUsuario() {\n\t\t$this->id_status = self::STATUS_ACTIVED;\n\t\treturn $this->save () ? $this : null;\n\t}", "private function setAccommodations()\n {\n // Localise stuff\n $con = $this->con;\n $ownerId = $this->id;\n\n // Get the accom id from db and create new accom objects\n $stmt = $con->prepare(\"SELECT \" . Accommodation::ID_COLUMN . \" FROM \" . Accommodation::TABLE_NAME . \" WHERE \" . Accommodation::FOREIGN_KEY_COLUMN . \" = $ownerId \");\n try\n {\n if(!$stmt->execute())\n {\n throw new Exception(\"Error getting accommodations for owner $ownerId\", 1);\n }\n $stmt->bindColumn(1, $accId);\n $accommodations = array();\n // Loop through every accommodation\n while($stmt->fetch())\n {\n $acc = new Accommodation($con, 'get', array('id' => $accId));\n if($acc->getError())\n {\n $this->errorMsg .= \" Error with accommodation $accId: \" . $acc->getError();\n continue;\n }\n array_push($accommodations, $acc);\n }\n // Set accom\n $this->accommodations = $accommodations;\n }// try\n catch(Exception $e)\n {\n $this->errorMsg = $e->getMessage();\n }\n }", "public function setEduardoCreate($datos)\n {\n $this->fijarValores($datos);\n $this->guardar();\n $val = $this->lastId();\n return $val;\n }", "public function applyDefaultValues()\n\t{\n\t\t$this->st_usuario = true;\n\t}", "public function setIdUsuarioAcalificar($idUsuarioAcalificar)\n {\n $this->idUsuarioAcalificar = $idUsuarioAcalificar;\n\n return $this;\n }", "public function __construct(){\n$this->acCodigo_area = \"\";\n$this->acCodificacion = \"\";\n$this->acUbicacion = \"\";\n}", "public function editar() {\n\t\t$POST = array();\n\n\t\t\t##apagando indice de tokenrequest pois ele não existe na tabela de categorias\n\t\tunset($this->request->data['TokenRequest']);\t\n\n\t\t$POST = array('UsuarioCliente'=>$this->request->data);\t\n\t\tif ($this->UsuarioCliente->save($POST)) \n\t\t{\n\t\t\t$this->Message = 'Usuario editado com sucesso';\n\t\t\t$this->Return = true;\t\n\t\t} \n\n\t\telse \n\t\t{\n\t\t\t$this->Message = 'Ocorreu um erro na edição de seu Usuario.';\n\t\t\t$this->Return = false;\t\n\t\t}\n\n\t\t$this->EncodeReturn();\t\n\t}", "public function creating(AreaConhecimento $area_conhecimento)\n {\n $area_conhecimento->ativo = $area_conhecimento->ativo ?? 0;\n }", "function conf__cuadro (toba_ei_cuadro $cuadro){\n if(isset($this->s__where)){\n $cuadro->descolapsar();\n $fecha=date('Y-m-d');\n $anio_lectivo=date('Y');\n $periodos=$this->dep('datos')->tabla('periodo')->get_periodo_calendario($fecha, $anio_lectivo);\n $cuadro->set_datos($this->procesar_periodo($periodos, \"hr\"));\n $cuadro->set_titulo(\"Listado de asignaciones\");\n }\n else{\n $cuadro->colapsar();\n }\n }", "public function actualizar_estado() {\n }", "public function setDiaAsignado($data)\n {\n\n if ($this->_diaAsignado != $data) {\n $this->_logChange('diaAsignado');\n }\n\n if ($data instanceof \\Zend_Db_Expr) {\n $this->_diaAsignado = $data;\n } else if (!is_null($data)) {\n $this->_diaAsignado = (string) $data;\n } else {\n $this->_diaAsignado = $data;\n }\n return $this;\n }", "public function setOperador($operador)\r\n {\r\n // $this->_myParameters = $myParameters;\r\n $this->_OPERADOR = $operador;\r\n \t//$this->_OPERADOR='1';\r\n \t//Zend_Registry::get('logger')->log(\"testeddd\", Zend_Log::INFO);\r\n \t$projeto= new Application_Model_DbTable_Projeto();\r\n \t//$this->_PROJETOS=$projeto->getProjetoCombo() ;\r\n \t$this->_PROJETOS=$projeto->getProjetosOperadorPermissao($operador);\r\n \t\r\n }", "public function __construct(){\n $this->idade = 10;\n }", "public function setAuthorizationElement();", "function setIdCliente($id_cliente)\r\n\t {\r\n\t\t $this->id_cliente = $id_cliente;\r\n\t }", "public function setIdUsuario($idUsuario){\n $this->idUsuario = $idUsuario;\n }", "public function inserir_anuncio(){\n if(!isset($_SESSION))session_start();\n\n $cliente = unserialize($_SESSION['cliente']);\n\n $id_veiculo = $_POST['cb_veiculos'];\n $data_inicial = $_POST['data_inicial'];\n $data_final = $_POST['data_final'];\n $hora_inicial = $_POST['hora_inicial'];\n $hora_final = $_POST['hora_final'];\n $descricao = $_POST['descricao'];\n $valor_hora = $_POST['valor_hora'];\n $id_cliente = $cliente->getId();\n\n $anuncio = new Anuncio();\n $anuncio->setDescricao($descricao)\n ->setIdClienteLocador($id_cliente)\n ->setIdVeiculo($id_veiculo)\n ->setHorarioInicio($hora_inicial)\n ->setHorarioTermino($hora_final)\n ->setDataInicial($data_inicial)\n ->setDataFinal($data_final)\n ->setValor($valor_hora);\n\n\n $this->anunciosDAO->insert($anuncio);\n\n }", "public function setUsuario( $usuario ){\n\t\t \t$this->usuario = $usuario;\n\t\t }", "function __set($modelo, $valor)\n\t{\n\t\t$this->modelo = $modelo;\n\t}", "public function updating(AreaConhecimento $area_conhecimento)\n {\n $area_conhecimento->ativo = $area_conhecimento->ativo ?? 0;\n }", "public function edita()\n\t {\t\n\t\t$car=$_REQUEST['car'];\n\t\t$per=$_REQUEST['per'];\n\t\t$logi=$_REQUEST['logi'];\n\t\t$pas=$_REQUEST['pas'];\n\t\t$obs=$_REQUEST['obs'];\n\t\t$est=$_REQUEST['est'];\n\t\t\t//$usu=$_REQUEST['usu'];\n\t\t$user_data=array();\n\t\t$user_data['carnet']=$car;\n\t\t$user_data['login']=$logi;\n\t\t$user_data['password']=$pas;\n\t\t$user_data['estado']=$est;\n\t\t$user_data['observacion']=$obs;\n\t\t$user_data['perfil']=$per;\n\t\t\n\t\t//print_r($user_data);\n\t\t$usuario=new Usuarios;\n\t\t$usuario->edit($user_data);\n\t\t$data1=$usuario->lista();\n\t\t$this->principal();\n\t }", "public function setIdAluno($id_aluno)\n {\n $this->id_aluno = $id_aluno;\n\n return $this;\n }", "public function setDataNascimento($v)\n\t{\n\t\t$dt = PropelDateTime::newInstance($v, null, 'DateTime');\n\t\tif ($this->data_nascimento !== null || $dt !== null) {\n\t\t\t$currentDateAsString = ($this->data_nascimento !== null && $tmpDt = new DateTime($this->data_nascimento)) ? $tmpDt->format('Y-m-d') : null;\n\t\t\t$newDateAsString = $dt ? $dt->format('Y-m-d') : null;\n\t\t\tif ($currentDateAsString !== $newDateAsString) {\n\t\t\t\t$this->data_nascimento = $newDateAsString;\n\t\t\t\t$this->modifiedColumns[] = UsuarioPeer::DATA_NASCIMENTO;\n\t\t\t}\n\t\t} // if either are not null\n\n\t\treturn $this;\n\t}", "public function saveUsuario(){\n\t\t$conexion = new Database();\n if ($this->codigo){\n $query = sprintf('UPDATE agenda_usuario SET usuario = \"%s\" password = \"%s\" WHERE usuario_id = %d',\n $this->usuario,\n $this->password,\n $this->codigo);\n $rows = $conexion->exec( $query );\n }\n else{\n $query = sprintf('INSERT INTO agenda_usuario ( usuario, password) VALUES (\"%s\", \"%s\")',\n $this->usuario,\n $this->password );\n\t\t\t$rows = $conexion->exec( $query );\n $this->codigo = $conexion->lastInsertId();\n }\n }", "function setAgregarUnPais(){\n\t\t$this->comienza_con++;\n\t}", "public function setNascimentoCliente($ano) {\n\t\t$this->checkoutTransparente['cartao']['creditCardHolderBirthDate'] = $ano;\n\t\treturn $this;\n\t}", "function actualizar_autor($id_autor,$nombre,$empresa_institucion,$web_autor,$email) {\n\n\t\t$UpdateRecords = \"UPDATE autores SET autor='$nombre', empresa_institucion='$empresa_institucion', web_autor='$web_autor', email_autor='$email'\n\t\tWHERE id_autor='$id_autor'\";\n $connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($UpdateRecords);\n\t\tmysql_close($connection);\n\t}", "public function setCusto($custo) {\n $this->custo = $custo;\n }", "function modificarSolicitudObligacionPago()\r\n {\r\n $this->procedimiento = 'tes.ft_solicitud_obligacion_pago_ime';\r\n $this->transaccion = 'TES_SOOBPG_MOD';\r\n $this->tipo_procedimiento = 'IME';\r\n\r\n //Define los parametros para la funcion\r\n $this->setParametro('id_obligacion_pago', 'id_obligacion_pago', 'int4');\r\n $this->setParametro('id_proveedor', 'id_proveedor', 'int4');\r\n $this->setParametro('tipo_obligacion', 'tipo_obligacion', 'varchar');\r\n $this->setParametro('id_moneda', 'id_moneda', 'int4');\r\n $this->setParametro('obs', 'obs', 'varchar');\r\n $this->setParametro('porc_retgar', 'porc_retgar', 'numeric');\r\n $this->setParametro('id_subsistema', 'id_subsistema', 'int4');\r\n $this->setParametro('id_funcionario', 'id_funcionario', 'int4');\r\n $this->setParametro('porc_anticipo', 'porc_anticipo', 'numeric');\r\n $this->setParametro('fecha', 'fecha', 'date');\r\n $this->setParametro('id_depto', 'id_depto', 'int4');\r\n $this->setParametro('tipo_cambio_conv', 'tipo_cambio_conv', 'numeric');\r\n $this->setParametro('pago_variable', 'pago_variable', 'varchar');\r\n\r\n $this->setParametro('total_nro_cuota', 'total_nro_cuota', 'int4');\r\n $this->setParametro('fecha_pp_ini', 'fecha_pp_ini', 'date');\r\n $this->setParametro('rotacion', 'rotacion', 'int4');\r\n $this->setParametro('id_plantilla', 'id_plantilla', 'int4');\r\n\r\n $this->setParametro('tipo_anticipo', 'tipo_anticipo', 'varchar');\r\n $this->setParametro('id_contrato', 'id_contrato', 'int4');\r\n\r\n //$this->setParametro('id_funcionario_responsable','id_funcionario_responsable','int4');\r\n\r\n\r\n //Ejecuta la instruccion\r\n $this->armarConsulta();\r\n $this->ejecutarConsulta();\r\n\r\n //Devuelve la respuesta\r\n return $this->respuesta;\r\n }", "public function setObservacao($observacao)\n {\n $this->observacao = $observacao;\n\n return $this;\n }", "public function adicionaraluno() {\n\t\t/* Carrega o modelo */\n\t\t$this->load->model('cursos_model');\n\n\t\t// Maximo de Cursos\n\t\t$intMax = 20;\n\t\t//Recebendo a listagem de alunos\n\t\t$objCursos = $this->cursos_model->listar($intMax, 0);\n\n\t\tself::header();\n\t\t$this->load->view('administracao/adicionaraluno', array(\"objCursos\" => $objCursos));\n\t\tself::footer();\n\t}", "public function setOrden($ord) {\n $orden = ($ord != 1 && $ord != 2) ? 0 : $ord;\n if ($orden != $this->orden) {\n $this->cargarPersonas($orden);\n }\n }", "public function setApodo($apodo)\n {\n $this->apodo = $apodo;\n\n return $this;\n }", "function evt__form_persona__alta ($datos){\n \n $this->dep('datos')->tabla('persona')->nueva_fila($datos);\n $this->dep('datos')->tabla('persona')->sincronizar();\n \n if(strcmp($datos['tipo'], 'Docente')==0){\n $docente=array(\n 'nro_doc' => $datos['nro_doc'],\n 'tipo_doc' => $datos['tipo_doc'],\n 'legajo' => $datos['legajo'],\n 'titulo' => $datos['titulo']\n );\n $this->dep('datos')->tabla('docente')->nueva_fila($docente);\n $this->dep('datos')->tabla('docente')->sincronizar();\n \n }\n \n $this->s__nro_doc=$datos['nro_doc'];\n $this->s__tipo_doc=$datos['tipo_doc'];\n $this->s__nombre=$datos['nombre'];\n $this->s__apellido=$datos['apellido'];\n $this->set_pantalla('pant_asignacion');\n }", "public function edit(Avaliacao $avaliacao)\n {\n //\n }" ]
[ "0.61293983", "0.60429966", "0.57300586", "0.56411153", "0.56100005", "0.5594401", "0.5588765", "0.5562215", "0.55596477", "0.55418444", "0.55403554", "0.5539124", "0.55029655", "0.5472833", "0.54647994", "0.545957", "0.54375345", "0.54313296", "0.54254663", "0.53807145", "0.53807145", "0.53807145", "0.5357135", "0.5355987", "0.53410685", "0.53409636", "0.53398484", "0.5339738", "0.53263927", "0.5321483", "0.53112906", "0.5295213", "0.5284774", "0.52688104", "0.52617705", "0.5257286", "0.5250635", "0.5244869", "0.5238763", "0.52264446", "0.5214276", "0.5210018", "0.5202272", "0.5195831", "0.5192548", "0.51869065", "0.5180487", "0.5179347", "0.5177133", "0.517468", "0.51686203", "0.5164884", "0.51588976", "0.5154309", "0.5143085", "0.5140461", "0.51349646", "0.5128647", "0.5112183", "0.51113904", "0.51088274", "0.51075244", "0.5102904", "0.5100008", "0.5098172", "0.50935173", "0.5076499", "0.5073751", "0.50659245", "0.50604844", "0.50599396", "0.50541824", "0.5052401", "0.5051016", "0.50393254", "0.50306886", "0.5030367", "0.50242966", "0.5023986", "0.5023543", "0.5012199", "0.50109994", "0.50023973", "0.49909484", "0.498715", "0.49816862", "0.49708223", "0.4970373", "0.49688068", "0.49662426", "0.4964094", "0.4957325", "0.4946444", "0.49369827", "0.4935252", "0.4933751", "0.4930602", "0.49281377", "0.49198493", "0.49139863" ]
0.71633023
0
/ Plugin Name: Custom Cornerstone Elements Plugin URI: Description: A Wordpress Plugin that registers new custom elements for Cornerstone editor Elements included: Extended Accordion, Feature Box Author: lucastobrazil Author URI: Version: 0.1.1 Notes: Instead of making the one plugin = one CS element, I wanted to make one single plugin that houses all the custom elements I design, so it's more like a library. For this example, the client's initials are "SI", so the naming is prefixed with "SI". Taken from the Cornerstone documentation
function loadCustomElements() { define( 'EXTENSION_PATH', plugin_dir_path( __FILE__ ) ); define( 'EXTENSION_URL', plugin_dir_url( __FILE__ ) ); define( 'ELEMENTS_URL', EXTENSION_URL . '/includes/' ); $elements = array( 'SI_Feature_Box' => array( 'name' => 'si-feature-box', 'directory' => 'si-feature-box', ), 'SI_Extended_Accordion' => array( 'name' => 'si-extended-accordion', 'directory' => 'si-extended-accordion', ), 'SI_Extended_Accordion_Item' => array( 'name' => 'si-extended-accordion-item', 'directory' => 'si-extended-accordion/si-extended-accordion-item', ), 'SI_Image_Rollover' => array( 'name' => 'si-image-rollover', 'directory' => 'si-image-rollover', ), 'SI_Customer_Rollover' => array( 'name' => 'si-customer-rollover', 'directory' => 'si-customer-rollover', ), 'SI_Vimeo_Video' => array( 'name' => 'si-vimeo-video', 'directory' => 'si-vimeo-video', ), 'SI_Lightbox_Image' => array( 'name' => 'si-lightbox-image', 'directory' => 'si-lightbox-image', ), 'SI_RSS_Reader' => array( 'name' => 'si-rss-reader', 'directory' => 'si-rss-reader', ), 'SI_Customer_Box' => array( 'name' => 'si-customer-box', 'directory' => 'si-customer-box', ) ); /* Register Elements */ add_action( 'cornerstone_register_elements', function() use ( $elements ) { foreach ($elements as $key => $value) { $className = $key; $name = $value['name']; $directory = $value['directory']; /* see cornerstone/includes/utility/api.php */ cornerstone_register_element( $className, $name, EXTENSION_PATH . 'includes/' . $directory ); } }); /* Enqueue JS and CSS for Elements */ add_action( 'wp_enqueue_scripts', function() use ( $elements ) { foreach ($elements as $key => $value) { $title = $key; $name = $value['name']; $directory = $value['directory']; $cssFilePath = EXTENSION_PATH . 'includes/' . $directory . '/styles/element.css'; $cssFileUrl = EXTENSION_URL . 'includes/' . $directory . '/styles/element.css'; $jsFilePath = EXTENSION_PATH . 'includes/' . $directory . '/scripts/element.js'; $jsFileUrl = EXTENSION_URL . 'includes/' . $directory . '/scripts/element.js'; if(file_exists($cssFilePath)) { wp_enqueue_style( $name . '-style', $cssFileUrl, array(), '0.1.1' ); } if(file_exists($jsFilePath)) { wp_enqueue_script( $name . '-script', $jsFileUrl, array(), '0.1.0' ); } } }); add_filter( 'cornerstone_icon_map', 'si_custom_elements_icon_map' ); /* Mapping of SVG icon so when you're searching in CS Elements, it has a nice graphic. */ function si_custom_elements_icon_map( $icon_map ) { $icon_map['si_custom_elements'] = EXTENSION_URL . '/assets/svg/icons.svg'; return $icon_map; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function plugin_version_itilcategorygroups() {\n return array('name' => __('ItilCategory Groups', 'itilcategorygroups'),\n 'version' => '0.90+1.0.3',\n 'author' => \"<a href='http://www.teclib.com'>TECLIB'</a>\",\n 'homepage' => 'http://www.teclib.com');\n}", "function wpaddons_shortcode( $atts ) {\n\n\t// Register and enqueues styles\n\tadd_action( 'wp_enqueue_scripts', array( 'WP_Addons_IO', 'enqueue_styles' ) );\n\n\t$atts = shortcode_atts(\n\t\tarray(\n\t\t\t'debug_mode' => 0,\n\t\t\t'plugin' => '',\n\t\t\t'view' => 'cover-grid-third',\n\t\t),\n\t\t$atts,\n\t\t'wpaddons'\n\t);\n\n\t// Load wpAddons SDK\n\t//require_once plugin_dir_path( __FILE__ ) . '/wpaddons-io-sdk/wpaddons-io-sdk.php';\n\n\t// Set addon parameters\n\t$plugin_data = array(\n\t\t'parant_plugin_slug' => $atts['plugin'],\n\t\t'view' => plugin_dir_path( __FILE__ ) . 'wpaddons-io-sdk/view/' . $atts['view'] . '.php',\n\t);\n\n\t// Initiate addons\n\tnew WP_Addons_IO( $plugin_data );\n\n}", "function skudo_register_required_plugins() {\n\t\n\t\t$plugins = array(\n\t\t\t\n\t\t\tarray(\n\t\t\t\t'name' => 'Contact Form 7',\n\t\t\t\t'slug' => 'contact-form-7',\n\t\t\t\t'required' => true,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'Widget Importer & Exporter',\n\t\t\t\t'slug' => 'widget-importer-exporter',\n\t\t\t\t'required' => false,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'Really Simple CAPTCHA',\n\t\t\t\t'slug' => 'really-simple-captcha',\n\t\t\t\t'required' => false,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'WPBakery Visual Composer',\n\t\t\t\t'slug' => 'js_composer',\n\t\t\t\t'source' => 'http://demos.upperthemes.com/plugins/skudo/js_composer.zip',\n\t\t\t\t'required' => true,\n\t\t\t\t'version' => '6.2.0'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' \t=> 'Revolution Slider',\n\t\t\t\t'slug' \t \t=> 'revslider',\n\t\t\t\t'source' => 'http://demos.upperthemes.com/plugins/skudo/revslider.zip',\n\t\t\t\t'required' \t=> true,\n\t\t\t\t'version' => '6.2.15'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => 'Ultimate Addons for Visual Composer',\n\t\t\t\t'slug' => 'Ultimate_VC_Addons',\n\t\t\t\t'source' => 'http://demos.upperthemes.com/plugins/skudo/Ultimate_VC_Addons.zip',\n\t\t\t\t'required' => true,\n\t\t\t\t'version' => '3.19.4'\n\t\t\t),\n\t\t\t\n\t\t\tarray(\n\t\t\t\t'name' \t=> 'Skudo Custom Post Types',\n\t\t\t\t'slug' \t \t=> 'skudo_custom_post_types',\n\t\t\t\t'source' => 'http://demos.upperthemes.com/plugins/skudo/skudo_custom_post_types.zip',\n\t\t\t\t'required' \t=> true,\n\t\t\t\t'version' => '2.3'\n\t\t\t),\n\t\t\t\n\t\t\tarray(\n\t\t\t\t'name' => 'Cube Portfolio',\n\t\t\t\t'slug' => 'cubeportfolio',\n\t\t\t\t'source' => 'http://demos.upperthemes.com/plugins/skudo/cubeportfolio.zip',\n\t\t\t\t'required' => true,\n\t\t\t\t'version' => '4.0'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' \t=> 'Envato Market',\n\t\t\t\t'slug' \t \t=> 'envato-market',\n\t\t\t\t'source' => 'http://demos.upperthemes.com/plugins/skudo/envato-market.zip',\n\t\t\t\t'required' \t=> true,\n\t\t\t\t'version' => '2.0.3'\n\t\t\t),\n\t\t\t\n\t\t\tarray(\n\t\t\t\t'name' => 'LayerSlider WP',\n\t\t\t\t'slug' => 'LayerSlider',\n\t\t\t\t'source' => 'http://demos.upperthemes.com/plugins/skudo/LayerSlider.zip',\n\t\t\t\t'required' => false,\n\t\t\t\t'version' => '6.9.2'\n\t\t\t)\n\t\t\t\n\t\t);\n\t\n\t\t// Change this to your theme text domain, used for internationalising strings\n\t\t$config = array(\n\t\t\t'domain' \t\t=> 'skudo', \t// Text domain - likely want to be the same as your theme.\n\t\t\t'default_path' \t\t=> '',\n\t\t\t'parent_slug' => 'themes.php', \t\t\t// Parent menu slug.\n\t\t\t'menu' \t\t=> 'install-required-plugins', \t// Menu slug\n\t\t\t'has_notices' \t=> true, \t// Show admin notices or not\n\t\t\t'is_automatic' \t=> false,\t\t\t\t\t \t// Automatically activate plugins after installation or not\n\t\t\t'message' \t\t\t=> '',\t\t\t\t\t\t\t// Message to output right before the plugins table\n\t\t\t'strings' \t\t=> array(\n\t\t\t\t'page_title' \t\t\t=> esc_html__( 'Install Required Plugins', 'skudo' ),\n\t\t\t\t'menu_title' \t\t\t=> esc_html__( 'Install Plugins', 'skudo' ),\n\t\t\t\t'installing' \t\t\t=> esc_html__( 'Installing Plugin: %s', 'skudo' ), // %1$s = plugin name\n\t\t\t\t'oops' \t\t\t=> esc_html__( 'Something went wrong with the plugin API.', 'skudo' ),\n\t\t\t\t'notice_can_install_required' \t\t\t=> _n_noop( 'This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.', 'skudo' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_install_recommended'\t\t\t=> _n_noop( 'This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.', 'skudo' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_install' \t\t\t\t\t=> _n_noop( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.', 'skudo' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_activate_required' \t\t\t=> _n_noop( 'The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.', 'skudo' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_activate_recommended'\t\t\t=> _n_noop( 'The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.', 'skudo' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_activate' \t\t\t\t\t=> _n_noop( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.', 'skudo' ), // %1$s = plugin name(s)\n\t\t\t'notice_ask_to_update' \t\t\t\t\t\t=> _n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.', 'skudo' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_update' \t\t\t\t\t\t=> _n_noop( 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.', 'skudo' ), // %1$s = plugin name(s)\n\t\t\t\t'install_link' \t\t\t\t\t \t\t\t=> _n_noop( 'Begin installing plugin', 'Begin installing plugins', 'skudo' ),\n\t\t\t\t'activate_link' \t\t\t\t \t\t\t=> _n_noop( 'Activate installed plugin', 'Activate installed plugins', 'skudo' ),\n\t\t\t\t'return' \t\t\t=> esc_html__( 'Return to Required Plugins Installer', 'skudo' ),\n\t\t\t\t'plugin_activated' \t\t\t=> esc_html__( 'Plugin activated successfully.', 'skudo' ),\n\t\t\t\t'complete' \t\t\t\t\t\t\t\t\t=> esc_html__( 'All plugins installed and activated successfully. %s', 'skudo' ), // %1$s = dashboard link\n\t\t\t\t'nag_type'\t\t\t\t\t\t\t\t\t=> 'updated' // Determines admin notice type - can only be 'updated' or 'error'\n\t\t\t)\n\t\t);\n\t\n\t\ttgmpa( $plugins, $config );\n\t\n\t}", "function aione_register_required_plugins() {\n\t/**\n\t * Array of plugin arrays. Required keys are name and slug.\n\t * If the source is NOT from the .org repo, then source is also required.\n\t */\n\t$plugins = array(\n\t\tarray(\n\t\t\t'name' => 'Oxo Core',\n\t\t\t'slug' => 'oxo-core',\n\t\t\t'source' => get_template_directory() . '/framework/plugins/oxo-core.zip',\n\t\t\t'required' => true,\n\t\t\t'version' => '1.8.3',\n\t\t\t'force_activation' => false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' => '',\n\t\t\t'image_url' => Aione()->get_framework_dir() . '/assets/images/oxo_core.png',\n\t\t),\n\t\tarray(\n\t\t\t'name' => 'LayerSlider WP',\n\t\t\t'slug' => 'LayerSlider',\n\t\t\t'source' => get_template_directory() . '/framework/plugins/LayerSlider.zip',\n\t\t\t'required' => false,\n\t\t\t'version' => '5.6.2',\n\t\t\t'force_activation' => false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' => '',\n\t\t\t'image_url' => Aione()->get_framework_dir() . '/assets/images/layer_slider.png',\n\t\t),\n\t\tarray(\n\t\t\t'name' => 'Revolution Slider',\n\t\t\t'slug' => 'revslider',\n\t\t\t'source' => get_template_directory() . '/framework/plugins/revslider.zip',\n\t\t\t'required' => false,\n\t\t\t'version' => '5.1.6',\n\t\t\t'force_activation' => false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' => '',\n\t\t\t'image_url' => Aione()->get_framework_dir() . '/assets/images/rev_slider.png',\n\t\t),\n\t\tarray(\n\t\t\t'name' => 'WooCommerce',\n\t\t\t'slug' => 'woocommerce',\n\t\t\t'required' => false,\n\t\t\t'image_url' => Aione()->get_framework_dir() . '/assets/images/woocommerce.png',\n\t\t),\n\t\tarray(\n\t\t\t'name' => 'bbPress',\n\t\t\t'slug' => 'bbpress',\n\t\t\t'required' => false,\n\t\t\t'image_url' => Aione()->get_framework_dir() . '/assets/images/bbpress.png',\n\t\t),\n\t\tarray(\n\t\t\t'name' => 'The Events Calendar',\n\t\t\t'slug' => 'the-events-calendar',\n\t\t\t'required' => false,\n\t\t\t'image_url' => Aione()->get_framework_dir() . '/assets/images/the_events_calendar.png',\n\t\t),\n\t\tarray(\n\t\t\t'name' => 'Contact Form 7',\n\t\t\t'slug' => 'contact-form-7',\n\t\t\t'required' => false,\n\t\t\t'image_url' => Aione()->get_framework_dir() . '/assets/images/contact_form_7.jpg',\n\t\t),\n\t);\n\n\t// Change this to your theme text domain, used for internationalising strings\n\t$theme_text_domain = 'Aione';\n\n\t/**\n\t * Array of configuration settings. Amend each line as needed.\n\t * If you want the default strings to be available under your own theme domain,\n\t * leave the strings uncommented.\n\t * Some of the strings are added into a sprintf, so see the comments at the\n\t * end of each line for what each argument will be.\n\t */\n\t$config = array(\n\n\t\t'domain' \t=> $theme_text_domain,\n\t\t'default_path' \t=> '',\n\t\t'parent_slug' \t\t=> 'themes.php',\n\t\t'menu' \t=> 'install-required-plugins',\n\t\t'has_notices' \t=> true,\n\t\t'is_automatic' \t=> true,\n\t\t'message' \t=> '',\n\t\t'strings' \t=> array(\n\t\t\t'page_title' => __( 'Install Required Plugins', 'Aione' ),\n\t\t\t'menu_title' => __( 'Install Plugins', 'Aione' ),\n\t\t\t'installing' => __( 'Installing Plugin: %s', 'Aione' ), // %1$s = plugin name\n\t\t\t'oops' => __( 'Something went wrong with the plugin API.', 'Aione' ),\n\t\t\t'notice_can_install_required' => _n_noop( 'This theme requires the following plugin installed or updated: %1$s.', 'This theme requires the following plugins installed or updated: %1$s.', 'Aione' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_install_recommended' => _n_noop( str_replace( '{{system-status}}', admin_url( 'admin.php?page=aione-system-status' ), 'This theme recommends the following plugin installed or updated: %1$s.<br />IMPORTANT: If your hosting plan has low resources, activating additional plugins can lead to fatal \"out of memory\" errors. We recommend at least 128MB of memory. Check your resources on the <a href=\"{{system-status}}\" target=\"_self\">System Status</a> tab.' ), str_replace( '{{system-status}}', admin_url( 'admin.php?page=aione-system-status' ), 'This theme recommends the following plugins installed or updated: %1$s.<br />IMPORTANT: If your hosting plan has low resources, activating additional plugins can lead to fatal \"out of memory\" errors. We recommend at least 128MB of memory. Check your resources on the <a href=\"{{system-status}}\" target=\"_self\">System Status</a> tab.' ), 'Aione' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_install' => _n_noop( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.', 'Aione' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_activate_required' => _n_noop( 'The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.', 'Aione' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_activate_recommended' => _n_noop( str_replace( '{{system-status}}', admin_url( 'admin.php?page=aione-system-status' ), 'The following recommended plugin is currently inactive: %1$s.<br />IMPORTANT: If your hosting plan has low resources, activating additional plugins can lead to fatal \"out of memory\" errors. We recommend at least 128MB of memory. Check your resources on the <a href=\"{{system-status}}\" target=\"_self\">System Status</a> tab.' ), str_replace( '{{system-status}}', admin_url( 'admin.php?page=aione-system-status' ), 'The following recommended plugins are currently inactive: %1$s.<br />IMPORTANT: If your hosting plan has low resources, activating additional plugins can lead to fatal \"out of memory\" errors. We recommend at least 128MB of memory. Check your resources on the <a href=\"{{system-status}}\" target=\"_self\">System Status</a> tab.' ), 'Aione' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_activate' => _n_noop( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.', 'Aione' ), // %1$s = plugin name(s)\n\t\t\t'notice_ask_to_update' => _n_noop( '<span class=\"oxo-update-heading\" style=\"margin-top:-0.4em\">%1$s Update Required</span>The plugin needs to be updated to its latest version to ensure maximum compatibility with Aione.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.', 'Aione' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_update' => _n_noop( 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.', 'Aione' ), // %1$s = plugin name(s)\n\t\t\t'install_link' => _n_noop( 'Go Install Plugin', 'Go Install Plugins', 'Aione' ),\n\t\t\t'activate_link' => _n_noop( 'Go Activate Plugin', 'Go Activate Plugins', 'Aione' ),\n\t\t\t'return' => __( 'Return to Required Plugins Installer', 'Aione' ),\n\t\t\t'plugin_activated' => __( 'Plugin activated successfully.', 'Aione' ),\n\t\t\t'complete' => __( 'All plugins installed and activated successfully. %s', 'Aione' ), // %1$s = dashboard link\n\t\t\t'nag_type' => 'error' // Determines admin notice type - can only be 'updated' or 'error'\n\t\t)\n\t);\n\n\ttgmpa( $plugins, $config );\n}", "function spreadshop_designer()\n{\ninclude(plugin_dir_path(__FILE__).'/spreaddesigner.php');\nadd_filter('wp_head', 'sources');\n}", "public function plugin_name() {\n\t\treturn 'All In One SEO Pack';\n\t}", "function itstar_register_required_plugins() {\n\t/*\n\t * Array of plugin arrays. Required keys are name and slug.\n\t * If the source is NOT from the .org repo, then source is also required.\n\t */\n\t$plugins = array(\n\n\t\t// This is an example of how to include a plugin bundled with a theme.\n\t\tarray(\n\t\t\t'name' => 'Image Widget Plugin', // The plugin name.\n\t\t\t'slug' => 'image-widget', // The plugin slug (typically the folder name).\n\t\t\t'source' => get_template_directory() . '/plugins/image-widget.4.2.2.zip', // The plugin source.\n\t\t\t'required' => true\n\t\t\t),\n\t\tarray(\n\t\t\t'name' => 'Kirki', // The plugin name.\n\t\t\t'slug' => 'kirki', // The plugin slug (typically the folder name).\n\t\t\t'source' => get_template_directory() . '/plugins/kirki.2.3.6.zip', // The plugin source.\n\t\t\t'required' => true\n\t\t\t),\n//\t\tarray(\n//\t\t\t'name' => 'Redux Framework', // The plugin name.\n//\t\t\t'slug' => 'redux-framework', // The plugin slug (typically the folder name).\n//\t\t\t'source' => get_template_directory() . '/plugins/redux-framework.3.6.1.zip', // The plugin source.\n//\t\t\t'required' => true\n//\t\t\t),\n array(\n\t\t\t'name' => 'CMB2', // The plugin name.\n\t\t\t'slug' => 'cmb2', // The plugin slug (typically the folder name).\n\t\t\t'source' => get_template_directory() . '/plugins/cmb2.zip', // The plugin source.\n\t\t\t'required' => true\n\t\t\t),\n\n\n//\t\tarray(\n//\t\t\t'name' => 'TGM Example Plugin', // The plugin name.\n//\t\t\t'slug' => 'tgm-example-plugin', // The plugin slug (typically the folder name).\n//\t\t\t'source' => get_template_directory() . '/plugins/tgm-example-plugin.zip', // The plugin source.\n//\t\t\t'required' => false, // If false, the plugin is only 'recommended' instead of required.\n//\t\t\t'version' => '', // E.g. 1.0.0. If set, the active plugin must be this version or higher. If the plugin version is higher than the plugin version installed, the user will be notified to update the plugin.\n//\t\t\t'force_activation' => true, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch.\n//\t\t\t'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins.\n//\t\t\t'external_url' => '', // If set, overrides default API URL and points to an external URL.\n//\t\t\t'is_callable' => '', // If set, this callable will be be checked for availability to determine if a plugin is active.\n//\t\t),\n\n\t\t// This is an example of how to include a plugin from an arbitrary external source in your theme.\n//\t\tarray(\n//\t\t\t'name' => 'TGM New Media Plugin', // The plugin name.\n//\t\t\t'slug' => 'tgm-new-media-plugin', // The plugin slug (typically the folder name).\n//\t\t\t'source' => 'https://s3.amazonaws.com/tgm/tgm-new-media-plugin.zip', // The plugin source.\n//\t\t\t'required' => true, // If false, the plugin is only 'recommended' instead of required.\n//\t\t\t'external_url' => 'https://github.com/thomasgriffin/New-Media-Image-Uploader', // If set, overrides default API URL and points to an external URL.\n//\t\t\t'required' => false,\n//\t\t),\n//\n//\t\t// This is an example of how to include a plugin from a GitHub repository in your theme.\n//\t\t// This presumes that the plugin code is based in the root of the GitHub repository\n//\t\t// and not in a subdirectory ('/src') of the repository.\n//\t\tarray(\n//\t\t\t'name' => 'Adminbar Link Comments to Pending',\n//\t\t\t'slug' => 'adminbar-link-comments-to-pending',\n//\t\t\t'source' => 'https://github.com/jrfnl/WP-adminbar-comments-to-pending/archive/master.zip',\n//\t\t\t'required' => false,\n//\t\t),\n//\n//\t\t// This is an example of how to include a plugin from the WordPress Plugin Repository.\n\t\tarray(\n\t\t\t'name' => 'Regenerate Thumbnails',\n\t\t\t'slug' => 'regenerate-thumbnails',\n\t\t\t'required' => false,\n\t\t),\n//\n//\t\t// This is an example of the use of 'is_callable' functionality. A user could - for instance -\n//\t\t// have WPSEO installed *or* WPSEO Premium. The slug would in that last case be different, i.e.\n//\t\t// 'wordpress-seo-premium'.\n//\t\t// By setting 'is_callable' to either a function from that plugin or a class method\n//\t\t// `array( 'class', 'method' )` similar to how you hook in to actions and filters, TGMPA can still\n//\t\t// recognize the plugin as being installed.\n//\t\tarray(\n//\t\t\t'name' => 'WordPress SEO by Yoast',\n//\t\t\t'slug' => 'wordpress-seo',\n//\t\t\t'is_callable' => 'wpseo_init',\n//\t\t\t'required' => false,\n//\t\t),\n\n\t);\n\n\t/*\n\t * Array of configuration settings. Amend each line as needed.\n\t *\n\t * TGMPA will start providing localized text strings soon. If you already have translations of our standard\n\t * strings available, please help us make TGMPA even better by giving us access to these translations or by\n\t * sending in a pull-request with .po file(s) with the translations.\n\t *\n\t * Only uncomment the strings in the config array if you want to customize the strings.\n\t */\n\t$config = array(\n\t\t'id' => 'itstar', // Unique ID for hashing notices for multiple instances of TGMPA.\n\t\t'default_path' => '', // Default absolute path to bundled plugins.\n\t\t'menu' => 'tgmpa-install-plugins', // Menu slug.\n\t\t'parent_slug' => 'themes.php', // Parent menu slug.\n\t\t'capability' => 'edit_theme_options', // Capability needed to view plugin install page, should be a capability associated with the parent menu used.\n\t\t'has_notices' => true, // Show admin notices or not.\n\t\t'dismissable' => true, // If false, a user cannot dismiss the nag message.\n\t\t'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag.\n\t\t'is_automatic' => false, // Automatically activate plugins after installation or not.\n\t\t'message' => '', // Message to output right before the plugins table.\n\n\t\t/*\n\t\t'strings' => array(\n\t\t\t'page_title' => __( 'Install Required Plugins', 'itstar' ),\n\t\t\t'menu_title' => __( 'Install Plugins', 'itstar' ),\n\t\t\t/* translators: %s: plugin name. * /\n\t\t\t'installing' => __( 'Installing Plugin: %s', 'itstar' ),\n\t\t\t/* translators: %s: plugin name. * /\n\t\t\t'updating' => __( 'Updating Plugin: %s', 'itstar' ),\n\t\t\t'oops' => __( 'Something went wrong with the plugin API.', 'itstar' ),\n\t\t\t'notice_can_install_required' => _n_noop(\n\t\t\t\t/* translators: 1: plugin name(s). * /\n\t\t\t\t'This theme requires the following plugin: %1$s.',\n\t\t\t\t'This theme requires the following plugins: %1$s.',\n\t\t\t\t'itstar'\n\t\t\t),\n\t\t\t'notice_can_install_recommended' => _n_noop(\n\t\t\t\t/* translators: 1: plugin name(s). * /\n\t\t\t\t'This theme recommends the following plugin: %1$s.',\n\t\t\t\t'This theme recommends the following plugins: %1$s.',\n\t\t\t\t'itstar'\n\t\t\t),\n\t\t\t'notice_ask_to_update' => _n_noop(\n\t\t\t\t/* translators: 1: plugin name(s). * /\n\t\t\t\t'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.',\n\t\t\t\t'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.',\n\t\t\t\t'itstar'\n\t\t\t),\n\t\t\t'notice_ask_to_update_maybe' => _n_noop(\n\t\t\t\t/* translators: 1: plugin name(s). * /\n\t\t\t\t'There is an update available for: %1$s.',\n\t\t\t\t'There are updates available for the following plugins: %1$s.',\n\t\t\t\t'itstar'\n\t\t\t),\n\t\t\t'notice_can_activate_required' => _n_noop(\n\t\t\t\t/* translators: 1: plugin name(s). * /\n\t\t\t\t'The following required plugin is currently inactive: %1$s.',\n\t\t\t\t'The following required plugins are currently inactive: %1$s.',\n\t\t\t\t'itstar'\n\t\t\t),\n\t\t\t'notice_can_activate_recommended' => _n_noop(\n\t\t\t\t/* translators: 1: plugin name(s). * /\n\t\t\t\t'The following recommended plugin is currently inactive: %1$s.',\n\t\t\t\t'The following recommended plugins are currently inactive: %1$s.',\n\t\t\t\t'itstar'\n\t\t\t),\n\t\t\t'install_link' => _n_noop(\n\t\t\t\t'Begin installing plugin',\n\t\t\t\t'Begin installing plugins',\n\t\t\t\t'itstar'\n\t\t\t),\n\t\t\t'update_link' \t\t\t\t\t => _n_noop(\n\t\t\t\t'Begin updating plugin',\n\t\t\t\t'Begin updating plugins',\n\t\t\t\t'itstar'\n\t\t\t),\n\t\t\t'activate_link' => _n_noop(\n\t\t\t\t'Begin activating plugin',\n\t\t\t\t'Begin activating plugins',\n\t\t\t\t'itstar'\n\t\t\t),\n\t\t\t'return' => __( 'Return to Required Plugins Installer', 'itstar' ),\n\t\t\t'plugin_activated' => __( 'Plugin activated successfully.', 'itstar' ),\n\t\t\t'activated_successfully' => __( 'The following plugin was activated successfully:', 'itstar' ),\n\t\t\t/* translators: 1: plugin name. * /\n\t\t\t'plugin_already_active' => __( 'No action taken. Plugin %1$s was already active.', 'itstar' ),\n\t\t\t/* translators: 1: plugin name. * /\n\t\t\t'plugin_needs_higher_version' => __( 'Plugin not activated. A higher version of %s is needed for this theme. Please update the plugin.', 'itstar' ),\n\t\t\t/* translators: 1: dashboard link. * /\n\t\t\t'complete' => __( 'All plugins installed and activated successfully. %1$s', 'itstar' ),\n\t\t\t'dismiss' => __( 'Dismiss this notice', 'itstar' ),\n\t\t\t'notice_cannot_install_activate' => __( 'There are one or more required or recommended plugins to install, update or activate.', 'itstar' ),\n\t\t\t'contact_admin' => __( 'Please contact the administrator of this site for help.', 'itstar' ),\n\n\t\t\t'nag_type' => '', // Determines admin notice type - can only be one of the typical WP notice classes, such as 'updated', 'update-nag', 'notice-warning', 'notice-info' or 'error'. Some of which may not work as expected in older WP versions.\n\t\t),\n\t\t*/\n\t);\n\n\ttgmpa( $plugins, $config );\n}", "function my_theme_register_required_plugins() {\n /*\n * Array of plugin arrays. Required keys are name and slug.\n * If the source is NOT from the .org repo, then source is also required.\n */\n $plugins = array(\n\n // This is an example of how to include a plugin bundled with a theme.\n array(\n 'name' => 'Advanced Custom Fields', // The plugin name.\n 'slug' => 'advanced-custom-fields', // The plugin slug (typically the folder name).\n 'source' => get_stylesheet_directory() . '/plugins/advanced-custom-fields.4.4.5.zip', // The plugin source.\n 'required' => true, // If false, the plugin is only 'recommended' instead of required.\n 'version' => '', // E.g. 1.0.0. If set, the active plugin must be this version or higher. If the plugin version is higher than the plugin version installed, the user will be notified to update the plugin.\n 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch.\n 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins.\n 'external_url' => '', // If set, overrides default API URL and points to an external URL.\n 'is_callable' => '', // If set, this callable will be be checked for availability to determine if a plugin is active.\n ),\n\n array(\n 'name' => 'Ninja Forms', // The plugin name.\n 'slug' => 'ninja-forms', // The plugin slug (typically the folder name).\n 'source' => get_stylesheet_directory() . '/plugins/ninja-forms.zip', // The plugin source.\n 'required' => true, // If false, the plugin is only 'recommended' instead of required.\n 'version' => '', // E.g. 1.0.0. If set, the active plugin must be this version or higher. If the plugin version is higher than the plugin version installed, the user will be notified to update the plugin.\n 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch.\n 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins.\n 'external_url' => '', // If set, overrides default API URL and points to an external URL.\n 'is_callable' => '', // If set, this callable will be be checked for availability to determine if a plugin is active.\n ),\n\n array(\n 'name' => 'Simple Post Exipiration', // The plugin name.\n 'slug' => 'simple-post-expiration', // The plugin slug (typically the folder name).\n 'source' => get_stylesheet_directory() . '/plugins/simple-post-expiration.1.0.zip', // The plugin source.\n 'required' => true, // If false, the plugin is only 'recommended' instead of required.\n 'version' => '', // E.g. 1.0.0. If set, the active plugin must be this version or higher. If the plugin version is higher than the plugin version installed, the user will be notified to update the plugin.\n 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch.\n 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins.\n 'external_url' => '', // If set, overrides default API URL and points to an external URL.\n 'is_callable' => '', // If set, this callable will be be checked for availability to determine if a plugin is active.\n ),\n\n array(\n 'name' => 'Events Calendar Pro', // The plugin name.\n 'slug' => 'events-calendar-pro', // The plugin slug (typically the folder name).\n 'source' => get_stylesheet_directory() . '/plugins/events-calendar-pro.4.0.3.zip', // The plugin source.\n 'required' => true, // If false, the plugin is only 'recommended' instead of required.\n 'version' => '', // E.g. 1.0.0. If set, the active plugin must be this version or higher. If the plugin version is higher than the plugin version installed, the user will be notified to update the plugin.\n 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch.\n 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins.\n 'external_url' => '', // If set, overrides default API URL and points to an external URL.\n 'is_callable' => '', // If set, this callable will be be checked for availability to determine if a plugin is active.\n ),\n\n array(\n 'name' => 'The Events Calendar', // The plugin name.\n 'slug' => 'the-events-calendar', // The plugin slug (typically the folder name).\n 'source' => get_stylesheet_directory() . '/plugins/the-events-calendar.3.12.3.zip', // The plugin source.\n 'required' => true, // If false, the plugin is only 'recommended' instead of required.\n 'version' => '', // E.g. 1.0.0. If set, the active plugin must be this version or higher. If the plugin version is higher than the plugin version installed, the user will be notified to update the plugin.\n 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch.\n 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins.\n 'external_url' => '', // If set, overrides default API URL and points to an external URL.\n 'is_callable' => '', // If set, this callable will be be checked for availability to determine if a plugin is active.\n ),\n\n array(\n 'name' => 'The Events Calendar Category Colors', // The plugin name.\n 'slug' => 'the-events-calendar-category-colors', // The plugin slug (typically the folder name).\n 'source' => get_stylesheet_directory() . '/plugins/the-events-calendar-category-colors.4.3.5.zip', // The plugin source.\n 'required' => true, // If false, the plugin is only 'recommended' instead of required.\n 'version' => '', // E.g. 1.0.0. If set, the active plugin must be this version or higher. If the plugin version is higher than the plugin version installed, the user will be notified to update the plugin.\n 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch.\n 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins.\n 'external_url' => '', // If set, overrides default API URL and points to an external URL.\n 'is_callable' => '', // If set, this callable will be be checked for availability to determine if a plugin is active.\n )\n\n );\n\n /*\n * Array of configuration settings. Amend each line as needed.\n *\n * TGMPA will start providing localized text strings soon. If you already have translations of our standard\n * strings available, please help us make TGMPA even better by giving us access to these translations or by\n * sending in a pull-request with .po file(s) with the translations.\n *\n * Only uncomment the strings in the config array if you want to customize the strings. Reference example.php file in TGMPA folder (removed for cleaner code).\n */\n $config = array(\n 'id' => 'tgmpa', // Unique ID for hashing notices for multiple instances of TGMPA.\n 'default_path' => '', // Default absolute path to bundled plugins.\n 'menu' => 'tgmpa-install-plugins', // Menu slug.\n 'parent_slug' => 'themes.php', // Parent menu slug.\n 'capability' => 'edit_theme_options', // Capability needed to view plugin install page, should be a capability associated with the parent menu used.\n 'has_notices' => true, // Show admin notices or not.\n 'dismissable' => true, // If false, a user cannot dismiss the nag message.\n 'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag.\n 'is_automatic' => false, // Automatically activate plugins after installation or not.\n 'message' => '', // Message to output right before the plugins table.\n\n \n );\n\n tgmpa( $plugins, $config );\n}", "function wpestate_add_plugin($plugin_array) { \n $plugin_array['slider_recent_items'] = get_template_directory_uri() . '/js/shortcodes.js';\n $plugin_array['testimonials'] = get_template_directory_uri() . '/js/shortcodes.js';\n<<<<<<< HEAD\n=======\n $plugin_array['testimonial_slider'] = get_template_directory_uri() . '/js/shortcodes.js';\n>>>>>>> 64662fd89bea560852792d7203888072d7452d48\n $plugin_array['recent_items'] = get_template_directory_uri() . '/js/shortcodes.js';\n $plugin_array['featured_agent'] = get_template_directory_uri() . '/js/shortcodes.js';\n $plugin_array['featured_article'] = get_template_directory_uri() . '/js/shortcodes.js';\n $plugin_array['featured_property'] = get_template_directory_uri() . '/js/shortcodes.js';\n $plugin_array['login_form'] = get_template_directory_uri() . '/js/shortcodes.js';\n $plugin_array['register_form'] = get_template_directory_uri() . '/js/shortcodes.js';\n $plugin_array['list_items_by_id'] = get_template_directory_uri() . '/js/shortcodes.js';\n $plugin_array['advanced_search'] = get_template_directory_uri() . '/js/shortcodes.js';\n $plugin_array['font_awesome'] = get_template_directory_uri() . '/js/shortcodes.js';\n $plugin_array['spacer'] = get_template_directory_uri() . '/js/shortcodes.js';\n $plugin_array['icon_container'] = get_template_directory_uri() . '/js/shortcodes.js';\n<<<<<<< HEAD\n \n=======\n $plugin_array['list_agents'] = get_template_directory_uri() . '/js/shortcodes.js';\n $plugin_array['places_list'] = get_template_directory_uri() . '/js/shortcodes.js';\n $plugin_array['listings_per_agent'] = get_template_directory_uri() . '/js/shortcodes.js';\n $plugin_array['property_page_map'] = get_template_directory_uri() . '/js/shortcodes.js';\n $plugin_array['estate_membership_packages'] = get_template_directory_uri() . '/js/shortcodes.js';\n $plugin_array['estate_featured_user_role'] = get_template_directory_uri() . '/js/shortcodes.js';\n\t\n\t// slick function\n\t$plugin_array['places_slider'] = get_template_directory_uri() . '/js/shortcodes.js';\n\t\n>>>>>>> 64662fd89bea560852792d7203888072d7452d48\n \n return $plugin_array;\n}", "function add_rich_plugins( $plugin_array )\n\t{\n\t\t$plugin_array['nymbleShortcodes'] = NYMBLE_TINYMCE_URI . '/plugin.js';\n\t\treturn $plugin_array;\n\t}", "function cbp_display_front_page() {\n\t?>\n\t\t<h2>Chibipaint Integration</h2>\n\t\t<h3>Introduction</h3>\n\t\t<p>This plugin's purpose is to integrate the Chibipaint applet with Wordpress. The code was largely rewritten from the previous version back in 2010. Some of the notable differences are:</p>\n\t\t<ul class=\"ul-disc\">\n\t\t<li>Visibility &amp; Accessibility: Where you had to access the applet via the upload media section, it is now placed in a &quot;metabox&quot; above the WYSIWYG editor of any post type of your choosing</li>\n\t\t<li>Choice of location: You can choose where to place the files you save, but you are restricted to within the upload folder.</li>\n\t\t</ul>\n\t\t<p>If you feel I've missed any, feel free to let me know. The applet itself can be found at http://www.chibipaint.com/.</p>\n\t\t<h3>Known Limitations</h3>\n\t\t<ul class=\"ul-disc\">\n\t\t<li>Currently, you can only change the default dimensions. There are plans to allow users to add dimensions they commonly use and to pick them from a drop down list at the editor.</li>\n\t\t<li>There is currently no implementation of templates. The closest thing to it now is to upload an image to the post, select it in the list of images and click on Edit. There are also plans to implement a template feature for the plugin.</li>\n\t\t<li>The plugin cannot do a recursive search for wp-config.php.</li>\n\t\t<li>This plugin has not been tested with a multiuser wordpress install. It's certain it will not work since there are no filtering based on author, nor is the author of the image saved with the attachment.</li>\n\t\t<li>If the user saves the source file, all edits will be based on the source file. This is particularly troublesome for those who decide to save image only later on.</li>\n\t\t</ul>\n\t<?php\n}", "function vc_before_init_actions() {\n \n // Require new custom Element\n require_once( get_stylesheet_directory().'/vc-elements/vc-child-home-slider.php' ); \n require_once( get_stylesheet_directory().'/vc-elements/vc-child-category-blog.php' ); \n require_once( get_stylesheet_directory().'/vc-elements/vc-child-columns-blog.php' ); \n require_once( get_stylesheet_directory().'/vc-elements/vc-child-gallery.php' ); \n \n}", "function howes_register_required_plugins(){\n\t\n\t/**\n\t * Array of plugin arrays. Required keys are name and slug.\n\t * If the source is NOT from the .org repo, then source is also required.\n\t */\n\t$plugins = array(\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'Revolution Slider', // The plugin name\n\t\t\t'slug' \t\t\t\t=> 'revslider', // The plugin slug (typically the folder name)\n\t\t\t'source' \t\t\t\t=> get_template_directory() . '/inc/plugins/revslider.zip', // The plugin source\n\t\t\t'required' \t\t\t\t=> true, // If false, the plugin is only 'recommended' instead of required\n\t\t\t'version' \t\t\t\t=> '5.4.7.4', // E.g. 1.0.0. If set, the active plugin must be this version or higher, otherwise a notice is presented\n\t\t\t'force_activation' \t\t=> false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch\n\t\t\t'force_deactivation' \t=> false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins\n\t\t\t'external_url' \t\t\t=> '', // If set, overrides default API URL and points to an external URL\n\t\t),\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'WPBakery Visual Composer', // The plugin name\n\t\t\t'slug' \t\t\t\t=> 'js_composer', // The plugin slug (typically the folder name)\n\t\t\t'source' \t\t\t\t=> get_template_directory() . '/inc/plugins/js_composer.zip', // The plugin source\n\t\t\t'required' \t\t\t\t=> true, // If false, the plugin is only 'recommended' instead of required\n\t\t\t'version' \t\t\t\t=> '5.4.7', // E.g. 1.0.0. If set, the active plugin must be this version or higher, otherwise a notice is presented\n\t\t\t'force_activation' \t\t=> false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch\n\t\t\t'force_deactivation' \t=> false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins\n\t\t\t'external_url' \t\t\t=> '', // If set, overrides default API URL and points to an external URL\n\t\t),\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'CF Post Formats', // The plugin name\n\t\t\t'slug' \t\t\t\t=> 'cf-post-formats', // The plugin slug (typically the folder name)\n\t\t\t'source' \t\t\t\t=> get_template_directory() . '/inc/plugins/cf-post-formats.zip', // The plugin source\n\t\t\t'required' \t\t\t\t=> true, // If false, the plugin is only 'recommended' instead of required\n\t\t\t'version' \t\t\t\t=> '', // E.g. 1.0.0. If set, the active plugin must be this version or higher, otherwise a notice is presented\n\t\t\t'force_activation' \t\t=> true, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch\n\t\t\t'force_deactivation' \t=> false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins\n\t\t\t'external_url' \t\t\t=> '', // If set, overrides default API URL and points to an external URL\n\t\t),\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'Envato Market', // The plugin name\n\t\t\t'slug' \t\t\t\t=> 'envato-market', // The plugin slug (typically the folder name)\n\t\t\t'source' \t\t\t\t=> get_template_directory() . '/inc/plugins/envato-market.zip', // The plugin source\n\t\t\t'required' \t\t\t\t=> true, // If false, the plugin is only 'recommended' instead of required\n\t\t\t'version' \t\t\t\t=> '', // E.g. 1.0.0. If set, the active plugin must be this version or higher, otherwise a notice is presented\n\t\t\t'force_activation' \t\t=> false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch\n\t\t\t'force_deactivation' \t=> false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins\n\t\t\t'external_url' \t\t\t=> '', // If set, overrides default API URL and points to an external URL\n\t\t),\n\t\tarray(\n\t\t\t'name' => 'Breadcrumb NavXT',\n\t\t\t'slug' => 'breadcrumb-navxt',\n\t\t\t'required' => true,\n\t\t),\n\t\tarray(\n\t\t\t'name' => 'Contact Form 7',\n\t\t\t'slug' => 'contact-form-7',\n\t\t\t'required' => true,\n\t\t),\n\t\tarray(\n\t\t\t'name' => 'Max Mega Menu',\n\t\t\t'slug' => 'megamenu',\n\t\t\t'required' => false,\n\t\t),\n\t\tarray(\n\t\t\t'name' => 'Easy Pricing Tables Lite by Fatcat Apps',\n\t\t\t'slug' => 'easy-pricing-tables',\n\t\t\t'required' => false,\n\t\t),\n\t);\n\n\t// Change this to your theme text domain, used for internationalising strings\n\t//$theme_text_domain = 'howes';\n\n\t/**\n\t * Array of configuration settings. Amend each line as needed.\n\t * If you want the default strings to be available under your own theme domain,\n\t * leave the strings uncommented.\n\t * Some of the strings are added into a sprintf, so see the comments at the\n\t * end of each line for what each argument will be.\n\t */\n\t$config = array(\n\t\t'domain' \t\t=> 'howes', \t// Text domain - likely want to be the same as your theme.\n\t\t'default_path' \t\t=> '', \t// Default absolute path to pre-packaged plugins\n\t\t//'parent_menu_slug' \t=> 'themes.php', \t\t\t\t// Default parent menu slug\n\t\t//'parent_url_slug' \t=> 'themes.php', \t\t\t\t// Default parent URL slug\n\t\t'menu' \t\t=> 'install-required-plugins', \t// Menu slug\n\t\t'has_notices' \t=> true, \t// Show admin notices or not\n\t\t'is_automatic' \t=> true,\t\t\t\t\t \t// Automatically activate plugins after installation or not\n\t\t'message' \t\t\t=> '',\t\t\t\t\t\t\t// Message to output right before the plugins table\n\t\t'strings' \t\t=> array(\n\t\t\t'page_title' \t\t\t=> __( 'Install Required Plugins', 'howes' ),\n\t\t\t'menu_title' \t\t\t=> __( 'Install Plugins', 'howes' ),\n\t\t\t'installing' \t\t\t=> __( 'Installing Plugin: %s', 'howes' ), // %1$s = plugin name\n\t\t\t'oops' \t\t\t=> __( 'Something went wrong with the plugin API.', 'howes' ),\n\t\t\t'notice_can_install_required' \t\t\t=> _n_noop( 'This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_install_recommended'\t\t\t=> _n_noop( 'This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_install' \t\t\t\t\t=> _n_noop( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_activate_required' \t\t\t=> _n_noop( 'The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_activate_recommended'\t\t\t=> _n_noop( 'The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_activate' \t\t\t\t\t=> _n_noop( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.' ), // %1$s = plugin name(s)\n\t\t\t'notice_ask_to_update' \t\t\t\t\t\t=> _n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_update' \t\t\t\t\t\t=> _n_noop( 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.' ), // %1$s = plugin name(s)\n\t\t\t'install_link' \t\t\t\t\t \t\t\t=> _n_noop( 'Begin installing plugin', 'Begin installing plugins' ),\n\t\t\t'activate_link' \t\t\t\t \t\t\t=> _n_noop( 'Activate installed plugin', 'Activate installed plugins' ),\n\t\t\t'return' \t\t\t=> __( 'Return to Required Plugins Installer', 'howes' ),\n\t\t\t'plugin_activated' \t\t\t=> __( 'Plugin activated successfully.', 'howes' ),\n\t\t\t'complete' \t\t\t\t\t\t\t\t\t=> __( 'All plugins installed and activated successfully. %s', 'howes' ), // %1$s = dashboard link\n\t\t)\n\t);\n\ttgmpa( $plugins, $config );\n}", "function wpdocs_codex_Gallerie_init() {\r\n $labels = array(\r\n 'name' => _x( 'Mes Galleries', 'Post type general name', 'textdomain' ),\r\n 'singular_name' => _x( 'Gallerie', 'Post type singular name', 'textdomain' ),\r\n 'menu_name' => _x( 'Mes Galleries', 'Admin Menu text', 'textdomain' ),\r\n 'name_admin_bar' => _x( 'Gallerie', 'Ajouter une Gallerie', 'textdomain' ),\r\n 'add_new' => __( 'Ajouter une Gallerie', 'textdomain' ),\r\n 'add_new_item' => __( 'Ajouter une Gallerie', 'textdomain' ),\r\n 'new_item' => __( 'Nouvelle Gallerie', 'textdomain' ),\r\n 'edit_item' => __( 'Editer Gallerie', 'textdomain' ),\r\n 'view_item' => __( 'Voir mes Gallerie', 'textdomain' ),\r\n 'all_items' => __( 'Toutes Mes Galleries', 'textdomain' ),\r\n 'search_items' => __( 'Rechercher des Galleries', 'textdomain' ),\r\n 'parent_item_colon' => __( 'Parent Mes Galleries:', 'textdomain' ),\r\n 'not_found' => __( 'Pas de Galleries trouvé.', 'textdomain' ),\r\n 'not_found_in_trash' => __( 'Pas de Galleries trouvé dans la corbeille.', 'textdomain' ),\r\n 'featured_image' => _x( 'Gallerie Cover Image', 'Overrides the “Featured Image” phrase for this post type. Added in 4.3', 'textdomain' ),\r\n 'set_featured_image' => _x( 'Set cover image', 'Overrides the “Set featured image” phrase for this post type. Added in 4.3', 'textdomain' ),\r\n 'remove_featured_image' => _x( 'Remove cover image', 'Overrides the “Remove featured image” phrase for this post type. Added in 4.3', 'textdomain' ),\r\n 'use_featured_image' => _x( 'Use as cover image', 'Overrides the “Use as featured image” phrase for this post type. Added in 4.3', 'textdomain' ),\r\n 'archives' => _x( 'Gallerie archives', 'The post type archive label used in nav menus. Default “Post Archives”. Added in 4.4', 'textdomain' ),\r\n 'insert_into_item' => _x( 'Insert into Gallerie', 'Overrides the “Insert into post”/”Insert into page” phrase (used when inserting media into a post). Added in 4.4', 'textdomain' ),\r\n 'uploaded_to_this_item' => _x( 'Uploaded to this Gallerie', 'Overrides the “Uploaded to this post”/”Uploaded to this page” phrase (used when viewing media attached to a post). Added in 4.4', 'textdomain' ),\r\n 'filter_items_list' => _x( 'Filter Mes Galleries list', 'Screen reader text for the filter links heading on the post type listing screen. Default “Filter posts list”/”Filter pages list”. Added in 4.4', 'textdomain' ),\r\n 'items_list_navigation' => _x( 'Mes Galleries list navigation', 'Screen reader text for the pagination heading on the post type listing screen. Default “Posts list navigation”/”Pages list navigation”. Added in 4.4', 'textdomain' ),\r\n 'items_list' => _x( 'Mes Galleries list', 'Screen reader text for the items list heading on the post type listing screen. Default “Posts list”/”Pages list”. Added in 4.4', 'textdomain' ),\r\n );\r\n \r\n $args = array(\r\n 'labels' => $labels,\r\n 'public' => true,\r\n 'publicly_queryable' => true,\r\n 'show_ui' => true,\r\n 'show_in_menu' => true,\r\n 'query_var' => true,\r\n 'rewrite' => array( 'slug' => 'Gallerie' ),\r\n 'capability_type' => 'post',\r\n 'has_archive' => true,\r\n 'hierarchical' => false,\r\n 'menu_position' => null,\r\n 'supports' => array( 'title', 'author', 'thumbnail', 'excerpt', 'comments' ),\r\n );\r\n \r\n register_post_type( 'gallerie', $args );\r\n}", "function cpotheme_metadata_plugin()\n{\n $cpotheme_data = array();\n\n $cpotheme_data[] = array(\n 'name' => 'plugin_title',\n 'std' => '',\n 'label' => 'Título del Producto',\n 'type' => 'text',\n 'desc' => 'Indica la etiqueta de título (H1) del tema.'\n );\n\n $cpotheme_data[] = array(\n 'name' => 'plugin_demo_url',\n 'std' => '',\n 'label' => 'URL de la Demo',\n 'type' => 'text',\n 'desc' => 'Especifica la URL de la demo del tema.'\n );\n\n $cpotheme_data[] = array(\n 'name' => 'plugin_url',\n 'std' => '',\n 'label' => 'External URL',\n 'type' => 'text',\n 'desc' => 'Especifica la URL del tema si es un archivo externo.'\n );\n\n $cpotheme_data[] = array(\n 'name' => 'plugin_product',\n 'std' => '',\n 'label' => 'ID de Producto',\n 'type' => 'select',\n 'option' => cpotheme_metadata_productlist_optional(),\n 'desc' => 'Indica la ID del producto para enlazarlo.'\n );\n\n $cpotheme_data[] = array(\n 'name' => 'plugin_changelog',\n 'std' => '',\n 'label' => 'Changelog',\n 'type' => 'textarea',\n 'desc' => 'Muestra el registro de cambios de la descarga.'\n );\n\n return $cpotheme_data;\n}", "function customPageHeader() {\n echo osc_apply_filter('custom_plugin_title', __('Plugins'));\n }", "function add_shortcode_for_our_plugin ($attr , $content = null ){\n\t\textract(shortcode_atts(array(\n\t\t\t'post_type'=>'post',\n\t\t\t'posts_per_page'=>2,\n\t\t\t\n\t\t\t\n\t\t\n\t\t), $attr,'our_shortcode' ));\n\t\n\t$query = new WP_Query(array(\n\t\t'post_type'=>$post_type,\n\t\t'posts_per_page'=>$posts_per_page,\n\t\n\t));\n\t\n\tif($query->have_posts()):\n\t\t$output = '<div class=\"recent_posts\"><ul>';\n\t\t$i=0;\n\t\twhile($query->have_posts()){\n\t\t\t\n\t\t\t$query->the_post();\n\t\t\tif($i == 0):\n\t\t\t$output .= '<li><a href=\"'.get_the_permalink().'\" style=\"color:red;\" >'.get_the_title().'</a></li>';\n\t\t\telse:\n\t\t\t$output .= '<li><a href=\"'.get_the_permalink().'\">'.get_the_title().'</a></li>';\n\t\t\tendif;\n\t\t\t\n\t\t\t\n\t\t$i++; }\n\t\twp_reset_postdata();\n\t$output .= '</ul></div>';\n\treturn $output;\n\telse:\n\t return 'no post found';\n\t\n\tendif;\n\t\n\t\n\t\n\t\n\t\n\t\n}", "function plugin_autoinstall_nexcontent($pi_name)\r\n{\r\n global $CONF_SE,$_CONF;\r\n @require ($_CONF['path'] . 'plugins/nexcontent/nexcontent.php');\r\n\r\n $pi_name = $CONF_SE['pi_name'];\r\n $pi_display_name = $CONF_SE['pi_display_name'];\r\n $pi_admin = $pi_display_name . ' Admin';\r\n\r\n $info = array(\r\n 'pi_name' => $pi_name,\r\n 'pi_display_name' => $pi_display_name,\r\n 'pi_version' => $CONF_SE['version'],\r\n 'pi_gl_version' => $CONF_SE['gl_version'],\r\n 'pi_homepage' => 'http://www.nextide.ca/'\r\n );\r\n\r\n $groups = array(\r\n $pi_admin => 'Has full access to ' . $pi_display_name . ' features'\r\n );\r\n\r\n $features = array(\r\n $pi_name . '.edit' => 'Plugin Admin',\r\n $pi_name . '.user' => 'Plugin User'\r\n );\r\n\r\n $mappings = array(\r\n $pi_name . '.edit' => array($pi_admin),\r\n $pi_name . '.user' => array($pi_admin),\r\n );\r\n\r\n $tables = array(\r\n 'nxcontent',\r\n 'nxcontent_pages',\r\n 'nxcontent_images'\r\n );\r\n\r\n $inst_parms = array(\r\n 'info' => $info,\r\n 'groups' => $groups,\r\n 'features' => $features,\r\n 'mappings' => $mappings,\r\n 'tables' => $tables\r\n );\r\n\r\n return $inst_parms;\r\n}", "function cosmetics_register_required_plugins() {\n $cosmetics_plugins = array(\n\n // This is an example of how to include a plugin from the WordPress Plugin Repository\n array(\n 'name' => 'Megamenu',\n 'slug' => 'megamenu',\n 'required' => true,\n ),\n\n // This is an example of how to include a plugin from the WordPress Plugin Repository\n array(\n 'name' => 'Redux Framework',\n 'slug' => 'redux-framework',\n 'required' => true,\n ),\n\n // This is an example of how to include a plugin from the WordPress Plugin Repository\n array(\n 'name' => 'Elementor',\n 'slug' => 'elementor',\n 'required' => true,\n ),\n\n // This is an example of how to include a plugin from the WordPress Plugin Repository\n array(\n 'name' => 'Woocommerce',\n 'slug' => 'woocommerce',\n 'required' => true,\n ),\n\n // This is an example of how to include a plugin from the WordPress Plugin Repository\n array(\n 'name' => 'Woo Variation Swatches',\n 'slug' => 'woo-variation-swatches',\n 'required' => true,\n ),\n\n // This is an example of how to include a plugin from the WordPress Plugin Repository\n array(\n 'name' => 'Contact Form 7',\n 'slug' => 'contact-form-7',\n 'required' => true,\n ),\n\n // This is an example of how to include a plugin from the WordPress Plugin Repository\n array(\n 'name' => 'Breadcrumb Navxt',\n 'slug' => 'breadcrumb-navxt',\n 'required' => true,\n ),\n\n );\n\n /**\n * Array of configuration settings. Amend each line as needed.\n * If you want the default strings to be available under your own theme domain,\n * leave the strings uncommented.\n * Some of the strings are added into a sprintf, so see the comments at the\n * end of each line for what each argument will be.\n */\n $cosmetics_config = array(\n 'id' => 'cosmetics', // Unique ID for hashing notices for multiple instances of TGMPA.\n 'default_path' => '', // Default absolute path to bundled plugins.\n 'menu' => 'tgmpa-install-plugins', // Menu slug.\n 'parent_slug' => 'themes.php', // Parent menu slug.\n 'capability' => 'edit_theme_options', // Capability needed to view plugin install page, should be a capability associated with the parent menu used.\n 'has_notices' => true, // Show admin notices or not.\n 'dismissable' => true, // If false, a user cannot dismiss the nag message.\n 'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag.\n 'is_automatic' => false, // Automatically activate plugins after installation or not.\n 'message' => '', // Message to output right before the plugins table.\n );\n\n tgmpa( $cosmetics_plugins, $cosmetics_config );\n}", "public function get_name()\n\t{\n\t\treturn 'algolia-wp-plugin';\n\t}", "function immedia_vc_before_init_actions() {\n\ninclude( plugin_dir_path( __FILE__ ) . 'vc-directory-element.php');\n\n}", "function my_theme_register_required_plugins() {\r\n\r\n /**\r\n * Array of plugin arrays. Required keys are name and slug.\r\n * If the source is NOT from the .org repo, then source is also required.\r\n */\r\n $plugins = array(\r\n\r\n \r\n\r\n // This is an example of how to include a plugin from the WordPress Plugin Repository.\r\n array(\r\n 'name' => 'Redux Framework',\r\n 'slug' => 'redux-framework',\r\n 'required' => true,\r\n\t\t\t'force_activation' => false, \r\n 'force_deactivation' => false, \r\n ),\r\n array(\r\n 'name' => 'Visual Composer',\r\n 'slug' => 'js_composer',\r\n\t\t\t'source' => 'http://webredox.net/plugins/js_composer.zip',\r\n 'required' => true,\r\n ),\t\t\r\n\t\t\r\n\t\tarray(\r\n 'name' => 'Contact Form 7',\r\n 'slug' => 'contact-form-7',\r\n 'required' => true,\r\n ),\r\n\t\tarray(\r\n 'name' => 'Revolution Slider', \r\n 'slug' => 'revslider',\r\n 'source' => 'http://webredox.net/plugins/revslider.zip',\r\n 'required' => false, \r\n ),\t\r\n\t\tarray(\r\n 'name' => 'Redux Developer Mode Disabler',\r\n 'slug' => 'redux-developer-mode-disabler',\r\n 'required' => true,\r\n ),\t\t\r\n \t\t\r\n\r\n );\r\n\r\n /**\r\n * Array of configuration settings. Amend each line as needed.\r\n * If you want the default strings to be available under your own theme domain,\r\n * leave the strings uncommented.\r\n * Some of the strings are added into a sprintf, so see the comments at the\r\n * end of each line for what each argument will be.\r\n */\r\n $config = array(\r\n 'default_path' => '', // Default absolute path to pre-packaged plugins.\r\n 'menu' => 'tgmpa-install-plugins', // Menu slug.\r\n 'has_notices' => true, // Show admin notices or not.\r\n 'dismissable' => true, // If false, a user cannot dismiss the nag message.\r\n 'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag.\r\n 'is_automatic' => false, // Automatically activate plugins after installation or not.\r\n 'message' => '', // Message to output right before the plugins table.\r\n \r\n );\r\n\r\n tgmpa( $plugins, $config );\r\n\r\n}", "function lambert_register_required_plugins() {\n /*\n * Array of plugin arrays. Required keys are name and slug.\n * If the source is NOT from the .org repo, then source is also required.\n */\n $plugins = array(\n\n array('name' => esc_html__('WPBakery Page Builder','lambert'),\n // The plugin name.\n 'slug' => 'js_composer',\n // The plugin slug (typically the folder name).\n 'source' => 'http://assets.cththemes.com/plugins/js_composer.zip',\n // The plugin source.\n 'required' => true,\n 'external_url' => esc_url(lambert_relative_protocol_url().'://codecanyon.net/item/visual-composer-page-builder-for-wordpress/242431' ),\n // If set, overrides default API URL and points to an external URL.\n\n 'function_to_check' => '',\n 'class_to_check' => 'Vc_Manager'\n ), \n\n array(\n 'name' => esc_html__('WooCommerce','lambert'),\n // The plugin name.\n 'slug' => 'woocommerce',\n // The plugin slug (typically the folder name).\n 'required' => true,\n // If false, the plugin is only 'recommended' instead of required.\n 'external_url' => esc_url(lambert_relative_protocol_url().'://wordpress.org/plugins/woocommerce/' ), \n // If set, overrides default API URL and points to an external URL.\n\n 'function_to_check' => '',\n 'class_to_check' => 'WooCommerce'\n ), \n\n array('name' => esc_html__('Redux Framework','lambert'),\n // The plugin name.\n 'slug' => 'redux-framework',\n // The plugin source.\n 'required' => true,\n // If false, the plugin is only 'recommended' instead of required.\n 'external_url' => esc_url(lambert_relative_protocol_url().'://wordpress.org/plugins/redux-framework/' ),\n // If set, overrides default API URL and points to an external URL.\n 'function_to_check' => '',\n 'class_to_check' => 'ReduxFramework'\n ), \n\n array(\n 'name' => esc_html__('Contact Form 7','lambert'),\n // The plugin name.\n 'slug' => 'contact-form-7',\n // The plugin slug (typically the folder name).\n 'required' => true,\n // If false, the plugin is only 'recommended' instead of required.\n 'external_url' => esc_url(lambert_relative_protocol_url().'://wordpress.org/plugins/contact-form-7/' ),\n // If set, overrides default API URL and points to an external URL.\n\n 'function_to_check' => 'wpcf7',\n 'class_to_check' => 'WPCF7'\n ), \n\n\n array(\n 'name' => esc_html__('CMB2','lambert'),\n // The plugin name.\n 'slug' => 'cmb2',\n // The plugin slug (typically the folder name).\n 'required' => true,\n // If false, the plugin is only 'recommended' instead of required.\n 'external_url' => esc_url(lambert_relative_protocol_url().'://wordpress.org/support/plugin/cmb2'),\n // If set, overrides default API URL and points to an external URL.\n\n 'function_to_check' => 'cmb2_bootstrap',\n 'class_to_check' => 'CMB2_Base'\n ),\n \n\n array(\n 'name' => esc_html__('Lambert Add-ons','lambert' ),\n // The plugin name.\n 'slug' => 'lambert-add-ons',\n // The plugin slug (typically the folder name).\n 'source' => 'lambert-add-ons.zip',\n // The plugin source.\n 'required' => true,\n // If false, the plugin is only 'recommended' instead of required.\n\n 'force_deactivation' => true,\n\n 'function_to_check' => '',\n 'class_to_check' => 'Lambert_Addons'\n ), \n\n array(\n 'name' => esc_html__('Loco Translate','lambert'),\n // The plugin name.\n 'slug' => 'loco-translate',\n // The plugin slug (typically the folder name).\n 'required' => false,\n // If false, the plugin is only 'recommended' instead of required.\n 'external_url' => esc_url(lambert_relative_protocol_url().'://wordpress.org/plugins/loco-translate/'),\n // If set, overrides default API URL and points to an external URL.\n\n 'function_to_check' => 'loco_autoload',\n 'class_to_check' => 'Loco_Locale'\n ),\n\n \n array(\n 'name' => esc_html__('Envato Market','lambert' ),\n // The plugin name.\n 'slug' => 'envato-market',\n // The plugin slug (typically the folder name).\n 'source' => esc_url(lambert_relative_protocol_url().'://envato.github.io/wp-envato-market/dist/envato-market.zip' ),\n // The plugin source.\n 'required' => true,\n // If false, the plugin is only 'recommended' instead of required.\n 'external_url' => esc_url('//envato.github.io/wp-envato-market/' ),\n // If set, overrides default API URL and points to an external URL.\n\n 'function_to_check' => 'envato_market',\n 'class_to_check' => 'Envato_Market'\n ),\n\n array('name' => esc_html__('One Click Demo Import','lambert'),\n // The plugin name.\n 'slug' => 'one-click-demo-import',\n // The plugin slug (typically the folder name).\n 'required' => false,\n // If false, the plugin is only 'recommended' instead of required.\n 'external_url' => esc_url(lambert_relative_protocol_url().'://wordpress.org/plugins/one-click-demo-import/'),\n // If set, overrides default API URL and points to an external URL.\n\n 'function_to_check' => '',\n 'class_to_check' => 'OCDI_Plugin'\n ),\n\n array('name' => esc_html__('Regenerate Thumbnails','lambert'),\n // The plugin name.\n 'slug' => 'regenerate-thumbnails',\n // The plugin slug (typically the folder name).\n 'required' => false,\n // If false, the plugin is only 'recommended' instead of required.\n 'external_url' => esc_url(lambert_relative_protocol_url().'://wordpress.org/plugins/regenerate-thumbnails/' ),\n // If set, overrides default API URL and points to an external URL.\n\n 'function_to_check' => 'RegenerateThumbnails',\n 'class_to_check' => 'RegenerateThumbnails'\n ),\n\n \n\n\n );\n\n /*\n * Array of configuration settings. Amend each line as needed.\n *\n * TGMPA will start providing localized text strings soon. If you already have translations of our standard\n * strings available, please help us make TGMPA even better by giving us access to these translations or by\n * sending in a pull-request with .po file(s) with the translations.\n *\n * Only uncomment the strings in the config array if you want to customize the strings.\n */\n $config = array(\n 'id' => 'lambert', // Unique ID for hashing notices for multiple instances of TGMPA.\n 'default_path' => get_template_directory() . '/lib/plugins/', // Default absolute path to bundled plugins.\n 'menu' => 'tgmpa-install-plugins', // Menu slug.\n 'has_notices' => true, // Show admin notices or not.\n 'dismissable' => true, // If false, a user cannot dismiss the nag message.\n 'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag.\n 'is_automatic' => false, // Automatically activate plugins after installation or not.\n 'message' => '', // Message to output right before the plugins table.\n\n \n );\n\n tgmpa( $plugins, $config );\n}", "function cs_register_required_plugins() {\n\t$plugins = array(\n\t\t// This is an example of how to include a plugin pre-packaged with a theme\n\t\t array(\n\t\t\t'name' \t\t\t\t=> 'Revolution Slider', // The plugin name\n\t\t\t'slug' \t\t\t\t=> 'revslider', // The plugin slug (typically the folder name)\n\t\t\t'source' \t\t\t\t=> get_stylesheet_directory() . '/include/plugins/revslider.zip', // The plugin source\n\t\t\t'required' \t\t\t\t=> false, // If false, the plugin is only 'recommended' instead of required\n\t\t\t'version' \t\t\t\t=> '', // E.g. 1.0.0. If set, the active plugin must be this version or higher, otherwise a notice is presented\n\t\t\t'force_activation' \t\t=> false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch\n\t\t\t'force_deactivation' \t=> false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins\n\t\t\t'external_url' \t\t\t=> '', // If set, overrides default API URL and points to an external URL\n\t\t),\n\t\t// This is an example of how to include a plugin from the WordPress Plugin Repository\n\t\tarray(\n\t\t\t'name' \t\t=> 'MailChimp Widget',\n\t\t\t'slug' \t\t=> 'mailchimp-widget',\n\t\t\t'required' \t=> false,\n\t\t),\n\n\t);\n\t// Change this to your theme text domain, used for internationalising strings\n\t$theme_text_domain = 'Rocky';\n\t/**\n\t * Array of configuration settings. Amend each line as needed.\n\t * If you want the default strings to be available under your own theme domain,\n\t * leave the strings uncommented.\n\t * Some of the strings are added into a sprintf, so see the comments at the\n\t * end of each line for what each argument will be.\n\t */\n\t$config = array(\n\t\t'domain' \t\t=> $theme_text_domain, \t// Text domain - likely want to be the same as your theme.\n\t\t'default_path' \t\t=> '', \t// Default absolute path to pre-packaged plugins\n\t\t'parent_menu_slug' \t=> 'themes.php', \t\t\t\t// Default parent menu slug\n\t\t'parent_url_slug' \t=> 'themes.php', \t\t\t\t// Default parent URL slug\n\t\t'menu' \t\t=> 'install-required-plugins', \t// Menu slug\n\t\t'has_notices' \t=> true, \t// Show admin notices or not\n\t\t'is_automatic' \t=> true,\t\t\t\t\t \t// Automatically activate plugins after installation or not\n\t\t'message' \t\t\t=> '',\t\t\t\t\t\t\t// Message to output right before the plugins table\n\t\t'strings' \t\t=> array(\n\t\t\t'page_title' \t\t\t=> __( 'Install Required Plugins', $theme_text_domain ),\n\t\t\t'menu_title' \t\t\t=> __( 'Install Plugins', $theme_text_domain ),\n\t\t\t'installing' \t\t\t=> __( 'Installing Plugin: %s', $theme_text_domain ), // %1$s = plugin name\n\t\t\t'oops' \t\t\t=> __( 'Something went wrong with the plugin API.', $theme_text_domain ),\n\t\t\t'notice_can_install_required' \t\t\t=> _n_noop( 'This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_install_recommended'\t\t\t=> _n_noop( 'This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_install' \t\t\t\t\t=> _n_noop( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_activate_required' \t\t\t=> _n_noop( 'The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_activate_recommended'\t\t\t=> _n_noop( 'The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_activate' \t\t\t\t\t=> _n_noop( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.' ), // %1$s = plugin name(s)\n\t\t\t'notice_ask_to_update' \t\t\t\t\t\t=> _n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_update' \t\t\t\t\t\t=> _n_noop( 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.' ), // %1$s = plugin name(s)\n\t\t\t'install_link' \t\t\t\t\t \t\t\t=> _n_noop( 'Begin installing plugin', 'Begin installing plugins' ),\n\t\t\t'activate_link' \t\t\t\t \t\t\t=> _n_noop( 'Activate installed plugin', 'Activate installed plugins' ),\n\t\t\t'return' \t\t\t=> __( 'Return to Required Plugins Installer', $theme_text_domain ),\n\t\t\t'plugin_activated' \t\t\t=> __( 'Plugin activated successfully.', $theme_text_domain ),\n\t\t\t'complete' \t\t\t\t\t\t\t\t\t=> __( 'All plugins installed and activated successfully. %s', $theme_text_domain ), // %1$s = dashboard link\n\t\t\t'nag_type'\t\t\t\t\t\t\t\t\t=> 'updated' // Determines admin notice type - can only be 'updated' or 'error'\n\t\t)\n\t);\n\ttgmpa( $plugins, $config );\n}", "function onepiece_register_theme_customizer( $wp_customize ) {\n \n \n\t$wp_customize->remove_control('display_header_text');\n\t// remove default title / site-identity\n\t//$wp_customize->remove_section('title_tagline');\n\t// remove default colors\n\t$wp_customize->remove_control('header_textcolor'); \n\t$wp_customize->remove_control('background_color');\n\t//$wp_customize->remove_panel('colors');\n\t\n\t\n // add panels\n \t$wp_customize->add_panel('onepiece_elements_identity', array( \n \t'title' => __('Identity', 'onepiece'),\n \t'priority' => 10,\n \t));\n\t $wp_customize->add_panel('onepiece_media_panel', array(\n \t'title' => __('Api (in development)', 'onepiece'),\n\t\t\t'text' => __('in development', 'onepiece'),\n \t'priority' => 40,\n \t));\n\t $wp_customize->add_panel('onepiece_content_panel', array( \n \t'title' => __('Content', 'onepiece'),\n \t'priority' => 50,\n \t));\n\t $wp_customize->add_panel('onepiece_elements_panel', array( \n \t'title' => __('Elements', 'onepiece'),\n \t'priority' => 60,\n \t));\n\n\t $wp_customize->add_panel('onepiece_elements_responsive', array( \n \t'title' => __('Responsive', 'onepiece'),\n \t'priority' => 120,\n \t)); \n\t $wp_customize->add_panel('onepiece_content_style', array(\n \t'title' => __('Style', 'onepiece'),\n \t'priority' => 130,\n \t));\n\t\t\n\n\n\n\n \t// add / move sections\n \t$wp_customize->add_section('onepiece_identity_panel_logo', array( \n \t'title' => __('Logo image', 'onepiece'),\n \t'panel' => 'onepiece_elements_identity',\n\t\t'priority' => 10,\n \t)); \n \t$wp_customize->add_section('onepiece_identity_panel_featured_image', array( \n \t'title' => __('Sharing', 'onepiece'),\n \t'panel' => 'onepiece_elements_identity',\n\t\t\t'priority' => 30,\n \t));\n \t$wp_customize->add_section('onepiece_identity_panel_seo', array( \n \t'title' => __('SEO', 'onepiece'),\n \t'panel' => 'onepiece_elements_identity',\n\t\t\t'priority' => 40,\n \t));\n\n $wp_customize->add_section('onepiece_identity_stylelayout', array( \n \t'title' => __('Style & Layout', 'onepiece'),\n \t'panel' => 'onepiece_content_style',\n\t\t'priority' => 50,\n \t)); \n\n $wp_customize->add_section('colors', array( \n \t'title' => __('Colors', 'onepiece'),\n \t'panel' => 'onepiece_content_style',\n\t\t'priority' => 50,\n \t));\n\n $wp_customize->add_section('fonts', array(\n \t'title' => __('Fonts', 'onepiece'),\n \t'panel' => 'onepiece_content_style',\n\t\t'priority' => 60,\n \t));\n\n\t\t$wp_customize->add_section('icons', array(\n \t'title' => __('Icons & buttons', 'onepiece'),\n \t'panel' => 'onepiece_content_style',\n\t\t'priority' => 70,\n \t));\n\n\n\t\t$wp_customize->add_section('custom_css', array(\n \t'title' => __('Custom CSS', 'onepiece'),\n \t'panel' => 'onepiece_content_style',\n\t\t'priority' => 80,\n \t));\n\n\n\n\n\t/* Api & Media\n \t$wp_customize->add_section('onepiece_media_panel_wordpress', array(\n \t'title' => __('Wordpress', 'onepiece'),\n \t'panel' => 'onepiece_media_panel',\n\t\t\t'priority' => 30,\n \t));\n\n \t$wp_customize->add_section('onepiece_media_panel_linkedin', array(\n \t'title' => __('Linkedin', 'onepiece'),\n \t'panel' => 'onepiece_media_panel',\n\t\t\t'priority' => 30,\n \t));\n \t$wp_customize->add_section('onepiece_media_panel_facebook', array(\n \t'title' => __('Facebook', 'onepiece'),\n \t'panel' => 'onepiece_media_panel',\n\t\t\t'priority' => 30,\n \t));\n \t$wp_customize->add_section('onepiece_media_panel_twitter', array(\n \t'title' => __('Twitter', 'onepiece'),\n \t'panel' => 'onepiece_media_panel',\n\t\t\t'priority' => 30,\n \t));\n \t$wp_customize->add_section('onepiece_media_panel_github', array(\n \t'title' => __('Github', 'onepiece'),\n \t'panel' => 'onepiece_media_panel',\n\t\t\t'priority' => 30,\n \t));\n \t$wp_customize->add_section('onepiece_media_panel_google', array(\n \t'title' => __('Google', 'onepiece'),\n \t'panel' => 'onepiece_media_panel',\n\t\t\t'priority' => 30,\n \t));\n\t*/\n\n\n\n\t// Responsive panels\n \t$wp_customize->add_section('onepiece_responsive_small', array( \n \t'title' => __('Small', 'onepiece'),\n \t'panel' => 'onepiece_elements_responsive',\n\t\t'priority' => 10,\n \t));\n\n \t$wp_customize->add_section('onepiece_responsive_medium', array( \n \t'title' => __('Medium', 'onepiece'),\n \t'panel' => 'onepiece_elements_responsive',\n\t\t'priority' => 20,\n \t));\n \t$wp_customize->add_section('onepiece_responsive_large', array( \n \t'title' => __('Large', 'onepiece'),\n \t'panel' => 'onepiece_elements_responsive',\n\t\t'priority' => 30,\n \t));\n\n\t// Content panels\n \t$wp_customize->add_section('onepiece_content_panel_frontpage', array( \n \t'title' => __('Frontpage', 'onepiece'),\n \t'panel' => 'onepiece_content_panel',\n \t));\n\t\t\n \t$wp_customize->add_section('onepiece_content_sliderbar', array( \n \t'title' => __('Slider', 'onepiece'),\n \t'panel' => 'onepiece_content_panel',\n\t\t\t'priority' => 50,\n \t));\n\n \t$wp_customize->add_section('onepiece_content_panel_page', array( \n \t'title' => __('Page', 'onepiece'),\n \t'panel' => 'onepiece_content_panel',\n \t));\n \t$wp_customize->add_section('onepiece_content_panel_posts', array( \n \t'title' => __('Post', 'onepiece'),\n \t'panel' => 'onepiece_content_panel',\n \t));\n \t$wp_customize->add_section('onepiece_content_panel_product', array( \n \t'title' => __('Product', 'onepiece'),\n \t'panel' => 'onepiece_content_panel',\n \t));\n \t$wp_customize->add_section('onepiece_content_panel_list', array( \n \t'title' => __('List', 'onepiece'),\n \t'panel' => 'onepiece_content_panel',\n \t));\n \t$wp_customize->add_section('onepiece_content_panel_gallery', array( \n \t'title' => __('Gallery', 'onepiece'),\n \t'panel' => 'onepiece_content_panel',\n \t));\n \t\n\t// Elements panels\n\n \t$wp_customize->add_section('background_image', array(\n \t'title' => __('Background Image', 'onepiece'),\n \t'panel' => 'onepiece_elements_panel',\n\t\t\t'priority' => 10,\n \t));\n \t$wp_customize->add_section('onepiece_content_sliderbar', array( \n \t'title' => __('Slider', 'onepiece'),\n \t'panel' => 'onepiece_elements_panel',\n\t\t\t'priority' => 30,\n \t));\n\t\t\n \t$wp_customize->add_section('onepiece_content_mainpopup', array(\n \t'title' => __('Popup', 'onepiece'),\n \t'panel' => 'onepiece_elements_panel',\n\t\t\t'priority' => 50,\n \t));\n\t\t$wp_customize->add_section('onepiece_elements_topmenubar', array(\n \t'title' => __('Topbar', 'onepiece'),\n \t'panel' => 'onepiece_elements_panel',\n\t\t\t'priority' => 70,\n \t));\n \t$wp_customize->add_section('onepiece_elements_loginbar', array( \n \t'title' => __('Loginbar', 'onepiece'),\n \t'panel' => 'onepiece_elements_panel',\n\t\t\t'priority' => 90,\n \t));\n \t$wp_customize->add_section('onepiece_elements_mainmenubar', array( \n \t'title' => __('Main menubar', 'onepiece'),\n \t'panel' => 'onepiece_elements_panel',\n \t));\n\t\t\n \t$wp_customize->add_section('onepiece_elements_breadcrumbs', array(\n \t'title' => __('Breadcrumbs bar', 'onepiece'),\n \t'panel' => 'onepiece_elements_panel',\n \t));\n\n \t$wp_customize->add_section('onepiece_elements_sidebar', array( \n \t'title' => __('Main Sidebar', 'onepiece'),\n \t'panel' => 'onepiece_elements_panel',\n \t));\n \t$wp_customize->add_section('onepiece_elements_sidebar2', array( \n \t'title' => __('Second Sidebar', 'onepiece'),\n \t'panel' => 'onepiece_elements_panel',\n \t));\n \t$wp_customize->add_section('onepiece_elements_subcontent', array(\n \t'title' => __('Subcontentbar', 'onepiece'),\n \t'panel' => 'onepiece_elements_panel',\n \t));\n \t$wp_customize->add_section('onepiece_elements_bottommenubar', array( \n \t'title' => __('Footerbar', 'onepiece'),\n \t'panel' => 'onepiece_elements_panel',\n \t));\n\t\n\t // move sections\n\t $wp_customize->add_section('title_tagline', array( \n \t'title' => __('Title, Tagline & Icon image', 'onepiece'),\n \t'panel' => 'onepiece_elements_identity',\n\t\t'priority' => 20,\n \t));\n\t $wp_customize->add_section('header_image', array( \n \t'title' => __('Header Image', 'onepiece'),\n \t'panel' => 'onepiece_elements_panel',\n\t\t'priority' => 30,\n \t));\n\t\t\n\t// Frontpage (default)\n\t\t$wp_customize->add_section('static_front_page', array( \n \t'title' => __('Frontpage', 'onepiece'),\n \t'panel' => 'onepiece_content_panel',\n\t\t'priority' => 10,\n \t));\n\t\t\n\t\t\n\t\t\n\n\n\n\t/*\n\t *\n\t * IDENTITY\n\t *\n\t */\n\n\n\t\t$wp_customize->add_setting( 'onepiece_identity_logo_m', array( \n\t\t'sanitize_callback' => 'onepiece_sanitize_default', \n\t )); \n\t $wp_customize->add_setting( 'onepiece_identity_logo_s', array( \n\t\t'sanitize_callback' => 'onepiece_sanitize_default', \n\t )); \n\t\n\t $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'onepiece_identity_logo_m', array(\n \t'label' => __( 'Site Logo Image Medium', 'onepiece' ),\n \t'section' => 'onepiece_identity_panel_logo',\n \t'settings' => 'onepiece_identity_logo_m',\n\t\t'description' => __( 'Upload or select a medium sized image to use as site logo (replacing the site-title text on top).', 'onepiece' ),\n \t'priority' => 10,\n \t) ) );\n\n $wp_customize->add_setting( 'onepiece_identity_panel_logo_maxwidth' , array(\n\t\t'default' => '320', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_identity_panel_logo_maxwidth', array(\n \t'label' => __( 'Logo max width (px)', 'onepiece' ),\n \t'section' => 'onepiece_identity_panel_logo',\n \t'settings' => 'onepiece_identity_panel_logo_maxwidth',\n \t'type' => 'text',\n \t \t'description' => __( 'Max width (for best quality).', 'onepiece' ),\n \t)));\n\t\t\n $wp_customize->add_setting( 'onepiece_identity_panel_logo_minwidth' , array(\n\t\t'default' => '80', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_identity_panel_logo_minwidth', array(\n \t'label' => __( 'Logo min. width (px)', 'onepiece' ),\n \t'section' => 'onepiece_identity_panel_logo',\n \t'settings' => 'onepiece_identity_panel_logo_minwidth',\n \t'type' => 'text',\n \t \t'description' => __( 'Minimal width (mini size logo).', 'onepiece' ),\n \t)));\n\t $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'onepiece_identity_logo_s', array(\n \t'label' => __( 'Site Logo Image Small', 'onepiece' ),\n \t'section' => 'onepiece_identity_panel_logo',\n \t'settings' => 'onepiece_identity_logo_s',\n\t\t'description' => __( 'Upload or select a small sized image for alternative site logo (replacing the site-title text at the bottom).', 'onepiece' ),\n \t'priority' => 10,\n \t) ) );\t\n \t$wp_customize->add_setting( 'onepiece_identity_panel_logosmall_maxwidth' , array(\n\t\t'default' => '320', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_identity_panel_logosmall_maxwidth', array(\n \t'label' => __( 'Small Logo max width (px)', 'onepiece' ),\n \t'section' => 'onepiece_identity_panel_logo',\n \t'settings' => 'onepiece_identity_panel_logosmall_maxwidth',\n \t'type' => 'text',\n \t \t'description' => __( 'Max width (for best quality small logo).', 'onepiece' ),\n \t)));\n\t\t\n\t\t\n\t\t// IDENTITY - SHARING\n\t\t\n\t $wp_customize->add_setting( 'onepiece_identity_featured_image', array( \n\t\t'sanitize_callback' => 'onepiece_sanitize_default', \n\t )); \n\t $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'onepiece_identity_featured_image', array(\n \t'label' => __( 'Site featured image', 'onepiece' ),\n \t'section' => 'onepiece_identity_panel_featured_image',\n \t'settings' => 'onepiece_identity_featured_image',\n\t\t'description' => __( 'Upload or select a featured site-image for default sharing (social media, searchbots, trackers etc.)', 'onepiece' ),\n \t'priority' => 10,\n \t) ) );\n\t\t\n\t\t$wp_customize->add_setting( 'onepiece_identity_panel_sharing_description' , array(\n\t\t'default' => 'Check out this cool website!', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_identity_panel_sharing_description', array(\n \t'label' => __( 'Site featured(intro) text', 'onepiece' ),\n \t'section' => 'onepiece_identity_panel_featured_image',\n \t'settings' => 'onepiece_identity_panel_sharing_description',\n \t'type' => 'textarea',\n \t \t'description' => __( 'A short introduction text to share.', 'onepiece' ),\n \t)));\n\t\t\n\t\t// IDENTITY - SEO \n\t\t\n\t\t$wp_customize->add_setting( 'onepiece_identity_panel_seo_keywords' , array(\n\t\t'default' => 'cool, website, amazing, webdesign', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_identity_panel_seo_keywords', array(\n \t'label' => __( 'Site keywords (meta)', 'onepiece' ),\n \t'section' => 'onepiece_identity_panel_seo',\n \t'settings' => 'onepiece_identity_panel_seo_keywords',\n \t'type' => 'textarea',\n \t \t\t'description' => __( 'Default keywords csv text, Tune them to your frontpage content and returning text parts', 'onepiece' ),\n \t)));\n\t\t\n\t\t$wp_customize->add_setting( 'onepiece_identity_panel_seo_description' , array(\n\t\t'default' => 'Check out this cool website!', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_identity_panel_seo_description', array(\n \t'label' => __( 'Site description (meta)', 'onepiece' ),\n \t'section' => 'onepiece_identity_panel_seo',\n \t'settings' => 'onepiece_identity_panel_seo_description',\n \t'type' => 'textarea',\n \t \t\t'description' => __( 'Description text for SEO. Tune it to your keywords.', 'onepiece' ),\n \t)));\n\n\n\t\t$wp_customize->add_setting( 'onepiece_identity_panel_seo_trackcode' , array(\n\t\t'default' => '',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_identity_panel_seo_trackcode', array(\n \t'label' => __( 'Analytics Code', 'onepiece' ),\n \t'section' => 'onepiece_identity_panel_seo',\n \t'settings' => 'onepiece_identity_panel_seo_trackcode',\n \t'type' => 'textarea',\n \t \t\t'description' => __( 'Analytics Javascript Codes (ie. google js tracking). The code is place right after the body open tag.', 'onepiece' ),\n \t)));\n\n\n\t\t\n\t\t/**\n\t \t* Api & Media\n\t \t* Todo: Hookup to WSL (or other oauth plugin)\n\t \t*/\n\t\t\n\t\t// API & MEDIA\n\n\t\t// Linkedin\n\t\t$wp_customize->add_setting( 'onepiece_media_panel_linkedin_id' , array(\n\t\t'default' => '',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_media_panel_linkedin_id', array(\n \t'label' => __( 'Account ID', 'onepiece' ),\n \t'section' => 'onepiece_media_panel_linkedin',\n \t'settings' => 'onepiece_media_panel_linkedin_id',\n \t'type' => 'text',\n \t \t'description' => __( 'Account ID', 'onepiece' ),\n \t)));\n\t\t$wp_customize->add_setting( 'onepiece_media_panel_linkedin_api_id' , array(\n\t\t'default' => '',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_media_panel_linkedin_api_id', array(\n \t'label' => __( 'Api ID', 'onepiece' ),\n \t'section' => 'onepiece_media_panel_linkedin',\n \t'settings' => 'onepiece_media_panel_linkedin_api_id',\n \t'type' => 'text',\n \t \t'description' => __( 'Api ID (see https://auth0.com/docs/connections/social/linkedin)', 'onepiece' ),\n \t)));\n\t\t$wp_customize->add_setting( 'onepiece_media_panel_linkedin_api_secret' , array(\n\t\t'default' => '',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_media_panel_linkedin_api_secret', array(\n \t'label' => __( 'Api secret', 'onepiece' ),\n \t'section' => 'onepiece_media_panel_linkedin',\n \t'settings' => 'onepiece_media_panel_linkedin_api_secret',\n \t'type' => 'text',\n \t \t'description' => __( 'Api secret key (see https://auth0.com/docs/connections/social/linkedin)', 'onepiece' ),\n \t)));\n\n\t\t// Twitter\n\t\t$wp_customize->add_setting( 'onepiece_media_panel_twitter_id' , array(\n\t\t'default' => '',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_media_panel_twitter_id', array(\n \t'label' => __( 'Account ID', 'onepiece' ),\n \t'section' => 'onepiece_media_panel_twitter',\n \t'settings' => 'onepiece_media_panel_twitter_id',\n \t'type' => 'text',\n \t \t'description' => __( 'Account ID', 'onepiece' ),\n \t)));\n\t\t$wp_customize->add_setting( 'onepiece_media_panel_twitter_api_id' , array(\n\t\t'default' => '',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_media_panel_twitter_api_id', array(\n \t'label' => __( 'Api ID', 'onepiece' ),\n \t'section' => 'onepiece_media_panel_twitter',\n \t'settings' => 'onepiece_media_panel_twitter_api_id',\n \t'type' => 'text',\n \t \t'description' => __( 'Api ID (see hhttps://dev.twitter.com/oauth/overview/introduction)', 'onepiece' ),\n \t)));\n\t\t$wp_customize->add_setting( 'onepiece_media_panel_twitter_api_secret' , array(\n\t\t'default' => '',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_media_panel_twitter_api_secret', array(\n \t'label' => __( 'Api secret', 'onepiece' ),\n \t'section' => 'onepiece_media_panel_twitter',\n \t'settings' => 'onepiece_media_panel_twitter_api_secret',\n \t'type' => 'text',\n \t \t'description' => __( 'Api secret key (see https://dev.twitter.com/oauth/overview/introduction)', 'onepiece' ),\n \t)));\n\n\n\t\t// Facebook\n\t\t$wp_customize->add_setting( 'onepiece_media_panel_facebook_id' , array(\n\t\t'default' => '',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_media_panel_facebook_id', array(\n \t'label' => __( 'Account ID', 'onepiece' ),\n \t'section' => 'onepiece_media_panel_facebook',\n \t'settings' => 'onepiece_media_panel_facebook_id',\n \t'type' => 'text',\n \t \t'description' => __( 'Account ID', 'onepiece' ),\n \t)));\n\t\t$wp_customize->add_setting( 'onepiece_media_panel_facebook_api_id' , array(\n\t\t'default' => '',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_media_panel_facebook_api_id', array(\n \t'label' => __( 'Api ID', 'onepiece' ),\n \t'section' => 'onepiece_media_panel_facebook',\n \t'settings' => 'onepiece_media_panel_facebook_api_id',\n \t'type' => 'text',\n \t \t'description' => __( 'Api ID (see https://developers.facebook.com/docs/apps/register)', 'onepiece' ),\n \t)));\n\t\t$wp_customize->add_setting( 'onepiece_media_panel_facebook_api_secret' , array(\n\t\t'default' => '',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_media_panel_facebook_api_secret', array(\n \t'label' => __( 'Api secret', 'onepiece' ),\n \t'section' => 'onepiece_media_panel_facebook',\n \t'settings' => 'onepiece_media_panel_facebook_api_secret',\n \t'type' => 'text',\n \t \t'description' => __( 'Api secret key (see https://developers.facebook.com/docs/apps/register)', 'onepiece' ),\n \t)));\n\n\t\t// Github\n\t\t$wp_customize->add_setting( 'onepiece_media_panel_github_id' , array(\n\t\t'default' => '',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_media_panel_github_id', array(\n \t'label' => __( 'Account ID', 'onepiece' ),\n \t'section' => 'onepiece_media_panel_github',\n \t'settings' => 'onepiece_media_panel_github_id',\n \t'type' => 'text',\n \t \t'description' => __( 'Account ID', 'onepiece' ),\n \t)));\n\t\t$wp_customize->add_setting( 'onepiece_media_panel_github_api_id' , array(\n\t\t'default' => '',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_media_panel_github_api_id', array(\n \t'label' => __( 'Api ID', 'onepiece' ),\n \t'section' => 'onepiece_media_panel_github',\n \t'settings' => 'onepiece_media_panel_github_api_id',\n \t'type' => 'text',\n \t \t'description' => __( 'Api ID (see https://developer.github.com/guides/basics-of-authentication/)', 'onepiece' ),\n \t)));\n\t\t$wp_customize->add_setting( 'onepiece_media_panel_github_api_secret' , array(\n\t\t'default' => '',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_media_panel_github_api_secret', array(\n \t'label' => __( 'Api secret', 'onepiece' ),\n \t'section' => 'onepiece_media_panel_github',\n \t'settings' => 'onepiece_media_panel_github_api_secret',\n \t'type' => 'text',\n \t \t'description' => __( 'Api secret key (see https://developer.github.com/guides/basics-of-authentication/)', 'onepiece' ),\n \t)));\n\n\n\n\t\t// Google\n\t\t//https://developers.google.com/identity/protocols/OAuth2\n\t\t$wp_customize->add_setting( 'onepiece_media_panel_google_id' , array(\n\t\t'default' => '',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_media_panel_google_id', array(\n \t'label' => __( 'Account ID', 'onepiece' ),\n \t'section' => 'onepiece_media_panel_google',\n \t'settings' => 'onepiece_media_panel_google_id',\n \t'type' => 'text',\n \t \t'description' => __( 'Account ID', 'onepiece' ),\n \t)));\n\t\t$wp_customize->add_setting( 'onepiece_media_panel_google_api_id' , array(\n\t\t'default' => '',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_media_panel_google_api_id', array(\n \t'label' => __( 'Api ID', 'onepiece' ),\n \t'section' => 'onepiece_media_panel_google',\n \t'settings' => 'onepiece_media_panel_google_api_id',\n \t'type' => 'text',\n \t \t'description' => __( 'Api ID (see https://developers.google.com/identity/sign-in/web/devconsole-project)', 'onepiece' ),\n \t)));\n\t\t$wp_customize->add_setting( 'onepiece_media_panel_google_api_secret' , array(\n\t\t'default' => '',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_media_panel_google_api_secret', array(\n \t'label' => __( 'Api secret', 'onepiece' ),\n \t'section' => 'onepiece_media_panel_google',\n \t'settings' => 'onepiece_media_panel_google_api_secret',\n \t'type' => 'text',\n \t \t'description' => __( 'Api secret key (see https://developers.google.com/identity/sign-in/web/devconsole-project)', 'onepiece' ),\n \t)));\n\t// Pinterest\n\t// Instagram\n\t// Thumblr\n\t// ..\n\n\t\t\n\n\t/*\n\t *\n\t * CONTENT\n\t *\n\t */\n\n\t\t// CONTENT - SLIDER \n\t\t$wp_customize->add_setting( 'onepiece_content_sliderbar_display' , array(\n\t\t'default' => 'none', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_sliderbar_display', array(\n \t'label' => __( 'Slider default display', 'onepiece' ),\n \t'section' => 'onepiece_content_sliderbar',\n \t'settings' => 'onepiece_content_sliderbar_display',\n \t'type' => 'select',\n \t \t'description' => __( 'Select slider default display for categories and posts. Overwrite these defaults in the page slider settings.', 'onepiece'),\n \t'choices' => array(\n \t'none' => __( 'Do not display by default', 'onepiece' ),\n \t'replaceheader' => __( 'Replace header', 'onepiece' ),\n \t\t'belowheader' => __( 'Below header', 'onepiece' ),\n \t\t//'topcontent' => __( 'On top of the content', 'onepiece' ),\n \t\t//'bottomcontent' => __( 'At the bottom of the content', 'onepiece' ),\n \t\t'topfooter' => __( 'On top of the footer', 'onepiece' ),\n \t)\n \t)));\n\t\t$wp_customize->add_setting( 'onepiece_content_sliderbar_category' , array(\n\t\t'default' => 'uncategorized', \n \t//'capability' => 'edit_theme_options',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_sliderbar_category', array(\n \t'label' => __( 'Slider category', 'onepiece' ),\n \t'section' => 'onepiece_content_sliderbar',\n \t'settings' => 'onepiece_content_sliderbar_category', \n \t \t'description' => __( 'Select the post category for the slider.', 'onepiece' ),\n \t'type' => 'select',\n \t\t'choices' => get_categories_select()\n \t)));\n\t\t\n\t\t$wp_customize->add_setting( 'onepiece_content_sliderbar_height' , array(\n\t\t'default' => '33', \n \t//'capability' => 'edit_theme_options',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_sliderbar_height', array(\n \t'label' => __( 'Slider height', 'onepiece' ),\n \t'section' => 'onepiece_content_sliderbar',\n \t'settings' => 'onepiece_content_sliderbar_height', \n \t \t'description' => __( 'Height (%)', 'onepiece' ),\n \t'type' => 'select',\n \t\t'choices' => array(\n \t'20' => __( '20', 'onepiece' ),\n \t'25' => __( '25', 'onepiece' ),\n \t'33' => __( '33', 'onepiece' ),\n \t'40' => __( '40', 'onepiece' ),\n \t'45' => __( '45', 'onepiece' ),\n \t\t'50' => __( '50', 'onepiece' ),\n \t\t'60' => __( '60', 'onepiece' ),\n \t\t'66' => __( '66', 'onepiece' ),\n \t\t'75' => __( '75', 'onepiece' ),\n \t\t'80' => __( '80', 'onepiece' ),\n \t'85' => __( '85', 'onepiece' ),\n \t\t'100' => __( '100', 'onepiece' ),\n \t)\n \t)));\n\t\t\n\t\t$wp_customize->add_setting( 'onepiece_content_sliderbar_width' , array(\n\t\t'default' => 'margin', \n \t//'capability' => 'edit_theme_options',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_sliderbar_width', array(\n \t'label' => __( 'Slider width', 'onepiece' ),\n \t'section' => 'onepiece_content_sliderbar',\n \t'settings' => 'onepiece_content_sliderbar_width', \n \t \t'description' => __( 'Width (relative to)', 'onepiece' ),\n \t'type' => 'select',\n \t\t'choices' => array(\n \t'margin' => __( 'content outer margin', 'onepiece' ),\n \t'full' => __( 'window', 'onepiece' ),\n \t\n \t)\n \t)));\n\t\t\n\t\t\n\t\t\n\t\t// CONTENT - POPUP \n\t\t$wp_customize->add_setting( 'onepiece_content_mainpopup_display' , array(\n\t\t'default' => 'medium', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_mainpopup_display', array(\n \t'label' => __( 'Popup display size', 'onepiece' ),\n \t'section' => 'onepiece_content_mainpopup',\n \t'settings' => 'onepiece_content_mainpopup_display',\n \t'type' => 'select',\n \t \t\t'description' => __( 'Select popup default display size.', 'onepiece'),\n \t'choices' => array(\n \t'large' => __( 'Wide screen', 'onepiece' ),\n \t'medium' => __( 'Medium box', 'onepiece' ),\n \t\t'small' => __( 'Small box', 'onepiece' ),\n \t)\n \t)));\n\t\t\n\t\t\n\t\t// Popup overlay color bg\n\t\t$wp_customize->add_setting( 'onepiece_content_mainpopup_overlaycolor' , array(\n\t\t'default' => '#ffffff', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n\t\t$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'onepiece_content_mainpopup_overlaycolor', array(\n\t\t'label' => __( 'Background overlay color', 'onepiece' ),\n\t\t'section' => 'onepiece_content_mainpopup',\n\t\t'settings' => 'onepiece_content_mainpopup_overlaycolor',\n \t) ) ); \n\t\t\n\t\t$wp_customize->add_setting( 'onepiece_content_mainpopup_overlayopacity' , array(\n\t\t'default' => '80', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_mainpopup_overlayopacity', array(\n \t'label' => __( 'Background overlay transparency', 'onepiece' ),\n \t'section' => 'onepiece_content_mainpopup',\n \t'settings' => 'onepiece_content_mainpopup_overlayopacity',\n \t'type' => 'text',\n \t \t'description' => __( 'Overlay transparency (percentage).', 'onepiece' ),\n \t)));\n\n\n \n \t// CONTENT - PAGES \n\t\t$wp_customize->add_setting( 'onepiece_content_panel_page_authortime' , array(\n\t\t'default' => 'none', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n\t\t\n\t\t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_panel_page_authortime', array(\n \t'label' => __( 'Date/time & Author', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_page',\n \t'settings' => 'onepiece_content_panel_page_authortime',\n \t'type' => 'select',\n \t \t'description' => __( 'Page date/time & author name display', 'onepiece' ),\n \t'choices' => array(\n \t'none' => __( 'No display', 'onepiece' ),\n \t'both' => __( 'Display both', 'onepiece' ),\n \t'date' => __( 'Display date only', 'onepiece' ),\n \t'author' => __( 'Display author name only', 'onepiece' ),\n \t)\n \t)));\n\n\n \t// CONTENT - POSTS - FEATURED IMAGE DISPLAY\n\n\t// Prepare plugin options:\n\t$featured_images_options = array(\n \t'default' => __( 'On top of the content', 'onepiece' ),\n \t'left' => __( 'Inline left with content (medium sized)', 'onepiece' ),\n \t'right' => __( 'Inline right with content (medium sized)', 'onepiece' ),\n \t'replace' => __( 'Replace Header Window width', 'onepiece' ),\n \t'replacemargin' => __( 'Replace Header Content width', 'onepiece' ),\n \t);\n\n\t// check for multiple featured images and extend/adjust options\n\tif( class_exists('Dynamic_Featured_Image') ) {\n\t\t$featured_images_options = array(\n \t'default' => __( 'On top of the content with thumbnav', 'onepiece' ),\n \t'left' => __( 'Inline left with thumbnav (medium sized)', 'onepiece' ),\n \t'right' => __( 'Inline right with thumbnav (medium sized)', 'onepiece' ),\n \t'replace' => __( 'Replace Header with thumbnav (Window width)', 'onepiece' ),\n \t'replacemargin' => __( 'Replace Header with thumbnav (Content width)', 'onepiece' ),\n \t);\n\t}\n\t\n\t$wp_customize->add_setting( 'onepiece_content_panel_posts_featuredimage' , array(\n\t\t'default' => 'default', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n\t\t\n\t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_panel_posts_featuredimage', array(\n \t'label' => __( 'Featured image display', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_posts',\n \t'settings' => 'onepiece_content_panel_posts_featuredimage',\n \t'type' => 'select',\n \t \t 'description' => __( 'Featured image display in single post view', 'onepiece' ),\n \t'choices' => $featured_images_options\n \t)));\n\n\n\t\t//CONTENT - POSTS - IMAGE WIDTH\n\t\t$wp_customize->add_setting( 'onepiece_content_panel_posts_imgwidth' , array(\n\t\t'default' => '37',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_panel_posts_imgwidth', array(\n \t'label' => __( 'Image width', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_posts',\n \t'settings' => 'onepiece_content_panel_posts_imgwidth',\n \t'type' => 'text',\n \t \t\t'description' => __( 'Single Post Image width (only left/right in %)', 'onepiece' ),\n \t)));\n\t\t\n\t\t// CONTENT - POSTS - SINGLE POST ALIGNMENT\n\t\t$wp_customize->add_setting( 'onepiece_content_panel_posts_textalign' , array(\n\t\t'default' => 'left', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n\t\t\n\t\t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_panel_posts_textalign', array(\n \t'label' => __( 'Text alignment', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_posts',\n \t'settings' => 'onepiece_content_panel_posts_textalign',\n \t'type' => 'select',\n \t \t 'description' => __( 'Text alignment in single post view', 'onepiece' ),\n \t'choices' => array(\n \t'left' => __( 'Left', 'onepiece' ),\n \t'right' => __( 'Right', 'onepiece' ),\n \t'center' => __( 'Center', 'onepiece' ),\n \t)\n \t)));\n\t\t\n\n\t\t// CONTENT - POSTS - TIME & AUTHOR\n\t\t$wp_customize->add_setting( 'onepiece_content_panel_postlist_authortime' , array(\n\t\t'default' => 'none', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n\t\t\n\t\t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_panel_postlist_authortime', array(\n \t'label' => __( 'Date/time & Author', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_posts',\n \t'settings' => 'onepiece_content_panel_postlist_authortime',\n \t'type' => 'select',\n \t \t'description' => __( 'Post date/time & author name display', 'onepiece' ),\n \t'choices' => array(\n \t'none' => __( 'No display', 'onepiece' ),\n \t'both' => __( 'Display both', 'onepiece' ),\n \t'date' => __( 'Display date only', 'onepiece' ),\n \t'datesingle' => __( 'Date in single post view only', 'onepiece' ),\n \t'single' => __( 'Both in single post view only', 'onepiece' ),\n \t)\n \t)));\n\t\n\t\t// CONTENT - POSTS - DATE FORMAT\n\t\t$wp_customize->add_setting( 'onepiece_content_panel_posts_dateformat' , array(\n\t\t'default' => '1', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n\t\t\n\t\t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_panel_posts_dateformat', array(\n \t'label' => __( 'Post Date Format', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_posts',\n \t'settings' => 'onepiece_content_panel_posts_dateformat',\n \t'type' => 'select',\n \t \t 'description' => __( 'Date display format', 'onepiece' ),\n \t'choices' => array(\n \t'1' => __( 'Time Ago', 'onepiece' ),\n \t'2' => __( 'Date', 'onepiece' ),\n \t'3' => __( 'Date and Time', 'onepiece' ),\n \t)\n \t)));\n\t\t\n\n\t\t\n\t\t// CONTENT - POSTS - Tags display not / belowtitle / belowcontent\n\t\t$wp_customize->add_setting( 'onepiece_content_panel_posts_tagdisplay' , array(\n\t\t'default' => 'belowcontent', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n\t\t\n\t\t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_panel_posts_tagdisplay', array(\n \t'label' => __( 'Tag display', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_posts',\n \t'settings' => 'onepiece_content_panel_posts_tagdisplay',\n \t'type' => 'select',\n \t \t 'description' => __( 'Tag display in single post view', 'onepiece' ),\n \t'choices' => array(\n \t'not' => __( 'No display', 'onepiece' ),\n \t'belowtitle' => __( 'Below title', 'onepiece' ),\n 'belowcontent' => __( 'Below content', 'onepiece' ),\n \t)\n \t)));\n\t\t\n\t\t\n\t\t// CONTENT - POSTS - Post related Categories display not / belowheader / belowcontent\n\t\t$wp_customize->add_setting( 'onepiece_content_panel_posts_catdisplay' , array(\n\t\t'default' => 'belowcontent', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n\t\t\n\t\t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_panel_posts_catdisplay', array(\n \t'label' => __( 'Category display', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_posts',\n \t'settings' => 'onepiece_content_panel_posts_catdisplay',\n \t'type' => 'select',\n \t \t 'description' => __( 'Related Categories display in single post view', 'onepiece' ),\n \t'choices' => array(\n \t'not' => __( 'No display', 'onepiece' ),\n \t'belowtitle' => __( 'Below title', 'onepiece' ),\n 'belowcontent' => __( 'Below content', 'onepiece' ),\n \t)\n \t)));\n\t\t\n\t\t// CONTENT - POSTS - Next / Previous links not / belowheader / belowcontent / contentside\n\t\t$wp_customize->add_setting( 'onepiece_content_panel_posts_nextprevdisplay' , array(\n\t\t'default' => 'belowcontent', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n\t\t\n\t\t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_panel_posts_nextprevdisplay', array(\n \t'label' => __( 'Next / Previous link display', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_posts',\n \t'settings' => 'onepiece_content_panel_posts_nextprevdisplay',\n \t'type' => 'select',\n \t \t 'description' => __( 'Next and Prev link display in single post view', 'onepiece' ),\n \t'choices' => array(\n \t'not' => __( 'No display', 'onepiece' ),\n 'belowcontent' => __( 'Below content', 'onepiece' ),\n 'abovefooter' => __( 'Above footer (end content)', 'onepiece' ),\n 'contentside' => __( 'On content sides', 'onepiece' ),\n \t)\n \t)));\n\t\t\n\t\t\n\t\t$wp_customize->add_setting( 'onepiece_content_panel_posts_previcon' , array(\n\t\t'default' => '<webicon icon=\"fa:chevron-left\"/>',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_panel_posts_previcon', array(\n \t'label' => __( 'Prev post button', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_posts',\n \t'settings' => 'onepiece_content_panel_posts_previcon',\n \t'type' => 'text',\n \t \t'description' => __( 'Prev post button text and/or icon html', 'onepiece' ),\n \t)));\n\n\t\t$wp_customize->add_setting( 'onepiece_content_panel_posts_nexticon' , array(\n\t\t'default' => '<webicon icon=\"fa:chevron-right\"/>',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_panel_posts_nexticon', array(\n \t'label' => __( 'Next post button', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_posts',\n \t'settings' => 'onepiece_content_panel_posts_nexticon',\n \t'type' => 'text',\n \t \t'description' => __( 'Next post button text and/or icon html', 'onepiece' ),\n \t)));\n\n\t\t$wp_customize->add_setting( 'onepiece_content_panel_posts_nextprevtitle' , array(\n\t\t'default' => 'none',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n\n\t\t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_panel_posts_nextprevtitle', array(\n \t'label' => __( 'Next / Previous post title', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_posts',\n \t'settings' => 'onepiece_content_panel_posts_nextprevtitle',\n \t'type' => 'select',\n \t \t 'description' => __( 'Next and Prev title link display in buttons', 'onepiece' ),\n \t'choices' => array(\n \t'none' => __( 'No display', 'onepiece' ),\n 'beside' => __( 'Show title besides custom icon/text', 'onepiece' ),\n 'above' => __( 'Show title above custom icon/text', 'onepiece' ),\n 'below' => __( 'Show title below custom icon/text', 'onepiece' ),\n \t)\n \t)));\n\n\n\n\n\n\n\n\n\n\n\n\t\t/*\n\t\tProduct\n\t\t.. turn off product options\n\t\tproduct order email address\n\t\t*/\n\n\n\n\t\t// CONTENT - PRODUCT - orderby\n \t$wp_customize->add_setting( 'onepiece_content_panel_product_orderby_display' , array(\n\t\t'default' => 'none',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_panel_product_orderby_display', array(\n \t'label' => __( 'Product order options', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_product',\n \t'settings' => 'onepiece_content_panel_product_orderby_display',\n \t'type' => 'select',\n \t \t'description' => __( 'Select order option', 'onepiece' ),\n \t'choices' => array(\n \t'none' => __( 'Do not use', 'onepiece' ),\n \t'email' => __( 'Order by Email', 'onepiece' ),\n \t)\n \t)));\n\n\t\t// CONTENT - PRODUCT - ORDER BY EMAIL\n \t$wp_customize->add_setting( 'onepiece_content_panel_product_orderemailaddress' , array(\n\t\t'default' => get_option('admin_email'), \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_panel_product_orderemailaddress', array(\n \t'label' => __( 'Order-by-Email address', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_product',\n \t'settings' => 'onepiece_content_panel_product_orderemailaddress',\n \t'type' => 'email',\n \t \t'description' => __( 'Email address for sales (order by mail)', 'onepiece' ),\n \t)));\n\t\t\n\t\t// http://wordpress.stackexchange.com/questions/27856/is-there-a-way-to-send-html-formatted-emails-with-wordpress-wp-mail-function\n\t\t// onepiece_content_panel_product\n\n\n\n\n\t\t//Product LABELS\n\t\t$wp_customize->add_setting( 'onepiece_content_panel_product_label_new' , array(\n\t\t'default' => 'New',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_panel_product_label_new', array(\n \t'label' => __( 'Label New', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_product',\n \t'settings' => 'onepiece_content_panel_product_label_new',\n \t'type' => 'text',\n \t \t'description' => __( 'Label text and/or icon html', 'onepiece' ),\n \t)));\n\n\t\t$wp_customize->add_setting( 'onepiece_content_panel_product_label_special' , array(\n\t\t'default' => 'Special',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_panel_product_label_special', array(\n \t'label' => __( 'Label Special', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_product',\n \t'settings' => 'onepiece_content_panel_product_label_special',\n \t'type' => 'text',\n \t \t'description' => __( 'Label text and/or icon html', 'onepiece' ),\n \t)));\n\n\t\t$wp_customize->add_setting( 'onepiece_content_panel_product_label_featured' , array(\n\t\t'default' => 'Featured',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_panel_product_label_featured', array(\n \t'label' => __( 'Label Featured', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_product',\n \t'settings' => 'onepiece_content_panel_product_label_featured',\n \t'type' => 'text',\n \t \t'description' => __( 'Label text and/or icon html', 'onepiece' ),\n \t)));\n\n\t\t$wp_customize->add_setting( 'onepiece_content_panel_product_label_comingsoon' , array(\n\t\t'default' => 'Coming soon',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_panel_product_label_comingsoon', array(\n \t'label' => __( 'Label Coming Soon', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_product',\n \t'settings' => 'onepiece_content_panel_product_label_comingsoon',\n \t'type' => 'text',\n \t \t'description' => __( 'Label text and/or icon html', 'onepiece' ),\n \t)));\n\n\t\t$wp_customize->add_setting( 'onepiece_content_panel_product_label_alltimefavourite' , array(\n\t\t'default' => 'All time favourite',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_panel_product_label_alltimefavourite', array(\n \t'label' => __( 'Label All Time Favourite', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_product',\n \t'settings' => 'onepiece_content_panel_product_label_alltimefavourite',\n \t'type' => 'text',\n \t \t'description' => __( 'Label text and/or icon html', 'onepiece' ),\n \t)));\n\t\t\n\t\n\t\n\n \t// CONTENT - LIST - HIGHLIGHT\n \t$wp_customize->add_setting( 'onepiece_content_panel_postlist_firstcount' , array(\n\t\t'default' => '3', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_panel_postlist_firstcount', array(\n \t'label' => __( 'Highlight first posts', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_list',\n \t'settings' => 'onepiece_content_panel_postlist_firstcount',\n \t'type' => 'text',\n \t \t\t'description' => __( 'Amount of first posts to highlight in a (basic)list.', 'onepiece' ),\n \t)));\n\t\n\t\n\t\t// CONTENT - LIST - DATE FORMAT \n\t\t$wp_customize->add_setting( 'onepiece_content_panel_postlist_dateformat' , array(\n\t\t'default' => '1', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n\t\t\n\t\t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_panel_postlist_dateformat', array(\n \t'label' => __( 'Post listed date Format', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_list',\n \t'settings' => 'onepiece_content_panel_postlist_dateformat',\n \t'type' => 'select',\n \t \t 'description' => __( 'Date display format', 'onepiece' ),\n \t'choices' => array(\n \t'1' => __( 'Time Ago', 'onepiece' ),\n \t'2' => __( 'Date', 'onepiece' ),\n \t'3' => __( 'Date and Time', 'onepiece' ),\n \t)\n \t)));\n\t\n\t\t\n\t\t// CONTENT - LIST - EXCERPT LENGTH\n \t$wp_customize->add_setting( 'onepiece_content_panel_postlist_excerptlength' , array(\n\t\t'default' => '25', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_panel_postlist_excerptlength', array(\n \t'label' => __( 'Excerpt Length', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_list',\n \t'settings' => 'onepiece_content_panel_postlist_excerptlength',\n \t'type' => 'text',\n \t \t'description' => __( 'Amount of words for intro texts in a (basic) list.', 'onepiece' ),\n \t)));\n\n\t\t// CONTENT - LIST - IMAGE ALIGNMENT\n\t\t$wp_customize->add_setting( 'onepiece_content_panel_postlist_inlineimage' , array(\n\t\t'default' => 'left', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n\t\t\n\t\t/* check for multiple featured images and extend/adjust options\n\t\tif( class_exists('Dynamic_Featured_Image') ) {\n\t\t\t$featured_images_options = array(\n\t\t\t\t\t\t'default' => __( 'On top of the content with thumbnav', 'onepiece' ),\n\t\t\t\t\t\t'left' => __( 'Inline left with thumbnav (medium sized)', 'onepiece' ),\n\t\t\t\t\t\t'right' => __( 'Inline right with thumbnav (medium sized)', 'onepiece' ),\n\t\t\t\t\t\t'replace' => __( 'Replace Header with thumbnav (Window width)', 'onepiece' ),\n\t\t\t\t\t\t\t'replacemargin' => __( 'Replace Header with thumbnav (Content width)', 'onepiece' ),\n\t\t\t\t);\n\t\t}*/\n\t\t\n\t\t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_panel_postlist_inlineimage', array(\n \t'label' => __( 'Inline image alignment', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_list',\n \t'settings' => 'onepiece_content_panel_postlist_inlineimage',\n \t'type' => 'select',\n \t \t 'description' => __( 'Image default alignment in post excerpts', 'onepiece' ),\n \t'choices' => array(\n \t'left' => __( 'Left', 'onepiece' ),\n \t'right' => __( 'Right', 'onepiece' ),\n \t'zigzag' => __( 'Inline odd left and even right', 'onepiece' ),\n \t'center' => __( 'Center', 'onepiece' ),\n \t)\n \t)));\n\n\n\n\t\t//CONTENT - LIST - IMAGE WIDTH\n\t\t$wp_customize->add_setting( 'onepiece_content_panel_list_imgwidth' , array(\n\t\t'default' => '37',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_panel_product_label_new', array(\n \t'label' => __( 'Image width', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_list',\n \t'settings' => 'onepiece_content_panel_list_imgwidth',\n \t'type' => 'text',\n \t \t\t'description' => __( 'Listed Post Image width (left/right in %)', 'onepiece' ),\n \t)));\n\t\t\n\t\t\n\t\t// CONTENT - LIST - EXCERPT ALIGNMENT\n\t\t$wp_customize->add_setting( 'onepiece_content_panel_postlist_textalign' , array(\n\t\t'default' => 'left', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n\t\t\n\t\t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_panel_postlist_textalign', array(\n \t'label' => __( 'Excerpt Text alignment', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_list',\n \t'settings' => 'onepiece_content_panel_postlist_textalign',\n \t'type' => 'select',\n \t \t 'description' => __( 'Text alignment in post content in list view', 'onepiece' ),\n \t'choices' => array(\n \t'left' => __( 'Left', 'onepiece' ),\n \t'right' => __( 'Right', 'onepiece' ),\n \t'center' => __( 'Center', 'onepiece' ),\n \t)\n \t)));\n\t\t\n\t\t\n\t\t// CONTENT - LIST - READMORE\n\t\t$wp_customize->add_setting( 'onepiece_content_panel_posts_readmore' , array(\n\t\t'default' => 'none', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_panel_posts_readmore', array(\n \t'label' => __( 'Post Read more', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_list',\n \t'settings' => 'onepiece_content_panel_posts_readmore',\n \t'type' => 'select',\n \t \t'description' => __( 'Select display type', 'onepiece' ),\n \t'choices' => array(\n \t'none' => __( 'No readmore button', 'onepiece' ),\n \t'inline' => __( 'Inline after the intro text', 'onepiece' ),\n \t\t'right' => __( 'Right side below intro tekst', 'onepiece' ),\n \t\t'left' => __( 'Left side below intro tekst', 'onepiece' ),\n \t)\n \t)));\n\n\t\t\n \t// CONTENT - LIST - EXCLUDE CATEGORIES Add multi select \n\t\t// source used: http://themefoundation.com/customizer-multiple-category-control/\n\t\t// .. http://jayj.dk/multiple-select-lists-theme-customizer/\n\t\t$wp_customize->add_setting( 'onepiece_content_exclude_categories' , array( \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n\t\t \n\t\t$wp_customize->add_control(\n\t\t\tnew onepiece_multiselect_exclude_categories(\n\t\t\t\t$wp_customize,\n\t\t\t\t'onepiece_content_exclude_categories',\n\t\t\t\tarray(\n\t\t\t\t\t'label' => __( 'Exclude Categories', 'onepiece' ),\n \t \t\t\t'description' => __( 'Select post categories to be excluded from the main loop (post overview)', 'onepiece' ),\n\t\t\t\t\t'section' => 'onepiece_content_panel_list',\n\t\t\t\t\t'settings' => 'onepiece_content_exclude_categories'\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t\n \t// CONTENT - LIST - category title / text\n \t$wp_customize->add_setting( 'onepiece_content_panel_list_titledisplay' , array(\n\t\t'default' => 'title', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_panel_list_titledisplay', array(\n \t'label' => __( 'Category Title & Description', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_list',\n \t'settings' => 'onepiece_content_panel_list_titledisplay',\n \t'type' => 'select',\n \t \t'description' => __( 'Select display type', 'onepiece' ),\n \t'choices' => array(\n \t'none' => __( 'No title', 'onepiece' ),\n \t'title' => __( 'Title', 'onepiece' ),\n \t\t'text' => __( 'Title and description', 'onepiece' ),\n \t)\n \t)));\n\n \t// CONTENT - GALLERY \n \t$wp_customize->add_setting( 'onepiece_content_gallery_category' , array(\n\t\t'default' => 'uncategorized', \n \t//'capability' => 'edit_theme_options',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_gallery_category', array(\n \t'label' => __( 'Default category', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_gallery',\n \t'settings' => 'onepiece_content_gallery_category', \n \t \t'description' => __( 'Select the default category for the gallery.', 'onepiece' ),\n \t'type' => 'select',\n \t\t'choices' => get_categories_select()\n \t)));\n\t\t\n\t // CONTENT - GALELRY - Link Post list Widget\n\t\t$wp_customize->add_setting( 'onepiece_content_gallery_linkpostlistwidget' , array(\n\t\t'default' => 'yes',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n\t\t\n\t\t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_content_gallery_linkpostlistwidget', array(\n \t'label' => __( 'Link widget click', 'onepiece' ),\n \t'section' => 'onepiece_content_panel_gallery',\n \t'settings' => 'onepiece_content_gallery_linkpostlistwidget',\n \t'type' => 'select',\n \t \t'description' => __( 'Link post-list-widget items to gallery click action', 'onepiece' ),\n \t'choices' => array(\n \t'no' => __( 'No', 'onepiece' ),\n \t'yes' => __( 'Yes', 'onepiece' ),\n \t)\n \t)));\n\n\n\n\n\n\n\t/*\n\t *\n\t * ELEMENTS\n\t *\n\t */\n\n\n\t\t// ELEMENTS - HEADER IMAGE - WIDTH\n\t\t$wp_customize->add_setting( 'onepiece_elements_headerimage_width' , array(\n\t\t'default' => 'outer', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n\t\t\n\t\t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_headerimage_width', array(\n \t'label' => __( 'Header image width', 'onepiece' ),\n \t'section' => 'header_image',\n \t'settings' => 'onepiece_elements_headerimage_width',\n \t'type' => 'radio',\n \t \t'description' => __( 'Select header image width', 'onepiece' ),\n \t'choices' => array(\n \t'outer' => __( 'Content (outermargin)', 'onepiece' ),\n \t'full' => __( 'Full (window)', 'onepiece' ),\n \t)\n \t)));\n\t\t// ELEMENTS - HEADER IMAGE (min) HEIGHT\n \t$wp_customize->add_setting( 'onepiece_elements_headerimage_height' , array(\n\t\t'default' => '560', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_headerimage_height', array(\n \t'label' => __( 'Header Min-height', 'onepiece' ),\n \t'section' => 'header_image',\n \t'settings' => 'onepiece_elements_headerimage_height',\n \t'type' => 'number',\n \t \t'description' => __( 'Height (min-height) in px', 'onepiece' ),\n \t)));\n\t\t\n\n\t\t// ELEMENTS - HEADER IMAGE - OVERLAY\n\t\t$wp_customize->add_setting( 'onepiece_elements_headerimage_overlay' , array(\n\t\t'default' => 'none',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n\n\t\t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_headerimage_overlay', array(\n \t'label' => __( 'Header overlay', 'onepiece' ),\n \t'section' => 'header_image',\n \t'settings' => 'onepiece_elements_headerimage_overlay',\n \t'type' => 'select',\n \t \t\t'description' => __( 'Select header overlay', 'onepiece' ),\n \t'choices' => array(\n \t'none' => __( 'No overlay', 'onepiece' ),\n \t'blank' => __( 'Blank (add custom css on .header-overlay)', 'onepiece' ),\n \t)\n \t)));\n\t /*\n\t\t\topacity:0.4;\n\t\t\tbackground-color:black;\n\t\t*/\n\t\t\n\t\t// ELEMENTS - TOP MENU BAR\n\t\t// above / fixed overlay / absolute overlay\n \t$wp_customize->add_setting( 'onepiece_elements_topmenubar_behavior' , array(\n\t\t'default' => 'rela', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_topmenubar_behavior', array(\n \t'label' => __( 'Topbar behavior', 'onepiece' ),\n \t'section' => 'onepiece_elements_topmenubar',\n \t'settings' => 'onepiece_elements_topmenubar_behavior',\n \t'type' => 'select',\n \t \t'description' => __( 'Select topbar vertical behavior.', 'onepiece' ),\n \t'choices' => array(\n \t'rela' => __( 'Header top, scroll along', 'onepiece' ),\n \t\t'abso' => __( 'Overlay header, scroll along', 'onepiece' ),\n \t'fixe' => __( 'Overlay header, scroll fixed', 'onepiece' ),\n \t'relf' => __( 'Header top, scroll fixed minified', 'onepiece' ),\n \t\t'mini' => __( 'Overlay header, scroll fixed minified', 'onepiece' ),\n \t)\n \t)));\n\t\t// topbar menu position\n\t\t$wp_customize->add_setting( 'onepiece_elements_topmenubar_position' , array(\n\t\t'default' => 'right', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_topmenubar_position', array(\n \t'label' => __( 'Top Menu Position', 'onepiece' ),\n \t'section' => 'onepiece_elements_topmenubar',\n \t'settings' => 'onepiece_elements_topmenubar_position',\n \t'type' => 'select',\n \t \t'description' => __( 'Select topmenubar horizontal display/position.', 'onepiece' ),\n \t'choices' => array(\n \t'none' => __( 'center logo, hide menu', 'onepiece' ),\n \t'left' => __( 'left', 'onepiece' ),\n \t\t'center' => __( 'center', 'onepiece' ),\n \t\t'right' => __( 'right', 'onepiece' ),\n \t)\n \t)));\n\t\t\t\n\t\t\n\t\t\n\t\t// topbar menu position\n\t\t$wp_customize->add_setting( 'onepiece_elements_topmenubar_bgfixed' , array(\n\t\t'default' => 'keep', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_topmenubar_bgfixed', array(\n \t'label' => __( 'Topbar bg color display', 'onepiece' ),\n \t'section' => 'onepiece_elements_topmenubar',\n \t'settings' => 'onepiece_elements_topmenubar_bgfixed',\n \t'type' => 'select',\n \t \t'description' => __( 'Topbar background color.', 'onepiece' ),\n \t'choices' => array(\n \t'keep' => __( 'Always use the bg color', 'onepiece' ),\n \t'mini' => __( 'Only when minified', 'onepiece' ),\n \t)\n \t)));\n\n\n\t\t\n\n\t\t// topbar bg transparency\n\t\t$wp_customize->add_setting( 'onepiece_elements_topmenubar_opacity' , array(\n\t\t'default' => '15', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_topmenubar_opacity', array(\n \t'label' => __( 'Topbar background transparency', 'onepiece' ),\n \t'section' => 'onepiece_elements_topmenubar',\n \t'settings' => 'onepiece_elements_topmenubar_opacity',\n \t'type' => 'text',\n \t \t'description' => __( 'Bg color transparency (percentage).', 'onepiece' ),\n \t)));\n\t\t\n \t\n\t\t\n\t\t// TOP SIDEBAR\n\t\t$wp_customize->add_setting( 'onepiece_elements_topsidebar_position' , array(\n\t\t'default' => 'none', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_topsidebar_position', array(\n \t'label' => __( 'Top sidebar position', 'onepiece' ),\n \t'section' => 'onepiece_elements_topmenubar',\n \t'settings' => 'onepiece_elements_topsidebar_position',\n \t'type' => 'select',\n \t \t\t'description' => __( 'Select the default top sidebar position.', 'onepiece' ),\n \t'choices' => array(\n \t'none' => __( 'none', 'onepiece' ),\n \t'left' => __( 'left', 'onepiece' ),\n \t\t'right' => __( 'right', 'onepiece' ),\n \t)\n \t)));\n\t\t\n\t\t$wp_customize->add_setting( 'onepiece_elements_topsidebar_width' , array(\n\t\t'default' => '30', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_topsidebar_width', array(\n \t'label' => __( 'Sidebar width', 'onepiece' ),\n \t'section' => 'onepiece_elements_topmenubar',\n \t'settings' => 'onepiece_elements_topsidebar_width',\n \t'type' => 'text',\n \t \t'description' => __( 'Select sidebar width (percentage).', 'onepiece' ),\n \t)));\n\n\t\t$wp_customize->add_setting( 'onepiece_elements_topsidebar_responsive' , array(\n\t\t'default' => 'none',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_topsidebar_responsive', array(\n \t'label' => __( 'Top sidebar responsive position', 'onepiece' ),\n \t'section' => 'onepiece_elements_topmenubar',\n \t'settings' => 'onepiece_elements_topsidebar_responsive',\n \t'type' => 'select',\n \t \t'description' => __( 'Where to position this sidebar on small screens:', 'onepiece' ),\n \t'choices' => array(\n \t'hide' => __( 'hide', 'onepiece' ),\n \t'top' => __( 'on page top', 'onepiece' ),\n \t\t'before' => __( 'before main content', 'onepiece' ),\n \t\t'after' => __( 'after main content', 'onepiece' ),\n \t\t'bottom' => __( 'bottom content above footer', 'onepiece' ),\n \t)\n \t)));\n\t\t\n\t\t\n\t\t\n \t\n\t\t\n \t\n \t// MAIN MENU BAR\n\t\t$wp_customize->add_setting( 'onepiece_elements_mainmenubar_position' , array(\n\t\t'default' => 'right', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_mainmenubar_position', array(\n \t'label' => __( 'Mainmenu Display', 'onepiece' ),\n \t'section' => 'onepiece_elements_mainmenubar',\n \t'settings' => 'onepiece_elements_mainmenubar_position',\n \t'type' => 'select',\n \t \t'description' => __( 'Select mainmenubar display horizontal (default pages menu).', 'onepiece' ),\n \t'choices' => array(\n \t'none' => __( 'hide', 'onepiece' ),\n \t'left' => __( 'left', 'onepiece' ),\n \t\t'center' => __( 'center', 'onepiece' ),\n \t\t'right' => __( 'right', 'onepiece' ),\n \t)\n \t)));\n\t\t$wp_customize->add_setting( 'onepiece_elements_mainmenubar_placement' , array(\n\t\t'default' => 'below', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_mainmenubar_placement', array(\n \t'label' => __( 'Mainmenu Vertical Position', 'onepiece' ),\n \t'section' => 'onepiece_elements_mainmenubar',\n \t'settings' => 'onepiece_elements_mainmenubar_placement',\n \t'type' => 'select',\n \t \t'description' => __( 'Select mainmenubar vertical placement with header.', 'onepiece' ),\n \t'choices' => array(\n \t'topbar' => __( 'Topbar', 'onepiece' ),\n \t'above' => __( 'Above Header', 'onepiece' ),\n \t'below' => __( 'Below Header', 'onepiece' ),\n \t'content' => __( 'Top Main Content', 'onepiece' ),\n \t)\n \t)));\n\t\t$wp_customize->add_setting( 'onepiece_elements_mainmenubar_behavior' , array(\n\t\t'default' => 'stat', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_mainmenubar_behavior', array(\n \t'label' => __( 'Mainmenubar behavior', 'onepiece' ),\n \t'section' => 'onepiece_elements_mainmenubar',\n \t'settings' => 'onepiece_elements_mainmenubar_behavior',\n \t'type' => 'select',\n \t \t\t'description' => __( 'Select mainmenubar behavior.', 'onepiece' ),\n \t'choices' => array(\n \t'stat' => __( 'Static scroll', 'onepiece' ),\n \t'stic' => __( 'Stick to top', 'onepiece' ),\n \t)\n \t)));\n\t\t\n\t\t\n\t\t$wp_customize->add_setting( 'onepiece_elements_mainmenubar_minisize' , array(\n\t\t'default' => 'none', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_mainmenubar_minisize', array(\n \t'label' => __( 'Mainmenubar mini-sized', 'onepiece' ),\n \t'section' => 'onepiece_elements_mainmenubar',\n \t'settings' => 'onepiece_elements_mainmenubar_minisize',\n \t'type' => 'select',\n \t \t\t'description' => __( 'Select when to minisize (collapse) the menubar.', 'onepiece' ),\n \t'choices' => array(\n \t'none' => __( 'Never minisize', 'onepiece' ),\n \t'always' => __( 'Minisize menu (always)', 'onepiece' ),\n \t'sticky' => __( 'Minisize sticky menu (when sticky only)', 'onepiece' ),\n \t'respon' => __( 'Minisize in small screens (responsive)', 'onepiece' ),\n\t\t\t\t\t'respon2' => __( 'Minisize in small and medium screens (responsive)', 'onepiece' ),\n \t)\n \t)));\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// ELEMENTS - LOGINBAR\n \t$wp_customize->add_setting( 'onepiece_elements_loginbar_option' , array(\n\t\t'default' => 'none', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_loginbar_option', array(\n \t'label' => __( 'Display default loginbar', 'onepiece' ),\n \t'section' => 'onepiece_elements_loginbar',\n \t'settings' => 'onepiece_elements_loginbar_option',\n \t'type' => 'select',\n \t \t\t'description' => __( 'Select loginbar display.', 'onepiece' ),\n \t'choices' => array(\n \t'none' => __( 'No Display (or use widget)', 'onepiece' ),\n \t\t'pgtop' => __( 'Topbar widget top area', 'onepiece' ),\n \t\t'tbtop' => __( 'Topbar (after minimenu)', 'onepiece' ),\n \t\t'tstop' => __( 'Topbar sidebar top', 'onepiece' ),\n \t\t'tsbot' => __( 'Topbar sidebar bottom', 'onepiece' ),\n \t\t'cbtop' => __( 'Before main content', 'onepiece' ),\n \t\t'cbbot' => __( 'After main content', 'onepiece' ),\n \t\t'sbtop' => __( 'Main sidebar top', 'onepiece' ),\n \t\t'sbbottom' => __( 'Main sidebar bottom', 'onepiece' ),\n \t\t'sb2top' => __( 'Sidebar 2 Top', 'onepiece' ),\n \t\t'sb2bottom' => __( 'Sidebar 2 bottom', 'onepiece' ),\n \t\t'sbctop' => __( 'Subcontent sidebar top', 'onepiece' ),\n \t\t'sbcbot' => __( 'Subcontent sidebar bottom', 'onepiece' ),\n \t\t'bsbtop' => __( 'Bottom sidebar top', 'onepiece' ),\n \t\t'bsbbot' => __( 'Bottom sidebar bottom', 'onepiece' ),\n \t)\n \t)));\n\t\t$wp_customize->add_setting( 'onepiece_elements_loginbar_iconhtml' , array(\n\t\t'default' => '<webicon icon=\"wpf:user-shield\"/>',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_loginbar_iconhtml', array(\n \t'label' => __( 'Loginbar webicon/img html', 'onepiece' ),\n \t'section' => 'onepiece_elements_loginbar',\n \t'settings' => 'onepiece_elements_loginbar_iconhtml',\n \t'type' => 'text',\n \t \t'description' => __( 'Html for login box img/webicon', 'onepiece' ),\n \t)));\n\t\t$wp_customize->add_setting( 'onepiece_elements_loginbar_usericonhtml' , array(\n\t\t'default' => '<webicon icon=\"wpf:collaborator\"/>',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_loginbar_usericonhtml', array(\n \t'label' => __( 'Userbox webicon/img html', 'onepiece' ),\n \t'section' => 'onepiece_elements_loginbar',\n \t'settings' => 'onepiece_elements_loginbar_usericonhtml',\n \t'type' => 'text',\n \t \t'description' => __( 'Html for (loggedin) userbox img/webicon', 'onepiece' ),\n \t)));\n\t\t\n \t\n\t\t// ELEMENTS - BREADCRUMBS\n\n\t\t$wp_customize->add_setting( 'onepiece_elements_breadcrumbs_display' , array(\n\t\t'default' => 'top',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_breadcrumbs_display', array(\n \t'label' => __( 'Breadcrumbsbar Position', 'onepiece' ),\n \t'section' => 'onepiece_elements_breadcrumbs',\n \t'settings' => 'onepiece_elements_breadcrumbs_display',\n \t'type' => 'select',\n \t \t'description' => __( 'Select how to display the breadcrumbs bar (link-path).', 'onepiece' ),\n \t'choices' => array(\n \t'none' => __( 'hide', 'onepiece' ),\n \t'top' => __( 'On top of all main content', 'onepiece' ),\n \t\t'befor' => __( 'Before the page main content (after before widgets)', 'onepiece' ),\n \t)\n \t)));\n\n\n\t\t$wp_customize->add_setting( 'onepiece_elements_breadcrumbs_onpages' , array(\n\t\t'default' => 'all',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_breadcrumbs_onpages', array(\n \t'label' => __( 'Where to display', 'onepiece' ),\n \t'section' => 'onepiece_elements_breadcrumbs',\n \t'settings' => 'onepiece_elements_breadcrumbs_onpages',\n \t'type' => 'select',\n \t \t'description' => __( 'Select when to show breadcrumbs bar.', 'onepiece' ),\n \t'choices' => array(\n \t'all' => __( 'Always', 'onepiece' ),\n \t'post' => __( 'Only category/post views', 'onepiece' ),\n \t)\n \t)));\n\n\t\t$wp_customize->add_setting( 'onepiece_elements_breadcrumbs_homelink' , array(\n\t\t'default' => 'no',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_breadcrumbs_homelink', array(\n \t'label' => __( 'Show Home link', 'onepiece' ),\n \t'section' => 'onepiece_elements_breadcrumbs',\n \t'settings' => 'onepiece_elements_breadcrumbs_homelink',\n \t'type' => 'select',\n \t \t'description' => __( 'Select to display the breadcrumbs home link.', 'onepiece' ),\n \t'choices' => array(\n \t'no' => __( 'No', 'onepiece' ),\n \t'yes' => __( 'Yes', 'onepiece' ),\n \t)\n \t)));\n\n\n\n\t\t\n\t\t// ELEMENTS - MAIN SIDEBAR\n\t\t$wp_customize->add_setting( 'onepiece_elements_sidebar_position' , array(\n\t\t'default' => 'right', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_settings_sidebar_position', array(\n \t'label' => __( 'Sidebar Position', 'onepiece' ),\n \t'section' => 'onepiece_elements_sidebar',\n \t'settings' => 'onepiece_elements_sidebar_position',\n \t'type' => 'select',\n \t \t'description' => __( 'Select the default sidebar position (includes sidemenu if used).', 'onepiece' ),\n \t'choices' => array(\n \t'none' => __( 'hide', 'onepiece' ),\n \t'left' => __( 'left', 'onepiece' ),\n \t\t'right' => __( 'right', 'onepiece' ),\n \t)\n \t)));\n\t\t\n\t\t$wp_customize->add_setting( 'onepiece_elements_mainsidebar_width' , array(\n\t\t'default' => '30', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_mainsidebar_width', array(\n \t'label' => __( 'Sidebar width', 'onepiece' ),\n \t'section' => 'onepiece_elements_sidebar',\n \t'settings' => 'onepiece_elements_mainsidebar_width',\n \t'type' => 'text',\n \t \t'description' => __( 'Select sidebar width (percentage).', 'onepiece' ),\n \t)));\n\n\n\t\t$wp_customize->add_setting( 'onepiece_elements_mainsidebar_responsive' , array(\n\t\t'default' => 'none',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_mainsidebar_responsive', array(\n \t'label' => __( 'Main sidebar responsive position', 'onepiece' ),\n \t'section' => 'onepiece_elements_sidebar',\n \t'settings' => 'onepiece_elements_mainsidebar_responsive',\n \t'type' => 'select',\n \t \t'description' => __( 'Where to position this sidebar on small screens:', 'onepiece' ),\n \t'choices' => array(\n \t'hide' => __( 'hide', 'onepiece' ),\n \t\t'before' => __( 'before main content', 'onepiece' ),\n \t\t'after' => __( 'after main content', 'onepiece' ),\n \t)\n \t)));\n\t\n\t\n\t\t\n\t\t$wp_customize->add_setting( 'onepiece_elements_mainsidebar_sticky' , array(\n\t\t'default' => '0', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_mainsidebar_sticky', array(\n \t'label' => __( 'Sticky behavior', 'onepiece' ),\n \t'section' => 'onepiece_elements_sidebar',\n \t'settings' => 'onepiece_elements_mainsidebar_sticky',\n \t'type' => 'select',\n \t \t'description' => __( 'Make sidebar sticky (medium and large screens)', 'onepiece' ),\n \t'choices' => array(\n \t'0' => __( 'Not sticky, scroll with content', 'onepiece' ),\n \t\t'1' => __( 'Stick to page top/topbar on scroll', 'onepiece' ),\n \t)\n \t)));\n\n\n\n\t\t\n\t\t// SECOND SIDEBAR\n\t\t$wp_customize->add_setting( 'onepiece_elements_sidebar2_position' , array(\n\t\t'default' => 'none', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_sidebar2_position', array(\n \t'label' => __( 'Second Sidebar Position', 'onepiece' ),\n \t'section' => 'onepiece_elements_sidebar2',\n \t'settings' => 'onepiece_elements_sidebar2_position',\n \t'type' => 'select',\n \t \t'description' => __( 'Select sidebar position.', 'onepiece' ),\n \t'choices' => array(\n \t'none' => __( 'hide', 'onepiece' ),\n \t'left' => __( 'left', 'onepiece' ),\n \t\t'right' => __( 'right', 'onepiece' ),\n \t)\n \t)));\n \t\n \t$wp_customize->add_setting( 'onepiece_elements_sidebar2_position2' , array(\n\t\t'default' => 'out', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_sidebar2_position2', array(\n \t'label' => __( 'Second Sidebar Position', 'onepiece' ),\n \t'section' => 'onepiece_elements_sidebar2',\n \t'settings' => 'onepiece_elements_sidebar2_position2',\n \t'type' => 'select',\n \t \t'description' => __( 'Position besides the main sidebar.', 'onepiece' ),\n \t'choices' => array(\n \t'ins' => __( 'on the inside', 'onepiece' ),\n \t'out' => __( 'on the outside', 'onepiece' ),\n \t)\n \t)));\n\t\t\n\t\t$wp_customize->add_setting( 'onepiece_elements_sidebar2_width' , array(\n\t\t'default' => '30', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_sidebar2_width', array(\n \t'label' => __( 'Sidebar width', 'onepiece' ),\n \t'section' => 'onepiece_elements_sidebar2',\n \t'settings' => 'onepiece_elements_sidebar2_width',\n \t'type' => 'text',\n \t \t'description' => __( 'Select sidebar width (percentage).', 'onepiece' ),\n \t)));\n\t\t\n\t\t$wp_customize->add_setting( 'onepiece_elements_sidebar2_responsive' , array(\n\t\t'default' => 'none',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_sidebar2_responsive', array(\n \t'label' => __( 'Second sidebar responsive position', 'onepiece' ),\n \t'section' => 'onepiece_elements_sidebar2',\n \t'settings' => 'onepiece_elements_sidebar2_responsive',\n \t'type' => 'select',\n \t \t'description' => __( 'Where to position this sidebar on small screens:', 'onepiece' ),\n \t'choices' => array(\n \t'hide' => __( 'hide', 'onepiece' ),\n \t\t'before' => __( 'before main content', 'onepiece' ),\n \t\t'after' => __( 'after main content', 'onepiece' ),\n \t)\n \t)));\n\t\n\t\t\n\t\t\n\t\t$wp_customize->add_setting( 'onepiece_elements_sidebar2_sticky' , array(\n\t\t'default' => '0', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_sidebar2_sticky', array(\n \t'label' => __( 'Sticky behavior', 'onepiece' ),\n \t'section' => 'onepiece_elements_sidebar2',\n \t'settings' => 'onepiece_elements_sidebar2_sticky',\n \t'type' => 'select',\n \t \t'description' => __( 'Make second sidebar sticky (medium and large screens)', 'onepiece' ),\n \t'choices' => array(\n \t'0' => __( 'Not sticky, scroll with content', 'onepiece' ),\n \t\t'1' => __( 'Stick to page top/topbar on scroll', 'onepiece' ),\n \t)\n \t)));\n\n\n\n\n\n\t// SUBCONTENT SIDEBAR\n\t\t$wp_customize->add_setting( 'onepiece_elements_subcontent_sidebar_position' , array(\n\t\t'default' => 'none',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_subcontent_sidebar_position', array(\n \t'label' => __( 'Subcontent sidebar position', 'onepiece' ),\n \t'section' => 'onepiece_elements_subcontent',\n \t'settings' => 'onepiece_elements_subcontent_sidebar_position',\n \t'type' => 'select',\n \t \t'description' => __( 'Select the default subcontent sidebar position.', 'onepiece' ),\n \t'choices' => array(\n \t'none' => __( 'none', 'onepiece' ),\n \t'left' => __( 'left', 'onepiece' ),\n \t\t'right' => __( 'right', 'onepiece' ),\n \t)\n \t)));\n\n\t\t$wp_customize->add_setting( 'onepiece_elements_subcontent_sidebar_width' , array(\n\t\t'default' => '30',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_subcontent_sidebar_width', array(\n \t'label' => __( 'Sidebar width', 'onepiece' ),\n \t'section' => 'onepiece_elements_subcontent',\n \t'settings' => 'onepiece_elements_subcontent_sidebar_width',\n \t'type' => 'text',\n \t \t'description' => __( 'Select sidebar width (percentage).', 'onepiece' ),\n \t)));\n\n\n\n\t\t\n\t\t\n\t\t\n\t\t// BOTTOM MENU BAR\n\t\t$wp_customize->add_setting( 'onepiece_elements_bottommenubar_position' , array(\n\t\t'default' => 'right', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_bottommenubar_position', array(\n \t'label' => __( 'Bottom Menu position', 'onepiece' ),\n \t'section' => 'onepiece_elements_bottommenubar',\n \t'settings' => 'onepiece_elements_bottommenubar_position',\n \t'type' => 'select',\n \t \t'description' => __( 'Select bottom menubar display/position.', 'onepiece' ),\n \t'choices' => array(\n \t'none' => __( 'hide', 'onepiece' ),\n \t'left' => __( 'left', 'onepiece' ),\n \t\t'center' => __( 'center', 'onepiece' ),\n \t\t'right' => __( 'right', 'onepiece' ),\n \t)\n \t)));\n\t\t\n\t\t\n\t\t// BOTTOM SIDEBAR\n\t\t$wp_customize->add_setting( 'onepiece_elements_bottom_sidebar_position' , array(\n\t\t'default' => 'none', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_bottom_sidebar_position', array(\n \t'label' => __( 'Footer sidebar position', 'onepiece' ),\n \t'section' => 'onepiece_elements_bottommenubar',\n \t'settings' => 'onepiece_elements_bottom_sidebar_position',\n \t'type' => 'select',\n \t \t'description' => __( 'Select the default bottom sidebar position.', 'onepiece' ),\n \t'choices' => array(\n \t'none' => __( 'none', 'onepiece' ),\n \t'left' => __( 'left', 'onepiece' ),\n \t\t'right' => __( 'right', 'onepiece' ),\n \t)\n \t)));\n\t\t\n\t\t$wp_customize->add_setting( 'onepiece_elements_bottom_sidebar_width' , array(\n\t\t'default' => '30', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_bottom_sidebar_width', array(\n \t'label' => __( 'Sidebar width', 'onepiece' ),\n \t'section' => 'onepiece_elements_bottommenubar',\n \t'settings' => 'onepiece_elements_bottom_sidebar_width',\n \t'type' => 'text',\n \t \t'description' => __( 'Select sidebar width (percentage).', 'onepiece' ),\n \t)));\n\t\t\n\t\t// BOTTOM MENU BAR - copyright\n\t\t$wp_customize->add_setting( 'onepiece_elements_bottom_copyrightposition' , array(\n\t\t'default' => 'center', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_bottom_copyrightposition', array(\n \t'label' => __( 'Copyright display', 'onepiece' ),\n \t'section' => 'onepiece_elements_bottommenubar',\n \t'settings' => 'onepiece_elements_bottom_copyrightposition',\n \t'type' => 'select',\n \t \t'description' => __( 'Select copyright text display/position.', 'onepiece' ),\n \t'choices' => array(\n \t'hide' => __( 'hide', 'onepiece' ),\n \t'left' => __( 'left', 'onepiece' ),\n \t\t'center' => __( 'center', 'onepiece' ),\n \t\t'right' => __( 'right', 'onepiece' ),\n \t)\n \t)));\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t$wp_customize->add_setting( 'onepiece_elements_bottom_copyrighttext' , array(\n\t\t'default' => 'Copyright 2016', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_elements_bottom_copyrighttext', array(\n \t'label' => __( 'Copyright text', 'onepiece' ),\n \t'section' => 'onepiece_elements_bottommenubar',\n \t'settings' => 'onepiece_elements_bottom_copyrighttext',\n \t'type' => 'textarea',\n \t \t'description' => __( 'Copyright information text.', 'onepiece' ),\n \t)));\n\t\t\n\n\t\n\n\n\t/*\n\t *\n\t * RESPONSIVE\n\t *\n\t */\n\n\t\t$wp_customize->add_setting( 'onepiece_responsive_small_max' , array(\n\t\t'default' => '512', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_responsive_small_max', array(\n \t'label' => __( 'Define max width', 'onepiece' ),\n \t'section' => 'onepiece_responsive_small',\n \t'settings' => 'onepiece_responsive_small_max',\n \t'type' => 'text',\n \t \t'description' => __( 'Define max. width befor switch to medium (px).', 'onepiece' ),\n \t)));\n\t\t\n\t\t$wp_customize->add_setting( 'onepiece_responsive_small_width' , array(\n\t\t'default' => '100', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_responsive_small_width', array(\n \t'label' => __( 'Default width', 'onepiece' ),\n \t'section' => 'onepiece_responsive_small',\n \t'settings' => 'onepiece_responsive_small_width',\n \t'type' => 'text',\n \t \t'description' => __( 'Normal width (%)', 'onepiece' ),\n \t)));\n\t\t\n\t\t$wp_customize->add_setting( 'onepiece_responsive_small_outermargin' , array(\n\t\t'default' => '342', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_responsive_small_outermargin', array(\n \t'label' => __( 'Outermargin', 'onepiece' ),\n \t'section' => 'onepiece_responsive_small',\n \t'settings' => 'onepiece_responsive_small_outermargin',\n \t'type' => 'text',\n \t \t'description' => __( 'Outermargin for small screens (px).', 'onepiece' ),\n \t)));\n\t\t\n\t\t$wp_customize->add_setting( 'onepiece_responsive_medium_max' , array(\n\t\t'default' => '1280', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_responsive_medium_max', array(\n \t'label' => __( 'Define max width', 'onepiece' ),\n \t'section' => 'onepiece_responsive_medium',\n \t'settings' => 'onepiece_responsive_medium_max',\n \t'type' => 'text',\n \t \t'description' => __( 'Define max. width befor switch to large (px).', 'onepiece' ),\n \t)));\n\t\t\n\t\t$wp_customize->add_setting( 'onepiece_responsive_medium_width' , array(\n\t\t'default' => '95', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_responsive_medium_width', array(\n \t'label' => __( 'Default width', 'onepiece' ),\n \t'section' => 'onepiece_responsive_medium',\n \t'settings' => 'onepiece_responsive_medium_width',\n \t'type' => 'text',\n \t \t'description' => __( 'Normal width (%)', 'onepiece' ),\n \t)));\n\t\t\n\t\t$wp_customize->add_setting( 'onepiece_responsive_medium_outermargin' , array(\n\t\t'default' => '960', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_responsive_medium_outermargin', array(\n \t'label' => __( 'Outermargin', 'onepiece' ),\n \t'section' => 'onepiece_responsive_medium',\n \t'settings' => 'onepiece_responsive_medium_outermargin',\n \t'type' => 'text',\n \t \t'description' => __( 'Outermargin for medium screens (px).', 'onepiece' ),\n \t)));\n \t\n\t\t$wp_customize->add_setting( 'onepiece_responsive_large_outermargin' , array(\n\t\t'default' => '1200', \n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t)); \n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_responsive_large_outermargin', array(\n \t'label' => __( 'Outermargin', 'onepiece' ),\n \t'section' => 'onepiece_responsive_large',\n \t'settings' => 'onepiece_responsive_large_outermargin',\n \t'type' => 'text',\n \t \t'description' => __( 'Outermargin for large screens (px).', 'onepiece' ),\n \t)));\n\t\t\n\t\t\n\n\n\n\t/*\n\t *\n\t * STYLE & LAYOUT\n\t *\n\t */\n\n\t\t// STYLESHEET\n\t\t$wp_customize->add_setting( 'onepiece_identity_stylelayout_stylesheet' , array(\n\t\t\t\t'default' => 'default.css',\n\t\t\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n\t\t\t\t));\n\t\t$list = get_theme_cssfilelist();\n\t\t$files = [];\n\t\tforeach($list as $file){\n\t\t$files[$file] = $file;\n\t\t}\n\n\t\t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_identity_stylelayout_stylesheet', array(\n \t'label' => __( 'Layout stylesheet', 'onepiece' ),\n \t'section' => 'onepiece_identity_stylelayout',\n \t'settings' => 'onepiece_identity_stylelayout_stylesheet',\n \t'type' => 'select',\n \t \t'description' => __( 'Select the main style', 'onepiece' ),\n \t'choices' => $files,\n\n \t)));\n\n\t\t// FONTSIZE AVERAGE\n\t\t$wp_customize->add_setting( 'onepiece_identity_stylelayout_fontsize' , array(\n\t\t'default' => '5',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_identity_stylelayout_fontsize', array(\n \t'label' => __( 'Fontsize', 'onepiece' ),\n \t'section' => 'onepiece_identity_stylelayout',\n \t'settings' => 'onepiece_identity_stylelayout_fontsize',\n \t'type' => 'number',\n \t \t'description' => __( 'Average fontsize (1-10).', 'onepiece' ),\n \t)));\n\t\t// SPACING AVERAGE\n\t\t$wp_customize->add_setting( 'onepiece_identity_stylelayout_spacing' , array(\n\t\t'default' => '5',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_identity_stylelayout_spacing', array(\n \t'label' => __( 'Spacing', 'onepiece' ),\n \t'section' => 'onepiece_identity_stylelayout',\n \t'settings' => 'onepiece_identity_stylelayout_spacing',\n \t'type' => 'number',\n \t \t'description' => __( 'Average margins and paddings (1-10).', 'onepiece' ),\n \t)));\n\t\t// SPEED AVERAGE\n\t\t$wp_customize->add_setting( 'onepiece_identity_stylelayout_speed' , array(\n\t\t'default' => '5',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_identity_stylelayout_speed', array(\n \t'label' => __( 'Speed', 'onepiece' ),\n \t'section' => 'onepiece_identity_stylelayout',\n \t'settings' => 'onepiece_identity_stylelayout_speed',\n \t'type' => 'number',\n \t \t'description' => __( 'Average speed (1-10).', 'onepiece' ),\n \t)));\n\n\n\t\t/*\n\t\t * FONTS\n\t\t */\n\n\n\t\t// FONTS - MAIN\n \t$wp_customize->add_setting( 'onepiece_style_fonts_maintype' , array(\n\t\t'default' => 'arial',\n \t//'capability' => 'edit_theme_options',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_style_fonts_maintype', array(\n \t'label' => __( 'Default', 'onepiece' ),\n \t'section' => 'fonts',\n \t'settings' => 'onepiece_style_fonts_maintype',\n \t \t'description' => __( 'Select the default font type.', 'onepiece' ),\n \t'type' => 'select',\n \t\t'choices' => get_fonts_select()\n \t)));\n\n\n\t\t// FONTS - Page / default h1 title (type/size)\n\t\t$wp_customize->add_setting( 'onepiece_style_fonts_pagetitle' , array(\n\t\t'default' => 'default',\n \t//'capability' => 'edit_theme_options',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_style_fonts_pagetitle', array(\n \t'label' => __( 'Page / Default titles', 'onepiece' ),\n \t'section' => 'fonts',\n \t'settings' => 'onepiece_style_fonts_pagetitle',\n \t \t'description' => __( 'Select the page/default title font type.', 'onepiece' ),\n \t'type' => 'select',\n \t\t'choices' => get_fonts_select()\n \t)));\n\n\t\t// FONTS - List/Category post title h2 (type/size)\n\t\t$wp_customize->add_setting( 'onepiece_style_fonts_postlisttitle' , array(\n\t\t'default' => 'default',\n \t//'capability' => 'edit_theme_options',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_style_fonts_postlisttitle', array(\n \t'label' => __( 'Listed post titles', 'onepiece' ),\n \t'section' => 'fonts',\n \t'settings' => 'onepiece_style_fonts_postlisttitle',\n \t \t'description' => __( 'Select the listed Post title font type.', 'onepiece' ),\n \t'type' => 'select',\n \t\t'choices' => get_fonts_select()\n \t)));\n\n\t\t// FONTS - Post title h1 (type/size)\n\t\t$wp_customize->add_setting( 'onepiece_style_fonts_posttitle' , array(\n\t\t'default' => 'default',\n \t//'capability' => 'edit_theme_options',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_style_fonts_posttitle', array(\n \t'label' => __( 'Post single title', 'onepiece' ),\n \t'section' => 'fonts',\n \t'settings' => 'onepiece_style_fonts_posttitle',\n \t \t'description' => __( 'Select the single Post title font type.', 'onepiece' ),\n \t'type' => 'select',\n \t\t'choices' => get_fonts_select()\n \t)));\n\n\t\t// FONTS -Widget title h3 (type/size)\n\t\t$wp_customize->add_setting( 'onepiece_style_fonts_widgettitle' , array(\n\t\t'default' => 'default',\n \t//'capability' => 'edit_theme_options',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_style_fonts_widgettitle', array(\n \t'label' => __( 'Widget titles', 'onepiece' ),\n \t'section' => 'fonts',\n \t'settings' => 'onepiece_style_fonts_widgettitle',\n \t \t'description' => __( 'Select the Widget title font type.', 'onepiece' ),\n \t'type' => 'select',\n \t\t'choices' => get_fonts_select()\n \t)));\n\n\t\t// FONTS -Widget list item title h4 (type/size)\n\t\t$wp_customize->add_setting( 'onepiece_style_fonts_widgetitemtitle' , array(\n\t\t'default' => 'default',\n \t//'capability' => 'edit_theme_options',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_style_fonts_widgetitemtitle', array(\n \t'label' => __( 'Widget listed item titles', 'onepiece' ),\n \t'section' => 'fonts',\n \t'settings' => 'onepiece_style_fonts_widgetitemtitle',\n \t \t'description' => __( 'Select the Widget listed item title font type.', 'onepiece' ),\n \t'type' => 'select',\n \t\t'choices' => get_fonts_select()\n \t)));\n\n\n\n\t\t/*\n\t\t *\n\t\t * COLORS\n\t\t *\n\t\t */\n\n\n\n\t\t$wp_customize->add_setting( 'onepiece_identity_colors_bodybg' , array(\n\t\t'default' => '#ffffff',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n\t\t$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'onepiece_identity_colors_bodybg', array(\n\t\t'label' => __( 'Body background Color', 'onepiece' ),\n\t\t'section' => 'colors',\n\t\t'settings' => 'onepiece_identity_colors_bodybg',\n \t) ) );\n\n\t\t// body text\n\t\t$wp_customize->add_setting( 'onepiece_identity_colors_bodytext' , array(\n\t\t'default' => '#232323',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n\t\t$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'onepiece_identity_colors_bodytext', array(\n\t\t'label' => __( 'Body text Color', 'onepiece' ),\n\t\t'section' => 'colors',\n\t\t'settings' => 'onepiece_identity_colors_bodytext',\n \t) ) );\n\t\t// body link\n\t\t$wp_customize->add_setting( 'onepiece_identity_colors_bodylink' , array(\n\t\t'default' => '#000000',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n\t\t$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'onepiece_identity_colors_bodylink', array(\n\t\t'label' => __( 'Body textlink Color', 'onepiece' ),\n\t\t'section' => 'colors',\n\t\t'settings' => 'onepiece_identity_colors_bodylink',\n \t) ) );\n\t\t// body link hover\n\t\t$wp_customize->add_setting( 'onepiece_identity_colors_bodylinkhover' , array(\n\t\t'default' => '#232323',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n\t\t$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'onepiece_identity_colors_bodylinkhover', array(\n\t\t'label' => __( 'Body textlink hover Color', 'onepiece' ),\n\t\t'section' => 'colors',\n\t\t'settings' => 'onepiece_identity_colors_bodylinkhover',\n \t) ) );\n\n\n\n\t\t// topbar bg color\n\t\t$wp_customize->add_setting( 'onepiece_identity_colors_topbarbg' , array(\n\t\t'default' => '#ffffff',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n\t\t$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'onepiece_identity_colors_topbarbg', array(\n\t\t'label' => __( 'Topbar background color', 'onepiece' ),\n\t\t'section' => 'colors',\n\t\t'settings' => 'onepiece_identity_colors_topbarbg',\n \t) ) );\n\n\t\t// topbar text color\n\t\t$wp_customize->add_setting( 'onepiece_identity_colors_topbartext' , array(\n\t\t'default' => '#232323',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n\t\t$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'onepiece_identity_colors_topbartext', array(\n\t\t'label' => __( 'Topbar text color', 'onepiece' ),\n\t\t'section' => 'colors',\n\t\t'settings' => 'onepiece_identity_colors_topbartext',\n \t) ) );\n\n\t\t// topbar textlink color\n\t\t$wp_customize->add_setting( 'onepiece_identity_colors_topbartextlink' , array(\n\t\t'default' => '#000000',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n\t\t$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'onepiece_identity_colors_topbartextlink', array(\n\t\t'label' => __( 'Topbar textlink color', 'onepiece' ),\n\t\t'section' => 'colors',\n\t\t'settings' => 'onepiece_identity_colors_topbartextlink',\n \t) ) );\n\n\t\t// topbar textlink hover color\n\t\t$wp_customize->add_setting( 'onepiece_identity_colors_topbartextlinkhover' , array(\n\t\t'default' => '#232323',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n\t\t$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'onepiece_identity_colors_topbartextlinkhover', array(\n\t\t'label' => __( 'Topbar link hover color', 'onepiece' ),\n\t\t'section' => 'colors',\n\t\t'settings' => 'onepiece_identity_colors_topbartextlinkhover',\n \t) ) );\n\n\n\t// Icons\n\t\t$wp_customize->add_setting( 'onepiece_identity_icons_loader', array(\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n\t\t'default' => esc_url( get_template_directory_uri() ).'/icons/loader_icon_circle_default.gif',\n\t ));\n\n\t $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'onepiece_identity_icons_loader', array(\n \t'label' => __( 'Loader image', 'onepiece' ),\n \t'section' => 'icons',\n \t'settings' => 'onepiece_identity_icons_loader',\n\t\t'description' => __( 'Upload or select a loader icon (replacing the default loader).', 'onepiece' ),\n \t'priority' => 10,\n \t) ) );\n\n\n\n\t// Scroll to top button\n\n\t\t$wp_customize->add_setting( 'onepiece_identity_scrolltotop_display' , array(\n\t\t'default' => 'br',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_identity_scrolltotop_display', array(\n \t'label' => __( 'ScrolltoTop Button display', 'onepiece' ),\n \t'section' => 'icons',\n \t'settings' => 'onepiece_identity_scrolltotop_display',\n \t'type' => 'select',\n \t \t'description' => __( 'Display/position scroll-to-top button.', 'onepiece' ),\n \t'choices' => array(\n \t'hi' => __( 'hide', 'onepiece' ),\n \t'br' => __( 'bottom right', 'onepiece' ),\n \t\t'bl' => __( 'bottom left', 'onepiece' ),\n \t\t'tr' => __( 'top right', 'onepiece' ),\n \t\t'tl' => __( 'top left', 'onepiece' ),\n \t)\n \t)));\n\n\t\t$wp_customize->add_setting( 'onepiece_identity_scrolltotop_html' , array(\n\t\t'default' => '<webicon icon=\"fa:chevron-up\"/>',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_identity_scrolltotop_html', array(\n \t'label' => __( 'Button text or html', 'onepiece' ),\n \t'section' => 'icons',\n \t'settings' => 'onepiece_identity_scrolltotop_html',\n \t'type' => 'text',\n \t \t\t'description' => __( 'Scroll-to-top button text or html(icon) content.', 'onepiece' ),\n \t)));\n\n\n\t\t$wp_customize->add_setting( 'onepiece_identity_scrolltotop_margin' , array(\n\t\t'default' => '15px 15px',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_identity_scrolltotop_margin', array(\n \t'label' => __( 'ScrolltoTop button Margin', 'onepiece' ),\n \t'section' => 'icons',\n \t'settings' => 'onepiece_identity_scrolltotop_margin',\n \t'type' => 'text',\n \t \t\t'description' => __( 'Distance from window borders ( [top/bottom]px [left/right]px )', 'onepiece' ),\n \t)));\n\n\t\t$wp_customize->add_setting( 'onepiece_identity_scrolltotop_padding' , array(\n\t\t'default' => '5px 9px',\n\t\t'sanitize_callback' => 'onepiece_sanitize_default',\n \t));\n \t$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'onepiece_identity_scrolltotop_padding', array(\n \t'label' => __( 'ScrolltoTop button padding', 'onepiece' ),\n \t'section' => 'icons',\n \t'settings' => 'onepiece_identity_scrolltotop_padding',\n \t'type' => 'text',\n \t \t\t'description' => __( 'Button inside padding ( [top/bottom]px [left/right]px )', 'onepiece' ),\n \t)));\n\t\t\n \t\n\t\t\n}", "function popup_elements() {\n\t\t\t$this->config['subElements'] = array(\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Shortocode', 'oxo-core' ),\n\t\t\t\t\t\"desc\" => __( 'Choose woocommerce shortcode', 'oxo-core' ),\n\t\t\t\t\t\"id\" => \"oxo_woo_shortocode\",\n\t\t\t\t\t\"type\" => ElementTypeEnum::SELECT,\n\t\t\t\t\t\"value\" => \"\",\n\t\t\t\t\t\"allowedValues\" => array(\n\t\t\t\t\t\t'1' => __( 'Order tracking', 'oxo-core' ),\n\t\t\t\t\t\t'2' => __( 'Product price/cart button', 'oxo-core' ),\n\t\t\t\t\t\t'3' => __( 'Product by SKU/ID', 'oxo-core' ),\n\t\t\t\t\t\t'4' => __( 'Products by SKU/ID', 'oxo-core' ),\n\t\t\t\t\t\t'5' => __( 'Product categories', 'oxo-core' ),\n\t\t\t\t\t\t'6' => __( 'Products by category slug', 'oxo-core' ),\n\t\t\t\t\t\t'7' => __( 'Recent products', 'oxo-core' ),\n\t\t\t\t\t\t'8' => __( 'Featured products', 'oxo-core' ),\n\t\t\t\t\t\t'9' => __( 'Shop Message', 'oxo-core' )\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t\"name\" => __( 'Shortcode content', 'oxo-core' ),\n\t\t\t\t\t\"desc\" => __( 'Shortcode will appear here', 'oxo-core' ),\n\t\t\t\t\t\"id\" => \"oxo_woo_shortocde_content\",\n\t\t\t\t\t\"type\" => ElementTypeEnum::TEXTAREA,\n\t\t\t\t\t\"value\" => \"[woocommerce_order_tracking]\"\n\t\t\t\t),\n\t\t\t);\n\t\t}", "function init_plugin() : void {\n\n\t// CSS/JS.\n\tadd_action( 'enqueue_block_assets', __NAMESPACE__ . '\\load_block_frontend_assets' );\n\tadd_action( 'enqueue_block_editor_assets', __NAMESPACE__ . '\\load_block_editor_assets' );\n\tadd_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\\load_full_assets' );\n\tadd_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\\load_messaging_assets' );\n\n\t// Admin-only CSS/JS.\n\tadd_action( 'admin_enqueue_scripts', __NAMESPACE__ . '\\Admin\\load_admin_assets' );\n\tadd_filter( 'admin_body_class', __NAMESPACE__ . '\\Admin\\add_admin_body_class' );\n\n\t// Modify output.\n\tadd_filter( 'body_class', __NAMESPACE__ . '\\add_body_class' );\n\tadd_filter( 'the_content', __NAMESPACE__ . '\\Gating\\maybe_restrict_content' );\n\tadd_filter( 'the_title', __NAMESPACE__ . '\\Gating\\maybe_add_padlock_to_title', 10, 2 );\n\tadd_action( 'wp_head', __NAMESPACE__ . '\\print_meta_tag' );\n\n\t// Admin screens and settings.\n\tadd_filter( 'plugin_action_links_coil-web-monetization/plugin.php', __NAMESPACE__ . '\\Admin\\add_plugin_action_links' );\n\tadd_filter( 'plugin_row_meta', __NAMESPACE__ . '\\Admin\\add_plugin_meta_link', 10, 2 );\n\tadd_action( 'admin_menu', __NAMESPACE__ . '\\Settings\\register_admin_menu' );\n\tadd_action( 'admin_init', __NAMESPACE__ . '\\Settings\\register_admin_content_settings' );\n\tadd_action( 'admin_notices', __NAMESPACE__ . '\\Settings\\admin_welcome_notice' );\n\tadd_action( 'wp_ajax_dismiss_welcome_notice', __NAMESPACE__ . '\\Settings\\dismiss_welcome_notice' );\n\n\t// Term meta.\n\tadd_action( 'edit_term', __NAMESPACE__ . '\\Admin\\maybe_save_term_meta', 10, 3 );\n\tadd_action( 'create_term', __NAMESPACE__ . '\\Admin\\maybe_save_term_meta', 10, 3 );\n\tadd_action( 'delete_term', __NAMESPACE__ . '\\Admin\\delete_term_monetization_meta' );\n\tadd_term_edit_save_form_meta_actions();\n\n\t// Customizer settings.\n\tadd_action( 'customize_register', __NAMESPACE__ . '\\Admin\\add_customizer_messaging_panel' );\n\tadd_action( 'customize_register', __NAMESPACE__ . '\\Admin\\add_customizer_options_panel' );\n\tadd_action( 'customize_register', __NAMESPACE__ . '\\Admin\\add_customizer_learn_more_button_settings_panel' );\n\n\t// User profile settings.\n\tadd_action( 'personal_options', __NAMESPACE__ . '\\User\\add_user_profile_payment_pointer_option' );\n\tadd_action( 'personal_options_update', __NAMESPACE__ . '\\User\\maybe_save_user_profile_payment_pointer_option' );\n\tadd_action( 'edit_user_profile_update', __NAMESPACE__ . '\\User\\maybe_save_user_profile_payment_pointer_option' );\n\tadd_filter( 'option_coil_payment_pointer_id', __NAMESPACE__ . '\\User\\maybe_output_user_payment_pointer' );\n\n\t// Metaboxes.\n\tadd_action( 'load-post.php', __NAMESPACE__ . '\\Admin\\load_metaboxes' );\n\tadd_action( 'load-post-new.php', __NAMESPACE__ . '\\Admin\\load_metaboxes' );\n\tadd_action( 'save_post', __NAMESPACE__ . '\\Admin\\maybe_save_post_metabox' );\n\n\t// Modal messaging\n\tadd_action( 'wp_footer', __NAMESPACE__ . '\\load_plugin_templates' );\n\n\t// Load order - important.\n\tadd_action( 'init', __NAMESPACE__ . '\\Gating\\register_content_meta' );\n\tadd_action( 'init', __NAMESPACE__ . '\\Gating\\register_term_meta' );\n}", "public function pluginDetails()\n {\n return [\n 'name' => 'Mighty Seo Plus',\n 'description' => 'Addon for Mighty SEO plugin for more advanced SEO settings.',\n 'author' => 'Media1',\n 'icon' => 'icon-leaf',\n 'iconSvg' => 'plugins/media1/mightyseoplus/assets/images/icon.svg'\n ];\n }", "function kstHelpWordpressMisc_customFieldsAndMetaBoxes() {\n ?>\n <p>\n Among the many fabulous but too little used features of WordPress includes\n custom fields. Custom fields are generic form fields below the text editor\n on posts and pages (and custom post types) that allow theme and plugin\n developers the ability to add unique functionality to posts and pages that\n you have control over per post/page.\n </p>\n <p>\n Examples include changing a quote or content box in the header or sidebar\n on a per page basis, embedding media, and adding extra meta-type information to\n display about posts such as \"duration\", \"citations\", \"special guests\", or\n whatever the theme or plugin developer offered.\n </p>\n <p>\n If your theme includes such things hopefully they will have added a help\n entry for you to learn how to use them.\n </p>\n <p>\n The theme or plugin developer may have alternatively created\n \"metaboxes\" that appear in place of the \"generic custom fields\". A metabox\n is a custom mini-form that explicitly tells the contributor what data they\n can enter.\n </p>\n <?php\n}", "function install_plugin_information()\n {\n }", "function register_vc_add_on(){\r\n\r\n vc_map( array(\r\n \"name\" => $this->name,\r\n \"base\" => $this->id,\r\n \"icon\" => $this->icon,\r\n \"description\" => $this->description,\r\n \"weight\" => 1,\r\n\r\n \"wrapper_height\"=> 'full',\r\n\r\n \"category\" => __( 'BetterMag Addons', 'better-studio' ),\r\n \"params\" => array(\r\n\r\n array(\r\n \"type\" => 'textfield',\r\n \"admin_label\" => true,\r\n \"heading\" => __( 'Title', 'better-studio' ),\r\n \"param_name\" => 'title',\r\n \"value\" => $this->defaults['title'],\r\n ),\r\n array(\r\n \"type\" => 'bf_switchery',\r\n \"heading\" => __( 'Show Title?', 'better-studio'),\r\n \"param_name\" => 'show_title',\r\n \"value\" => $this->defaults['show_title'],\r\n ),\r\n array(\r\n 'heading' => __( 'Instructions', 'better-studio' ),\r\n 'param_name' => 'help',\r\n 'type' => 'bf_info',\r\n 'value' => __('<ol>\r\n <li>Copy the link to you facebook page</li>\r\n <li>Paste it in the \"Link to you Facebook page\" input box below</li>\r\n </ol>\r\n ', 'better-studio' ),\r\n 'state' => 'open',\r\n 'info-type' => 'help',\r\n 'section_class' => 'widefat',\r\n ),\r\n array(\r\n \"type\" => 'textfield',\r\n \"admin_label\" => true,\r\n \"heading\" => __( 'Link to you Facebook page', 'better-studio' ),\r\n \"param_name\" => 'url',\r\n \"value\" => $this->defaults['url'],\r\n ),\r\n array(\r\n \"type\" => 'bf_select',\r\n \"heading\" => __( 'Style', 'better-studio' ),\r\n \"param_name\" => 'style',\r\n 'section_class' => 'style-floated-left',\r\n \"admin_label\" => true,\r\n \"options\" => array(\r\n 'light' => __( 'Light Schema', 'better-studio' ),\r\n 'dark' => __( 'Style Schema', 'better-studio' ),\r\n ),\r\n \"value\" => $this->defaults['style'],\r\n ),\r\n array(\r\n \"type\" => 'bf_switchery',\r\n \"admin_label\" => false,\r\n \"heading\" => __( 'Show Posts?', 'better-studio' ),\r\n \"param_name\" => 'show_posts',\r\n \"value\" => $this->defaults['show_posts'],\r\n ),\r\n array(\r\n \"type\" => 'bf_switchery',\r\n \"admin_label\" => false,\r\n \"heading\" => __( 'Show faces?', 'better-studio' ),\r\n \"param_name\" => 'show_faces',\r\n \"value\" => $this->defaults['show_faces'],\r\n ),\r\n array(\r\n \"type\" => 'bf_switchery',\r\n \"admin_label\" => false,\r\n \"heading\" => __( 'Show Header?', 'better-studio' ),\r\n \"param_name\" => 'show_header',\r\n \"value\" => $this->defaults['show_header'],\r\n ),\r\n array(\r\n \"type\" => 'bf_switchery',\r\n \"admin_label\" => false,\r\n \"heading\" => __( 'Show Border?', 'better-studio' ),\r\n \"param_name\" => 'show_border',\r\n \"value\" => $this->defaults['show_border'],\r\n ),\r\n\r\n\r\n )\r\n ) );\r\n\r\n }", "public function pluginDetails()\n {\n return [\n 'name' => 'Klyp Page Builder',\n 'description' => 'Easily order component on pages.',\n 'author' => 'Klyp',\n 'icon' => 'icon-leaf'\n ];\n }", "public function pluginDetails()\n {\n return [\n 'name' => 'Newsletter',\n 'description' => 'Newsletter contact',\n 'author' => 'Cifq',\n 'icon' => 'icon-leaf'\n ];\n }", "function kirki_demo_configuration_sample() {\n\n // $url = get_stylesheet_directory_uri() . '/kirki/';\n\n $args = array(\n 'logo_image' => '',\n 'description' => __( 'The theme description.', 'kirki' ),\n // 'url_path' => $url,\n 'color_accent' => '#CE2922',\n 'color_back' => '#EEEEEE',\n 'textdomain' => 'kirki',\n //'i18n' => $strings,\n 'stylesheet_id' => 'secondthought_kirki'\n );\n\n return $args;\n\n}", "function spreadshop_assortment_detail()\n{\ninclude(plugin_dir_path(__FILE__).'/spreadassortmentdetail.php');\nadd_filter('wp_head', 'sources');\n}", "public function pluginDetails()\n {\n return [\n 'name' => 'EaxOctober',\n 'description' => 'Стандартное расширение Quadrowin',\n 'author' => 'quadrowin',\n 'icon' => 'icon-leaf'\n ];\n }", "function park_register_required_plugins() {\n\n $plugins = array(\n\n // This is an example of how to include a plugin from an arbitrary external source in your theme.\n\n\n\n array(\n\n 'name' => esc_html('CocoBasic - Park WP'), // The plugin name.\n\n 'slug' => 'cocobasic-shortcode', // The plugin slug (typically the folder name).\n\n 'source' => 'http://demo.cocobasic.com/plugins/park-wp/cocobasic-shortcode.zip', // The plugin source.\n\n 'required' => true, // If false, the plugin is only 'recommended' instead of required. \n\n 'version' => '1.0',\n\n ),\n\n array(\n\n 'name' => esc_html('Contact Form 7'),\n\n 'slug' => 'contact-form-7',\n\n 'required' => true // If false, the plugin is only 'recommended' instead of required. \n\n )\n\n );\n\n\n\n /*\n\n * Array of configuration settings. Amend each line as needed.\n\n *\n\n * TGMPA will start providing localized text strings soon. If you already have translations of our standard\n\n * strings available, please help us make TGMPA even better by giving us access to these translations or by\n\n * sending in a pull-request with .po file(s) with the translations.\n\n *\n\n * Only uncomment the strings in the config array if you want to customize the strings.\n\n */\n\n $config = array(\n\n 'id' => 'park-wp', // Unique ID for hashing notices for multiple instances of TGMPA.\n\n 'default_path' => '', // Default absolute path to bundled plugins.\n\n 'menu' => 'tgmpa-install-plugins', // Menu slug.\n\n 'has_notices' => true, // Show admin notices or not.\n\n 'dismissable' => true, // If false, a user cannot dismiss the nag message.\n\n 'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag.\n\n 'is_automatic' => false, // Automatically activate plugins after installation or not.\n\n 'message' => '', // Message to output right before the plugins table. \n\n );\n\n\n\n tgmpa($plugins, $config);\n\n }", "public function get_plugin_name() {\n\n\t\treturn __( 'WooCommerce Elavon Converge', 'woocommerce-gateway-elavon' );\n\t}", "function vc_before_init_actions() {\n \t require_once( get_template_directory().'/vc-elements/my-first-custom-element.php' );\n require_once( get_template_directory().'/vc-elements/progressbar0.php' );\n\t require_once( get_template_directory().'/vc-elements/card-counter-card.php' );\t \n\t require_once( get_template_directory().'/vc-elements/Services.php' );\t\n require_once( get_template_directory().'/vc-elements/Carousel-Side-Caption.php' );\n\t require_once( get_template_directory().'/vc-elements/InteractiveSVG.php' );\n\t require_once( get_template_directory().'/vc-elements/piechart.php' );\n\t require_once( get_template_directory().'/vc-elements/OurServices.php' );\n\t require_once( get_template_directory().'/vc-elements/Timeline66.php' );\n\t require_once( get_template_directory().'/vc-elements/ServiceBox76.php' );\n\t require_once( get_template_directory().'/vc-elements/project.php' );\n\t require_once( get_template_directory().'/vc-elements/project1.php' );\n\t }", "function cs_register_required_plugins() {\n\n\t/**\n\t * Array of plugin arrays. Required keys are name and slug.\n\t * If the source is NOT from the .org repo, then source is also required.\n\t */\n\t$plugins = array(\n\t\tarray(\n\t\t\t'name' => __( 'Posts 2 Posts', 'social-coup' ),\n\t\t\t'slug' => 'posts-to-posts',\n\t\t\t'required' => true,\n\t\t),\n\t\tarray(\n\t\t\t'name' => __( 'Event Manager Theme Functionality', 'social-coup' ),\n\t\t\t'slug' => 'event-manager-theme-functionality',\n\t\t\t'required' => true,\n\t\t)\n\t);\n\n\t/** Theme text domain, used for internationalising strings */\n\t$theme_text_domain = 'social-coup';\n\n\t/**\n\t * Array of configuration settings. \n\t */\n\t$config = array(\n\t\t'domain' => $theme_text_domain, // Text domain - likely want to be the same as your theme. */\n\t\t/*'default_path' => '', // Default absolute path to pre-packaged plugins */\n\t\t/*'menu' => 'install-required-plugins', // Menu slug */\n\t\t'notices' => true, // Show admin notices or not */\n\t\t'strings' => array(\n\t\t\t'page_title' \t\t\t\t=> __( 'Install Required Plugins', $theme_text_domain ), // */\n\t\t\t'menu_title' \t\t\t\t=> __( 'Install Plugins', $theme_text_domain ), // */\n\t\t\t'instructions_install' \t\t\t\t=> __( 'The %1$s plugin is required for this theme. Click on the big blue button below to install and activate %1$s.', $theme_text_domain ), // %1$s = plugin name */\n\t\t\t'instructions_install_recommended'\t=> __( 'The %1$s plugin is recommended for this theme. Click on the big blue button below to install and activate %1$s.', $theme_text_domain ), // %1$s = plugin name, %2$s = plugins page URL */\n\t\t\t'instructions_activate' \t\t\t\t=> __( 'The %1$s plugin is installed but currently inactive. Please go to the <a href=\"%2$s\">plugin administration page</a> page to activate it.', $theme_text_domain ), // %1$s = plugin name, %2$s = plugins page URL */\n\t\t\t'button' \t\t\t\t=> __( 'Install %s Now', $theme_text_domain ), // %1$s = plugin name */\n\t\t\t'installing' \t\t\t\t=> __( 'Installing Plugin: %s', $theme_text_domain ), // %1$s = plugin name */\n\t\t\t'oops' \t\t\t\t=> __( 'Something went wrong with the plugin API.', $theme_text_domain ), // */\n\t\t\t'notice_can_install_required' \t=> __( 'This theme requires the following plugins: %1$s.', $theme_text_domain ), // %1$s = plugin names */\n\t\t\t'notice_can_install_recommended'\t\t=> __( 'This theme recommends the following plugins: %1$s.', $theme_text_domain ), // %1$s = plugin names */\n\t\t\t'notice_cannot_install' \t\t\t\t=> __( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', $theme_text_domain ), // %1$s = plugin name */\n\t\t\t'notice_can_activate_required' \t=> __( 'The following required plugins are currently inactive: %1$s.', $theme_text_domain ), // %1$s = plugin names */\n\t\t\t'notice_can_activate_recommended'\t\t=> __( 'The following recommended plugins are currently inactive: %1$s.', $theme_text_domain ), // %1$s = plugin names */\n\t\t\t'notice_cannot_activate' \t\t\t\t=> __( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', $theme_text_domain ), // %1$s = plugin name */\n\t\t\t'return' \t\t\t\t=> __( 'Return to Required Plugins Installer', $theme_text_domain ), // */\n\t\t\t'plugin_activated' \t \t\t\t\t=> __( 'Plugin activated successfully.', $theme_text_domain ) // */\n\t\t)\n\t);\n\n\ttgmpa( $plugins, $config );\n\n}", "public function pluginDetails()\n {\n return [\n 'name' => 'Todo',\n 'description' => 'Just a simple todo widget',\n 'author' => 'Hartviglarsen',\n 'icon' => 'icon-leaf'\n ];\n }", "function getName() {\r\n\t\treturn 'markupplugin';\r\n\t}", "public function pluginDetails()\n {\n return [\n 'name' => 'Food',\n 'description' => 'create a Food Menu with ease.',\n 'author' => 'Milo',\n 'icon' => 'icon-cutlery'\n ];\n }", "function myplugin_header_icon() {\n\n\t$icon_url = plugins_url('images/swpf-icon-header.png', __FILE__ ); ?>\n \t\n\t<div id=\"icon-myplugin\" class=\"icon32\"><img src=\"<?php echo $icon_url; ?>\"></div><?php\n\n}", "public function pluginDetails()\n {\n return [\n 'name' => 'Contact',\n 'description' => 'Messages from the frontend contact form.',\n 'author' => 'Be Easy',\n 'icon' => 'icon-envelope-o'\n ];\n }", "public function pluginDetails()\n {\n return [\n 'name' => 'StaffPages',\n 'description' => 'Adds the ability to add staff and have page update dynamically when new entries added',\n 'author' => 'Stone',\n 'icon' => 'icon-venus-double'\n ];\n }", "public function pluginDetails()\n {\n return [\n 'name' => 'portfolio',\n 'description' => 'Simple portfolio plugin',\n 'author' => 'AngryGantz',\n 'icon' => 'icon-briefcase'\n ];\n }", "function my_plugin_menu() {\n\t\tadd_options_page( 'Opções do Plugin', 'Marvel SC', 'manage_options', 'my-unique-identifier', 'my_plugin_options' );\n\t}", "function soliloquy_custom_css_plugin_init() {\n\n add_action( 'soliloquy_updater', 'soliloquy_custom_css_updater' );\n add_filter( 'soliloquy_defaults', 'soliloquy_custom_css_defaults', 10, 2 );\n add_action( 'soliloquy_misc_box', 'soliloquy_custom_css_setting', 999 );\n add_filter( 'soliloquy_save_settings', 'soliloquy_custom_css_save', 10, 2 );\n\n // Metabox - Single Slide\n add_filter( 'soliloquy_meta_defaults', 'soliloquy_custom_css_meta_defaults', 10, 3 );\n add_action( 'soliloquy_after_image_meta_settings', 'soliloquy_custom_css_meta', 10, 3 );\n add_action( 'soliloquy_after_video_meta_settings', 'soliloquy_custom_css_meta', 10, 3 );\n add_filter( 'soliloquy_ajax_save_meta', 'soliloquy_custom_css_save_meta', 10, 4 );\n\n // Frontend\n add_filter( 'soliloquy_output_start', 'soliloquy_custom_css_output', 0, 2 );\n add_filter( 'soliloquy_output_item_classes', 'soliloquy_custom_css_classes_output', 10, 4 );\n\n\n}", "public function pluginDetails()\n {\n return [\n 'name' => 'FloUsps',\n 'description' => 'FloCommerce USPS Shipping Plugin',\n 'author' => 'Radiantweb',\n 'icon' => 'icon-shopping-cart'\n ];\n }", "function arconix_single_plugin_filter( $content ) {\n $custom = get_post_custom();\n isset( $custom[\"_acpl_slug\"][0] )? $slug = $custom[\"_acpl_slug\"][0] : $slug = '';\n\n // Bail if $slug is not defined\n if( ! $slug ) return $content;\n\n // Pass the slug into the WP API to get the data we need\n $details = unserialize( ARCONIX_PLUGINS::get_wporg_custom_plugin_data( $slug ) );\n\n // Bail if $details isn't defined\n if( ! $details ) return $content;\n\n $sections = $details->sections;\n $description = $sections['description'];\n $installation = $sections['installation'];\n $screenshots = $sections['screenshots'];\n $faq = $sections['faq'];\n $changelog = $sections['changelog'];\n\n // Our page content\n $content = '[tabs]';\n $content .= '[tab title=\"Description\"]' . $description . '[/tab]'; \n $content .= '[tab title=\"Screenshots\"]' . $screenshots . '[/tab]';\n $content .= '[tab title=\"Installation\"]' . $installation . '[/tab]';\n $content .= '[tab title=\"FAQ\"]' . $faq . '[/tab]';\n $content .= '[tab title=\"Changelog\"]' . $changelog . '[/tab]';\n $content .= '[/tabs]';\n\n return $content;\n}", "function Yonk_register_required_plugins() {\n $plugins = array(\n\n // This is an example of how to include a plugin bundled with a theme.\n array(\n 'name' => 'Elementor',\n 'slug' => 'elementor',\n 'source' => 'https://downloads.wordpress.org/plugin/elementor.3.9.2.zip',\n 'required' => true,\n 'version' => '3.9.2',\n 'force_activation' => false,\n 'force_deactivation' => false,\n 'external_url' => 'https://pt.wordpress.org/plugins/elementor/',\n 'is_callable' => '',\n ),\n\n array(\n 'name' => 'Classic Widgets',\n 'slug' => 'classic-widgets',\n 'source' => 'https://downloads.wordpress.org/plugin/classic-widgets.0.3.zip',\n 'required' => true,\n 'version' => '0.3',\n 'force_activation' => false,\n 'force_deactivation' => false,\n 'external_url' => 'https://pt.wordpress.org/plugins/classic-widgets/',\n 'is_callable' => '',\n ),\n\n array(\n 'name' => 'Classic Editor',\n 'slug' => 'classic-editor',\n 'source' => 'https://downloads.wordpress.org/plugin/classic-editor.1.6.2.zip',\n 'required' => true,\n 'version' => '1.6.2',\n 'force_activation' => false,\n 'force_deactivation' => false,\n 'external_url' => 'https://pt.wordpress.org/plugins/classic-editor/',\n 'is_callable' => '',\n ),\n\n );\n\n $config = array(\n 'id' => 'blank', // Unique ID for hashing notices for multiple instances of TGMPA.\n 'default_path' => '', // Default absolute path to bundled plugins.\n 'menu' => 'tgmpa-install-plugins', // Menu slug.\n 'parent_slug' => 'themes.php', // Parent menu slug.\n 'capability' => 'edit_theme_options', // Capability needed to view plugin install page, should be a capability associated with the parent menu used.\n 'has_notices' => true, // Show admin notices or not.\n 'dismissable' => true, // If false, a user cannot dismiss the nag message.\n 'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag.\n 'is_automatic' => false, // Automatically activate plugins after installation or not.\n 'message' => '', // Message to output right before the plugins table.\n );\n\n tgmpa( $plugins, $config );\n }", "function hmbkp_plugin_row( $plugins ) {\n\n\tif ( isset( $plugins[HMBKP_PLUGIN_SLUG . '/plugin.php'] ) )\n\t\t$plugins[HMBKP_PLUGIN_SLUG . '/plugin.php']['Description'] = str_replace( 'Once activated you\\'ll find me under <strong>Tools &rarr; Backups</strong>', 'Find me under <strong><a href=\"' . admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG ) . '\">Tools &rarr; Backups</a></strong>', $plugins[HMBKP_PLUGIN_SLUG . '/plugin.php']['Description'] );\n\n\treturn $plugins;\n\n}", "function clientmap_shortcode(){\n $clients = clientbox_shortcode_helper('logo-shell.jpg')\n . clientbox_shortcode_helper('logo-iluka.jpg')\n . clientbox_shortcode_helper('logo-independence.jpg')\n . clientbox_shortcode_helper('logo-debeers.jpg')\n . clientbox_shortcode_helper('logo-santos.jpg')\n . clientbox_shortcode_helper('logo-anglo.jpg')\n . clientbox_shortcode_helper('logo-chevron.jpg')\n . clientbox_shortcode_helper('logo-rio.jpg');\n return collaborate_map_shortcode($clients);\n}", "function traveltour_init_goodlayers_core_elements(){\n\t\t\tif( (is_admin() || is_customize_preview()) && class_exists('gdlr_core_admin_option') && class_exists('gdlr_core_theme_customizer') ){\n\t\t\t\t\n\t\t\t\t$traveltour_admin_option = new gdlr_core_admin_option(array(\n\t\t\t\t\t'filewrite' => traveltour_get_style_custom(true)\n\t\t\t\t));\t\n\t\t\t\t\n\t\t\t\tinclude_once( get_template_directory() . '/include/options/general.php');\n\t\t\t\tinclude_once( get_template_directory() . '/include/options/typography.php');\n\t\t\t\tinclude_once( get_template_directory() . '/include/options/color.php');\n\t\t\t\tinclude_once( get_template_directory() . '/include/options/plugin-settings.php');\n\t\t\t\tinclude_once( get_template_directory() . '/include/options/customize-utility.php');\n\n\t\t\t\tif( is_customize_preview() ){\n\t\t\t\t\tnew gdlr_core_theme_customizer($traveltour_admin_option);\n\t\t\t\t}\n\n\t\t\t\t// clear an option for customize page\n\t\t\t\tadd_action('wp', 'traveltour_clear_option');\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// add the script for page builder / page options / post option\n\t\t\tif( is_admin() ){\n\t\t\t\t\n\t\t\t\tif( class_exists('gdlr_core_revision') ){\n\t\t\t\t\t$revision_num = 5;\n\t\t\t\t\tnew gdlr_core_revision($revision_num);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// create page option\n\t\t\t\tif( class_exists('gdlr_core_page_option') ){\n\n\t\t\t\t\t// for page post type\n\t\t\t\t\tnew gdlr_core_page_option(array(\n\t\t\t\t\t\t'post_type' => array('page'),\n\t\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t'layout' => array(\n\t\t\t\t\t\t\t\t'title' => esc_html__('Layout', 'traveltour'),\n\t\t\t\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t\t\t'enable-header-area' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Enable Header Area', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'checkbox',\n\t\t\t\t\t\t\t\t\t\t'default' => 'enable'\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'sticky-navigation' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Sticky Navigation', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'combobox',\n\t\t\t\t\t\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t\t\t\t\t'default' => esc_html__('Default', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t'enable' => esc_html__('Enable', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t'disable' => esc_html__('Disable', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t'condition' => array( 'enable-header-area' => 'enable' )\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'enable-page-title' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Enable Page Title', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'checkbox',\n\t\t\t\t\t\t\t\t\t\t'default' => 'enable',\n\t\t\t\t\t\t\t\t\t\t'condition' => array( 'enable-header-area' => 'enable' )\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'page-caption' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Caption', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'textarea',\n\t\t\t\t\t\t\t\t\t\t'condition' => array( 'enable-header-area' => 'enable', 'enable-page-title' => 'enable' )\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'title-background' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Page Title Background', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'upload',\n\t\t\t\t\t\t\t\t\t\t'condition' => array( 'enable-header-area' => 'enable', 'enable-page-title' => 'enable' )\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'show-content' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Show WordPress Editor Content', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'checkbox',\n\t\t\t\t\t\t\t\t\t\t'default' => 'enable',\n\t\t\t\t\t\t\t\t\t\t'description' => esc_html__('Disable this to hide the content in editor to show only page builder content.', 'traveltour'),\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'sidebar' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Sidebar', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'radioimage',\n\t\t\t\t\t\t\t\t\t\t'options' => 'sidebar',\n\t\t\t\t\t\t\t\t\t\t'default' => 'none',\n\t\t\t\t\t\t\t\t\t\t'wrapper-class' => 'gdlr-core-fullsize'\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'sidebar-left' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Sidebar Left', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'combobox',\n\t\t\t\t\t\t\t\t\t\t'options' => 'sidebar',\n\t\t\t\t\t\t\t\t\t\t'condition' => array( 'sidebar' => array('left', 'both') )\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'sidebar-right' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Sidebar Right', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'combobox',\n\t\t\t\t\t\t\t\t\t\t'options' => 'sidebar',\n\t\t\t\t\t\t\t\t\t\t'condition' => array( 'sidebar' => array('right', 'both') )\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'enable-footer' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Enable Footer', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'combobox',\n\t\t\t\t\t\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t\t\t\t\t'default' => esc_html__('Default', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t'enable' => esc_html__('Enable', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t'disable' => esc_html__('Disable', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'enable-copyright' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Enable Copyright', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'combobox',\n\t\t\t\t\t\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t\t\t\t\t'default' => esc_html__('Default', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t'enable' => esc_html__('Enable', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t'disable' => esc_html__('Disable', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t)\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), // layout\n\t\t\t\t\t\t\t'title' => array(\n\t\t\t\t\t\t\t\t'title' => esc_html__('Title Style', 'traveltour'),\n\t\t\t\t\t\t\t\t'options' => array(\n\n\t\t\t\t\t\t\t\t\t'title-style' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Page Title Style', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'combobox',\n\t\t\t\t\t\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t\t\t\t\t'default' => esc_html__('Default', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t'small' => esc_html__('Small', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t'medium' => esc_html__('Medium', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t'large' => esc_html__('Large', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t'custom' => esc_html__('Custom', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t'default' => 'default'\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'title-align' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Page Title Alignment', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'radioimage',\n\t\t\t\t\t\t\t\t\t\t'options' => 'text-align',\n\t\t\t\t\t\t\t\t\t\t'with-default' => true,\n\t\t\t\t\t\t\t\t\t\t'default' => 'default'\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'title-spacing' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Page Title Padding', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'custom',\n\t\t\t\t\t\t\t\t\t\t'item-type' => 'padding',\n\t\t\t\t\t\t\t\t\t\t'data-input-type' => 'pixel',\n\t\t\t\t\t\t\t\t\t\t'options' => array('padding-top', 'padding-bottom', 'caption-top-margin'),\n\t\t\t\t\t\t\t\t\t\t'wrapper-class' => 'gdlr-core-fullsize gdlr-core-no-link gdlr-core-large',\n\t\t\t\t\t\t\t\t\t\t'condition' => array( 'title-style' => 'custom' )\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'title-font-size' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Page Title Font Size', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'custom',\n\t\t\t\t\t\t\t\t\t\t'item-type' => 'padding',\n\t\t\t\t\t\t\t\t\t\t'data-input-type' => 'pixel',\n\t\t\t\t\t\t\t\t\t\t'options' => array('title-size', 'title-letter-spacing', 'caption-size', 'caption-letter-spacing'),\n\t\t\t\t\t\t\t\t\t\t'wrapper-class' => 'gdlr-core-fullsize gdlr-core-no-link gdlr-core-large',\n\t\t\t\t\t\t\t\t\t\t'condition' => array( 'title-style' => 'custom' )\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'title-font-weight' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Page Title Font Weight', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'custom',\n\t\t\t\t\t\t\t\t\t\t'item-type' => 'padding',\n\t\t\t\t\t\t\t\t\t\t'options' => array('title-weight', 'caption-weight'),\n\t\t\t\t\t\t\t\t\t\t'wrapper-class' => 'gdlr-core-fullsize gdlr-core-no-link gdlr-core-large',\n\t\t\t\t\t\t\t\t\t\t'condition' => array( 'title-style' => 'custom' )\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'title-font-transform' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Page Title Font Transform', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'combobox',\n\t\t\t\t\t\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t\t\t\t\t'none' => esc_html__('None', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t'uppercase' => esc_html__('Uppercase', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t'lowercase' => esc_html__('Lowercase', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t'capitalize' => esc_html__('Capitalize', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t'default' => 'uppercase',\n\t\t\t\t\t\t\t\t\t\t'condition' => array( 'title-style' => 'custom' )\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'title-background-overlay-opacity' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Page Title Background Overlay Opacity', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t\t\t\t\t\t'description' => esc_html__('Fill the number between 0 - 1 ( Leave Blank For Default Value )', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'condition' => array( 'title-style' => 'custom' )\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'title-color' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Page Title Color', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'colorpicker',\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'caption-color' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Page Caption Color', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'colorpicker',\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'title-background-overlay-color' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Page Background Overlay Color', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'colorpicker',\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), // title\n\t\t\t\t\t\t\t'header' => array(\n\t\t\t\t\t\t\t\t'title' => esc_html__('Header', 'traveltour'),\n\t\t\t\t\t\t\t\t'options' => array(\n\n\t\t\t\t\t\t\t\t\t'header-slider' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Header Slider ( Above Navigation )', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'combobox',\n\t\t\t\t\t\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t\t\t\t\t'none' => esc_html__('None', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t'layer-slider' => esc_html__('Layer Slider', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t'master-slider' => esc_html__('Master Slider', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t'revolution-slider' => esc_html__('Revolution Slider', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t'description' => esc_html__('For header style plain / bar / boxed', 'traveltour'),\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'layer-slider-id' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Choose Layer Slider', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'combobox',\n\t\t\t\t\t\t\t\t\t\t'options' => gdlr_core_get_layerslider_list(),\n\t\t\t\t\t\t\t\t\t\t'condition' => array( 'header-slider' => 'layer-slider' )\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'master-slider-id' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Choose Master Slider', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'combobox',\n\t\t\t\t\t\t\t\t\t\t'options' => gdlr_core_get_masterslider_list(),\n\t\t\t\t\t\t\t\t\t\t'condition' => array( 'header-slider' => 'master-slider' )\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'revolution-slider-id' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Choose Revolution Slider', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'combobox',\n\t\t\t\t\t\t\t\t\t\t'options' => gdlr_core_get_revolution_slider_list(),\n\t\t\t\t\t\t\t\t\t\t'condition' => array( 'header-slider' => 'revolution-slider' )\n\t\t\t\t\t\t\t\t\t),\n\n\t\t\t\t\t\t\t\t) // header options\n\t\t\t\t\t\t\t), // header\n\t\t\t\t\t\t\t'bullet-anchor' => array(\n\t\t\t\t\t\t\t\t'title' => esc_html__('Bullet Anchor', 'traveltour'),\n\t\t\t\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t\t\t'bullet-anchor-description' => array(\n\t\t\t\t\t\t\t\t\t\t'type' => 'description',\n\t\t\t\t\t\t\t\t\t\t'description' => esc_html__('This feature is used for one page navigation. It will appear on the right side of page. You can put the id of element in \\'Anchor Link\\' field to let the bullet scroll the page to.', 'traveltour')\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'bullet-anchor' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Add Anchor', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'custom',\n\t\t\t\t\t\t\t\t\t\t'item-type' => 'tabs',\n\t\t\t\t\t\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t\t\t\t\t'title' => array(\n\t\t\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Anchor Link', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t'anchor-color' => array(\n\t\t\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Anchor Color', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t\t'type' => 'colorpicker',\n\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t'anchor-hover-color' => array(\n\t\t\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Anchor Hover Color', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t\t'type' => 'colorpicker',\n\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t'wrapper-class' => 'gdlr-core-fullsize'\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t)\n\t\t\t\t\t));\n\n\t\t\t\t\t// for post post type\n\t\t\t\t\tnew gdlr_core_page_option(array(\n\t\t\t\t\t\t'post_type' => array('post'),\n\t\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t'layout' => array(\n\t\t\t\t\t\t\t\t'title' => esc_html__('Layout', 'traveltour'),\n\t\t\t\t\t\t\t\t'options' => array(\n\n\t\t\t\t\t\t\t\t\t'show-content' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Show WordPress Editor Content', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'checkbox',\n\t\t\t\t\t\t\t\t\t\t'default' => 'enable',\n\t\t\t\t\t\t\t\t\t\t'description' => esc_html__('Disable this to hide the content in editor to show only page builder content.', 'traveltour'),\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'sidebar' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Sidebar', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'radioimage',\n\t\t\t\t\t\t\t\t\t\t'options' => 'sidebar',\n\t\t\t\t\t\t\t\t\t\t'with-default' => true,\n\t\t\t\t\t\t\t\t\t\t'default' => 'default',\n\t\t\t\t\t\t\t\t\t\t'wrapper-class' => 'gdlr-core-fullsize'\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'sidebar-left' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Sidebar Left', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'combobox',\n\t\t\t\t\t\t\t\t\t\t'options' => 'sidebar',\n\t\t\t\t\t\t\t\t\t\t'condition' => array( 'sidebar' => array('left', 'both') )\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'sidebar-right' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Sidebar Right', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'combobox',\n\t\t\t\t\t\t\t\t\t\t'options' => 'sidebar',\n\t\t\t\t\t\t\t\t\t\t'condition' => array( 'sidebar' => array('right', 'both') )\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'metro-layout' => array(\n\t\t\t\t\t\t\t\t'title' => esc_html__('Metro Layout', 'traveltour'),\n\t\t\t\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t\t\t'metro-column-size' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Column Size', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'combobox',\n\t\t\t\t\t\t\t\t\t\t'options' => array( 'default'=> esc_html__('Default', 'traveltour'), \n\t\t\t\t\t\t\t\t\t\t\t60 => '1/1', 30 => '1/2', 20 => '1/3', 40 => '2/3', \n\t\t\t\t\t\t\t\t\t\t\t15 => '1/4', 45 => '3/4', 12 => '1/5', 24 => '2/5', 36 => '3/5', 48 => '4/5',\n\t\t\t\t\t\t\t\t\t\t\t10 => '1/6', 50 => '5/6'),\n\t\t\t\t\t\t\t\t\t\t'default' => 'default',\n\t\t\t\t\t\t\t\t\t\t'description' => esc_html__('Choosing default will display the value selected by the page builder item.', 'traveltour')\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'metro-thumbnail-size' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Thumbnail Size', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'combobox',\n\t\t\t\t\t\t\t\t\t\t'options' => 'thumbnail-size',\n\t\t\t\t\t\t\t\t\t\t'with-default' => true,\n\t\t\t\t\t\t\t\t\t\t'default' => 'default',\n\t\t\t\t\t\t\t\t\t\t'description' => esc_html__('Choosing default will display the value selected by the page builder item.', 'traveltour')\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t),\t\t\t\t\t\t\n\t\t\t\t\t\t\t'title' => array(\n\t\t\t\t\t\t\t\t'title' => esc_html__('Title', 'traveltour'),\n\t\t\t\t\t\t\t\t'options' => array(\n\n\t\t\t\t\t\t\t\t\t'blog-title-style' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Blog Title Style', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'combobox',\n\t\t\t\t\t\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t\t\t\t\t'default' => esc_html__('Default', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t'small' => esc_html__('Small', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t'large' => esc_html__('Large', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t'custom' => esc_html__('Custom', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t'inside-content' => esc_html__('Inside Content', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t'none' => esc_html__('None', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t'default' => 'default'\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'blog-title-padding' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Blog Title Padding', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'custom',\n\t\t\t\t\t\t\t\t\t\t'item-type' => 'padding',\n\t\t\t\t\t\t\t\t\t\t'data-input-type' => 'pixel',\n\t\t\t\t\t\t\t\t\t\t'options' => array('padding-top', 'padding-bottom'),\n\t\t\t\t\t\t\t\t\t\t'wrapper-class' => 'gdlr-core-fullsize gdlr-core-no-link gdlr-core-large',\n\t\t\t\t\t\t\t\t\t\t'condition' => array( 'blog-title-style' => 'custom' )\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'blog-feature-image' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Blog Feature Image Location', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'combobox',\n\t\t\t\t\t\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t\t\t\t\t'default' => esc_html__('Default', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t'content' => esc_html__('Inside Content', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t'title-background' => esc_html__('Title Background', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t'none' => esc_html__('None', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'blog-title-background-image' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Blog Title Background Image', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'upload',\n\t\t\t\t\t\t\t\t\t\t'data-type' => 'file',\n\t\t\t\t\t\t\t\t\t\t'condition' => array( \n\t\t\t\t\t\t\t\t\t\t\t'blog-title-style' => array('default', 'small', 'large', 'custom'),\n\t\t\t\t\t\t\t\t\t\t\t'blog-feature-image' => array('default', 'content', 'none')\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t'description' => esc_html__('Will be overridden by feature image if selected.', 'traveltour'),\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'blog-title-background-overlay-opacity' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Blog Title Background Overlay Opacity', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t\t\t\t\t\t'description' => esc_html__('Fill the number between 0 - 1 ( Leave Blank For Default Value )', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'condition' => array( 'blog-title-style' => 'custom' ),\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'header-background-gradient' => array(\n\t\t\t\t\t\t\t\t\t\t'title' => esc_html__('Title Background Gradient', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t'type' => 'combobox',\n\t\t\t\t\t\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t\t\t\t\t'default' => esc_html__('Default', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t'both' => esc_html__('Both', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t'top' => esc_html__('Top', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t'bottom' => esc_html__('Bottom', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t\t'none' => esc_html__('None', 'traveltour'),\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t),\n\n\t\t\t\t\t\t\t\t) // options\n\t\t\t\t\t\t\t) // title\n\t\t\t\t\t\t)\n\t\t\t\t\t));\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\t// create page builder\n\t\t\tif( class_exists('gdlr_core_page_builder') ){\n\t\t\t\tnew gdlr_core_page_builder(array(\n\t\t\t\t\t'style' => array(\n\t\t\t\t\t\t'style-custom' => traveltour_get_style_custom()\n\t\t\t\t\t)\n\t\t\t\t));\n\t\t\t}\n\t\t\t\n\t\t}", "function clea_base_custom_social( $wp_customize ) {\n\t\n\t/* Get the theme prefix. */\n\t$prefix = hybrid_get_prefix();\n\t\n\t$ald_description = __( 'charger les liens vers les réseaux sociaux du site', 'clea-base' );\t\n\t\n\t\t/* Add the test textarea section. */\n\t\t$wp_customize->add_section(\n\t\t\t'unique-impact-1-social',\n\t\t\tarray(\n\t\t\t\t'title' \t=> esc_html__( 'Réseaux sociaux', 'clea-base' ),\n\t\t\t\t'priority' \t=> 200,\n\t\t\t\t'capability' \t=> 'edit_theme_options',\n\t\t\t\t'description'\t=> $ald_description\n\t\t\t)\n\t\t);\n\n\t/** demander Facebook **/\n\t$wp_customize->add_setting( \n\t\t\"{$prefix}_theme_settings[facebook]\", \n\t\tarray(\n\t\t\t'type' \t=> 'option',\n\t\t\t'default' => '',\n\t\t\t'sanitize_callback' => 'clea_base_social_sanitize',\n\t\t)\n\t);\t\n\n\t$wp_customize->add_control(\n \"{$prefix}_theme_settings[facebook]\",\n array(\n 'label' => __('url Facebook', 'clea-base'),\n 'section' => 'unique-impact-1-social',\n 'type' => 'text',\n )\n\t);\t\n\n\n\t/** demander Twitter **/\n\t$wp_customize->add_setting( \n\t\t\"{$prefix}_theme_settings[twitter]\", \n\t\tarray(\n\t\t\t'type' \t=> 'option',\n\t\t\t'default' => '',\n\t\t\t'sanitize_callback' => 'clea_base_social_sanitize',\n\t\t)\n\t);\t\n\n\t$wp_customize->add_control(\n \"{$prefix}_theme_settings[twitter]\",\n array(\n 'label' => __('url Twitter', 'clea-base'),\n 'section' => 'unique-impact-1-social',\n 'type' => 'text',\n )\n\t);\t\t\n\n\t/** demander Pinterest **/\n\t$wp_customize->add_setting( \n\t\t\"{$prefix}_theme_settings[pinterest]\", \n\t\tarray(\n\t\t\t'type' \t=> 'option',\n\t\t\t'default' => '',\n\t\t\t'sanitize_callback' => 'clea_base_social_sanitize',\n\t\t)\n\t);\t\n\n\t$wp_customize->add_control(\n \"{$prefix}_theme_settings[pinterest]\",\n\t\tarray(\n\t\t\t'label' => __('url Pinterest', 'clea-base'),\n\t\t\t'section' => 'unique-impact-1-social',\n\t\t\t'type' => 'text',\n\t\t)\n\t);\t\t\n\n\n\t/** demander RSS **/\n\t$wp_customize->add_setting( \n\t\t\"{$prefix}_theme_settings[rss]\", \n\t\tarray(\n\t\t\t'type' \t=> 'option',\n\t\t\t'default' => '',\n\t\t\t'sanitize_callback' => 'clea_base_social_sanitize',\n\t\t)\n\t);\t\n\n\t$wp_customize->add_control(\n \"{$prefix}_theme_settings[rss]\",\n\t\tarray(\n\t\t\t'label' => __('url RSS', 'clea-base'),\n\t\t\t'section' => 'unique-impact-1-social',\n\t\t\t'type' => 'text',\n\t\t)\n\t);\t\n\n\t/** demander Google + **/\n\t$wp_customize->add_setting( \n\t\t\"{$prefix}_theme_settings[google+]\", \n\t\tarray(\n\t\t\t'type' \t=> 'option',\n\t\t\t'default' => '',\n\t\t\t'sanitize_callback' => 'clea_base_social_sanitize',\n\t\t)\n\t);\t\n\n\t$wp_customize->add_control(\n \"{$prefix}_theme_settings[google+]\",\n\t\tarray(\n\t\t\t'label' => __('url Google +', 'clea-base'),\n\t\t\t'section' => 'unique-impact-1-social',\n\t\t\t'type' => 'text',\n\t\t)\n\t);\t\n\n\t/** demander LinkedIn **/\n\t$wp_customize->add_setting( \n\t\t\"{$prefix}_theme_settings[linkedin]\", \n\t\tarray(\n\t\t\t'type' \t=> 'option',\n\t\t\t'default' => '',\n\t\t\t'sanitize_callback' => 'clea_base_social_sanitize',\n\t\t)\n\t);\t\n\n\t$wp_customize->add_control(\n \"{$prefix}_theme_settings[linkedin]\",\n\t\tarray(\n\t\t\t'label' => __('url LinkedIn', 'clea-base'),\n\t\t\t'section' => 'unique-impact-1-social',\n\t\t\t'type' => 'text',\n\t\t)\n\t);\t\n\n\t/** demander Viadeo **/\n\t$wp_customize->add_setting( \n\t\t\"{$prefix}_theme_settings[viadeo]\", \n\t\tarray(\n\t\t\t'type' \t=> 'option',\n\t\t\t'default' => '',\n\t\t\t'sanitize_callback' => 'clea_base_social_sanitize',\n\t\t)\n\t);\t\n\n\t$wp_customize->add_control(\n \"{$prefix}_theme_settings[viadeo]\",\n\t\tarray(\n\t\t\t'label' => __('url Viadeo', 'clea-base'),\n\t\t\t'section' => 'unique-impact-1-social',\n\t\t\t'type' => 'text',\n\t\t)\n\t);\t\n\t\n}", "function cptui_register_my_cpts_how_it_works() {\n\n\t$labels = array(\n\t\t\"name\" => __( \"How It Works\", \"esoftkulo\" ),\n\t\t\"singular_name\" => __( \"How it Work\", \"esoftkulo\" ),\n\t);\n\n\t$args = array(\n\t\t\"label\" => __( \"How It Works\", \"esoftkulo\" ),\n\t\t\"labels\" => $labels,\n\t\t\"description\" => \"\",\n\t\t\"public\" => true,\n\t\t\"publicly_queryable\" => true,\n\t\t\"show_ui\" => true,\n\t\t\"delete_with_user\" => false,\n\t\t\"show_in_rest\" => true,\n\t\t\"rest_base\" => \"\",\n\t\t\"rest_controller_class\" => \"WP_REST_Posts_Controller\",\n\t\t\"has_archive\" => false,\n\t\t\"show_in_menu\" => true,\n\t\t\"show_in_nav_menus\" => true,\n\t\t\"exclude_from_search\" => false,\n\t\t\"capability_type\" => \"post\",\n\t\t\"map_meta_cap\" => true,\n\t\t\"hierarchical\" => false,\n\t\t\"rewrite\" => array( \"slug\" => \"how_it_works\", \"with_front\" => true ),\n\t\t\"query_var\" => true,\n\t\t\"supports\" => array( \"title\", \"editor\", \"thumbnail\" ),\n\t);\n\n\tregister_post_type( \"how_it_works\", $args );\n}", "function shortcode_insert_button()\n {\n $this->config['name']\t\t\t= __('Carousel With Thumbnails', 'swedenWp' );\n $this->config['tab']\t\t\t= __('Content Elements', 'swedenWp' );\n $this->config['icon']\t\t\t= swedenBuilder::$path['imagesURL'].\"sc-postslider.png\";\n $this->config['order']\t\t\t= 2;\n $this->config['target']\t\t\t= 'avia-target-insert';\n $this->config['shortcode'] \t\t= 'sw_thumb_nav_carousel';\n $this->config['shortcode_nested'] = array('sw_thumb_carousel_slide');\n $this->config['tooltip'] \t = __('Display a carousel element with thumb navigation', 'swedenWp' );\n }", "public function pluginDetails()\n {\n return [\n 'name' => 'SimpleCatalog',\n 'description' => 'This is a simple back-end plugin for managing displayable products.',\n 'author' => 'Wboyz',\n 'icon' => 'icon-leaf'\n ];\n }", "function samplecode_codex_init() {\n $labels = array(\n 'name' => _x( 'Classes', 'Post type general name', 'textdomain' ),\n 'singular_name' => _x( 'Class', 'Post type singular name', 'textdomain' ),\n 'menu_name' => _x( 'Classes', 'Admin Menu text', 'textdomain' ),\n 'name_admin_bar' => _x( 'Class', 'Add New on Toolbar', 'textdomain' ),\n 'add_new' => __( 'Add New', 'textdomain' ),\n 'add_new_item' => __( 'Add New Class', 'textdomain' ),\n 'new_item' => __( 'New Class', 'textdomain' ),\n 'edit_item' => __( 'Edit Class', 'textdomain' ),\n 'view_item' => __( 'View Class', 'textdomain' ),\n 'all_items' => __( 'All Classes', 'textdomain' ),\n 'search_items' => __( 'Search Classes', 'textdomain' ),\n 'parent_item_colon' => __( 'Parent Classes:', 'textdomain' ),\n 'not_found' => __( 'No Classes found.', 'textdomain' ),\n 'not_found_in_trash' => __( 'No Classes found in Trash.', 'textdomain' ),\n 'featured_image' => _x( 'Class Cover Image', 'Overrides the “Featured Image” phrase for this post type. Added in 4.3', 'textdomain' ),\n 'set_featured_image' => _x( 'Set cover image', 'Overrides the “Set featured image” phrase for this post type. Added in 4.3', 'textdomain' ),\n 'remove_featured_image' => _x( 'Remove cover image', 'Overrides the “Remove featured image” phrase for this post type. Added in 4.3', 'textdomain' ),\n 'use_featured_image' => _x( 'Use as cover image', 'Overrides the “Use as featured image” phrase for this post type. Added in 4.3', 'textdomain' ),\n 'archives' => _x( 'Class archives', 'The post type archive label used in nav menus. Default “Post Archives”. Added in 4.4', 'textdomain' ),\n 'insert_into_item' => _x( 'Insert into Class', 'Overrides the “Insert into post”/”Insert into page” phrase (used when inserting media into a post). Added in 4.4', 'textdomain' ),\n 'uploaded_to_this_item' => _x( 'Uploaded to this Class', 'Overrides the “Uploaded to this post”/”Uploaded to this page” phrase (used when viewing media attached to a post). Added in 4.4', 'textdomain' ),\n 'filter_items_list' => _x( 'Filter Classes list', 'Screen reader text for the filter links heading on the post type listing screen. Default “Filter posts list”/”Filter pages list”. Added in 4.4', 'textdomain' ),\n 'items_list_navigation' => _x( 'Classes list navigation', 'Screen reader text for the pagination heading on the post type listing screen. Default “Posts list navigation”/”Pages list navigation”. Added in 4.4', 'textdomain' ),\n 'items_list' => _x( 'Classes list', 'Screen reader text for the items list heading on the post type listing screen. Default “Posts list”/”Pages list”. Added in 4.4', 'textdomain' ),\n );\n \n $args = array(\n 'labels' => $labels,\n 'public' => true,\n 'publicly_queryable' => true,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'class' ),\n 'capability_type' => 'post',\n 'has_archive' => true,\n 'hierarchical' => false,\n 'menu_position' => null,\n 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt' ),\n );\n \n register_post_type( 'class', $args );\n\n\n $labels = array(\n 'name' => _x( 'Resources', 'Post type general name', 'textdomain' ),\n 'singular_name' => _x( 'Resource', 'Post type singular name', 'textdomain' ),\n 'menu_name' => _x( 'Resources', 'Admin Menu text', 'textdomain' ),\n 'name_admin_bar' => _x( 'Resource', 'Add New on Toolbar', 'textdomain' ),\n 'add_new' => __( 'Add New', 'textdomain' ),\n 'add_new_item' => __( 'Add New Resource', 'textdomain' ),\n 'new_item' => __( 'New Resource', 'textdomain' ),\n 'edit_item' => __( 'Edit Resource', 'textdomain' ),\n 'view_item' => __( 'View Resource', 'textdomain' ),\n 'all_items' => __( 'All Resources', 'textdomain' ),\n 'search_items' => __( 'Search Resources', 'textdomain' ),\n 'parent_item_colon' => __( 'Parent Resources:', 'textdomain' ),\n 'not_found' => __( 'No Resources found.', 'textdomain' ),\n 'not_found_in_trash' => __( 'No Resources found in Trash.', 'textdomain' ),\n 'featured_image' => _x( 'Resource Cover Image', 'Overrides the “Featured Image” phrase for this post type. Added in 4.3', 'textdomain' ),\n 'set_featured_image' => _x( 'Set cover image', 'Overrides the “Set featured image” phrase for this post type. Added in 4.3', 'textdomain' ),\n 'remove_featured_image' => _x( 'Remove cover image', 'Overrides the “Remove featured image” phrase for this post type. Added in 4.3', 'textdomain' ),\n 'use_featured_image' => _x( 'Use as cover image', 'Overrides the “Use as featured image” phrase for this post type. Added in 4.3', 'textdomain' ),\n 'archives' => _x( 'Resource archives', 'The post type archive label used in nav menus. Default “Post Archives”. Added in 4.4', 'textdomain' ),\n 'insert_into_item' => _x( 'Insert into Resource', 'Overrides the “Insert into post”/”Insert into page” phrase (used when inserting media into a post). Added in 4.4', 'textdomain' ),\n 'uploaded_to_this_item' => _x( 'Uploaded to this Resource', 'Overrides the “Uploaded to this post”/”Uploaded to this page” phrase (used when viewing media attached to a post). Added in 4.4', 'textdomain' ),\n 'filter_items_list' => _x( 'Filter Resources list', 'Screen reader text for the filter links heading on the post type listing screen. Default “Filter posts list”/”Filter pages list”. Added in 4.4', 'textdomain' ),\n 'items_list_navigation' => _x( 'Resources list navigation', 'Screen reader text for the pagination heading on the post type listing screen. Default “Posts list navigation”/”Pages list navigation”. Added in 4.4', 'textdomain' ),\n 'items_list' => _x( 'Resources list', 'Screen reader text for the items list heading on the post type listing screen. Default “Posts list”/”Pages list”. Added in 4.4', 'textdomain' ),\n );\n \n $args = array(\n 'labels' => $labels,\n 'public' => true,\n 'publicly_queryable' => true,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'resource' ),\n 'capability_type' => 'post',\n 'has_archive' => true,\n 'hierarchical' => false,\n 'menu_position' => null,\n 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt' ),\n );\n \n register_post_type( 'resource', $args ); \n}", "function my_theme_register_required_plugins() {\n\n\t/**\n\t * Array of plugin arrays. Required keys are name and slug.\n\t * If the source is NOT from the .org repo, then source is also required.\n\t */\n\t$plugins = array(\n\t\t/** This is an example of how to include a plugin pre-packaged with a theme */\n\t\tarray(\n\t\t\t'name' => 'ScrollToTop',\n\t\t\t'slug' => 'dynamic-to-top',\n\t\t\t'required' => false\n\t\t),\n\t\t\n\t\t/** This is an example of how to include a plugin from the WordPress Plugin Repository */\n\t\tarray(\n\t\t\t'name' => 'OptionTree',\n\t\t\t'slug' => 'option-tree',\n\t\t\t'required' => true\n\t\t)\n\t);\n\n\t/** Change this to your theme text domain, used for internationalising strings */\n\t// $theme_text_domain = 'skeleton';\n\n\t/**\n\t * Array of configuration settings. Uncomment and amend each line as needed.\n\t * If you want the default strings to be available under your own theme domain,\n\t * uncomment the strings and domain.\n\t * Some of the strings are added into a sprintf, so see the comments at the\n\t * end of each line for what each argument will be.\n\t */\n\t$config = array(\n\t\t/*'domain' => $theme_text_domain, // Text domain - likely want to be the same as your theme. */\n\t\t/*'default_path' => '', // Default absolute path to pre-packaged plugins */\n\t\t/*'menu' => 'install-required-plugins', // Menu slug */\n\t\t/*'notices' => true, // Show admin notices or not */\n\t\t'strings' => array(\n\t\t\t/*'page_title' \t\t\t\t=> __( 'Install Required Plugins', $theme_text_domain ), // */\n\t\t\t/*'menu_title' \t\t\t\t=> __( 'Install Plugins', $theme_text_domain ), // */\n\t\t\t/*'instructions_install' \t\t\t\t=> __( 'The %1$s plugin is required for this theme. Click on the big blue button below to install and activate %1$s.', $theme_text_domain ), // %1$s = plugin name */\n\t\t\t/*'instructions_install_recommended'\t=> __( 'The %1$s plugin is recommended for this theme. Click on the big blue button below to install and activate %1$s.', $theme_text_domain ), // %1$s = plugin name, %2$s = plugins page URL */\n\t\t\t/*'instructions_activate' \t\t\t\t=> __( 'The %1$s plugin is installed but currently inactive. Please go to the <a href=\"%2$s\">plugin administration page</a> page to activate it.', $theme_text_domain ), // %1$s = plugin name, %2$s = plugins page URL */\n\t\t\t'button' \t\t\t\t=> __( 'Install %s Now', $theme_text_domain ), // %1$s = plugin name */\n\t\t\t/*'installing' \t\t\t\t=> __( 'Installing Plugin: %s', $theme_text_domain ), // %1$s = plugin name */\n\t\t\t/*'oops' \t\t\t\t=> __( 'Something went wrong with the plugin API.', $theme_text_domain ), // */\n\t\t\t/*'notice_can_install_required' \t=> __( 'This theme requires the following plugins: %1$s.', $theme_text_domain ), // %1$s = plugin names */\n\t\t\t/*'notice_can_install_recommended'\t\t=> __( 'This theme recommends the following plugins: %1$s.', $theme_text_domain ), // %1$s = plugin names */\n\t\t\t/*'notice_cannot_install' \t\t\t\t=> __( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', $theme_text_domain ), // %1$s = plugin name */\n\t\t\t/*'notice_can_activate_required' \t=> __( 'The following required plugins are currently inactive: %1$s.', $theme_text_domain ), // %1$s = plugin names */\n\t\t\t/*'notice_can_activate_recommended'\t\t=> __( 'The following recommended plugins are currently inactive: %1$s.', $theme_text_domain ), // %1$s = plugin names */\n\t\t\t/*'notice_cannot_activate' \t\t\t\t=> __( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', $theme_text_domain ), // %1$s = plugin name */\n\t\t\t/*'return' \t\t\t\t=> __( 'Return to Required Plugins Installer', $theme_text_domain ), // */\n\t\t\t/*'plugin_activated' \t \t\t\t\t=> __( 'Plugin activated successfully.', $theme_text_domain ) // */\n\t\t)\n\t);\n\n\ttgmpa( $plugins, $config );\n\n}", "public function template() { ?>\n\n\t\t<div class=\"widefat\">\n\n\t\t\t<div class=\"welcome-panel\">\n\n\t\t\t\t<div class=\"welcome-panel-content\">\n\n\t\t\t\t\t<h2>\n\t\t\t\t\t\t<?php esc_html_e( 'Donate Toward Future Development', 'user_roles' ); ?>\n\t\t\t\t\t</h2>\n\n\t\t\t\t\t<p class=\"about-description\">\n\t\t\t\t\t\t<?php esc_html_e( 'The user_roles plugin needs funding to cover development costs toward version 3.0.', 'user_roles' ); ?>\n\t\t\t\t\t</p>\n\n\t\t\t\t\t<p class=\"user_roles-short-p\">\n\t\t\t\t\t\t<?php esc_html_e( \"user_roles itself will always remain free as long as I'm able to work on it. However, it is easily my largest and most complex plugin. A major update takes 100s of hours of development. If every user would donate just $1, it would fund fulltime development of this plugin for at least 3 years. Of course, it's not a reality that everyone is able donate. Pitching in any amount will help.\", 'user_roles' ); ?>\n\t\t\t\t\t</p>\n\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<a target=\"_blank\" class=\"button button-primary button-hero\" href=\"<?php echo esc_url( 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=E9D2YGZFM8QT4&source=url' ); ?>\"><?php esc_html_e( 'Donate Via PayPal', 'user_roles' ); ?></a>\n\t\t\t\t\t</p>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<a target=\"_blank\" href=\"https://Bestwebsite.com/#donate\"><?php esc_html_e( 'Learn More', 'user_roles' ); ?></a>\n\t\t\t\t\t</p>\n\n\t\t\t\t</div><!-- .plugin-card-top -->\n\n\t\t\t</div><!-- .plugin-card -->\n\n\t\t</div>\n\n\t<?php }", "public function pluginDetails()\n {\n return [\n 'name' => 'Service Me',\n 'description' => 'Service Me Components',\n 'author' => 'Darren Miller',\n 'icon' => 'icon-leaf'\n ];\n }", "function sample_admin_notice__success() {\n ?>\n <div class=\"notice notice-success is-dismissible\">\n <p><?php _e( 'RAR Example Plugin Installed!', 'sample-text-domain' ); ?></p>\n </div>\n <?php\n}", "function ex_divi_child_theme_setup() {\n\n if ( class_exists('ET_Builder_Module')) {\n\n class ET_Builder_Module_Image2 extends ET_Builder_Module {\n function init() {\n $this->name = __( 'Banner Image', 'et_builder' );\n $this->slug = 'et_pb_image2';\n // a whole bunch of php code that defines how the class functions\n \n \n }\n }\n $et_builder_module_image2 = new ET_Builder_Module_Image2();\n add_shortcode( 'et_pb_image2', array($et_builder_module_image2, '_shortcode_callback') );\n\n }\n\n}", "function spreadshop_assortment()\n{\ninclude(plugin_dir_path(__FILE__).'/spreadassortment.php');\nadd_filter('wp_head', 'sources');\n}", "function universityFeatures() {\n add_theme_support('title-tag');\n}", "function kcs_add_client_meta_boxes() {\n add_meta_box(\n 'kcs_client', // Unique ID\n esc_html__( 'Client URL', 'kcs' ), // Title\n 'kcs_client_meta_box', // Callback function\n 'client', // Admin page (or post type)\n 'normal', // Context\n 'high' // Priority\n );\n}", "public function pluginDetails() {\n return [\n 'name' => 'elearning',\n 'description' => 'No description provided yet...',\n 'author' => 'hung.do',\n 'icon' => 'icon-leaf'\n ];\n }", "function nodepicker_nodepicker_plugin() {\n if(module_exists('jquery_ui')){ jquery_ui_add('ui.dialog'); };\n drupal_add_css(drupal_get_path('module', 'nodepicker') . \"/plugins/nodepicker/dialog.css\");\n \n\t$plugins['nodepicker'] = array(\n 'title' => t('Node picker'),\n 'vendor url' => 'http://drupal.org/project/nodepicker',\n 'icon file' => 'nodepicker.png',\n 'icon title' => t('Insert links to internal content'),\n 'settings' => array(),\n );\n return $plugins;\n}", "function soliloquy_custom_css_plugins_loaded() {\n\n // Bail if the main class does not exist.\n if ( ! class_exists( 'Soliloquy' ) ) {\n return;\n }\n\n // Fire up the addon.\n add_action( 'soliloquy_init', 'soliloquy_custom_css_plugin_init' );\n \n // Loads the plugin textdomain for translation\n load_plugin_textdomain( SOLILOQUY_CUSTOM_CSS_PLUGIN_SLUG, false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );\n\n}", "public function pluginDetails()\n {\n return [\n 'name' => 'Blossom',\n 'description' => 'Plug-in used to develop views for displaying grade information',\n 'author' => 'Jacob Reid',\n 'icon' => 'icon-asterisk'\n ];\n }", "function felix_customize_register( $wp_customize ) {\n \n $wp_customize->add_panel( 'felix_landing_page', array(\n 'title' => __( 'Felix Landing Page', 'felix-landing-page' ),\n 'priority' => 10\n ) );\n \n require_once( 'customizer-panels/panel-general.php' );\n require_once( 'customizer-panels/panel-blockorder.php' );\n require_once( 'customizer-panels/panel-header.php' );\n require_once( 'customizer-panels/panel-jumbotron.php' );\n require_once( 'customizer-panels/panel-navbar.php' );\n require_once( 'customizer-panels/panel-products.php' );\n require_once( 'customizer-panels/panel-content.php' );\n require_once( 'customizer-panels/panel-articles.php' );\n require_once( 'customizer-panels/panel-footer.php' );\n \n}", "function village_required_plugins() {\n\t$template_directory = get_template_directory();\n\t\n\t$plugins = array(\n\n\t\t// This is an example of how to include a plugin pre-packaged with a theme\n\t\t// array(\n\t\t// \t'name' \t\t\t\t=> 'Enable Village Portfolio', // The plugin name\n\t\t// \t'slug' \t\t\t\t=> 'village-mellow-portfolio', // The plugin slug (typically the folder name)\n\t\t// \t'source' \t\t\t\t=> get_stylesheet_directory() . '/inc/plugins/village-mellow-portfolio.zip', // The plugin source\n\t\t// \t'required' \t\t\t\t=> false, // If false, the plugin is only 'recommended' instead of required\n\t\t// \t'version' \t\t\t\t=> '', // E.g. 1.0.0. If set, the active plugin must be this version or higher, otherwise a notice is presented\n\t\t// \t'force_activation' \t\t=> false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch\n\t\t// \t'force_deactivation' \t=> false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins\n\t\t// \t'external_url' \t\t\t=> '', // If set, overrides default API URL and points to an external URL\n\t\t// ),\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'Village Shortcodes', \n\t\t\t'slug' \t\t\t\t=> 'village-shortcodes', \n\t\t\t'source' \t\t\t\t=> $template_directory . '/assets/plugins/village-shortcodes.zip', \n\t\t\t'required' \t\t\t\t=> true, \n\t\t\t'version' \t\t\t\t=> '1.0.0', \n\t\t\t'force_activation' \t\t=> false, \n\t\t\t'force_deactivation' \t=> false, \n\t\t),\n\n\t\tarray(\n\t\t\t'name' \t\t=> 'Aqua Page Builder',\n\t\t\t'slug' \t\t=> 'aqua-page-builder',\n\t\t\t'version' \t=> '1.1.2',\n\t\t\t'required' \t=> true,\n\t\t\t'force_activation' \t\t=> true, \n\t ),\n\n\t\tarray(\n\t\t\t'name' \t\t=> 'Redux Framework',\n\t\t\t'slug' \t\t=> 'redux-framework',\n\t\t\t'version' \t=> '3.1.8',\n\t\t\t'required' \t=> true,\n\t ),\t\t\n\t\t\n\n\t\tarray(\n\t\t\t'name' \t\t=> 'Advanced Custom Fields',\n\t\t\t'slug' \t\t=> 'advanced-custom-fields',\n\t\t\t'version' \t=> '4.3.4',\n\t\t\t'required' \t=> true,\n\t\t),\n\t\n\t\tarray(\n\t\t\t'name' \t\t=> 'Contact Form 7',\n\t\t\t'slug' \t\t=> 'contact-form-7',\n\t\t\t'required' \t=> false,\n\t\t),\n\t\tarray(\n\t\t\t'name' \t\t=> 'Widget Shortcode',\n\t\t\t'slug' \t\t=> 'widget-shortcode',\n\t\t\t'required' \t=> false,\n\t\t),\n\t\tarray(\n\t\t\t'name' \t\t=> 'Font Awesome More Icons',\n\t\t\t'slug' \t\t=> 'font-awesome-more-icons',\n\t\t\t'required' \t=> false,\n\t\t),\n\t\tarray(\n\t\t 'name' => 'Simple Social Icons',\n\t\t 'slug' => 'simple-social-icons',\n\t\t 'required' => false,\n\t\t ),\n\t);\n\n\t\n\t$config = array(\n\t\t'domain' \t\t=> \"village\", \n\t\t'default_path' \t\t=> '', \n\t\t'parent_menu_slug' \t=> 'themes.php', \t\t\t\n\t\t'parent_url_slug' \t=> 'themes.php', \t\t\t\n\t\t'menu' \t\t=> 'install-required-plugins', \n\t\t'has_notices' \t=> true, \n\t\t'is_automatic' \t=> true,\t\t\t\t\t \n\t\t'message' \t\t\t=> '',\t\t\t\t\t\t\n\t\t'strings' \t\t=> array(\n\t\t\t'page_title' \t\t\t=> __( 'Install Required Plugins', 'village' ),\n\t\t\t'menu_title' \t\t\t=> __( 'Install Plugins', 'village' ),\n\t\t\t'installing' \t\t\t=> __( 'Installing Plugin: %s', 'village' ), // %1$s = plugin name\n\t\t\t'oops' \t\t\t=> __( 'Something went wrong with the plugin API.', 'village' ),\n\t\t\t'notice_can_install_required' \t\t\t=> _n_noop( 'This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_install_recommended'\t\t\t=> _n_noop( 'This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_install' \t\t\t\t\t=> _n_noop( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_activate_required' \t\t\t=> _n_noop( 'The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_activate_recommended'\t\t\t=> _n_noop( 'The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_activate' \t\t\t\t\t=> _n_noop( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.' ), // %1$s = plugin name(s)\n\t\t\t'notice_ask_to_update' \t\t\t\t\t\t=> _n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_update' \t\t\t\t\t\t=> _n_noop( 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.' ), // %1$s = plugin name(s)\n\t\t\t'install_link' \t\t\t\t\t \t\t\t=> _n_noop( 'Begin installing plugin', 'Begin installing plugins' ),\n\t\t\t'activate_link' \t\t\t\t \t\t\t=> _n_noop( 'Activate installed plugin', 'Activate installed plugins' ),\n\t\t\t'return' \t\t\t=> __( 'Return to Required Plugins Installer', 'village' ),\n\t\t\t'plugin_activated' \t\t\t=> __( 'Plugin activated successfully.', 'village' ),\n\t\t\t'complete' \t\t\t\t\t\t\t\t\t=> __( 'All plugins installed and activated successfully. %s', 'village' ), // %1$s = dashboard link\n\t\t\t'nag_type'\t\t\t\t\t\t\t\t\t=> 'updated' // Determines admin notice type - can only be 'updated' or 'error'\n\t\t)\n\t);\n\t\n\n\t/* -----------------------------------------------------------------*/\n\t/* \t\tApply 'register_village_plugins' filters\n\t/* \t\tSo that Other plugins can tap in and require more plugins\n\t/* -----------------------------------------------------------------*/\t\t\t\n\t// $plugins = apply_filters( 'register_village_plugins', $plugins );\n\ttgmpa( $plugins, $config );\n\n}", "function lbmn_register_required_plugins() {\n\t// there is a bug in tgmpa that prevents me from using 'default_path' in config\n\t$default_path = LBMN_INSTALLER . LBMN_PLUGINS;\n\t//get_template_directory_uri() . '/inc/plugins-integration/plugin-installables/';\n\t$plugins = array(\n\n\t\t// Include amazing 'Live Composer' plugin pre-packaged with a theme\n\t\t// http://codecanyon.net/item/live-composer-frontend-wordpress-page-builder/6594028?ref=lumbermandesigns\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'Live Composer',\n\t\t\t'slug' \t\t\t\t=> 'ds-live-composer',\n\t\t\t'source' \t\t\t\t=> $default_path . 'ds-live-composer.1.0.8.zip',\n\t\t\t'required' \t\t\t\t=> true,\n\t\t\t'version' \t\t\t\t=> '1.0.8', // make sure to update THEME_LC_VER constant too\n\t\t\t'force_activation' \t=> false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' \t\t=> '',\n\t\t),\n\n\t\t// Include 'Mega Main Menu' plugin pre-packaged with a theme\n\t\t// http://codecanyon.net/item/mega-main-menu-wordpress-menu-plugin/6135125?ref=lumbermandesigns\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'Mega Main Menu',\n\t\t\t'slug' \t\t\t\t=> 'mega_main_menu',\n\t\t\t'source' \t\t\t\t=> $default_path . 'mega_main_menu.2.0.3.zip',\n\t\t\t'required' \t\t\t\t=> true,\n\t\t\t'version' \t\t\t\t=> '2.0.3',\n\t\t\t'force_activation' \t=> false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' \t\t=> '',\n\t\t),\n\n\t\t// Include 'Meta Box' plugin pre-packaged with a theme\n\t\t// http://wordpress.org/plugins/meta-box/\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'Meta Box',\n\t\t\t'slug' \t\t\t\t=> 'meta-box',\n\t\t\t'required' \t\t\t\t=> true,\n\t\t\t'version' \t\t\t\t=> '', //'4.3.8',\n\t\t\t'force_activation' \t=> false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' \t\t=> '',\n\t\t),\n\n\t\t// Include 'WPFW - Menus Management' plugin pre-packaged with a theme\n\t\t// http://codecanyon.net/item/wordpress-menus-management/7814552?ref=lumbermandesigns\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'WPFW - Menus Management',\n\t\t\t'slug' \t\t\t\t=> 'wpfw_menus_management',\n\t\t\t'source' \t\t\t\t=> $default_path . 'wpfw_menus_management.0.0.1.zip',\n\t\t\t'required' \t\t\t\t=> true,\n\t\t\t'version' \t\t\t\t=> '0.0.1',\n\t\t\t'force_activation' \t=> false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' \t\t=> '',\n\t\t),\n\n\t\t// Include 'MasterSlider' plugin pre-packaged with a theme\n\t\t// http://codecanyon.net/item/master-slider-wordpress-responsive-touch-slider/7467925?ref=lumbermandesigns\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'MasterSlider',\n\t\t\t'slug' \t\t\t\t=> 'masterslider',\n\t\t\t'source' \t\t\t\t=> $default_path . 'masterslider.2.9.2.zip',\n\t\t\t'required' \t\t\t\t=> false,\n\t\t\t'version' \t\t\t\t=> '2.9.2',\n\t\t\t'force_activation' \t=> false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' \t\t=> '',\n\t\t),\n\n\t\t// Include 'Easy Social Share Buttons for WordPress' plugin pre-packaged with a theme\n\t\t// http://codecanyon.net/item/easy-social-share-buttons-for-wordpress/6394476?ref=lumbermandesigns\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'Easy Social Share Buttons for WordPress',\n\t\t\t'slug' \t\t\t\t=> 'easy-social-share-buttons',\n\t\t\t'source' \t\t\t\t=> $default_path . 'easy-social-share-buttons.2.0.1.zip',\n\t\t\t'required' \t\t\t\t=> false,\n\t\t\t'version' \t\t\t\t=> '2.0.1',\n\t\t\t'force_activation' \t=> false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' \t\t=> '',\n\t\t),\n\n\t\t// Include 'NEX-Forms' plugin pre-packaged with a theme\n\t\t// http://codecanyon.net/item/nexforms-the-ultimate-wordpress-form-builder/7103891?ref=lumbermandesigns\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'NEX-Forms',\n\t\t\t'slug' \t\t\t\t=> 'nex-forms/main.php',\n\t\t\t'source' \t\t\t\t=> $default_path . 'nex-forms.2.3.zip',\n\t\t\t'required' \t\t\t\t=> false,\n\t\t\t'version' \t\t\t\t=> '2.3',\n\t\t\t'force_activation' \t=> false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' \t\t=> '',\n\t\t),\n\n\t\t// Include 'Simplified Google Maps' plugin pre-packaged with a theme\n\t\t// http://cetabo.com\n\t\t// array(\n\t\t// \t'name' \t\t\t\t=> 'Simplified Google Maps', // Cetabo_GoogleMaps\n\t\t// \t'slug' \t\t\t\t=> 'cetabo-googlemaps',\n\t\t// \t'source' \t\t\t\t=> $default_path . 'cetabo-googlemaps.2.0.2.zip',\n\t\t// \t'required' \t\t\t\t=> false,\n\t\t// \t'version' \t\t\t\t=> '2.0.2',\n\t\t// \t'force_activation' \t=> false,\n\t\t// \t'force_deactivation' => false,\n\t\t// \t'external_url' \t\t=> '',\n\t\t// ),\n\t\t//\n\t\t// Replaced with another (better) alternative\n\t\t//\n\t\t// http://www.sbthemes.com/plugins/responsive-google-map-plugin/\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'SB Multilingual Responsive Google Map with Styles',\n\t\t\t'slug' \t\t\t\t=> 'sb-google-map',\n\t\t\t'source' \t\t\t\t=> $default_path . 'sb-google-map.1.5.zip',\n\t\t\t'required' \t\t\t\t=> false,\n\t\t\t'version' \t\t\t\t=> '1.5',\n\t\t\t'force_activation' \t=> false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' \t\t=> '',\n\t\t),\n\n\t\t// Include 'Rotating Tweets' plugin pre-packaged with a theme\n\t\t// http://wordpress.org/plugins/rotatingtweets/\n\t\t//\n\t\t// Removed due to performance issues\n\t\t//\n\t\t// array(\n\t\t// \t'name' \t\t\t\t=> 'Rotating Tweets (Twitter widget and shortcode)',\n\t\t// \t'slug' \t\t\t\t=> 'rotatingtweets',\n\t\t// \t'required' \t\t\t\t=> false,\n\t\t// \t'version' \t\t\t\t=> '', //'4.3.8',\n\t\t// \t'force_activation' \t=> false,\n\t\t// \t'force_deactivation' => false,\n\t\t// \t'external_url' \t\t=> '',\n\t\t// ),\n\n\t\t// Include 'Newsletter Sign-Up' plugin pre-packaged with a theme\n\t\t// http://wordpress.org/plugins/rotatingtweets/?ref=lumbermandesigns\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'Newsletter Sign-Up',\n\t\t\t'slug' \t\t\t\t=> 'newsletter-sign-up',\n\t\t\t'required' \t\t\t\t=> false,\n\t\t\t'version' \t\t\t\t=> '', //'4.3.8',\n\t\t\t'force_activation' \t=> false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' \t\t=> '',\n\t\t),\n\n\t\t// Include 'Fresh Favicon' premium plugin pre-packaged with a theme\n\t\t// http://codecanyon.net/item/fresh-favicon/8111680?ref=lumbermandesigns\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'Fresh Framework',\n\t\t\t'slug' \t\t\t\t=> 'fresh-framework',\n\t\t\t'source' \t\t\t\t=> $default_path . 'fresh-framework.1.4.6.zip',\n\t\t\t'required' \t\t\t\t=> false,\n\t\t\t'version' \t\t\t\t=> '1.4.6',\n\t\t\t'force_activation' \t=> false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' \t\t=> '',\n\t\t),\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'Fresh Favicon',\n\t\t\t'slug' \t\t\t\t=> 'fresh-favicon',\n\t\t\t'source' \t\t\t\t=> $default_path . 'fresh-favicon.1.1.1.0.zip',\n\t\t\t'required' \t\t\t\t=> false,\n\t\t\t'version' \t\t\t\t=> '1.1.1',\n\t\t\t'force_activation' \t=> false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' \t\t=> '',\n\t\t),\n\n\t\t// Include 'Rankie' premium plugin pre-packaged with our theme\n\t\t// http://codecanyon.net/item/rankie-wordpress-rank-tracker-plugin/7605032?ref=lumbermandesigns\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'Wordpress Rankie',\n\t\t\t'slug' \t\t\t\t=> 'wp-rankie',\n\t\t\t'source' \t\t\t\t=> $default_path . 'wp-rankie.1.2.3.zip',\n\t\t\t'required' \t\t\t\t=> false,\n\t\t\t'version' \t\t\t\t=> '1.2.3',\n\t\t\t'force_activation' \t=> false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' \t\t=> '',\n\t\t),\n\n\t\t// Include 'PageLoader' premium plugin pre-packaged with our theme\n\t\t// http://codecanyon.net/item/pageloader-a-preloader-with-content-slidein-/6629805?ref=lumbermandesigns\n\t\t/* Not yet...\n\t\tarray(\n\t\t\t'name' \t\t\t\t=> 'PageLoader, by Bonfire',\n\t\t\t'slug' \t\t\t\t=> 'pageloader-by-bonfire',\n\t\t\t'source' \t\t\t\t=> $default_path . 'pageloader-by-bonfire.1.7.zip',\n\t\t\t'required' \t\t\t\t=> false,\n\t\t\t'version' \t\t\t\t=> '1.7',\n\t\t\t'force_activation' \t=> false,\n\t\t\t'force_deactivation' => false,\n\t\t\t'external_url' \t\t=> '',\n\t\t),\n\t\t*/\n\t);\n\n\t/**\n\t * Array of configuration settings.\n\t */\n\t$config = array(\n\t\t'domain' \t\t=> 'lbmn', \t// Text domain - likely want to be the same as your theme.\n\t\t'default_path' \t\t=> '', // Default absolute path to pre-packaged plugins\n\t\t'parent_menu_slug' \t=> 'themes.php', \t\t\t\t// Default parent menu slug\n\t\t'parent_url_slug' \t=> 'themes.php', \t\t\t\t// Default parent URL slug\n\t\t'menu' \t\t=> 'install-required-plugins', \t// Menu slug\n\t\t'has_notices' \t=> true, \t// Show admin notices or not\n\t\t'is_automatic' \t=> true,\t\t\t\t\t \t// Automatically activate plugins after installation or not\n\t\t'message' \t\t\t=> '',\t\t\t\t\t\t\t// Message to output right before the plugins table\n\t\t'strings' \t\t=> array(\n\t\t\t'page_title' \t\t\t=> __( 'Install Required Plugins', 'lbmn' ),\n\t\t\t'menu_title' \t\t\t=> __( 'Install Plugins', 'lbmn' ),\n\t\t\t'installing' \t\t\t=> __( 'Installing Plugin: %s', 'lbmn' ), // %1$s = plugin name\n\t\t\t'oops' \t\t\t=> __( 'Something went wrong with the plugin API.', 'lbmn' ),\n\t\t\t'notice_can_install_required' \t\t\t=> _n_noop( 'This theme requires the following plugin (the plugin is already included, you need only to install/activate it): %1$s.', 'This theme requires the following plugins (the plugins are already included, you need only to install/activate them): %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_install_recommended'\t\t\t=> _n_noop( 'This theme recommends the following plugin (the plugin is already included, you need only to install/activate it): %1$s.', 'This theme recommends the following plugins (the plugins are already included, you need only to install/activate them): %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_install' \t\t\t\t\t=> _n_noop( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_activate_required' \t\t\t=> _n_noop( 'The following required plugin is installed but inactive: %1$s.', 'The following required plugins are installed but inactive: %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_can_activate_recommended'\t\t\t=> _n_noop( 'The following recommended plugin is installed but inactive: %1$s.', 'The following recommended plugins are installed but inactive: %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_activate' \t\t\t\t\t=> _n_noop( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.' ), // %1$s = plugin name(s)\n\t\t\t'notice_ask_to_update' \t\t\t\t\t\t=> _n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.' ), // %1$s = plugin name(s)\n\t\t\t'notice_cannot_update' \t\t\t\t\t\t=> _n_noop( 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.' ), // %1$s = plugin name(s)\n\t\t\t'install_link' \t\t\t\t\t \t\t\t=> _n_noop( 'Begin installing plugin', 'Begin installing plugins' ),\n\t\t\t'activate_link' \t\t\t\t \t\t\t=> _n_noop( 'Activate installed plugin', 'Activate installed plugins' ),\n\t\t\t'return' \t\t\t=> __( 'Return to Required Plugins Installer', 'lbmn' ),\n\t\t\t'plugin_activated' \t\t\t=> __( 'Plugin activated successfully.', 'lbmn' ),\n\t\t\t'complete' \t\t\t\t\t\t\t\t\t=> __( 'All plugins installed and activated successfully. %s', 'lbmn' ), // %1$s = dashboard link\n\t\t\t'nag_type'\t\t\t\t\t\t\t\t\t=> 'updated' // Determines admin notice type - can only be 'updated' or 'error'\n\t\t)\n\t);\n\n\ttgmpa( $plugins, $config );\n}", "public function __construct() {\n\n $this->config = array(\n\n // Handle will be used to use this shortcode\n 'handle' => 'cv_icon_box_child',\n\n // Whether or not this is a shortcode composer element\n 'composer_element' => false,\n\n // Whether or not this is a template builder element\n 'builder_element' => true,\n\n // Used by the template builder to determine where module can be dropped\n 'drop_target' => 3,\n\n // Used by the template builder to determine where module can have other\n // modules dropped inside of it\n 'drop_zone' => false,\n\n // Title will be used to identify this shortcode\n 'title' => __( 'Icon Box', 'canvys' ),\n\n // Icon will be used to represent this shortcode in composer/builder\n // List of available icons can be found in icons.json\n 'icon' => 'info-circled',\n\n // Whether or not shortcode is self closing\n 'self_closing' => false,\n\n // If shortcode is not self closing, specify its default content\n 'default_content' => null,\n\n // Specify whether or not content is directly editable\n 'content_editor' => true,\n\n // Specify whether or not the content is composed of another shortcode\n 'content_element' => false,\n\n // Array of shortcode settings and their respective attributes\n 'attributes' => array(\n\n new CV_Shortcode_Text_Control( 'title', array(\n 'title' => __( 'Title', 'canvys' ),\n 'description' => __( 'Icon Box Title, will default to \"Check this out\" if left blank.', 'canvys' ),\n 'placeholder' => __( 'Check this out', 'canvys' ),\n ) ),\n\n new CV_Shortcode_Link_Control( 'url', array(\n 'title' => __( 'Icon Box Link', 'canvys' ),\n 'description' => __( 'Wrap this icon box in a link. <strong>Do not use this setting if you plan on placing a link within the content of this icon box.</strong>', 'canvys' ),\n ) ),\n\n new CV_Shortcode_Color_Control( 'icon_color', array(\n 'title' => __( 'Icon Color', 'canvys' ),\n 'description' => __( 'Specify a custom color to use for the icon, if none is specified the default color will be used.', 'canvys' ),\n ) ),\n\n new CV_Shortcode_Icon_Control( 'icon', array(\n 'title' => __( 'Icon', 'canvys' ),\n 'description' => __( 'Select the icon for this icon box.', 'canvys' ),\n ) ),\n\n ),\n\n );\n }", "function gamesquare_customize_register( $wp_customize )\r\n{\r\n \r\n\r\n//===================== Upload do logotipo\r\n\r\n$wp_customize->add_section( 'sushiai_image' , array(\r\n 'title' => __( 'Logo', 'sushiai' ),\r\n 'description' => 'Modifique o logo',\r\n) );\r\n\r\n$wp_customize->add_setting( 'logo_image' , array(\r\n 'default' => 'http://preview.vicomercial.com.br/sushiai/wp-content/themes/sushiai/img/logo.png',\r\n) );\r\n\r\n$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'logo_image', array(\r\n\t'label' => __( 'Logo', 'sushiai' ),\r\n\t'section' => 'sushiai_image',\r\n\t'settings' => 'logo_image',\r\n) ) );\r\n\r\n\r\n//===================== Upload do logo cardápio\r\n\r\n$wp_customize->add_section( 'sushiai_image_cardapio' , array(\r\n 'title' => __( 'Image cardápio', 'sushiai' ),\r\n 'description' => 'Modifique o logo da seção cardápio',\r\n) );\r\n\r\n$wp_customize->add_setting( 'logo_image_cardapio' , array(\r\n 'default' => 'http://preview.vicomercial.com.br/sushiai/wp-content/themes/sushiai/img/logo.png',\r\n) );\r\n\r\n$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'logo_image_cardapio', array(\r\n\t'label' => __( 'Logo Cardapio', 'sushiai' ),\r\n\t'section' => 'sushiai_image_cardapio',\r\n\t'settings' => 'logo_image_cardapio',\r\n) ) );\r\n\r\n\r\n//===================== Url like facebook box\r\n\r\n$wp_customize->add_section( 'sushiai_box_facebook' , array(\r\n 'title' => __( 'Url like facebook box', 'sushiai' ),\r\n 'description' => 'URL like box facebook',\r\n) );\r\n\r\n$wp_customize->add_setting( 'ur_like_facebook' , array(\r\n 'default' => 'https://www.facebook.com/FacebookDevelopers',\r\n) );\r\n\r\n$wp_customize->add_control('url_like', array(\r\n\t'label' => __( 'url', 'sushiai' ),\r\n\t'section' => 'sushiai_box_facebook',\r\n\t'settings' => 'ur_like_facebook',\r\n) );\r\n\r\n//===================== Número de telefone\r\n\r\n$wp_customize->add_section( 'sushiai_fone' , array(\r\n 'title' => __( 'Número de telefone', 'sushiai' ),\r\n 'description' => 'Digite o número de telefone',\r\n) );\r\n\r\n$wp_customize->add_setting( 'text_fone' , array(\r\n 'default' => '(41) 3672-4116',\r\n) );\r\n\r\n$wp_customize->add_control('sushiai_fone_text', array(\r\n 'label' => __( 'url', 'sushiai' ),\r\n 'section' => 'sushiai_fone',\r\n 'settings' => 'text_fone',\r\n) );\r\n\r\n\r\n//===================== Endereço\r\n\r\n$wp_customize->add_section( 'sushiai_endereco' , array(\r\n 'title' => __( 'Endereço', 'sushiai' ),\r\n 'description' => 'Digite o seu endereço',\r\n) );\r\n\r\n$wp_customize->add_setting( 'text_endereco' , array(\r\n 'default' => 'Rua Lucia Madalena Strapassoni, 154 | Sala 5, Quatro Barras',\r\n) );\r\n\r\n$wp_customize->add_control('sushiai_endereco_text', array(\r\n 'label' => __( 'url', 'sushiai' ),\r\n 'section' => 'sushiai_endereco',\r\n 'settings' => 'text_endereco',\r\n) );\r\n\r\n}", "function plugin_url() {\n\t\t\n\t\treturn AVIA_PHP_URL.'avia_shortcodes/';\n\t}", "public function pluginDetails()\n {\n return [\n 'name' => 'Тинькофф Банк',\n 'description' => 'Проведение платежей через Tinkoff EACQ.',\n 'author' => 'Sozonov Alexey',\n 'icon' => 'icon-shopping-cart',\n 'homepage' => 'https://sozonov-alexey.ru'\n ];\n }", "public function get_plugin_slug()\n {\n }", "function show_dhz_plugins_list_meta_box() {\n\n\t\t$plugins = apply_filters('_dhz_plugins_list', array());\n\t\t?>\n\t\t\t<p style=\"margin-bottom: 10px; font-weight:500\"><?php _e(\"Thank you for using my plugins!\", \"acf-collapse-fields\") ?></p>\n\t\t\t<ul style=\"margin-top: 0; margin-left: 5px;\">\n\t\t\t\t<?php \n\t\t\t\t\tforeach ($plugins as $plugin) {\n\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t<li style=\"list-style-type: disc; list-style-position:inside; text-indent:-13px; margin-left:13px\">\n\t\t\t\t\t\t\t\t<?php \n\t\t\t\t\t\t\t\t\techo $plugin['title'].\"<br/>\";\n\t\t\t\t\t\t\t\t\tif ($plugin['doc']) {\n\t\t\t\t\t\t\t\t\t\t?> <a style=\"font-size:12px\" href=\"<?php echo $plugin['doc']; ?>\" target=\"_blank\"><?php _e(\"Documentation\", \"acf-collapse-fields\") ?></a><?php \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</li>\n\t\t\t\t\t\t<?php \n\t\t\t\t\t}\n\t\t\t\t?>\n\t\t\t</ul>\n\t\t\t<div style=\"margin-left:-12px; margin-right:-12px; margin-bottom: -12px; background: #2a9bd9; padding:14px 12px\">\n\t\t\t\t<p style=\"margin:0; text-align:center\"><a style=\"color: #fff;\" href=\"https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=XMLKD8H84HXB4&lc=US&item_name=Donation%20for%20WordPress%20Plugins&no_note=0&cn=Add%20a%20message%3a&no_shipping=1&currency_code=EUR\" target=\"_blank\"><?php _e(\"Please consider making a small donation!\", \"acf-collapse-fields\") ?></a></p>\n\t\t\t</div>\n\t\t<?php\n\t}", "public function pluginDetails()\n {\n return [\n 'name' => 'Menus',\n 'description' => 'Provides Foundation 5 menu components.',\n 'author' => 'stone',\n 'icon' => 'icon-bars'\n ];\n }", "function custom_type_sponsors() {\n\n\t$labels = array(\n\t\t'name' => _x( 'Sponsors', 'Post Type General Name', 'text_domain' ),\n\t\t'singular_name' => _x( 'Sponsor', 'Post Type Singular Name', 'text_domain' ),\n\t\t'menu_name' => __( 'Sponsors', 'text_domain' ),\n\t\t'parent_item_colon' => __( 'Sponsor:', 'text_domain' ),\n\t\t'all_items' => __( 'Alle sponsors', 'text_domain' ),\n\t\t'view_item' => __( 'Bekijk sponsor', 'text_domain' ),\n\t\t'add_new_item' => __( 'Voeg nieuwe sponsor', 'text_domain' ),\n\t\t'add_new' => __( 'Voeg nieuwe', 'text_domain' ),\n\t\t'edit_item' => __( 'Aanpassen sponsor', 'text_domain' ),\n\t\t'update_item' => __( 'Sponsor updaten', 'text_domain' ),\n\t\t'search_items' => __( 'Zoek sponsor', 'text_domain' ),\n\t\t'not_found' => __( 'Niet gevonden', 'text_domain' ),\n\t\t'not_found_in_trash' => __( 'Niet gevonden in prullebak', 'text_domain' ),\n\t);\n\t$args = array(\n\t\t'label' => __( 'sponsors', 'text_domain' ),\n\t\t'description' => __( ' ', 'text_domain' ),\n\t\t'labels' => $labels,\n\t\t'supports' => array( 'title', 'editor', ),\n\t\t'taxonomies' => array( 'category', 'post_tag' ),\n\t\t'hierarchical' => false,\n\t\t'public' => true,\n\t\t'show_ui' => true,\n\t\t'show_in_menu' => true,\n\t\t'show_in_nav_menus' => true,\n\t\t'show_in_admin_bar' => true,\n\t\t'menu_position' => 5,\n\t\t'menu_icon' => 'dashicons-heart',\n\t\t'can_export' => true,\n\t\t'has_archive' => true,\n\t\t'exclude_from_search' => false,\n\t\t'publicly_queryable' => true,\n\t\t'capability_type' => 'page',\n\t);\n\tregister_post_type( 'post_type', $args );\n\n}", "private function addons_pointer() {\n\t\treturn array(\n\t\t\t'content' => '<h3>' . __( 'Addons', 'formidable' ) . '</h3>'\n\t\t\t . '<p>' . sprintf( __( 'The powerful functions of %1$s can be extended with %2$spremium plugins%3$s. You can read all about the Formidable Premium Plugins %2$shere%3$s.', 'formidable' ), 'Formidable', '<a target=\"_blank\" href=\"' . esc_url( FrmAppHelper::make_affiliate_url( 'https://formidableforms.com/' ) ) . '\">', '</a>' )\n\t\t\t\t\t\t . '</p>'\n\t\t\t . '<p><strong>' . __( 'Like this plugin?', 'formidable' ) . '</strong><br/>' . sprintf( __( 'So, we&#8217;ve come to the end of the tour. If you like the plugin, please %1$srate it 5 stars on WordPress.org%2$s!', 'formidable' ), '<a target=\"_blank\" href=\"https://wordpress.org/plugins/formidable/\">', '</a>' ) . '</p>'\n\t\t\t . '<p>' . sprintf( __( 'Thank you for using our plugin and good luck with your forms!<br/><br/>Best,<br/>Team Formidable - %1$sformidableforms.com%2$s', 'formidable' ), '<a target=\"_blank\" href=\"' . esc_url( FrmAppHelper::make_affiliate_url( 'https://formidableforms.com/' ) ) . '\">', '</a>' ) . '</p>',\n\t\t\t'prev_page' => 'settings',\n\t\t);\n\t}", "abstract public function pluginDetails();", "function wpcf_custom_types_default() {\n return array(\n 'labels' => array(\n 'name' => '',\n 'singular_name' => '',\n 'add_new' => 'Add New',\n 'add_new_item' => 'Add New %s',\n// 'edit' => 'Edit',\n 'edit_item' => 'Edit %s',\n 'new_item' => 'New %s',\n// 'view' => 'View',\n 'view_item' => 'View %s',\n 'search_items' => 'Search %s',\n 'not_found' => 'No %s found',\n 'not_found_in_trash' => 'No %s found in Trash',\n 'parent_item_colon' => 'Parent %s',\n 'menu_name' => '%s',\n 'all_items' => '%s',\n ),\n 'slug' => '',\n 'description' => '',\n 'public' => true,\n 'capabilities' => false,\n 'menu_position' => null,\n 'menu_icon' => '',\n 'taxonomies' => array(\n 'category' => false,\n 'post_tag' => false,\n ),\n 'supports' => array(\n 'title' => true,\n 'editor' => true,\n 'trackbacks' => false,\n 'comments' => false,\n 'revisions' => false,\n 'author' => false,\n 'excerpt' => false,\n 'thumbnail' => false,\n 'custom-fields' => false,\n 'page-attributes' => false,\n 'post-formats' => false,\n ),\n 'rewrite' => array(\n 'enabled' => true,\n 'slug' => '',\n 'with_front' => true,\n 'feeds' => true,\n 'pages' => true,\n ),\n 'has_archive' => true,\n 'show_ui' => true,\n 'show_in_menu' => true,\n 'show_in_menu_page' => '',\n 'publicly_queryable' => true,\n 'exclude_from_search' => false,\n 'hierarchical' => false,\n 'query_var_enabled' => true,\n 'query_var' => '',\n 'can_export' => true,\n 'show_rest' => false,\n 'rest_base' => '',\n 'show_in_nav_menus' => true,\n 'register_meta_box_cb' => '',\n 'permalink_epmask' => 'EP_PERMALINK',\n 'update' => false,\n );\n}", "function sh_create_custom_settings_page() {\n //Includes settings for the html template\n //require_once( get_template_directory() . '/templates/admin_custom_settings.php' );\n require_once( plugin_dir_path(__FILE__) . '/templates/admin_custom_settings.php' );\n}", "function plugin_options_page() {\n?>\n<div>\n<h2>SOPA intro page Settings</h2>\nOptions relating to the Custom Plugin.\n<form action=\"options.php\" method=\"post\">\n<?php settings_fields('plugin_options'); ?>\n<?php do_settings_sections(PLUGIN_SLUG); ?>\n\n<p class=\"submit\">\n<input type=\"submit\" name=\"submit\" class=\"button-primary\" value=\"<?php _e('Save Changes') ?>\" />\n</p>\n</form></div>\n\n<?php }", "function plugin_cpt_register() {\n\n\t\t\t$labels = array(\n\t\t\t\t'name' => _x( 'Plugins', 'plugins', 'wp3sixty-extra' ),\n\t\t\t\t'singular_name' => _x( 'Plugin', 'plugin', 'wp3sixty-extra' ),\n\t\t\t\t'menu_name' => __( 'Plugin', 'wp3sixty-extra' ),\n\t\t\t\t'name_admin_bar' => __( 'Plugin', 'wp3sixty-extra' ),\n\t\t\t\t'archives' => __( 'Plugin Archives', 'wp3sixty-extra' ),\n\t\t\t\t'parent_item_colon' => __( 'Parent Plugin:', 'wp3sixty-extra' ),\n\t\t\t\t'all_items' => __( 'All Plugins', 'wp3sixty-extra' ),\n\t\t\t\t'add_new_item' => __( 'Add New Plugin', 'wp3sixty-extra' ),\n\t\t\t\t'add_new' => __( 'Add New', 'wp3sixty-extra' ),\n\t\t\t\t'new_item' => __( 'New Plugin', 'wp3sixty-extra' ),\n\t\t\t\t'edit_item' => __( 'Edit Plugin', 'wp3sixty-extra' ),\n\t\t\t\t'update_item' => __( 'Update Plugin', 'wp3sixty-extra' ),\n\t\t\t\t'view_item' => __( 'View Plugin', 'wp3sixty-extra' ),\n\t\t\t\t'search_items' => __( 'Search Plugin', 'wp3sixty-extra' ),\n\t\t\t\t'not_found' => __( 'Not found', 'wp3sixty-extra' ),\n\t\t\t\t'not_found_in_trash' => __( 'Not found in Trash', 'wp3sixty-extra' ),\n\t\t\t\t'featured_image' => __( 'Featured Image', 'wp3sixty-extra' ),\n\t\t\t\t'set_featured_image' => __( 'Set featured image', 'wp3sixty-extra' ),\n\t\t\t\t'remove_featured_image' => __( 'Remove featured image', 'wp3sixty-extra' ),\n\t\t\t\t'use_featured_image' => __( 'Use as featured image', 'wp3sixty-extra' ),\n\t\t\t\t'insert_into_item' => __( 'Insert into plugin', 'wp3sixty-extra' ),\n\t\t\t\t'uploaded_to_this_item' => __( 'Uploaded to this plugin', 'wp3sixty-extra' ),\n\t\t\t\t'items_list' => __( 'Items plugin', 'wp3sixty-extra' ),\n\t\t\t\t'items_list_navigation' => __( 'Plugin list navigation', 'wp3sixty-extra' ),\n\t\t\t\t'filter_items_list' => __( 'Filter plugins list', 'wp3sixty-extra' ),\n\t\t\t);\n\t\t\t$args = array(\n\t\t\t\t'label' => __( 'plugin', 'wp3sixty-extra' ),\n\t\t\t\t'description' => __( 'plugin cpt', 'wp3sixty-extra' ),\n\t\t\t\t'labels' => $labels,\n\t\t\t\t'supports' => array(\n\t\t\t\t\t'title',\n\t\t\t\t\t'editor',\n\t\t\t\t\t'excerpt',\n\t\t\t\t\t'author',\n\t\t\t\t\t'thumbnail',\n\t\t\t\t\t'comments',\n\t\t\t\t\t'revisions',\n\t\t\t\t\t'custom-fields',\n\t\t\t\t\t'post-formats',\n\t\t\t\t),\n\t\t\t\t'taxonomies' => array( 'category', 'post_tag' ),\n\t\t\t\t'hierarchical' => false,\n\t\t\t\t'public' => true,\n\t\t\t\t'show_ui' => true,\n\t\t\t\t'show_in_menu' => true,\n\t\t\t\t'menu_position' => 5,\n\t\t\t\t'menu_icon' => 'dashicons-hammer',\n\t\t\t\t'show_in_admin_bar' => true,\n\t\t\t\t'show_in_nav_menus' => true,\n\t\t\t\t'can_export' => true,\n\t\t\t\t'has_archive' => true,\n\t\t\t\t'exclude_from_search' => false,\n\t\t\t\t'publicly_queryable' => true,\n\t\t\t\t'capability_type' => 'page',\n\t\t\t);\n\t\t\tregister_post_type( 'plugin', $args );\n\n\t\t}", "function pw_sample_plugin_shortcode($atts) {\n\n\t$atts = shortcode_atts(\n\t\tarray(\n\t\t\t'id' => '',\n\t\t\t'author_name' => '',\n\t\t\t'year' => '',\n\t\t\t'category' => '',\n\t\t\t'tag' => '',\n\t\t\t'publisher' => '',\n\t\t),\n\t\t$atts,\n\t\t'book'\n\t);\n\n\t$id = $atts['id'];\n\t$author_name = $atts['author_name'];\n\t$year = $atts['year'];\n\t$category = $atts['category'];\n\t$tag = $atts['tag'];\n\t$publisher = $atts['publisher'];\n\n}", "function my_custom_post_registry() {\n\t$registry_labels = array(\n\t\t'name' => 'Registrations',\n\t\t'singular_name' => 'Cozmeena Shawl Registration',\n\t\t'add_new' => 'Add New',\n\t\t'all_items' => 'All Registrations',\n\t\t'add_new_item' => 'Add New Registration',\n\t\t'edit_item' => 'Edit Registration',\n\t\t'new_item' => 'New Registration',\n\t\t'view_item' => 'View Registration',\n\t\t'search_items' => 'Search Registrations',\n\t\t'not_found' => 'No Registrations found',\n\t\t'not_found_in_trash' => 'No Registrations found in trash',\n\t\t'parent_item_colon' => '',\n\t\t'menu_name' => 'Cozmeena Shawl Registrations'\n\t);\n\t$registry_args = array(\n\t\t'labels' => $registry_labels,\n\t\t'description' => \"The International Cozmeena Registry is the official record of Cozmeena Shawls\",\n\t\t'public' => true,\n\t\t'menu_position' => 5,\n\t\t'menu_icon' => '',\n\t\t'supports' => array('title','author', 'editor','thumbnail'),\n\t\t'capability_type' => 'coz_registry', // need to assign capabilities via plugin\n\t\t'map_meta_cap' => true,\n\t\t'has_archive' => true,\n\t); \n\tregister_post_type('coz_registry',$registry_args);\n}", "function scratch_custom_header_admin_preview() { ?>\n\n\t\t<div <?php hybrid_attr( 'body' ); // Fake <body> class. ?>>\n\n\t\t\t<header <?php hybrid_attr( 'header' ); ?>>\n\n\t\t\t\t<?php if ( display_header_text() ) : // If user chooses to display header text. ?>\n\n\t\t\t\t\t<div id=\"branding\">\n\t\t\t\t\t\t<?php hybrid_site_title(); ?>\n\t\t\t\t\t\t<?php hybrid_site_description(); ?>\n\t\t\t\t\t</div><!-- #branding -->\n\n\t\t\t\t<?php endif; // End check for header text. ?>\n\n\t\t\t</header><!-- #header -->\n\n\t\t\t<?php if ( get_header_image() && !display_header_text() ) : // If there's a header image but no header text. ?>\n\n\t\t\t\t<a href=\"<?php echo home_url(); ?>\" title=\"<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>\" rel=\"home\"><img class=\"header-image\" src=\"<?php header_image(); ?>\" width=\"<?php echo get_custom_header()->width; ?>\" height=\"<?php echo get_custom_header()->height; ?>\" alt=\"\" /></a>\n\n\t\t\t<?php elseif ( get_header_image() ) : // If there's a header image. ?>\n\n\t\t\t\t<img class=\"header-image\" src=\"<?php header_image(); ?>\" width=\"<?php echo get_custom_header()->width; ?>\" height=\"<?php echo get_custom_header()->height; ?>\" alt=\"\" />\n\n\t\t\t<?php endif; // End check for header image. ?>\n\n\t\t</div><!-- Fake </body> close. -->\n\n<?php }", "function _carousel_shortcode_info(&$shortcodes) {\n\t$shortcodes['carousel'] = array(\n\t\t'title' => t('Carousel'),\n\t\t'description' => t('Create a Carousel of items with captions'),\n\t\t'process callback' => 'art_shortcode_carousel',\n\t\t'tips callback' => 'art_shortcode_carousel_tip',\n\t);\n\t\n\t$shortcodes['carousel_item'] = array(\n\t\t'title' => t('Carousel Item'),\n\t\t'description' => t('Create a carousel item to go inside a carousel'),\n\t\t'process callback' => 'art_shortcode_carousel_item',\n\t\t'tips callback' => 'art_shortcode_carousel_item_tip',\n\t);\n\t\n\t\n\treturn $shortcodes;\n}", "function wp_dashboard_plugins()\n {\n }", "function shortcodes_xh_version()\n{\n global $pth;\n\n return '<h1>Shortcodes_xh</h1>'.\"\\n\"\n\t. tag('img src=\"'.$pth['folder']['plugins'].'shortcodes_xh/help/ShortCode_XH.png\" style=\"float: left; margin: 0 20px 20px 0\"')\n\t. '<p>This plugin is to use the familiar <a href=\"https://codex.wordpress.org/Shortcode_API\" target=\"_blank\">WordPress shortcode syntax</a> in CMSimple_XH.</p>'\n\t. '<p>Version: '.SHORTCODES_XH_VERSION.'</p>'.\"\\n\"\n\t. '<p>Copyright &copy; 2015 <a href=\"http://cmsimple-jp.org\" target=\"_blank\">cmsimple-jp.org</a></p>'.\"\\n\"\n\t. '<p>Original <a href=\"https://github.com/Badcow/Shortcodes\" target=\"_blank\">Badcow/Shortcodes Latest commit 5 Apr 2015</a></p>'\n\t. '<p style=\"text-align: justify\">'\n\t. '<b>License</b>'. tag('br') . \"\\n\"\n\t. ' Art License Terms : <a href=\"http://creativecommons.org/licenses/by-sa/4.0/\" target=\"_blank\">Creative Commons License </a> . Detail <a href=\"https://github.com/Badcow/Shortcodes\" target=\"_blank\">https://github.com/Badcow/Shortcodes</a>'. tag('br').\"\\n\"\n\t. ' Software License terms : <a href=\"http://www.gnu.org/licenses/\" target=\"_blank\">GPLv3.</a>';\n}", "public function htheme_hooks(){\r\n\r\n\t\t$settings = array (\r\n\t\t\t'icon' => 'icon_element_row'\r\n\t\t);\r\n\t\tvc_map_update( 'vc_row', $settings );\r\n\r\n\t\t$settings = array (\r\n\t\t\t'icon' => 'icon_element_text_block'\r\n\t\t);\r\n\t\tvc_map_update( 'vc_column_text', $settings );\r\n\r\n\t\t$settings = array (\r\n\t\t\t'icon' => 'icon_element_icon'\r\n\t\t);\r\n\t\tvc_map_update( 'vc_icon', $settings );\r\n\r\n\t\t// ~ REMOVE DEFAULTS\r\n\r\n\t\t#REMOVE DEFAULT ELEMENTS\r\n\t\tadd_filter( 'vc_build_admin_page', array($this,'htheme_remove_default_elements'), 11 );\r\n\r\n\t\t#ACTION FOR REMOVING DEFAULT TEMPLATES\r\n\t\tadd_filter( 'vc_load_default_templates', array($this, 'htheme_my_custom_template_modify_array') );\r\n\r\n\t\t// ~ ELEMENTS\r\n\r\n\t\t#ACTION FOR ADDING CUSTOM ELEMENT\r\n\t\tadd_action('vc_before_init', array($this, 'htheme_banner_element') ); // ~ BANNER\r\n\t\tadd_action('vc_before_init', array($this, 'htheme_launch_element') ); // ~ LAUNCH PADS\r\n\t\tadd_action('vc_before_init', array($this, 'htheme_title_element') ); // ~ TITLE\r\n\t\tadd_action('vc_before_init', array($this, 'htheme_blog_element') ); // ~ BLOG\r\n\t\tadd_action('vc_before_init', array($this, 'htheme_blog_carousel_element') ); // ~ BLOG CAROUSEL\r\n\t\tadd_action('vc_before_init', array($this, 'htheme_instagram_element') ); // ~ INSTAGRAM\r\n\t\tadd_action('vc_before_init', array($this, 'htheme_imgcarousel_element') ); // ~ IMG CAROUSEL\r\n\t\tadd_action('vc_before_init', array($this, 'htheme_contact_form_element')); // ~ CONTACT FORM ELEMENT\r\n\t\tadd_action('vc_before_init', array($this, 'htheme_map_element')); // ~ MAP ELEMENT\r\n\t\tadd_action('vc_before_init', array($this, 'htheme_line_element')); // ~ HORIZONTAL LINE ELEMENT\r\n\r\n\t\t#IF POST TYPES ARE AVAILABLE\r\n\t\tif(is_plugin_active( 'hutility/hutility.php' )){\r\n\t\t\tadd_action('vc_before_init', array($this, 'htheme_people_element')); // ~ PEOPLE/MEMBERS ELEMENT\r\n\t\t\tadd_action('vc_before_init', array($this, 'htheme_signup_form_element')); // ~ NEWSLETTER SIGNUP FORM ELEMENT\r\n\t\t\tadd_action('vc_before_init', array($this, 'htheme_lookbooks')); // ~ LOOKBOOKS\r\n\t\t\tadd_action('vc_before_init', array($this, 'htheme_testimonial_element') ); // ~ TESTIMONIAL\r\n\t\t}\r\n\r\n\t\t#ADD PARAMS\r\n\t\tadd_action('vc_before_init', array($this, 'htheme_add_params')); // ~ HORIZONTAL LINE ELEMENT\r\n\r\n\t\t#REMOVE PARAMS\r\n\t\tadd_action('vc_before_init', array($this, 'htheme_remove_params')); // ~ HORIZONTAL LINE ELEMENT\r\n\r\n\t\t#IF WOOCOMMERCE CLASS EXIST - ADD WOO VISUAL COMPOSER ELEMENTS\r\n\t\tif ( class_exists( 'WooCommerce' ) ){\r\n\t\t\tadd_action('vc_before_init', array($this, 'htheme_woolist_element')); // ~ WOO LIST\r\n\t\t\tadd_action('vc_before_init', array($this, 'htheme_woocategory_element')); // ~ WOO CATEGORY\r\n\t\t\tadd_action('vc_before_init', array($this, 'htheme_woocol_element')); // ~ WOO COL\r\n\t\t\tadd_action('vc_before_init', array($this, 'htheme_look_element')); // ~ GET THE LOOK\r\n\t\t\tadd_action('vc_before_init', array($this, 'htheme_promo_element')); // ~ PROMO\r\n\t\t\tadd_action('vc_before_init', array($this, 'htheme_top_ten')); // ~ TOP TEN\r\n\t\t}\r\n\r\n\t\t// ~ TEMPLATES\r\n\r\n\t\t#ACTION FOR ADDING A TEMPLATE\r\n\t\tadd_filter( 'vc_load_default_templates', array($this, 'htheme_my_custom_template_at_first_position') );\r\n\r\n\t}", "public function pluginDetails()\n {\n return [\n 'name' => 'fenncs.newspageviews::lang.plugin.name',\n 'description' => 'fenncs.newspageviews::lang.plugin.description',\n 'author' => 'Fon E. Noel NFEBE',\n 'icon' => 'oc-icon-eye',\n 'homepage' => 'https://github.com/fenn-cs/newspageviews'\n ];\n }", "function thirdtheme_our_client_about_page()\n {\n add_theme_support('post-thumbnails'); \n //add_image_size('client_image',400,400);\n $args = array(\n 'labels' => array('name' =>__('our client '),\n 'add_new' =>__('add client image')),\n \n 'public' => true,\n 'menu_icon' =>'dashicons-image-filter',\n 'supports' => array( 'title','thumbnail')); \n register_post_type('our_client',$args);\n }", "public function pluginDetails()\n {\n return [\n 'name' => 'Rating',\n 'description' => 'Add Rating Stars to Blog Post',\n 'author' => 'Sw33t',\n 'icon' => 'icon-star'\n ];\n }", "function client_meta_init()\n{\n add_meta_box('client_meta', 'Ссылка', 'client_meta_setup', 'client', 'side', 'low');\n // add a callback function to save any data a user enters in\n add_action('save_post','client_meta_save');\n}" ]
[ "0.6294805", "0.61994964", "0.6085358", "0.59934855", "0.5982559", "0.59812176", "0.59600335", "0.59597266", "0.59216386", "0.59137356", "0.58999705", "0.58946747", "0.58770806", "0.58717877", "0.5857315", "0.58494806", "0.5814598", "0.57994807", "0.57551235", "0.57475483", "0.57430387", "0.5740429", "0.57324284", "0.5730494", "0.5714617", "0.5713793", "0.5709024", "0.5708556", "0.5700314", "0.5698313", "0.5698306", "0.56732243", "0.5672172", "0.5668618", "0.5659857", "0.56183094", "0.5609043", "0.56027395", "0.55995065", "0.55966234", "0.5581143", "0.5581027", "0.5579014", "0.55784947", "0.5577861", "0.55738187", "0.55673194", "0.55658054", "0.55580527", "0.55451447", "0.5540065", "0.5535028", "0.5533332", "0.55170786", "0.55158687", "0.5512796", "0.5500501", "0.5495699", "0.5494818", "0.54874396", "0.5487175", "0.5485418", "0.54830647", "0.5482403", "0.5473459", "0.5457631", "0.545307", "0.54454035", "0.5443279", "0.5441766", "0.54370916", "0.543702", "0.5433606", "0.54333925", "0.54299873", "0.5429798", "0.5428273", "0.5425209", "0.54193574", "0.5418321", "0.5410661", "0.5408531", "0.54084754", "0.5408333", "0.54003286", "0.539757", "0.5397138", "0.5396705", "0.5395857", "0.5395513", "0.53812385", "0.5375594", "0.5373893", "0.53735167", "0.53727585", "0.53710973", "0.5371074", "0.53694165", "0.5368456", "0.5366193" ]
0.67817694
0
/ Mapping of SVG icon so when you're searching in CS Elements, it has a nice graphic.
function si_custom_elements_icon_map( $icon_map ) { $icon_map['si_custom_elements'] = EXTENSION_URL . '/assets/svg/icons.svg'; return $icon_map; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSvgIcon();", "public function getIcon();", "public function getIcon();", "function image_svg_to_icon($svg_abspath, $icon_abspath, &$height = 0, &$width = 0, $color = false)\n{\n $svg_string = file_get_contents($svg_abspath);\n $im = image_svg_string_to_icon_obj($svg_string, $height, $width, $color);\n return image_return_write($im, $icon_abspath);\n}", "public static function iconPath()\n {\n return Craft::getAlias('@seibertio/elasticsearch/icon.svg');\n }", "public function icon ( )\n\t{\n\t\treturn Array( 'id' => $this->id,\t// shoud be consistent with what is passed to _uicmp_stuff_fold class\n\t\t\t\t\t 'title' => $this->messages['icon'] );\n\t}", "public function getIcon() {}", "public function icon($icon);", "public function icon(): string;", "public function get_menu_icon() {\n\t\tob_start();\n\t\t?>\n\t\t<svg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" viewBox=\"0 0 292 337.2\" style=\"enable-background:new 0 0 292 337.2;\" xml:space=\"preserve\">\n\t\t\t<style type=\"text/css\">\n\t\t\t\t.st0 {\n\t\t\t\t\tfill: #FFFFFF;\n\t\t\t\t}\n\t\t\t</style>\n\t\t\t<g id=\"Beehive\">\n\t\t\t\t<polygon class=\"st0\" points=\"125.4,153.4 177.1,201.3 183,195 145,121.7 \t\"/>\n\t\t\t\t<polygon class=\"st0\" points=\"81,112.3 106.5,135.9 147,70.2 201.6,175.6 290.2,83.2 146,0 0,84.3 0,204.1 \t\"/>\n\t\t\t\t<polygon class=\"st0\" points=\"292,170.4 292,116.8 213.9,199.2 224.6,220.1 \t\"/>\n\t\t\t\t<polygon class=\"st0\" points=\"215.8,258.2 195.3,218.8 178.2,236.9 111.8,175.4 47.1,280 146,337.2 292,252.9 292,201.5 \t\"/>\n\t\t\t\t<polygon class=\"st0\" points=\"93,158 82.8,148.7 0,242.2 0,252.9 25.5,267.6 \t\"/>\n\t\t\t</g>\n\t\t</svg>\n\t\t<?php\n\t\t$svg = ob_get_clean();\n\n\t\treturn 'data:image/svg+xml;base64,' . base64_encode( $svg );\n\t}", "public static function svgIcon()\n {\n return '<svg class=\"sidebar-icon icon-location\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path fill=\"var(--sidebar-icon)\" d=\"M5.64 16.36a9 9 0 1 1 12.72 0l-5.65 5.66a1 1 0 0 1-1.42 0l-5.65-5.66zm11.31-1.41a7 7 0 1 0-9.9 0L12 19.9l4.95-4.95zM12 14a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-2a2 2 0 1 0 0-4 2 2 0 0 0 0 4z\" /></svg>';\n }", "public function get_menu_icon() {\n\n\t\treturn file_get_contents( $this->get_base_path() . '/images/menu-icon.svg' );\n\n\t}", "public function parse_svg() {\n\t\t$files = $this->get_all_svg_files();\n\t\tif ( empty( $files ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t/**\n\t\t * Get the allowed tags to parse icon's ids\n\t\t *\n\t\t * @param string $allowed_tags : Passed directly to strip_tags\n\t\t *\n\t\t * @return string\n\t\t * @since 2.0.1\n\t\t *\n\t\t * @author david-treblig\n\t\t */\n\t\t$allowed_tags = apply_filters( 'acf_svg_icon_svg_parse_tags', '<symbol><g>' );\n\n\t\t$out = array();\n\n\t\t// Ignore SVG with type media to check if there are multiple sprite\n\t\t$custom_files = array_filter(\n\t\t\t$files,\n\t\t\tfunction ( $file ) {\n\t\t\t\treturn 'media' !== $file['type'];\n\t\t\t}\n\t\t);\n\n\t\tforeach ( $files as $file ) {\n\t\t\tif ( ! is_file( $file['file'] ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif ( 'media' === $file['type'] ) {\n\t\t\t\t$pathinfo = pathinfo( $file['file'] );\n\t\t\t\t$out[] = array(\n\t\t\t\t\t'id' => $file['id'],\n\t\t\t\t\t'text' => self::get_nice_display_text( $pathinfo['filename'], false ),\n\t\t\t\t\t'url' => $file['file_url'],\n\t\t\t\t\t'disabled' => false,\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\t// If not extract them from the CSS file.\n\t\t\t\t$contents = file_get_contents( $file['file'] );\n\t\t\t\tpreg_match_all( '/id=\"(\\S+)\"/m', strip_tags( $contents, $allowed_tags ), $svg );\n\n\t\t\t\tforeach ( $svg[1] as $id ) {\n\t\t\t\t\t$id = sanitize_title( $id );\n\t\t\t\t\t// If multiple sprites registered, return sprite name and icon name, otherwise return icon name only\n\t\t\t\t\t$value = 1 < count( $custom_files ) ? basename( $file['file'] ) . '#' . $id : $id;\n\t\t\t\t\t$out[] = array(\n\t\t\t\t\t\t'id' => $value,\n\t\t\t\t\t\t'text' => self::get_nice_display_text( $id ),\n\t\t\t\t\t\t'disabled' => false,\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn apply_filters( 'acf_svg_icon_parsed_svg', $out, $files );\n\t}", "public function getIconPath() {\n\t\treturn WCF::getPath() . 'icon/flag/'.$this->countryCode.'.svg';\n\t}", "public static function getIcon(): string\n {\n }", "public static function getIcon(): string\n {\n }", "function image_svg_to_icon_blob($svg_string, &$height = 0, &$width = 0, $color = false)\n{\n $im = image_svg_string_to_icon_obj($svg_string, $height, $width, $color);\n return image_return_blob($im);\n}", "public function getSpriteIconCode() {}", "public function getIcon()\n {\n return empty($this->model->icon) ? 'globe' : $this->model->icon;\n }", "public static function get_all_icons_svg() {\n if ( self::$icon_svgs && is_object( self::$icon_svgs ) ) {\n return self::$icon_svgs;\n }\n $directory = get_template_directory() . '/assets/images/icons/svg/';\n $icons = [];\n $iterator = new \\DirectoryIterator( $directory );\n foreach ( $iterator as $file ) {\n if ( ! $file->isFile() ) {\n continue;\n }\n $parts = explode( '.', $file->getFilename() );\n if ( empty( $parts[1] ) || 'svg' != $parts[1] ) {\n continue;\n }\n $icon_name = $parts[0];\n $icon = static::get_icon( $icon_name );\n $icons[ $icon_name ] = (object) [\n 'svg' => $icon,\n 'label' => $icon_name,\n ];\n }\n ksort( $icons );\n self::$icon_svgs = $icons;\n return self::$icon_svgs;\n }", "public function getIcon()\n {\n }", "function sIcon($icon, $class = null)\n {\n return '<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"' . $class . '\"><use xlink:href=\"#' . $icon . '\"></use></svg>';\n }", "function TS_VCSC_Add_Icons_Element_Lean() {\r\n\t\t\t\tvc_lean_map('TS-VCSC-Font-Icons', \t\t\t\t\t\t\tarray($this, 'TS_VCSC_Add_Icons_Element'), null);\r\n\t\t\t}", "private function get_icon()\n\t{\n\t\treturn $this->m_icon;\n\t}", "private function get_icon()\n\t{\n\t\treturn $this->m_icon;\n\t}", "public function getIcon(): string\n {\n return $this->icon ?: static::DEFAULT_ICON;\n }", "public function getIconForResourceWithPngFileReturnsIcon() {}", "public function get_icon() {\n\t\treturn 'eicon-image';\n\t}", "public function getIconName() {}", "public function getIconName() {}", "public function getIconName() {}", "public function getIconName() {}", "public function getIcon()\n {\n return $this->get(self::_ICON);\n }", "private function setIconPaths()\n {\n // Directory URL and path\n $plugin = CGIT_SOCIALIZE_PLUGIN;\n $dir = 'icons';\n $url = plugin_dir_url($plugin) . $dir;\n $path = plugin_dir_path($plugin) . $dir;\n\n // Apply filters for customization\n $ext = apply_filters('cgit_socialize_icon_extension', '.svg');\n $url = apply_filters('cgit_socialize_icon_url', $url);\n $path = apply_filters('cgit_socialize_icon_path', $path);\n\n // Make sure directories have trailing slashes\n $url = trailingslashit($url);\n $path = trailingslashit($path);\n\n // Add URLs and paths to each network\n foreach ($this->networks as $key => $value) {\n $this->networks[$key]['icon'] = $url . $key . $ext;\n $this->networks[$key]['icon_path'] = $path . $key . $ext;\n }\n }", "public function getIcon() {\r\n \r\n $mime = explode(\"/\", $this->mime); \r\n \r\n switch ($mime[0]) {\r\n case \"video\" : \r\n return [\r\n \"label\" => \"Video\",\r\n \"icon\" => '<i class=\"fa fa-file-video-o\"></i>'\r\n ];\r\n \r\n break;\r\n \r\n case \"image\" : \r\n return [\r\n \"label\" => \"Image\",\r\n \"icon\" => '<i class=\"fa fa-file-image-o\"></i>'\r\n ];\r\n \r\n break;\r\n \r\n }\r\n \r\n switch ($this->mime) {\r\n case \"application/msword\":\r\n case \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\":\r\n return [ \r\n \"label\" => \"Microsoft Word\",\r\n \"icon\" => '<i class=\"fa fa-file-word-o\"></i>'\r\n ];\r\n \r\n break;\r\n \r\n case \"application/vnd.ms-excel\":\r\n case \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\":\r\n return [ \r\n \"label\" => \"Microsoft Excel\",\r\n \"icon\" => '<i class=\"fa fa-file-excel-o\"></i>'\r\n ];\r\n \r\n break;\r\n \r\n case \"application/pdf\":\r\n case \"application/x-pdf\":\r\n return [ \r\n \"label\" => \"PDF\",\r\n \"icon\" => '<i class=\"fa fa-file-pdf-o\"></i>'\r\n ];\r\n \r\n break;\r\n \r\n }\r\n \r\n return [\r\n \"label\" => \"Unknown\",\r\n \"icon\" => '<i class=\"fa fa-file-o\"></i>'\r\n ];\r\n \r\n }", "public function get_icon_name_map() {\n return [];\n }", "public function get_icon2d(): string\n {\n return $this->_download('icon2d.png');\n }", "public function getIcon() {\n\t\t//regex is used to check if there's a filename within the iconFile string\n\t\treturn preg_replace('/^.*\\/([^\\/]+\\.(gif|png))?$/i', '\\1', $this->iconFile) ? $this->iconFile : '';\n\t}", "function icon() {\n global $CFG;\n\n return \"<img src='$CFG->wwwroot/blocks/ilp/pix/graphicon.jpg' height='24' width='24' />\";\n }", "function get_icon() {\n\t\treturn $this->settings['icon'];\n\t}", "private function get_svg_files_path() {\n\t\t$custom_svg_path_icons = apply_filters( 'acf_svg_icon_filepath', array() );\n\n\t\treturn array_map( function ( $val ) {\n\t\t\treturn [\n\t\t\t\t'type' => 'custom',\n\t\t\t\t'file' => $val,\n\t\t\t];\n\t\t}, (array) $custom_svg_path_icons );\n\t}", "function image_svg_string_to_icon_obj($svg_string, &$height = 0, &$width = 0, $color = false)\n{\n\n $svg_string = image_scale_svg($svg_string, $height, $width);\n if ($color) {\n $svg_string = image_color_svg($svg_string, $color);\n }\n if (strpos($svg_string, '<?xml') !== 0) {\n $svg_string = '<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>' . $svg_string;\n }\n\n $im = new \\Imagick();\n $im->setBackgroundColor(new \\ImagickPixel('transparent'));\n $im->readImageBlob($svg_string);\n $svg_width = $im->getImageWidth();\n $svg_height = $im->getImageHeight();\n\n $im->setImageFormat('png32');\n $im->setImageCompressionQuality(100);\n return $im;\n\n}", "public function iN_AllSVGIcons() {\n\t\t$query = mysqli_query($this->db, \"SELECT * FROM i_svg_icons\") or die(mysqli_error($this->db));\n\t\twhile ($row = mysqli_fetch_array($query)) {\n\t\t\t$data[] = $row;\n\t\t}\n\t\tif (!empty($data)) {\n\t\t\treturn $data;\n\t\t}\n\t}", "protected function establish_icon() {\n\t\t$this->icon = \"<i class='sw swp_{$this->key}_icon'></i>\";\n\t}", "protected function get__icon()\n\t{\n\t\treturn NULL;\n\t}", "function mod_escape_get_fontawesome_icon_map() {\n return [\n 'mod_escape:e/copy' => 'fa-clone',\n ];\n}", "public function get_icon() {\n\t\t\treturn WC_SUMO_Sagepay_Common_Functions::get_icon( $this->cardtypes, $this->sagelink, $this->sagelogo, $this->id );\n\t\t}", "public function icon()\n {\n return $this->icon;\n }", "public function getIcon()\n {\n return $this->icon;\n }", "public function getIcon()\n {\n return $this->icon;\n }", "public function getIcon()\n {\n return $this->icon;\n }", "public function getIcon()\n {\n return $this->icon;\n }", "public function getIcon()\n {\n return $this->icon;\n }", "public function getIcon()\n {\n return $this->icon;\n }", "public function getIcon()\n {\n return $this->icon;\n }", "public function getIcon()\n {\n return $this->Icon;\n }", "protected function collectTcaSpriteIcons() {}", "function get_svg($key) {\n\t$content = 'none';\n\t$file = get_stylesheet_directory().'/library/assets/svg/'.$key.'.svg';\n\tif(file_exists($file)) {\n\t\t$content = file_get_contents($file);\n\t}\n\treturn $content;\n}", "public function icon(): string\n {\n return 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACYSURBVEhLYxgFJIHU1FSjtLS0i0D8AYj7gEKMEBkqAaAFF4D4ERCvAFrwH4gDoFIMKSkpFkB+OTEYqgUTACXfA/GqjIwMQyD9H2hRHlQKJFcBEiMGQ7VgAqCBvUgK32dmZspCpagGGNPT0/1BLqeF4bQHQJePpiIwhmrBBEADR1MRfgB0+WgqAmOoFkwANHA0FY0CUgEDAwCQ0PUpNB3kqwAAAABJRU5ErkJggg==';\n }", "public function icons($item) {\n //\n return keyExtractor($item, \"icon\") ?: \"fa fa-circle-o\";\n }", "public function getIcon() {\r\n\t\r\n\t$fileType = $this->getType();\r\n\t\r\n\t$image = array(\r\n\t 'image/gif',\r\n\t 'image/png',\r\n\t 'image/jpg',\r\n\t 'image/jpeg'\r\n\t);\r\n\t\r\n\t$rarZip = array(\r\n\t 'application/zip',\r\n 'application/x-rar-compressed'\r\n\t);\r\n\t\r\n\t$audio = array(\r\n\t 'audio/mpeg'\r\n\t);\r\n\t\r\n\t$video = array(\r\n\t 'video/quicktime',\r\n\t 'video/mp4'\r\n\t);\r\n\t\r\n\t$pdf = array(\r\n\t 'application/pdf'\r\n\t);\r\n\t\r\n\t$wordExcelPptx = array(\r\n\t 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\r\n\t 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\r\n\t 'application/vnd.openxmlformats-officedocument.presentationml.presentation',\r\n\t 'application/msword',\r\n\t 'application/vnd.ms-excel',\r\n\t 'application/vnd.ms-powerpoint'\r\n\t);\r\n\t\r\n\tif (in_array($fileType, $image)) {\r\n\t return \"image.png\";\r\n\t} elseif (in_array($fileType, $audio)) {\r\n\t return \"audio.png\";\r\n\t} elseif (in_array($fileType, $video)) {\r\n\t return \"video.png\";\r\n\t} elseif (in_array($fileType, $rarZip)) {\r\n\t return \"rarZip.png\";\r\n\t} elseif (in_array($fileType, $pdf)) {\r\n\t return \"pdf.png\";\r\n\t} elseif (in_array($fileType, $wordExcelPptx)) {\r\n\t return \"wordExcelPptx.png\";\r\n\t} else {\r\n\t return \"default.png\";\r\n\t}\r\n\t\r\n }", "public function override_svg_icons() {\n\t\tglobal $menu;\n\n\t\t// Only do this if we're not in an API request, as we override the $menu global.\n\t\tif ( $this->is_api_request ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$svg_items = array();\n\t\tforeach ( $menu as $idx => $menu_item ) {\n\t\t\t// Menu items that don't have icons, for example separators, have less than 7\n\t\t\t// elements, partly because the 7th is the icon. So, if we have less than 7,\n\t\t\t// let's skip it.\n\t\t\tif ( count( $menu_item ) < 7 ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If the hookname contain a URL than sanitize it by replacing invalid characters.\n\t\t\tif ( false !== strpos( $menu_item[5], '://' ) ) {\n\t\t\t\t$menu_item[5] = preg_replace( '![:/.]+!', '_', $menu_item[5] );\n\t\t\t}\n\n\t\t\tif ( 0 === strpos( $menu_item[6], 'data:image/svg+xml' ) && 'site-card' !== $menu_item[3] ) {\n\t\t\t\t$svg_items[] = array(\n\t\t\t\t\t'icon' => $menu_item[6],\n\t\t\t\t\t'id' => $menu_item[5],\n\t\t\t\t);\n\t\t\t\t$menu_item[4] .= ' menu-svg-icon';\n\t\t\t\t$menu_item[6] = 'none';\n\t\t\t}\n\t\t\t// phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited\n\t\t\t$menu[ $idx ] = $menu_item;\n\t\t}\n\t\tif ( count( $svg_items ) > 0 ) {\n\t\t\t$styles = '.menu-svg-icon .wp-menu-image { background-repeat: no-repeat; background-position: center center } ';\n\t\t\tforeach ( $svg_items as $svg_item ) {\n\t\t\t\t$styles .= sprintf( '#%s .wp-menu-image { background-image: url( \"%s\" ) }', $svg_item['id'], $svg_item['icon'] );\n\t\t\t}\n\t\t\t$styles .= '@supports ( mask-image: none ) or ( -webkit-mask-image: none ) { ';\n\t\t\t$styles .= '.menu-svg-icon .wp-menu-image { background-image: none; } ';\n\t\t\t$styles .= '.menu-svg-icon .wp-menu-image::before { background-color: currentColor; ';\n\t\t\t$styles .= 'mask-size: contain; mask-position: center center; mask-repeat: no-repeat; ';\n\t\t\t$styles .= '-webkit-mask-size: contain; -webkit-mask-position: center center; -webkit-mask-repeat: no-repeat; content:\"\" } ';\n\t\t\tforeach ( $svg_items as $svg_item ) {\n\t\t\t\t$styles .= sprintf(\n\t\t\t\t\t'#%s .wp-menu-image { background-image: none; } #%s .wp-menu-image::before{ mask-image: url( \"%s\" ); -webkit-mask-image: url( \"%s\" ) }',\n\t\t\t\t\t$svg_item['id'],\n\t\t\t\t\t$svg_item['id'],\n\t\t\t\t\t$svg_item['icon'],\n\t\t\t\t\t$svg_item['icon']\n\t\t\t\t);\n\t\t\t}\n\t\t\t$styles .= '}';\n\n\t\t\twp_register_style( 'svg-menu-overrides', false, array(), '20210331' );\n\t\t\twp_enqueue_style( 'svg-menu-overrides' );\n\t\t\twp_add_inline_style( 'svg-menu-overrides', $styles );\n\t\t}\n\t}", "public function icons() {\n\n\t\t$solid_icons = array(\n\t\t\t\"fas-f641\" => \"fas fa-ad\",\n\t\t\t\"fas-f2b9\" => \"fas fa-address-book\",\n\t\t\t\"fas-f2bb\" => \"fas fa-address-card\",\n\t\t\t\"fas-f042\" => \"fas fa-adjust\",\n\t\t\t\"fas-f5d0\" => \"fas fa-air-freshener\",\n\t\t\t\"fas-f037\" => \"fas fa-align-center\",\n\t\t\t\"fas-f039\" => \"fas fa-align-justify\",\n\t\t\t\"fas-f036\" => \"fas fa-align-left\",\n\t\t\t\"fas-f038\" => \"fas fa-align-right\",\n\t\t\t\"fas-f461\" => \"fas fa-allergies\",\n\t\t\t\"fas-f0f9\" => \"fas fa-ambulance\",\n\t\t\t\"fas-f2a3\" => \"fas fa-american-sign-language-interpreting\",\n\t\t\t\"fas-f13d\" => \"fas fa-anchor\",\n\t\t\t\"fas-f103\" => \"fas fa-angle-double-down\",\n\t\t\t\"fas-f100\" => \"fas fa-angle-double-left\",\n\t\t\t\"fas-f101\" => \"fas fa-angle-double-right\",\n\t\t\t\"fas-f102\" => \"fas fa-angle-double-up\",\n\t\t\t\"fas-f107\" => \"fas fa-angle-down\",\n\t\t\t\"fas-f104\" => \"fas fa-angle-left\",\n\t\t\t\"fas-f105\" => \"fas fa-angle-right\",\n\t\t\t\"fas-f106\" => \"fas fa-angle-up\",\n\t\t\t\"fas-f556\" => \"fas fa-angry\",\n\t\t\t\"fas-f644\" => \"fas fa-ankh\",\n\t\t\t\"fas-f5d1\" => \"fas fa-apple-alt\",\n\t\t\t\"fas-f187\" => \"fas fa-archive\",\n\t\t\t\"fas-f557\" => \"fas fa-archway\",\n\t\t\t\"fas-f358\" => \"fas fa-arrow-alt-circle-down\",\n\t\t\t\"fas-f359\" => \"fas fa-arrow-alt-circle-left\",\n\t\t\t\"fas-f35a\" => \"fas fa-arrow-alt-circle-right\",\n\t\t\t\"fas-f35b\" => \"fas fa-arrow-alt-circle-up\",\n\t\t\t\"fas-f0ab\" => \"fas fa-arrow-circle-down\",\n\t\t\t\"fas-f0a8\" => \"fas fa-arrow-circle-left\",\n\t\t\t\"fas-f0a9\" => \"fas fa-arrow-circle-right\",\n\t\t\t\"fas-f0aa\" => \"fas fa-arrow-circle-up\",\n\t\t\t\"fas-f063\" => \"fas fa-arrow-down\",\n\t\t\t\"fas-f060\" => \"fas fa-arrow-left\",\n\t\t\t\"fas-f061\" => \"fas fa-arrow-right\",\n\t\t\t\"fas-f062\" => \"fas fa-arrow-up\",\n\t\t\t\"fas-f0b2\" => \"fas fa-arrows-alt\",\n\t\t\t\"fas-f337\" => \"fas fa-arrows-alt-h\",\n\t\t\t\"fas-f338\" => \"fas fa-arrows-alt-v\",\n\t\t\t\"fas-f2a2\" => \"fas fa-assistive-listening-systems\",\n\t\t\t\"fas-f069\" => \"fas fa-asterisk\",\n\t\t\t\"fas-f1fa\" => \"fas fa-at\",\n\t\t\t\"fas-f558\" => \"fas fa-atlas\",\n\t\t\t\"fas-f5d2\" => \"fas fa-atom\",\n\t\t\t\"fas-f29e\" => \"fas fa-audio-description\",\n\t\t\t\"fas-f559\" => \"fas fa-award\",\n\t\t\t\"fas-f77c\" => \"fas fa-baby\",\n\t\t\t\"fas-f77d\" => \"fas fa-baby-carriage\",\n\t\t\t\"fas-f55a\" => \"fas fa-backspace\",\n\t\t\t\"fas-f04a\" => \"fas fa-backward\",\n\t\t\t\"fas-f7e5\" => \"fas fa-bacon\",\n\t\t\t\"fas-f666\" => \"fas fa-bahai\",\n\t\t\t\"fas-f24e\" => \"fas fa-balance-scale\",\n\t\t\t\"fas-f515\" => \"fas fa-balance-scale-left\",\n\t\t\t\"fas-f516\" => \"fas fa-balance-scale-right\",\n\t\t\t\"fas-f05e\" => \"fas fa-ban\",\n\t\t\t\"fas-f462\" => \"fas fa-band-aid\",\n\t\t\t\"fas-f02a\" => \"fas fa-barcode\",\n\t\t\t\"fas-f0c9\" => \"fas fa-bars\",\n\t\t\t\"fas-f433\" => \"fas fa-baseball-ball\",\n\t\t\t\"fas-f434\" => \"fas fa-basketball-ball\",\n\t\t\t\"fas-f2cd\" => \"fas fa-bath\",\n\t\t\t\"fas-f244\" => \"fas fa-battery-empty\",\n\t\t\t\"fas-f240\" => \"fas fa-battery-full\",\n\t\t\t\"fas-f242\" => \"fas fa-battery-half\",\n\t\t\t\"fas-f243\" => \"fas fa-battery-quarter\",\n\t\t\t\"fas-f241\" => \"fas fa-battery-three-quarters\",\n\t\t\t\"fas-f236\" => \"fas fa-bed\",\n\t\t\t\"fas-f0fc\" => \"fas fa-beer\",\n\t\t\t\"fas-f0f3\" => \"fas fa-bell\",\n\t\t\t\"fas-f1f6\" => \"fas fa-bell-slash\",\n\t\t\t\"fas-f55b\" => \"fas fa-bezier-curve\",\n\t\t\t\"fas-f647\" => \"fas fa-bible\",\n\t\t\t\"fas-f206\" => \"fas fa-bicycle\",\n\t\t\t\"fas-f84a\" => \"fas fa-biking\",\n\t\t\t\"fas-f1e5\" => \"fas fa-binoculars\",\n\t\t\t\"fas-f780\" => \"fas fa-biohazard\",\n\t\t\t\"fas-f1fd\" => \"fas fa-birthday-cake\",\n\t\t\t\"fas-f517\" => \"fas fa-blender\",\n\t\t\t\"fas-f6b6\" => \"fas fa-blender-phone\",\n\t\t\t\"fas-f29d\" => \"fas fa-blind\",\n\t\t\t\"fas-f781\" => \"fas fa-blog\",\n\t\t\t\"fas-f032\" => \"fas fa-bold\",\n\t\t\t\"fas-f0e7\" => \"fas fa-bolt\",\n\t\t\t\"fas-f1e2\" => \"fas fa-bomb\",\n\t\t\t\"fas-f5d7\" => \"fas fa-bone\",\n\t\t\t\"fas-f55c\" => \"fas fa-bong\",\n\t\t\t\"fas-f02d\" => \"fas fa-book\",\n\t\t\t\"fas-f6b7\" => \"fas fa-book-dead\",\n\t\t\t\"fas-f7e6\" => \"fas fa-book-medical\",\n\t\t\t\"fas-f518\" => \"fas fa-book-open\",\n\t\t\t\"fas-f5da\" => \"fas fa-book-reader\",\n\t\t\t\"fas-f02e\" => \"fas fa-bookmark\",\n\t\t\t\"fas-f84c\" => \"fas fa-border-all\",\n\t\t\t\"fas-f850\" => \"fas fa-border-none\",\n\t\t\t\"fas-f853\" => \"fas fa-border-style\",\n\t\t\t\"fas-f436\" => \"fas fa-bowling-ball\",\n\t\t\t\"fas-f466\" => \"fas fa-box\",\n\t\t\t\"fas-f49e\" => \"fas fa-box-open\",\n\t\t\t\"fas-f95b\" => \"fas fa-box-tissue\",\n\t\t\t\"fas-f468\" => \"fas fa-boxes\",\n\t\t\t\"fas-f2a1\" => \"fas fa-braille\",\n\t\t\t\"fas-f5dc\" => \"fas fa-brain\",\n\t\t\t\"fas-f7ec\" => \"fas fa-bread-slice\",\n\t\t\t\"fas-f0b1\" => \"fas fa-briefcase\",\n\t\t\t\"fas-f469\" => \"fas fa-briefcase-medical\",\n\t\t\t\"fas-f519\" => \"fas fa-broadcast-tower\",\n\t\t\t\"fas-f51a\" => \"fas fa-broom\",\n\t\t\t\"fas-f55d\" => \"fas fa-brush\",\n\t\t\t\"fas-f188\" => \"fas fa-bug\",\n\t\t\t\"fas-f1ad\" => \"fas fa-building\",\n\t\t\t\"fas-f0a1\" => \"fas fa-bullhorn\",\n\t\t\t\"fas-f140\" => \"fas fa-bullseye\",\n\t\t\t\"fas-f46a\" => \"fas fa-burn\",\n\t\t\t\"fas-f207\" => \"fas fa-bus\",\n\t\t\t\"fas-f55e\" => \"fas fa-bus-alt\",\n\t\t\t\"fas-f64a\" => \"fas fa-business-time\",\n\t\t\t\"fas-f1ec\" => \"fas fa-calculator\",\n\t\t\t\"fas-f133\" => \"fas fa-calendar\",\n\t\t\t\"fas-f073\" => \"fas fa-calendar-alt\",\n\t\t\t\"fas-f274\" => \"fas fa-calendar-check\",\n\t\t\t\"fas-f783\" => \"fas fa-calendar-day\",\n\t\t\t\"fas-f272\" => \"fas fa-calendar-minus\",\n\t\t\t\"fas-f271\" => \"fas fa-calendar-plus\",\n\t\t\t\"fas-f273\" => \"fas fa-calendar-times\",\n\t\t\t\"fas-f784\" => \"fas fa-calendar-week\",\n\t\t\t\"fas-f030\" => \"fas fa-camera\",\n\t\t\t\"fas-f083\" => \"fas fa-camera-retro\",\n\t\t\t\"fas-f6bb\" => \"fas fa-campground\",\n\t\t\t\"fas-f786\" => \"fas fa-candy-cane\",\n\t\t\t\"fas-f55f\" => \"fas fa-cannabis\",\n\t\t\t\"fas-f46b\" => \"fas fa-capsules\",\n\t\t\t\"fas-f1b9\" => \"fas fa-car\",\n\t\t\t\"fas-f5de\" => \"fas fa-car-alt\",\n\t\t\t\"fas-f5df\" => \"fas fa-car-battery\",\n\t\t\t\"fas-f5e1\" => \"fas fa-car-crash\",\n\t\t\t\"fas-f5e4\" => \"fas fa-car-side\",\n\t\t\t\"fas-f8ff\" => \"fas fa-caravan\",\n\t\t\t\"fas-f0d7\" => \"fas fa-caret-down\",\n\t\t\t\"fas-f0d9\" => \"fas fa-caret-left\",\n\t\t\t\"fas-f0da\" => \"fas fa-caret-right\",\n\t\t\t\"fas-f150\" => \"fas fa-caret-square-down\",\n\t\t\t\"fas-f191\" => \"fas fa-caret-square-left\",\n\t\t\t\"fas-f152\" => \"fas fa-caret-square-right\",\n\t\t\t\"fas-f151\" => \"fas fa-caret-square-up\",\n\t\t\t\"fas-f0d8\" => \"fas fa-caret-up\",\n\t\t\t\"fas-f787\" => \"fas fa-carrot\",\n\t\t\t\"fas-f218\" => \"fas fa-cart-arrow-down\",\n\t\t\t\"fas-f217\" => \"fas fa-cart-plus\",\n\t\t\t\"fas-f788\" => \"fas fa-cash-register\",\n\t\t\t\"fas-f6be\" => \"fas fa-cat\",\n\t\t\t\"fas-f0a3\" => \"fas fa-certificate\",\n\t\t\t\"fas-f6c0\" => \"fas fa-chair\",\n\t\t\t\"fas-f51b\" => \"fas fa-chalkboard\",\n\t\t\t\"fas-f51c\" => \"fas fa-chalkboard-teacher\",\n\t\t\t\"fas-f5e7\" => \"fas fa-charging-station\",\n\t\t\t\"fas-f1fe\" => \"fas fa-chart-area\",\n\t\t\t\"fas-f080\" => \"fas fa-chart-bar\",\n\t\t\t\"fas-f201\" => \"fas fa-chart-line\",\n\t\t\t\"fas-f200\" => \"fas fa-chart-pie\",\n\t\t\t\"fas-f00c\" => \"fas fa-check\",\n\t\t\t\"fas-f058\" => \"fas fa-check-circle\",\n\t\t\t\"fas-f560\" => \"fas fa-check-double\",\n\t\t\t\"fas-f14a\" => \"fas fa-check-square\",\n\t\t\t\"fas-f7ef\" => \"fas fa-cheese\",\n\t\t\t\"fas-f439\" => \"fas fa-chess\",\n\t\t\t\"fas-f43a\" => \"fas fa-chess-bishop\",\n\t\t\t\"fas-f43c\" => \"fas fa-chess-board\",\n\t\t\t\"fas-f43f\" => \"fas fa-chess-king\",\n\t\t\t\"fas-f441\" => \"fas fa-chess-knight\",\n\t\t\t\"fas-f443\" => \"fas fa-chess-pawn\",\n\t\t\t\"fas-f445\" => \"fas fa-chess-queen\",\n\t\t\t\"fas-f447\" => \"fas fa-chess-rook\",\n\t\t\t\"fas-f13a\" => \"fas fa-chevron-circle-down\",\n\t\t\t\"fas-f137\" => \"fas fa-chevron-circle-left\",\n\t\t\t\"fas-f138\" => \"fas fa-chevron-circle-right\",\n\t\t\t\"fas-f139\" => \"fas fa-chevron-circle-up\",\n\t\t\t\"fas-f078\" => \"fas fa-chevron-down\",\n\t\t\t\"fas-f053\" => \"fas fa-chevron-left\",\n\t\t\t\"fas-f054\" => \"fas fa-chevron-right\",\n\t\t\t\"fas-f077\" => \"fas fa-chevron-up\",\n\t\t\t\"fas-f1ae\" => \"fas fa-child\",\n\t\t\t\"fas-f51d\" => \"fas fa-church\",\n\t\t\t\"fas-f111\" => \"fas fa-circle\",\n\t\t\t\"fas-f1ce\" => \"fas fa-circle-notch\",\n\t\t\t\"fas-f64f\" => \"fas fa-city\",\n\t\t\t\"fas-f7f2\" => \"fas fa-clinic-medical\",\n\t\t\t\"fas-f328\" => \"fas fa-clipboard\",\n\t\t\t\"fas-f46c\" => \"fas fa-clipboard-check\",\n\t\t\t\"fas-f46d\" => \"fas fa-clipboard-list\",\n\t\t\t\"fas-f017\" => \"fas fa-clock\",\n\t\t\t\"fas-f24d\" => \"fas fa-clone\",\n\t\t\t\"fas-f20a\" => \"fas fa-closed-captioning\",\n\t\t\t\"fas-f0c2\" => \"fas fa-cloud\",\n\t\t\t\"fas-f381\" => \"fas fa-cloud-download-alt\",\n\t\t\t\"fas-f73b\" => \"fas fa-cloud-meatball\",\n\t\t\t\"fas-f6c3\" => \"fas fa-cloud-moon\",\n\t\t\t\"fas-f73c\" => \"fas fa-cloud-moon-rain\",\n\t\t\t\"fas-f73d\" => \"fas fa-cloud-rain\",\n\t\t\t\"fas-f740\" => \"fas fa-cloud-showers-heavy\",\n\t\t\t\"fas-f6c4\" => \"fas fa-cloud-sun\",\n\t\t\t\"fas-f743\" => \"fas fa-cloud-sun-rain\",\n\t\t\t\"fas-f382\" => \"fas fa-cloud-upload-alt\",\n\t\t\t\"fas-f561\" => \"fas fa-cocktail\",\n\t\t\t\"fas-f121\" => \"fas fa-code\",\n\t\t\t\"fas-f126\" => \"fas fa-code-branch\",\n\t\t\t\"fas-f0f4\" => \"fas fa-coffee\",\n\t\t\t\"fas-f013\" => \"fas fa-cog\",\n\t\t\t\"fas-f085\" => \"fas fa-cogs\",\n\t\t\t\"fas-f51e\" => \"fas fa-coins\",\n\t\t\t\"fas-f0db\" => \"fas fa-columns\",\n\t\t\t\"fas-f075\" => \"fas fa-comment\",\n\t\t\t\"fas-f27a\" => \"fas fa-comment-alt\",\n\t\t\t\"fas-f651\" => \"fas fa-comment-dollar\",\n\t\t\t\"fas-f4ad\" => \"fas fa-comment-dots\",\n\t\t\t\"fas-f7f5\" => \"fas fa-comment-medical\",\n\t\t\t\"fas-f4b3\" => \"fas fa-comment-slash\",\n\t\t\t\"fas-f086\" => \"fas fa-comments\",\n\t\t\t\"fas-f653\" => \"fas fa-comments-dollar\",\n\t\t\t\"fas-f51f\" => \"fas fa-compact-disc\",\n\t\t\t\"fas-f14e\" => \"fas fa-compass\",\n\t\t\t\"fas-f066\" => \"fas fa-compress\",\n\t\t\t\"fas-f422\" => \"fas fa-compress-alt\",\n\t\t\t\"fas-f78c\" => \"fas fa-compress-arrows-alt\",\n\t\t\t\"fas-f562\" => \"fas fa-concierge-bell\",\n\t\t\t\"fas-f563\" => \"fas fa-cookie\",\n\t\t\t\"fas-f564\" => \"fas fa-cookie-bite\",\n\t\t\t\"fas-f0c5\" => \"fas fa-copy\",\n\t\t\t\"fas-f1f9\" => \"fas fa-copyright\",\n\t\t\t\"fas-f4b8\" => \"fas fa-couch\",\n\t\t\t\"fas-f09d\" => \"fas fa-credit-card\",\n\t\t\t\"fas-f125\" => \"fas fa-crop\",\n\t\t\t\"fas-f565\" => \"fas fa-crop-alt\",\n\t\t\t\"fas-f654\" => \"fas fa-cross\",\n\t\t\t\"fas-f05b\" => \"fas fa-crosshairs\",\n\t\t\t\"fas-f520\" => \"fas fa-crow\",\n\t\t\t\"fas-f521\" => \"fas fa-crown\",\n\t\t\t\"fas-f7f7\" => \"fas fa-crutch\",\n\t\t\t\"fas-f1b2\" => \"fas fa-cube\",\n\t\t\t\"fas-f1b3\" => \"fas fa-cubes\",\n\t\t\t\"fas-f0c4\" => \"fas fa-cut\",\n\t\t\t\"fas-f1c0\" => \"fas fa-database\",\n\t\t\t\"fas-f2a4\" => \"fas fa-deaf\",\n\t\t\t\"fas-f747\" => \"fas fa-democrat\",\n\t\t\t\"fas-f108\" => \"fas fa-desktop\",\n\t\t\t\"fas-f655\" => \"fas fa-dharmachakra\",\n\t\t\t\"fas-f470\" => \"fas fa-diagnoses\",\n\t\t\t\"fas-f522\" => \"fas fa-dice\",\n\t\t\t\"fas-f6cf\" => \"fas fa-dice-d20\",\n\t\t\t\"fas-f6d1\" => \"fas fa-dice-d6\",\n\t\t\t\"fas-f523\" => \"fas fa-dice-five\",\n\t\t\t\"fas-f524\" => \"fas fa-dice-four\",\n\t\t\t\"fas-f525\" => \"fas fa-dice-one\",\n\t\t\t\"fas-f526\" => \"fas fa-dice-six\",\n\t\t\t\"fas-f527\" => \"fas fa-dice-three\",\n\t\t\t\"fas-f528\" => \"fas fa-dice-two\",\n\t\t\t\"fas-f566\" => \"fas fa-digital-tachograph\",\n\t\t\t\"fas-f5eb\" => \"fas fa-directions\",\n\t\t\t\"fas-f7fa\" => \"fas fa-disease\",\n\t\t\t\"fas-f529\" => \"fas fa-divide\",\n\t\t\t\"fas-f567\" => \"fas fa-dizzy\",\n\t\t\t\"fas-f471\" => \"fas fa-dna\",\n\t\t\t\"fas-f6d3\" => \"fas fa-dog\",\n\t\t\t\"fas-f155\" => \"fas fa-dollar-sign\",\n\t\t\t\"fas-f472\" => \"fas fa-dolly\",\n\t\t\t\"fas-f474\" => \"fas fa-dolly-flatbed\",\n\t\t\t\"fas-f4b9\" => \"fas fa-donate\",\n\t\t\t\"fas-f52a\" => \"fas fa-door-closed\",\n\t\t\t\"fas-f52b\" => \"fas fa-door-open\",\n\t\t\t\"fas-f192\" => \"fas fa-dot-circle\",\n\t\t\t\"fas-f4ba\" => \"fas fa-dove\",\n\t\t\t\"fas-f019\" => \"fas fa-download\",\n\t\t\t\"fas-f568\" => \"fas fa-drafting-compass\",\n\t\t\t\"fas-f6d5\" => \"fas fa-dragon\",\n\t\t\t\"fas-f5ee\" => \"fas fa-draw-polygon\",\n\t\t\t\"fas-f569\" => \"fas fa-drum\",\n\t\t\t\"fas-f56a\" => \"fas fa-drum-steelpan\",\n\t\t\t\"fas-f6d7\" => \"fas fa-drumstick-bite\",\n\t\t\t\"fas-f44b\" => \"fas fa-dumbbell\",\n\t\t\t\"fas-f793\" => \"fas fa-dumpster\",\n\t\t\t\"fas-f794\" => \"fas fa-dumpster-fire\",\n\t\t\t\"fas-f6d9\" => \"fas fa-dungeon\",\n\t\t\t\"fas-f044\" => \"fas fa-edit\",\n\t\t\t\"fas-f7fb\" => \"fas fa-egg\",\n\t\t\t\"fas-f052\" => \"fas fa-eject\",\n\t\t\t\"fas-f141\" => \"fas fa-ellipsis-h\",\n\t\t\t\"fas-f142\" => \"fas fa-ellipsis-v\",\n\t\t\t\"fas-f0e0\" => \"fas fa-envelope\",\n\t\t\t\"fas-f2b6\" => \"fas fa-envelope-open\",\n\t\t\t\"fas-f658\" => \"fas fa-envelope-open-text\",\n\t\t\t\"fas-f199\" => \"fas fa-envelope-square\",\n\t\t\t\"fas-f52c\" => \"fas fa-equals\",\n\t\t\t\"fas-f12d\" => \"fas fa-eraser\",\n\t\t\t\"fas-f796\" => \"fas fa-ethernet\",\n\t\t\t\"fas-f153\" => \"fas fa-euro-sign\",\n\t\t\t\"fas-f362\" => \"fas fa-exchange-alt\",\n\t\t\t\"fas-f12a\" => \"fas fa-exclamation\",\n\t\t\t\"fas-f06a\" => \"fas fa-exclamation-circle\",\n\t\t\t\"fas-f071\" => \"fas fa-exclamation-triangle\",\n\t\t\t\"fas-f065\" => \"fas fa-expand\",\n\t\t\t\"fas-f424\" => \"fas fa-expand-alt\",\n\t\t\t\"fas-f31e\" => \"fas fa-expand-arrows-alt\",\n\t\t\t\"fas-f35d\" => \"fas fa-external-link-alt\",\n\t\t\t\"fas-f360\" => \"fas fa-external-link-square-alt\",\n\t\t\t\"fas-f06e\" => \"fas fa-eye\",\n\t\t\t\"fas-f1fb\" => \"fas fa-eye-dropper\",\n\t\t\t\"fas-f070\" => \"fas fa-eye-slash\",\n\t\t\t\"fas-f863\" => \"fas fa-fan\",\n\t\t\t\"fas-f049\" => \"fas fa-fast-backward\",\n\t\t\t\"fas-f050\" => \"fas fa-fast-forward\",\n\t\t\t\"fas-f905\" => \"fas fa-faucet\",\n\t\t\t\"fas-f1ac\" => \"fas fa-fax\",\n\t\t\t\"fas-f52d\" => \"fas fa-feather\",\n\t\t\t\"fas-f56b\" => \"fas fa-feather-alt\",\n\t\t\t\"fas-f182\" => \"fas fa-female\",\n\t\t\t\"fas-f0fb\" => \"fas fa-fighter-jet\",\n\t\t\t\"fas-f15b\" => \"fas fa-file\",\n\t\t\t\"fas-f15c\" => \"fas fa-file-alt\",\n\t\t\t\"fas-f1c6\" => \"fas fa-file-archive\",\n\t\t\t\"fas-f1c7\" => \"fas fa-file-audio\",\n\t\t\t\"fas-f1c9\" => \"fas fa-file-code\",\n\t\t\t\"fas-f56c\" => \"fas fa-file-contract\",\n\t\t\t\"fas-f6dd\" => \"fas fa-file-csv\",\n\t\t\t\"fas-f56d\" => \"fas fa-file-download\",\n\t\t\t\"fas-f1c3\" => \"fas fa-file-excel\",\n\t\t\t\"fas-f56e\" => \"fas fa-file-export\",\n\t\t\t\"fas-f1c5\" => \"fas fa-file-image\",\n\t\t\t\"fas-f56f\" => \"fas fa-file-import\",\n\t\t\t\"fas-f570\" => \"fas fa-file-invoice\",\n\t\t\t\"fas-f571\" => \"fas fa-file-invoice-dollar\",\n\t\t\t\"fas-f477\" => \"fas fa-file-medical\",\n\t\t\t\"fas-f478\" => \"fas fa-file-medical-alt\",\n\t\t\t\"fas-f1c1\" => \"fas fa-file-pdf\",\n\t\t\t\"fas-f1c4\" => \"fas fa-file-powerpoint\",\n\t\t\t\"fas-f572\" => \"fas fa-file-prescription\",\n\t\t\t\"fas-f573\" => \"fas fa-file-signature\",\n\t\t\t\"fas-f574\" => \"fas fa-file-upload\",\n\t\t\t\"fas-f1c8\" => \"fas fa-file-video\",\n\t\t\t\"fas-f1c2\" => \"fas fa-file-word\",\n\t\t\t\"fas-f575\" => \"fas fa-fill\",\n\t\t\t\"fas-f576\" => \"fas fa-fill-drip\",\n\t\t\t\"fas-f008\" => \"fas fa-film\",\n\t\t\t\"fas-f0b0\" => \"fas fa-filter\",\n\t\t\t\"fas-f577\" => \"fas fa-fingerprint\",\n\t\t\t\"fas-f06d\" => \"fas fa-fire\",\n\t\t\t\"fas-f7e4\" => \"fas fa-fire-alt\",\n\t\t\t\"fas-f134\" => \"fas fa-fire-extinguisher\",\n\t\t\t\"fas-f479\" => \"fas fa-first-aid\",\n\t\t\t\"fas-f578\" => \"fas fa-fish\",\n\t\t\t\"fas-f6de\" => \"fas fa-fist-raised\",\n\t\t\t\"fas-f024\" => \"fas fa-flag\",\n\t\t\t\"fas-f11e\" => \"fas fa-flag-checkered\",\n\t\t\t\"fas-f74d\" => \"fas fa-flag-usa\",\n\t\t\t\"fas-f0c3\" => \"fas fa-flask\",\n\t\t\t\"fas-f579\" => \"fas fa-flushed\",\n\t\t\t\"fas-f07b\" => \"fas fa-folder\",\n\t\t\t\"fas-f65d\" => \"fas fa-folder-minus\",\n\t\t\t\"fas-f07c\" => \"fas fa-folder-open\",\n\t\t\t\"fas-f65e\" => \"fas fa-folder-plus\",\n\t\t\t\"fas-f031\" => \"fas fa-font\",\n\t\t\t\"fas-f44e\" => \"fas fa-football-ball\",\n\t\t\t\"fas-f04e\" => \"fas fa-forward\",\n\t\t\t\"fas-f52e\" => \"fas fa-frog\",\n\t\t\t\"fas-f119\" => \"fas fa-frown\",\n\t\t\t\"fas-f57a\" => \"fas fa-frown-open\",\n\t\t\t\"fas-f662\" => \"fas fa-funnel-dollar\",\n\t\t\t\"fas-f1e3\" => \"fas fa-futbol\",\n\t\t\t\"fas-f11b\" => \"fas fa-gamepad\",\n\t\t\t\"fas-f52f\" => \"fas fa-gas-pump\",\n\t\t\t\"fas-f0e3\" => \"fas fa-gavel\",\n\t\t\t\"fas-f3a5\" => \"fas fa-gem\",\n\t\t\t\"fas-f22d\" => \"fas fa-genderless\",\n\t\t\t\"fas-f6e2\" => \"fas fa-ghost\",\n\t\t\t\"fas-f06b\" => \"fas fa-gift\",\n\t\t\t\"fas-f79c\" => \"fas fa-gifts\",\n\t\t\t\"fas-f79f\" => \"fas fa-glass-cheers\",\n\t\t\t\"fas-f000\" => \"fas fa-glass-martini\",\n\t\t\t\"fas-f57b\" => \"fas fa-glass-martini-alt\",\n\t\t\t\"fas-f7a0\" => \"fas fa-glass-whiskey\",\n\t\t\t\"fas-f530\" => \"fas fa-glasses\",\n\t\t\t\"fas-f0ac\" => \"fas fa-globe\",\n\t\t\t\"fas-f57c\" => \"fas fa-globe-africa\",\n\t\t\t\"fas-f57d\" => \"fas fa-globe-americas\",\n\t\t\t\"fas-f57e\" => \"fas fa-globe-asia\",\n\t\t\t\"fas-f7a2\" => \"fas fa-globe-europe\",\n\t\t\t\"fas-f450\" => \"fas fa-golf-ball\",\n\t\t\t\"fas-f664\" => \"fas fa-gopuram\",\n\t\t\t\"fas-f19d\" => \"fas fa-graduation-cap\",\n\t\t\t\"fas-f531\" => \"fas fa-greater-than\",\n\t\t\t\"fas-f532\" => \"fas fa-greater-than-equal\",\n\t\t\t\"fas-f57f\" => \"fas fa-grimace\",\n\t\t\t\"fas-f580\" => \"fas fa-grin\",\n\t\t\t\"fas-f581\" => \"fas fa-grin-alt\",\n\t\t\t\"fas-f582\" => \"fas fa-grin-beam\",\n\t\t\t\"fas-f583\" => \"fas fa-grin-beam-sweat\",\n\t\t\t\"fas-f584\" => \"fas fa-grin-hearts\",\n\t\t\t\"fas-f585\" => \"fas fa-grin-squint\",\n\t\t\t\"fas-f586\" => \"fas fa-grin-squint-tears\",\n\t\t\t\"fas-f587\" => \"fas fa-grin-stars\",\n\t\t\t\"fas-f588\" => \"fas fa-grin-tears\",\n\t\t\t\"fas-f589\" => \"fas fa-grin-tongue\",\n\t\t\t\"fas-f58a\" => \"fas fa-grin-tongue-squint\",\n\t\t\t\"fas-f58b\" => \"fas fa-grin-tongue-wink\",\n\t\t\t\"fas-f58c\" => \"fas fa-grin-wink\",\n\t\t\t\"fas-f58d\" => \"fas fa-grip-horizontal\",\n\t\t\t\"fas-f7a4\" => \"fas fa-grip-lines\",\n\t\t\t\"fas-f7a5\" => \"fas fa-grip-lines-vertical\",\n\t\t\t\"fas-f58e\" => \"fas fa-grip-vertical\",\n\t\t\t\"fas-f7a6\" => \"fas fa-guitar\",\n\t\t\t\"fas-f0fd\" => \"fas fa-h-square\",\n\t\t\t\"fas-f805\" => \"fas fa-hamburger\",\n\t\t\t\"fas-f6e3\" => \"fas fa-hammer\",\n\t\t\t\"fas-f665\" => \"fas fa-hamsa\",\n\t\t\t\"fas-f4bd\" => \"fas fa-hand-holding\",\n\t\t\t\"fas-f4be\" => \"fas fa-hand-holding-heart\",\n\t\t\t\"fas-f95c\" => \"fas fa-hand-holding-medical\",\n\t\t\t\"fas-f4c0\" => \"fas fa-hand-holding-usd\",\n\t\t\t\"fas-f4c1\" => \"fas fa-hand-holding-water\",\n\t\t\t\"fas-f258\" => \"fas fa-hand-lizard\",\n\t\t\t\"fas-f806\" => \"fas fa-hand-middle-finger\",\n\t\t\t\"fas-f256\" => \"fas fa-hand-paper\",\n\t\t\t\"fas-f25b\" => \"fas fa-hand-peace\",\n\t\t\t\"fas-f0a7\" => \"fas fa-hand-point-down\",\n\t\t\t\"fas-f0a5\" => \"fas fa-hand-point-left\",\n\t\t\t\"fas-f0a4\" => \"fas fa-hand-point-right\",\n\t\t\t\"fas-f0a6\" => \"fas fa-hand-point-up\",\n\t\t\t\"fas-f25a\" => \"fas fa-hand-pointer\",\n\t\t\t\"fas-f255\" => \"fas fa-hand-rock\",\n\t\t\t\"fas-f257\" => \"fas fa-hand-scissors\",\n\t\t\t\"fas-f95d\" => \"fas fa-hand-sparkles\",\n\t\t\t\"fas-f259\" => \"fas fa-hand-spock\",\n\t\t\t\"fas-f4c2\" => \"fas fa-hands\",\n\t\t\t\"fas-f4c4\" => \"fas fa-hands-helping\",\n\t\t\t\"fas-f95e\" => \"fas fa-hands-wash\",\n\t\t\t\"fas-f2b5\" => \"fas fa-handshake\",\n\t\t\t\"fas-f95f\" => \"fas fa-handshake-alt-slash\",\n\t\t\t\"fas-f960\" => \"fas fa-handshake-slash\",\n\t\t\t\"fas-f6e6\" => \"fas fa-hanukiah\",\n\t\t\t\"fas-f807\" => \"fas fa-hard-hat\",\n\t\t\t\"fas-f292\" => \"fas fa-hashtag\",\n\t\t\t\"fas-f8c0\" => \"fas fa-hat-cowboy\",\n\t\t\t\"fas-f8c1\" => \"fas fa-hat-cowboy-side\",\n\t\t\t\"fas-f6e8\" => \"fas fa-hat-wizard\",\n\t\t\t\"fas-f0a0\" => \"fas fa-hdd\",\n\t\t\t\"fas-f961\" => \"fas fa-head-side-cough\",\n\t\t\t\"fas-f962\" => \"fas fa-head-side-cough-slash\",\n\t\t\t\"fas-f963\" => \"fas fa-head-side-mask\",\n\t\t\t\"fas-f964\" => \"fas fa-head-side-virus\",\n\t\t\t\"fas-f1dc\" => \"fas fa-heading\",\n\t\t\t\"fas-f025\" => \"fas fa-headphones\",\n\t\t\t\"fas-f58f\" => \"fas fa-headphones-alt\",\n\t\t\t\"fas-f590\" => \"fas fa-headset\",\n\t\t\t\"fas-f004\" => \"fas fa-heart\",\n\t\t\t\"fas-f7a9\" => \"fas fa-heart-broken\",\n\t\t\t\"fas-f21e\" => \"fas fa-heartbeat\",\n\t\t\t\"fas-f533\" => \"fas fa-helicopter\",\n\t\t\t\"fas-f591\" => \"fas fa-highlighter\",\n\t\t\t\"fas-f6ec\" => \"fas fa-hiking\",\n\t\t\t\"fas-f6ed\" => \"fas fa-hippo\",\n\t\t\t\"fas-f1da\" => \"fas fa-history\",\n\t\t\t\"fas-f453\" => \"fas fa-hockey-puck\",\n\t\t\t\"fas-f7aa\" => \"fas fa-holly-berry\",\n\t\t\t\"fas-f015\" => \"fas fa-home\",\n\t\t\t\"fas-f6f0\" => \"fas fa-horse\",\n\t\t\t\"fas-f7ab\" => \"fas fa-horse-head\",\n\t\t\t\"fas-f0f8\" => \"fas fa-hospital\",\n\t\t\t\"fas-f47d\" => \"fas fa-hospital-alt\",\n\t\t\t\"fas-f47e\" => \"fas fa-hospital-symbol\",\n\t\t\t\"fas-f80d\" => \"fas fa-hospital-user\",\n\t\t\t\"fas-f593\" => \"fas fa-hot-tub\",\n\t\t\t\"fas-f80f\" => \"fas fa-hotdog\",\n\t\t\t\"fas-f594\" => \"fas fa-hotel\",\n\t\t\t\"fas-f254\" => \"fas fa-hourglass\",\n\t\t\t\"fas-f253\" => \"fas fa-hourglass-end\",\n\t\t\t\"fas-f252\" => \"fas fa-hourglass-half\",\n\t\t\t\"fas-f251\" => \"fas fa-hourglass-start\",\n\t\t\t\"fas-f6f1\" => \"fas fa-house-damage\",\n\t\t\t\"fas-f965\" => \"fas fa-house-user\",\n\t\t\t\"fas-f6f2\" => \"fas fa-hryvnia\",\n\t\t\t\"fas-f246\" => \"fas fa-i-cursor\",\n\t\t\t\"fas-f810\" => \"fas fa-ice-cream\",\n\t\t\t\"fas-f7ad\" => \"fas fa-icicles\",\n\t\t\t\"fas-f86d\" => \"fas fa-icons\",\n\t\t\t\"fas-f2c1\" => \"fas fa-id-badge\",\n\t\t\t\"fas-f2c2\" => \"fas fa-id-card\",\n\t\t\t\"fas-f47f\" => \"fas fa-id-card-alt\",\n\t\t\t\"fas-f7ae\" => \"fas fa-igloo\",\n\t\t\t\"fas-f03e\" => \"fas fa-image\",\n\t\t\t\"fas-f302\" => \"fas fa-images\",\n\t\t\t\"fas-f01c\" => \"fas fa-inbox\",\n\t\t\t\"fas-f03c\" => \"fas fa-indent\",\n\t\t\t\"fas-f275\" => \"fas fa-industry\",\n\t\t\t\"fas-f534\" => \"fas fa-infinity\",\n\t\t\t\"fas-f129\" => \"fas fa-info\",\n\t\t\t\"fas-f05a\" => \"fas fa-info-circle\",\n\t\t\t\"fas-f033\" => \"fas fa-italic\",\n\t\t\t\"fas-f669\" => \"fas fa-jedi\",\n\t\t\t\"fas-f595\" => \"fas fa-joint\",\n\t\t\t\"fas-f66a\" => \"fas fa-journal-whills\",\n\t\t\t\"fas-f66b\" => \"fas fa-kaaba\",\n\t\t\t\"fas-f084\" => \"fas fa-key\",\n\t\t\t\"fas-f11c\" => \"fas fa-keyboard\",\n\t\t\t\"fas-f66d\" => \"fas fa-khanda\",\n\t\t\t\"fas-f596\" => \"fas fa-kiss\",\n\t\t\t\"fas-f597\" => \"fas fa-kiss-beam\",\n\t\t\t\"fas-f598\" => \"fas fa-kiss-wink-heart\",\n\t\t\t\"fas-f535\" => \"fas fa-kiwi-bird\",\n\t\t\t\"fas-f66f\" => \"fas fa-landmark\",\n\t\t\t\"fas-f1ab\" => \"fas fa-language\",\n\t\t\t\"fas-f109\" => \"fas fa-laptop\",\n\t\t\t\"fas-f5fc\" => \"fas fa-laptop-code\",\n\t\t\t\"fas-f966\" => \"fas fa-laptop-house\",\n\t\t\t\"fas-f812\" => \"fas fa-laptop-medical\",\n\t\t\t\"fas-f599\" => \"fas fa-laugh\",\n\t\t\t\"fas-f59a\" => \"fas fa-laugh-beam\",\n\t\t\t\"fas-f59b\" => \"fas fa-laugh-squint\",\n\t\t\t\"fas-f59c\" => \"fas fa-laugh-wink\",\n\t\t\t\"fas-f5fd\" => \"fas fa-layer-group\",\n\t\t\t\"fas-f06c\" => \"fas fa-leaf\",\n\t\t\t\"fas-f094\" => \"fas fa-lemon\",\n\t\t\t\"fas-f536\" => \"fas fa-less-than\",\n\t\t\t\"fas-f537\" => \"fas fa-less-than-equal\",\n\t\t\t\"fas-f3be\" => \"fas fa-level-down-alt\",\n\t\t\t\"fas-f3bf\" => \"fas fa-level-up-alt\",\n\t\t\t\"fas-f1cd\" => \"fas fa-life-ring\",\n\t\t\t\"fas-f0eb\" => \"fas fa-lightbulb\",\n\t\t\t\"fas-f0c1\" => \"fas fa-link\",\n\t\t\t\"fas-f195\" => \"fas fa-lira-sign\",\n\t\t\t\"fas-f03a\" => \"fas fa-list\",\n\t\t\t\"fas-f022\" => \"fas fa-list-alt\",\n\t\t\t\"fas-f0cb\" => \"fas fa-list-ol\",\n\t\t\t\"fas-f0ca\" => \"fas fa-list-ul\",\n\t\t\t\"fas-f124\" => \"fas fa-location-arrow\",\n\t\t\t\"fas-f023\" => \"fas fa-lock\",\n\t\t\t\"fas-f3c1\" => \"fas fa-lock-open\",\n\t\t\t\"fas-f309\" => \"fas fa-long-arrow-alt-down\",\n\t\t\t\"fas-f30a\" => \"fas fa-long-arrow-alt-left\",\n\t\t\t\"fas-f30b\" => \"fas fa-long-arrow-alt-right\",\n\t\t\t\"fas-f30c\" => \"fas fa-long-arrow-alt-up\",\n\t\t\t\"fas-f2a8\" => \"fas fa-low-vision\",\n\t\t\t\"fas-f59d\" => \"fas fa-luggage-cart\",\n\t\t\t\"fas-f604\" => \"fas fa-lungs\",\n\t\t\t\"fas-f967\" => \"fas fa-lungs-virus\",\n\t\t\t\"fas-f0d0\" => \"fas fa-magic\",\n\t\t\t\"fas-f076\" => \"fas fa-magnet\",\n\t\t\t\"fas-f674\" => \"fas fa-mail-bulk\",\n\t\t\t\"fas-f183\" => \"fas fa-male\",\n\t\t\t\"fas-f279\" => \"fas fa-map\",\n\t\t\t\"fas-f59f\" => \"fas fa-map-marked\",\n\t\t\t\"fas-f5a0\" => \"fas fa-map-marked-alt\",\n\t\t\t\"fas-f041\" => \"fas fa-map-marker\",\n\t\t\t\"fas-f3c5\" => \"fas fa-map-marker-alt\",\n\t\t\t\"fas-f276\" => \"fas fa-map-pin\",\n\t\t\t\"fas-f277\" => \"fas fa-map-signs\",\n\t\t\t\"fas-f5a1\" => \"fas fa-marker\",\n\t\t\t\"fas-f222\" => \"fas fa-mars\",\n\t\t\t\"fas-f227\" => \"fas fa-mars-double\",\n\t\t\t\"fas-f229\" => \"fas fa-mars-stroke\",\n\t\t\t\"fas-f22b\" => \"fas fa-mars-stroke-h\",\n\t\t\t\"fas-f22a\" => \"fas fa-mars-stroke-v\",\n\t\t\t\"fas-f6fa\" => \"fas fa-mask\",\n\t\t\t\"fas-f5a2\" => \"fas fa-medal\",\n\t\t\t\"fas-f0fa\" => \"fas fa-medkit\",\n\t\t\t\"fas-f11a\" => \"fas fa-meh\",\n\t\t\t\"fas-f5a4\" => \"fas fa-meh-blank\",\n\t\t\t\"fas-f5a5\" => \"fas fa-meh-rolling-eyes\",\n\t\t\t\"fas-f538\" => \"fas fa-memory\",\n\t\t\t\"fas-f676\" => \"fas fa-menorah\",\n\t\t\t\"fas-f223\" => \"fas fa-mercury\",\n\t\t\t\"fas-f753\" => \"fas fa-meteor\",\n\t\t\t\"fas-f2db\" => \"fas fa-microchip\",\n\t\t\t\"fas-f130\" => \"fas fa-microphone\",\n\t\t\t\"fas-f3c9\" => \"fas fa-microphone-alt\",\n\t\t\t\"fas-f539\" => \"fas fa-microphone-alt-slash\",\n\t\t\t\"fas-f131\" => \"fas fa-microphone-slash\",\n\t\t\t\"fas-f610\" => \"fas fa-microscope\",\n\t\t\t\"fas-f068\" => \"fas fa-minus\",\n\t\t\t\"fas-f056\" => \"fas fa-minus-circle\",\n\t\t\t\"fas-f146\" => \"fas fa-minus-square\",\n\t\t\t\"fas-f7b5\" => \"fas fa-mitten\",\n\t\t\t\"fas-f10b\" => \"fas fa-mobile\",\n\t\t\t\"fas-f3cd\" => \"fas fa-mobile-alt\",\n\t\t\t\"fas-f0d6\" => \"fas fa-money-bill\",\n\t\t\t\"fas-f3d1\" => \"fas fa-money-bill-alt\",\n\t\t\t\"fas-f53a\" => \"fas fa-money-bill-wave\",\n\t\t\t\"fas-f53b\" => \"fas fa-money-bill-wave-alt\",\n\t\t\t\"fas-f53c\" => \"fas fa-money-check\",\n\t\t\t\"fas-f53d\" => \"fas fa-money-check-alt\",\n\t\t\t\"fas-f5a6\" => \"fas fa-monument\",\n\t\t\t\"fas-f186\" => \"fas fa-moon\",\n\t\t\t\"fas-f5a7\" => \"fas fa-mortar-pestle\",\n\t\t\t\"fas-f678\" => \"fas fa-mosque\",\n\t\t\t\"fas-f21c\" => \"fas fa-motorcycle\",\n\t\t\t\"fas-f6fc\" => \"fas fa-mountain\",\n\t\t\t\"fas-f8cc\" => \"fas fa-mouse\",\n\t\t\t\"fas-f245\" => \"fas fa-mouse-pointer\",\n\t\t\t\"fas-f7b6\" => \"fas fa-mug-hot\",\n\t\t\t\"fas-f001\" => \"fas fa-music\",\n\t\t\t\"fas-f6ff\" => \"fas fa-network-wired\",\n\t\t\t\"fas-f22c\" => \"fas fa-neuter\",\n\t\t\t\"fas-f1ea\" => \"fas fa-newspaper\",\n\t\t\t\"fas-f53e\" => \"fas fa-not-equal\",\n\t\t\t\"fas-f481\" => \"fas fa-notes-medical\",\n\t\t\t\"fas-f247\" => \"fas fa-object-group\",\n\t\t\t\"fas-f248\" => \"fas fa-object-ungroup\",\n\t\t\t\"fas-f613\" => \"fas fa-oil-can\",\n\t\t\t\"fas-f679\" => \"fas fa-om\",\n\t\t\t\"fas-f700\" => \"fas fa-otter\",\n\t\t\t\"fas-f03b\" => \"fas fa-outdent\",\n\t\t\t\"fas-f815\" => \"fas fa-pager\",\n\t\t\t\"fas-f1fc\" => \"fas fa-paint-brush\",\n\t\t\t\"fas-f5aa\" => \"fas fa-paint-roller\",\n\t\t\t\"fas-f53f\" => \"fas fa-palette\",\n\t\t\t\"fas-f482\" => \"fas fa-pallet\",\n\t\t\t\"fas-f1d8\" => \"fas fa-paper-plane\",\n\t\t\t\"fas-f0c6\" => \"fas fa-paperclip\",\n\t\t\t\"fas-f4cd\" => \"fas fa-parachute-box\",\n\t\t\t\"fas-f1dd\" => \"fas fa-paragraph\",\n\t\t\t\"fas-f540\" => \"fas fa-parking\",\n\t\t\t\"fas-f5ab\" => \"fas fa-passport\",\n\t\t\t\"fas-f67b\" => \"fas fa-pastafarianism\",\n\t\t\t\"fas-f0ea\" => \"fas fa-paste\",\n\t\t\t\"fas-f04c\" => \"fas fa-pause\",\n\t\t\t\"fas-f28b\" => \"fas fa-pause-circle\",\n\t\t\t\"fas-f1b0\" => \"fas fa-paw\",\n\t\t\t\"fas-f67c\" => \"fas fa-peace\",\n\t\t\t\"fas-f304\" => \"fas fa-pen\",\n\t\t\t\"fas-f305\" => \"fas fa-pen-alt\",\n\t\t\t\"fas-f5ac\" => \"fas fa-pen-fancy\",\n\t\t\t\"fas-f5ad\" => \"fas fa-pen-nib\",\n\t\t\t\"fas-f14b\" => \"fas fa-pen-square\",\n\t\t\t\"fas-f303\" => \"fas fa-pencil-alt\",\n\t\t\t\"fas-f5ae\" => \"fas fa-pencil-ruler\",\n\t\t\t\"fas-f968\" => \"fas fa-people-arrows\",\n\t\t\t\"fas-f4ce\" => \"fas fa-people-carry\",\n\t\t\t\"fas-f816\" => \"fas fa-pepper-hot\",\n\t\t\t\"fas-f295\" => \"fas fa-percent\",\n\t\t\t\"fas-f541\" => \"fas fa-percentage\",\n\t\t\t\"fas-f756\" => \"fas fa-person-booth\",\n\t\t\t\"fas-f095\" => \"fas fa-phone\",\n\t\t\t\"fas-f879\" => \"fas fa-phone-alt\",\n\t\t\t\"fas-f3dd\" => \"fas fa-phone-slash\",\n\t\t\t\"fas-f098\" => \"fas fa-phone-square\",\n\t\t\t\"fas-f87b\" => \"fas fa-phone-square-alt\",\n\t\t\t\"fas-f2a0\" => \"fas fa-phone-volume\",\n\t\t\t\"fas-f87c\" => \"fas fa-photo-video\",\n\t\t\t\"fas-f4d3\" => \"fas fa-piggy-bank\",\n\t\t\t\"fas-f484\" => \"fas fa-pills\",\n\t\t\t\"fas-f818\" => \"fas fa-pizza-slice\",\n\t\t\t\"fas-f67f\" => \"fas fa-place-of-worship\",\n\t\t\t\"fas-f072\" => \"fas fa-plane\",\n\t\t\t\"fas-f5af\" => \"fas fa-plane-arrival\",\n\t\t\t\"fas-f5b0\" => \"fas fa-plane-departure\",\n\t\t\t\"fas-f969\" => \"fas fa-plane-slash\",\n\t\t\t\"fas-f04b\" => \"fas fa-play\",\n\t\t\t\"fas-f144\" => \"fas fa-play-circle\",\n\t\t\t\"fas-f1e6\" => \"fas fa-plug\",\n\t\t\t\"fas-f067\" => \"fas fa-plus\",\n\t\t\t\"fas-f055\" => \"fas fa-plus-circle\",\n\t\t\t\"fas-f0fe\" => \"fas fa-plus-square\",\n\t\t\t\"fas-f2ce\" => \"fas fa-podcast\",\n\t\t\t\"fas-f681\" => \"fas fa-poll\",\n\t\t\t\"fas-f682\" => \"fas fa-poll-h\",\n\t\t\t\"fas-f2fe\" => \"fas fa-poo\",\n\t\t\t\"fas-f75a\" => \"fas fa-poo-storm\",\n\t\t\t\"fas-f619\" => \"fas fa-poop\",\n\t\t\t\"fas-f3e0\" => \"fas fa-portrait\",\n\t\t\t\"fas-f154\" => \"fas fa-pound-sign\",\n\t\t\t\"fas-f011\" => \"fas fa-power-off\",\n\t\t\t\"fas-f683\" => \"fas fa-pray\",\n\t\t\t\"fas-f684\" => \"fas fa-praying-hands\",\n\t\t\t\"fas-f5b1\" => \"fas fa-prescription\",\n\t\t\t\"fas-f485\" => \"fas fa-prescription-bottle\",\n\t\t\t\"fas-f486\" => \"fas fa-prescription-bottle-alt\",\n\t\t\t\"fas-f02f\" => \"fas fa-print\",\n\t\t\t\"fas-f487\" => \"fas fa-procedures\",\n\t\t\t\"fas-f542\" => \"fas fa-project-diagram\",\n\t\t\t\"fas-f96a\" => \"fas fa-pump-medical\",\n\t\t\t\"fas-f96b\" => \"fas fa-pump-soap\",\n\t\t\t\"fas-f12e\" => \"fas fa-puzzle-piece\",\n\t\t\t\"fas-f029\" => \"fas fa-qrcode\",\n\t\t\t\"fas-f128\" => \"fas fa-question\",\n\t\t\t\"fas-f059\" => \"fas fa-question-circle\",\n\t\t\t\"fas-f458\" => \"fas fa-quidditch\",\n\t\t\t\"fas-f10d\" => \"fas fa-quote-left\",\n\t\t\t\"fas-f10e\" => \"fas fa-quote-right\",\n\t\t\t\"fas-f687\" => \"fas fa-quran\",\n\t\t\t\"fas-f7b9\" => \"fas fa-radiation\",\n\t\t\t\"fas-f7ba\" => \"fas fa-radiation-alt\",\n\t\t\t\"fas-f75b\" => \"fas fa-rainbow\",\n\t\t\t\"fas-f074\" => \"fas fa-random\",\n\t\t\t\"fas-f543\" => \"fas fa-receipt\",\n\t\t\t\"fas-f8d9\" => \"fas fa-record-vinyl\",\n\t\t\t\"fas-f1b8\" => \"fas fa-recycle\",\n\t\t\t\"fas-f01e\" => \"fas fa-redo\",\n\t\t\t\"fas-f2f9\" => \"fas fa-redo-alt\",\n\t\t\t\"fas-f25d\" => \"fas fa-registered\",\n\t\t\t\"fas-f87d\" => \"fas fa-remove-format\",\n\t\t\t\"fas-f3e5\" => \"fas fa-reply\",\n\t\t\t\"fas-f122\" => \"fas fa-reply-all\",\n\t\t\t\"fas-f75e\" => \"fas fa-republican\",\n\t\t\t\"fas-f7bd\" => \"fas fa-restroom\",\n\t\t\t\"fas-f079\" => \"fas fa-retweet\",\n\t\t\t\"fas-f4d6\" => \"fas fa-ribbon\",\n\t\t\t\"fas-f70b\" => \"fas fa-ring\",\n\t\t\t\"fas-f018\" => \"fas fa-road\",\n\t\t\t\"fas-f544\" => \"fas fa-robot\",\n\t\t\t\"fas-f135\" => \"fas fa-rocket\",\n\t\t\t\"fas-f4d7\" => \"fas fa-route\",\n\t\t\t\"fas-f09e\" => \"fas fa-rss\",\n\t\t\t\"fas-f143\" => \"fas fa-rss-square\",\n\t\t\t\"fas-f158\" => \"fas fa-ruble-sign\",\n\t\t\t\"fas-f545\" => \"fas fa-ruler\",\n\t\t\t\"fas-f546\" => \"fas fa-ruler-combined\",\n\t\t\t\"fas-f547\" => \"fas fa-ruler-horizontal\",\n\t\t\t\"fas-f548\" => \"fas fa-ruler-vertical\",\n\t\t\t\"fas-f70c\" => \"fas fa-running\",\n\t\t\t\"fas-f156\" => \"fas fa-rupee-sign\",\n\t\t\t\"fas-f5b3\" => \"fas fa-sad-cry\",\n\t\t\t\"fas-f5b4\" => \"fas fa-sad-tear\",\n\t\t\t\"fas-f7bf\" => \"fas fa-satellite\",\n\t\t\t\"fas-f7c0\" => \"fas fa-satellite-dish\",\n\t\t\t\"fas-f0c7\" => \"fas fa-save\",\n\t\t\t\"fas-f549\" => \"fas fa-school\",\n\t\t\t\"fas-f54a\" => \"fas fa-screwdriver\",\n\t\t\t\"fas-f70e\" => \"fas fa-scroll\",\n\t\t\t\"fas-f7c2\" => \"fas fa-sd-card\",\n\t\t\t\"fas-f002\" => \"fas fa-search\",\n\t\t\t\"fas-f688\" => \"fas fa-search-dollar\",\n\t\t\t\"fas-f689\" => \"fas fa-search-location\",\n\t\t\t\"fas-f010\" => \"fas fa-search-minus\",\n\t\t\t\"fas-f00e\" => \"fas fa-search-plus\",\n\t\t\t\"fas-f4d8\" => \"fas fa-seedling\",\n\t\t\t\"fas-f233\" => \"fas fa-server\",\n\t\t\t\"fas-f61f\" => \"fas fa-shapes\",\n\t\t\t\"fas-f064\" => \"fas fa-share\",\n\t\t\t\"fas-f1e0\" => \"fas fa-share-alt\",\n\t\t\t\"fas-f1e1\" => \"fas fa-share-alt-square\",\n\t\t\t\"fas-f14d\" => \"fas fa-share-square\",\n\t\t\t\"fas-f20b\" => \"fas fa-shekel-sign\",\n\t\t\t\"fas-f3ed\" => \"fas fa-shield-alt\",\n\t\t\t\"fas-f96c\" => \"fas fa-shield-virus\",\n\t\t\t\"fas-f21a\" => \"fas fa-ship\",\n\t\t\t\"fas-f48b\" => \"fas fa-shipping-fast\",\n\t\t\t\"fas-f54b\" => \"fas fa-shoe-prints\",\n\t\t\t\"fas-f290\" => \"fas fa-shopping-bag\",\n\t\t\t\"fas-f291\" => \"fas fa-shopping-basket\",\n\t\t\t\"fas-f07a\" => \"fas fa-shopping-cart\",\n\t\t\t\"fas-f2cc\" => \"fas fa-shower\",\n\t\t\t\"fas-f5b6\" => \"fas fa-shuttle-van\",\n\t\t\t\"fas-f4d9\" => \"fas fa-sign\",\n\t\t\t\"fas-f2f6\" => \"fas fa-sign-in-alt\",\n\t\t\t\"fas-f2a7\" => \"fas fa-sign-language\",\n\t\t\t\"fas-f2f5\" => \"fas fa-sign-out-alt\",\n\t\t\t\"fas-f012\" => \"fas fa-signal\",\n\t\t\t\"fas-f5b7\" => \"fas fa-signature\",\n\t\t\t\"fas-f7c4\" => \"fas fa-sim-card\",\n\t\t\t\"fas-f0e8\" => \"fas fa-sitemap\",\n\t\t\t\"fas-f7c5\" => \"fas fa-skating\",\n\t\t\t\"fas-f7c9\" => \"fas fa-skiing\",\n\t\t\t\"fas-f7ca\" => \"fas fa-skiing-nordic\",\n\t\t\t\"fas-f54c\" => \"fas fa-skull\",\n\t\t\t\"fas-f714\" => \"fas fa-skull-crossbones\",\n\t\t\t\"fas-f715\" => \"fas fa-slash\",\n\t\t\t\"fas-f7cc\" => \"fas fa-sleigh\",\n\t\t\t\"fas-f1de\" => \"fas fa-sliders-h\",\n\t\t\t\"fas-f118\" => \"fas fa-smile\",\n\t\t\t\"fas-f5b8\" => \"fas fa-smile-beam\",\n\t\t\t\"fas-f4da\" => \"fas fa-smile-wink\",\n\t\t\t\"fas-f75f\" => \"fas fa-smog\",\n\t\t\t\"fas-f48d\" => \"fas fa-smoking\",\n\t\t\t\"fas-f54d\" => \"fas fa-smoking-ban\",\n\t\t\t\"fas-f7cd\" => \"fas fa-sms\",\n\t\t\t\"fas-f7ce\" => \"fas fa-snowboarding\",\n\t\t\t\"fas-f2dc\" => \"fas fa-snowflake\",\n\t\t\t\"fas-f7d0\" => \"fas fa-snowman\",\n\t\t\t\"fas-f7d2\" => \"fas fa-snowplow\",\n\t\t\t\"fas-f96e\" => \"fas fa-soap\",\n\t\t\t\"fas-f696\" => \"fas fa-socks\",\n\t\t\t\"fas-f5ba\" => \"fas fa-solar-panel\",\n\t\t\t\"fas-f0dc\" => \"fas fa-sort\",\n\t\t\t\"fas-f15d\" => \"fas fa-sort-alpha-down\",\n\t\t\t\"fas-f881\" => \"fas fa-sort-alpha-down-alt\",\n\t\t\t\"fas-f15e\" => \"fas fa-sort-alpha-up\",\n\t\t\t\"fas-f882\" => \"fas fa-sort-alpha-up-alt\",\n\t\t\t\"fas-f160\" => \"fas fa-sort-amount-down\",\n\t\t\t\"fas-f884\" => \"fas fa-sort-amount-down-alt\",\n\t\t\t\"fas-f161\" => \"fas fa-sort-amount-up\",\n\t\t\t\"fas-f885\" => \"fas fa-sort-amount-up-alt\",\n\t\t\t\"fas-f0dd\" => \"fas fa-sort-down\",\n\t\t\t\"fas-f162\" => \"fas fa-sort-numeric-down\",\n\t\t\t\"fas-f886\" => \"fas fa-sort-numeric-down-alt\",\n\t\t\t\"fas-f163\" => \"fas fa-sort-numeric-up\",\n\t\t\t\"fas-f887\" => \"fas fa-sort-numeric-up-alt\",\n\t\t\t\"fas-f0de\" => \"fas fa-sort-up\",\n\t\t\t\"fas-f5bb\" => \"fas fa-spa\",\n\t\t\t\"fas-f197\" => \"fas fa-space-shuttle\",\n\t\t\t\"fas-f891\" => \"fas fa-spell-check\",\n\t\t\t\"fas-f717\" => \"fas fa-spider\",\n\t\t\t\"fas-f110\" => \"fas fa-spinner\",\n\t\t\t\"fas-f5bc\" => \"fas fa-splotch\",\n\t\t\t\"fas-f5bd\" => \"fas fa-spray-can\",\n\t\t\t\"fas-f0c8\" => \"fas fa-square\",\n\t\t\t\"fas-f45c\" => \"fas fa-square-full\",\n\t\t\t\"fas-f698\" => \"fas fa-square-root-alt\",\n\t\t\t\"fas-f5bf\" => \"fas fa-stamp\",\n\t\t\t\"fas-f005\" => \"fas fa-star\",\n\t\t\t\"fas-f699\" => \"fas fa-star-and-crescent\",\n\t\t\t\"fas-f089\" => \"fas fa-star-half\",\n\t\t\t\"fas-f5c0\" => \"fas fa-star-half-alt\",\n\t\t\t\"fas-f69a\" => \"fas fa-star-of-david\",\n\t\t\t\"fas-f621\" => \"fas fa-star-of-life\",\n\t\t\t\"fas-f048\" => \"fas fa-step-backward\",\n\t\t\t\"fas-f051\" => \"fas fa-step-forward\",\n\t\t\t\"fas-f0f1\" => \"fas fa-stethoscope\",\n\t\t\t\"fas-f249\" => \"fas fa-sticky-note\",\n\t\t\t\"fas-f04d\" => \"fas fa-stop\",\n\t\t\t\"fas-f28d\" => \"fas fa-stop-circle\",\n\t\t\t\"fas-f2f2\" => \"fas fa-stopwatch\",\n\t\t\t\"fas-f96f\" => \"fas fa-stopwatch-20\",\n\t\t\t\"fas-f54e\" => \"fas fa-store\",\n\t\t\t\"fas-f54f\" => \"fas fa-store-alt\",\n\t\t\t\"fas-f970\" => \"fas fa-store-alt-slash\",\n\t\t\t\"fas-f971\" => \"fas fa-store-slash\",\n\t\t\t\"fas-f550\" => \"fas fa-stream\",\n\t\t\t\"fas-f21d\" => \"fas fa-street-view\",\n\t\t\t\"fas-f0cc\" => \"fas fa-strikethrough\",\n\t\t\t\"fas-f551\" => \"fas fa-stroopwafel\",\n\t\t\t\"fas-f12c\" => \"fas fa-subscript\",\n\t\t\t\"fas-f239\" => \"fas fa-subway\",\n\t\t\t\"fas-f0f2\" => \"fas fa-suitcase\",\n\t\t\t\"fas-f5c1\" => \"fas fa-suitcase-rolling\",\n\t\t\t\"fas-f185\" => \"fas fa-sun\",\n\t\t\t\"fas-f12b\" => \"fas fa-superscript\",\n\t\t\t\"fas-f5c2\" => \"fas fa-surprise\",\n\t\t\t\"fas-f5c3\" => \"fas fa-swatchbook\",\n\t\t\t\"fas-f5c4\" => \"fas fa-swimmer\",\n\t\t\t\"fas-f5c5\" => \"fas fa-swimming-pool\",\n\t\t\t\"fas-f69b\" => \"fas fa-synagogue\",\n\t\t\t\"fas-f021\" => \"fas fa-sync\",\n\t\t\t\"fas-f2f1\" => \"fas fa-sync-alt\",\n\t\t\t\"fas-f48e\" => \"fas fa-syringe\",\n\t\t\t\"fas-f0ce\" => \"fas fa-table\",\n\t\t\t\"fas-f45d\" => \"fas fa-table-tennis\",\n\t\t\t\"fas-f10a\" => \"fas fa-tablet\",\n\t\t\t\"fas-f3fa\" => \"fas fa-tablet-alt\",\n\t\t\t\"fas-f490\" => \"fas fa-tablets\",\n\t\t\t\"fas-f3fd\" => \"fas fa-tachometer-alt\",\n\t\t\t\"fas-f02b\" => \"fas fa-tag\",\n\t\t\t\"fas-f02c\" => \"fas fa-tags\",\n\t\t\t\"fas-f4db\" => \"fas fa-tape\",\n\t\t\t\"fas-f0ae\" => \"fas fa-tasks\",\n\t\t\t\"fas-f1ba\" => \"fas fa-taxi\",\n\t\t\t\"fas-f62e\" => \"fas fa-teeth\",\n\t\t\t\"fas-f62f\" => \"fas fa-teeth-open\",\n\t\t\t\"fas-f769\" => \"fas fa-temperature-high\",\n\t\t\t\"fas-f76b\" => \"fas fa-temperature-low\",\n\t\t\t\"fas-f7d7\" => \"fas fa-tenge\",\n\t\t\t\"fas-f120\" => \"fas fa-terminal\",\n\t\t\t\"fas-f034\" => \"fas fa-text-height\",\n\t\t\t\"fas-f035\" => \"fas fa-text-width\",\n\t\t\t\"fas-f00a\" => \"fas fa-th\",\n\t\t\t\"fas-f009\" => \"fas fa-th-large\",\n\t\t\t\"fas-f00b\" => \"fas fa-th-list\",\n\t\t\t\"fas-f630\" => \"fas fa-theater-masks\",\n\t\t\t\"fas-f491\" => \"fas fa-thermometer\",\n\t\t\t\"fas-f2cb\" => \"fas fa-thermometer-empty\",\n\t\t\t\"fas-f2c7\" => \"fas fa-thermometer-full\",\n\t\t\t\"fas-f2c9\" => \"fas fa-thermometer-half\",\n\t\t\t\"fas-f2ca\" => \"fas fa-thermometer-quarter\",\n\t\t\t\"fas-f2c8\" => \"fas fa-thermometer-three-quarters\",\n\t\t\t\"fas-f165\" => \"fas fa-thumbs-down\",\n\t\t\t\"fas-f164\" => \"fas fa-thumbs-up\",\n\t\t\t\"fas-f08d\" => \"fas fa-thumbtack\",\n\t\t\t\"fas-f3ff\" => \"fas fa-ticket-alt\",\n\t\t\t\"fas-f00d\" => \"fas fa-times\",\n\t\t\t\"fas-f057\" => \"fas fa-times-circle\",\n\t\t\t\"fas-f043\" => \"fas fa-tint\",\n\t\t\t\"fas-f5c7\" => \"fas fa-tint-slash\",\n\t\t\t\"fas-f5c8\" => \"fas fa-tired\",\n\t\t\t\"fas-f204\" => \"fas fa-toggle-off\",\n\t\t\t\"fas-f205\" => \"fas fa-toggle-on\",\n\t\t\t\"fas-f7d8\" => \"fas fa-toilet\",\n\t\t\t\"fas-f71e\" => \"fas fa-toilet-paper\",\n\t\t\t\"fas-f972\" => \"fas fa-toilet-paper-slash\",\n\t\t\t\"fas-f552\" => \"fas fa-toolbox\",\n\t\t\t\"fas-f7d9\" => \"fas fa-tools\",\n\t\t\t\"fas-f5c9\" => \"fas fa-tooth\",\n\t\t\t\"fas-f6a0\" => \"fas fa-torah\",\n\t\t\t\"fas-f6a1\" => \"fas fa-torii-gate\",\n\t\t\t\"fas-f722\" => \"fas fa-tractor\",\n\t\t\t\"fas-f25c\" => \"fas fa-trademark\",\n\t\t\t\"fas-f637\" => \"fas fa-traffic-light\",\n\t\t\t\"fas-f941\" => \"fas fa-trailer\",\n\t\t\t\"fas-f238\" => \"fas fa-train\",\n\t\t\t\"fas-f7da\" => \"fas fa-tram\",\n\t\t\t\"fas-f224\" => \"fas fa-transgender\",\n\t\t\t\"fas-f225\" => \"fas fa-transgender-alt\",\n\t\t\t\"fas-f1f8\" => \"fas fa-trash\",\n\t\t\t\"fas-f2ed\" => \"fas fa-trash-alt\",\n\t\t\t\"fas-f829\" => \"fas fa-trash-restore\",\n\t\t\t\"fas-f82a\" => \"fas fa-trash-restore-alt\",\n\t\t\t\"fas-f1bb\" => \"fas fa-tree\",\n\t\t\t\"fas-f091\" => \"fas fa-trophy\",\n\t\t\t\"fas-f0d1\" => \"fas fa-truck\",\n\t\t\t\"fas-f4de\" => \"fas fa-truck-loading\",\n\t\t\t\"fas-f63b\" => \"fas fa-truck-monster\",\n\t\t\t\"fas-f4df\" => \"fas fa-truck-moving\",\n\t\t\t\"fas-f63c\" => \"fas fa-truck-pickup\",\n\t\t\t\"fas-f553\" => \"fas fa-tshirt\",\n\t\t\t\"fas-f1e4\" => \"fas fa-tty\",\n\t\t\t\"fas-f26c\" => \"fas fa-tv\",\n\t\t\t\"fas-f0e9\" => \"fas fa-umbrella\",\n\t\t\t\"fas-f5ca\" => \"fas fa-umbrella-beach\",\n\t\t\t\"fas-f0cd\" => \"fas fa-underline\",\n\t\t\t\"fas-f0e2\" => \"fas fa-undo\",\n\t\t\t\"fas-f2ea\" => \"fas fa-undo-alt\",\n\t\t\t\"fas-f29a\" => \"fas fa-universal-access\",\n\t\t\t\"fas-f19c\" => \"fas fa-university\",\n\t\t\t\"fas-f127\" => \"fas fa-unlink\",\n\t\t\t\"fas-f09c\" => \"fas fa-unlock\",\n\t\t\t\"fas-f13e\" => \"fas fa-unlock-alt\",\n\t\t\t\"fas-f093\" => \"fas fa-upload\",\n\t\t\t\"fas-f007\" => \"fas fa-user\",\n\t\t\t\"fas-f406\" => \"fas fa-user-alt\",\n\t\t\t\"fas-f4fa\" => \"fas fa-user-alt-slash\",\n\t\t\t\"fas-f4fb\" => \"fas fa-user-astronaut\",\n\t\t\t\"fas-f4fc\" => \"fas fa-user-check\",\n\t\t\t\"fas-f2bd\" => \"fas fa-user-circle\",\n\t\t\t\"fas-f4fd\" => \"fas fa-user-clock\",\n\t\t\t\"fas-f4fe\" => \"fas fa-user-cog\",\n\t\t\t\"fas-f4ff\" => \"fas fa-user-edit\",\n\t\t\t\"fas-f500\" => \"fas fa-user-friends\",\n\t\t\t\"fas-f501\" => \"fas fa-user-graduate\",\n\t\t\t\"fas-f728\" => \"fas fa-user-injured\",\n\t\t\t\"fas-f502\" => \"fas fa-user-lock\",\n\t\t\t\"fas-f0f0\" => \"fas fa-user-md\",\n\t\t\t\"fas-f503\" => \"fas fa-user-minus\",\n\t\t\t\"fas-f504\" => \"fas fa-user-ninja\",\n\t\t\t\"fas-f82f\" => \"fas fa-user-nurse\",\n\t\t\t\"fas-f234\" => \"fas fa-user-plus\",\n\t\t\t\"fas-f21b\" => \"fas fa-user-secret\",\n\t\t\t\"fas-f505\" => \"fas fa-user-shield\",\n\t\t\t\"fas-f506\" => \"fas fa-user-slash\",\n\t\t\t\"fas-f507\" => \"fas fa-user-tag\",\n\t\t\t\"fas-f508\" => \"fas fa-user-tie\",\n\t\t\t\"fas-f235\" => \"fas fa-user-times\",\n\t\t\t\"fas-f0c0\" => \"fas fa-users\",\n\t\t\t\"fas-f509\" => \"fas fa-users-cog\",\n\t\t\t\"fas-f2e5\" => \"fas fa-utensil-spoon\",\n\t\t\t\"fas-f2e7\" => \"fas fa-utensils\",\n\t\t\t\"fas-f5cb\" => \"fas fa-vector-square\",\n\t\t\t\"fas-f221\" => \"fas fa-venus\",\n\t\t\t\"fas-f226\" => \"fas fa-venus-double\",\n\t\t\t\"fas-f228\" => \"fas fa-venus-mars\",\n\t\t\t\"fas-f492\" => \"fas fa-vial\",\n\t\t\t\"fas-f493\" => \"fas fa-vials\",\n\t\t\t\"fas-f03d\" => \"fas fa-video\",\n\t\t\t\"fas-f4e2\" => \"fas fa-video-slash\",\n\t\t\t\"fas-f6a7\" => \"fas fa-vihara\",\n\t\t\t\"fas-f974\" => \"fas fa-virus\",\n\t\t\t\"fas-f975\" => \"fas fa-virus-slash\",\n\t\t\t\"fas-f976\" => \"fas fa-viruses\",\n\t\t\t\"fas-f897\" => \"fas fa-voicemail\",\n\t\t\t\"fas-f45f\" => \"fas fa-volleyball-ball\",\n\t\t\t\"fas-f027\" => \"fas fa-volume-down\",\n\t\t\t\"fas-f6a9\" => \"fas fa-volume-mute\",\n\t\t\t\"fas-f026\" => \"fas fa-volume-off\",\n\t\t\t\"fas-f028\" => \"fas fa-volume-up\",\n\t\t\t\"fas-f772\" => \"fas fa-vote-yea\",\n\t\t\t\"fas-f729\" => \"fas fa-vr-cardboard\",\n\t\t\t\"fas-f554\" => \"fas fa-walking\",\n\t\t\t\"fas-f555\" => \"fas fa-wallet\",\n\t\t\t\"fas-f494\" => \"fas fa-warehouse\",\n\t\t\t\"fas-f773\" => \"fas fa-water\",\n\t\t\t\"fas-f83e\" => \"fas fa-wave-square\",\n\t\t\t\"fas-f496\" => \"fas fa-weight\",\n\t\t\t\"fas-f5cd\" => \"fas fa-weight-hanging\",\n\t\t\t\"fas-f193\" => \"fas fa-wheelchair\",\n\t\t\t\"fas-f1eb\" => \"fas fa-wifi\",\n\t\t\t\"fas-f72e\" => \"fas fa-wind\",\n\t\t\t\"fas-f410\" => \"fas fa-window-close\",\n\t\t\t\"fas-f2d0\" => \"fas fa-window-maximize\",\n\t\t\t\"fas-f2d1\" => \"fas fa-window-minimize\",\n\t\t\t\"fas-f2d2\" => \"fas fa-window-restore\",\n\t\t\t\"fas-f72f\" => \"fas fa-wine-bottle\",\n\t\t\t\"fas-f4e3\" => \"fas fa-wine-glass\",\n\t\t\t\"fas-f5ce\" => \"fas fa-wine-glass-alt\",\n\t\t\t\"fas-f159\" => \"fas fa-won-sign\",\n\t\t\t\"fas-f0ad\" => \"fas fa-wrench\",\n\t\t\t\"fas-f497\" => \"fas fa-x-ray\",\n\t\t\t\"fas-f157\" => \"fas fa-yen-sign\",\n\t\t\t\"fas-f6ad\" => \"fas fa-yin-y\"\n\t\t);\n\n\t\t$regular_icons = array(\t\n\t\t\t\"far-f2b9\" => \"far fa-address-book\",\n\t\t\t\"far-f2bb\" => \"far fa-address-card\",\n\t\t\t\"far-f556\" => \"far fa-angry\",\n\t\t\t\"far-f358\" => \"far fa-arrow-alt-circle-down\",\n\t\t\t\"far-f359\" => \"far fa-arrow-alt-circle-left\",\n\t\t\t\"far-f35a\" => \"far fa-arrow-alt-circle-right\",\n\t\t\t\"far-f35b\" => \"far fa-arrow-alt-circle-up\",\n\t\t\t\"far-f0f3\" => \"far fa-bell\",\n\t\t\t\"far-f1f6\" => \"far fa-bell-slash\",\n\t\t\t\"far-f02e\" => \"far fa-bookmark\",\n\t\t\t\"far-f1ad\" => \"far fa-building\",\n\t\t\t\"far-f133\" => \"far fa-calendar\",\n\t\t\t\"far-f073\" => \"far fa-calendar-alt\",\n\t\t\t\"far-f274\" => \"far fa-calendar-check\",\n\t\t\t\"far-f272\" => \"far fa-calendar-minus\",\n\t\t\t\"far-f271\" => \"far fa-calendar-plus\",\n\t\t\t\"far-f273\" => \"far fa-calendar-times\",\n\t\t\t\"far-f150\" => \"far fa-caret-square-down\",\n\t\t\t\"far-f191\" => \"far fa-caret-square-left\",\n\t\t\t\"far-f152\" => \"far fa-caret-square-right\",\n\t\t\t\"far-f151\" => \"far fa-caret-square-up\",\n\t\t\t\"far-f080\" => \"far fa-chart-bar\",\n\t\t\t\"far-f058\" => \"far fa-check-circle\",\n\t\t\t\"far-f14a\" => \"far fa-check-square\",\n\t\t\t\"far-f111\" => \"far fa-circle\",\n\t\t\t\"far-f328\" => \"far fa-clipboard\",\n\t\t\t\"far-f017\" => \"far fa-clock\",\n\t\t\t\"far-f24d\" => \"far fa-clone\",\n\t\t\t\"far-f20a\" => \"far fa-closed-captioning\",\n\t\t\t\"far-f075\" => \"far fa-comment\",\n\t\t\t\"far-f27a\" => \"far fa-comment-alt\",\n\t\t\t\"far-f4ad\" => \"far fa-comment-dots\",\n\t\t\t\"far-f086\" => \"far fa-comments\",\n\t\t\t\"far-f14e\" => \"far fa-compass\",\n\t\t\t\"far-f0c5\" => \"far fa-copy\",\n\t\t\t\"far-f1f9\" => \"far fa-copyright\",\n\t\t\t\"far-f09d\" => \"far fa-credit-card\",\n\t\t\t\"far-f567\" => \"far fa-dizzy\",\n\t\t\t\"far-f192\" => \"far fa-dot-circle\",\n\t\t\t\"far-f044\" => \"far fa-edit\",\n\t\t\t\"far-f0e0\" => \"far fa-envelope\",\n\t\t\t\"far-f2b6\" => \"far fa-envelope-open\",\n\t\t\t\"far-f06e\" => \"far fa-eye\",\n\t\t\t\"far-f070\" => \"far fa-eye-slash\",\n\t\t\t\"far-f15b\" => \"far fa-file\",\n\t\t\t\"far-f15c\" => \"far fa-file-alt\",\n\t\t\t\"far-f1c6\" => \"far fa-file-archive\",\n\t\t\t\"far-f1c7\" => \"far fa-file-audio\",\n\t\t\t\"far-f1c9\" => \"far fa-file-code\",\n\t\t\t\"far-f1c3\" => \"far fa-file-excel\",\n\t\t\t\"far-f1c5\" => \"far fa-file-image\",\n\t\t\t\"far-f1c1\" => \"far fa-file-pdf\",\n\t\t\t\"far-f1c4\" => \"far fa-file-powerpoint\",\n\t\t\t\"far-f1c8\" => \"far fa-file-video\",\n\t\t\t\"far-f1c2\" => \"far fa-file-word\",\n\t\t\t\"far-f024\" => \"far fa-flag\",\n\t\t\t\"far-f579\" => \"far fa-flushed\",\n\t\t\t\"far-f07b\" => \"far fa-folder\",\n\t\t\t\"far-f07c\" => \"far fa-folder-open\",\n\t\t\t\"far-f119\" => \"far fa-frown\",\n\t\t\t\"far-f57a\" => \"far fa-frown-open\",\n\t\t\t\"far-f1e3\" => \"far fa-futbol\",\n\t\t\t\"far-f3a5\" => \"far fa-gem\",\n\t\t\t\"far-f57f\" => \"far fa-grimace\",\n\t\t\t\"far-f580\" => \"far fa-grin\",\n\t\t\t\"far-f581\" => \"far fa-grin-alt\",\n\t\t\t\"far-f582\" => \"far fa-grin-beam\",\n\t\t\t\"far-f583\" => \"far fa-grin-beam-sweat\",\n\t\t\t\"far-f584\" => \"far fa-grin-hearts\",\n\t\t\t\"far-f585\" => \"far fa-grin-squint\",\n\t\t\t\"far-f586\" => \"far fa-grin-squint-tears\",\n\t\t\t\"far-f587\" => \"far fa-grin-stars\",\n\t\t\t\"far-f588\" => \"far fa-grin-tears\",\n\t\t\t\"far-f589\" => \"far fa-grin-tongue\",\n\t\t\t\"far-f58a\" => \"far fa-grin-tongue-squint\",\n\t\t\t\"far-f58b\" => \"far fa-grin-tongue-wink\",\n\t\t\t\"far-f58c\" => \"far fa-grin-wink\",\n\t\t\t\"far-f258\" => \"far fa-hand-lizard\",\n\t\t\t\"far-f256\" => \"far fa-hand-paper\",\n\t\t\t\"far-f25b\" => \"far fa-hand-peace\",\n\t\t\t\"far-f0a7\" => \"far fa-hand-point-down\",\n\t\t\t\"far-f0a5\" => \"far fa-hand-point-left\",\n\t\t\t\"far-f0a4\" => \"far fa-hand-point-right\",\n\t\t\t\"far-f0a6\" => \"far fa-hand-point-up\",\n\t\t\t\"far-f25a\" => \"far fa-hand-pointer\",\n\t\t\t\"far-f255\" => \"far fa-hand-rock\",\n\t\t\t\"far-f257\" => \"far fa-hand-scissors\",\n\t\t\t\"far-f259\" => \"far fa-hand-spock\",\n\t\t\t\"far-f2b5\" => \"far fa-handshake\",\n\t\t\t\"far-f0a0\" => \"far fa-hdd\",\n\t\t\t\"far-f004\" => \"far fa-heart\",\n\t\t\t\"far-f0f8\" => \"far fa-hospital\",\n\t\t\t\"far-f254\" => \"far fa-hourglass\",\n\t\t\t\"far-f2c1\" => \"far fa-id-badge\",\n\t\t\t\"far-f2c2\" => \"far fa-id-card\",\n\t\t\t\"far-f03e\" => \"far fa-image\",\n\t\t\t\"far-f302\" => \"far fa-images\",\n\t\t\t\"far-f11c\" => \"far fa-keyboard\",\n\t\t\t\"far-f596\" => \"far fa-kiss\",\n\t\t\t\"far-f597\" => \"far fa-kiss-beam\",\n\t\t\t\"far-f598\" => \"far fa-kiss-wink-heart\",\n\t\t\t\"far-f599\" => \"far fa-laugh\",\n\t\t\t\"far-f59a\" => \"far fa-laugh-beam\",\n\t\t\t\"far-f59b\" => \"far fa-laugh-squint\",\n\t\t\t\"far-f59c\" => \"far fa-laugh-wink\",\n\t\t\t\"far-f094\" => \"far fa-lemon\",\n\t\t\t\"far-f1cd\" => \"far fa-life-ring\",\n\t\t\t\"far-f0eb\" => \"far fa-lightbulb\",\n\t\t\t\"far-f022\" => \"far fa-list-alt\",\n\t\t\t\"far-f279\" => \"far fa-map\",\n\t\t\t\"far-f11a\" => \"far fa-meh\",\n\t\t\t\"far-f5a4\" => \"far fa-meh-blank\",\n\t\t\t\"far-f5a5\" => \"far fa-meh-rolling-eyes\",\n\t\t\t\"far-f146\" => \"far fa-minus-square\",\n\t\t\t\"far-f3d1\" => \"far fa-money-bill-alt\",\n\t\t\t\"far-f186\" => \"far fa-moon\",\n\t\t\t\"far-f1ea\" => \"far fa-newspaper\",\n\t\t\t\"far-f247\" => \"far fa-object-group\",\n\t\t\t\"far-f248\" => \"far fa-object-ungroup\",\n\t\t\t\"far-f1d8\" => \"far fa-paper-plane\",\n\t\t\t\"far-f28b\" => \"far fa-pause-circle\",\n\t\t\t\"far-f144\" => \"far fa-play-circle\",\n\t\t\t\"far-f0fe\" => \"far fa-plus-square\",\n\t\t\t\"far-f059\" => \"far fa-question-circle\",\n\t\t\t\"far-f25d\" => \"far fa-registered\",\n\t\t\t\"far-f5b3\" => \"far fa-sad-cry\",\n\t\t\t\"far-f5b4\" => \"far fa-sad-tear\",\n\t\t\t\"far-f0c7\" => \"far fa-save\",\n\t\t\t\"far-f14d\" => \"far fa-share-square\",\n\t\t\t\"far-f118\" => \"far fa-smile\",\n\t\t\t\"far-f5b8\" => \"far fa-smile-beam\",\n\t\t\t\"far-f4da\" => \"far fa-smile-wink\",\n\t\t\t\"far-f2dc\" => \"far fa-snowflake\",\n\t\t\t\"far-f0c8\" => \"far fa-square\",\n\t\t\t\"far-f005\" => \"far fa-star\",\n\t\t\t\"far-f089\" => \"far fa-star-half\",\n\t\t\t\"far-f249\" => \"far fa-sticky-note\",\n\t\t\t\"far-f28d\" => \"far fa-stop-circle\",\n\t\t\t\"far-f185\" => \"far fa-sun\",\n\t\t\t\"far-f5c2\" => \"far fa-surprise\",\n\t\t\t\"far-f165\" => \"far fa-thumbs-down\",\n\t\t\t\"far-f164\" => \"far fa-thumbs-up\",\n\t\t\t\"far-f057\" => \"far fa-times-circle\",\n\t\t\t\"far-f5c8\" => \"far fa-tired\",\n\t\t\t\"far-f2ed\" => \"far fa-trash-alt\",\n\t\t\t\"far-f007\" => \"far fa-user\",\n\t\t\t\"far-f2bd\" => \"far fa-user-circle\",\n\t\t\t\"far-f410\" => \"far fa-window-close\",\n\t\t\t\"far-f2d0\" => \"far fa-window-maximize\",\n\t\t\t\"far-f2d1\" => \"far fa-window-minimize\",\n\t\t\t\"far-f2d2\" => \"far fa-window-rest\"\n\t\t);\n\n\t\t$brand_icons = array(\n\t\t\t\"fab-f26e\" => \"fab fa-500px\",\n\t\t\t\"fab-f368\" => \"fab fa-accessible-icon\",\n\t\t\t\"fab-f369\" => \"fab fa-accusoft\",\n\t\t\t\"fab-f6af\" => \"fab fa-acquisitions-incorporated\",\n\t\t\t\"fab-f170\" => \"fab fa-adn\",\n\t\t\t\"fab-f778\" => \"fab fa-adobe\",\n\t\t\t\"fab-f36a\" => \"fab fa-adversal\",\n\t\t\t\"fab-f36b\" => \"fab fa-affiliatetheme\",\n\t\t\t\"fab-f834\" => \"fab fa-airbnb\",\n\t\t\t\"fab-f36c\" => \"fab fa-algolia\",\n\t\t\t\"fab-f642\" => \"fab fa-alipay\",\n\t\t\t\"fab-f270\" => \"fab fa-amazon\",\n\t\t\t\"fab-f42c\" => \"fab fa-amazon-pay\",\n\t\t\t\"fab-f36d\" => \"fab fa-amilia\",\n\t\t\t\"fab-f17b\" => \"fab fa-android\",\n\t\t\t\"fab-f209\" => \"fab fa-angellist\",\n\t\t\t\"fab-f36e\" => \"fab fa-angrycreative\",\n\t\t\t\"fab-f420\" => \"fab fa-angular\",\n\t\t\t\"fab-f36f\" => \"fab fa-app-store\",\n\t\t\t\"fab-f370\" => \"fab fa-app-store-ios\",\n\t\t\t\"fab-f371\" => \"fab fa-apper\",\n\t\t\t\"fab-f179\" => \"fab fa-apple\",\n\t\t\t\"fab-f415\" => \"fab fa-apple-pay\",\n\t\t\t\"fab-f77a\" => \"fab fa-artstation\",\n\t\t\t\"fab-f372\" => \"fab fa-asymmetrik\",\n\t\t\t\"fab-f77b\" => \"fab fa-atlassian\",\n\t\t\t\"fab-f373\" => \"fab fa-audible\",\n\t\t\t\"fab-f41c\" => \"fab fa-autoprefixer\",\n\t\t\t\"fab-f374\" => \"fab fa-avianex\",\n\t\t\t\"fab-f421\" => \"fab fa-aviato\",\n\t\t\t\"fab-f375\" => \"fab fa-aws\",\n\t\t\t\"fab-f2d5\" => \"fab fa-bandcamp\",\n\t\t\t\"fab-f835\" => \"fab fa-battle-net\",\n\t\t\t\"fab-f1b4\" => \"fab fa-behance\",\n\t\t\t\"fab-f1b5\" => \"fab fa-behance-square\",\n\t\t\t\"fab-f378\" => \"fab fa-bimobject\",\n\t\t\t\"fab-f171\" => \"fab fa-bitbucket\",\n\t\t\t\"fab-f379\" => \"fab fa-bitcoin\",\n\t\t\t\"fab-f37a\" => \"fab fa-bity\",\n\t\t\t\"fab-f27e\" => \"fab fa-black-tie\",\n\t\t\t\"fab-f37b\" => \"fab fa-blackberry\",\n\t\t\t\"fab-f37c\" => \"fab fa-blogger\",\n\t\t\t\"fab-f37d\" => \"fab fa-blogger-b\",\n\t\t\t\"fab-f293\" => \"fab fa-bluetooth\",\n\t\t\t\"fab-f294\" => \"fab fa-bluetooth-b\",\n\t\t\t\"fab-f836\" => \"fab fa-bootstrap\",\n\t\t\t\"fab-f15a\" => \"fab fa-btc\",\n\t\t\t\"fab-f837\" => \"fab fa-buffer\",\n\t\t\t\"fab-f37f\" => \"fab fa-buromobelexperte\",\n\t\t\t\"fab-f8a6\" => \"fab fa-buy-n-large\",\n\t\t\t\"fab-f20d\" => \"fab fa-buysellads\",\n\t\t\t\"fab-f785\" => \"fab fa-canadian-maple-leaf\",\n\t\t\t\"fab-f42d\" => \"fab fa-cc-amazon-pay\",\n\t\t\t\"fab-f1f3\" => \"fab fa-cc-amex\",\n\t\t\t\"fab-f416\" => \"fab fa-cc-apple-pay\",\n\t\t\t\"fab-f24c\" => \"fab fa-cc-diners-club\",\n\t\t\t\"fab-f1f2\" => \"fab fa-cc-discover\",\n\t\t\t\"fab-f24b\" => \"fab fa-cc-jcb\",\n\t\t\t\"fab-f1f1\" => \"fab fa-cc-mastercard\",\n\t\t\t\"fab-f1f4\" => \"fab fa-cc-paypal\",\n\t\t\t\"fab-f1f5\" => \"fab fa-cc-stripe\",\n\t\t\t\"fab-f1f0\" => \"fab fa-cc-visa\",\n\t\t\t\"fab-f380\" => \"fab fa-centercode\",\n\t\t\t\"fab-f789\" => \"fab fa-centos\",\n\t\t\t\"fab-f268\" => \"fab fa-chrome\",\n\t\t\t\"fab-f838\" => \"fab fa-chromecast\",\n\t\t\t\"fab-f383\" => \"fab fa-cloudscale\",\n\t\t\t\"fab-f384\" => \"fab fa-cloudsmith\",\n\t\t\t\"fab-f385\" => \"fab fa-cloudversify\",\n\t\t\t\"fab-f1cb\" => \"fab fa-codepen\",\n\t\t\t\"fab-f284\" => \"fab fa-codiepie\",\n\t\t\t\"fab-f78d\" => \"fab fa-confluence\",\n\t\t\t\"fab-f20e\" => \"fab fa-connectdevelop\",\n\t\t\t\"fab-f26d\" => \"fab fa-contao\",\n\t\t\t\"fab-f89e\" => \"fab fa-cotton-bureau\",\n\t\t\t\"fab-f388\" => \"fab fa-cpanel\",\n\t\t\t\"fab-f25e\" => \"fab fa-creative-commons\",\n\t\t\t\"fab-f4e7\" => \"fab fa-creative-commons-by\",\n\t\t\t\"fab-f4e8\" => \"fab fa-creative-commons-nc\",\n\t\t\t\"fab-f4e9\" => \"fab fa-creative-commons-nc-eu\",\n\t\t\t\"fab-f4ea\" => \"fab fa-creative-commons-nc-jp\",\n\t\t\t\"fab-f4eb\" => \"fab fa-creative-commons-nd\",\n\t\t\t\"fab-f4ec\" => \"fab fa-creative-commons-pd\",\n\t\t\t\"fab-f4ed\" => \"fab fa-creative-commons-pd-alt\",\n\t\t\t\"fab-f4ee\" => \"fab fa-creative-commons-remix\",\n\t\t\t\"fab-f4ef\" => \"fab fa-creative-commons-sa\",\n\t\t\t\"fab-f4f0\" => \"fab fa-creative-commons-sampling\",\n\t\t\t\"fab-f4f1\" => \"fab fa-creative-commons-sampling-plus\",\n\t\t\t\"fab-f4f2\" => \"fab fa-creative-commons-share\",\n\t\t\t\"fab-f4f3\" => \"fab fa-creative-commons-zero\",\n\t\t\t\"fab-f6c9\" => \"fab fa-critical-role\",\n\t\t\t\"fab-f13c\" => \"fab fa-css3\",\n\t\t\t\"fab-f38b\" => \"fab fa-css3-alt\",\n\t\t\t\"fab-f38c\" => \"fab fa-cuttlefish\",\n\t\t\t\"fab-f38d\" => \"fab fa-d-and-d\",\n\t\t\t\"fab-f6ca\" => \"fab fa-d-and-d-beyond\",\n\t\t\t\"fab-f952\" => \"fab fa-dailymotion\",\n\t\t\t\"fab-f210\" => \"fab fa-dashcube\",\n\t\t\t\"fab-f1a5\" => \"fab fa-delicious\",\n\t\t\t\"fab-f38e\" => \"fab fa-deploydog\",\n\t\t\t\"fab-f38f\" => \"fab fa-deskpro\",\n\t\t\t\"fab-f6cc\" => \"fab fa-dev\",\n\t\t\t\"fab-f1bd\" => \"fab fa-deviantart\",\n\t\t\t\"fab-f790\" => \"fab fa-dhl\",\n\t\t\t\"fab-f791\" => \"fab fa-diaspora\",\n\t\t\t\"fab-f1a6\" => \"fab fa-digg\",\n\t\t\t\"fab-f391\" => \"fab fa-digital-ocean\",\n\t\t\t\"fab-f392\" => \"fab fa-discord\",\n\t\t\t\"fab-f393\" => \"fab fa-discourse\",\n\t\t\t\"fab-f394\" => \"fab fa-dochub\",\n\t\t\t\"fab-f395\" => \"fab fa-docker\",\n\t\t\t\"fab-f396\" => \"fab fa-draft2digital\",\n\t\t\t\"fab-f17d\" => \"fab fa-dribbble\",\n\t\t\t\"fab-f397\" => \"fab fa-dribbble-square\",\n\t\t\t\"fab-f16b\" => \"fab fa-dropbox\",\n\t\t\t\"fab-f1a9\" => \"fab fa-drupal\",\n\t\t\t\"fab-f399\" => \"fab fa-dyalog\",\n\t\t\t\"fab-f39a\" => \"fab fa-earlybirds\",\n\t\t\t\"fab-f4f4\" => \"fab fa-ebay\",\n\t\t\t\"fab-f282\" => \"fab fa-edge\",\n\t\t\t\"fab-f430\" => \"fab fa-elementor\",\n\t\t\t\"fab-f5f1\" => \"fab fa-ello\",\n\t\t\t\"fab-f423\" => \"fab fa-ember\",\n\t\t\t\"fab-f1d1\" => \"fab fa-empire\",\n\t\t\t\"fab-f299\" => \"fab fa-envira\",\n\t\t\t\"fab-f39d\" => \"fab fa-erlang\",\n\t\t\t\"fab-f42e\" => \"fab fa-ethereum\",\n\t\t\t\"fab-f2d7\" => \"fab fa-etsy\",\n\t\t\t\"fab-f839\" => \"fab fa-evernote\",\n\t\t\t\"fab-f23e\" => \"fab fa-expeditedssl\",\n\t\t\t\"fab-f09a\" => \"fab fa-facebook\",\n\t\t\t\"fab-f39e\" => \"fab fa-facebook-f\",\n\t\t\t\"fab-f39f\" => \"fab fa-facebook-messenger\",\n\t\t\t\"fab-f082\" => \"fab fa-facebook-square\",\n\t\t\t\"fab-f6dc\" => \"fab fa-fantasy-flight-games\",\n\t\t\t\"fab-f797\" => \"fab fa-fedex\",\n\t\t\t\"fab-f798\" => \"fab fa-fedora\",\n\t\t\t\"fab-f799\" => \"fab fa-figma\",\n\t\t\t\"fab-f269\" => \"fab fa-firefox\",\n\t\t\t\"fab-f907\" => \"fab fa-firefox-browser\",\n\t\t\t\"fab-f2b0\" => \"fab fa-first-order\",\n\t\t\t\"fab-f50a\" => \"fab fa-first-order-alt\",\n\t\t\t\"fab-f3a1\" => \"fab fa-firstdraft\",\n\t\t\t\"fab-f16e\" => \"fab fa-flickr\",\n\t\t\t\"fab-f44d\" => \"fab fa-flipboard\",\n\t\t\t\"fab-f417\" => \"fab fa-fly\",\n\t\t\t\"fab-f2b4\" => \"fab fa-font-awesome\",\n\t\t\t\"fab-f35c\" => \"fab fa-font-awesome-alt\",\n\t\t\t\"fab-f425\" => \"fab fa-font-awesome-flag\",\n\t\t\t\"fab-f280\" => \"fab fa-fonticons\",\n\t\t\t\"fab-f3a2\" => \"fab fa-fonticons-fi\",\n\t\t\t\"fab-f286\" => \"fab fa-fort-awesome\",\n\t\t\t\"fab-f3a3\" => \"fab fa-fort-awesome-alt\",\n\t\t\t\"fab-f211\" => \"fab fa-forumbee\",\n\t\t\t\"fab-f180\" => \"fab fa-foursquare\",\n\t\t\t\"fab-f2c5\" => \"fab fa-free-code-camp\",\n\t\t\t\"fab-f3a4\" => \"fab fa-freebsd\",\n\t\t\t\"fab-f50b\" => \"fab fa-fulcrum\",\n\t\t\t\"fab-f50c\" => \"fab fa-galactic-republic\",\n\t\t\t\"fab-f50d\" => \"fab fa-galactic-senate\",\n\t\t\t\"fab-f265\" => \"fab fa-get-pocket\",\n\t\t\t\"fab-f260\" => \"fab fa-gg\",\n\t\t\t\"fab-f261\" => \"fab fa-gg-circle\",\n\t\t\t\"fab-f1d3\" => \"fab fa-git\",\n\t\t\t\"fab-f841\" => \"fab fa-git-alt\",\n\t\t\t\"fab-f1d2\" => \"fab fa-git-square\",\n\t\t\t\"fab-f09b\" => \"fab fa-github\",\n\t\t\t\"fab-f113\" => \"fab fa-github-alt\",\n\t\t\t\"fab-f092\" => \"fab fa-github-square\",\n\t\t\t\"fab-f3a6\" => \"fab fa-gitkraken\",\n\t\t\t\"fab-f296\" => \"fab fa-gitlab\",\n\t\t\t\"fab-f426\" => \"fab fa-gitter\",\n\t\t\t\"fab-f2a5\" => \"fab fa-glide\",\n\t\t\t\"fab-f2a6\" => \"fab fa-glide-g\",\n\t\t\t\"fab-f3a7\" => \"fab fa-gofore\",\n\t\t\t\"fab-f3a8\" => \"fab fa-goodreads\",\n\t\t\t\"fab-f3a9\" => \"fab fa-goodreads-g\",\n\t\t\t\"fab-f1a0\" => \"fab fa-google\",\n\t\t\t\"fab-f3aa\" => \"fab fa-google-drive\",\n\t\t\t\"fab-f3ab\" => \"fab fa-google-play\",\n\t\t\t\"fab-f2b3\" => \"fab fa-google-plus\",\n\t\t\t\"fab-f0d5\" => \"fab fa-google-plus-g\",\n\t\t\t\"fab-f0d4\" => \"fab fa-google-plus-square\",\n\t\t\t\"fab-f1ee\" => \"fab fa-google-wallet\",\n\t\t\t\"fab-f184\" => \"fab fa-gratipay\",\n\t\t\t\"fab-f2d6\" => \"fab fa-grav\",\n\t\t\t\"fab-f3ac\" => \"fab fa-gripfire\",\n\t\t\t\"fab-f3ad\" => \"fab fa-grunt\",\n\t\t\t\"fab-f3ae\" => \"fab fa-gulp\",\n\t\t\t\"fab-f1d4\" => \"fab fa-hacker-news\",\n\t\t\t\"fab-f3af\" => \"fab fa-hacker-news-square\",\n\t\t\t\"fab-f5f7\" => \"fab fa-hackerrank\",\n\t\t\t\"fab-f452\" => \"fab fa-hips\",\n\t\t\t\"fab-f3b0\" => \"fab fa-hire-a-helper\",\n\t\t\t\"fab-f427\" => \"fab fa-hooli\",\n\t\t\t\"fab-f592\" => \"fab fa-hornbill\",\n\t\t\t\"fab-f3b1\" => \"fab fa-hotjar\",\n\t\t\t\"fab-f27c\" => \"fab fa-houzz\",\n\t\t\t\"fab-f13b\" => \"fab fa-html5\",\n\t\t\t\"fab-f3b2\" => \"fab fa-hubspot\",\n\t\t\t\"fab-f913\" => \"fab fa-ideal\",\n\t\t\t\"fab-f2d8\" => \"fab fa-imdb\",\n\t\t\t\"fab-f16d\" => \"fab fa-instagram\",\n\t\t\t\"fab-f955\" => \"fab fa-instagram-square\",\n\t\t\t\"fab-f7af\" => \"fab fa-intercom\",\n\t\t\t\"fab-f26b\" => \"fab fa-internet-explorer\",\n\t\t\t\"fab-f7b0\" => \"fab fa-invision\",\n\t\t\t\"fab-f208\" => \"fab fa-ioxhost\",\n\t\t\t\"fab-f83a\" => \"fab fa-itch-io\",\n\t\t\t\"fab-f3b4\" => \"fab fa-itunes\",\n\t\t\t\"fab-f3b5\" => \"fab fa-itunes-note\",\n\t\t\t\"fab-f4e4\" => \"fab fa-java\",\n\t\t\t\"fab-f50e\" => \"fab fa-jedi-order\",\n\t\t\t\"fab-f3b6\" => \"fab fa-jenkins\",\n\t\t\t\"fab-f7b1\" => \"fab fa-jira\",\n\t\t\t\"fab-f3b7\" => \"fab fa-joget\",\n\t\t\t\"fab-f1aa\" => \"fab fa-joomla\",\n\t\t\t\"fab-f3b8\" => \"fab fa-js\",\n\t\t\t\"fab-f3b9\" => \"fab fa-js-square\",\n\t\t\t\"fab-f1cc\" => \"fab fa-jsfiddle\",\n\t\t\t\"fab-f5fa\" => \"fab fa-kaggle\",\n\t\t\t\"fab-f4f5\" => \"fab fa-keybase\",\n\t\t\t\"fab-f3ba\" => \"fab fa-keycdn\",\n\t\t\t\"fab-f3bb\" => \"fab fa-kickstarter\",\n\t\t\t\"fab-f3bc\" => \"fab fa-kickstarter-k\",\n\t\t\t\"fab-f42f\" => \"fab fa-korvue\",\n\t\t\t\"fab-f3bd\" => \"fab fa-laravel\",\n\t\t\t\"fab-f202\" => \"fab fa-lastfm\",\n\t\t\t\"fab-f203\" => \"fab fa-lastfm-square\",\n\t\t\t\"fab-f212\" => \"fab fa-leanpub\",\n\t\t\t\"fab-f41d\" => \"fab fa-less\",\n\t\t\t\"fab-f3c0\" => \"fab fa-line\",\n\t\t\t\"fab-f08c\" => \"fab fa-linkedin\",\n\t\t\t\"fab-f0e1\" => \"fab fa-linkedin-in\",\n\t\t\t\"fab-f2b8\" => \"fab fa-linode\",\n\t\t\t\"fab-f17c\" => \"fab fa-linux\",\n\t\t\t\"fab-f3c3\" => \"fab fa-lyft\",\n\t\t\t\"fab-f3c4\" => \"fab fa-magento\",\n\t\t\t\"fab-f59e\" => \"fab fa-mailchimp\",\n\t\t\t\"fab-f50f\" => \"fab fa-mandalorian\",\n\t\t\t\"fab-f60f\" => \"fab fa-markdown\",\n\t\t\t\"fab-f4f6\" => \"fab fa-mastodon\",\n\t\t\t\"fab-f136\" => \"fab fa-maxcdn\",\n\t\t\t\"fab-f8ca\" => \"fab fa-mdb\",\n\t\t\t\"fab-f3c6\" => \"fab fa-medapps\",\n\t\t\t\"fab-f23a\" => \"fab fa-medium\",\n\t\t\t\"fab-f3c7\" => \"fab fa-medium-m\",\n\t\t\t\"fab-f3c8\" => \"fab fa-medrt\",\n\t\t\t\"fab-f2e0\" => \"fab fa-meetup\",\n\t\t\t\"fab-f5a3\" => \"fab fa-megaport\",\n\t\t\t\"fab-f7b3\" => \"fab fa-mendeley\",\n\t\t\t\"fab-f91a\" => \"fab fa-microblog\",\n\t\t\t\"fab-f3ca\" => \"fab fa-microsoft\",\n\t\t\t\"fab-f3cb\" => \"fab fa-mix\",\n\t\t\t\"fab-f289\" => \"fab fa-mixcloud\",\n\t\t\t\"fab-f956\" => \"fab fa-mixer\",\n\t\t\t\"fab-f3cc\" => \"fab fa-mizuni\",\n\t\t\t\"fab-f285\" => \"fab fa-modx\",\n\t\t\t\"fab-f3d0\" => \"fab fa-monero\",\n\t\t\t\"fab-f3d2\" => \"fab fa-napster\",\n\t\t\t\"fab-f612\" => \"fab fa-neos\",\n\t\t\t\"fab-f5a8\" => \"fab fa-nimblr\",\n\t\t\t\"fab-f419\" => \"fab fa-node\",\n\t\t\t\"fab-f3d3\" => \"fab fa-node-js\",\n\t\t\t\"fab-f3d4\" => \"fab fa-npm\",\n\t\t\t\"fab-f3d5\" => \"fab fa-ns8\",\n\t\t\t\"fab-f3d6\" => \"fab fa-nutritionix\",\n\t\t\t\"fab-f263\" => \"fab fa-odnoklassniki\",\n\t\t\t\"fab-f264\" => \"fab fa-odnoklassniki-square\",\n\t\t\t\"fab-f510\" => \"fab fa-old-republic\",\n\t\t\t\"fab-f23d\" => \"fab fa-opencart\",\n\t\t\t\"fab-f19b\" => \"fab fa-openid\",\n\t\t\t\"fab-f26a\" => \"fab fa-opera\",\n\t\t\t\"fab-f23c\" => \"fab fa-optin-monster\",\n\t\t\t\"fab-f8d2\" => \"fab fa-orcid\",\n\t\t\t\"fab-f41a\" => \"fab fa-osi\",\n\t\t\t\"fab-f3d7\" => \"fab fa-page4\",\n\t\t\t\"fab-f18c\" => \"fab fa-pagelines\",\n\t\t\t\"fab-f3d8\" => \"fab fa-palfed\",\n\t\t\t\"fab-f3d9\" => \"fab fa-patreon\",\n\t\t\t\"fab-f1ed\" => \"fab fa-paypal\",\n\t\t\t\"fab-f704\" => \"fab fa-penny-arcade\",\n\t\t\t\"fab-f3da\" => \"fab fa-periscope\",\n\t\t\t\"fab-f3db\" => \"fab fa-phabricator\",\n\t\t\t\"fab-f3dc\" => \"fab fa-phoenix-framework\",\n\t\t\t\"fab-f511\" => \"fab fa-phoenix-squadron\",\n\t\t\t\"fab-f457\" => \"fab fa-php\",\n\t\t\t\"fab-f2ae\" => \"fab fa-pied-piper\",\n\t\t\t\"fab-f1a8\" => \"fab fa-pied-piper-alt\",\n\t\t\t\"fab-f4e5\" => \"fab fa-pied-piper-hat\",\n\t\t\t\"fab-f1a7\" => \"fab fa-pied-piper-pp\",\n\t\t\t\"fab-f91e\" => \"fab fa-pied-piper-square\",\n\t\t\t\"fab-f0d2\" => \"fab fa-pinterest\",\n\t\t\t\"fab-f231\" => \"fab fa-pinterest-p\",\n\t\t\t\"fab-f0d3\" => \"fab fa-pinterest-square\",\n\t\t\t\"fab-f3df\" => \"fab fa-playstation\",\n\t\t\t\"fab-f288\" => \"fab fa-product-hunt\",\n\t\t\t\"fab-f3e1\" => \"fab fa-pushed\",\n\t\t\t\"fab-f3e2\" => \"fab fa-python\",\n\t\t\t\"fab-f1d6\" => \"fab fa-qq\",\n\t\t\t\"fab-f459\" => \"fab fa-quinscape\",\n\t\t\t\"fab-f2c4\" => \"fab fa-quora\",\n\t\t\t\"fab-f4f7\" => \"fab fa-r-project\",\n\t\t\t\"fab-f7bb\" => \"fab fa-raspberry-pi\",\n\t\t\t\"fab-f2d9\" => \"fab fa-ravelry\",\n\t\t\t\"fab-f41b\" => \"fab fa-react\",\n\t\t\t\"fab-f75d\" => \"fab fa-reacteurope\",\n\t\t\t\"fab-f4d5\" => \"fab fa-readme\",\n\t\t\t\"fab-f1d0\" => \"fab fa-rebel\",\n\t\t\t\"fab-f3e3\" => \"fab fa-red-river\",\n\t\t\t\"fab-f1a1\" => \"fab fa-reddit\",\n\t\t\t\"fab-f281\" => \"fab fa-reddit-alien\",\n\t\t\t\"fab-f1a2\" => \"fab fa-reddit-square\",\n\t\t\t\"fab-f7bc\" => \"fab fa-redhat\",\n\t\t\t\"fab-f18b\" => \"fab fa-renren\",\n\t\t\t\"fab-f3e6\" => \"fab fa-replyd\",\n\t\t\t\"fab-f4f8\" => \"fab fa-researchgate\",\n\t\t\t\"fab-f3e7\" => \"fab fa-resolving\",\n\t\t\t\"fab-f5b2\" => \"fab fa-rev\",\n\t\t\t\"fab-f3e8\" => \"fab fa-rocketchat\",\n\t\t\t\"fab-f3e9\" => \"fab fa-rockrms\",\n\t\t\t\"fab-f267\" => \"fab fa-safari\",\n\t\t\t\"fab-f83b\" => \"fab fa-salesforce\",\n\t\t\t\"fab-f41e\" => \"fab fa-sass\",\n\t\t\t\"fab-f3ea\" => \"fab fa-schlix\",\n\t\t\t\"fab-f28a\" => \"fab fa-scribd\",\n\t\t\t\"fab-f3eb\" => \"fab fa-searchengin\",\n\t\t\t\"fab-f2da\" => \"fab fa-sellcast\",\n\t\t\t\"fab-f213\" => \"fab fa-sellsy\",\n\t\t\t\"fab-f3ec\" => \"fab fa-servicestack\",\n\t\t\t\"fab-f214\" => \"fab fa-shirtsinbulk\",\n\t\t\t\"fab-f957\" => \"fab fa-shopify\",\n\t\t\t\"fab-f5b5\" => \"fab fa-shopware\",\n\t\t\t\"fab-f215\" => \"fab fa-simplybuilt\",\n\t\t\t\"fab-f3ee\" => \"fab fa-sistrix\",\n\t\t\t\"fab-f512\" => \"fab fa-sith\",\n\t\t\t\"fab-f7c6\" => \"fab fa-sketch\",\n\t\t\t\"fab-f216\" => \"fab fa-skyatlas\",\n\t\t\t\"fab-f17e\" => \"fab fa-skype\",\n\t\t\t\"fab-f198\" => \"fab fa-slack\",\n\t\t\t\"fab-f3ef\" => \"fab fa-slack-hash\",\n\t\t\t\"fab-f1e7\" => \"fab fa-slideshare\",\n\t\t\t\"fab-f2ab\" => \"fab fa-snapchat\",\n\t\t\t\"fab-f2ac\" => \"fab fa-snapchat-ghost\",\n\t\t\t\"fab-f2ad\" => \"fab fa-snapchat-square\",\n\t\t\t\"fab-f1be\" => \"fab fa-soundcloud\",\n\t\t\t\"fab-f7d3\" => \"fab fa-sourcetree\",\n\t\t\t\"fab-f3f3\" => \"fab fa-speakap\",\n\t\t\t\"fab-f83c\" => \"fab fa-speaker-deck\",\n\t\t\t\"fab-f1bc\" => \"fab fa-spotify\",\n\t\t\t\"fab-f5be\" => \"fab fa-squarespace\",\n\t\t\t\"fab-f18d\" => \"fab fa-stack-exchange\",\n\t\t\t\"fab-f16c\" => \"fab fa-stack-overflow\",\n\t\t\t\"fab-f842\" => \"fab fa-stackpath\",\n\t\t\t\"fab-f3f5\" => \"fab fa-staylinked\",\n\t\t\t\"fab-f1b6\" => \"fab fa-steam\",\n\t\t\t\"fab-f1b7\" => \"fab fa-steam-square\",\n\t\t\t\"fab-f3f6\" => \"fab fa-steam-symbol\",\n\t\t\t\"fab-f3f7\" => \"fab fa-sticker-mule\",\n\t\t\t\"fab-f428\" => \"fab fa-strava\",\n\t\t\t\"fab-f429\" => \"fab fa-stripe\",\n\t\t\t\"fab-f42a\" => \"fab fa-stripe-s\",\n\t\t\t\"fab-f3f8\" => \"fab fa-studiovinari\",\n\t\t\t\"fab-f1a4\" => \"fab fa-stumbleupon\",\n\t\t\t\"fab-f1a3\" => \"fab fa-stumbleupon-circle\",\n\t\t\t\"fab-f2dd\" => \"fab fa-superpowers\",\n\t\t\t\"fab-f3f9\" => \"fab fa-supple\",\n\t\t\t\"fab-f7d6\" => \"fab fa-suse\",\n\t\t\t\"fab-f8e1\" => \"fab fa-swift\",\n\t\t\t\"fab-f83d\" => \"fab fa-symfony\",\n\t\t\t\"fab-f4f9\" => \"fab fa-teamspeak\",\n\t\t\t\"fab-f2c6\" => \"fab fa-telegram\",\n\t\t\t\"fab-f3fe\" => \"fab fa-telegram-plane\",\n\t\t\t\"fab-f1d5\" => \"fab fa-tencent-weibo\",\n\t\t\t\"fab-f69d\" => \"fab fa-the-red-yeti\",\n\t\t\t\"fab-f5c6\" => \"fab fa-themeco\",\n\t\t\t\"fab-f2b2\" => \"fab fa-themeisle\",\n\t\t\t\"fab-f731\" => \"fab fa-think-peaks\",\n\t\t\t\"fab-f513\" => \"fab fa-trade-federation\",\n\t\t\t\"fab-f181\" => \"fab fa-trello\",\n\t\t\t\"fab-f262\" => \"fab fa-tripadvisor\",\n\t\t\t\"fab-f173\" => \"fab fa-tumblr\",\n\t\t\t\"fab-f174\" => \"fab fa-tumblr-square\",\n\t\t\t\"fab-f1e8\" => \"fab fa-twitch\",\n\t\t\t\"fab-f099\" => \"fab fa-twitter\",\n\t\t\t\"fab-f081\" => \"fab fa-twitter-square\",\n\t\t\t\"fab-f42b\" => \"fab fa-typo3\",\n\t\t\t\"fab-f402\" => \"fab fa-uber\",\n\t\t\t\"fab-f7df\" => \"fab fa-ubuntu\",\n\t\t\t\"fab-f403\" => \"fab fa-uikit\",\n\t\t\t\"fab-f8e8\" => \"fab fa-umbraco\",\n\t\t\t\"fab-f404\" => \"fab fa-uniregistry\",\n\t\t\t\"fab-f949\" => \"fab fa-unity\",\n\t\t\t\"fab-f405\" => \"fab fa-untappd\",\n\t\t\t\"fab-f7e0\" => \"fab fa-ups\",\n\t\t\t\"fab-f287\" => \"fab fa-usb\",\n\t\t\t\"fab-f7e1\" => \"fab fa-usps\",\n\t\t\t\"fab-f407\" => \"fab fa-ussunnah\",\n\t\t\t\"fab-f408\" => \"fab fa-vaadin\",\n\t\t\t\"fab-f237\" => \"fab fa-viacoin\",\n\t\t\t\"fab-f2a9\" => \"fab fa-viadeo\",\n\t\t\t\"fab-f2aa\" => \"fab fa-viadeo-square\",\n\t\t\t\"fab-f409\" => \"fab fa-viber\",\n\t\t\t\"fab-f40a\" => \"fab fa-vimeo\",\n\t\t\t\"fab-f194\" => \"fab fa-vimeo-square\",\n\t\t\t\"fab-f27d\" => \"fab fa-vimeo-v\",\n\t\t\t\"fab-f1ca\" => \"fab fa-vine\",\n\t\t\t\"fab-f189\" => \"fab fa-vk\",\n\t\t\t\"fab-f40b\" => \"fab fa-vnv\",\n\t\t\t\"fab-f41f\" => \"fab fa-vuejs\",\n\t\t\t\"fab-f83f\" => \"fab fa-waze\",\n\t\t\t\"fab-f5cc\" => \"fab fa-weebly\",\n\t\t\t\"fab-f18a\" => \"fab fa-weibo\",\n\t\t\t\"fab-f1d7\" => \"fab fa-weixin\",\n\t\t\t\"fab-f232\" => \"fab fa-whatsapp\",\n\t\t\t\"fab-f40c\" => \"fab fa-whatsapp-square\",\n\t\t\t\"fab-f40d\" => \"fab fa-whmcs\",\n\t\t\t\"fab-f266\" => \"fab fa-wikipedia-w\",\n\t\t\t\"fab-f17a\" => \"fab fa-windows\",\n\t\t\t\"fab-f5cf\" => \"fab fa-wix\",\n\t\t\t\"fab-f730\" => \"fab fa-wizards-of-the-coast\",\n\t\t\t\"fab-f514\" => \"fab fa-wolf-pack-battalion\",\n\t\t\t\"fab-f19a\" => \"fab fa-wordpress\",\n\t\t\t\"fab-f411\" => \"fab fa-wordpress-simple\",\n\t\t\t\"fab-f297\" => \"fab fa-wpbeginner\",\n\t\t\t\"fab-f2de\" => \"fab fa-wpexplorer\",\n\t\t\t\"fab-f298\" => \"fab fa-wpforms\",\n\t\t\t\"fab-f3e4\" => \"fab fa-wpressr\",\n\t\t\t\"fab-f412\" => \"fab fa-xbox\",\n\t\t\t\"fab-f168\" => \"fab fa-xing\",\n\t\t\t\"fab-f169\" => \"fab fa-xing-square\",\n\t\t\t\"fab-f23b\" => \"fab fa-y-combinator\",\n\t\t\t\"fab-f19e\" => \"fab fa-yahoo\",\n\t\t\t\"fab-f840\" => \"fab fa-yammer\",\n\t\t\t\"fab-f413\" => \"fab fa-yandex\",\n\t\t\t\"fab-f414\" => \"fab fa-yandex-international\",\n\t\t\t\"fab-f7e3\" => \"fab fa-yarn\",\n\t\t\t\"fab-f1e9\" => \"fab fa-yelp\",\n\t\t\t\"fab-f2b1\" => \"fab fa-yoast\",\n\t\t\t\"fab-f167\" => \"fab fa-youtube\",\n\t\t\t\"fab-f431\" => \"fab fa-youtube-square\",\n\t\t\t\"fab-f63f\" => \"fab fa-zhihu\"\n\t\t);\n\n\t\t$icons = array_merge( $solid_icons, $regular_icons, $brand_icons );\n\n\t\t$icons = apply_filters( \"megamenu_fontawesome_5_icons\", $icons );\n\n\t\treturn $icons;\n\n\t}", "private function _renderIcon()\n {\n return !empty($this->_icon) ? '<i class=\"' . $this->_icon . '\"></i>' : '';\n }", "public function getIcon()\n {\n return $this->_icon;\n }", "public function getIcon()\n\t{\n\t\treturn $this->icon;\n\t}", "private function renderMapMarkerCategoryIcons()\n {\n $catIcons = null;\n $arrIcon = array();\n\n foreach ( array_keys( $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'points.' ] ) as $catKey )\n {\n if ( substr( $catKey, -1 ) == '.' )\n {\n continue;\n }\n\n unset( $arrIcon );\n\n // Set the path\n $coa_name = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'points.' ][ $catKey . '.' ][ 'pathToIcon' ];\n $coa_conf = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'points.' ][ $catKey . '.' ][ 'pathToIcon.' ];\n $value = $this->pObj->cObj->cObjGetSingle( $coa_name, $coa_conf );\n if ( empty( $value ) )\n {\n $header = 'FATAL ERROR!';\n $text = 'Unexpeted value : TypoScript property is empty.';\n $this->pObj->drs_die( $header, $text );\n }\n // absolute path\n $pathAbsolute = t3lib_div::getFileAbsFileName( $value );\n if ( !file_exists( $pathAbsolute ) )\n {\n $header = 'FATAL ERROR!';\n $text = 'File doesn\\'t exist: ' . $pathAbsolute;\n $this->pObj->drs_die( $header, $text );\n }\n // relative path\n $pathRelative = preg_replace( '%' . PATH_site . '%', '', $pathAbsolute );\n $arrIcon[] = $pathRelative;\n // Set the path\n // Add the icon width\n $value = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'points.' ][ $catKey . '.' ][ 'width' ];\n if ( empty( $value ) )\n {\n $header = 'FATAL ERROR!';\n $text = 'TypoScript property is empty.';\n $this->pObj->drs_die( $header, $text );\n }\n $arrIcon[] = ( int ) $value;\n // Add the icon width\n // Add the icon height\n $value = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'points.' ][ $catKey . '.' ][ 'height' ];\n if ( empty( $value ) )\n {\n $header = 'FATAL ERROR!';\n $text = 'TypoScript property is empty.';\n $this->pObj->drs_die( $header, $text );\n }\n $arrIcon[] = ( int ) $value;\n // Add the icon height\n // Add the icon x-offset\n $value = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'points.' ][ $catKey . '.' ][ 'offsetX' ];\n if ( $value == null )\n {\n $header = 'FATAL ERROR!';\n $text = 'TypoScript property is empty.';\n $this->pObj->drs_die( $header, $text );\n }\n $arrIcon[] = ( int ) $value;\n // Add the icon x-offset\n // Add the icon y-offset\n $value = $this->confMap[ 'configuration.' ][ 'categories.' ][ 'colours.' ][ 'points.' ][ $catKey . '.' ][ 'offsetY' ];\n if ( $value == null )\n {\n $header = 'FATAL ERROR!';\n $text = 'TypoScript property is empty.';\n $this->pObj->drs_die( $header, $text );\n }\n $arrIcon[] = ( int ) $value;\n // Add the icon y-offset\n// $catIcons[$catKey] = '[' . implode( ', ', $arrIcon ) . ']';\n $catIcons[ $catKey ] = $arrIcon;\n }\n\n//var_dump( __METHOD__, __LINE__, $catIcons );\n // #65184, 150223, dwildt, +\n $this->catIcons = $catIcons;\n return $catIcons;\n }", "static function Icon($icon_to_test)\n\t{\n\t\tif(in_array($icon_to_test, self::$_icons) )\n\t\t\treturn $icon_to_test;\n\t\tWdfException::Raise(\"Invalid Icon '$icon_to_test'\");\n return '';\n\t}", "public function icon(): string\n {\n return 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADLSURBVEhL5ZRLCsIwGAa7UkE9gd5HUfEoekxxJx7AhXoCca/fhESkJiQxBHwMDG3S/9EmJc0n0JMruZVXK/fMdWQRY7mXt4A7OZJvwZu74hRayIEc2nv3jGtXZrOWrnifiRY0OkhiWK5sWGeS52bkZymJ2ZhRJmwmySxLCL6CmIsZZUIixkiNezCRR+kSUyWH3Cgn6SuQIk2iuOBckvN+t8FMnq1TJloUN3jefN9mhvJeCAVWb8CyUDj0vxc3iPFHDaofFdUPu2+iae7nYJMCY/1bpAAAAABJRU5ErkJggg==';\n }", "public function getStrIcon() {\n return \"icon_treeLeaf\";\n }", "public function getIcon() {\n\t\treturn $this->icon;\n\t}", "public function get_icon() {\n\t\treturn 'eicon-icon-box';\n\t}", "function iron_icon_shortcode( $atts ) {\n $a = shortcode_atts( array(\n\t\t'icon' => '',\n\t\t'color' => '',\n\t\t'size' => 24\n ), $atts );\n\t\n\t$icon = explode(':',$a['icon']);\n\tif(empty($icon[1])) {\n\t\t$icon[1] = $icon[0];\n\t\t$icon[0] = 'iron';\n\t} elseif($icon[0] === 'icons')\n\t\t$icon[0] = 'iron';\n\t\t\n\t$icon_svg = plugins_url(\"icons/{$icon[0]}.svg\",__FILE__);\t\n\t$color = empty($a['color']) ? 'currentColor' : $a['color'];\n\t$style = \" style=\\\"fill:{$color}\\\"\";\t\n\t\n\t$size = 0+$a['size'];\n\t$s = $size / 24;\n\t\n\t$uses = \"<use x='0' y='0' transform='scale($s)' xlink:href='{$icon_svg}#{$icon[1]}' $style/>\";\n return \"<svg width='$size' height='$size' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>$uses</svg>\";\n}", "function av_icon($icon, $font = false, $string = 'string')\n{\t\n\treturn avia_font_manager::frontend_icon($icon, $font, $string);\n}", "public static function iconPath()\n {\n return Craft::getAlias(\"@julianmjones/schedapiintegration/assetbundles/schedapiintegrationutilityutility/dist/img/SchedApiIntegrationUtility-icon.svg\");\n }", "protected static function collectIcons() {\n\t\t$settings = $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_jstassets.']['settings.'];\n\t\t$paths = array_merge(static::$iconPaths, array_values($settings['icons.'] ?: []));\n\t\t\n\t\t$collection = [];\n\t\tforeach ($paths as $path) {\n\t\t\t$absPath = GeneralUtility::getFileAbsFileName($path);\n\t\t\tforeach (GeneralUtility::getFilesInDir($absPath, 'svg', true) as $iconFile) {\n\t\t\t\t$iconName = strtolower(pathinfo($iconFile, PATHINFO_FILENAME));\n\t\t\t\t$collection[$iconName] = $iconFile;\n\t\t\t}\n\t\t}\n\t\treturn $collection;\n\t}", "public function get_menu_icon() {\n\t\treturn 'gform-icon--akismet';\n\t}", "public function getIcon() {\n return $this->icon;\n }", "public function getIcon() {\n return $this->icon;\n }", "function getAvailableIconNames() ;", "protected function get__icon()\n\t{\n\t\treturn 'coffee';\n\t}", "function atom_site_icon()\n {\n }", "public function get_icon()\n {\n return 'fa fa-image';\n }", "protected function imageIcon(): string\n {\n $types = [\n 'image' => 'file-image',\n 'video' => 'file-video',\n 'document' => 'file-document',\n 'audio' => 'file-audio',\n 'code' => 'file-code',\n 'archive' => 'file-zip'\n ];\n\n $extensions = [\n 'xls' => 'file-spreadsheet',\n 'xlsx' => 'file-spreadsheet',\n 'csv' => 'file-spreadsheet',\n 'docx' => 'file-word',\n 'doc' => 'file-word',\n 'rtf' => 'file-word',\n 'mdown' => 'file-text',\n 'md' => 'file-text'\n ];\n\n return $extensions[$this->model->extension()] ??\n $types[$this->model->type()] ??\n parent::imageDefaults()['color'];\n }", "function generateIconsSrc() {\n\t$iconsPhpSrc = 'function icons() { return [';\n\t\n\t$svgs = glob('src/icons/*.svg');\n\tforeach ($svgs as $svg) {\n\t\t$filename = basename($svg, '.svg');\n\t\tif (preg_match('~^(.*?)\\-([a-f0-9]{3}|[a-f0-9]{6})$~i', $filename, $m)) {\n\t\t\t$name = $m[1];\n\t\t\t$color = $m[2];\n\t\t\t\n\t\t\t$src = file_get_contents($svg);\n\t\t\tif (preg_match('~<svg[^>]*>(.*)<\\/svg>~i', $src, $m)) {\n\t\t\t\t$iconsPhpSrc .= PHP_EOL.'\t\\''.$name.'\\' => ['.\n\t\t\t\t\t'\\''.str_replace('\\'', '\\\\\\'', $m[1]).'\\', \\''.$color.'\\''.\n\t\t\t\t'],';\n\t\t\t}\n\t\t}\n\t}\n\treturn $iconsPhpSrc.PHP_EOL.']; }'.PHP_EOL;\n}", "public static function getFactoryIconUseIt() {\n }", "public static function nativeIcon(string $icon, array $class = [])\n {\n $flag = 'a';\n if (strpos($icon, ':') !== false) {\n [$flag, $icon] = explode(':', $icon) + [2 => null];\n }\n\n if ($flag !== 'b') {\n return '';\n }\n\n array_unshift($class, 'bsw-icon');\n\n return Html::tag(\n 'svg',\n Html::tag('use', null, ['xlink:href' => \"#{$icon}\"]),\n [\n 'class' => $class,\n 'aria-hidden' => true,\n ]\n );\n }", "protected function extractSvgImageSizes() {}", "function find_svg()\n\t{\n\t\t$files = scandir($this->paths['tempdir']);\n\t\t\n\t\t//fetch the eot file first so we know the acutal filename, in case there are multiple svg files, then based on that find the svg file\n\t\t$filename = \"\";\n\t\tforeach($files as $file)\n\t\t{ \n\t\t\tif(strpos(strtolower($file), '.eot') !== false && $file[0] != '.')\n\t\t\t{\n\t\t\t\t$filename = strtolower( pathinfo($file, PATHINFO_FILENAME) );\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->origin_font_name = $filename;\n\t\t\n\t\tforeach($files as $file)\n\t\t{ \n\t\t\tif(strpos(strtolower($file), $filename.'.svg') !== false && $file[0] != '.')\n\t\t\t{\n\t\t\t\treturn $file;\n\t\t\t}\n\t\t}\n\t}", "function wp_site_icon()\n {\n }", "function svg_mime_types( $mimes ){\n $mimes['svg'] = 'image/svg+xml';\n return $mimes;}", "public function getIcon()\n {\n return $this->getMethod()->images['size2x'];\n }", "static function backend_icon($params)\n\t{\n\t\t$font = isset($params['args']['font']) ? $params['args']['font'] : key(AviaBuilder::$default_iconfont);\n\t\t$icon = !empty($params['args']['icon']) ? $params['args']['icon'] : \"new\";\n\t\t\n\t\t$display_char = self::get_display_char($icon, $font);\n\t\t\n\t\treturn array('display_char' => $display_char, 'font' => $font);\n\t}", "public abstract function render_pix_icon(renderer_base $output, pix_icon $icon);", "function xstats_getShipIcon( $race, $picturesmall, $ownerindex) {\n include ('../../inc.conf.php');\n return( '<img src=\"../../daten/'.$race.'/bilder_schiffe/'.$picturesmall.'\" height=\"24\" border=\"1\" style=\"border:1px solid '.$spielerfarbe[$ownerindex].'\">' );\n}", "public function getIconReturnsReplacementIconWhenDeprecatedDataProvider() {}", "public function get_icon() {\n\t\treturn 'fa fa-images';\n\t}", "function av_icon_css_string($char)\n{\n\tglobal $avia_config;\n\treturn \"content:'\\\\\".str_replace('ue','E',$avia_config['font_icons'][$char]['icon']).\"'; font-family: '\".$avia_config['font_icons'][$char]['font'].\"';\";\n}", "function rss2_site_icon()\n {\n }", "public function get_icon()\n\t{\n\t\treturn 'fab fa-algolia';\n\t}" ]
[ "0.6999608", "0.69789857", "0.69789857", "0.68403715", "0.68152136", "0.6776805", "0.67712474", "0.6766607", "0.6754724", "0.6704358", "0.66776484", "0.6675892", "0.66582996", "0.66251254", "0.6610303", "0.6610303", "0.65508574", "0.6540511", "0.6525886", "0.64934444", "0.64913917", "0.6429534", "0.6412216", "0.63651353", "0.63651353", "0.6356804", "0.6335941", "0.6328254", "0.6325356", "0.6325356", "0.63246906", "0.63246906", "0.6309891", "0.6304192", "0.6286765", "0.6286301", "0.62621135", "0.6252012", "0.6250375", "0.6247855", "0.6243666", "0.62251866", "0.6221095", "0.62065667", "0.6192843", "0.6174175", "0.61380637", "0.61327136", "0.61247295", "0.61247295", "0.61247295", "0.61247295", "0.61247295", "0.61247295", "0.61247295", "0.6106915", "0.6090999", "0.6090524", "0.6085856", "0.60794", "0.6074985", "0.6072258", "0.6066354", "0.6063818", "0.6061729", "0.60614836", "0.60522604", "0.6045334", "0.6039328", "0.6036586", "0.60255533", "0.6021834", "0.6017824", "0.60122037", "0.6011258", "0.6009072", "0.60052806", "0.60044515", "0.60044515", "0.6003278", "0.59892917", "0.59775746", "0.5976434", "0.5957083", "0.5939382", "0.5938384", "0.59331167", "0.5903994", "0.5888709", "0.5870651", "0.58625287", "0.586252", "0.5861873", "0.58549803", "0.5837152", "0.58330655", "0.58170676", "0.5811081", "0.5805846", "0.57992077" ]
0.70691717
0
make a submit button Returns a string for the opening of a table wrapped in a form. This can be wrapped in other functions because it's a string each table is also wrapped in a container div.
protected function openTable($name, $form_id=null, $form_class=null, $table_id=null, $table_class=null){ $form_attribs = ''; $table_attribs = ''; if($form_class != null){$form_attribs .= ' class="' . $form_class . '"';} if($form_id != null){$form_attribs .= ' id="' . $form_id . '"';} if($table_class != null){$table_attribs .= ' class="' . $table_class . '"';} if($table_id != null){$table_attribs .= ' id="' . $table_id . '"';} $output =' <form name="' . $name . '"' . $form_attribs . ' method="post"> <table class="table table-hover"' . $table_attribs . '>'; return $output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tac_form_submit_button( $button, $form ) {\n\treturn \"<button id='gform_submit_button_{$form['id']}'>Submit form</button>\";\n}", "public function submit(){\n return $this->surround('<button type=\"submit\">Envoyer</button>');\n }", "private function closeTable($extra=null){\n $output = '';\n if($this->_makeButton){$output .=$this->updateButton($this->_name);}\n $output ='\n </tbody>\n </table>';\n \n if($extra != null) {$output .= $extra;}\n if($this->_makeButton){$output .=$this->updateButton($this->_name, $this->_makeButton);}\n $output .='\n </form>';\n \n return $output;\n }", "public function buildSubmitButton()\n {\n $this->submitButton->setAttributes($this->submitButtonAttr);\n return $this->submitButton->render($this->submitButtonName);\n }", "function get_submit_button($text = '', $type = 'primary large', $name = 'submit', $wrap = \\true, $other_attributes = '')\n {\n }", "function form() \r\n {\r\n \t //El formateo va a ser realizado sobre una tabla en la que cada fila es un campo del formulario\r\n $table = &html_table($this->_width,0,2,2);\r\n $table->add_row($this->_showElement(\"Asunto\", '6', \"asunto_de_usuario\", 'Asunto', \"Asunto\", \"left\" )); \r\n $table->add_row($this->_showElement(\"Comentario\", '7', \"comentario\", 'Texto', \"Comentario\", \"left\" )); \r\n \r\n $this->set_form_tabindex(\"Aceptar\", '10'); \r\n $label = html_label( \"submit\" );\r\n $label->add($this->element_form(\"Aceptar\"));\r\n $table->add_row(html_td(\"\", \"left\", $label));\r\n \r\n return $table; \r\n }", "function makeForm() {\n if($this->table_title != '' ) {\n $db_obj = new db_class();\n $desc_table = $db_obj->tableDescription($this->table_title);\n $db_obj->closeDB();\n \n// showArray($desc_table);\n echo '<form id=\"generic_edit_form\" method=\"POST\" >';\n echo '<input type=\"hidden\" name=\"title_input\" value=\"name\"> '; // THIS MUST BE HERE FOR CLONABLE FORMS!!!\n echo '<input type=\"hidden\" name=\"table\" value=\"vendors\">'; // THE TABLE MUST BE LABELED\n echo '<b>This is a generic input</b> <input type=\"text\" name=\"generic\">' . \"\\n\";\n \n echo '<br><br><input type=\"submit\" >';\n echo '</form>';\n } else {\n echo '<h2>hello, form<h2>';\n }\n }", "function krnEmit_button_editSubmit($caption, $value) {\n // used twice in set security\n // submit for editing - so all are consistent - (design choices:Edit button - caption - caption button that looks like link)\n //?????????? if report should not be coded as button ??????????????????????\n //$cellClass = empty($cellClass) ? '' : ' class=\"'.$class.'\"';\n return '<button type=\"submit\" class=\"kcmKrn-button-editLink\" name=\"submit\" value=\"'.$value.'\">' . $caption . '</button>';\n}", "function voyage_mikado_comment_form_submit_button() {\n\n $comment_form_button = voyage_mikado_get_button_html(array(\n 'html_type' => 'input',\n 'type' => 'solid',\n 'text' => esc_html__('Submit', 'voyage'),\n 'input_name' => 'submit'\n ));\n\n return $comment_form_button;\n\n }", "public static function renderSubmit();", "private function _createSubmitButton()\n {\n $submit = new Zend_Form_Element_Submit('submit');\n $submit->setLabel('saveAction');\n\n return $submit;\n }", "private function createButton() {\n $fv = new filterVars;\n $phpSelf = $fv->phpSelf();\n\t$addButton = \"<A HREF='$phpSelf?action=crf'><button title='Create Row'>Create Row</button></A>\"; \n return $addButton; \n }", "function toString($submit=FALSE,$reset=FALSE) {\n\t\tglobal $chksid;\t\n\t\t//generate the form\n\t\t$return_string = \"\";\n\t\t$return_string .= \"<div id=\\\"myFormCont\\\">\\n\";\n\t\t$return_string .= \"<form enctype=\\\"multipart/form-data\\\" action=\\\"$this->actionTarget\\\" method=\\\"post\\\" name=\\\"myform\\\">\\n\";\n\t\t$return_string .= \"<div><input type=\\\"hidden\\\" name=\\\"checksid\\\" value=\\\"$chksid\\\" size=\\\"100\\\"></div>\\n\";\n\t\t$return_string .= $this->makeButton('new');\n\t\t$return_string .= $this->makeButton('previous');\n\t\t$return_string .= $this->makeButton('next');\n\t\t// generate the individual fieldsets with their resp. form fields\n\t\t$return_string .= $this->makeFieldset();\n\t\t$return_string .= \"<br>\\n\";\n\t\t// default submit is 'submit'\n\t\tif ($submit) $thelabel = $submit;\t\t\n\t\telse $thelabel = \"submit\";\n\t\t$return_string .= $this->makeButton($thelabel);\n\t\tif ($reset) $thelabel = $reset;\n\t\telse $thelabel = \"reset\";\n\t\t$return_string .= $this->makeButton($thelabel);\n\t\t$return_string .= \"\\n</form>\\n</div>\\n\";\n\t\treturn ($return_string);\n\t}", "function form_element_submit( $name, $buttonlabel )\n{\n\treturn sprintf(\"<input type=\\\"submit\\\" name=\\\"%s\\\" value=\\\"%s\\\" />\\n\", $name, $buttonlabel );\n}", "function submit_button($text = \\null, $type = 'primary', $name = 'submit', $wrap = \\true, $other_attributes = \\null)\n {\n }", "public function submitButton(){\n\t\t\n\t\t$this->addElement('button', 'bttnsubmit', array (\n\t\t\t\t'class' => 'btn blue ',\n\t\t\t\t'ignore'=>true,\n\t\t\t\t'type'=>'submit',\n \t\t\t\t'label'=>'<i class=\"fa fa-check\"></i> Save',\n\t\t\t\t'escape'=>false\n\t\t));\n\t\t$this->bttnsubmit->setDecorators(array('ViewHelper',array(array('controls' => 'HtmlTag'), array('tag' => 'div', 'class' =>'form-actions text-right'))\t));\n\t\t\n\t}", "function PKG_OptionPageTail($layout)\n{\nPKG_OptionPageSaveAlsParameters($layout);\n\nPKG_OptionPageRender($layout);\n\necho(\"\n\t\t\t\t<tr>\n\t\t\t\t\t<td colspan=\\\"2\\\">\n\t\t\t\t\t\t<center>\n\t\t\t\t\t\t\t<input type=\\\"submit\\\" name=\\\"BUT_save\\\" value=\\\"Save\\\">\n\t\t\t\t\t\t</center>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t</table>\n\t\t</div>\n\t</td>\n<tr>\n</table>\n</form>\n</body>\n</html>\");\n}", "public function generate_submit_button( $field ) {\n\n\t\tsubmit_button( $field['name'] );\n\t}", "function Print_Objekte_Table($Objektarr, $OptionalerParm)\n{\n \n\t\t// der tabenlenkopf\n\t\t$table = \n \"<form method=\\\"post\\\"\".\n \"action= \\\"\".$_SERVER['PHP_SELF'].\"?\".SID \n .\"\\\">\n\t \\n<table id=\\\"Objek_tab\\\">\n\t \\n\t<thead>\n\t \\n\t\t<tr>\n\t \\n\t\t\t<th>Name</th>\n\t \\n\t\t\t<th>TelefonNr.</th>\n\t \\n\t\t\t<th>Adresse</th>\n \\n\t\t\t<th>Ort</th>\n \\n\t\t\t<th>Postleitzahl</th>\n \\n\t\t\t<th>Status</th>\n \\n\t\t\t<th></th>\n\n\t \\n\t\t</tr>\n\t \\n\t</thead>\n\t \\n\t<tbody>\";\n\t // Hier kommen in einer Schleife alle tabelenzeilen hin n mal \n foreach($Objektarr AS $Objekt)\n\t{\n \t $dbconn = dbconnect(\"HssUser\",\"oss_test\");\n\t\t\t$ID =$Objekt['ObjektID'];\n $Objektdetails = GetObjektDetailsByObjektID($ID);\n\t// $lehrer ist immernoch ein eindimensionale assoziatives array\n\tif ($Objekt['ObjektID'] != $OptionalerParm) {\n\n\n\n\n $table.=\n\t\t\t\"\\n<tr>\".\n\t\t\t\"\\n\t<td>\".$Objektdetails['Name'].\"</td>\".\n\t\t\t\"\\n\t<td>\".$Objektdetails['Tel'].\"</td>\".\n\t\t\t\"\\n\t<td>\".$Objektdetails['Str_HN'].\"</td>\".\n \"\\n\t<td>\".$Objektdetails['Ort'].\"</td>\".\n \"\\n\t<td>\".$Objektdetails['PLZ'].\"</td>\".\n \"\\n\t<td>\".$Objektdetails['Status_OJ'].\"</td>\".\n \"\\n\t<td><input type=\\\"submit\\\" name=\\\"Bearbeiten\\\" class=\\\"Bearbeiten\\\" value=\\\"\".$Objekt['ObjektID'].\"\\\" /></td>\".\n $option.\n\t\t\t\"\\n </tr>\";\n\t\t\t\n }\n else {\n\n $table.=\n\t\t\t\"\\n<tr>\".\n\t\t\t\"\\n\t<input type=\\\"hidden\\\" name=\\\"ID\\\" value =\\\"\".$Objekt['ObjektID'].\"\\\" />\".\n\t\t\t\"\\n\t<td><input type=\\\"text\\\" name=\\\"ObjektName\\\" value =\\\"\".$Objektdetails['Name'].\"\\\" /></td>\".\n\t\t\t\"\\n\t<td><input type=\\\"text\\\" class =\\\"Breit\\\" name=\\\"Tel\\\" value=\\\"\".$Objektdetails['Tel'].\"\\\" /></td>\".\n \"\\n\t<td><input type=\\\"text\\\" class =\\\"Breit\\\" name=\\\"Str_HN\\\" value=\\\"\".$Objektdetails['Str_HN'].\"\\\" /></td>\".\n \"\\n\t<td><input type=\\\"text\\\" name=\\\"Ort\\\" value=\\\"\".$Objektdetails['Ort'].\"\\\" /></td>\".\n \"\\n\t<td><input type=\\\"text\\\" name=\\\"PLZ\\\" value=\\\"\".$Objektdetails['PLZ'].\"\\\" /></td>\".\n\t\t\t\"\\n\t<td><select name=\\\"Status\\\" > \n <option>OK</option> \n <option>Gesperrt</option> \n </select> </td>\".\n \"\\n\t<td>\n <input type=\\\"submit\\\" name=\\\"Save\\\" value=\\\"Save\\\" /></td>\".\n\t\t\t\"\\n </tr>\";\n }\n\t}\n\t\n\t$table .=\"\\n\t</tbody> \\n</table></form>\";\n\treturn $table;\n }", "function draw_table($column_names, $entries, $inputs, $search) {\n\n echo \"<form method='post' id='addForm'></form><form method='post' id='editForm'></form><form method='post' id='searchForm'></form><table><tr>\";\n foreach ($column_names as $column_name) {\n echo \"<th>{$column_name}</th>\";\n }\n echo \"</tr><tr><td><input form='searchForm' name='id' type='number' value='\".($search?$search[0]:\"\").\"' min='0'> </td>\";\n $i=1;\n foreach ($inputs as $input) {\n echo \"<td>\".str_replace(\"addForm'\", \"searchForm' value='\".($search?$search[$i]:\"\").\"'\", $input).\"</td>\";\n $i++;\n }\n echo \"<td><input id='searchSub' form='searchForm' name='search' type='submit' value='🔍'></td></tr>\";\n\n $y = 0;\n foreach ($entries as $entry) {\n $valid = true;\n $x=0;\n foreach ($entry as $value) {\n if($search) {\n if ($search[$x]) {\n if (!(strpos($value, $search[$x]) !== false) && $value !== $search[$x]) {\n $valid = false;\n }\n }\n }\n $x++;\n }\n if($valid) {\n echo \"<tr>\";\n $x = 0;\n foreach ($entry as $value) {\n echo \"<td id='cell{$x},{$y}' onclick='edit({$x},{$y})'>{$value}</td>\";\n $x++;\n }\n echo \"<td>\n <form method='post'>\n <input type='submit' name='remove{$entry[0]}' value='×'/>\n </form>\n </td></tr>\";\n }\n $y++;\n }\n echo \"<tr><td></td>\";\n foreach ($inputs as $input) {\n echo \"<td>{$input}</td>\";\n }\n echo \"<td><input form='addForm' name='add' type='submit' value='+'></td></tr></table>\";\n}", "function createDeleteButtonForSchedule($datestamp)\n {\n echo \"<form onsubmit='return confirmDeleteTable()' action='deleteScheduleForDate.php' method='post'>\";\n echo '<input hidden=\"true\" type=\"text\" name=\"date\" value=\"'. $datestamp .'\">';\n echo '<input class=\"deleteTableButton\" type=\"submit\" name=\"\" value=\"Delete This Table\">';\n echo '</form>';\n }", "function medigroup_mikado_comment_form_submit_button() {\n\n $comment_form_button = medigroup_mikado_get_button_html(array(\n 'html_type' => 'input',\n 'type' => 'solid',\n 'text' => esc_html__('Submit', 'medigroup'),\n 'input_name' => 'submit'\n ));\n\n return $comment_form_button;\n\n }", "public function print_form_and_button($url, $buttontext) {\n $html = '';\n\n $attributes = array('method' => 'POST', 'action' => $url);\n\n $html .= html_writer::start_tag('form', $attributes);\n $html .= html_writer::empty_tag('br');\n $html .= html_writer::empty_tag('br');\n $html .= html_writer::start_tag('center');\n\n $params = array('type' => 'submit', 'value' => $buttontext, 'class' => 'submitbtns adaptivequizbtn');\n $html .= html_writer::empty_tag('input', $params);\n $html .= html_writer::end_tag('center');\n $html .= html_writer::end_tag('form');\n\n return $html;\n }", "public function buildForm($method) {\n $form = \"<form name=\\\"\".$this->relnObj->Tablename().\"\\\" method=\\\"$method\\\">\";\n $table = \"<table>\";\n foreach($this->relnObj->Attribs() as $col=>$val) {\n $table .= $this->getInputRow($col);\n }\n $table .= \"<tr><td colspan=\\\"2\\\"><input type=\\\"submit\\\" name=\\\"\".$this->relnObj->Tablename().\"_submit\\\"></td></tr>\";\n $table .= \"</table>\";\n $form .= $table . \"</form>\";\n echo $form;\n }", "function on_submit_button($button, $form) {\n\t\tif ($form['id'] != $this->form_id) {\n\t\t\treturn $button;\n\t\t}\n\t\treturn '';\n\t}", "function form_button($data = '', $content = '', $extra = '')\n {\n $ci =& get_instance();\n $ci->load->library('user_agent');\n\n $defaults = array('name' => ((! is_array($data)) ? $data : ''), 'type' => 'submit');\n\n if (is_array($data) and isset($data['content'])) {\n $content = $data['content'];\n $data['value'] = $data['content'];\n unset($data['content']); // content is not an attribute\n }\n\n /*\n * if a user has IE 7, we need to show them an input tag instead of a button tag\n * because of the way IE 7 handles submitting multiple buttons (it send the\n * innerHTML instead of the value in the key=>value pair)\n */\n if ($ci->agent->browser() == 'Internet Explorer' && $ci->agent->version() < 8) {\n return \"<input \"._parse_form_attributes($data, $defaults).$extra.\" />\";\n } else {\n return \"<button \"._parse_form_attributes($data, $defaults).$extra.\"><span>\".$content.\"</span></button>\\n\";\n }\n }", "function genSubmitRow(){\n\t\t$row = array();\n\t\tarray_pad($row, sizeof($this->table[0]), '');\n\n\t\tif($this->state->isNewEntry()){\n\t\t\t$textField = 'text';\n\t\t\t$row[0] = $this->translator->markupAttributes('input', '',array('type'=>'text', 'name'=>'user'));\n\t\t\t$row[1] = $this->translator->markupAttributes('input','',array('type'=>'submit', 'name'=>'submit', 'value'=>'Submit'));\n\n\n\t\t\tfor($count = 2; $count < sizeof($this->table[0]); $count++) $row[$count] = $this->translator->markupAttributes('input', '',array('type'=>'checkbox', 'name'=>$count));\n\t\t\n\t\t}\n\t\telse{\n\t\t\t$row[0] = '';\n\t\t\t$row[1] = $this->translator->markupAttributes('input','',array('type'=>'submit', 'name'=>'new', 'value'=>'New'));\n\n\t\t\tfor($count = 2; $count < sizeof($this->table[0]); $count++) $row[$count] = '';\n\t\t}\n\n\t\treturn $row;\n\t}", "function getTableForm($title, $arr, $upload = false, $method = 'post')\n{\n\t$end = '';\n\n\t$ret = '<p/><form method=\"' . $method . '\" action=\"index.php\" ' . ($upload ? ' enctype=\"multipart/form-data\"' : '') . '><table><tr><td colspan=\"' . count($arr[0]) . '\">' . $title . '</td></tr>';\n\n\twhile(list(,$array) = each($arr))\n\t{\n\t\tif($array[1]['type'] != 'hidden')\n\t\t\t$ret .= '<tr><td>' . $array[0] . '</td><td>' . getFormField($array[1]) . '</td></tr>';\n\t\telse\n\t\t\t$end .= getFormField($array[1]);\n\t}\n\n\t$ret .= '</table>' . $end . '</form>';\n\n\treturn $ret;\n}", "function form_button($buttons = \"\") {\n\t\tif ($this->block == true)\n\t\t\t$buttons = \"fehler\";\n\n\t\t$btn['submit'] = \"<input accesskey='8' value=\\\"OK, Speichern\\\" class=\\\"submitbutton buttons\\\" type=\\\"submit\\\" />\";\n\t\t$btn['reset'] = \"<input accesskey='9' value=\\\"Eingaben l&ouml;schen\\\" class=\\\"resetbutton buttons\\\" type=\\\"reset\\\" />\";\n\t\t$btn['ex'] = \"<input accesskey='7' value=\\\"Beispiel..\\\" type=\\\"button\\\" class=\\\"examplebutton buttons\\\" onClick=\\\"set_examples();\\\" />\";\n\n\t\tswitch ($buttons) {\n\t\t\tdefault :\n\t\t\tcase 'ok_reset' :\n\t\t\t\t$r = \"<td colspan=\\\"3\\\" align=\\\"right\\\">\".$btn['submit'].\"&nbsp;\".$btn['reset'].\"</td>\";\n\t\t\t\tbreak;\n\t\t\tcase 'ex__ok_reset' :\n\t\t\t\t$r = \"<td>\".$btn['ex'].\"</td><td colspan=\\\"2\\\" align=\\\"right\\\">\".$btn['submit'].\"&nbsp;\".$btn['reset'].\"</td>\";\n\t\t\t\t$this->add_hidden_field(\"hiddenexample\", 0); // for examplebutton\n\t\t\t\t$this->special_form = \"onChange=\\\"document.myform.hiddenexample.value=0\\\"\";\n\t\t\t\tbreak;\n\t\t\tcase 'fehler' :\n\t\t\t\t$r = \"<td colspan=\\\"3\\\" align=\\\"center\\\" class=\\\"error\\\">Ich konnte notwendige Daten f&uuml;r dieses Formular nicht laden. <br />L&ouml;sung: \".$this->block.\"</td>\";\n\t\t\t\tbreak;\n\t\t}\n\t\treturn \"<tr>\".$r.\"</tr>\";\n\t}", "public static function build_form_add_del_edit($data) {\n\n\n\n\n $action = $_SERVER[\"PHP_SELF\"] ;\n\n $display = \"<form method='GET' action='$action'>\" ;\n $display .= self::build_table( $data );\n if($_SESSION[\"page\"] != \"Schedule.php\" && $_SESSION[\"page\"] != \"Teams.php\"){\n $display .= \"<button type='submit' name='delete' id='delete' class='buttons' value='Delete'>Delete</button> \";\n $display .= \"<button type='submit' name='edit' name='edit' class='buttons' value='Edit'>Edit</button> \";\n if($_SESSION[\"role\"] <5){\n $display .= \"<button type='submit' name='add' id='add' class='buttons' value='Add'>ADD</button> \";\n }\n }\n $display .= \"</form>\";\n\n return $display;\n }", "function HTMLSubmit ($params) {\n if (!isset($params['name'])) {\n if (isset($params['id'])) {\n $params['name'] = $params['id'];\n }\n }\n $val = $params['value'];\n unset($params['value']);\n $str = '';\n foreach ($params as $k=>$v) {\n $str .= \" {$k}=\\\"{$v}\\\"\";\n }\n return \"<button type='submit' {$str} >{$val}</button>\";\n }", "function echoCreate($spec, $extra_data=[]) {\n\techo('<form class=\"tr\" method=\"POST\">');\n\tforeach($extra_data as $key => $value) {\n\t\techo('<input name=\"' . htmlspecialchars($key) . '\" type=\"hidden\" value=\"' . htmlspecialchars($value) . '\"></input>');\n\t}\n\tforeach($spec as $col) {\n\t\techo('<div class=\"td\"><input name=\"' . htmlspecialchars($col) . '\"></input></div>');\n\t}\n\techo('<div class=\"td\"><input type=\"submit\" name=\"action\" value=\"create\"></input></div>');\n\techo('</form>');\n}", "function formSubmit($name, $value){\n \n $submit = '<input type=\"submit\" name =\"';\n $submit .= $name; \n $submit .= '\" value=\"';\n $submit .= $value;\n $submit .= '\"/>';\n\n echo $submit;\n \n // <input type=\"submit\" name=\"submit\" value=\"Create Account\" />\n}", "function getForm()\r\n\t{\r\n\t\t$this->action();\r\n\t\t$mainForm\t= $this->getMainForm();\r\n\t\tif($this->isFormRequire)\r\n\t\t{\r\n\t\t\t$cls = ' class=\"formIsRequire\"';\r\n\t\t\tlink_js(_PEA_URL.'includes/formIsRequire.js', false);\r\n\t\t}else{\r\n\t\t\t$cls = '';\r\n\t\t}\r\n\r\n\t\t$i = 0;\r\n\t\t$out = '';\r\n\r\n\t\t$out .= '<form method=\"'.$this->methodForm.'\" action=\"'.$this->actionUrl.'\" name=\"'. $this->formName .'\"'.$cls.' enctype=\"multipart/form-data\" role=\"form\">';\r\n\t\t$out .= $this->getSaveSuccessPage();\r\n\t\t$out .= $this->getDeleteSuccessPage();\r\n\r\n\t\t$hover= $this->isChangeBc ? ' table-hover' : '';\r\n\t\t$out .= '<table class=\"table table-striped table-bordered'.$hover.'\">';\r\n\t\t$out .= '<thead><tr>';\r\n\r\n\t\t// ngambil tr title\r\n\t\t$numColumns = 0;\r\n\r\n\t\tforeach($this->arrInput as $input)\r\n\t\t{\r\n\t\t\tif ($input->isInsideRow && !$input->isInsideMultiInput && !$input->isHeader)\r\n\t\t\t{\r\n\t\t\t\t// buat array data untuk report\r\n\t\t\t\tif ($this->isReportOn && $input->isIncludedInReport)\r\n\t\t\t\t{\r\n\t\t\t\t\t$arrHeader[]\t= $input->title;\r\n\t\t\t\t}\r\n\t\t\t\t// dapatkan text bantuan\r\n\t\t\t\tif (!empty($input->textHelp))\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->help->value[$input->name] = $input->textHelp;\r\n\t\t\t\t}\r\n\t\t\t\tif (!empty($input->textTip))\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->tip->value[$input->name] = $input->textTip;\r\n\t\t\t\t}\r\n\t\t\t\t$label = '';\r\n\t\t\t\tif (@$input->isCheckAll)\r\n\t\t\t\t{\r\n\t\t\t\t\t$label = $this->getCheckAll($input);\r\n\t\t\t\t}\r\n\t\t\t\t$href = $this->getOrderUrl($input, $input->title);\r\n\t\t\t\tif (!empty($this->tip->value[$input->name]))\r\n\t\t\t\t{\r\n\t\t\t\t\t$input->title = tip($input->title, $this->tip->value[$input->name]);\r\n\t\t\t\t}\r\n\t\t\t\t$label .= $href['start'].$input->title.$href['end'];\r\n\t\t\t\t$out .= ' <th>'.$label;\r\n\t\t\t\tif (!empty($this->help->value[$input->name]))\r\n\t\t\t\t{\r\n\t\t\t\t\t$out .= ' <span style=\"font-weight: normal;\">'.help($this->help->value[$input->name],'bottom').'</span>';\r\n\t\t\t\t}\r\n\t\t\t\t$out\t\t.= \"</th>\\n\";\r\n\t\t\t\t$numColumns++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t$out .= '</tr></thead>';\r\n\t\t$this->reportData['header']\t= isset($arrHeader) ? $arrHeader : array();\r\n\t\t// ambil mainFormnya\r\n\t\t$out .= $mainForm;\r\n\r\n\t\t/* Return, Save, Reset, Navigation, Delete */\r\n\t\t$button = '';\r\n\t\tif (!empty($_GET['return']) && empty($_GET['is_ajax']))\r\n\t\t{\r\n\t\t\t$button .= $GLOBALS['sys']->button($_GET['return']);\r\n\t\t}\r\n\t\tif ($this->saveTool)\r\n\t\t{\r\n\t\t\t$button .= '<button type=\"submit\" name=\"'. $this->saveButton->name .'\" value=\"'. $this->saveButton->value\r\n\t\t\t\t\t\t.\t'\" class=\"btn btn-primary btn-sm\"><span class=\"glyphicon glyphicon-'.$this->saveButton->icon.'\"></span>'\r\n\t\t\t\t\t\t. $this->saveButton->label .'</button>';\r\n\t\t}\r\n\t\tif ($this->resetTool)\r\n\t\t{\r\n\t\t\t$button .= '<button type=\"reset\" class=\"btn btn-warning btn-sm\"><span class=\"glyphicon glyphicon-'.$this->resetButton->icon.'\"></span>'.$this->resetButton->label.'</button> ';\r\n\t\t}\r\n\t\t$nav = $this->nav->getNav();\r\n\t\tif (!empty($nav))\r\n\t\t{\r\n\t\t\tif (!empty($button))\r\n\t\t\t{\r\n\t\t\t\t$button = '<table style=\"width: 100%;\"><tr><td style=\"width: 10px;white-space: nowrap;\">'.$button.'</td><td style=\"text-align: center;\">'.$nav.'</td></tr></table>';\r\n\t\t\t}else{\r\n\t\t\t\t$button .= $nav;\r\n\t\t\t}\r\n\t\t}\r\n\t\t$footerTD = array();\r\n\t\t$colspan = $numColumns;\r\n\t\tif ($this->deleteTool)\r\n\t\t{\r\n\t\t\t$colspan -= 1;\r\n\t\t}\r\n\t\t$attr = $colspan > 1 ? ' colspan=\"'.$colspan.'\"' : '';\r\n\t\t$footerTD[] = '<td'.$attr.'>'.$button.'</td>';\r\n\t\tif ($this->deleteTool)\r\n\t\t{\r\n\t\t\t$footerTD[] = '<td>'\r\n\t\t\t\t. '<button type=\"submit\" name=\"'.$this->deleteButton->name.'\" value=\"'. $this->deleteButton->value.'\" class=\"btn btn-danger btn-sm\" '\r\n\t\t\t\t. 'onclick=\"if (confirm(\\'Are you sure want to delete selected row(s) ?\\')) { return true; }else{ return false; }\">'\r\n\t\t\t\t. '<span class=\"glyphicon glyphicon-'.$this->deleteButton->icon.'\"></span>'.$this->deleteButton->label .'</button>'\r\n\t\t\t\t. '</td>';\r\n\t\t}\r\n\t\tif (!empty($footerTD))\r\n\t\t{\r\n\t\t\t$out .= '<tfoot><tr>'.implode('', $footerTD).'</tr></tfoot>';\r\n\t\t}\r\n\t\t$out .= '</table>';\r\n\t\t$out .= '</form>';\r\n\r\n\t\t/* Export Tool, Page Status, Form Navigate */\r\n\t\t$nav = $this->nav->getViewAllLink();\r\n\t\tif (!empty($nav))\r\n\t\t{\r\n\t\t\t$nav = '<span class=\"input-group-addon\">'.$nav.'</span>';\r\n\t\t}\r\n\t\t$nav .= $this->nav->getGoToForm(false);\r\n\t\t$out .= '<form method=\"get\" action=\"\" role=\"form\" style=\"margin-top:-20px;margin-bottom: 20px;\">'\r\n\t\t\t\t.\t'<div class=\"input-group\">'\r\n\t\t\t\t. $this->getReport($this->nav->int_cur_page)\r\n\t\t\t\t. '<span class=\"input-group-addon\">'\r\n\t\t\t\t. $this->nav->getStatus().'</span>'.$nav.'</div></form>';\r\n\r\n\t\t/* Form Panel */\r\n\t\t$formHeader = $this->getHeaderType();\r\n\t\tif (!empty($formHeader))\r\n\t\t{\r\n\t\t\t$out = '\r\n\t\t\t\t<div class=\"panel panel-default\">\r\n\t\t\t\t\t<div class=\"panel-heading\">\r\n\t\t\t\t\t\t<h3 class=\"panel-title\">'.$formHeader.'</h3>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class=\"panel-body\">\r\n\t\t\t\t\t\t'.$out.'\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>';\r\n\t\t}\r\n\t\t$out = $this->getHideFormToolStart().$out.$this->getHideFormToolEnd();\r\n\t\treturn $out;\r\n\t}", "public function display_table_to_form($id = \"\", $class = \"\",\r\n $action = \"\", $method = \"\",\r\n $table, $model)\r\n {\r\n $data = $model->get_type($table);\r\n echo \"<form class='$class' id='$id' method='$method' action='?action=$action'>\";\r\n echo \"<filedset>\";\r\n foreach ($data as $k => $v) {\r\n echo \"<label>$k</label>\";\r\n if (strpos($v, 'int') !== false) {\r\n $type = 'number';\r\n } else if (strpos($v, 'date') !== false) {\r\n $type = 'date';\r\n } else if ($k == 'Password') {\r\n $type = 'password';\r\n } else if ($k == 'Email') {\r\n $type = 'email';\r\n } else {\r\n $type = 'text';\r\n }\r\n echo \"<input class='form-control' type='$type' name = '$k' placeholder='$k' required='required'><br>\";\r\n }\r\n echo \"<input class='btn btn-primary' type='submit' name='submit' value='submit'>\";\r\n echo \"</form>\";\r\n }", "function botaoAlterar($indiceCadastro){\n echo \"\n <form method='post'>\n <button type='submit' class='btn btn-outline-warning btn-sm' name='botaoAlterar' value='$indiceCadastro'><i class='material-icons'>create</i></button>\n </form>\";//o botão vai receber o valor do indice correspondente a sua linha na tabela de cadastros\n }", "function botaoPesquisasAvancadas(){\n echo \"\n <form method='post'>\n <button type='submit' class='btn btn-secondary btn-lg btn-block botao' name='pesquisasAvancadas' value='pesquisar'>Pesquisar</button>\n </form>\";//só irá existir um botão iserir que vai executar a mesma função por isso o valor 'Inserir'\n }", "function closeForm($submitValue=\"Submit\",$attr=\"\",$resetValue=\"Reset Form\",$printReset=true){\n\n\t\tif( $this->returnOutput ){ ob_start(); }\n\n\t\t//output hidden pkey field for update opertaions\n\t\tif( isset($this->pkeyID) ){\n\t\t\tif( isset($this->rc4key) ){\n\t\t\t\t$pkeyVal = $this->rc4->_encrypt( $this->rc4key, $this->rc4key.$this->pkeyID );\n\t\t\t} else $pkeyVal = $this->pkeyID;\n\t\t\techo \"<input type=\\\"hidden\\\" name=\\\"pkey\\\" value=\\\"$pkeyVal\\\"/>\\n\";\n\t\t}\n\t\t//output hidden signature field for security check\n\t\tif( isset($this->rc4key) ){\n\t\t\t$sigVal = $this->rc4->_encrypt( $this->rc4key, implode(\",\",$this->signature) );\n\t\t\techo \"<input type=\\\"hidden\\\" name=\\\"formitable_signature\\\" value=\\\"$sigVal\\\"/>\\n\";\n\t\t}\n\n\t\tif( isset($this->multiPageSubmitValue) ) $submitValue=$this->multiPageSubmitValue;\n\t\techo \"<div class=\\\"button\\\">\".($printReset?\"<input type=\\\"reset\\\" value=\\\"$resetValue\\\" class=\\\"reset\\\"/>\":\"\");\n\t\tif(strstr($submitValue,\"image:\"))\n\t\t\techo \"<input type=\\\"hidden\\\" name=\\\"submit\\\"><input type=\\\"image\\\" src=\\\"\".str_replace(\"image:\",\"\",$submitValue).\"\\\" class=\\\"img\\\"\".($attr!=\"\"?\" \".$attr:\"\").\"/>\";\n\t\telse echo \"<input type=\\\"submit\\\" name=\\\"submit\\\" value=\\\"$submitValue\\\" class=\\\"submit\\\"\".($attr!=\"\"?\" \".$attr:\"\").\"/>\";\n\t\techo \"</div></form>\\n\";\n\n\t\tif( $this->returnOutput ){\n\t\t\t$html_block = ob_get_contents();\n\t\t\tob_end_clean();\n\t\t\treturn $html_block;\n\t\t}\n\n\t}", "function showform() {\r\n $this->showerror();\r\n\r\n # make sure cursor does not point to invalid index\r\n if ($this->_cursor > ($this->db_count-1)) $this->_cursor = $this->db_count-1;\r\n if ($this->_cursor < 0) $this->_cursor = 0;\r\n\r\n $this->grid_command[] = array('csv',lang('Generate CSV'));\r\n\r\n # prepare javascript validation and confirmation function for each action\r\n echo '<!-- 1223 --> <script type=\"text/javascript\">';\r\n if ($this->action == 'browse') {\r\n echo 'function form_submit_confirm(myform) {\r\n action = myform.elements[\\'act\\'].value;\r\n if (action == \\'del\\') {\r\n if (!confirm(\\''.lang('Are you sure you want to delete').'?\\')) {\r\n return false;\r\n }\r\n myform.submit();\r\n return true;\r\n }\r\n else {\r\n myform.submit();\r\n return true;\r\n }\r\n return false;\r\n }\r\n ';\r\n } else { # callback to function like $this->form_submit_confirm_new()\r\n echo $this->{'form_submit_confirm_'.$this->action}();\r\n }\r\n\r\n echo '</script>';\r\n\r\n echo '<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" summary=\"paging\">'; //style=\"border-collapse: collapse;\"\r\n echo '<tr valign=\"top\">';\r\n\r\n if ($this->action == 'browse') {\r\n if ($this->db_count > 1) {\r\n echo '<td valign=\"top\" nowrap>&nbsp;&nbsp;';\r\n # determine on which index current rowid is\r\n if ($this->_cursor > 0) {\r\n $r = 0;\r\n $url = $_SERVER['PHP_SELF'].'?m='.$this->module.'&amp;act=browse&amp;cursor='.$r.'&amp;orderby='.$this->_orderby.'&amp;sortdir='.$this->_sortdir.'&amp;query='.urlencode($this->_query).'&amp;qf='.urlencode($_REQUEST['qf']);\r\n echo '<a href=\"'.$url.'\"><img src=\"images/b_firstpage.gif\" border=\"0\" alt=\"first record\"></a> ';\r\n $r = $this->_cursor - 1;\r\n $url = $_SERVER['PHP_SELF'].'?m='.$this->module.'&amp;act=browse&amp;cursor='.$r.'&amp;orderby='.$this->_orderby.'&amp;sortdir='.$this->_sortdir.'&amp;query='.urlencode($this->_query).'&amp;qf='.urlencode($_REQUEST['qf']);\r\n echo '<a href=\"'.$url.'\"><img src=\"images/b_prevpage.gif\" border=\"0\" alt=\"prev record\"></a> ';\r\n }\r\n else {\r\n echo '<img src=\"images/bd_firstpage.gif\" border=\"0\" alt=\"first record\"> ';\r\n echo '<img src=\"images/bd_prevpage.gif\" border=\"0\" alt=\"prev record\"> ';\r\n }\r\n\r\n if ($this->_cursor < ($this->db_count -1)) {\r\n $r = $this->_cursor + 1;\r\n $url = $_SERVER['PHP_SELF'].'?m='.$this->module.'&amp;act=browse&amp;cursor='.$r.'&amp;orderby='.$this->_orderby.'&amp;sortdir='.$this->_sortdir.'&amp;query='.urlencode($this->_query).'&amp;qf='.urlencode($_REQUEST['qf']);\r\n echo '<a href=\"'.$url.'\"><img src=\"images/b_nextpage.gif\" border=\"0\" alt=\"next record\"></a> ';\r\n $r = $this->db_count - 1;\r\n $url = $_SERVER['PHP_SELF'].'?m='.$this->module.'&amp;act=browse&amp;cursor='.$r.'&amp;orderby='.$this->_orderby.'&amp;sortdir='.$this->_sortdir.'&amp;query='.urlencode($this->_query).'&amp;qf='.urlencode($_REQUEST['qf']);\r\n echo '<a href=\"'.$url.'\"><img src=\"images/b_lastpage.gif\" border=\"0\" alt=\"last record\"></a> ';\r\n }\r\n else {\r\n echo '<img src=\"images/bd_nextpage.gif\" border=\"0\" alt=\"next record\"> ';\r\n echo '<img src=\"images/bd_lastpage.gif\" border=\"0\" alt=\"last record\"> ';\r\n }\r\n echo '</td>';\r\n }\r\n echo '<form method=\"POST\" action=\"'.$_SERVER['PHP_SELF'].'\">';\r\n echo '<input type=hidden name=m value=\"'.$this->module.'\">';\r\n echo '<input type=hidden name=go value=\"'.htmlentities($GLOBALS['full_self_url']).'\">'; # url to go after successful submitation\r\n echo '<input type=hidden name=\"rowid[]\" value=\"'.$this->ds->_rowid[$this->_cursor].'\">'; # for edit-action\r\n echo '<input type=\"hidden\" name=\"act\">';\r\n echo '<td>&nbsp;&nbsp;';\r\n echo '<input type=\"button\" onclick=\"this.form.act.value = \\'edit\\';form_submit_confirm(this.form);\" value=\"'.lang('Edit').'\" '.(($this->allow_edit and $this->db_count > 0)?'':'disabled').'> ';\r\n echo '<input type=\"button\" onclick=\"this.form.act.value = \\'del\\';form_submit_confirm(this.form);\" value=\"'.lang('Delete').'\" '.(($this->allow_delete and $this->db_count > 0)?'':'disabled').'> ';\r\n echo '<input type=\"button\" onclick=\"this.form.act.value = \\'duplicate\\';form_submit_confirm(this.form);\" value=\"'.lang('Duplicate').'\" '.(($this->allow_duplicate and $this->db_count > 0)?'':'disabled').'> ';\r\n echo '<input type=\"button\" onclick=\"this.form.act.value = \\'view\\';form_submit_confirm(this.form);\" value=\"'.lang('View').'\" '.(($this->allow_view and $this->db_count > 0)?'':'disabled').'> ';\r\n echo '<input type=\"button\" onclick=\"this.form.act.value = \\'new\\';form_submit_confirm(this.form);\" value=\"'.lang('New').'\" '.($this->allow_new?'':'disabled').'> ';\r\n\r\n if (count($this->grid_command))\r\n echo ' | Other: ';\r\n\r\n foreach ($this->grid_command as $command) {\r\n #~ echo '<input type=\"button\" onclick=\"this.form.act.value = \\''.$command[0].'\\';submit_confirm(this.form);\" value=\"'.lang($command[1]).'\"> ';\r\n echo '<input type=\"button\" onclick=\"this.form.act.value = \\''.$command[0].'\\';this.form.submit();\" value=\"'.lang($command[1]).'\"> ';\r\n }\r\n echo '</form>';\r\n echo '</td>';\r\n }\r\n echo '</tr></table>'; //outer table\r\n\r\n if ($this->_query != '') {\r\n if ($this->db_count == 0) {\r\n echo '<p><b>'.lang('The search').' \"'.$this->_query.'\" '.lang('returns no record').'</b>. <a href=\"'.$_SERVER['PHP_SELF'].'?m='.$this->module.'\">'.lang('Reset Search').'</a>.</p>';\r\n return;\r\n }\r\n else {\r\n echo '<p><b>'.lang('The search').' \"'.$this->_query.'\" '.lang('found').' '.$this->db_count.' '.lang($this->unit).'</b>. <a href=\"'.$_SERVER['PHP_SELF'].'?m='.$this->module.'\">'.lang('Reset Search').'</a>.</p>';\r\n }\r\n }\r\n\r\n echo $this->body[$this->action]['prefix']; # show prefix body\r\n\r\n echo '<table border=\"0\" summary=\"form format\">';\r\n # form for new record\r\n echo '<form method=post enctype=\"multipart/form-data\" action=\"'.$_SERVER['PHP_SELF'].'\" onSubmit=\"return form_submit_confirm(this);\" autocomplete=\"off\">';\r\n echo '<input type=hidden name=m value=\"'.$this->module.'\">'; # this module\r\n echo '<input type=hidden name=act value=\"'.$this->action.'\">'; # contains the action (edit/new)\r\n #~ echo '<input type=hidden name=save value=\"'.$this->_save.'\">'; # marker to indicate form submitation\r\n if (!$this->_preview)\r\n echo '<input type=hidden name=save value=\"-1\">'; # marker to indicate form submitation\r\n else\r\n echo '<input type=hidden name=save value=\"1\">'; # marker to indicate form submitation\r\n #~ echo '<input type=hidden name=save value=\"-1\">'; # marker to indicate form submitation\r\n echo '<input type=hidden name=go value=\"'.htmlentities($this->_go).'\">'; # url to go after successful submitation\r\n echo '<input type=hidden name=\"num_row\" value=\"'.$this->db_count.'\">';\r\n echo '<input type=hidden name=\"rowid['.$this->_cursor.']\" value=\"'.$this->ds->_rowid[$this->_cursor].'\">'; # for edit-action\r\n\r\n # decide, which columns to show in form\r\n $this->colgrid = array();\r\n foreach ($this->properties as $key=>$col) {\r\n if ($this->action == 'browse' and $col->hidden) continue;\r\n if ($this->action == 'edit' and !$col->updatable) continue;\r\n if ($this->action == 'new' and !$col->insertable) continue;\r\n $this->colgrid[] = $key;\r\n }\r\n $i = 0; # html table rows\r\n $i2 = 0; # datasource columns\r\n\r\n for ($ci = 0; $ci < count($this->colgrid); $ci++) {\r\n $colvar = $this->colgrid[$ci];\r\n $i2++;\r\n $col = &$this->properties[$colvar];\r\n\r\n if ($col->box_start != '') { # box start append a title line\r\n echo '<tr><td colspan=\"2\"><br><b>'.$col->box_start.'</b></td></tr>';\r\n }\r\n\r\n if ($this->action != 'browse' or $this->browse_mode != 'form' or ($i2 % $this->browse_form_cols == 1)) {\r\n $rowcolour = ($i++ % 2 == 0)? 'greyformlight': 'greyformdark';\r\n echo '<tr class=\"'.$rowcolour.'\">';\r\n }\r\n\r\n echo '<td>';\r\n #~ if ($this->action != 'browse' and $col->required)\r\n #~ echo '<span class=\"asterix\">*</span>';\r\n $label = $col->colspan_label != ''? $col->colspan_label: $col->label;\r\n #~ if ($col->is_key)\r\n #~ echo '<b>'.$label.'</b>';\r\n #~ else\r\n echo $label;\r\n echo '</td>';\r\n\r\n echo '<td>';\r\n $max_colspan = $col->colspan; # save this first, since $col will be change on subsequent loops\r\n for ($colspan=0; $colspan < $max_colspan; $colspan++) {\r\n $colvar = $this->colgrid[$ci + $colspan];\r\n $col = &$this->properties[$colvar];\r\n $value = $this->ds->{$colvar}[$this->_cursor];\r\n if ($this->_preview) { # preview me\r\n echo '<input type=\"hidden\" name=\"field['.$colvar.']['.$this->_cursor.']\" value=\"'.$value.'\">';\r\n echo ' '.$value.' ';\r\n }\r\n else {\r\n echo $col->prefix_text;\r\n if ($this->action == 'browse') {\r\n if ($col->enumerate) { # if field is enumerated, get the enumerate value instead\r\n $value = '';\r\n if (is_string($col->enumerate) and $value != '') {\r\n $e = instantiate_module($col->enumerate);\r\n $value = $e->enum_decode($value);\r\n if ($value === False) {\r\n $col->notes = '<span style=\"color:f00\"><b>(ref?)</b></span> '.$col->notes;\r\n }\r\n }\r\n elseif (is_array($col->enumerate)) {\r\n $value = $col->enumerate[$value];\r\n }\r\n }\r\n elseif ($col->inputtype=='combobox' and $col->choices) { # if field is using simple enumeration, also get the choice value instead\r\n $value = $col->choices[$value];\r\n }\r\n else {\r\n #~ $value = $this->ds->{$colvar}[$rowindex];\r\n #pass\r\n }\r\n\r\n if ($col->inputtype == 'combobox') {\r\n $col->inputtype = 'text';\r\n }\r\n }\r\n\r\n if ($this->action == 'browse' and $this->browse_form_statictext) {\r\n echo '<b>';\r\n echo ' '.$value.' ';\r\n echo '</b>';\r\n }\r\n else {\r\n $this->input_widget(\"field[$colvar][{$this->_cursor}]\", $value, $colvar);\r\n }\r\n }\r\n }\r\n $ci += $max_colspan - 1; # since ->colspan starts at 1\r\n if ($this->action != 'browse' and $this->_save != -1) # edit/add mode and not preview\r\n echo '&nbsp;'.$col->notes;\r\n echo '</td>';\r\n\r\n if ($this->action != 'browse' or $this->browse_mode != 'form' or ($i2 % $this->browse_form_cols == 0)) {\r\n echo \"</tr>\\r\\n\";\r\n }\r\n\r\n if ($col->box_end) {\r\n echo '<tr><td colspan=\"2\"><br></td></tr>';\r\n }\r\n\r\n\r\n }\r\n echo '</table>';\r\n\r\n # show prefix/suffix body\r\n if (method_exists($this, $this->body[$this->action]['suffix'])) # give chance for suffix to execute them self.\r\n echo $this->{$this->body[$this->action]['suffix']}();\r\n else\r\n echo $this->body[$this->action]['suffix'];\r\n\r\n $_submitlabel = ($this->preview[$this->action] and !$this->_preview)? ' '.lang('Preview').' ': ' '.$this->submit_label['new'].' ';\r\n if ($this->action != 'browse') {\r\n echo '<p><input type=submit value=\"'.$_submitlabel.'\"> | ';\r\n #~ echo '<b><a href=\"'.$this->_go.'\">Cancel</a></b></p>';\r\n echo '<input type=button value=\"'.lang('Cancel').'\" onclick=\"window.location=\\''.$this->_go.'\\'\">';\r\n #~ echo '<b><a href=\"\" onclick=\"window.history.back();return false;\">Cancel</a></b>';\r\n }\r\n echo '</form>';\r\n\r\n # show suffix2 body (after previous big form)\r\n if (method_exists($this, $this->body[$this->action]['suffix2'])) # give chance for suffix to execute them self.\r\n echo $this->{$this->body[$this->action]['suffix2']}();\r\n else\r\n echo $this->body[$this->action]['suffix2'];\r\n }", "function form_submit($text = 'Submit', $options = array()) {\n $defaults = array(\n 'wrap' => true,\n 'class' => 'submit'\n );\n\n $options = array_merge($defaults, $options);\n\n $string = '<input type=\"submit\" value=\"' . $text . '\" />';\n\n if($options['wrap']) {\n $string = form__wrap(\n $string,\n array(\n 'label' => false\n )\n );\n }\n\n return html__output($string);\n}", "function _renderSubmit($element) {\n $elementClasses = \"btn btn-default \" . $element->getAttribute(\"class\", \"\");\n $element->setAttribute(\"class\", $elementClasses);\n $html = $this->render($element->getName());\n return $html;\n }", "function input_submit($element_name, $label) {\r\n print '<input type=\"submit\" name=\"' . $element_name .'\"id=\"'.$element_name.'\" value=\"';\r\n print htmlentities($label, ENT_NOQUOTES, 'UTF-8') .'\"/>';\r\n}", "function makeForm ()\n{\n\trequire('colors/colors.php');\n\t$inRow = false;\n\t$isSubmission = isset($_REQUEST['submission']) && ($_REQUEST['submission'] == 'yes');\n\techo \"<form method=\\\"get\\\">\\n\";\n\techo \"<input type=\\\"hidden\\\" name=\\\"submission\\\" value='no'/>\\n\";\n\techo \"<table>\\n\";\n\n\t\n\tfor ($i = 1; $i <= 4; $i++)\n\t{\n\t\t// If not in row, create new row and toggle $inRow, if in row simply toggle $inRow\n\t\tif(!$inRow)\n\t\t{\n\t\t\techo \"<tr>\\n\";\n\t\t\t$inRow = true;\n\t\t}\n\t\telse\n\t\t\t$inRow = false;\n\t\t\n\t\t// Start this section of data\n\t\techo \"<td>\\n\";\n\t\t\n\t\t// Insert caption box\n\t\t$captionbox = \"captionbox\" . $i;\n\t\t$value = empty($_REQUEST) ? \"\" : $_REQUEST[$captionbox];\n\t\techo \"<p>\\n\";\n\t\techo \"\\t<label for=\\\"$captionbox\\\">Enter Caption:</label>\\n\";\n\t\techo \"\\t<input type=\\\"text\\\" id=\\\"$captionbox\\\" name=\\\"$captionbox\\\" value=\\\"$value\\\"/>\\n\";\n\t\techo \"</p>\\n\";\n\t\tif($isSubmission)\n\t\t\tcaptionError($captionbox);\n\t\t\n\t\t// Insert Color drop down menu\n\t\t$selectBox = \"selectbox\" . $i;\n\t\t$colorMenu = createColors($colorTypes, $selectBox, $defaultColor);\n\t\techo $colorMenu;\n\t\t\n\t\t// Insert radio buttons and thumbs\n\t\t$radioBox = \"radioBox\" . $i;\n\t\t$radioMenu = createRadios($radioBox, $i);\n\t\techo $radioMenu;\n\t\tif($isSubmission)\n\t\t\tradioError($radioBox);\n\t\t\n\t\t// End data entry\n\t\techo \"</td>\\n\";\n\t\t\n\t\t// If no longer in row, end the row\n\t\tif(!$inRow)\n\t\t{\n\t\t\techo \"</tr>\\n\";\n\t\t}\n\t}\n\t\n\techo \"</table>\";\n\techo \"<input type=\\\"submit\\\" id=\\\"submit\\\" onclick=\\\"submission.value='yes'\\\" value=\\\"Make captions\\\"/>\\n\";\n\techo \"</form>\\n\";\n}", "function displayFormChoiseAgent(){\n\t$contents='<form method=\"post\" action=\"index.php\" name=\"formChoiseAgent\" id=\"formChoiseAgent\" > \n\t\t\t <fieldset>\n\t\t\t <legend>Choix action</legend>\n\n\t\t\t \t<input type=\"submit\" name=\"newPatient\" id=\"newPatient\" value=\"Nouveau patient\" />\n\n\t\t\t <input type=\"submit\" name=\"FormSynthese\" id=\"FormSynthese\" value=\"Synthese patient & modif info\" />\n\t\t\t <input type=\"submit\" name=\"displayFormNssPatient\" id=\"displayFormNssPatient\" value=\"Recherche nss patient\" />\n\t\t\t <input type=\"submit\" name=\"displayTakeAppointment\" id=\"displayTakeAppointment\" value=\"Prendre un rdv\" />\n\t\t\t <input type=\"submit\" name=\"displayPayementDepot\" id=\"displayPayementDepot\" value=\"Payer & depot\" /> \n\t\t\t </fieldset>\n\t\t\t</form>';\n\treturn $contents;\n}", "function renderSubmitButtons() {\n\t\t$output = '';\n\n\t\tif ($this->currentStep < count($this->steps) && count($this->steps) > 1 && $this->showNextButton) {\n\t\t\t$output .= '<input style=\"display:none;\" type=\"submit\" name=\"'.$this->prefixId.'[submitproceed]\" value=\"'.htmlspecialchars($this->LANG->sL($this->localLangLabels['renderSubmitButtons_proceed'])).'\" tabindex=\"1000\" />';\n\t\t\t$output .= '<input type=\"hidden\" name=\"'.$this->prefixId.'[currentstep]\" value=\"'.$this->currentStep.'\" />';\n\t\t}\n\t\tif ($this->showCancelButton) {\n\t\t\t$output .= '<input style=\"float:left;\" type=\"submit\" name=\"'.$this->prefixId.'[submitcancel]\" value=\"'.htmlspecialchars($this->LANG->sL($this->localLangLabels['renderSubmitButtons_cancel'])).'\" tabindex=\"1030\" />';\n\t\t}\n\t\tif ($this->currentStep > 1 && $this->showPreviousButton) {\n\t\t\t$output .= '<input style=\"float:left;\" type=\"submit\" name=\"'.$this->prefixId.'[submitback]\" value=\"'.htmlspecialchars($this->LANG->sL($this->localLangLabels['renderSubmitButtons_back'])).'\" tabindex=\"1020\" />';\n\t\t\t$output .= '<input type=\"hidden\" name=\"'.$this->prefixId.'[currentstep]\" value=\"'.$this->currentStep.'\" />';\n\t\t}\n\t\tif ($this->currentStep == count($this->steps) && $this->showNextButton) {\n\t\t\t$output .= '<input style=\"float:left;\" type=\"submit\" name=\"'.$this->prefixId.'[submitsubmit]\" value=\"'.htmlspecialchars($this->LANG->sL($this->localLangLabels['renderSubmitButtons_submit'])).'\" tabindex=\"1000\" />';\n\t\t}\n\t\tif ($this->currentStep < count($this->steps) && count($this->steps) > 1 && $this->showNextButton) {\n\t\t\t$output .= '<input style=\"float:left;\" type=\"submit\" name=\"'.$this->prefixId.'[submitproceed]\" value=\"'.htmlspecialchars($this->LANG->sL($this->localLangLabels['renderSubmitButtons_proceed'])).'\" tabindex=\"1010\" />';\n\t\t}\n\t\treturn '<div class=\"tx-frontendformslib-submitbuttons\">'.$output.'</div>';\n\t}", "public function BuildEndForm($action) {\n echo \"<INPUT TYPE='hidden' NAME='action' VALUE='$action'>\"; // this is coded in \n echo \"<p class='submit'> <input type='submit' value='Submit' /></p>\"; \n echo \"</fieldset>\"; \n echo \"</FORM>\"; \n }", "function atkButton($text, $url=\"\", $sessionstatus=SESSION_DEFAULT, $embedded=true, $cssclass=\"\")\n{\n\t$page = &atkPage::getInstance();\n\t$page->register_script(atkconfig(\"atkroot\").\"atk/javascript/formsubmit.js\");\n\tstatic $cnt=0;\n\n\tif ($cssclass == \"\")\n\t$cssclass = \"btn\";\n\n\t$cssclass = ' class=\"'.$cssclass.'\"';\n\t$script = 'atkSubmit(\"'.atkurlencode(session_url($url,$sessionstatus)).'\")';\n\t$button = '<input type=\"button\" name=\"atkbtn'.(++$cnt).'\" value=\"'.$text.'\" onClick=\\''.$script.'\\''.$cssclass.'>';\n\n\tif (!$embedded)\n\t{\n\t\t$res = '<form name=\"entryform\">';\n\t\t$res.= session_form();\n\t\t$res.= $button.'</form>';\n\t\treturn $res;\n\t}\n\telse\n\t{\n\t\treturn $button;\n\t}\n}", "function input_submit_account($value) {\n //create submit button of class 'submit_button_holder'\n echo \"<div class=\\\"submit_button_holder\\\">\";\n echo \"<input name=\\\"$value\\\" type=\\\"submit\\\" class=\\\"submit_account\\\" value=\\\"$value\\\">\";\n echo '</div>';\n}", "protected static function getSubmitButtons($args) {\r\n $r = '';\r\n global $indicia_templates;\r\n $r .= '<input type=\"submit\" class=\"' . $indicia_templates['buttonDefaultClass'] . '\" id=\"save-button\" value=\"'.lang::get('Submit').\"\\\" />\\n\";\r\n if (!empty($_GET['location_id'])) {\r\n //Don't display delete if in view only mode\r\n if (empty($_GET['summary_mode']) || $_GET['summary_mode']=='false') {\r\n // use a button here, not input, as Chrome does not post the input value\r\n $r .= '<button type=\"submit\" class=\"' . $indicia_templates['buttonWarningClass'] . '\" id=\"delete-button\" name=\"delete-button\" value=\"delete\" >'.lang::get('Delete').\"</button>\\n\";\r\n data_entry_helper::$javascript .= \"$('#delete-button').click(function(e) {\r\n if (!confirm(\\\"Are you sure you want to delete this location?\\\")) {\r\n e.preventDefault();\r\n return false;\r\n }\r\n });\\n\";\r\n }\r\n }\r\n return $r;\r\n }", "function show_table($result)\n\t{\n\t\techo \"<form id = 'form' ><table><tr align = 'center'><th>Ticket #</th><th>Received</th><th>Sender Name</th><th>Sender Email</th><th>Subject</th><th>Description</th><th>Tech</th><th>Status</th><th>Select</th></tr>\";\n\n\t\t# Iterate through each row\n\t\twhile($row = mysql_fetch_array($result)):\n\n\t\t\t# Get the date information\n\t\t\t$ticket = $row['ticket']; $date = $row['date']; $name = $row['name']; $email = $row['email']; $subject = $row['subject']; $desc = $row['description']; $status = $row['status'];\n\t\t\t$tableRow = array($ticket,$date,$name,$email,$subject,$desc);\n\n\t\t\t# Gets the name of the tech\n\t\t\t$result2 = mysql_query(\"SELECT * FROM users,assign WHERE assign.ticket=$ticket AND users.id=assign.id\") or die(\"<b>Error: </b>\" . mysql_error());\n\t\t\t$row2 = mysql_fetch_array($result2);\n\t\t\t$techName = $row2['name'];\n\n\t\t\t# If there is no tech\n\t\t\tif( !$techName ) $techName = \"<i>Unassigned</i>\";\n\n\t\t\t$tableRow[] = \"$techName\";\n\t\t\t$tableRow[] = \"$status\";\n\n\t\t\t# Put the data in the table\n\t\t\techo \"<tr>\";\n\t\t\tforeach($tableRow as $value):\n\t\t\t\techo \"<td>$value</td>\";\n\t\t\tendforeach;\n\n\t\t\t# Add radio buttons to each row\n\t\t\techo \"<td><input type='radio' name='select' value='$ticket' onclick=\\\"return submitInfo(document.getElementById('form'),'ticket.php');\\\" ></td></tr>\";\n\t\tendwhile;\n\t\techo \"</table></form>\";\n\t}", "function sexy_submit_tag($value = 'Save changes', $options = array())\n{\n return sexy_button_to_function( $value, \"var form = this; \".\n \"while(null != (form = form.parentNode)) if( form.nodeName == 'FORM') \".\n \"if( (form.onsubmit && form.onsubmit()) || (!(form.onsubmit)) ) form.submit();\",\n $options );\n}", "function training_modal_form($form, &$form_state) {\n $form = array(\n 'submit_modal' => array(\n '#type' => 'submit',\n '#value' => t('Sample button'),\n ),\n );\n\n return $form;\n}", "function genForm($query,$id,$prefix,$target)\n {\n global $values;\n $getCols = query($query);\n //$results = query($query);\n //$values = mysqli_fetch_array($results);\n\n $fields_num = mysqli_num_fields($getCols);\n echo '<textarea>';\n\n\n $formName = $prefix.\"Form\";\t\n echo \"<form action='\".'<?=app(\"url\")?>'.\"/exec/$target' id='$formName' name='$formName'>\\n\";\n\n\n \n for($i=0; $i<$fields_num; $i++)\n {\n $field = mysqli_fetch_field($getCols);\t\n \n if(strstr($id,$field->name)){\n echo \"<input type='hidden' name='frm_$id' id='$id' value='\".'<?=$values[\"'.$field->name.'\"]?>'.\"'>\\n\";\n }else{\n //$colname[$y] = $field->name;\n $label = ucfirst(str_replace($prefix.\"_\",\"\",$field->name));\n\n echo \"<label>\".ucfirst(str_replace('_', ' ',$label)).\"</label>\";\n echo \"<input name='frm_$field->name' id='frm_$field->name' value='\".'<?=$values[\"'.$field->name.'\"]?>'.\"'><br>\\n\";\n }\n }\n echo \"<label>&nbsp;</label><button id='formbutton'>Submit</button>\\n\";\n echo \"</form>\\n\";\n echo \"\\n<script>\\n\";\n echo \"$(document).ready(function(){\\n\";\n echo \" $('#$formName').validate();\\n\";\n echo \"});\\n\";\n echo \"</script>\\n\";\n echo '</textarea>';\n\t}", "public function __toString() {\n if ( ! isset( $this['value'] ) ) {\n $this['value'] = 'Save';\n }\n\n return\n \"<div class=\\\"form-field field-type-submit\\\">\n <input type=\\\"submit\\\" value=\\\"{$this['value']}\\\" />\n </div>\";\n }", "function buttonAfgelopenVeilingen()\n{\n print(\"<div class='ui input'>\n <input type='submit' name='knop' method='POST' value='Veilingen sluiten en Mail sturen'>\n </div>\"); \n\n\t$rows = getAfgelopenVeilingen();\n foreach($rows as $row)\n { \n $hoogsteBod = getHoogsteBod($row['voorwerpnummer']);\n $objectnr = $row['voorwerpnummer'];\n \n $hoogsteBieder = $hoogsteBod['gebruikersnaam'];\n $emailKoper = getEmail($hoogsteBieder);\n\n $verkoper = $row['verkoper'];\n $emailVerkoper = getEmail($verkoper);\n\n\t if(isset($_POST['knop'])){\n\t koperInObject($objectnr, $hoogsteBod['gebruikersnaam']);\n\t aflopendeVeilingKoperMail($emailKoper['emailadres'], $row['titel'], $hoogsteBod['gebruikersnaam']);\n\t aflopendeVeilingVerkoperMail($emailVerkoper[0], $row['titel'], $hoogsteBod['gebruikersnaam']);\n\t veilingSluiten($objectnr);\n\t }\n\t}\n}", "function print_search_form(){\n global $cfg, $db, $libhtml;\n\n $html = $libhtml->form_start();\n $html .= open_table();\n $html .= $libhtml->render_form_table_row(\"keyword\", my_request(\"keyword\"), \"Keyword\", \"keyword\");\n $html .= close_table();\n $html .= $libhtml->render_form_table_row_hidden(\"search\", \"Search\");\n $html .= $libhtml->render_form_table_row_hidden(\"move_to_get\", true);\n\n $html .= $libhtml->render_actions(\n array(\n $libhtml->render_button(\"search_button\", \"Search\"),\n ),\n array(\n \"show_prompt\"=>false,\n \"show_cancel\"=>false,\n \"pause\"=>false,\n )\n );\n\n $html .= $libhtml->form_end();\n $html .= '<div class=\"clear\"></div><br/>';\n return $html;\n }", "function AfficherProfilRecherche($nbVu,$nbAvoir,$nom)\n{\n echo '<h1 class=\"mb-4 display-3\" >Profil de ' . $nom . '</h1>'\n . '<form method=\"post\" action=\"index.php\" ><table class=\"table\">'\n . '<tr><td>Nombre de films vus : ' . $nbVu . '</td>'\n . '<td><button class=\"btn btn-info btn-sm\" type=\"submit\" name=\"type\" value=\"vu\">Films vu</button></td></tr>'\n . '<tr><td>Nombre de films à voir : ' . $nbAvoir . '</td>'\n . '<td><button class=\"btn btn-info btn-sm\" type=\"submit\" name=\"type\" value=\"aVoir\">Films à voir</button></td></tr></table>';\n \n}", "static function newform()\n\t{\n\t\treturn '\n\t\t<h2>Neue Wette eintragen</h2>\n\t\t<small>Eine Wette wird erst gestartet wenn der Wetter (das bist DU wenn du eine Wette einträgst) die offene Wette startet.</small>\n\t\t<form action=\"'.getURL(false,false).'\" method=\"post\">\n\t\t<table class=\"border\">\n\t\t<tr><td>\n\t\t<b>Wett Titel:<b> <br />\n\t\t<input type=\"text\" name=\"titel\" class=\"text\" size=\"40\">\n\t\t</td></tr><tr><td>\n\t\t<b>Wette: </b><br />\n\t\t<textarea name=\"wette\" cols=\"40\" rows=\"5\" class=\"text\"></textarea>\n\t\t</td></tr><tr><td>\n\t\t<b>Wetteinsatz: </b><br />\n\t\t<textarea name=\"einsatz\" cols=\"40\" rows=\"3\" class=\"text\"></textarea>\n\t\t</td></tr><tr><td>\n\t\t<b><small>Gültigkeit (in Tagen ab Wettstart, 0 steht für unbegrenzt):</small></b>\n\t\t<br />\n\t\t<input type=\"text\" name=\"dauer\" class=\"text\" size=\"4\">\n\t\t</td></tr><tr><td>\n\t\t<br />\n\t\t<small>\n\t\tEine Wette ist beendet wenn, <b>beide Parteien</b> <br />\n\t\tsich auf einen <b>Sieg oder eine Niederlage einigen</b> können.<br />\n\t\t</small>\n\t\t<br />\n\t\t<input type=\"submit\" value=\"Wette eintragen\" class=\"button\">\n\t\t</td></tr>\n\t\t</table>\n\t\t</form>';\n\t}", "function newBatchInput(){\n\tglobal $batchtypes;\t\n\n\t$ret = \"<form onsubmit=\\\"newBatch(); return false;\\\">\";\n\t$ret .= \"<table>\";\n\t$ret .= \"<tr><th>Batch Type</th><th>Name</th><th>Start date</th><th>End date</th><th>Owner</th></tr>\";\n\t$ret .= \"<tr>\";\n\t$ret .= \"<td><select id=newBatchType>\";\n\tforeach ($batchtypes as $id=>$desc){\n\t\t$ret .= \"<option value=$id>$desc</option>\";\n\t}\n\t$ret .= \"</select></td>\";\n\t$ret .= \"<td><input type=text id=newBatchName /></td>\";\n\t$ret .= \"<td><input type=text id=newBatchStartDate onfocus=\\\"showCalendarControl(this);\\\" /></td>\";\n\t$ret .= \"<td><input type=text id=newBatchEndDate onfocus=\\\"showCalendarControl(this);\\\" /></td>\";\n\t$ret .= \"<td><select id=newBatchOwner />\";\n\tglobal $owners;\n\tforeach ($owners as $o)\n\t\t$ret .= \"<option>$o</option>\";\n\t$ret .= \"</select></td>\";\n\t$ret .= \"<td><input type=submit value=Add /></td>\";\n\t$ret .= \"</tr></table></form><br />\";\n\t\n\t$ret .= \"<b>Filter</b>: show batches owned by: \";\n\t$ret .= \"<select id=filterOwner onchange=\\\"refilter();\\\">\";\n\tforeach ($owners as $o)\n\t\t$ret .= \"<option>$o</option>\";\n\t$ret .= \"</select>\";\n\t\n\t$ret .= \" <a href=barcodenew.php>Print shelf tags</a>\";\n\t\n\treturn $ret;\n}", "function table($items, $list, $cart) {\n\t$table = \"<form id='select-book' method='post' action='index.php'>\\n\\t<table border='1' class='table'>\\n\\t\\t<tr><th></th><th>Title</th><th>Author</th><th>Price</th></tr>\\n\"; \n\tfor($i=0;$i<count($items);$i++){\n\t\t$table .=\"\\t\\t<tr><td><input type='checkbox' name='book[]' value='\" . $items[$i]['key'] . \"'></td><td>\" . $items[$i]['title'] . \"</td><td>\" . $items[$i]['author'] . \"</td><td>$\" . $items[$i]['price'] . \"</td></tr>\\n\";\n\t}\n\t$table .=\"\\t</table>\\n\\t<input type='submit' value='Add To Cart'>\\n\\t<input type='hidden' name='selected-books' value='$list'>\\n</form>\\n<form id='show-cart' method='post' action='cart.php'>\\n\\t<input type='submit' value='View Cart' class='$cart' name='view-cart'>\\n</form>\\n\";\n\treturn $table;\n}", "function jabHtmlSubmitButton($caption, $id, $class=\"\", $name=\"\")\n{\n\tif ($name==\"\")\n\t\t$name=$id;\n\tif ($class!=\"\")\n\t\t$class=\" class=\\\"\".$class.\"\\\"\";\n\techo \"<input type=\\\"submit\\\" id=\\\"$id\\\" name=\\\"$name\\\" value=\\\"$caption\\\"/>\\n\";\n}", "function render_submit_button( $form, $args ) {\n $button_attributes = array();\n\n $button_attributes['class'] = 'acf-button af-submit-button';\n\n $button_attributes = apply_filters( 'af/form/button_attributes', $button_attributes, $form, $args );\n $button_attributes = apply_filters( 'af/form/button_attributes/id=' . $form['post_id'], $button_attributes, $form, $args );\n $button_attributes = apply_filters( 'af/form/button_attributes/key=' . $form['key'], $button_attributes, $form, $args );\n\n echo '<div class=\"af-submit acf-form-submit\">';\n echo sprintf( '<button type=\"submit\" %s>%s</button>', acf_esc_atts( $button_attributes ), $args['submit_text'] );\n echo '<span class=\"acf-spinner af-spinner\"></span>';\n echo '</div>';\n }", "public function &draw_add_button($in_tag, $in_value = false)\n {\n $text = \"\";\n $text .= '<TD>';\n $text .= '<input class=\"' . $this->query->getBootstrapStyle('design_ok') . 'reportico-maintain-button reportico-submit\" type=\"submit\" name=\"submit_' . $in_tag . '_ADD\" value=\"' . ReporticoLang::templateXlate(\"ADD\") . '\">';\n $text .= '</TD>';\n\n // Show Import/Link options\n // We allow import and linking to reports for criteria items\n // We import only for main query assignments\n $importtype = false;\n switch ($in_tag) {\n case \"mainquercrit\":$importtype = \"LINKANDIMPORT\";\n break;\n case \"mainquerassg\":$importtype = \"IMPORT\";\n break;\n case \"mainqueroutppghd\":$importtype = \"IMPORT\";\n break;\n case \"mainqueroutppgft\":$importtype = \"IMPORT\";\n break;\n default;\n $importtype = false;\n }\n\n if ($importtype) {\n $text .= $this->draw_report_link_panel($importtype, $in_tag, $in_value, $this->query->reportlink_report);\n }\n\n return $text;\n }", "function returnbutton()\n\t\t\t{\n\t\t\t\techo \"<body>\";\n\t\t\t\techo \"<form method='post' action='searchstatusform.php'>\";\n\t\t\t\techo \"<br />\";\n\t\t\t\techo \"<center><input type='submit' value='return' /></center>\";\n\t\t\t\techo \"</form>\";\n\t\t\t\techo \"</body>\"; \n\t\t\t}", "function form() {\n\tglobal $cert_amt_tbl;\n\t\n\t$certificates_form = table_form_header('* indicates required field');\n\t$certificates_form .= table_form_field('Sort:','<input name=\"crtamt_sort\" type=\"text\" size=\"5\" maxlength=\"12\" value=\"'.$cert_amt_tbl->crtamt_sort.'\">');\n\t$certificates_form .= table_form_field('<span class=\"required\">*Discount Amount:</span>','<input name=\"discount_amount\" type=\"text\" size=\"5\" maxlength=\"15\" value=\"'.$cert_amt_tbl->discount_amount.'\">');\n\t$certificates_form .= table_form_field('Discount Cost:','<input name=\"cost\" type=\"text\" size=\"5\" maxlength=\"12\" value=\"'.$cert_amt_tbl->cost.'\">');\n\t$certificates_form .= table_form_field('Min Spend Amounts:','<input name=\"min_spend_amts\" type=\"text\" size=\"30\" value=\"'.$cert_amt_tbl->min_spend_amts.'\">');\n\t$certificates_form .= table_span_form_field('<center><input name=\"id\" type=\"hidden\" value=\"'.$cert_amt_tbl->id.'\"><input name=\"submit\" type=\"submit\" value=\"Submit\"></center>');\n\t\n return $certificates_form;\n }", "function DrawForm($scrow=true,$close_table=false) {\n\t\tif ($scrow) {\n\t\t\t$this->SaveCancelRow();\n\t\t}\n\n\t\tif ($close_table) {\n\t\t\t$this->form.=\"</table>\\n\";\n\t\t}\n\n\t\treturn $this->form;\n\t}", "function showL1editFormPage() {\n /*\n Composing some elements of the form.\n */\n /*\n Composing $nodeDivs.\n */\n $nodeDivs = composeL1EditForm_nodeDivs();\n /*\n Composing $buttonsDiv.\n */\n// $buttonsDiv = composeL1EditForm_buttonsDiv();\n\n//Put $ sign back in front of buttonsDiv in heredoc\n//after debugging.\n\n /*\n Sending the form to the browser.\n */\n $submitToken = time();\n $_SESSION['EKA_submitToken'] = $submitToken;\n\n site_header('Edit Knowledge Article');\n $php_self = $_SERVER['PHP_SELF'];\n $page_str = <<<EOPAGESTR\n\n\n<form action=\"$php_self\" method=\"post\">\n$nodeDivs\nbuttonsDiv\n <div>\n <input type=\"hidden\" name=\"submitToken\" value=\"$submitToken\">\n </div>\n</form>\n\n\nEOPAGESTR;\n echo $page_str;\n site_footer();\n return;\n}", "function endForm($send){\n $out = '';\n if ($send) $out .= '<input type=\"submit\" value=\"'.$send.'\" name=\"submit\" >';\n $out .= \"</form>\";\n return $out;\n }", "public function blueprint_row($blueprint, $button, $action, $remove_button, $type_list, $message=\"\") {\n $blueprint_row = $message.\"<form action='index.php?section=admin&amp;page=blueprints&amp;action=\".$action.\"' method='POST'>\n <input type='hidden' name='blueprint_id' value='\".$blueprint['id'].\"' />\n <div class='dbox'>\n <table>\n <tr>\n <td>Name:</td>\n <td><input type='text' name='blueprint_name' value='\".$blueprint['name'].\"' /></td>\n </tr>\n <tr>\n <td>Description:</td>\n <td><input type='text' name='blueprint_description' value='\".$blueprint['description'].\"' /></td>\n </tr>\n <tr>\n <td>Effectiveness:</td>\n <td><input type='text' name='blueprint_effectiveness' value='\".$blueprint['effectiveness'].\"' /></td>\n </tr>\n <tr>\n <td>Price:</td>\n <td><input type='text' name='blueprint_price' value='\".$blueprint['price'].\"' /></td>\n </tr>\n <tr>\n <td>Type:</td>\n <td>\".$type_list.\"</td>\n </tr>\n <tr>\n <td><input type='submit' name='blueprint_submit' value='\".$button.\"' /></td>\n \".$remove_button.\"\n </tr>\n </table>\n </div>\n </form>\";\n return $blueprint_row;\n }", "function display_add_bm_form()\r\n{\r\n?>\r\n<form name=bm_table action=\"add_bms.php\" method=post>\r\n<table width=250 cellpadding=2 cellspacing=0 bgcolor=#cccccc>\r\n<tr><td>Nuevo EN:</td><td><input type=text name=new_url value=\"http://\"\r\n size=30 maxlength=255></td></tr>\r\n<tr><td colspan=2 align=center><input type=submit value=\"Añadir marcador\"></td></tr>\r\n</table>\r\n</form>\r\n<?\r\n}", "function formStart($action, $method, $id){\n \n $form = '<form action=\"';\n $form .= $action;\n $form .= '\" method=\"';\n $form .= $method;\n $form .= '\" id=\"';\n $form .= $id;\n $form .= '\">';\n \n echo $form;\n}", "private function submit()\n {\n $element = new Zend_Form_Element_Submit('submit');\n $element->setLabel('Save')\n ->setAttrib('class', 'reg_input_btn');\n\n return $element;\n }", "function display_add_bm_form()\r\n{\r\n?>\r\n<form name=bm_table action=\"add_bms.php\" method=post>\r\n<table width=250 cellpadding=2 cellspacing=0 bgcolor=#cccccc>\r\n<tr><td>New BM:</td><td><input type=text name=new_url value=\"http://\"\r\n size=30 maxlength=255></td></tr>\r\n<tr><td colspan=2 align=center><input type=submit value=\"Add bookmark\"></td></tr>\r\n</table>\r\n</form>\r\n<?\r\n}", "function renderWholeForm() {\n\t\t$output = $this->renderCurrentStep();\n\t\t$output .= $this->renderSubmitButtons();\n\n\t\treturn $this->wrapWithForm ($output);\n\t}", "public function getSubmitButton()\n {\n return $this->submitButton;\n }", "function grid_submit_confirm_new() {\r\n /* echoed before enterim form, inside <script>, define form_submit_confirm javascript function behaviour in your code\r\n */\r\n return <<<__END__\r\n function submit_confirm(myform) {\r\n //action = myform.elements['act'].value;\r\n //myform.submit();\r\n }\r\n__END__;\r\n }", "function submit($name, $value, $tabs)\n{\n Tab($tabs) ;\n echo \"<input type='submit' name='\" . $name . \"' value='\" . $value . \"' />\" ;\n NL() ;\n}", "public function &draw_delete_button($in_tag, $in_value = false)\n {\n $text = \"\";\n //$text .= '<TD class=\"reportico-maintain-up-down-button-cell\">';\n $text .= '<input class=\"reportico-maintain-delete-button reportico-submit\" type=\"submit\" name=\"submit_' . $in_tag . '_DELETE\" value=\"\">';\n //$text .= '</TD>';\n return $text;\n }", "protected function getButtonSubmitHTML($item){\n\n return '<div class=\"col-12\"><button type=\"submit\" class=\"'.$this->styles['button-classes'].'\">'.$item->title->{$this->language}.'</button></div>';\n\n }", "public function form()\r\n\t{\r\n\t?>\r\n\t\t<table class=\"form-table\">\r\n\t\t\t<tbody>\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<th scope=\"row\">\r\n\t\t\t\t\t\t<?php _e( 'Lorsqu\\'une nouvelle contribution est publiée', 'tify' );?>\r\n\t\t\t\t\t</th>\r\n\t\t\t\t\t<td>\r\n\t\t\t\t\t<?php \r\n\t\t\t\t\t\ttify_control_switch( \r\n\t\t\t\t\t\t\tarray( \r\n\t\t\t\t\t\t\t\t'name' \t\t=> 'tify_forum_options[mailing][contribs_notify]', \r\n\t\t\t\t\t\t\t\t'checked' \t=> (int) \\tiFy\\Plugins\\Forum\\Options::get( 'mailing::contribs_notify' ),\r\n\t\t\t\t\t\t\t\t'value_on'\t=> 1,\r\n\t\t\t\t\t\t\t\t'value_off'\t=> 0\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\r\n\t\t\t\t\t</td>\r\n\t\t\t\t</tr>\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<th scope=\"row\">\r\n\t\t\t\t\t\t<?php _e( 'Lorsqu\\'une contribution est en attente de modération', 'tify' );?>\r\n\t\t\t\t\t</th>\r\n\t\t\t\t\t<td>\r\n\t\t\t\t\t<?php \r\n\t\t\t\t\t\ttify_control_switch( \r\n\t\t\t\t\t\t\tarray( \r\n\t\t\t\t\t\t\t\t'name' \t\t=> 'tify_forum_options[mailing][moderation_notify]', \r\n\t\t\t\t\t\t\t\t'checked' \t=> (int) \\tiFy\\Plugins\\Forum\\Options::get( 'mailing::moderation_notify' ),\r\n\t\t\t\t\t\t\t\t'value_on'\t=> 1,\r\n\t\t\t\t\t\t\t\t'value_off'\t=> 0\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\r\n\t\t\t\t\t</td>\r\n\t\t\t\t</tr>\r\n\t\t\t</tbody>\r\n\t\t</table>\r\n\t<?php\t\t\r\n\t}", "function addSubmitButton($name,$display=null,$value=null, $disabled=null, $class=null, $id=null){\r\n\t\t\t$this->formFields[$name] = array(\r\n\t\t\t\t\"name\" => $name,\r\n\t\t\t\t\"type\" => \"submit\", //defines the type of the input\r\n\t\t\t\t\"label\" => $display,\r\n\t\t\t\t\"value\" => $value,\r\n\t\t\t\t\"disabled\" => $disabled,\r\n\t\t\t\t\"class\" => $class,\r\n\t\t\t\t\"id\" => $id\r\n\t\t\t);\t\t\r\n\t\t\t\r\n\t\t\t//add class if null\r\n\t\t\tif($class == null){\r\n\t\t\t\t$this->formFields[$name][\"class\"] = \"c\" . $name;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//add id\r\n\t\t\tif($id == null){\r\n\t\t\t\t$this->formFields[$name][\"id\"] = \"i\" . $name;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//add display\r\n\t\t\tif($display == null){\r\n\t\t\t\t$this->formFields[$name][\"label\"] = \"\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "function cp_print_button($type,$value,$name){\r\n return '<span class=\"btn-wrapper\"><input type=\"'.$type.'\" class=\"btn\" value=\"'.$value.'\" name=\"'.$name.'\"></span>';\r\n}", "function makeForm($frm) {\r\n\t\tif(!empty($frm)) preg_replace('/\\s+/', ' ', $frm);\r\n\r\n \t$html=\"<table>\";\r\n\r\n\t foreach ($frm AS $row) {\r\n\t\t\t$html.=\"<tr><td>\".$row['title'].\"</td><td>\".$row['field'].\"</td></tr>\";\r\n\t\t}\r\n\r\n \t$html.=\"</table>\";\r\n\r\n\t return $html;\r\n\t}", "function _field_submit($fval) \n {\n $res = \"\";\n if (isset($this->attribs['disable_self_onclick'])) {\n $this->extra_attribs .= 'onclick=\"this.disabled=true; this.value=\\'please wait...\\'\"';\n }\n\n if (isset($this->attribs['show_reset_button'])) {\n $res .= sprintf(\"<div style=\\\"float:left\\\"><input type=\\\"reset\\\" name=\\\"reset_op\\\" value=\\\"reset form\\\" class=\\\"%s\\\" /></div>\\n\", \n (isset($this->attribs['class']))? $this->attribs['class'] : $this->element_class);\n }\n $res .= sprintf(\"<input type=\\\"submit\\\" name=\\\"%s\\\" id=\\\"%s\\\" value=\\\"%s\\\" class=\\\"%s\\\" %s />\\n\",\n $this->fname,\n $this->fname,\n $this->_htmlentities($this->descrip),\n (isset($this->attribs['class']))? $this->attribs['class'] : $this->element_class,\n $this->extra_attribs);\n return $res;\n }", "function make_table($result)\r\n{\r\n $temp_result=\"\\n<form name=f1 metbod='POST' action=''>\";\r\n $temp_result.=\"\\n<table cellpadding=2 cellspacing=1>\";\r\n for($i=0;$i<mysql_num_rows($result);$i++)\r\n {\r\n $a_rows=mysql_fetch_assoc($result);\r\n $noofcolumns=mysql_num_fields($result);\r\n #Starting rows-\r\n if($i==0)\r\n\t{\r\n\t $temp_result.=\"\\n<tr bgcolor=#d3dce3>\\n\";\r\n\t \t $temp_result.=\"<td colspan=3></td>\";\r\n\t foreach($a_rows as $key=>$value)\r\n\t {\r\n\t $temp_result.=\"<td>\".$key.\"</td>\";\r\n\t }\r\n\t $temp_result.=\"\\n</tr>\";\r\n\t}\r\n\r\n #data rows-\r\n $temp_result.=\"\\n<tr bgcolor=\".(($i%2==0)?\"#e5e5e5\":\"#d5d5d5\").\">\\n\";\r\n\t#edit columns-\r\n $temp_result.=\"\\n\\t<td><input type=checkbox name=check\".$i.\"></td>\";\r\n $temp_result.=\"\\n\\t<td><a name=\".$i.\" href=\\\"javascript:enable(\".$i.\",\".$noofcolumns.\")\\\"><img src=\\\"b_edit.png\\\" border=0></a></td>\";\r\n $temp_result.=\"\\n\\t<td><a href=\\\"\\\"><img src=\\\"b_drop.png\\\" border=0></a></td>\";\r\n\t#data columns- \r\n foreach($a_rows as $key=>$value)\r\n\t{\r\n\t $temp_result.=\"\\n\\t<td visibility='hidden'>\".$value.\"</td>\";\r\n\t $temp_result.=\"\\n\\t\";\r\n\t $temp_result.='<td id='.$key.$value.' display=\"none\"><input type=\"text\" disabled value=\"'.$value.'\" size='.size_of($key);\r\n\t /* if($key==\"Rollno\")*/ $temp_result.=(' name='.parsekey($key).$i);\r\n\t $temp_result.=' ></td>';\r\n\t}\r\n $temp_result.=\"\\n</tr>\";\r\n }\r\n\r\n $temp_result.=\"\\n</table>\";\r\n $temp_result.=\"\\n</form>\";\r\n\r\n $temp_java_result='<SCRIPT type=text/javascript>\r\n\tfunction hide(obj)\r\n\t{\r\n\t\tif(obj.style.display==\"none\")obj.style.display=\"\";\r\n\t\telse obj.style.display=\"none\";\r\n\t}\r\n\tfunction enable(row,col)\r\n\t{\r\n//\t\talert(\"row=\"+row+\"col=\"+col);\r\n\t\tfor( i=row*col+row+1;i<row*col+col+row+1 ;i++ )\r\n\t\t{\r\n//\t\t\talert(\"i=\"+document.f1.elements[i].name);\r\n\t\t\tdocument.f1.elements[i].disabled=false;//abled();//=\"\";\r\n\t\t}\t\t';\r\n\r\n foreach($a_rows as $key=>$value)\r\n {\r\n $temp_java_result.=\"\\n\\t\\tcellname=eval(\\\"\".parsekey($key).\"\\\"+row);\";\r\n $temp_java_result.=\"\\n\\t\\tdocument.f1.cellname.enabled=on;\";\r\n }\r\n $temp_java_result.='\r\n\t}\r\n\t</SCRIPT>';\r\n \r\n $temp_result=$temp_java_result.$temp_result;\r\n return $temp_result;\r\n}", "public function render_submit(\\renderable $page) {\n return $this->render_from_template('mod_cfp/submit', $page->export_for_template($this));\n }", "function generate_form_from_table($tb,$item_id=0)\t{\n\n\tglobal $Form,$dbSwitch,$outPut,${$tb},$customInserts,$customPrints;\n\t\n\t\n//\tprint_r($_POST);\n\t\n\t\n\t\n//\t\tse quel tipo di form ha bisogno di una variabile per creare una nuova voce\n//\t\tin caso di assenza di questa variabile restituisco messaggio e back.\n\t\n\t\n\tif\t(\t(\tpreg_match(\t\"/\".$tb.\"\\[/\",\tREQUEST_MANDATORY_VALUES)\t)\t&&\t(\t!$_REQUEST[item_id]\t)\t)\t:\n\t\n\t\t$value\t=\tpreg_replace(\t\"/.*\".$tb.\"\\[([A-Za-z0-9_]*)\\].*/\",\"$1\",\tREQUEST_MANDATORY_VALUES\t);\n\t\t\n\t\tif\t(\t!$_REQUEST[$value]\t)\t:\t\t\n\t\t\t\n\t\t\t$form\t.=\t$Form->open(\"clarify\",FORM_ACTION,'POST',true,'Associazione');\n\t\t\t\n\t\t\t\n\t\t\t\n\t//\t\t$sql\t=\t\"SELECT \".$value.\" FROM \".find_primary_key_parent($value);\t###CONTROLLARE###\n\t\t\t\n\t//\t\t$data_list\t=\t$dbSwitch->select($sql);\n\t\t\t\n\t\t\t$form\t.=\t$Form->dynamic_select(codice_cliente,CLIENTI,ragione_sociale,cliente);\n\t\t\t\n\t\t\t$form\t.=\t$Form->submit(\"avanti\");\n\t\t\t\n\t\t\t$form\t.=\t$Form->close(true);\n\t\t\t\n\t\t\treturn\t$form;\t\t\t\n\t\t\n\t\tendif;\n\t\n\tendif;\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\n\t\n\tif\t(\t!$item_id\t)\t:\t$item_id\t=\t$_GET[item_id];\tendif;\n\n\n\t//definisco i tipi di campi\n\t$fields\t=\tfield_types($tb);\n\t\n\t\n\n\n\n\n\n\n\n\n\n\n//------- SE E' STATO POSTATO IL FORM IN QUESTIONE AGGIORNO -------//\n\n\tif\t(\t$_POST[$tb.'_is_sent']\t)\t:\n\t\n\t\t\n\t\tif\t(\tform_is_correct(\t$tb,\t$fields\t)\t)\t:\t\n\t\t\n\t\t\n\t\t\n\t\t\t\t//definisco il tipo di query\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif\t(\t$item_id\t)\t:\n\t\t\t\t\t\n\t\t\t\t\t\t$action\t=\t\"UPDATE \"; $where\t=\t\" WHERE \".primary_key($tb).\"='\".$item_id.\"'\";\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$action\t=\t\"INSERT INTO \";\n\t\t\t\t\t\n\t\t\t\t\tendif;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t//preparo i pezzi di query\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tfor\t(\t$i=0;\t$i\t<\tcount($fields);\t$i++\t)\t:\n\t\t\t\t\t\n\t\t\t\t\t\n#************\t\t\t//COMBO INSERT da rivedere!!!!!!!!!!!!!!!!!!!!!! (3 variabili)\n\t\t\t\t\t\n\t\t\t\t\t\tif\t(\tpreg_match(\t\"/\".$fields[$i][Field].\"/\",\tCOMBO_INSERTS\t)\t)\t:\n\t\t\t\t\t\t\n\t\t\t\t\t\t/*\tATTENZIONE LA LISTA DELLE ATTREZZATURE ASSOCIATE VANNO PRESE DALLA TABELLA PRODOTTI SPECIFICI!\t*/\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t$ins_funct\t=\tpreg_replace(\"/.*\".$fields[$i][Field].\"\\[([^\\[\\]$]*)\\].*/\",\"$1\",COMBO_INSERTS\t);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$sets\t.=\t$ins_funct($fields[$i][Field],$tb,$item_id);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t//SPECIAL INSERT (1 variabile)\n\t\t\t\t\t\telseif\t(\tpreg_match(\t\"/\".$fields[$i][Field].\"/\",\tSPECIAL_INSERTS\t)\t):\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$ins_funct\t=\tpreg_replace(\"/.*\".$fields[$i][Field].\"\\[([^\\[\\]$]*)\\].*/\",\"$1\",SPECIAL_INSERTS\t);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$toPost\t=\t$ins_funct($_POST[$fields[$i][Field]]);\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$sets.=\" \".$fields[$i][Field].\"='\".$toPost.\"', \";\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t//NORMAL INSERT\n\t\t\t\t\t\telse:\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif\t(\t$_POST[$fields[$i][Field]]\t!=\t$_POST['PRE_'.$fields[$i][Field]]\t)\t:\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$sets.=\" \".$fields[$i][Field].\"='\".trim($_POST[$fields[$i][Field]]).\"', \";\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tendif;\n\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\tendif;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tendfor;\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t//se è stato immesso/modificato almeno un campo metto insieme la query\n\t\t\n\t\t\t\t\n\t\t\t\tif\t(\t$sets\t)\t:\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t//preparo gli aggiornamenti di data e ora\n\t\t\t\t\t\n\t\t\t\t\t$time=time();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif\t(\thas_date_to_be_updated($fields)\t)\t:\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\tif\t(\t!$_POST[mod]\t)\t:\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t$update_entry_date=\", entry_date=\".$time;\t//data inserimento\n\t\t\t\t\t\t\n\t\t\t\t\t\tendif;\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t$update_mod_date=\", mod_date=\".$time;\t\t\t\t//data modifica\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tendif;\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif\t(\tisClosing()\t)\t:\n\t\t\t\t\t\n\t\t\t\t\t\t$update_close_date=\", close_date=\".$time;\t\t//data chiusura\n\t\t\t\t\t\n\t\t\t\t\tendif;\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\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\n\t\t\t\t\t$sql=$action.$tb.\" SET \".substr($sets,-strlen($sets),strlen($sets)-2).$update_entry_date.$update_mod_date.$update_close_date.$where;\n\t\t\t\t\t\n\t\t\t\t\t\n#\t\t\t\t\tprint $sql;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t$form\t.=\t$dbSwitch->insert($sql);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tunset($sets,$sql);\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\tendif;\n\n\n\n\n\n\t\t\t\t\t//------se è stato fatto salva e chiudi ed il form è corretto \n\t\t\t\t\t//porto di nuovo all'elenco della categoria in questione-------//\n\t\t\t\t\t\n\t\t\t\t\tif\t(\t$_POST['salva-e-chiudi']\t)\t:\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\theader(\"Location: \".ROOT.\"?cat=\".$_REQUEST[cat]);\n\t\t\t\t\t\n\t\t\t\t\tendif;\t\t\n\n\t\n\t\t\t\n\t\t\n\t\tendif;//fine se il form è corretto\n\t\n\t\n\tendif;//fine se c'è post\n\n//------- FINE AGGIORNAMENTO DATI IN PRESENZA DI POST -------//\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//apro il form\n\t$form\t.=\t$Form->open($tb);\n\n\n\n\n\n//Se è stato specificato l'item ID vado ad aprire la voce\n\t\n\tif\t(\t$item_id\t)\t:\n\t\n\t\t$dati\t=\t$dbSwitch->select(\t\"SELECT * FROM \".$tb.\" WHERE \".primary_key($tb).\"='\".$item_id.\"'\"\t);\n\t\t\n\t\tif\t(\t!is_array($dati)\t)\t:\t\t$_SESSION[err_mess]\t.= $dati;\tendif;\n\t\t\n\t\tif\t(\t!count($dati)\t\t)\t:\t\t$_SESSION[err_mess]\t.= \"non sono state trovate le informazioni.<br/>\";\tendif;\n\t\t\n\t\t$form\t.=\t$Form->hidden(\t\"mod\"\t,\t$item_id\t);\n\t\t\n\t\t\t\n\t\t\n\tendif;\n\t\n\n\n\n\n//per ogni campo creo l'apposito campo form\n\n\n\tfor\t(\t$i=0;\t$i\t<\tcount($fields);\t$i++\t)\t:\n\t\n\t\n\t\t//se il value va convertito lo converto ora\t\t\n\t\t$dati[0][$fields[$i][Field]]\t=\tdisplay_converted_form_value($fields[$i][Field],$dati[0][$fields[$i][Field]]);\n\t\t\n\t\t\t\n\t\n\t//definisco il fieldset al quale aqppartiene questo specifico campo\n\n\t\n\t\n\tforeach (${$tb}[fieldsets] as $k => $v) {\n\t\t\n\t\tif\t(\tpreg_match(\t\"/\".$fields[$i][Field].\"/\", $v)\t)\t:\t$fieldset=$k; endif;\n\t\t\n\t}\n\t\n\tif\t(\t!$fieldset\t)\t:\t$fieldset=\"altro\";\tendif;\n\t\n\t\n\t$FORM[$fieldset]\t.=\t\"\\n<div class='\".$fields[$i][Field].\"'>\\n\";\n\t\n\t\n\t\n\t\t//-- stampo eventuali messaggi e stili di errore --//\n\t\t\n\t\tif\t(\t$_POST[$tb.'_is_sent']\t&&\t!is_valid(\t$tb,$fields[$i][Field],true\t)\t)\t:\t\n\t\t\n\t\t\t$class=\" class='error'\";\n\t\t\n\t\tendif;\n\t\t\n\t\t//-- fine eventuali messaggi e stili di errore--//\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\n\t\t//se il campo è da trattare in modo speciale\n\t\tif\t(\tis_special_field($fields[$i][Field])\t)\t:\n\t\t\n\t\t\t//richiamo l'apposita funzione dalla classe form\n\t\t\t$FORM[$fieldset]\t.=\t$Form->$fields[$i][Field]($dati[0][$fields[$i][Field]],$err_mess);\n\t\t\n\t\t\n\t\t//se viene specificato un fieldtype diverso\n\t\telseif\t(\tis_custom_field_type(\t$fields[$i][Field]\t)\t)\t:\n\t\t\n\t\t\t//richiamo l'apposita funzione dalla classe form\n\t\t\t\n\t\t\t//print get_custom_field_type(\t$fields[$i][Field]\t);\n\t\t\t\n\t\t\t$function=get_custom_field_type(\t$fields[$i][Field]\t);\n\t\t\t\n\t\t\t//se il campo personalizzato ha bisogno di variabili immetto fino alle prima 6 variabili presenti dopo la prima voce, separate da virgole nel file formconfig.php\n\t\t\t\n\t\t\t$FORM[$fieldset]\t.=\t$Form->$function[0]($fields[$i][Field],$function[1],$function[2],$function[3],$function[4],$function[5],$function[6]);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\telse:\t//altrimenti se è un campo normale\n\t\t\n\t\t\t\t\n\t\t\t//se è varchar o smallint\n\t\t\tif\t(\tpreg_match('/varchar/',\t$fields[$i][Type]\t)\t||\n\t\t\t\t\tpreg_match('/smallint/',\t$fields[$i][Type]\t)\t||\n\t\t\t\t\tpreg_match('/int/',\t$fields[$i][Type]\t)\n\t\t\t\t)\t:\n\t\t\t\n\t\t\t\t$maxlength\t=\tpreg_replace('/[a-z]+\\(([0-9]+)\\)/','$1',$fields[$i][Type]);\n\t\t\t\t\n\t\t\t\t$FORM[$fieldset]\t.=\t$Form->input($fields[$i][Field],$dati[0][$fields[$i][Field]],$maxlength,$class,$err_mess);\n\t\t\t\n\t\t\t\n\t\t\tendif;\n\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\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//se SET o ENUM\n\t\t\tif\t(\tpreg_match('/set/',\t$fields[$i][Type]\t)\t||\tpreg_match('/enum/',\t$fields[$i][Type]\t)\t)\t:\n\t\t\t\n\t\t\t\n\t\t\t$labels\t=\tpreg_replace('/\\'/','',$fields[$i][Type]);\n\t\t\t$labels\t=\tpreg_replace('/set\\((.*)\\)/','$1',$labels);\n\t\t\t$labels\t=\tpreg_replace('/enum\\((.*)\\)/','$1',$labels);\n\t\t\t$labels\t=\texplode(\",\", $labels); //metto tutti i valori in un array\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t$FORM[$fieldset]\t.=\t$Form->select($fields[$i][Field],$labels,$dati[0][$fields[$i][Field]]);\n\t\t\t\n\t\t\t\n\t\t\tendif;\n\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\t\n\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\t//se TEXT\n\t\t\tif\t(\t$fields[$i][Type] === \"text\"\t)\t:\n\t\t\t\n\t\t\t$FORM[$fieldset]\t.=\t$Form->textarea($fields[$i][Field],$dati[0][$fields[$i][Field]]);\n\t\t\t\n\t\t\tendif;\n\t\t\t\n\t\t\t\n\t\t\t//----------\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t\tendif;\t//fine se il campo non speciale\n\t\t\n\t\t\t\t\n\t\t\n\t\n\t\n\t\t\n\t\t\n\t\t//$FORM[$fieldset]\t.= is_valid($tb,$dati[0][$fields[$i][Field]]);\n\t\t\n\t\t\n\t\t\n\t\t$FORM[$fieldset]\t.=\t$_SESSION[err_mess][$fields[$i][Field]];\n\t\t\n\t\tunset($_SESSION[err_mess]);\n\t\t\n\t\t$FORM[$fieldset]\t.=\t\"</div>\\n\\n\";\n\t\n\t\n\t\n\t\n\t\n\t//se c'è un'inserto da mettere dopo questo fieldset lo metto\n//\tprint \"preg_match(\\\"/\".$fieldset.\"/\".${$tb}[custom_inserts].\")\";\n\t\t\t\n\tif(\t(\tpreg_match(\"/\".$fieldset.\"/\",${$tb}[custom_inserts])\t)\t&&\t(\t!$FORM[custom_field]\t)\t):\n\t\n\t$custom_field\t=\tpreg_replace(\"/.*\".$fieldset.\"\\[([^\\[\\]$]*)\\].*/\",\"$1\",${$tb}[custom_inserts]\t)\t;\n\t\n\t$FORM[$custom_field]\t=\t$customInserts->$custom_field();\n\t\n\tendif;\n\t\n\t\n\t\n\t\n\t\n\tunset($fieldset,$class, $err_mess);\n//\t\tprint $fields[$i][Field].$i.$tb;\n\tendfor;\n\t\n\t\n\t\n\nprint_r($FORM);exit;\n\n\nforeach ($FORM as $key => $value) {\n \n\t$FIELDSET[$key]\t.=\t\"\\n\\n<fieldset id='\".$key.\"'>\\n\";\t\n\t$FIELDSET[$key]\t.=\t\"\\n<legend>\";\n\t$FIELDSET[$key]\t.=\t$outPut->label($key);\n\t$FIELDSET[$key]\t.=\t\"</legend>\\n\";\n\t$FIELDSET[$key]\t.=\t$value;\n\t$FIELDSET[$key]\t.=\t\"\\n</fieldset>\\n\\n\";\n\t\n}\n\n\n//se non è stato stabilito l'ordine dei fieldset seguo l'ordine di apparizione da DB\n\nif\t(\t!trim(${$tb}[fieldset_order])\t\t)\t:\n\n\tforeach ($FIELDSET as $key => $value) :\n\t\t\n\t\t$form\t.=\t$FIELDSET[$key];\n\t\t\n\tendforeach;\n\t\n\t\nelse:\n\n\tforeach (explode(\" \",${$tb}[fieldset_order]) as $value) :\n\t\t\n\t\t$form\t.=\t$FIELDSET[$value];\n\t\t\n\tendforeach;\n\t\n\nendif;\n\n\n\n\n\n\n\n$form\t.=$Form->tripleSubmit();\n\n\n$form\t.=$Form->close();\n\n\n\n\n\n\n\n\n\n\n\n\n//aggiungo eventuale lista correlata\nif\t(\tpreg_match(\t\"/\".$tb.\"\\[[^\\[\\]]*\\]/\",FORM_RELATED_LISTS\t)\t)\t:\n\t\t\t\t\n\t$related_list\t=\tpreg_replace(\t\"/.*\".$tb.\"\\[([^\\[\\]]*)\\].*/\",\"$1\",FORM_RELATED_LISTS\t);\n\t\n\t$form\t.=\tlist_($related_list,\" WHERE \".primary_key($tb).\"='\".$_GET[item_id].\"'\",1,1,'scroll');\t\n\t\nendif;\n\n//print_r($_POST);\n\nreturn $form;\n\n\n}", "function ListaCompetencia(){\n \n include(\"../modelo/cnx.php\");\n $cnx = pg_connect($entrada) or die (\"Error de conexion. \". pg_last_error());\n session_start();\n $seleccionar=\"SELECT id_competencia, nombre_competencia, fecha_inicio_competencia, \n fecha_fin_competencia, creador_competencia, fecha_creacion\n FROM competencia;\";\n \n $result = pg_query($seleccionar) or die('ERROR AL INSERTAR DATOS: ' . pg_last_error());\n $columnas = pg_numrows($result);\n $this->formu.='<table><tr><td>Identificador</td>';\n $this->formu.='<td>Nombre Competencia</td>';\n $this->formu.='<td>Fecha Inicio</td>';\n $this->formu.='<td>Fecha Final</td></tr>';\n for($i=0;$i<=$columnas-1; $i++){\n $line = pg_fetch_array($result, null, PGSQL_ASSOC);\n $this->formu.='<tr> \n <td>'.$line['id_competencia'].'</td> \n <td>'.$line['nombre_competencia'].'</td>\n <td>'.$line['fecha_inicio_competencia'].'</td>\n <td>'.$line['fecha_fin_competencia'].'</td>\n <td>'.$line['fecha_creacion'].'</td>\n <td><input type=\"submit\" name=\"id_competencia\" value=\"Ver Equipos _'.$line['id_competencia'].'\" style=\"width:85px\"></td>\n <td><input type=\"submit\" name=\"competencia\" value=\"Ver Problemas _'.$line['id_competencia'].'_'.$line['nombre_competencia'].'\" style=\"width:100px\"></td>\n </tr>';\n }\n $this->formu.='</table>';\n\n return $this->formu; \n }", "function create_form(){\n\t\n\t$table =\"<html>\";\n\t$table.=\"<head>\";\n\t$table.=\"\t<title>New Article Entry Page</title>\";\n\t$table.=\"</head>\";\n\t\n\t// URL for the wordpress post handling page\n\t$link_admin_post = admin_url('admin-post.php');\n\t$table.=\"<form name = 'myform' method=\\\"POST\\\" action='\" . $link_admin_post . \"' id = \\\"form1\\\">\";\n\n\t// Input for Faculty member\n\t$table.= \"\t<br>\";\n\t$table.= \" <div class=\\\"input\\\">\";\n\t$table.=\"\t<p class=\\\"label\\\"><label for=\\\"Tag\\\">Faculty Member/Tag: </label></p>\";\n\t$list_of_names = wp_post_tag_names();\n\t$table.=\"\t<select name=\\\"Tag\\\">\" . $list_of_names . \"</select>\";\n\t$table.=\"\t</div>\";\n\t\n\t// Input for PMID\n\t$table.=\"\t<br>\";\n\t$table.=\"\t<div class=\\\"input\\\">\";\n\t$table.=\"\t<p class=\\\"label\\\"><label for=\\\"PMID\\\">PMID*: </label></p>\";\n\t$table.=\"\t<input type=\\\"number\\\" name=\\\"PMID\\\" id=\\\"PMID\\\" required>\";\n\t\n\t//autofill button\n\t$table.=' <a class=\"pmid\" data-test=\"hi\"><button id=\"autofill_btn\" type=\"button\" >Auto-Fill</button></a>';\n\t$table.=\"\t</div>\";\n\t\t\n\t// Input for Journal Issue\n\t$table.=\"\t<br>\";\n\t$table.=\"\t<div class=\\\"input\\\">\";\n\t$table.=\"\t<p class=\\\"label\\\"><label style=\\\"width: 200px;\\\" for=\\\"Journal_Issue\\\">Journal Issue: </label></p>\";\n\t$table.=\"\t<input id = 'issue' type=\\\"number\\\" name=\\\"Journal_Issue\\\">\";\n\t$table.=\"\t</div>\";\n\t\n\t// Input for Journal Volume\n\t$table.=\"\t<br>\";\n\t$table.=\"\t<div class=\\\"input\\\">\";\n\t$table.=\"\t<p class=\\\"label\\\"><label for=\\\"Journal_Volume\\\">Journal Volume: </label></p>\";\n\t$table.=\"\t<input id = 'journal_volume' type=\\\"number\\\" name=\\\"Journal_Volume\\\">\";\n\t$table.=\"\t</div>\";\n\t\n\t// Input for Journal Title\n\t$table.=\"\t<br>\";\n\t$table.=\"\t<div class=\\\"input\\\">\";\n\t$table.=\"\t<p class=\\\"label\\\"><label for=\\\"Journal_Title\\\">Journal Title: </label></p>\";\n\t$table.=\"\t<input id = 'journal_title' type=\\\"text\\\" name=\\\"Journal_Title\\\">\";\n\t$table.=\"\t</div>\";\n\t\n\t// Input for Journal Year\n\t$table.=\"\t<br>\";\n\t$table.=\"\t<div class=\\\"input\\\">\";\n\t$table.=\"\t<p class=\\\"label\\\"><label for=\\\"Journal_Year\\\">Journal Year: </label></p>\";\n\t$table.=\"\t<input id = 'year' value=\\\"2000\\\" type=\\\"number\\\" name=\\\"Journal_Year\\\">\";\n\t$table.=\"\t</div>\";\n\t\n\t// Input for Journal Month\n\t$table.=\"\t<br>\";\n\t$table.=\"\t<div class=\\\"input\\\">\";\n\t$table.=\"\t<p class=\\\"label\\\"><label for=\\\"Journal_Month\\\">Journal Month: </label></p>\";\n\t$table.=\"\t<select id='journal_month' name=\\\"Journal Month\\\">\";\n\t$table.=\"\t\t<option value=\\\"01\\\">Jan</option>\";\n\t$table.=\"\t\t<option value=\\\"02\\\">Feb</option>\";\n\t$table.=\"\t\t<option value=\\\"03\\\">Mar</option>\";\n\t$table.=\"\t\t<option value=\\\"04\\\">Apr</option>\";\n\t$table.=\"\t\t<option value=\\\"05\\\">May</option>\";\n\t$table.=\"\t\t<option value=\\\"06\\\">Jun</option>\";\n\t$table.=\"\t\t<option value=\\\"07\\\">Jul</option>\";\n\t$table.=\"\t\t<option value=\\\"08\\\">Aug</option>\";\n\t$table.=\"\t\t<option value=\\\"09\\\">Sep</option>\";\n\t$table.=\"\t\t<option value=\\\"10\\\">Oct</option>\";\n\t$table.=\"\t\t<option value=\\\"11\\\">Nov</option>\";\n\t$table.=\"\t\t<option value=\\\"12\\\">Dec</option>\";\n\t$table.=\"\t</select>\";\n\t$table.=\"\t</div>\";\n\t\n\t// Input for Journal Day\n\t$table.=\"\t<br>\";\n\t$table.=\"\t<div class=\\\"input\\\">\";\n\t$table.=\"\t<p class=\\\"label\\\"><label for=\\\"Journal_Day\\\">Journal Day: </label></p>\";\n\t$table.=\"\t<input id = 'journal_day' type=\\\"text\\\" name=\\\"Journal_Day\\\">\";\n\t$table.=\"\t</div>\";\n\t\n\t// Input for Journal Date\n\t$table.=\"\t<br>\";\n\t$table.=\"\t<div class=\\\"input\\\">\";\n\t$table.=\"\t<p class=\\\"label\\\"><label for=\\\"Journal_Date\\\">Journal Date: </label></p>\";\n\t$table.=\"\t<input id = 'journal_date' placeholder=\\\"YYYY-MM-DD\\\" type=\\\"text\\\" name=\\\"Journal_Date\\\">\";\n\t$table.=\"\t</div>\";\n\t\n\t// Input for Journal Abbreviation\n\t$table.=\"\t<br>\";\n\t$table.=\"\t<div class=\\\"input\\\">\";\n\t$table.=\"\t<p class=\\\"label\\\"><label for=\\\"Journal_Abbreviation\\\">Journal Abbreviation: </label></p>\";\n\t$table.=\"\t<input id = 'journal_ab' type=\\\"text\\\" name=\\\"Journal_Abbreviation\\\">\";\n\t$table.=\"\t</div>\";\n\n\t// Input for Journal Citation\n\t$table.=\"\t<br>\";\n\t$table.=\"\t<div class=\\\"input\\\">\";\n\t$table.=\"\t<p class=\\\"label\\\"><label for=\\\"Journal_Citation\\\">Journal Citation: </label></p>\";\n\t$table.=\"\t<input id = 'journal_citation' type=\\\"text\\\" name=\\\"Journal_Citation\\\">\";\n\t$table.=\"\t</div>\";\n\t\n\t// Input for Article Title\n\t$table.=\"\t<br>\";\n\t$table.=\"\t<div class=\\\"input\\\">\";\n\t$table.=\"\t<p class=\\\"label\\\"><label for=\\\"Article_Title\\\">Article Title: </label></p>\";\n\t$table.=\"\t<input id=\\\"article_title\\\" type=\\\"text\\\" name=\\\"Article_Title\\\">\";\n\t$table.=\"\t</div>\";\n\t\n\t// Input for article abstract\n\t$table.=\"\t<br>\";\n\t$table.=\"\t<div class=\\\"input\\\">\";\n\t$table.=\"\t<p class=\\\"label\\\"><label for=\\\"Article_Abstract\\\">Article Abstract: </label></p>\";\n\t$table.=\" <textarea id='abstract' rows = '4' cols = '60' name=\\\"Article_Abstract\\\"></textarea>\";\n\t$table.=\"\t</div>\";\n\t\n\t// Input for Article URL\n\t$table.=\"\t<br>\";\n\t$table.=\"\t<div class=\\\"input\\\">\";\n\t$table.=\"\t<p class=\\\"label\\\"><label for=\\\"Article_URL\\\">Article URL: </label></p>\";\n\t$table.=\"\t<input id = 'article_url' type=\\\"text\\\" name=\\\"Article_URL\\\">\";\n\t$table.=\"\t</div>\";\n\t\n\t// Input for Article Pagination\n\t$table.=\"\t<br>\";\n\t$table.=\"\t<div class=\\\"input\\\">\";\n\t$table.=\"\t<p class=\\\"label\\\"><label for=\\\"Article_Pagination\\\">Article Pagination: </label></p>\";\n\t$table.=\"\t<input id='pages' type=\\\"text\\\" name=\\\"Article_Pagination\\\">\";\n\t$table.=\"\t</div>\";\n\t\n\t// Input for Article Date\n\t$table.=\"\t<br>\";\n\t$table.=\"\t<div class=\\\"input\\\">\";\n\t$table.=\"\t<p class=\\\"label\\\"><label for=\\\"Article_Date\\\">Article Date: </label></p>\";\n\t$table.=\"\t<input id='article_date' placeholder=\\\"YYYY-MM-DD\\\" type=\\\"text\\\" name=\\\"Article_Date\\\">\";\n\t$table.=\"\t</div>\";\n\t\n\t// Input for Article Authors\n\t$table.=\"\t<br>\";\n\t$table.=\"\t<div class=\\\"input\\\">\";\n\t$table.=\"\t<p class=\\\"label\\\"><label for=\\\"Article_Authors\\\">Article Authors: </label></p>\";\n\t$table.=\"\t<input id='article_authors' type=\\\"text\\\" name=\\\"Article_Authors\\\">\";\n\t$table.=\"\t</div>\";\n\t\n\t// Input for Article Affiliations\n\t$table.=\"\t<br>\";\n\t$table.=\"\t<div class=\\\"input\\\">\";\n\t$table.=\"\t<p class=\\\"label\\\"><label for=\\\"Article_Affiliation\\\">Article Affiliation: </label></p>\";\n\t$table.=\"\t<input id = 'article_affiliation' type=\\\"text\\\" name=\\\"Article_Affiliation\\\">\";\n\t$table.=\"\t</div>\";\n\t\n\t// Input for Date Created\n\t$table.=\"\t<br>\";\n\t$table.=\"\t<div class=\\\"input\\\">\";\n\t$table.=\"\t<p class=\\\"label\\\"><label for=\\\"Date_Created\\\">Date Created: </label></p>\";\n\t$table.=\"\t<input id='date_created' placeholder=\\\"YYYY-MM-DD\\\" type=\\\"text\\\" name=\\\"Date_Created\\\">\";\n\t$table.=\"\t</div>\";\n\t\n\t// Input for Date Completed\n\t$table.=\"\t<br>\";\n\t$table.=\"\t<div class=\\\"input\\\">\";\n\t$table.=\"\t<p class=\\\"label\\\"><label for=\\\"Date_Completed\\\">Date Completed: </label></p>\";\n\t$table.=\"\t<input id='date_completed' placeholder=\\\"YYYY-MM-DD\\\" type=\\\"text\\\" name=\\\"Date_Completed\\\">\";\n\t$table.=\"\t</div>\";\n\n\t// Input for Date Revised\n\t$table.=\"\t<br>\";\n\t$table.=\"\t<div class=\\\"input\\\">\";\n\t$table.=\"\t<p class=\\\"label\\\"><label for=\\\"Date_Revised\\\">Date Revised: </label></p>\";\n\t$table.=\"\t<input id='date_revised' placeholder=\\\"YYYY-MM-DD\\\" type=\\\"text\\\" name=\\\"Date_Revised\\\">\";\n\t$table.=\"\t</div>\";\n\t\n\t// Hidden input (for specifying hook)\n\t$table.=\"\t<input type=\\\"hidden\\\" name=\\\"action\\\" value=\\\"new_article_form\\\">\";\n\t\n\t// Submit and reset buttons\n\t$table.=\"\t<br>\";\n\t$table.=\"\t<div id=\\\"form_btns\\\">\"; \n\t$table.=\"\t<button class=\\\"form_btn\\\"><input type=\\\"reset\\\" value=\\\"Reset!\\\" onclick=\\\"window.location.reload()\\\"></button>\";\n\t$table.=\"\t<input class=\\\"form_btn\\\" type=\\\"submit\\\" value=\\\"Submit\\\">\"; \n\t$table.=\"\t</div>\";\n\t$table.=\"</form>\";\n\n\t// Styling of the form (needs to be put in a seperate stylesheet)\n\t$table.=\"<style type=\\\"text/css\\\">\";\n\t$table.=\"\t#form_btns {\";\n\t$table.=\"\t\tmargin-left: 150px;\";\n\t$table.=\"\t}\";\n\t$table.=\"\t.form_btn {\";\n\t$table.=\"\t\twidth: 80px;\";\n\t$table.=\"\t}\";\n\t$table.=\"\t.label {\";\n\t$table.=\"\t\twidth: 150px;\";\n\t$table.=\"\t\tmargin: 0;\";\n\t$table.=\"\t\tfloat: left;\";\n\t$table.=\"\t}\";\n\t$table.=\"\tinput::placeholder {\";\n\t$table.=\"\t\tcolor: #a4a4a4;\";\n\t$table.=\"\t}\";\n\t$table.=\"</style>\";\n\t\n\t$table.=\"<script type='text/javascript' src=\" . plugin_dir_url(__FILE__) . \"js/autofill_ajax.js></script>\";\n\n \techo $table;\n}", "public function addSubmitF ($fieldname = 'submit', $value = 'Submit', array $attributes = array ())\n\t{\n\t\tif (is_array($fieldname)) {\n\t\t\t$attributes = $fieldname;\n\t\t} else {\n\t\t\t$attributes['name'] = (string)$fieldname;\n\t\t\t$attributes['value'] = (string)$value;\n\t\t}\n\t\t$attributes['type'] = 'submit';\n\n\t\treturn html_tag('button', $this -> attr_to_string($attributes), $value);\n\t}", "function dapper_button($variables) {\n $element = $variables['element'];\n\n $element['#attributes']['type'] = 'submit';\n if ($element['#type'] == \"button\") {\n element_set_attributes($element, array('id', 'name', 'title'));\n return '<button' . drupal_attributes($element['#attributes']) . '>' . $element['#value'] . '</button>';\n\n } else {\n element_set_attributes($element, array('id', 'name', 'value'));\n\n $element['#attributes']['class'][] = 'form-' . $element['#button_type'];\n if (!empty($element['#attributes']['disabled'])) {\n $element['#attributes']['class'][] = 'form-button-disabled';\n }\n\n return '<input' . drupal_attributes($element['#attributes']) . ' />';\n\n }\n}", "public function display_page_actions() {\n\t\tprintf(\n\t\t\t'<form action=\"%s\" method=\"post\">',\n\t\t\tesc_url( admin_url( 'admin-post.php?action=' . self::POST_ACTION_ID ) )\n\t\t);\n\n\t\techo '<input type=\"hidden\" name=\"page\" value=\"custom-table\"/>';\n\t\twp_nonce_field( self::POST_ACTION_ID );\n\n\t\techo '<p class=\"submit\">';\n\t\tsubmit_button(\n\t\t\tesc_html__( 'Add Entry', 'autowpdb-example-plugin' ),\n\t\t\t'primary',\n\t\t\t'add_entry',\n\t\t\tfalse\n\t\t);\n\t\tif ( ! empty( $this->table_contents ) ) {\n\t\t\techo ' ';\n\t\t\tsubmit_button(\n\t\t\t\tesc_html__( 'Delete Oldest Entry', 'autowpdb-example-plugin' ),\n\t\t\t\t'',\n\t\t\t\t'delete_entry',\n\t\t\t\tfalse\n\t\t\t);\n\t\t}\n\t\techo '</p>';\n\t\techo '</form>';\n\t}", "function generate_sys_button($btn_params=array())\n{\n\t$btn_str = \"\";\n\t\n\tif(!empty($btn_params['btnaction']) && empty($btn_params['noloading']))\n\t{\n\t\t$btn_str .= \"<div class='bluronclick'><div style='display:inline-block;'>\";\n\t}\n\telse if(empty($btn_params['btnaction']))\n\t{\n\t\t$btn_params['btnaction'] = '';\n\t}\n\t\n\t$btn_str .= \"<table border='0' cellspacing='0' cellpadding='0' class='btn' onclick=\\\"\".$btn_params['btnaction'].\"\\\">\n <tr>\n <td class='btnleft'><img src='\".base_url().\"images/spacer.gif' width='5' height='5'/></td>\n <td class='btnmiddle' nowrap='nowrap'>\".$btn_params['btntext'].\"</td>\n <td class='btnright'><img src='\".base_url().\"images/spacer.gif' width='5' height='5'/></td>\n </tr>\n </table>\";\n\t\n\tif(!empty($btn_params['btnaction']) && empty($btn_params['noloading']))\n\t{\n\t\t$btn_str .= \"</div></div>\";\n\t}\n\t\t\n\tif(!empty($btn_params['btnid']))\n\t{\t\n \t$btn_value = (!empty($btn_params['btnvalue']))? $btn_params['btnvalue']: 'Submit';\n\t\t$btn_str .= \"<div style='display:none;'>\n <input name='\".$btn_params['btnid'].\"' type='submit' id='\".$btn_params['btnid'].\"' value='\".$btn_value.\"' />\n </div>\";\n\t}\n\t\n\t\n\treturn $btn_str;\n}", "function raamatuVorm(){\n echo '\n <form action=\"'.$_SERVER['PHP_SELF'].'\" method=\"post\">\n Pealkiri: <input type=\"text\" name=\"title\"><br />\n Autor: <input type=\"text\" name=\"author\"><br />\n Trükikoda: <input type=\"text\" name=\"print\"><br />\n Seisund: <input type=\"text\" name=\"status\"><br />\n <input type=\"submit\" value=\"Salvesta!\">\n </form> \n ';\n}", "function protocol_button($element) {\n if (isset($element['#attributes']['class'])) {\n $element['#attributes']['class'] = 'form-' . $element['#button_type'] . ' ' . $element['#attributes']['class'];\n }\n else {\n $element['#attributes']['class'] = 'form-' . $element['#button_type'];\n }\n\n return '<div class=\"button-wrapper-outer\"><div class=\"button-wrapper\"><input type=\"submit\" ' . (empty($element['#name']) ? '' : 'name=\"' . $element['#name'] . '\" ') . 'id=\"' . $element['#id'] . '\" value=\"' . check_plain($element['#value']) . '\" ' . drupal_attributes($element['#attributes']) . \" /></div></div>\\n\";\n}", "public static function outputForm()\n {\n $out = <<<EOD\n <form method=\"post\" action=\"../webroot/rm-movies.php\" onsubmit=\"\">\n <input type=hidden name=search value='simple-search'/>\n <input type='text' name='title-simple' placeholder='Sök Filmtitel' />\n </form>\nEOD;\n return $out;\n }", "function form_submit_confirm_new() {\r\n /* echoed before enterim form, inside <script>, define form_submit_confirm javascript function behaviour in your code\r\n */\r\n return <<<__END__\r\n function form_submit_confirm(myform) {\r\n //action = myform.elements['act'].value;\r\n //myform.submit();\r\n }\r\n__END__;\r\n }", "public function getButton($caption, $form)\n {\n return sprintf(\n \"<input id=\\\"webFormSubmitButton\\\" type=\\\"button\\\" value=\\\"%s\\\" style=\\\"padding: 3px 15px 3px 15px; \"\n . \"font-weight: bold; font-size: 10pt;\\\" onclick=\\\"webFormSubmit('%s');\\\">\\n\",\n $caption, $form);\n }", "function _field_button($fval)\n {\n $res = \"\";\n if (isset($this->attribs['disable_self_onclick'])) {\n $this->extra_attribs .= 'onclick=\"this.disabled=true; this.value=\\'please wait...\\'\"';\n }\n\n $res .= sprintf(\"<input type=\\\"button\\\" name=\\\"%s\\\" id=\\\"%s\\\" value=\\\"%s\\\" class=\\\"%s\\\" %s />\\n\",\n $this->fname,\n $this->fname,\n $this->_htmlentities($this->descrip),\n (isset($this->attribs['class']))? $this->attribs['class'] : $this->element_class,\n $this->extra_attribs);\n return $res;\n }", "public function generateFormClose() {\n\t\t$form = '';\n\t\t// add hidden fields\n\t\t$hidden_fields = $this->getHiddenFields();\n\t\tforeach ( $hidden_fields as $field => $value ) {\n\t\t\t$form .= Html::hidden( $field, $value );\n\t\t}\n\n\t\t$form .= Xml::closeElement( 'form' ); // close form 'payment'\n\t\t$form .= $this->generateDonationFooter();\n\t\t$form .= Xml::closeElement( 'td' );\n\t\t$form .= Xml::closeElement( 'tr' );\n\t\t$form .= Xml::closeElement( 'table' );\n\t\treturn $form;\n\t}" ]
[ "0.6988693", "0.6967622", "0.6670591", "0.66690964", "0.6645443", "0.6624684", "0.658716", "0.6538637", "0.6507767", "0.6494923", "0.64940757", "0.64526343", "0.6443237", "0.6441278", "0.6436432", "0.64330584", "0.6420573", "0.64115244", "0.6406136", "0.6391669", "0.63805896", "0.6355199", "0.6345065", "0.6292102", "0.62865084", "0.62861043", "0.6275617", "0.6270372", "0.6269124", "0.6260271", "0.625914", "0.62535596", "0.6240449", "0.6235363", "0.62215364", "0.62087613", "0.6192162", "0.61746174", "0.6127001", "0.6103293", "0.61031944", "0.609021", "0.6087729", "0.6082103", "0.6075562", "0.6071733", "0.60681486", "0.60589945", "0.60589856", "0.6049113", "0.60312915", "0.6019137", "0.60168767", "0.60131747", "0.59991664", "0.59776276", "0.5974069", "0.594812", "0.594245", "0.5939947", "0.59343076", "0.59329635", "0.5924441", "0.5909481", "0.5904405", "0.5889431", "0.58875567", "0.5883832", "0.588229", "0.5877134", "0.5871752", "0.58688253", "0.58669037", "0.58548266", "0.5854408", "0.5840217", "0.58287275", "0.58070135", "0.58013123", "0.5801153", "0.5800383", "0.5799416", "0.5797115", "0.57954234", "0.57869893", "0.57792133", "0.57756865", "0.57681024", "0.57664925", "0.5763949", "0.5763672", "0.5754296", "0.57448405", "0.57390976", "0.5736938", "0.5735584", "0.57302797", "0.5720987", "0.5715426", "0.57085" ]
0.60222083
51
/ closeTable() Returns a string to close up a table of the form opened by the openTable() function.
private function closeTable($extra=null){ $output = ''; if($this->_makeButton){$output .=$this->updateButton($this->_name);} $output =' </tbody> </table>'; if($extra != null) {$output .= $extra;} if($this->_makeButton){$output .=$this->updateButton($this->_name, $this->_makeButton);} $output .=' </form>'; return $output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function tableClose(Table $table) {\n $charset = explode('_', $table->getCollation())[0];\n return sprintf(config('sql.table.close'), $charset, $table->getCollation(), $table->getRowFormat(), $table->getEngine()) . \"\\n\";\n }", "abstract public function closeTableHead();", "function end_table() {\n if ($this->_cellopen) {\n $this->end_cell();\n }\n // Close any open table rows\n if ($this->_rowopen) {\n $this->end_row();\n }\n ?></table><?php\n echo \"\\n\";\n\n $this->reset_table();\n }", "public function close() {\n $this->flush();\n echo '</table>';\n }", "function endTable()\n {\n if (! $this->tableIsOpen)\n die('ERROR: TABLE IS NOT STARTED');\n \n $this->documentBuffer .= \"</table>\\n\";\n \n $this->tableIsOpen = false;\n $this->tableLastRow = 0;\n }", "function closePreviousTable()\n{\n echo \"</tbody>\";\n echo \"</table>\";\n}", "function tabletbody_close() {\n $this->doc .= DOKU_TAB.'</tbody>'.DOKU_LF;\n }", "function tablerow_close() {\n $this->doc .= DOKU_LF.DOKU_TAB.'</tr>'.DOKU_LF;\n }", "function tabletfoot_close() {\n $this->doc .= DOKU_TAB.'</tfoot>'.DOKU_LF;\n }", "function table_end(){\n\techo '</table>';\n}", "function tablethead_close() {\n $this->doc .= DOKU_TAB.'</thead>'.DOKU_LF;\n }", "protected function openTable($name, $form_id=null, $form_class=null,\n $table_id=null, $table_class=null){\n $form_attribs = '';\n $table_attribs = '';\n if($form_class != null){$form_attribs .= ' class=\"' . $form_class . '\"';}\n if($form_id != null){$form_attribs .= ' id=\"' . $form_id . '\"';}\n if($table_class != null){$table_attribs .= ' class=\"' . $table_class . '\"';}\n if($table_id != null){$table_attribs .= ' id=\"' . $table_id . '\"';}\n\n \n $output ='\n <form name=\"' . $name . '\"' . $form_attribs . ' method=\"post\">\n <table class=\"table table-hover\"' . $table_attribs . '>';\n \n return $output;\n }", "function tablecell_close() {\n $this->doc .= '</td>';\n }", "function drop_table()\n {\n if ($this->GET('sure')) {\n $this->table->drop_table();\n $this->table->write();\n unset($this->table);\n $this->tables();\n return;\n }\n $this->displayHead();\n echo 'Do you really want to<br>drop table `' . $this->table->tablename() . '`?<p>';\n echo '<a class=\"danger\" href=\"' . $this->SELF . '?method=drop_table&table=' . $this->table->tablename() . '&sure=1\">Yes</a> | ';\n echo '<a href=\"' . $this->SELF . '?method=browse&table=' . $this->table->tablename() . '\">No</a>';\n }", "function\tendTable() {\n\n\t\t/**\n\t\t *\n\t\t */\n\t\t$frm\t=\t$this->myDoc->currMasterPage->getFrameByFlowName( \"Auto\") ;\n\t\tfor ( $actRow=$this->myTable->getFirstRow( BRow::RTFooterTE) ; $actRow !== FALSE ; $actRow=$this->myTable->getNextRow()) {\n\t\t\t$this->punchTableRow( $actRow) ;\n\t\t}\n\t\t$frm->currVerPos\t+=\t$this->myTable->currVerPos ;\n\t\t$frm->currVerPos\t+=\t1.5 ;\t\t// now add the height of everythign we have output'\n\n\t\t/**\n\t\t * if there's less than 20 mm on this page\n\t\t *\tgoto next page\n\t\t */\n//\t\t$remHeight\t=\t$frm->skipLine(\t$this->myTablePar) ;\n//\t\tif ( $remHeight < mmToPt( $this->saveZone)) {\n//\t\t\t$this->tableFoot() ;\n//\t\t\t$this->myDoc->newPage() ;\n//\t\t\t$this->tableHead() ;\n//\t\t}\n\t}", "public function close_sheet($columns) {\n echo \"</table>\";\n }", "abstract public function openTableHead();", "function close()\n\t{\n\t echo <<< FORMCLOSE\n\t \n\t </form>\nFORMCLOSE;\n\t}", "function close_($value){\n\t\t//modifica chiara del 06/08/2009 - i global non funzionano su venice\n\n\t\t//global $inputval;\n\t\t//global $in;\n\t\t$in=$this->session_vars;\n\t\t$inputval=$this->db_vars;\n\n\t\t$ret='<tr id=\"'.$this->attributes['VAR'].'\" style=\"display:\">';\n\t\t$cols=$this->attributes['SUBTBCOL'];\n\t\t$txt=$this->testo;\n\t\t// echo \"{$this->attributes['VAR']}<hr>\";\n\t\t$input_html='\n <table border=0 cellpadding=0 cellspacing=0 width=100%><tr><td style=\"display:none; border: 0px solid #ddd;\" colspan=\"'.$cols.'\">&nbsp;</td>\n ';\n\t\t$col=0;\n\t\tif ($this->xml_form->form['CONT_FORM']==\"yes\")\n\t\tforeach ($this->values as $val => $decode) if (!preg_match(\"/_PROGR_/\", $val)) unset ($this->values[$val]);\n\n\t\tforeach ($this->values as $val => $decode) {\n\t\t\tif ($col==$cols) $col=0;\n\t\t\tif ($col==0) $input_html.=\"\n \t\t</tr>\n \t\t<tr>\n \t\t\";\n\t\t\t$col++;\n\t\t\t$checked=\"\";\n\t\t\t// \t\techo \"$val=$inputval[$val]<hr>\";\n\t\t\tif ($inputval[$val]==1) $checked=\"checked\";\n\t\t\t// \t\techo \"$val=$inputval[$val]- $checked<hr>\";\n\t\t\tif ($checked=='checked') $input_html.='<td style=\"border: 0px solid #ddd;\"><img src=\"/images/checkedcheck.gif\">';\n\t\t\telse $input_html.='<td style=\"border: 0px solid #ddd;\"><img src=\"/images/uncheckedcheck.gif\">';\n\t\t\tif (isset($this->xml_form->old_values[$val]) && $this->xml_form->old_values[$val]!=$inputval[$val]) $input_html.=\"<img src=\\\"images/eq_img.png\\\" width=\\\"20px\\\">\";\n\t\t\tif ($this->attributes['VALUE_TXT'][$val]!='')\n\t\t\t$this->attributes['VALUE_TXT'][$val]=\"<br><font size=1><b>\".$this->attributes['VALUE_TXT'][$val].\"</b></font>\";\n\t\t\t// \t\techo \"$input_html<hr>\";\n\t\t\t$input_html.=$decode.' '.$this->attributes['VALUE_TXT'][$val].'</td>';\n\t\t}\n\t\t$input_html.='</tr></table>';\n\t\t// \t\techo \"$input_html<hr>\";\n\t\t$this->input_txt=$txt;\n\t\t$this->input_field=$input_html;\n\t\t// \t\techo \"---------{$this->input_field}<hr>\";\n\t\tif (isset($this->attributes['COLSPAN']) and $this->cols_form>1) $ret.='<td class=\"input\" colspan=\"'.$this->cols_form.'\">'.$txt.':'.$input_html.'</td>';\n\t\telse $ret.='<td class=\"destra\" align=right>'.$txt.':</td><td class=\"input\">'.$input_html.'</td></tr>';\n\t\treturn $ret;\n\t}", "public function finish_table_export(xmldb_table $table) {\n $this->output('</table>');\n }", "function dropTable($table);", "function tabletbody_open() {\n $this->doc .= DOKU_TAB.'<tbody>'.DOKU_LF;\n }", "function printWhole($tableName)\n{\n $result = executePlainSQL(\"SELECT * FROM {$tableName}\");\n OCICommit($db_conn);\n\n echo \"<br>Table [{$tableName}]:<br>\";\n\n // table head\n $ncols = oci_num_fields($result);\n echo \"<table><tr>\";\n for ($i = 1; $i <= $ncols; $i++) {\n $column_name = oci_field_name($result, $i);\n echo \"<th>{$column_name}</th>\";\n }\n echo \"</tr>\";\n\n // table data\n while ($row = OCI_Fetch_Array($result, OCI_BOTH)) {\n echo \"<tr>\";\n for ($i = 0; $i < $ncols; $i++) {\n echo \"<td>{$row[$i]}</td>\";\n }\n echo \"</tr>\";\n }\n echo \"</table>\";\n}", "protected function endTable(PHPUnit_Extensions_Database_DataSet_ITable $table)\n {\n //do nothing\n }", "private function createTableFooter() {\n\t\treturn \"</table>\\n\";\n\t}", "function showTableFooter() {\n\techo \"\t</tbody>\";\n\techo \"</table>\";\n}", "public function open()\n {\n $view = $this->isCreater() ? 'files.rows.table_editor' : 'files.rows.table_open';\n\n return $view;\n }", "public static function renderCloseFieldset();", "function tableheader_close() {\n $this->doc .= '</th>';\n }", "function close();", "function close();", "function close();", "public function closeFunction()\n {\n $this->validateOpen();\n $function_close = \"\\t}\";\n\n fwrite($this->migration_file, $function_close);\n }", "function build_html_table_bottom(){\n\t\t\n\t\t$output = '';\n\t\t\n\t\t$output .= '\n\t\t\t\t\t</table>';\n\t\t\n\t\treturn $output;\n\t\t\n\t}", "public function setTagTable($open, $close) {\n\t\t$this->table['open'] = $open;\n\t\t$this->table['close'] = $close;\n\t}", "public function printTableRow($open)\n {\n\n print \"<tr>\\n\";\n print \"<td>&nbsp;\" . $this->email . \"&nbsp;</td>\";\n print \"<td>&nbsp;\" . $this->level . \"&nbsp;</td>\";\n if (!$open)\n print \"</tr>\\n\";\n }", "function DrawForm($scrow=true,$close_table=false) {\n\t\tif ($scrow) {\n\t\t\t$this->SaveCancelRow();\n\t\t}\n\n\t\tif ($close_table) {\n\t\t\t$this->form.=\"</table>\\n\";\n\t\t}\n\n\t\treturn $this->form;\n\t}", "function printTable($table)\r\n {\r\n //Get the column names\r\n $columnNames = array();\r\n $columns = parent::prepare(\"PRAGMA table_info($table);\");\r\n $columns->execute();\r\n foreach ($columns as $column) {\r\n array_push($columnNames, $column['name']);\r\n }\r\n\r\n //Get the table tuples\r\n $results = parent::prepare(\"SELECT * FROM $table;\");\r\n $results->execute();\r\n\r\n $out = \"\";\r\n\r\n //If there are results in the table, print the table\r\n if ($results != null) {\r\n print \"<table border=1 style='margin: 20px;border-collapse: collapse;'><tr style='padding: 4px;background: #eee;' >\";\r\n\r\n //Print each column name as headder\r\n foreach ($columnNames as $column) {\r\n $out .= \"<th style='padding: 4px;' >$column</th>\";\r\n }\r\n print $out;\r\n print \"</tr>\";\r\n\r\n //Print out the table rows\r\n while ($row = $results->fetch()) {\r\n $out = \"<tr>\";\r\n foreach ($columnNames as $column) {\r\n $out .= \"<td style='padding: 4px;'>$row[$column]</td>\";\r\n }\r\n print \"<tr>\";\r\n print $out;\r\n print \"</tr>\";\r\n }\r\n print \"</table>\";\r\n }\r\n }", "public function finish_table_export(xmldb_table $table) {\n }", "function make_table($table) {\n return print_table($table, true);\n}", "public function truncateTable($table)\n {\n return \"DELETE FROM \" . $this->quoteTableName($table);\n }", "public function showTable() {\n\t\t$tableName = $this->request->getVariable('id');\n\t\t$this->smarty->assign('dbTableObject',new $tableName());\n\t\t$this->pageDisplay('tools');\n\t}", "public function delete (){\n\n $table = new simple_table_ops();\n $table->set_id_column('timetable_id');\n $table->set_table_name('timetables');\n $table->delete();\n\n header(\"Location: http://\".WEBSITE_URL.\"/index.php?controller=timetable&action=show&submit=yes&timetable_period_id={$_GET['timetable_period_id']}\");\n }", "function showtable()\r\n {\r\n $c=$this->connector();\r\n $r='';\r\n $r.=$this->logout();\r\n $r.=\"<div id='isi'>\r\n <center><a href='?act=mysql'>Show Database</a></center><br />\r\n <table width=50% align='center' class='xpltab' cellspacing=0 ><tr><th style='border-left:thin solid #f00;'>Table</th><th>Column count</th><th>Dump</th><th>Drop</th></tr>\";\r\n $db=$_GET['db'];\r\n $query=$this->qe(\"SHOW TABLES FROM $db\");\r\n while($data=mysql_fetch_array($query))\r\n {\r\n\r\n $iml=$this->qe(\"SHOW COLUMNS FROM $db.$data[0]\");\r\n $h=(mysql_num_rows($iml))?mysql_num_rows($iml):0;\r\n $r.= \"<tr><td><a href='?act=showcon&db=$db&table=$data[0]'>$data[0]</td><td>$h</td><td><a href='?act=downdb&db=$db&table=$data[0]'>Dump</a></td><td><a href='?act=dropdb&db=$db&tbl=$data[0]'>Drop</a></td></tr>\";\r\n \r\n }\r\n \r\n $r.= \"</table>\".$this->sqlcommand().\"</div>\";\r\n return $r;\r\n $this->free($query);\r\n $this->free($iml);\r\n mysql_close($c);\r\n }", "private function loadTable()\n {\n $unites = $this->Unite->all([], 'uniid DESC');\n $i = 1;\n $html = '';\n\n foreach ($unites as $unite) {\n $html .= '<tr>' .\n '<td>' . $i ++ . '</td>' .\n '<td>' . $unite->unilibelle . '</td>' .\n '<td>' . $unite->uniabv . '</td>' .\n '<td>';\n if (in_array('113', $this->session->stkdroits)) {\n $html .= '<a data-toggle=\"modal\" href=\"#editeUnite\" onclick=\"laodForEditUnite(' . $unite->uniid . '); return false\" title=\"editer\"><i class=\"fa fa-edit\" style=\"color: #05AE0E;\"></i></a>';\n } else {\n $html .= '<a href=\"javascript: void(0)\" class=\"disabled\" title=\"editer\"><i class=\"fa fa-edit\"></i></a>';\n }\n if (in_array('112', $this->session->stkdroits)) {\n $html .= '<a data-toggle=\"modal\" href=\"#deletUnite\" onclick=\"laodDataForDeleteUnite(' . $unite->uniid . '); return false;\" title=\"supprimer\"><i class=\"fa fa-remove\" style=\"color: #FF3B30;\"></i></a>';\n }else {\n $html .= '<a href=\"javascript: void(0)\" class=\"disabled\" title=\"editer\"><i class=\"fa fa-remove\"></i></a>';\n }\n $html .= '</td>' .\n '</tr>';\n }\n\n return $html;\n }", "public function formClose()\n {\n return $this->renderHtmlForm('CloseStub');\n }", "public static function writeTable($data = false, $tableInfo = false)\n\t{\n\t\tif($data)\n\t\t{\n\t\t\t$args\t\t= \"\";\n\t\t\t$colKeys\t= false;\n\t\t\t$titles\t\t= false;\n\t\t\t\n\t\t\t//Search and collect information about the table in $tableInfo\n\t\t\t//High priority is given to $tableInfo(second parameter)\n\t\t\tif(!$tableInfo) $tableInfo = $data['tableInfo'];\n\t\t\telseif($data['tableInfo']) $tableInfo = array_replace_recursive($data['tableInfo'], $tableInfo);\n\t\t\tunset($data['tableInfo']);\n\t\t\t\n\t\t\tif($tableInfo)\n\t\t\t{\n\t\t\t\t//Following work will be happening with global variable $info\n\t\t\t\tself::$info = $tableInfo;\n\t\t\t\tunset($tableInfo);\n\t\t\t\t\n\t\t\t\t//Collecting information about columns(titles and column keys)\n\t\t\t\tif(self::$info['cols'])\n\t\t\t\t{\n\t\t\t\t\t$colKeys\t=\tself::getColKeys(self::$info['cols']);\n\t\t\t\t\t$titles\t\t=\tself::getTitles(self::$info['cols']);\n\t\t\t\t\tunset(self::$info['cols']);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Collecting HTML parameters for table\n\t\t\t\t$args = self::convertRulesToHtml(self::$info);\n\t\t\t}\n\t\t\t//Height of each row will be calculated automatically by the default\n\t\t\tif(!isset(self::$info['rowspan'])) self::$info['rowspan'] = true;\n\t\t\t\n\t\t\tself::$html .= \"\\n\t<table{$args}>\";\n\t\t\t\n\t\t\t//If title was set then write\t\n\t\t\tif(is_array($titles) && sizeof($titles))\n\t\t\t{\n\t\t\t\tself::$html .= \"\\n\t\t<tr>\";\n\t\t\t\tforeach($titles as $title)\n\t\t\t\t{\n\t\t\t\t\tself::$html .= \"\\n\t\t\t<th>{$title}</th>\";\n\t\t\t\t}\n\t\t\t\tself::$html .= \"\\n\t\t</tr>\";\n\t\t\t}\n\t\t\t\n\t\t\t//Write the rows\n\t\t\tforeach($data as $info)\n\t\t\t{\n\t\t\t\tself::writeRow($info, $colKeys);\n\t\t\t}\n\t\t\t\n\t\t\tself::$html .= \"\\n\t</table>\";\n\t\t\t\n\t\t\t$html = self::$html;\n\t\t\t//Clearing of global variables for the next use a static class\n\t\t\tself::$info = false;\n\t\t\tself::$html = \"\";\n\t\t\t\n\t\t\treturn $html;\n\t\t}\n\t}", "public function write() {\n\t\t$table = '<table '.$this->addHTML.'>';\n\t\tif(!is_null($this->tableInfo['head'])) {\n\t\t\t$table .= '<thead><tr>';\n\t\t\tforeach($this->tableInfo['head'] as $value) {\n\t\t\t\t$table .= '<th>'.$value.'</th>';\n\t\t\t}\n\t\t\tif($this->crud) {\n\t\t\t\t\t$table .= '<th>Options</th>';\t\n\t\t\t}\n\t\t\t$table .= '</tr></thead>';\n\t\t}\n\t\t$table .= '<tbody>';\n\t\tif(isset($this->tableInfo['rows'])) {\n\t\t\tforeach($this->tableInfo['rows'] as $row) {\n\t\t\t\t$table .= '<tr>';\n\t\t\t\tforeach($row as $key => $column) {\n\t\t\t\t\tif(($key != $this->crud_id) OR $this->show_crud_id) {\n\t\t\t\t\t\t$table .= '<td>'.$column.'</td>';\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif($this->crud && isset($row[$this->crud_id])) {\n\t\t\t\t\t$table .= '<td>';\n\t\t\t\t\t$table .= '<a href=\"'.$this->crudPath.'Details/'.$row[$this->crud_id].'\" title=\"Details\"><i class=\"fa fa-search\"></i></a> | ';\n\t\t\t\t\t$table .= '<a href=\"'.$this->crudPath.'Edit/'.$row[$this->crud_id].'\" title=\"Edit\"><i class=\"fa fa-wrench\"></i></a> | ';\n\t\t\t\t\t$table .= '<a href=\"'.$this->crudPath.'Delete/'.$row[$this->crud_id].'\" title=\"Delete\"><i class=\"fa fa-trash\"></i></a>';\n\t\t\t\t\t$table .= '</td>';\n\t\t\t\t}\n\t\t\t\t$table .= '</tr>';\n\t\t\t}\n\t\t} else {\n\t\t\t$table .= '<tr>';\n\t\t\t$table .= '<td>';\n\t\t\t$table .= 'No Data to show here.';\n\t\t\t$table .= '</td>';\n\t\t\t$table .= '</tr>';\t\n\t\t}\n\t\t\n\t\t$table .= '</tbody></table>';\n\t\treturn $table;\n\t}", "public function ListTable()\n {\n echo $this->ListTableText();\n }", "function DeleteRangeForm($strDatabase, $strTable, $strPK)\n{\n\t//gus mueller, nov 26 2006\n\t$strClassFirst=\"bgclassfirst\";\n\t$strLineClass=\"bgclassline\";\n\t$strOtherBgClass=\"bgclassother\";\n\t$out= \"\";\n\t$preout= \"\";\n\t$preout.= adminbreadcrumb(false, $strDatabase, \"tf.php?\" . qpre . \"db=\" . $strDatabase, \"db tools\", $strPHP . \"?\" . qpre . \"db=\" . $strDatabase, \"Delete range of IDs from this table and dependent rows in other tables\", \"\") ;\n\t//$out.= AdminNav(true);\n\t\n\t$preout.= \"<form method=\\\"post\\\" name=\\\"BForm\\\" action=\\\"tf_delete_range.php\\\">\\n\";\n \t// TextInput(qpre .\"table\", $strTable, \"30\",\"\", \"\", \"\")\n\t$out.=htmlrow(\"bgclassline\", \"table name:\",\n\t\tTableDropdown($strDatabase,$strTable, qpre .\"table\" )\n\t);\n\t$out.=htmlrow(\"bgclassfirst\", \"start:\",\n\t TextInput(qpre .\"low\", \"\", \"30\",\"\", \"\", \"\")\n\t \n\t);\n\t$out.=htmlrow(\"bgclassfirst\", \"end:\",\n\t TextInput(qpre .\"high\", \"\", \"30\",\"\", \"\", \"\")\n\t \n\t);\n\t\n\t$out.=\"<tr>\\n\";\n\t$out.=\"<td align=\\\"right\\\" colspan=\\\"2\\\">\\n\";\n\t//$out.=CheckboxInput(qpre . \"directediting\", 1, $bwlDirectediting, \"\", \"\", \"\") . \"allow direct editing of results \";\n\t//$out.=\"&nbsp;&nbsp;&nbsp;&nbsp;\";\n \t//$out.=CheckboxInput(qpre . \"truncate\", 1, $trunc, \"\", \"\", \"\") . \"truncate fields\";\n\t$out.=\"<input type=\\\"Submit\\\" class=\\\"btn\\\" onmouseover=\\\"this.className='btn btnhov'\\\" onmouseout=\\\"this.className='btn'\\\" value=\\\"Delete Range\\\">\";\n\t$out.=\"</td>\\n\";\n\t$out.=\"</tr>\\n\";\n\t$out=$preout . TableEncapsulate($out, false);\n\t$out.=\"</form>\";\n\treturn $out;\n}", "function tabletfoot_open() {\n $this->doc .= DOKU_TAB.'<tfoot>'.DOKU_LF;\n }", "function close() {}", "function printTable ($backArray, $geoArray, $socArray, $enerArray, $commArray) {\n \n \n // Variables to check the categories array sizes\n $backSize = count($backArray);\n $geoSize = count($geoArray);\n $socSize = count($socArray);\n $enerSize = count($enerArray);\n $commSize = count($commArray);\n \n \n // Error checking if nothing was selected\n \n if ($backSize != 0 || $geoSize != 0 || $socSize != 0 || $enerSize != 0 || $commSize != 0) {\n \n // open the table border\n print \"<table><tr>\";\n \n if ($backSize != 0) {\n \n for ($i = 0; $i < $backSize; $i++) {\n \n if ($backArray[$i][0] == 0) {\n \n $cleanStr = substr_replace($backArray[$i], \"\", 0,1);\n \n print \"<th>\" . $cleanStr . \"</th>\";\n \n }\n if ($backArray[$i][0] == 1) {\n \n print \"<tr>\";\n \n $cleanStr1 = substr_replace($backArray[$i], \"\", 0,1);\n \n print \"<td>\" . $cleanStr1 . \"</td>\";\n \n }\n \n if ($backArray[$i][0] == 2) {\n \n $cleanStr2 = substr_replace($backArray[$i], \"\", 0,1);\n \n print \"<td>\" . $cleanStr2 . \"</td>\";\n \n print \"</tr>\";\n \n }\n }\n }\n \n if ($geoSize != 0) {\n \n for ($i = 0; $i < $geoSize; $i++) {\n \n if ($geoArray[$i][0] == 0) {\n \n $cleanStr = substr_replace($geoArray[$i], \"\", 0,1);\n \n print \"<th>\" . $cleanStr . \"</th>\";\n }\n \n if ($geoArray[$i][0] == 1) {\n \n print \"<tr>\";\n \n $cleanStr1 = substr_replace($geoArray[$i], \"\", 0,1);\n \n print \"<td>\" . $cleanStr1 . \"</td>\";\n }\n \n if ($geoArray[$i][0] == 2) {\n \n $cleanStr2 = substr_replace($geoArray[$i], \"\", 0,1);\n \n print \"<td>\" . $cleanStr2 . \"</td>\";\n \n print \"</tr>\";\n \n }\n }\n }\n \n if ($socSize != 0) {\n for ($i = 0; $i < $socSize; $i++) {\n \n if ($socArray[$i][0] == 0) {\n \n $cleanStr = substr_replace($socArray[$i], \"\", 0,1);\n \n print \"<th>\" . $cleanStr . \"</th>\";\n }\n if ($socArray[$i][0] == 1) {\n \n print \"<tr>\";\n \n $cleanStr1 = substr_replace($socArray[$i], \"\", 0,1);\n \n print \"<td>\" . $cleanStr1 . \"</td>\";\n \n }\n if ($socArray[$i][0] == 2) {\n \n $cleanStr2 = substr_replace($socArray[$i], \"\", 0,1);\n \n print \"<td>\" . $cleanStr2 . \"</td>\";\n \n print \"</tr>\";\n }\n }\n }\n if ($enerSize != 0) { \n \n for ($i = 0; $i < $enerSize; $i++) {\n \n if ($enerArray[$i][0] == 0) {\n \n $cleanStr = substr_replace($enerArray[$i], \"\", 0,1);\n \n print \"<th>\" . $cleanStr . \"</th>\";\n }\n \n if ($enerArray[$i][0] == 1) {\n \n print \"<tr>\";\n \n $cleanStr1 = substr_replace($enerArray[$i], \"\", 0,1);\n \n print \"<td>\" . $cleanStr1 . \"</td>\";\n \n }\n \n if ($enerArray[$i][0] == 2) {\n \n $cleanStr2 = substr_replace($enerArray[$i], \"\", 0,1);\n \n print \"<td>\" . $cleanStr2 . \"</td>\";\n \n print \"</tr>\";\n \n }\n }\n } \n if ($commSize != 0) { \n \n for ($i = 0; $i < $commSize; $i++) {\n if ($commArray[$i][0] == 0) {\n \n $cleanStr = substr_replace($commArray[$i], \"\", 0,1);\n \n print \"<th>\" . $cleanStr . \"</th>\";\n }\n if ($commArray[$i][0] == 1) {\n \n print \"<tr>\";\n \n $cleanStr1 = substr_replace($commArray[$i], \"\", 0,1);\n \n print \"<td>\" . $cleanStr1 . \"</td>\";\n \n }\n if ($commArray[$i][0] == 2) {\n \n $cleanStr2 = substr_replace($commArray[$i], \"\", 0,1);\n \n print \"<td>\" . $cleanStr2 . \"</td>\";\n \n print \"</tr>\";\n }\n }\n }\n print \"</tr></table>\";\n \n print \"<hr>\";\n \n echo \"<h3>\" . \"Chart of the Data Selected\" . \"</h2>\";\n \n }\n else {\n echo \"<h2>\" . \"No data Selected\" . \"</h2>\";\n \n }\n }", "public static function tableName(): string;", "function delete_screen() {\n\n $query = \"SELECT * FROM failure;\";\n $failures = select($query);\n\n $bg1 = GRAY;\n $bg2 = LGRAY;\n $sp = '&nbsp;';\n\n $columns = array(\n '_params',\n '_values',\n # 'first_occurence', # WHY ISN'T THIS SHOWING UP IN THE TABLE?\n );\n\n $tables .= \"\\n\\t<table width='40%' align='center' \" .\n \"border='1' cellspacing='1'>\" .\n \"\\n<th colspan='2' bgcolor='$bg1'>MTT Failure Tracking\";\n\n foreach (array_keys($failures) as $i) {\n $id = $failures[$i]['failure_id'];\n\n $tables .=\n \"\\n\\t<tr>\" .\n \"\\n\\t<th colspan='2' bgcolor='$bg1' align='left'>\" .\n \"\\n\\t<input type='checkbox' name='del_$id'>${sp}$id\";\n\n foreach ($columns as $col) {\n $value = $failures[$i][$col];\n $value = preg_replace(\"/\\||;/\", \" \\1 \", $value);\n\n $tables .= \"\\n\\t<tr>\" .\n \"\\n\\t<td bgcolor='$bg2' width='33%'>\" .\n \"\\n\\t${sp}<b>\" . label($col) . \"</b>\" .\n \"\\n\\t<td bgcolor='$bg2' width='67%'>\" .\n \"\\n\\t${sp}$value\";\n\n }\n }\n\n $href = link_to_screen(\"Insert\");\n\n $tables .= \"\\n<tr><th colspan='2' bgcolor='$bg1'>\" .\n \"\\n<input type='submit' \" .\n \"id='go' \" .\n \"name='go' \" .\n \"value='Delete'>\" .\n \"\\n$sp\" .\n # \"\\n<input type='submit' \" .\n # \"name='cancel' \" .\n # \"onclick='javascript:window.close();' \" .\n # \"value='Cancel'>\" .\n \"\\n$sp\" .\n \"\\n$href\" .\n \"\\n</table>\";\n\n $help .= \"\\n<p>Checkbox the failures you would like to delete.</p>\";\n\n # Print tiny link in a tiny window\n # THIS BLOCK IS IN TWO FUNCTIONS!\n print \"\\n\" . $tables .\n \"\\n\" . $help;\n}", "private function closeCell()\n {\n foreach (array('td', 'th') as $cell) {\n if ($this->elementInScope($cell, true)) {\n $this->inCell(\n array(\n 'name' => $cell,\n 'type' => HTML5::ENDTAG\n )\n );\n\n break;\n }\n }\n }", "public function getTableOfContents();", "public function action_close()\n\t{\n\t\treturn \"</div>\\n\";\n\t}", "function edit_table($table_name){\n\t\t\t$link = 'index.php?module=extends&view=tables&task=edit&tablename='.\t$table_name;\n\t\t\treturn '<a href=\"'.$link.'\" target=\"_blink\">Sửa bảng</a>';\t\t\n\t\t}", "public function truncateTable($tableName);", "public function edit (){\n $connection = new database();\n $table = new simple_table_ops();\n\n $id = $_GET['id']; // timetable_id\n $content = \"<div class='link_button'>\n <a href='?controller=teachers&action=export'>Export to EXCEL</a>\n <a href='?controller=curricula&action=index'>Curricula</a>\n </div>\";\n\n $content .= \"<div class='third_left'>\";\n $content .='<p>You can configure the timetable for the following course:<p>';\n\n $sql = \"SELECT curricula.curriculum_id, CONCAT (teachers.nom, ' ', teachers.prenom, ' | ', teachers.nom_khmer, ' ', teachers.prenom_khmer, ' | ', sexes.sex) as teacher, subjects.subject, levels.level\n FROM curricula\n JOIN courses ON curricula.course_id = courses.course_id\n JOIN subjects ON curricula.subject_id = subjects.subject_id\n JOIN teachers ON teachers.teacher_id = curricula.teacher_id\n JOIN sexes ON teachers.sex_id = sexes.sex_id\n JOIN levels ON courses.level_id = levels.level_id\n JOIN timetables ON timetables.curriculum_id = curricula.curriculum_id\n WHERE timetables.timetable_id = {$_GET['id']}\";\n\n $curricula_data = $connection->query($sql);\n\n if ($connection->get_row_num() == 0) {\n header(\"Location: http://\".WEBSITE_URL.\"/index.php?controller=curricula&action=index\");\n }\n\n $curricula_data = $curricula_data[0];\n\n $content .='Teacher: '.$curricula_data['teacher'].'<br>';\n $content .='Subject: '.$curricula_data['subject'].'<br>';\n $content .='Level: '.$curricula_data['level'].'<br>';\n\n\n $columns = array ('start_time_id, end_time_id, weekday_id, classroom_id, timetable_period_id');\n\n $neat_columns = array ('Start Time', 'End Time', 'Week Day', 'Classroom', 'Time Period' , 'Update', 'Delete');\n // create curriculum_id array\n $sql = \"SELECT curriculum_id FROM timetables WHERE timetable_id = {$id}\";\n\n $curriculum_id_result = $connection->query($sql);\n $curriculum_id_array = $curriculum_id_result[0];\n\n // time_id, weekday_id, curriculum_id, classroom_id,\n $sql = 'SELECT time_id as start_time_id, time_class as time1 FROM time ORDER BY time_id ASC';\n $time1_result = $connection->query($sql);\n\n $sql = 'SELECT time_id as end_time_id, time_class as time2 FROM time ORDER BY time_id ASC';\n $time2_result = $connection->query($sql);\n\n $sql = 'SELECT weekday_id, weekday FROM weekdays ORDER BY weekday_id';\n $weekdays_result = $connection->query($sql);\n\n $sql = \"SELECT timetable_period_id, CONCAT(nom, ', from ', date_from, ' to ', date_to) as timetable_period FROM timetable_periods ORDER BY date_from\";\n $timetable_periods_result = $connection->query($sql);\n\n $sql = 'SELECT classroom_id, classroom FROM classrooms ORDER BY classroom ASC';\n $classrooms_result = $connection->query($sql);\n\n $drop_down = array(\n 'start_time_id' => array('start_time' => $time1_result),\n 'end_time_id' => array('end_time' => $time2_result),\n 'weekday_id' => array('weekday' => $weekdays_result),\n 'timetable_period_id'=>array('timetable_period'=> $timetable_periods_result),\n 'classroom_id' => array('classroom' => $classrooms_result)\n );\n\n /********************************************************************/\n /* CONFIGURES Form structure */\n\n $form = array(\n 'action' => '?controller=timetable&action=update&id='.$id,\n 'div' => \"class='solitary_input'\",\n 'div_button' => \"class='submit_button1'\",\n 'method' => 'post',\n 'action_links' => array(1 => array('delete', '?controller=timetable&action=delete&id=')),\n 'id' => 'top_form',\n 'elements' => array(\n 1 => array ('hidden' => $curriculum_id_array),\n 3 => array ('drop_down' => 'start_time_id'),\n 4 => array ('drop_down' => 'end_time_id'),\n 5 => array ('drop_down' => 'weekday_id'),\n 6 => array ('drop_down' => 'classroom_id'),\n 7 => array ('drop_down' => 'timetable_period_id'),\n 10 => array ('submit' => 'update')\n )\n );\n\n $table->set_top_form($form);\n\n $table->set_table_name('timetables');\n $table->set_id_column('timetable_id');\n\n $table->set_table_column_names($columns);\n $table->set_html_table_column_names($neat_columns);\n\n $table->set_values_form(); // set values found in database into form elements when building top_form\n $table->set_drop_down($drop_down);\n $table->set_form_array($form);\n\n $content .= \"</div>\";\n\n $content .= \" <div class='two_thirds_right'><table>\".$table->details().'</table></div>';\n $output['content'] = $content;\n return $output;\n }", "public function close()\n {\n $this->form = null;\n $this->fields = null;\n\n return '</form>';\n }", "public static function close()\n\t{\n\t\treturn '</form>';\n\t}", "function _delete ($table_name) {\n\t\treturn \"DELETE FROM `{$table_name}`\";\n\t}", "function WriteTable($tcolums)\n {\n for ($i = 0; $i < sizeof($tcolums); $i++)\n {\n $current_col = $tcolums[$i];\n $height = 0;\n \n // get max height of current col\n $nb=0;\n for($b = 0; $b < sizeof($current_col); $b++)\n {\n // set style\n $this->SetFont($current_col[$b]['font_name'], $current_col[$b]['font_style'], $current_col[$b]['font_size']);\n $color = explode(\",\", $current_col[$b]['fillcolor']);\n $this->SetFillColor($color[0], $color[1], $color[2]);\n $color = explode(\",\", $current_col[$b]['textcolor']);\n $this->SetTextColor($color[0], $color[1], $color[2]); \n $color = explode(\",\", $current_col[$b]['drawcolor']); \n $this->SetDrawColor($color[0], $color[1], $color[2]);\n $this->SetLineWidth($current_col[$b]['linewidth']);\n \n $nb = max($nb, $this->NbLines($current_col[$b]['width'], $current_col[$b]['text'])); \n $height = $current_col[$b]['height'];\n } \n $h=$height*$nb;\n \n \n // Issue a page break first if needed\n $this->CheckPageBreak($h);\n \n // Draw the cells of the row\n for($b = 0; $b < sizeof($current_col); $b++)\n {\n $w = $current_col[$b]['width'];\n $a = $current_col[$b]['align'];\n \n // Save the current position\n $x=$this->GetX();\n $y=$this->GetY();\n \n // set style\n $this->SetFont($current_col[$b]['font_name'], $current_col[$b]['font_style'], $current_col[$b]['font_size']);\n $color = explode(\",\", $current_col[$b]['fillcolor']);\n $this->SetFillColor($color[0], $color[1], $color[2]);\n $color = explode(\",\", $current_col[$b]['textcolor']);\n $this->SetTextColor($color[0], $color[1], $color[2]); \n $color = explode(\",\", $current_col[$b]['drawcolor']); \n $this->SetDrawColor($color[0], $color[1], $color[2]);\n $this->SetLineWidth($current_col[$b]['linewidth']);\n \n $color = explode(\",\", $current_col[$b]['fillcolor']); \n $this->SetDrawColor($color[0], $color[1], $color[2]);\n \n \n // Draw Cell Background\n $this->Rect($x, $y, $w, $h, 'FD');\n \n $color = explode(\",\", $current_col[$b]['drawcolor']); \n $this->SetDrawColor($color[0], $color[1], $color[2]);\n \n // Draw Cell Border\n if (substr_count($current_col[$b]['linearea'], \"T\") > 0)\n {\n $this->Line($x, $y, $x+$w, $y);\n } \n \n if (substr_count($current_col[$b]['linearea'], \"B\") > 0)\n {\n $this->Line($x, $y+$h, $x+$w, $y+$h);\n } \n \n if (substr_count($current_col[$b]['linearea'], \"L\") > 0)\n {\n $this->Line($x, $y, $x, $y+$h);\n }\n \n if (substr_count($current_col[$b]['linearea'], \"R\") > 0)\n {\n $this->Line($x+$w, $y, $x+$w, $y+$h);\n }\n \n \n // Print the text\n $this->MultiCell($w, $current_col[$b]['height'], $current_col[$b]['text'], 0, $a, 0);\n \n // Put the position to the right of the cell\n $this->SetXY($x+$w, $y); \n }\n \n // Go to the next line\n $this->Ln($h); \n } \n }", "public static function getTable() : string {\n\t\t$namespacedClassParts = explode(\"\\\\\", get_called_class());\n\t\t$table = array_pop($namespacedClassParts);\n\t\t$table = preg_replace(\"/([a-z0-9])([A-Z0-9])/\", '$1_$2', $table);\n\t\t$table = strtolower($table);\n\t\treturn $table;\n\t}", "function deleteThisDatabaseTable($databaseTableName=false) {\n\t// deleteTable, which is being called from this page: \n\t// \n\t// http://craigbuilders.cat4dev.com/authorized/development/index.php?formName=deleteTableForm.htm\n\t//\n\t// deleteTable fetches an array from the form input of database table names to delete, and each\n\t// table name is fed to this function, one at a time.\n\n\tglobal $controller; \n\n\tif (is_string($databaseTableName) && $databaseTableName != \"\") {\n\t\t$query = \"DROP TABLE IF EXISTS $databaseTableName\";\n\t\t$result = $controller->command(\"makeQuery\", $query, \"deleteThisDatabaseTable\"); \n\t\tif ($result) {\n\t\t\t// 11-09-06 - we will try to delete all the forms associated with this table name\n\t\t\t//\n\t\t\t// 01-23-07 - too tightly coupled. We will call deleteForms from deleteTableForm.htm\n\t\t\t//\n\t\t\t//$controller->command(\"deleteForms\", $databaseTableName); \n\t\t\treturn \"success\"; \t\n\t\t} else {\n\t\t\treturn \"failure\"; \n\t\t}\n\t} else {\n\t\t$controller->error(\"In deleteThisDatabaseTable we expected to be given the name of a database table, but we were only handed this: '$databaseTableName'.\"); \n\t}\n}", "public function close()\n\t{\n\t\treturn '</form>';\n\t}", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public function close();", "public static function close(){\n\t\t\treturn '</form>';\n\t\t}", "public function read_table( $infile = false ){\n\t\t$tab = '';\n\t\tif( $infile ){\n\t\t\tif( $this->get_debug() )\n\t\t\t\techo \"In file TRUE!!!<br/>\";\n\t\t\t\t\n\t\t\tif( $this->get_title() != false )\n\t\t\t\t$tab .= $this->get_title().'\n';\n\t\t\t$tab .= $this->read_head( $infile );\n\t\t\t$tab .= $this->read_body( $infile );\n\t\t\t$tab .= $this->read_foot( $infile );\n\t\t}else{\n\t\t\tif( $this->get_debug() )\n\t\t\t\techo \"In file FALSE!!!<br/>\";\n\t\t\t$tab = parent::read_table();\n\t\t}\n\t\treturn $tab;\n\t}", "public function getTableDescription();", "protected function table () : string {\n return $this->guessName();\n }", "public static function getTableName()\n\t{\n\t\treturn 'b_disk_onlyoffice_document_info';\n\t}", "public function displayBuildingTable()\n {\n echo \"\n <tr>\n <td>\" . getBuildingRoomCount( $this->id ) . \"</td>\n <td>\n <a href='helper/buildVncFile.php?buildingId=\" . $this->id . \"' class='btn medium bg-blue-alt tooltip-button' data-placement='top' title='Building Info'>\n <i class='glyph-icon icon-info'></i>\n </a>\n <a href='buildingRooms.php?buildingId=\" . $this->id . \"' class='btn medium bg-black font-white tooltip-button' data-placement='top' title='Rooms in Building'>\n <i class='glyph-icon icon-building-o'></i>\n </a>\n </td>\n <td class='font-bold text-left'>\" . $this->name . \"</td>\n <td class='font-bold text-left'>\" . $this->description . \"</td>\n </tr>\n \";\n }", "function dropTable($conn, $table)\n {\n $sqlStr = \"DROP TABLE IF EXISTS $table;\";\n $query = $conn->query($sqlStr);\n if($conn->error) die($conn->error);\n else\n echo \"Dropped \".$table.\" Table.<br />\";\n }", "public function _end_block()\n\t{\n\t\t//echo '</table>';\n\t}", "function print_table($database_connection, $table_name) {\r\n\r\n $attributes = get_attributes($database_connection, $table_name);\r\n $tuples = get_rows($database_connection, $table_name);\r\n\r\n print(\"<table>\\n\");\r\n print(\"<tr>\\n\");\r\n for($i = 0; $i < count($attributes); $i++) {\r\n print(\"<th>{$attributes[$i]}</th>\\n\");\r\n }\r\n print(\"</tr>\\n\");\r\n for($j = 0; $j < count($tuples); $j++) {\r\n print(\"<tr>\\n\");\r\n foreach($attributes as $attribute) {\r\n print(\"<td>{$tuples[$j][$attribute]}</td>\\n\");\r\n }\r\n print(\"</tr>\\n\");\r\n }\r\n\r\n print(\"</table>\\n\");\r\n }", "public function finish_table_export(xmldb_table $table) {\n $this->importer->finish_table_import($table->getName());\n }" ]
[ "0.741302", "0.7045103", "0.67309123", "0.6493328", "0.63494724", "0.63455665", "0.618616", "0.6072577", "0.5910637", "0.58796483", "0.5637625", "0.56033975", "0.55941254", "0.55237365", "0.5503085", "0.5453474", "0.5402733", "0.53734887", "0.53462714", "0.53325015", "0.52458835", "0.52307016", "0.5188989", "0.51692337", "0.50993526", "0.508592", "0.50835603", "0.50567895", "0.50349236", "0.50171727", "0.50171727", "0.50171727", "0.50108016", "0.49821943", "0.49615204", "0.49401975", "0.4931202", "0.491082", "0.49090937", "0.49068916", "0.4904093", "0.48997208", "0.48864493", "0.4880601", "0.4871021", "0.4864113", "0.48611823", "0.48409018", "0.48383406", "0.48336577", "0.4824458", "0.48228666", "0.48038402", "0.47994938", "0.4786622", "0.47828844", "0.4778679", "0.4774341", "0.47616947", "0.4757522", "0.47416875", "0.4713326", "0.47128302", "0.4701283", "0.46970925", "0.46902815", "0.46794063", "0.46747333", "0.4670529", "0.4670529", "0.4670529", "0.4670529", "0.4670529", "0.4670529", "0.4670529", "0.4670529", "0.4670529", "0.4670529", "0.4670529", "0.4670529", "0.4670529", "0.4670529", "0.4670529", "0.4670529", "0.4670529", "0.4670529", "0.4670529", "0.4670529", "0.4670529", "0.4670529", "0.46699744", "0.46649015", "0.46399897", "0.46389616", "0.4638263", "0.46352696", "0.46337286", "0.46327558", "0.46318913", "0.46302703" ]
0.64357775
4
Transforms a user record into a user model
public function __invoke(array $record) : UserModelInterface;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function transform(array $record) : UserModelInterface;", "protected function getUserModel() {\n return new User();\n }", "protected function buildDomainObject($row) {\n $user = new User();\n $user->setId($row['user_id']);\n $user->setEmail($row['user_email']);\n $user->setLastname($row['user_lastname']);\n $user->setFirstname($row['user_firstname']);\n $user->setPassword($row['user_password']);\n $user->setSalt($row['user_salt']);\n $user->setAddress($row['user_address']);\n $user->setTown($row['user_town']);\n $user->setZipcode($row['user_zipcode']);\n $user->setRole($row['user_role']);\n return $user;\n }", "public function convert() {\n $this->user->convert();\n }", "protected function buildDomainObject($row)\n {\n $user = new User();\n $user->setId($row['rowid']);\n $user->setUsername($row['username']);\n $user->setFirstname($row['firstname']);\n $user->setEmail($row['email']);\n $user->setBusiness($row['business']);\n $user->setPassword($row['password']);\n $user->setSalt($row['salt']);\n $user->setRole($row['role']);\n return $user;\n }", "public function transformUsers() {\n $saUsers = $this->kalturaUser->getAll();\n foreach ($saUsers as $key => $saUser){\n /**\n * @var $saUser KalturaUser\n */\n $dwUser = new DwUser();\n $dwUser->setId(\n $this->anonymize->anonymizeUser($saUser->getKalturaUserId())\n );\n $dwUser->setType(\n $this->typeOfUser($saUser->getKalturaUserId())\n );\n $dwUser->setCreatedAt($saUser->created_at);\n $dwUser->setUpdatedAt($saUser->updated_at);\n try{\n $dwUser->save();\n } catch (Exception $e) {\n var_dump($e->getMessage());\n die;\n }\n };\n }", "public static function user_from_row($row) {\r\n $result = new User(UserService::get_key($row,\"UserId\"),UserService::get_key($row,\"Email\"),UserService::get_key($row,\"UserType\"));\r\n $result->set_first_name(UserService::get_key($row,\"FirstName\"));\r\n $result->set_last_name(UserService::get_key($row,\"LastName\"));\r\n $result->set_home_phone(UserService::get_key($row,\"HomePhone\"));\r\n $result->set_mobile_phone(UserService::get_key($row,\"MobilePhone\"));\r\n $result->set_address_1(UserService::get_key($row,\"Address1\"));\r\n $result->set_address_2(UserService::get_key($row,\"Address2\"));\r\n $result->set_city(UserService::get_key($row,\"City\"));\r\n $result->set_state(UserService::get_key($row,\"State\"));\r\n $result->set_zip(UserService::get_key($row,\"ZipCode\"));\r\n $result->set_organization_id(UserService::get_key($row,\"OrganizationId\"));\r\n return $result;\r\n }", "function getUser($model)\n\t{\n\t\t$user = $this->users->find($model->idUser);\n\t\t$model->nameUser = $user->name;\n\t\t$model->scoreUser = $user->score;\n\t\t$model->emailUser = $user->email;\n\t\treturn $model;\n\t}", "abstract protected function mapUserToObject(array $user): User;", "protected function createObjectFromRow($row) {\n return new User($row);\n }", "public function transform(User $model)\n {\n return [\n 'ID' => (int)$model->ID,\n 'user_login' => $model->user_login,\n 'user_nicename' => $model->user_nicename,\n 'user_email' => $model->user_email,\n 'user_url' => $model->user_url,\n 'user_registered' => $model->user_registered->toDateTimeString(),\n 'user_status' => $model->user_status,\n 'display_name' => $model->display_name\n ];\n }", "protected function mapUserToObject(array $user)\n {\n\n $result = new User();\n\n $result->name = $user['displayName'];\n $result->email = $user['mail'];\n $result->provideUserId = $user['internal_id'];\n\n return $result;\n }", "public function mapRow($row)\n {\n $object = new IntercomUser();\n $object->setId ( $row['id'] );\n $object->setIntercomAppId ( $row['intercom_app_id'] );\n $object->setItemId ( $row['item_id'] );\n $object->setItemUserId ( $row['item_user_id'] );\n $object->setEmail ( $row['email'] );\n $object->setOriginContent ( unserialize($row['origin_content']) );\n $object->setProperties ( unserialize($row['properties']) );\n $object->setCreatedAt ( strtotime($row['created_at']) );\n $object->setUpdatedAt ( strtotime($row['updated_at']) );\n return $object;\n }", "public static function LoadWithData($row)\n \t{\n \t\treturn new Users_model(\n \t\t\t$row->user_signup_id,\n \t\t\t$row->email,\n \t\t\t$row->name,\n \t\t\t$row->school,\n \t\t\t$row->city,\n \t\t\t$row->exam\n \t\t);\n \t}", "public function convert()\n\t{\n\t\tif (isset($this->fb_data['id'])) \n\t\t{\n\t\t\t$this->user->set_facebook_id($this->fb_data['id'], TRUE);\n\t\t}\n\t\tif (isset($this->fb_data['first_name']))\n\t\t{\n\t\t\t$this->user->set_first_name($this->fb_data['first_name'], TRUE);\n\t\t}\n\t\tif (isset($this->fb_data['last_name'])) \n\t\t{\n\t\t\t$this->user->set_last_name($this->fb_data['last_name'], TRUE);\n\t\t}\n\t\tif (isset($this->fb_data['birthday'])) \n\t\t{\n\t\t\t$this->user->set_birthday( (int) strtotime($this->fb_data['birthday']), TRUE);\n\t\t}\n\t\tif (isset($this->fb_data['gender'])) \n\t\t{\n\t\t\t$this->user->set_gender(substr($this->fb_data['gender'], 0, 1), TRUE);\n\t\t}\n\t\tif (isset($this->fb_data['email']))\n\t\t{\n\t\t\t$this->user->set_email($this->fb_data['email'], TRUE);\n\t\t}\n\t\tif (isset($this->fb_data['timezone']))\n\t\t{\n\t\t\t$this->user->set_timezone( (int) $this->fb_data['timezone'], TRUE);\n\t\t}\n\t\tif (isset($this->fb_data['locale'])) \n\t\t{\n\t\t\t$this->user->set_country_code(substr($this->fb_data['locale'], -2), TRUE);\n\t\t}\n\t\treturn($this);\n\t}", "protected function buildDomainObject(array $row) {\n\t\t$user = new User();\n\t\t$user->setId($row['id_user']);\n\t\t$user->setEmail($row['email']);\n\t\t$user->setUsername($row['login']);\n\t\t$user->setPassword($row['password']);\n\t\t$user->setSalt($row['salt']);\n\t\t$user->setRole($row['role']);\n\t\treturn $user;\n\t}", "public function transform(User $model)\n {\n return [\n 'id' => (int) $model->id,\n 'name' => (string) $model->name,\n 'jobtitle' => (string) $model->jobtitle->name,\n 'jobtitle_id' => (int) $model->jobtitle_id,\n 'office' => (string) $model->office->name,\n 'office_id' => (int) $model->office_id,\n 'created_at' => $model->created_at,\n 'updated_at' => $model->updated_at\n ];\n }", "public function transform($data): User\n {\n if (empty($data)) {\n throw new EmptyDataException();\n }\n\n $user = new User();\n $user->setLogin($this->getArrayValue('login', $data));\n $user->setName($this->getArrayValue('name', $data));\n $user->setUrl($this->getArrayValue('html_url', $data));\n $user->setCompany($this->getArrayValue('company', $data));\n $user->setNumOfRepos($this->getArrayValue('public_repos', $data));\n $user->setNumOfFollowers($this->getArrayValue('followers', $data));\n $user->setNumOfFollowing($this->getArrayValue('following', $data));\n $user->setCreatedAt($this->getArrayValue('created_at', $data));\n $user->setUpdatedAt($this->getArrayValue('updated_at', $data));\n\n return $user;\n }", "static function createObjectFromRow($row) \n {\n $uType = 'E'.ucfirst($row['type']); // costruisce la classe da cui istanziare l'oggetto \n \n $user = new $uType();\n \n $user->setId($row['id']);\n $user->setNickName($row['nickname']);\n $user->setPassword($row['password']);\n $user->setMail($row['mail']);\n \n return $user;\n }", "protected function buildDomainObject(array $row) {\n\t\t$user = new User();\n\t\t$user->setId($row['idUser']);\n\t\t$user->setUsername($row['txtUserName']);\n\t\t$user->setPassword($row['txtUserPassword']);\n\t\t$user->setRole($row['txtUserRole']);\n\t\t$user->setSalt($row['txtUserSalt']);\n\t\t$user->setMail($row['txtUserMail']);\n\t\t$user->setImgPath($row['txtUserImgPath']);\n\n\t\tif (array_key_exists('idGroup', $row) && !empty($row['idGroup'])) {\n\t\t\t// Find and set the associated group\n\t\t\t$idGroup = $row['idGroup'];\n\t\t\t$group = $this->groupDAO->find($idGroup);\n\t\t\t$user->setGroup($group);\n\t\t}\n\n\t\treturn $user;\n\t}", "protected function mapUserToObject(array $user)\n {\n return (new User())->setRaw($user)->map([\n 'id' => $user['data']['id'],\n 'nickname' => $user['data']['username'],\n 'name' => $user['data']['name'],\n 'email' => $user['data']['email'],\n 'avatar' => $user['data']['picture'],\n ]);\n }", "protected function mapUserToObject(array $user)\n {\n return (new User)->setRaw($user)->map([\n 'id' => $user['CharacterID'],\n 'name' => $user['CharacterName'],\n 'owner_hash' => $user['CharacterOwnerHash'],\n 'avatar' => 'https://image.eveonline.com/Character/' . $user['CharacterID'] . '_128.jpg',\n ]);\n }", "public static function userObjectFromSQL($sql_user)\n {\n if(!$sql_user) return $sql_user;\n $user = new stdClass();\n $user->user_id = $sql_user->user_id;\n $user->user_name = $sql_user->user_name;\n $user->display_name = $sql_user->display_name;\n $user->bio = $sql_user->bio;\n $user->url = $sql_user->url;\n $user->media_id = $sql_user->media_id;\n\n return $user;\n }", "public function transformItem($data, $api = null) \n\t{\n\t\t$transformer = new UserTransformer();\n\n\t\treturn new User($transformer->transform($data), $api);\n\t}", "public function transform(User $model)\n {\n return [\n 'name' => (string)$model->name,\n 'email' => (string)$model->email,\n 'is_admin' => (boolean)$model->is_admin,\n 'dates' => (object) [\n 'created' => date('Y-m-d H:i', strtotime($model->created_at)),\n 'updated' => date('Y-m-d H:i', strtotime($model->updated_at))\n ]\n ];\n }", "protected function getGenericUser($user)\n {\n if ($user !== null) {\n return new GenericUser((array)$user);\n }\n }", "function callFromDb ($obj, $user) {\n $result = $obj->getUser($user);\n if(!empty($result)) {\n foreach ($result as $e) {\n $tmpUser = new user($e['user_id'], $e['password'], $e['name'], $e['permission']);\n }\n }\n return $tmpUser;\n}", "protected function mapUserToObject(array $user)\n {\n return new User([\n 'id' => $this->openId,\n 'unionid' => $this->unionId,\n 'nickname' => $this->arrayItem($user, 'nickname'),\n 'name' => $this->arrayItem($user, 'nickname'),\n 'email' => $this->arrayItem($user, 'email'),\n 'avatar' => $this->arrayItem($user, 'figureurl_qq_2'),\n ]);\n }", "private function toAuthUser($userArray)\n {\n $authUser = new AuthUser();\n $authUser->firstName = $userArray['firstName'];\n $authUser->lastName = $userArray['lastName'];\n $authUser->email = $userArray['email'];\n $authUser->employeeId = $userArray['employeeId'];\n $authUser->idpUsername = $userArray['idpUsername'];\n return $authUser;\n }", "protected function addMapUser($row, $baseModel) {\n\t\t$userModel = (new UserModel)\n\t\t\t\t->setName($row['username'])\n\t\t\t\t->setUserId($row['user_id']);\n\t\t$baseModel->setParentUser($userModel);\n\t\treturn $baseModel;\n\t}", "protected function mapUserToObject(array $user)\n\t{\n\t\t$this->initConfig();\n\t\tif (empty($this->convert)) {\n\t\t\tthrow new RuntimeException('自定义授权转换配置错误');\n\t\t}\n\t\t$userConvert = [];\n\t\tforeach ($this->convert as $key => $value) {\n\t\t\t$userConvert[$key] = $this->arrayItem($user, $value);\n\t\t}\n\t\treturn new User($userConvert);\n\t}", "public function hydrateUser (User $user, array $data) {\n $user->setLastNameUser(\"$data[nom]\");\n $user->setFirstNameUser(\"$data[prenom]\");\n $user->setEmailUser(\"$data[email]\");\n $user->setPasswordUser(\"$data[mdp]\");\n $user->setActivateUser(\"$data[actif]\");\n $user->setVisionUser(\"$data[malvoyant]\");\n $user->setStatusUser(\"$data[id_statuts]\");\n $user->setTeamUser(\"$data[id_equipes]\");\n $user->setLanguageUser(\"$data[id_langues]\");\n return $user;\n }", "public function getModel()\n\t{\n\t\treturn new User;\n\t}", "protected function _toEntity($dbRecord)\n {\n if (empty($dbRecord)) {\n return null;\n }\n \n return new \\Pley\\Entity\\User\\UserProfile(\n $dbRecord['id'],\n $dbRecord['user_id'],\n $dbRecord['gender'],\n $dbRecord['first_name'],\n $dbRecord['last_name'],\n $dbRecord['birth_date'],\n $dbRecord['picture'],\n $dbRecord['type_shirt_size_id'],\n \\Pley\\Util\\DateTime::strToTime($dbRecord['created_at']),\n \\Pley\\Util\\DateTime::strToTime($dbRecord['updated_at'])\n );\n }", "public function resolveUser() {\n $user = User::model()->findByAttributes(array('emailAddress' => $this->email));\n if(!($user instanceof User)){\n $profile = Profile::model()->findByAttributes(array('emailAddress' => $this->email));\n if($profile instanceof Profile) {\n $user = $profile->user;\n }\n }\n return $user;\n }", "public function toUser($data){\n\t\t\t$this->email=$data['email'];\n\t\t\t$this->password=$data['password'];\n\t\t\t$this->nombre=$data['nombre'];\n\t\t\t$this->apellido=$data['apellido'];\n\t\t}", "public function newRecord(array $row) : UserRecord\n {\n return new UserRecord($row);\n }", "public function convert($user)\n {\n jimport('joomla.utilities.arrayhelper');\n\n $rt = 'object';\n if (is_array($user)) {\n $rt = 'array';\n foreach ($user as $name => $value) {\n if (empty($value)) {\n unset($user[$name]);\n }\n }\n $user = JArrayHelper::toObject($user);\n }\n\n $name = (isset($user->name)) ? $user->name : null;\n $firstname = (isset($user->firstname)) ? $user->firstname : null;\n $lastname = (isset($user->lastname)) ? $user->lastname : null;\n $username = (isset($user->username)) ? $user->username : null;\n\n // Generate an username\n if (empty($username)) {\n $username = $user->email;\n }\n\n // Generate a firstname and lastname\n if (!empty($name) && (empty($firstname) && empty($lastname))) {\n $array = explode(' ', $name);\n $firstname = array_shift($array);\n $lastname = implode( ' ', $array );\n }\n \n // Generate a name\n if (empty($name) && (!empty($firstname) && !empty($lastname))) {\n $name = $firstname.' '.$lastname;\n } else if (empty($name)) {\n $name = $username;\n }\n\n // Insert the values back into the object\n $user->name = trim($name);\n $user->username = trim($username);\n $user->firstname = trim($firstname);\n $user->lastname = trim($lastname);\n\n // Return either an array or an object\n if ($rt == 'array') {\n return JArrayHelper::fromObject($user);\n }\n return $user;\n }", "public function data_user()\n {\n return new Data\\User;\n }", "function pilau_get_user_with_meta( $id ) {\n\t\t$user = get_userdata( $id );\n\t\tif ( $user ) {\n\t\t\t$user = $user->data;\n\t\t\t$user_meta = get_user_meta( $id );\n\t\t\tforeach ( $user_meta as $user_meta_key => $user_meta_value ) {\n\t\t\t\t$user->{$user_meta_key} = maybe_unserialize( $user_meta_value[0] );\n\t\t\t}\n\t\t}\n\t\treturn $user;\n\t}", "public static function getUserModel()\n {\n return static::getModel('Users');\n }", "function userModel() { \n $model = config('auth.model');\n return new $model;\n }", "public static function toUser($data)\n {\n $user = new ForumUser();\n $user->setId((int) Parse::clean($data->id));\n $user->setName(Parse::clean($data->name));\n $user->setEmail(Parse::clean(crypt(\n $data->email,\n $GLOBALS['database']['crypt_salt']\n )));\n $user->setRole(Parse::clean($data->title));\n $user->setRegistered(Parse::clean($data->registered));\n $user->setBanned($data->banned === 't' ? 1:0);\n\n return $user;\n }", "function convert_from_sql_row($row)\n\t{\n $this->SignupId = (int)$row->SignupId;\n $this->UserId = (int)$row->UserId;\n $this->RunId = (int)$row->RunId;\n $this->State = (string)$row->State;\n $this->PrevState = (string)$row->PrevState;\n $this->Gender = (string)$row->Gender;\n $this->Counted = (string)$row->Counted;\n $this->UpdatedById = (int)$row->UpdatedById;\n $this->TimeStamp = (string)$row->TimeStamp;\n\t}", "public function user(): MorphTo\n {\n return $this->morphTo('user', 'user_type', 'user_id', 'id');\n }", "public function getUserModel()\n {\n return $this->getController()->getServiceLocator()->get('User\\Model\\User');\n }", "public function map($data)\n {\n return new User($data['id'], $data['name']);\n }", "public function user()\n {\n return $this->belongsTo(UserProxy::modelClass());\n }", "protected function model()\n {\n return User::class;\n }", "public function user()\n {\n return $this->belongsTo(\n $this->getUserModelClassName(),\n 'user_id',\n $this->getUserModelPrimaryKey()\n );\n }", "public function normalizeUser($user)\n {\n $user[self::USER_METADATA] = $user[getenv('AUTH_METADATA')];\n unset($user[getenv('AUTH_METADATA')]);\n\n $user['id'] = $user['sub'];\n unset($user['sub']);\n\n return $user;\n }", "public function createUser()\n {\n $class = $this->userClass;\n $user = new $class;\n return $user;\n }", "public static function userModel()\n {\n return static::$userModel;\n }", "public function transform(User $user)\n {\n return [\n 'id' => $user->id,\n 'name' => $user->name,\n 'email' => $user->email,\n ];\n }", "public function transform(User $user) {\n $output = [\n 'id' => $user->getId(),\n 'user_name' => $user->getUserName(),\n 'first_name' => $user->getFirstName(),\n 'last_name' => $user->getLastName(),\n ];\n\n return $output;\n }", "public function transform(User $user)\n {\n return [\n 'id' => (int) $user->id,\n 'name' => $user->name,\n 'email' => $user->email,\n ];\n }", "public function transform( User $user )\n\t{\n\t\treturn [\n\t\t\t'id' => (int) $user->id,\n\t\t\t'slackId' => $user->slack_id,\n\t\t\t'name' => $user->name,\n\t\t\t'email' => $user->email,\n\t\t\t'thumbnail' => Storage::disk( 'public' )->url( $user->thumbnail ),\n\t\t];\n\t}", "public function transform(User $user)\n {\n return [\n User::ID => (int)$user->{User::ID},\n User::FIRST_NAME => $user->{User::FIRST_NAME},\n User::LAST_NAME => $user->{User::LAST_NAME},\n User::EMAIL => $user->{User::EMAIL}\n ];\n }", "public function createUserFromSocialite($user);", "protected function buildUser($userData)\n {\n $user = new User();\n $user->setId($userData['id']);\n $user->setFirstName($userData['first_name']);\n $user->setLastName($userData['last_name']);\n $user->setPassword($userData['password']);\n $user->setPhone($userData['phone']);\n $user->setMail($userData['mail']);\n $user->setBirthdate(($userData['birthdate']) ? $userData['birthdate'] : null);\n $user->setAddressStreet1($userData['address_street_1']);\n $user->setAddressStreet2($userData['address_street_2']);\n $user->setCity($userData['city']);\n $user->setZip($userData['zip']);\n $user->setGender($userData['gender']);\n $user->setPhoto($userData['photo']);\n $user->setSponsor((string)$userData['sponsor_id']);\n $user->setComment($userData['comment']);\n $user->setFailedLogins($userData['failed_logins']);\n $user->setLastSeen(($userData['last_seen']) ? date('c', strtotime($userData['last_seen'])) : null);\n $user->setLastIP($userData['last_ip']);\n $user->setCreatedAt(date('c', strtotime($userData['created_at'])));\n $user->setDeletedAt(($userData['deleted_at']) ? date('c', strtotime($userData['deleted_at'])) : null);\n $user->setUserLevel(($userData['user_level']) ? $userData['user_level'] : '0');\n\n return $user;\n }", "static function fromVCard($user_data, &$imported_users) {\n $is_new = array_var($user_data, 'is_new') == 'true'; // check whether it's a new user\n\n $password = null;\n\n // create an instance of User class appropriately\n if($is_new) {\n $user = Users::getUserInstance();\n } else {\n $user = Users::findByEmail(array_var($user_data, 'old_email'));\n } // if\n\n $user->setFirstName(array_var($user_data, 'first_name'));\n $user->setLastName(array_var($user_data, 'last_name'));\n $user->setEmail(array_var($user_data, 'email'));\n\n if($is_new) {\n $password = Authentication::getPasswordPolicy()->generatePassword();\n\n $user->setPassword($password);\n $user->setState(STATE_VISIBLE);\n\n if(array_var($user_data, 'updated_on')) {\n $user->setUpdatedOn(DateTimeValue::makeFromString(array_var($user_data, 'updated_on')));\n $user->setUpdatedBy(Authentication::getLoggedUser());\n } // if\n } // if\n\n // Collect imported users for updating object list\n $imported_users[] = array(\n 'is_new' => $is_new,\n 'user' => $user,\n 'password' => $password\n );\n\n return $user;\n }", "public function transform($user)\n {\n $data = [\n 'code' => $user->code,\n 'phone' => $user->phone\n ];\n\n return $data;\n }", "public function transform(CompanyUser $model)\n {\n return [\n 'id' => (int) $model->id,\n\n /* place your other model properties here */\n\n 'created_at' => $model->created_at,\n 'updated_at' => $model->updated_at\n ];\n }", "function getUser() : User {\n\treturn new User;\n}", "function &_fromRow(&$row) {\n\t\t$person = $this->newDataObject();\n\t\t$person->setId($row['person_id']);\n\t\t$person->setObjectId($row['object_id']);\n\t\t$person->setSequence($row['seq']);\n\t\t$person->setRole($row['role']);\n\t\t$person->setFirstName($row['first_name']);\n\t\t$person->setMiddleName($row['middle_name']);\n\t\t$person->setLastName($row['last_name']);\n\n\t\tHookRegistry::call('ObjectForReviewPersonDAO::_fromRow', array(&$person, &$row));\n\n\t\treturn $person;\n\t}", "public function make($userArray):User\n {\n $user = new User();\n\n // If user exists, assign the id, households, and current household\n if(isset($userArray['id'])){\n $user->setId($userArray['id']);\n $households = $this->householdRepository->allForUser($user);\n $user->setHouseholds($households);\n\n $currHousehold = $this->householdRepository->find($userArray['currHouseholdId']);\n $user->setCurrHousehold($currHousehold);\n }\n else{\n $user->setHouseholds(array());\n }\n $user->setUsername($userArray['username']);\n $user->setPassword($userArray['password']);\n $user->setEmail($userArray['email']);\n $user->setJoined($userArray['joined']);\n $user->setFirstName($userArray['namefirst']);\n $user->setLastName($userArray['namelast']);\n $user->setActivated($userArray['activated']);\n $user->setPassTemp($userArray['passTemp']);\n $user->setProfilePic($userArray['profilePic']);\n\n return $user;\n }", "private function getUser()\r\n {\r\n $UserId = -1;\r\n isset($_POST['UserId']) && intval($_POST['UserId']) > 0 ? $UserId = intval($_POST['UserId']) : $UserId = -1;\r\n $User = new User ($UserId);\r\n return $User;\r\n }", "public function user()\r\n {\r\n //** @var UserFrosting\\Sprinkle\\Core\\Util\\ClassMapper $classMapper\r\n $classMapper = static::$ci->classMapper;\r\n\r\n return $this->belongsTo($classMapper->getClassMapping('user'), 'user_id');\r\n }", "public function getUserById($userId){\n $id = intval($userId);\n\n $req = $this->db->prepare('SELECT * FROM users WHERE id = :id');\n $req->execute(array('id' => $id));\n $res = $req->fetch();\n\n var_dump($res);\n $user = User::getModel($res);\n\n return $user;\n }", "protected function _createUser() {\n\t\t$user = System_Locator_TableLocator::getInstance()->get('User')->createRow();\n\t\t$user->username = $this->getUsername();\n\t\t$user->setPassword($this->getPassword());\n\t\t$user->email = $this->getEmail();\n\t\t$user->countryCode = $this->getCountryCode();\n\t\t$user->createdAt = date(DATE_ISO8601); \n\t\treturn $user;\n\t}", "public function user()\n {\n return $this->morphTo();\n }", "public static function user() {\n $userClass = config('auth.providers.users.model');\n\n return new $userClass;\n }", "public function getUser(): User;", "private static function _createAuthIdentity($user)\n\t{\n\t\t$identity = new stdClass;\n\t\t$identity->id = $user->id;\n\t\t$identity->handle = $user->handle;\n\t\t//$identity->user_type = $user->user_type;\n\t\t$identity->first_name = $user->first_name;\n\t\t$identity->last_name = $user->last_name;\n\t\t$identity->email = $user->email;\n\t\treturn $identity;\n\t}", "function model()\n {\n return User::class;\n }", "public function model()\n {\n return User::class;\n }", "protected function getUserModel()\n\t{\n\t\t$userModel = Config::get('maclof/revisionable::user_model', 'User');\n\n\t\tif(!class_exists($userModel))\n\t\t{\n\t\t\tthrow new ModelNotFoundException('The model ' . $userModel . ' was not found.');\n\t\t}\n\n\t\treturn new $userModel;\n\t}", "private function userdata_convert(&$userdata) \n {\n\t // $userdata is our array that contains user data from our own\n\t // user database, which we must convert to the vBulletin values.\n\t // Minimally, it must contain the username, email and/or password.\n \n\t // required fields\n\t $vbuser = array( 'username' => $userdata['username'] );\n\t if (isset($userdata['email']))\n\t\t$vbuser['email'] = $userdata['email'];\n\t if (isset($userdata['password']))\n\t\t$vbuser['password'] = $userdata['password'];\n\t $vbuser['ipaddress'] = $_SERVER['REMOTE_ADDR'];\n\t // extra stuff, expand as desired\n\t if ($userdata['usergroupid'])\n\t\t$vbuser['usergroupid'] = $userdata['usergroupid'];\n\t if ($userdata['usertitle'])\n\t\t$vbuser['usertitle'] = $userdata['usertitle'];\n\t return $vbuser;\n }", "public function user()\n {\n return $this->morphOne(User::class, 'userable');\n }", "public function user()\n {\n return $this->morphOne(User::class, 'userable');\n }", "public function user()\n {\n /** @var \\UserFrosting\\Sprinkle\\Core\\Util\\ClassMapper $classMapper */\n $classMapper = static::$ci->classMapper;\n\n return $this->belongsTo($classMapper->getClassMapping('user'), 'user_id');\n }", "public function user()\r\n {\r\n $user = (new \\Users\\Models\\Users)->load(array('_id'=>$this->user_id));\r\n \r\n return $user;\r\n }", "public static function ToUserClass($userStd): Usuario\n {\n $user = new Usuario();\n\n $user->id = $userStd->id;\n $user->nombre = $userStd->nombre;\n $user->correo = $userStd->correo;\n $user->clave = $userStd->clave;\n $user->id_perfil = $userStd->id_perfil;\n\n return $user;\n }", "public function user()\n {\n return $this->belongsTo(AccountProxy::modelClass());\n }", "public function getUserRecord()\n {\n // we cache the user entry per request\n if($this->user)\n return $this->user;\n\n $res = $this->db->getUser();\n // if null create, onerror return false\n if($res === null)\n {\n // user entry does not exist, create it\n $res = $this->create();\n if(!$res)\n return false;\n\n // fetch the record to return\n $res = $this->db->getUser();\n if(!$res)\n return false;\n }\n elseif($res === false)\n {\n return false;\n }\n\n $this->user = $res;\n return $this->user;\n }", "public function getUserInstance()\n {\n $entity = null;\n\n if ($this instanceof \\User) {\n $entity = $this;\n } elseif ($this instanceof \\PortalUser) {\n $this->setPortalId();\n $entity = $this->getRelated('User');\n } else {\n $entity = $this->getPortalUser()->getRelated('User');\n }\n\n $this->checkJoin($this, $entity);\n\n return $entity;\n }", "public static function getUserRecord()\n {\n // we cache the user entry per request\n if(self::$user)\n return self::$user;\n\n $res = getDb()->getUser();\n // if null create, onerror return false\n if($res === null)\n {\n // user entry does not exist, create it\n $res = self::create();\n if(!$res)\n return false;\n }\n elseif($res === false)\n {\n return false;\n }\n\n self::$user = $res;\n return self::$user;\n }", "public function model()\n {\n return User::class;\n }", "public function model()\n {\n return User::class;\n }", "public function model()\n {\n return User::class;\n }", "public function model()\n {\n return User::class;\n }", "public function model()\n {\n return User::class;\n }", "public function model()\n {\n return User::class;\n }", "public function model()\n {\n return User::class;\n }", "public function model()\n {\n return User::class;\n }", "public function model()\n {\n return User::class;\n }", "public function model()\n {\n return User::class;\n }", "public function model()\n {\n return User::class;\n }", "public function model()\n {\n return User::class;\n }", "public function model()\n {\n return User::class;\n }" ]
[ "0.7220252", "0.65936023", "0.6463212", "0.64536816", "0.64434385", "0.6423807", "0.6384725", "0.631523", "0.62826633", "0.6281497", "0.62374645", "0.6223688", "0.61040735", "0.6021661", "0.6016665", "0.5993482", "0.598545", "0.59591013", "0.59255373", "0.592377", "0.5911184", "0.58780557", "0.58592004", "0.58323234", "0.5776118", "0.57683265", "0.57594", "0.5748158", "0.57452273", "0.57429844", "0.5742555", "0.57340086", "0.57336444", "0.5714337", "0.5711221", "0.5706351", "0.56896514", "0.5682984", "0.5642139", "0.5634327", "0.56267184", "0.5595685", "0.5554652", "0.5548904", "0.5548406", "0.55428094", "0.55331683", "0.5526645", "0.55236506", "0.5514127", "0.5485532", "0.54773533", "0.5476819", "0.54600424", "0.54528713", "0.5451861", "0.5437207", "0.54297435", "0.5421264", "0.5419235", "0.5414423", "0.541374", "0.54054564", "0.54046303", "0.5393484", "0.5386546", "0.53756654", "0.5365317", "0.53628397", "0.53574437", "0.5357204", "0.5353601", "0.53511876", "0.53481764", "0.53471684", "0.5331128", "0.5328278", "0.53216004", "0.53210926", "0.53210926", "0.5311607", "0.5310769", "0.5308567", "0.530371", "0.530368", "0.53017974", "0.53006226", "0.52998894", "0.52998894", "0.52998894", "0.52998894", "0.52998894", "0.52998894", "0.52998894", "0.52998894", "0.52998894", "0.52998894", "0.52998894", "0.52998894", "0.52998894" ]
0.5764002
26
Transforms a user record into a user model
public function transform(array $record) : UserModelInterface;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getUserModel() {\n return new User();\n }", "protected function buildDomainObject($row) {\n $user = new User();\n $user->setId($row['user_id']);\n $user->setEmail($row['user_email']);\n $user->setLastname($row['user_lastname']);\n $user->setFirstname($row['user_firstname']);\n $user->setPassword($row['user_password']);\n $user->setSalt($row['user_salt']);\n $user->setAddress($row['user_address']);\n $user->setTown($row['user_town']);\n $user->setZipcode($row['user_zipcode']);\n $user->setRole($row['user_role']);\n return $user;\n }", "public function convert() {\n $this->user->convert();\n }", "protected function buildDomainObject($row)\n {\n $user = new User();\n $user->setId($row['rowid']);\n $user->setUsername($row['username']);\n $user->setFirstname($row['firstname']);\n $user->setEmail($row['email']);\n $user->setBusiness($row['business']);\n $user->setPassword($row['password']);\n $user->setSalt($row['salt']);\n $user->setRole($row['role']);\n return $user;\n }", "public function transformUsers() {\n $saUsers = $this->kalturaUser->getAll();\n foreach ($saUsers as $key => $saUser){\n /**\n * @var $saUser KalturaUser\n */\n $dwUser = new DwUser();\n $dwUser->setId(\n $this->anonymize->anonymizeUser($saUser->getKalturaUserId())\n );\n $dwUser->setType(\n $this->typeOfUser($saUser->getKalturaUserId())\n );\n $dwUser->setCreatedAt($saUser->created_at);\n $dwUser->setUpdatedAt($saUser->updated_at);\n try{\n $dwUser->save();\n } catch (Exception $e) {\n var_dump($e->getMessage());\n die;\n }\n };\n }", "public static function user_from_row($row) {\r\n $result = new User(UserService::get_key($row,\"UserId\"),UserService::get_key($row,\"Email\"),UserService::get_key($row,\"UserType\"));\r\n $result->set_first_name(UserService::get_key($row,\"FirstName\"));\r\n $result->set_last_name(UserService::get_key($row,\"LastName\"));\r\n $result->set_home_phone(UserService::get_key($row,\"HomePhone\"));\r\n $result->set_mobile_phone(UserService::get_key($row,\"MobilePhone\"));\r\n $result->set_address_1(UserService::get_key($row,\"Address1\"));\r\n $result->set_address_2(UserService::get_key($row,\"Address2\"));\r\n $result->set_city(UserService::get_key($row,\"City\"));\r\n $result->set_state(UserService::get_key($row,\"State\"));\r\n $result->set_zip(UserService::get_key($row,\"ZipCode\"));\r\n $result->set_organization_id(UserService::get_key($row,\"OrganizationId\"));\r\n return $result;\r\n }", "function getUser($model)\n\t{\n\t\t$user = $this->users->find($model->idUser);\n\t\t$model->nameUser = $user->name;\n\t\t$model->scoreUser = $user->score;\n\t\t$model->emailUser = $user->email;\n\t\treturn $model;\n\t}", "abstract protected function mapUserToObject(array $user): User;", "protected function createObjectFromRow($row) {\n return new User($row);\n }", "public function transform(User $model)\n {\n return [\n 'ID' => (int)$model->ID,\n 'user_login' => $model->user_login,\n 'user_nicename' => $model->user_nicename,\n 'user_email' => $model->user_email,\n 'user_url' => $model->user_url,\n 'user_registered' => $model->user_registered->toDateTimeString(),\n 'user_status' => $model->user_status,\n 'display_name' => $model->display_name\n ];\n }", "protected function mapUserToObject(array $user)\n {\n\n $result = new User();\n\n $result->name = $user['displayName'];\n $result->email = $user['mail'];\n $result->provideUserId = $user['internal_id'];\n\n return $result;\n }", "public function mapRow($row)\n {\n $object = new IntercomUser();\n $object->setId ( $row['id'] );\n $object->setIntercomAppId ( $row['intercom_app_id'] );\n $object->setItemId ( $row['item_id'] );\n $object->setItemUserId ( $row['item_user_id'] );\n $object->setEmail ( $row['email'] );\n $object->setOriginContent ( unserialize($row['origin_content']) );\n $object->setProperties ( unserialize($row['properties']) );\n $object->setCreatedAt ( strtotime($row['created_at']) );\n $object->setUpdatedAt ( strtotime($row['updated_at']) );\n return $object;\n }", "public static function LoadWithData($row)\n \t{\n \t\treturn new Users_model(\n \t\t\t$row->user_signup_id,\n \t\t\t$row->email,\n \t\t\t$row->name,\n \t\t\t$row->school,\n \t\t\t$row->city,\n \t\t\t$row->exam\n \t\t);\n \t}", "public function convert()\n\t{\n\t\tif (isset($this->fb_data['id'])) \n\t\t{\n\t\t\t$this->user->set_facebook_id($this->fb_data['id'], TRUE);\n\t\t}\n\t\tif (isset($this->fb_data['first_name']))\n\t\t{\n\t\t\t$this->user->set_first_name($this->fb_data['first_name'], TRUE);\n\t\t}\n\t\tif (isset($this->fb_data['last_name'])) \n\t\t{\n\t\t\t$this->user->set_last_name($this->fb_data['last_name'], TRUE);\n\t\t}\n\t\tif (isset($this->fb_data['birthday'])) \n\t\t{\n\t\t\t$this->user->set_birthday( (int) strtotime($this->fb_data['birthday']), TRUE);\n\t\t}\n\t\tif (isset($this->fb_data['gender'])) \n\t\t{\n\t\t\t$this->user->set_gender(substr($this->fb_data['gender'], 0, 1), TRUE);\n\t\t}\n\t\tif (isset($this->fb_data['email']))\n\t\t{\n\t\t\t$this->user->set_email($this->fb_data['email'], TRUE);\n\t\t}\n\t\tif (isset($this->fb_data['timezone']))\n\t\t{\n\t\t\t$this->user->set_timezone( (int) $this->fb_data['timezone'], TRUE);\n\t\t}\n\t\tif (isset($this->fb_data['locale'])) \n\t\t{\n\t\t\t$this->user->set_country_code(substr($this->fb_data['locale'], -2), TRUE);\n\t\t}\n\t\treturn($this);\n\t}", "protected function buildDomainObject(array $row) {\n\t\t$user = new User();\n\t\t$user->setId($row['id_user']);\n\t\t$user->setEmail($row['email']);\n\t\t$user->setUsername($row['login']);\n\t\t$user->setPassword($row['password']);\n\t\t$user->setSalt($row['salt']);\n\t\t$user->setRole($row['role']);\n\t\treturn $user;\n\t}", "public function transform(User $model)\n {\n return [\n 'id' => (int) $model->id,\n 'name' => (string) $model->name,\n 'jobtitle' => (string) $model->jobtitle->name,\n 'jobtitle_id' => (int) $model->jobtitle_id,\n 'office' => (string) $model->office->name,\n 'office_id' => (int) $model->office_id,\n 'created_at' => $model->created_at,\n 'updated_at' => $model->updated_at\n ];\n }", "public function transform($data): User\n {\n if (empty($data)) {\n throw new EmptyDataException();\n }\n\n $user = new User();\n $user->setLogin($this->getArrayValue('login', $data));\n $user->setName($this->getArrayValue('name', $data));\n $user->setUrl($this->getArrayValue('html_url', $data));\n $user->setCompany($this->getArrayValue('company', $data));\n $user->setNumOfRepos($this->getArrayValue('public_repos', $data));\n $user->setNumOfFollowers($this->getArrayValue('followers', $data));\n $user->setNumOfFollowing($this->getArrayValue('following', $data));\n $user->setCreatedAt($this->getArrayValue('created_at', $data));\n $user->setUpdatedAt($this->getArrayValue('updated_at', $data));\n\n return $user;\n }", "static function createObjectFromRow($row) \n {\n $uType = 'E'.ucfirst($row['type']); // costruisce la classe da cui istanziare l'oggetto \n \n $user = new $uType();\n \n $user->setId($row['id']);\n $user->setNickName($row['nickname']);\n $user->setPassword($row['password']);\n $user->setMail($row['mail']);\n \n return $user;\n }", "protected function buildDomainObject(array $row) {\n\t\t$user = new User();\n\t\t$user->setId($row['idUser']);\n\t\t$user->setUsername($row['txtUserName']);\n\t\t$user->setPassword($row['txtUserPassword']);\n\t\t$user->setRole($row['txtUserRole']);\n\t\t$user->setSalt($row['txtUserSalt']);\n\t\t$user->setMail($row['txtUserMail']);\n\t\t$user->setImgPath($row['txtUserImgPath']);\n\n\t\tif (array_key_exists('idGroup', $row) && !empty($row['idGroup'])) {\n\t\t\t// Find and set the associated group\n\t\t\t$idGroup = $row['idGroup'];\n\t\t\t$group = $this->groupDAO->find($idGroup);\n\t\t\t$user->setGroup($group);\n\t\t}\n\n\t\treturn $user;\n\t}", "protected function mapUserToObject(array $user)\n {\n return (new User())->setRaw($user)->map([\n 'id' => $user['data']['id'],\n 'nickname' => $user['data']['username'],\n 'name' => $user['data']['name'],\n 'email' => $user['data']['email'],\n 'avatar' => $user['data']['picture'],\n ]);\n }", "protected function mapUserToObject(array $user)\n {\n return (new User)->setRaw($user)->map([\n 'id' => $user['CharacterID'],\n 'name' => $user['CharacterName'],\n 'owner_hash' => $user['CharacterOwnerHash'],\n 'avatar' => 'https://image.eveonline.com/Character/' . $user['CharacterID'] . '_128.jpg',\n ]);\n }", "public static function userObjectFromSQL($sql_user)\n {\n if(!$sql_user) return $sql_user;\n $user = new stdClass();\n $user->user_id = $sql_user->user_id;\n $user->user_name = $sql_user->user_name;\n $user->display_name = $sql_user->display_name;\n $user->bio = $sql_user->bio;\n $user->url = $sql_user->url;\n $user->media_id = $sql_user->media_id;\n\n return $user;\n }", "public function transformItem($data, $api = null) \n\t{\n\t\t$transformer = new UserTransformer();\n\n\t\treturn new User($transformer->transform($data), $api);\n\t}", "public function transform(User $model)\n {\n return [\n 'name' => (string)$model->name,\n 'email' => (string)$model->email,\n 'is_admin' => (boolean)$model->is_admin,\n 'dates' => (object) [\n 'created' => date('Y-m-d H:i', strtotime($model->created_at)),\n 'updated' => date('Y-m-d H:i', strtotime($model->updated_at))\n ]\n ];\n }", "protected function getGenericUser($user)\n {\n if ($user !== null) {\n return new GenericUser((array)$user);\n }\n }", "public function __invoke(array $record) : UserModelInterface;", "function callFromDb ($obj, $user) {\n $result = $obj->getUser($user);\n if(!empty($result)) {\n foreach ($result as $e) {\n $tmpUser = new user($e['user_id'], $e['password'], $e['name'], $e['permission']);\n }\n }\n return $tmpUser;\n}", "protected function mapUserToObject(array $user)\n {\n return new User([\n 'id' => $this->openId,\n 'unionid' => $this->unionId,\n 'nickname' => $this->arrayItem($user, 'nickname'),\n 'name' => $this->arrayItem($user, 'nickname'),\n 'email' => $this->arrayItem($user, 'email'),\n 'avatar' => $this->arrayItem($user, 'figureurl_qq_2'),\n ]);\n }", "private function toAuthUser($userArray)\n {\n $authUser = new AuthUser();\n $authUser->firstName = $userArray['firstName'];\n $authUser->lastName = $userArray['lastName'];\n $authUser->email = $userArray['email'];\n $authUser->employeeId = $userArray['employeeId'];\n $authUser->idpUsername = $userArray['idpUsername'];\n return $authUser;\n }", "protected function addMapUser($row, $baseModel) {\n\t\t$userModel = (new UserModel)\n\t\t\t\t->setName($row['username'])\n\t\t\t\t->setUserId($row['user_id']);\n\t\t$baseModel->setParentUser($userModel);\n\t\treturn $baseModel;\n\t}", "protected function mapUserToObject(array $user)\n\t{\n\t\t$this->initConfig();\n\t\tif (empty($this->convert)) {\n\t\t\tthrow new RuntimeException('自定义授权转换配置错误');\n\t\t}\n\t\t$userConvert = [];\n\t\tforeach ($this->convert as $key => $value) {\n\t\t\t$userConvert[$key] = $this->arrayItem($user, $value);\n\t\t}\n\t\treturn new User($userConvert);\n\t}", "public function hydrateUser (User $user, array $data) {\n $user->setLastNameUser(\"$data[nom]\");\n $user->setFirstNameUser(\"$data[prenom]\");\n $user->setEmailUser(\"$data[email]\");\n $user->setPasswordUser(\"$data[mdp]\");\n $user->setActivateUser(\"$data[actif]\");\n $user->setVisionUser(\"$data[malvoyant]\");\n $user->setStatusUser(\"$data[id_statuts]\");\n $user->setTeamUser(\"$data[id_equipes]\");\n $user->setLanguageUser(\"$data[id_langues]\");\n return $user;\n }", "public function getModel()\n\t{\n\t\treturn new User;\n\t}", "protected function _toEntity($dbRecord)\n {\n if (empty($dbRecord)) {\n return null;\n }\n \n return new \\Pley\\Entity\\User\\UserProfile(\n $dbRecord['id'],\n $dbRecord['user_id'],\n $dbRecord['gender'],\n $dbRecord['first_name'],\n $dbRecord['last_name'],\n $dbRecord['birth_date'],\n $dbRecord['picture'],\n $dbRecord['type_shirt_size_id'],\n \\Pley\\Util\\DateTime::strToTime($dbRecord['created_at']),\n \\Pley\\Util\\DateTime::strToTime($dbRecord['updated_at'])\n );\n }", "public function resolveUser() {\n $user = User::model()->findByAttributes(array('emailAddress' => $this->email));\n if(!($user instanceof User)){\n $profile = Profile::model()->findByAttributes(array('emailAddress' => $this->email));\n if($profile instanceof Profile) {\n $user = $profile->user;\n }\n }\n return $user;\n }", "public function toUser($data){\n\t\t\t$this->email=$data['email'];\n\t\t\t$this->password=$data['password'];\n\t\t\t$this->nombre=$data['nombre'];\n\t\t\t$this->apellido=$data['apellido'];\n\t\t}", "public function newRecord(array $row) : UserRecord\n {\n return new UserRecord($row);\n }", "public function convert($user)\n {\n jimport('joomla.utilities.arrayhelper');\n\n $rt = 'object';\n if (is_array($user)) {\n $rt = 'array';\n foreach ($user as $name => $value) {\n if (empty($value)) {\n unset($user[$name]);\n }\n }\n $user = JArrayHelper::toObject($user);\n }\n\n $name = (isset($user->name)) ? $user->name : null;\n $firstname = (isset($user->firstname)) ? $user->firstname : null;\n $lastname = (isset($user->lastname)) ? $user->lastname : null;\n $username = (isset($user->username)) ? $user->username : null;\n\n // Generate an username\n if (empty($username)) {\n $username = $user->email;\n }\n\n // Generate a firstname and lastname\n if (!empty($name) && (empty($firstname) && empty($lastname))) {\n $array = explode(' ', $name);\n $firstname = array_shift($array);\n $lastname = implode( ' ', $array );\n }\n \n // Generate a name\n if (empty($name) && (!empty($firstname) && !empty($lastname))) {\n $name = $firstname.' '.$lastname;\n } else if (empty($name)) {\n $name = $username;\n }\n\n // Insert the values back into the object\n $user->name = trim($name);\n $user->username = trim($username);\n $user->firstname = trim($firstname);\n $user->lastname = trim($lastname);\n\n // Return either an array or an object\n if ($rt == 'array') {\n return JArrayHelper::fromObject($user);\n }\n return $user;\n }", "public function data_user()\n {\n return new Data\\User;\n }", "function pilau_get_user_with_meta( $id ) {\n\t\t$user = get_userdata( $id );\n\t\tif ( $user ) {\n\t\t\t$user = $user->data;\n\t\t\t$user_meta = get_user_meta( $id );\n\t\t\tforeach ( $user_meta as $user_meta_key => $user_meta_value ) {\n\t\t\t\t$user->{$user_meta_key} = maybe_unserialize( $user_meta_value[0] );\n\t\t\t}\n\t\t}\n\t\treturn $user;\n\t}", "public static function getUserModel()\n {\n return static::getModel('Users');\n }", "function userModel() { \n $model = config('auth.model');\n return new $model;\n }", "public static function toUser($data)\n {\n $user = new ForumUser();\n $user->setId((int) Parse::clean($data->id));\n $user->setName(Parse::clean($data->name));\n $user->setEmail(Parse::clean(crypt(\n $data->email,\n $GLOBALS['database']['crypt_salt']\n )));\n $user->setRole(Parse::clean($data->title));\n $user->setRegistered(Parse::clean($data->registered));\n $user->setBanned($data->banned === 't' ? 1:0);\n\n return $user;\n }", "function convert_from_sql_row($row)\n\t{\n $this->SignupId = (int)$row->SignupId;\n $this->UserId = (int)$row->UserId;\n $this->RunId = (int)$row->RunId;\n $this->State = (string)$row->State;\n $this->PrevState = (string)$row->PrevState;\n $this->Gender = (string)$row->Gender;\n $this->Counted = (string)$row->Counted;\n $this->UpdatedById = (int)$row->UpdatedById;\n $this->TimeStamp = (string)$row->TimeStamp;\n\t}", "public function user(): MorphTo\n {\n return $this->morphTo('user', 'user_type', 'user_id', 'id');\n }", "public function getUserModel()\n {\n return $this->getController()->getServiceLocator()->get('User\\Model\\User');\n }", "public function map($data)\n {\n return new User($data['id'], $data['name']);\n }", "public function user()\n {\n return $this->belongsTo(UserProxy::modelClass());\n }", "protected function model()\n {\n return User::class;\n }", "public function user()\n {\n return $this->belongsTo(\n $this->getUserModelClassName(),\n 'user_id',\n $this->getUserModelPrimaryKey()\n );\n }", "public function normalizeUser($user)\n {\n $user[self::USER_METADATA] = $user[getenv('AUTH_METADATA')];\n unset($user[getenv('AUTH_METADATA')]);\n\n $user['id'] = $user['sub'];\n unset($user['sub']);\n\n return $user;\n }", "public function createUser()\n {\n $class = $this->userClass;\n $user = new $class;\n return $user;\n }", "public static function userModel()\n {\n return static::$userModel;\n }", "public function transform(User $user)\n {\n return [\n 'id' => $user->id,\n 'name' => $user->name,\n 'email' => $user->email,\n ];\n }", "public function transform(User $user) {\n $output = [\n 'id' => $user->getId(),\n 'user_name' => $user->getUserName(),\n 'first_name' => $user->getFirstName(),\n 'last_name' => $user->getLastName(),\n ];\n\n return $output;\n }", "public function transform(User $user)\n {\n return [\n 'id' => (int) $user->id,\n 'name' => $user->name,\n 'email' => $user->email,\n ];\n }", "public function transform( User $user )\n\t{\n\t\treturn [\n\t\t\t'id' => (int) $user->id,\n\t\t\t'slackId' => $user->slack_id,\n\t\t\t'name' => $user->name,\n\t\t\t'email' => $user->email,\n\t\t\t'thumbnail' => Storage::disk( 'public' )->url( $user->thumbnail ),\n\t\t];\n\t}", "public function transform(User $user)\n {\n return [\n User::ID => (int)$user->{User::ID},\n User::FIRST_NAME => $user->{User::FIRST_NAME},\n User::LAST_NAME => $user->{User::LAST_NAME},\n User::EMAIL => $user->{User::EMAIL}\n ];\n }", "public function createUserFromSocialite($user);", "protected function buildUser($userData)\n {\n $user = new User();\n $user->setId($userData['id']);\n $user->setFirstName($userData['first_name']);\n $user->setLastName($userData['last_name']);\n $user->setPassword($userData['password']);\n $user->setPhone($userData['phone']);\n $user->setMail($userData['mail']);\n $user->setBirthdate(($userData['birthdate']) ? $userData['birthdate'] : null);\n $user->setAddressStreet1($userData['address_street_1']);\n $user->setAddressStreet2($userData['address_street_2']);\n $user->setCity($userData['city']);\n $user->setZip($userData['zip']);\n $user->setGender($userData['gender']);\n $user->setPhoto($userData['photo']);\n $user->setSponsor((string)$userData['sponsor_id']);\n $user->setComment($userData['comment']);\n $user->setFailedLogins($userData['failed_logins']);\n $user->setLastSeen(($userData['last_seen']) ? date('c', strtotime($userData['last_seen'])) : null);\n $user->setLastIP($userData['last_ip']);\n $user->setCreatedAt(date('c', strtotime($userData['created_at'])));\n $user->setDeletedAt(($userData['deleted_at']) ? date('c', strtotime($userData['deleted_at'])) : null);\n $user->setUserLevel(($userData['user_level']) ? $userData['user_level'] : '0');\n\n return $user;\n }", "static function fromVCard($user_data, &$imported_users) {\n $is_new = array_var($user_data, 'is_new') == 'true'; // check whether it's a new user\n\n $password = null;\n\n // create an instance of User class appropriately\n if($is_new) {\n $user = Users::getUserInstance();\n } else {\n $user = Users::findByEmail(array_var($user_data, 'old_email'));\n } // if\n\n $user->setFirstName(array_var($user_data, 'first_name'));\n $user->setLastName(array_var($user_data, 'last_name'));\n $user->setEmail(array_var($user_data, 'email'));\n\n if($is_new) {\n $password = Authentication::getPasswordPolicy()->generatePassword();\n\n $user->setPassword($password);\n $user->setState(STATE_VISIBLE);\n\n if(array_var($user_data, 'updated_on')) {\n $user->setUpdatedOn(DateTimeValue::makeFromString(array_var($user_data, 'updated_on')));\n $user->setUpdatedBy(Authentication::getLoggedUser());\n } // if\n } // if\n\n // Collect imported users for updating object list\n $imported_users[] = array(\n 'is_new' => $is_new,\n 'user' => $user,\n 'password' => $password\n );\n\n return $user;\n }", "public function transform($user)\n {\n $data = [\n 'code' => $user->code,\n 'phone' => $user->phone\n ];\n\n return $data;\n }", "public function transform(CompanyUser $model)\n {\n return [\n 'id' => (int) $model->id,\n\n /* place your other model properties here */\n\n 'created_at' => $model->created_at,\n 'updated_at' => $model->updated_at\n ];\n }", "function getUser() : User {\n\treturn new User;\n}", "function &_fromRow(&$row) {\n\t\t$person = $this->newDataObject();\n\t\t$person->setId($row['person_id']);\n\t\t$person->setObjectId($row['object_id']);\n\t\t$person->setSequence($row['seq']);\n\t\t$person->setRole($row['role']);\n\t\t$person->setFirstName($row['first_name']);\n\t\t$person->setMiddleName($row['middle_name']);\n\t\t$person->setLastName($row['last_name']);\n\n\t\tHookRegistry::call('ObjectForReviewPersonDAO::_fromRow', array(&$person, &$row));\n\n\t\treturn $person;\n\t}", "public function make($userArray):User\n {\n $user = new User();\n\n // If user exists, assign the id, households, and current household\n if(isset($userArray['id'])){\n $user->setId($userArray['id']);\n $households = $this->householdRepository->allForUser($user);\n $user->setHouseholds($households);\n\n $currHousehold = $this->householdRepository->find($userArray['currHouseholdId']);\n $user->setCurrHousehold($currHousehold);\n }\n else{\n $user->setHouseholds(array());\n }\n $user->setUsername($userArray['username']);\n $user->setPassword($userArray['password']);\n $user->setEmail($userArray['email']);\n $user->setJoined($userArray['joined']);\n $user->setFirstName($userArray['namefirst']);\n $user->setLastName($userArray['namelast']);\n $user->setActivated($userArray['activated']);\n $user->setPassTemp($userArray['passTemp']);\n $user->setProfilePic($userArray['profilePic']);\n\n return $user;\n }", "private function getUser()\r\n {\r\n $UserId = -1;\r\n isset($_POST['UserId']) && intval($_POST['UserId']) > 0 ? $UserId = intval($_POST['UserId']) : $UserId = -1;\r\n $User = new User ($UserId);\r\n return $User;\r\n }", "public function user()\r\n {\r\n //** @var UserFrosting\\Sprinkle\\Core\\Util\\ClassMapper $classMapper\r\n $classMapper = static::$ci->classMapper;\r\n\r\n return $this->belongsTo($classMapper->getClassMapping('user'), 'user_id');\r\n }", "public function getUserById($userId){\n $id = intval($userId);\n\n $req = $this->db->prepare('SELECT * FROM users WHERE id = :id');\n $req->execute(array('id' => $id));\n $res = $req->fetch();\n\n var_dump($res);\n $user = User::getModel($res);\n\n return $user;\n }", "protected function _createUser() {\n\t\t$user = System_Locator_TableLocator::getInstance()->get('User')->createRow();\n\t\t$user->username = $this->getUsername();\n\t\t$user->setPassword($this->getPassword());\n\t\t$user->email = $this->getEmail();\n\t\t$user->countryCode = $this->getCountryCode();\n\t\t$user->createdAt = date(DATE_ISO8601); \n\t\treturn $user;\n\t}", "public function user()\n {\n return $this->morphTo();\n }", "public static function user() {\n $userClass = config('auth.providers.users.model');\n\n return new $userClass;\n }", "public function getUser(): User;", "private static function _createAuthIdentity($user)\n\t{\n\t\t$identity = new stdClass;\n\t\t$identity->id = $user->id;\n\t\t$identity->handle = $user->handle;\n\t\t//$identity->user_type = $user->user_type;\n\t\t$identity->first_name = $user->first_name;\n\t\t$identity->last_name = $user->last_name;\n\t\t$identity->email = $user->email;\n\t\treturn $identity;\n\t}", "function model()\n {\n return User::class;\n }", "public function model()\n {\n return User::class;\n }", "protected function getUserModel()\n\t{\n\t\t$userModel = Config::get('maclof/revisionable::user_model', 'User');\n\n\t\tif(!class_exists($userModel))\n\t\t{\n\t\t\tthrow new ModelNotFoundException('The model ' . $userModel . ' was not found.');\n\t\t}\n\n\t\treturn new $userModel;\n\t}", "private function userdata_convert(&$userdata) \n {\n\t // $userdata is our array that contains user data from our own\n\t // user database, which we must convert to the vBulletin values.\n\t // Minimally, it must contain the username, email and/or password.\n \n\t // required fields\n\t $vbuser = array( 'username' => $userdata['username'] );\n\t if (isset($userdata['email']))\n\t\t$vbuser['email'] = $userdata['email'];\n\t if (isset($userdata['password']))\n\t\t$vbuser['password'] = $userdata['password'];\n\t $vbuser['ipaddress'] = $_SERVER['REMOTE_ADDR'];\n\t // extra stuff, expand as desired\n\t if ($userdata['usergroupid'])\n\t\t$vbuser['usergroupid'] = $userdata['usergroupid'];\n\t if ($userdata['usertitle'])\n\t\t$vbuser['usertitle'] = $userdata['usertitle'];\n\t return $vbuser;\n }", "public function user()\n {\n return $this->morphOne(User::class, 'userable');\n }", "public function user()\n {\n return $this->morphOne(User::class, 'userable');\n }", "public function user()\n {\n /** @var \\UserFrosting\\Sprinkle\\Core\\Util\\ClassMapper $classMapper */\n $classMapper = static::$ci->classMapper;\n\n return $this->belongsTo($classMapper->getClassMapping('user'), 'user_id');\n }", "public function user()\r\n {\r\n $user = (new \\Users\\Models\\Users)->load(array('_id'=>$this->user_id));\r\n \r\n return $user;\r\n }", "public static function ToUserClass($userStd): Usuario\n {\n $user = new Usuario();\n\n $user->id = $userStd->id;\n $user->nombre = $userStd->nombre;\n $user->correo = $userStd->correo;\n $user->clave = $userStd->clave;\n $user->id_perfil = $userStd->id_perfil;\n\n return $user;\n }", "public function user()\n {\n return $this->belongsTo(AccountProxy::modelClass());\n }", "public function getUserRecord()\n {\n // we cache the user entry per request\n if($this->user)\n return $this->user;\n\n $res = $this->db->getUser();\n // if null create, onerror return false\n if($res === null)\n {\n // user entry does not exist, create it\n $res = $this->create();\n if(!$res)\n return false;\n\n // fetch the record to return\n $res = $this->db->getUser();\n if(!$res)\n return false;\n }\n elseif($res === false)\n {\n return false;\n }\n\n $this->user = $res;\n return $this->user;\n }", "public function getUserInstance()\n {\n $entity = null;\n\n if ($this instanceof \\User) {\n $entity = $this;\n } elseif ($this instanceof \\PortalUser) {\n $this->setPortalId();\n $entity = $this->getRelated('User');\n } else {\n $entity = $this->getPortalUser()->getRelated('User');\n }\n\n $this->checkJoin($this, $entity);\n\n return $entity;\n }", "public static function getUserRecord()\n {\n // we cache the user entry per request\n if(self::$user)\n return self::$user;\n\n $res = getDb()->getUser();\n // if null create, onerror return false\n if($res === null)\n {\n // user entry does not exist, create it\n $res = self::create();\n if(!$res)\n return false;\n }\n elseif($res === false)\n {\n return false;\n }\n\n self::$user = $res;\n return self::$user;\n }", "public function model()\n {\n return User::class;\n }", "public function model()\n {\n return User::class;\n }", "public function model()\n {\n return User::class;\n }", "public function model()\n {\n return User::class;\n }", "public function model()\n {\n return User::class;\n }", "public function model()\n {\n return User::class;\n }", "public function model()\n {\n return User::class;\n }", "public function model()\n {\n return User::class;\n }", "public function model()\n {\n return User::class;\n }", "public function model()\n {\n return User::class;\n }", "public function model()\n {\n return User::class;\n }", "public function model()\n {\n return User::class;\n }", "public function model()\n {\n return User::class;\n }" ]
[ "0.65936023", "0.6463212", "0.64536816", "0.64434385", "0.6423807", "0.6384725", "0.631523", "0.62826633", "0.6281497", "0.62374645", "0.6223688", "0.61040735", "0.6021661", "0.6016665", "0.5993482", "0.598545", "0.59591013", "0.59255373", "0.592377", "0.5911184", "0.58780557", "0.58592004", "0.58323234", "0.5776118", "0.57683265", "0.5764002", "0.57594", "0.5748158", "0.57452273", "0.57429844", "0.5742555", "0.57340086", "0.57336444", "0.5714337", "0.5711221", "0.5706351", "0.56896514", "0.5682984", "0.5642139", "0.5634327", "0.56267184", "0.5595685", "0.5554652", "0.5548904", "0.5548406", "0.55428094", "0.55331683", "0.5526645", "0.55236506", "0.5514127", "0.5485532", "0.54773533", "0.5476819", "0.54600424", "0.54528713", "0.5451861", "0.5437207", "0.54297435", "0.5421264", "0.5419235", "0.5414423", "0.541374", "0.54054564", "0.54046303", "0.5393484", "0.5386546", "0.53756654", "0.5365317", "0.53628397", "0.53574437", "0.5357204", "0.5353601", "0.53511876", "0.53481764", "0.53471684", "0.5331128", "0.5328278", "0.53216004", "0.53210926", "0.53210926", "0.5311607", "0.5310769", "0.5308567", "0.530371", "0.530368", "0.53017974", "0.53006226", "0.52998894", "0.52998894", "0.52998894", "0.52998894", "0.52998894", "0.52998894", "0.52998894", "0.52998894", "0.52998894", "0.52998894", "0.52998894", "0.52998894", "0.52998894" ]
0.7220252
0
Updates an event setup
public function update(Setup $setup) { $data = request()->validate([ 'address' => 'required|string', 'description' => 'nullable|string', 'fee' => 'nullable|numeric', 'setup_on' => 'required|date', ]); $setup->update([ 'address' => $data['address'], 'description' => $data['description'], 'fee' => $data['fee'], 'setup_on' => Carbon::parse($data['setup_on']), ]); return response()->json($setup->fresh()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update() {\n\t\t$vars = $this->params['url'];\n\t\t$this->Event->id = $vars['id'];\n\t\t$this->Event->saveField('start', $vars['start']);\n\t\t$this->Event->saveField('end', $vars['end']);\n\t\t$this->Event->saveField('all_day', $vars['allday']);\n\t}", "public function update() {\n $hasduedate = isset($this->mumie->duedate) && $this->mumie->duedate > 0;\n if (!$this->event && $hasduedate) {\n $this->create_calendar_event(\n self::EVENT_TYPE,\n $this->mumie->duedate\n );\n } else if ($this->event && $hasduedate) {\n $update = new \\stdClass();\n $update->name = $this->title;\n $update->timestart = $this->mumie->duedate;\n $this->event->update($update, false);\n } else if ($this->event && !$hasduedate) {\n $this->event->delete();\n }\n }", "public function testUpdateEvents()\n {\n $event= Event::factory(1)->create();\n // dd($event);\n $event->title = 'Maria';\n $this->put(\"/events\". $event[0]->id, $event->toArray());\n\n $this->assertDatabaseHas('events', [\n 'id' => 1,\n 'title' => 'Maria'\n ]);\n }", "protected function setUp()\n {\n parent::setUp();\n $this->object = new Event('test', $this, ['invoker' => $this]);\n }", "private function installEvents()\n {\n $this->load->model('setting/event');\n\n $this->model_setting_event->addEvent(\n 'payment_mundipagg',\n 'catalog/model/account/customer/editCustomer/after',\n 'extension/payment/mundipagg_events/onCustomerEdit'\n );\n \n $this->model_setting_event->addEvent(\n 'payment_mundipagg',\n 'catalog/model/account/address/addAddress/after',\n 'extension/payment/mundipagg_events/onAddressAdd'\n );\n }", "protected function setupConfig()\n\t{\n\t\tparent::setupConfig();\n\t\t\n\t\tunset($this->config->event_log);\n\t\t$this->config->event_log = new EventLogTemp(\n\t\t\t$this->config->olp_db,\n\t\t\t$this->config->olp_db->db_info['db'],\n\t\t\t$this->config_data->application_id,\n\t\t\t'event_log_new_bbx'\n\t\t);\n\t}", "protected function initEvent()\n {\n $locales = $this->container->getParameter('event.locales');\n $event = $this->getRepository('EventEventBundle:Event')->getEvent();\n $now = new \\DateTime();\n\n if (!$event) {\n $event = new Event();\n $event\n ->setTitle('My Event')\n ->setDescription('My another awesome event!')\n ->setStartDate($now)\n ->setEndDate($now->modify('+1 day'))\n ->setVenue('Burj Khalifa Tower')\n ->setEmail('[email protected]')\n ;\n\n $speaker = new Speaker();\n $speaker\n ->setFirstName('Phill')\n ->setLastName('Pilow')\n ->setCompany('Reseach Supplier')\n ;\n\n if ($locales) {\n foreach ($locales as $locale => $title) {\n $eventTranslation = new EventTranslation();\n $eventTranslation->setEvent($event);\n $eventTranslation->setlocale($locale);\n\n $this->getManager()->persist($eventTranslation);\n\n $speakerTranslation = new SpeakerTranslation();\n $speakerTranslation->setSpeaker($speaker);\n $speakerTranslation->setlocale($locale);\n\n $this->getManager()->persist($speakerTranslation);\n }\n }\n\n $this->getManager()->persist($event);\n $this->getManager()->persist($speaker);\n $this->getManager()->flush();\n }\n }", "protected function setUp() {\r\n\t\t\r\n\t\tparent::setUp ();\r\n\t\t$this->trait = $this->getObjectForTrait('Events');\r\n\t\r\n\t}", "protected function setupUpdateOperation()\n {\n $this->createUpdate();\n }", "private function _setUpEvent(\n CalendarEvent $event,\n \\SimpleXMLElement $xmlElement\n ) {\n switch ($xmlElement->getName())\n {\n case 'href':\n $event->setUrl((string) $xmlElement);\n break;\n case 'dtstart':\n $event->from((string) $xmlElement);\n break;\n case 'dtend':\n $event->to((string) $xmlElement);\n break;\n case 'location':\n $event->at((string) $xmlElement);\n break;\n case 'subject':\n $event->withSubject((string) $xmlElement);\n break;\n case 'htmldescription':\n $event->withDescription((string) $xmlElement);\n break;\n }\n\n }", "public static function setupDatabase( Event $event )\n\t{\n\t\t$options = $env = array();\n\n\t\tif( $event->isDevMode() ) {\n\t\t\t$options[] = '--option=setup/default/demo:1';\n\t\t} else {\n\t\t\t$env[] = '--env=prod';\n\t\t}\n\n\t\tself::executeCommand( $event, 'aimeos:setup', $options + $env );\n\t\tself::executeCommand( $event, 'aimeos:clear', $env );\n\t}", "function UpdateEvents() {\n\t\tforeach ($this->data as $i => $row) {\n\t\t\tif (!is_null($row['EventId'])) {\n\t\t\t\t//check wheter event is assigned to calculated event. If it is take the calculated rating, otherwise set the rating to -0.5\n\t\t\t\tif (array_key_exists($i, $this -> rating)) {\n\t\t\t\t\t$rating = $this -> rating[$i];\n\t\t\t\t} else {\n\t\t\t\t\t$rating = -0.5;\n\t\t\t\t}\n\t\t\t\t//update all events\n\t\t\t\t$sql = \"UPDATE Event SET rating=\" . $rating . \" WHERE EventId=\" . $row['EventId'];\n\t\t\t\t$stmt = $this -> DB -> prepare($sql);\n\t\t\t\tif ($stmt -> execute()) {\n\t\t\t\t} else {\n\t\t\t\t\tinclude_once \"Email.php\";\n\t\t\t\t\tnew Email('failed', 'to update event rating with EventId=' . $row['EventId'], $this -> id);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this -> updateTask();\n\n\t}", "public static function onUpdateEvent($param)\n {\n try\n {\n if (isset($param['id']))\n {\n // get the parameter $key\n $key=$param['id'];\n \n // open a transaction with database 'samples'\n TTransaction::open('samples');\n \n // instantiates object CalendarEvent\n $object = new CalendarEvent($key);\n $object->start_time = str_replace('T', ' ', $param['start_time']);\n $object->end_time = str_replace('T', ' ', $param['end_time']);\n $object->store();\n \n // close the transaction\n TTransaction::close();\n }\n }\n catch (Exception $e) // in case of exception\n {\n new TMessage('error', $e->getMessage());\n TTransaction::rollback();\n }\n }", "public function update($event_info = null)\n {\n echo \"观察者1 收到消息,执行完毕!\";\n }", "public function update(Event $event){\r\n $stmt = $this->db->prepare(\"UPDATE event set type=?, name=?, moment=?, date=?, guests=?, children=?, \r\n sweet_table=?, observations=?, restaurant=?, phone=?, price=? WHERE id_event=?\");\r\n $stmt->execute(array($event->getType(), $event->getName(), $event->getMoment(), $event->getDate(), $event->getGuests(), $event->getChildren(),\r\n $event->getSweetTable(), $event->getObservations(), $event->getRestaurant(), $event->getPhone(),$event->getPrice(),$event->getIdEvent()));\r\n\r\n }", "function eventclass_staff_info()\n\t{\n\t\t$this->events[\"AfterAdd\"]=true;\n\n\n//\tonscreen events\n\n\n\t}", "protected function setUp() {\r\n $this->_action = $this->getProvider()->prototype('PM\\Main\\Event\\Action\\Emit');\r\n\r\n parent::setUp();\r\n }", "public function requestUpdateEvent()\n {\n $ch = self::curlIni('event_update', $this->eventParams);\n\n return $ch;\n }", "protected function set_up()\n {\n $eventFeedText = file_get_contents(\n 'Zend/Gdata/Calendar/_files/EventFeedCompositeSample1.xml',\n true\n );\n $this->eventFeed = new Zend_Gdata_Calendar_EventFeed($eventFeedText);\n }", "function turnitintooltwo_update_event($turnitintooltwo, $part, $courseparam = false, $convertevent = false) {\n global $DB, $CFG, $USER;\n\n // Create the SQL depending on whether we need to check the course parameter.\n $dbselect = \" modulename = ? AND instance = ? AND name LIKE ? \";\n $dbparams = array('turnitintooltwo', $turnitintooltwo->id, '% - '.$part->partname);\n if ($courseparam) {\n $dbselect .= \"AND courseid = ? \";\n $dbparams[] = $turnitintooltwo->course;\n }\n try {\n // Create event data.\n $updatedevent = new stdClass();\n $updatedevent->userid = $USER->id;\n $updatedevent->name = $turnitintooltwo->name.\" - \".$part->partname;\n $updatedevent->timestart = $part->dtdue;\n\n // Create/Update event for assignment part.\n if ($event = $DB->get_record_select(\"event\", $dbselect, $dbparams)) {\n $updatedevent->id = $event->id;\n\n if ($CFG->branch >= 33) {\n $updatedevent->timesort = $part->dtdue;\n $updatedevent->type = 1;\n\n // No need to continue updating on this occasion if we have a new event type already.\n if (($convertevent) && ($event->type == 1)) {\n return;\n }\n }\n\n $DB->update_record('event', $updatedevent);\n } else {\n $turnitintooltwoassignment = new turnitintooltwo_assignment($turnitintooltwo->id);\n $turnitintooltwoassignment->create_event($turnitintooltwo->id, $part->partname, $part->dtdue);\n }\n } catch (Exception $e) {\n turnitintooltwo_comms::handle_exceptions($e, 'turnitintooltwoupdateerror', false);\n }\n}", "public function run()\n {\n (new Event)->updateOrCreate([\n 'id' => 1,\n 'name' => 'view',\n ]);\n\n\n (new Event)->updateOrCreate([\n 'id' => 2,\n 'name' => 'play',\n ]);\n\n (new Event)->updateOrCreate([\n 'id' => 3,\n 'name' => 'click',\n ]);\n }", "function update_events ($eID, &$set_arr) {\n\t// Initialize variables\n\t$errArr=init_errArr(__FUNCTION__);\n\t// Construct passing parameters \n\t$table_name = \"events\";\n\t$key_arr = array();\n\t$key_1 = \"eID\"; // this is key column from events table\n\t$key_arr [$key_1] = $eID; // set up value to the key\n\t\n\t// call the universal function to do the update\n\t$errArr = update_any_table($table_name, $key_arr, $set_arr) ;\n\t\t\n\treturn $errArr;\n}", "public function updateEvent()\n {\n $result = $this->_signedResponse($this->vars->cal);\n\n if (!($kronolith_driver = $this->_getDriver($this->vars->cal)) ||\n !isset($this->vars->id)) {\n return $result;\n }\n\n try {\n $oevent = $kronolith_driver->getEvent($this->vars->id);\n } catch (Exception $e) {\n $GLOBALS['notification']->push($e, 'horde.error');\n return $result;\n }\n if (!$oevent) {\n $GLOBALS['notification']->push(_(\"The requested event was not found.\"), 'horde.error');\n return $result;\n } elseif (!$oevent->hasPermission(Horde_Perms::EDIT)) {\n $GLOBALS['notification']->push(_(\"You do not have permission to edit this event.\"), 'horde.warning');\n return $result;\n }\n\n $attributes = Horde_Serialize::unserialize($this->vars->att, Horde_Serialize::JSON);\n\n // If this is a recurring event, need to create an exception.\n if ($oevent->recurs()) {\n $this->_addException($oevent, $attributes);\n $event = $this->_copyEvent($oevent, null, $attributes);\n } else {\n $event = clone($oevent);\n }\n\n foreach ($attributes as $attribute => $value) {\n switch ($attribute) {\n case 'start':\n $newDate = new Horde_Date($value);\n $newDate->setTimezone($event->start->timezone);\n $event->start = clone($newDate);\n break;\n\n case 'end':\n $newDate = new Horde_Date($value);\n $newDate->setTimezone($event->end->timezone);\n $event->end = clone($newDate);\n if ($event->end->hour == 23 &&\n $event->end->min == 59 &&\n $event->end->sec == 59) {\n $event->end->mday++;\n $event->end->hour = $event->end->min = $event->end->sec = 0;\n }\n break;\n\n case 'offDays':\n $event->start->mday += $value;\n $event->end->mday += $value;\n break;\n\n case 'offMins':\n $event->start->min += $value;\n $event->end->min += $value;\n break;\n }\n }\n\n $result = $this->_saveEvent($event, ($oevent->recurs() ? $oevent : null), $attributes);\n if ($this->vars->u) {\n Kronolith::sendITipNotifications($event, $GLOBALS['notification'], Kronolith::ITIP_REQUEST);\n }\n\n return $result;\n }", "function setEventType() // OK\n {\n }", "public function setUp() {\n\t\tparent::setUp();\n\t\t$this->_setPlugin();\n\n\t\t$this->ObjectObject = $this->ModelObject = $this->ViewObject = $this->ControllerObject = new Object();\n\n\t\t$this->ObjectEvent = new Event('TestEvent', $this->ObjectObject, $this->plugin);\n\t\t$this->ModelEvent = new Event('ModelEvent', $this->ModelObject, $this->plugin);\n\t\t$this->ViewtEvent = new Event('ViewtEvent', $this->ViewObject, $this->plugin);\n\t\t$this->ControllerEvent = new Event('ControllerEvent', $this->ControllerObject, $this->plugin);\n\n\t\tEventCore::loadEventHandler($this->plugin);\n\n\t\t$this->Event = EventCore::getInstance();\n\n\t\t$this->_loadEventClass();\n\t}", "function setEvent($year,$month,$day,$id=false,$url=false){\n$eventTime=$this->mkActiveTime(0,0,1,$month,$day,$year);\n\tif (!$id) $id=$this->cssEvent;\n$this->calEvents[$eventTime]=$id;\n$this->calEventsUrl[$eventTime]=$url;\n}", "public static function postUpdate(Event $event)\n {\n require_once $event->getComposer()->getConfig()->get('vendor-dir') . '/autoload.php';\n\n self::setEnv();\n }", "public function setup() {\r\n touchConfig([\r\n 'notifyOnNewDiscussion.Sender' => c('Garden.Email.SupportAddress'),\r\n 'notifyOnNewDiscussion.Recipient' => c('Garden.Email.SupportAddress')\r\n ]);\r\n $this->structure();\r\n }", "abstract function setup();", "abstract public function setup();", "abstract public function setup();", "abstract public function setup();", "abstract public function setup();", "public function setUp()\n {\n $request = file_get_contents(GITHUB_FIXTURES_DIR . '/Event/push.json');\n\n $this->webHook = new WebHook($request);\n $this->pushEvent = $this->webHook->getPushEvent();\n }", "protected function setUp()\n {\n $this->update = new Update;\n }", "public function setEvents(array $events)\n\t{\n\t\t$this->events = $events;\n\t}", "public static function activate() {\n\t\tadd_option( 'wpr_future_events' );\n\t}", "public function onSetup($callback)\n {\n $this->setupCallback = $callback;\n }", "function _entryapi_ui_event_form_save_event($form, &$form_state, $location, $organiser) {\n\n $values = $form_state['values'];\n\n $update = FALSE;\n if (isset($form['#event'])) {\n $update = TRUE;\n $event = $form['#event'];\n }\n else {\n $event = new CultureFeed_Cdb_Item_Event();\n }\n\n // Publication date\n if ($values['publication_date']) {\n $event->setPublicationDate($values['publication_date']);\n }\n\n // Age\n $event->setAgeFrom(($values['age'] ? $values['age'] : 0));\n\n // Timestamps as calendar.\n if ($values['when'] == 'one_day' || $values['when'] == 'multiple_days') {\n _entry_api_ui_event_save_timestamps($event, $values);\n }\n\n // Period or permanent as calendar.\n elseif ($values['when'] == 'period' || $values['when'] == 'permanent') {\n _entry_api_ui_event_save_weekscheme($event, $values);\n }\n\n // Categories.\n $category_values = $values['kijken_en_luisteren'];\n $category_values += $values['doen'];\n $category_values += $values['bezoeken'];\n $category_options = $form['what']['kijken_en_luisteren']['#options'];\n $category_options += $form['what']['doen']['#options'];\n $category_options += $form['what']['bezoeken']['#options'];\n\n $categories = new CultureFeed_Cdb_Data_CategoryList();\n foreach ($category_values as $key => $value) {\n if ($value) {\n $categories->add(new CultureFeed_Cdb_Data_Category(CultureFeed_Cdb_Data_Category::CATEGORY_TYPE_EVENT_TYPE, $value, $category_options[$value]));\n }\n }\n $event->setCategories($categories);\n\n // Event details.\n $detail = new CultureFeed_Cdb_Data_EventDetail();\n $detail->setTitle($values['title']);\n if (!empty($values['short_description'])) {\n $detail->setShortDescription($values['short_description']);\n }\n $detail->setLanguage(culturefeed_search_get_preferred_language());\n\n $details = new CultureFeed_Cdb_Data_EventDetailList();\n $details->add($detail);\n $event->setDetails($details);\n\n // Location / Address.\n $addresses = $location->getEntity()->getContactInfo()->getAddresses();\n $address = $addresses[0];\n\n // Event location\n $cdbLocation = new CultureFeed_Cdb_Data_Location($address);\n $cdbLocation->setLabel($values['location']);\n $cdbLocation->setCdbid($location->getId());\n $event->setLocation($cdbLocation);\n\n // Event organiser.\n $organiser_object = new CultureFeed_Cdb_Data_Organiser();\n $organiser_object->setLabel($values['organiser']);\n $organiser_object->setCdbid($organiser->getId());\n $event->setOrganiser($organiser_object);\n\n // Contact info.\n $physical_address = $address->getPhysicalAddress();\n $contact_object = new CultureFeed_Cdb_Data_ContactInfo();\n $contact_object->addAddress(new CultureFeed_Cdb_Data_Address($physical_address));\n\n foreach ($values['contacts'] as $contact) {\n\n if (!empty($contact['text'])) {\n switch ($contact['type']) {\n\n case 'website':\n $contact_object->addUrl(new CultureFeed_Cdb_Data_Url($contact['text'], FALSE, $contact['reservation']));\n break;\n\n case 'email':\n $contact_object->addMail(new CultureFeed_Cdb_Data_Mail($contact['text'], FALSE, $contact['reservation']));\n break;\n\n case 'phone':\n $contact_object->addPhone(new CultureFeed_Cdb_Data_Phone($contact['text'], CultureFeed_Cdb_Data_Phone::PHONE_TYPE_PHONE, FALSE, $contact['reservation']));\n break;\n\n }\n }\n\n\n }\n\n $event->setContactInfo($contact_object);\n\n try {\n\n if ($update) {\n DrupalCultureFeed_EntryApi::updateEvent($event);\n $form_state['#event_id'] = $event->getCdbId();\n }\n else {\n $form_state['#event_id'] = DrupalCultureFeed_EntryApi::createEvent($event);\n }\n\n $form_state['#update_event'] = $update;\n\n }\n catch (Exception $e) {\n watchdog_exception('entry_api_ui', $e);\n form_set_error('', 'Er ging iets fout tijdens het bewaren.');\n }\n\n}", "public function testComposerPostPackageUpdateEventHandlerDoesRun(): void {\n // Update must run when \"lemberg/draft-environment\" is being updated.\n $initial = new Package(App::PACKAGE_NAME, '1.0.0.0', '^1.0');\n $target = new Package(App::PACKAGE_NAME, '1.2.0.0', '^1.0');\n $operation = new UpdateOperation($initial, $target);\n $packageEvent = new PackageEvent(PackageEvents::POST_PACKAGE_UPDATE, $this->composer, $this->io, FALSE, $this->installedRepo, [$operation], $operation);\n\n $this->configUpdateManager\n ->expects(self::once())\n ->method('update');\n\n $this->app->handleEvent($packageEvent);\n }", "public function setUp()\n {\n $this->fixture = new LifecycleEventArgs(\n $this->document = new Product(),\n $this->documentManager = static::createMock(DocumentManagerInterface::class)\n );\n }", "public function testSetWebhookConfig()\n {\n $container = [];\n $sw = $this->createMockedSmartwaiver($container, APISuccessResponses::webhooks());\n\n $webhook = $sw->setWebhookConfig(\n 'https://endpoint.example.org',\n SmartwaiverWebhook::WEBHOOK_BEFORE_AND_AFTER_EMAIL\n );\n $this->assertInstanceOf(SmartwaiverWebhook::class, $webhook);\n\n // Check that the right requests were sent\n $this->checkPutRequests($container, ['/v4/webhooks/configure'], [\n '{\"endpoint\":\"https:\\/\\/endpoint.example.org\",\"emailValidationRequired\":\"both\"}'\n ]);\n }", "public function setup(){\n parent::setup();\n //Do stuff...\n }", "function setEventType()\n {\n $this->_eventType = 12;\n }", "public final function setUp() : void {\n //run the default setUp() method first\n parent::setUp();\n $password =\"Idkwhatimdoing\";\n $this->VALID_PROFILE_SALT = bin2hex(random_bytes(32));\n $this->VALID_PROFILE_HASH = hash_pbkdf2(\"sha512\", $password, $this->VALID_PROFILE_SALT, 262144);\n\n //create and insert a Profile to own test Event\n $this->profile = new Profile(generateUuidV4(), null,\"hey im cool\", \"[email protected]\",\"JeeWilikers\",$this->VALID_PROFILE_HASH,\"https://www.google.com/search?q=image&rlz=1C5CHFA_enUS729US729&source=lnms&tbm=isch&sa=X&ved=0ahUKEwjGiIeN3rzXAhXmqFQKHbCfAyAQ_AUICigB&biw=1440&bih=723#imgrc=9rzb-Rok9-rBiM\",\"Coolio\",$this->VALID_PROFILE_SALT,\"WowIamtehbest101\");\n $this->profile->insert($this->getPDO());\n\n\n //calculate the date (just use the time the unit test was setup...)\n $this->VALID_EVENTSTARTDATETIME = new \\DateTime();\n $this->VALID_EVENTENDDATETIME = new \\DateTime();\n\n //format the eventstartdatetime to use for testing\n $this->VALID_EVENTSTARTDATETIME = new \\DateTime();\n $this->VALID_EVENTSTARTDATETIME->sub(new \\DateInterval(\"P10D\"));\n\n //format the eventenddatetime to use for testing\n $this->VALID_EVENTENDDATETIME = new \\DateTime();\n $this->VALID_EVENTENDDATETIME->add(new \\DateInterval(\"P10D\"));\n }", "abstract protected function setup();", "protected function setup(): void\n {\n // our test cases should not have special events that are\n // in the past in comparison to the mock schedules\n $year = 2058;\n\n $assignment_name = \"Talk\";\n\n $this->schedules = new Map([\n new MonthOfAssignments([\n \"year\" => $year,\n \"month\" => \"January\",\n [\"date\" => 10, 5 => $assignment_name],\n [\"date\" => 17, 5 => $assignment_name],\n [\"date\" => 24, 5 => $assignment_name]\n ]),\n new MonthOfAssignments([\n \"year\" => $year,\n \"month\" => \"October\",\n [\"date\" => 4, 5 => $assignment_name],\n [\"date\" => 11, 5 => $assignment_name]\n ]),\n new MonthOfAssignments([\n \"year\" => $year,\n \"month\" => \"November\",\n [\"date\" => 8, 5 => $assignment_name],\n [\"date\" => 15, 5 => $assignment_name]\n ]),\n new MonthOfAssignments([\n \"year\" => $year,\n \"month\" => \"December\",\n [\"date\" => 6, 5 => $assignment_name],\n [\"date\" => 13, 5 => $assignment_name]\n ])\n ]);\n }", "private function initEvents() : void {\n\n $arenas = MineceitCore::getArenas()->getEventArenas();\n\n foreach($arenas as $arena) {\n $this->createEvent($arena);\n }\n }", "public function init()\n {\n// $eventSystem = $this->_bootstrap->getResource('EventSystem');\n// $eventSystem->raiseEvent($event);\n\n }", "public function initEvent()\n {\n $this->owner->{$this->createdAtField} = date($this->format);\n $this->owner->{$this->updatedAtField} = date($this->format);\n }", "public function testSetWebhookConfig()\n {\n $container = [];\n $sw = $this->createMockedSmartwaiver($container, APISuccessResponses::webhooks());\n\n $webhook = $sw->setWebhookConfig(\n 'https://endpoint.example.org',\n SmartwaiverWebhook::WEBHOOK_BEFORE_AND_AFTER_EMAIL\n );\n $this->assertInstanceOf(SmartwaiverWebhook::class, $webhook);\n\n // Check that the right requests were sent\n $this->assertCount(1, $container);\n $this->assertEquals('PUT', $container[0]['request']->getMethod());\n $this->assertEquals('/v4/webhooks/configure', $container[0]['request']->getRequestTarget());\n $this->assertEquals([self::TEST_API_KEY], $container[0]['request']->getHeader('sw-api-key'));\n $this->assertEquals(['application/json'], $container[0]['request']->getHeader('Content-Type'));\n $this->assertEquals(\n '{\"endpoint\":\"https:\\/\\/endpoint.example.org\",\"emailValidationRequired\":\"both\"}',\n $container[0]['request']->getBody()->getContents()\n );\n }", "public function setup(){\n\t\tparent::setup();\n\t\t//Do stuff...\n\t}", "public function setup()\n {\n $this->_config = array(\n 'adapters' => array(\n array(\n 'adapter' => 'Solar_Log_Adapter_File',\n 'events' => 'debug',\n 'file' => Solar_File::tmp('test_solar_log_adapter_multi.debug.log'),\n 'format' => '%e %m',\n ),\n array(\n 'adapter' => 'Solar_Log_Adapter_File',\n 'events' => 'info, notice',\n 'file' => Solar_File::tmp('test_solar_log_adapter_multi.other.log'),\n 'format' => '%e %m',\n ),\n ),\n );\n \n parent::setup();\n @unlink($this->_config['adapters'][0]['file']);\n @unlink($this->_config['adapters'][1]['file']);\n }", "protected function setUp ()\n\t{\n\t\t$this->EventCacheInst = new EventCacheInst(array(\n\t\t\t'app' => 'testapp',\n\t\t\t'trackEvents' => true,\n\t\t\t//'adapter' => 'EventCacheAdapterFile',\n\t\t\t'adapter' => 'EventCacheAdapterApc',\n\t\t\t//'adapter' => 'EventCacheAdapterMemcached',\n\t\t\t//'adapter' => 'EventCacheAdapterRedis',\n\t\t));\n\n\t\t$this->EventCacheInst->flush();\n\t\t$this->EventCacheInst->clear();\n\t}", "protected function setEvents()\n {\n foreach ($this->preloadList as $preload) {\n include_once XOOPS_ROOT_PATH . '/modules/' . $preload['module'] . '/preloads/' . $preload['file']. '.php';\n $class_name = ucfirst($preload['module'])\n . ($preload['file'] == 'preload' ? '' : ucfirst($preload['file']) )\n . 'Preload';\n if (!class_exists($class_name)) {\n continue;\n }\n $class_methods = get_class_methods($class_name);\n foreach ($class_methods as $method) {\n if (strpos($method, 'event') === 0) {\n $event_name = strtolower(str_replace('event', '', $method));\n $event= array($class_name, $method);\n $this->eventListeners[$event_name][] = $event;\n }\n }\n }\n }", "public function setup()\n {\n \t// rtConfig::set('your-key', $your_value);\n }", "public function logInit($event)\n {\n $this->setNewVersion();\n }", "public function updateSingleEvent() {\n\t\ttry {\n\t\t\t$id = Request::input('id');\n\t\t\t$before_end_date = Request::input('beforeEndDate');\n\t\t\t$after_start_date = Request::input('afterStartDate');\n\t\t\t$current_date = Request::input('currentDate');\n\t\t\t$original_event = ConnectContent::findOrFail($id);\n\n\t\t\t//Replicate the event for before, after and current\n\t\t\t$before = $original_event->replicate();\n\t\t\t$after = $original_event->replicate();\n\n\t\t\t$current = $original_event->replicate();\n\n\t\t\t//Update the time of this single current event\n\t\t\t$current->start_time = getMySQLTimeFormat(Request::input('start_time'));\n\t\t\t$current->end_time = getMySQLTimeFormat(Request::input('end_time'));\n\t\t\t$current->start_date = Request::input('start_date');\n\t\t\t$current->end_date = Request::input('end_date');\n\t\t\t$current->what = Request::input('what');\n\t\t\t$current->who = Request::input('who');\n\n\t\t\t//We split the talk show timelines into before and after current date\n\t\t\t$before->end_date = $before_end_date;\n\t\t\t$after->start_date = $after_start_date;\n\n\t\t\t$current->start_date = $current->end_date = $current_date;\n\n\t\t\tif($current->content_type_id == ContentType::GetMusicMixContentTypeID()) {\n\t\t\t\t$current->mix_title = Request::input('mix_title') ? Request::input('mix_title') : $current->mix_title;\n\t\t\t}\n\n\t\t\t$before->save();\n\t\t\t$after->save();\n\t\t\t$current->save();\n\t\t\t\n\t\t\tif (\\Auth::User()->station->is_private) {\n\t\t\t\t$before->updateContentToTagsLinkStatic();\n\t\t\t\t$after->updateContentToTagsLinkStatic();\n\t\t\t\t$current->updateContentToTagsLinkStatic();\n\t\t\t} else {\n\t\t\t\t$before->updateContentToTagsLink();\n\t\t\t\t$after->updateContentToTagsLink();\n\t\t\t\t$current->updateContentToTagsLink();\n\t\t\t}\n\n\t\t\t//Replicate attachments for new before and after talk show recurrences\n\t\t\t$attachments = ConnectContentAttachment::where('content_id', $id)\n\t\t\t\t->get();\n\t\t\tforeach($attachments as $attachment) {\n\t\t\t\t$attachment_for_before = $attachment->replicate();\n\t\t\t\t$attachment_for_before->content_id= $before->id;\n\t\t\t\t$attachment_for_after = $attachment->replicate();\n\t\t\t\t$attachment_for_after ->content_id = $after->id;\n\t\t\t\t$attachment_for_current = $attachment->replicate();\n\t\t\t\t$attachment_for_current->content_id= $current->id;\n\t\t\t\t$attachment_for_before->save();\n\t\t\t\t$attachment_for_after->save();\n\t\t\t\t$attachment_for_current->save();\n\t\t\t\t//Should we delete the original attachments?\n\t\t\t}\n\n\n\t\t\t$original_event->removeConnectContent();\n\n\t\t\t$is_complete = false;\n\t\t\t$images = ConnectContentAttachment::where('content_id', '=', $current['id'])->whereIn('type', ['image', 'video', 'logo'])->first();\n\n\t\t\tif(count($images) > 0 && !empty($current['who']) && !empty($current['what']) && $current['action_id'] && !empty($current['action_params']) && $current['is_ready']) {\n\t\t\t\t$is_complete = true;\n\t\t\t}\n\n\t\t\t$current->is_complete = $is_complete;\n\n\t\t\treturn response()->json(array('code' => 0, 'msg' => 'Talk Show Updated', 'data' => array('id'=> $id, 'before' => $before, 'after' => $after, 'current' => $current)));\n\t\t} catch (\\Exception $ex) {\n\t\t\t\\Log::error($ex);\n\t\t\treturn response()->json(array('code' => -1, 'msg' => $ex->getMessage()));\n\t\t}\n\t}", "function eventclass_TambahPergerakan()\n\t{\n\t\t$this->events[\"BeforeShowEdit\"]=true;\n\n\n//\tonscreen events\n\n\n\t}", "public function postEventedit();", "public function setEvents($events, $format = false)\n {\n $this->_events = $events;\n if ($format !== false)\n $this->_format = $format;\n ksort($this->_events);\n }", "function updateEvent($id, $name, $description, $type, $start, $end)\n{\n require_once(\"model/database.php\");\n $query = \"UPDATE events SET name = :name, description = :description, type = :type, start = :start, end = :end WHERE id = :id ;\";\n return executeQueryIUDAffected($query, createBinds([[\":id\", $id, PDO::PARAM_INT], [\":name\", $name], [\":description\", $description], [\":type\", $type], [\":start\", $start], [\":end\", $end]]));\n}", "protected function doSetup(): void\n {\n }", "protected function parentSetup() {\n }", "protected function manageEvent()\n {\n // Manage the incoming session\n $this->manageSession();\n\n // Get the event data from the incoming request\n $eventData = $this->eventRequest->getEvent();\n\n // Get the entity data from the event\n $entityData = $eventData->get('entity');\n\n if (!is_array($entityData)) $entityData = [];\n\n // Hydrate the event entity\n $this->eventEntity = $this->hydrateEntity($entityData);\n\n // Create the event object\n $this->event = new WebsiteEvent();\n\n // Format the action\n $action = $eventData->get('action');\n $this->setDefaultAction($action);\n\n $this->event->setAction($action);\n $this->event->setEntity($this->eventEntity);\n $this->event->setCreatedAt(time());\n\n if (!is_null($eventData->get('data'))) {\n $this->event->setData($eventData->get('data'));\n }\n\n // Set any related entities to the event\n $relatedEntityData = $eventData->get('relatedEntities');\n if (is_array($relatedEntityData) && !empty($relatedEntityData)) {\n foreach ($relatedEntityData as $relatedEntity) {\n $relEntityObj = $this->hydrateEntity($relatedEntity);\n $this->event->addRelatedEntity($relEntityObj);\n\n }\n }\n // Set the session to the event\n $this->event->setSession($this->session);\n }", "function setEvent() {\n \n if($_POST['am'] == 1){\n $star_time = $_POST['stime_a'] + 12 . \":\". $_POST['stime_b'];\n }else{\n $star_time = $_POST['stime_a'] . \":\". $_POST['stime_b'];\n }\n \n if($_POST['am1'] == 1){\n $end_time = $_POST['stime_c'] + 12 . \":\". $_POST['stime_d'];\n }else{\n $end_time = $_POST['stime_c'] . \":\". $_POST['stime_d'];\n }\n\n $values = array('event_id' => uniqid(),\n 'web_id' => WEB_ID,\n 'title' => $_POST['title'],\n 's_time' => $star_time,\n 'e_time' => $end_time,\n 'date' => date('Y-m-d H:i:s', strtotime($_POST['sDate'])),\n 'location' => $_POST['location'],\n 'description' => $_POST['disc'],\n 'end_date' => date('Y-m-d H:i:s', strtotime($_POST['eDate'])),\n 'visible' => \"on\"\n );\n\n $this->db->insert('events', $values);\n }", "public function setup();", "public function setup();", "public static function __events () {\n \n }", "protected function _updateEvent(Kronolith_Event $event)\n {\n throw new Kronolith_Exception($this->_errormsg);\n }", "public function setup() {}", "public function setup(array $config): void\n {\n }", "function update_event($event_id,$event_title,$event_des,$event_place,$event_date,$event_detail){\n\tmysql_query(\"UPDATE `events` SET `event_title` = '$event_title' , `event_des` = '$event_des' , `event_place` = '$event_place' , `event_date` = '$event_date' , `event_detail` = '$event_detail' WHERE `event_id` = $event_id\");\n}", "function updateEvent(){\r\n\t\tif(!isset($_POST['submitted'])){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t$formvars = array();\r\n\r\n\t\tif(!$this->ValidateUpdatedSubmission()){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t$itemPicture = $this->upLoadPic();\r\n\t\tif($itemPicture != false){\r\n\t\t\t$formvars['Eflyer'] = $this->upLoadPic();\r\n\t\t}\r\n\t\t\t\t\r\n\t\t$picBanner = $this->upLoadBanner();\r\n\t\tif($picBanner != false){\r\n\t\t\t$formvars['Ebanner'] = $this->upLoadBanner();\r\n\t\t}\r\n\t\t\r\n\t\t$this->CollectUpdatedSubmission($formvars);\r\n\t\t\r\n\t\tif(!$this->updateEventInDatabase($formvars)){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public function update_event($event_id,$_data){\r\n\t\t$ev=json_decode($this->get_event($event_id));\r\n\t\t$_data['sequence']=$ev->sequence+1;\r\n\t\t$args=$this->create_args($_data);\r\n\t\treturn($this->execute('update_event',$args,array('event_id'=>$event_id)));\r\n\t}", "public function setUp()\n {\n if ($this->getOption('listener') === true) \n $this->addListener(new BlameableListener($this->_options));\n }", "abstract function HookEvents();", "public abstract function setup(array $data = array());", "public function postEventadd();", "public function setup()\n {\n $this->addOriginToData()->addArgumentsToData();\n }", "function setup() {}", "public function test_event_notification()\n {\n $this->event_notification_helper('event_method', true);\n }", "protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }", "protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }", "protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }", "protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }", "protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }", "protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }", "protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }", "protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }", "protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }", "protected function setupUpdateOperation()\n {\n $this->setupCreateOperation();\n }", "public function _postSetup()\n {\n }", "protected function onFinishSetup()\n {\n }", "public function sendEvent($context) {\n\t\t\n\t\t\t//Store some information on the Symphony Entry.\n\t\t\t$entry = $context['entry'];\n\t\t\t\n\t\t\t$entry_settings = $entry->get();\n\t\t\t$entry_id = $entry_settings['id'];\t\n\t\n\t\t\t$e_data = array();\n\t\t\tforeach($context['fields'] as $key => $value) {\n\t\t\t\tif($this->string_begins_with($key, 'e-')) {\n\t\t\t\t\t$e_data[str_replace('e-', 'e_', $key)] = $value;\n\t\t\t\t} else if ($this->string_begins_with($key, 'g-')) {\n\t\t\t\t\t$e_data[str_replace('g-', 'g_', $key)] = $value;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Change the e_status property to a value the API understands\n\t\t\tif($e_data['e_status'] == 'yes') {\n\t\t\t\t$e_data['e_status'] = 'active';\n\t\t\t} else {\n\t\t\t\t$e_data['e_status'] = 'pending';\n\t\t\t}\t\n\t\t\t//Set the format of the Date/Times\n\t\t\t$e_data['e_start'] = date('Y-m-d G:i:s', strtotime($e_data['e_start']));\n\t\t\t$e_data['e_stop'] = date('Y-m-d G:i:s', strtotime($e_data['e_stop']));\n\t\t\t$e_data['e_deadline'] = date('Y-m-d G:i:s', strtotime($e_data['e_deadline']));\n\n\t\t\t//Another Required field is the User ID\n\t\t\t$e_data['u_id'] = $this->u_id;\n\t\t\t\n\t\t\t//Create a unique Push URL (e_pushurl) from the entry ID.\n\t\t\t$e_data['e_pushurl'] = URL .'/eventarc-updater/?hash='.sha1($entry_id).'&id='.$entry_id;\n\t\t\n\t\t\t//Address Data\n\t\t\t$a_data = array();\n\t\t\tforeach($context['fields'] as $key => $value) {\n\t\t\t\tif($this->string_begins_with($key, 'a-')) {\n\t\t\t\t\t$a_data[str_replace('a-', 'a_', $key)] = $value;\n\t\t\t\t} \n\t\t\t}\n\t\t\t\n\t\t\t//If the ID & URL are not set - Create a new event.\n\t\t\tif($e_data['e_id'] == '' && $e_data['e_url'] == '') {\n\t\t\t\n\t\t\t\tunset($e_data['e_id']);\n\t\t\t\tunset($e_data['e_url']);\t\n\t\t\t\tif(!empty($a_data)) {\n\t\t\t\t\t//Set the type as venue.\n\t\t\t\t\t$a_data['a_type'] = 'venue';\n\t\t\t\t\t// Send the event to eventarc with the address details\n\t\t\t\t\t$result = $this->eventarc\n\t\t\t\t\t ->add_event($e_data)\n\t\t\t\t\t ->add_address($a_data)\n\t\t\t\t\t ->event_create();\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t// Send the event to eventarc\n\t\t\t\t\t$result = $this->eventarc\n\t\t\t\t\t ->add_event($e_data)\n\t\t\t\t\t ->event_create();\n\t\t\t\t}\n\n\t\t\t\t if($result) {\n\t\n\t\t\t\t \tif(!isset(self::$fieldManager)) {\n\t\t\t\t \t\tself::$fieldManager = new fieldManager(Symphony::Engine());\n\t\t\t\t \t}\n\t\t\t\t \t\n\t\t\t\t \t$field_id = self::$fieldManager->fetchFieldIDFromElementName('e-id');\n\t\t\t\t \t$entry->setData($field_id, array(\n\t\t\t\t \t\t'handle' => $result['e_id'],\n\t\t\t\t \t\t'value' => $result['e_id'],\n\t\t\t\t \t\t'value_formatted' => $result['e_id'],\n\t\t\t\t \t\t'word_count' => 0\n\t\t\t\t \t));\n\t\t\t\t \t\n\t\t\t\t \t//Save the returned Eventarc URL (e_url).\n\t\t\t\t \t$field_id = self::$fieldManager->fetchFieldIDFromElementName('e-url');\n\t\t\t\t \t$entry->setData($field_id, array(\n\t\t\t\t \t\t'handle' => $result['url'],\n\t\t\t\t \t\t'value' => $result['url'],\n\t\t\t\t \t\t'value_formatted' => $result['url'],\n\t\t\t\t \t\t'word_count' => 0\n\t\t\t\t \t));\n\t\t\t\t \t\n\t\t\t\t \t//Save the returned Eventarc Address ID (a_id).\n\t\t\t\t \t$field_id = self::$fieldManager->fetchFieldIDFromElementName('a-id');\n\t\t\t\t \t$entry->setData($field_id, array(\n\t\t\t\t \t\t'handle' => $result['a_id'],\n\t\t\t\t \t\t'value' => $result['a_id'],\n\t\t\t\t \t\t'value_formatted' => $result['a_id'],\n\t\t\t\t \t\t'word_count' => 0\n\t\t\t\t \t));\n\t\t\t\t \t\n\t\t\t\t \t$entry->commit();\n\t\t\t \n\t\t\t\t }\n\t\t\t\t \n\t\t\t} \n\t\t\t//Event already exists - update the event. \n\t\t\telse {\n\t\t\t\t\n\t\t\t\t//Check that the URL is not empty.\t\n\t\t\t\tif($e_data['e_url'] == '') {\n\t\t\t\t\t\n\t\t\t\t\t$result = $this->eventarc->event_get($e_data['e_id']);\n\t\t\t\t\t\n\t\t\t\t\tif(!isset(self::$fieldManager)) {\n\t\t\t\t\t\tself::$fieldManager = new fieldManager(Symphony::Engine());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//Save the returned Eventarc URL (e_url).\n\t\t\t\t\t$field_id = self::$fieldManager->fetchFieldIDFromElementName('e-url');\n\t\t\t\t\t$entry->setData($field_id, array(\n\t\t\t\t\t\t'handle' => $result['url'],\n\t\t\t\t\t\t'value' => $result['url'],\n\t\t\t\t\t\t'value_formatted' => $result['url'],\n\t\t\t\t\t\t'word_count' => 0\n\t\t\t\t\t));\n\t\t\t\t\t\n\t\t\t\t\t$entry->commit();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//Check that the Address ID is not empty.\t\n\t\t\t\tif($a_data['a_id'] == '') {\n\t\t\t\t\t\n\t\t\t\t\t$result = $this->eventarc->event_get_address($e_data['e_id']);\n\t\t\t\t\t\n\t\t\t\t\tif(!isset(self::$fieldManager)) {\n\t\t\t\t\t\tself::$fieldManager = new fieldManager(Symphony::Engine());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//Save the returned Eventarc Address ID (a_id).\n\t\t\t\t\t$field_id = self::$fieldManager->fetchFieldIDFromElementName('a-id');\n\t\t\t\t\t$entry->setData($field_id, array(\n\t\t\t\t\t\t'handle' => $result['a_id'],\n\t\t\t\t\t\t'value' => $result['a_id'],\n\t\t\t\t\t\t'value_formatted' => $result['a_id'],\n\t\t\t\t\t\t'word_count' => 0\n\t\t\t\t\t));\n\t\t\t\t\t\n\t\t\t\t\t//Store the retrieved address ID.\n\t\t\t\t\t$a_data['a_id'] = $result['a_id'];\n\t\t\t\t\t$entry->commit();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Don't want to manually change the URL generated by Eventarc.\n\t\t\t\tunset($e_data['e_url']);\t\t\t\t\n\t\t\t\t\n\t\t\t\t//Edit the Event.\n\t\t\t\tif(!empty($a_data)) {\n\t\t\t\t\t//Set the type as venue.\n\t\t\t\t\t$a_data['a_type'] = 'venue';\n\t\t\t\t\t// Send the event to eventarc with the address details\n\t\t\t\t\t$result = $this->eventarc\n\t\t\t\t\t ->add_event($e_data)\t\n\t\t\t\t\t ->event_update();\n\t\t\t\t\t $result = $this->eventarc\n\t\t\t\t\t ->add_address($a_data)\n\t\t\t\t\t ->address_update();\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t// Send the event to eventarc\n\t\t\t\t\t$result = $this->eventarc\n\t\t\t\t\t ->add_event($e_data)\n\t\t\t\t\t ->event_update();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\n\t\t}", "public function testEventCallBackPatch()\n {\n }", "public static function updateEvent(\\Elgg\\Event $event) {\n\t\t$entity = $event->getObject();\n\t\tif (!$entity instanceof \\Event) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t$org_attributes = $entity->getOriginalAttributes();\n\t\tif (elgg_extract('access_id', $org_attributes) === null) {\n\t\t\t// access wasn't updated\n\t\t\treturn;\n\t\t}\n\t\t\n\t\telgg_call(ELGG_IGNORE_ACCESS, function() use ($entity) {\n\t\t\t$days = $entity->getEventDays();\n\t\t\tif (!empty($days)) {\n\t\t\t\tforeach ($days as $day) {\n\t\t\t\t\t$day->access_id = $entity->access_id;\n\t\t\t\t\t$day->save();\n\t\t\t\t\n\t\t\t\t\t$slots = $day->getEventSlots();\n\t\t\t\t\tif (empty($slots)) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\tforeach ($slots as $slot) {\n\t\t\t\t\t\t$slot->access_id = $entity->access_id;\n\t\t\t\t\t\t$slot->save();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$questions = $entity->getRegistrationFormQuestions();\n\t\t\tif (!empty($questions)) {\n\t\t\t\tforeach ($questions as $question) {\n\t\t\t\t\t$question->access_id = $entity->access_id;\n\t\t\t\t\t$question->save();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "function eventclass_student_attendance()\n\t{\n\t\t$this->events[\"AfterAdd\"]=true;\n\n\t\t$this->events[\"AfterEdit\"]=true;\n\n\t\t$this->events[\"AfterDelete\"]=true;\n\n\n//\tonscreen events\n\n\n\t}", "protected function setupUpdateOperation()\n {\n CRUD::setValidation(SettingRequest::class);\n\n $readonly = [];\n if (User::min('id') !== backpack_user()->id) {\n $readonly = ['readonly' => 'readonly'];\n }\n\n CRUD::field('key')->type('text')->label('ID key')->attributes($readonly);\n CRUD::field('name')->type('text')->label('Nom');\n CRUD::field('value')->type(CRUD::getCurrentEntry()->type)->label('Contenu');\n }", "abstract public function postConfigure();", "function alpha_meta_box_add_to_events()\n{\n add_meta_box('alpha-beer-list', 'Beer List Properties', 'alpha_beer_list', 'ptf_events', 'side', 'low');\n}" ]
[ "0.60127246", "0.58263695", "0.5720697", "0.5712233", "0.5689446", "0.55262816", "0.552204", "0.5509711", "0.5507458", "0.5450546", "0.53661466", "0.53401077", "0.53303635", "0.5314388", "0.53040814", "0.5302242", "0.52967834", "0.5287145", "0.5271933", "0.5264535", "0.5246814", "0.5228054", "0.5222156", "0.5212853", "0.5207854", "0.5205835", "0.519136", "0.5187609", "0.518659", "0.51754594", "0.51754594", "0.51754594", "0.51754594", "0.51680434", "0.51546234", "0.5136428", "0.5131462", "0.5109089", "0.510494", "0.5103418", "0.51004654", "0.5093128", "0.50925785", "0.5084581", "0.50802886", "0.50705606", "0.50694025", "0.5068553", "0.50652164", "0.5038117", "0.50378734", "0.50338393", "0.50301975", "0.5028165", "0.5027623", "0.502728", "0.5026677", "0.50068307", "0.50013804", "0.49973845", "0.4995923", "0.4993481", "0.49932647", "0.49881396", "0.49825466", "0.4982461", "0.4979562", "0.4979562", "0.49655804", "0.49634224", "0.4961266", "0.49538365", "0.4948587", "0.49418518", "0.4939923", "0.49393332", "0.4935419", "0.49345067", "0.49331623", "0.49279892", "0.4924067", "0.49239215", "0.49118304", "0.49118304", "0.49118304", "0.49118304", "0.49118304", "0.49118304", "0.49118304", "0.49118304", "0.49118304", "0.49118304", "0.49041864", "0.49023563", "0.4893428", "0.48928282", "0.4892147", "0.48816928", "0.48668927", "0.48626846", "0.48445198" ]
0.0
-1
NOTE: We could make this a little more accurate
protected static function resolveCreationPage(Listing $listing, int $step): int { if ($step === 3) { return self::whatPageAreWeOnInStepThree($listing); } return self::whatPageAreWeOnInStepTwo($listing); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _optimize() {}", "protected function _findStartOffset() {}", "function old_calculate_position($fingerPrints, $user_signals)\n{\n\n\t$closest_distance = 100000000.0;\n\t$closest_coordinates = \"000,000\";\n\t$closest_room = \"default\";\n\t$a = 0;\n\tforeach ($fingerPrints as $outer) {\n\t\t$temp_sum = 0.0;\n\t\tforeach ($outer as $value) {\t\n\t\t\tforeach($user_signals as $mac => $sig) {\n\t\t\t\tif ($mac == $value->get_mac()) {\n\t\t\t\t\t$signal_distance = $value->get_average() - $sig;\n\t\t\t\t\t$absolute_distance = abs($signal_distance);\n\t\t\t\t\t$temp_sum = $temp_sum + $absolute_distance;\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\t\t\t \n\t\t}\n\t\tif ($temp_sum < $closest_distance) {\n\t\t\t$closest_distance = $temp_sum;\n\t\t\t$closest_coordinates = $fingerPrints[$a][0]->get_position();\n\t\t$closest_room = $fingerPrints[$a][0]->get_room();\n\t\t}\n\t\t$a = $a + 1;\n\t}\n\techo $closest_coordinates; \n\techo \"_\";\n\techo $closest_room;\n}", "public function testPreprocessingGetPageAngle()\n {\n }", "protected function _refine() {\n\n\t}", "function getOffset() ;", "function interceptions() {\n\t\t$interceptions_calc = $this->_interceptions/$this->_attempts;\n\t\t// Other NFL QBR specific manipulations\n\t\t$interceptions_calc *= 25;\n\t\tif (2.375 - $interceptions_calc < 0) {\n\t\t\t$interceptions_calc = 0;\n\t\t} else {\n\t\t\t$interceptions_calc = 2.375 - $interceptions_calc;\n\t\t}\n\t\treturn $interceptions_calc;\n\t}", "function compareLC() {\n $beginMatch = 0;\n $beginSubjectMatch = 0;\n $beginClassMatch = 0;\n $beginCutter1Match = 0;\n $beginCutter2Match = 0;\n $beginCutter3Match = 0;\n $beginVersionMatch = 0;\n $beginCopyMatch = 0;\n\n //Check Subjects\n if ($GLOBALS['CN_Subject'] > $GLOBALS['BC_Subject']) {\n $beginMatch = 1;\n } else if ($GLOBALS['CN_Subject'] >= $GLOBALS['BC_Subject']) {\n $beginSubjectMatch = 1;\n }\n\n //Check Classification Number\n if ($beginSubjectMatch) {\n //if(strpos($GLOBALS['CN_ClassNum'], '.') !== false) {\n if ((double) $GLOBALS['CN_ClassNum'] > (double) $GLOBALS['BC_ClassNum']) {\n $beginMatch = 1;\n } else if ((double) $GLOBALS['CN_ClassNum'] >= (double) $GLOBALS['BC_ClassNum']) {\n $beginClassMatch = 1;\n }\n //}\n /*\n //else {\n $CN_Arr = str_split($GLOBALS['CN_ClassNum']);\n $BC_Arr = str_split($GLOBALS['BC_ClassNum']);\n $EC_Arr = str_split($GLOBALS['EC_ClassNum']);\n\n $n = 0;\n\n for ($n; $n < sizeof($CN_Arr); ++$n) {\n if ($n >= sizeof($BC_Arr)) {\n $beginClassMatch = 1;\n break;\n } else if ($n < sizeof($BC_Arr)) {\n if ($CN_Arr[$n] > $BC_Arr[$n]) {\n $beginMatch = 1;\n break;\n } else if ($CN_Arr[$n] < $BC_Arr[$n]) {\n break;\n } else { }\n } else { }\n }\n\n if ($n == sizeof($CN_Arr)) {\n $beginClassMatch = 1;\n }\n //}\n */\n\n \n }\n\n //Check Cutter 1\n if ($beginClassMatch) {\n $CN_Cutter1_Ltr = substr($GLOBALS['CN_Cutter1'], 1, 1);\n $CN_Cutter1_Num = (int) substr($GLOBALS['CN_Cutter1'], 2);\n\n $BC_Cutter1_Ltr = substr($GLOBALS['BC_Cutter1'], 1, 1);\n $BC_Cutter1_Num = (int) substr($GLOBALS['BC_Cutter1'], 2);\n\n if (empty($GLOBALS['CN_Cutter1']) || empty($GLOBALS['BC_Cutter1'])) {\n $beginCutter1Match = 1;\n } else {\n if ($CN_Cutter1_Ltr > $BC_Cutter1_Ltr) {\n $beginMatch = 1;\n } else if (strcmp($CN_Cutter1_Ltr, $BC_Cutter1_Ltr) == 0) {\n if ($CN_Cutter1_Num > $BC_Cutter1_Num) {\n $beginMatch = 1;\n } else if (strcmp($CN_Cutter1_Num, $BC_Cutter1_Num) == 0) {\n $beginCutter1Match = 1;\n }\n }\n }\n }\n\n //Check Cutter 2\n if ($beginCutter1Match) {\n $CN_Cutter2_Ltr = substr($GLOBALS['CN_Cutter2'], 0, 1);\n $CN_Cutter2_Num = (int) substr($GLOBALS['CN_Cutter2'], 1);\n\n $BC_Cutter2_Ltr = substr($GLOBALS['BC_Cutter2'], 0, 1);\n $BC_Cutter2_Num = (int) substr($GLOBALS['BC_Cutter2'], 1);\n\n if (empty($GLOBALS['CN_Cutter2']) || empty($GLOBALS['BC_Cutter2'])) {\n $beginCutter2Match = 1;\n } else {\n if ($CN_Cutter2_Ltr > $BC_Cutter2_Ltr) {\n $beginMatch = 1;\n } else if (strcmp($CN_Cutter2_Ltr, $BC_Cutter2_Ltr) == 0) {\n if ($CN_Cutter2_Num > $BC_Cutter2_Num) {\n $beginMatch = 1;\n } else if (strcmp($CN_Cutter2_Num, $BC_Cutter2_Num) == 0) {\n $beginCutter2Match = 1;\n }\n }\n }\n }\n\n //Check Cutter 3\n if ($beginCutter2Match) {\n $CN_Cutter3_Ltr = substr($GLOBALS['CN_Cutter3'], 0, 1);\n $CN_Cutter3_Num = (int) substr($GLOBALS['CN_Cutter3'], 1);\n\n $BC_Cutter3_Ltr = substr($GLOBALS['BC_Cutter3'], 0, 1);\n $BC_Cutter3_Num = (int) substr($GLOBALS['BC_Cutter3'], 1);\n\n if (empty($GLOBALS['CN_Cutter3']) || empty($GLOBALS['BC_Cutter3'])) {\n $beginCutter3Match = 1;\n } else {\n if ($CN_Cutter3_Ltr > $BC_Cutter3_Ltr) {\n $beginMatch = 1;\n } else if (strcmp($CN_Cutter3_Ltr, $BC_Cutter3_Ltr) == 0) {\n if ($CN_Cutter3_Num > $BC_Cutter3_Num) {\n $beginMatch = 1;\n } else if (strcmp($CN_Cutter3_Num, $BC_Cutter3_Num) == 0) {\n $beginCutter3Match = 1;\n }\n }\n }\n }\n\n //Check Version\n if ($beginCutter3Match) {\n $CN_Version_Num = substr($GLOBALS['CN_Version'], 2);\n $BC_Version_Num = substr($GLOBALS['BC_Version'], 2);\n\n if (empty($CN_Version_Num)) {\n $beginVersionMatch = 1;\n } else if ($CN_Version_Num >= $BC_Version_Num || empty($BC_Version_Num)) {\n $beginMatch = 1;\n }\n }\n\n //Check Copy\n if ($beginVersionMatch) {\n $CN_Copy_Num = substr($GLOBALS['CN_Copy'], 2);\n $BC_Copy_Num = substr($GLOBALS['BC_Copy'], 2);\n\n if (empty($CN_Copy_Num)) {\n $beginCopyMatch = 1;\n } else if ($CN_Copy_Num >= $BC_Copy_Num || empty($BC_Copy_Num)) {\n $beginMatch = 1;\n }\n }\n\n $endMatch = 0;\n $endSubjectMatch = 0;\n $endClassMatch = 0;\n $endCutter1Match = 0;\n $endCutter2Match = 0;\n $endCutter3Match = 0;\n $endVersionMatch = 0;\n $endCopyMatch = 0;\n\n //Check Subjects\n if ($GLOBALS['CN_Subject'] < $GLOBALS['EC_Subject']) {\n $endMatch = 1;\n } else if ($GLOBALS['CN_Subject'] <= $GLOBALS['EC_Subject']) {\n $endSubjectMatch = 1;\n }\n\n //Check Classification Number\n if ($endSubjectMatch) {\n //if (strpos($GLOBALS['CN_ClassNum'], '.') !== false) {\n if ((double) $GLOBALS['CN_ClassNum'] < (double) $GLOBALS['EC_ClassNum']) {\n $endMatch = 1;\n } else if ((double) $GLOBALS['CN_ClassNum'] <= (double) $GLOBALS['EC_ClassNum']) {\n $endClassMatch = 1;\n }\n /*\n } else {\n $CN_Arr = str_split($GLOBALS['CN_ClassNum']);\n $EC_Arr = str_split($GLOBALS['EC_ClassNum']);\n $EC_Arr = str_split($GLOBALS['EC_ClassNum']);\n\n $n = 0;\n\n for ($n; $n < sizeof($CN_Arr); ++$n) {\n if ($n >= sizeof($EC_Arr)) {\n $endClassMatch = 1;\n break;\n } else if ($n < sizeof($EC_Arr)) {\n if ($CN_Arr[$n] < $EC_Arr[$n]) {\n $endMatch = 1;\n break;\n } else if ($CN_Arr[$n] > $EC_Arr[$n]) {\n break;\n } else { }\n } else { }\n }\n\n if ($n == sizeof($CN_Arr)) {\n $endClassMatch = 1;\n }\n }\n */\n }\n\n //Check Cutter 1\n if ($endClassMatch) {\n $CN_Cutter1_Ltr = substr($GLOBALS['CN_Cutter1'], 1, 1);\n $CN_Cutter1_Num = (int) substr($GLOBALS['CN_Cutter1'], 2);\n\n $EC_Cutter1_Ltr = substr($GLOBALS['EC_Cutter1'], 1, 1);\n $EC_Cutter1_Num = (int) substr($GLOBALS['EC_Cutter1'], 2);\n\n if (empty($GLOBALS['CN_Cutter1']) || empty($GLOBALS['EC_Cutter1'])) {\n $endCutter1Match = 1;\n } else {\n if ($CN_Cutter1_Ltr < $EC_Cutter1_Ltr) {\n $endMatch = 1;\n } else if (strcmp($CN_Cutter1_Ltr, $EC_Cutter1_Ltr) == 0) {\n if ($CN_Cutter1_Num < $EC_Cutter1_Num) {\n $endMatch = 1;\n } else if (strcmp($CN_Cutter1_Num, $EC_Cutter1_Num) == 0) {\n $endCutter1Match = 1;\n }\n }\n }\n }\n\n //Check Cutter 2\n if ($endCutter1Match) {\n $CN_Cutter2_Ltr = substr($GLOBALS['CN_Cutter2'], 0, 1);\n $CN_Cutter2_Num = (int) substr($GLOBALS['CN_Cutter2'], 1);\n\n $EC_Cutter2_Ltr = substr($GLOBALS['EC_Cutter2'], 0, 1);\n $EC_Cutter2_Num = (int) substr($GLOBALS['EC_Cutter2'], 1);\n\n if (empty($GLOBALS['CN_Cutter2']) || empty($GLOBALS['EC_Cutter2'])) {\n $endCutter2Match = 1;\n } else {\n if ($CN_Cutter2_Ltr < $EC_Cutter2_Ltr) {\n $endMatch = 1;\n } else if (strcmp($CN_Cutter2_Ltr, $EC_Cutter2_Ltr) == 0) {\n if ($CN_Cutter2_Num < $EC_Cutter2_Num) {\n $endMatch = 1;\n } else if (strcmp($CN_Cutter2_Num, $EC_Cutter2_Num) == 0) {\n $endCutter2Match = 1;\n }\n }\n }\n }\n\n //Check Cutter 3\n if ($endCutter2Match) {\n $CN_Cutter3_Ltr = substr($GLOBALS['CN_Cutter3'], 0, 1);\n $CN_Cutter3_Num = (int) substr($GLOBALS['CN_Cutter3'], 1);\n\n $EC_Cutter3_Ltr = substr($GLOBALS['EC_Cutter3'], 0, 1);\n $EC_Cutter3_Num = (int) substr($GLOBALS['EC_Cutter3'], 1);\n\n if (empty($GLOBALS['CN_Cutter3']) || empty($GLOBALS['EC_Cutter3'])) {\n $endCutter3Match = 1;\n } else {\n if ($CN_Cutter3_Ltr < $EC_Cutter3_Ltr) {\n $endMatch = 1;\n } else if (strcmp($CN_Cutter3_Ltr, $EC_Cutter3_Ltr) == 0) {\n if ($CN_Cutter3_Num < $EC_Cutter3_Num) {\n $endMatch = 1;\n } else if (strcmp($CN_Cutter3_Num, $EC_Cutter3_Num) == 0) {\n $endCutter3Match = 1;\n }\n }\n }\n }\n\n //Check Version\n if ($endCutter3Match) {\n $CN_Version_Num = substr($GLOBALS['CN_Version'], 2);\n $EC_Version_Num = substr($GLOBALS['EC_Version'], 2);\n\n if (empty($CN_Version_Num)) {\n $endVersionMatch = 1;\n } else if ($CN_Version_Num <= $EC_Version_Num || empty($EC_Version_Num)) {\n $endMatch = 1;\n }\n }\n\n //Check Copy\n if ($endVersionMatch) {\n $CN_Copy_Num = substr($GLOBALS['CN_Copy'], 2);\n $EC_Copy_Num = substr($GLOBALS['EC_Copy'], 2);\n\n if (empty($CN_Copy_Num)) {\n $endCopyMatch = 1;\n } else if ($CN_Copy_Num <= $EC_Copy_Num || empty($EC_Copy_Num)) {\n $endMatch = 1;\n }\n } \n\n //Check for match\n if($beginSubjectMatch && $beginClassMatch && $beginCutter1Match && $beginCutter2Match && $beginCutter3Match && $beginVersionMatch && $beginCopyMatch) {\n $beginMatch = 1;\n }\n if ($endSubjectMatch && $endClassMatch && $endCutter1Match && $endCutter2Match && $endCutter3Match && $endVersionMatch && $endCopyMatch) {\n $endMatch = 1;\n }\n\n if($beginMatch && $endMatch) {\n return 1;\n }\n else {\n return 0;\n }\n\n }", "public function getAlternate() {}", "private function get_offset() {\n\t\treturn ( (time() - $this->skew) % ($this->lifetime + $this->skew) );\n\t}", "protected function _getUnitsPerEm() {}", "function findNumberOfPlaces($seq, $sem)//sequence and semester\n\t{\n\t\t$ret = 0;\n\t\tfor($b = 0; $b<count($seq[$sem]); $b++)\n\t\t{\n\t\t\tif(is_null($seq[$sem][$b]))\n\t\t\t\t$ret += 1;\n\t\t}\n\t\treturn $ret;\n\t}", "function getxtrawidth($data, $label)\n{\n$show_label = true;\n\n// true = show percentage, false = don't show percentage.\n$show_percent = true;\n\n// true = show text, false = don't show text.\n$show_text = true;\n\n// true = show parts, false = don't show parts.\n$show_parts = true;\n\n$height = $width / 2;\n$data = explode('*', $data);\n$xtra_height = 0;\n$xtra_width = 0;\n\nif (!empty($label))\n\t$label = explode('*', strtr($label, array('&quot;' => '\"', '&amp;' => '&', '&#039;' => \"'\")));\nelse\n\t$label = array();\n\nif ($random_colors == true)\n{\n\t$colors = array();\n\twhile (count($colors) <= count($data))\n\t{\n\t\t$color = random_color();\n\t\tif (!in_array($color, $colors))\n\t\t\t$colors[] = $color;\n\t}\n}\n\nif (array_sum($data) == 0)\n\texit;\n\n$text_length = 0;\n$number = array();\n\nfor ($i = 0; $i < count($data); $i++) \n{\n\tif ($data[$i] / array_sum($data) < 0.1)\n\t\t$number[$i] = ' ' . number_format(($data[$i] / array_sum($data)) * 100, 1, ',', '.') . '%';\n\telse\n\t\t$number[$i] = number_format(($data[$i] / array_sum($data)) * 100, 1, ',', '.') . '%';\n\tif (!isset($label[$i]))\n\t\t$label[$i] = '';\n\tif (isset($label[$i]) && strlen($label[$i]) > $text_length)\n\t\t$text_length = strlen($label[$i]);\n}\n\nif (is_array($label))\n{\n\t$antal_label = count($label);\n\t$xtra = (5 + 15 * $antal_label) - ($height + ceil($shadow_height));\n\tif ($xtra > 0)\n\t\t$xtra_height = (5 + 15 * $antal_label) - ($height + ceil($shadow_height));\n\n\t$xtra_width = 5;\n\tif ($show_label)\n\t\t$xtra_width += 20;\n\tif ($show_percent)\n\t\t$xtra_width += 45;\n\tif ($show_text)\n\t\t$xtra_width += $text_length * 8;\n\tif ($show_parts)\n\t\t$xtra_width += 35;\n}\nreturn $xtra_width;\n}", "function normalize($ow, $oh, $fw, $fh, $key='fill'){\n\t\t$ih=$oh; $iw=$ow; $it=0; $il=0;\n\t\t$or = $ow/$oh;\n\t\t$fr = $fw/$fh;\n\t\tswitch($key){\n\t\t\tcase 'fill' :\n\t\t\t\tif($fr<$or){\n\t\t\t\t\t$ih=$fh;$iw=floor($fh*$or);$it=0;$il=-floor(($iw-$fw)/2);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$iw=$fw;$ih=floor($fw/$or);$it=-floor(($ih-$fh)/2);$il=0;\n\t\t\t\t}\n\t\t\t\tbreak;\t\t\n\t\t\tcase 'fit' :\n\t\t\t\tif($fr<$or){\n\t\t\t\t\t$iw=$fw;$ih=floor($fw/$or);$it=-floor(($ih-$fh)/2);$il=0;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$ih=$fh;$iw=floor($fh*$or);$it=0;$il=-floor(($iw-$fw)/2);\n\t\t\t\t}\n\t\t\t\tbreak;\t\t\t\t\t\t\t\t\t\t\n\t\t}\t\t\n\t\treturn array('t'=>$it, 'l'=>$il, 'w'=>$iw, 'h'=>$ih);\n\t}", "function getIndex() ;", "function getOperand2() ;", "abstract protected function determineRootline() ;", "function virustotalscan_get_size($size)\r\n{\r\n $standard = floatval(1024);\r\n if (floatval($size) < $standard) {\r\n // atunci sunt biti\r\n return $size.\" bytes\";\r\n }\r\n else {\r\n // sunt mai mult de 1024 de biti\r\n if (floatval(floatval($size)/1024) > $standard) {\r\n // atunci este de ordinul MB-itilor si se iau doar doua zecimale semnificative\r\n return number_format(floatval($size)/1024/1024, 2). \" MB\";\r\n }\r\n else {\r\n // este de ordinul KB-itilor si se iau doar doua zecimale semnificative\r\n return number_format(floatval($size)/1024, 2). \" KB\";\r\n }\r\n // restul nu ne intereseaza pentru ca nu pot fi incarcate fisiere mai mari de 1 GB\r\n }\t\r\n}", "function offset_pos(){\n\t // $this->count_uri();\n\n\t \tif(isset($this->uri_array['osp']))\n\t\t{\n\t \t\t//ops without and with offset page value\n\t \t\tif(count($this->uri_array['osp'])==1){\n\t \t\t\t$pos = $this->count_uri()+1;\n\t \t\t}else{\n\t\t\t\t$segment_array = $this->uri->segment_array();\n\t\t\t\t$pos = array_search(RAPYD_URI_OSP,$segment_array)+1;\n\t \t\t}\n\t \t}\n\n\t \t/*****************************************************************************\n\t \t * We take care of this case even if we have added it in explode_uri for more\n\t \t * security in URI reading\n\t \t *****************************************************************************/\n\t \telse{\n\t \t\t$pos = $this->count_uri()+2;\n\t \t}\n\t\treturn $pos;\n\t}", "public function temporality();", "public function findSpareBox() {\r\n\t\t\r\n\t}", "public function processLengths() {}", "function findLatestSpace($itemid,$currdate)\n{\n global $spaces;\n $treshold=90;\n $currdate=date_create($currdate);\n\n for($i=1;$i<count($spaces);$i++){\n if($spaces[$i]==\"UNK\"){\n $spaces[$i]=Array($itemid,$currdate);\n return $i;\n }else{\n $interval=$currdate->diff($spaces[$i][1])->format(\"%a\"); ;\n if($interval>$treshold){\n $spaces[$i]=Array($itemid,$currdate);\n return $i; \n }\n }\n }\n\n $spaces[$i]=Array($itemid,$currdate);\n\n return $i;\n}", "public function getSegCountX2() {}", "function promedio_general($vector){ \n $promedio=0;\n foreach ($vector as $key => $value) {\n foreach ($value as $c => $n) {\n $promedio=$promedio+$n;\n }\n }\n return ($promedio/10);\n }", "function getUnit($leftcount, $rightcount)\n\t{\n\t\t\n\t\t$directCaseArr = $this->getUnitByDirectCase($leftcount,$rightcount);\n\t\t$oppisiteCaseArr = $this->getUnitByOppositeCase($leftcount,$rightcount);\n\t\t\n\t\tif($directCaseArr['unit'] >= $oppisiteCaseArr['unit'])\n\t\t{\n\t\t\t$returnArr = $directCaseArr; \t\n\t\t}else{\n\t\t\t$returnArr = $oppisiteCaseArr;\n\t\t}\n\t\treturn $returnArr; \t\t\t\n\t\t\n\t}", "function estcalc85equiv($width,$length) {\n $one=floor($width/8.5)*floor($length/11);\n $two=floor($length/8.5)*floor($width/11);\n if (!$one&&!$two) { //if sheet is < 8.5x11\n $small=1;\n $one=floor(8.5/$width)*floor(11/$length);\n $two=floor(8.5/$length)*floor(11/$width);\n };\n if ($two>$one) $two=$one;\n if ($small) $one=1/$one;\n return $one;\n }", "public function testPreprocessingUnskew()\n {\n }", "public function testProfilePrototypeCountQuarantines()\n {\n\n }", "function pixel2unit($p)\n{\n\treturn ($p-5)/7;\n}", "function length2() {/*{{{*/\n $r = $this->getReal(); \n $i = $this->getI();\n $j = $this->getJ(); \n $k = $this->getK();\n return ($r*$r + $i*$i + $j*$j + $k*$k);\n }", "public function getWinDescent() {}", "function fiftyone_degrees_get_signature_length($signature, $headers) {\n $last_node_index = $signature['node_indexs'][count($signature['node_indexs'])-1];\n $last_node = fiftyone_degrees_read_node($last_node_index, $headers);\n $last_node_length = fiftyone_degrees_get_node_length($last_node, $headers);\n return $last_node['position'] + $last_node_length + 1;\n}", "function getFileSizeUnit($file_size){\nswitch (true) {\n case ($file_size/1024 < 1) :\n return intval($file_size ) .\" Bytes\" ;\n break;\n case ($file_size/1024 >= 1 && $file_size/(1024*1024) < 1) :\n return round(($file_size/1024) , 2) .\" KB\" ;\n break;\n default:\n return round($file_size/(1024*1024) , 2) .\" MB\" ;\n}\n}", "function touchdowns() {\n\t\t$touchdowns_calc = $this->_touchdowns/$this->_attempts;\n\t\t// Other NFL QBR specific manipulations\n\t\tif ($touchdowns_calc * 20 < 0) {\n\t\t\t$touchdowns_calc = 20;\n\t\t} elseif ($touchdowns_calc * 20 > 2.375) {\n\t\t\t$touchdowns_calc = 2.375;\n\t\t} else {\n\t\t\t$touchdowns_calc *= 20;\n\t\t}\n\t\treturn $touchdowns_calc;\n\t}", "public static function Parse837()\n\t{\n\n\t}", "protected function fixSelf() {}", "protected function fixSelf() {}", "function calculateIDX(){\r\n\t\t$out=array(-1,-1,-1);\r\n\t\t$out[0]=number_format($this->_calcScoreIndex(),2,'.','');\r\n\t\t$out[1]=number_format($this->_calcCheckIndex(),2,'.','');\r\n\t\t// only sum up if both values are positive , else just scoreIDX\r\n\t\tif ($out[0]>0){\r\n\t\t\t$out[2]=$out[0];\r\n\t\t\tif ($out[1]>0){$out[2]=$out[2]+$out[1];}\r\n\t\t}\r\n\t\treturn $out;\r\n\t}", "abstract function fromexp();", "function normalize_history(&$sourceCoords,$sourceKey, $isolated_history)\n {\n $min = min($isolated_history);\n $max = max($isolated_history);\n if (!(($min >= 0 && $min <= 1)&&($max >= 0 && $max <= 1))){\n //we're already in the range of normalization, between 0 & 1\n if ($max == $min){\n //we don't want to divide by zero...so do something else here\n echo \"caught prior to dividing by zero inside of normalize_benefits\";\n }else {\n $sourceCoords['history'] = ($sourceCoords['history']-$min)/($max-$min); \n }\n }\n }", "function beratbadanormal($tb){\n\t$bbn = $tb - 100;\n\treturn $bbn;\n}", "public function testPreprocessingUnrotate()\n {\n }", "private function _i() {\n }", "function yy_r95(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; $this->yystack[$this->yyidx + -1]->minor->values($this->yystack[$this->yyidx + 0]->minor); }", "function leastBricks($wall=[]) { \r\n foreach ($wall as $key => $value) {\r\n for ($i = 0; $i < count($value) - 1; $i++) {\r\n\t\t//the maximum coincidence of the sums of bricks, means the maximum total boundary line\r\n $arr[] = array_sum(array_slice($value, 0, $i + 1));\r\n }\r\n }\r\n\t//the difference of all horizontal lines of bricks and the maximum coincident line will give an our solutuion\r\n return count($wall) - max(array_count_values($arr));\r\n}", "function SprWymiar($macierz){\n\t\t\t$wymiar=1;\n\t\t\twhile(isset($macierz[$wymiar][1])){\n\t\t\t\t$wymiar++;\n\t\t\t}\n\t\t\treturn $wymiar-1; \n\t\t}", "function yy_r154(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor; }", "function pos($array)\n{\n}", "public function getW() {}", "function minimumBribes($q)\n{\n $stepsCount = 0;\n $bribesCounts = [];\n $arrayLength = sizeOf($q)-1;\n $swapCntPerRound = 0;\n for ($i = 0; $i < $arrayLength; $i++) {\n if ($q[$i] > $q[$i+1]) {\n if (!isset($bribesCounts[$q[$i]])) {\n $bribesCounts[$q[$i]] = 0;\n }\n\n $bribesCounts[$q[$i]]++;\n\n if ($bribesCounts[$q[$i]] > 2) {\n //echo 'Too chaotic', PHP_EOL;\n return \"Too chaotic\";\n }\n\n $stepsCount++;\n $swapCntPerRound++;\n list($q[$i+1], $q[$i]) = [$q[$i], $q[$i+1]];\n }\n\n if ($i == $arrayLength-1 && $swapCntPerRound > 0) {\n $i = -1;\n $swapCntPerRound = 0;\n }\n }\n\n //echo array_sum($bribesCounts), PHP_EOL;\n return array_sum($bribesCounts);\n}", "function getDiff()\n {\n }", "function yy_r116(){ \n $this->_retvalue[implode(\" \", $this->yystack[$this->yyidx + -2]->minor)] = $this->yystack[$this->yyidx + 0]->minor->getMember(0); \n }", "function yy_r97(){ \n $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor; $this->yystack[$this->yyidx + -3]->minor->values($this->yystack[$this->yyidx + -1]->minor); \n if ($this->yystack[$this->yyidx + 0]->minor) $this->_retvalue->onDuplicate($this->yystack[$this->yyidx + 0]->minor);\n }", "function decode_keylen(& $keydata ) {\n \n\t\t// find the second (. Return if there isn't one\n\t \n\t\t$sp = strpos($keydata, \"(\", 1);\n\t\tif ( $sp === false ) {\n\t\t\treturn '';\n\t\t}\n \n\t\t$keylen = str_replace(array('(', ')', ' ', ','), '', substr($keydata, $sp));\n\t\t$keydata = str_replace(array('(', ')', ' ', '`', ','), '', substr($keydata, 0, $sp));\n\t\treturn $keylen; \n }", "function count() ;", "function gainRatios($last_column,$columns_after_cut,$res) {\r\n\t$res_gainRatios = array();\r\n\t\r\n\t$gain = gain($last_column,$columns_after_cut,$res);\r\n\t$splitInfo = splitInfo($columns_after_cut);\r\n\t\r\n\tfor ($i = 0; $i < count($gain); $i++){\r\n\t\tif ($splitInfo[$i] != 0){\r\n\t\t\t$temp = $gain[$i] / $splitInfo[$i];\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$temp = \"SplitInfo = 0\";\r\n\t\t}\r\n\t\tarray_push($res_gainRatios, $temp);\r\n\t}\r\n\t\r\n\treturn $res_gainRatios;\r\n}", "function gain($l_column,$other_column,$res){\r\n\t$res_gain = array();\r\n\r\n\t$information = information_for_each_column($other_column,$res);\r\n\t$entropy_lastColumn = entropy($l_column);\r\n\t\r\n\tfor ($i = 0; $i < count($information); $i++){\r\n\t\t$temp = $entropy_lastColumn - $information[$i];\r\n\t\tarray_push($res_gain, $temp);\r\n\t}\r\n\treturn $res_gain;\r\n}", "function layersInZ($arrayZ)\n{\n $piece=array();\n for($layer=0;$layer<count($arrayZ);$layer++)\n {\n $lay=$arrayZ[$layer];\n if(abs($lay)>0.1)\n {\n $piece[]=$lay;\n }\n else\n {\n $piece[]=0;\n }\n }\n return $piece;\n}", "function calc_size()\n\t{\n\t}", "function yy_r60(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; }", "function fiftyone_degrees_get_device_data($useragent) {\n global $_fiftyone_degrees_use_array_caching;\n global $_fiftyone_degrees_data_file;\n fiftyone_degrees_set_file_handle();\n\n $debug_info = array();\n $start_time = microtime(TRUE);\n\n $info = array();\n\n if ($_fiftyone_degrees_use_array_caching !== FALSE) {\n global $_fiftyone_degrees_cache;\n $_fiftyone_degrees_cache = array();\n }\n\n $headers = fiftyone_degrees_get_headers();\n\n $root_char_nodes = fiftyone_degrees_read_root_node_offsets($headers);\n $root_char_nodes_count = count($root_char_nodes);\n\n // Unpack creates a 1 based array. array merge converts to 0 based.\n $useragent_bytes = array_merge(unpack('C*', $useragent));\n\n $useragent_length = count($useragent_bytes);\n $current_position = min($useragent_length, $root_char_nodes_count) - 1;\n\n $matched_node_indexs = array();\n $debug_info['root_nodes_evaluated'] = 0;\n $debug_info['nodes_evaluated'] = 0;\n $debug_info['string_read'] = 0;\n $debug_info['signatures_read'] = 0;\n $debug_info['signatures_compared'] = 0;\n $debug_info['difference'] = 0;\n\n while ($current_position > 0) {\n $node = fiftyone_degrees_read_node(\n $root_char_nodes[$current_position],\n $headers);\n\n $debug_info['root_nodes_evaluated']++;\n $node = fiftyone_degrees_evaluate_node(\n $node,\n NULL,\n $useragent_bytes,\n $useragent_length,\n $debug_info,\n $headers);\n\n if ($node != NULL && $node['is_complete']) {\n // Add this node's index to the list for the match in the correct order.\n $index = fiftyone_degrees_integer_binary_search(\n $matched_node_indexs,\n $node['offset']);\n\n array_splice($matched_node_indexs, ~$index, 0, $node['offset']);\n // Check from the next character position to the left of this one.\n $current_position = $node['next_char_position'];\n }\n else {\n // No nodes matched at the character position.\n $current_position--;\n }\n }\n $timings = array();\n $timings['node_match_time'] = microtime(TRUE) - $start_time;\n $signatures_checked = count($matched_node_indexs);\n $info['SignaturesChecked'] = $signatures_checked;\n $method = '';\n $timings['signature_match_time'] = microtime(TRUE);\n $matched_signature = fiftyone_degrees_get_signature(\n $matched_node_indexs,\n $useragent_bytes,\n $method,\n $timings,\n $debug_info,\n $headers);\n\n if ($matched_signature != -1) {\n $best_signature = fiftyone_degrees_read_signature(\n $matched_signature,\n $headers);\n\n if (isset($lowest_score) == FALSE)\n $lowest_score = 0;\n }\n else {\n $lowest_score = PHP_INT_MAX;\n $best_signature = fiftyone_degrees_read_signature(0, $headers);\n $method = 'none';\n }\n\n $info['Method'] = $method;\n $timings['signature_match_time'] = microtime(TRUE) - $timings['signature_match_time'];\n $debug_info['signature_string'] = fiftyone_degrees_get_signature_string(\n $best_signature,\n $headers);\n\n $info['Confidence'] = $lowest_score;\n\n $profiles = array();\n $filled_components = array();\n\n $feature_detection_ids = fiftyone_degrees_get_feature_detection_profile_ids();\n foreach ($feature_detection_ids as $id) {\n $profile = fiftyone_degrees_get_profile_from_id($id, $headers);\n // Make sure only one profile for each component can be added.\n if ($profile != NULL &&\n !in_array($profile['component_id'], $filled_components)) {\n $filled_components[] = $profile['component_id'];\n $profiles[] = $profile;\n }\n }\n\n $timings['profile_fetch_time'] = microtime(TRUE);\n foreach ($best_signature['profile_indexs'] as $profile_offset) {\n $profile = fiftyone_degrees_read_profile($profile_offset, $headers);\n // Check if this profile's component has already been filled.\n if (!in_array($profile['component_id'], $filled_components)) {\n $filled_components[] = $profile['component_id'];\n $profiles[] = $profile;\n }\n }\n $timings['profile_fetch_time'] = microtime(TRUE) - $timings['profile_fetch_time'];\n\n $timings['property_fetch_time'] = microtime(TRUE);\n $_51d = fiftyone_degrees_get_property_data($profiles, $headers);\n $bandwidth = fiftyone_degrees_get_bandwidth_data();\n if ($bandwidth != NULL) {\n foreach ($bandwidth as $k => $v) {\n $_51d[$k] = $v;\n }\n }\n\n foreach ($info as $i_k => $i_v) {\n $_51d[$i_k] = $i_v;\n }\n $timings['property_fetch_time'] = microtime(TRUE) - $timings['property_fetch_time'];\n $end_time = microtime(TRUE);\n $duration = $end_time - $start_time;\n $_51d['Time'] = $end_time - $start_time;\n $_51d['debug_timings'] = $timings;\n $_51d['debug_info'] = $debug_info;\n\n global $_fiftyone_degrees_data_file_path;\n $_51d['DataFile'] = $_fiftyone_degrees_data_file_path;\n return $_51d;\n}", "public function getLowestRecPPEM() {}", "function time_since($original)\n{\n// http://www.dreamincode.net/code/snippet86.htm\n\n // array of time period chunks\n $chunks = array(\n array(60 * 60 * 24 * 365, 'year'),\n array(60 * 60 * 24 * 30, 'month'),\n array(60 * 60 * 24 * 7, 'week'),\n array(60 * 60 * 24, 'day'),\n array(60 * 60, 'hour'),\n array(60, 'minute'),\n );\n \n $today = time();\n $since = $today - $original;\n \n // $j saves performing the count function each time around the loop\n for( $i=0, $j=count($chunks); $i<$j; $i++ )\n {\n \n $seconds = $chunks[$i][0];\n $name = $chunks[$i][1];\n \n // finding the biggest chunk (if the chunk fits, break)\n if( ($count = floor($since / $seconds)) != 0 )\n {\n break;\n }\n }\n \n $print = ($count == 1) ? '1 '.$name : \"$count {$name}s\";\n \n if( $i + 1 < $j )\n {\n // now getting the second item\n $seconds2 = $chunks[$i + 1][0];\n $name2 = $chunks[$i + 1][1];\n \n // add second item if it's greater than 0\n if( ($count2 = floor(($since - ($seconds * $count)) / $seconds2)) != 0 )\n {\n $print .= ($count2 == 1) ? ', 1 '.$name2 : \", $count2 {$name2}s\";\n }\n }\n return $print;\n}", "function getOperand1() ;", "function calc_len_obj($element, $obj, $name, $fix)\r\n{\r\n global $v;\r\n return calc_len($element, $v[$obj][$name . '_' . $fix]);\r\n}", "public function inOriginal();", "public function testProfilePrototypeCountGroups()\n {\n\n }", "function loadsrc_comp($a, $b){\n if($a[0] == $b[0])\n return 0;\n return ($a[0] < $b[0]) ? 1 : -1;\n }", "function getIsoformAnnotation($org_vid,$tx_list,$pred_id){\n $annotation=array();$region_start=0;$region_end=0; $txmap=array();$genes=array();$tx=\"\";\n while(list($index,$row)=each($tx_list)){\n $tx_id=$row[\"id\"];$name=$row[\"name\"];$prediction_id=$row[\"prediction_id\"];\n if(($prediction_id<3))continue;\n if(($pred_id<=0)&&($prediction_id==5))continue;//skip xenoref by default\n if(($pred_id<=0)&&($prediction_id>24&&$prediction_id<=40))continue;//skip cc founders by default\n $row[\"tx_start\"]+=1; if($pred_id>0){if($pred_id!=$prediction_id)continue;}\n $pred_name=getPredictionName($prediction_id);$tx_coord=getOverLapTranscripts($org_vid,$tx_id);\n $tx_coord[0][\"tStart\"]+=1;$gene_names=\"\"; $ex_starts=\"\"; $ex_ends=\"\";$ex_frames=\"\";\n $strand= $tx_coord[0][\"strand\"];$cds=getCDS($name,$tx_id,$org_vid,$prediction_id);\n $qh_getTxGene=getTxGene($tx_id,$prediction_id);\n while(list($index2,$gene)=each($qh_getTxGene)){ $gene_symbol=$gene[\"gene\"];\n if($gene_names == \"\"){$gene_names.=\"$gene_symbol\";}\n else{$gene_names.=\",$gene_symbol\";}\n }$ex_start=0;$ex_end=0;$qh_getTxExon=getTxExons($tx_id,$name,$prediction_id,$org_vid);\n while(list($index3,$value)=each($qh_getTxExon)){\n $ex_start=$value[\"ex_start\"]+1;$ex_end=$value[\"ex_end\"];$ex_frame=$value[\"ex_frame\"];\n if($ex_starts ==\"\"){$ex_starts=\"$ex_start\";$ex_ends=\"$ex_end\";$ex_frames=\"$ex_frame\";}\n else{$ex_starts.=\",$ex_start\";$ex_ends.=\",$ex_end\";$ex_frames.=\",$ex_frame\";}\n }\n if($pred_id>24&&$pred_id<=40)$ex_frames=\"\";\n $annotation[]=array(\"annotation\"=>array(\"source\"=>$pred_name,\"chrom\"=>$tx_coord[0][\"chrom\"],\n \"txStart\"=>$tx_coord[0][\"tStart\"],\"txEnd\"=>$tx_coord[0][\"tEnd\"],\n \"strand\"=>$strand,\"Name\"=>$name, \"Name2\"=>$gene_names,\n \"cdsStart\"=>$cds[\"start\"],\"cdsEnd\"=>$cds[\"end\"],\n \"exonStarts\"=>$ex_starts,\"exonEnds\"=>$ex_ends,\"exonFrames\"=>$ex_frames));\n }\n return $annotation;\n}", "public function highspeed()\n\t{\n\t\t//Old Dad uppt In ihrem Haus DVD Ripp AC3 German Xvid [01/31] - \"In ihrem Haus.par2\" yEnc\n\t\t//Old Dad uppt Eine offene Rechnung XviD German DVd Rip[02/41] - \"Eine offene Rechnung.part01.rar\" yEnc\n\t\t//Old Dad uppMiss Marple: Der Wachsblumenstrauß , Wunschpost Xvid German10/29] - \"Miss Marple Der Wachsblumenstrauß.part09.rar\" yEnc\n\t\tif (preg_match('/^Old\\s+Dad\\s+uppt? ?(.+?)( mp4| )?\\[?\\d+\\/\\d+\\] - \".+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\t//[03/61] - \"www.realmom.info - xvid - xf-fatalmovecd1.r00\" - 773,34 MB - yEnc\n\t\t//[40/54] - \"Mankind.Die.Geschichte.der.Menschheit.S01E12.Das.Ende.der.Reise.GERMAN.DUBBED.DL.DOKU.1080p.BluRay.x264-TVP.part39.rar\" - 4,79 GB yEnc\n\t\tif (preg_match('/^\\[\\d+\\/\\d+\\] - \"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e0 .\n\t\t\t\t\t ' - \\d+[,.]\\d+ [mMkKgG][bB]( -)? yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //[02/10] - \"Fast.And.Furious.6 (2013).German.720p.CAM.MD-MW upp.by soV1-soko.rar\" yEnc\n\t\tif (preg_match('/^\\[\\d+\\/\\d+\\] - \"(.+?) upp.by.+?' . $this->e1, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //>ghost-of-usenet.org>The A-Team S01-S05(Folgen einzelnd ladbar)<Sponsored by Astinews< (1930/3217) \"isd-ateamxvid-s04e21.r19\" yEnc\n\t\tif (preg_match('/^>ghost-of-usenet\\.org>(.+?)\\(.+?\\).+? \\(\\d+\\/\\d+\\) \".+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //www.usenet-town.com [Sponsored by Astinews] (103/103) \"Intimate.Enemies.German.2007.AC3.[passwort protect].vol60+21.PAR2\" yEnc\n\t\tif (preg_match('/^www\\..+? \\[Sponsored.+?\\] \\(\\d+\\/\\d+\\) \"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Das.Schwergewicht.German.DL.720p.BluRay.x264-ETM - \"etm-schwergewicht-720p.part20.rar\" yEnc\n\t\tif (preg_match('/^([A-Za-z0-9][a-zA-Z0-9.-]{6,})\\s+- \".+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //[ TiMnZb ] [ www.binnfo.in ] [REPOST] [01/46] - \"Columbo - S07 E05 - Des sourires et des armes.nfo\" yEnc\n\t\tif (preg_match('/^\\[ .+? \\] \\[ www\\..+? \\]( \\[.+?\\])? \\[\\d+\\/\\d+\\] - \"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t} //< \"Burn.Notice.S04E17.Out.of.the.Fire.GERMAN.DUBBED.DL.720p.WebHD.x264-TVP.par2\" >< 01/17 (1.54 GB) >< 11.62 kB > yEnc\n\t\tif (preg_match('/^< \"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e0 .\n\t\t\t\t\t ' >< \\d+\\/\\d+ \\(.+?\\) >< .+? > yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Batman postet 30 Nights of Paranormal Activity with the Devil Inside AC3 XviD German [01/24] - \"30 Nights of Paranormal Activity with the Devil Inside.par2\" yEnc\n\t\tif (preg_match('/^[A-Za-z0-9]+ postet (.+?) \\[\\d+\\/\\d+\\] - \".+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //[04/20 Geroellheimer - S03E19 - Freudige ?berraschung Geroellheimer - S03E19 - Freudige ?berraschung.mp4.004\" yEnc\n\t\tif (preg_match('/^\\[\\d+\\/\\d+ (.+?)(\\.(part\\d*|rar|avi|iso|mp4|mkv|mpg))?(\\d{1,3}\\.rev\"|\\.vol.+?\"|\\.[A-Za-z0-9]{2,4}\"|\") yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn implode(' ',\n\t\t\t\t\t\t array_intersect_key(explode(' ', $match[1]),\n\t\t\t\t\t\t\t\t\t\t\t array_unique(array_map('strtolower',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t explode(' ', $match[1])))));\n\t\t} //\"Homeland.S01.Complete.German.WS.DVDRiP.XViD-ETM.part001.rar\" yEnc\n\t\tif (preg_match('/^\"(.+?)(\\.(part\\d*|rar|avi|mp4|mkv|mpg))?(\\d{1,3}\\.rev\"|\\.vol.+?\"|\\.[A-Za-z0-9]{2,4}\"|\") yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\tif (strlen($match[1]) > 7 && !preg_match('/\\.vol.+/', $match[1])) {\n\t\t\t\treturn $match[1];\n\t\t\t} else {\n\t\t\t\treturn array(\n\t\t\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject),\n\t\t\t\t\t\"properlynamed\" => false\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t}", "function get_dimesions($shapes) {\n foreach($shapes as $key=>$shape) {\n echo \"<strong>Shape $key</strong><br>\";\n\n echo \"Cordinates - x,y<br>\".\n \"bottom_left: \".$shape['bottom_left'][0].\",\".$shape['bottom_left'][1].\" - \".\n \"top_left: \".$shape['top_left'][0].\",\".$shape['top_left'][1].\" - \".\n \"bottom_right: \".$shape['bottom_right'][0].\",\".$shape['bottom_right'][1].\" - \".\n \"top_right: \".$shape['top_right'][0].\",\".$shape['top_right'][1].\"<br>\";\n\n // for simplicity we are considering all shapes square with equal co-ordinates for height and width\n $dimensions['width'] = ($shape['bottom_right'][0] - $shape['bottom_left'][0])+1;\t\n echo \"Width: \".$dimensions['width'].\"<br>\";\n $dimensions['height'] = ($shape['top_right'][1] - $shape['bottom_left'][1])+1;\n echo \"Height: \".$dimensions['height'].\"<br>\";\n\n }\n return $dimensions;\n}", "public function testPreprocessingBinarizeAdvanced()\n {\n }", "function getCurTrackLength(){\n\t}", "function yy_r59(){ $this->_retvalue = [$this->yystack[$this->yyidx + 0]->minor]; }", "function yy_r72(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'::'.$this->yystack[$this->yyidx + 0]->minor; }", "abstract protected function calculateValue();", "private function _getNumberOfMetrics() {}", "protected function determineRootline() {}", "function calculateMissed(){\n\t\treturn count(self::$groundTruth) - count(self::$rating);\n\t}", "function yy_r60(){ $this->_retvalue = [$this->yystack[$this->yyidx + -2]->minor, $this->yystack[$this->yyidx + 0]->minor]; }", "protected function determineRootline() {}", "public function getHival() {}", "function getRatioOfCompression(){\n\t\treturn round(strlen($this->firstBit)/strlen($this->finalBit),3);\n\t}", "function fiftyone_degrees_get_closest_signature_indexs(\n $node_indexs,\n &$timings,\n &$debug_info,\n $headers) {\n\n \n $node_count = count($node_indexs);\n \n if ($node_count == 1) {\n // There is only 1 list so return that single list.\n $node = fiftyone_degrees_read_node($node_indexs[0], $headers);\n fiftyone_degrees_fill_node_ranked_signatures($node, $headers['info']['max_signatures']);\n $sig_offsets = array();\n foreach ($node['node_ranked_signatures'] as $offset) {\n $sig_offsets[] = $offset;\n }\n return $sig_offsets;\n }\n else {\n $timings['closest_match_node_sort_time'] = microtime(TRUE); \n $sorted_nodes = array();\n $nodes = array();\n\n $max_count = 1;\n $iteration = 2;\n for ($i = 0; $i < $node_count; $i++) {\n $node = fiftyone_degrees_read_node($node_indexs[$i], $headers);\n $sorted_nodes[$i] = $node['node_ranked_signature_count'];\n $nodes[] = $node;\n }\n // Sort nodes in ascending order by signature count.\n array_multisort($sorted_nodes, SORT_ASC, $nodes);\n\n $timings['closest_match_node_sort_time'] = microtime(TRUE) - $timings['closest_match_node_sort_time'];\n\n $timings['closest_match_node_fill_signatures_time'] = microtime(TRUE);\n for ($i = 0; $i < $node_count; $i++) {\n fiftyone_degrees_fill_node_ranked_signatures($nodes[$i]);\n }\n $timings['closest_match_node_fill_signatures_time'] = microtime(TRUE) - $timings['closest_match_node_fill_signatures_time'];\n\n $timings['closest_match_filling_linked_list_time'] = microtime(TRUE);\n\n // Building initial list.\n $linked_list = new LinkedList();\n if (count($nodes) > 0) {\n $node_0_signatures_count = count($nodes[0]['node_ranked_signatures']);\n if ($node_0_signatures_count > $headers['info']['max_signatures']) {\n // $node_0_signatures_count = $headers['info']['max_signatures'];\n }\n for ($i = 0; $i < $node_0_signatures_count; $i++) {\n $linked_list->addLast(array($nodes[0]['node_ranked_signatures'][$i], 1));\n }\n }\n\n // Count the number of times each signature index occurs.\n for ($i = 1; $i < $node_count; $i++) {\n $max_count = fiftyone_degrees_get_closest_signatures_for_node(\n $node_count,\n $nodes[$i]['node_ranked_signatures'],\n $linked_list,\n $max_count,\n $iteration,\n $headers);\n $iteration++;\n }\n $timings['closest_match_filling_linked_list_time'] = microtime(TRUE) - $timings['closest_match_filling_linked_list_time'];\n $timings['closest_match_sorting_signature_ranks'] = microtime(TRUE);\n\n $sig_offsets = array();\n $linked_list->current = $linked_list->first;\n \n while ($linked_list->current !== -1) {\n if ($linked_list->current->value[1] == $max_count) {\n $debug_info['signatures_read']++;\n $sig_offsets[] = $linked_list->current->value[0];\n }\n $linked_list->moveNext();\n }\n\n $timings['closest_match_sorting_signature_ranks'] = microtime(TRUE) - $timings['closest_match_sorting_signature_ranks'];\n return $sig_offsets;\n }\n}", "function wp_exif_frac2dec($str)\n {\n }", "private function _getResult(){\r\n\r\n $position = $this->_startPoint;\r\n $tile = $this->_getTile($position);\r\n $path[] = $position;\r\n\r\n while(!$this->_checkEnd($position)){\r\n $direction= $tile->getLastMove();\r\n $position = $this->_getNewPosition($position,$direction);\r\n $tile = $this->_getTile($position);\r\n $path[] = $position;\r\n }\r\n\r\n return $path;\r\n }", "protected function calculateDisplayRange() {}", "function find_minimum($entities) {\r\n \r\n\tglobal $userconnection_distance;\r\n $keys = array_keys ($entities);\r\n $minid = $entities[$keys[0]];\r\n $mindist = $userconnection_distance[$minid];\r\n foreach ($keys as $key) {\r\n $tentity = $entities[$key];\r\n if ($userconnection_distance[$tentity] < $mindist) {\r\n $mindist = $userconnection_distance[$tentity];\r\n $minid = $tentity;\r\n }\r\n }\r\n return $minid;\r\n}", "protected function _getWidthArray() {}", "public function getPTS() {}", "function part2() {\n foreach ($this->areas as $a) {\n extract($a); // creates in scope: $id, $x, $y, $w, $h\n $area = $this->charCounter($id, $this->fabric);\n echo \"$id: $area\\n\";\n if ($area == $w * $h) {\n die(\"$id fills $area cells and is not overlapped.\\n\");\n }\n }\n echo \"No region found.\\n\";\n }", "function yy_r109(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.\",\".$this->yystack[$this->yyidx + 0]->minor; }", "function normalize_benefits(&$sourceCoords,$sourceKey, $isolated_benefits)\n {\n $min = min($isolated_benefits);\n //$min = 1; \n $max = max($isolated_benefits);\n if (!(($min >= 0 && $min <= 1)&&($max >= 0 && $max <= 1))){\n //we're already in the range of normalization, between 0 & 1\n if ($max == $min){\n //we don't want to divide by zero...so do something else here\n echo \"caught prior to dividing by zero inside of normalize_benefits\";\n }else {\n\n $sourceCoords['benefits'] = ($sourceCoords['benefits']-$min)/($max-$min); \n }\n }\n }", "function yy_r74(){ $this->_retvalue = $this->yystack[$this->yyidx + -5]->minor.'::$'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; }", "function check_array($collection)\n{\n $return = '';\n $previousResult = '';\n $rangeArr = range(0,20);\n $results = array_diff($rangeArr,$collection);\n foreach ($results as $key=>$result) {\n if($result == ($previousResult + 1 )){\n if (substr($return, -1) != \"-\")\n $return = $return .\"-\";\n\n }else{\n if (substr($return, -1) != $previousResult)\n $return = $return.$previousResult.','.$result;\n }\n $previousResult = $result;\n }\n return $return.$previousResult;\n}", "public function testProfilePrototypeCountAccessTokens()\n {\n\n }", "function main($_o){\r\n\r\n $path = (!empty($_o[\"p\"])) ? $_o[\"p\"] : \"\";\r\n $path2 = \"P:/develope/www/dpa/__20120605/\" . $path;\r\n $path1 = \"P:/develope/www/dpa/eswine/\" . $path;\r\n\r\n $l_arr1 = transPath($path1);\r\n $l_arr2 = transPath($path2);\r\n print_r($l_arr1);\r\n print_r($l_arr2);\r\n\r\n //\r\n $l_diff1 = array_diff($l_arr1,$l_arr2);\r\n sort($l_diff1);\r\n $l_diff2 = array_diff($l_arr2,$l_arr1);\r\n sort($l_diff2);\r\n print_r($l_diff1);\r\n print_r($l_diff2);\r\n}", "function sigaloneval($origerr,$numplaces){\n\n\t\t$x=round($origerr*(pow(10,(($numplaces-1)-floor(log10($origerr)))))) * pow(10,(floor(log10($origerr)))-($numplaces-1));\n\t\n\t\treturn($x);\n\n\t}", "private static function getTSFE() {}", "function HaarMinPower($data) //input HaarPower result in frames\n {\n\t$min = $data[0]; //принимаем первый фрейм как минимальный\n\t$frames = count($data);\n\tforeach($data as $frame => $subvalue)\n\t {\n\t foreach($subvalue as $order => $value)\n\t\tif ($frame < $frames && $order < count($subvalue) - 1)\n\t\t if ($min[$order] > $value && !empty($value)) $min[$order] = $value;\n\t } \n\treturn $min;\n }" ]
[ "0.5136586", "0.50057435", "0.4993706", "0.49306294", "0.48735332", "0.4860269", "0.47675383", "0.4668856", "0.46285024", "0.46274737", "0.4621285", "0.46117407", "0.45841452", "0.45833224", "0.45741442", "0.45657668", "0.4565457", "0.4550401", "0.454471", "0.45403668", "0.4536255", "0.4525486", "0.45249084", "0.45221597", "0.45129672", "0.4511969", "0.45105952", "0.4507766", "0.4503231", "0.45032302", "0.45022833", "0.4501264", "0.44962338", "0.44958237", "0.44852427", "0.44739422", "0.44730803", "0.44730803", "0.44714266", "0.44678506", "0.44659263", "0.44645807", "0.44634253", "0.44607574", "0.4453258", "0.44450885", "0.4444631", "0.44420016", "0.44390696", "0.44370383", "0.4433144", "0.44274423", "0.44269788", "0.4424845", "0.44138244", "0.44088125", "0.44025362", "0.43972892", "0.43939924", "0.43850484", "0.43832043", "0.4381739", "0.43815008", "0.43796116", "0.43758506", "0.43744603", "0.43571034", "0.43540916", "0.4353755", "0.43514583", "0.43513262", "0.43509352", "0.4350472", "0.43502328", "0.43489605", "0.43470687", "0.434613", "0.43439838", "0.43405247", "0.43404797", "0.43390372", "0.43377468", "0.43354237", "0.43351752", "0.432451", "0.43217364", "0.43214938", "0.43213806", "0.4320226", "0.43190232", "0.43147963", "0.43112916", "0.43101963", "0.43091598", "0.43084756", "0.43058306", "0.4302912", "0.430166", "0.42984188", "0.4297613", "0.4297555" ]
0.0
-1
NOTE: Hard to tell if step 3 has been completed
protected static function resolveStatus(Listing $isting, int $step): string { // if 3 of the last steps are just pages with no data collected return 'in progress'; /*if ($step < 3) { return 'in progress'; }*/ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function step_3()\n {\n }", "protected function isWizardDone() {}", "public function step_1()\n {\n }", "public function step_2()\n {\n }", "function getCurrentStep()\r\n\t{\r\n\t\tif( empty( $this->source_import ) ) // no file loaded -> usually step 1\r\n\t\t{\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\telse // right now, we dont need to check if there is a step 3 so we're sure that this is the step 2\r\n\t\t\treturn 2; \r\n\t}", "protected function hasCompleted()\r\n {\r\n return !(bool)$this->getExpectedStep();\r\n }", "protected function ProcessStepSuccessHook()\n {\n }", "protected function executeSpecificStep() {}", "function stepLogic() {\n\t\t$this->lastStep = isset($this->conf['lastStep']) ? (int) $this->conf['lastStep'] : 2;\n\n\t\t\t// for newsletter confirmation: no step processing\n\t\t\t// newsletter auth does not use piVars to avoid line breaks in long links\n\t\tif ( t3lib_div::_GP('nlAuth') ) {\n\t\t\t$this->subpartName = $this->activateNewsletter() ? 'NEWSLETTER_OK' : 'NEWSLETTER_ERROR';\n\t\t\treturn 0;\n\t\t}\n\t\t\t// Current Step initialization\n\t\t$step = intval($this->piVars['step'] );\n\t\t$step = ($step==0) ? 1 : $step; // if first visit\n\t\t\t// The step that we're coming from cannot be the last step.\n\t\t$step = min( $step, $this->lastStep-1 );\n\n\t\t// Next Step initialization\n\t\t// the next step is coded in an array (e.g. nextStep[2]=Weiter)\n\t\tif (is_array($this->piVars['nextStep'])) {\n\t\t\t$nextStep = (int) end(array_keys($this->piVars['nextStep']));\n\t\t}\n\t\t// Error checks (if clicking in forward direction)\n\t\tif ( ($nextStep > $step) || ($nextStep == $this->lastStep) ) {\n\t\t\t$this->doErrorChecks($step);\n\t\t}\n\n\t\t// If no error, update the current step to the next one\n\t\tif ( !$this->hasErrors && $nextStep ) {\n\t\t\t$step = min($nextStep, $this->lastStep ); // default last step is 2\n\t\t}\n\t\t$this->subpartName = $step ? 'STEP_' . $step : $this->subpartName;\n\t\treturn $step;\n\t}", "protected function outputSpecificStep() {}", "function Step1_IntegrityHard() { return( $this->stepTest( 'integ_') ); }", "function jumpToFirstUnfinishedSetupStep()\n\t{\n\t\tif (!$this->setup->getClient()->status[\"db\"][\"status\"])\n\t\t{\n\t\t\t$this->cmd = \"db\";\n\t\t\tilUtil::sendInfo($this->lng->txt(\"finish_initial_setup_first\"),true);\n\t\t\t$this->displayDatabase();\n\t\t}\n\t\telseif (!$this->setup->getClient()->status[\"lang\"][\"status\"])\n\t\t{\n\t\t\t$this->cmd = \"lang\";\n\t\t\tilUtil::sendInfo($this->lng->txt(\"finish_initial_setup_first\"),true);\n\t\t\t$this->displayLanguages();\n\t\t}\n\t\telseif (!$this->setup->getClient()->status[\"contact\"][\"status\"])\n\t\t{\n\t\t\t$this->cmd = \"contact\";\n\t\t\tilUtil::sendInfo($this->lng->txt(\"finish_initial_setup_first\"),true);\n\t\t\t$this->displayContactData();\n\t\t}\n\t\telseif(!$this->setup->getClient()->status['proxy']['status'])\n\t\t{\n\t\t\t$this->cmd = \"proxy\";\n\t\t\tilUtil::sendInfo($this->lng->txt(\"finish_initial_setup_first\"),true);\n\t\t\t$this->displayProxy();\n\t\t}\n\t\telseif (!$this->setup->getClient()->status[\"nic\"][\"status\"])\n\t\t{\n\t\t\t$this->cmd = \"nic\";\n\t\t\tilUtil::sendInfo($this->lng->txt(\"finish_initial_setup_first\"),true);\n\t\t\t$this->displayNIC();\n\t\t}\n\t\telseif (!$this->setup->getClient()->status[\"finish\"][\"status\"])\n\t\t{\n\t\t\t$this->cmd = \"finish\";\n\t\t\tilUtil::sendInfo($this->lng->txt(\"finish_initial_setup_first\"),true);\n\t\t\t$this->displayFinishSetup();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "public function isLastStep();", "public function step()\n {\n }", "public function isFirstStep();", "function Step2_Workflow()\r\n {\r\n // So the winter workflow tests are separated.\r\n if( ($ok = $this->sedAdmin->oPS->DoTests( 'workflow-winter_' )) ) {\r\n $ok = $this->sedAdmin->oPS->DoTests( 'workflow_' );\r\n }\r\n $s = $this->sedAdmin->oPS->GetOutput(); // output from test 1 plus possibly test 2, because they are appended internally\r\n return( $this->stepperRet( $ok, $s ) );\r\n }", "public function inSetup()\n\t{\n\t\t$setupComplete = $this->config()->get('confirm_step') ? 3 : 2;\n\n\t\treturn ($this->get('setup_stage') < $setupComplete);\n\t}", "public function progressValidation (): bool\n {\n // for secure: Check if the step of the answer are identical with current step which is set in the result object\n // (someone could step back via browser and send answers again. In this case the answer-step and the result-step\n // would be different)\n if (!$this->result) {\n throw new Exception('No result set.', 1638189967);\n }\n\n /** @var \\RKW\\RkwCheckup\\Domain\\Model\\ResultAnswer $resultAnswer */\n foreach ($this->result->getNewResultAnswer() as $resultAnswer) {\n if ($resultAnswer->getStep() !== $this->result->getCurrentStep()) {\n // do absolutely nothing (if this condition failed once, because the whole request then is garbage)\n return false;\n }\n }\n\n return true;\n }", "function finished() {\n\t\treturn $this->tries && ( ( $this->ready() && ! $this->hasSteps() ) || ! $this->needed() );\n\t}", "abstract public function isComplete();", "public function getCurrentStep();", "public function getFailedSteps();", "public function stepOutOfScope();", "public function getStep();", "public function getPendingSteps();", "function getStep() { return $this->readStep(); }", "function isOnStep($step) {\n global $GLOBAL;\n\tif($GLOBAL['id']==$step)\n\t\treturn true;\n}", "abstract function is_trial_utilized();", "function needsExecution() ;", "public function hasAnotherStep()\n {\n return $this->instance->current_step < (count($this->steps) - 1);\n }", "public function proceed();", "public function completeFlow();", "abstract protected function define_my_steps();", "public function proceed()\n {\n }", "public function isFinished();", "public function hasFinishState(){\n return $this->_has(5);\n }", "protected function firstStep()\n {\n $this->logger->info('Beginning the first step');\n\n // Allocate all the ballots\n foreach ($this->ballots as $i => $ballot) {\n $this->allocateVotes($ballot);\n }\n\n $this->logger->notice('Step 1 complete',\n ['candidatesStatus' => $this->election->getCandidatesStatus()]\n );\n\n $this->steps[1] = $this->election->getCandidatesStatus();\n\n return;\n }", "public function next_step() {\r\n\t\t$this->step ++;\r\n\t}", "public function hasSteps()\n {\n return 0 < count($this->outlineSteps);\n }", "function processData($step) {\n\t\t\t// if already successfully submitted, we skip any further processing\n\t\tif ( $GLOBALS[\"TSFE\"]->fe_user->getKey(\"ses\",$this->extKey . \"_successfully_submitted\") ) {\n\t\t\treturn;\n\t\t}\n\n\t\t\t// After successful form submission\n\t\tif( $step === $this->lastStep ) {\n\t\t\t$this->sendEmails();\n\t\t\t$this->addNewsletter();\n\n\t\t\t\t// remember that we finished\n\t\t\t$GLOBALS[\"TSFE\"]->fe_user->setKey(\"ses\", $this->extKey . \"_successfully_submitted\", 1);\n\t\t\t\t// clear caches\n\t\t\t$GLOBALS[\"TSFE\"]->fe_user->setKey(\"ses\", $this->extKey . \"_captcha_verified\", NULL);\n\t\t}\n\t}", "function done() {\n return $this->currentState === self::DONE;\n }", "public function ExecuteStep()\n {\n if ($this->ProcessStep()) {\n $this->ProcessStepSuccessHook();\n $oBasket = TShopBasket::GetInstance();\n $oBasket->aCompletedOrderStepList[$this->fieldSystemname] = true;\n $oNextStep = $this->GetNextStep();\n $this->JumpToStep($oNextStep);\n }\n }", "abstract function is_trial();", "function run_activity_completed_pos()\n\t\t{\n\t\t\t//this will send an email only if the configuration says to do so\n\t\t\tif (!($this->bo_agent->send_completed()))\n\t\t\t{\n\t\t\t\t$this->error[] = lang('Smtp Agent has detected some errors when sending email after completion of the activity');\n\t\t\t\t$ok = false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$ok = true;\n\t\t\t}\n\t\t\t$this->error[] = $this->bo_agent->get_error();\n\t\t\tif ($this->bo_agent->debugmode) echo '<br />COMPLETED: Mail agent in DEBUG mode:'.implode('<br />',$this->error);\n\t\t\treturn $ok;\n\t\t}", "public function getFinished(): int;", "protected function processStep()\r\n {\r\n $event = new WizardEvent($this->_currentStep, $this->read());\r\n $this->owner->trigger(self::EVENT_WIZARD_PROCESS_STEP, $event);\r\n if ($event->handled && $this->hasExpired()) {\r\n $this->expired($this->_currentStep);\r\n }\r\n return $event->handled;\r\n }", "abstract public function ForgetStep( $name );", "private function get_requested_step(){\n if(isset($_POST['caims-current-step']) && absint($_POST['caims-current-step']) <= count($this->step_ids)){\n return absint($_POST['caims-current-step']);\n }\n elseif(isset($_GET['step']) && absint($_GET['step']) <= count($this->step_ids)){\n return absint($_GET['step']);\n }\n\n return 1;\n }", "public function needsExecution() {}", "public function needsExecution() {}", "public function needsExecution() {}", "public function needsExecution() {}", "public function needsExecution() {}", "public function doneAction()\n\t{\n\t\n\t}", "public abstract function getSteps();", "public function qualifyAsFinished(): bool;", "public function isFinished(): bool;", "public function hasSetupStep() {\n return true;\n }", "public function getStep() : int;", "public function benchThisWillBeSkipped()\n {\n }", "public function isComplete() {\n return $this->getDescription() == 'Done';\n }", "function check_if_python_end($details_obj){\n\t\tif (file_exists($details_obj->project->outputPython.'\\\\markers\\\\learner_phase_file')){\n\t\t\t$details_obj->project = update_project_list($details_obj->project,\"end_offline\",true);\n\t\t\tupdate_project_details($details_obj->project);\n\t\t\tmove_to_online_task($details_obj);\n\t\t}else {\n\t\t\t$err_f = $details_obj->project->outputPython.'\\\\markers\\\\error_file';\n\t\t\tif (file_exists($err_f)){\n\t\t\t\t$details_obj->project->problem = true;\n\t\t\t\tupdate_project_details($details_obj->project);\n\t\t\t}else {\n\t\t\t\t//nothing\n\t\t\t}\n\t\t}\n\t}", "protected function _processPrevious()\n\t{\n\t\t$step = (int) $this->Session->read('Wizard.step');\n\t\t\n\t\tif( ! empty($step)){\n\t\t\t$step--;\n\t\t\t$this->_write($step);\n\t\t\t\n\t\t\t$this->redirect();\n\t\t}\t\t\n\t}", "protected function step3()\n {\n if ($this->request->isPost() && $this->security->checkToken()) {\n $validation = new validationStep2();\n\n $messages = $validation->validate($_POST);\n\n if (count($messages)) {\n foreach ($messages as $message) {\n $errors[] = $message;\n }\n $errors = implode(',<br>', $errors);\n $this->flashSession->error($errors);\n\n return $this->response->redirect(\"step2\");\n }\n\n $user = $this->session->get(\"user\");\n $user->city = $this->request->getPost(\"city\");\n $user->address = $this->request->getPost(\"address\");\n $this->session->set(\"user\", $user);\n\n return $this->view->pick(\"index/step3\");\n }\n\n return $this->response->redirect(\"step2\");\n }", "public static function step()\n\t{\n\t\tself::show(self::$_step++);\n\t}", "public function passes();", "private function _step():void\n\t{\n\t\t$task= array_shift( $this->_queue );\n\t\t\n\t\t$this->_runTask( $task );\n\t}", "function receipt() {\n\t\t$this->layout='registration';\n\t\t//you can't be in receipt if you haven't finished previous steps\n\t\tif (!$this->previousStepsAreDone($this)){\n\t\t\t$this->requestAction('steps/redirectToNextUnfinishedStep');\t\n\t\t}\t\t\t\t\t\t\n\t}", "function may_be_complete_order( $next_step_id, $order_id ) {\n\n\t\twcf()->logger->log( 'Entering: ' . __CLASS__ . '::' . __FUNCTION__ );\n\n\t\t$template_type = get_post_meta( $next_step_id, 'wcf-step-type', true );\n\n\t\tif ( 'thankyou' === $template_type ) {\n\n\t\t\t$order = wc_get_order( $order_id );\n\n\t\t\twcf_pro()->order->may_be_normalize_status( $order );\n\t\t}\n\t}", "public function onFinishing(Step $step): void\n {\n }", "public function nextStep()\n {\n if (LilyModule::instance()->enableLogging)\n Yii::log(\"userIniter: passed step $this->stepId\", CLogger::LEVEL_INFO, 'lily');\n if ($this->stepId < $this->count -1 ) {\n LilyModule::instance()->session->data->userInitData->stepId++;\n LilyModule::instance()->session->save();\n Yii::app()->request->redirect($this->steps[$this->stepId + 1]->page);\n } else {\n $this->finish();\n }\n }", "public function workshopstep1Action(){\n\t\ttry{\n\t\t\t$sm = $this->getServiceLocator();\n\t\t\t$identity = $sm->get('AuthService')->getIdentity();\n\t\t\t\n\t\t\t$config = $sm->get('Config');\n\t\t\t\n\t\t\t$request = $this->getRequest();\n\t\t\tif($request->isPost()){\n\t\t\t\t$posts = $request->getPost()->toArray();\n\t\t\t\t\n\t\t\t\t$jobPacketTable = $sm->get('Order\\Model\\JobPacketTable');\n\t\t\t\t\n\t\t\t\tif($jobPacketTable->checkMilestoneCanBeCompleted($posts['milestone_id'], $posts['steps_completed'])){\n\t\t\t\t\t\n\t\t\t\t\t$attachments = isset($posts['multipleimagesHidden'])&& !empty($posts['multipleimagesHidden']) ? json_decode($posts['multipleimagesHidden']) : null;\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t$workshopTable = $this->getServiceLocator()->get('Order\\Model\\WorkshopTable');\n\t\t\t\t\t$workshopData = array('milestone_id' => $posts['milestone_id'], 'job_id' => $posts['job_id'], 'steps_completed' => 1);\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(!empty($attachments))\n\t\t\t\t\t\t\t$jobPacketTable->saveAttachedFiles($posts['milestone_type_id'], $posts['milestone_id'], $posts['steps_completed'], $attachments);\n\t\t\t\t\t\n\t\t\t\t\techo $workshopTable->saveWorkshopStep($workshopData);\n\t\t\t\t}else{\n\t\t\t\t\techo 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\texit;\n\t\t}catch(Exception $e){\n\t\t\t\\De\\Log::logApplicationInfo ( \"Caught Exception: \" . $e->getMessage () . ' -- File: ' . __FILE__ . ' Line: ' . __LINE__ );\n\t\t}\n\t}", "function CheckSequence()\n\t{\n\t\treturn true;\n\t}", "public function isCompleted(): bool\n {\n return ($this->progress_error + $this->progress_ok) >= \\count($this->state->getSourceStates());\n }", "public function getNextExecution() {}", "public function completedStep($step)\n {\n \t$validation = 'validateStep' . studly_case(str_replace('.', '-', $step->slug));\n\n \tif (method_exists($this, $validation)) {\n \t\t$result = $this->{$validation}();\n \t}else {\n \t\t$result = true;\n \t}\n\n \treturn $result;\n }", "protected function done()\n {\n }", "public function onFinished(Step $step): void\n {\n }", "public function check_step_submit() {\n\t\t$available_gateways = WC()->payment_gateways->get_available_payment_gateways();\n\n\t\tif ( isset( $_POST[ 'wc_gzdp_step_submit' ] ) && ! empty( $_POST[ 'wc_gzdp_step_submit' ] ) ) {\n\n\t\t\t$action = ( isset( $_POST[ 'wc_gzdp_step_refresh' ] ) ? 'refresh' : 'submit' );\n\n\t\t\tif ( $step = $this->get_step( sanitize_text_field( $_POST[ 'wc_gzdp_step_submit' ] ) ) )\n\t\t\t\tdo_action( 'woocommerce_gzdp_checkout_step_' . $step->get_id() . '_' . $action );\n\t\t}\n\t}", "public function isCompleted();", "protected function hasStarted()\r\n {\r\n return isset($this->_session[$this->_stepsKey]);\r\n }", "public function isDone(){\n\t\treturn $this->done;\n\t}", "public function proceededAt()\n {\n }", "public function processTplStep()\n {\n if ($this->singleStep) {\n reset($this->steps);\n $first_key = key($this->steps);\n\n if ($this->step == $first_key) {\n // Save current step pointer\n $step = $this->step;\n\n // Simulate single\n $this->step = 'single';\n parent::processTplStep();\n\n // Reset step pointer\n $this->step = $step;\n\n return;\n }\n }\n\n parent::processTplStep();\n }", "public function prototypestep1Action(){\n\t\ttry{\n\t\t\t$sm = $this->getServiceLocator();\n\t\t\t$identity = $sm->get('AuthService')->getIdentity();\n\t\t\t\n\t\t\t$config = $sm->get('Config');\n\t\t\t\n\t\t\t$request = $this->getRequest();\n\t\t\tif($request->isPost()){\n\t\t\t\t$posts = $request->getPost()->toArray();\n\t\t\t\t\n\t\t\t\t//$orderTable = $sm->get('Order\\Model\\OrderTable');\n\t\t\t\t$jobPacketTable = $sm->get('Order\\Model\\JobPacketTable');\n\t\t\t\t\n\t\t\t\tif($jobPacketTable->checkMilestoneCanBeCompleted($posts['milestone_id'], $posts['steps_completed'])){\n\t\t\t\t\n\t\t\t\t\t//$order = (array)$orderTable->fetchJobDetails($posts['job_id']);\n\t\t\t\t\t\n\t\t\t\t\t$milestones_ref_id = $posts['milestone_id'];\n\t\t\t\t\t$milestone_type_id = $posts['milestone_type_id'];\n\t\t\t\t\t$attachments = isset($posts['multipleimagesHidden'])&& !empty($posts['multipleimagesHidden']) ? json_decode($posts['multipleimagesHidden']) : null;\n\t\t\t\t\t\n\t\t\t\t\tunset($posts['multipleimagesHidden']);\n\t\t\t\t\tunset($posts['milestone_type_id']);\n\t\t\t\t\tunset($posts['metal_type_opt']);\n\t\t\t\t\tunset($posts['supplier_name']);\n\t\t\t\t\t\n\t\t\t\t\t$posts['metal_types'] = implode(',', $posts['metal_types']);\n\t\t\t\t\t\n\t\t\t\t\tlist($d, $m, $y) = explode('/', $posts['exp_delivery_date']);\n\t\t\t\t\t$posts['exp_delivery_date'] = \"$y-$m-$d\";\n\t\t\t\t\t\n\t\t\t\t\t//list($d, $m, $y) = explode('/', $posts['date_delivered']);\n\t\t\t\t\t//$posts['date_delivered'] = \"$y-$m-$d\";\n\t\t\t\t\t\n\t\t\t\t\t$prototypetTable = $sm->get('Order\\Model\\PrototypeTable');\n\t\t\t\t\tif($prototypetTable->savePrototypeStep($posts)){\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(!empty($attachments))\n\t\t\t\t\t\t\t$jobPacketTable->saveAttachedFiles($milestone_type_id, $milestones_ref_id, $posts['steps_completed'], $attachments);\n\t\t\t\t\t\t\n\t\t\t\t\t\techo 1;\n\t\t\t\t\t}else{\n\t\t\t\t\t\techo 0;\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\techo 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\texit;\n\t\t}catch(Exception $e){\n\t\t\t\\De\\Log::logApplicationInfo ( \"Caught Exception: \" . $e->getMessage () . ' -- File: ' . __FILE__ . ' Line: ' . __LINE__ );\n\t\t}\n\t}", "abstract protected function isSuccessfullFinished($output);", "public function succeeded();", "public function wasWorked();", "public function initStep($order)\n {\n return $order->IsSubmitted();\n }", "public function shouldRenderWizard() {}", "public function pass()\n\t{\n\t\t$trace = debug_backtrace();\n\n\t\t// If the test has already failed then we don't want to set it to true.\n\t\tif ( ! empty($trace[2]['function']) and (is_int($trace[2]['function']) or is_string($trace[2]['function']))\n\t\t\tand @array_key_exists($trace[2]['function'], $this->results)\n\t\t and $this->results[$trace[2]['function']] === false)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$this->results[$trace[2]['function']] = true;\n\t}", "function isSuccessful() ;", "protected function finish() {}", "public function isFinalized()\n {\n return ($this->status == 'processing' || $this->status == 'valid');\n }", "public function hasComplete(){\n return $this->_has(2);\n }", "public function isDone()\n {\n return $this->result == self::RESULT_DONE;\n }", "function recommends_req_wizard_previous_submit($form, &$form_state) {\n $current_step = &$form_state['step'];\n $form_state['step_information'][$current_step]['stored_values'] = $form_state['values'];\n if ($current_step > 1) {\n $current_step--;\n $form_state['values'] = $form_state['step_information'][$current_step]['stored_values'];\n }\n $form_state['rebuild'] = TRUE;\n}", "public function done();", "function isExecuted() ;", "public function isAllStepsCompleted()\n {\n $completedSteps = count($this->getCompletedSettingsSteps());\n $status = ($completedSteps == 5) ? true : false;\n\n return $status;\n }", "public function incrementFailures(): bool;" ]
[ "0.7416883", "0.72073454", "0.7009279", "0.6747985", "0.6720952", "0.6715144", "0.6639763", "0.6615076", "0.655056", "0.6529945", "0.6465029", "0.6335472", "0.6319638", "0.6257744", "0.61902326", "0.61844146", "0.6178971", "0.6120092", "0.60057116", "0.59665155", "0.59371495", "0.5926068", "0.59006613", "0.5879686", "0.586777", "0.58421767", "0.582949", "0.5816147", "0.5814111", "0.5799823", "0.578397", "0.57749194", "0.57686657", "0.5742956", "0.5735591", "0.573086", "0.57032585", "0.56927115", "0.5691993", "0.56919396", "0.56837904", "0.5675595", "0.5642982", "0.5631947", "0.5620007", "0.56119865", "0.5605652", "0.56047654", "0.55935967", "0.55935967", "0.55920327", "0.55920327", "0.55920327", "0.5576625", "0.5566742", "0.55648875", "0.55630493", "0.55568254", "0.5547935", "0.55463046", "0.5542511", "0.5541249", "0.5514363", "0.5514", "0.55126184", "0.5508525", "0.5507963", "0.54877156", "0.5480042", "0.5479523", "0.5451981", "0.5444958", "0.54435813", "0.5441834", "0.54405594", "0.5435243", "0.54279494", "0.5427395", "0.5421973", "0.54207635", "0.54206586", "0.54034066", "0.5400651", "0.53966945", "0.5384871", "0.53797084", "0.53730434", "0.53570634", "0.5350967", "0.53492504", "0.53386843", "0.53337723", "0.53230166", "0.5319706", "0.5319649", "0.53190374", "0.53169775", "0.53158116", "0.5315023", "0.5310766", "0.5304897" ]
0.0
-1
Get the user that owns upload.
public function empleado() { return \App\Models\Empleado::where('user_id', $this->user_id)->first(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOwner() {\n // no need to check whether exist because of database constrain\n return User::getUserById($this->owner_id);\n }", "public function getUploader()\n\t{\n\t\t$sfUsers = sfCore::getClass('sfUsers');\n\t\treturn $sfUsers::fetchUser($this->uploader);\n\t}", "public function getOwner()\n\t{\n\t\treturn $this->getObject('owner', null, 'user');\n\t}", "public function getOwner(): User\n {\n return $this->owner;\n }", "public function getOwner(): User\n {\n return $this->user;\n }", "function getOwner() {\n $user =& Element_Factory::makeElement( 'Bm_Users' );\n $user->get( $this->author );\n\n return $user->login;\n }", "public function getUserId() {\n\t\treturn (string) $this->photo->owner['nsid'];\n\t}", "public function user()\n {\n if (!is_null($this->user)) {\n return $this->user;\n }\n $user = null;\n try {\n $resourceId = Authorizer::getResourceOwnerId();\n $resourceType = Authorizer::getResourceOwnerType();\n } catch (\\Exception $e) {\n $resourceId = null;\n $resourceType = null;\n // throw $e;\n }\n if ($resourceType !== $this->id) {\n return null;\n }\n if (!empty($resourceId)) {\n $user = $this->getProvider()->retrieveById($resourceId);\n }\n return $this->user = $user;\n\n }", "public function getUserId()\n {\n return $this->fileStructure->uid;\n }", "public function getOwner()\n\t{\n\t\t$command='stat -c %U' . sprintf(' \"%s\"', $this->getFullPath());\n\t\t$user=$this->executeCommand($command);\n\t\treturn $user;\n }", "public function getLoggedInUser() {\n\t\treturn elgg_get_logged_in_user_entity();\n\t}", "public function getOwnerId()\n {\n return $this->user_id;\n }", "public function getPostedUser() {\n\t\treturn $this->postedUser;\n\t}", "public function get_user() {\n\t\treturn $this->user;\n\t}", "protected function getUserId()\n {\n return object_get($this->getUser(), 'profile_id', $this->getDefaultProfileId() );\n }", "public function getAuthenticatedUser()\n {\n return $this->getUnsplashClient()->sendRequest('GET', 'me');\n }", "public function getCurrentUser()\n {\n return $this->remoteUser;\n }", "public function getOwner()\n {\n return $this->data['owner'];\n }", "public function getLoggedInUser() {\n return $this->_user->getLoggedInUser();\n }", "public function get_current_user()\n\t{\n\t\treturn $this->current_user;\n\t}", "public function getOwner() : ?UserInterface\n {\n if ($this->userid) {\n if ($this->owner === null) {\n $this->owner = userRepository()->getUserById($this->userid);\n }\n return $this->owner;\n }\n return null;\n }", "public function get_user() {\r\n\t\treturn ($this->user);\r\n\t}", "public function GetCurrentUser()\n {\n return $this->userManager->getCurrent();\n }", "public function getOwner()\n {\n return isset($this->owner) ? $this->owner : null;\n }", "public static function user()\n {\n if (isset($_SESSION['LOGGED_IN_USER'])){\n return $username;\n }\n }", "public function getUserId()\r\r\n {\r\r\n return $this->signedRequest ? $this->signedRequest->getUserId() : null;\r\r\n }", "public function getUserId()\r\n \t{\r\n \treturn $this->_client->getUser();\r\n \t}", "public function getAuthorizedUser()\n {\n if (empty($this->currentUser)) {\n $this->authorize();\n }\n return $this->currentUser;\n }", "public function getCurrentUser()\n\t{\n\t\treturn $this->users->getCurrentUser();\n\t}", "public function getOwner()\n {\n return $this->owner;\n }", "public function getOwner()\n {\n return $this->owner;\n }", "public function getOwner()\n {\n return $this->owner;\n }", "public function getLoggedInUser()\n\t{\n\t\tif (!isset($this->loggedInUser)) {\n $this->loggedInUser = array();\n \n if ($this->getIsUserLoggedIn()) {\n // get the logged in user\n $this->loggedInUser = $this->getFamilyGraph()->api('me');\n }\n }\n \n return $this->loggedInUser;\n\t}", "private function getAuthor()\n {\n $tokenStorage = $this->getOption('token_storage');\n\n return $tokenStorage->getToken()->getUser();\n }", "public function oOwner(){\n\t\tif(is_null($this->__oOwner)){\n $this->__oOwner = CUser::oGetUser($this->__iOwnerNo);\n }\n return $this->__oOwner;\n\t}", "private function getLoggedInUser()\n {\n if (null !== $token = $this->securityContext->getToken()) {\n return $token->getUser();\n }\n\n return null;\n }", "public function getOwner() {\n\t\treturn $this->owner;\n\t}", "private function getAuthenticatedUser()\r\n {\r\n $tokenStorage = $this->container->get('security.token_storage');\r\n return $tokenStorage->getToken()->getUser();\r\n }", "private function getAuthenticatedUser()\r\n {\r\n $tokenStorage = $this->container->get('security.token_storage');\r\n return $tokenStorage->getToken()->getUser();\r\n }", "function get_user () {\n\t\treturn $this->user_id;\n\t}", "function getOwner() {\n \n return $this->principalInfo['uri'];\n \n }", "public function getOwner()\n {\n return $this->get(self::_OWNER);\n }", "public function getowner_id()\n {\n return $this->owner_id;\n }", "protected function get_owner_id()\n {\n return $this->owner_id;\n }", "public function user()\n {\n return $this->user;\n }", "public function user()\n {\n return $this->user;\n }", "protected function getUser()\n {\n $token = $this->securityContext->getToken();\n if ($token) {\n $user = $token->getUser();\n if ($user instanceof UserInterface) {\n return $user;\n }\n }\n\n return null;\n }", "public function getOwner()\n {\n return $this->hasOne(User::className(), ['id' => 'owner_id']);\n }", "function getOwner() \n {\n return $this->instance->getOwner();\n }", "public function getOwner() {\r\n return $this->owner;\r\n }", "public function getOwner()\n {\n return $this->_owner;\n }", "public function getUser() {\n\t\treturn $this->user;\n\t}", "public function getUser() {\n\t\treturn $this->user;\n\t}", "public function getOwner()\n {\n return isset($this->owner) ? $this->owner : '';\n }", "public function getUserId() {\n\t\t\tif ($this->getUser() !== null) {\n\t\t\t\treturn $this->getUser()->getId();\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "public function getUser()\n {\n return $this->_user;\n }", "public function getCurrentUser()\n {\n $accessToken = $this->getFOSOauthServer()->verifyAccessToken(\n $this->getAccessTokenString(),\n 'user'\n );\n\n return $accessToken->getUser();\n }", "public function getUser ()\r\n\t{\r\n\t\treturn $this->user;\r\n\t}", "public function getUser()\n {\n if (null === $token = $this->securityContext->getToken()) {\n return;\n }\n\n if (!is_object($user = $token->getUser())) {\n return;\n }\n\n return $user;\n }", "public final function getUser()\n {\n return $this->user;\n }", "public function GetUserProfile() {\n\t\treturn $this->session->GetAuthenticatedUser();\n\t}", "public function getOwnerusername() {}", "private function getUser()\n {\n return $this->user->getUser();\n }", "public function user()\n {\n if (!$this->user) {\n $identifier = $this->getToken();\n $this->user = $this->provider->retrieveByToken($identifier, '');\n }\n return $this->user;\n }", "public function getOppoUserid()\n {\n return $this->get(self::_OPPO_USERID);\n }", "private function getUser() {\n\t\t$account = $this->authenticationManager->getSecurityContext()->getAccount();\n\t\t$user = $account->getParty();\n\t\treturn $user;\n\t}", "function getAccess() {\n\t\t$workspace\t=\t$this->getWorkspace();\n\t\treturn $workspace->get(_JEM_USER_);\n\t}", "protected function getUser()\n {\n return $this->container->get('security.context')->getToken()->getUser();\n }", "public function getOwnerID() {\n\t\treturn $this->owner_id;\n\t}", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->user;\n }", "public function getUser()\n {\n return $this->_user;\n }", "public function user()\n {\n return $this->context-> getUser();\n }", "public function get_user_id()\n {\n return self::getUser();\n }", "public function user()\n {\n return $this->luser;\n }", "protected function getCurrentUser()\n {\n $user = null;\n if (!is_null($this->tokenStorage->getToken())) {\n $user = $this->tokenStorage->getToken()->getUser();\n }\n\n return $user;\n }" ]
[ "0.7415099", "0.71698207", "0.7128878", "0.7072788", "0.70495456", "0.6897739", "0.6883353", "0.6865489", "0.68354607", "0.6794", "0.67929673", "0.678493", "0.6709247", "0.66997236", "0.66690147", "0.6667886", "0.6654228", "0.66012186", "0.659541", "0.6588848", "0.65875214", "0.65558195", "0.65552795", "0.6552938", "0.6547896", "0.65454155", "0.65381867", "0.65357107", "0.6533326", "0.652948", "0.652948", "0.652948", "0.65256196", "0.65228", "0.6504575", "0.65032893", "0.6485556", "0.64790446", "0.64790446", "0.6478734", "0.6478216", "0.6458931", "0.64407164", "0.6433903", "0.64171994", "0.64171994", "0.64130306", "0.64115596", "0.6411057", "0.6404834", "0.63985854", "0.6361784", "0.6361784", "0.6360814", "0.6358969", "0.6356142", "0.6355693", "0.6352613", "0.63435966", "0.6334948", "0.6332849", "0.6324346", "0.6315056", "0.631494", "0.6310636", "0.63066286", "0.6302398", "0.63001", "0.629981", "0.6296168", "0.6296168", "0.6296168", "0.6296168", "0.6296168", "0.6296168", "0.6296168", "0.6296168", "0.6296168", "0.6296168", "0.6296168", "0.6296168", "0.6296168", "0.6296168", "0.6296168", "0.6296168", "0.6296168", "0.6296168", "0.6296168", "0.6296168", "0.6296168", "0.6296168", "0.6296168", "0.6296168", "0.6296168", "0.6296168", "0.6296168", "0.6294788", "0.6293048", "0.6289832", "0.6284588", "0.6278828" ]
0.0
-1
Create a new controller instance.
public function __construct() { // $this->middleware('auth'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createController()\n {\n $this->createClass('controller');\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this->call('make:controller', array_filter([\n 'name' => \"{$controller}Controller\",\n '--model' => $modelName,\n '--api' => true,\n ]));\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n $model_name = $this->qualifyClass($this->getNameInput());\n $name = Str::contains($model_name, ['\\\\']) ? Str::afterLast($model_name, '\\\\') : $model_name;\n\n $this->call('make:controller', [\n 'name' => \"{$controller}Controller\",\n '--model' => $model_name,\n ]);\n\n $path = base_path() . \"/app/Http/Controllers/{$controller}Controller.php\";\n $this->cleanupDummy($path, $name);\n }", "private function makeInitiatedController()\n\t{\n\t\t$controller = new TestEntityCRUDController();\n\n\t\t$controller->setLoggerWrapper(Logger::create());\n\n\t\treturn $controller;\n\t}", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n\n $modelName = $this->qualifyClass($this->getNameInput());\n\n $this->call(ControllerMakeCommand::class, array_filter([\n 'name' => \"{$controller}/{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n ]));\n\n $this->call(ControllerMakeCommand::class, array_filter([\n 'name' => \"Api/{$controller}/{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n '--api' => true,\n ]));\n }", "protected function createController()\n {\n $name = str_replace(\"Service\",\"\",$this->argument('name'));\n\n $this->call('make:controller', [\n 'name' => \"{$name}Controller\"\n ]);\n }", "protected function createController()\n {\n $params = [\n 'name' => $this->argument('name'),\n ];\n\n if ($this->option('api')) {\n $params['--api'] = true;\n }\n\n $this->call('wizard:controller', $params);\n }", "public function generateController () {\r\n $controllerParam = \\app\\lib\\router::getPath();\r\n $controllerName = \"app\\controller\\\\\" . end($controllerParam);\r\n $this->controller = new $controllerName;\r\n }", "public static function newController($controller)\n\t{\n\t\t$objController = \"App\\\\Controllers\\\\\".$controller;\n\t\treturn new $objController;\n\t}", "public function createController()\n\t{\n\t\tif(class_exists($this->controller))\n\t\t{\n\t\t\t// get the parent class he extends\n\t\t\t$parents = class_parents($this->controller);\n\n\t\t\t// $parents = class_implements($this->controller); used if our Controller was just an interface not a class\n\n\t\t\t// check if the class implements our Controller Class\n\t\t\tif(in_array(\"Controller\", $parents))\n\t\t\t{\n\t\t\t\t// check if the action in the request exists in that class\n\t\t\t\tif(method_exists($this->controller, $this->action))\n\t\t\t\t{\n\t\t\t\t\treturn new $this->controller($this->action, $this->request);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// Action is not exist\n\t\t\t\t\techo 'Method '. $this->action .' doesn\\'t exist in '. $this->controller;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// The controller doesn't extends our Controller Class\n\t\t\t\techo $this->controller.' doesn\\'t extends our Controller Class';\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Controller Doesn't exist\n\t\t\techo $this->controller.' doesn\\'t exist';\n\t\t}\n\t}", "public function createController( ezcMvcRequest $request );", "public function createController() {\n //check our requested controller's class file exists and require it if so\n /*if (file_exists(__DIR__ . \"/../Controllers/\" . $this->controllerName . \".php\")) {\n require(__DIR__ . \"/../Controllers/\" . $this->controllerName . \".php\");\n } else {\n throw new Exception('Route does not exist');\n }*/\n\n try {\n require_once __DIR__ . '/../Controllers/' . $this->controllerName . '.php';\n } catch (Exception $e) {\n return $e;\n }\n \n //does the class exist?\n if (class_exists($this->controllerClass)) {\n $parents = class_parents($this->controllerClass);\n \n //does the class inherit from the BaseController class?\n if (in_array(\"BaseController\",$parents)) { \n //does the requested class contain the requested action as a method?\n if (method_exists($this->controllerClass, $this->endpoint)) {\n return new $this->controllerClass($this->args, $this->endpoint, $this->domain);\n } else {\n throw new Exception('Action does not exist');\n }\n } else {\n throw new Exception('Class does not inherit correctly.');\n }\n } else {\n throw new Exception('Controller does not exist.');\n }\n }", "public static function create()\n\t{\n\t\t//check, if a JobController instance already exists\n\t\tif(JobController::$jobController == null)\n\t\t{\n\t\t\tJobController::$jobController = new JobController();\n\t\t}\n\n\t\treturn JobController::$jobController;\n\t}", "private function controller()\n {\n $location = $this->args[\"location\"] . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR;\n $relative_location = $this->args['application_folder'] . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR;\n\n if (!empty($this->args['subdirectories']))\n {\n $location .= $this->args['subdirectories'] . DIRECTORY_SEPARATOR;\n $relative_location .= $this->args['subdirectories'] . DIRECTORY_SEPARATOR;\n }\n\n if (!is_dir($location))\n {\n mkdir($location, 0755, TRUE);\n }\n\n $relative_location .= $this->args['filename'];\n $filename = $location . $this->args['filename'];\n\n $args = array(\n \"class_name\" => ApplicationHelpers::camelize($this->args['name']),\n \"filename\" => $this->args['filename'],\n \"application_folder\" => $this->args['application_folder'],\n \"parent_class\" => (isset($this->args['parent'])) ? $this->args['parent'] : $this->args['parent_controller'],\n \"extra\" => $this->extra,\n 'relative_location' => $relative_location,\n 'helper_name' => strtolower($this->args['name']) . '_helper',\n );\n\n $template = new TemplateScanner(\"controller\", $args);\n $controller = $template->parse();\n\n $message = \"\\t\";\n if (file_exists($filename))\n {\n $message .= 'Controller already exists : ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'light_blue');\n }\n $message .= $relative_location;\n }\n elseif (file_put_contents($filename, $controller))\n {\n $message .= 'Created controller: ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'green');\n }\n $message .= $relative_location;\n }\n else\n {\n $message .= 'Unable to create controller: ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'red');\n }\n $message .= $relative_location;\n }\n\n // The controller has been generated, output the confirmation message\n fwrite(STDOUT, $message . PHP_EOL);\n\n // Create the helper files.\n $this->helpers();\n\n $this->assets();\n\n // Create the view files.\n $this->views();\n\n return;\n }", "public function createController( $controllerName ) {\r\n\t\t$refController \t\t= $this->instanceOfController( $controllerName );\r\n\t\t$refConstructor \t= $refController->getConstructor();\r\n\t\tif ( ! $refConstructor ) return $refController->newInstance();\r\n\t\t$initParameter \t\t= $this->setParameter( $refConstructor );\r\n\t\treturn $refController->newInstanceArgs( $initParameter ); \r\n\t}", "public function create($controllerName) {\r\n\t\tif (!$controllerName)\r\n\t\t\t$controllerName = $this->defaultController;\r\n\r\n\t\t$controllerName = ucfirst(strtolower($controllerName)).'Controller';\r\n\t\t$controllerFilename = $this->searchDir.'/'.$controllerName.'.php';\r\n\r\n\t\tif (preg_match('/[^a-zA-Z0-9]/', $controllerName))\r\n\t\t\tthrow new Exception('Invalid controller name', 404);\r\n\r\n\t\tif (!file_exists($controllerFilename)) {\r\n\t\t\tthrow new Exception('Controller not found \"'.$controllerName.'\"', 404);\r\n\t\t}\r\n\r\n\t\trequire_once $controllerFilename;\r\n\r\n\t\tif (!class_exists($controllerName) || !is_subclass_of($controllerName, 'Controller'))\r\n\t\t\tthrow new Exception('Unknown controller \"'.$controllerName.'\"', 404);\r\n\r\n\t\t$this->controller = new $controllerName();\r\n\t\treturn $this;\r\n\t}", "private function createController($controllerName)\n {\n $className = ucfirst($controllerName) . 'Controller';\n ${$this->lcf($controllerName) . 'Controller'} = new $className();\n return ${$this->lcf($controllerName) . 'Controller'};\n }", "public function createControllerObject(string $controller)\n {\n $this->checkControllerExists($controller);\n $controller = $this->ctlrStrSrc.$controller;\n $controller = new $controller();\n return $controller;\n }", "public function create_controller($controller, $action){\n\t $creado = false;\n\t\t$controllers_dir = Kumbia::$active_controllers_dir;\n\t\t$file = strtolower($controller).\"_controller.php\";\n\t\tif(file_exists(\"$controllers_dir/$file\")){\n\t\t\tFlash::error(\"Error: El controlador '$controller' ya existe\\n\");\n\t\t} else {\n\t\t\tif($this->post(\"kind\")==\"applicationcontroller\"){\n\t\t\t\t$filec = \"<?php\\n\t\t\t\\n\tclass \".ucfirst($controller).\"Controller extends ApplicationController {\\n\\n\\t\\tfunction $action(){\\n\\n\\t\\t}\\n\\n\t}\\n\t\\n?>\\n\";\n\t\t\t\tif(@file_put_contents(\"$controllers_dir/$file\", $filec)){\n\t\t\t\t $creado = true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$filec = \"<?php\\n\t\t\t\\n\tclass \".ucfirst($controller).\"Controller extends StandardForm {\\n\\n\\t\\tpublic \\$scaffold = true;\\n\\n\\t\\tpublic function __construct(){\\n\\n\\t\\t}\\n\\n\t}\\n\t\\n?>\\n\";\n\t\t\t\tfile_put_contents(\"$controllers_dir/$file\", $filec);\n\t\t\t\tif($this->create_model($controller, $controller, \"index\")){\n\t\t\t\t $creado = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($creado){\n\t\t\t Flash::success(\"Se cre&oacute; correctamente el controlador '$controller' en '$controllers_dir/$file'\");\n\t\t\t}else {\n\t\t\t Flash::error(\"Error: No se pudo escribir en el directorio, verifique los permisos sobre el directorio\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t$this->route_to(\"controller: $controller\", \"action: $action\");\n\t}", "private function instanceController( string $controller_class ): Controller {\n\t\treturn new $controller_class( $this->request, $this->site );\n\t}", "public function makeController($controller_name)\n\t{\n\t\t$model\t= $this->_makeModel($controller_name, $this->_storage_type);\n\t\t$view\t= $this->_makeView($controller_name);\n\t\t\n\t\treturn new $controller_name($model, $view);\n\t}", "public function create()\n {\n $output = new \\Symfony\\Component\\Console\\Output\\ConsoleOutput();\n $output->writeln(\"<info>Controller Create</info>\");\n }", "protected function createDefaultController() {\n Octopus::requireOnce($this->app->getOption('OCTOPUS_DIR') . 'controllers/Default.php');\n return new DefaultController();\n }", "private function createControllerDefinition()\n {\n $id = $this->getServiceId('controller');\n if (!$this->container->has($id)) {\n $definition = new Definition($this->getServiceClass('controller'));\n $definition\n ->addMethodCall('setConfiguration', [new Reference($this->getServiceId('configuration'))])\n ->addMethodCall('setContainer', [new Reference('service_container')])\n ;\n $this->container->setDefinition($id, $definition);\n }\n }", "public function createController( $ctrlName, $action ) {\n $args['action'] = $action;\n $args['path'] = $this->path . '/modules/' . $ctrlName;\n $ctrlFile = $args['path'] . '/Controller.php';\n // $args['moduleName'] = $ctrlName;\n if ( file_exists( $ctrlFile ) ) {\n $ctrlPath = str_replace( CITRUS_PATH, '', $args['path'] );\n $ctrlPath = str_replace( '/', '\\\\', $ctrlPath ) . '\\Controller';\n try { \n $r = new \\ReflectionClass( $ctrlPath ); \n $inst = $r->newInstanceArgs( $args ? $args : array() );\n\n $this->controller = Citrus::apply( $inst, Array( \n 'name' => $ctrlName, \n ) );\n if ( $this->controller->is_protected == null ) {\n $this->controller->is_protected = $this->is_protected;\n }\n return $this->controller;\n } catch ( \\Exception $e ) {\n prr($e, true);\n }\n } else {\n return false;\n }\n }", "protected function createTestController() {\n\t\t$controller = new CController('test');\n\n\t\t$action = $this->getMock('CAction', array('run'), array($controller, 'test'));\n\t\t$controller->action = $action;\n\n\t\tYii::app()->controller = $controller;\n\t\treturn $controller;\n\t}", "public static function newController($controllerName, $params = [], $request = null) {\n\n\t\t$controller = \"App\\\\Controllers\\\\\".$controllerName;\n\n\t\treturn new $controller($params, $request);\n\n\t}", "private function loadController() : void\n\t{\n\t\t$this->controller = new $this->controllerName($this->request);\n\t}", "public function createController($pi, array $params)\n {\n $class = $pi . '_Controller_' . ucfirst($params['page']);\n\n return new $class();\n }", "public function createController() {\n //check our requested controller's class file exists and require it if so\n \n if (file_exists(\"modules/\" . $this->controllerName . \"/controllers/\" . $this->controllerName .\".php\" ) && $this->controllerName != 'error') {\n require(\"modules/\" . $this->controllerName . \"/controllers/\" . $this->controllerName .\".php\");\n \n } else {\n \n $this->urlValues['controller'] = \"error\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badurl\", $this->urlValues);\n }\n\n //does the class exist?\n if (class_exists($this->controllerClass)) {\n $parents = class_parents($this->controllerClass);\n //does the class inherit from the BaseController class?\n if (in_array(\"BaseController\", $parents)) {\n //does the requested class contain the requested action as a method?\n if (method_exists($this->controllerClass, $this->action)) { \n return new $this->controllerClass($this->action, $this->urlValues);\n \n } else {\n //bad action/method error\n $this->urlValues['controller'] = \"error\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badview\", $this->urlValues);\n }\n } else {\n $this->urlValues['controller'] = \"error\";\n //bad controller error\n echo \"hjh\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"b\", $this->urlValues);\n }\n } else {\n \n //bad controller error\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badurl\", $this->urlValues);\n }\n }", "protected static function createController($name) {\n $result = null;\n\n $name = self::$_namespace . ($name ? $name : self::$defaultController) . 'Controller';\n if(class_exists($name)) {\n $controllerClass = new \\ReflectionClass($name);\n if($controllerClass->hasMethod('run')) {\n $result = new $name();\n }\n }\n\n return $result;\n }", "public function createController(): void\n {\n $minimum_buffer_min = 3;\n $token_ok = $this->routerService->ds_token_ok($minimum_buffer_min);\n if ($token_ok) {\n # 2. Call the worker method\n # More data validation would be a good idea here\n # Strip anything other than characters listed\n $results = $this->worker($this->args);\n\n if ($results) {\n # Redirect the user to the NDSE view\n # Don't use an iFrame!\n # State can be stored/recovered using the framework's session or a\n # query parameter on the returnUrl\n header('Location: ' . $results[\"redirect_url\"]);\n exit;\n }\n } else {\n $this->clientService->needToReAuth($this->eg);\n }\n }", "protected function createController($controllerClass)\n {\n $cls = new ReflectionClass($controllerClass);\n return $cls->newInstance($this->environment);\n }", "protected function createController($name)\n {\n $controllerClass = 'controller\\\\'.ucfirst($name).'Controller';\n\n if(!class_exists($controllerClass)) {\n throw new \\Exception('Controller class '.$controllerClass.' not exists!');\n }\n\n return new $controllerClass();\n }", "protected function initController() {\n\t\tif (!isset($_GET['controller'])) {\n\t\t\t$this->initDefaultController();\n\t\t\treturn;\n\t\t}\n\t\t$controllerClass = $_GET['controller'].\"Controller\";\n\t\tif (!class_exists($controllerClass)) {\n\t\t\t//Console::error(@$_GET['controller'].\" doesn't exist\");\n\t\t\t$this->initDefaultController();\n\t\t\treturn;\n\t\t}\n\t\t$this->controller = new $controllerClass();\n\t}", "public function makeTestController(TestController $controller)\r\n\t{\r\n\t}", "static function factory($GET=array(), $POST=array(), $FILES=array()) {\n $type = (isset($GET['type'])) ? $GET['type'] : '';\n $objectController = $type.'_Controller';\n $addLocation = $type.'/'.$objectController.'.php';\n foreach ($_ENV['locations'] as $location) {\n if (is_file($location.$addLocation)) {\n return new $objectController($GET, $POST, $FILES);\n } \n }\n throw new Exception('The controller \"'.$type.'\" does not exist.');\n }", "public function create()\n {\n $general = new ModeloController();\n\n return $general->create();\n }", "public function makeController($controllerNamespace, $controllerName, Log $log, $session, Request $request, Response $response)\r\n\t{\r\n\t\t$fullControllerName = '\\\\Application\\\\Controller\\\\' . (!empty($controllerNamespace) ? $controllerNamespace . '\\\\' : '') . $controllerName;\r\n\t\t$controller = new $fullControllerName();\r\n\t\t$controller->setConfig($this->config);\r\n\t\t$controller->setRequest($request);\r\n\t\t$controller->setResponse($response);\r\n\t\t$controller->setLog($log);\r\n\t\tif (isset($session))\r\n\t\t{\r\n\t\t\t$controller->setSession($session);\r\n\t\t}\r\n\r\n\t\t// Execute additional factory method, if available (exists in \\Application\\Controller\\Factory)\r\n\t\t$method = 'make' . $controllerName;\r\n\t\tif (is_callable(array($this, $method)))\r\n\t\t{\r\n\t\t\t$this->$method($controller);\r\n\t\t}\r\n\r\n\t\t// If the controller has an init() method, call it now\r\n\t\tif (is_callable(array($controller, 'init')))\r\n\t\t{\r\n\t\t\t$controller->init();\r\n\t\t}\r\n\r\n\t\treturn $controller;\r\n\t}", "public static function create()\n\t{\n\t\t//check, if an AccessGroupController instance already exists\n\t\tif(AccessGroupController::$accessGroupController == null)\n\t\t{\n\t\t\tAccessGroupController::$accessGroupController = new AccessGroupController();\n\t\t}\n\n\t\treturn AccessGroupController::$accessGroupController;\n\t}", "public static function buildController()\n\t{\n\t\t$file = CONTROLLER_PATH . 'indexController.class.php';\n\n\t\tif(!file_exists($file))\n\t\t{\n\t\t\tif(\\RCPHP\\Util\\Check::isClient())\n\t\t\t{\n\t\t\t\t$controller = '<?php\nclass indexController extends \\RCPHP\\Controller {\n public function index(){\n echo \"Welcome RcPHP!\\n\";\n }\n}';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$controller = '<?php\nclass indexController extends \\RCPHP\\Controller {\n public function index(){\n echo \\'<style type=\"text/css\">*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} body{ background: #fff; font-family: \"微软雅黑\"; color: #333;} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.8em; font-size: 36px }</style><div style=\"padding: 24px 48px;\"> <h1>:)</h1><p>Welcome <b>RcPHP</b>!</p></div>\\';\n }\n}';\n\t\t\t}\n\t\t\tfile_put_contents($file, $controller);\n\t\t}\n\t}", "public function getController( );", "public static function getInstance() : Controller {\n if ( null === self::$instance ) {\n self::$instance = new self();\n self::$instance->options = new Options(\n self::OPTIONS_KEY\n );\n }\n\n return self::$instance;\n }", "static function appCreateController($entityName, $prefijo = '') {\n\n $controller = ControllerBuilder::getController($entityName, $prefijo);\n $entityFile = ucfirst(str_replace($prefijo, \"\", $entityName));\n $fileController = \"../../modules/{$entityFile}/{$entityFile}Controller.class.php\";\n\n $result = array();\n $ok = self::createArchive($fileController, $controller);\n ($ok) ? array_push($result, \"Ok, {$fileController} created\") : array_push($result, \"ERROR creating {$fileController}\");\n\n return $result;\n }", "public static function newInstance($path = \\simpleChat\\Utility\\ROOT_PATH)\n {\n $request = new Request();\n \n \n if ($request->isAjax())\n {\n return new AjaxController();\n }\n else if ($request->jsCode())\n {\n return new JsController();\n }\n else\n {\n return new StandardController($path);\n }\n }", "private function createInstance()\n {\n $objectManager = new \\Magento\\Framework\\TestFramework\\Unit\\Helper\\ObjectManager($this);\n $this->controller = $objectManager->getObject(\n \\Magento\\NegotiableQuote\\Controller\\Adminhtml\\Quote\\RemoveFailedSku::class,\n [\n 'context' => $this->context,\n 'logger' => $this->logger,\n 'messageManager' => $this->messageManager,\n 'cart' => $this->cart,\n 'resultRawFactory' => $this->resultRawFactory\n ]\n );\n }", "function loadController(){\n $name = ucfirst($this->request->controller).'Controller' ;\n $file = ROOT.DS.'Controller'.DS.$name.'.php' ;\n /*if(!file_exists($file)){\n $this->error(\"Le controleur \".$this->request->controller.\" n'existe pas\") ;\n }*/\n require_once $file;\n $controller = new $name($this->request);\n return $controller ;\n }", "public function __construct(){\r\n $app = Application::getInstance();\r\n $this->_controller = $app->getController();\r\n }", "public static function & instance()\n {\n if (self::$instance === null) {\n Benchmark::start(SYSTEM_BENCHMARK.'_controller_setup');\n\n // Include the Controller file\n require Router::$controller_path;\n\n try {\n // Start validation of the controller\n $class = new ReflectionClass(ucfirst(Router::$controller).'_Controller');\n } catch (ReflectionException $e) {\n // Controller does not exist\n Event::run('system.404');\n }\n\n if ($class->isAbstract() or (IN_PRODUCTION and $class->getConstant('ALLOW_PRODUCTION') == false)) {\n // Controller is not allowed to run in production\n Event::run('system.404');\n }\n\n // Run system.pre_controller\n Event::run('system.pre_controller');\n\n // Create a new controller instance\n $controller = $class->newInstance();\n\n // Controller constructor has been executed\n Event::run('system.post_controller_constructor');\n\n try {\n // Load the controller method\n $method = $class->getMethod(Router::$method);\n\n // Method exists\n if (Router::$method[0] === '_') {\n // Do not allow access to hidden methods\n Event::run('system.404');\n }\n\n if ($method->isProtected() or $method->isPrivate()) {\n // Do not attempt to invoke protected methods\n throw new ReflectionException('protected controller method');\n }\n\n // Default arguments\n $arguments = Router::$arguments;\n } catch (ReflectionException $e) {\n // Use __call instead\n $method = $class->getMethod('__call');\n\n // Use arguments in __call format\n $arguments = array(Router::$method, Router::$arguments);\n }\n\n // Stop the controller setup benchmark\n Benchmark::stop(SYSTEM_BENCHMARK.'_controller_setup');\n\n // Start the controller execution benchmark\n Benchmark::start(SYSTEM_BENCHMARK.'_controller_execution');\n\n // Execute the controller method\n $method->invokeArgs($controller, $arguments);\n\n // Controller method has been executed\n Event::run('system.post_controller');\n\n // Stop the controller execution benchmark\n Benchmark::stop(SYSTEM_BENCHMARK.'_controller_execution');\n }\n\n return self::$instance;\n }", "protected function instantiateController($class)\n {\n $controller = new $class();\n\n if ($controller instanceof Controller) {\n $controller->setContainer($this->container);\n }\n\n return $controller;\n }", "public function __construct (){\n $this->AdminController = new AdminController();\n $this->ArticleController = new ArticleController();\n $this->AuditoriaController = new AuditoriaController();\n $this->CommentController = new CommentController();\n $this->CourseController = new CourseController();\n $this->InscriptionsController = new InscriptionsController();\n $this->ModuleController = new ModuleController();\n $this->PlanController = new PlanController();\n $this->ProfileController = new ProfileController();\n $this->SpecialtyController = new SpecialtyController();\n $this->SubscriptionController = new SubscriptionController();\n $this->TeacherController = new TeacherController();\n $this->UserController = new UserController();\n $this->WebinarController = new WebinarController();\n }", "protected function makeController($prefix)\n {\n new MakeController($this, $this->files, $prefix);\n }", "public function createController($route)\n {\n $controller = parent::createController('gymv/' . $route);\n return $controller === false\n ? parent::createController($route)\n : $controller;\n }", "public static function createFrontController()\n {\n return self::createInjectorWithBindings(self::extractArgs(func_get_args()))\n ->getInstance('net::stubbles::websites::stubFrontController');\n }", "public static function controller($name)\n {\n $name = ucfirst(strtolower($name));\n \n $directory = 'controller';\n $filename = $name;\n $tracker = 'controller';\n $init = (boolean) $init;\n $namespace = 'controller';\n $class_name = $name;\n \n return self::_load($directory, $filename, $tracker, $init, $namespace, $class_name);\n }", "protected static function instantiateMockController()\n {\n /** @var Event $oEvent */\n $oEvent = Factory::service('Event');\n\n if (!$oEvent->hasBeenTriggered(Events::SYSTEM_STARTING)) {\n\n require_once BASEPATH . 'core/Controller.php';\n\n load_class('Output', 'core');\n load_class('Security', 'core');\n load_class('Input', 'core');\n load_class('Lang', 'core');\n\n new NailsMockController();\n }\n }", "private static function controller()\n {\n $files = ['Controller'];\n $folder = static::$root.'MVC'.'/';\n\n self::call($files, $folder);\n }", "public function createController()\n\t{\n\t\t$originalFile = app_path('Http/Controllers/Reports/SampleReport.php');\n\t\t$newFile = dirname($originalFile) . DIRECTORY_SEPARATOR . $this->class . $this->sufix . '.php';\n\n\t\t// Read original file\n\t\tif( ! $content = file_get_contents($originalFile))\n\t\t\treturn false;\n\n\t\t// Replace class name\n\t\t$content = str_replace('SampleReport', $this->class . $this->sufix, $content);\n\n\t\t// Write new file\n\t\treturn (bool) file_put_contents($newFile, $content);\n\t}", "public function runController() {\n // Check for a router\n if (is_null($this->getRouter())) {\n \t // Set the method to load\n \t $sController = ucwords(\"{$this->getController()}Controller\");\n } else {\n\n // Set the controller with the router\n $sController = ucwords(\"{$this->getController()}\".ucfirst($this->getRouter()).\"Controller\");\n }\n \t// Check for class\n \tif (class_exists($sController, true)) {\n \t\t// Set a new instance of Page\n \t\t$this->setPage(new Page());\n \t\t// The class exists, load it\n \t\t$oController = new $sController();\n\t\t\t\t// Now check for the proper method \n\t\t\t\t// inside of the controller class\n\t\t\t\tif (method_exists($oController, $this->loadConfigVar('systemSettings', 'controllerLoadMethod'))) {\n\t\t\t\t\t// We have a valid controller, \n\t\t\t\t\t// execute the initializer\n\t\t\t\t\t$oController->init($this);\n\t\t\t\t\t// Set the variable scope\n\t \t\t$this->setViewScope($oController);\n\t \t\t// Render the layout\n\t \t\t$this->renderLayout();\n\t\t\t\t} else {\n\t\t\t\t\t// The initializer does not exist, \n\t\t\t\t\t// which means an invalid controller, \n\t\t\t\t\t// so now we let the caller know\n\t\t\t\t\t$this->setError($this->loadConfigVar('errorMessages', 'invalidController'));\n\t\t\t\t\t// Run the error\n\t\t\t\t\t// $this->runError();\n\t\t\t\t}\n \t// The class does not exist\n \t} else {\n\t\t\t\t// Set the system error\n\t \t\t$this->setError(\n\t\t\t\t\tstr_replace(\n\t\t\t\t\t\t':controllerName', \n\t\t\t\t\t\t$sController, \n\t\t\t\t\t\t$this->loadConfigVar(\n\t\t\t\t\t\t\t'errorMessages', \n\t\t\t\t\t\t\t'controllerDoesNotExist'\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t);\n \t\t// Run the error\n\t\t\t\t// $this->runError();\n \t}\n \t// Return instance\n \treturn $this;\n }", "public function controller()\n\t{\n\t\n\t}", "protected function buildController()\n {\n $columns = collect($this->columns)->pluck('column')->implode('|');\n\n $permissions = [\n 'create:'.$this->module->createPermission->name,\n 'edit:'.$this->module->editPermission->name,\n 'delete:'.$this->module->deletePermission->name,\n ];\n\n $this->controller = [\n 'name' => $this->class,\n '--model' => $this->class,\n '--request' => $this->class.'Request',\n '--permissions' => implode('|', $permissions),\n '--view-folder' => snake_case($this->module->name),\n '--fields' => $columns,\n '--module' => $this->module->id,\n ];\n }", "function getController(){\n\treturn getFactory()->getBean( 'Controller' );\n}", "protected function getController()\n {\n $uri = WingedLib::clearPath(static::$parentUri);\n if (!$uri) {\n $uri = './';\n $explodedUri = ['index', 'index'];\n } else {\n $explodedUri = explode('/', $uri);\n if (count($explodedUri) == 1) {\n $uri = './' . $explodedUri[0] . '/';\n } else {\n $uri = './' . $explodedUri[0] . '/' . $explodedUri[1] . '/';\n }\n }\n\n $indexUri = WingedLib::clearPath(\\WingedConfig::$config->INDEX_ALIAS_URI);\n if ($indexUri) {\n $indexUri = explode('/', $indexUri);\n }\n\n if ($indexUri) {\n if ($explodedUri[0] === 'index' && isset($indexUri[0])) {\n static::$controllerName = Formater::camelCaseClass($indexUri[0]) . 'Controller';\n $uri = './' . $indexUri[0] . '/';\n }\n if (isset($explodedUri[1]) && isset($indexUri[1])) {\n if ($explodedUri[1] === 'index') {\n static::$controllerAction = 'action' . Formater::camelCaseMethod($indexUri[1]);\n $uri .= $indexUri[1] . '/';\n }\n } else {\n $uri .= 'index/';\n }\n }\n\n $controllerDirectory = new Directory(static::$parent . 'controllers/', false);\n if ($controllerDirectory->exists()) {\n $controllerFile = new File($controllerDirectory->folder . static::$controllerName . '.php', false);\n if ($controllerFile->exists()) {\n include_once $controllerFile->file_path;\n if (class_exists(static::$controllerName)) {\n $controller = new static::$controllerName();\n if (method_exists($controller, static::$controllerAction)) {\n try {\n $reflectionMethod = new \\ReflectionMethod(static::$controllerName, static::$controllerAction);\n $pararms = [];\n foreach ($reflectionMethod->getParameters() as $parameter) {\n $pararms[$parameter->getName()] = $parameter->isOptional();\n }\n } catch (\\Exception $exception) {\n $pararms = [];\n }\n return [\n 'uri' => $uri,\n 'params' => $pararms,\n ];\n }\n }\n }\n }\n return false;\n }", "public function __construct()\n {\n $this->controller = new DHTController();\n }", "public function createController($controllers) {\n\t\tforeach($controllers as $module=>$controllers) {\n\t\t\tforeach($controllers as $key=>$controller) {\n\t\t\t\tif(!file_exists(APPLICATION_PATH.\"/modules/$module/controllers/\".ucfirst($controller).\"Controller.php\")) {\n\t\t\t\t\tMy_Class_Maerdo_Console::display(\"3\",\"Create '\".ucfirst($controller).\"' controller in $module\");\t\t\t\t\n\t\t\t\t\texec(\"zf create controller $controller index-action-included=0 $module\");\t\t\t\t\t\n\t\t\t\t}\telse {\n\t\t\t\t\tMy_Class_Maerdo_Console::display(\"3\",ucfirst($controller).\"' controller in $module already exists\");\t\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}", "protected function instantiateController($class)\n {\n return new $class($this->routesMaker);\n }", "private function createController($table){\n\n // Filtering file name\n $fileName = $this::cleanToName($table[\"name\"]) . 'Controller.php';\n\n // Prepare the Class scheme inside the controller\n $contents = '<?php '.$fileName.' ?>';\n\n\n // Return a boolean to process completed\n return Storage::disk('controllers')->put($this->appNamePath.'/'.$fileName, $contents);\n\n }", "public function GetController()\n\t{\n\t\t$params = $this->QueryVarArrayToParameterArray($_GET);\n\t\tif (!empty($_POST)) {\n\t\t\t$params = array_merge($params, $this->QueryVarArrayToParameterArray($_POST));\n\t\t}\n\n\t\tif (!empty($_GET['q'])) {\n\t\t\t$restparams = GitPHP_Router::ReadCleanUrl($_SERVER['REQUEST_URI']);\n\t\t\tif (count($restparams) > 0)\n\t\t\t\t$params = array_merge($params, $restparams);\n\t\t}\n\n\t\t$controller = null;\n\n\t\t$action = null;\n\t\tif (!empty($params['action']))\n\t\t\t$action = $params['action'];\n\n\t\tswitch ($action) {\n\n\n\t\t\tcase 'search':\n\t\t\t\t$controller = new GitPHP_Controller_Search();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'commitdiff':\n\t\t\tcase 'commitdiff_plain':\n\t\t\t\t$controller = new GitPHP_Controller_Commitdiff();\n\t\t\t\tif ($action === 'commitdiff_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blobdiff':\n\t\t\tcase 'blobdiff_plain':\n\t\t\t\t$controller = new GitPHP_Controller_Blobdiff();\n\t\t\t\tif ($action === 'blobdiff_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'history':\n\t\t\t\t$controller = new GitPHP_Controller_History();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'shortlog':\n\t\t\tcase 'log':\n\t\t\t\t$controller = new GitPHP_Controller_Log();\n\t\t\t\tif ($action === 'shortlog')\n\t\t\t\t\t$controller->SetParam('short', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'snapshot':\n\t\t\t\t$controller = new GitPHP_Controller_Snapshot();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'tree':\n\t\t\tcase 'trees':\n\t\t\t\t$controller = new GitPHP_Controller_Tree();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'tags':\n\t\t\t\tif (empty($params['tag'])) {\n\t\t\t\t\t$controller = new GitPHP_Controller_Tags();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\tcase 'tag':\n\t\t\t\t$controller = new GitPHP_Controller_Tag();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'heads':\n\t\t\t\t$controller = new GitPHP_Controller_Heads();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blame':\n\t\t\t\t$controller = new GitPHP_Controller_Blame();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blob':\n\t\t\tcase 'blobs':\n\t\t\tcase 'blob_plain':\t\n\t\t\t\t$controller = new GitPHP_Controller_Blob();\n\t\t\t\tif ($action === 'blob_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'atom':\n\t\t\tcase 'rss':\n\t\t\t\t$controller = new GitPHP_Controller_Feed();\n\t\t\t\tif ($action == 'rss')\n\t\t\t\t\t$controller->SetParam('format', GitPHP_Controller_Feed::RssFormat);\n\t\t\t\telse if ($action == 'atom')\n\t\t\t\t\t$controller->SetParam('format', GitPHP_Controller_Feed::AtomFormat);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'commit':\n\t\t\tcase 'commits':\n\t\t\t\t$controller = new GitPHP_Controller_Commit();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'summary':\n\t\t\t\t$controller = new GitPHP_Controller_Project();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'project_index':\n\t\t\tcase 'projectindex':\n\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t$controller->SetParam('txt', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'opml':\n\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t$controller->SetParam('opml', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'login':\n\t\t\t\t$controller = new GitPHP_Controller_Login();\n\t\t\t\tif (!empty($_POST['username']))\n\t\t\t\t\t$controller->SetParam('username', $_POST['username']);\n\t\t\t\tif (!empty($_POST['password']))\n\t\t\t\t\t$controller->SetParam('password', $_POST['password']);\n\t\t\t\tbreak;\n\n\t\t\tcase 'logout':\n\t\t\t\t$controller = new GitPHP_Controller_Logout();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'graph':\n\t\t\tcase 'graphs':\n\t\t\t\t//$controller = new GitPHP_Controller_Graph();\n\t\t\t\t//break;\n\t\t\tcase 'graphdata':\n\t\t\t\t//$controller = new GitPHP_Controller_GraphData();\n\t\t\t\t//break;\n\t\t\tdefault:\n\t\t\t\tif (!empty($params['project'])) {\n\t\t\t\t\t$controller = new GitPHP_Controller_Project();\n\t\t\t\t} else {\n\t\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t}\n\t\t}\n\n\t\tforeach ($params as $paramname => $paramval) {\n\t\t\tif ($paramname !== 'action')\n\t\t\t\t$controller->SetParam($paramname, $paramval);\n\t\t}\n\n\t\t$controller->SetRouter($this);\n\n\t\treturn $controller;\n\t}", "public function testCreateTheControllerClass()\n {\n $controller = new Game21Controller();\n $this->assertInstanceOf(\"\\App\\Http\\Controllers\\Game21Controller\", $controller);\n }", "public static function createController( MShop_Context_Item_Interface $context, $name = null );", "public function __construct()\n {\n\n $url = $this->splitURL();\n // echo $url[0];\n\n // check class file exists\n if (file_exists(\"../app/controllers/\" . strtolower($url[0]) . \".php\")) {\n $this->controller = strtolower($url[0]);\n unset($url[0]);\n }\n\n // echo $this->controller;\n\n require \"../app/controllers/\" . $this->controller . \".php\";\n\n // create Instance(object)\n $this->controller = new $this->controller(); // $this->controller is an object from now on\n if (isset($url[1])) {\n if (method_exists($this->controller, $url[1])) {\n $this->method = $url[1];\n unset($url[1]);\n }\n }\n\n // run the class and method\n $this->params = array_values($url); // array_values 값들인 인자 0 부터 다시 배치\n call_user_func_array([$this->controller, $this->method], $this->params);\n }", "public function getController();", "public function getController();", "public function getController();", "public function createController($pageType, $template)\n {\n $controller = null;\n\n // Use factories first\n if (isset($this->controllerFactories[$pageType])) {\n $callable = $this->controllerFactories[$pageType];\n $controller = $callable($this, 'templates/'.$template);\n\n if ($controller) {\n return $controller;\n }\n }\n\n // See if a default controller exists in the theme namespace\n $class = null;\n if ($pageType == 'posts') {\n $class = $this->namespace.'\\\\Controllers\\\\PostsController';\n } elseif ($pageType == 'post') {\n $class = $this->namespace.'\\\\Controllers\\\\PostController';\n } elseif ($pageType == 'page') {\n $class = $this->namespace.'\\\\Controllers\\\\PageController';\n } elseif ($pageType == 'term') {\n $class = $this->namespace.'\\\\Controllers\\\\TermController';\n }\n\n if (class_exists($class)) {\n $controller = new $class($this, 'templates/'.$template);\n\n return $controller;\n }\n\n // Create a default controller from the stem namespace\n if ($pageType == 'posts') {\n $controller = new PostsController($this, 'templates/'.$template);\n } elseif ($pageType == 'post') {\n $controller = new PostController($this, 'templates/'.$template);\n } elseif ($pageType == 'page') {\n $controller = new PageController($this, 'templates/'.$template);\n } elseif ($pageType == 'search') {\n $controller = new SearchController($this, 'templates/'.$template);\n } elseif ($pageType == 'term') {\n $controller = new TermController($this, 'templates/'.$template);\n }\n\n return $controller;\n }", "private function loadController($controller)\r\n {\r\n $className = $controller.'Controller';\r\n \r\n $class = new $className($this);\r\n \r\n $class->init();\r\n \r\n return $class;\r\n }", "public static function newInstance ($class)\n {\n try\n {\n // the class exists\n $object = new $class();\n\n if (!($object instanceof sfController))\n {\n // the class name is of the wrong type\n $error = 'Class \"%s\" is not of the type sfController';\n $error = sprintf($error, $class);\n\n throw new sfFactoryException($error);\n }\n\n return $object;\n }\n catch (sfException $e)\n {\n $e->printStackTrace();\n }\n }", "public function create()\n {\n //TODO frontEndDeveloper \n //load admin.classes.create view\n\n\n return view('admin.classes.create');\n }", "private function generateControllerClass()\n {\n $dir = $this->bundle->getPath();\n\n $parts = explode('\\\\', $this->entity);\n $entityClass = array_pop($parts);\n $entityNamespace = implode('\\\\', $parts);\n\n $target = sprintf(\n '%s/Controller/%s/%sController.php',\n $dir,\n str_replace('\\\\', '/', $entityNamespace),\n $entityClass\n );\n\n if (file_exists($target)) {\n throw new \\RuntimeException('Unable to generate the controller as it already exists.');\n }\n\n $this->renderFile($this->skeletonDir, 'controller.php', $target, array(\n 'actions' => $this->actions,\n 'route_prefix' => $this->routePrefix,\n 'route_name_prefix' => $this->routeNamePrefix,\n 'dir' => $this->skeletonDir,\n 'bundle' => $this->bundle->getName(),\n 'entity' => $this->entity,\n 'entity_class' => $entityClass,\n 'namespace' => $this->bundle->getNamespace(),\n 'entity_namespace' => $entityNamespace,\n 'format' => $this->format,\n ));\n }", "static public function Instance()\t\t// Static so we use classname itself to create object i.e. Controller::Instance()\r\n {\r\n // Only one object of this class is required\r\n // so we only create if it hasn't already\r\n // been created.\r\n if(!isset(self::$_instance))\r\n {\r\n self::$_instance = new self();\t// Make new instance of the Controler class\r\n self::$_instance->_commandResolver = new CommandResolver();\r\n\r\n ApplicationController::LoadViewMap();\r\n }\r\n return self::$_instance;\r\n }", "private function create_mock_controller() {\n eval('class TestController extends cyclone\\request\\SkeletonController {\n function before() {\n DispatcherTest::$beforeCalled = TRUE;\n DispatcherTest::$route = $this->_request->route;\n }\n\n function after() {\n DispatcherTest::$afterCalled = TRUE;\n }\n\n function action_act() {\n DispatcherTest::$actionCalled = TRUE;\n }\n}');\n }", "public function AController() {\r\n\t}", "protected function initializeController() {}", "public function dispatch()\n { \n $controller = $this->formatController();\n $controller = new $controller($this);\n if (!$controller instanceof ControllerAbstract) {\n throw new Exception(\n 'Class ' . get_class($controller) . ' is not a valid controller instance. Controller classes must '\n . 'derive from \\Europa\\ControllerAbstract.'\n );\n }\n $controller->action();\n return $controller;\n }", "public function controller()\n {\n $method = $_SERVER['REQUEST_METHOD'];\n if ($method == 'GET') {\n $this->getController();\n };\n if ($method == 'POST') {\n check_csrf();\n $this->createController();\n };\n }", "private function addController($controller)\n {\n $object = new $controller($this->app);\n $this->controllers[$controller] = $object;\n }", "function Controller($ControllerName = Web\\Application\\DefaultController) {\n return Application()->Controller($ControllerName);\n }", "public function getController($controllerName) {\r\n\t\tif(!isset(self::$instances[$controllerName])) {\r\n\t\t $package = $this->getPackage(Nomenclature::getVendorAndPackage($controllerName));\r\n\t\t if(!$package) {\r\n\t\t $controller = new $controllerName();\r\n\t\t $controller->setContext($this->getContext());\r\n\t\t return $controller;\r\n\t\t //return false;\r\n\t\t }\r\n\r\n\t\t if(!$package || !$package->controllerExists($controllerName)) {\r\n\t\t $controller = new $controllerName();\r\n\t\t $controller->setContext($this->getContext());\r\n\t\t $package->addController($controller);\r\n\t\t } else {\r\n\t\t $controller = $package->getController($controllerName);\r\n\t\t }\r\n\t\t} else {\r\n\t\t $controller = self::$instances[$controllerName];\r\n\t\t}\r\n\t\treturn $controller;\r\n\t}", "public function testInstantiateSessionController()\n {\n $controller = new SessionController();\n\n $this->assertInstanceOf(\"App\\Http\\Controllers\\SessionController\", $controller);\n }", "private static function loadController($str) {\n\t\t$str = self::formatAsController($str);\n\t\t$app_controller = file_exists(APP_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t$lib_controller = file_exists(LIB_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\n\t\tif ( $app_controller || $lib_controller ) {\n\t\t\tif ($app_controller) {\n\t\t\t\trequire_once(APP_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\t}\n\t\t\telse {\n\t\t\t\trequire_once(LIB_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\t}\n\t\n\t\t\t$controller = new $str();\n\t\t\t\n\t\t\tif (!$controller instanceof Controller) {\n\t\t\t\tthrow new IsNotControllerException();\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn $controller;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthrow new ControllerNotExistsException($str);\n\t\t}\n\t}", "public function __construct()\n {\n // and $url[1] is a controller method\n if ($_GET['url'] == NULL) {\n $url = explode('/', env('defaultRoute'));\n } else {\n $url = explode('/', rtrim($_GET['url'],'/'));\n }\n\n $file = 'controllers/' . $url[0] . '.php';\n if (file_exists($file)) {\n require $file;\n $controller = new $url[0];\n\n if (isset($url[1])) {\n $controller->{$url[1]}();\n }\n } else {\n echo \"404 not found\";\n }\n }", "protected function _controllers()\n {\n $this['watchController'] = $this->factory(static function ($c) {\n return new Controller\\WatchController($c['app'], $c['searcher']);\n });\n\n $this['runController'] = $this->factory(static function ($c) {\n return new Controller\\RunController($c['app'], $c['searcher']);\n });\n\n $this['customController'] = $this->factory(static function ($c) {\n return new Controller\\CustomController($c['app'], $c['searcher']);\n });\n\n $this['waterfallController'] = $this->factory(static function ($c) {\n return new Controller\\WaterfallController($c['app'], $c['searcher']);\n });\n\n $this['importController'] = $this->factory(static function ($c) {\n return new Controller\\ImportController($c['app'], $c['saver'], $c['config']['upload.token']);\n });\n\n $this['metricsController'] = $this->factory(static function ($c) {\n return new Controller\\MetricsController($c['app'], $c['searcher']);\n });\n }", "public function __construct() {\r\n $this->controllerLogin = new ControllerLogin();\r\n $this->controllerGame = new ControllerGame();\r\n $this->controllerRegister = new ControllerRegister();\r\n }", "public function controller ($post = array())\n\t{\n\n\t\t$name = $post['controller_name'];\n\n\t\tif (is_file(APPPATH.'controllers/'.$name.'.php')) {\n\n\t\t\t$message = sprintf(lang('Controller_s_is_existed'), APPPATH.'controllers/'.$name.'.php');\n\n\t\t\t$this->msg[] = $message;\n\n\t\t\treturn $this->result(false, $this->msg[0]);\n\n\t\t}\n\n\t\t$extends = null;\n\n\t\tif (isset($post['crud'])) {\n\n\t\t\t$crud = true;\n\t\t\t\n\t\t}\n\t\telse{\n\n\t\t\t$crud = false;\n\n\t\t}\n\n\t\t$file = $this->_create_folders_from_name($name, 'controllers');\n\n\t\t$data = '';\n\n\t\t$data .= $this->_class_open($file['file'], __METHOD__, $extends);\n\n\t\t$crud === FALSE || $data .= $this->_crud_methods_contraller($post);\n\n\t\t$data .= $this->_class_close();\n\n\t\t$path = APPPATH . 'controllers/' . $file['path'] . strtolower($file['file']) . '.php';\n\n\t\twrite_file($path, $data);\n\n\t\t$this->msg[] = sprintf(lang('Created_controller_s'), $path);\n\n\t\t//echo $this->_messages();\n\t\treturn $this->result(true, $this->msg[0]);\n\n\t}", "protected function getController(Request $request) {\n try {\n $controller = $this->objectFactory->create($request->getControllerName(), self::INTERFACE_CONTROLLER);\n } catch (ZiboException $exception) {\n throw new ZiboException('Could not create controller ' . $request->getControllerName(), 0, $exception);\n }\n\n return $controller;\n }", "public function create() {}", "public function __construct()\n {\n $this->dataController = new DataController;\n }", "function __contrruct(){ //construdor do controller, nele é possivel carregar as librari, helpers, models que serão utilizados nesse controller\n\t\tparent::__contrruct();//Chamando o construtor da classe pai\n\t}", "public function __construct() {\n\n // Get the URL elements.\n $url = $this->_parseUrl();\n\n // Checks if the first URL element is set / not empty, and replaces the\n // default controller class string if the given class exists.\n if (isset($url[0]) and ! empty($url[0])) {\n $controllerClass = CONTROLLER_PATH . ucfirst(strtolower($url[0]));\n unset($url[0]);\n if (class_exists($controllerClass)) {\n $this->_controllerClass = $controllerClass;\n }\n }\n\n // Replace the controller class string with a new instance of the it.\n $this->_controllerClass = new $this->_controllerClass;\n\n // Checks if the second URL element is set / not empty, and replaces the\n // default controller action string if the given action is a valid class\n // method.\n if (isset($url[1]) and ! empty($url[1])) {\n if (method_exists($this->_controllerClass, $url[1])) {\n $this->_controllerAction = $url[1];\n unset($url[1]);\n }\n }\n\n // Check if the URL has any remaining elements, setting the controller\n // parameters as a rebase of it if true or an empty array if false.\n $this->_controllerParams = $url ? array_values($url) : [];\n\n // Call the controller and action with parameters.\n call_user_func_array([$this->_controllerClass, $this->_controllerAction], $this->_controllerParams);\n }", "private function setUpController()\n {\n $this->controller = new TestObject(new SharedControllerTestController);\n\n $this->controller->dbal = DBAL::getDBAL('testDB', $this->getDBH());\n }", "public function create() {\n $class_name = $this->getOption('className');\n return new $class_name();\n }" ]
[ "0.82668066", "0.8173394", "0.78115296", "0.77052677", "0.7681875", "0.7659338", "0.74860525", "0.74064577", "0.7297601", "0.7252339", "0.7195181", "0.7174191", "0.70150065", "0.6989306", "0.69835985", "0.69732994", "0.6963521", "0.6935819", "0.68973273", "0.68920785", "0.6877748", "0.68702674", "0.68622285", "0.6839049", "0.6779292", "0.6703522", "0.66688496", "0.66600126", "0.6650373", "0.66436416", "0.6615505", "0.66144013", "0.6588728", "0.64483404", "0.64439476", "0.6429303", "0.6426485", "0.6303757", "0.6298291", "0.6293319", "0.62811387", "0.6258778", "0.62542456", "0.616827", "0.6162314", "0.61610043", "0.6139887", "0.613725", "0.61334985", "0.6132223", "0.6128982", "0.61092585", "0.6094611", "0.60889256", "0.6074893", "0.60660255", "0.6059098", "0.60565156", "0.6044235", "0.60288006", "0.6024102", "0.60225666", "0.6018304", "0.60134345", "0.60124683", "0.6010913", "0.6009284", "0.6001683", "0.5997471", "0.5997012", "0.59942573", "0.5985074", "0.5985074", "0.5985074", "0.5967613", "0.5952533", "0.5949068", "0.5942203", "0.5925731", "0.5914304", "0.5914013", "0.59119135", "0.5910308", "0.5910285", "0.59013796", "0.59003943", "0.5897524", "0.58964556", "0.58952993", "0.58918965", "0.5888943", "0.5875413", "0.5869938", "0.58627135", "0.58594996", "0.5853714", "0.5839484", "0.5832913", "0.582425", "0.58161044", "0.5815566" ]
0.0
-1
Show the application dashboard.
public function index($proertyId) { $property = Property::where('id', $proertyId)->get(); return view('property', ['property' => $property[0]]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function dashboard()\n {\n\n $pageData = (new DashboardService())->handleDashboardLandingPage();\n\n return view('application', $pageData);\n }", "function dashboard() {\r\n\t\t\tTrackTheBookView::render('dashboard');\r\n\t\t}", "public function showDashboard() { \n\t\n return View('admin.dashboard');\n\t\t\t\n }", "public function showDashboard()\n {\n return View::make('users.dashboard', [\n 'user' => Sentry::getUser(),\n ]);\n }", "public function dashboard()\n {\n return view('backend.dashboard.index');\n }", "public function index() {\n return view(\"admin.dashboard\");\n }", "public function dashboard()\n {\n return $this->renderContent(\n view('dashboard'),\n trans('sleeping_owl::lang.dashboard')\n );\n }", "public function dashboard(){\n return view('backend.admin.index');\n }", "public function showDashBoard()\n {\n \treturn view('Admins.AdminDashBoard');\n }", "public function dashboard()\n {\n return view('dashboard.index');\n }", "public function index()\n {\n return view('admin.dashboard', ['title' => 'Dashboard']);\n }", "public function dashboard() \r\n {\r\n return view('admin.index');\r\n }", "public function dashboard()\n\t{\n\t\t$page_title = 'organizer dashboard';\n\t\treturn View::make('organizer.dashboard',compact('page_title'));\n\t}", "public function dashboard()\n {\n\t\t$traffic = TrafficService::getTraffic();\n\t\t$devices = TrafficService::getDevices();\n\t\t$browsers = TrafficService::getBrowsers();\n\t\t$status = OrderService::getStatus();\n\t\t$orders = OrderService::getOrder();\n\t\t$users = UserService::getTotal();\n\t\t$products = ProductService::getProducts();\n\t\t$views = ProductService::getViewed();\n\t\t$total_view = ProductService::getTotalView();\n\t\t$cashbook = CashbookService::getAccount();\n $stock = StockService::getStock();\n\n return view('backend.dashboard', compact('traffic', 'devices', 'browsers', 'status', 'orders', 'users', 'products', 'views', 'total_view', 'cashbook', 'stock'));\n }", "public function dashboard()\n {\n\n return view('admin.dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('adm.dashboard');\n }", "public function dashboard()\n {\n $users = \\App\\User::all()->count();\n $roles = \\Spatie\\Permission\\Models\\Role::all()->count();\n $permissions = \\Spatie\\Permission\\Models\\Permission::all()->count();\n $banner = \\App\\Banner::all();\n $categoria = \\App\\Categoria::all();\n $entidadOrganizativa = \\App\\Entidadorganizativa::all();\n $evento = \\App\\Evento::all();\n $fichero = \\App\\Fichero::all();\n $recurso = \\App\\Recurso::all();\n $redsocial = \\App\\Redsocial::all();\n $subcategoria = \\App\\Subcategoria::all();\n $tag = \\App\\Tag::all();\n\n $entities = \\Amranidev\\ScaffoldInterface\\Models\\Scaffoldinterface::all();\n\n return view('scaffold-interface.dashboard.dashboard',\n compact('users', 'roles', 'permissions', 'entities',\n 'banner', 'categoria', 'entidadOrganizativa',\n 'evento', 'fichero', 'recurso', 'redsocial', 'subcategoria', 'tag')\n );\n }", "public function show()\n {\n return view('dashboard');\n }", "public function index()\n\t{\n\t\treturn View::make('dashboard');\n\t}", "public function index() {\n return view('modules.home.dashboard');\n }", "public function show()\n {\n return view('dashboard.dashboard');\n \n }", "public function index()\n {\n return view('admin.dashboard.dashboard');\n\n }", "public function dashboard()\n { \n return view('jobposter.dashboard');\n }", "public function show()\n\t{\n\t\t//\n\t\t$apps = \\App\\application::all();\n\t\treturn view('applications.view', compact('apps'));\n\t}", "public function index()\n {\n return view('pages.admin.dashboard');\n }", "public function indexAction()\n {\n $dashboard = $this->getDashboard();\n\n return $this->render('ESNDashboardBundle::index.html.twig', array(\n 'title' => \"Dashboard\"\n ));\n }", "public function index()\n {\n //\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard.index');\n }", "public function dashboard()\n {\n return view('pages.backsite.dashboard');\n }", "public function index()\n {\n // return component view('dashboard.index');\n return view('layouts.admin_master');\n }", "public function index()\n {\n\n $no_of_apps = UploadApp::count();\n $no_of_analysis_done = UploadApp::where('isAnalyzed', '1')->count();\n $no_of_visible_apps = AnalysisResult::where('isVisible', '1')->count();\n\n return view('admin.dashboard', compact('no_of_apps', 'no_of_analysis_done', 'no_of_visible_apps'));\n }", "public function getDashboard() {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('smartcrud.auth.dashboard');\n }", "public function index()\n {\n if($this->isAdmin() == TRUE)\n {\n $this->loadThis();\n }\n $this->global['pageTitle'] = 'Touba : Dashboard';\n \n $this->loadViews(\"dashboard\", $this->global, NULL , NULL);\n }", "public function dashboard() {\n $data = ['title' => 'Dashboard'];\n return view('pages.admin.dashboard', $data)->with([\n 'users' => $this->users,\n 'num_services' => Service::count(),\n 'num_products' => Product::count(),\n ]);\n }", "public function index()\n {\n return view('board.pages.dashboard-board');\n }", "public function index()\n {\n return view('admin::settings.development.dashboard');\n }", "public function index()\n {\n return view('dashboard.dashboard');\n }", "public function show()\n {\n return view('dashboard::show');\n }", "public function adminDash()\n {\n return Inertia::render(\n 'Admin/AdminDashboard', \n [\n 'data' => ['judul' => 'Halaman Admin']\n ]\n );\n }", "public function dashboard()\n {\n return view('Admin.dashboard');\n }", "public function show()\n {\n return view('admins\\auth\\dashboard');\n }", "public function index()\n {\n // Report =============\n\n return view('Admin.dashboard');\n }", "public function index()\n {\n return view('bitaac::account.dashboard');\n }", "public function index()\n { \n return view('admin-views.dashboard');\n }", "public function getDashboard()\n {\n return view('dashboard');\n }", "function showDashboard()\n { \n $logeado = $this->checkCredentials();\n if ($logeado==true)\n $this->view->ShowDashboard();\n else\n $this->view->showLogin();\n }", "public function index()\n { \n $params['crumbs'] = 'Home';\n $params['active'] = 'home';\n \n return view('admin.dashboard.index', $params);\n }", "public function index()\n\t{\n\t\treturn view::make('customer_panel.dashboard');\n\t}", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index() {\n // return view('home');\n return view('admin-layouts.dashboard.dashboard');\n }", "public function index()\r\n {\r\n return view('user.dashboard');\r\n }", "public function index() {\n return view('dashboard', []);\n }", "public function index()\n {\n //\n return view('dashboard.dashadmin', ['page' => 'mapel']);\n }", "public function index()\n {\n return view('back-end.dashboard.index');\n //\n }", "public function index()\n\t{\n\t\t\n\t\t$data = array(\n\t\t\t'title' => 'Administrator Apps With Laravel',\n\t\t);\n\n\t\treturn View::make('panel/index',$data);\n\t}", "public function index() {\n return view('dashboard.index');\n }", "public function index()\n {\n return view('page.dashboard.index');\n }", "public function index()\n {\n\n return view('dashboard');\n }", "public function dashboardview() {\n \n $this->load->model('Getter');\n $data['dashboard_content'] = $this->Getter->get_dash_content();\n \n $this->load->view('dashboardView', $data);\n\n }", "public function index()\n {\n $this->authorize(DashboardPolicy::PERMISSION_STATS);\n\n $this->setTitle($title = trans('auth::dashboard.titles.statistics'));\n $this->addBreadcrumb($title);\n\n return $this->view('admin.dashboard');\n }", "public function action_index()\r\n\t{\t\t\t\t\r\n\t\t$this->template->title = \"Dashboard\";\r\n\t\t$this->template->content = View::forge('admin/dashboard');\r\n\t}", "public function index()\n {\n $info = SiteInfo::limit(1)->first();\n return view('backend.info.dashboard',compact('info'));\n }", "public function display()\n\t{\n\t\t// Set a default view if none exists.\n\t\tif (!JRequest::getCmd( 'view' ) ) {\n\t\t\tJRequest::setVar( 'view', 'dashboard' );\n\t\t}\n\n\t\tparent::display();\n\t}", "public function index()\n {\n $news = News::all();\n $posts = Post::all();\n $events = Event::all();\n $resources = Resources::all();\n $admin = Admin::orderBy('id', 'desc')->get();\n return view('Backend/dashboard', compact('admin', 'news', 'posts', 'events', 'resources'));\n }", "public function index()\n {\n\n return view('superAdmin.adminDashboard')->with('admin',Admininfo::all());\n\n }", "public function index()\n {\n return view('dashboard.index');\n }", "public function index()\n {\n return view('dashboard.index');\n }", "public function index()\n {\n $this->template->set('title', 'Dashboard');\n $this->template->load('admin', 'contents' , 'admin/dashboard/index', array());\n }", "public function index()\n {\n return view('/dashboard');\n }", "public function index()\n {\n \treturn view('dashboard');\n }", "public function index()\n {\n return view('ketua.ketua-dashboard');\n }", "public function index(){\n return View::make('admin.authenticated.dashboardview');\n }", "public function admAmwDashboard()\n {\n return View::make('admission::amw.admission_test.dashboard');\n }", "public function index()\n {\n return view('adminpanel.home');\n }", "public function dashboard()\n\t{\n\t\t$this->validation_access();\n\t\t\n\t\t$this->load->view('user_dashboard/templates/header');\n\t\t$this->load->view('user_dashboard/index.php');\n\t\t$this->load->view('user_dashboard/templates/footer');\n\t}", "public function index()\n {\n return view('dashboard.home');\n }", "public function index()\n {\n $admins = $this->adminServ->all();\n $adminRoles = $this->adminTypeServ->all();\n return view('admin.administrators.dashboard', compact('admins', 'adminRoles'));\n }", "public function index()\n {\n if (ajaxCall::ajax()) {return response()->json($this -> dashboard);}\n //return response()->json($this -> dashboard);\n JavaScript::put($this -> dashboard);\n return view('app')-> with('header' , $this -> dashboard['header']);\n //return view('home');\n }", "public function index()\n {\n $userinfo=User::all();\n $gateinfo=GateEntry::all();\n $yarninfo=YarnStore::all();\n $greyinfo=GreyFabric::all();\n $finishinfo=FinishFabric::all();\n $dyesinfo=DyeChemical::all();\n return view('dashboard',compact('userinfo','gateinfo','yarninfo','greyinfo','finishinfo','dyesinfo'));\n }", "public function actionDashboard(){\n \t$dados_dashboard = Yii::app()->user->getState('dados_dashbord_final');\n \t$this->render ( 'dashboard', $dados_dashboard);\n }", "public function index()\n {\n $user = new User();\n $book = new Book();\n return view('admin.dashboard', compact('user', 'book'));\n }", "public function dashboard() {\n if (!Auth::check()) { // Check is user logged in\n // redirect to dashboard\n return Redirect::to('login');\n }\n\n $user = Auth::user();\n return view('site.dashboard', compact('user'));\n }", "public function dashboard()\n {\n $users = User::all();\n return view('/dashboard', compact('users'));\n }", "public function index()\n {\n $lineChart = $this->getLineChart();\n $barChart = $this->getBarChart();\n $pieChart = $this->getPieChart();\n\n return view('admin.dashboard.index', compact(['lineChart', 'barChart', 'pieChart']));\n }" ]
[ "0.77850926", "0.7760142", "0.7561336", "0.75147176", "0.74653697", "0.7464913", "0.73652893", "0.7351646", "0.7346477", "0.73420244", "0.7326711", "0.7316215", "0.73072463", "0.7287626", "0.72826403", "0.727347", "0.727347", "0.727347", "0.727347", "0.7251768", "0.7251768", "0.7251768", "0.7251768", "0.7251768", "0.7241342", "0.7236133", "0.7235562", "0.7218318", "0.71989936", "0.7197427", "0.71913266", "0.71790016", "0.71684825", "0.71577966", "0.7146797", "0.7133428", "0.7132746", "0.71298903", "0.71249074", "0.71218014", "0.71170413", "0.7110151", "0.7109032", "0.7107029", "0.70974076", "0.708061", "0.7075653", "0.70751685", "0.7064041", "0.70550334", "0.7053102", "0.7051273", "0.70484304", "0.7043605", "0.70393986", "0.70197886", "0.70185125", "0.70139873", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.6992477", "0.6979631", "0.69741416", "0.69741327", "0.6968815", "0.6968294", "0.69677526", "0.69652885", "0.69586027", "0.6944985", "0.69432825", "0.69419175", "0.6941512", "0.6941439", "0.6938837", "0.6937524", "0.6937456", "0.6937456", "0.69276494", "0.6921651", "0.69074917", "0.69020325", "0.6882262", "0.6869339", "0.6867868", "0.68557185", "0.68479055", "0.684518", "0.68408877", "0.6838798", "0.6833479", "0.6832326", "0.68309164", "0.6826798", "0.6812457" ]
0.0
-1
Apply criteria in query repository
public function apply($model, RepositoryInterface $repository) { if (is_null($this->parameters)) { return $model->{$this->scopeName}(); } return $model->{$this->scopeName}(...$this->parameters); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function applyCriteria(){\n\n if( $this->skipCriteria === true )\n return $this;\n\n $criteria = $this->getCriteria();\n\n foreach($criteria as $c){\n if( $c instanceof Criteria ){\n $this->query = $c->apply($this->query, $this);\n }\n }\n\n return $this;\n }", "public function apply(ModelCriteria $query);", "public abstract function findOperationBy(array $criteria);", "abstract public function findBy($criteria);", "private function applyCriteria()\n {\n foreach( $this->criteria as $criterion )\n {\n $this->query = $criterion->apply( $this->query, $this );\n }\n\n return $this;\n }", "public function listRepositoriesWithCriteria($criteria){\n\n }", "public function getCriteria();", "protected abstract function getCriteriaDao();", "public function findBy($criteria);", "public function findBy($criteria);", "public static function query(\\Phalcon\\Di\\DiInterface $container = null): CriteriaInterface;", "public function byCriterion()\n {\n $mockCriterion = $this->getMock('stubCriterion');\n $mockCriterion->expects($this->any())->method('toSQL')->will($this->returnValue('example'));\n $mockResult = $this->getMock('stubDatabaseResult');\n $this->mockConnection->expects($this->any())->method('query')->will($this->returnValue($mockResult));\n $mockResult->expects($this->exactly(2))\n ->method('fetchAll')\n ->will($this->onConsecutiveCalls(false, array(array('bar' => 'Here is bar.', 'default' => 'And this is default.'))));\n $finderResult = $this->dbFinder->findByCriterion($this->mockConnection, $mockCriterion, new stubReflectionClass('MockSinglePrimaryKeyEntity'));\n $this->assertEquals(0, $finderResult->count());\n $finderResult = $this->dbFinder->findByCriterion($this->mockConnection, $mockCriterion, new stubReflectionClass('MockSinglePrimaryKeyEntity'));\n $this->assertEquals(1, $finderResult->count());\n $data = $finderResult->current();\n $this->assertEquals('Here is bar.', $data->withAnnotation());\n $this->assertEquals('And this is default.', $data->withDefaultValue());\n $select = $this->mockQueryBuilder->getSelect();\n $this->assertEquals('foo', $select->getBaseTableName());\n $this->assertEquals('bar ASC', $select->getOrderedBy());\n $this->assertTrue($select->hasCriterion());\n }", "protected function applyCriteria()\n {\n if ($this->skipCriteria === true) {\n return $this;\n }\n\n $criteria = $this->getCriteria();\n\n if ($criteria) {\n foreach ($criteria as $c) {\n $this->model = $c->apply($this->model, $this);\n }\n }\n\n return $this;\n }", "public abstract function getCriteriaWhere($criteria);", "public function applyCriteria() {\n if ($this->skipCriteria === true) {\n return $this;\n }\n\n foreach ($this->getCriteria() as $criteria) {\n if ($criteria instanceof Criteria) {\n $this->model = $criteria->apply($this->model, $this);\n }\n }\n\n return $this;\n }", "abstract protected function findOneBy(array $criteria);", "public function hasCriteria();", "abstract public function query($collection, array $criteria = null);", "public function apply($model, RepositoryInterface $repository)\n {\n $query = $model->newQuery();\n\n\n if (!empty($this->params['shop_name'])) {\n $query->where('shop_name', $this->params['shop_name']);\n\n if (!empty($this->params['name'])) {\n $query->where('name', $this->params['name']);\n }\n if (!empty($this->params['shop_username'])) {\n $query->where('username', $this->params['shop_username']);\n\n }\n if (!empty($this->params['shop_id'])) {\n $query->where('_id', mongo_id($this->params['shop_id']));\n }\n\n if (!empty($this->params['seller_id'])) {\n $query->where('seller_id', $this->params['seller_id']);\n }\n\n\n//\n $query->orderBy('sort_index', 'asc');\n $query->orderBy('updated_at', 'asc');\n //Set language\n // $query->where('lang',app('translator')->getLocale());\n return $query;\n }\n }", "public function findCriteria()\r\n\t{\n\t\t$result = $this -> connection -> setTable($this -> entity)\n\t\t\t\t\t\t\t\t\t -> fetch();\r\n\n\t\treturn $result;\r\n\t}", "public function byCriterionNonEntity()\n {\n $this->dbFinder->findByCriterion($this->mockConnection, $this->getMock('stubCriterion'), new stubReflectionClass('MockNoEntityAnnotationEntity'));\n }", "protected function user_where_clause() {}", "public function findByFilter($filter) {\n $query = $this->createQuery();\n //$query->getQuerySettings()->setRespectEnableFields(false);\n $query->getQuerySettings()->setEnableFieldsToBeIgnored(array());\n $query->getQuerySettings()->setIncludeDeleted(false);\n $query->getQuerySettings()->setRespectStoragePage(false);\n \n\n $constraints = array();\n if($filter->keyword) {\n $keywordConstraints = array();\n $keywordConstraints[] = $query->like('title', '%'.$filter->keyword.'%');\n $keywordConstraints[] = $query->like('abstract', '%'.$filter->keyword.'%');\n $keywordConstraints[] = $query->like('bodytext', '%'.$filter->keyword.'%');\n $constraints[] = $query->logicalOr($keywordConstraints);\n }\n if($filter->area) {\n $constraints[] = $query->contains('areas', $filter->area);\n }\n if($filter->industry) {\n $constraints[] = $query->contains('industries', $filter->industry);\n }\n if($filter->technology) {\n $constraints[] = $query->contains('technologies', $filter->technology);\n }\n if($filter->theme) {\n $constraints[] = $query->contains('themes', $filter->theme);\n }\n if($filter->year) {\n $minDate = mktime(0, 0, 0, 1, 1, $filter->year);\n $maxDate = mktime(23, 59, 59, 12, 31, $filter->year);\n $constraints[] = $query->greaterThanOrEqual('article_date', $minDate);\n $constraints[] = $query->lessThanOrEqual('article_date', $maxDate);\n }\n\n if(count($constraints)) {\n \n $query->matching(\n $query->logicalAnd($constraints)\n );\n \n \n \n//$queryParser = $this->objectManager->get(\\TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Storage\\Typo3DbQueryParser::class);\n//\\TYPO3\\CMS\\Extbase\\Utility\\DebuggerUtility::var_dump($queryParser->convertQueryToDoctrineQueryBuilder($query)->getSQL());\n//\n//\\TYPO3\\CMS\\Extbase\\Utility\\DebuggerUtility::var_dump($queryParser->convertQueryToDoctrineQueryBuilder($query)->getParameters());\n\n\n\n return $query->matching(\n $query->logicalAnd($constraints)\n )\n ->execute();\n \n }\n else {\n return $this->findAll();\n }\n }", "public abstract function getCriteriaFrom($criteria);", "public function findBy(array $criteria);", "protected function applySearchQuery($c)\n {\n $request = $this->getRequest();\n $user = $this->getUser();\n \n if($request->hasParameter('query'))\n {\n $q = $request->getParameter('query');\n $user->setAttribute('type', 'all', 'project/list');\n $user->setAttribute('page', 1, 'project/list');\n \n \n $c->addJoin(ProjectPeer::ID, ProjectCompanyPeer::PROJECT_ID);\n $c->addJoin(ProjectCompanyPeer::COMPANY_ID, CompanyPeer::ID);\n $c->addJoin(ProjectPeer::ID, ProjectEmployeePeer::PROJECT_ID);\n $c->addJoin(ProjectEmployeePeer::EMPLOYEE_ID, EmployeePeer::ID);\n \n // Perform OR search on Project Title, Project Type and compagny Name\n $critSearch1 = $c->getNewCriterion(CompanyPeer::NAME, '%'.$q.'%', Criteria::LIKE);\n $critSearch1->addOr($c->getNewCriterion(ProjectPeer::TITLE, '%'.$q.'%', Criteria::LIKE));\n $critSearch1->addOr($c->getNewCriterion(ProjectPeer::NUMBER, '%'.$q.'%', Criteria::LIKE)); \n $critSearch1->addOr($c->getNewCriterion(ProjectPeer::TYPE_PROJECT, '%'.$q.'%', Criteria::LIKE)); // is it working ?\n $critSearch1->addOr($c->getNewCriterion(EmployeePeer::FIRSTNAME, '%'.$q.'%', Criteria::LIKE)); // is it working ? \n \n $c->add($critSearch1);\n \n $c->setIgnoreCase(true);\n $c->setDistinct(true);\n }\n\n }", "public function query() {\n $this->field_alias = $this->real_field;\n if (isset($this->definition['trovequery'])) {\n $this->query->add_where('', $this->definition['trovequery']['arg'], $this->definition['trovequery']['value']);\n }\n }", "public function setCriteria(Criteria $criteria);", "public abstract function findHolderBy(array $criteria);", "public function myFindsimpleAll($criteria = array()) {\n //$em = $this->getDoctrine()->getManager();\n // $em = $this->getManager();\n //$values=array('a,partial b.{id,nomprojet},partial c.{id,nomUser},partial d.{id,nom,description},f,partial h.{id}');\n $values = 'a,partial b.{id,nomprojet},partial c.{id,nomUser},partial d.{id,nom,description},f,partial h.{id},';\n // $values='a,partial b.{id,nomprojet},partial c.{id,nomUser},partial GroupConcat(e.nomUser),partial d.{id,nom,description},f,partial h.{id}';\n /*\n * SELECT a.id , group_concat( b.b_val ) AS bvals\n> FROM b\n> LEFT JOIN ab ON b.id = ab.idb\n> LEFT JOIN a ON a.id = ab.ida\n> LEFT JOIN ab as ab2 ON ab2.ida = a.id \n> LEFT JOIN b as b2 ON b2.id = ab2.idb\n> WHERE b2.b_val='deuxbis'\n> GROUP BY a.id \n */\n $query = $this->_em->createQuery(\"\n SELECT a,b,c,d,f,g,h,e FROM ApplicationChangementsBundle:Changements a \n LEFT JOIN a.idProjet b\n LEFT JOIN a.demandeur c \n LEFT JOIN a.idStatus d \n LEFT JOIN a.idusers AS e ON e.id=a.id\n LEFT JOIN a.picture f\n LEFT JOIN a.idEnvironnement g \n LEFT JOIN a.comments h \n ORDER BY a.id\n \n \"\n );\n /*\n * $query = $this->_em->createQuery(\"\n SELECT a,b,c,d,GroupConcat( DISTINCT e.nomUser ),f,g,h FROM ApplicationChangementsBundle:Changements a \n LEFT JOIN a.idProjet b\n LEFT JOIN a.demandeur c \n LEFT JOIN a.idStatus d \n LEFT JOIN a.idusers e \n LEFT JOIN a.picture f\n LEFT JOIN a.idEnvironnement g \n LEFT JOIN a.comments h \n \"\n );\n * $query = $this->createQueryBuilder('a')\n ->select($values)\n // ->distinct('a')\n ->leftJoin('a.idProjet', 'b')\n ->leftJoin('a.demandeur', 'c')\n ->leftJoin('a.idStatus', 'd')\n ->leftJoin('a.picture', 'f')\n ->addSelect('g')\n ->leftJoin('a.idEnvironnement', 'g')\n // ->distinct('GroupConcat(g.nom)')\n ->leftJoin('a.comments', 'h')\n ->addSelect('partial e.{id,nomUser}')\n // ->distinct('GroupConcat(e.nomUser)')\n ->leftJoin('a.idusers', 'e');\n */\n /* GroupConcat(e.nomUser) */\n return $query;\n }", "public function applyFilter(Query $query);", "public function matching(Criteria $criteria);", "public function findOneBy($criteria);", "public function businessUserQuery()\n {\n return $this->pushCriteria(BusinessUserCriteria::class);\n }", "function criteria(&$query){\n $id = $this->input->post('id', true);\n $k = $this->input->post('k', true);/*kind*/\n $t = $this->input->post('t', true);/*title*/\n $s = $this->input->post('s', true);/*sub*/\n $b = $this->input->post('b', true);/*background*/\n $so = $this->input->post('so', true);/*sort*/\n if(!empty($id)){/*where like include: before(%pattern), after(pattern%) and both(%pattern%)*/\n $query = $query->like('id', $id, 'both');\n }\n if(!empty($k)){\n $query = $query->like('kind', $k, 'both');\n }\n if(!empty($t)){\n $query = $query->like('title', $t, 'both');\n }\n if(!empty($s)){\n $query = $query->like('sub', $s, 'both');\n }\n if(!empty($b)){\n $query = $query->like('background', $b, 'both');\n }\n if(!empty($so)){\n $query = $query->like('sort', $so, 'both');\n }\n }", "abstract function find($query);", "public function buildCriteria()\n {\n $criteria = new Criteria(OperationPrimesPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_ID)) $criteria->add(OperationPrimesPeer::OP_PRIME_ID, $this->op_prime_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_ID)) $criteria->add(OperationPrimesPeer::OP_ID, $this->op_id);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_LIBELLE)) $criteria->add(OperationPrimesPeer::OP_PRIME_LIBELLE, $this->op_prime_libelle);\n if ($this->isColumnModified(OperationPrimesPeer::OP_PRIME_NUMERO)) $criteria->add(OperationPrimesPeer::OP_PRIME_NUMERO, $this->op_prime_numero);\n if ($this->isColumnModified(OperationPrimesPeer::GDL_ART_ID)) $criteria->add(OperationPrimesPeer::GDL_ART_ID, $this->gdl_art_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_CURRENCY_ID, $this->operation_prime_currency_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TYPE_ID, $this->operation_prime_r_reward_type_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_EXPEDITION_MODE_ID, $this->operation_prime_r_reward_expedition_mode_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_R_REWARD_TRANSPORTER_ID, $this->operation_prime_r_reward_transporter_id);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_FIXED_AMOUNT, $this->operation_prime_fixed_amount);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE, $this->operation_prime_product_price_pourcentage);\n if ($this->isColumnModified(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT)) $criteria->add(OperationPrimesPeer::OPERATION_PRIME_MAXIMUM_AMOUNT, $this->operation_prime_maximum_amount);\n\n return $criteria;\n }", "public function myFindAll(){\n // $queryBuilder = $this->createQueryBuilder('a');\n // $query = $queryBuilder->getQuery();\n // $results = $query->getResult();\n return $this->createQueryBuilder('a')->getQuery()->getResult;\n }", "public function mysearch()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\t\n\t\t$criteria->condition =\"miscellaneous_fees_payment_cheque_student_id = :studentid && miscellaneous_fees_payment_cheque_status = :miscellaneous_fees_payment_cheque_status && miscellaneous_fees_payment_cheque_draft_status = :miscellaneous_fees_payment_cheque_draft_status\";\n\t\t$criteria->params = array (\n\t\t':studentid' => $_REQUEST['id'],\n\t\t':miscellaneous_fees_payment_cheque_status' => 0,\n\t\t':miscellaneous_fees_payment_cheque_draft_status' => 1,\n\t\t);\n\n\t\t$criteria->compare('miscellaneous_fees_payment_cheque_master_id',$this->miscellaneous_fees_payment_cheque_master_id);\n\t\t$criteria->compare('miscellaneous_fees_payment_cheque_id',$this->miscellaneous_fees_payment_cheque_id);\n\t\t$criteria->compare('miscellaneous_fees_payment_cheque_number',$this->miscellaneous_fees_payment_cheque_number);\n\t\t$criteria->compare('miscellaneous_fees_payment_cheque_date',$this->dbDateSearch($this->miscellaneous_fees_payment_cheque_date),true);\n\t\t$criteria->compare('miscellaneous_fees_payment_cheque_bank',$this->miscellaneous_fees_payment_cheque_bank);\n\t\t$criteria->compare('miscellaneous_fees_payment_cheque_branch',$this->miscellaneous_fees_payment_cheque_branch,true);\n\t\t$criteria->compare('miscellaneous_fees_payment_cheque_amount',$this->miscellaneous_fees_payment_cheque_amount);\n\t\t$criteria->compare('miscellaneous_fees_payment_cheque_status',$this->miscellaneous_fees_payment_cheque_status);\n\t\t$criteria->compare('miscellaneous_fees_payment_cheque_draft_status',$this->miscellaneous_fees_payment_cheque_draft_status);\n\t\t$criteria->compare('miscellaneous_fees_payment_cheque_student_id',$this->miscellaneous_fees_payment_cheque_student_id);\n\t\t$criteria->compare('miscellaneous_fees_payment_cheque_receipt_id',$this->miscellaneous_fees_payment_cheque_receipt_id);\n\t\t$criteria->compare('miscellaneous_fees_payment_cheque_organization_id',$this->miscellaneous_fees_payment_cheque_organization_id);\n\t\t$cheque_data = new CActiveDataProvider(get_class($this), array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t\t$_SESSION['cheque_data']=$cheque_data;\n\t\treturn $cheque_data;\n\t}", "public function apply($query);", "public function Search($criteria);", "public function buildCriteria()\n {\n $criteria = new Criteria(SanitasiPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(SanitasiPeer::SEKOLAH_ID)) $criteria->add(SanitasiPeer::SEKOLAH_ID, $this->sekolah_id);\n if ($this->isColumnModified(SanitasiPeer::SEMESTER_ID)) $criteria->add(SanitasiPeer::SEMESTER_ID, $this->semester_id);\n if ($this->isColumnModified(SanitasiPeer::SUMBER_AIR_ID)) $criteria->add(SanitasiPeer::SUMBER_AIR_ID, $this->sumber_air_id);\n if ($this->isColumnModified(SanitasiPeer::SUMBER_AIR_MINUM_ID)) $criteria->add(SanitasiPeer::SUMBER_AIR_MINUM_ID, $this->sumber_air_minum_id);\n if ($this->isColumnModified(SanitasiPeer::CREATE_DATE)) $criteria->add(SanitasiPeer::CREATE_DATE, $this->create_date);\n if ($this->isColumnModified(SanitasiPeer::LAST_UPDATE)) $criteria->add(SanitasiPeer::LAST_UPDATE, $this->last_update);\n if ($this->isColumnModified(SanitasiPeer::SOFT_DELETE)) $criteria->add(SanitasiPeer::SOFT_DELETE, $this->soft_delete);\n if ($this->isColumnModified(SanitasiPeer::LAST_SYNC)) $criteria->add(SanitasiPeer::LAST_SYNC, $this->last_sync);\n if ($this->isColumnModified(SanitasiPeer::UPDATER_ID)) $criteria->add(SanitasiPeer::UPDATER_ID, $this->updater_id);\n if ($this->isColumnModified(SanitasiPeer::KETERSEDIAAN_AIR)) $criteria->add(SanitasiPeer::KETERSEDIAAN_AIR, $this->ketersediaan_air);\n if ($this->isColumnModified(SanitasiPeer::KECUKUPAN_AIR)) $criteria->add(SanitasiPeer::KECUKUPAN_AIR, $this->kecukupan_air);\n if ($this->isColumnModified(SanitasiPeer::MINUM_SISWA)) $criteria->add(SanitasiPeer::MINUM_SISWA, $this->minum_siswa);\n if ($this->isColumnModified(SanitasiPeer::MEMPROSES_AIR)) $criteria->add(SanitasiPeer::MEMPROSES_AIR, $this->memproses_air);\n if ($this->isColumnModified(SanitasiPeer::SISWA_BAWA_AIR)) $criteria->add(SanitasiPeer::SISWA_BAWA_AIR, $this->siswa_bawa_air);\n if ($this->isColumnModified(SanitasiPeer::TOILET_SISWA_LAKI)) $criteria->add(SanitasiPeer::TOILET_SISWA_LAKI, $this->toilet_siswa_laki);\n if ($this->isColumnModified(SanitasiPeer::TOILET_SISWA_PEREMPUAN)) $criteria->add(SanitasiPeer::TOILET_SISWA_PEREMPUAN, $this->toilet_siswa_perempuan);\n if ($this->isColumnModified(SanitasiPeer::TOILET_SISWA_KK)) $criteria->add(SanitasiPeer::TOILET_SISWA_KK, $this->toilet_siswa_kk);\n if ($this->isColumnModified(SanitasiPeer::TOILET_SISWA_KECIL)) $criteria->add(SanitasiPeer::TOILET_SISWA_KECIL, $this->toilet_siswa_kecil);\n if ($this->isColumnModified(SanitasiPeer::JML_JAMBAN_L_G)) $criteria->add(SanitasiPeer::JML_JAMBAN_L_G, $this->jml_jamban_l_g);\n if ($this->isColumnModified(SanitasiPeer::JML_JAMBAN_L_TG)) $criteria->add(SanitasiPeer::JML_JAMBAN_L_TG, $this->jml_jamban_l_tg);\n if ($this->isColumnModified(SanitasiPeer::JML_JAMBAN_P_G)) $criteria->add(SanitasiPeer::JML_JAMBAN_P_G, $this->jml_jamban_p_g);\n if ($this->isColumnModified(SanitasiPeer::JML_JAMBAN_P_TG)) $criteria->add(SanitasiPeer::JML_JAMBAN_P_TG, $this->jml_jamban_p_tg);\n if ($this->isColumnModified(SanitasiPeer::JML_JAMBAN_LP_G)) $criteria->add(SanitasiPeer::JML_JAMBAN_LP_G, $this->jml_jamban_lp_g);\n if ($this->isColumnModified(SanitasiPeer::JML_JAMBAN_LP_TG)) $criteria->add(SanitasiPeer::JML_JAMBAN_LP_TG, $this->jml_jamban_lp_tg);\n if ($this->isColumnModified(SanitasiPeer::TEMPAT_CUCI_TANGAN)) $criteria->add(SanitasiPeer::TEMPAT_CUCI_TANGAN, $this->tempat_cuci_tangan);\n if ($this->isColumnModified(SanitasiPeer::TEMPAT_CUCI_TANGAN_RUSAK)) $criteria->add(SanitasiPeer::TEMPAT_CUCI_TANGAN_RUSAK, $this->tempat_cuci_tangan_rusak);\n if ($this->isColumnModified(SanitasiPeer::A_SABUN_AIR_MENGALIR)) $criteria->add(SanitasiPeer::A_SABUN_AIR_MENGALIR, $this->a_sabun_air_mengalir);\n if ($this->isColumnModified(SanitasiPeer::JAMBAN_DIFABEL)) $criteria->add(SanitasiPeer::JAMBAN_DIFABEL, $this->jamban_difabel);\n if ($this->isColumnModified(SanitasiPeer::TIPE_JAMBAN)) $criteria->add(SanitasiPeer::TIPE_JAMBAN, $this->tipe_jamban);\n if ($this->isColumnModified(SanitasiPeer::A_SEDIA_PEMBALUT)) $criteria->add(SanitasiPeer::A_SEDIA_PEMBALUT, $this->a_sedia_pembalut);\n if ($this->isColumnModified(SanitasiPeer::KEGIATAN_CUCI_TANGAN)) $criteria->add(SanitasiPeer::KEGIATAN_CUCI_TANGAN, $this->kegiatan_cuci_tangan);\n if ($this->isColumnModified(SanitasiPeer::PEMBUANGAN_AIR_LIMBAH)) $criteria->add(SanitasiPeer::PEMBUANGAN_AIR_LIMBAH, $this->pembuangan_air_limbah);\n if ($this->isColumnModified(SanitasiPeer::A_KURAS_SEPTITANK)) $criteria->add(SanitasiPeer::A_KURAS_SEPTITANK, $this->a_kuras_septitank);\n if ($this->isColumnModified(SanitasiPeer::A_MEMILIKI_SOLOKAN)) $criteria->add(SanitasiPeer::A_MEMILIKI_SOLOKAN, $this->a_memiliki_solokan);\n if ($this->isColumnModified(SanitasiPeer::A_TEMPAT_SAMPAH_KELAS)) $criteria->add(SanitasiPeer::A_TEMPAT_SAMPAH_KELAS, $this->a_tempat_sampah_kelas);\n if ($this->isColumnModified(SanitasiPeer::A_TEMPAT_SAMPAH_TUTUP_P)) $criteria->add(SanitasiPeer::A_TEMPAT_SAMPAH_TUTUP_P, $this->a_tempat_sampah_tutup_p);\n if ($this->isColumnModified(SanitasiPeer::A_CERMIN_JAMBAN_P)) $criteria->add(SanitasiPeer::A_CERMIN_JAMBAN_P, $this->a_cermin_jamban_p);\n if ($this->isColumnModified(SanitasiPeer::A_MEMILIKI_TPS)) $criteria->add(SanitasiPeer::A_MEMILIKI_TPS, $this->a_memiliki_tps);\n if ($this->isColumnModified(SanitasiPeer::A_TPS_ANGKUT_RUTIN)) $criteria->add(SanitasiPeer::A_TPS_ANGKUT_RUTIN, $this->a_tps_angkut_rutin);\n if ($this->isColumnModified(SanitasiPeer::A_ANGGARAN_SANITASI)) $criteria->add(SanitasiPeer::A_ANGGARAN_SANITASI, $this->a_anggaran_sanitasi);\n if ($this->isColumnModified(SanitasiPeer::A_MELIBATKAN_SANITASI_SISWA)) $criteria->add(SanitasiPeer::A_MELIBATKAN_SANITASI_SISWA, $this->a_melibatkan_sanitasi_siswa);\n if ($this->isColumnModified(SanitasiPeer::A_KEMITRAAN_SAN_DAERAH)) $criteria->add(SanitasiPeer::A_KEMITRAAN_SAN_DAERAH, $this->a_kemitraan_san_daerah);\n if ($this->isColumnModified(SanitasiPeer::A_KEMITRAAN_SAN_PUSKESMAS)) $criteria->add(SanitasiPeer::A_KEMITRAAN_SAN_PUSKESMAS, $this->a_kemitraan_san_puskesmas);\n if ($this->isColumnModified(SanitasiPeer::A_KEMITRAAN_SAN_SWASTA)) $criteria->add(SanitasiPeer::A_KEMITRAAN_SAN_SWASTA, $this->a_kemitraan_san_swasta);\n if ($this->isColumnModified(SanitasiPeer::A_KEMITRAAN_SAN_NON_PEM)) $criteria->add(SanitasiPeer::A_KEMITRAAN_SAN_NON_PEM, $this->a_kemitraan_san_non_pem);\n if ($this->isColumnModified(SanitasiPeer::KIE_GURU_CUCI_TANGAN)) $criteria->add(SanitasiPeer::KIE_GURU_CUCI_TANGAN, $this->kie_guru_cuci_tangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_GURU_HAID)) $criteria->add(SanitasiPeer::KIE_GURU_HAID, $this->kie_guru_haid);\n if ($this->isColumnModified(SanitasiPeer::KIE_GURU_PERAWATAN_TOILET)) $criteria->add(SanitasiPeer::KIE_GURU_PERAWATAN_TOILET, $this->kie_guru_perawatan_toilet);\n if ($this->isColumnModified(SanitasiPeer::KIE_GURU_KEAMANAN_PANGAN)) $criteria->add(SanitasiPeer::KIE_GURU_KEAMANAN_PANGAN, $this->kie_guru_keamanan_pangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_GURU_MINUM_AIR)) $criteria->add(SanitasiPeer::KIE_GURU_MINUM_AIR, $this->kie_guru_minum_air);\n if ($this->isColumnModified(SanitasiPeer::KIE_KELAS_CUCI_TANGAN)) $criteria->add(SanitasiPeer::KIE_KELAS_CUCI_TANGAN, $this->kie_kelas_cuci_tangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_KELAS_HAID)) $criteria->add(SanitasiPeer::KIE_KELAS_HAID, $this->kie_kelas_haid);\n if ($this->isColumnModified(SanitasiPeer::KIE_KELAS_PERAWATAN_TOILET)) $criteria->add(SanitasiPeer::KIE_KELAS_PERAWATAN_TOILET, $this->kie_kelas_perawatan_toilet);\n if ($this->isColumnModified(SanitasiPeer::KIE_KELAS_KEAMANAN_PANGAN)) $criteria->add(SanitasiPeer::KIE_KELAS_KEAMANAN_PANGAN, $this->kie_kelas_keamanan_pangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_KELAS_MINUM_AIR)) $criteria->add(SanitasiPeer::KIE_KELAS_MINUM_AIR, $this->kie_kelas_minum_air);\n if ($this->isColumnModified(SanitasiPeer::KIE_TOILET_CUCI_TANGAN)) $criteria->add(SanitasiPeer::KIE_TOILET_CUCI_TANGAN, $this->kie_toilet_cuci_tangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_TOILET_HAID)) $criteria->add(SanitasiPeer::KIE_TOILET_HAID, $this->kie_toilet_haid);\n if ($this->isColumnModified(SanitasiPeer::KIE_TOILET_PERAWATAN_TOILET)) $criteria->add(SanitasiPeer::KIE_TOILET_PERAWATAN_TOILET, $this->kie_toilet_perawatan_toilet);\n if ($this->isColumnModified(SanitasiPeer::KIE_TOILET_KEAMANAN_PANGAN)) $criteria->add(SanitasiPeer::KIE_TOILET_KEAMANAN_PANGAN, $this->kie_toilet_keamanan_pangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_TOILET_MINUM_AIR)) $criteria->add(SanitasiPeer::KIE_TOILET_MINUM_AIR, $this->kie_toilet_minum_air);\n if ($this->isColumnModified(SanitasiPeer::KIE_SELASAR_CUCI_TANGAN)) $criteria->add(SanitasiPeer::KIE_SELASAR_CUCI_TANGAN, $this->kie_selasar_cuci_tangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_SELASAR_HAID)) $criteria->add(SanitasiPeer::KIE_SELASAR_HAID, $this->kie_selasar_haid);\n if ($this->isColumnModified(SanitasiPeer::KIE_SELASAR_PERAWATAN_TOILET)) $criteria->add(SanitasiPeer::KIE_SELASAR_PERAWATAN_TOILET, $this->kie_selasar_perawatan_toilet);\n if ($this->isColumnModified(SanitasiPeer::KIE_SELASAR_KEAMANAN_PANGAN)) $criteria->add(SanitasiPeer::KIE_SELASAR_KEAMANAN_PANGAN, $this->kie_selasar_keamanan_pangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_SELASAR_MINUM_AIR)) $criteria->add(SanitasiPeer::KIE_SELASAR_MINUM_AIR, $this->kie_selasar_minum_air);\n if ($this->isColumnModified(SanitasiPeer::KIE_UKS_CUCI_TANGAN)) $criteria->add(SanitasiPeer::KIE_UKS_CUCI_TANGAN, $this->kie_uks_cuci_tangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_UKS_HAID)) $criteria->add(SanitasiPeer::KIE_UKS_HAID, $this->kie_uks_haid);\n if ($this->isColumnModified(SanitasiPeer::KIE_UKS_PERAWATAN_TOILET)) $criteria->add(SanitasiPeer::KIE_UKS_PERAWATAN_TOILET, $this->kie_uks_perawatan_toilet);\n if ($this->isColumnModified(SanitasiPeer::KIE_UKS_KEAMANAN_PANGAN)) $criteria->add(SanitasiPeer::KIE_UKS_KEAMANAN_PANGAN, $this->kie_uks_keamanan_pangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_UKS_MINUM_AIR)) $criteria->add(SanitasiPeer::KIE_UKS_MINUM_AIR, $this->kie_uks_minum_air);\n if ($this->isColumnModified(SanitasiPeer::KIE_KANTIN_CUCI_TANGAN)) $criteria->add(SanitasiPeer::KIE_KANTIN_CUCI_TANGAN, $this->kie_kantin_cuci_tangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_KANTIN_HAID)) $criteria->add(SanitasiPeer::KIE_KANTIN_HAID, $this->kie_kantin_haid);\n if ($this->isColumnModified(SanitasiPeer::KIE_KANTIN_PERAWATAN_TOILET)) $criteria->add(SanitasiPeer::KIE_KANTIN_PERAWATAN_TOILET, $this->kie_kantin_perawatan_toilet);\n if ($this->isColumnModified(SanitasiPeer::KIE_KANTIN_KEAMANAN_PANGAN)) $criteria->add(SanitasiPeer::KIE_KANTIN_KEAMANAN_PANGAN, $this->kie_kantin_keamanan_pangan);\n if ($this->isColumnModified(SanitasiPeer::KIE_KANTIN_MINUM_AIR)) $criteria->add(SanitasiPeer::KIE_KANTIN_MINUM_AIR, $this->kie_kantin_minum_air);\n\n return $criteria;\n }", "public function buildCriteria()\n {\n $criteria = new Criteria(SekolahPaudPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(SekolahPaudPeer::SEKOLAH_ID)) $criteria->add(SekolahPaudPeer::SEKOLAH_ID, $this->sekolah_id);\n if ($this->isColumnModified(SekolahPaudPeer::KATEGORI_TK_ID)) $criteria->add(SekolahPaudPeer::KATEGORI_TK_ID, $this->kategori_tk_id);\n if ($this->isColumnModified(SekolahPaudPeer::KLASIFIKASI_LEMBAGA_ID)) $criteria->add(SekolahPaudPeer::KLASIFIKASI_LEMBAGA_ID, $this->klasifikasi_lembaga_id);\n if ($this->isColumnModified(SekolahPaudPeer::SUMBER_DANA_SEKOLAH_ID)) $criteria->add(SekolahPaudPeer::SUMBER_DANA_SEKOLAH_ID, $this->sumber_dana_sekolah_id);\n if ($this->isColumnModified(SekolahPaudPeer::FASILITAS_LAYANAN_ID)) $criteria->add(SekolahPaudPeer::FASILITAS_LAYANAN_ID, $this->fasilitas_layanan_id);\n if ($this->isColumnModified(SekolahPaudPeer::JADWAL_PMTAS)) $criteria->add(SekolahPaudPeer::JADWAL_PMTAS, $this->jadwal_pmtas);\n if ($this->isColumnModified(SekolahPaudPeer::LEMBAGA_PENGANGKAT_ID)) $criteria->add(SekolahPaudPeer::LEMBAGA_PENGANGKAT_ID, $this->lembaga_pengangkat_id);\n if ($this->isColumnModified(SekolahPaudPeer::JADWAL_DDTK)) $criteria->add(SekolahPaudPeer::JADWAL_DDTK, $this->jadwal_ddtk);\n if ($this->isColumnModified(SekolahPaudPeer::FREQ_PARENTING)) $criteria->add(SekolahPaudPeer::FREQ_PARENTING, $this->freq_parenting);\n if ($this->isColumnModified(SekolahPaudPeer::BENTUK_LEMBAGA_ID)) $criteria->add(SekolahPaudPeer::BENTUK_LEMBAGA_ID, $this->bentuk_lembaga_id);\n if ($this->isColumnModified(SekolahPaudPeer::JADWAL_KESEHATAN)) $criteria->add(SekolahPaudPeer::JADWAL_KESEHATAN, $this->jadwal_kesehatan);\n if ($this->isColumnModified(SekolahPaudPeer::IZIN_PAUD)) $criteria->add(SekolahPaudPeer::IZIN_PAUD, $this->izin_paud);\n if ($this->isColumnModified(SekolahPaudPeer::PENCATATAN_DDTK)) $criteria->add(SekolahPaudPeer::PENCATATAN_DDTK, $this->pencatatan_ddtk);\n if ($this->isColumnModified(SekolahPaudPeer::RUJUKAN_DDTK)) $criteria->add(SekolahPaudPeer::RUJUKAN_DDTK, $this->rujukan_ddtk);\n if ($this->isColumnModified(SekolahPaudPeer::PELAKSANAAN_PARENTING)) $criteria->add(SekolahPaudPeer::PELAKSANAAN_PARENTING, $this->pelaksanaan_parenting);\n if ($this->isColumnModified(SekolahPaudPeer::PARENTING_KPO)) $criteria->add(SekolahPaudPeer::PARENTING_KPO, $this->parenting_kpo);\n if ($this->isColumnModified(SekolahPaudPeer::PARENTING_KELAS)) $criteria->add(SekolahPaudPeer::PARENTING_KELAS, $this->parenting_kelas);\n if ($this->isColumnModified(SekolahPaudPeer::PARENTING_KEGIATAN)) $criteria->add(SekolahPaudPeer::PARENTING_KEGIATAN, $this->parenting_kegiatan);\n if ($this->isColumnModified(SekolahPaudPeer::PARENTING_KONSULTASI)) $criteria->add(SekolahPaudPeer::PARENTING_KONSULTASI, $this->parenting_konsultasi);\n if ($this->isColumnModified(SekolahPaudPeer::PARENTING_KUNJUNGAN)) $criteria->add(SekolahPaudPeer::PARENTING_KUNJUNGAN, $this->parenting_kunjungan);\n if ($this->isColumnModified(SekolahPaudPeer::PARENTING_LAINNYA)) $criteria->add(SekolahPaudPeer::PARENTING_LAINNYA, $this->parenting_lainnya);\n if ($this->isColumnModified(SekolahPaudPeer::NILK)) $criteria->add(SekolahPaudPeer::NILK, $this->nilk);\n if ($this->isColumnModified(SekolahPaudPeer::NILM)) $criteria->add(SekolahPaudPeer::NILM, $this->nilm);\n if ($this->isColumnModified(SekolahPaudPeer::NO_PENETAPAN_PNF)) $criteria->add(SekolahPaudPeer::NO_PENETAPAN_PNF, $this->no_penetapan_pnf);\n if ($this->isColumnModified(SekolahPaudPeer::TANGGAL_PENETAPAN_PNF)) $criteria->add(SekolahPaudPeer::TANGGAL_PENETAPAN_PNF, $this->tanggal_penetapan_pnf);\n if ($this->isColumnModified(SekolahPaudPeer::CREATE_DATE)) $criteria->add(SekolahPaudPeer::CREATE_DATE, $this->create_date);\n if ($this->isColumnModified(SekolahPaudPeer::LAST_UPDATE)) $criteria->add(SekolahPaudPeer::LAST_UPDATE, $this->last_update);\n if ($this->isColumnModified(SekolahPaudPeer::SOFT_DELETE)) $criteria->add(SekolahPaudPeer::SOFT_DELETE, $this->soft_delete);\n if ($this->isColumnModified(SekolahPaudPeer::LAST_SYNC)) $criteria->add(SekolahPaudPeer::LAST_SYNC, $this->last_sync);\n if ($this->isColumnModified(SekolahPaudPeer::UPDATER_ID)) $criteria->add(SekolahPaudPeer::UPDATER_ID, $this->updater_id);\n\n return $criteria;\n }", "public function matching(Criteria $criteria)\n {\n }", "public function myFindAll($criteria = array()) {\n\n $parameters = array();\n $values = array('a,partial b.{id,nomprojet},partial c.{id,nomUser},partial d.{id,nom,description},f,partial h.{id}');\n $query = $this->createQueryBuilder('a')\n ->select($values)\n ->leftJoin('a.idProjet', 'b')\n ->leftJoin('a.demandeur', 'c')\n ->leftJoin('a.idStatus', 'd')\n ->leftJoin('a.picture', 'f')\n ->addSelect('g')\n //->addSelect('g')\n ->distinct('GroupConcat(g.nom) AS kak')\n ->leftJoin('a.idEnvironnement', 'g')\n ->leftJoin('a.comments', 'h')\n //->addSelect('e')\n ->addSelect('partial e.{id,nomUser}')\n ->distinct('GroupConcat(e.nomUser)')\n ->leftJoin('a.idusers', 'e');\n $query->add('orderBy', 'a.id DESC');\n return $query;\n //->getQuery();\n }", "private function applyCriteria(QueryBuilder $queryBuilder)\n {\n $criteria = $this->criteria->getCriteria();\n\n foreach ($criteria as $criterion) {\n $criterion->apply($queryBuilder);\n }\n }", "public function byCriterionOverruleLimitClause()\n {\n $mockCriterion = $this->getMock('stubCriterion');\n $mockCriterion->expects($this->any())->method('toSQL')->will($this->returnValue('example'));\n $mockResult = $this->getMock('stubDatabaseResult');\n $this->mockConnection->expects($this->any())->method('query')->will($this->returnValue($mockResult));\n $mockResult->expects($this->once())\n ->method('fetchAll')\n ->will($this->returnValue(array(array('bar' => 'Here is bar.', 'default' => 'And this is default.'))));\n $finderResult = $this->dbFinder->findByCriterion($this->mockConnection, $mockCriterion, new stubReflectionClass('MockSinglePrimaryKeyEntity'), null, 50, 10);\n $this->assertEquals(1, $finderResult->count());\n $data = $finderResult->current();\n $this->assertEquals('Here is bar.', $data->withAnnotation());\n $this->assertEquals('And this is default.', $data->withDefaultValue());\n $select = $this->mockQueryBuilder->getSelect();\n $this->assertEquals('foo', $select->getBaseTableName());\n $this->assertEquals('bar ASC', $select->getOrderedBy());\n $this->assertTrue($select->hasLimit());\n $this->assertEquals(50, $select->getOffset());\n $this->assertEquals(10, $select->getAmount());\n $this->assertTrue($select->hasCriterion());\n }", "public function find(array $criteria);", "function createPaginatorOperative(array $criteria = null, array $orderBy = null) {\n $securityContext = $this->getSecurityContext();\n $user = $this->getUser();\n $queryBuilder = $this->getCollectionQueryBuilder();\n $queryBuilder->andWhere('i.enabled =:enabled');\n $queryBuilder->innerJoin('i.objetives', 'ob');\n $queryBuilder->andWhere('i.tmp =:false');\n $queryBuilder->andWhere('ob.enabled =:enabled ');\n $queryBuilder->setParameter('enabled', true);\n $queryBuilder->setParameter('false', false);\n //Filtro Objetivo Estratégico\n if (isset($criteria['description'])) {\n $description = $criteria['description'];\n unset($criteria['description']);\n $queryBuilder->andWhere($queryBuilder->expr()->orX($queryBuilder->expr()->like('i.description', \"'%\" . $description . \"%'\"), $queryBuilder->expr()->like('i.ref', \"'%\" . $description . \"%'\")));\n }\n\n if (isset($criteria['indicatorLevel'])) {\n $queryBuilder->andWhere(\"i.indicatorLevel = \" . $criteria['indicatorLevel']);\n }\n\n if ($securityContext->isGranted(array('ROLE_MANAGER_FIRST', 'ROLE_MANAGER_FIRST_AUX'))) {\n if (isset($criteria['gerenciaSecond'])) {\n if ((int) $criteria['gerenciaSecond'] == 0) {//En el caso que seleccione todas las Gerencias de 2da Línea\n $queryBuilder->andWhere('ob.gerencia = ' . $user->getGerencia()->getId());\n ;\n }\n } else {\n if ($user->getGerencia()) {\n $queryBuilder->andWhere('ob.gerencia = ' . $user->getGerencia()->getId());\n }\n }\n } elseif ($securityContext->isGranted(array('ROLE_MANAGER_SECOND', 'ROLE_MANAGER_SECOND_AUX'))) {\n $queryBuilder->andWhere('ob.gerenciaSecond = ' . $user->getGerenciaSecond()->getId());\n } elseif ($securityContext->isGranted(array('ROLE_GENERAL_COMPLEJO', 'ROLE_GENERAL_COMPLEJO_AUX'))) {\n if (isset($criteria['gerenciaSecond'])) {\n if ((int) $criteria['gerenciaSecond'] == 0) {//En caso que seleccione todas las Gerencias de 2da Línea\n $queryBuilder->leftJoin('ob.gerenciaSecond', 'gs');\n $queryBuilder->andWhere('gs.complejo = ' . $user->getComplejo()->getId());\n $queryBuilder->andWhere('gs.modular =:modular');\n $queryBuilder->setParameter('modular', true);\n }\n } else {\n $queryBuilder->leftJoin('ob.gerenciaSecond', 'gs');\n $queryBuilder->andWhere('gs.complejo = ' . $user->getComplejo()->getId());\n $queryBuilder->andWhere('gs.modular =:modular');\n $queryBuilder->setParameter('modular', true);\n }\n } elseif ($securityContext->isGranted(array('ROLE_INDICATOR_ADD_RESULT')) || $user->getGerencia()) {\n $queryBuilder->andWhere('ob.gerencia = ' . $user->getGerencia()->getId());\n }\n\n if (isset($criteria['gerenciaFirst'])) {\n if ((int) $criteria['gerenciaFirst'] == 0) {\n \n } else {\n $queryBuilder->andWhere('ob.gerencia = ' . (int) $criteria['gerenciaFirst']);\n }\n }\n\n if (isset($criteria['gerenciaSecond'])) {\n if ((int) $criteria['gerenciaSecond'] > 0) {\n $queryBuilder->andWhere(\"ob.gerenciaSecond = \" . (int) $criteria['gerenciaSecond']);\n } else {\n unset($criteria['gerenciaSecond']);\n }\n }\n $queryBuilder->groupBy('i.ref');\n $queryBuilder->orderBy('i.ref');\n\n $this->applyPeriodCriteria($queryBuilder);\n\n return $this->getPaginator($queryBuilder);\n }", "public function findBy(array $where = []);", "public abstract function listOperationBy(array $criteria);", "public function getCriteria(){\n return $this->criteria;\n }", "public function findOneBy(array $criteria);", "public function findOneBy(array $criteria);", "public function findOneBy(array $criteria);", "public function criteriaSearch()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\tif(!empty($this->rekperiod_id)){\n\t\t\t$criteria->addCondition('rekperiod_id = '.$this->rekperiod_id);\n\t\t}\n\t\t$criteria->compare('LOWER(perideawal)',strtolower($this->perideawal),true);\n\t\t$criteria->compare('LOWER(sampaidgn)',strtolower($this->sampaidgn),true);\n\t\t$criteria->compare('LOWER(deskripsi)',strtolower($this->deskripsi),true);\n\t\t$criteria->compare('isclosing',$this->isclosing);\n\t\tif(!empty($this->konfiganggaran_id)){\n\t\t\t$criteria->addCondition('konfiganggaran_id = '.$this->konfiganggaran_id);\n\t\t}\n\t\t$criteria->compare('LOWER(deskripsiperiode)',strtolower($this->deskripsiperiode),true);\n\t\t$criteria->compare('LOWER(tglanggaran)',strtolower($this->tglanggaran),true);\n\t\t$criteria->compare('LOWER(sd_tglanggaran)',strtolower($this->sd_tglanggaran),true);\n\t\t$criteria->compare('LOWER(tglrencanaanggaran)',strtolower($this->tglrencanaanggaran),true);\n\t\t$criteria->compare('LOWER(sd_tglrencanaanggaran)',strtolower($this->sd_tglrencanaanggaran),true);\n\t\t$criteria->compare('LOWER(tglrevisianggaran)',strtolower($this->tglrevisianggaran),true);\n\t\t$criteria->compare('LOWER(sd_tglrevisianggaran)',strtolower($this->sd_tglrevisianggaran),true);\n\t\t$criteria->compare('LOWER(digitnilaianggaran)',strtolower($this->digitnilaianggaran),true);\n\t\t$criteria->compare('isclosing_anggaran',$this->isclosing_anggaran);\n\t\tif(!empty($this->periodeposting_id)){\n\t\t\t$criteria->addCondition('periodeposting_id = '.$this->periodeposting_id);\n\t\t}\n\t\t$criteria->compare('LOWER(periodeposting_nama)',strtolower($this->periodeposting_nama),true);\n\t\t$criteria->compare('LOWER(tglperiodeposting_awal)',strtolower($this->tglperiodeposting_awal),true);\n\t\t$criteria->compare('LOWER(tglperiodeposting_akhir)',strtolower($this->tglperiodeposting_akhir),true);\n\t\t$criteria->compare('LOWER(deskripsiperiodeposting)',strtolower($this->deskripsiperiodeposting),true);\n\t\t$criteria->compare('periodeposting_aktif',$this->periodeposting_aktif);\n\t\tif(!empty($this->laporanlabarugi_id)){\n\t\t\t$criteria->addCondition('laporanlabarugi_id = '.$this->laporanlabarugi_id);\n\t\t}\n\t\tif(!empty($this->laporanlabarugidetail_id)){\n\t\t\t$criteria->addCondition('laporanlabarugidetail_id = '.$this->laporanlabarugidetail_id);\n\t\t}\n\t\tif(!empty($this->rekening1_id)){\n\t\t\t$criteria->addCondition('rekening1_id = '.$this->rekening1_id);\n\t\t}\n\t\t$criteria->compare('LOWER(kdrekening1)',strtolower($this->kdrekening1),true);\n\t\t$criteria->compare('LOWER(nmrekening1)',strtolower($this->nmrekening1),true);\n\t\tif(!empty($this->rekening2_id)){\n\t\t\t$criteria->addCondition('rekening2_id = '.$this->rekening2_id);\n\t\t}\n\t\t$criteria->compare('LOWER(kdrekening2)',strtolower($this->kdrekening2),true);\n\t\t$criteria->compare('LOWER(nmrekening2)',strtolower($this->nmrekening2),true);\n\t\tif(!empty($this->rekening3_id)){\n\t\t\t$criteria->addCondition('rekening3_id = '.$this->rekening3_id);\n\t\t}\n\t\t$criteria->compare('LOWER(kdrekening3)',strtolower($this->kdrekening3),true);\n\t\t$criteria->compare('LOWER(nmrekening3)',strtolower($this->nmrekening3),true);\n\t\tif(!empty($this->rekening4_id)){\n\t\t\t$criteria->addCondition('rekening4_id = '.$this->rekening4_id);\n\t\t}\n\t\t$criteria->compare('LOWER(kdrekening4)',strtolower($this->kdrekening4),true);\n\t\t$criteria->compare('LOWER(nmrekening4)',strtolower($this->nmrekening4),true);\n\t\tif(!empty($this->rekening5_id)){\n\t\t\t$criteria->addCondition('rekening5_id = '.$this->rekening5_id);\n\t\t}\n\t\t$criteria->compare('LOWER(kdrekening5)',strtolower($this->kdrekening5),true);\n\t\t$criteria->compare('LOWER(nmrekening5)',strtolower($this->nmrekening5),true);\n\t\t$criteria->compare('LOWER(rekening5_nb)',strtolower($this->rekening5_nb),true);\n\t\t$criteria->compare('LOWER(keterangan)',strtolower($this->keterangan),true);\n\t\tif(!empty($this->nourutrek)){\n\t\t\t$criteria->addCondition('nourutrek = '.$this->nourutrek);\n\t\t}\n\t\t$criteria->compare('LOWER(kelompokrek)',strtolower($this->kelompokrek),true);\n\t\t$criteria->compare('sak',$this->sak);\n\t\t$criteria->compare('saldodebit',$this->saldodebit);\n\t\t$criteria->compare('saldokredit',$this->saldokredit);\n\t\tif(!empty($this->bukubesar_id)){\n\t\t\t$criteria->addCondition('bukubesar_id = '.$this->bukubesar_id);\n\t\t}\n\t\t$criteria->compare('pendapatanoperasional',$this->pendapatanoperasional);\n\t\t$criteria->compare('pendapatannonoperasional',$this->pendapatannonoperasional);\n\t\t$criteria->compare('pendapatan',$this->pendapatan);\n\t\t$criteria->compare('bebanoperasional',$this->bebanoperasional);\n\t\t$criteria->compare('bebannonoperasional',$this->bebannonoperasional);\n\t\t$criteria->compare('beban',$this->beban);\n\t\t$criteria->compare('labarugisebelumpajak',$this->labarugisebelumpajak);\n\t\t$criteria->compare('pajak',$this->pajak);\n\t\t$criteria->compare('labarugi',$this->labarugi);\n\t\t$criteria->compare('LOWER(keteranganlabarugi)',strtolower($this->keteranganlabarugi),true);\n\t\t$criteria->compare('saldoakhirberjalan',$this->saldoakhirberjalan);\n\n\t\treturn $criteria;\n\t}", "public function search()\n {\n $criteria = new CDbCriteria;\n\n #count_orders\n $order_table = Order::model()->tableName();\n $order_count_sql = \"(select count(*) from `\".$order_table.\"` as pt3 where pt3.user_id = t.id)\";\n\n #first_buy\n $first_buy_sql = \"(select min(pt4.date_create) from `\".$order_table.\"` as pt4 where pt4.user_id = t.id)\";\n\n\n if((isset($this->orders_date_first) && trim($this->orders_date_first) != \"\") && (isset($this->orders_date_last) && trim($this->orders_date_last) != \"\")){\n $orders_by_period_sql = \"(select count(*) from `\".$order_table.\"` as pt7 where pt7.user_id = t.id AND pt7.date_create between '\".$this->orders_date_first.\"' AND '\".$this->orders_date_last.\"')\";\n //$criteria->join = \"INNER JOIN `\".$order_table.\"` AS pt8 where pt8.user_id = t.id\";\n }else{\n $orders_by_period_sql = \"(select count(*) from `\".$order_table.\"` as pt7 where pt7.user_id = t.id)\";\n $criteria->compare($orders_by_period_sql, $this->orders_by_period);\n }\n\n $criteria->select = array(\n '*',\n $order_count_sql . \" as order_count\",\n $first_buy_sql . \" as first_buy\",\n $orders_by_period_sql . \" as orders_by_period\",\n );\n\n if((isset($this->date_first) && trim($this->date_first) != \"\") && (isset($this->date_last) && trim($this->date_last) != \"\")){\n $criteria->addBetweenCondition('(select min(pt6.date_create) from `'.$order_table.'` as pt6 where pt6.user_id = t.id)', ''.$this->date_first.'', ''.$this->date_last.'');\n }\n\n $criteria->compare($order_count_sql, $this->order_count);\n $criteria->compare($order_count_sql, $this->order_count);\n $criteria->compare($orders_by_period_sql, $this->orders_by_period);\n $criteria->compare('t.id', $this->id);\n $criteria->compare('t.login', $this->login, true);\n $criteria->compare('t.password', $this->password, true);\n $criteria->compare('t.email', $this->email, true);\n $criteria->compare('t.display_name', $this->display_name, true);\n $criteria->compare('t.name', $this->name, true);\n $criteria->compare('t.servicename', $this->servicename, true);\n $criteria->compare('t.phone', $this->phone, true);\n $criteria->compare('t.address', $this->address);\n $criteria->compare('t.status', $this->status);\n $criteria->compare('t.discount', $this->status);\n $criteria->compare('t.camefrom', $this->camefrom);\n $criteria->compare('t.position', $this->position);\n\n\n\n return parent::searchInit($criteria);\n }", "abstract public function repository();", "public function apply()\n {\n $condition = ($this->index) ? $this->condition : 'and';\n\n // Null value check\n if ($this->operator == 'null') {\n return $this->builder->whereNull($this->field, $condition);\n }\n\n // Add not null check\n if ($this->operator == 'not null') {\n return $this->builder->whereNotNull($this->field, $condition);\n }\n\n if ($this->operator == 'between') {\n return $this->builder->whereBetween($this->field, $this->value, $condition);\n }\n\n if ($this->operator == 'in') {\n return $this->builder->whereIn($this->field, $this->value, $condition);\n }\n\n if ($this->operator == 'not in') {\n return $this->builder->whereNotIn($this->field, $this->value, $condition);\n }\n\n if ($this->operator == 'contains') {\n return $this->builder->where($this->field, 'like', \"%{$this->value}%\", $condition);\n }\n\n if ($this->operator == 'has') {\n return $this->builder->has($this->field);\n }\n\n if ($this->operator == 'doesnt have') {\n return $this->builder->doesntHave($this->field);\n }\n\n return $this->builder->where($this->field, $this->operator, $this->value, $condition);\n }", "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n $aJoin = array();\n\n $criteria->compare('id', $this->id);\n $criteria->compare('nota_fiscal', $this->nota_fiscal, true);\n $criteria->compare('preco', $this->preco, true);\n $criteria->compare('observacao', $this->observacao, true);\n $criteria->compare('quantidade', $this->quantidade);\n $criteria->compare('data_hora', $this->data_hora, true);\n $criteria->compare('excluido', $this->excluido);\n \n if (!empty($this->data_hora_inicial) && !empty($this->data_hora_final)) {\n $this->data_hora_inicial_grid = $this->data_hora_inicial;\n $this->data_hora_final_grid = $this->data_hora_final;\n $criteria->addBetweenCondition('date(data_hora)', $this->data_hora_inicial, $this->data_hora_final);\n } else if (!empty($this->data_hora_inicial_grid) && !empty($this->data_hora_final_grid)) {\n $this->data_hora_inicial = $this->data_hora_inicial_grid;\n $this->data_hora_final = $this->data_hora_final_grid;\n $criteria->addBetweenCondition('date(data_hora)', $this->data_hora_inicial, $this->data_hora_final);\n }\n if (!empty($this->produto_id)) {\n $aJoin[] = 'JOIN produtos produto ON produto.id = t.produto_id';\n $criteria->addCondition(\"produto.titulo like '%\" . $this->produto_id . \"%'\");\n }\n if (!empty($this->usuario_id)) {\n $aJoin[] = 'JOIN usuarios usuario ON usuario.id = t.usuario_id';\n $criteria->addCondition(\"usuario.nome like '%\" . $this->usuario_id . \"%'\");\n }\n if (!empty($aJoin)) {\n $criteria->join = implode(' ', $aJoin);\n }\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function criteriaSearch()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\tif(!empty($this->apprrencanggaran_id)){\n\t\t\t$criteria->addCondition('apprrencanggaran_id = '.$this->apprrencanggaran_id);\n\t\t}\n\t\tif(!empty($this->subkegiatanprogram_id)){\n\t\t\t$criteria->addCondition('subkegiatanprogram_id = '.$this->subkegiatanprogram_id);\n\t\t}\n\t\tif(!empty($this->konfiganggaran_id)){\n\t\t\t$criteria->addCondition('konfiganggaran_id = '.$this->konfiganggaran_id);\n\t\t}\n\t\tif(!empty($this->rencanggaranpengdet_id)){\n\t\t\t$criteria->addCondition('rencanggaranpengdet_id = '.$this->rencanggaranpengdet_id);\n\t\t}\n\t\tif(!empty($this->unitkerja_id)){\n\t\t\t$criteria->addCondition('unitkerja_id = '.$this->unitkerja_id);\n\t\t}\n\t\tif(!empty($this->revisirencanggpeng_id)){\n\t\t\t$criteria->addCondition('revisirencanggpeng_id = '.$this->revisirencanggpeng_id);\n\t\t}\n\t\t$criteria->compare('LOWER(tglapprrencanggaran)',strtolower($this->tglapprrencanggaran),true);\n\t\tif(!empty($this->menyetujui_id)){\n\t\t\t$criteria->addCondition('menyetujui_id = '.$this->menyetujui_id);\n\t\t}\n\t\tif(!empty($this->mengetahui_id)){\n\t\t\t$criteria->addCondition('mengetahui_id = '.$this->mengetahui_id);\n\t\t}\n\t\t$criteria->compare('LOWER(tglrencanggpeng)',strtolower($this->tglrencanggpeng),true);\n\t\t$criteria->compare('nilaiygdisetujui',$this->nilaiygdisetujui);\n\t\t$criteria->compare('LOWER(create_time)',strtolower($this->create_time),true);\n\t\t$criteria->compare('LOWER(update_time)',strtolower($this->update_time),true);\n\t\tif(!empty($this->create_loginpemakai_id)){\n\t\t\t$criteria->addCondition('create_loginpemakai_id = '.$this->create_loginpemakai_id);\n\t\t}\n\t\tif(!empty($this->update_loginpemakai_id)){\n\t\t\t$criteria->addCondition('update_loginpemakai_id = '.$this->update_loginpemakai_id);\n\t\t}\n\t\tif(!empty($this->create_ruangan)){\n\t\t\t$criteria->addCondition('create_ruangan = '.$this->create_ruangan);\n\t\t}\n\t\t$criteria->compare('nilaiygsudahalokasi',$this->nilaiygsudahalokasi);\n\t\t$criteria->compare('statusalokasi',$this->statusalokasi);\n\n\t\treturn $criteria;\n\t}", "public function newModelQuery();", "public function applyDql(QueryBuilder $builder);", "public function createQuery() {}", "public function createQuery() {}", "public function createQuery() {}", "public function addCriteria( CriteriaInterface $criteria );", "public function createQuery() {}", "public function beforeFindOneBy(array &$criteria, array &$orderBy = null) { }", "abstract public function query();", "function query() {\n \n $this->ensure_my_table();\n \n if ($this->options['operator'] == 'in') {\n $keys = array_keys($this->value);\n\n $this->query->add_where(0, $this->table_alias.'.id IN ('. implode(',', $keys).')' );\n }\n\n }", "function defineCriterias($criterio,$PreparedStatement){\n\t\t\tif(isset ($criterio[\"consumo_id\"]) && trim($criterio[\"consumo_id\"]) != \"0\"){\n\t\t\t\t$PreparedStatement .=\" AND consumo_id = \".Connection::inject($criterio[\"consumo_id\"]);\n\t\t\t}\n\t\t\tif(isset ($criterio[\"socio_id\"]) && trim($criterio[\"socio_id\"]) != \"0\"){\n\t\t\t\t$PreparedStatement .=\" AND socio_id = \".Connection::inject($criterio[\"socio_id\"]);\n\t\t\t}\n\t\t\tif(isset ($criterio[\"nro_medidor\"]) && trim($criterio[\"nro_medidor\"]) != \"0\"){\n\t\t\t\t$PreparedStatement .=\" AND nro_medidor LIKE '%\".Connection::inject($criterio[\"nro_medidor\"]).\"%'\";\n\t\t\t}\n\t\t\tif(isset ($criterio[\"fecha_lectura\"]) && trim($criterio[\"fecha_lectura\"]) != \"0\"){\n\t\t\t\t$PreparedStatement .=\" AND fecha_lectura = \".Connection::inject($criterio[\"fecha_lectura\"]);\n\t\t\t}\n\t\t\tif(isset ($criterio[\"fecha_emision\"]) && trim($criterio[\"fecha_emision\"]) != \"0\"){\n\t\t\t\t$PreparedStatement .=\" AND fecha_emision = \".Connection::inject($criterio[\"fecha_emision\"]);\n\t\t\t}\n\t\t\tif(isset ($criterio[\"periodo_mes\"]) && trim($criterio[\"periodo_mes\"]) != \"0\"){\n\t\t\t\t$PreparedStatement .=\" AND periodo_mes = \".Connection::inject($criterio[\"periodo_mes\"]);\n\t\t\t}\n\t\t\tif(isset ($criterio[\"periodo_anio\"]) && trim($criterio[\"periodo_anio\"]) != \"0\"){\n\t\t\t\t$PreparedStatement .=\" AND periodo_anio = \".Connection::inject($criterio[\"periodo_anio\"]);\n\t\t\t}\n\t\t\tif(isset ($criterio[\"consumo_total_lectura\"]) && trim($criterio[\"consumo_total_lectura\"]) != \"0\"){\n\t\t\t\t$PreparedStatement .=\" AND consumo_total_lectura = \".Connection::inject($criterio[\"consumo_total_lectura\"]);\n\t\t\t}\n\t\t\tif(isset ($criterio[\"consumo_por_pagar\"]) && trim($criterio[\"consumo_por_pagar\"]) != \"0\"){\n\t\t\t\t$PreparedStatement .=\" AND consumo_por_pagar = \".Connection::inject($criterio[\"consumo_por_pagar\"]);\n\t\t\t}\n\t\t\tif(isset ($criterio[\"costo_consumo_por_pagar\"]) && trim($criterio[\"costo_consumo_por_pagar\"]) != \"0\"){\n\t\t\t\t$PreparedStatement .=\" AND costo_consumo_por_pagar = \".Connection::inject($criterio[\"costo_consumo_por_pagar\"]);\n\t\t\t}\n\t\t\tif(isset ($criterio[\"estado\"]) && trim($criterio[\"estado\"]) != \"0\"){\n\t\t\t\t$PreparedStatement .=\" AND estado = '\".Connection::inject($criterio[\"estado\"]).\"'\";\n\t\t\t}\n\t\t\tif(isset ($criterio[\"fecha_hora_pago\"]) && trim($criterio[\"fecha_hora_pago\"]) != \"0\"){\n\t\t\t\t$PreparedStatement .=\" AND fecha_hora_pago = \".Connection::inject($criterio[\"fecha_hora_pago\"]);\n\t\t\t}\n\t\t\tif(isset ($criterio[\"usuario_pago\"]) && trim($criterio[\"usuario_pago\"]) != \"0\"){\n\t\t\t\t$PreparedStatement .=\" AND usuario_pago = \".Connection::inject($criterio[\"usuario_pago\"]);\n\t\t\t}\n\t\t\tif(isset ($criterio[\"monto_pagado\"]) && trim($criterio[\"monto_pagado\"]) != \"0\"){\n\t\t\t\t$PreparedStatement .=\" AND monto_pagado = \".Connection::inject($criterio[\"monto_pagado\"]);\n\t\t\t}\n\t\t\tif(isset ($criterio[\"pagado_por\"]) && trim($criterio[\"pagado_por\"]) != \"0\"){\n\t\t\t\t$PreparedStatement .=\" AND pagado_por = \".Connection::inject($criterio[\"pagado_por\"]);\n\t\t\t}\n\t\t\tif(isset ($criterio[\"ci_pagado_por\"]) && trim($criterio[\"ci_pagado_por\"]) != \"0\"){\n\t\t\t\t$PreparedStatement .=\" AND ci_pagado_por = \".Connection::inject($criterio[\"ci_pagado_por\"]);\n\t\t\t}\n\t\t\treturn $PreparedStatement;\n\t\t}", "public function mydraftsearch()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\t\t/*\n\t\t$criteria->condition = 'miscellaneous_fees_payment_cheque_student_id = :studentid';\n\t $criteria->params = array(':studentid' => $_REQUEST['id']);\n\t\t$criteria->condition = 'miscellaneous_fees_payment_cheque_draft_status = 2';*/\n\n\t\t$criteria->condition = \"miscellaneous_fees_payment_cheque_student_id = :studentid && miscellaneous_fees_payment_cheque_draft_status = :miscellaneous_fees_payment_cheque_draft_status\";\n\t\t$criteria->params = array (\n\t\t':studentid' => $_REQUEST['id'],\n\t\t':miscellaneous_fees_payment_cheque_draft_status' => 2,\n\t\t);\n\n\n\n\n\t\t$criteria->compare('miscellaneous_fees_payment_cheque_master_id',$this->miscellaneous_fees_payment_cheque_master_id);\n\t\t$criteria->compare('miscellaneous_fees_payment_cheque_id',$this->miscellaneous_fees_payment_cheque_id);\n\t\t$criteria->compare('miscellaneous_fees_payment_cheque_number',$this->miscellaneous_fees_payment_cheque_number);\n\t\t$criteria->compare('miscellaneous_fees_payment_cheque_date',$this->miscellaneous_fees_payment_cheque_date,true);\n\t\t$criteria->compare('miscellaneous_fees_payment_cheque_bank',$this->miscellaneous_fees_payment_cheque_bank);\n\t\t$criteria->compare('miscellaneous_fees_payment_cheque_branch',$this->miscellaneous_fees_payment_cheque_branch,true);\n\t\t$criteria->compare('miscellaneous_fees_payment_cheque_amount',$this->miscellaneous_fees_payment_cheque_amount);\n\t\t$criteria->compare('miscellaneous_fees_payment_cheque_status',$this->miscellaneous_fees_payment_cheque_status);\n\t\t$criteria->compare('miscellaneous_fees_payment_cheque_draft_status',$this->miscellaneous_fees_payment_cheque_draft_status);\n\t\t$criteria->compare('miscellaneous_fees_payment_cheque_student_id',$this->miscellaneous_fees_payment_cheque_student_id);\n\t\t$criteria->compare('miscellaneous_fees_payment_cheque_receipt_id',$this->miscellaneous_fees_payment_cheque_receipt_id);\n\n\t\t$draft_data = new CActiveDataProvider(get_class($this), array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t\t$_SESSION['draft_data']=$draft_data;\n\t\treturn $draft_data;\n\t}", "public function criteriaSearch()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\tif(!empty($this->indikatorperilaku_id)){\n\t\t\t$criteria->addCondition('indikatorperilaku_id = '.$this->indikatorperilaku_id);\n\t\t}\n\t\tif(!empty($this->jabatan_id)){\n\t\t\t$criteria->addCondition('jabatan_id = '.$this->jabatan_id);\n\t\t}\n\t\tif(!empty($this->kompetensi_id)){\n\t\t\t$criteria->addCondition('kompetensi_id = '.$this->kompetensi_id);\n\t\t}\n\t\tif(!empty($this->jenispenilaian_id)){\n\t\t\t$criteria->addCondition('jenispenilaian_id = '.$this->jenispenilaian_id);\n\t\t}\n\t\t$criteria->compare('LOWER(indikatorperilaku_nama)',strtolower($this->indikatorperilaku_nama),true);\n\t\t$criteria->compare('LOWER(indikatorperilaku_namalain)',strtolower($this->indikatorperilaku_namalain),true);\n\t\t//$criteria->compare('indikatorperilaku_aktif',$this->indikatorperilaku_aktif);\n\t\t$criteria->compare('indikatorperilaku_aktif',isset($this->indikatorperilaku_aktif)?$this->indikatorperilaku_aktif:true);\n\n\t\treturn $criteria;\n\t}", "public function criteriaSearch()\n {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria=new CDbCriteria;\n\n if(!empty($this->mcatatandokter_id)){\n $criteria->addCondition('mcatatandokter_id = '.$this->mcatatandokter_id);\n }\n if(!empty($this->pegawai_id)){\n $criteria->addCondition('pegawai_id = '.$this->pegawai_id);\n }\n if(!empty($this->mkategoricatatan_id)){\n $criteria->addCondition('mkategoricatatan_id = '.$this->mkategoricatatan_id);\n }\n $criteria->compare('LOWER(judulcatatan)',strtolower($this->judulcatatan),true);\n $criteria->compare('LOWER(isicatatan)',strtolower($this->isicatatan),true);\n $criteria->compare('LOWER(status_catatan)',strtolower($this->status_catatan),true);\n $criteria->compare('LOWER(tglrencana)',strtolower($this->tglrencana),true);\n $criteria->compare('LOWER(tempat_kegiatan)',strtolower($this->tempat_kegiatan),true);\n $criteria->compare('LOWER(alamat_kegiatan)',strtolower($this->alamat_kegiatan),true);\n $criteria->compare('LOWER(create_time)',strtolower($this->create_time),true);\n $criteria->compare('LOWER(update_time)',strtolower($this->update_time),true);\n if(!empty($this->create_loginpemakai_id)){\n $criteria->addCondition('create_loginpemakai_id = '.$this->create_loginpemakai_id);\n }\n if(!empty($this->update_loginpemakai_id)){\n $criteria->addCondition('update_loginpemakai_id = '.$this->update_loginpemakai_id);\n }\n\n return $criteria;\n }", "public function searchProfessionals($pCriteria){\n\t\t// \t-> get();\n\n\t// \t return $this -> professional -> join('pros_specs', 'professionals.ID', '=', 'pros_specs.professionalID')\n\t// \t\t -> join('specializations', 'specializations.ID', '=', 'pros_specs.specializationID')\n\t// \t\t-> join('pros_creativefields', 'professionals.ID', '=', 'pros_creativefields.ProfessionalID')\n\t// \t\t-> join('creativefields', 'pros_creativefields.CreativeFieldID', '=', 'creativefields.ID')\n\t// \t\t-> join('pros_platforms', 'professionals.ID', '=', 'pros_platforms.ProfessionalID')\n\t// \t\t-> join('platforms', 'platforms.ID', '=', 'pros_platforms.PlatformID')\n\t// \t\t-> join('cities', 'professionals.CityID', '=', 'Cities.ID')\n\t// \t\t-> where('CompanyName', 'LIKE', '%' . $pCriteria['pCompanyName'] . '%')\n\t// \t\t-> whereIn('specializations.ID', $pCriteria['pSpecializations'])\n\t// \t\t-> whereIn('creativefields.ID', $pCriteria['pCreativeFields'])\n\t// \t\t-> whereIn('platforms.ID', $pCriteria['pPlatforms'])\n\t// \t\t-> whereIn('cities.ID', $pCriteria['pCities']) \n\t// \t\t-> groupBy('professionals.ID')\n\t// \t\t-> distinct() -> get();\n\t// }\n\n\t\t$searchQuery = $this -> professional -> queryJoiningTables();\n\n\t\tif(!is_null($pCriteria['pCompanyName'])){\n\t\t\t$searchQuery = $searchQuery -> queryCompanyName($pCriteria['pCompanyName']);\n\t\t}\n\n\t\tif(!is_null($pCriteria['pSpecializations'])){\n\t\t\t$searchQuery = $searchQuery -> querySpecializations($pCriteria['pSpecializations']);\n\t\t}\n\n\t\tif(!is_null($pCriteria['pCreativeFields'])){\n\t\t\t$searchQuery = $searchQuery -> queryCreativeFields($pCriteria['pCreativeFields']);\n\t\t}\n\n\t\tif(!is_null($pCriteria['pPlatforms'])){\n\t\t\t$searchQuery = $searchQuery -> queryPlatforms($pCriteria['pPlatforms']);\n\t\t}\n\n\t\tif(!is_null($pCriteria['pCities'])){\n\t\t\t$searchQuery = $searchQuery -> queryCities($pCriteria['pCities']);\n\t\t}\n\n\n\n\t\treturn $searchQuery -> groupBy('professionals.ID') \n\t\t\t-> distinct() -> get(array('Professionals.*'));\n\t}", "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n $id= Yii::app()->user->getId();\n\t\t$criteria=new CDbCriteria;\n $criteria->alias = 'p';\n $criteria->select = 'espl_project.id as id,espl_proposal.project_title, CONCAT(sum( cast(time_hrs as decimal(10,2)) + cast( (time_mins/60) as decimal(10,2)) ) ,\" hrs\") as totalhrs,timesheet_date,p.id as timeid,p.project_id,p.user_id,p.time_hrs,p.time_mins,p.timesheet_date,p.created_date,p.modified_date';\n $criteria->compare('id',$this->id);\n $criteria->compare('timeid',$this->timeid);\n\t\t$criteria->compare('project_id',$this->project_id);\n\t\t$criteria->compare('user_id',$this->user_id);\n\t\t$criteria->compare('time_hrs',$this->time_hrs,true);\n\t\t$criteria->compare('time_mins',$this->time_mins,true);\n\t\t$criteria->compare('timesheet_date',$this->timesheet_date,true);\n\t\t$criteria->compare('created_date',$this->created_date,true);\n\t\t$criteria->compare('modified_date',$this->modified_date,true);\n\t\t$criteria->compare('project_title',$this->project_title,true);\n\t\t$criteria->compare('totalhrs',$this->totalhrs,true);\n\t\t$criteria->compare('timesheet_date',$this->timesheet_date,true);\n\t\t$criteria->compare('totalmins',$this->totalmins,true);\n\n $criteria->join= 'right join espl_project on espl_project.id = p.project_id inner join espl_proposal on espl_proposal.id = espl_project.proposal_id';\n if( Yii::app()->user->getState('role') !=\"Admin\"){\n $criteria->addCondition('p.user_id = ' . $id);//this is where condition\n }\n $criteria->together = true;\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "protected function assembleQueries()\n {\n if ($this->getExecutedFilters()) {\n return $this;\n }\n\n $objectType = $this->getObjectType();\n\n $whereConditions = [];\n\n $mainTable = $this->getEntityService()->getTableName($objectType);\n $pre = 'v2';\n $dqlFilters = [];\n $tables = $this->getEntityService()->getVarOptionTables();\n $bindTypes = [];\n $pdoBindTypes = $this->getEntityService()->getPdoBindTypes();\n $filterable = $this->getFilterable();\n\n $x = 0; //count($this->getFilters()); // for tracking bind types\n\n // handle basic filters eg key=value\n // also, special handling of price range\n $filterParams = [];\n if ($this->getFilters()) {\n foreach($this->getFilters() as $field => $value) {\n foreach($filterable as $filterInfo) {\n if ($field == $filterInfo[CartRepositoryInterface::CODE]) {\n\n // handle special case for numerical ranges\n // eg price=100-199 or subtotal=50-100\n // note : the handling of strpos is very intentional, want an index > 0\n if ($filterInfo[CartRepositoryInterface::DATATYPE] == 'number' && strpos($value, '-')) {\n $rangeValues = explode('-', $value);\n $rangeMin = $rangeValues[0];\n $rangeMax = isset($rangeValues[1]) ? $rangeValues[1] : null;\n if (isset($rangeMax)) {\n\n $rangeMin = (float) $rangeMin;\n $rangeMax = (float) $rangeMax;\n\n // minimum\n $this->addAdvFilter([\n 'field' => $field,\n 'op' => 'gte',\n 'value' => $rangeMin,\n ]);\n\n // maximum\n $this->addAdvFilter([\n 'field' => $field,\n 'op' => 'lt',\n 'value' => $rangeMax,\n ]);\n\n break;\n }\n }\n\n if (isset($filterInfo['join'])) {\n $this->joins[] = $filterInfo['join'];\n $field = $filterInfo['join']['table'] . \".{$field}\";\n } elseif (!is_int(strpos($field, '.'))) {\n $field = \"main.{$field}\";\n }\n\n $whereConditions[] = \"{$field} = ?\";\n $filterParams[] = $value;\n\n switch($filterInfo[CartRepositoryInterface::DATATYPE]) {\n case 'boolean':\n $bindTypes[$x] = \\PDO::PARAM_INT;\n break;\n case 'number':\n // todo : make this better\n $bindTypes[$x] = \\PDO::PARAM_INT;\n break;\n case 'string':\n $bindTypes[$x] = \\PDO::PARAM_STR;\n break;\n case 'date':\n $bindTypes[$x] = \\PDO::PARAM_STR;\n break;\n default:\n $bindTypes[$x] = \\PDO::PARAM_STR;\n break;\n }\n\n $x++;\n break;\n }\n }\n }\n }\n\n // handle fulltext search first\n\n // note : use setFulltextIds() if you search somewhere else first eg SOLR / Elasticsearch\n if ($this->getFulltextIds()) {\n // ensure IDs are sanitized before you set them\n $whereConditions[] = \"main.id in (\" . implode(',', $this->getFulltextIds()) . \")\";\n } else if ($this->getQuery()\n && $this->getSearchField()\n && $this->getSearchMethod()) {\n\n if (is_array($this->getSearchField())) {\n if (count($this->getSearchField()) > 1) {\n\n $cond = '';\n foreach($this->getSearchField() as $searchField) {\n $bindTypes[$x] = \\PDO::PARAM_STR;\n\n $tbl = 'main';\n\n if (is_array($searchField)) {\n if (isset($searchField['table']) && isset($searchField['column'])) {\n $tbl = $searchField['table'];\n $searchField = $searchField['column'];\n } else {\n continue;\n }\n }\n\n // cond is empty, add a leading parentheses\n if (!$cond) {\n $cond .= \"({$tbl}.{$searchField} like ?\";\n } else {\n $cond .= \" OR {$tbl}.{$searchField} like ?\";\n }\n $x++;\n }\n $cond .= ')';\n $whereConditions[] = $cond;\n } else {\n\n $fields = $this->getSearchField();\n $searchField = $fields[0];\n if (is_array($searchField)) {\n if (isset($searchField['table']) && isset($searchField['column'])) {\n $tbl = $searchField['table'];\n $searchField = $searchField['column'];\n\n $bindTypes[$x] = \\PDO::PARAM_STR;\n $whereConditions[] = \"{$tbl}.{$searchField} like ?\";\n $x++;\n }\n } else {\n $bindTypes[$x] = \\PDO::PARAM_STR;\n $whereConditions[] = \"main.{$searchField} like ?\";\n $x++;\n }\n }\n } else {\n $bindTypes[$x] = \\PDO::PARAM_STR;\n $whereConditions[] = \"main.{$this->getSearchField()} like ?\";\n $x++;\n }\n }\n\n // handle \"advanced\" filters\n // eg filter_field[x], filter_op[x], filter_val[x]\n // specifies a field, value, and operator ie (id > 100)\n $advFilterParams = [];\n if ($this->getAdvFilters()) {\n foreach($this->getAdvFilters() as $advFilter) {\n\n $field = $advFilter['field'];\n $op = $advFilter['op'];\n $value = $advFilter['value'];\n $table = isset($advFilter['table'])\n ? $advFilter['table']\n : 'main';\n\n $found = false;\n foreach($filterable as $filterInfo) {\n if ($field == $filterInfo[CartRepositoryInterface::CODE]) {\n $found = true;\n\n switch($filterInfo[CartRepositoryInterface::DATATYPE]) {\n case 'boolean':\n $bindTypes[$x] = \\PDO::PARAM_INT;\n $x++;\n break;\n case 'number':\n if ($op == 'in') {\n if (!is_array($value)) {\n $value = explode(',', $value);\n }\n if ($value) {\n foreach($value as $dummy) {\n $bindTypes[$x] = \\PDO::PARAM_INT;\n $x++;\n }\n }\n } else {\n $bindTypes[$x] = \\PDO::PARAM_INT;\n $x++;\n }\n break;\n case 'string':\n if ($op == 'in') {\n if (!is_array($value)) {\n $value = explode(',', $value);\n }\n if ($value) {\n foreach($value as $dummy) {\n $bindTypes[$x] = \\PDO::PARAM_STR;\n $x++;\n }\n }\n } else {\n $bindTypes[$x] = \\PDO::PARAM_STR;\n $x++;\n }\n\n break;\n case 'date':\n $bindTypes[$x] = \\PDO::PARAM_STR;\n $x++;\n break;\n default:\n $bindTypes[$x] = \\PDO::PARAM_STR;\n $x++;\n break;\n }\n\n\n break;\n }\n }\n\n if (!$found || !in_array($op, ['contains', 'starts', 'ends', 'equals', 'gt', 'gte', 'lt', 'lte', 'in'])) {\n continue;\n }\n\n // example:\n // $and->add($qb->expr()->eq('u.id', 1));\n\n switch($op) {\n case 'contains':\n $advFilterParams[] = '%'. $value . '%';\n $whereConditions[] = \"{$table}.{$field} like ?\";\n break;\n case 'starts':\n $advFilterParams[] = $value . '%';\n $whereConditions[] = \"{$table}.{$field} like ?\";\n break;\n case 'ends':\n $advFilterParams[] = '%'. $value;\n $whereConditions[] = \"{$table}.{$field} like ?\";\n break;\n case 'equals':\n $advFilterParams[] = $value;\n $whereConditions[] = \"{$table}.{$field} = ?\";\n break;\n case 'notequal':\n $advFilterParams[] = $value;\n $whereConditions[] = \"{$table}.{$field} != ?\";\n break;\n// todo: this is messing up the counter, but it should be implemented\n// case 'null':\n// $advFilterParams[] = 'NULL';\n// $whereConditions[] = \"{$table}.{$field} IS ?\";\n// break;\n// case 'notnull':\n// $advFilterParams[] = $value;\n// $whereConditions[] = \"{$table}.{$field} IS NOT NULL\";\n// break;\n case 'gt':\n $advFilterParams[] = $value;\n $whereConditions[] = \"{$table}.{$field} > ?\";\n break;\n case 'gte':\n $advFilterParams[] = $value;\n $whereConditions[] = \"{$table}.{$field} >= ?\";\n break;\n case 'lt':\n $advFilterParams[] = $value;\n $whereConditions[] = \"{$table}.{$field} < ?\";\n break;\n case 'lte':\n $advFilterParams[] = $value;\n $whereConditions[] = \"{$table}.{$field} <= ?\";\n break;\n case 'in':\n if (!is_array($value)) {\n $value = explode(',', $value);\n }\n\n if ($value) {\n foreach($value as $val) {\n $advFilterParams[] = $val;\n }\n $paramStr = implode(',', $value);\n $whereConditions[] = \"{$table}.{$field} in ({$paramStr})\";\n }\n\n break;\n default:\n\n break;\n }\n }\n }\n\n // handle category filter with products\n if ($this->getCategoryId()\n && $this->getObjectType() == EntityConstants::PRODUCT) {\n\n $categoryTable = $this->getEntityService()->getTableName(EntityConstants::CATEGORY_PRODUCT);\n $bindTypes[$x] = \\PDO::PARAM_INT;\n // todo : sometime in the future , add a category 'anchor', connecting multiple categories\n $whereConditions[] = \"main.id in (select product_id from {$categoryTable} where category_id = ?)\";\n $x++;\n }\n\n // handle stock, visibility filters with products\n\n\n // handle facet filters\n // ie filters on EAV tables, child tables\n $facetFilterParams = [];\n if ($this->getFacetFilters()) {\n foreach($this->getFacetFilters() as $facetCode => $value) {\n\n $itemVar = $this->getVarByCode($facetCode);\n\n $tblValue = $objectType . '_' . EntityConstants::getVarDatatype($itemVar->getDatatype());\n $values = explode($this->valueSep, $value);\n $joinTbl = $tables[$itemVar->getDatatype()];\n $joinTblPre = 'ivo';\n\n if (count($values) > 1) {\n $conditions = [];\n foreach($values as $itemVarValue) {\n $conditions[] = \"({$pre}.value = ? OR {$joinTblPre}.url_value = ?)\";\n $facetFilterParams[] = $itemVarValue;\n\n $bindTypes[$x] = $pdoBindTypes[$itemVar->getDatatype()];\n $x++;\n\n $bindTypes[$x] = $pdoBindTypes[$itemVar->getDatatype()];\n $x++;\n\n }\n $dqlFilters[] = \"({$pre}.item_var_id={$itemVar->getId()} AND (\".implode(' OR ', $conditions).\"))\";\n } else {\n $dqlFilters[] = \"({$pre}.item_var_id={$itemVar->getId()} AND ({$pre}.value = ? OR {$joinTblPre}.url_value = ?))\";\n $facetFilterParams[] = $value;\n\n $bindTypes[$x] = $pdoBindTypes[$itemVar->getDatatype()];\n $x++;\n\n $bindTypes[$x] = $pdoBindTypes[$itemVar->getDatatype()];\n $x++;\n }\n\n $whereConditions[] = \"main.id in (select parent_id from {$tblValue} {$pre} left join {$joinTbl} {$joinTblPre} on {$pre}.item_var_option_id={$joinTblPre}.id where \". implode(' AND ', $dqlFilters).\")\";\n $dqlFilters = [];\n\n }\n }\n\n // assemble where conditions\n $conditionsSql = implode(' AND ', $whereConditions);\n if (!$conditionsSql) {\n $conditionsSql = '1=1';\n }\n\n // assemble group by\n $groupSql = $this->getGroupBy()\n ? 'group by ' . implode(', ', $this->getGroupBy())\n : '';\n\n // assemble select columns\n $colSql = '';\n if ($this->getColumns()) {\n $cols = [];\n foreach($this->getColumns() as $colData) {\n // add select\n $select = $colData['select'];\n $alias = $colData['alias'];\n if ($alias) {\n $select .= \" as {$alias}\";\n }\n\n $cols[] = $select;\n }\n $colSql = ',' . implode(',', $cols);\n }\n\n // assemble joins\n $joinSql = '';\n if ($this->getJoins()) {\n $joins = [];\n foreach($this->getJoins() as $join) {\n $type = $join['type'];\n $table = $join['table'];\n $column = $join['column'];\n $joinAlias = $join['join_alias'];\n $joinColumn = $join['join_column'];\n $joins[] = \"{$type} join {$table} on {$joinAlias}.{$joinColumn}={$table}.{$column}\";\n }\n $joinSql = implode(' ', $joins);\n }\n\n // main data query without sorting and grouping\n $this->filtersSql = \"select distinct(main.id) from {$mainTable} main {$joinSql} where {$conditionsSql}\";\n // main data query\n $this->mainSql = \"select distinct(main.id), main.* {$colSql} from {$mainTable} main {$joinSql} where {$conditionsSql} {$groupSql}\";\n // main count query, for all rows, not just the current page\n $this->countSql = \"select count(distinct(main.id)) as count from {$mainTable} main {$joinSql} where {$conditionsSql} {$groupSql}\";\n $this->bindTypes = $bindTypes;\n $this->filterParams = $filterParams;\n $this->advFilterParams = $advFilterParams;\n $this->facetFilterParams = $facetFilterParams;\n\n $this->setExecutedFilters(true);\n return $this;\n }", "public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(UsuarioPeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(UsuarioPeer::ID)) $criteria->add(UsuarioPeer::ID, $this->id);\n\t\tif ($this->isColumnModified(UsuarioPeer::PERFIL_ID)) $criteria->add(UsuarioPeer::PERFIL_ID, $this->perfil_id);\n\t\tif ($this->isColumnModified(UsuarioPeer::ENDERECO_ID)) $criteria->add(UsuarioPeer::ENDERECO_ID, $this->endereco_id);\n\t\tif ($this->isColumnModified(UsuarioPeer::CARGO_ID)) $criteria->add(UsuarioPeer::CARGO_ID, $this->cargo_id);\n\t\tif ($this->isColumnModified(UsuarioPeer::DEPARTAMENTO_ID)) $criteria->add(UsuarioPeer::DEPARTAMENTO_ID, $this->departamento_id);\n\t\tif ($this->isColumnModified(UsuarioPeer::MATRICULA)) $criteria->add(UsuarioPeer::MATRICULA, $this->matricula);\n\t\tif ($this->isColumnModified(UsuarioPeer::NOME)) $criteria->add(UsuarioPeer::NOME, $this->nome);\n\t\tif ($this->isColumnModified(UsuarioPeer::EMAIL)) $criteria->add(UsuarioPeer::EMAIL, $this->email);\n\t\tif ($this->isColumnModified(UsuarioPeer::DNI)) $criteria->add(UsuarioPeer::DNI, $this->dni);\n\t\tif ($this->isColumnModified(UsuarioPeer::DATA_NASCIMENTO)) $criteria->add(UsuarioPeer::DATA_NASCIMENTO, $this->data_nascimento);\n\t\tif ($this->isColumnModified(UsuarioPeer::DATA_CONTRATACAO)) $criteria->add(UsuarioPeer::DATA_CONTRATACAO, $this->data_contratacao);\n\t\tif ($this->isColumnModified(UsuarioPeer::CELULAR)) $criteria->add(UsuarioPeer::CELULAR, $this->celular);\n\t\tif ($this->isColumnModified(UsuarioPeer::TELEFONE)) $criteria->add(UsuarioPeer::TELEFONE, $this->telefone);\n\t\tif ($this->isColumnModified(UsuarioPeer::TOKEN)) $criteria->add(UsuarioPeer::TOKEN, $this->token);\n\t\tif ($this->isColumnModified(UsuarioPeer::NOME_USUARIO)) $criteria->add(UsuarioPeer::NOME_USUARIO, $this->nome_usuario);\n\t\tif ($this->isColumnModified(UsuarioPeer::SENHA)) $criteria->add(UsuarioPeer::SENHA, $this->senha);\n\t\tif ($this->isColumnModified(UsuarioPeer::TOKEN_SENHA)) $criteria->add(UsuarioPeer::TOKEN_SENHA, $this->token_senha);\n\t\tif ($this->isColumnModified(UsuarioPeer::TOKEN_FIREBASE)) $criteria->add(UsuarioPeer::TOKEN_FIREBASE, $this->token_firebase);\n\t\tif ($this->isColumnModified(UsuarioPeer::DATA_RESCISAO)) $criteria->add(UsuarioPeer::DATA_RESCISAO, $this->data_rescisao);\n\t\tif ($this->isColumnModified(UsuarioPeer::ATIVO)) $criteria->add(UsuarioPeer::ATIVO, $this->ativo);\n\t\tif ($this->isColumnModified(UsuarioPeer::TIPO_ACESSO)) $criteria->add(UsuarioPeer::TIPO_ACESSO, $this->tipo_acesso);\n\t\tif ($this->isColumnModified(UsuarioPeer::ESTADO_CIVIL)) $criteria->add(UsuarioPeer::ESTADO_CIVIL, $this->estado_civil);\n\t\tif ($this->isColumnModified(UsuarioPeer::NIVEL_ACESSO)) $criteria->add(UsuarioPeer::NIVEL_ACESSO, $this->nivel_acesso);\n\t\tif ($this->isColumnModified(UsuarioPeer::USUARIO_VALIDADO)) $criteria->add(UsuarioPeer::USUARIO_VALIDADO, $this->usuario_validado);\n\t\tif ($this->isColumnModified(UsuarioPeer::SEXO)) $criteria->add(UsuarioPeer::SEXO, $this->sexo);\n\t\tif ($this->isColumnModified(UsuarioPeer::DATA_CADASTRO)) $criteria->add(UsuarioPeer::DATA_CADASTRO, $this->data_cadastro);\n\n\t\treturn $criteria;\n\t}", "public function getCriteriaCollection(): CriteriaCollection;", "public function buildCriteria()\n {\n $criteria = new Criteria(BangunanPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(BangunanPeer::ID_BANGUNAN)) $criteria->add(BangunanPeer::ID_BANGUNAN, $this->id_bangunan);\n if ($this->isColumnModified(BangunanPeer::JENIS_PRASARANA_ID)) $criteria->add(BangunanPeer::JENIS_PRASARANA_ID, $this->jenis_prasarana_id);\n if ($this->isColumnModified(BangunanPeer::SEKOLAH_ID)) $criteria->add(BangunanPeer::SEKOLAH_ID, $this->sekolah_id);\n if ($this->isColumnModified(BangunanPeer::ID_TANAH)) $criteria->add(BangunanPeer::ID_TANAH, $this->id_tanah);\n if ($this->isColumnModified(BangunanPeer::PTK_ID)) $criteria->add(BangunanPeer::PTK_ID, $this->ptk_id);\n if ($this->isColumnModified(BangunanPeer::ID_HAPUS_BUKU)) $criteria->add(BangunanPeer::ID_HAPUS_BUKU, $this->id_hapus_buku);\n if ($this->isColumnModified(BangunanPeer::KEPEMILIKAN_SARPRAS_ID)) $criteria->add(BangunanPeer::KEPEMILIKAN_SARPRAS_ID, $this->kepemilikan_sarpras_id);\n if ($this->isColumnModified(BangunanPeer::KD_KL)) $criteria->add(BangunanPeer::KD_KL, $this->kd_kl);\n if ($this->isColumnModified(BangunanPeer::KD_SATKER)) $criteria->add(BangunanPeer::KD_SATKER, $this->kd_satker);\n if ($this->isColumnModified(BangunanPeer::KD_BRG)) $criteria->add(BangunanPeer::KD_BRG, $this->kd_brg);\n if ($this->isColumnModified(BangunanPeer::NUP)) $criteria->add(BangunanPeer::NUP, $this->nup);\n if ($this->isColumnModified(BangunanPeer::KODE_ESELON1)) $criteria->add(BangunanPeer::KODE_ESELON1, $this->kode_eselon1);\n if ($this->isColumnModified(BangunanPeer::NAMA_ESELON1)) $criteria->add(BangunanPeer::NAMA_ESELON1, $this->nama_eselon1);\n if ($this->isColumnModified(BangunanPeer::KODE_SUB_SATKER)) $criteria->add(BangunanPeer::KODE_SUB_SATKER, $this->kode_sub_satker);\n if ($this->isColumnModified(BangunanPeer::NAMA_SUB_SATKER)) $criteria->add(BangunanPeer::NAMA_SUB_SATKER, $this->nama_sub_satker);\n if ($this->isColumnModified(BangunanPeer::NAMA)) $criteria->add(BangunanPeer::NAMA, $this->nama);\n if ($this->isColumnModified(BangunanPeer::PANJANG)) $criteria->add(BangunanPeer::PANJANG, $this->panjang);\n if ($this->isColumnModified(BangunanPeer::LEBAR)) $criteria->add(BangunanPeer::LEBAR, $this->lebar);\n if ($this->isColumnModified(BangunanPeer::NILAI_PEROLEHAN_ASET)) $criteria->add(BangunanPeer::NILAI_PEROLEHAN_ASET, $this->nilai_perolehan_aset);\n if ($this->isColumnModified(BangunanPeer::JML_LANTAI)) $criteria->add(BangunanPeer::JML_LANTAI, $this->jml_lantai);\n if ($this->isColumnModified(BangunanPeer::THN_DIBANGUN)) $criteria->add(BangunanPeer::THN_DIBANGUN, $this->thn_dibangun);\n if ($this->isColumnModified(BangunanPeer::LUAS_TAPAK_BANGUNAN)) $criteria->add(BangunanPeer::LUAS_TAPAK_BANGUNAN, $this->luas_tapak_bangunan);\n if ($this->isColumnModified(BangunanPeer::VOL_PONDASI_M3)) $criteria->add(BangunanPeer::VOL_PONDASI_M3, $this->vol_pondasi_m3);\n if ($this->isColumnModified(BangunanPeer::VOL_SLOOP_KOLOM_BALOK_M3)) $criteria->add(BangunanPeer::VOL_SLOOP_KOLOM_BALOK_M3, $this->vol_sloop_kolom_balok_m3);\n if ($this->isColumnModified(BangunanPeer::PANJ_KUDAKUDA_M)) $criteria->add(BangunanPeer::PANJ_KUDAKUDA_M, $this->panj_kudakuda_m);\n if ($this->isColumnModified(BangunanPeer::VOL_KUDAKUDA_M3)) $criteria->add(BangunanPeer::VOL_KUDAKUDA_M3, $this->vol_kudakuda_m3);\n if ($this->isColumnModified(BangunanPeer::PANJ_KASO_M)) $criteria->add(BangunanPeer::PANJ_KASO_M, $this->panj_kaso_m);\n if ($this->isColumnModified(BangunanPeer::PANJ_RENG_M)) $criteria->add(BangunanPeer::PANJ_RENG_M, $this->panj_reng_m);\n if ($this->isColumnModified(BangunanPeer::LUAS_TUTUP_ATAP_M2)) $criteria->add(BangunanPeer::LUAS_TUTUP_ATAP_M2, $this->luas_tutup_atap_m2);\n if ($this->isColumnModified(BangunanPeer::KD_SATKER_TANAH)) $criteria->add(BangunanPeer::KD_SATKER_TANAH, $this->kd_satker_tanah);\n if ($this->isColumnModified(BangunanPeer::NM_SATKER_TANAH)) $criteria->add(BangunanPeer::NM_SATKER_TANAH, $this->nm_satker_tanah);\n if ($this->isColumnModified(BangunanPeer::KD_BRG_TANAH)) $criteria->add(BangunanPeer::KD_BRG_TANAH, $this->kd_brg_tanah);\n if ($this->isColumnModified(BangunanPeer::NM_BRG_TANAH)) $criteria->add(BangunanPeer::NM_BRG_TANAH, $this->nm_brg_tanah);\n if ($this->isColumnModified(BangunanPeer::NUP_BRG_TANAH)) $criteria->add(BangunanPeer::NUP_BRG_TANAH, $this->nup_brg_tanah);\n if ($this->isColumnModified(BangunanPeer::TGL_SK_PEMAKAI)) $criteria->add(BangunanPeer::TGL_SK_PEMAKAI, $this->tgl_sk_pemakai);\n if ($this->isColumnModified(BangunanPeer::TGL_HAPUS_BUKU)) $criteria->add(BangunanPeer::TGL_HAPUS_BUKU, $this->tgl_hapus_buku);\n if ($this->isColumnModified(BangunanPeer::KET_BANGUNAN)) $criteria->add(BangunanPeer::KET_BANGUNAN, $this->ket_bangunan);\n if ($this->isColumnModified(BangunanPeer::ASAL_DATA)) $criteria->add(BangunanPeer::ASAL_DATA, $this->asal_data);\n if ($this->isColumnModified(BangunanPeer::CREATE_DATE)) $criteria->add(BangunanPeer::CREATE_DATE, $this->create_date);\n if ($this->isColumnModified(BangunanPeer::LAST_UPDATE)) $criteria->add(BangunanPeer::LAST_UPDATE, $this->last_update);\n if ($this->isColumnModified(BangunanPeer::SOFT_DELETE)) $criteria->add(BangunanPeer::SOFT_DELETE, $this->soft_delete);\n if ($this->isColumnModified(BangunanPeer::LAST_SYNC)) $criteria->add(BangunanPeer::LAST_SYNC, $this->last_sync);\n if ($this->isColumnModified(BangunanPeer::UPDATER_ID)) $criteria->add(BangunanPeer::UPDATER_ID, $this->updater_id);\n\n return $criteria;\n }", "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n \n // Ensure search is only on user's records\n $criteria->addColumnCondition(array('userId' => Yii::app()->user->id));\n\n\t\t$criteria->compare('uuid',$this->uuid,true);\n\t\t$criteria->compare('pt_age',$this->pt_age);\n\t\t$criteria->compare('pt_sex',$this->pt_sex,true);\n\t\t$criteria->compare('pt_postcode',$this->pt_postcode,true);\n\t\t$criteria->compare('asmt_date',$this->asmt_date,true);\n\t\t$criteria->compare('asmt_date_vision_loss',$this->asmt_date_vision_loss,true);\n\t\t$criteria->compare('asmt_eye',$this->asmt_eye,true);\n\t\t$criteria->compare('asmt_refraction',$this->asmt_refraction,true);\n\t\t$criteria->compare('asmt_acuity',$this->asmt_acuity);\n\t\t$criteria->compare('asmt_lens',$this->asmt_lens,true);\n\t\t$criteria->compare('asmt_iop',$this->asmt_iop);\n\t\t$criteria->compare('asmt_previous_op_date',$this->asmt_previous_op_date,true);\n\t\t$criteria->compare('asmt_vitreous',$this->asmt_vitreous,true);\n\t\t$criteria->compare('asmt_vithaem',$this->asmt_vithaem,true);\n\t\t$criteria->compare('fe_refraction',$this->fe_refraction,true);\n\t\t$criteria->compare('fe_acuity',$this->fe_acuity);\n\t\t$criteria->compare('fe_vitreous',$this->fe_vitreous,true);\n\t\t$criteria->compare('fe_retinal_detachment',$this->fe_retinal_detachment);\n\t\t$criteria->compare('op_date',$this->op_date,true);\n\t\t$criteria->compare('op_surgeon_grade',$this->op_surgeon_grade,true);\n\t\t$criteria->compare('op_cause_of_failure',$this->op_cause_of_failure,true);\n\t\t$criteria->compare('op_foveal_attachment',$this->op_foveal_attachment,true);\n\t\t$criteria->compare('op_extent_st',$this->op_extent_st,true);\n\t\t$criteria->compare('op_extent_sn',$this->op_extent_sn,true);\n\t\t$criteria->compare('op_extent_in',$this->op_extent_in,true);\n\t\t$criteria->compare('op_extent_it',$this->op_extent_it,true);\n\t\t$criteria->compare('op_chronic',$this->op_chronic);\n\t\t$criteria->compare('op_pvr_type',$this->op_pvr_type,true);\n\t\t$criteria->compare('op_pvr_cp',$this->op_pvr_cp,true);\n\t\t$criteria->compare('op_pvr_ca',$this->op_pvr_ca,true);\n\t\t$criteria->compare('op_subretinal_bands',$this->op_subretinal_bands);\n\t\t$criteria->compare('op_choroidals',$this->op_choroidals);\n\t\t$criteria->compare('op_breaks_detached',$this->op_breaks_detached);\n\t\t$criteria->compare('op_breaks_attached',$this->op_breaks_attached);\n\t\t$criteria->compare('op_largest_break_type',$this->op_largest_break_type,true);\n\t\t$criteria->compare('op_largest_break_size',$this->op_largest_break_size,true);\n\t\t$criteria->compare('op_lowest_break_position',$this->op_lowest_break_position,true);\n\t\t$criteria->compare('op_positioning',$this->op_positioning,true);\n\t\t$criteria->compare('as_lens_surgery',$this->as_lens_surgery,true);\n\t\t$criteria->compare('pr_volume',$this->pr_volume,true);\n\t\t$criteria->compare('roo_route',$this->roo_route,true);\n\t\t$criteria->compare('vity_gauge',$this->vity_gauge,true);\n\t\t$criteria->compare('vity_pvd_induced',$this->vity_pvd_induced);\n\t\t$criteria->compare('vity_peel',$this->vity_peel);\n\t\t$criteria->compare('vity_rr',$this->vity_rr);\n\t\t$criteria->compare('sb_drainage',$this->sb_drainage,true);\n\t\t$criteria->compare('rp_cryo',$this->rp_cryo);\n\t\t$criteria->compare('rp_endolaser',$this->rp_endolaser);\n\t\t$criteria->compare('rp_indirect',$this->rp_indirect);\n\t\t$criteria->compare('rp_transcleral_diode',$this->rp_transcleral_diode);\n\t\t$criteria->compare('rp_360',$this->rp_360);\n\t\t$criteria->compare('tamp_type',$this->tamp_type,true);\n\t\t$criteria->compare('tamp_percent',$this->tamp_percent);\n\t\t$criteria->compare('comps_choroidal',$this->comps_choroidal);\n\t\t$criteria->compare('comps_lens_touch',$this->comps_lens_touch);\n\t\t$criteria->compare('comps_esb',$this->comps_esb);\n\t\t$criteria->compare('comps_other_breaks',$this->comps_other_breaks);\n\t\t$criteria->compare('comps_deep_suture',$this->comps_deep_suture);\n\t\t$criteria->compare('comps_drain_haem',$this->comps_drain_haem);\n\t\t$criteria->compare('comps_incarceration',$this->comps_incarceration);\n\t\t$criteria->compare('fu_date',$this->fu_date,true);\n\t\t$criteria->compare('fu_type',$this->fu_type,true);\n\t\t$criteria->compare('fu_man_complete',$this->fu_man_complete);\n\t\t$criteria->compare('fu_readmission',$this->fu_readmission);\n\t\t$criteria->compare('fu_number_ops',$this->fu_number_ops);\n\t\t$criteria->compare('fu_attached',$this->fu_attached);\n\t\t$criteria->compare('fu_oil',$this->fu_oil);\n\t\t$criteria->compare('fu_acuity',$this->fu_acuity);\n\t\t$criteria->compare('fu_lens',$this->fu_lens,true);\n\t\t$criteria->compare('fu_iop_problem',$this->fu_iop_problem);\n\t\t$criteria->compare('fu_foveal_attachment',$this->fu_foveal_attachment,true);\n\t\t$criteria->compare('fu_erm',$this->fu_erm);\n\t\t$criteria->compare('fu_macular_hole',$this->fu_macular_hole);\n\t\t$criteria->compare('fu_macular_fold',$this->fu_macular_fold);\n\t\t$criteria->compare('fu_hypotony',$this->fu_hypotony);\n\t\t$criteria->compare('fu_primary_success',$this->fu_primary_success);\n\t\t\n\t\t// Following sort array returns cases in descending order of op_date (ie most recent cases first)\n\t\treturn new CActiveDataProvider(get_class($this), array(\n\t\t\t'criteria'=>$criteria,\n\t\t\t'sort'=>array(\n\t\t\t\t'defaultOrder'=>'op_date DESC'\n\t\t\t\t),\n\t\t));\n\t}", "public function pushCriteria(CriteriaContract $criteria);", "public function pesquisa(array $filtros){\n if(empty($filtros)){\n return FALSE;\n }\n //Monta clasula where e seus paramentros\n $this->where = 'i.id <> :id';\n $this->parameters['id'] = 'null';\n \n if(isset($filtros['rua'])){\n $this->where .= ' AND i.rua LIKE :rua';\n $this->parameters['rua'] = $filtros['rua'] . '%'; \n }\n \n if(isset($filtros['refImovel'])){\n $this->where .= ' AND i.refImovel LIKE :refImovel';\n $this->parameters['refImovel'] = $filtros['refImovel'] . '%'; \n }\n \n if(isset($filtros['locador'])){\n $this->where .= ' AND i.locador = :locador';\n $this->parameters['locador'] = $filtros['locador']; \n }\n \n if(isset($filtros['locatario'])){\n $this->where .= ' AND i.locatario = :locatario';\n $this->parameters['locatario'] = $filtros['locatario']; \n }\n \n $query = $this->getEntityManager()\n ->createQueryBuilder()\n ->select('i,ld,lt')\n ->from('Livraria\\Entity\\Imovel', 'i')\n ->join('i.locador', 'ld')\n ->join('i.locatario', 'lt')\n ->where($this->where)\n ->orderBy('i.rua')\n ->setParameters($this->parameters)\n ->getQuery();\n $list = $query->getResult();\n \n if (!empty($list))\n return $query;\n \n //Nova pesquisa pesquisando por qualquer ocorrencia \n if(isset($filtros['rua'])){\n $this->parameters['rua'] = '%' . $filtros['rua'] . '%'; \n }else{\n //Apenas para retornar uma query vazia\n $this->parameters['id'] = '0'; \n }\n $query = $this->getEntityManager()\n ->createQueryBuilder()\n ->select('i,ld,lt')\n ->from('Livraria\\Entity\\Imovel', 'i')\n ->join('i.locador', 'ld')\n ->join('i.locatario', 'lt')\n ->where($this->where)\n ->orderBy('i.rua')\n ->setParameters($this->parameters)\n ->getQuery();\n \n return $query;\n }", "public function findOneBy(array $criteria)\r\n {\r\n }", "public function criteriaSearch() {\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n $criteria = new CDbCriteria;\n\n if (!empty($this->kategoritindakan_id)) {\n $criteria->addCondition('t.kategoritindakan_id = ' . $this->kategoritindakan_id);\n }\n $criteria->compare('LOWER(t.kategoritindakan_nama)', strtolower($this->kategoritindakan_nama), true);\n if (!empty($this->kelompoktindakan_id)) {\n $criteria->addCondition('t.kelompoktindakan_id = ' . $this->kelompoktindakan_id);\n }\n $criteria->compare('LOWER(t.kelompoktindakan_nama)', strtolower($this->kelompoktindakan_nama), true);\n $criteria->compare('LOWER(t.daftartindakan_kode)', strtolower($this->daftartindakan_kode), true);\n $criteria->compare('LOWER(t.daftartindakan_nama)', strtolower($this->daftartindakan_nama), true);\n $criteria->compare('LOWER(t.daftartindakan_namalainnya)', strtolower($this->daftartindakan_namalainnya), true);\n $criteria->compare('LOWER(t.daftartindakan_katakunci)', strtolower($this->daftartindakan_katakunci), true);\n if (!empty($this->perdatarif_id)) {\n $criteria->addCondition('t.perdatarif_id = ' . $this->perdatarif_id);\n }\n $criteria->compare('LOWER(t.perdanama_sk)', strtolower($this->perdanama_sk), true);\n $criteria->compare('LOWER(t.noperda)', strtolower($this->noperda), true);\n $criteria->compare('LOWER(t.tglperda)', strtolower($this->tglperda), true);\n $criteria->compare('LOWER(t.perdatentang)', strtolower($this->perdatentang), true);\n $criteria->compare('LOWER(t.ditetapkanoleh)', strtolower($this->ditetapkanoleh), true);\n $criteria->compare('LOWER(t.tempatditetapkan)', strtolower($this->tempatditetapkan), true);\n if (!empty($this->jenistarif_id)) {\n $criteria->addCondition('t.jenistarif_id = ' . $this->jenistarif_id);\n }\n $criteria->compare('LOWER(t.jenistarif_nama)', strtolower($this->jenistarif_nama), true);\n if (!empty($this->tariftindakan_id)) {\n $criteria->addCondition('t.tariftindakan_id = ' . $this->tariftindakan_id);\n }\n if (!empty($this->komponentarif_id)) {\n $criteria->addCondition('t.komponentarif_id = ' . $this->komponentarif_id);\n }\n $criteria->compare('LOWER(t.komponentarif_nama)', strtolower($this->komponentarif_nama), true);\n $criteria->compare('t.harga_tariftindakan', $this->harga_tariftindakan);\n if (!empty($this->persendiskon_tind)) {\n $criteria->addCondition('t.persendiskon_tind = ' . $this->persendiskon_tind);\n }\n $criteria->compare('t.hargadiskon_tind', $this->hargadiskon_tind);\n if (!empty($this->persencyto_tind)) {\n $criteria->addCondition('t.persencyto_tind = ' . $this->persencyto_tind);\n }\n if (!empty($this->jeniskelas_id)) {\n $criteria->addCondition('t.jeniskelas_id = ' . $this->jeniskelas_id);\n }\n $criteria->compare('LOWER(t.jeniskelas_nama)', strtolower($this->jeniskelas_nama), true);\n if (!empty($this->kelaspelayanan_id)) {\n $criteria->addCondition('t.kelaspelayanan_id = ' . $this->kelaspelayanan_id);\n }\n $criteria->compare('LOWER(t.kelaspelayanan_nama)', strtolower($this->kelaspelayanan_nama), true);\n $criteria->compare('LOWER(t.kelaspelayanan_namalainnya)', strtolower($this->kelaspelayanan_namalainnya), true);\n if (!empty($this->daftartindakan_id)) {\n $criteria->addCondition('t.daftartindakan_id = ' . $this->daftartindakan_id);\n }\n if (!empty($this->ruangan_id)) {\n $criteria->addCondition('t.ruangan_id = ' . $this->ruangan_id);\n }\n $criteria->compare('LOWER(t.ruangan_nama)', strtolower($this->ruangan_nama), true);\n if (!empty($this->instalasi_id)) {\n $criteria->addCondition('t.instalasi_id = ' . $this->instalasi_id);\n }\n $criteria->compare('LOWER(t.instalasi_nama)', strtolower($this->instalasi_nama), true);\n\n return $criteria;\n }", "public function buildCriteria()\n {\n $criteria = new Criteria(JadwalPeer::DATABASE_NAME);\n\n if ($this->isColumnModified(JadwalPeer::SEKOLAH_ID)) $criteria->add(JadwalPeer::SEKOLAH_ID, $this->sekolah_id);\n if ($this->isColumnModified(JadwalPeer::SEMESTER_ID)) $criteria->add(JadwalPeer::SEMESTER_ID, $this->semester_id);\n if ($this->isColumnModified(JadwalPeer::ID_RUANG)) $criteria->add(JadwalPeer::ID_RUANG, $this->id_ruang);\n if ($this->isColumnModified(JadwalPeer::HARI)) $criteria->add(JadwalPeer::HARI, $this->hari);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_01)) $criteria->add(JadwalPeer::BEL_KE_01, $this->bel_ke_01);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_02)) $criteria->add(JadwalPeer::BEL_KE_02, $this->bel_ke_02);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_03)) $criteria->add(JadwalPeer::BEL_KE_03, $this->bel_ke_03);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_04)) $criteria->add(JadwalPeer::BEL_KE_04, $this->bel_ke_04);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_05)) $criteria->add(JadwalPeer::BEL_KE_05, $this->bel_ke_05);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_06)) $criteria->add(JadwalPeer::BEL_KE_06, $this->bel_ke_06);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_07)) $criteria->add(JadwalPeer::BEL_KE_07, $this->bel_ke_07);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_08)) $criteria->add(JadwalPeer::BEL_KE_08, $this->bel_ke_08);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_09)) $criteria->add(JadwalPeer::BEL_KE_09, $this->bel_ke_09);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_10)) $criteria->add(JadwalPeer::BEL_KE_10, $this->bel_ke_10);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_11)) $criteria->add(JadwalPeer::BEL_KE_11, $this->bel_ke_11);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_12)) $criteria->add(JadwalPeer::BEL_KE_12, $this->bel_ke_12);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_13)) $criteria->add(JadwalPeer::BEL_KE_13, $this->bel_ke_13);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_14)) $criteria->add(JadwalPeer::BEL_KE_14, $this->bel_ke_14);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_15)) $criteria->add(JadwalPeer::BEL_KE_15, $this->bel_ke_15);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_16)) $criteria->add(JadwalPeer::BEL_KE_16, $this->bel_ke_16);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_17)) $criteria->add(JadwalPeer::BEL_KE_17, $this->bel_ke_17);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_18)) $criteria->add(JadwalPeer::BEL_KE_18, $this->bel_ke_18);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_19)) $criteria->add(JadwalPeer::BEL_KE_19, $this->bel_ke_19);\n if ($this->isColumnModified(JadwalPeer::BEL_KE_20)) $criteria->add(JadwalPeer::BEL_KE_20, $this->bel_ke_20);\n if ($this->isColumnModified(JadwalPeer::CREATE_DATE)) $criteria->add(JadwalPeer::CREATE_DATE, $this->create_date);\n if ($this->isColumnModified(JadwalPeer::LAST_UPDATE)) $criteria->add(JadwalPeer::LAST_UPDATE, $this->last_update);\n if ($this->isColumnModified(JadwalPeer::SOFT_DELETE)) $criteria->add(JadwalPeer::SOFT_DELETE, $this->soft_delete);\n if ($this->isColumnModified(JadwalPeer::LAST_SYNC)) $criteria->add(JadwalPeer::LAST_SYNC, $this->last_sync);\n if ($this->isColumnModified(JadwalPeer::UPDATER_ID)) $criteria->add(JadwalPeer::UPDATER_ID, $this->updater_id);\n\n return $criteria;\n }", "function applyFilters($q, $au, $roo)\n {\n \n $tn = $this->tableName();\n $this->selectAdd(\"i18n_translate('c' , {$tn}.country, 'en') as country_display_name \");\n \n $tn = $this->tableName();\n //DB_DataObject::debugLevel(1);\n $x = DB_DataObject::factory('core_company');\n $x->comptype= 'OWNER';\n $x->find(true);\n\n if (!empty($q['query']['company_project_id'])) {\n $add = '';\n if (!empty($q['query']['company_include_self'])) {\n $add = \" OR {$tn}.id = {$x->id}\";\n }\n if (!empty($q['query']['company_not_self'])) {\n $add = \" AND {$tn}.id != {$x->id}\";\n }\n \n $pids = array();\n $pid = $q['query']['company_project_id'];\n if (strpos($pid, ',')) {\n $bits = explode(',', $pid);\n foreach($bits as $b) {\n $pids[] = (int)$b;\n }\n } else {\n $pids = array($pid);\n }\n \n \n $pids = implode(',', $pids);\n $this->whereAdd(\"{$tn}.id IN (\n SELECT distinct(company_id) FROM ProjectDirectory where project_id IN ($pids)\n ) $add\" );\n \n }\n if (!empty($q['query']['comptype'])) {\n \n $this->whereAddIn($tn.'.comptype', explode(',', $q['query']['comptype']), 'string');\n \n }\n \n // depricated - should be moved to module specific (texon afair)\n \n if (!empty($q['query']['province'])) {\n $prov = $this->escape($q['query']['province']);\n $this->whereAdd(\"province LIKE '$prov%'\");\n \n \n }\n // ADD comptype_display name.. = for combos..\n $this->selectAdd(\"\n (SELECT display_name\n FROM\n core_enum\n WHERE\n etype='comptype'\n AND\n name={$tn}.comptype\n LIMIT 1\n ) as comptype_display_name\n \");\n \n if(!empty($q['query']['name']) || !empty($q['search']['name'])){\n \n $s = (!empty($q['query']['name'])) ? $this->escape($q['query']['name']) : $this->escape($q['search']['name']);\n \n $this->whereAdd(\"\n {$tn}.name LIKE '%$s%'\n \");\n }\n \n if(!empty($q['query']['name_starts']) || !empty($q['search']['name_starts'])){\n \n $s = (!empty($q['query']['name_starts'])) ? $this->escape($q['query']['name_starts']) : $this->escape($q['search']['name_starts']);\n \n $this->whereAdd(\"\n {$tn}.name LIKE '$s%'\n \");\n }\n }", "public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(UserPeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(UserPeer::ID)) $criteria->add(UserPeer::ID, $this->id);\n\t\tif ($this->isColumnModified(UserPeer::EMAIL)) $criteria->add(UserPeer::EMAIL, $this->email);\n\t\tif ($this->isColumnModified(UserPeer::DISPLAY_NAME)) $criteria->add(UserPeer::DISPLAY_NAME, $this->display_name);\n\t\tif ($this->isColumnModified(UserPeer::REAL_NAME)) $criteria->add(UserPeer::REAL_NAME, $this->real_name);\n\t\tif ($this->isColumnModified(UserPeer::LOCATION)) $criteria->add(UserPeer::LOCATION, $this->location);\n\t\tif ($this->isColumnModified(UserPeer::WEBPAGE)) $criteria->add(UserPeer::WEBPAGE, $this->webpage);\n\t\tif ($this->isColumnModified(UserPeer::COUNTRY)) $criteria->add(UserPeer::COUNTRY, $this->country);\n\t\tif ($this->isColumnModified(UserPeer::POSTAL_CODE)) $criteria->add(UserPeer::POSTAL_CODE, $this->postal_code);\n\t\tif ($this->isColumnModified(UserPeer::BIRTHDAY)) $criteria->add(UserPeer::BIRTHDAY, $this->birthday);\n\t\tif ($this->isColumnModified(UserPeer::GRAVATAR_ADDRESS)) $criteria->add(UserPeer::GRAVATAR_ADDRESS, $this->gravatar_address);\n\t\tif ($this->isColumnModified(UserPeer::INFO)) $criteria->add(UserPeer::INFO, $this->info);\n\t\tif ($this->isColumnModified(UserPeer::PLATFORM)) $criteria->add(UserPeer::PLATFORM, $this->platform);\n\t\tif ($this->isColumnModified(UserPeer::EXPERIENCE_SCORE)) $criteria->add(UserPeer::EXPERIENCE_SCORE, $this->experience_score);\n\t\tif ($this->isColumnModified(UserPeer::UP_VOTES)) $criteria->add(UserPeer::UP_VOTES, $this->up_votes);\n\t\tif ($this->isColumnModified(UserPeer::DOWN_VOTES)) $criteria->add(UserPeer::DOWN_VOTES, $this->down_votes);\n\t\tif ($this->isColumnModified(UserPeer::IS_GUEST)) $criteria->add(UserPeer::IS_GUEST, $this->is_guest);\n\t\tif ($this->isColumnModified(UserPeer::IS_ADMIN)) $criteria->add(UserPeer::IS_ADMIN, $this->is_admin);\n\t\tif ($this->isColumnModified(UserPeer::TODAY_VOTES)) $criteria->add(UserPeer::TODAY_VOTES, $this->today_votes);\n\t\tif ($this->isColumnModified(UserPeer::EMAIL_ON)) $criteria->add(UserPeer::EMAIL_ON, $this->email_on);\n\t\tif ($this->isColumnModified(UserPeer::LAST_EMAIL)) $criteria->add(UserPeer::LAST_EMAIL, $this->last_email);\n\t\tif ($this->isColumnModified(UserPeer::CREATED_AT)) $criteria->add(UserPeer::CREATED_AT, $this->created_at);\n\t\tif ($this->isColumnModified(UserPeer::UPDATED_AT)) $criteria->add(UserPeer::UPDATED_AT, $this->updated_at);\n\n\t\treturn $criteria;\n\t}", "public function getQueryBuilderForAll($filters)\n {\n $qb = $this->repository->createQueryBuilder();\n\n // Recherche d'une méthode existante dans le repository pour un filtre\n foreach($filters as $filter_key => $filter_value) {\n $method = 'find_by_'.$filter_key;\n $method = lcfirst(\\Symfony\\Component\\DependencyInjection\\Container::camelize($method));\n \n if (method_exists($this->repository, $method)) {\n $qb = $this->repository->$method($filter_value);\n unset($filters[$filter_key]);\n }\n }\n \n foreach($filters as $filter_key => $filter_value) {\n $param_value = (is_numeric($filter_value)) ? (int) $filter_value : $filter_value;\n // Si le nom du paramètre fini par _id\n if (substr($filter_key, -3) == '_id') {\n $id_prefix = (strpos('__', $filter_key) !== false) ? '_' : '$';\n $key = str_replace('__','.', $filter_key);\n $key = substr($key, 0, -3) . '.' . $id_prefix . 'id';\n if (!is_array($filter_value)) {\n $qb->field($key)->equals(new \\MongoId($param_value));\n } else {\n if (strpos('$', $key) !== false) {\n $qb->field($key)->in($param_value);\n } else {\n $params_mongos = [];\n foreach ($param_value as $param) {\n $params_mongos[] = new \\MongoId($param);\n }\n $qb->field($key)->in($params_mongos);\n }\n }\n } \n // Si le champ correspond à un boolean\n elseif (substr($filter_key, 0, 3) == 'is_') {\n $param_value = ($param_value === 'true' || $param_value === '1' || $param_value === 1 || $param_value === true) ? true : false;\n $qb->field($filter_key)->equals((bool)$param_value);\n }\n // Si le paramètre commence par une majuscule, c'est un champ d'une relation, je décompose\n elseif (preg_match(\"/^[A-Z]$/\", substr($filter_key, 0, 1)) == 1) {\n $key = implode('.',explode('_',strtolower($filter_key)));\n $qb->field($key)->equals($param_value);\n } elseif (is_array($param_value)) {\n $qb->field($filter_key)->in($param_value);\n } else {\n $qb->field($filter_key)->equals($param_value);\n }\n }\n return $qb;\n }", "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n $criteria->with = array('manager','stage');\n\t\t$criteria->compare('ID_PROJECT',$this->ID_PROJECT);\n\t\t$criteria->compare('ID_REPRESENTATIVE',$this->ID_REPRESENTATIVE);\n\t\t $criteria->compare('ID_STAGE',$this->ID_STAGE);\n\t\t$criteria->compare('NAME',$this->NAME,true);\n\t\t$criteria->compare('DESCR_PROJECT',$this->DESCR_PROJECT,true);\n\t\t $criteria->compare('ROADMAP_PROJECT',$this->ROADMAP_PROJECT,true);\n\t\t $criteria->compare('ID_PHASE',$this->ID_PHASE);\n\t\t $criteria->compare('ID_BUDGET',$this->ID_BUDGET);\n\t\t$criteria->compare('EXECUTERS_NUM',$this->EXECUTERS_NUM);\n\t\t$criteria->compare('UN_THIRTY_FIVE',$this->UN_THIRTY_FIVE);\n\t\t$criteria->compare('STUDY',$this->STUDY);\n\t\t$criteria->compare('PUBLICATIONS',$this->PUBLICATIONS);\n\t\t$criteria->compare('FORIN_PUBL',$this->FORIN_PUBL);\n\t\t$criteria->compare('START_YEAR',$this->START_YEAR);\n\t\t$criteria->compare('END_YEAR',$this->END_YEAR);\n $criteria->compare('YEAR_BUDGET',$this->YEAR_BUDGET,true);\n $criteria->compare('LONG_BUDGET',$this->LONG_BUDGET,true);\n $criteria->compare('CO_FINANCING',$this->CO_FINANCING,true);\n $criteria->compare('PRIVACY_P',$this->PRIVACY_P);\n\t\t$criteria->compare('FIRST_LAVEL_APPROVAL',$this->FIRST_LAVEL_APPROVAL);\n\t\t$criteria->compare('SECOND_LAVEL_RATING',$this->SECOND_LAVEL_RATING);\n\t\t$criteria->compare('THIRD_LAVEL_RATING',$this->THIRD_LAVEL_RATING);\n $criteria->compare('FIRST_LAVEL_COMMENT',$this->FIRST_LAVEL_COMMENT,true);\n $criteria->compare('REG_DATE',$this->REG_DATE,true);\n $criteria->compare('manager.ID_DISTRICT',$this->ID_DISTRICT);\n $criteria->compare('manager.ID_STAGE',$this->ID_STAGE,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "protected function functionCriteria() {\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n if (!is_array($this->kunjungan)){\n $this->kunjungan = 0;\n }\n \n $criteria->addBetweenCondition('date(tglmasukpenunjang)', $this->tglAwal, $this->tglAkhir);\n $criteria->compare('kunjungan', $this->kunjungan);\n\t\tif(!empty($this->instalasiasal_id)){\n\t\t\t$criteria->addCondition('instalasiasal_id ='.$this->instalasiasal_id);\n\t\t}\n if (!empty($this->instalasiasal_id)){\n if (!is_array($this->ruanganasal_id)){\n $this->ruanganasal_id = 0;\n }\n }\n\t\tif(!empty($this->carabayar_id)){\n\t\t\t$criteria->addCondition('carabayar_id ='.$this->carabayar_id);\n\t\t}\n\t\tif(!empty($this->carabayar_id)){\n\t\t\t$criteria->addCondition('penjamin_id ='.$this->carabayar_id);\n\t\t}\n\t\tif(!empty($this->ruanganasal_id)){\n\t\t\t$criteria->addCondition('ruanganasal_id ='.$this->ruanganasal_id);\n\t\t}\n $criteria->addCondition('ruanganpenunj_id = '.Yii::app()->user->getState('ruangan_id'));\n\n return $criteria;\n }", "function queryAll(array $criteria = array(), array $fields = array(), $hydrate = true, $timeout = 30000) {\n\t\tif (trim($this->getLead()->getLeadId()) != '') {\n\t\t\t$criteria['lead._id'] = trim($this->getLead()->getLeadId());\n\t\t}\n\t\treturn parent::queryAll($criteria, $fields, $hydrate, $timeout);\n\t}", "public function getItemsCriteria() {}", "public function getItemsCriteria() {}", "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n if($this->pesquisar == ''){\n \t\t$criteria->compare('id',$this->id,true);\n\n\t\t$criteria->compare('tipo_frete',$this->tipo_frete,true);\n\n\t\t$criteria->compare('valor_frete',$this->valor_frete,true);\n\n\t\t$criteria->compare('data_transacao',$this->data_transacao,true);\n\n\t\t$criteria->compare('anotacao',$this->anotacao,true);\n\n\t\t$criteria->compare('id_transaction',$this->id_transaction,true);\n\n\t\t$criteria->compare('taxas_extras',$this->taxas_extras,true);\n\n\t\t$criteria->compare('tipo_pagamento',$this->tipo_pagamento,true);\n\n\t\t$criteria->compare('status_transacao',$this->status_transacao,true);\n\n\t\t$criteria->compare('parcelas',$this->parcelas);\n\n\t\t$criteria->compare('usuarios_id',$this->usuarios_id,true);\n\n }else{\n \n \t\t$criteria->compare('id',$this->pesquisar,true,'OR');\n\n\t\t$criteria->compare('tipo_frete',$this->pesquisar,true,'OR');\n\n\t\t$criteria->compare('valor_frete',$this->pesquisar,true,'OR');\n\n\t\t$criteria->compare('data_transacao',$this->pesquisar,true,'OR');\n\n\t\t$criteria->compare('anotacao',$this->pesquisar,true,'OR');\n\n\t\t$criteria->compare('id_transaction',$this->pesquisar,true,'OR');\n\n\t\t$criteria->compare('taxas_extras',$this->pesquisar,true,'OR');\n\n\t\t$criteria->compare('tipo_pagamento',$this->pesquisar,true,'OR');\n\n\t\t$criteria->compare('status_transacao',$this->pesquisar,true,'OR');\n\n\t\t$criteria->compare('parcelas',$this->pesquisar,true,'OR');\n\n\t\t$criteria->compare('usuarios_id',$this->pesquisar,true,'OR');\n\n }\n\n\t\treturn new CActiveDataProvider(get_class($this), array(\n\t\t\t'criteria'=>$criteria,\n 'pagination'=>array(\n 'pageSize'=>Yii::app()->params['PageSize'],\n ),\n\t\t));\n\t}", "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('ID',$this->ID,true);\n\t\t$criteria->compare('FINANCIAL_YEAR_ID_FK',$this->FINANCIAL_YEAR_ID_FK,true);\n\t\t$criteria->compare('EMPLOYEE_ID',$this->EMPLOYEE_ID,true);\n\t\t$criteria->compare('HRA',$this->HRA,true);\n\t\t$criteria->compare('MEDICAL_INSURANCE',$this->MEDICAL_INSURANCE,true);\n\t\t$criteria->compare('DONATION',$this->DONATION,true);\n\t\t$criteria->compare('DISABILITY_MED_EXP',$this->DISABILITY_MED_EXP,true);\n\t\t$criteria->compare('EDU_LOAD_INT',$this->EDU_LOAD_INT,true);\n\t\t$criteria->compare('SELF_DISABILITY',$this->SELF_DISABILITY,true);\n\t\t$criteria->compare('HOME_LOAN_INT',$this->HOME_LOAN_INT,true);\n\t\t$criteria->compare('HOME_LOAD_EXCESS_2013_14',$this->HOME_LOAD_EXCESS_2013_14,true);\n\t\t$criteria->compare('INSURANCE_LIC_OTHER',$this->INSURANCE_LIC_OTHER,true);\n\t\t$criteria->compare('TUITION_FESS_EXEMPTION',$this->TUITION_FESS_EXEMPTION,true);\n\t\t$criteria->compare('PPF_NSC',$this->PPF_NSC,true);\n\t\t$criteria->compare('HOME_LOAN_PR',$this->HOME_LOAN_PR,true);\n\t\t$criteria->compare('PLI_ULIP',$this->PLI_ULIP,true);\n\t\t$criteria->compare('TERM_DEPOSIT_ABOVE_5',$this->TERM_DEPOSIT_ABOVE_5,true);\n\t\t$criteria->compare('MUTUAL_FUND',$this->MUTUAL_FUND,true);\n\t\t$criteria->compare('PENSION_FUND',$this->PENSION_FUND,true);\n\t\t$criteria->compare('CPF',$this->CPF,true);\n\t\t$criteria->compare('REGISTRY_STAMP',$this->REGISTRY_STAMP,true);\n\t\t$criteria->compare('DA_TA_ARREAR',$this->DA_TA_ARREAR,true);\n\t\t$criteria->compare('OTA_HONORANIUM',$this->OTA_HONORANIUM,true);\n\t\t$criteria->compare('UNIFORM',$this->UNIFORM,true);\n\t\t$criteria->compare('DA_TA_ARREAR_CPF',$this->DA_TA_ARREAR_CPF,true);\n\t\t$criteria->compare('EL_ENCASH',$this->DA_TA_ARREAR_CPF,true);\n\t\t$criteria->compare('LTC_HTC',$this->DA_TA_ARREAR_CPF,true);\n\t\t$criteria->compare('CEA_TUITION',$this->CEA_TUITION,true);\n\t\t$criteria->compare('BONUS',$this->BONUS,true);\n\t\t$criteria->compare('OTHER_INCOME',$this->OTHER_INCOME,true);\n\t\t$criteria->compare('HOUSE_INCOME',$this->HOUSE_INCOME,true);\n\t\t$criteria->compare('NPS_UNDER_80CCD_1B',$this->NPS_UNDER_80CCD_1B,true);\n\t\t$criteria->compare('BANK_INTEREST_DED_80TTA',$this->BANK_INTEREST_DED_80TTA,true);\n\t\t$criteria->compare('MEDICAL_INSURANCE_PARENTS',$this->MEDICAL_INSURANCE_PARENTS,true);\n\t\t$criteria->compare('LOAN_YEAR',$this->LOAN_YEAR,true);\n\t\t\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function criteriaSearch()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\tif(!empty($this->nilairujukan_id)){\n\t\t\t$criteria->addCondition('nilairujukan_id = '.$this->nilairujukan_id);\n\t\t}\n\t\tif(!empty($this->kelkumurhasillab_id)){\n\t\t\t$criteria->addCondition('kelkumurhasillab_id = '.$this->kelkumurhasillab_id);\n\t\t}\n\t\t$criteria->compare('LOWER(kelompokdet)',strtolower($this->kelompokdet),true);\n\t\t$criteria->compare('LOWER(namapemeriksaandet)',strtolower($this->namapemeriksaandet),true);\n\t\t$criteria->compare('LOWER(nilairujukan_jeniskelamin)',strtolower($this->nilairujukan_jeniskelamin),true);\n\t\t$criteria->compare('LOWER(nilairujukan_nama)',strtolower($this->nilairujukan_nama),true);\n\t\t$criteria->compare('nilairujukan_min',$this->nilairujukan_min);\n\t\t$criteria->compare('nilairujukan_max',$this->nilairujukan_max);\n\t\t$criteria->compare('LOWER(nilairujukan_satuan)',strtolower($this->nilairujukan_satuan),true);\n\t\t$criteria->compare('LOWER(nilairujukan_metode)',strtolower($this->nilairujukan_metode),true);\n\t\t$criteria->compare('LOWER(nilairujukan_keterangan)',strtolower($this->nilairujukan_keterangan),true);\n\t\t$criteria->compare('nilairujukan_aktif',$this->nilairujukan_aktif);\n\n\t\treturn $criteria;\n\t}", "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('t.codtituloagrupamento', $this->codtituloagrupamento, false);\n\t\tif ($emissao_de = DateTime::createFromFormat(\"d/m/y\",$this->emissao_de))\n\t\t{\n\t\t\t$criteria->addCondition('t.emissao >= :emissao_de');\n\t\t\t$criteria->params = array_merge($criteria->params, array(':emissao_de' => $emissao_de->format('Y-m-d').' 00:00:00.0'));\n\t\t}\n\t\tif ($emissao_ate = DateTime::createFromFormat(\"d/m/y\",$this->emissao_ate))\n\t\t{\n\t\t\t$criteria->addCondition('t.emissao <= :emissao_ate');\n\t\t\t$criteria->params = array_merge($criteria->params, array(':emissao_ate' => $emissao_ate->format('Y-m-d').' 23:59:59.9'));\n\t\t}\n\t\tif ($criacao_de = DateTime::createFromFormat(\"d/m/y\",$this->criacao_de))\n\t\t{\n\t\t\t$criteria->addCondition('t.criacao >= :criacao_de');\n\t\t\t$criteria->params = array_merge($criteria->params, array(':criacao_de' => $criacao_de->format('Y-m-d').' 00:00:00.0'));\n\t\t}\n\t\tif ($criacao_ate = DateTime::createFromFormat(\"d/m/y\",$this->criacao_ate))\n\t\t{\n\t\t\t$criteria->addCondition('t.criacao <= :criacao_ate');\n\t\t\t$criteria->params = array_merge($criteria->params, array(':criacao_ate' => $criacao_ate->format('Y-m-d').' 23:59:59.9'));\n\t\t}\n\n\t\t$criteria->compare('t.codpessoa', $this->codpessoa, false);\n\n\t\t$criteria->with = array(\n\t\t\t'Pessoa' => array(\n\t\t\t\t'select' => 'fantasia'\n\t\t\t)\n\t\t);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t\t'sort'=>array('defaultOrder'=>'t.emissao DESC, t.criacao DESC, \"Pessoa\".fantasia ASC'),\n\t\t\t'pagination'=>array('pageSize'=>20)\n\t\t));\n\t}", "protected function hydrateCriteria($builder, array $criteria = array())\n {\n foreach ($criteria as $fieldName => $fieldValue) {\n $builder->field($fieldName)->equals($fieldValue);\n// $builder->addOr($builder->expr()->field($fieldName)->equals($fieldValue));\n }\n }", "public function searchWithCriteria(){\n\n\n //change default message for required rule\n $this->unsetSessionData();\n $this->setSessionData();\n\n\n if(isset($_SESSION['searchKeyword']) && isset($_SESSION['timecon'])){\n $this->searchByLocationAndDay();\n }else if(isset($_SESSION['searchKeyword']) && isset($_SESSION['timecon'])==FALSE){\n $this->searchByLocation();\n }else if(isset($_SESSION['searchKeyword'])==FALSE && isset($_SESSION['timecon'])){\n $this->searchByCalendar();\n }\n }" ]
[ "0.6811799", "0.6661819", "0.6607693", "0.65704405", "0.6328398", "0.6313058", "0.6246386", "0.6239954", "0.6103051", "0.6103051", "0.60741377", "0.603045", "0.6022999", "0.5984234", "0.5976314", "0.5937813", "0.59150434", "0.58896244", "0.5838984", "0.58384633", "0.57891655", "0.57882094", "0.5765243", "0.57517356", "0.57426023", "0.5724615", "0.5691671", "0.562657", "0.5609188", "0.56002283", "0.5570226", "0.5545879", "0.55222416", "0.55192965", "0.55011845", "0.5488593", "0.54873234", "0.54832995", "0.5463084", "0.5461465", "0.54588795", "0.5446115", "0.54391414", "0.54385644", "0.543519", "0.54294705", "0.5421496", "0.5415699", "0.5397578", "0.53926075", "0.5384132", "0.53835905", "0.53779435", "0.53779435", "0.53779435", "0.53701735", "0.53633", "0.53617936", "0.535299", "0.53504676", "0.535009", "0.5339488", "0.53354377", "0.533342", "0.533342", "0.533342", "0.5332363", "0.53319025", "0.5330981", "0.533061", "0.5329826", "0.53204733", "0.53071296", "0.5305767", "0.5305688", "0.5293117", "0.52873546", "0.5282742", "0.5279945", "0.5275856", "0.52744013", "0.5272593", "0.52715707", "0.52634037", "0.52575004", "0.5255359", "0.5247685", "0.5244343", "0.5244115", "0.5242418", "0.52407634", "0.52337706", "0.5231406", "0.52304786", "0.52283895", "0.5225826", "0.5223291", "0.52230006", "0.52228767", "0.5222418", "0.52214974" ]
0.0
-1
Helper functions for the TLP theme
function tlp_show_process_noop ($text) { return $text; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function theme()\n {\n }", "public function setup_theme()\n {\n }", "function preview_theme()\n {\n }", "function display_themes()\n {\n }", "function yatta_theme_setup_child() {\n\n\n\n}", "function GetHorMenuTheme()\n{\n\t$s='';\n\tswitch (template())\n\t{\n\t\tcase '':\n\t\t\t$s='customtheme: [\"#005e9f\", \"#004a7d\"],';\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\t$s='customtheme: [\"#b54b03\", \"#833602\"],';\n\t\t\tbreak;\t\n\t\tcase 2:\n\t\t\t$s='customtheme: [\"#105f03\", \"#0a4201\"],';\n\t\t\tbreak;\t\n\t\tcase 3:\n\t\t\t$s='customtheme: [\"#a30330\", \"#760223\"],';\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\t$s='customtheme: [\"#020a79\", \"#020758\"],';\n\t\t\tbreak;\t\t\t\n\t}\n\techo($s);\n\t//if (substr(curPageURL(),0,12)!='http://stttt') header('Location:http://www.php-binhdinh.com.vn');\n}", "public function apply_theme()\n\t{\n\t\treturn 'twentyten';\n\t}", "function get_themes()\n {\n }", "function _preview_theme_template_filter()\n {\n }", "function autodidact_theme_setup() {\n\n}", "function display_theme($theme)\n {\n }", "function get_broken_themes()\n {\n }", "function current_theme_info()\n {\n }", "function get_current_theme()\n {\n }", "function ti_custom_styling() { \nglobal $ti_option;\n?>\n<style type=\"text/css\">\n.main-menu > ul > li:hover > a {color:<?php echo $ti_option['main_menu_links_color']['hover']; ?>;}.secondary-menu ul > li:hover > a {color:<?php echo $ti_option['site_top_strip_links']['hover']; ?>;}.main-menu > ul > .link-arrow > a:after{border-color:transparent transparent <?php echo $ti_option['main_sub_menu_pointer']; ?>;}.main-menu > ul > li > .sub-menu{border-top-color:<?php echo $ti_option['main_sub_menu_pointer']; ?>;}.modern .content-over-image figure:before{opacity:<?php echo $ti_option['slider_tint_strength']; ?>;}.top-strip #searchform input, .top-strip #searchform button{color:<?php echo $ti_option['site_top_strip_links']['regular']; ?>}.modern .content-over-image:hover figure:before{opacity:<?php echo $ti_option['slider_tint_strength_hover']; ?>;}.main-menu .sub-menu .sub-links a:after{background-color:<?php echo $ti_option['main_sub_links_left']['regular']; ?>}.sidebar .widget{border-bottom:1px solid <?php echo $ti_option['sidebar_border']['border-color']; ?>;}.footer-sidebar .widget_rss li:after,.footer-sidebar .widget_pages li a:after,.footer-sidebar .widget_nav_menu li a:after,.footer-sidebar .widget_categories ul li:after, .footer-sidebar .widget_recent_entries li:after,.footer-sidebar .widget_recent_comments li:after{background-color:<?php echo $ti_option['footer_links']['regular']; ?>;}.footer-sidebar .widget_ti_latest_comments .comment-text:after{border-bottom-color:<?php echo $ti_option['footer_color']; ?>;}.footer-sidebar .widget_ti_latest_comments .comment-text:before{border-bottom-color:<?php echo $ti_option['footer_border']['border-color']; ?>;}.footer-sidebar .widget_ti_latest_comments .comment-text{border-color:<?php echo $ti_option['footer_border']['border-color']; ?>;}\n.sub-menu-columns .sub-menu .sub-links > .menu-item-has-children > a {color:<?php echo $ti_option['main_sub_links_left']['hover']; ?>;}\n<?php if ($ti_option['titles_background_switch'] == true && $ti_option['titles_background_image'] == true ){ ?>\n.title-with-sep{background:url(\"<?php echo get_template_directory_uri(); ?>/images/section-header.png\") repeat-x 0 50%;}\n<?php } ?>\n<?php if ($ti_option['titles_background_switch'] == true && $ti_option['titles_background_image'] == false ){ ?>\n.title-with-sep{background:url(\"<?php echo $ti_option['titles_background_upload']['url']; ?>\") repeat-x 50%;}\n<?php } ?>\n@media only screen and (min-width: 751px) {#gallery-carousel,#gallery-carousel .gallery-item{height:<?php echo $ti_option['site_carousel_height'] ?>px;}}\n<?php if ( $ti_option['custom_css'] != '' ) { ?>\n/* Custom CSS */\n<?php echo $ti_option['custom_css']; ?>\n<?php } ?>\n</style>\n<?php }", "function customize_themes_print_templates()\n {\n }", "function tsc_theme_options() {\n\tadd_theme_page( 'Theme Options', 'Theme Options', 'edit_theme_options', 'theme_options', 'tsc_theme_options_page' );\n}", "function cpotheme_metadata_theme()\n{\n $cpotheme_data = array();\n\n $cpotheme_data[] = array(\n 'name' => 'download_title',\n 'std' => '',\n 'label' => 'Título del Producto',\n 'type' => 'text',\n 'desc' => 'Indica la etiqueta de título (H1) del tema.'\n );\n\n $cpotheme_data[] = array(\n 'name' => 'download_cta_title',\n 'std' => '',\n 'label' => 'Call to action title',\n 'type' => 'text',\n 'desc' => 'Call to action title, right below the header'\n );\n\n $cpotheme_data[] = array(\n 'name' => 'download_cta_text',\n 'std' => '',\n 'label' => 'Call to action text',\n 'type' => 'text',\n 'desc' => 'Call to action text, right below the header'\n );\n\n $cpotheme_data[] = array(\n 'name' => 'download_demo_url',\n 'std' => '',\n 'label' => 'URL de la Demo',\n 'type' => 'text',\n 'desc' => 'Especifica la URL de la demo del tema.'\n );\n\n $cpotheme_data[] = array(\n 'name' => 'download_url',\n 'std' => '',\n 'label' => 'External URL',\n 'type' => 'text',\n 'desc' => 'Especifica la URL del tema si es un archivo externo.'\n );\n\n $cpotheme_data[] = array(\n 'name' => 'download_product',\n 'std' => '',\n 'label' => 'ID de Producto',\n 'type' => 'select',\n 'option' => cpotheme_metadata_productlist_optional(),\n 'desc' => 'Indica la ID del producto para enlazarlo.'\n );\n\n $cpotheme_data[] = array(\n 'name' => 'download_features',\n 'label' => 'Funcionalidades',\n 'type' => 'collection',\n 'option' => cpotheme_metadata_theme_features(),\n 'desc' => ''\n );\n\n $cpotheme_data[] = array(\n 'name' => 'download_smartphone',\n 'label' => 'Imagen Movil (250x425)',\n 'type' => 'upload',\n 'desc' => ''\n );\n\n return $cpotheme_data;\n}", "public function getTheme();", "function tt_theme_customize_setup(){\n new TT_Theme_Customizer();\n}", "function locale_stylesheet()\n {\n }", "function helper()\n{\n return TFThemeHelper::getInstance();\n}", "function tierone_delta_settings(){\n\n\t\tload_theme_textdomain('tierone', get_template_directory() . '/languages');\n\n\t\t// Custom Image Crop\n\t\tadd_image_size('tier-featured-slider', 801, 423, true);\n\t\tadd_image_size('tier-featured-lights', 321, 161, true);\n\t\tadd_image_size('tier-featured-large', 870, 600, true);\n\t\tadd_image_size('tier-featured-medium', 473, 213, true);\n\t\tadd_image_size('tier-featured', 360, 218, true);\n\t\tadd_image_size('tier-featured-d', 380, 170, true);\n\t\tadd_image_size('tier-featured-post-ba', 311, 204, true);\n\t\tadd_image_size('tier-featured-post-bc', 177, 108, true);\n\t\tadd_image_size('tier-featured-small', 230, 118, true);\n\t\tadd_image_size('tier-featured-xs', 76, 76, true);\n\n /*\n * Let WordPress manage the document title.\n * By adding theme support, we declare that this theme does not use a\n * hard-coded <title> tag in the document head, and expect WordPress to\n * provide it for us.\n */\n add_theme_support('title-tag');\n\n\t\t/**\n\t\t * Add Custom Logo Support\n\t\t */\n\t\tadd_theme_support( 'custom-logo' );\n\n\t\t\n\t\tadd_theme_support('post-thumbnails');\n\n\n\t\t// This theme uses wp_nav_menu() in one location.\n\t\tregister_nav_menus(array(\n\t\t\t'primary-menu' => esc_html__( 'Primary Menu', 'tierone-delta' ),\n\t\t\t'footer-menu' => esc_html__( 'Footer Menu', 'tierone-delta' )\n\t\t));\n\n\n\t\t/*\n\t\t * Switch default core markup for search form, comment form, and comments\n\t\t * to output valid HTML5.\n\t\t */\n\t\tadd_theme_support('html5',array('search-form','comment-form','comment-list','gallery','caption'));\n\n\n\t\t/*\n\t\t * Enable support for Post Formats.\n\t\t * See https://developer.wordpress.org/themes/functionality/post-formats/\n\t\t */\n\t\tadd_theme_support('post-formats', array(\n\t\t\t'aside',\n\t\t\t'image',\n\t\t\t'video',\n\t\t\t'quote',\n\t\t\t'link'\n\t\t));\n\n // Setup the WordPress core custom background feature.\n add_theme_support( 'custom-background' , apply_filters( 'tier_custom_background_cb', array(\n 'default-color' => 'ffffff',\n 'default-image' => '',\n )));\n \n\t}", "function manynewposts_style() {\n global $manynewposts_style,$templates;\n\n eval(\"\\$manynewposts_style = \\\"\".$templates->get(\"manynewposts_style\").\"\\\";\");\n}", "public function theme() {\n // Do nothing by default\n }", "function custom_theme_options()\n{\n\tif ( ! defined( 'UNCODE_SLIM' ) ) {\n\t\treturn;\n\t}\n\n\tglobal $wpdb, $uncode_colors, $uncode_post_types;\n\n\tif (!isset($uncode_post_types)) $uncode_post_types = uncode_get_post_types();\n\t/**\n\t * Get a copy of the saved settings array.\n\t */\n\t$saved_settings = get_option(ot_settings_id() , array());\n\n\t/**\n\t * Custom settings array that will eventually be\n\t * passes to the OptionTree Settings API Class.\n\t */\n\n\tif (!function_exists('ot_filter_measurement_unit_types'))\n\t{\n\t\tfunction ot_filter_measurement_unit_types($array, $field_id)\n\t\t{\n\t\t\treturn array(\n\t\t\t\t'px' => 'px',\n\t\t\t\t'%' => '%'\n\t\t\t);\n\t\t}\n\t}\n\n\tadd_filter('ot_measurement_unit_types', 'ot_filter_measurement_unit_types', 10, 2);\n\n\tfunction run_array_to($array, $key = '', $value = '')\n\t{\n\t\t$array[$key] = $value;\n\t\treturn $array;\n\t}\n\n\t$stylesArrayMenu = array(\n\t\tarray(\n\t\t\t'value' => 'light',\n\t\t\t'label' => esc_html__('Light', 'uncode') ,\n\t\t\t'src' => ''\n\t\t) ,\n\t\tarray(\n\t\t\t'value' => 'dark',\n\t\t\t'label' => esc_html__('Dark', 'uncode') ,\n\t\t\t'src' => ''\n\t\t)\n\t);\n\n\t$menus = get_terms( 'nav_menu', array( 'hide_empty' => true ) );\n\t$menus_array = array();\n\t$menus_array[] = array(\n\t\t'value' => '',\n\t\t'label' => esc_html__('Inherit', 'uncode')\n\t);\n\tforeach ($menus as $menu)\n\t{\n\t\t$menus_array[] = array(\n\t\t\t'value' => $menu->slug,\n\t\t\t'label' => $menu->name\n\t\t);\n\t}\n\n\t$uncodeblock = array(\n\t\t'value' => 'header_uncodeblock',\n\t\t'label' => esc_html__('Content Block', 'uncode') ,\n\t);\n\n\t$uncodeblocks = array(\n\t\tarray(\n\t\t\t'value' => '','label' => esc_html__('Inherit', 'uncode')\n\t\t),\n\t\tarray(\n\t\t\t'value' => 'none','label' => esc_html__('None', 'uncode')\n\t\t)\n\t);\n\n\t$blocks_query = new WP_Query( 'post_type=uncodeblock&posts_per_page=-1&post_status=publish&orderby=title&order=ASC' );\n\n\tforeach ($blocks_query->posts as $block) {\n\t\t$uncodeblocks[] = array(\n\t\t\t'value' => $block->ID,\n\t\t\t'label' => $block->post_title,\n\t\t\t'postlink' => get_edit_post_link($block->ID),\n\t\t);\n\t}\n\n\tif ($blocks_query->post_count === 0) {\n\t\t$uncodeblocks[] = array(\n\t\t\t'value' => '',\n\t\t\t'label' => esc_html__('No Content Blocks found', 'uncode')\n\t\t);\n\t}\n\n\t$uncodeblock_404 = array(\n\t\t'id' => '_uncode_404_body',\n\t\t'label' => esc_html__('404 content', 'uncode') ,\n\t\t'desc' => esc_html__('Specify a content for the 404 page.', 'uncode'),\n\t\t'std' => '',\n\t\t'type' => 'select',\n\t\t'choices' => array(\n\t\t\tarray(\n\t\t\t\t'value' => '',\n\t\t\t\t'label' => esc_html__('Default', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'body_uncodeblock',\n\t\t\t\t'label' => esc_html__('Content Block', 'uncode') ,\n\t\t\t),\n\t\t),\n\t\t'section' => 'uncode_404_section',\n\t);\n\n\t$uncodeblocks_404 = array(\n\t\t'id' => '_uncode_404_body_block',\n\t\t'label' => esc_html__('404 Content Block', 'uncode') ,\n\t\t'desc' => esc_html__('Specify a content for the 404 page.', 'uncode'),\n\t\t'type' => 'select',\n\t\t'choices' => $uncodeblocks,\n\t\t'section' => 'uncode_404_section',\n\t\t'operator' => 'and',\n\t\t'condition' => '_uncode_404_body:is(body_uncodeblock)',\n\t);\n\n\tif ( class_exists( 'RevSliderFront' ) )\n\t{\n\n\t\t$revslider = array(\n\t\t\t'value' => 'header_revslider',\n\t\t\t'label' => esc_html__('Revolution Slider', 'uncode') ,\n\t\t);\n\n\t\t$rs = $wpdb->get_results(\"SELECT id, title, alias FROM \" . $wpdb->prefix . \"revslider_sliders WHERE type != 'template' ORDER BY id ASC LIMIT 999\");\n\t\t$revsliders = array();\n\t\tif ($rs)\n\t\t{\n\t\t\tforeach ($rs as $slider)\n\t\t\t{\n\t\t\t\t$revsliders[] = array(\n\t\t\t\t\t'value' => $slider->alias,\n\t\t\t\t\t'label' => $slider->title,\n\t\t\t\t\t'postlink' => admin_url( 'admin.php?page=revslider&view=slider&id=' . $slider->id ),\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$revsliders[] = array(\n\t\t\t\t'value' => '',\n\t\t\t\t'label' => esc_html__('No Revolution Sliders found', 'uncode')\n\t\t\t);\n\t\t}\n\t}\n\telse $revslider = $revsliders = '';\n\n\tif ( class_exists( 'LS_Config' ) )\n\t{\n\n\t\t$layerslider = array(\n\t\t\t'value' => 'header_layerslider',\n\t\t\t'label' => esc_html__('LayerSlider', 'uncode') ,\n\t\t);\n\n\t\t$ls = $wpdb->get_results(\"SELECT id, name FROM \" . $wpdb->prefix . \"layerslider WHERE flag_deleted != '1' ORDER BY id ASC LIMIT 999\");\n\t\t$layersliders = array();\n\t\tif ($ls)\n\t\t{\n\t\t\tforeach ($ls as $slider)\n\t\t\t{\n\t\t\t\t$layersliders[] = array(\n\t\t\t\t\t'value' => $slider->id,\n\t\t\t\t\t'label' => $slider->name,\n\t\t\t\t\t'postlink' => admin_url( 'admin.php?page=layerslider&action=edit&id=' . $slider->id ),\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$layersliders[] = array(\n\t\t\t\t'value' => '',\n\t\t\t\t'label' => esc_html__('No LayerSliders found', 'uncode')\n\t\t\t);\n\t\t}\n\t}\n\telse $layerslider = $layersliders = '';\n\n\t$title_size = array(\n\t\tarray(\n\t\t\t'value' => 'h1',\n\t\t\t'label' => esc_html__('h1', 'uncode')\n\t\t),\n\t\tarray(\n\t\t\t'value' => 'h2',\n\t\t\t'label' => esc_html__('h2', 'uncode'),\n\t\t),\n\t\tarray(\n\t\t\t'value' => 'h3',\n\t\t\t'label' => esc_html__('h3', 'uncode'),\n\t\t),\n\t\tarray(\n\t\t\t'value' => 'h4',\n\t\t\t'label' => esc_html__('h4', 'uncode'),\n\t\t),\n\t\tarray(\n\t\t\t'value' => 'h5',\n\t\t\t'label' => esc_html__('h5', 'uncode'),\n\t\t),\n\t\tarray(\n\t\t\t'value' => 'h6',\n\t\t\t'label' => esc_html__('h6', 'uncode'),\n\t\t),\n\t);\n\n\t$font_sizes = ot_get_option('_uncode_heading_font_sizes');\n\tif (!empty($font_sizes)) {\n\t\tforeach ($font_sizes as $key => $value) {\n\t\t\t$title_size[] = array(\n\t\t\t\t'value' => $value['_uncode_heading_font_size_unique_id'],\n\t\t\t\t'label' => $value['title'],\n\t\t\t);\n\t\t}\n\t}\n\n\t$title_size[] = array(\n\t\t'value' => 'bigtext',\n\t\t'label' => esc_html__('BigText', 'uncode'),\n\t);\n\n\t$title_height = array(\n\t\tarray(\n\t\t\t'value' => '',\n\t\t\t'label' => esc_html__('Default CSS', \"uncode\")\n\t\t),\n\t);\n\n\t$font_heights = ot_get_option('_uncode_heading_font_heights');\n\tif (!empty($font_heights)) {\n\t\tforeach ($font_heights as $key => $value) {\n\t\t\t$title_height[] = array(\n\t\t\t\t'value' => $value['_uncode_heading_font_height_unique_id'],\n\t\t\t\t'label' => $value['title'],\n\t\t\t);\n\t\t}\n\t}\n\n\t$title_spacing = array(\n\t\tarray(\n\t\t\t'value' => '',\n\t\t\t'label' => esc_html__('Default CSS', \"uncode\")\n\t\t),\n\t);\n\n\t$btn_letter_spacing = $title_spacing;\n\t$btn_letter_spacing[] = array(\n\t\t'value' => 'uncode-fontspace-zero',\n\t\t'label' => esc_html__('Letter Spacing 0', \"uncode\")\n\t);\n\n\t$font_spacings = ot_get_option('_uncode_heading_font_spacings');\n\tif (!empty($font_spacings)) {\n\t\tforeach ($font_spacings as $key => $value) {\n\t\t\t$btn_letter_spacing[] = $title_spacing[] = array(\n\t\t\t\t'value' => $value['_uncode_heading_font_spacing_unique_id'],\n\t\t\t\t'label' => $value['title'],\n\t\t\t);\n\t\t}\n\t}\n\n\t$fonts = get_option('uncode_font_options');\n\t$title_font = array();\n\n\tif (isset($fonts['font_stack']) && $fonts['font_stack'] !== '[]')\n\t{\n\t\t$font_stack_string = $fonts['font_stack'];\n\t\t$font_stack = json_decode(str_replace('&quot;', '\"', $font_stack_string) , true);\n\n\t\tforeach ($font_stack as $font)\n\t\t{\n\t\t\tif ($font['source'] === 'Font Squirrel')\n\t\t\t{\n\t\t\t\t$variants = explode(',', $font['variants']);\n\t\t\t\t$label = (string)$font['family'] . ' - ';\n\t\t\t\t$weight = array();\n\t\t\t\tforeach ($variants as $variant)\n\t\t\t\t{\n\t\t\t\t\tif (strpos(strtolower($variant) , 'hairline') !== false)\n\t\t\t\t\t{\n\t\t\t\t\t\t$weight[] = 100;\n\t\t\t\t\t}\n\t\t\t\t\telse if (strpos(strtolower($variant) , 'light') !== false)\n\t\t\t\t\t{\n\t\t\t\t\t\t$weight[] = 200;\n\t\t\t\t\t}\n\t\t\t\t\telse if (strpos(strtolower($variant) , 'regular') !== false)\n\t\t\t\t\t{\n\t\t\t\t\t\t$weight[] = 400;\n\t\t\t\t\t}\n\t\t\t\t\telse if (strpos(strtolower($variant) , 'semibold') !== false)\n\t\t\t\t\t{\n\t\t\t\t\t\t$weight[] = 500;\n\t\t\t\t\t}\n\t\t\t\t\telse if (strpos(strtolower($variant) , 'bold') !== false)\n\t\t\t\t\t{\n\t\t\t\t\t\t$weight[] = 600;\n\t\t\t\t\t}\n\t\t\t\t\telse if (strpos(strtolower($variant) , 'black') !== false)\n\t\t\t\t\t{\n\t\t\t\t\t\t$weight[] = 800;\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$weight[] = 400;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$label.= implode(',', $weight);\n\t\t\t\t$title_font[] = array(\n\t\t\t\t\t'value' => urlencode((string)$font['family']),\n\t\t\t\t\t'label' => $label\n\t\t\t\t);\n\t\t\t}\n\t\t\telse if ($font['source'] === 'Google Web Fonts')\n\t\t\t{\n\t\t\t\t$label = (string)$font['family'] . ' - ' . $font['variants'];\n\t\t\t\t$title_font[] = array(\n\t\t\t\t\t'value' => urlencode((string)$font['family']),\n\t\t\t\t\t'label' => $label\n\t\t\t\t);\n\t\t\t}\n\t\t\telse if ($font['source'] === 'Adobe Fonts' || $font['source'] === 'Typekit' )\n\t\t\t{\n\t\t\t\t$label = (string)$font['family'] . ' - ';\n\t\t\t\t$variants = explode(',', $font['variants']);\n\t\t\t\tforeach ($variants as $key => $variant) {\n\t\t\t\t\tif ( $variants[$key] !== '' ) {\n\t\t\t\t\t\tpreg_match(\"|\\d+|\", $variants[$key], $weight);\n\t\t\t\t\t\t$variants[$key] = $weight[0] . '00';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$label.= implode(',', $variants);\n\t\t\t\t$title_font[] = array(\n\t\t\t\t\t'value' => urlencode(str_replace('\"', '', (string)$font['stub'])),\n\t\t\t\t\t'label' => $label\n\t\t\t\t);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$title_font[] = array(\n\t\t\t\t\t'value' => urlencode((string)$font['family']),\n\t\t\t\t\t'label' => (string)$font['family']\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n\telse\n\t{\n\t\t$title_font = array(\n\t\t\tarray(\n\t\t\t\t'value' => '',\n\t\t\t\t'label' => esc_html__('No fonts activated.', \"uncode\"),\n\t\t\t)\n\t\t);\n\t}\n\n\t$title_font[] = array(\n\t\t'value' => 'manual',\n\t\t'label' => esc_html__('Manually entered','uncode')\n\t);\n\n\t$custom_fonts = array(\n\t\tarray(\n\t\t\t'value' => '',\n\t\t\t'label' => esc_html__('Default CSS', \"uncode\"),\n\t\t)\n\t);\n\n\t$custom_fonts_array = ot_get_option('_uncode_font_groups');\n\tif (!empty($custom_fonts_array)) {\n\t\tforeach ($custom_fonts_array as $key => $value) {\n\t\t\t$custom_fonts[] = array(\n\t\t\t\t'value' => $value['_uncode_font_group_unique_id'],\n\t\t\t\t'label' => $value['title'],\n\t\t\t);\n\t\t}\n\t}\n\n\t$title_weight = array(\n\t\tarray(\n\t\t\t'value' => '',\n\t\t\t'label' => esc_html__('Default CSS', \"uncode\"),\n\t\t),\n\t\tarray(\n\t\t\t'value' => 100,\n\t\t\t'label' => '100',\n\t\t),\n\t\tarray(\n\t\t\t'value' => 200,\n\t\t\t'label' => '200',\n\t\t),\n\t\tarray(\n\t\t\t'value' => 300,\n\t\t\t'label' => '300',\n\t\t),\n\t\tarray(\n\t\t\t'value' => 400,\n\t\t\t'label' => '400',\n\t\t),\n\t\tarray(\n\t\t\t'value' => 500,\n\t\t\t'label' => '500',\n\t\t),\n\t\tarray(\n\t\t\t'value' => 600,\n\t\t\t'label' => '600',\n\t\t),\n\t\tarray(\n\t\t\t'value' => 700,\n\t\t\t'label' => '700',\n\t\t),\n\t\tarray(\n\t\t\t'value' => 800,\n\t\t\t'label' => '800',\n\t\t),\n\t\tarray(\n\t\t\t'value' => 900,\n\t\t\t'label' => '900',\n\t\t)\n\t);\n\n\t$menu_section_title = array(\n\t\t'id' => '_uncode_%section%_menu_block_title',\n\t\t'label' => ' <i class=\"fa fa-menu\"></i> ' . esc_html__('Menu', 'uncode') ,\n\t\t'desc' => '' ,\n\t\t'type' => 'textblock-titled',\n\t\t'class' => 'section-title',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$menu = array(\n\t\t'id' => '_uncode_%section%_menu',\n\t\t'label' => esc_html__('Menu', 'uncode') ,\n\t\t'desc' => esc_html__('Override the primary menu created in \\'Appearance -> Menus\\'.','uncode'),\n\t\t'type' => 'select',\n\t\t'choices' => $menus_array,\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$menu_width = array(\n\t\t'id' => '_uncode_%section%_menu_width',\n\t\t'label' => esc_html__('Menu width', 'uncode') ,\n\t\t'desc' => esc_html__('Override the menu width.', 'uncode'),\n\t\t'type' => 'select',\n\t\t'choices' => array(\n\t\t\tarray(\n\t\t\t\t'value' => '',\n\t\t\t\t'label' => esc_html__('Inherit', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'full',\n\t\t\t\t'label' => esc_html__('Full', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'limit',\n\t\t\t\t'label' => esc_html__('Limit', 'uncode') ,\n\t\t\t) ,\n\t\t) ,\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$menu_opaque = array(\n\t\t'id' => '_uncode_%section%_menu_opaque',\n\t\t'label' => esc_html__('Remove transparency', 'uncode') ,\n\t\t'type' => 'on-off',\n\t\t'desc' => esc_html__('Override to remove the transparency eventually declared in \\'Customize -> Light/Dark skin\\'.', 'uncode') ,\n\t\t'std' => 'off',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$menu_no_padding = array(\n\t\t'id' => '_uncode_%section%_menu_no_padding',\n\t\t'label' => esc_html__('Remove menu content padding', 'uncode') ,\n\t\t'type' => 'on-off',\n\t\t'desc' => esc_html__('Remove the additional menu padding in the header.', 'uncode') ,\n\t\t'std' => 'off',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$menu_no_padding_mobile = array(\n\t\t'id' => '_uncode_%section%_menu_no_padding_mobile',\n\t\t'label' => esc_html__('Remove menu content padding on mobile', 'uncode') ,\n\t\t'type' => 'on-off',\n\t\t'desc' => esc_html__('Remove the additional menu padding in the header on mobile.', 'uncode') ,\n\t\t'std' => 'off',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$title_archive_custom_activate = array(\n\t\t'id' => '_uncode_%section%_custom_title_activate',\n\t\t'label' => esc_html__('Activate custom title and subtitle', 'uncode') ,\n\t\t'type' => 'on-off',\n\t\t'desc' => esc_html__('Activate this to enable the custom title and subtitle.', 'uncode') ,\n\t\t'std' => 'off',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$title_archive_custom_text = array(\n\t\t'id' => '_uncode_%section%_custom_title_text',\n\t\t'label' => esc_html__('Custom title', 'uncode') ,\n\t\t'type' => 'text',\n\t\t'desc' => esc_html__('Insert your custom main archive page title.', 'uncode') ,\n\t\t'std' => '',\n\t\t'section' => 'uncode_%section%_section',\n\t\t'condition' => '_uncode_%section%_custom_title_activate:is(on)',\n\t);\n\n\t$subtitle_archive_custom_text = array(\n\t\t'id' => '_uncode_%section%_custom_subtitle_text',\n\t\t'label' => esc_html__('Custom subtitle', 'uncode') ,\n\t\t'type' => 'text',\n\t\t'desc' => esc_html__('Insert your custom main archive page subtitle.', 'uncode') ,\n\t\t'std' => '',\n\t\t'section' => 'uncode_%section%_section',\n\t\t'condition' => '_uncode_%section%_custom_title_activate:is(on)',\n\t);\n\n\t$header_section_title = array(\n\t\t'id' => '_uncode_%section%_header_block_title',\n\t\t'label' => '<i class=\"fa fa-columns2\"></i> ' . esc_html__('Header', 'uncode') ,\n\t\t'desc' => '' ,\n\t\t'type' => 'textblock-titled',\n\t\t'class' => 'section-title',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$header_type = array(\n\t\t'id' => '_uncode_%section%_header',\n\t\t'label' => esc_html__('Type', 'uncode') ,\n\t\t'desc' => esc_html__('Specify the header type.', 'uncode'),\n\t\t'std' => 'none',\n\t\t'type' => 'select',\n\t\t'choices' => array(\n\t\t\tarray(\n\t\t\t\t'value' => 'none',\n\t\t\t\t'label' => esc_html__('Select…', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'header_basic',\n\t\t\t\t'label' => esc_html__('Basic', 'uncode') ,\n\t\t\t) ,\n\t\t\t$uncodeblock,\n\t\t\t$revslider,\n\t\t\t$layerslider,\n\t\t),\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$header_uncode_block = array(\n\t\t'id' => '_uncode_%section%_blocks',\n\t\t'label' => esc_html__('Content Block', 'uncode') ,\n\t\t'desc' => esc_html__('Specify the Content Block.', 'uncode') ,\n\t\t'type' => 'custom-post-type-select',\n\t\t'condition' => '_uncode_%section%_header:is(header_uncodeblock)',\n\t\t'operator' => 'or',\n\t\t'post_type' => 'uncodeblock',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$header_revslider = array(\n\t\t'id' => '_uncode_%section%_revslider',\n\t\t'label' => esc_html__('Revslider', 'uncode') ,\n\t\t'desc' => esc_html__('Specify the RevSlider.', 'uncode') ,\n\t\t'type' => 'select',\n\t\t'condition' => '_uncode_%section%_header:is(header_revslider)',\n\t\t'operator' => 'or',\n\t\t'choices' => $revsliders,\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$header_layerslider = array(\n\t\t'id' => '_uncode_%section%_layerslider',\n\t\t'label' => esc_html__('LayerSlider', 'uncode') ,\n\t\t'desc' => esc_html__('Specify the LayerSlider.', 'uncode') ,\n\t\t'type' => 'select',\n\t\t'condition' => '_uncode_%section%_header:is(header_layerslider)',\n\t\t'operator' => 'or',\n\t\t'choices' => $layersliders,\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$header_title = array(\n\t\t'label' => esc_html__('Title in header', 'uncode') ,\n\t\t'id' => '_uncode_%section%_header_title',\n\t\t'type' => 'on-off',\n\t\t'desc' => esc_html__('Activate to show title in the header.', 'uncode') ,\n\t\t'std' => 'on',\n\t\t'section' => 'uncode_%section%_section',\n\t\t'condition' => '_uncode_%section%_header:is(header_basic)',\n\t\t'operator' => 'or',\n\t);\n\n\t$header_title_text = array(\n\t\t'id' => '_uncode_%section%_header_title_text',\n\t\t'label' => esc_html__('Custom text', 'uncode') ,\n\t\t'desc' => esc_html__('Add custom text for the header. Every newline in the field is a new line in the title.', 'uncode') ,\n\t\t'type' => 'textarea-simple',\n\t\t'rows' => '15',\n\t\t'section' => 'uncode_%section%_section',\n\t\t'condition' => '_uncode_%section%_header:is(header_basic),_uncode_%section%_header_title:is(on)',\n\t\t'operator' => 'and',\n\t);\n\n\t$header_style = array(\n\t\t'id' => '_uncode_%section%_header_style',\n\t\t'label' => esc_html__('Skin', 'uncode') ,\n\t\t'desc' => esc_html__('Specify the header text skin.', 'uncode') ,\n\t\t'std' => 'light',\n\t\t'type' => 'select',\n\t\t'section' => 'uncode_%section%_section',\n\t\t'condition' => '_uncode_%section%_header:is(header_basic)',\n\t\t'operator' => 'and',\n\t\t'choices' => $stylesArrayMenu\n\t);\n\n\t$header_width = array(\n\t\t'id' => '_uncode_%section%_header_width',\n\t\t'label' => esc_html__('Header width', 'uncode') ,\n\t\t'type' => 'select',\n\t\t'choices' => array(\n\t\t\tarray(\n\t\t\t\t'value' => '',\n\t\t\t\t'label' => esc_html__('Inherit', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'full',\n\t\t\t\t'label' => esc_html__('Full', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'limit',\n\t\t\t\t'label' => esc_html__('Limit', 'uncode') ,\n\t\t\t) ,\n\t\t) ,\n\t\t'desc' => esc_html__('Override the header width.', 'uncode') ,\n\t\t'section' => 'uncode_%section%_section',\n\t\t'condition' => '_uncode_%section%_header:contains(header)',\n\t\t'operator' => 'or',\n\t);\n\n\t$header_content_width = array(\n\t\t'id' => '_uncode_%section%_header_content_width',\n\t\t'label' => esc_html__('Content full width', 'uncode') ,\n\t\t'type' => 'on-off',\n\t\t'desc' => esc_html__('Activate to expand the header content to full width.', 'uncode') ,\n\t\t'std' => 'off',\n\t\t'section' => 'uncode_%section%_section',\n\t\t'condition' => '_uncode_%section%_header:is(header_basic)',\n\t\t'operator' => 'and',\n\t);\n\n\t$header_custom_width = array(\n\t\t'id' => '_uncode_%section%_header_custom_width',\n\t\t'label' => esc_html__('Custom inner width','uncode'),\n\t\t'desc' => esc_html__('Adjust the inner content width in %.', 'uncode') ,\n\t\t'std' => '100',\n\t\t'type' => 'numeric-slider',\n\t\t'min_max_step' => '0,100,1',\n\t\t'condition' => '_uncode_%section%_header:is(header_basic)',\n\t\t'operator' => 'and',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$header_align = array(\n\t\t'id' => '_uncode_%section%_header_align',\n\t\t'label' => esc_html__('Content alignment', 'uncode') ,\n\t\t'desc' => esc_html__('Specify the text/content alignment.', 'uncode') ,\n\t\t'std' => 'center',\n\t\t'type' => 'select',\n\t\t'section' => 'uncode_%section%_section',\n\t\t'condition' => '_uncode_%section%_header:is(header_basic),_uncode_%section%_header_title:is(on)',\n\t\t'operator' => 'and',\n\t\t'choices' => array(\n\t\t\tarray(\n\t\t\t\t'value' => 'left',\n\t\t\t\t'label' => esc_html__('Left', 'uncode') ,\n\t\t\t\t'src' => ''\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'center',\n\t\t\t\t'label' => esc_html__('Center', 'uncode') ,\n\t\t\t\t'src' => ''\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'right',\n\t\t\t\t'label' => esc_html__('Right', 'uncode') ,\n\t\t\t\t'src' => ''\n\t\t\t)\n\t\t)\n\t);\n\n\t$header_height = array(\n\t\t'id' => '_uncode_%section%_header_height',\n\t\t'label' => esc_html__('Height', 'uncode') ,\n\t\t'desc' => esc_html__('Define the height of the header in px or in % (relative to the window height).', 'uncode') ,\n\t\t'type' => 'measurement',\n\t\t'std' => array(\n\t\t\t'60',\n\t\t\t'%'\n\t\t) ,\n\t\t'condition' => '_uncode_%section%_header:is(header_basic)',\n\t\t'operator' => 'or',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$header_min_height = array(\n\t\t'id' => '_uncode_%section%_header_min_height',\n\t\t'label' => esc_html__('Minimal height', 'uncode') ,\n\t\t'desc' => esc_html__('Enter a minimun height for the header in pixel.', 'uncode') ,\n\t\t'type' => 'text',\n\t\t'std' => '300',\n\t\t'condition' => '_uncode_%section%_header:is(header_basic)',\n\t\t'operator' => 'or',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$header_position = array(\n\t\t'id' => '_uncode_%section%_header_position',\n\t\t'label' => esc_html__('Position', 'uncode') ,\n\t\t'desc' => esc_html__('Specify the position of the header content inside the container.', 'uncode') ,\n\t\t'std' => 'header-center header-middle',\n\t\t'type' => 'select',\n\t\t'operator' => 'and',\n\t\t'condition' => '_uncode_%section%_header:is(header_basic),_uncode_%section%_header_title:is(on)',\n\t\t'choices' => array(\n\t\t\tarray(\n\t\t\t\t'value' => 'header-left header-top',\n\t\t\t\t'label' => esc_html__('Left Top', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'header-left header-center',\n\t\t\t\t'label' => esc_html__('Left Center', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'header-left header-bottom',\n\t\t\t\t'label' => esc_html__('Left Bottom', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'header-center header-top',\n\t\t\t\t'label' => esc_html__('Center Top', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'header-center header-middle',\n\t\t\t\t'label' => esc_html__('Center Center', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'header-center header-bottom',\n\t\t\t\t'label' => esc_html__('Center Bottom', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'header-right header-top',\n\t\t\t\t'label' => esc_html__('Right Top', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'header-right header-center',\n\t\t\t\t'label' => esc_html__('Right Center', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'header-right header-bottom',\n\t\t\t\t'label' => esc_html__('Right Bottom', 'uncode') ,\n\t\t\t) ,\n\t\t),\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$header_title_font = array(\n\t\t'id' => '_uncode_%section%_header_title_font',\n\t\t'label' => esc_html__('Title font family', 'uncode') ,\n\t\t'desc' => esc_html__('Specify the font for the title.', 'uncode') ,\n\t\t'std' => 'font-555555',\n\t\t'type' => 'select',\n\t\t'condition' => '_uncode_%section%_header:is(header_basic),_uncode_%section%_header_title:is(on)',\n\t\t'operator' => 'and',\n\t\t'choices' => $custom_fonts,\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$header_title_size = array(\n\t\t'id' => '_uncode_%section%_header_title_size',\n\t\t'label' => esc_html__('Title font size', 'uncode') ,\n\t\t'desc' => esc_html__('Specify the font size for the title.', 'uncode') ,\n\t\t'type' => 'select',\n\t\t'condition' => '_uncode_%section%_header:is(header_basic),_uncode_%section%_header_title:is(on)',\n\t\t'operator' => 'and',\n\t\t'choices' => $title_size,\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$header_title_height = array(\n\t\t'id' => '_uncode_%section%_header_title_height',\n\t\t'label' => esc_html__('Title line height', 'uncode') ,\n\t\t'desc' => esc_html__('Specify the line height for the title.', 'uncode') ,\n\t\t'type' => 'select',\n\t\t'condition' => '_uncode_%section%_header:is(header_basic),_uncode_%section%_header_title:is(on)',\n\t\t'operator' => 'and',\n\t\t'choices' => $title_height,\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$header_title_spacing = array(\n\t\t'id' => '_uncode_%section%_header_title_spacing',\n\t\t'label' => esc_html__('Title letter spacing', 'uncode') ,\n\t\t'desc' => esc_html__('Specify the letter spacing for the title.', 'uncode') ,\n\t\t'type' => 'select',\n\t\t'condition' => '_uncode_%section%_header:is(header_basic),_uncode_%section%_header_title:is(on)',\n\t\t'operator' => 'and',\n\t\t'choices' => $title_spacing,\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$header_title_weight = array(\n\t\t'id' => '_uncode_%section%_header_title_weight',\n\t\t'label' => esc_html__('Title font weight', 'uncode') ,\n\t\t'desc' => esc_html__('Specify the font weight for the title.', 'uncode') ,\n\t\t'type' => 'select',\n\t\t'condition' => '_uncode_%section%_header:is(header_basic),_uncode_%section%_header_title:is(on)',\n\t\t'operator' => 'and',\n\t\t'choices' => $title_weight,\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$header_title_italic = array(\n\t\t'id' => '_uncode_%section%_header_title_italic',\n\t\t'label' => esc_html__('Title italic', 'uncode') ,\n\t\t'desc' => esc_html__('Activate the font style italic for the title.', 'uncode') ,\n\t\t'type' => 'on-off',\n\t\t'std' => 'off',\n\t\t'section' => 'uncode_%section%_section',\n\t\t'condition' => '_uncode_%section%_header:is(header_basic),_uncode_%section%_header_title:is(on)',\n\t\t'operator' => 'and',\n\t);\n\n\t$header_title_transform = array(\n\t\t'id' => '_uncode_%section%_header_title_transform',\n\t\t'label' => esc_html__('Title text transform', 'uncode') ,\n\t\t'desc' => esc_html__('Specify the title text transformation.', 'uncode') ,\n\t\t'type' => 'select',\n\t\t'section' => 'uncode_%section%_section',\n\t\t'condition' => '_uncode_%section%_header:is(header_basic),_uncode_%section%_header_title:is(on)',\n\t\t'operator' => 'and',\n\t\t'choices' => array(\n\t\t\tarray(\n\t\t\t\t'value' => '',\n\t\t\t\t'label' => esc_html__('Default CSS', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'uppercase',\n\t\t\t\t'label' => esc_html__('Uppercase', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'lowercase',\n\t\t\t\t'label' => esc_html__('Lowercase', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'capitalize',\n\t\t\t\t'label' => esc_html__('Capitalize', 'uncode') ,\n\t\t\t) ,\n\t\t)\n\t);\n\n\t$header_text_animation = array(\n\t\t'id' => '_uncode_%section%_header_text_animation',\n\t\t'label' => esc_html__('Text animation', 'uncode') ,\n\t\t'desc' => esc_html__('Specify the entrance animation of the title text.', 'uncode') ,\n\t\t'type' => 'select',\n\t\t'condition' => '_uncode_%section%_header:is(header_basic),_uncode_%section%_header_title:is(on)',\n\t\t'operator' => 'and',\n\t\t'choices' => array(\n\t\t\tarray(\n\t\t\t\t'value' => '',\n\t\t\t\t'label' => esc_html__('Select…', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'top-t-bottom',\n\t\t\t\t'label' => esc_html__('Top to bottom', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'left-t-right',\n\t\t\t\t'label' => esc_html__('Left to right', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'right-t-left',\n\t\t\t\t'label' => esc_html__('Right to left', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'bottom-t-top',\n\t\t\t\t'label' => esc_html__('Bottom to top', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'zoom-in',\n\t\t\t\t'label' => esc_html__('Zoom in', 'uncode') ,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'value' => 'zoom-out',\n\t\t\t\t'label' => esc_html__('Zoom out', 'uncode') ,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'value' => 'alpha-anim',\n\t\t\t\t'label' => esc_html__('Alpha', 'uncode') ,\n\t\t\t)\n\t\t),\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$header_animation_delay = array(\n\t\t'id' => '_uncode_%section%_header_animation_delay',\n\t\t'label' => esc_html__('Animation delay', 'uncode') ,\n\t\t'desc' => esc_html__('Specify the entrance animation delay of the title text in milliseconds.', 'uncode') ,\n\t\t'type' => 'select',\n\t\t'condition' => '_uncode_%section%_header:is(header_basic),_uncode_%section%_header_title:is(on),_uncode_%section%_header_text_animation:not()',\n\t\t'operator' => 'and',\n\t\t'choices' => array(\n\t\t\tarray(\n\t\t\t\t'value' => '',\n\t\t\t\t'label' => esc_html__('None', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '100',\n\t\t\t\t'label' => esc_html__('ms 100', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '200',\n\t\t\t\t'label' => esc_html__('ms 200', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '300',\n\t\t\t\t'label' => esc_html__('ms 300', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '400',\n\t\t\t\t'label' => esc_html__('ms 400', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '500',\n\t\t\t\t'label' => esc_html__('ms 500', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '600',\n\t\t\t\t'label' => esc_html__('ms 600', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '700',\n\t\t\t\t'label' => esc_html__('ms 700', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '800',\n\t\t\t\t'label' => esc_html__('ms 800', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '900',\n\t\t\t\t'label' => esc_html__('ms 900', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '1000',\n\t\t\t\t'label' => esc_html__('ms 1000', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '1100',\n\t\t\t\t'label' => esc_html__('ms 1100', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '1200',\n\t\t\t\t'label' => esc_html__('ms 1200', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '1300',\n\t\t\t\t'label' => esc_html__('ms 1300', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '1400',\n\t\t\t\t'label' => esc_html__('ms 1400', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '1500',\n\t\t\t\t'label' => esc_html__('ms 1500', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '1600',\n\t\t\t\t'label' => esc_html__('ms 1600', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '1700',\n\t\t\t\t'label' => esc_html__('ms 1700', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '1800',\n\t\t\t\t'label' => esc_html__('ms 1800', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '1900',\n\t\t\t\t'label' => esc_html__('ms 1900', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '2000',\n\t\t\t\t'label' => esc_html__('ms 2000', 'uncode') ,\n\t\t\t) ,\n\t\t),\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$header_animation_speed = array(\n\t\t'id' => '_uncode_%section%_header_animation_speed',\n\t\t'label' => esc_html__('Animation speed', 'uncode') ,\n\t\t'desc' => esc_html__('Specify the entrance animation speed of the title text in milliseconds.', 'uncode') ,\n\t\t'type' => 'select',\n\t\t'condition' => '_uncode_%section%_header:is(header_basic),_uncode_%section%_header_title:is(on),_uncode_%section%_header_text_animation:not()',\n\t\t'operator' => 'and',\n\t\t'choices' => array(\n\t\t\tarray(\n\t\t\t\t'value' => '',\n\t\t\t\t'label' => esc_html__('Default (400)', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '100',\n\t\t\t\t'label' => esc_html__('ms 100', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '200',\n\t\t\t\t'label' => esc_html__('ms 200', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '300',\n\t\t\t\t'label' => esc_html__('ms 300', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '400',\n\t\t\t\t'label' => esc_html__('ms 400', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '500',\n\t\t\t\t'label' => esc_html__('ms 500', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '600',\n\t\t\t\t'label' => esc_html__('ms 600', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '700',\n\t\t\t\t'label' => esc_html__('ms 700', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '800',\n\t\t\t\t'label' => esc_html__('ms 800', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '900',\n\t\t\t\t'label' => esc_html__('ms 900', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '1000',\n\t\t\t\t'label' => esc_html__('ms 1000', 'uncode') ,\n\t\t\t) ,\n\t\t),\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$header_featured = array(\n\t\t'label' => esc_html__('Featured media in header', 'uncode') ,\n\t\t'id' => '_uncode_%section%_header_featured',\n\t\t'type' => 'on-off',\n\t\t'desc' => esc_html__('Activate to use the featured image in the header.', 'uncode') ,\n\t\t'std' => 'on',\n\t\t'section' => 'uncode_%section%_section',\n\t\t'condition' => '_uncode_%section%_header:is(header_basic)',\n\t\t'operator' => 'or',\n\t);\n\n\t$header_background = array(\n\t\t'id' => '_uncode_%section%_header_background',\n\t\t'label' => esc_html__('Background', 'uncode') ,\n\t\t'desc' => esc_html__('Specify the background media and color.', 'uncode') ,\n\t\t'type' => 'background',\n\t\t'std' => array(\n\t\t\t'background-color' => 'color-gyho',\n\t\t\t'background-repeat' => '',\n\t\t\t'background-attachment' => '',\n\t\t\t'background-position' => '',\n\t\t\t'background-size' => '',\n\t\t\t'background-image' => '',\n\t\t),\n\t\t'section' => 'uncode_%section%_section',\n\t\t'condition' => '_uncode_%section%_header:is(header_basic)',\n\t\t'operator' => 'or',\n\t);\n\n\t$header_parallax = array(\n\t\t'id' => '_uncode_%section%_header_parallax',\n\t\t'label' => esc_html__('Parallax', 'uncode') ,\n\t\t'type' => 'on-off',\n\t\t'desc' => esc_html__('Activate the background parallax effect.', 'uncode') ,\n\t\t'std' => 'off',\n\t\t'section' => 'uncode_%section%_section',\n\t\t'condition' => '_uncode_%section%_header:is(header_basic)',\n\t\t'operator' => 'or',\n\t);\n\n\t$header_kburns = array(\n\t\t'id' => '_uncode_%section%_header_kburns',\n\t\t'label' => esc_html__('Zoom Effect', 'uncode') ,\n\t\t'desc' => esc_html__('Select the background zoom effect you prefer.', 'uncode') ,\n\t\t'type' => 'select',\n\t\t'choices' => array(\n\t\t\tarray(\n\t\t\t\t'value' => '',\n\t\t\t\t'label' => esc_html__('None', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'on',\n\t\t\t\t'label' => esc_html__('Ken Burns', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'zoom',\n\t\t\t\t'label' => esc_html__('Zoom Out', 'uncode') ,\n\t\t\t) ,\n\t\t) ,\n\t\t'section' => 'uncode_%section%_section',\n\t\t'condition' => '_uncode_%section%_header:is(header_basic)',\n\t\t'operator' => 'or',\n\t);\n\n\t$header_overlay_color = array(\n\t\t'id' => '_uncode_%section%_header_overlay_color',\n\t\t'label' => esc_html__('Overlay color', 'uncode') ,\n\t\t'desc' => esc_html__('Specify the overlay background color.', 'uncode') ,\n\t\t'type' => 'uncode_color',\n\t\t'section' => 'uncode_%section%_section',\n\t\t'condition' => '_uncode_%section%_header:is(header_basic)',\n\t\t'operator' => 'or',\n\t);\n\n\t$header_overlay_color_alpha = array(\n\t\t'id' => '_uncode_%section%_header_overlay_color_alpha',\n\t\t'label' => esc_html__('Overlay color opacity', 'uncode') ,\n\t\t'desc' => esc_html__('Set the overlay opacity.', 'uncode') ,\n\t\t'std' => '100',\n\t\t'min_max_step' => '0,100,1',\n\t\t'type' => 'numeric-slider',\n\t\t'section' => 'uncode_%section%_section',\n\t\t'condition' => '_uncode_%section%_header:is(header_basic)',\n\t\t'operator' => 'or',\n\t);\n\n\t$header_scroll_opacity = array(\n\t\t'id' => '_uncode_%section%_header_scroll_opacity',\n\t\t'label' => esc_html__('Scroll opacity', 'uncode') ,\n\t\t'desc' => esc_html__('Activate alpha animation when scrolling down.', 'uncode') ,\n\t\t'type' => 'on-off',\n\t\t'std' => 'off',\n\t\t'section' => 'uncode_%section%_section',\n\t\t'condition' => '_uncode_%section%_header:is(header_basic),_uncode_%section%_header:is(header_uncodeblock)',\n\t\t'operator' => 'or',\n\t);\n\n\t$header_scrolldown = array(\n\t\t'id' => '_uncode_%section%_header_scrolldown',\n\t\t'label' => esc_html__('Scroll down arrow', 'uncode') ,\n\t\t'desc' => esc_html__('Activate the scroll down arrow button.', 'uncode') ,\n\t\t'type' => 'on-off',\n\t\t'std' => 'off',\n\t\t'section' => 'uncode_%section%_section',\n\t\t'condition' => '_uncode_%section%_header:not(none)',\n\t\t'operator' => 'or',\n\t);\n\n\t$show_breadcrumb = array(\n\t\t'id' => '_uncode_%section%_breadcrumb',\n\t\t'label' => esc_html__('Show breadcrumb', 'uncode') ,\n\t\t'desc' => esc_html__('Activate to show the navigation breadcrumb.', 'uncode') ,\n\t\t'std' => 'off',\n\t\t'type' => 'on-off',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$breadcrumb_align = array(\n\t\t'id' => '_uncode_%section%_breadcrumb_align',\n\t\t'label' => esc_html__('Breadcrumb align', 'uncode') ,\n\t\t'desc' => esc_html__('Specify the breadcrumb alignment','uncode'),\n\t\t'type' => 'select',\n\t\t'choices' => array(\n\t\t\tarray(\n\t\t\t\t'value' => '',\n\t\t\t\t'label' => esc_html__('Right', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'center',\n\t\t\t\t'label' => esc_html__('Center', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'left',\n\t\t\t\t'label' => esc_html__('Left', 'uncode') ,\n\t\t\t) ,\n\t\t) ,\n\t\t'section' => 'uncode_%section%_section',\n\t\t'condition' => '_uncode_%section%_breadcrumb:is(on)',\n\t\t'operator' => 'or',\n\t);\n\n\t$show_title = array(\n\t\t'id' => '_uncode_%section%_title',\n\t\t'label' => esc_html__('Show title', 'uncode') ,\n\t\t'desc' => esc_html__('Activate to show the title in the content area.', 'uncode') ,\n\t\t'std' => 'off',\n\t\t'type' => 'on-off',\n\t\t'section' => 'uncode_%section%_section',\n\t\t'operator' => 'or'\n\t);\n\n\t$remove_pagination = array(\n\t\t'id' => '_uncode_%section%_remove_pagination',\n\t\t'label' => esc_html__('Remove pagination', 'uncode') ,\n\t\t'desc' => esc_html__('Activate this to remove the pagination (useful when you use a custom Content Block with Pagination or Load More options).', 'uncode') ,\n\t\t'std' => 'off',\n\t\t'type' => 'on-off',\n\t\t'section' => 'uncode_%section%_section',\n\t\t'operator' => 'or'\n\t);\n\n\t$products_per_page = array(\n\t\t'id' => '_uncode_%section%_ppp',\n\t\t'label' => esc_html__('Number of products', 'uncode') ,\n\t\t'desc' => esc_html__('Set the number of items to display on product archives. \\'Inherit\\' inherits the WordPress Settings > Readings > Blog Number of Posts', 'uncode') ,\n\t\t'std' => '0',\n\t\t'min_max_step' => '0,100,1',\n\t\t'type' => 'numeric-slider',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$show_media = array(\n\t\t'id' => '_uncode_%section%_media',\n\t\t'label' => esc_html__('Show media', 'uncode') ,\n\t\t'desc' => esc_html__('Activate to show the medias in the content area.', 'uncode') ,\n\t\t'std' => 'on',\n\t\t'type' => 'on-off',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$show_featured_media = array(\n\t\t'id' => '_uncode_%section%_featured_media',\n\t\t'label' => esc_html__('Show featured image', 'uncode') ,\n\t\t'desc' => esc_html__('Activate to show the featured image in the content area.', 'uncode') ,\n\t\t'std' => 'off',\n\t\t'type' => 'on-off',\n\t\t'condition' => '_uncode_%section%_media:not(on)',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$show_tags = array(\n\t\t'id' => '_uncode_%section%_tags',\n\t\t'label' => esc_html__('Show tags', 'uncode') ,\n\t\t'desc' => esc_html__('Activate to show the tags and choose visbility by post to post bases.', 'uncode') ,\n\t\t'std' => 'off',\n\t\t'type' => 'on-off',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$show_tags_align = array(\n\t\t'id' => '_uncode_%section%_tags_align',\n\t\t'label' => esc_html__('Tags alignment', 'uncode') ,\n\t\t'desc' => esc_html__('Specify the tags alignment.', 'uncode') ,\n\t\t'type' => 'select',\n\t\t'choices' => array(\n\t\t\tarray(\n\t\t\t\t'value' => 'left',\n\t\t\t\t'label' => esc_html__('Left align', 'uncode') ,\n\t\t\t\t'src' => ''\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'center',\n\t\t\t\t'label' => esc_html__('Center align', 'uncode') ,\n\t\t\t\t'src' => ''\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'right',\n\t\t\t\t'label' => esc_html__('Right align', 'uncode') ,\n\t\t\t\t'src' => ''\n\t\t\t)\n\t\t),\n\t\t'section' => 'uncode_%section%_section',\n\t\t'condition' => '_uncode_%section%_tags:is(on)',\n\t\t'operator' => 'or',\n\t);\n\n\t$show_comments = array(\n\t\t'id' => '_uncode_%section%_comments',\n\t\t'label' => esc_html__('Show comments', 'uncode') ,\n\t\t'desc' => esc_html__('Activate to show the comments and choose visbility by post to post bases.', 'uncode') ,\n\t\t'std' => 'on',\n\t\t'type' => 'on-off',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$show_share = array(\n\t\t'id' => '_uncode_%section%_share',\n\t\t'label' => esc_html__('Show share', 'uncode') ,\n\t\t'desc' => esc_html__('Activate to show the share module.', 'uncode') ,\n\t\t'std' => 'off',\n\t\t'type' => 'on-off',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$image_layout = array(\n\t\t'id' => '_uncode_%section%_image_layout',\n\t\t'label' => esc_html__('Media layout', 'uncode') ,\n\t\t'desc' => esc_html__('Specify the layout mode for the product images section.', 'uncode') ,\n\t\t'std' => '',\n\t\t'type' => 'select',\n\t\t'choices' => array(\n\t\t\tarray(\n\t\t\t\t'value' => '',\n\t\t\t\t'label' => esc_html__('Standard', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'stack',\n\t\t\t\t'label' => esc_html__('Stack', 'uncode') ,\n\t\t\t) ,\n\t\t) ,\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$media_size = array(\n\t\t'id' => '_uncode_%section%_media_size',\n\t\t'label' => esc_html__('Media layout size', 'uncode') ,\n\t\t'desc' => esc_html__('Specify the size of the media layout area.', 'uncode') ,\n\t\t'std' => '6',\n\t\t'min_max_step' => '1,11,1',\n\t\t'type' => 'numeric-slider',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$enable_sticky_desc = array(\n\t\t'id' => '_uncode_%section%_sticky_desc',\n\t\t'label' => esc_html__('Sticky content', 'uncode') ,\n\t\t'desc' => esc_html__('Activate to enable sticky effect for product description.', 'uncode') ,\n\t\t'std' => 'on',\n\t\t'type' => 'on-off',\n\t\t'section' => 'uncode_%section%_section',\n\t\t'condition' => '_uncode_%section%_image_layout:is(stack)',\n\t);\n\n\t$enable_woo_zoom = array(\n\t\t'id' => '_uncode_%section%_enable_zoom',\n\t\t'label' => esc_html__('Zoom', 'uncode') ,\n\t\t'desc' => esc_html__('Activate to enable drag zoom effect on product image.', 'uncode') ,\n\t\t'std' => 'off',\n\t\t'type' => 'on-off',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$thumb_cols = array(\n\t\t'id' => '_uncode_%section%_thumb_cols',\n\t\t'label' => esc_html__('Thumbnails columns', 'uncode') ,\n\t\t'desc' => esc_html__('Specify how many columns to display for your product gallery thumbs.', 'uncode') ,\n\t\t'std' => '',\n\t\t'type' => 'select',\n\t\t'choices' => array(\n\t\t\tarray(\n\t\t\t\t'value' => '2',\n\t\t\t\t'label' => '2',\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '',\n\t\t\t\t'label' => '3',\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '4',\n\t\t\t\t'label' => '4',\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '5',\n\t\t\t\t'label' => '5',\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '6',\n\t\t\t\t'label' => '6',\n\t\t\t) ,\n\t\t) ,\n\t\t'section' => 'uncode_%section%_section',\n\t\t'condition' => '_uncode_%section%_image_layout:is()',\n\t);\n\n\t$enable_woo_slider = array(\n\t\t'id' => '_uncode_%section%_enable_slider',\n\t\t'label' => esc_html__('Thumbnails carousel', 'uncode') ,\n\t\t'desc' => esc_html__('Activate to enable carousel slider when you click gallery thumbs.', 'uncode') ,\n\t\t'std' => 'off',\n\t\t'type' => 'on-off',\n\t\t'section' => 'uncode_%section%_section',\n\t\t'condition' => '_uncode_%section%_image_layout:is()',\n\t);\n\n\t$body_section_title = array(\n\t\t'id' => '_uncode_%section%_body_title',\n\t\t'label' => '<i class=\"fa fa-layout\"></i> ' . esc_html__('Content', 'uncode') ,\n\t\t'desc' => '' ,\n\t\t'type' => 'textblock-titled',\n\t\t'class' => 'section-title',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$body_uncode_block = array(\n\t\t'id' => '_uncode_%section%_content_block',\n\t\t'label' => esc_html__('Content Block', 'uncode') ,\n\t\t'desc' => esc_html__('Define the Content Block to use. NB. Select \"Inherit\" to use the default template.', 'uncode') ,\n\t\t'type' => 'select',\n\t\t'choices' => $uncodeblocks,\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$body_uncode_block_before = array(\n\t\t'id' => '_uncode_%section%_content_block_before',\n\t\t'label' => esc_html__('Content Block - Before Content', 'uncode') ,\n\t\t'desc' => esc_html__('Define the Content Block to use.', 'uncode') ,\n\t\t'type' => 'custom-post-type-select',\n\t\t'post_type' => 'uncodeblock',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$body_uncode_block_after_pre = array(\n\t\t'id' => '_uncode_%section%_content_block_after_pre',\n\t\t'label' => esc_html__('After Content (ex: Author Profile)', 'uncode') ,\n\t\t'desc' => esc_html__('Define the Content Block to use.', 'uncode') ,\n\t\t'type' => 'custom-post-type-select',\n\t\t'post_type' => 'uncodeblock',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$body_uncode_block_after = array(\n\t\t'id' => '_uncode_%section%_content_block_after',\n\t\t'label' => esc_html__('After Content (ex: Related Posts)', 'uncode') ,\n\t\t'desc' => esc_html__('Define the Content Block to use.', 'uncode') ,\n\t\t'type' => 'custom-post-type-select',\n\t\t'post_type' => 'uncodeblock',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$body_layout_width = array(\n\t\t'id' => '_uncode_%section%_layout_width',\n\t\t'label' => esc_html__('Content width', 'uncode') ,\n\t\t'desc' => esc_html__('Specify the content width.', 'uncode'),\n\t\t'type' => 'select',\n\t\t'choices' => array(\n\t\t\tarray(\n\t\t\t\t'value' => '',\n\t\t\t\t'label' => esc_html__('Inherit', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'full',\n\t\t\t\t'label' => esc_html__('Full', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'limit',\n\t\t\t\t'label' => esc_html__('Limit', 'uncode') ,\n\t\t\t) ,\n\t\t) ,\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$body_layout_width_custom = array(\n\t\t'id' => '_uncode_%section%_layout_width_custom',\n\t\t'label' => esc_html__('Custom width', 'uncode') ,\n\t\t'desc' => esc_html__('Define the custom width for the content area in px or in %. This option takes effect with normal contents (not Page Builder).', 'uncode') ,\n\t\t'type' => 'measurement',\n\t\t'condition' => '_uncode_%section%_layout_width:is(limit)',\n\t\t'operator' => 'or',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$body_single_post_width = array(\n\t\t'id' => '_uncode_%section%_single_width',\n\t\t'label' => esc_html__('Single post width', 'uncode') ,\n\t\t'desc' => esc_html__('Specify the single post width from 1 to 12.', 'uncode'),\n\t\t'type' => 'select',\n\t\t'std' => '4',\n\t\t'condition' => '_uncode_%section%_content_block:is(),_uncode_%section%_content_block:is(none)',\n\t\t'operator' => 'or',\n\t\t'choices' => array(\n\t\t\tarray(\n\t\t\t\t'value' => '1',\n\t\t\t\t'label' => '1' ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '2',\n\t\t\t\t'label' => '2' ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '3',\n\t\t\t\t'label' => '3' ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '4',\n\t\t\t\t'label' => '4' ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '5',\n\t\t\t\t'label' => '5' ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '6',\n\t\t\t\t'label' => '6' ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '7',\n\t\t\t\t'label' => '7' ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '8',\n\t\t\t\t'label' => '8' ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '9',\n\t\t\t\t'label' => '9' ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '10',\n\t\t\t\t'label' => '10' ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '11',\n\t\t\t\t'label' => '11' ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => '12',\n\t\t\t\t'label' => '12' ,\n\t\t\t) ,\n\t\t) ,\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$body_single_text_lenght = array(\n\t\t'id' => '_uncode_%section%_single_text_length',\n\t\t'label' => esc_html__('Single teaser text length', 'uncode') ,\n\t\t'desc' => esc_html__('Enter the number of words you want for the teaser. If nothing in entered the full content will be showed.', 'uncode') ,\n\t\t'type' => 'text',\n\t\t'section' => 'uncode_%section%_section',\n\t\t'condition' => '_uncode_%section%_content_block:is(),_uncode_%section%_content_block:is(none)',\n\t\t'operator' => 'or',\n\t);\n\n\t$sidebar_section_title = array(\n\t\t'id' => '_uncode_%section%_sidebar_title',\n\t\t'label' => '<i class=\"fa fa-content-right\"></i> ' . esc_html__('Sidebar', 'uncode') ,\n\t\t'desc' => '' ,\n\t\t'type' => 'textblock-titled',\n\t\t'class' => 'section-title',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$sidebar_activate = array(\n\t\t'id' => '_uncode_%section%_activate_sidebar',\n\t\t'label' => esc_html__('Activate the sidebar', 'uncode') ,\n\t\t'desc' => esc_html__('Activate to show the sidebar.', 'uncode') ,\n\t\t'std' => 'off',\n\t\t'type' => 'on-off',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$sidebar_widget = array(\n\t\t'id' => '_uncode_%section%_sidebar',\n\t\t'label' => esc_html__('Sidebar', 'uncode') ,\n\t\t'desc' => esc_html__('Specify the sidebar.', 'uncode') ,\n\t\t'type' => 'sidebar-select',\n\t\t'section' => 'uncode_%section%_section',\n\t\t'condition' => '_uncode_%section%_activate_sidebar:not(off)',\n\t);\n\n\t$sidebar_position = array(\n\t\t'id' => '_uncode_%section%_sidebar_position',\n\t\t'label' => esc_html__('Position', 'uncode') ,\n\t\t'desc' => esc_html__('Specify the position of the sidebar.', 'uncode') ,\n\t\t'type' => 'select',\n\t\t'choices' => array(\n\t\t\tarray(\n\t\t\t\t'value' => 'sidebar_right',\n\t\t\t\t'label' => esc_html__('Right', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'sidebar_left',\n\t\t\t\t'label' => esc_html__('Left', 'uncode') ,\n\t\t\t) ,\n\t\t) ,\n\t\t'condition' => '_uncode_%section%_activate_sidebar:not(off)',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$sidebar_size = array(\n\t\t'id' => '_uncode_%section%_sidebar_size',\n\t\t'label' => esc_html__('Size', 'uncode') ,\n\t\t'desc' => esc_html__('Set the size of the sidebar.', 'uncode') ,\n\t\t'std' => '4',\n\t\t'min_max_step' => '1,11,1',\n\t\t'type' => 'numeric-slider',\n\t\t'condition' => '_uncode_%section%_activate_sidebar:not(off)',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$sidebar_sticky = array(\n\t\t'id' => '_uncode_%section%_sidebar_sticky',\n\t\t'label' => esc_html__('Sticky sidebar', 'uncode') ,\n\t\t'desc' => esc_html__('Activate to have a sticky sidebar.', 'uncode') ,\n\t\t'std' => 'off',\n\t\t'type' => 'on-off',\n\t\t'condition' => '_uncode_%section%_activate_sidebar:not(off)',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$sidebar_style = array(\n\t\t'id' => '_uncode_%section%_sidebar_style',\n\t\t'label' => esc_html__('Skin', 'uncode') ,\n\t\t'desc' => esc_html__('Override the sidebar text skin color.', 'uncode') ,\n\t\t'type' => 'select',\n\t\t'choices' => array(\n\t\t\tarray(\n\t\t\t\t'value' => '',\n\t\t\t\t'label' => esc_html__('Inherit', \"uncode\") ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'light',\n\t\t\t\t'label' => esc_html__('Light', \"uncode\") ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'dark',\n\t\t\t\t'label' => esc_html__('Dark', \"uncode\") ,\n\t\t\t)\n\t\t),\n\t\t'section' => 'uncode_%section%_section',\n\t\t'condition' => '_uncode_%section%_activate_sidebar:not(off)',\n\t);\n\n\t$sidebar_bgcolor = array(\n\t\t'id' => '_uncode_%section%_sidebar_bgcolor',\n\t\t'label' => esc_html__('Background color', 'uncode') ,\n\t\t'desc' => esc_html__('Specify the sidebar background color.', 'uncode') ,\n\t\t'type' => 'uncode_color',\n\t\t'section' => 'uncode_%section%_section',\n\t\t'condition' => '_uncode_%section%_activate_sidebar:not(off)',\n\t);\n\n\t$sidebar_fill = array(\n\t\t'id' => '_uncode_%section%_sidebar_fill',\n\t\t'label' => esc_html__('Sidebar filling space', 'uncode') ,\n\t\t'desc' => esc_html__('Activate to remove padding around the sidebar and fill the height.', 'uncode') ,\n\t\t'type' => 'on-off',\n\t\t'section' => 'uncode_%section%_section',\n\t\t'std' => 'off',\n\t\t'operator' => 'and',\n\t\t'condition' => '_uncode_%section%_sidebar_bgcolor:not(),_uncode_%section%_activate_sidebar:not(off)',\n\t);\n\n\t$navigation_section_title = array(\n\t\t'id' => '_uncode_%section%_navigation_title',\n\t\t'label' => '<i class=\"fa fa-location\"></i> ' . esc_html__('Navigation', 'uncode') ,\n\t\t'desc' => '' ,\n\t\t'type' => 'textblock-titled',\n\t\t'class' => 'section-title',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$navigation_activate = array(\n\t\t'id' => '_uncode_%section%_navigation_activate',\n\t\t'label' => esc_html__('Navigation bar', 'uncode') ,\n\t\t'desc' => esc_html__('Activate to show the navigation bar.', 'uncode') ,\n\t\t'std' => 'on',\n\t\t'type' => 'on-off',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$navigation_page_index = array(\n\t\t'id' => '_uncode_%section%_navigation_index',\n\t\t'label' => esc_html__('Navigation index', 'uncode') ,\n\t\t'desc' => esc_html__('Specify the page you want to use as index.', 'uncode'),\n\t\t'type' => 'page-select',\n\t\t'section' => 'uncode_%section%_section',\n\t\t'operator' => 'and',\n\t\t'condition' => '_uncode_%section%_navigation_activate:not(off)',\n\t);\n\n\t$navigation_index_label = array(\n\t\t'id' => '_uncode_%section%_navigation_index_label',\n\t\t'label' => esc_html__('Index custom label', 'uncode') ,\n\t\t'desc' => esc_html__('Enter a custom label for the index button.', 'uncode') ,\n\t\t'type' => 'text',\n\t\t'section' => 'uncode_%section%_section',\n\t\t'operator' => 'and',\n\t\t'condition' => '_uncode_%section%_navigation_activate:not(off)',\n\t);\n\n\t$navigation_nextprev_title = array(\n\t\t'id' => '_uncode_%section%_navigation_nextprev_title',\n\t\t'label' => esc_html__('Navigation titles', 'uncode') ,\n\t\t'desc' => esc_html__('Activate to show the next/prev post title.', 'uncode') ,\n\t\t'std' => 'off',\n\t\t'type' => 'on-off',\n\t\t'section' => 'uncode_%section%_section',\n\t\t'operator' => 'and',\n\t\t'condition' => '_uncode_%section%_navigation_activate:not(off)',\n\t);\n\n\t$footer_section_title = array(\n\t\t'id' => '_uncode_%section%_footer_block_title',\n\t\t'label' => '<i class=\"fa fa-ellipsis\"></i> ' . esc_html__('Footer', 'uncode') ,\n\t\t'desc' => '' ,\n\t\t'type' => 'textblock-titled',\n\t\t'class' => 'section-title',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$footer_uncode_block = array(\n\t\t'id' => '_uncode_%section%_footer_block',\n\t\t'label' => esc_html__('Content Block', 'uncode') ,\n\t\t'desc' => esc_html__('Override the Content Block.', 'uncode') ,\n\t\t'type' => 'select',\n\t\t'choices' => $uncodeblocks,\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$footer_width = array(\n\t\t'id' => '_uncode_%section%_footer_width',\n\t\t'label' => esc_html__('Footer width', 'uncode') ,\n\t\t'desc' => esc_html__('Override the footer width.' ,'uncode'),\n\t\t'type' => 'select',\n\t\t'choices' => array(\n\t\t\tarray(\n\t\t\t\t'value' => '',\n\t\t\t\t'label' => esc_html__('Inherit', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'full',\n\t\t\t\t'label' => esc_html__('Full', 'uncode') ,\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'value' => 'limit',\n\t\t\t\t'label' => esc_html__('Limit', 'uncode') ,\n\t\t\t) ,\n\t\t) ,\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$custom_fields_section_title = array(\n\t\t'id' => '_uncode_%section%_cf_title',\n\t\t'label' => '<i class=\"fa fa-pencil3\"></i> ' . esc_html__('Custom fields', 'uncode') ,\n\t\t'desc' => '' ,\n\t\t'type' => 'textblock-titled',\n\t\t'class' => 'section-title',\n\t\t'section' => 'uncode_%section%_section',\n\t);\n\n\t$custom_fields_list = array(\n\t\t'id' => '_uncode_%section%_custom_fields',\n\t\t'class' => 'uncode-custom-fields-list',\n\t\t'label' => esc_html__('Custom fields', 'uncode') ,\n\t\t'desc' => esc_html__('Create here all the custom fields that can be used inside the posts module.', 'uncode') ,\n\t\t'type' => 'list-item',\n\t\t'section' => 'uncode_%section%_section',\n\t\t'settings' => array(\n\t\t\tarray(\n\t\t\t\t'id' => '_uncode_cf_unique_id',\n\t\t\t\t'class' => 'unique_id',\n\t\t\t\t'std' => 'detail-',\n\t\t\t\t'type' => 'text',\n\t\t\t\t'label' => esc_html__('Unique custom field ID','uncode') ,\n\t\t\t\t'desc' => esc_html__('This value is created automatically and it shouldn\\'t be edited unless you know what you are doing.','uncode'),\n\t\t\t),\n\t\t)\n\t);\n\n\t$portfolio_cpt_name = ot_get_option('_uncode_portfolio_cpt');\n\tif ($portfolio_cpt_name == '') $portfolio_cpt_name = 'portfolio';\n\n\t$cpt_single_sections = array();\n\t$cpt_index_sections = array();\n\t$cpt_single_options = array();\n\t$cpt_index_options = array();\n\n\tif (count($uncode_post_types) > 0) {\n\t\tforeach ($uncode_post_types as $key => $value) {\n\t\t\tif ($value !== 'portfolio' && $value !== 'product') {\n\t\t\t\t$cpt_obj = get_post_type_object($value);\n\n\t\t\t\tif ( is_object($cpt_obj) ) {\n\t\t\t\t\t$cpt_name = $cpt_obj->labels->name;\n\t\t\t\t\t$cpt_sing_name = $cpt_obj->labels->singular_name;\n\t\t\t\t\t$cpt_single_sections[] = array(\n\t\t\t\t\t\t'id' => 'uncode_'.$value.'_section',\n\t\t\t\t\t\t'title' => '<span class=\"smaller\"><i class=\"fa fa-paper\"></i> ' . ucfirst($cpt_sing_name) . '</span>',\n\t\t\t\t\t\t'group' => esc_html__('Single', 'uncode')\n\t\t\t\t\t);\n\t\t\t\t\t$cpt_index_sections[] = array(\n\t\t\t\t\t\t'id' => 'uncode_'.$value.'_index_section',\n\t\t\t\t\t\t'title' => '<span class=\"smaller\"><i class=\"fa fa-archive2\"></i> ' . ucfirst($cpt_name) . '</span>',\n\t\t\t\t\t\t'group' => esc_html__('Archives', 'uncode')\n\t\t\t\t\t);\n\t\t\t\t} elseif ( $value == 'author' ) {\n\t\t\t\t\t$cpt_index_sections[] = array(\n\t\t\t\t\t\t'id' => 'uncode_'.$value.'_index_section',\n\t\t\t\t\t\t'title' => '<span class=\"smaller\"><i class=\"fa fa-archive2\"></i> ' . esc_html__('Authors', 'uncode') . '</span>',\n\t\t\t\t\t\t'group' => esc_html__('Archives', 'uncode')\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tforeach ($uncode_post_types as $key => $value) {\n\t\t\tif ($value !== 'portfolio' && $value !== 'product' && $value !== 'author') {\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $menu_section_title);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $menu);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $menu_width);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $menu_opaque);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_section_title);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_type);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_uncode_block);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_revslider);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_layerslider);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_width);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_height);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_min_height);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_title);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_style);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_content_width);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_custom_width);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_align);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_position);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_title_font);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_title_size);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_title_height);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_title_spacing);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_title_weight);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_title_transform);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_title_italic);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_text_animation);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_animation_speed);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_animation_delay);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_featured);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_background);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_parallax);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_kburns);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_overlay_color);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_overlay_color_alpha);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_scroll_opacity);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $header_scrolldown);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $body_section_title);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $body_layout_width);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $body_layout_width_custom);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $show_breadcrumb);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $breadcrumb_align);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, run_array_to($show_title, 'std', 'on'));\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $show_media);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $show_featured_media);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $show_comments);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $show_share);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $image_layout);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $media_size);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $enable_sticky_desc);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $enable_woo_zoom);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $thumb_cols);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $enable_woo_slider);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $body_uncode_block_after_pre);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $body_uncode_block_after);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $sidebar_section_title);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $sidebar_activate);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $sidebar_widget);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $sidebar_position);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $sidebar_size);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $sidebar_sticky);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $sidebar_style);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $sidebar_bgcolor);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $sidebar_fill);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $navigation_section_title);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $navigation_activate);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $navigation_page_index);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $navigation_index_label);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $navigation_nextprev_title);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $footer_section_title);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $footer_uncode_block);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $footer_width);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $custom_fields_section_title);\n\t\t\t\t$cpt_single_options[] = str_replace('%section%', $value, $custom_fields_list);\n\t\t\t}\n\t\t}\n\t\tforeach ($uncode_post_types as $key => $value) {\n\t\t\tif ($value !== 'portfolio' && $value !== 'product') {\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $menu_section_title);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $menu);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $menu_width);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $menu_opaque);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_section_title);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', run_array_to($header_type, 'std', 'header_basic'));\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_uncode_block);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_revslider);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_layerslider);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_width);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_height);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_min_height);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_title);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_style);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_content_width);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_custom_width);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_align);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_position);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_title_font);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_title_size);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_title_height);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_title_spacing);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_title_weight);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_title_transform);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_title_italic);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_text_animation);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_animation_speed);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_animation_delay);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_featured);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_background);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_parallax);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_kburns);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_overlay_color);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_overlay_color_alpha);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_scroll_opacity);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $header_scrolldown);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $menu_no_padding);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $menu_no_padding_mobile);\n\t\t\t\tif ($value !== 'author') {\n\t\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $title_archive_custom_activate);\n\t\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $title_archive_custom_text);\n\t\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $subtitle_archive_custom_text);\n\t\t\t\t}\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $body_section_title);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $show_breadcrumb);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $breadcrumb_align);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $body_uncode_block);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $body_layout_width);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $body_single_post_width);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $body_single_text_lenght);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $show_title);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $remove_pagination);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $sidebar_section_title);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', run_array_to($sidebar_activate, 'std', 'on'));\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $sidebar_widget);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $sidebar_position);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $sidebar_size);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $sidebar_sticky);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $sidebar_style);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $sidebar_bgcolor);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $sidebar_fill);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $footer_section_title);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $footer_uncode_block);\n\t\t\t\t$cpt_index_options[] = str_replace('%section%', $value . '_index', $footer_width);\n\t\t\t}\n\t\t}\n\t}\n\n\t$custom_settings_section_one = array(\n\t\tarray(\n\t\t\t'id' => 'uncode_header_section',\n\t\t\t'title' => '<i class=\"fa fa-heart3\"></i> ' . esc_html__('Navbar', 'uncode'),\n\t\t\t'group' => esc_html__('General', 'uncode'),\n\t\t\t'group_icon' => 'fa-layout'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => 'uncode_main_section',\n\t\t\t'title' => '<i class=\"fa fa-layers\"></i> ' . esc_html__('Layout', 'uncode'),\n\t\t\t'group' => esc_html__('General', 'uncode'),\n\t\t) ,\n\t\t// array(\n\t\t// \t'id' => 'uncode_header_section',\n\t\t// \t'title' => '<i class=\"fa fa-menu\"></i> ' . esc_html__('Menu', 'uncode'),\n\t\t// \t'group' => esc_html__('General', 'uncode')\n\t\t// ) ,\n\t\tarray(\n\t\t\t'id' => 'uncode_footer_section',\n\t\t\t'title' => '<i class=\"fa fa-ellipsis\"></i> ' . esc_html__('Footer', 'uncode'),\n\t\t\t'group' => esc_html__('General', 'uncode')\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => 'uncode_post_section',\n\t\t\t'title' => '<span class=\"smaller\"><i class=\"fa fa-paper\"></i> ' . esc_html__('Post', 'uncode') . '</span>',\n\t\t\t'group' => esc_html__('Single', 'uncode'),\n\t\t\t'group_icon' => 'fa-file2'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => 'uncode_page_section',\n\t\t\t'title' => '<span class=\"smaller\"><i class=\"fa fa-paper\"></i> ' . esc_html__('Page', 'uncode') . '</span>',\n\t\t\t'group' => esc_html__('Single', 'uncode')\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => 'uncode_portfolio_section',\n\t\t\t'title' => '<span class=\"smaller\"><i class=\"fa fa-paper\"></i> ' . ucfirst($portfolio_cpt_name) . '</span>',\n\t\t\t'group' => esc_html__('Single', 'uncode')\n\t\t) ,\n\t);\n\n\t$custom_settings_section_one = array_merge( $custom_settings_section_one, $cpt_single_sections );\n\n\t$custom_settings_section_two = array(\n\t\tarray(\n\t\t\t'id' => 'uncode_post_index_section',\n\t\t\t'title' => '<span class=\"smaller\"><i class=\"fa fa-archive2\"></i> ' . esc_html__('Posts', 'uncode') . '</span>',\n\t\t\t'group' => esc_html__('Archives', 'uncode'),\n\t\t\t'group_icon' => 'fa-archive2'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => 'uncode_page_index_section',\n\t\t\t'title' => '<span class=\"smaller\"><i class=\"fa fa-archive2\"></i> ' . esc_html__('Pages', 'uncode') . '</span>',\n\t\t\t'group' => esc_html__('Archives', 'uncode')\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => 'uncode_portfolio_index_section',\n\t\t\t'title' => '<span class=\"smaller\"><i class=\"fa fa-archive2\"></i> ' . ucfirst($portfolio_cpt_name) . 's</span>',\n\t\t\t'group' => esc_html__('Archives', 'uncode')\n\t\t) ,\n\t);\n\n\t$custom_settings_section_one = array_merge( $custom_settings_section_one, $custom_settings_section_two );\n\t$custom_settings_section_one = array_merge( $custom_settings_section_one, $cpt_index_sections );\n\n\t$custom_settings_section_three = array(\n\t\tarray(\n\t\t\t'id' => 'uncode_search_index_section',\n\t\t\t'title' => '<span class=\"smaller\"><i class=\"fa fa-archive2\"></i> ' . esc_html__('Search', 'uncode') . '</span>',\n\t\t\t'group' => esc_html__('Archives', 'uncode')\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => 'uncode_404_section',\n\t\t\t'title' => '<span class=\"smaller\"><i class=\"fa fa-help\"></i> ' . esc_html__('404', 'uncode') . '</span>',\n\t\t\t'group' => esc_html__('Single', 'uncode')\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => 'uncode_colors_section',\n\t\t\t'title' => '<i class=\"fa fa-drop\"></i> ' . esc_html__('Palette', 'uncode'),\n\t\t\t'group' => esc_html__('Visual', 'uncode'),\n\t\t\t'group_icon' => 'fa-eye2'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => 'uncode_typography_section',\n\t\t\t'title' => '<i class=\"fa fa-font\"></i> ' . esc_html__('Typography', 'uncode'),\n\t\t\t'group' => esc_html__('Visual', 'uncode')\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => 'uncode_customize_section',\n\t\t\t'title' => '<i class=\"fa fa-box\"></i> ' . esc_html__('Customize', 'uncode'),\n\t\t\t'group' => esc_html__('Visual', 'uncode')\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => 'uncode_extra_section',\n\t\t\t'title' => esc_html__('Extra', 'uncode'),\n\t\t\t'group' => esc_html__('Visual', 'uncode')\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => 'uncode_sidebars_section',\n\t\t\t'title' => '<i class=\"fa fa-content-right\"></i> ' . esc_html__('Sidebars', 'uncode'),\n\t\t\t'group' => esc_html__('Utility', 'uncode'),\n\t\t\t'group_icon' => 'fa-cog2'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => 'uncode_connections_section',\n\t\t\t'title' => '<i class=\"fa fa-share2\"></i> ' . esc_html__('Socials', 'uncode'),\n\t\t\t'group' => esc_html__('Utility', 'uncode')\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => 'uncode_gmaps_section',\n\t\t\t'title' => '<i class=\"fa fa-map-o\"></i> ' . esc_html__('Google Maps', 'uncode'),\n\t\t\t'group' => esc_html__('Utility', 'uncode')\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => 'uncode_redirect_section',\n\t\t\t'title' => '<i class=\"fa fa-reply2\"></i> ' . esc_html__('Redirect', 'uncode'),\n\t\t\t'group' => esc_html__('Utility', 'uncode')\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => 'uncode_cssjs_section',\n\t\t\t'title' => '<i class=\"fa fa-code\"></i> ' . esc_html__('CSS & JS', 'uncode'),\n\t\t\t'group' => esc_html__('Utility', 'uncode')\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => 'uncode_performance_section',\n\t\t\t'title' => '<i class=\"fa fa-loader\"></i> ' . esc_html__('Performance', 'uncode'),\n\t\t\t'group' => esc_html__('Utility', 'uncode')\n\t\t) ,\n\t);\n\n\t$custom_settings_section_one = array_merge( $custom_settings_section_one, $custom_settings_section_three );\n\n\t$custom_settings_one = array(\n\t\tarray(\n\t\t\t'id' => '_uncode_general_block_title',\n\t\t\t'label' => '<i class=\"fa fa-globe3\"></i> ' . esc_html__('General', 'uncode') ,\n\t\t\t'desc' => '',\n\t\t\t'type' => 'textblock-titled',\n\t\t\t'class' => 'section-title',\n\t\t\t'section' => 'uncode_main_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_main_width',\n\t\t\t'label' => esc_html__('Site width', 'uncode') ,\n\t\t\t'desc' => esc_html__('Enter the width of your site.', 'uncode') ,\n\t\t\t'std' => array(\n\t\t\t\t'1200',\n\t\t\t\t'px'\n\t\t\t) ,\n\t\t\t'type' => 'measurement',\n\t\t\t'section' => 'uncode_main_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_main_align',\n\t\t\t'label' => esc_html__('Site layout align', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the alignment of the content area when is less then 100% width.', 'uncode') ,\n\t\t\t'std' => 'center',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_main_section',\n\t\t\t'choices' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'left',\n\t\t\t\t\t'label' => esc_html__('Left align', 'uncode') ,\n\t\t\t\t\t'src' => ''\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'center',\n\t\t\t\t\t'label' => esc_html__('Center align', 'uncode') ,\n\t\t\t\t\t'src' => ''\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'right',\n\t\t\t\t\t'label' => esc_html__('Right align', 'uncode') ,\n\t\t\t\t\t'src' => ''\n\t\t\t\t)\n\t\t\t)\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_boxed',\n\t\t\t'label' => esc_html__('Boxed', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate for the boxed layout.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_main_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_body_border',\n\t\t\t'label' => esc_html__('Body frame', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the thickness of the frame around the body', 'uncode') ,\n\t\t\t'std' => '0',\n\t\t\t'type' => 'numeric-slider',\n\t\t\t'min_max_step'=> '0,36,9',\n\t\t\t'section' => 'uncode_main_section',\n\t\t\t'condition' => '_uncode_boxed:is(off)',\n\t\t\t'operator' => 'and'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_body_border_color',\n\t\t\t'label' => esc_html__('Body frame color', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the body frame color.', 'uncode') ,\n\t\t\t'type' => 'uncode_color',\n\t\t\t'section' => 'uncode_main_section',\n\t\t\t'condition' => '_uncode_boxed:is(off),_uncode_body_border:not(0)',\n\t\t\t'operator' => 'and'\n\t\t) ,\n\t\tstr_replace('%section%', 'main', run_array_to($header_section_title, 'condition', '_uncode_boxed:is(off)')),\n\t\tarray(\n\t\t\t'id' => '_uncode_header_full',\n\t\t\t'label' => esc_html__('Container full width', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to expand the header container to full width.', 'uncode') ,\n\t\t\t'std' => 'on',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_main_section',\n\t\t\t'condition' => '_uncode_boxed:is(off)',\n\t\t\t'operator' => 'and'\n\t\t) ,\n\t\tstr_replace('%section%', 'main', run_array_to($body_section_title, 'condition', '_uncode_boxed:is(off)')),\n\t\tarray(\n\t\t\t'id' => '_uncode_body_full',\n\t\t\t'label' => esc_html__('Content area full width', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to expand the content area to full width.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_main_section',\n\t\t\t'condition' => '_uncode_boxed:is(off)',\n\t\t\t'operator' => 'and'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_custom_logo_block_title',\n\t\t\t'label' => '<i class=\"fa fa-heart3\"></i> ' . esc_html__('Logo', 'uncode') ,\n\t\t\t'type' => 'textblock-titled',\n\t\t\t'class' => 'section-title',\n\t\t\t'section' => 'uncode_header_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_logo_switch',\n\t\t\t'label' => esc_html__('Switchable logo', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to upload different logo for each skin.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_header_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_logo',\n\t\t\t'label' => esc_html__('Logo', 'uncode') ,\n\t\t\t'desc' => esc_html__('Upload a logo. You can use Images, SVG code or HTML code.', 'uncode') ,\n\t\t\t'type' => 'upload',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '_uncode_logo_switch:is(off)',\n\t\t\t'operator' => 'and'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_logo_light',\n\t\t\t'label' => esc_html__('Logo - Light', 'uncode') ,\n\t\t\t'desc' => esc_html__('Upload a logo for the light skin.', 'uncode') ,\n\t\t\t'type' => 'upload',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '_uncode_logo_switch:is(on)',\n\t\t\t'operator' => 'and'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_logo_dark',\n\t\t\t'label' => esc_html__('Logo - Dark', 'uncode') ,\n\t\t\t'desc' => esc_html__('Upload a logo for the dark skin.', 'uncode') ,\n\t\t\t'type' => 'upload',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '_uncode_logo_switch:is(on)',\n\t\t\t'operator' => 'and'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_logo_mobile_switch',\n\t\t\t'label' => esc_html__('Different Logo Mobile', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to upload different logo for mobile devices.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_header_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_logo_mobile',\n\t\t\t'label' => esc_html__('Logo Mobile', 'uncode') ,\n\t\t\t'desc' => esc_html__('Upload a logo for mobile. You can use Images, SVG code or HTML code.', 'uncode') ,\n\t\t\t'type' => 'upload',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '_uncode_logo_mobile_switch:is(on),_uncode_logo_switch:is(off)',\n\t\t\t'operator' => 'and'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_logo_mobile_light',\n\t\t\t'label' => esc_html__('Logo Mobile - Light', 'uncode') ,\n\t\t\t'desc' => esc_html__('Upload a logo mobile for the light skin.', 'uncode') ,\n\t\t\t'type' => 'upload',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '_uncode_logo_mobile_switch:is(on),_uncode_logo_switch:is(on)',\n\t\t\t'operator' => 'and'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_logo_mobile_dark',\n\t\t\t'label' => esc_html__('Logo Mobile - Dark', 'uncode') ,\n\t\t\t'desc' => esc_html__('Upload a logo mobile for the dark skin.', 'uncode') ,\n\t\t\t'type' => 'upload',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '_uncode_logo_mobile_switch:is(on),_uncode_logo_switch:is(on)',\n\t\t\t'operator' => 'and'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_logo_height',\n\t\t\t'label' => esc_html__('Logo height', 'uncode'),\n\t\t\t'desc' => esc_html__('Enter the height of the logo in px.', 'uncode') ,\n\t\t\t'std' => '20',\n\t\t\t'type' => 'text',\n\t\t\t'section' => 'uncode_header_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_logo_height_mobile',\n\t\t\t'label' => esc_html__('Logo height mobile', 'uncode'),\n\t\t\t'desc' => esc_html__('Enter the height of the logo in px for mobile version.', 'uncode') ,\n\t\t\t'type' => 'text',\n\t\t\t'section' => 'uncode_header_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_headers_block_title',\n\t\t\t'label' => '<i class=\"fa fa-menu\"></i> ' . esc_html__('Menu', 'uncode') ,\n\t\t\t'type' => 'textblock-titled',\n\t\t\t'class' => 'section-title',\n\t\t\t'section' => 'uncode_header_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_headers',\n\t\t\t'desc' => esc_html__('Specify the menu layout.', 'uncode') ,\n\t\t\t'label' => '' ,\n\t\t\t'std' => 'hmenu-right',\n\t\t\t'type' => 'radio-image',\n\t\t\t'section' => 'uncode_header_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_hmenu_position',\n\t\t\t'label' => esc_html__('Menu horizontal position', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the horizontal position of the menu.', 'uncode') ,\n\t\t\t'std' => 'left',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '_uncode_headers:contains(hmenu)',\n\t\t\t'operator' => 'or',\n\t\t\t'choices' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'left',\n\t\t\t\t\t'label' => esc_html__('Left', 'uncode') ,\n\t\t\t\t\t'src' => ''\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'right',\n\t\t\t\t\t'label' => esc_html__('Right', 'uncode') ,\n\t\t\t\t\t'src' => ''\n\t\t\t\t)\n\t\t\t)\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_vmenu_position',\n\t\t\t'label' => esc_html__('Menu horizontal position', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the horizontal position of the menu.', 'uncode') ,\n\t\t\t'std' => 'left',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '_uncode_headers:contains(vmenu),_uncode_headers:is(menu-overlay),_uncode_headers:is(menu-overlay-center)',\n\t\t\t'operator' => 'or',\n\t\t\t'choices' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'left',\n\t\t\t\t\t'label' => esc_html__('Left', 'uncode') ,\n\t\t\t\t\t'src' => ''\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'right',\n\t\t\t\t\t'label' => esc_html__('Right', 'uncode') ,\n\t\t\t\t\t'src' => ''\n\t\t\t\t)\n\t\t\t)\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_vmenu_v_position',\n\t\t\t'label' => esc_html__('Menu vertical alignment', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the vertical alignment of the menu.', 'uncode') ,\n\t\t\t'std' => 'middle',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '_uncode_headers:contains(vmenu),_uncode_headers:is(menu-overlay),_uncode_headers:is(menu-overlay-center)',\n\t\t\t'operator' => 'or',\n\t\t\t'choices' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'top',\n\t\t\t\t\t'label' => esc_html__('Top', 'uncode') ,\n\t\t\t\t\t'src' => ''\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'middle',\n\t\t\t\t\t'label' => esc_html__('Middle', 'uncode') ,\n\t\t\t\t\t'src' => ''\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'bottom',\n\t\t\t\t\t'label' => esc_html__('Bottom', 'uncode') ,\n\t\t\t\t\t'src' => ''\n\t\t\t\t) ,\n\t\t\t)\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_vmenu_align',\n\t\t\t'label' => esc_html__('Menu horizontal alignment', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the horizontal alignment of the menu.', 'uncode') ,\n\t\t\t'std' => 'left',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '_uncode_headers:contains(vmenu),_uncode_headers:is(menu-overlay),_uncode_headers:is(menu-overlay-center)',\n\t\t\t'operator' => 'or',\n\t\t\t'choices' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'left',\n\t\t\t\t\t'label' => esc_html__('Left Align', 'uncode') ,\n\t\t\t\t\t'src' => ''\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'center',\n\t\t\t\t\t'label' => esc_html__('Center Align', 'uncode') ,\n\t\t\t\t\t'src' => ''\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'right',\n\t\t\t\t\t'label' => esc_html__('Right Align', 'uncode') ,\n\t\t\t\t\t'src' => ''\n\t\t\t\t)\n\t\t\t)\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_vmenu_width',\n\t\t\t'label' => esc_html__('Vertical menu width','uncode') ,\n\t\t\t'desc' => esc_html__('Vertical menu width in px', 'uncode') ,\n\t\t\t'std' => '252',\n\t\t\t'type' => 'numeric-slider',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'rows' => '',\n\t\t\t'post_type' => '',\n\t\t\t'taxonomy' => '',\n\t\t\t'min_max_step' => '108,504,12',\n\t\t\t'class' => '',\n\t\t\t'condition' => '_uncode_headers:contains(vmenu)',\n\t\t\t'operator' => 'or'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_accordion_active',\n\t\t\t'label' => esc_html__('Vertical menu open', 'uncode') ,\n\t\t\t'desc' => esc_html__('Open the accordion menu at the current item menu on page loading.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '_uncode_headers:is(vmenu)',\n\t\t\t'operator' => 'or'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_full',\n\t\t\t'label' => esc_html__('Menu full width', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to expand the menu to full width. (Only for the horizontal menus).', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '_uncode_boxed:is(off)',\n\t\t\t'operator' => 'and'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_visuals_block_title',\n\t\t\t'label' => '<i class=\"fa fa-eye2\"></i> ' . esc_html__('Visuals', 'uncode') ,\n\t\t\t'type' => 'textblock-titled',\n\t\t\t'class' => 'section-title',\n\t\t\t'section' => 'uncode_header_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_shadows',\n\t\t\t'label' => esc_html__('Menu divider shadow', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to show the menu divider shadow.', 'uncode') ,\n\t\t\t'std' => 'on',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_header_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_submenu_shadows',\n\t\t\t'label' => esc_html__('Menu dropdown shadow', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate this for the shadow effect on menu dropdown on desktop view. NB. this option works for horizontal menus only.', 'uncode') ,\n\t\t\t'std' => 'none',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'std' => '',\n\t\t\t'choices' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'value' => '',\n\t\t\t\t\t'label' => esc_html__('None', 'uncode') ,\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'xs',\n\t\t\t\t\t'label' => esc_html__('Extra Small', 'uncode') ,\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'sm',\n\t\t\t\t\t'label' => esc_html__('Small', 'uncode') ,\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'std',\n\t\t\t\t\t'label' => esc_html__('Standard', 'uncode') ,\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'lg',\n\t\t\t\t\t'label' => esc_html__('Large', 'uncode') ,\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'xl',\n\t\t\t\t\t'label' => esc_html__('Extra Large', 'uncode') ,\n\t\t\t\t) ,\n\t\t\t),\n\t\t\t'condition' => '_uncode_headers:contains(hmenu),_uncode_headers:is(vmenu-offcanvas),_uncode_headers:is(menu-overlay)',\n\t\t\t'operator' => 'or'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_submenu_darker_shadows',\n\t\t\t'label' => esc_html__('Menu dropdown darker shadow', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate this for the dark shadow effect on menu dropdown on desktop view.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '_uncode_submenu_shadows:not()',\n\t\t\t'operator' => 'and'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_borders',\n\t\t\t'label' => esc_html__('Menu borders', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to show the menu borders.', 'uncode') ,\n\t\t\t'std' => 'on',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_header_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_no_arrows',\n\t\t\t'label' => esc_html__('Hide dropdown arrows', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to hide the dropdow arrows.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_header_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_mobile_transparency',\n\t\t\t'label' => esc_html__('Menu mobile transparency', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate the menu transparency when possible.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_header_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_custom_padding',\n\t\t\t'label' => esc_html__('Custom vertical padding', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate custom padding above and below the logo.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_header_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_custom_padding_desktop',\n\t\t\t'label' => esc_html__('Padding on desktop', 'uncode') ,\n\t\t\t'desc' => esc_html__('Set custom padding on desktop devices.', 'uncode') ,\n\t\t\t'std' => '27',\n\t\t\t'type' => 'numeric-slider',\n\t\t\t'min_max_step'=> '0,36,9',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '_uncode_menu_custom_padding:is(on)',\n\t\t\t'operator' => 'and'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_custom_padding_mobile',\n\t\t\t'label' => esc_html__('Padding on mobile', 'uncode') ,\n\t\t\t'desc' => esc_html__('Set custom padding on mobile devices.', 'uncode') ,\n\t\t\t'std' => '27',\n\t\t\t'type' => 'numeric-slider',\n\t\t\t'min_max_step'=> '0,36,9',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '_uncode_menu_custom_padding:is(on)',\n\t\t\t'operator' => 'and'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_animation_block_title',\n\t\t\t'label' => '<i class=\"fa fa-fast-forward2\"></i> ' . esc_html__('Animation', 'uncode') ,\n\t\t\t'type' => 'textblock-titled',\n\t\t\t'class' => 'section-title',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t// 'condition' => '_uncode_headers:contains(hmenu),_uncode_headers:is(vmenu-offcanvas),_uncode_headers:is(menu-overlay)',\n\t\t\t// 'operator' => 'or'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_sticky',\n\t\t\t'label' => esc_html__('Menu sticky', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate the sticky menu. This is a menu that is locked into place so that it does not disappear when the user scrolls down the page.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '_uncode_headers:contains(hmenu),_uncode_headers:is(vmenu-offcanvas),_uncode_headers:is(menu-overlay),_uncode_headers:is(menu-overlay-center)',\n\t\t\t'operator' => 'or'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_sticky_mobile',\n\t\t\t'label' => esc_html__('Menu sticky mobile', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate the sticky menu on mobile devices. This is a menu that is locked into place so that it does not disappear when the user scrolls down the page.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_header_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_mobile_centered',\n\t\t\t'label' => esc_html__('Menu centered mobile', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate the centered style for mobile menu. NB. You need to have the Menu Sticky Mobile active.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '_uncode_menu_sticky_mobile:is(on)',\n\t\t\t'operator' => 'and',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_hide',\n\t\t\t'label' => esc_html__('Menu hide', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate the autohide menu. This is a menu that is hiding after the user have scrolled down the page.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '_uncode_headers:contains(hmenu),_uncode_headers:is(menu-overlay),_uncode_headers:is(menu-overlay-center),_uncode_headers:is(vmenu-offcanvas)',\n\t\t\t'operator' => 'or'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_hide_mobile',\n\t\t\t'label' => esc_html__('Menu hide mobile', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate the autohide menu on mobile devices. This is a menu that is hiding after the user have scrolled down the page.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_header_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_shrink',\n\t\t\t'label' => esc_html__('Menu shrink', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate the shrink menu. This is a menu where the logo shrinks after the user have scrolled down the page.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '_uncode_headers:contains(hmenu),_uncode_headers:is(menu-overlay),_uncode_headers:is(menu-overlay-center),_uncode_headers:is(vmenu-offcanvas)',\n\t\t\t'operator' => 'or'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_li_animation',\n\t\t\t'label' => esc_html__('Menu sub-levels animated', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate the animation for menu sub-levels. NB. this option works for horizontal menus only.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '_uncode_headers:not(vmenu)',\n\t\t\t'operator' => 'or'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_mobile_animation',\n\t\t\t'label' => esc_html__('Menu open items animation', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the menu items animation when opening.', 'uncode') ,\n\t\t\t'std' => 'none',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '_uncode_menu_sticky_mobile:is(on),_uncode_menu_hide_mobile:is(on)',\n\t\t\t'operator' => 'or',\n\t\t\t'choices' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'none',\n\t\t\t\t\t'label' => esc_html__('None', 'uncode') ,\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'scale',\n\t\t\t\t\t'label' => esc_html__('Scale', 'uncode') ,\n\t\t\t\t) ,\n\t\t\t)\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_overlay_animation',\n\t\t\t'label' => esc_html__('Menu overlay animation', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the overlay menu animation when opening and closing.', 'uncode') ,\n\t\t\t'std' => 'sequential',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '_uncode_headers:is(menu-overlay),_uncode_headers:is(menu-overlay-center)',\n\t\t\t'operator' => 'or',\n\t\t\t'choices' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'value' => '3d',\n\t\t\t\t\t'label' => esc_html__('3D', 'uncode') ,\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'sequential',\n\t\t\t\t\t'label' => esc_html__('Flat', 'uncode') ,\n\t\t\t\t) ,\n\t\t\t)\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_min_logo',\n\t\t\t'label' => esc_html__('Minimum logo height', 'uncode'),\n\t\t\t'desc' => esc_html__('Enter the minimal height of the shrinked logo in <b>px</b>.', 'uncode') ,\n\t\t\t'type' => 'text',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '_uncode_menu_shrink:is(on),_uncode_headers:not(vmenu)',\n\t\t\t'operator' => 'and',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_add_block_title',\n\t\t\t'label' => '<i class=\"fa fa-square-plus\"></i> ' . esc_html__('Additionals', 'uncode') ,\n\t\t\t'type' => 'textblock-titled',\n\t\t\t'class' => 'section-title',\n\t\t\t'section' => 'uncode_header_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_no_secondary',\n\t\t\t'label' => esc_html__('Hide secondary menu', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to hide the secondary menu.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_header_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_no_cta',\n\t\t\t'label' => esc_html__('Hide Call To Action menu', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to hide the Call To Action menu.', 'uncode') ,\n\t\t\t'std' => 'on',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_header_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_secondary_padding',\n\t\t\t'label' => esc_html__('Secondary menu padding', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to increase secondary menu padding.', 'uncode') ,\n\t\t\t'std' => 'on',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '_uncode_menu_no_secondary:is(off)',\n\t\t\t'operator' => 'or'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_socials',\n\t\t\t'label' => esc_html__('Social icons', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to show the social connection icons in the menu bar.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '',\n\t\t\t'operator' => 'and'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_search',\n\t\t\t'label' => esc_html__('Search icon', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to show the search icon in the menu bar.', 'uncode') ,\n\t\t\t'std' => 'on',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '',\n\t\t\t'operator' => 'and'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_search_animation',\n\t\t\t'label' => esc_html__('Search overlay animation', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the search overlay animation when opening and closing.', 'uncode') ,\n\t\t\t'std' => 'sequential',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'choices' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'value' => '3d',\n\t\t\t\t\t'label' => esc_html__('3D', 'uncode') ,\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'sequential',\n\t\t\t\t\t'label' => esc_html__('Flat', 'uncode') ,\n\t\t\t\t) ,\n\t\t\t) ,\n\t\t\t'condition' => '_uncode_menu_search:is(on)',\n\t\t\t'operator' => 'or'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_woocommerce_cart',\n\t\t\t'label' => esc_html__('Woocommerce cart', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to show the Woocommerce icon in the menu bar.', 'uncode') ,\n\t\t\t'std' => 'on',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_header_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_woocommerce_cart_desktop',\n\t\t\t'label' => esc_html__('Woocommerce cart on menu bar', 'uncode') ,\n\t\t\t'desc' => esc_html__('Show the cart icon in the menu bar when layout is on desktop mode (only for Overlay and Offcanvas menu).', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '_uncode_woocommerce_cart:is(on)',\n\t\t\t'operator' => 'and'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_woocommerce_cart_mobile',\n\t\t\t'label' => esc_html__('Woocommerce cart on menu bar for mobile', 'uncode') ,\n\t\t\t'desc' => esc_html__('Show the cart icon in the menu bar when layout is on mobile mode.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '_uncode_woocommerce_cart:is(on)',\n\t\t\t'operator' => 'or'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_bloginfo',\n\t\t\t'label' => esc_html__('Top line text', 'uncode') ,\n\t\t\t'desc' => esc_html__('Insert additional text on top of the menu.','uncode') ,\n\t\t\t'type' => 'textarea',\n\t\t\t'section' => 'uncode_header_section',\n\t\t\t'condition' => '_uncode_headers:is(hmenu-right),_uncode_headers:is(hmenu-left),_uncode_headers:is(hmenu-justify),_uncode_headers:is(hmenu-center),_uncode_headers:is(hmenu-center-split)',\n\t\t\t'operator' => 'or'\n\t\t) ,\n\t\t//////////////////////\n\t\t// Post Single\t\t///\n\t\t//////////////////////\n\t\tstr_replace('%section%', 'post', $menu_section_title),\n\t\tstr_replace('%section%', 'post', $menu),\n\t\tstr_replace('%section%', 'post', $menu_width),\n\t\tstr_replace('%section%', 'post', $menu_opaque),\n\t\tstr_replace('%section%', 'post', $header_section_title),\n\t\tstr_replace('%section%', 'post', run_array_to($header_type, 'std', 'header_basic')),\n\t\tstr_replace('%section%', 'post', $header_uncode_block),\n\t\tstr_replace('%section%', 'post', $header_revslider),\n\t\tstr_replace('%section%', 'post', $header_layerslider),\n\n\t\tstr_replace('%section%', 'post', $header_width),\n\t\tstr_replace('%section%', 'post', $header_height),\n\t\tstr_replace('%section%', 'post', $header_min_height),\n\t\tstr_replace('%section%', 'post', $header_title),\n\t\tstr_replace('%section%', 'post', $header_style),\n\t\tstr_replace('%section%', 'post', $header_content_width),\n\t\tstr_replace('%section%', 'post', $header_custom_width),\n\t\tstr_replace('%section%', 'post', $header_align),\n\t\tstr_replace('%section%', 'post', $header_position),\n\t\tstr_replace('%section%', 'post', $header_title_font),\n\t\tstr_replace('%section%', 'post', $header_title_size),\n\t\tstr_replace('%section%', 'post', $header_title_height),\n\t\tstr_replace('%section%', 'post', $header_title_spacing),\n\t\tstr_replace('%section%', 'post', $header_title_weight),\n\t\tstr_replace('%section%', 'post', $header_title_transform),\n\t\tstr_replace('%section%', 'post', $header_title_italic),\n\t\tstr_replace('%section%', 'post', $header_text_animation),\n\t\tstr_replace('%section%', 'post', $header_animation_speed),\n\t\tstr_replace('%section%', 'post', $header_animation_delay),\n\t\tstr_replace('%section%', 'post', $header_featured),\n\t\tstr_replace('%section%', 'post', $header_background),\n\t\tstr_replace('%section%', 'post', $header_parallax),\n\t\tstr_replace('%section%', 'post', $header_kburns),\n\t\tstr_replace('%section%', 'post', $header_overlay_color),\n\t\tstr_replace('%section%', 'post', $header_overlay_color_alpha),\n\t\tstr_replace('%section%', 'post', $header_scroll_opacity),\n\t\tstr_replace('%section%', 'post', $header_scrolldown),\n\n\t\tstr_replace('%section%', 'post', $body_section_title),\n\t\tstr_replace('%section%', 'post', $body_layout_width),\n\t\tstr_replace('%section%', 'post', $body_layout_width_custom),\n\t\tstr_replace('%section%', 'post', $show_breadcrumb),\n\t\tstr_replace('%section%', 'post', $breadcrumb_align),\n\t\t// str_replace('%section%', 'post', $body_uncode_block_before),\n\t\tstr_replace('%section%', 'post', $show_title),\n\t\tstr_replace('%section%', 'post', $show_media),\n\t\tstr_replace('%section%', 'post', $show_featured_media),\n\t\tstr_replace('%section%', 'post', $show_comments),\n\t\tstr_replace('%section%', 'post', $show_share),\n\t\tstr_replace('%section%', 'post', $show_tags),\n\t\tstr_replace('%section%', 'post', $show_tags_align),\n\t\tstr_replace('%section%', 'post', $body_uncode_block_after_pre),\n\t\tstr_replace('%section%', 'post', $body_uncode_block_after),\n\t\tstr_replace('%section%', 'post', $sidebar_section_title),\n\t\tstr_replace('%section%', 'post', run_array_to($sidebar_activate, 'std', 'on')),\n\t\tstr_replace('%section%', 'post', $sidebar_widget),\n\t\tstr_replace('%section%', 'post', $sidebar_position),\n\t\tstr_replace('%section%', 'post', $sidebar_size),\n\t\tstr_replace('%section%', 'post', $sidebar_sticky),\n\t\tstr_replace('%section%', 'post', $sidebar_style),\n\t\tstr_replace('%section%', 'post', $sidebar_bgcolor),\n\t\tstr_replace('%section%', 'post', $sidebar_fill),\n\n\t\tstr_replace('%section%', 'post', $navigation_section_title),\n\t\tstr_replace('%section%', 'post', $navigation_activate),\n\t\tstr_replace('%section%', 'post', $navigation_page_index),\n\t\tstr_replace('%section%', 'post', $navigation_index_label),\n\t\tstr_replace('%section%', 'post', $navigation_nextprev_title),\n\t\tstr_replace('%section%', 'post', $footer_section_title),\n\t\tstr_replace('%section%', 'post', $footer_uncode_block),\n\t\tstr_replace('%section%', 'post', $footer_width),\n\t\tstr_replace('%section%', 'post', $custom_fields_section_title),\n\t\tstr_replace('%section%', 'post', $custom_fields_list),\n\t\t///////////////\n\t\t// Page\t\t///\n\t\t///////////////\n\t\tstr_replace('%section%', 'page', $menu_section_title),\n\t\tstr_replace('%section%', 'page', $menu),\n\t\tstr_replace('%section%', 'page', $menu_width),\n\t\tstr_replace('%section%', 'page', $menu_opaque),\n\t\tstr_replace('%section%', 'page', $header_section_title),\n\t\tstr_replace('%section%', 'page', $header_type),\n\t\tstr_replace('%section%', 'page', $header_uncode_block),\n\t\tstr_replace('%section%', 'page', $header_revslider),\n\t\tstr_replace('%section%', 'page', $header_layerslider),\n\n\t\tstr_replace('%section%', 'page', $header_width),\n\t\tstr_replace('%section%', 'page', $header_height),\n\t\tstr_replace('%section%', 'page', $header_min_height),\n\t\tstr_replace('%section%', 'page', $header_title),\n\t\tstr_replace('%section%', 'page', $header_style),\n\t\tstr_replace('%section%', 'page', $header_content_width),\n\t\tstr_replace('%section%', 'page', $header_custom_width),\n\t\tstr_replace('%section%', 'page', $header_align),\n\t\tstr_replace('%section%', 'page', $header_position),\n\t\tstr_replace('%section%', 'page', $header_title_font),\n\t\tstr_replace('%section%', 'page', $header_title_size),\n\t\tstr_replace('%section%', 'page', $header_title_height),\n\t\tstr_replace('%section%', 'page', $header_title_spacing),\n\t\tstr_replace('%section%', 'page', $header_title_weight),\n\t\tstr_replace('%section%', 'page', $header_title_transform),\n\t\tstr_replace('%section%', 'page', $header_title_italic),\n\t\tstr_replace('%section%', 'page', $header_text_animation),\n\t\tstr_replace('%section%', 'page', $header_animation_speed),\n\t\tstr_replace('%section%', 'page', $header_animation_delay),\n\t\tstr_replace('%section%', 'page', $header_featured),\n\t\tstr_replace('%section%', 'page', $header_background),\n\t\tstr_replace('%section%', 'page', $header_parallax),\n\t\tstr_replace('%section%', 'page', $header_kburns),\n\t\tstr_replace('%section%', 'page', $header_overlay_color),\n\t\tstr_replace('%section%', 'page', $header_overlay_color_alpha),\n\t\tstr_replace('%section%', 'page', $header_scroll_opacity),\n\t\tstr_replace('%section%', 'page', $header_scrolldown),\n\t\tstr_replace('%section%', 'page', $body_section_title),\n\t\tstr_replace('%section%', 'page', $body_layout_width),\n\t\tstr_replace('%section%', 'page', $body_layout_width_custom),\n\t\tstr_replace('%section%', 'page', $show_breadcrumb),\n\t\tstr_replace('%section%', 'page', $breadcrumb_align),\n\t\tstr_replace('%section%', 'page', run_array_to($show_title, 'std', 'on')),\n\t\tstr_replace('%section%', 'page', $show_media),\n\t\tstr_replace('%section%', 'page', $show_featured_media),\n\t\tstr_replace('%section%', 'page', $show_comments),\n\t\tstr_replace('%section%', 'page', $body_uncode_block_after),\n\t\tstr_replace('%section%', 'page', $sidebar_section_title),\n\t\tstr_replace('%section%', 'page', $sidebar_activate),\n\t\tstr_replace('%section%', 'page', $sidebar_widget),\n\t\tstr_replace('%section%', 'page', $sidebar_position),\n\t\tstr_replace('%section%', 'page', $sidebar_size),\n\t\tstr_replace('%section%', 'page', $sidebar_sticky),\n\t\tstr_replace('%section%', 'page', $sidebar_style),\n\t\tstr_replace('%section%', 'page', $sidebar_bgcolor),\n\t\tstr_replace('%section%', 'page', $sidebar_fill),\n\t\tstr_replace('%section%', 'page', $footer_section_title),\n\t\tstr_replace('%section%', 'page', $footer_uncode_block),\n\t\tstr_replace('%section%', 'page', $footer_width),\n\t\tstr_replace('%section%', 'page', $custom_fields_section_title),\n\t\tstr_replace('%section%', 'page', $custom_fields_list),\n\t\t///////////////////////////\n\t\t// Portfolio Single\t\t///\n\t\t///////////////////////////\n\t\tstr_replace('%section%', 'portfolio', $menu_section_title),\n\t\tstr_replace('%section%', 'portfolio', $menu),\n\t\tstr_replace('%section%', 'portfolio', $menu_width),\n\t\tstr_replace('%section%', 'portfolio', $menu_opaque),\n\t\tstr_replace('%section%', 'portfolio', $header_section_title),\n\t\tstr_replace('%section%', 'portfolio', $header_type),\n\t\tstr_replace('%section%', 'portfolio', $header_uncode_block),\n\t\tstr_replace('%section%', 'portfolio', $header_revslider),\n\t\tstr_replace('%section%', 'portfolio', $header_layerslider),\n\n\t\tstr_replace('%section%', 'portfolio', $header_width),\n\t\tstr_replace('%section%', 'portfolio', $header_height),\n\t\tstr_replace('%section%', 'portfolio', $header_min_height),\n\t\tstr_replace('%section%', 'portfolio', $header_title),\n\t\tstr_replace('%section%', 'portfolio', $header_style),\n\t\tstr_replace('%section%', 'portfolio', $header_content_width),\n\t\tstr_replace('%section%', 'portfolio', $header_custom_width),\n\t\tstr_replace('%section%', 'portfolio', $header_align),\n\t\tstr_replace('%section%', 'portfolio', $header_position),\n\t\tstr_replace('%section%', 'portfolio', $header_title_font),\n\t\tstr_replace('%section%', 'portfolio', $header_title_size),\n\t\tstr_replace('%section%', 'portfolio', $header_title_height),\n\t\tstr_replace('%section%', 'portfolio', $header_title_spacing),\n\t\tstr_replace('%section%', 'portfolio', $header_title_weight),\n\t\tstr_replace('%section%', 'portfolio', $header_title_transform),\n\t\tstr_replace('%section%', 'portfolio', $header_title_italic),\n\t\tstr_replace('%section%', 'portfolio', $header_text_animation),\n\t\tstr_replace('%section%', 'portfolio', $header_animation_speed),\n\t\tstr_replace('%section%', 'portfolio', $header_animation_delay),\n\t\tstr_replace('%section%', 'portfolio', $header_featured),\n\t\tstr_replace('%section%', 'portfolio', $header_background),\n\t\tstr_replace('%section%', 'portfolio', $header_parallax),\n\t\tstr_replace('%section%', 'portfolio', $header_kburns),\n\t\tstr_replace('%section%', 'portfolio', $header_overlay_color),\n\t\tstr_replace('%section%', 'portfolio', $header_overlay_color_alpha),\n\t\tstr_replace('%section%', 'portfolio', $header_scroll_opacity),\n\t\tstr_replace('%section%', 'portfolio', $header_scrolldown),\n\n\t\tstr_replace('%section%', 'portfolio', $body_section_title),\n\t\tstr_replace('%section%', 'portfolio', $body_layout_width),\n\t\tstr_replace('%section%', 'portfolio', $body_layout_width_custom),\n\t\tstr_replace('%section%', 'portfolio', $show_breadcrumb),\n\t\tstr_replace('%section%', 'portfolio', $breadcrumb_align),\n\t\tstr_replace('%section%', 'portfolio', run_array_to($show_title, 'std', 'on')),\n\t\tstr_replace('%section%', 'portfolio', $show_media),\n\t\tstr_replace('%section%', 'portfolio', $show_featured_media),\n\t\tstr_replace('%section%', 'portfolio', run_array_to($show_comments, 'std', 'off')),\n\t\tstr_replace('%section%', 'portfolio', $show_share),\n\t\tstr_replace('%section%', 'portfolio', $body_uncode_block_after),\n\t\tarray(\n\t\t\t'id' => '_uncode_portfolio_details_title',\n\t\t\t'label' => '<i class=\"fa fa-briefcase3\"></i> ' . esc_html__('Details', 'uncode') ,\n\t\t\t'type' => 'textblock-titled',\n\t\t\t'class' => 'section-title',\n\t\t\t'section' => 'uncode_portfolio_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_portfolio_details',\n\t\t\t'label' => ucfirst($portfolio_cpt_name) . ' ' . esc_html__('details', 'uncode') ,\n\t\t\t'desc' => sprintf(esc_html__('Create here all the %s details label that you need.', 'uncode') , $portfolio_cpt_name) ,\n\t\t\t'type' => 'list-item',\n\t\t\t'section' => 'uncode_portfolio_section',\n\t\t\t'settings' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'id' => '_uncode_portfolio_detail_unique_id',\n\t\t\t\t\t'class' => 'unique_id',\n\t\t\t\t\t'std' => 'detail-',\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t'label' => sprintf(esc_html__('Unique %s detail ID','uncode') , $portfolio_cpt_name) ,\n\t\t\t\t\t'desc' => esc_html__('This value is created automatically and it shouldn\\'t be edited unless you know what you are doing.','uncode'),\n\t\t\t\t),\n\t\t\t)\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_portfolio_position',\n\t\t\t'label' => ucfirst($portfolio_cpt_name) . ' ' . esc_html__('details layout', 'uncode') ,\n\t\t\t'desc' => sprintf(esc_html__('Specify the layout template for all the %s posts.', 'uncode') , $portfolio_cpt_name) ,\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_portfolio_section',\n\t\t\t'choices' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'value' => '',\n\t\t\t\t\t'label' => esc_html__('Select…', 'uncode') ,\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'portfolio_top',\n\t\t\t\t\t'label' => esc_html__('Details on the top', 'uncode') ,\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'sidebar_right',\n\t\t\t\t\t'label' => esc_html__('Details on the right', 'uncode') ,\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'portfolio_bottom',\n\t\t\t\t\t'label' => esc_html__('Details on the bottom', 'uncode') ,\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'sidebar_left',\n\t\t\t\t\t'label' => esc_html__('Details on the left', 'uncode') ,\n\t\t\t\t) ,\n\t\t\t)\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_portfolio_sidebar_size',\n\t\t\t'label' => esc_html__('Sidebar size', 'uncode') ,\n\t\t\t'desc' => esc_html__('Set the sidebar size.', 'uncode') ,\n\t\t\t'std' => '4',\n\t\t\t'min_max_step' => '1,12,1',\n\t\t\t'type' => 'numeric-slider',\n\t\t\t'section' => 'uncode_portfolio_section',\n\t\t\t'operator' => 'and',\n\t\t\t'condition' => '_uncode_portfolio_position:not(),_uncode_portfolio_position:contains(sidebar)',\n\t\t) ,\n\t\tstr_replace('%section%', 'portfolio', run_array_to($sidebar_sticky, 'condition', '_uncode_portfolio_position:not(),_uncode_portfolio_position:contains(sidebar)')),\n\t\tarray(\n\t\t\t'id' => '_uncode_portfolio_style',\n\t\t\t'label' => esc_html__('Skin', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the sidebar text skin color.', 'uncode') ,\n\t\t\t'type' => 'select',\n\t\t\t'choices' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'value' => '',\n\t\t\t\t\t'label' => esc_html__('Inherit', \"uncode\") ,\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'light',\n\t\t\t\t\t'label' => esc_html__('Light', \"uncode\") ,\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'dark',\n\t\t\t\t\t'label' => esc_html__('Dark', \"uncode\") ,\n\t\t\t\t)\n\t\t\t),\n\t\t\t'section' => 'uncode_portfolio_section',\n\t\t\t'condition' => '_uncode_portfolio_position:not()',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_portfolio_bgcolor',\n\t\t\t'label' => esc_html__('Sidebar color', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the sidebar background color.', 'uncode') ,\n\t\t\t'type' => 'uncode_color',\n\t\t\t'section' => 'uncode_portfolio_section',\n\t\t\t'condition' => '_uncode_portfolio_position:not()',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_portfolio_sidebar_fill',\n\t\t\t'label' => esc_html__('Sidebar filling space', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to remove padding around the sidebar and fill the height.', 'uncode') ,\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_portfolio_section',\n\t\t\t'std' => 'off',\n\t\t\t'operator' => 'and',\n\t\t\t'condition' => '_uncode_portfolio_position:not(),_uncode_portfolio_sidebar_bgcolor:not(),_uncode_portfolio_position:contains(sidebar)',\n\t\t),\n\t\tstr_replace('%section%', 'portfolio', $navigation_section_title),\n\t\tstr_replace('%section%', 'portfolio', $navigation_activate),\n\t\tstr_replace('%section%', 'portfolio', $navigation_page_index),\n\t\tstr_replace('%section%', 'portfolio', $navigation_index_label),\n\t\tstr_replace('%section%', 'portfolio', $navigation_nextprev_title),\n\t\tstr_replace('%section%', 'portfolio', $footer_section_title),\n\t\tstr_replace('%section%', 'portfolio', $footer_uncode_block),\n\t\tstr_replace('%section%', 'portfolio', $footer_width),\n\t\tstr_replace('%section%', 'portfolio', $custom_fields_section_title),\n\t\tstr_replace('%section%', 'portfolio', $custom_fields_list),\n\t);\n\n\t$custom_settings_one = array_merge( $custom_settings_one, $cpt_single_options );\n\n\t$custom_settings_two = array(\n\t\t///////////////////\n\t\t// Page 404\t\t///\n\t\t///////////////////\n\t\tstr_replace('%section%', '404', $menu_section_title),\n\t\tstr_replace('%section%', '404', $menu),\n\t\tstr_replace('%section%', '404', $menu_width),\n\t\tstr_replace('%section%', '404', $menu_opaque),\n\t\tstr_replace('%section%', '404', $header_section_title),\n\t\tstr_replace('%section%', '404', $header_type),\n\t\tstr_replace('%section%', '404', $header_uncode_block),\n\t\tstr_replace('%section%', '404', $header_revslider),\n\t\tstr_replace('%section%', '404', $header_layerslider),\n\n\t\tstr_replace('%section%', '404', $header_width),\n\t\tstr_replace('%section%', '404', $header_height),\n\t\tstr_replace('%section%', '404', $header_min_height),\n\t\tstr_replace('%section%', '404', $header_title),\n\t\tstr_replace('%section%', '404', $header_title_text),\n\t\tstr_replace('%section%', '404', $header_style),\n\t\tstr_replace('%section%', '404', $header_content_width),\n\t\tstr_replace('%section%', '404', $header_custom_width),\n\t\tstr_replace('%section%', '404', $header_align),\n\t\tstr_replace('%section%', '404', $header_position),\n\t\tstr_replace('%section%', '404', $header_title_font),\n\t\tstr_replace('%section%', '404', $header_title_size),\n\t\tstr_replace('%section%', '404', $header_title_height),\n\t\tstr_replace('%section%', '404', $header_title_spacing),\n\t\tstr_replace('%section%', '404', $header_title_weight),\n\t\tstr_replace('%section%', '404', $header_title_transform),\n\t\tstr_replace('%section%', '404', $header_title_italic),\n\t\tstr_replace('%section%', '404', $header_text_animation),\n\t\tstr_replace('%section%', '404', $header_animation_speed),\n\t\tstr_replace('%section%', '404', $header_animation_delay),\n\t\tstr_replace('%section%', '404', $header_background),\n\t\tstr_replace('%section%', '404', $header_parallax),\n\t\tstr_replace('%section%', '404', $header_kburns),\n\t\tstr_replace('%section%', '404', $header_overlay_color),\n\t\tstr_replace('%section%', '404', $header_overlay_color_alpha),\n\t\tstr_replace('%section%', '404', $header_scroll_opacity),\n\t\tstr_replace('%section%', '404', $header_scrolldown),\n\n\t\tstr_replace('%section%', '404', $body_section_title),\n\t\tstr_replace('%section%', '404', $body_layout_width),\n\t\tstr_replace('%section%', '404', $uncodeblock_404),\n\t\tstr_replace('%section%', '404', $uncodeblocks_404),\n\t\tstr_replace('%section%', '404', $footer_section_title),\n\t\tstr_replace('%section%', '404', $footer_uncode_block),\n\t\tstr_replace('%section%', '404', $footer_width),\n\t\t//////////////////////\n\t\t// Posts Index\t\t///\n\t\t//////////////////////\n\t\tstr_replace('%section%', 'post_index', $menu_section_title),\n\t\tstr_replace('%section%', 'post_index', $menu),\n\t\tstr_replace('%section%', 'post_index', $menu_width),\n\t\tstr_replace('%section%', 'post_index', $menu_opaque),\n\t\tstr_replace('%section%', 'post_index', $header_section_title),\n\t\tstr_replace('%section%', 'post_index', run_array_to($header_type, 'std', 'header_basic')),\n\t\tstr_replace('%section%', 'post_index', $header_uncode_block),\n\t\tstr_replace('%section%', 'post_index', $header_revslider),\n\t\tstr_replace('%section%', 'post_index', $header_layerslider),\n\n\t\tstr_replace('%section%', 'post_index', $header_width),\n\t\tstr_replace('%section%', 'post_index', $header_height),\n\t\tstr_replace('%section%', 'post_index', $header_min_height),\n\t\tstr_replace('%section%', 'post_index', $header_title),\n\t\tstr_replace('%section%', 'post_index', $header_style),\n\t\tstr_replace('%section%', 'post_index', $header_content_width),\n\t\tstr_replace('%section%', 'post_index', $header_custom_width),\n\t\tstr_replace('%section%', 'post_index', $header_align),\n\t\tstr_replace('%section%', 'post_index', $header_position),\n\t\tstr_replace('%section%', 'post_index', $header_title_font),\n\t\tstr_replace('%section%', 'post_index', $header_title_size),\n\t\tstr_replace('%section%', 'post_index', $header_title_height),\n\t\tstr_replace('%section%', 'post_index', $header_title_spacing),\n\t\tstr_replace('%section%', 'post_index', $header_title_weight),\n\t\tstr_replace('%section%', 'post_index', $header_title_transform),\n\t\tstr_replace('%section%', 'post_index', $header_title_italic),\n\t\tstr_replace('%section%', 'post_index', $header_text_animation),\n\t\tstr_replace('%section%', 'post_index', $header_animation_speed),\n\t\tstr_replace('%section%', 'post_index', $header_animation_delay),\n\t\tstr_replace('%section%', 'post_index', $header_featured),\n\t\tstr_replace('%section%', 'post_index', $header_background),\n\t\tstr_replace('%section%', 'post_index', $header_parallax),\n\t\tstr_replace('%section%', 'post_index', $header_kburns),\n\t\tstr_replace('%section%', 'post_index', $header_overlay_color),\n\t\tstr_replace('%section%', 'post_index', $header_overlay_color_alpha),\n\t\tstr_replace('%section%', 'post_index', $header_scroll_opacity),\n\t\tstr_replace('%section%', 'post_index', $header_scrolldown),\n\t\tstr_replace('%section%', 'post_index', $menu_no_padding),\n\t\tstr_replace('%section%', 'post_index', $menu_no_padding_mobile),\n\t\tstr_replace('%section%', 'post_index', $title_archive_custom_activate),\n\t\tstr_replace('%section%', 'post_index', $title_archive_custom_text),\n\t\tstr_replace('%section%', 'post_index', $subtitle_archive_custom_text),\n\n\t\tstr_replace('%section%', 'post_index', $body_section_title),\n\t\tstr_replace('%section%', 'post_index', $show_breadcrumb),\n\t\tstr_replace('%section%', 'post_index', $breadcrumb_align),\n\t\tstr_replace('%section%', 'post_index', $body_uncode_block),\n\t\tstr_replace('%section%', 'post_index', $body_layout_width),\n\t\tstr_replace('%section%', 'post_index', $body_single_post_width),\n\t\tstr_replace('%section%', 'post_index', $body_single_text_lenght),\n\t\tstr_replace('%section%', 'post_index', $show_title),\n\t\tstr_replace('%section%', 'post_index', $remove_pagination),\n\t\tstr_replace('%section%', 'post_index', $sidebar_section_title),\n\t\tstr_replace('%section%', 'post_index', run_array_to($sidebar_activate, 'std', 'on')),\n\t\tstr_replace('%section%', 'post_index', $sidebar_widget),\n\t\tstr_replace('%section%', 'post_index', $sidebar_position),\n\t\tstr_replace('%section%', 'post_index', $sidebar_size),\n\t\tstr_replace('%section%', 'post_index', $sidebar_sticky),\n\t\tstr_replace('%section%', 'post_index', $sidebar_style),\n\t\tstr_replace('%section%', 'post_index', $sidebar_bgcolor),\n\t\tstr_replace('%section%', 'post_index', $sidebar_fill),\n\t\tstr_replace('%section%', 'post_index', $footer_section_title),\n\t\tstr_replace('%section%', 'post_index', $footer_uncode_block),\n\t\tstr_replace('%section%', 'post_index', $footer_width),\n\t\t//////////////////////\n\t\t// Pages Index\t\t///\n\t\t//////////////////////\n\t\tstr_replace('%section%', 'page_index', $menu_section_title),\n\t\tstr_replace('%section%', 'page_index', $menu),\n\t\tstr_replace('%section%', 'page_index', $menu_width),\n\t\tstr_replace('%section%', 'page_index', $menu_opaque),\n\t\tstr_replace('%section%', 'page_index', $header_section_title),\n\t\tstr_replace('%section%', 'page_index', run_array_to($header_type, 'std', 'header_basic')),\n\t\tstr_replace('%section%', 'page_index', $header_uncode_block),\n\t\tstr_replace('%section%', 'page_index', $header_revslider),\n\t\tstr_replace('%section%', 'page_index', $header_layerslider),\n\n\t\tstr_replace('%section%', 'page_index', $header_width),\n\t\tstr_replace('%section%', 'page_index', $header_height),\n\t\tstr_replace('%section%', 'page_index', $header_min_height),\n\t\tstr_replace('%section%', 'page_index', $header_title),\n\t\tstr_replace('%section%', 'page_index', $header_style),\n\t\tstr_replace('%section%', 'page_index', $header_content_width),\n\t\tstr_replace('%section%', 'page_index', $header_custom_width),\n\t\tstr_replace('%section%', 'page_index', $header_align),\n\t\tstr_replace('%section%', 'page_index', $header_position),\n\t\tstr_replace('%section%', 'page_index', $header_title_font),\n\t\tstr_replace('%section%', 'page_index', $header_title_size),\n\t\tstr_replace('%section%', 'page_index', $header_title_height),\n\t\tstr_replace('%section%', 'page_index', $header_title_spacing),\n\t\tstr_replace('%section%', 'page_index', $header_title_weight),\n\t\tstr_replace('%section%', 'page_index', $header_title_transform),\n\t\tstr_replace('%section%', 'page_index', $header_title_italic),\n\t\tstr_replace('%section%', 'page_index', $header_text_animation),\n\t\tstr_replace('%section%', 'page_index', $header_animation_speed),\n\t\tstr_replace('%section%', 'page_index', $header_animation_delay),\n\t\tstr_replace('%section%', 'page_index', $header_featured),\n\t\tstr_replace('%section%', 'page_index', $header_background),\n\t\tstr_replace('%section%', 'page_index', $header_parallax),\n\t\tstr_replace('%section%', 'page_index', $header_kburns),\n\t\tstr_replace('%section%', 'page_index', $header_overlay_color),\n\t\tstr_replace('%section%', 'page_index', $header_overlay_color_alpha),\n\t\tstr_replace('%section%', 'page_index', $header_scroll_opacity),\n\t\tstr_replace('%section%', 'page_index', $header_scrolldown),\n\t\tstr_replace('%section%', 'page_index', $menu_no_padding),\n\t\tstr_replace('%section%', 'page_index', $menu_no_padding_mobile),\n\n\t\tstr_replace('%section%', 'page_index', $body_section_title),\n\t\tstr_replace('%section%', 'page_index', $show_breadcrumb),\n\t\tstr_replace('%section%', 'page_index', $breadcrumb_align),\n\t\tstr_replace('%section%', 'page_index', $body_uncode_block),\n\t\tstr_replace('%section%', 'page_index', $body_layout_width),\n\t\tstr_replace('%section%', 'page_index', $body_single_post_width),\n\t\tstr_replace('%section%', 'page_index', $body_single_text_lenght),\n\t\tstr_replace('%section%', 'page_index', $show_title),\n\t\tstr_replace('%section%', 'page_index', $remove_pagination),\n\t\tstr_replace('%section%', 'page_index', $sidebar_section_title),\n\t\tstr_replace('%section%', 'page_index', run_array_to($sidebar_activate, 'std', 'on')),\n\t\tstr_replace('%section%', 'page_index', $sidebar_widget),\n\t\tstr_replace('%section%', 'page_index', $sidebar_position),\n\t\tstr_replace('%section%', 'page_index', $sidebar_size),\n\t\tstr_replace('%section%', 'page_index', $sidebar_sticky),\n\t\tstr_replace('%section%', 'page_index', $sidebar_style),\n\t\tstr_replace('%section%', 'page_index', $sidebar_bgcolor),\n\t\tstr_replace('%section%', 'page_index', $sidebar_fill),\n\t\tstr_replace('%section%', 'page_index', $footer_section_title),\n\t\tstr_replace('%section%', 'page_index', $footer_uncode_block),\n\t\tstr_replace('%section%', 'page_index', $footer_width),\n\t\t////////////////////////\n\t\t// Archive Index\t\t///\n\t\t////////////////////////\n\t\tstr_replace('%section%', 'portfolio_index', $menu_section_title),\n\t\tstr_replace('%section%', 'portfolio_index', $menu),\n\t\tstr_replace('%section%', 'portfolio_index', $menu_width),\n\t\tstr_replace('%section%', 'portfolio_index', $menu_opaque),\n\t\tstr_replace('%section%', 'portfolio_index', $header_section_title),\n\t\tstr_replace('%section%', 'portfolio_index', run_array_to($header_type, 'std', 'header_basic')),\n\t\tstr_replace('%section%', 'portfolio_index', $header_uncode_block),\n\t\tstr_replace('%section%', 'portfolio_index', $header_revslider),\n\t\tstr_replace('%section%', 'portfolio_index', $header_layerslider),\n\n\t\tstr_replace('%section%', 'portfolio_index', $header_width),\n\t\tstr_replace('%section%', 'portfolio_index', $header_height),\n\t\tstr_replace('%section%', 'portfolio_index', $header_min_height),\n\t\tstr_replace('%section%', 'portfolio_index', $header_title),\n\t\tstr_replace('%section%', 'portfolio_index', $header_style),\n\t\tstr_replace('%section%', 'portfolio_index', $header_content_width),\n\t\tstr_replace('%section%', 'portfolio_index', $header_custom_width),\n\t\tstr_replace('%section%', 'portfolio_index', $header_align),\n\t\tstr_replace('%section%', 'portfolio_index', $header_position),\n\t\tstr_replace('%section%', 'portfolio_index', $header_title_font),\n\t\tstr_replace('%section%', 'portfolio_index', $header_title_size),\n\t\tstr_replace('%section%', 'portfolio_index', $header_title_height),\n\t\tstr_replace('%section%', 'portfolio_index', $header_title_spacing),\n\t\tstr_replace('%section%', 'portfolio_index', $header_title_weight),\n\t\tstr_replace('%section%', 'portfolio_index', $header_title_transform),\n\t\tstr_replace('%section%', 'portfolio_index', $header_title_italic),\n\t\tstr_replace('%section%', 'portfolio_index', $header_text_animation),\n\t\tstr_replace('%section%', 'portfolio_index', $header_animation_speed),\n\t\tstr_replace('%section%', 'portfolio_index', $header_animation_delay),\n\t\tstr_replace('%section%', 'portfolio_index', $header_featured),\n\t\tstr_replace('%section%', 'portfolio_index', $header_background),\n\t\tstr_replace('%section%', 'portfolio_index', $header_parallax),\n\t\tstr_replace('%section%', 'portfolio_index', $header_kburns),\n\t\tstr_replace('%section%', 'portfolio_index', $header_overlay_color),\n\t\tstr_replace('%section%', 'portfolio_index', $header_overlay_color_alpha),\n\t\tstr_replace('%section%', 'portfolio_index', $header_scroll_opacity),\n\t\tstr_replace('%section%', 'portfolio_index', $header_scrolldown),\n\t\tstr_replace('%section%', 'portfolio_index', $menu_no_padding),\n\t\tstr_replace('%section%', 'portfolio_index', $menu_no_padding_mobile),\n\t\tstr_replace('%section%', 'portfolio_index', $title_archive_custom_activate),\n\t\tstr_replace('%section%', 'portfolio_index', $title_archive_custom_text),\n\t\tstr_replace('%section%', 'portfolio_index', $subtitle_archive_custom_text),\n\n\t\tstr_replace('%section%', 'portfolio_index', $body_section_title),\n\t\tstr_replace('%section%', 'portfolio_index', $show_breadcrumb),\n\t\tstr_replace('%section%', 'portfolio_index', $breadcrumb_align),\n\t\tstr_replace('%section%', 'portfolio_index', $body_uncode_block),\n\t\tstr_replace('%section%', 'portfolio_index', $body_layout_width),\n\t\tstr_replace('%section%', 'portfolio_index', $body_single_post_width),\n\t\tstr_replace('%section%', 'portfolio_index', $show_title),\n\t\tstr_replace('%section%', 'portfolio_index', $remove_pagination),\n\t\tstr_replace('%section%', 'portfolio_index', $sidebar_section_title),\n\t\tstr_replace('%section%', 'portfolio_index', $sidebar_activate),\n\t\tstr_replace('%section%', 'portfolio_index', $sidebar_widget),\n\t\tstr_replace('%section%', 'portfolio_index', $sidebar_position),\n\t\tstr_replace('%section%', 'portfolio_index', $sidebar_size),\n\t\tstr_replace('%section%', 'portfolio_index', $sidebar_sticky),\n\t\tstr_replace('%section%', 'portfolio_index', $sidebar_style),\n\t\tstr_replace('%section%', 'portfolio_index', $sidebar_bgcolor),\n\t\tstr_replace('%section%', 'portfolio_index', $sidebar_fill),\n\t\tstr_replace('%section%', 'portfolio_index', $footer_section_title),\n\t\tstr_replace('%section%', 'portfolio_index', $footer_uncode_block),\n\t\tstr_replace('%section%', 'portfolio_index', $footer_width),\n\t);\n\n\t$custom_settings_one = array_merge( $custom_settings_one, $custom_settings_two );\n\t$custom_settings_one = array_merge( $custom_settings_one, $cpt_index_options );\n\n\t$custom_settings_three = array(\n\t\t///////////////////////\n\t\t// Search Index\t\t///\n\t\t///////////////////////\n\t\tstr_replace('%section%', 'search_index', $menu_section_title),\n\t\tstr_replace('%section%', 'search_index', $menu),\n\t\tstr_replace('%section%', 'search_index', $menu_width),\n\t\tstr_replace('%section%', 'search_index', $menu_opaque),\n\t\tstr_replace('%section%', 'search_index', $header_section_title),\n\t\tstr_replace('%section%', 'search_index', run_array_to($header_type, 'std', 'header_basic')),\n\t\tstr_replace('%section%', 'search_index', $header_uncode_block),\n\t\tstr_replace('%section%', 'search_index', $header_revslider),\n\t\tstr_replace('%section%', 'search_index', $header_layerslider),\n\n\t\tstr_replace('%section%', 'search_index', $header_width),\n\t\tstr_replace('%section%', 'search_index', $header_height),\n\t\tstr_replace('%section%', 'search_index', $header_min_height),\n\t\tstr_replace('%section%', 'search_index', $header_title),\n\t\tstr_replace('%section%', 'search_index', $header_title_text),\n\t\tstr_replace('%section%', 'search_index', $header_style),\n\t\tstr_replace('%section%', 'search_index', $header_content_width),\n\t\tstr_replace('%section%', 'search_index', $header_custom_width),\n\t\tstr_replace('%section%', 'search_index', $header_align),\n\t\tstr_replace('%section%', 'search_index', $header_position),\n\t\tstr_replace('%section%', 'search_index', $header_title_font),\n\t\tstr_replace('%section%', 'search_index', $header_title_size),\n\t\tstr_replace('%section%', 'search_index', $header_title_height),\n\t\tstr_replace('%section%', 'search_index', $header_title_spacing),\n\t\tstr_replace('%section%', 'search_index', $header_title_weight),\n\t\tstr_replace('%section%', 'search_index', $header_title_transform),\n\t\tstr_replace('%section%', 'search_index', $header_title_italic),\n\t\tstr_replace('%section%', 'search_index', $header_text_animation),\n\t\tstr_replace('%section%', 'search_index', $header_animation_speed),\n\t\tstr_replace('%section%', 'search_index', $header_animation_delay),\n\t\tstr_replace('%section%', 'search_index', $header_background),\n\t\tstr_replace('%section%', 'search_index', $header_parallax),\n\t\tstr_replace('%section%', 'search_index', $header_kburns),\n\t\tstr_replace('%section%', 'search_index', $header_overlay_color),\n\t\tstr_replace('%section%', 'search_index', $header_overlay_color_alpha),\n\t\tstr_replace('%section%', 'search_index', $header_scroll_opacity),\n\t\tstr_replace('%section%', 'search_index', $header_scrolldown),\n\t\tstr_replace('%section%', 'search_index', $menu_no_padding),\n\t\tstr_replace('%section%', 'search_index', $menu_no_padding_mobile),\n\t\tstr_replace('%section%', 'search_index', $title_archive_custom_activate),\n\t\tstr_replace('%section%', 'search_index', $title_archive_custom_text),\n\t\tstr_replace('%section%', 'search_index', $subtitle_archive_custom_text),\n\n\t\tstr_replace('%section%', 'search_index', $body_section_title),\n\t\tstr_replace('%section%', 'search_index', $body_uncode_block),\n\t\tstr_replace('%section%', 'search_index', $body_layout_width),\n\t\tstr_replace('%section%', 'search_index', $remove_pagination),\n\t\tstr_replace('%section%', 'search_index', $sidebar_section_title),\n\t\tstr_replace('%section%', 'search_index', $sidebar_activate),\n\t\tstr_replace('%section%', 'search_index', $sidebar_widget),\n\t\tstr_replace('%section%', 'search_index', $sidebar_position),\n\t\tstr_replace('%section%', 'search_index', $sidebar_size),\n\t\tstr_replace('%section%', 'search_index', $sidebar_sticky),\n\t\tstr_replace('%section%', 'search_index', $sidebar_style),\n\t\tstr_replace('%section%', 'search_index', $sidebar_bgcolor),\n\t\tstr_replace('%section%', 'search_index', $sidebar_fill),\n\t\tstr_replace('%section%', 'search_index', $footer_section_title),\n\t\tstr_replace('%section%', 'search_index', $footer_uncode_block),\n\t\tstr_replace('%section%', 'search_index', $footer_width),\n\n\t\tarray(\n\t\t\t'id' => '_uncode_sidebars',\n\t\t\t'label' => esc_html__('Site sidebars', 'uncode') ,\n\t\t\t'desc' => esc_html__('Define here all the sidebars you will need. A default sidebar is already defined.', 'uncode') ,\n\t\t\t'type' => 'list-item',\n\t\t\t'section' => 'uncode_sidebars_section',\n\t\t\t'class' => 'list-item',\n\t\t\t'settings' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'id' => '_uncode_sidebar_unique_id',\n\t\t\t\t\t'class' => 'unique_id',\n\t\t\t\t\t'std' => 'sidebar-',\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t'label' => esc_html__('Unique sidebar ID','uncode'),\n\t\t\t\t\t'desc' => esc_html__('This value is created automatically and it shouldn\\'t be edited unless you know what you are doing.','uncode'),\n\t\t\t\t),\n\t\t\t)\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_font_groups',\n\t\t\t'label' => esc_html__('Custom fonts', 'uncode') ,\n\t\t\t'desc' => esc_html__('Define here all the fonts you will need.', 'uncode') ,\n\t\t\t'std' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'title' => 'Font Default',\n\t\t\t\t\t'_uncode_font_group_unique_id' => 'font-555555',\n\t\t\t\t\t'_uncode_font_group' => 'manual',\n\t\t\t\t\t'_uncode_font_manual' => '-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif'\n\t\t\t\t),\n\t\t\t),\n\t\t\t'type' => 'list-item',\n\t\t\t'section' => 'uncode_typography_section',\n\t\t\t'settings' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'id' => '_uncode_font_group_unique_id',\n\t\t\t\t\t'class' => 'unique_id',\n\t\t\t\t\t'std' => 'font-',\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t'label' => esc_html__('Unique font ID','uncode'),\n\t\t\t\t\t'desc' => esc_html__('This value is created automatically and it shouldn\\'t be edited unless you know what you are doing.','uncode'),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'id' => '_uncode_font_group',\n\t\t\t\t\t'label' => esc_html__('Uncode font', 'uncode') ,\n\t\t\t\t\t'desc' => esc_html__('Specify a font.', 'uncode') ,\n\t\t\t\t\t'type' => 'select',\n\t\t\t\t\t'choices' => $title_font,\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'id' => '_uncode_font_manual',\n\t\t\t\t\t'label' => esc_html__('Font family', 'uncode') ,\n\t\t\t\t\t'desc' => esc_html__('Enter a font family.', 'uncode') ,\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t'condition' => '_uncode_font_group:is(manual)',\n\t\t\t\t\t'operator' => 'and'\n\t\t\t\t)\n\t\t\t)\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_font_size',\n\t\t\t'label' => esc_html__('Default font size', 'uncode') ,\n\t\t\t'desc' => esc_html__('Font size for p,li,dt,dd,dl,address,label,small,pre in px.', 'uncode') ,\n\t\t\t'std' => '15',\n\t\t\t'type' => 'text',\n\t\t\t'section' => 'uncode_typography_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_large_text_size',\n\t\t\t'label' => esc_html__('Large text font size', 'uncode') ,\n\t\t\t'desc' => esc_html__('Font size for large text in px.', 'uncode') ,\n\t\t\t'std' => '18',\n\t\t\t'type' => 'text',\n\t\t\t'section' => 'uncode_typography_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_heading_h1',\n\t\t\t'label' => esc_html__('Font size H1', 'uncode') ,\n\t\t\t'desc' => esc_html__('Font size for H1 in <b>px</b>.', 'uncode') ,\n\t\t\t'std' => '35',\n\t\t\t'type' => 'text',\n\t\t\t'section' => 'uncode_typography_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_heading_h2',\n\t\t\t'label' => esc_html__('Font size H2', 'uncode') ,\n\t\t\t'desc' => esc_html__('Font size for H2 in <b>px</b>.', 'uncode') ,\n\t\t\t'std' => '29',\n\t\t\t'type' => 'text',\n\t\t\t'section' => 'uncode_typography_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_heading_h3',\n\t\t\t'label' => esc_html__('Font size H3', 'uncode') ,\n\t\t\t'desc' => esc_html__('Font size for H3 in <b>px</b>.', 'uncode') ,\n\t\t\t'std' => '24',\n\t\t\t'type' => 'text',\n\t\t\t'section' => 'uncode_typography_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_heading_h4',\n\t\t\t'label' => esc_html__('Font size H4', 'uncode') ,\n\t\t\t'desc' => esc_html__('Font size for H4 in <b>px</b>.', 'uncode') ,\n\t\t\t'std' => '20',\n\t\t\t'type' => 'text',\n\t\t\t'section' => 'uncode_typography_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_heading_h5',\n\t\t\t'label' => esc_html__('Font size H5', 'uncode') ,\n\t\t\t'desc' => esc_html__('Font size for H5 in <b>px</b>.', 'uncode') ,\n\t\t\t'std' => '17',\n\t\t\t'type' => 'text',\n\t\t\t'section' => 'uncode_typography_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_heading_h6',\n\t\t\t'label' => esc_html__('Font size H6', 'uncode') ,\n\t\t\t'desc' => esc_html__('Font size for H6 in <b>px</b>.', 'uncode') ,\n\t\t\t'std' => '14',\n\t\t\t'type' => 'text',\n\t\t\t'section' => 'uncode_typography_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_heading_font_sizes',\n\t\t\t'label' => esc_html__('Custom font size', 'uncode') ,\n\t\t\t'desc' => esc_html__('Define here all the additional font sizes you will need.', 'uncode') ,\n\t\t\t'std' => '',\n\t\t\t'type' => 'list-item',\n\t\t\t'section' => 'uncode_typography_section',\n\t\t\t'settings' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'id' => '_uncode_heading_font_size_unique_id',\n\t\t\t\t\t'class' => 'unique_id',\n\t\t\t\t\t'std' => 'fontsize-',\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t'label' => esc_html__('Unique font size ID','uncode'),\n\t\t\t\t\t'desc' => esc_html__('This value is created automatically and it shouldn\\'t be edited unless you know what you are doing.','uncode'),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'id' => '_uncode_heading_font_size',\n\t\t\t\t\t'label' => esc_html__('Font size', 'uncode') ,\n\t\t\t\t\t'desc' => esc_html__('Font size in <b>px</b>.', 'uncode') ,\n\t\t\t\t\t'std' => '',\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t)\n\t\t\t)\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_heading_font_heights',\n\t\t\t'label' => esc_html__('Custom line height', 'uncode') ,\n\t\t\t'desc' => esc_html__('Define here all the additional font line heights you will need.', 'uncode') ,\n\t\t\t'std' => '',\n\t\t\t'type' => 'list-item',\n\t\t\t'section' => 'uncode_typography_section',\n\t\t\t'settings' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'id' => '_uncode_heading_font_height_unique_id',\n\t\t\t\t\t'class' => 'unique_id',\n\t\t\t\t\t'std' => 'fontheight-',\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t'label' => esc_html__('Unique font height ID','uncode'),\n\t\t\t\t\t'desc' => esc_html__('This value is created automatically and it shouldn\\'t be edited unless you know what you are doing.','uncode'),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'id' => '_uncode_heading_font_height',\n\t\t\t\t\t'label' => esc_html__('Font line height', 'uncode') ,\n\t\t\t\t\t'desc' => esc_html__('Insert a line height.', 'uncode') ,\n\t\t\t\t\t'std' => '',\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t)\n\t\t\t)\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_heading_font_spacings',\n\t\t\t'label' => esc_html__('Custom letter spacing', 'uncode') ,\n\t\t\t'desc' => esc_html__('Define here all the letter spacings you will need.', 'uncode') ,\n\t\t\t'std' => '',\n\t\t\t'type' => 'list-item',\n\t\t\t'section' => 'uncode_typography_section',\n\t\t\t'settings' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'id' => '_uncode_heading_font_spacing_unique_id',\n\t\t\t\t\t'class' => 'unique_id',\n\t\t\t\t\t'std' => 'fontspace-',\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t'label' => esc_html__('Unique letter spacing ID','uncode'),\n\t\t\t\t\t'desc' => esc_html__('This value is created automatically and it shouldn\\'t be edited unless you know what you are doing.','uncode'),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'id' => '_uncode_heading_font_spacing',\n\t\t\t\t\t'label' => esc_html__('Letter spacing', 'uncode') ,\n\t\t\t\t\t'desc' => esc_html__('Letter spacing with the unit (em or px). Ex. 0.2em', 'uncode') ,\n\t\t\t\t\t'std' => '',\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t)\n\t\t\t)\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_custom_colors_list',\n\t\t\t'label' => esc_html__('Color palettes', 'uncode') ,\n\t\t\t'desc' => esc_html__('Define all the colors you will need.', 'uncode') ,\n\t\t\t'std' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'title' => esc_html__('Black','uncode'),\n\t\t\t\t\t'_uncode_custom_color_unique_id' => 'color-jevc',\n\t\t\t\t\t'_uncode_custom_color' => '#000000',\n\t\t\t\t\t'_uncode_custom_color_regular' => 'on',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'title' => esc_html__('Dark 1','uncode'),\n\t\t\t\t\t'_uncode_custom_color_unique_id' => 'color-nhtu',\n\t\t\t\t\t'_uncode_custom_color' => '#101213',\n\t\t\t\t\t'_uncode_custom_color_regular' => 'on',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'title' => esc_html__('Dark 2','uncode'),\n\t\t\t\t\t'_uncode_custom_color_unique_id' => 'color-wayh',\n\t\t\t\t\t'_uncode_custom_color' => '#141618',\n\t\t\t\t\t'_uncode_custom_color_regular' => 'on',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'title' => esc_html__('Dark 3','uncode'),\n\t\t\t\t\t'_uncode_custom_color_unique_id' => 'color-rgdb',\n\t\t\t\t\t'_uncode_custom_color' => '#1b1d1f',\n\t\t\t\t\t'_uncode_custom_color_regular' => 'on',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'title' => esc_html__('Dark 4','uncode'),\n\t\t\t\t\t'_uncode_custom_color_unique_id' => 'color-prif',\n\t\t\t\t\t'_uncode_custom_color' => '#303133',\n\t\t\t\t\t'_uncode_custom_color_regular' => 'on',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'title' => esc_html__('White','uncode'),\n\t\t\t\t\t'_uncode_custom_color_unique_id' => 'color-xsdn',\n\t\t\t\t\t'_uncode_custom_color' => '#ffffff',\n\t\t\t\t\t'_uncode_custom_color_regular' => 'on',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'title' => esc_html__('Light 1','uncode'),\n\t\t\t\t\t'_uncode_custom_color_unique_id' => 'color-lxmt',\n\t\t\t\t\t'_uncode_custom_color' => '#f7f7f7',\n\t\t\t\t\t'_uncode_custom_color_regular' => 'on',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'title' => esc_html__('Light 2','uncode'),\n\t\t\t\t\t'_uncode_custom_color_unique_id' => 'color-gyho',\n\t\t\t\t\t'_uncode_custom_color' => '#eaeaea',\n\t\t\t\t\t'_uncode_custom_color_regular' => 'on',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'title' => esc_html__('Light 3','uncode'),\n\t\t\t\t\t'_uncode_custom_color_unique_id' => 'color-uydo',\n\t\t\t\t\t'_uncode_custom_color' => '#dddddd',\n\t\t\t\t\t'_uncode_custom_color_regular' => 'on',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'title' => esc_html__('Light 4','uncode'),\n\t\t\t\t\t'_uncode_custom_color_unique_id' => 'color-wvjs',\n\t\t\t\t\t'_uncode_custom_color' => '#777',\n\t\t\t\t\t'_uncode_custom_color_regular' => 'on',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'title' => esc_html__('Cerulean','uncode'),\n\t\t\t\t\t'_uncode_custom_color_unique_id' => 'color-vyce',\n\t\t\t\t\t'_uncode_custom_color' => '#0cb4ce',\n\t\t\t\t\t'_uncode_custom_color_regular' => 'on',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'title' => esc_html__('Blue Ribbon','uncode'),\n\t\t\t\t\t'_uncode_custom_color_unique_id' => 'color-210407',\n\t\t\t\t\t'_uncode_custom_color' => '#006cff',\n\t\t\t\t\t'_uncode_custom_color_regular' => 'on',\n\t\t\t\t),\n\t\t\t),\n\t\t\t'type' => 'list-item',\n\t\t\t'section' => 'uncode_colors_section',\n\t\t\t'class' => 'list-colors',\n\t\t\t'settings' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'id' => '_uncode_custom_color_unique_id',\n\t\t\t\t\t'std' => 'color-',\n\t\t\t\t\t'class' => 'unique_id',\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t'label' => esc_html__('Unique color ID','uncode'),\n\t\t\t\t\t'desc' => esc_html__('This value is created automatically and it shouldn\\'t be edited unless you know what you are doing.','uncode'),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'id' => '_uncode_custom_color_regular',\n\t\t\t\t\t'label' => esc_html__('Monochrome', 'uncode') ,\n\t\t\t\t\t'desc' => esc_html__('Activate to assign a monochromatic color, otherwise a gradient will be used.', 'uncode') ,\n\t\t\t\t\t'std' => 'on',\n\t\t\t\t\t'type' => 'on-off',\n\t\t\t\t\t'section' => 'uncode_customize_section',\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'id' => '_uncode_custom_color',\n\t\t\t\t\t'label' => esc_html__('Colorpicker', 'uncode') ,\n\t\t\t\t\t'desc' => esc_html__('Specify the color for this palette. You can also define a color with the alpha value.', 'uncode') ,\n\t\t\t\t\t'std' => '',\n\t\t\t\t\t'type' => 'colorpicker',\n\t\t\t\t\t'condition' => '_uncode_custom_color_regular:is(on)',\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'id' => '_uncode_custom_color_gradient',\n\t\t\t\t\t'label' => esc_html__('Gradient', 'uncode') ,\n\t\t\t\t\t'desc' => esc_html__('Specify the gradient color for this palette. NB. You can use a gradient color only as a background color.', 'uncode') ,\n\t\t\t\t\t'std' => '',\n\t\t\t\t\t'type' => 'gradientpicker',\n\t\t\t\t\t'condition' => '_uncode_custom_color_regular:is(off)',\n\t\t\t\t) ,\n\t\t\t)\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_custom_light_block_title',\n\t\t\t'label' => '<i class=\"fa fa-square-o\"></i> ' . esc_html__('Light skin', 'uncode') ,\n\t\t\t'type' => 'textblock-titled',\n\t\t\t'class' => 'section-title',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_logo_color_light',\n\t\t\t'label' => esc_html__('SVG/Text logo color', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the logo color if it\\'s a SVG or textual.', 'uncode') ,\n\t\t\t'std' => 'color-prif',\n\t\t\t'type' => 'uncode_color',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_color_light',\n\t\t\t'label' => esc_html__('Menu text color', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the menu text color.', 'uncode') ,\n\t\t\t'std' => 'color-prif',\n\t\t\t'type' => 'uncode_color',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_bg_color_light',\n\t\t\t'label' => esc_html__('Primary menu background color', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the primary menu background color.', 'uncode') ,\n\t\t\t'std' => 'color-xsdn',\n\t\t\t'type' => 'uncode_color',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_bg_alpha_light',\n\t\t\t'label' => esc_html__('Primary menu background opacity', 'uncode') ,\n\t\t\t'desc' => esc_html__('Adjust the primary menu background transparency.', 'uncode') ,\n\t\t\t'std' => '100',\n\t\t\t'type' => 'numeric-slider',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_submenu_bg_color_light',\n\t\t\t'label' => esc_html__('Primary submenu background color', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the primary submenu background color.', 'uncode') ,\n\t\t\t'std' => 'color-xsdn',\n\t\t\t'type' => 'uncode_color',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_border_color_light',\n\t\t\t'label' => esc_html__('Primary menu border color', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the primary menu border color.', 'uncode') ,\n\t\t\t'std' => 'color-gyho',\n\t\t\t'type' => 'uncode_color',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_border_alpha_light',\n\t\t\t'label' => esc_html__('Primary menu border opacity', 'uncode') ,\n\t\t\t'desc' => esc_html__('Adjust the primary menu border transparency.', 'uncode') ,\n\t\t\t'std' => '100',\n\t\t\t'type' => 'numeric-slider',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_secmenu_bg_color_light',\n\t\t\t'label' => esc_html__('Secondary menu background color', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the secondary menu background color.', 'uncode') ,\n\t\t\t'std' => 'color-xsdn',\n\t\t\t'type' => 'uncode_color',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_heading_color_light',\n\t\t\t'label' => esc_html__('Headings color', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the headings text color.', 'uncode') ,\n\t\t\t'std' => 'color-prif',\n\t\t\t'type' => 'uncode_color',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_text_color_light',\n\t\t\t'label' => esc_html__('Content text color', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the content area text color.', 'uncode') ,\n\t\t\t'std' => 'color-wvjs',\n\t\t\t'type' => 'uncode_color',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_background_color_light',\n\t\t\t'label' => esc_html__('Content background color', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the content background color.', 'uncode') ,\n\t\t\t'std' => 'color-xsdn',\n\t\t\t'type' => 'uncode_color',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_custom_dark_block_title',\n\t\t\t'label' => '<i class=\"fa fa-square\"></i> ' . esc_html__('Dark skin', 'uncode') ,\n\t\t\t'type' => 'textblock-titled',\n\t\t\t'class' => 'section-title',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_logo_color_dark',\n\t\t\t'label' => esc_html__('SVG/Text logo color', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the logo color if it\\'s a SVG or textual.', 'uncode') ,\n\t\t\t'std' => 'color-xsdn',\n\t\t\t'type' => 'uncode_color',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_color_dark',\n\t\t\t'label' => esc_html__('Menu text color', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the menu text color.', 'uncode') ,\n\t\t\t'std' => 'color-xsdn',\n\t\t\t'type' => 'uncode_color',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_bg_color_dark',\n\t\t\t'label' => esc_html__('Primary menu background color', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the primary menu background color.', 'uncode') ,\n\t\t\t'std' => 'color-wayh',\n\t\t\t'type' => 'uncode_color',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_bg_alpha_dark',\n\t\t\t'label' => esc_html__('Primary menu background opacity', 'uncode') ,\n\t\t\t'desc' => esc_html__('Adjust the primary menu background transparency.', 'uncode') ,\n\t\t\t'std' => '100',\n\t\t\t'type' => 'numeric-slider',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_submenu_bg_color_dark',\n\t\t\t'label' => esc_html__('Primary submenu background color', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the primary submenu background color.', 'uncode') ,\n\t\t\t'std' => 'color-rgdb',\n\t\t\t'type' => 'uncode_color',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_border_color_dark',\n\t\t\t'label' => esc_html__('Primary menu border color', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the primary menu border color.', 'uncode') ,\n\t\t\t'std' => 'color-prif',\n\t\t\t'type' => 'uncode_color',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_border_alpha_dark',\n\t\t\t'label' => esc_html__('Primary menu border opacity', 'uncode') ,\n\t\t\t'desc' => esc_html__('Adjust the primary menu border transparency.', 'uncode') ,\n\t\t\t'std' => '100',\n\t\t\t'type' => 'numeric-slider',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_secmenu_bg_color_dark',\n\t\t\t'label' => esc_html__('Secondary menu background color', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the secondary menu background color.', 'uncode') ,\n\t\t\t'std' => 'color-wayh',\n\t\t\t'type' => 'uncode_color',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_heading_color_dark',\n\t\t\t'label' => esc_html__('Headings color', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the headings text color.', 'uncode') ,\n\t\t\t'std' => 'color-xsdn',\n\t\t\t'type' => 'uncode_color',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_text_color_dark',\n\t\t\t'label' => esc_html__('Content text color', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the content area text color.', 'uncode') ,\n\t\t\t'std' => 'color-xsdn',\n\t\t\t'type' => 'uncode_color',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_background_color_dark',\n\t\t\t'label' => esc_html__('Content background color', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the content background color.', 'uncode') ,\n\t\t\t'std' => 'color-wayh',\n\t\t\t'type' => 'uncode_color',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_custom_general_block_title',\n\t\t\t'label' => '<i class=\"fa fa-globe3\"></i> ' . esc_html__('General', 'uncode') ,\n\t\t\t'type' => 'textblock-titled',\n\t\t\t'class' => 'section-title',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_body_background',\n\t\t\t'label' => esc_html__('HTML body background', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the body background color and media.', 'uncode') ,\n\t\t\t'type' => 'background',\n\t\t\t'std' => array(\n\t\t\t\t'background-color' => 'color-lxmt',\n\t\t\t\t'background-repeat' => '',\n\t\t\t\t'background-attachment' => '',\n\t\t\t\t'background-position' => '',\n\t\t\t\t'background-size' => '',\n\t\t\t\t'background-image' => '',\n\t\t\t),\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_accent_color',\n\t\t\t'label' => esc_html__('Accent color', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the accent color.', 'uncode') ,\n\t\t\t'std' => 'color-210407',\n\t\t\t'type' => 'uncode_color',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_body_link_color',\n\t\t\t'label' => esc_html__('Links color', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the color of links in page textual contents.', 'uncode') ,\n\t\t\t'std' => '',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t\t'operator' => 'or',\n\t\t\t'choices' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'value' => '',\n\t\t\t\t\t'label' => esc_html__('Default', 'uncode') ,\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'accent',\n\t\t\t\t\t'label' => esc_html__('Accent color', 'uncode') ,\n\t\t\t\t) ,\n\t\t\t)\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_body_font_family',\n\t\t\t'label' => esc_html__('Body font family', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the body font family.', 'uncode') ,\n\t\t\t'std' => 'font-555555',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t\t'operator' => 'or',\n\t\t\t'choices' => $custom_fonts\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_body_font_weight',\n\t\t\t'label' => esc_html__('Body font weight', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the body font weight.', 'uncode') ,\n\t\t\t'std' => '400',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t\t'operator' => 'or',\n\t\t\t'choices' => $title_weight\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_ui_font_family',\n\t\t\t'label' => esc_html__('UI font family', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the UI font family.', 'uncode') ,\n\t\t\t'std' => 'font-555555',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t\t'operator' => 'or',\n\t\t\t'choices' => $custom_fonts\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_ui_font_weight',\n\t\t\t'label' => esc_html__('UI font weight', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the UI font weight.', 'uncode') ,\n\t\t\t'std' => '600',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t\t'operator' => 'or',\n\t\t\t'choices' => $title_weight\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_heading_font_family',\n\t\t\t'label' => esc_html__('Headings font family', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the headings font family.', 'uncode') ,\n\t\t\t'std' => 'font-555555',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t\t'operator' => 'or',\n\t\t\t'choices' => $custom_fonts\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_heading_font_weight',\n\t\t\t'label' => esc_html__('Headings font weight', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the Headings font weight.', 'uncode') ,\n\t\t\t'std' => '600',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t\t'operator' => 'or',\n\t\t\t'choices' => $title_weight\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_letter_spacing',\n\t\t\t'label' => esc_html__('Headings letter spacing', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the letter spacing in EMs.', 'uncode') ,\n\t\t\t'std' => '0.00',\n\t\t\t'type' => 'text',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_input_underline',\n\t\t\t'label' => esc_html__('Input text underlined', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to style all the input text with the underline.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_fallback_font',\n\t\t\t'label' => esc_html__('Fallback font', 'uncode') ,\n\t\t\t'desc' => esc_html__('Select a font to use as fallback when Google Fonts import is not available.', 'uncode') ,\n\t\t\t'std' => 'font-555555',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t\t'operator' => 'or',\n\t\t\t'choices' => $custom_fonts\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_style_block_title',\n\t\t\t'label' => '<i class=\"fa fa-menu\"></i> ' . esc_html__('Menu', 'uncode') ,\n\t\t\t'type' => 'textblock-titled',\n\t\t\t'class' => 'section-title',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_overlay_menu_style',\n\t\t\t'label' => esc_html__('Overlay menu skin', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the overlay menu skin.', 'uncode') ,\n\t\t\t'std' => 'light',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t\t'condition' => '_uncode_headers:is(menu-overlay),_uncode_headers:is(menu-overlay-center)',\n\t\t\t'operator' => 'or',\n\t\t\t'choices' => $stylesArrayMenu\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_color_hover',\n\t\t\t'label' => esc_html__('Menu highlight color', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the menu active and hover effect color (If not specified an opaque version of the menu color will be used).', 'uncode') ,\n\t\t\t'std' => '',\n\t\t\t'type' => 'uncode_color',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_primary_menu_style',\n\t\t\t'label' => esc_html__('Primary menu skin', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the primary menu skin.', 'uncode') ,\n\t\t\t'std' => 'light',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t\t'choices' => $stylesArrayMenu\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_primary_submenu_style',\n\t\t\t'label' => esc_html__('Primary submenu skin', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the primary submenu skin.', 'uncode') ,\n\t\t\t'std' => 'light',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t\t'choices' => $stylesArrayMenu\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_secondary_menu_style',\n\t\t\t'label' => esc_html__('Secondary menu skin', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the secondary menu skin.', 'uncode') ,\n\t\t\t'std' => 'dark',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t\t'condition' => '_uncode_headers:is(hmenu-right),_uncode_headers:is(hmenu-left),_uncode_headers:is(hmenu-justify),_uncode_headers:is(hmenu-center)',\n\t\t\t'operator' => 'or',\n\t\t\t'choices' => $stylesArrayMenu\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_font_size',\n\t\t\t'label' => esc_html__('Menu font size', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the menu font size. NB: the Overlay menu font size is automatic relative to the viewport.', 'uncode') ,\n\t\t\t'std' => '12',\n\t\t\t'type' => 'text',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_submenu_font_size',\n\t\t\t'label' => esc_html__('Submenu font size', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the submenu font size. NB: the Overlay submenu font size is automatic relative to the viewport.', 'uncode') ,\n\t\t\t'std' => '12',\n\t\t\t'type' => 'text',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_mobile_font_size',\n\t\t\t'label' => esc_html__('Mobile menu font size', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the menu font size for mobile (when the Navbar > Animation > is not Menu Centered Mobile).', 'uncode') ,\n\t\t\t'std' => '12',\n\t\t\t'type' => 'text',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_font_family',\n\t\t\t'label' => esc_html__('Menu font family', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the menu font family.', 'uncode') ,\n\t\t\t'std' => 'font-555555',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t\t'operator' => 'or',\n\t\t\t'choices' => $custom_fonts\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_font_weight',\n\t\t\t'label' => esc_html__('Menu font weight', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the menu font weight.', 'uncode') ,\n\t\t\t'std' => '600',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t\t'operator' => 'or',\n\t\t\t'choices' => $title_weight\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_letter_spacing',\n\t\t\t'label' => esc_html__('Menu letter spacing', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the letter spacing in EMs (the default value is 0.05).', 'uncode') ,\n\t\t\t'std' => '0.05',\n\t\t\t'type' => 'text',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_first_uppercase',\n\t\t\t'label' => esc_html__('Menu first level uppercase', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to transform the first menu level to uppercase.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_menu_other_uppercase',\n\t\t\t'label' => esc_html__('Menu other levels uppercase', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to transform all the others menu level to uppercase.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_custom_content_block_title',\n\t\t\t'label' => '<i class=\"fa fa-layout\"></i> ' . esc_html__('Content', 'uncode') ,\n\t\t\t'type' => 'textblock-titled',\n\t\t\t'class' => 'section-title',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_general_style',\n\t\t\t'label' => esc_html__('Skin', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the content skin.', 'uncode') ,\n\t\t\t'std' => 'light',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t\t'condition' => '',\n\t\t\t'operator' => 'and',\n\t\t\t'choices' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'light',\n\t\t\t\t\t'label' => esc_html__('Light', 'uncode') ,\n\t\t\t\t\t'src' => ''\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'dark',\n\t\t\t\t\t'label' => esc_html__('Dark', 'uncode') ,\n\t\t\t\t\t'src' => ''\n\t\t\t\t)\n\t\t\t)\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_general_bg_color',\n\t\t\t'label' => esc_html__('Background color', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify a custom content background color.', 'uncode') ,\n\t\t\t'std' => '',\n\t\t\t'type' => 'uncode_color',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_custom_buttons_block_title',\n\t\t\t'label' => '<i class=\"fa fa-download3\"></i> ' . esc_html__('Buttons and Forms', 'uncode') ,\n\t\t\t'type' => 'textblock-titled',\n\t\t\t'class' => 'section-title',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_buttons_font_family',\n\t\t\t'label' => esc_html__('Buttons font family', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the buttons font family.', 'uncode') ,\n\t\t\t'std' => 'font-555555',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t\t'operator' => 'or',\n\t\t\t'choices' => $custom_fonts\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_buttons_font_weight',\n\t\t\t'label' => esc_html__('Buttons font weight', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the buttons font weight.', 'uncode') ,\n\t\t\t'std' => '600',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t\t'operator' => 'or',\n\t\t\t'choices' => $title_weight\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_buttons_text_transform',\n\t\t\t'label' => esc_html__('Buttons text transform', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the buttons text transform.', 'uncode') ,\n\t\t\t'std' => 'uppercase',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t\t'operator' => 'or',\n\t\t\t'choices' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'initial',\n\t\t\t\t\t'label' => esc_html__('Default', 'uncode') ,\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'uppercase',\n\t\t\t\t\t'label' => esc_html__('Uppercase', 'uncode') ,\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'lowercase',\n\t\t\t\t\t'label' => esc_html__('Lowercase', 'uncode') ,\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'capitalize',\n\t\t\t\t\t'label' => esc_html__('Capitalize', 'uncode') ,\n\t\t\t\t) ,\n\t\t\t) ,\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_buttons_letter_spacing',\n\t\t\t'label' => esc_html__('Buttons letter spacing', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the letter spacing value.', 'uncode') ,\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t\t'operator' => 'or',\n\t\t\t'choices' => $btn_letter_spacing,\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_buttons_border_width',\n\t\t\t'label' => esc_html__('Button and form fields border', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the width of the borders for buttons and form fields', 'uncode') ,\n\t\t\t'std' => '1',\n\t\t\t'type' => 'numeric-slider',\n\t\t\t'min_max_step'=> '1,5,1',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_button_hover',\n\t\t\t'label' => esc_html__('Button hover effect', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify an effect on hover state.', 'uncode') ,\n\t\t\t'std' => '',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t\t'choices' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'value' => '',\n\t\t\t\t\t'label' => esc_html__('Outlined', 'uncode')\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'full-colored',\n\t\t\t\t\t'label' => esc_html__('Flat', 'uncode')\n\t\t\t\t)\n\t\t\t)\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_footer_style_block_title',\n\t\t\t'label' => '<i class=\"fa fa-ellipsis\"></i> ' . esc_html__('Footer', 'uncode') ,\n\t\t\t'type' => 'textblock-titled',\n\t\t\t'class' => 'section-title',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_footer_last_style',\n\t\t\t'label' => esc_html__('Copyright area skin', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the copyright area skin color.', 'uncode') ,\n\t\t\t'std' => 'dark',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t\t'condition' => '',\n\t\t\t'operator' => 'and',\n\t\t\t'choices' => $stylesArrayMenu\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_footer_bg_color',\n\t\t\t'label' => esc_html__('Copyright area custom background color', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify a custom copyright area background color.', 'uncode') ,\n\t\t\t'std' => '',\n\t\t\t'type' => 'uncode_color',\n\t\t\t'section' => 'uncode_customize_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_customize_extra_block_title',\n\t\t\t'label' => '<i class=\"fa fa-download3\"></i> ' . esc_html__('Scroll & Parallax', 'uncode') ,\n\t\t\t'type' => 'textblock-titled',\n\t\t\t'class' => 'section-title',\n\t\t\t'section' => 'uncode_extra_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_scroll_constant',\n\t\t\t'label' => esc_html__('ScrollTo constant speed', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate this to always have a constant speed when scrolling to point.', 'uncode') ,\n\t\t\t'std' => 'on',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_extra_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_scroll_constant_factor',\n\t\t\t'label' => esc_html__('ScrollTo constant speed factor', 'uncode') ,\n\t\t\t'desc' => esc_html__('Adjust the constant scroll speed factor. Default 2', 'uncode') ,\n\t\t\t'std' => '2',\n\t\t\t'type' => 'numeric-slider',\n\t\t\t'min_max_step'=> '1,15,0.25',\n\t\t\t'section' => 'uncode_extra_section',\n\t\t\t'operator' => 'or',\n\t\t\t'condition' => '_uncode_scroll_constant:is(on)',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_scroll_speed_value',\n\t\t\t'label' => esc_html__('ScrollTo speed fixed', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the scroll speed time in milliseconds.', 'uncode') ,\n\t\t\t'std' => '1000',\n\t\t\t'type' => 'text',\n\t\t\t'section' => 'uncode_extra_section',\n\t\t\t'operator' => 'or',\n\t\t\t'condition' => '_uncode_scroll_constant:is(off)',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_parallax_factor',\n\t\t\t'label' => esc_html__('Parallax speed factor', 'uncode') ,\n\t\t\t'desc' => esc_html__('Adjust the parallax speed factor. Default 2.5', 'uncode') ,\n\t\t\t'std' => '2.5',\n\t\t\t'type' => 'numeric-slider',\n\t\t\t'min_max_step'=> '0.5,3,0.5',\n\t\t\t'section' => 'uncode_extra_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_custom_portfolio_block_title',\n\t\t\t'label' => '<i class=\"fa fa-briefcase3\"></i> ' . ucfirst($portfolio_cpt_name) . ' ' . esc_html__('CPT', 'uncode') ,\n\t\t\t'type' => 'textblock-titled',\n\t\t\t'class' => 'section-title',\n\t\t\t'section' => 'uncode_extra_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_portfolio_cpt',\n\t\t\t'label' => ucfirst($portfolio_cpt_name) . ' ' . esc_html__('CPT label', 'uncode') ,\n\t\t\t'desc' => esc_html__('Enter a custom portfolio post type label.', 'uncode') ,\n\t\t\t'std' => 'portfolio',\n\t\t\t'type' => 'text',\n\t\t\t'section' => 'uncode_extra_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_portfolio_cpt_slug',\n\t\t\t'label' => ucfirst($portfolio_cpt_name) . ' ' . esc_html__('CPT slug', 'uncode') ,\n\t\t\t'desc' => esc_html__('Enter a custom portfolio post type slug.', 'uncode') ,\n\t\t\t'std' => 'portfolio',\n\t\t\t'type' => 'text',\n\t\t\t'section' => 'uncode_extra_section',\n\t\t)\n\t);\n\n\tif (class_exists('WooCommerce')) {\n\n\t\t$custom_settings_three[] = array(\n\t\t\t'id' => '_uncode_woocommerce_block_title',\n\t\t\t'label' => '<i class=\"fa fa-shopping-cart\"></i> ' . esc_html__('WooCommerce', 'uncode') ,\n\t\t\t'type' => 'textblock-titled',\n\t\t\t'class' => 'section-title',\n\t\t\t'section' => 'uncode_extra_section',\n\t\t);\n\n\t\t$custom_settings_three[] = array(\n\t\t\t'id' => '_uncode_woocommerce_cart_icon',\n\t\t\t'label' => esc_html__('Cart icon', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the cart icon', 'uncode') ,\n\t\t\t'std' => 'fa fa-bag',\n\t\t\t'type' => 'text',\n\t\t\t'class' => 'button_icon_container',\n\t\t\t'section' => 'uncode_extra_section',\n\t\t);\n\n\t\t$custom_settings_three[] = array(\n\t\t\t'id' => '_uncode_woocommerce_hooks',\n\t\t\t'label' => esc_html__('Enable Hooks', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate this to enable default WooCommerce hooks on product loops.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_extra_section',\n\t\t\t'condition' => '',\n\t\t\t'operator' => 'and'\n\t\t);\n\n\t\t$custom_settings_three[] = array(\n\t\t\t'id' => '_uncode_woocommerce_enhanced_atc',\n\t\t\t'label' => esc_html__('Enhance Add To Cart Button', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate this to enable the enhanced Add To Cart button on loops.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_extra_section',\n\t\t\t'condition' => '',\n\t\t\t'operator' => 'and'\n\t\t);\n\t}\n\n\t$custom_settings_four = array(\n\t\tarray(\n\t\t\t'id' => '_uncode_customize_admin_block_title',\n\t\t\t'label' => '<i class=\"fa fa-dashboard\"></i> ' . esc_html__('Admin', 'uncode') ,\n\t\t\t'type' => 'textblock-titled',\n\t\t\t'class' => 'section-title',\n\t\t\t'section' => 'uncode_extra_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_admin_help',\n\t\t\t'label' => esc_html__('Help button in admin bar', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to show the Uncode help button in the WP admin bar.', 'uncode') ,\n\t\t\t'std' => 'on',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_extra_section',\n\t\t) ,\n\t);\n\n\t$custom_settings_five = array(\n\t\tarray(\n\t\t\t'id' => '_uncode_footer_layout_block_title',\n\t\t\t'label' => '<i class=\"fa fa-layers\"></i> ' . esc_html__('Layout', 'uncode') ,\n\t\t\t'type' => 'textblock-titled',\n\t\t\t'class' => 'section-title',\n\t\t\t'section' => 'uncode_footer_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_footer_full',\n\t\t\t'label' => esc_html__('Footer full width', 'uncode') ,\n\t\t\t'desc' => esc_html__('Expand the footer to full width.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_footer_section',\n\t\t\t'condition' => '_uncode_boxed:is(off)',\n\t\t\t'operator' => 'and'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_footer_content_block_title',\n\t\t\t'label' => '<i class=\"fa fa-cog2\"></i> ' . esc_html__('Widget area', 'uncode') ,\n\t\t\t'type' => 'textblock-titled',\n\t\t\t'class' => 'section-title',\n\t\t\t'section' => 'uncode_footer_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_footer_block',\n\t\t\t'label' => esc_html__('Content Block', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the Content Block to use as a footer content.', 'uncode') ,\n\t\t\t'std' => '',\n\t\t\t'type' => 'custom-post-type-select',\n\t\t\t'section' => 'uncode_footer_section',\n\t\t\t'post_type' => 'uncodeblock',\n\t\t\t'condition' => '',\n\t\t\t'operator' => 'and'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_footer_last_block_title',\n\t\t\t'label' => '<i class=\"fa fa-copyright\"></i> ' . esc_html__('Copyright area', 'uncode') ,\n\t\t\t'type' => 'textblock-titled',\n\t\t\t'class' => 'section-title',\n\t\t\t'section' => 'uncode_footer_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_copy_hide',\n\t\t\t'label' => esc_html__('Hide Copyright Area', 'uncode') ,\n\t\t\t'type' => 'on-off',\n\t\t\t'desc' => esc_html__('Activate this to hide the Copyright Area.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'section' => 'uncode_footer_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_footer_copyright',\n\t\t\t'label' => esc_html__('Automatic copyright text', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to use an automatic copyright text.', 'uncode') ,\n\t\t\t'std' => 'on',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_footer_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_footer_text',\n\t\t\t'label' => esc_html__('Custom copyright text', 'uncode') ,\n\t\t\t'desc' => esc_html__('Insert a custom text for the footer copyright area.', 'uncode') ,\n\t\t\t'type' => 'textarea',\n\t\t\t'section' => 'uncode_footer_section',\n\t\t\t'operator' => 'or',\n\t\t\t'condition' => '_uncode_footer_copyright:is(off)',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_footer_position',\n\t\t\t'label' => esc_html__('Content alignment', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the footer copyright text alignment.', 'uncode') ,\n\t\t\t'std' => 'left',\n\t\t\t'type' => 'select',\n\t\t\t'section' => 'uncode_footer_section',\n\t\t\t'choices' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'left',\n\t\t\t\t\t'label' => esc_html__('Left', 'uncode')\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'center',\n\t\t\t\t\t'label' => esc_html__('Center', 'uncode')\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'right',\n\t\t\t\t\t'label' => esc_html__('Right', 'uncode')\n\t\t\t\t)\n\t\t\t)\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_footer_social',\n\t\t\t'label' => esc_html__('Social links', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to have the social icons in the footer copyright area.', 'uncode') ,\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_footer_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_footer_add_block_title',\n\t\t\t'label' => '<i class=\"fa fa-square-plus\"></i> ' . esc_html__('Additionals', 'uncode') ,\n\t\t\t'type' => 'textblock-titled',\n\t\t\t'class' => 'section-title',\n\t\t\t'section' => 'uncode_footer_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_footer_uparrow',\n\t\t\t'label' => esc_html__('Scroll up button', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to add a scroll up button in the footer.', 'uncode') ,\n\t\t\t'type' => 'on-off',\n\t\t\t'std' => 'on',\n\t\t\t'section' => 'uncode_footer_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_footer_uparrow_mobile',\n\t\t\t'label' => esc_html__('Scroll up button on mobile', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to add a scroll up button in the footer for mobile devices.', 'uncode') ,\n\t\t\t'type' => 'on-off',\n\t\t\t'std' => 'on',\n\t\t\t'condition' => '_uncode_footer_uparrow:is(on)',\n\t\t\t'operator' => 'and',\n\t\t\t'section' => 'uncode_footer_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_social_list',\n\t\t\t'label' => esc_html__('Social Networks', 'uncode') ,\n\t\t\t'desc' => esc_html__('Define here all the social networks you will need.', 'uncode') ,\n\t\t\t'type' => 'list-item',\n\t\t\t'section' => 'uncode_connections_section',\n\t\t\t'class' => 'list-social',\n\t\t\t'settings' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'id' => '_uncode_social_unique_id',\n\t\t\t\t\t'class' => 'unique_id',\n\t\t\t\t\t'std' => 'social-',\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t'label' => esc_html__('Unique social ID','uncode'),\n\t\t\t\t\t'desc' => esc_html__('This value is created automatically and it shouldn\\'t be edited unless you know what you are doing.','uncode'),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'id' => '_uncode_social',\n\t\t\t\t\t'label' => esc_html__('Social Network Icon', 'uncode') ,\n\t\t\t\t\t'desc' => esc_html__('Specify the social network icon.', 'uncode') ,\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t'class' => 'button_icon_container',\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'id' => '_uncode_link',\n\t\t\t\t\t'label' => esc_html__('Social Network Link', 'uncode') ,\n\t\t\t\t\t'desc' => esc_html__('Enter your social network link.', 'uncode') ,\n\t\t\t\t\t'std' => '',\n\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t'condition' => '',\n\t\t\t\t\t'operator' => 'and'\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'id' => '_uncode_menu_hidden',\n\t\t\t\t\t'label' => esc_html__('Hide In The Menu', 'uncode') ,\n\t\t\t\t\t'desc' => esc_html__('Activate to hide the social icon in the menu (if the social connections in the menu is active).', 'uncode') ,\n\t\t\t\t\t'std' => 'off',\n\t\t\t\t\t'type' => 'on-off',\n\t\t\t\t\t'condition' => '',\n\t\t\t\t\t'operator' => 'and'\n\t\t\t\t) ,\n\t\t\t)\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_gmaps_api',\n\t\t\t'label' => esc_html__('Google Maps API KEY', 'uncode') ,\n\t\t\t'desc' => sprintf( wp_kses(__( 'To use Uncode custom styled Google Maps you need to create <a href=\"%s\" target=\"_blank\">here the Google API KEY</a> and paste it in this field.', 'uncode' ), array( 'a' => array( 'href' => array(),'target' => array() ) ) ), 'https://developers.google.com/maps/documentation/javascript/get-api-key#get-an-api-key' ),\n\t\t\t'type' => 'text',\n\t\t\t'section' => 'uncode_gmaps_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_custom_css',\n\t\t\t'label' => esc_html__('CSS', 'uncode') ,\n\t\t\t'desc' => esc_html__('Enter here your custom CSS.', 'uncode') ,\n\t\t\t'std' => '',\n\t\t\t'type' => 'css',\n\t\t\t'section' => 'uncode_cssjs_section',\n\t\t\t'rows' => '20',\n\t\t\t'condition' => '',\n\t\t\t'operator' => 'and'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_custom_js',\n\t\t\t'label' => esc_html__('Javascript', 'uncode') ,\n\t\t\t'desc' => esc_html__('Enter here your custom Javacript code.', 'uncode') ,\n\t\t\t'std' => '',\n\t\t\t'type' => 'textarea-simple',\n\t\t\t'section' => 'uncode_cssjs_section',\n\t\t\t'rows' => '20',\n\t\t\t'condition' => '',\n\t\t\t'operator' => 'and'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_custom_tracking',\n\t\t\t'label' => esc_html__('Tracking', 'uncode') ,\n\t\t\t'desc' => esc_html__('Enter here your custom Tracking code.', 'uncode') ,\n\t\t\t'std' => '',\n\t\t\t'type' => 'textarea-simple',\n\t\t\t'section' => 'uncode_cssjs_section',\n\t\t\t'rows' => '20',\n\t\t\t'condition' => '',\n\t\t\t'operator' => 'and'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_adaptive',\n\t\t\t'label' => esc_html__('Adaptive images', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to take advantage of the Adaptive Images system. Adaptive Images detects your visitor\\'s screen size and automatically delivers device appropriate re-scaled images.', 'uncode') ,\n\t\t\t'std' => 'on',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_performance_section',\n\t\t\t'condition' => '',\n\t\t\t'operator' => 'and'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_adaptive_async',\n\t\t\t'label' => esc_html__('Asynchronous adaptive image system', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to load the adaptive images asynchronously, this will improve the loading performance and it\\'s necessary if using an aggresive caching system.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_performance_section',\n\t\t\t'operator' => 'or',\n\t\t\t'condition' => '_uncode_adaptive:is(on)',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_adaptive_async_blur',\n\t\t\t'label' => esc_html__('Asynchronous loading blur effect', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to use a bluring effect when loading the images.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_performance_section',\n\t\t\t'operator' => 'and',\n\t\t\t'condition' => '_uncode_adaptive:is(on),_uncode_adaptive_async:is(on)',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_adaptive_mobile_advanced',\n\t\t\t'label' => esc_html__('Mobile settings', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to set specific mobile options.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_performance_section',\n\t\t\t'operator' => 'or',\n\t\t\t'condition' => '_uncode_adaptive:is(on)',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_adaptive_use_orientation_width',\n\t\t\t'label' => esc_html__('Use current mobile orientation width', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to use the current mobile orientation width (portrait or landscape) instead of the max device\\'s width (landscape).', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_performance_section',\n\t\t\t'operator' => 'and',\n\t\t\t'condition' => '_uncode_adaptive:is(on),_uncode_adaptive_mobile_advanced:is(on)',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_adaptive_limit_density',\n\t\t\t'label' => esc_html__('Limit device density', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to limit the pixel density to 2 when generating the most appropriate image for high pixel density displays.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_performance_section',\n\t\t\t'operator' => 'and',\n\t\t\t'condition' => '_uncode_adaptive:is(on),_uncode_adaptive_mobile_advanced:is(on)',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_adaptive_quality',\n\t\t\t'label' => esc_html__('Image quality', 'uncode') ,\n\t\t\t'desc' => esc_html__('Adjust the images compression quality.', 'uncode') ,\n\t\t\t'std' => '90',\n\t\t\t'type' => 'numeric-slider',\n\t\t\t'min_max_step'=> '60,100,1',\n\t\t\t'section' => 'uncode_performance_section',\n\t\t\t'operator' => 'or',\n\t\t\t'condition' => '_uncode_adaptive:is(on)',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_adaptive_sizes',\n\t\t\t'label' => esc_html__('Image sizes range', 'uncode') ,\n\t\t\t'desc' => esc_html__('Enter all the image sizes you want use for the Adaptive Images system. NB. The values needs to be comma separated.', 'uncode') ,\n\t\t\t'type' => 'text',\n\t\t\t'std' => '258,516,720,1032,1440,2064,2880',\n\t\t\t'section' => 'uncode_performance_section',\n\t\t\t'operator' => 'or',\n\t\t\t'condition' => '_uncode_adaptive:is(on)',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_htaccess',\n\t\t\t'label' => esc_html__('Apache Server Configs', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate the enhanced .htaccess, this will improve the web site\\'s performance and security.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_performance_section',\n\t\t\t'condition' => '',\n\t\t\t'operator' => 'and'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_production',\n\t\t\t'label' => esc_html__('Production mode', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate this to switch to production mode, the CSS and JS will be cached by the browser and the JS minified.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_performance_section',\n\t\t\t'condition' => '',\n\t\t\t'operator' => 'and'\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_redirect',\n\t\t\t'label' => esc_html__('Activate page redirect', 'uncode') ,\n\t\t\t'desc' => esc_html__('Activate to redirect all the website calls to a specific page. NB. This can only be visible when the user is not logged in.', 'uncode') ,\n\t\t\t'std' => 'off',\n\t\t\t'type' => 'on-off',\n\t\t\t'section' => 'uncode_redirect_section',\n\t\t) ,\n\t\tarray(\n\t\t\t'id' => '_uncode_redirect_page',\n\t\t\t'label' => esc_html__('Redirect page', 'uncode') ,\n\t\t\t'desc' => esc_html__('Specify the redirect page. NB. This page will be presented without menu and footer.', 'uncode') ,\n\t\t\t'type' => 'page_select',\n\t\t\t'section' => 'uncode_redirect_section',\n\t\t\t'post_type' => 'page',\n\t\t\t'condition' => '_uncode_redirect:is(on)',\n\t\t\t'operator' => 'and'\n\t\t) ,\n\t);\n\n\t$custom_settings_one = array_merge( $custom_settings_one, $custom_settings_three );\n\n\tif ( ! defined('ENVATO_HOSTED_SITE') )\n\t\t$custom_settings_one = array_merge( $custom_settings_one, $custom_settings_four );\n\n\t$custom_settings_one = array_merge( $custom_settings_one, $custom_settings_five );\n\n\t$custom_settings = array(\n\t\t'sections' => $custom_settings_section_one,\n\t\t'settings' => $custom_settings_one,\n\t);\n\n\tif (class_exists('WooCommerce'))\n\t{\n\n\t\t$woo_section = array(\n\t\t\t// array(\n\t\t\t// \t'id' => 'uncode_woocommerce_section',\n\t\t\t// \t'title' => '<i class=\"fa fa-shopping-cart\"></i> ' . esc_html__('WooCommerce', 'uncode')\n\t\t\t// ),\n\t\t\tarray(\n\t\t\t\t'id' => 'uncode_product_section',\n\t\t\t\t'title' => '<span class=\"smaller\"><i class=\"fa fa-paper\"></i> ' . esc_html__('Product', 'uncode') . '</span>',\n\t\t\t\t'group' => esc_html__('Single', 'uncode'),\n\t\t\t) ,\n\t\t\tarray(\n\t\t\t\t'id' => 'uncode_product_index_section',\n\t\t\t\t'title' => '<span class=\"smaller\"><i class=\"fa fa-archive2\"></i> ' . esc_html__('Products', 'uncode') . '</span>',\n\t\t\t\t'group' => esc_html__('Archives', 'uncode'),\n\t\t\t) ,\n\t\t);\n\n\t\t$menus_array[] = array(\n\t\t\t'value' => '',\n\t\t\t'label' => esc_html__('Select…', 'uncode')\n\t\t);\n\t\t$menu_array = array();\n\t\t$nav_menus = get_registered_nav_menus();\n\n\t\tforeach ($nav_menus as $location => $description)\n\t\t{\n\n\t\t\t$menu_array['value'] = $location;\n\t\t\t$menu_array['label'] = $description;\n\t\t\t$menus_array[] = $menu_array;\n\t\t}\n\n\t\t$menus_array[] = array(\n\t\t\t'value' => 'social',\n\t\t\t'label' => esc_html__('Social Menu', 'uncode')\n\t\t);\n\n\t\t$woocommerce_post = array(\n\t\t\t/////////////////////////\n\t\t\t// Product Single\t\t///\n\t\t\t/////////////////////////\n\t\t\tstr_replace('%section%', 'product', $menu_section_title),\n\t\t\tstr_replace('%section%', 'product', $menu),\n\t\t\tstr_replace('%section%', 'product', $menu_width),\n\t\t\tstr_replace('%section%', 'product', $menu_opaque),\n\t\t\tstr_replace('%section%', 'product', $header_section_title),\n\t\t\tstr_replace('%section%', 'product', $header_type),\n\t\t\tstr_replace('%section%', 'product', $header_uncode_block),\n\t\t\tstr_replace('%section%', 'product', $header_revslider),\n\t\t\tstr_replace('%section%', 'product', $header_layerslider),\n\n\t\t\tstr_replace('%section%', 'product', $header_width),\n\t\t\tstr_replace('%section%', 'product', $header_height),\n\t\t\tstr_replace('%section%', 'product', $header_min_height),\n\t\t\tstr_replace('%section%', 'product', $header_title),\n\t\t\tstr_replace('%section%', 'product', $header_style),\n\t\t\tstr_replace('%section%', 'product', $header_content_width),\n\t\t\tstr_replace('%section%', 'product', $header_custom_width),\n\t\t\tstr_replace('%section%', 'product', $header_align),\n\t\t\tstr_replace('%section%', 'product', $header_position),\n\t\t\tstr_replace('%section%', 'product', $header_title_font),\n\t\t\tstr_replace('%section%', 'product', $header_title_size),\n\t\t\tstr_replace('%section%', 'product', $header_title_height),\n\t\t\tstr_replace('%section%', 'product', $header_title_spacing),\n\t\t\tstr_replace('%section%', 'product', $header_title_weight),\n\t\t\tstr_replace('%section%', 'product', $header_title_transform),\n\t\t\tstr_replace('%section%', 'product', $header_title_italic),\n\t\t\tstr_replace('%section%', 'product', $header_text_animation),\n\t\t\tstr_replace('%section%', 'product', $header_animation_speed),\n\t\t\tstr_replace('%section%', 'product', $header_animation_delay),\n\t\t\tstr_replace('%section%', 'product', $header_featured),\n\t\t\tstr_replace('%section%', 'product', $header_background),\n\t\t\tstr_replace('%section%', 'product', $header_parallax),\n\t\t\tstr_replace('%section%', 'product', $header_kburns),\n\t\t\tstr_replace('%section%', 'product', $header_overlay_color),\n\t\t\tstr_replace('%section%', 'product', $header_overlay_color_alpha),\n\t\t\tstr_replace('%section%', 'product', $header_scroll_opacity),\n\t\t\tstr_replace('%section%', 'product', $header_scrolldown),\n\n\t\t\tstr_replace('%section%', 'product', $body_section_title),\n\t\t\tstr_replace('%section%', 'product', $body_layout_width),\n\t\t\tstr_replace('%section%', 'product', $body_layout_width_custom),\n\t\t\tstr_replace('%section%', 'product', $show_breadcrumb),\n\t\t\tstr_replace('%section%', 'product', $breadcrumb_align),\n\t\t\tstr_replace('%section%', 'product', $show_title),\n\t\t\tstr_replace('%section%', 'product', $show_share),\n\t\t\tstr_replace('%section%', 'product', $image_layout),\n\t\t\tstr_replace('%section%', 'product', $media_size),\n\t\t\tstr_replace('%section%', 'product', $enable_sticky_desc),\n\t\t\tstr_replace('%section%', 'product', $enable_woo_zoom),\n\t\t\tstr_replace('%section%', 'product', $thumb_cols),\n\t\t\tstr_replace('%section%', 'product', $enable_woo_slider),\n\t\t\tstr_replace('%section%', 'product', $body_uncode_block_after),\n\t\t\tstr_replace('%section%', 'product', $navigation_section_title),\n\t\t\tstr_replace('%section%', 'product', $navigation_activate),\n\t\t\tstr_replace('%section%', 'product', $navigation_page_index),\n\t\t\tstr_replace('%section%', 'product', $navigation_index_label),\n\t\t\tstr_replace('%section%', 'product', $navigation_nextprev_title),\n\t\t\tstr_replace('%section%', 'product', $footer_section_title),\n\t\t\tstr_replace('%section%', 'product', $footer_uncode_block),\n\t\t\tstr_replace('%section%', 'product', $footer_width),\n\t\t\tstr_replace('%section%', 'product', $custom_fields_section_title),\n\t\t\tstr_replace('%section%', 'product', $custom_fields_list),\n\t\t\t/////////////////////////\n\t\t\t// Products Index\t\t///\n\t\t\t/////////////////////////\n\t\t\tstr_replace('%section%', 'product_index', $menu_section_title),\n\t\t\tstr_replace('%section%', 'product_index', $menu),\n\t\t\tstr_replace('%section%', 'product_index', $menu_width),\n\t\t\tstr_replace('%section%', 'product_index', $menu_opaque),\n\t\t\tstr_replace('%section%', 'product_index', $header_section_title),\n\t\t\tstr_replace('%section%', 'product_index', run_array_to($header_type, 'std', 'header_basic')),\n\t\t\tstr_replace('%section%', 'product_index', $header_uncode_block),\n\t\t\tstr_replace('%section%', 'product_index', $header_revslider),\n\t\t\tstr_replace('%section%', 'product_index', $header_layerslider),\n\n\t\t\tstr_replace('%section%', 'product_index', $header_width),\n\t\t\tstr_replace('%section%', 'product_index', $header_height),\n\t\t\tstr_replace('%section%', 'product_index', $header_min_height),\n\t\t\tstr_replace('%section%', 'product_index', $header_title),\n\t\t\tstr_replace('%section%', 'product_index', $header_style),\n\t\t\tstr_replace('%section%', 'product_index', $header_content_width),\n\t\t\tstr_replace('%section%', 'product_index', $header_custom_width),\n\t\t\tstr_replace('%section%', 'product_index', $header_align),\n\t\t\tstr_replace('%section%', 'product_index', $header_position),\n\t\t\tstr_replace('%section%', 'product_index', $header_title_font),\n\t\t\tstr_replace('%section%', 'product_index', $header_title_size),\n\t\t\tstr_replace('%section%', 'product_index', $header_title_height),\n\t\t\tstr_replace('%section%', 'product_index', $header_title_spacing),\n\t\t\tstr_replace('%section%', 'product_index', $header_title_weight),\n\t\t\tstr_replace('%section%', 'product_index', $header_title_transform),\n\t\t\tstr_replace('%section%', 'product_index', $header_title_italic),\n\t\t\tstr_replace('%section%', 'product_index', $header_text_animation),\n\t\t\tstr_replace('%section%', 'product_index', $header_animation_speed),\n\t\t\tstr_replace('%section%', 'product_index', $header_animation_delay),\n\t\t\tstr_replace('%section%', 'product_index', $header_featured),\n\t\t\tstr_replace('%section%', 'product_index', $header_background),\n\t\t\tstr_replace('%section%', 'product_index', $header_parallax),\n\t\t\tstr_replace('%section%', 'product_index', $header_kburns),\n\t\t\tstr_replace('%section%', 'product_index', $header_overlay_color),\n\t\t\tstr_replace('%section%', 'product_index', $header_overlay_color_alpha),\n\t\t\tstr_replace('%section%', 'product_index', $header_scroll_opacity),\n\t\t\tstr_replace('%section%', 'product_index', $header_scrolldown),\n\t\t\tstr_replace('%section%', 'product_index', $menu_no_padding),\n\t\t\tstr_replace('%section%', 'product_index', $menu_no_padding_mobile),\n\t\t\tstr_replace('%section%', 'product_index', $title_archive_custom_activate),\n\t\t\tstr_replace('%section%', 'product_index', $title_archive_custom_text),\n\t\t\tstr_replace('%section%', 'product_index', $subtitle_archive_custom_text),\n\n\t\t\tstr_replace('%section%', 'product_index', $body_section_title),\n\t\t\tstr_replace('%section%', 'product_index', $show_breadcrumb),\n\t\t\tstr_replace('%section%', 'product_index', $breadcrumb_align),\n\t\t\tstr_replace('%section%', 'product_index', $body_uncode_block),\n\t\t\tstr_replace('%section%', 'product_index', $body_layout_width),\n\t\t\tstr_replace('%section%', 'product_index', $body_single_post_width),\n\t\t\tstr_replace('%section%', 'product_index', $show_title),\n\t\t\tstr_replace('%section%', 'product_index', $remove_pagination),\n\t\t\tstr_replace('%section%', 'product_index', $products_per_page),\n\t\t\tstr_replace('%section%', 'product_index', $sidebar_section_title),\n\t\t\tstr_replace('%section%', 'product_index', run_array_to($sidebar_activate, 'std', 'on')),\n\t\t\tstr_replace('%section%', 'product_index', $sidebar_widget),\n\t\t\tstr_replace('%section%', 'product_index', $sidebar_position),\n\t\t\tstr_replace('%section%', 'product_index', $sidebar_size),\n\t\t\tstr_replace('%section%', 'product_index', $sidebar_sticky),\n\t\t\tstr_replace('%section%', 'product_index', $sidebar_style),\n\t\t\tstr_replace('%section%', 'product_index', $sidebar_bgcolor),\n\t\t\tstr_replace('%section%', 'product_index', $sidebar_fill),\n\t\t\tstr_replace('%section%', 'product_index', $footer_section_title),\n\t\t\tstr_replace('%section%', 'product_index', $footer_uncode_block),\n\t\t\tstr_replace('%section%', 'product_index', $footer_width),\n\t\t);\n\n\t\t$custom_settings['sections'] = array_merge( $custom_settings['sections'], $woo_section );\n\t\t// array_push($custom_settings['settings'], $woocommerce_cart_icon);\n\t\t// array_push($custom_settings['settings'], $woocommerce_hooks);\n\t\t$custom_settings['settings'] = array_merge( $custom_settings['settings'], $woocommerce_post );\n\n\t}\n\n\t$custom_settings['settings'] = array_filter( $custom_settings['settings'], 'uncode_is_not_null' );\n\n\t/* allow settings to be filtered before saving */\n\t$custom_settings = apply_filters(ot_settings_id() . '_args', $custom_settings);\n\n\t/* settings are not the same update the DB */\n\tif ($saved_settings !== $custom_settings)\n\t{\n\t\tupdate_option(ot_settings_id() , $custom_settings);\n\t}\n\n\t/**\n\t * Filter on layout images.\n\t */\n\tfunction filter_layout_radio_images($array, $layout)\n\t{\n\n\t\t/* only run the filter where the field ID is my_radio_images */\n\t\tif ($layout == '_uncode_headers')\n\t\t{\n\t\t\t$array = array(\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'hmenu-right',\n\t\t\t\t\t'label' => esc_html__('Right', 'uncode') ,\n\t\t\t\t\t'src' => get_template_directory_uri() . '/core/assets/images/layout/hmenu-right.jpg'\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'hmenu-justify',\n\t\t\t\t\t'label' => esc_html__('Justify', 'uncode') ,\n\t\t\t\t\t'src' => get_template_directory_uri() . '/core/assets/images/layout/hmenu-justify.jpg'\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'hmenu-left',\n\t\t\t\t\t'label' => esc_html__('Left', 'uncode') ,\n\t\t\t\t\t'src' => get_template_directory_uri() . '/core/assets/images/layout/hmenu-left.jpg'\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'hmenu-center',\n\t\t\t\t\t'label' => esc_html__('Center', 'uncode') ,\n\t\t\t\t\t'src' => get_template_directory_uri() . '/core/assets/images/layout/hmenu-center.jpg'\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'hmenu-center-split',\n\t\t\t\t\t'label' => esc_html__('Center Split', 'uncode') ,\n\t\t\t\t\t'src' => get_template_directory_uri() . '/core/assets/images/layout/hmenu-splitted.jpg'\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'hmenu-center-double',\n\t\t\t\t\t'label' => esc_html__('Center Double', 'uncode') ,\n\t\t\t\t\t'src' => get_template_directory_uri() . '/core/assets/images/layout/hmenu-center-double.jpg'\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'vmenu',\n\t\t\t\t\t'label' => esc_html__('Lateral', 'uncode') ,\n\t\t\t\t\t'src' => get_template_directory_uri() . '/core/assets/images/layout/vmenu.jpg'\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'vmenu-offcanvas',\n\t\t\t\t\t'label' => esc_html__('Offcanvas', 'uncode') ,\n\t\t\t\t\t'src' => get_template_directory_uri() . '/core/assets/images/layout/offcanvas.jpg'\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'menu-overlay',\n\t\t\t\t\t'label' => esc_html__('Overlay', 'uncode') ,\n\t\t\t\t\t'src' => get_template_directory_uri() . '/core/assets/images/layout/overlay.jpg'\n\t\t\t\t) ,\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 'menu-overlay-center',\n\t\t\t\t\t'label' => esc_html__('Overlay Center', 'uncode') ,\n\t\t\t\t\t'src' => get_template_directory_uri() . '/core/assets/images/layout/overlay-center.jpg'\n\t\t\t\t) ,\n\t\t\t);\n\t\t}\n\t\treturn $array;\n\t}\n\tadd_filter('ot_radio_images', 'filter_layout_radio_images', 10, 2);\n}", "function gt_init() {\n add_theme_support('post-thumbnails');\n // title based on the page and General Settings\n add_theme_support('title-tag');\n // HTML support\n add_theme_support('html5', \n array('comment-list', 'comment-form', 'search-form'));\n}", "function theme($tipo=\"link\"){\n\t\n\t$theme_encontrado=0;\n\tif($theme_encontrado>=1){\n\t}else{\n\t\t$theme=\"default\";\n\t}\n\t\t\n\tglobal $AYV;\t\n\t\n\tif($tipo==\"dir\"){\n\t\treturn DIR_WEB.'/themes/'.$theme;\t\t\n\t}else{\n\t\treturn URL_WEB.'/themes/'.$theme;\t\t\n\t}\n\n}", "public function get_theme_root()\n {\n }", "function tcsn_theme_setup() {\n\t\n\t// Makes theme available for translation.\n\t// Translations can be added to the /languages/ directory.\n\tload_theme_textdomain( 'tcsn_theme', get_template_directory() . '/languages' );\n\t\n // Styles the visual editor to resemble the theme style,\n\tadd_editor_style('css/editor-style.css');\n\n // Adds RSS feed links to <head> for posts and comments.\n\tadd_theme_support( 'automatic-feed-links' );\n\n // Switches default core markup for search form, comment form, and comments \n\t// to output valid HTML5.\n\tadd_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list' ) );\n\n\t// This theme supports all available post formats by default.\n\tadd_theme_support( 'post-formats', array(\n\t\t'aside', 'audio', 'gallery', 'image', 'link', 'video'\n\t) );\n\n\t// Add Menu Support\n register_nav_menus( array(\n 'primary_menu' => 'Primary menu',\n 'secondary_menu' => 'Secondary Menu'\n ) );\n\n // Thumbnail support\n\tadd_theme_support( 'post-thumbnails' );\n\tadd_image_size('portfolio-thumb', 530, 370, true);\n\n}", "function wpf_templating_constants() {\n\t// Sets a unique ID for the theme.\n\tif ( !defined( 'THEME_ID' ) )\n\t\tdefine( 'THEME_ID', 'wpf_' . get_template() );\n\n\t// Sets the default theme options db name\n\tif ( !defined( 'THEME_OPTIONS' ) )\n\t\tdefine( 'THEME_OPTIONS', 'theme_options' );\n\n\t// Sets relative paths for the default directories/paths\n\tif ( !defined( 'THEME_LIBRARY' ) )\n\t\tdefine( 'THEME_LIBRARY', '/library' );\n\n\tif ( !defined( 'THEME_I18N' ) )\n\t\tdefine( 'THEME_I18N', THEME_LIBRARY . '/languages' );\n\n\tif ( !defined( 'THEME_FUNC' ) )\n\t\tdefine( 'THEME_FUNC', THEME_LIBRARY . '/functions' );\n\n\tif ( !defined( 'THEME_IMG' ) )\n\t\tdefine( 'THEME_IMG', THEME_LIBRARY . '/images' );\n\n\tif ( !defined( 'THEME_CSS' ) )\n\t\tdefine( 'THEME_CSS', THEME_LIBRARY . '/css' );\n\n\tif ( !defined( 'THEME_JS' ) )\n\t\tdefine( 'THEME_JS', THEME_LIBRARY . '/js' );\n\t\n\t// Sets the default custom header image\n\tif ( !defined( 'DEFAULT_HEADER_IMAGE' ) )\n\t\tdefine( 'DEFAULT_HEADER_IMAGE', get_theme_part( THEME_IMG . '/custom-header.gif' ) );\n}", "function tb_section_callback() {\n echo \"<p>Theme settings for Tickets Broadway</p>\";\n}", "function cactus_isprevdem() {\r\n\t$ti_theme = wp_get_theme();\r\n\t$theme_name = $ti_theme->get( 'TextDomain' );\r\n\t$active_theme = cactus_get_raw_option( 'template' );\r\n\treturn apply_filters( 'cactus_isprevdem', ( $active_theme != strtolower( $theme_name ) && ! is_child_theme() ) );\r\n}", "function htmlconvertwordpresstheme($wp_customize){\n $wp_customize->add_panel('htmlconvertwordpresstheme_settings', array(\n\n 'title'=>__('htmlconvertwordpresstheme_settings'),\n 'description' =>'',\n 'priority'=>10,\n\n\n ));\n\n\n $wp_customize->add_section('htmlconvertwordpresstheme_colors', array(\n 'title'=>'color',\n 'panel'=> 'htmlconvertwordpresstheme_settings',\n\n\n ));\n\n\n $wp_customize->add_setting('htmlconvertwordpresstheme_nav_bg_color', array(\n\n 'type'=>'theme_mod',\n 'capability'=> 'edit_theme_options',\n 'default'=>'',\n 'transport'=>'refresh',\n 'sanitize_callback'=>'sanitize_hex_color',\n ));\n\n\n $wp_customize->add_control('htmlconvertwordpresstheme_nav_bg_color', array(\n \n 'label'=>__('Menu Background'),\n 'type'=>'color',\n 'section'=>'htmlconvertwordpresstheme_colors',\n ));\n\n/* customize setting body background color*/\n$wp_customize->add_setting('htmlconvertwordpresstheme_body_background_color', array(\n\n 'type'=>'theme_mod',\n 'capability'=> 'edit_theme_options',\n 'default'=>'#fff',\n 'transport'=>'refresh',\n 'sanitize_callback'=>'sanitize_hex_color',\n));\n\n\n$wp_customize->add_control('htmlconvertwordpresstheme_body_background_color', array(\n\n 'label'=>__('Body Background color'),\n 'type'=>'color',\n 'section'=>'htmlconvertwordpresstheme_colors',\n));\n\n\n}", "function wp_using_themes()\n {\n }", "function template_options()\n{\n\tglobal $context, $settings, $options, $scripturl, $txt;\n\n\t$context['theme_options'] = array(\n\t\tarray(\n\t\t\t'id' => 'show_board_desc',\n\t\t\t'label' => $txt['board_desc_inside'],\n\t\t\t'default' => true,\n\t\t),\n\t\tarray(\n\t\t\t'id' => 'show_children',\n\t\t\t'label' => $txt['show_children'],\n\t\t\t'default' => true,\n\t\t),\n\t\tarray(\n\t\t\t'id' => 'use_sidebar_menu',\n\t\t\t'label' => $txt['use_sidebar_menu'],\n\t\t\t'default' => true,\n\t\t),\n\t\tarray(\n\t\t\t'id' => 'show_no_avatars',\n\t\t\t'label' => $txt['show_no_avatars'],\n\t\t\t'default' => true,\n\t\t),\n\t\tarray(\n\t\t\t'id' => 'show_no_signatures',\n\t\t\t'label' => $txt['show_no_signatures'],\n\t\t\t'default' => true,\n\t\t),\n\t\tarray(\n\t\t\t'id' => 'show_no_censored',\n\t\t\t'label' => $txt['show_no_censored'],\n\t\t\t'default' => true,\n\t\t),\n\t\tarray(\n\t\t\t'id' => 'return_to_post',\n\t\t\t'label' => $txt['return_to_post'],\n\t\t\t'default' => true,\n\t\t),\n\t\tarray(\n\t\t\t'id' => 'no_new_reply_warning',\n\t\t\t'label' => $txt['no_new_reply_warning'],\n\t\t\t'default' => true,\n\t\t),\n\t\tarray(\n\t\t\t'id' => 'view_newest_first',\n\t\t\t'label' => $txt['recent_posts_at_top'],\n\t\t\t'default' => true,\n\t\t),\n\t\tarray(\n\t\t\t'id' => 'view_newest_pm_first',\n\t\t\t'label' => $txt['recent_pms_at_top'],\n\t\t\t'default' => true,\n\t\t),\n\t\tarray(\n\t\t\t'id' => 'posts_apply_ignore_list',\n\t\t\t'label' => $txt['posts_apply_ignore_list'],\n\t\t\t'default' => false,\n\t\t),\n\t\tarray(\n\t\t\t'id' => 'wysiwyg_default',\n\t\t\t'label' => $txt['wysiwyg_default'],\n\t\t\t'default' => false,\n\t\t),\n\t\tarray(\n\t\t\t'id' => 'popup_messages',\n\t\t\t'label' => $txt['popup_messages'],\n\t\t\t'default' => true,\n\t\t),\n\t\tarray(\n\t\t\t'id' => 'copy_to_outbox',\n\t\t\t'label' => $txt['copy_to_outbox'],\n\t\t\t'default' => true,\n\t\t),\n\t\tarray(\n\t\t\t'id' => 'pm_remove_inbox_label',\n\t\t\t'label' => $txt['pm_remove_inbox_label'],\n\t\t\t'default' => true,\n\t\t),\n\t\tarray(\n\t\t\t'id' => 'auto_notify',\n\t\t\t'label' => $txt['auto_notify'],\n\t\t\t'default' => true,\n\t\t),\n\t\tarray(\n\t\t\t'id' => 'topics_per_page',\n\t\t\t'label' => $txt['topics_per_page'],\n\t\t\t'options' => array(\n\t\t\t\t0 => $txt['per_page_default'],\n\t\t\t\t5 => 5,\n\t\t\t\t10 => 10,\n\t\t\t\t25 => 25,\n\t\t\t\t50 => 50,\n\t\t\t),\n\t\t\t'default' => true,\n\t\t),\n\t\tarray(\n\t\t\t'id' => 'messages_per_page',\n\t\t\t'label' => $txt['messages_per_page'],\n\t\t\t'options' => array(\n\t\t\t\t0 => $txt['per_page_default'],\n\t\t\t\t5 => 5,\n\t\t\t\t10 => 10,\n\t\t\t\t25 => 25,\n\t\t\t\t50 => 50,\n\t\t\t),\n\t\t\t'default' => true,\n\t\t),\n\t\tarray(\n\t\t\t'id' => 'calendar_start_day',\n\t\t\t'label' => $txt['calendar_start_day'],\n\t\t\t'options' => array(\n\t\t\t\t0 => $txt['days'][0],\n\t\t\t\t1 => $txt['days'][1],\n\t\t\t\t6 => $txt['days'][6],\n\t\t\t),\n\t\t\t'default' => true,\n\t\t),\n\t\tarray(\n\t\t\t'id' => 'display_quick_reply',\n\t\t\t'label' => $txt['display_quick_reply'],\n\t\t\t'options' => array(\n\t\t\t\t0 => $txt['display_quick_reply1'],\n\t\t\t\t1 => $txt['display_quick_reply2'],\n\t\t\t\t2 => $txt['display_quick_reply3']\n\t\t\t),\n\t\t\t'default' => true,\n\t\t),\n\t\tarray(\n\t\t\t'id' => 'display_quick_mod',\n\t\t\t'label' => $txt['display_quick_mod'],\n\t\t\t'options' => array(\n\t\t\t\t0 => $txt['display_quick_mod_none'],\n\t\t\t\t1 => $txt['display_quick_mod_check'],\n\t\t\t\t2 => $txt['display_quick_mod_image'],\n\t\t\t),\n\t\t\t'default' => true,\n\t\t),\n\t);\n}", "function theme_typography_css() {\n if (is_customize_preview()) {\n $typography_css = get_theme_mod('typography_css');\n if ($typography_css) {\n echo \"$typography_css\\n\";\n }\n }\n}", "function MicroBuilder_Theme_Factory () {}", "function mintshow_theme_setup() {\n \n /**\n * Make theme available for translation.\n * Translations can be placed in the /languages/ directory.\n */\n load_theme_textdomain( 'myfirsttheme', get_template_directory() . '/languages' );\n \n /**\n * Add default posts and comments RSS feed links to <head>.\n */\n add_theme_support( 'automatic-feed-links' );\n \n /**\n * Enable support for post thumbnails and featured images.\n */\n add_theme_support( 'post-thumbnails' );\n \n /**\n * Add support for two custom navigation menus.\n */\n register_nav_menus( array(\n 'primary' => __( 'Primary Menu', 'myfirsttheme' ),\n 'secondary' => __('Secondary Menu', 'myfirsttheme' )\n ) );\n \n /**\n * Enable support for the following post formats:\n * aside, gallery, quote, image, and video\n */\n add_theme_support( 'post-formats', array ( 'aside', 'gallery', 'quote', 'image', 'video' ) );\n}", "public function theme_installer()\n {\n }", "function install_theme_information()\n {\n }", "public function after_setup_theme()\n {\n }", "function ag_preset_style_names() {\n\t$ml_key = 'ag_ml';\n\t\n\treturn array(\n\t\t'l_standard'\t=> __(\"Light\", $ml_key) .' - '. __('Standard', $ml_key),\n\t\t'l_minimal'\t\t=> __(\"Light\", $ml_key) .' - '. __('Minimal', $ml_key),\n\t\t'l_noborder'\t=> __(\"Light\", $ml_key) .' - '. __('No border', $ml_key),\n\t\t'l_photowall'\t=> __(\"Light\", $ml_key) .' - '. __('Photo wall', $ml_key),\n\t\t\n\t\t'd_standard'\t=> __(\"Dark\", $ml_key) .' - '. __('Standard', $ml_key),\n\t\t'd_minimal'\t\t=> __(\"Dark\", $ml_key) .' - '. __('Minimal', $ml_key),\n\t\t'd_noborder'\t=> __(\"Dark\", $ml_key) .' - '. __('No border', $ml_key),\n\t\t'd_photowall'\t=> __(\"Dark\", $ml_key) .' - '. __('Photo wall', $ml_key),\t\t\n\t);\t\t\t\n}", "function get_theme_mods()\n {\n }", "function gopathemes_save_custom_css(){\n \n if (!function_exists('ot_get_option')) {\n return;\n }\n \n /* CUSTOM COLOR STYLING */\n if (ot_get_option('haira_custom_styling', 'off') == 'on') {\n\n $primary_color = ot_get_option('haira_primary_color','#FFBA00');\n $secondary_color = ot_get_option( 'haira_secondary_color', '#333333' );\n $body_bg = ot_get_option( 'haira_body_background', '#f6f6f6' );\n \n $body_font = ot_get_option('haira_body_font', \n array(\n 'font-family' => \"source-sans-pro, sans-serif\", \n 'font-color' => '#8a8a8a', \n 'font-size' => '14px',\n 'line-height' => '24px',\n 'font-weight' => '400'\n ));\n \n $heading_font = ot_get_option('haira_heading_font', \n array(\n 'font-family' => \"source-sans-pro, sans-serif\", \n 'font-color' => '#333333', \n 'font-weight' => '700'\n ));\n \n $menu_typo = ot_get_option( 'haira_menu_typography',\n array(\n 'font-color' => '#FFFFFF', \n 'font-size' => '13px', \n 'font-weight' => '400', \n 'letter-spacing' => '0.03em', \n 'text-transform' => 'none'\n ));\n \n $submenu_typo = ot_get_option( 'haira_submenu_typography',\n array(\n 'font-color' => '#FFFFFF', \n 'font-size' => '12px', \n 'font-weight' => '400', \n 'line-height' => '45px', \n 'letter-spacing' => '0.03em', \n 'text-transform' => 'none'\n ));\n\n $variables = array(\n 'primary-color' => $primary_color,\n 'second-color' => $secondary_color,\n 'bg-color' => $body_bg,\n \n 'header-bg' => ot_get_option( 'haira_header_bg' ),\n 'header-height' => ot_get_option( 'haira_header_height' ),\n \n 'menu-fs' => $menu_typo['font-size'],\n 'menu-link-color' => $menu_typo['font-color'],\n 'menu-link-color-hover' => ot_get_option( 'haira_menu_link_color_hover' ),\n 'menu-link-bg-hover' => ot_get_option( 'haira_menu_link_bg_hover' ),\n 'menu-link-ls' => $menu_typo['letter-spacing'],\n 'menu-font-weight' => $menu_typo['font-weight'],\n 'menu-text-transform' => $menu_typo['text-transform'],\n \n 'submenu-bg' => ot_get_option( 'haira_submenu_bg' ),\n 'submenu-fs' => $submenu_typo['font-size'],\n 'submenu-link-color' => $submenu_typo['font-color'],\n 'submenu-link-color-hover' => ot_get_option( 'haira_submenu_link_color_on_hover' ),\n 'submenu-link-bg-hover' => ot_get_option( 'haira_submenu_link_bg_on_hover' ),\n 'submenu-link-ls' => $submenu_typo['letter-spacing'],\n 'submenu-font-weight' => $submenu_typo['font-weight'],\n 'submenu-text-transform' => $submenu_typo['text-transform'],\n 'submenu-lh' => $submenu_typo['line-height'],\n \n 'heading-color' => $heading_font['font-color'],\n 'heading-font' => $heading_font['font-family'],\n 'hweight' => $heading_font['font-weight'],\n \n 'text-color' => $body_font['font-color'],\n 'body-font' => $body_font['font-family'],\n 'fsize' => $body_font['font-size'],\n 'lheight' => $body_font['line-height'],\n 'bweight' => $body_font['font-weight']\n );\n\n\n $default_vars = file( get_template_directory().'/scss/_vars.scss' );\n \n gopathemes_compile_css( haira_setup_scss_vars($default_vars, $variables) );\n }\n \n}", "function print_late_styles()\n {\n }", "function tvsl_theme(&$existing, $type, $theme, $path) {\n $hooks = zen_theme($existing, $type, $theme, $path);\n // Add your theme hooks like this:\n /*\n $hooks['hook_name_here'] = array( // Details go here );\n */\n // @TODO: Needs detailed comments. Patches welcome!\n return $hooks;\n}", "public function preApplyTheme()\n {\n //...\n }", "function switch_theme($stylesheet)\n {\n }", "function WPF() {\n\tglobal $wpf_classes;\n\n\t$theme_class = wpf_get_class( 'theme' );\n\n\treturn $wpf_classes['theme'] = new $theme_class;\n}", "function current_theme()\n {\n return current_theme();\n }", "function vp_admin_styles(){\n global $typenow;\n\n if( $typenow == 'wellgorithms' || $typenow == 'my_wellgorithms' ) {\n wp_enqueue_style( 'vp_admin_styles', plugins_url( 'css/style.css', __FILE__ ));\n }\n\n if( $typenow == 'color_template' ) {\n wp_enqueue_style( 'vp_admin_styles', plugins_url( 'css/color-templates.css', __FILE__ ));\n }\n}", "function pantomime_custom_headings(){\n if ( of_get_option( 'pantomime_heading_typography', '' ) != '' && of_get_option('pantomime_heading_typography', '') != 'Default' ){\n\t$printed_typography = str_replace( \"+\", \" \", of_get_option( 'pantomime_heading_typography', '' ) );\n\t?>\n\t<link href='http://fonts.googleapis.com/css?family=<?php echo of_get_option( 'pantomime_heading_typography', '' ); ?>' rel='stylesheet' type='text/css'>\n\t<style type=\"text/css\">\n\t\th1, h2, h3, h4, h5, h6{\n\t\t\tfont-family: '<?php echo $printed_typography; ?>';\n\t\t}\n\t</style>\t\n\t<?php\n }\n}", "function child_theme_setup2() {\n}", "function get_allowed_themes()\n {\n }", "function linolakestheme_setup() {\n\t\t\tadd_theme_support( 'title-tag' );\n\n\t\t\t\n\t\t\t// This theme uses wp_nav_menu() in two locations.\n\t\t\tregister_nav_menus( array(\n\t\t\t\t'primary' => __( 'Primary Menu', 'linolakes' ),\n\t\t\t\t'footer' => __( 'Footer Menu', 'linolakes' ),\n\t\t\t\t'social' => __( 'Social Links Menu', 'linolakes' ),\n\t\t\t) );\n\n\t\t\t\n\t\t\t/*\n\t\t\t* theme styles\n\t\t\t*/\n\t\t\t//add_editor_style( array( 'lib/bootstrap/css/bootstrap.min.css', 'genericons/genericons.css', twentyfifteen_fonts_url() ) );\n\t\t\t\n\t\t\t\n\t\t\t// Feature image\n\t\t\tadd_theme_support('post-thumbnails');\n\t\t}", "public function add_theme_support() {\n\t}", "function pnUserGetTheme()\r\n{\r\n // Order of theme priority:\r\n // - page-specific\r\n // - user\r\n // - system\r\n // - PostNuke\r\n\r\n // Page-specific theme\r\n $pagetheme = pnVarCleanFromInput('theme');\r\n if (!empty($pagetheme)) {\r\n if (@opendir(\"themes/\" . pnVarPrepForOS($pagetheme))) {\r\n return $pagetheme;\r\n }\r\n }\r\n\r\n if (pnUserLoggedIn()) {\r\n $usertheme = pnUserGetVar('theme');\r\n// modification mouzaia .71\r\n if (!empty($usertheme)) {\r\n\t\t\tif (@opendir(WHERE_IS_PERSO.\"themes/\".pnVarPrepForOS($usertheme)))\r\n\t\t\t { return $usertheme; }\t\t\r\n if (@opendir(\"themes/\" . pnVarPrepForOS($usertheme))) \r\n\t\t\t\t{ return $usertheme; }\r\n }\r\n }\r\n\r\n $systemtheme = pnConfigGetVar('Default_Theme');\r\n if (!empty($systemtheme)) {\r\n if (@opendir(WHERE_IS_PERSO.\"themes/\" . pnVarPrepForOS($systemtheme))) {\r\n return $systemtheme;\r\n }\r\n if (@opendir(\"themes/\" . pnVarPrepForOS($systemtheme))) {\r\n return $systemtheme;\r\n }\r\n }\r\n\r\n// \twhy is this hard coded ??????\r\n// $defaulttheme = 'PostNuke';\r\n $defaulttheme = pnConfigGetVar('Default_Theme');\r\n if (@opendir(WHERE_IS_PERSO.\"themes/\" . pnVarPrepForOS($defaulttheme))) {\r\n return $defaulttheme;\r\n }\r\n if (@opendir(\"themes/\" . pnVarPrepForOS($defaulttheme))) {\r\n return $defaulttheme;\r\n }\r\n return false;\r\n}", "function jw_theme_setup(){\n\t\n\t\tglobal $domain; /* The unique string used for translation */\n\t\n\t\t/* Add theme-supported features. */\n\t\tadd_theme_support('automatic-feed-links');\n\t\tadd_theme_support('post-thumbnails');\n\t\t\n\t\t/* Add post thumbnail sizes */\n\t\tset_post_thumbnail_size(570, 194, true);\n\t\tadd_image_size('jw_full', 880, 303, true);\n\t\tadd_image_size('jw_third', 270, 170, true);\n\t\tadd_image_size('jw_half', 425, 232, true);\n\t\tadd_image_size('jw_portfolio_grid', 241, 180, true);\n\t\t\n\t\t/* Don't change the sizes bellow */\n\t\tadd_image_size('jw_58', 58, 43, true);\n\t\tadd_image_size('jw_100', 100, 100, true);\n\t\t\n\t\t/* Localization */\n\t\tload_theme_textdomain($domain, TEMPLATEPATH . '/lang');\n\t\t\n\t}", "function _preview_theme_stylesheet_filter()\n {\n }", "public function getThemeName() {}", "function gwstandard_customize_css() {\n ?>\n <style type=\"text/css\">\n h2 { \n\t color:<?php echo get_theme_mod( 'gwstandard_h2_color', '#4a4a4a' )?>;\n\t <?php gwstandard_echo_valid_weight( get_theme_mod('gwstandard_h2_weight', '' ) ); ?> \n\t }\n h3 { \n\t color:<?php echo get_theme_mod( 'gwstandard_h3_color', '#4a4a4a' )?>;\n\t <?php gwstandard_echo_valid_weight( get_theme_mod('gwstandard_h3_weight', '' ) ); ?> \n\t }\n h4 { \n\t color:<?php echo get_theme_mod( 'gwstandard_h4_color', '#4a4a4a' )?>;\n\t <?php gwstandard_echo_valid_weight( get_theme_mod('gwstandard_h4_weight', '' ) ); ?> \n\t }\n h5 { \n\t color:<?php echo get_theme_mod( 'gwstandard_h5_color', '#4a4a4a' )?>;\n\t <?php gwstandard_echo_valid_weight( get_theme_mod('gwstandard_h5_weight', '' ) ); ?> \n }\n h6 { \n\t color:<?php echo get_theme_mod( 'gwstandard_h6_color', '#4a4a4a' )?>;\n\t <?php gwstandard_echo_valid_weight( get_theme_mod('gwstandard_h6_weight', '' ) ); ?> \n\t }\n\t \n\t p{\n\t\t margin-bottom:<?php echo get_theme_mod( 'gwstandard_body-font_margin-bottom', '10' )?>px;\n\t }\n\t \n\t li{\n\t\t line-height:<?php echo get_theme_mod( 'fl-body-line-height', '1.4' )?>;\n\t\t margin-bottom:<?php echo get_theme_mod( 'gwstandard_body-font_margin-bottom', '10' )?>px;\n\t }\n\t \n\t .gwd_fl-rich-text_intro-text > p,\n\t .gwd_fl-rich-text_intro-text li,\n\t p.intro_text{\n\t\t font-size:<?php echo get_theme_mod( 'gwstandard_intro-text_font-size', '18' )?>px;\n\t\t line-height:<?php echo get_theme_mod( 'gwstandard_intro-text_line-height', '1.6')?>;\n\t\t margin-bottom:<?php echo get_theme_mod( 'gwstandard_intro-text_margin-bottom', '18')?>px;\n\t }\n\t \n\t .gwd_fl-rich-text_secondary-intro > p,\n\t .gwd_fl-rich-text_secondary-intro li,\n\t p.intro_text_alt{\n\t\t font-size:<?php echo get_theme_mod( 'gwstandard_secondary-intro_font-size', '20' )?>px;\n\t\t line-height:<?php echo get_theme_mod( 'gwstandard_secondary-intro_line-height', '1.6')?>;\n\t\t margin-bottom:<?php echo get_theme_mod( 'gwstandard_secondary-intro_margin-bottom', '20')?>px;\n\t }\n\t \n\t .gwd_fl-rich-text_small-text > p,\n\t .gwd_fl-rich-text_small-text li,\n\t small,\n\t p.small_text{\n\t\t font-size:<?php echo get_theme_mod( 'gwstandard_small-text_font-size', '14' )?>px;\n\t\t line-height:<?php echo get_theme_mod( 'gwstandard_small-text_line-height', '1.2')?>;\n\t\t margin-bottom:<?php echo get_theme_mod( 'gwstandard_small-text_margin-bottom', '10')?>px;\n\t }\n </style>\n <?php\n}", "function print_theme_url()\n{\n printf('%s', get_theme_url());\n}", "function _add_themes_utility_last()\n {\n }", "function init_template() {\n /*aniade soporte a Image destacada en la bara superior*/\n add_theme_support('post-thumbnails');\n /* aniade soorte de : titulo en la barra superior*/\n add_theme_support('title-tag');\n /* registrar menu de navegacion en el panel admin*/\n register_nav_menus(\n array(\n 'top_menu' => 'Menu Principal'\n )\n );\n\n}", "function techfak_get_theme_options() {\n\treturn get_option( 'techfak_theme_options', techfak_get_default_theme_options() );\n}", "public static function get_core_default_theme()\n {\n }", "public function render_section_themes_description() {\n\t\t_e( 'Choose themes to make available in your SatisPress repository.', 'satispress' );\n\t}", "function labs_setup() {\n\n\t/* Make Labs_Theme available for translation.\n\t * Translations can be added to the /languages/ directory.\n\t * If you're building a theme based on Labs_Theme, use a find and replace\n\t * to change 'labs' to the name of your theme in all the template files.\n\t */\n\tload_theme_textdomain( 'labs', get_template_directory() . '/languages' );\n\n\t// This theme styles the visual editor with editor-style.css to match the theme style.\n\tadd_editor_style();\n\n\t// Load up our theme options page and related code.\n\trequire( get_template_directory() . '/inc/theme-options.php' );\n\n\t// Grab Labs_Theme's Ephemera widget.\n\trequire( get_template_directory() . '/inc/widgets.php' );\n\n\t// Add default posts and comments RSS feed links to <head>.\n\tadd_theme_support( 'automatic-feed-links' );\n\n\t// This theme uses wp_nav_menu() in one location.\n\tregister_nav_menu( 'header_menu', __( 'Header Menu', 'labs' ) );\n\n\t// Add support for custom backgrounds.\n\t// 背景图片\n\tadd_theme_support( 'custom-background', array(\n\t\t// Let WordPress know what our default background color is.\n\t\t'default-color' => $default_background_color,\n\t) );\n}", "function dizzy7_gutenberg_features() {\n\t\t\n\n// Theme supports wide images, galleries and videos.\n add_theme_support( 'align-wide' );\n add_theme_support( 'align-full' );\n add_theme_support( 'wide-images' );\n \n add_theme_support(\n\t\t'editor-color-palette', array(\n\t\t\tarray(\n\t\t\t\t'name' => esc_html__( 'Main Color', '@@textdomain' ),\n\t\t\t\t'slug' => 'main-color',\n\t\t\t\t'color' => get_theme_mod( 'diz-theme-main-color'),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => esc_html__( 'Second Color', '@@textdomain' ),\n\t\t\t\t'slug' => 'second-color',\n\t\t\t\t'color' => get_theme_mod( 'diz-theme-second-color'),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => esc_html__( 'Highlight Color', '@@textdomain' ),\n\t\t\t\t'slug' => 'highlight-color',\n\t\t\t\t'color' => get_theme_mod( 'diz-theme-third-color'),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => esc_html__( 'Special Color', '@@textdomain' ),\n\t\t\t\t'slug' => 'special-color',\n\t\t\t\t'color' => get_theme_mod( 'diz-theme-fourth-color'),\n\t\t\t)\n\t\t)\n\t);\n}", "function get_theme ()\r\n {\r\n return $_SESSION[\"theme\"];\r\n }", "function wpt()\n{\n return \\WPTheme\\Theme::instance();\n}", "function pd_theme_support()\n{\n\n /* =============== \tAdd language supports =============== */\n load_theme_textdomain('pd', get_template_directory() . '/lang');\n\n\n /* =============== Rss feed support =============== */\n add_theme_support('automatic-feed-links');\n\n\n /* =============== \t Add post formarts supports =============== */\n add_theme_support('post-formats', array('aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat'));\n}", "function mu_themes_in_use(){$this->__construct();}", "function thememount_set_rs_as_theme() {\n\tif(get_option('revSliderAsTheme') != 'true'){\n\t\tupdate_option('revSliderAsTheme', 'true');\n\t}\n\tif(get_option('revslider-valid-notice') != 'false'){\n\t\tupdate_option('revslider-valid-notice', 'false');\n\t}\n\tif( function_exists('set_revslider_as_theme') ){\t\n\t\tset_revslider_as_theme();\n\t}\n}", "function pl_text_color(){\n\t\t\n\t$color = ( pl_check_color_hash( ploption( 'text_primary' ) ) ) ? pl_hash_strip( ploption( 'text_primary' ) ) : '000000';\n\n\treturn $color;\n}", "private function theme_setup() {\n\n\t\t//Remove wordpress defult image sizes\n\t\tadd_filter( 'intermediate_image_sizes_advanced', array($this, 'remove_default_image_sizes'), 10, 1 );\n\n\t\t//Theme init action 'after_switch_theme'\n\t\tadd_action( 'init', array($this, 'theme_activation') );\n\n\t\t//Setup translation options\n\n\t\t//Cleanup Wordpress Head\n\t\tadd_action( 'wp', array($this, 'wp_head_cleanup') );\n\n\t\t//Remove WP version from RSS\n\t\tadd_filter( 'the_generator', array($this, 'remove_rss_version') );\n\n\t\t//Load scripts for non-admin (front end) pages\n\t\tadd_action( 'wp_enqueue_scripts', array($this, 'enqueue_front_end_scripts') );\n\n\t\t//Load styles for front end pages\n\t\tadd_action( 'wp_enqueue_scripts', array($this, 'enqueue_theme_styles') );\n\n\t\t//Set Prso Theme support\n\t\t$this->add_theme_support();\n\n\t\t//Add extra form fields to WP User profile contact methods\n\t\tadd_filter( 'user_contactmethods', array($this, 'add_user_contact_methods'), 10, 1 );\n\n\t\t//Register Prso Theme sidebars\n\t\tadd_action( 'widgets_init', array($this, 'register_sidebars') );\n\n\t\t//Remove <p> tag from around imgs (//css-tricks.com/snippets/wordpress/remove-paragraph-tags-from-around-images/)\n\t\tadd_filter( 'the_content', array($this, 'remove_p_tag_from_images'), 100 );\n\t\tadd_filter( 'widget_text', array($this, 'remove_p_tag_from_images'), 100 );\n\n\t\t//Hack to enable rel='' attr for links - thanks to yoast\n\t\tif( !function_exists('yoast_allow_rel') ) {\n\t\t\tadd_action( 'wp_loaded', array($this, 'yoast_allow_rel') );\n\t\t}\n\n\t\t//Admin specific Actions and Filters\n\t\t$this->admin_area_actions();\n\n\t\t//Add Zurb Foundation grid classes to comments\n\t\tadd_filter( 'comment_class', array($this, 'add_comments_classes') );\n\n\t\t//Overwrite WP default post password form\n\t\tadd_filter( 'the_password_form', array($this, 'custom_post_password_form') );\n\n\t\t//Update WP tag cloud to improve style\n\t\t$this->update_wp_tag_cloud();\n\n\t\t//Enable shortcodes in widgets\n\t\tadd_filter('widget_text', 'do_shortcode');\n\n\t\t//Disable page jump in 'read more' links\n\t\tadd_filter( 'the_content_more_link', array($this, 'remove_more_jump_link') );\n\n\t\t// Remove height/width attributes on images so they can be responsive\n\t\tadd_filter( 'post_thumbnail_html', array($this, 'remove_thumbnail_dimensions'), 10 );\n\t\tadd_filter( 'image_send_to_editor', array($this, 'remove_thumbnail_dimensions'), 10 );\n\n\t\t//Stop wp from marking blog nav as active for all custom post types\n\t\tadd_filter( 'nav_menu_css_class', array($this, 'custom_wp_nav_menu'), 10, 2 );\n\n\t\t//change the standard class that wordpress puts on the active menu item in the nav bar\n\t\tadd_filter( 'wp_nav_menu', array($this, 'current_to_active'), 10, 2 );\n\n\t\t//Deletes empty classes and removes the sub menu class_exists\n\t\tadd_filter( 'wp_nav_menu', array($this, 'strip_empty_classes') );\n\n\t\t//Merges and minifies scripts\n\t\tadd_action( 'wp_print_scripts', array($this, 'merge_scripts') );\n\n\t\t//Merges and minifies stylesheets\n\t\tadd_action( 'wp_print_styles', array($this, 'merge_styles') );\n\n\t\t//Custom prso theme framework pagination\n\t\tadd_action( 'prso_pagination', array($this, 'custom_pagination'), 10, 2 );\n\n\t\t//Add filter to alter the array of classes used by post_class()\n\t\tadd_filter( 'post_class', array($this, 'post_class_filter'), 10, 1 );\n\n\t\t//Call method to setup theme options\n\t\t//add_action( 'init', array($this, 'admin_init_theme_options_redux') );\n\t\tadd_action( 'init', array($this, 'admin_init_theme_options_acf') );\n\n\t\t//Init theme text domain\n\t\tadd_action('after_setup_theme', array($this, 'init_theme_textdomain'));\n\n\t\t//Filter oembed and wrap youtube and vimeo videos in flex video wrappers\n\t\tadd_filter( 'oembed_result', array($this, 'oembed_zurb_video_wrapper'), 10, 3 );\n\n\t\t//Fix chrome admin area bug\n\t\tadd_action('admin_enqueue_scripts', array($this, 'chromefix_inline_css') );\n\n\t\t//Wrap any gforms inline JS so that it executes once DOM has loaded\n\t\tadd_filter( 'gform_cdata_open', array( $this, 'wrap_gform_cdata_open' ) );\n\t\tadd_filter( 'gform_cdata_close', array( $this, 'wrap_gform_cdata_close' ) );\n\n\t}", "function set_theme($params)\n\t{\n\n\t\t(object) $theme = array_to_object($params);\n\n \t/**\n \t * ----------------------------------------------------------------------\n\t\t * The YoteyoteUI Main Configuration data array.\n\t\t * ----------------------------------------------------------------------\n\t\t */\n/*\n\t\t$data = array(\n\t\t\t'template' => array(\n \t\t\t'name' => 'Yoteyote',\n\t\t\t 'version' => '1.0',\n\t\t\t 'author' => 'Yoteyote',\n\t\t\t 'title' => 'YoteyoteUI - Premium Web App and Admin Template',\n\t\t\t 'description' => 'YoteyoteUI is a Premium Web App and Admin Template',\n\t\t\t\t'keywords' => 'Yoteyote',\n\n\t\t\t // '' empty to remove full width from the page (< 992px: 100%, > 992px: 95%, 1440px max width)\n\t\t\t // 'full-width' for a full width page (100%, 1920px max width)\n\t\t\t 'page' => 'full-width',\n\n\t\t\t // 'navbar-default' for a light header\n\t\t\t // 'navbar-inverse' for a dark header\n\t\t\t 'header_navbar' => 'navbar-default',\n\n\t\t\t // 'navbar-fixed-top' for a top fixed header\n\t\t\t // 'navbar-fixed-bottom' for a bottom fixed header\n\t\t\t 'header' => 'navbar-fixed-top',\n\n\t\t\t // '' left sidebar will open only from the top left toggle button (better website performance)\n\t\t\t // 'enable-hover' will make a small portion of left sidebar visible, so that it can be opened with a mouse hover (> 1200px) (may affect website performance)\n\t\t\t 'sidebar_left' => 'enable-hover',\n\n\t\t\t // '' right sidebar will open only from the top right toggle button (better website performance)\n\t\t\t // 'enable-hover' will make a small portion of right sidebar visible, so that it can be opened with a mouse hover (> 1200px) (may affect website performance)\n\t\t\t 'sidebar_right' => '',\n\n\t\t\t // '' empty for default behavior\n\t\t\t // 'sidebar-left-pinned' for a left pinned sidebar (always visible > 1200px)\n\t\t\t // 'sidebar-right-pinned' for a right pinned sidebar (always visible > 1200px)\n\t\t\t // 'sidebar-left-pinned sidebar-right-pinned' for both sidebars pinned (always visible > 1200px)\n\t\t\t 'navigation' => '',\n\n\t\t\t // All effects apply in resolutions larger than 1200px width\n\t\t\t // 'fx-none' remove all effects from main content when one of the sidebars are open (better website performance)\n\t\t\t // 'fx-opacity' opacity effect\n\t\t\t // 'fx-move' move effect\n\t\t\t // 'fx-push' push effect\n\t\t\t // 'fx-rotate' rotate effect\n\t\t\t // 'fx-push-move' push-move effect\n\t\t\t // 'fx-push-rotate' push-rotate effect\n\t\t\t 'content_fx' => 'fx-opacity',\n\n\t\t\t // Available themes: 'river', 'amethyst' , 'dragon', 'emerald', 'grass' or '' leave empty for the default fresh orange\n\t\t\t 'theme' => 'dragon',\n\t\t\t //'theme' => $this->input->cookie('theme_cookie', TRUE),\n\n\t\t\t //'active_page' => basename($_SERVER['PHP_SELF']),\n\t\t\t 'active_page' => current_url($page), // To get the CI current page.\n\t\t\t),\n\t\t);\n*/\n\n\t\t$data = array(\n\t\t\t'template' => array(\n \t\t\t'name' => $theme->name,\n\t\t\t 'version' => $theme->version,\n\t\t\t 'author' => $theme->author,\n\t\t\t 'title' => $theme->title,\n\t\t\t 'description' => $theme->description,\n\t\t\t\t'keywords' => $theme->keywords,\n\t\t\t 'page' => $theme->page,\n\t\t\t 'header_navbar' => $theme->header_navbar,\n\t\t\t 'header' => $theme->header,\n\t\t\t 'sidebar_left' => $theme->sidebar_left,\n\t\t\t 'sidebar_right' => $theme->sidebar_right,\n\t\t\t 'navigation' => $theme->navigation,\n\t\t\t 'content_fx' => $theme->content_fx,\n\t\t\t 'theme' => $theme->theme,\n\t\t\t 'active_page' => $theme->active_page,\n\t\t\t),\n\t\t);\n\n\t\treturn $data;\n\t}", "function theme_path()\r\n{\r\n return base_path().'/cms/local/'.Cms::getCurrentTheme().'/';\r\n}", "public function postApplyTheme()\n {\n //...\n }", "function julia_kaya_customizer_styles(){\n\t$text_logo_color = get_theme_mod('text_logo_color') ? get_theme_mod('text_logo_color') : '#353535';\n\t$text_logo_tagline_color = get_theme_mod('text_logo_tagline_color') ? get_theme_mod('text_logo_tagline_color') : '#757575';\n\n\t// Header Color Section\n\t$header_left_bg_color = get_theme_mod('header_left_bg_color') ? get_theme_mod('header_left_bg_color') : '#000';\n\t$header_bg_color = get_theme_mod('header_bg_color') ? get_theme_mod('header_bg_color') : '#fff';\n\t\n\t// Menu Section\n\t$menu_link_color = get_theme_mod('menu_link_color') ? get_theme_mod('menu_link_color') : '#000';\n\t$menu_link_hover_color = get_theme_mod('menu_link_hover_color') ? get_theme_mod('menu_link_hover_color') : '#ff3333';\n\t$menu_active_link_color = get_theme_mod('menu_active_link_color') ? get_theme_mod('menu_active_link_color') : '#ff3333';\n\t$child_menu_bg_color = get_theme_mod('child_menu_bg_color') ? get_theme_mod('child_menu_bg_color') : '#ff3333';\n\t$child_menu_link_color = get_theme_mod('child_menu_link_color') ? get_theme_mod('child_menu_link_color') : '#fff';\n\t$child_menu_link_hover_color = get_theme_mod('child_menu_link_hover_color') ? get_theme_mod('child_menu_link_hover_color') : '#fff';\n\t$child_menu_hover_bg_color = get_theme_mod('child_menu_hover_bg_color') ? get_theme_mod('child_menu_hover_bg_color') : '#ff0000';\n\t$child_menu_active_bg_color = get_theme_mod('child_menu_active_bg_color') ? get_theme_mod('child_menu_active_bg_color') : '#ff0000';\n\t$child_menu_active_link_color = get_theme_mod('child_menu_active_link_color') ? get_theme_mod('child_menu_active_link_color') : '#fff';\n\t$child_menu_border_bottom_color = get_theme_mod('child_menu_border_bottom_color') ? get_theme_mod('child_menu_border_bottom_color') : '#ff3333';\n $search_toggle_bar_BG_color = get_theme_mod('search_toggle_bar_BG_color') ? get_theme_mod('search_toggle_bar_BG_color') : '#ff3333';\n $search_toggle_bar_icon_color = get_theme_mod('search_toggle_bar_icon_color') ? get_theme_mod('search_toggle_bar_icon_color') : '#fff';\n\t\n\t// page title Section\n\t$page_titlebar_bg_color = get_theme_mod('page_titlebar_bg_color') ? get_theme_mod('page_titlebar_bg_color') : '#f2f2f2';\n\t$page_titlebar_color = get_theme_mod('page_titlebar_color') ? get_theme_mod('page_titlebar_color') : '#353535';\n\t$page_titlebar_padding_tb = get_theme_mod('page_titlebar_padding_tb') ? get_theme_mod('page_titlebar_padding_tb') : '30';\n\t$title_position = get_theme_mod('title_position') ? get_theme_mod('title_position') : 'left';\n\t$bread_crumb_font_size = get_theme_mod('bread_crumb_font_size') ? get_theme_mod('bread_crumb_font_size') : '15';\n\t$page_titlebar_font_size = get_theme_mod('page_titlebar_font_size') ? get_theme_mod('page_titlebar_font_size') : '38';\n\t$bread_crumb_link_color = get_theme_mod('bread_crumb_link_color') ? get_theme_mod('bread_crumb_link_color') : '#000000';\n\n\t// Page mid content Section\n\t$page_mid_contant_bg_color = get_theme_mod('page_mid_contant_bg_color') ? get_theme_mod('page_mid_contant_bg_color') : '#fff';\n\t$page_mid_content_title_color = get_theme_mod('page_mid_content_title_color') ? get_theme_mod('page_mid_content_title_color') : '';\n\t$page_mid_content_color = get_theme_mod('page_mid_content_color') ? get_theme_mod('page_mid_content_color') : '#868686';\n\t$page_mid_contant_links_color = get_theme_mod('page_mid_contant_links_color') ? get_theme_mod('page_mid_contant_links_color') : '#333';\n\t$page_mid_contant_links_hover_color = get_theme_mod('page_mid_contant_links_hover_color') ? get_theme_mod('page_mid_contant_links_hover_color') : '#000000';\n\n\t//Single-Page\n\t$single_page_tabs_active_BG_color =get_theme_mod('single_page_tabs_active_BG_color') ? get_theme_mod('single_page_tabs_active_BG_color') : '#ff3333';\n\t$single_page_tabs_active_color =get_theme_mod('single_page_tabs_active_color') ? get_theme_mod('single_page_tabs_active_color') : '#fff';\n\t$single_page_tabs_active_border_color =get_theme_mod('single_page_tabs_active_border_color') ? get_theme_mod('single_page_tabs_active_border_color') : '#ff3333';\n\t$single_page_tabs_BG_color =get_theme_mod('single_page_tabs_BG_color') ? get_theme_mod('single_page_tabs_BG_color') : '#f2f2f2';\n\t$single_page_tabs_color =get_theme_mod('single_page_tabs_color') ? get_theme_mod('single_page_tabs_color') : '#7a7a7a';\n\t$single_page_tabs_border_color =get_theme_mod('single_page_tabs_border_color') ? get_theme_mod('single_page_tabs_border_color') : '#e5e5e5';\n\t$shortlist_tab_BG_color = get_theme_mod('shortlist_tab_BG_color') ? get_theme_mod('shortlist_tab_BG_color') : '#f2f2f2';\n\t$single_page_tabs_border_bottom_color = get_theme_mod('single_page_tabs_border_bottom_color') ? get_theme_mod('single_page_tabs_border_bottom_color') : '#ff3333';\n\t$shortlist_tab_color = get_theme_mod('shortlist_tab_color') ? get_theme_mod('shortlist_tab_color') : '#000';\n $shortlist_tab_border_color = get_theme_mod('shortlist_tab_border_color') ? get_theme_mod('shortlist_tab_border_color') : '#f2f2f2';\n $compcard_tab_BG_color = get_theme_mod('compcard_tab_BG_color') ? get_theme_mod('compcard_tab_BG_color') : '#ff3333';\n $compcard_tab_color = get_theme_mod('compcard_tab_color') ? get_theme_mod('compcard_tab_color') : '#fff';\n $compcard_tab_border_color = get_theme_mod('compcard_tab_border_color') ? get_theme_mod('compcard_tab_border_color') : '#ff3333';\n $single_page_post_title_color = get_theme_mod('single_page_post_title_color') ? get_theme_mod('single_page_post_title_color') : '#353535';\n $single_page_category_link_color = get_theme_mod('single_page_category_link_color') ? get_theme_mod('single_page_category_link_color') : '#ff3333';\n\n //Talent Post Color Settings\n $post_title_color = get_theme_mod('post_title_color') ? get_theme_mod('post_title_color') : '#000000';\n $post_title_hover_color = get_theme_mod('post_title_hover_color') ? get_theme_mod('post_title_hover_color') : '#ff3333';\n $post_meta_fields_text_hover_color = get_theme_mod('post_meta_fields_text_hover_color') ? get_theme_mod('post_meta_fields_text_hover_color') : '#ffffff';\n $post_meta_fields_text_hover_BG_color = get_theme_mod('post_meta_fields_text_hover_BG_color') ? get_theme_mod('post_meta_fields_text_hover_BG_color') : '#ff3333';\n\n\t// page sidebar Section\n\t$sidebar_title_color = get_theme_mod('sidebar_title_color') ? get_theme_mod('sidebar_title_color') : '#353535';\n\t$sidebar_title_border_color = get_theme_mod('sidebar_title_border_color') ? get_theme_mod('sidebar_title_border_color') : '#000000';\n\t$sidebar_content_color = get_theme_mod('sidebar_content_color') ? get_theme_mod('sidebar_content_color') : '#717171';\n\t$sidebar_links_color = get_theme_mod('sidebar_links_color') ? get_theme_mod('sidebar_links_color') : '#ff3333';\n\t$sidebar_links_hover_color = get_theme_mod('sidebar_links_hover_color') ? get_theme_mod('sidebar_links_hover_color') : '#000000';\n\t$sidebar_list_border_color = get_theme_mod('sidebar_list_border_color') ? get_theme_mod('sidebar_list_border_color') : '#e5e5e5';\n\t$sidebar_tagcloud_bg_color = get_theme_mod('sidebar_tagcloud_bg_color') ? get_theme_mod('sidebar_tagcloud_bg_color') : '#f9f9f9';\n\t$sidebar_tagcloud_font_color = get_theme_mod('sidebar_tagcloud_font_color') ? get_theme_mod('sidebar_tagcloud_font_color') : '#353535';\n\t$sidebar_tagcloud_border_color = get_theme_mod('sidebar_tagcloud_border_color') ? get_theme_mod('sidebar_tagcloud_border_color') : '#eeeeee';\n\t$sidebar_tagcloud_hover_bg_color = get_theme_mod('sidebar_tagcloud_hover_bg_color') ? get_theme_mod('sidebar_tagcloud_hover_bg_color') : '#ff3333';\n\t$sidebar_tagcloud_hover_font_color = get_theme_mod('sidebar_tagcloud_hover_font_color') ? get_theme_mod('sidebar_tagcloud_hover_font_color') : '#ffffff';\n\t$sidebar_tagcloud_hover_border_color = get_theme_mod('sidebar_tagcloud_hover_border_color') ? get_theme_mod('sidebar_tagcloud_hover_border_color') : '#ff3333';\n\t$sidebar_default_search_btn_BG_color = get_theme_mod('sidebar_default_search_btn_BG_color') ? get_theme_mod('sidebar_default_search_btn_BG_color') : '#ff3333';\n\t$sidebar_default_search_btn_color = get_theme_mod('sidebar_default_search_btn_color') ? get_theme_mod('sidebar_default_search_btn_color') : '#ffffff';\n \n\t// Footer Section\n\n \t/* Font Sizes */\n /* Title Font sizes H1 */\n $h1_title_fontsize=get_theme_mod( 'h1_title_fontsize', '' ) ? get_theme_mod( 'h1_title_fontsize', '' ) : '30'; // H1\n $h2_title_fontsize=get_theme_mod( 'h2_title_fontsize', '' ) ? get_theme_mod( 'h2_title_fontsize', '' ) : '27'; // H2\n $h3_title_fontsize=get_theme_mod( 'h3_title_fontsize', '' ) ? get_theme_mod( 'h3_title_fontsize', '' ) : '25'; // H3\n $h4_title_fontsize=get_theme_mod( 'h4_title_fontsize', '' ) ? get_theme_mod( 'h4_title_fontsize', '' ) : '18'; // H4\n $h5_title_fontsize=get_theme_mod( 'h5_title_fontsize', '' ) ? get_theme_mod( 'h5_title_fontsize', '' ) : '16'; // H5\n $h6_title_fontsize=get_theme_mod( 'h6_title_fontsize', '' ) ? get_theme_mod( 'h6_title_fontsize', '' ) : '12'; // H6\n // Letter Spaceing\n $h1_font_letter_space=get_theme_mod( 'h1_font_letter_space') ? get_theme_mod( 'h1_font_letter_space') : '0'; // H1\n $h2_font_letter_space=get_theme_mod( 'h2_font_letter_space') ? get_theme_mod( 'h2_font_letter_space') : '0'; // H2\n $h3_font_letter_space=get_theme_mod( 'h3_font_letter_space') ? get_theme_mod( 'h3_font_letter_space') : '0'; // H3\n $h4_font_letter_space=get_theme_mod( 'h4_font_letter_space') ? get_theme_mod( 'h4_font_letter_space') : '0'; // H4\n $h5_font_letter_space=get_theme_mod( 'h5_font_letter_space') ? get_theme_mod( 'h5_font_letter_space') : '0'; // H5\n $h6_font_letter_space=get_theme_mod( 'h6_font_letter_space') ? get_theme_mod( 'h6_font_letter_space') : '0'; // H6\n // Font Weight\n $h1_font_weight_bold=get_theme_mod( 'h1_font_weight_bold') ? get_theme_mod( 'h1_font_weight_bold') : 'normal'; // H1\n $h2_font_weight_bold=get_theme_mod( 'h2_font_weight_bold') ? get_theme_mod( 'h2_font_weight_bold') : 'normal'; // H2\n $h3_font_weight_bold=get_theme_mod( 'h3_font_weight_bold') ? get_theme_mod( 'h3_font_weight_bold') : 'normal'; // H3\n $h4_font_weight_bold=get_theme_mod( 'h4_font_weight_bold') ? get_theme_mod( 'h4_font_weight_bold') : 'normal'; // H4\n $h5_font_weight_bold=get_theme_mod( 'h5_font_weight_bold') ? get_theme_mod( 'h5_font_weight_bold') : 'normal'; // H5\n $h6_font_weight_bold=get_theme_mod( 'h6_font_weight_bold') ? get_theme_mod( 'h6_font_weight_bold') : 'normal'; // H6\n // Body & Menu\n $body_font_weight_bold=get_theme_mod( 'body_font_weight_bold') ? get_theme_mod( 'body_font_weight_bold') : 'normal'; // body\n $menu_font_weight=get_theme_mod( 'menu_font_weight') ? get_theme_mod( 'menu_font_weight') : 'normal'; // Menu\n $child_menu_font_weight=get_theme_mod( 'child_menu_font_weight') ? get_theme_mod( 'child_menu_font_weight') : 'normal'; // Child Menu\n // Menu Latter Sapcing\n $body_font_letter_space=get_theme_mod( 'body_font_letter_space') ? get_theme_mod( 'body_font_letter_space') : '0'; // H4\n $menu_font_letter_space=get_theme_mod( 'menu_font_letter_space') ? get_theme_mod( 'menu_font_letter_space') : '0'; // H5\n $child_menu_font_letter_space=get_theme_mod( 'child_menu_font_letter_space') ? get_theme_mod( 'child_menu_font_letter_space') : '0'; // H6\n $body_font_size=get_theme_mod( 'body_font_size', '' ) ? get_theme_mod( 'body_font_size', '' ) : '15'; // Body Font Size\n $menu_font_size=get_theme_mod( 'menu_font_size', '' ) ? get_theme_mod( 'menu_font_size', '' ) : '13'; // Body Font Size\n $child_menu_font_size=get_theme_mod( 'child_menu_font_size', '' ) ? get_theme_mod( 'child_menu_font_size', '' ) : '13'; // Body Font Size\n\n // Font family Names\n $google_body_font=get_theme_mod( 'google_body_font' ) ? get_theme_mod( 'google_body_font') : 'Open Sans';\n $google_bodyfont= ( $google_body_font == '0' ) ? 'arial' : $google_body_font;\n $google_menu_font=get_theme_mod( 'google_menu_font' ) ? get_theme_mod( 'google_menu_font' ) : 'Open Sans';\n $google_menufont= ( $google_menu_font == '0' ) ? 'arial' : $google_menu_font;\n $google_general_titlefont=get_theme_mod( 'google_heading_font') ? get_theme_mod( 'google_heading_font' ) : 'Crete Round';\n $google_generaltitlefont= ( $google_general_titlefont == '0' ) ? 'arial' : $google_general_titlefont;\t\n\n // Top Header Section\n\n\t// Pagination Section\n\t$pagination_bg_color = get_theme_mod('pagination_bg_color') ? get_theme_mod('pagination_bg_color') : '#e5e5e5';\n\t$pagination_link_color = get_theme_mod('pagination_link_color') ? get_theme_mod('pagination_link_color') : '#353535';\n\t$pagination_active_bg_color = get_theme_mod('pagination_active_bg_color') ? get_theme_mod('pagination_active_bg_color') : '#353535';\n\t$pagination_active_link_color = get_theme_mod('pagination_active_link_color') ? get_theme_mod('pagination_active_link_color') : '#353535';\n\n\t/* Body & Menu & Title's Font Line Height */\n\t$lineheight_body = round((1.9 * $body_font_size));\n\t$lineheight_h1 = round((1.6 * $h1_title_fontsize));\n\t$lineheight_h2 = round((1.6 * $h2_title_fontsize));\n\t$lineheight_h3 = round((1.6 * $h3_title_fontsize));\n\t$lineheight_h4 = round((1.6 * $h4_title_fontsize)); \n\t$lineheight_h5 = round((1.6 * $h5_title_fontsize));\n\t$lineheight_h6 = round((1.6 * $h6_title_fontsize));\n\n\t$css = '';\n $css .= 'body, p{\n\t\t\tfont-family:'.esc_attr( $google_bodyfont ).';\n\t\t\tline-height:'.$lineheight_body.'px;\n\t\t\tfont-size:'.$body_font_size.'px;\n\t\t\tletter-spacing:'.$body_font_letter_space.'px;\n\t\t\tfont-weight:'.$body_font_weight_bold.';\n\t\t\tfont-style:normal;\n }\n .menu ul li a, .shortlist-align a{\n\t\t\tfont-family:'.$google_menufont.';\n\t\t\tfont-size:'.$menu_font_size.'px !important;\n\t\t\tletter-spacing:'.$menu_font_letter_space.'px;\n\t\t\tfont-weight:'.$menu_font_weight.';\n }\n .menu ul ul li a{\n\t font-size:'.$child_menu_font_size.'px;\n\t font-weight:'.$child_menu_font_weight.';\n }\n \ta, span{\n \tfont-family:'.esc_attr( $google_bodyfont ).';\n }\n p{\n padding-bottom:'.$lineheight_body.'px;\n }\n /* Heading Font Family */\n h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a{\n \tfont-family:'.$google_generaltitlefont.';\n }\n h1{\n font-size:'.$h1_title_fontsize.'px;\n line-height:'.$lineheight_h1.'px;\n letter-spacing:'.$h1_font_letter_space.'px;\n font-weight: '.$h1_font_weight_bold.';\n }\n h2{\n font-size:'.$h2_title_fontsize.'px;\n line-height:'.$lineheight_h2.'px;\n letter-spacing:'.$h2_font_letter_space.'px;\n font-weight: '.$h2_font_weight_bold.';\n }\n h3, .grid-view-container h3:before{\n font-size:'.$h3_title_fontsize.'px;\n line-height:'.$lineheight_h3.'px;\n letter-spacing:'.$h3_font_letter_space.'px;\n font-weight: '.$h3_font_weight_bold.'!important;\n }\n h4{\n font-size:'.$h4_title_fontsize.'px;\n line-height:'.$lineheight_h4.'px;\n letter-spacing:'.$h4_font_letter_space.'px;\n font-weight: '.$h4_font_weight_bold.';\n }\n h5{\n font-size:'.$h5_title_fontsize .'px;\n line-height:'. $lineheight_h5 .'px;\n letter-spacing:'.$h5_font_letter_space.'px;\n font-weight: '.$h5_font_weight_bold.';\n }\n h6{\n font-size:'.$h6_title_fontsize.'px;\n line-height:'.$lineheight_h6.'px;\n letter-spacing:'.$h6_font_letter_space.'px;\n font-weight: '.$h6_font_weight_bold.';\n }';\n\n\t// Text Logo Settings\n\t$css .= '#logo h1.site-title a{\n\t\t\tcolor:'.$text_logo_tagline_color.';\n\t\t}\n\t\t#logo p{\n\t\t\tcolor:'.$text_logo_color.';\n\t\t}';\n\t// Header Color Section\n\t$css .='#kaya-header-content-wrapper, #kaya-header-content-wrapper .header-section{\n\t\t\tbackground:'.$header_bg_color.';\n\t\t}';\n\n\t// Menu Color settings\t\n\t$css .= '#header-navigation ul li a, .shortlist-align a{\n\t\t\t\tcolor:'.$menu_link_color.';\n\t\t\t}\n\t\t\t#header-navigation ul li a:hover, .shortlist-align a:hover{\n\t\t\t\tcolor:'.$menu_link_hover_color.';\n\t\t\t}\n\t\t\t#header-navigation ul li.current-menu-item.current_page_item a{\n\t\t\t\tcolor:'.$menu_active_link_color.';\n\t\t\t}\n\t\t\t.sub-menu li a, .user-account .sub-menu li a{\n\t\t\t\tbackground:'.$child_menu_bg_color.';\n\t\t\t\tcolor:'.$child_menu_link_color.'!important;\n\t\t\t}\n\t\t\t.sub-menu li a:hover{\n\t\t\t\tbackground:'.$child_menu_hover_bg_color.';\n\t\t\t\tcolor:'.$child_menu_link_hover_color.'!important;\n\t\t\t}\n\t\t\t.sub-menu li.current-menu-item a{\n\t\t\t\tbackground:'.$child_menu_active_bg_color.';\n\t\t\t\tcolor:'.$child_menu_active_link_color.';\n\t\t\t}\n\t\t\t.sub-menu li a{\n\t\t\t\tborder-bottom:1px solid '.$child_menu_border_bottom_color.';\n\t\t\t}\n .toggle_search_icon{\n border-top:50px solid '.$search_toggle_bar_BG_color.'; \n }\n .toggle_search_icon i{\n color:'.$search_toggle_bar_icon_color.';\n }';\n\t\t\t//Talent Single-page Settings\n $css .= '.single_tabs_content_wrapper li.tab-active a{\n \t\t\tbackground:'.$single_page_tabs_active_BG_color.'!important;\n \t\t\tcolor:'.$single_page_tabs_active_color.'!important;\n \t\t\tborder: 1px solid '.$single_page_tabs_active_border_color.'!important;\n \t} \n \tul.tabs_content_wrapper li a{\n \t\tbackground:'.$single_page_tabs_BG_color.'!important;\n \t\t\tcolor:'.$single_page_tabs_color.'!important;\n \t\t\tborder: 1px solid '.$single_page_tabs_border_color.'!important;\n \t}\n \tul.tabs_content_wrapper{\n \t\tborder-bottom: 3px solid '.$single_page_tabs_border_bottom_color.';\n \t}\n \t.cpt_posts_add_remove{\n \t\tbackground:'.$shortlist_tab_BG_color.';\n border:1px solid '.$shortlist_tab_border_color.';\n \t}\n \t.cpt_posts_add_remove a{\n \t\tcolor:'.$shortlist_tab_color.';\n \t}\n .pods_cpt_single_compcard a{\n background:'.$compcard_tab_BG_color.';\n border:1px solid '.$compcard_tab_border_color.';\n color:'.$compcard_tab_color.';\n }\n .post_single_page_img_details h2{\n\t color:'.$single_page_post_title_color.';\n\t }\n\t .post_single_page_img_details .one_fourth h4 a, .post_single_page_img_details .one_fourth h4{\n\t \tcolor:'.$single_page_category_link_color.';\n\t }\n ';\n\n //Talent Post Color Settings\n\n $css .='.post-content-wrapper h3, .grid-view-container h3{\n \tcolor:'.$post_title_color.'!important;\n }\n .post-content-wrapper .grid-view-container h3:before, .grid-view-container h3:before{\n \tbackground:'.$post_title_color.'!important;\n }\n .post-content-wrapper .grid-view-container:hover h3, .grid-view-container:hover h3{\n \tcolor:'.$post_title_hover_color.'!important;\n }\n .post-content-wrapper .grid-view-container a:hover h3:before, .grid-view-container a:hover h3:before{\n \tbackground:'.$post_title_hover_color.'!important;\n }\n .post-content-wrapper .title-meta-data-wrapper .general-meta-fields-info-wrapper .post-meta-general-info span, .grid-view-container .title-meta-data-wrapper{\n \tcolor:'.$post_meta_fields_text_hover_color.'!important;\n }\n .post-content-wrapper .grid-view-container .grid-view-image .title-meta-data-wrapper, .grid-view-container .title-meta-data-wrapper{\n \tbackground:'.$post_meta_fields_text_hover_BG_color.'!important;\n }';\n\t// Page title Color settings\t\t\t\n\t $css .= '.kaya-page-titlebar-wrapper{\n background:'.$page_titlebar_bg_color.';\n padding:'.$page_titlebar_padding_tb.'px 0px;\n }\n .kaya-page-titlebar-wrapper .page-title, .kaya-page-titlebar-wrapper a, .kaya-page-titlebar-wrapper, .page-title a{\n color:'.$page_titlebar_color.';\n }\n .kaya-page-titlebar-wrapper{\n \ttext-align:'.$title_position.';\n }\n .kaya-page-titlebar-wrapper .page-title{\n font-size:'.$page_titlebar_font_size.'px;\n margin-bottom: 10px;\n }\n .kaya-page-titlebar-wrapper a, .kaya-page-titlebar-wrapper{\n font-size:'.$bread_crumb_font_size.'px;\n }\n .kaya-page-titlebar-wrapper a {\n\t\t\t color: '.$bread_crumb_link_color.';\n\t\t\t}';\n\n\t// Page Mid Content\t Color settings\t\t\n\t$css .= 'body{\n\t\t\t\tbackground:'.$page_mid_contant_bg_color.';\n\t\t\t\tcolor:'.$page_mid_content_color.';\n\t\t\t}\n\t\t\tbody h1, body h2, body h3, body h4, body h5, body h6,\n\t\t\tbody h1 a, body h2 a, body h3 a, body h4 a, body h5 a,body h6 a{\n\t\t\t\tcolor:'.$page_mid_content_title_color.';\n\t\t\t}\n\t\t\tbody a{\n\t\t\t\tcolor:'.$page_mid_contant_links_color.';\n\t\t\t}\n\t\t\tbody a:hover{\n\t\t\t\tcolor:'.$page_mid_contant_links_hover_color.';\n\t\t\t}';\n\n\t// Page sidebar Color settings\t\n\t$css .= 'button, input[type=\"button\"], input[type=\"reset\"], input[type=\"submit\"]{\n\t\t\t\tcolor:'.$sidebar_default_search_btn_color.';\n\t\t\t\tbackground:'.$sidebar_default_search_btn_BG_color.';\n\t\t\t}\n\t\t\t#sidebar{\n\t\t\t\tcolor:'.$sidebar_content_color.';\n\t\t\t}\n\t\t\t#sidebar h1, #sidebar h2, #sidebar h3, #sidebar h4, #sidebar h5, #sidebar h6{\n\t\t\t\tcolor:'.$sidebar_title_color.';\n\t\t\t}\n\t\t\t#sidebar .widget-title:before{\n\t\t\t\tbackground:'.$sidebar_title_border_color.';\n\t\t\t}\n\t\t\t#sidebar a{\n\t\t\t\tcolor:'.$sidebar_links_color.';\n\t\t\t}\n\t\t\t#sidebar a:hover{\n\t\t\t\tcolor:'.$sidebar_links_hover_color.';\n\t\t\t}\n\t\t\t#sidebar li{\n\t\t\t\tborder-bottom:1px solid '.$sidebar_list_border_color.';\n\t\t\t}\n\t\t\t.tagcloud a{\n\t\t\t\tcolor:'.$sidebar_tagcloud_font_color.'!important;\n\t\t\t}\n\t\t\t.tagcloud a:hover{\n\t\t\t\tcolor:'.$sidebar_tagcloud_hover_font_color.'!important;\n\t\t\t\tbackground:'.$sidebar_tagcloud_hover_bg_color.';\n\t\t\t\tborder-right:3px solid'.$sidebar_tagcloud_hover_border_color.';\n\t\t\t}';\n\t// Footer Color settings\t\n\n\t// Footer Footer Color settings\t\n\t//pagination Color Settings\t\t\n\t$css .= 'ul.page-numbers li a, .page-links a{\n\t\t\t\tbackground:'.$pagination_bg_color.'!important;\n\t\t\t\tcolor:'.$pagination_link_color.'!important;\n\t\t\t}\n\t\t\t .pagination .current, #kaya-mid-content-wrapper .page-links > span, ul.page-numbers li a:hover, .page-links a:hover{\n\t\t\t\tbackground:'.$pagination_active_bg_color.'!important;\n\t\t\t\tcolor:'.$pagination_active_link_color.'!important;\n\t\t\t}';\t\t\t\t\t\n\t// End Styles\n\t\t\t\n\t$css = preg_replace( '/\\s+/', ' ', $css ); \n echo \"<style>\\n\" .wp_kses($css, true). \"\\n</style>\";\t\n}", "function wp_templating_constants()\n {\n }", "function thirdtheme_theme_support()\n {\n add_theme_support('post-thumbnails');\n \n // image size\n add_image_size('small-thumbnail',350,350,true);\n add_image_size('baner-image',1000,400,true);\n \n //post format\n add_theme_support('post-formats',array('aside','gallary','link'));\n }", "public static function setSiteStyling()\n {\n $styling = SiteManagement::getMetaValue('settings');\n if (!empty($styling[0]['enable_theme_color']) && $styling[0]['enable_theme_color'] == 'true') {\n if (!empty($styling[0]['primary_color'])) {\n ob_start(); ?>\n <style>\n /* Theme Text Color */\n a,\n p a,\n p a:hover,\n a:hover,\n a:focus,\n a:active,\n .wt-navigation>ul>li:hover>a,\n .wt-navigation>ul>li.current-menu-item>a,\n .wt-navarticletab li:hover a,\n .wt-navarticletab li a.active,\n .wt-categoriescontent li a:hover,\n .wt-joinsteps li.wt-active a,\n .wt-effectivecontent li:hover a,\n .wt-articlesingle-content .wt-description .wt-blockquotevone q,\n .wt-filtertag li:hover a,\n .wt-userlisting-breadcrumb li .wt-clicksave,\n .wt-clicksave,\n .wt-qrcodefeat h3 span,\n .wt-comfollowers ul li:hover a span,\n .wt-postarticlemeta .wt-following span,\n .tg-qrcodefeat h3 span,\n .active-category {\n color: <?php echo $styling[0]['primary_color'] ?>;\n }\n\n /* Theme Background Color */\n .wt-btn:hover,\n .wt-dropdowarrow,\n .navbar-toggle,\n .wt-btn,\n .wt-navigationarea .wt-navigation>ul>li>a:after,\n .wt-searchbtn,\n .wt-sectiontitle:after,\n .wt-navarticletab li a:after,\n .wt-pagination ul li a:hover,\n .wt-pagination ul li.wt-active a,\n .wt-widgettag a:hover,\n .wt-articlesingle-content .wt-description blockquote span i,\n .wt-searchgbtn,\n .wt-filtertagclear a,\n .ui-slider-horizontal .ui-slider-range,\n .wt-btnsearch,\n .wt-newnoti a em,\n .wt-notificationicon>a:after,\n .wt-rightarea .wt-nav .navbar-toggler,\n .wt-usersidebaricon span,\n .wt-usersidebaricon span i,\n .wt-filtertag .wt-filtertagclear a,\n .loader:before,\n .wt-offersmessages .wt-ad:after,\n .wt-btnsendmsg,\n .wt-tabstitle li a:before,\n .wt-tabscontenttitle:before,\n .wt-tablecategories thead tr th:first-child:before,\n .wt-tablecategories tbody tr td:first-child:before,\n .wt-slidernav .wt-prev:hover,\n .wt-slidernav .wt-next:hover,\n .vb>.vb-dragger>.vb-dragger-styler,\n .wt-pagination ul li span,\n .la-banner-settings .wt-location h5:after,\n .la-section-settings .wt-location h6:after,\n .wt-forgotpassword-holder .card .card-body form .form-group button[type=submit] {\n background: <?php echo $styling[0]['primary_color'] ?>;\n }\n\n /* Theme Border Color */\n input:focus,\n .select select:focus,\n .form-control:focus,\n .wt-navigation>ul>li>.sub-menu,\n .wt-pagination ul li a:hover,\n .wt-widgettag a:hover,\n .wt-joinsteps li.wt-active a,\n .wt-filtertag li:hover a,\n .wt-filtertag .wt-filtertagclear a,\n .wt-themerangeslider .ui-slider-handle,\n .wt-clicksavebtn,\n .wt-pagination ul li.wt-active a,\n .wt-usernav>ul,\n .wt-pagination ul li span {\n border-color: <?php echo $styling[0]['primary_color'] ?>;\n }\n\n /* RGBA Background Color */\n .loader{\n background: <?php echo $styling[0]['primary_color'] ?>;\n background: -moz-linear-gradient(left, <?php echo $styling[0]['primary_color'] ?> 10%, rgba(255, 88, 81, 0) 42%);\n background: -webkit-linear-gradient(left, <?php echo $styling[0]['primary_color'] ?> 10%, rgba(255, 88, 81, 0) 42%);\n background: -o-linear-gradient(left, <?php echo $styling[0]['primary_color'] ?> 10%, rgba(255, 88, 81, 0) 42%);\n background: -ms-linear-gradient(left, <?php echo $styling[0]['primary_color'] ?> 10%, rgba(255, 88, 81, 0) 42%);\n background: linear-gradient(to right, <?php echo $styling[0]['primary_color'] ?> 10%, rgba(255, 88, 81, 0) 42%);\n }\n </style>\n <?php return ob_get_clean();\n }\n }\n }", "function okcdesign_theme() {\n $themes = array();\n theme_plugins_invoke(__FUNCTION__, $themes);\n return $themes;\n}", "function sm_get_titlebar_style() {\n\t$titlebar_style_option = 'titlebar-blog-style';\n\tif( is_search() ) {\n\t\t$titlebar_style_option = 'titlebar-search-style';\n\t} elseif( is_404() ) {\n\t\t$titlebar_style_option = 'titlebar-404-style';\n\t} elseif( is_page() ) {\n\t\t$titlebar_style_option = 'titlebar-page-style';\n\t} elseif( get_post_type() == 'crf_portfolio' ) {\n\t\t$titlebar_style_option = 'titlebar-portfolio-style';\n\t} elseif( get_post_type() == 'product' ) {\n\t\t$titlebar_style_option = 'titlebar-woocommerce-style';\n\t}\n\tif( is_singular() ) {\n\t\treturn crf_get_option_value( $titlebar_style_option, 'titlebar_style' );\n\t} else {\n\t\treturn crf_get_theme_mod_value( $titlebar_style_option );\n\t}\n}", "function thrive_dashboard_is_thrive_theme()\n{\n global $is_thrive_theme;\n if (isset($is_thrive_theme) && $is_thrive_theme == true) {\n return true;\n } else {\n return false;\n }\n}", "function LiangLeeThemeDesigner_lib(){\n/*\n * Register Global Variables for Topbar Background image.\n *\n * @access public\n */\nglobal $liangtopbar_bg;\n/*\n * Register Global Variables for Topbar Background color.\n *\n * @access public\n */\nglobal $liangtopbar_color;\n/*\n * Register Global Variables for Topbar height.\n *\n * @access public\n */\nglobal $liangtopbar_height;\n/*\n * Register Global Variables for Header Background Color.\n *\n * @access public\n */\nglobal $liangheader_color;\n/*\n * Register Global Variables for Head Logo.\n *\n * @access public\n */\nglobal $lianglogo;\n/*\n * Register Global Variables for Header Background image.\n *\n * @access public\n */\nglobal $liangheader_bgimg;\n/*\n * Register Global Variables for Search Bar Border Color.\n *\n * @access public\n */\nglobal $liangsearch_br;\n\n/*\n * Register Global Variables for Header Height.\n *\n * @access public\n */\nglobal $liangheader_height;\n/*\n * Register Global Variables for WalledGarden Image.\n *\n * @access public\n */\nglobal $liangwalledg_bgimg;\n\n/*\n * Fetch Settings for Header Height.\n *\n * @access public\n */\n$liang_walledg = elgg_get_plugin_setting(\"Leethemed_walledg_background\", \"LiangLeeThemeDesigner\");\nif (!elgg_get_plugin_setting(\"Leethemed_walledg_background\", \"LiangLeeThemeDesigner\")) {\n $liangwalledg_bgimg = '90px';\n } else { \n $liangwalledg_bgimg = $liang_walledg;\n}\n\n/*\n * Fetch Settings for Header Height.\n *\n * @access public\n */\n$liang_header_height = elgg_get_plugin_setting(\"Leethemed_header_height\", \"LiangLeeThemeDesigner\");\nif (!elgg_get_plugin_setting(\"Leethemed_header_height\", \"LiangLeeThemeDesigner\")) {\n $liangheader_height = '90px';\n } else { \n $liangheader_height = $liang_header_height;\n}\n/*\n * Fetch Settings for Topbar Background.\n *\n * @access public\n */\n$liang_topbar_bg = elgg_get_plugin_setting(\"Leethemed_background\", \"LiangLeeThemeDesigner\");\nif (!elgg_get_plugin_setting(\"Leethemed_background\", \"LiangLeeThemeDesigner\")) {\n $liangtopbar_bg = elgg_get_site_url().'_graphics/toptoolbar_background.gif';\n } else { \n $liangtopbar_bg = $liang_topbar_bg;\n}\n\n/*\n * Fetch Settings for Topbar Background Color.\n *\n * @access public\n */\n$liang_topbar_color = elgg_get_plugin_setting(\"Leethemed_tbar_bgcolor\", \"LiangLeeThemeDesigner\");\nif (!elgg_get_plugin_setting(\"Leethemed_tbar_bgcolor\", \"LiangLeeThemeDesigner\")) {\n $liangtopbar_color = '#333333';\n } else { \n $liangtopbar_color = $liang_topbar_color;\n}\n/*\n * Fetch Settings for Topbar Height.\n *\n * @access public\n */\n$liang_topbar_height = elgg_get_plugin_setting(\"Leethemed_tbar_height\", \"LiangLeeThemeDesigner\");\nif (!elgg_get_plugin_setting(\"Leethemed_tbar_height\", \"LiangLeeThemeDesigner\")) {\n $liangtopbar_height = '24';\n } else { \n $liangtopbar_height = $liang_topbar_height;\n}\n/*\n * Fetch Settings for Header Background image.\n *\n * @access public\n */\n$liang_header_bgimg = elgg_get_plugin_setting(\"Leethemed_header_bgimg\", \"LiangLeeThemeDesigner\");\nif (!elgg_get_plugin_setting(\"Leethemed_header_bgimg\", \"LiangLeeThemeDesigner\")) {\n $liangheader_bgimg = '#4690D6 url('.elgg_get_site_url().'_graphics/header_shadow.png) repeat-x bottom left';\n } else { \n $liangheader_bgimg = $liang_header_bgimg;\n}\n/*\n * Fetch Settings for Header Background Image.\n *\n * @access public\n */\n$liang_header_color = elgg_get_plugin_setting(\"Leethemed_header_bgcolor\", \"LiangLeeThemeDesigner\");\nif (!elgg_get_plugin_setting(\"Leethemed_header_bgcolor\", \"LiangLeeThemeDesigner\")) {\n $liangheader_color = '#4690D6';\n } else { \n $liangheader_color = $liang_header_color;\n}\n/*\n * Fetch Settings for Topbar Logo.\n * Display ($site->name) site name if logo not setup.\n * @access public\n */\n$liang_logo = elgg_get_plugin_setting(\"Leethemed_logo\", \"LiangLeeThemeDesigner\");\nif (!elgg_get_plugin_setting(\"Leethemed_logo\", \"LiangLeeThemeDesigner\")) {\n $site = elgg_get_site_entity();\n $site_name = $site->name;\n $lianglogo = $site_name;\n } else { \n $lianglogo = $liang_logo;\n}\n\n}", "function CustomThemeSupport(){\n // coloring\n if(!empty(SELF::$WPgutenberg_ColorPalette)):\n $newColors = array();\n foreach (SELF::$WPgutenberg_ColorPalette as $colorkey => $color) {\n $newColors[] = array(\n 'name' => __( $color[\"key\"], 'WPgutenberg' ),\n 'slug' => prefix_core_BaseFunctions::Slugify($color[\"key\"]),\n 'color'\t=> $color[\"value\"],\n );\n }\n add_theme_support( 'editor-color-palette', $newColors );\n endif;\n // font sizes\n if(!empty(SELF::$WPgutenberg_FontSizes)):\n $newColors = array();\n foreach (SELF::$WPgutenberg_FontSizes as $sizekey => $size) {\n $newColors[] = array(\n 'name' => __( $size[\"key\"], 'WPgutenberg' ),\n 'slug' => prefix_core_BaseFunctions::Slugify($size[\"key\"]),\n 'size'\t=> $size[\"value\"],\n );\n }\n add_theme_support( 'editor-font-sizes', $newColors );\n // disable custom color picker\n if(SELF::$WPgutenberg_ColorPalette_CP == 0):\n add_theme_support( 'disable-custom-colors');\n endif;\n endif;\n // disable default patterns\n if($this->WPgutenberg_DefaultPatterns == 0):\n remove_theme_support( 'core-block-patterns' );\n endif;\n\n }", "function mytheme_setup() {\n add_theme_support( 'align-wide' );\n }", "function adventure_inline_css() {\r\n \r\n //Favicon\r\n if ( get_theme_mod('favicon_setting') != '' ) {\r\n echo '<!-- Favicon Image -->' . \"\\n\";\r\n echo '<link rel=\"shortcut icon\" href=\"' . get_theme_mod('favicon_setting') . '\" />' . \"\\n\\n\";}\r\n\t\t\r\n\t\t// Convert Content from Hex to RGB\r\n\t\tif ( get_theme_mod('backgroundcolor_setting') != '#b4b09d' ) {\r\n\t\t\t$hex = str_replace(\"#\", \"\", get_theme_mod('backgroundcolor_setting'));\r\n\t\t\tif(strlen($hex) == 3) {\r\n\t\t\t\t$r = hexdec(substr($hex,0,1).substr($hex,0,1));\r\n\t\t\t\t$g = hexdec(substr($hex,1,1).substr($hex,1,1));\r\n\t\t\t\t$b = hexdec(substr($hex,2,1).substr($hex,2,1)); }\r\n\t\t\telse {\r\n\t\t\t\t$r = hexdec(substr($hex,0,2));\r\n\t\t\t\t$g = hexdec(substr($hex,2,2));\r\n\t\t\t\t$b = hexdec(substr($hex,4,2)); } }\r\n\r\n\t\t// Convert Sidebar from Hex to RGB\r\n\t\tif ( ( get_theme_mod('sidebarcolor_setting') != '#000000' ) ) {\r\n\t\t$hexs = str_replace(\"#\", \"\", get_theme_mod('sidebarcolor_setting'));\r\n\r\n\t\tif(strlen($hexs) == 3) {\r\n\t\t\t$rs = hexdec(substr($hexs,0,1).substr($hexs,0,1));\r\n\t\t\t$gs = hexdec(substr($hexs,1,1).substr($hexs,1,1));\r\n\t\t\t$bs = hexdec(substr($hexs,2,1).substr($hexs,2,1)); }\r\n\t\telse {\r\n\t\t\t$rs = hexdec(substr($hexs,0,2));\r\n\t\t\t$gs = hexdec(substr($hexs,2,2));\r\n\t\t\t$bs = hexdec(substr($hexs,4,2)); } }\r\n\t\t\r\n if ( ( get_theme_mod('titlefontstyle_setting') != 'Default') || (get_theme_mod('taglinefontstyle_setting') != 'Default') || (get_theme_mod('bodyfontstyle_setting') != 'Default') || (get_theme_mod('headerfontstyle_setting') != 'Default')) {\r\n echo '<!-- Custom Font Styles -->' . \"\\n\";\r\n if (get_theme_mod('titlefontstyle_setting') != 'Default') {echo \"<link href='https://fonts.googleapis.com/css?family=\" . get_theme_mod('titlefontstyle_setting') . \"' rel='stylesheet' type='text/css'>\" . \"\\n\"; }\r\n if (get_theme_mod('taglinefontstyle_setting') != 'Default') {\techo \"<link href='https://fonts.googleapis.com/css?family=\" . get_theme_mod('taglinefontstyle_setting') . \"' rel='stylesheet' type='text/css'>\" . \"\\n\"; }\r\n if (get_theme_mod('bodyfontstyle_setting') != 'Default') {\techo \"<link href='https://fonts.googleapis.com/css?family=\" . get_theme_mod('bodyfontstyle_setting') . \"' rel='stylesheet' type='text/css'>\" . \"\\n\"; }\r\n if (get_theme_mod('headerfontstyle_setting') != 'Default') {\techo \"<link href='https://fonts.googleapis.com/css?family=\" . get_theme_mod('headerfontstyle_setting') . \"' rel='stylesheet' type='text/css'>\" . \"\\n\"; }\r\n echo '<!-- End Custom Fonts -->' . \"\\n\\n\";}\r\n\r\n\t\techo '<!-- Custom CSS Styles -->' . \"\\n\";\r\n echo '<style type=\"text/css\" media=\"screen\">' . \"\\n\";\r\n if (is_page() || is_single()) $featured_background = get_post_meta( get_queried_object_ID(), 'featured-background', true ); if (!empty($featured_background)) echo ' body, body.custom-background {background-image:url(' . $featured_background . '); background-size:cover;}' . \"\\n\";\r\n\t\tif ( get_theme_mod('backgroundsize_setting') != 'auto' ) echo '\tbody, body.custom-background {background-size:' . get_theme_mod('backgroundsize_setting') . ';}' . \"\\n\";\r\n\t\tif ( get_theme_mod('backgroundcolor_setting') != '#b4b09d' ) echo '\t.contents {background: rgba(' . $r . ',' . $g . ', ' . $b . ', ' . get_theme_mod('contentbackground_setting') . ');}' . \"\\n\";\r\n if ( get_theme_mod('backgroundcolor_setting') != '#b4b09d' ) echo ' @media only screen and (max-width:55em) { .contents {background: rgba(' . $r . ',' . $g . ', ' . $b . ', .95 );} }' . \"\\n\";\r\n\t\tif ( ( get_theme_mod('sidebarcolor_setting') != '#000000' ) || ( get_theme_mod('sidebarbackground_setting') != '.50' ) ) echo '\taside {background: rgba(' . $rs . ',' . $gs . ', ' . $bs . ', ' . get_theme_mod('sidebarbackground_setting') . ');}' . \"\\n\";\r\n\t\tif ( get_theme_mod('titlecolor_setting') != '#eee2d6' ) echo '\t.header h1 a {color:' . get_theme_mod('titlecolor_setting') . ';}' . \"\\n\";\r\n\t\tif ( get_theme_mod('taglinecolor_setting') != '#066ba0' ) echo '\t.header h1 i {color:' . get_theme_mod('taglinecolor_setting') . ';}' . \"\\n\";\r\n\t\tif ( get_theme_mod('title_size_setting') != '4.0' ) echo '\t.header h1 {font-size:' . get_theme_mod('title_size_setting') . 'em;}' . \"\\n\"; \r\n\t\tif ( get_theme_mod('tagline_rotation_setting') != '-1.00' ) echo '\t.header h1 i {-moz-transform:rotate(' . get_theme_mod('tagline_rotation_setting') . 'deg); transform:rotate(' . get_theme_mod('tagline_rotation_setting') . 'deg);}' . \"\\n\";\r\n\t\tif ( (get_theme_mod('bannerimage_setting') != 'purple.png') && (get_theme_mod('bannerimage_setting') != '') ) echo '\t.header {background: bottom url(' . get_template_directory_uri() . '/images/' . get_theme_mod('bannerimage_setting') . ');}'. \"\\n\";\r\n\t\tif ( get_theme_mod('headerspacing_setting') != '18' ) echo '\t.spacing {height:' . get_theme_mod('headerspacing_setting') . 'em;}'. \"\\n\";\r\n\t\tif ( get_theme_mod('menu_setting') == 'notitle' ) { echo '\t.header {position: fixed;margin-top:0px;}' . \"\\n\" . '\t.admin-bar .header {margin-top:28px;}' . \"\\n\" . '.header h1:first-child, .header h1:first-child i, .header img:first-child {display: none;}' . \"\\n\"; }\r\n\t\tif ( get_theme_mod('menu_setting') == 'bottom' ) { echo '\t.header {position: fixed; bottom:0; top:auto;}' . \"\\n\" . '\t.header h1:first-child, .header h1:first-child i, .header img:first-child {display: none;}' . \"\\n\" . '.header li ul {bottom:2.78em; top:auto;}' . \"\\n\";}\r\n if ( get_theme_mod('border_setting') == 'hidden' ) { echo '\t.contents {border:none; box-shadow:0 0 3px #111;}' . \"\\n\";}\r\n if ( (get_theme_mod('border_setting') != '3px') && (get_theme_mod('border_setting') != 'hidden') ) { echo '\t.contents {border-width:' . get_theme_mod('border_setting') . ';}' . \"\\n\";}\r\n if ( get_theme_mod('bordercolor_setting') != '#4a4646') { echo '\t.contents {border-color:' . get_theme_mod('bordercolor_setting') . ';}' . \"\\n\";}\r\n if ( get_theme_mod('content_bg_setting') != '') { echo ' .contents {background-image:url(' . get_theme_mod('content_bg_setting') . ');}' . \"\\n\";}\r\n \r\n\t\t\r\n\t\tif ( get_theme_mod('titlefontstyle_setting') != 'Default' ) {\r\n\t\t\t$q = get_theme_mod('titlefontstyle_setting');\r\n\t\t\t$q = preg_replace('/[^a-zA-Z0-9]+/', ' ', $q);\r\n\t\t \techo\t\"\t.header h1 {font-family: '\" . $q . \"';}\" . \"\\n\"; }\r\n\r\n\t\tif ( get_theme_mod('taglinefontstyle_setting') != 'Default') {\r\n\t\t\t$x = get_theme_mod('taglinefontstyle_setting');\r\n\t\t\t$x = preg_replace('/[^a-zA-Z0-9]+/', ' ', $x);\r\n\t\t\techo\t\"\t.header h1 i {font-family: '\" . $x . \"';}\" . \"\\n\"; }\r\n\r\n\r\n if ( get_theme_mod('bodyfontstyle_setting') != 'Default' ) {\r\n $xs = get_theme_mod('bodyfontstyle_setting');\r\n $xs = preg_replace('/[^a-zA-Z0-9]+/', ' ', $xs);\r\n echo\t\"\tbody {font-family: '\" . $xs . \"';}\" . \"\\n\"; }\r\n \r\n if ( get_theme_mod('headerfontstyle_setting') != 'Default' ) {\r\n $xd = get_theme_mod('headerfontstyle_setting');\r\n $xd = preg_replace('/[^a-zA-Z0-9]+/', ' ', $xd);\r\n echo\t\"\t.contents h1, .contents h2, .contents h3, .contents h4, .contents h5, .contents h6, aside h1, aside h2, aside h3, aside h4, aside h5, aside h6 {font-family: '\" . $xd . \"';}\" . \"\\n\"; }\r\n \r\n if ( get_theme_mod('linkcolor_setting') != '#0b6492' ) echo '\ta {color:' . get_theme_mod('linkcolor_setting') . ';}' . \"\\n\";\r\n if ( get_theme_mod('linkcolorhover_setting') != '#FFFFFF' ) echo '\ta:hover {color:' . get_theme_mod('linkcolorhover_setting') . ';}' . \"\\n\";\r\n if ( get_theme_mod('link_text_shadow_setting') != '' ) echo '\t.contents a {text-shadow:.1em .1em 0 ' . get_theme_mod('link_text_shadow_setting') . ';}' . \"\\n\";\r\n if ( get_theme_mod('fontcolor_setting') != '#000000' ) echo '\tbody {color:' . get_theme_mod('fontcolor_setting') . ';}' . \"\\n\";\r\n if ( get_theme_mod('navcolor_setting') != '#CCCCCC' ) echo '\t.header li a {color:' . get_theme_mod('navcolor_setting') . ';}' . \"\\n\";\r\n if ( get_theme_mod('navcolorhover_setting') != '#0b6492' ) echo '\t.header li a:hover {color:' . get_theme_mod('navcolorhover_setting') . ';}' . \"\\n\";\r\n if ( get_theme_mod('dropcolor_setting') != '#BBBBBB' ) echo '\t.header li ul li a {color:' . get_theme_mod('dropcolor_setting') . ';}' . \"\\n\";\r\n if ( get_theme_mod('dropcolorhover_setting') != '#0b6492' ) echo '\t.header li ul li a:hover {color:' . get_theme_mod('dropcolorhover_setting') . ';}' . \"\\n\";\r\n if ( get_theme_mod('fontsizeadjust_setting') != '1' ) echo '\t.contents, aside {font-size:' . get_theme_mod('fontsizeadjust_setting') . 'em;}' . \"\\n\";\r\n if ( get_theme_mod('removefooter_setting') != 'visible' ) echo '\tfooter {visibility:' . get_theme_mod('removefooter_setting') . ';}' . \"\\n\";;\r\n if ( get_theme_mod('header_image_width_setting') != '20' ) {\r\n $header_margin_percentage = (100 - get_theme_mod('header_image_width_setting')) / 2;\r\n echo '\t.header li.website_logo {margin:0 ' . $header_margin_percentage . '%; width:' . get_theme_mod('header_image_width_setting') . '%;}' . \"\\n\";}\r\n if ( get_theme_mod('custombanner_setting') != '') echo '\t.header {background: bottom url(' . get_theme_mod('custombanner_setting') . ');}' . \"\\n\";\r\n\r\n\t\techo '</style>' . \"\\n\";\r\n\t\techo '<!-- End Custom CSS -->' . \"\\n\";\r\n\t\techo \"\\n\"; }", "function get_peepso_color_template() {\n $color = \"\";\n\n if (class_exists( 'PeepSo' )) {\n $color = PeepSo::get_option('site_css_template','');\n }\n\n return $color;\n}", "function wp_get_active_and_valid_themes()\n {\n }", "function um_theme_setup() {\n\t\tload_theme_textdomain( 'um-theme' );\n\n\t\t/*\n\t * Add default posts and comments RSS feed links to head.\n\t */\n\t\tadd_theme_support( 'automatic-feed-links' );\n\n\t\t/*\n\t\t * Let WordPress manage the document title.\n\t\t * By adding theme support, we declare that this theme does not use a\n\t\t * hard-coded <title> tag in the document head, and expect WordPress to\n\t\t * provide it for us.\n\t\t */\n\t\tadd_theme_support( 'title-tag' );\n\n\t\t/*\n\t\t * Enable support for Post Thumbnails on posts and pages.\n\t\t *\n\t\t * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails\n\t\t */\n\t\tadd_theme_support( 'post-thumbnails' );\n\t\tadd_image_size( 'um-theme-thumb', 820, 400, array( 'center', 'center' ) );\n\t\tset_post_thumbnail_size( 'um-theme-thumb', 820, 400 );\n\n\t\t/*\n\t\t * Enable support responsive embedded content\n\t\t * See: https://wordpress.org/gutenberg/handbook/extensibility/theme-support/#responsive-embedded-content\n\t\t */\n\t\tadd_theme_support( 'responsive-embeds' );\n\n\t\t// Add support for default block styles.\n\t\tadd_theme_support( 'wp-block-styles' );\n\n\t\t// Add support for full and wide align images.\n\t\tadd_theme_support( 'align-wide' );\n\n\t\t// Adds support for editor color palette.\n\t\tadd_theme_support( 'editor-color-palette', array(\n\t\t array(\n\t\t 'name' \t=> __( 'sky blue', 'um-theme' ),\n\t\t 'slug' \t=> 'strong-magenta',\n\t\t 'color' => '#6596ff',\n\t\t ),\n\t\t array(\n\t\t 'name' \t=> __( 'light grayish magenta', 'um-theme' ),\n\t\t 'slug' \t=> 'light-grayish-magenta',\n\t\t 'color' => '#333333',\n\t\t ),\n\t\t array(\n\t\t 'name' \t=> __( 'very light gray', 'um-theme' ),\n\t\t 'slug' \t=> 'very-light-gray',\n\t\t 'color' => '#eeeeee',\n\t\t ),\n\t\t array(\n\t\t 'name' \t=> __( 'very dark gray', 'um-theme' ),\n\t\t 'slug' \t=> 'very-dark-gray',\n\t\t 'color' => '#444444',\n\t\t ),\n\t\t) );\n\n\t\t/**\n\t\t * Register custom Custom Navigation Menus.\n\t\t * This theme uses wp_nav_menu() in the following locations.\n\t\t *\n\t\t * @link https://developer.wordpress.org/reference/functions/register_nav_menus/\n\t\t * @since 1.0.0\n\t\t */\n\t\tregister_nav_menus(\n\t\t\t/**\n\t\t\t * Filter registered nav menus.\n\t\t\t *\n\t\t\t * @since 1.0.0\n\t\t\t *\n\t\t\t * @var array\n\t\t\t */\n\t\t\t(array) apply_filters( 'um_theme_nav_menus',\n\t\t\t\tarray(\n\t\t\t\t\t'header-top' \t\t=> esc_html__( 'Top Bar Menu', 'um-theme' ),\n\t\t\t\t\t'primary' \t\t\t=> esc_html__( 'Primary Menu', 'um-theme' ),\n\t\t\t\t\t'header-bottom' \t=> esc_html__( 'Bottom Bar Menu', 'um-theme' ),\n\t\t\t\t\t'profile-menu' \t\t=> esc_html__( 'User Header Menu', 'um-theme' ),\n\t\t\t\t\t'footer' \t\t\t=> esc_html__( 'Footer Menu', 'um-theme' ),\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\n\t\t// Add theme support for Custom Logo.\n\t\tadd_theme_support( 'custom-logo' );\n\n\t\t/*\n\t\t * Switch default core yorkup for search form, comment form, and comments\n\t\t * to output valid HTML5.\n\t\t */\n\t\tadd_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) );\n\n\t\tadd_theme_support( 'widget-customizer' );\n\n\t /*\n\t * Enable support for Customizer Selective Refresh.\n\t * See: https://make.wordpress.org/core/2016/02/16/selective-refresh-in-the-customizer/\n\t */\n\t\tadd_theme_support( 'customize-selective-refresh-widgets' );\n\n\t\tadd_theme_support( 'custom-background', (array) apply_filters( 'um_custom_background_args',\n\t\t\tarray(\n\t\t\t\t'default-color' => '#f6f9fc',\n\t\t\t\t'default-image' => '',\n\t\t\t)\n\t\t) );\n\n\t\t// Set the default content width.\n\t\t$GLOBALS['content_width'] = (int) apply_filters( 'um_content_width', 640 );\n\n\t\tadd_editor_style();\n\t}", "function my_theme_create_options() {\r\n $titan = TitanFramework::getInstance( 'genietheme' );\r\n \r\n // Create my admin panel\r\n $panel = $titan->createAdminPanel( array(\r\n 'name' => 'Theme Options',\r\n ) );\r\n \r\n \r\n $generaltab = $panel->createTab( array(\r\n 'name' => 'General Tab',\r\n ) );\r\n \r\n // Create options for my admin panel\r\n $generaltab->createOption( array(\r\n 'name' => 'LOGO',\r\n 'id' => 'head_logo',\r\n 'type' => 'upload',\r\n 'desc' => 'Upoad logo of site.'\r\n ) );\r\n \r\n $generaltab->createOption( array(\r\n 'name' => 'Header Scripts',\r\n 'id' => 'header_scripts',\r\n 'type' => 'textarea',\r\n 'desc' => 'Enter your header scripts or code like google analytics,webmaster code etc...'\r\n ) );\r\n \r\n \r\n $generaltab->createOption( array(\r\n 'name' => 'Footer Scripts',\r\n 'id' => 'footer_scripts',\r\n 'type' => 'textarea',\r\n 'desc' => 'Enter your footer scripts or code like google analytics,webmaster code etc...'\r\n ) );\r\n \r\n \r\n $generaltab->createOption( array(\r\n 'type' => 'save'\r\n ) );\r\n \r\n \r\n $titan = TitanFramework::getInstance( 'genietheme' );\r\n$productMetaBox = $titan->createMetaBox( array(\r\n 'name' => 'Additinal Job Information',\r\n 'post_type' => 'jobs',\r\n) );\r\n\r\n $productMetaBox->createOption( array(\r\n 'name' => 'Job Link',\r\n 'id' => 'j_link',\r\n 'type' => 'text',\r\n \r\n ) );\r\n $productMetaBox->createOption( array(\r\n 'name' => 'Experience Required',\r\n 'id' => 'exp_required',\r\n 'type' => 'text',\r\n \r\n ) );\r\n $productMetaBox->createOption( array(\r\n 'name' => 'Education Qualification',\r\n 'id' => 'edu_qual',\r\n 'type' => 'text',\r\n \r\n ) );\r\n $productMetaBox->createOption( array(\r\n 'name' => 'Preffered Nationality',\r\n 'id' => 'nationality',\r\n 'type' => 'text',\r\n \r\n ) );\r\n $productMetaBox->createOption( array(\r\n 'name' => 'Salary',\r\n 'id' => 'salary',\r\n 'type' => 'text',\r\n \r\n ) );\r\n $productMetaBox->createOption( array(\r\n 'name' => 'No. of vaccancies',\r\n 'id' => 'vaccancies',\r\n 'type' => 'text',\r\n \r\n ) );\r\n $productMetaBox->createOption( array(\r\n 'name' => 'Benefits',\r\n 'id' => 'benefits',\r\n 'type' => 'text',\r\n \r\n ) );\r\n $productMetaBox->createOption( array(\r\n 'name' => 'Gender',\r\n 'id' => 'gender',\r\n 'options' => array(\r\n '1' => 'Male',\r\n '2' => 'Female',\r\n '3' => 'Male/Female',\r\n ),\r\n 'type' => 'radio',\r\n 'desc' => 'Select gender',\r\n 'default' => '1',\r\n \r\n ) );\r\n\r\n \r\n}", "function hook_style() {\n\t\treturn null;\n\t}", "function techfak_get_default_theme_options() {\n\t$default_theme_options = array(\n\t\t'color_scheme' => 'blau',\n\t\t'theme_layout' => 'maxwidth'\n\t);\n\n\treturn apply_filters( 'techfak_default_theme_options', $default_theme_options );\n}", "function tvp40_theme_setup() { // todo: check docs and enable required extensions\n\n\t/* Enable custom template hierarchy. */\n\tadd_theme_support( 'hybrid-core-template-hierarchy' );\n\n\t/* The best thumbnail/image script ever. */\n\tadd_theme_support( 'get-the-image' );\n\n\t/* Pagination. */\n\tadd_theme_support( 'loop-pagination' );\n\n\t/* Nicer [gallery] shortcode implementation. */\n\tadd_theme_support( 'cleaner-gallery' );\n\n\t/* Better captions for themes to style. */\n\tadd_theme_support( 'cleaner-caption' );\n\n\t/* Automatically add feed links to <head>. */\n\tadd_theme_support( 'automatic-feed-links' );\n\n\t/* Post formats. */\n\tadd_theme_support( \n\t\t'post-formats', \n\t\tarray( 'aside', 'audio', 'chat', 'image', 'gallery', 'link', 'quote', 'status', 'video' ) \n\t);\n\n\t/* Editor styles. */\n\tadd_editor_style( tvp40_get_editor_styles() );\n\n\t/* Handle content width for embeds and images. */\n\thybrid_set_content_width( 1100 ); //todo:change to fit\n}", "public function setup_config() {\n\t\t$theme = wp_get_theme();\n\n\t\t$this->theme_args['name'] = apply_filters( 'ti_wl_theme_name', $theme->__get( 'Name' ) );\n\t\t$this->theme_args['template'] = $theme->get( 'Template' );\n\t\t$this->theme_args['version'] = $theme->__get( 'Version' );\n\t\t$this->theme_args['description'] = apply_filters( 'ti_wl_theme_description', $theme->__get( 'Description' ) );\n\t\t$this->theme_args['slug'] = $theme->__get( 'stylesheet' );\n\t}", "function wpstartup_theme_stylesheet(){\n $globalstyle = plugins_url().'/wp-startup/templates/basic/global.css';\n echo '<link rel=\"stylesheet\" id=\"wp-startup-theme-style\" href=\"'.$globalstyle.'\" type=\"text/css\" media=\"all\" />';\n // theme default element positioning javascript\n echo '<script type=\"text/javascript\" src=\"'.plugins_url().'/wp-startup/templates/basic/elements.js\"></script>';\n\n // theme custom styling\n $stylesheet = plugins_url().'/wp-startup/templates/basic/style.css';\n echo '<link rel=\"stylesheet\" id=\"wp-startup-theme-style\" href=\"'.$stylesheet.'\" type=\"text/css\" media=\"all\" />';\n\n}", "public function getDesignTheme();" ]
[ "0.6975341", "0.6934761", "0.6923352", "0.6846098", "0.6800352", "0.67814887", "0.67778784", "0.6696275", "0.6578756", "0.65785867", "0.656765", "0.6509342", "0.64821887", "0.6477647", "0.64766395", "0.6450171", "0.6445676", "0.6411165", "0.6311811", "0.63048834", "0.62879354", "0.6284141", "0.6280858", "0.62752324", "0.6268521", "0.6225519", "0.6220538", "0.6218144", "0.61995834", "0.6195001", "0.61829984", "0.61635053", "0.6155043", "0.6133923", "0.6131206", "0.6130849", "0.61304736", "0.6111573", "0.6111124", "0.6105298", "0.61041486", "0.61013484", "0.60964465", "0.6080665", "0.60679036", "0.6054023", "0.6053226", "0.60514545", "0.60439885", "0.60435086", "0.60167426", "0.6015806", "0.6004816", "0.5992867", "0.59916204", "0.5990082", "0.59595686", "0.5954136", "0.59421873", "0.59397036", "0.5939181", "0.59379876", "0.5933662", "0.592035", "0.5917463", "0.5905688", "0.5896447", "0.5894552", "0.58920383", "0.58892375", "0.5881798", "0.5881397", "0.5866593", "0.5863315", "0.58628964", "0.5857894", "0.58502334", "0.5849061", "0.58486885", "0.58446586", "0.5844272", "0.58431137", "0.58366066", "0.58349085", "0.5833701", "0.58316773", "0.5831189", "0.5825121", "0.58245385", "0.5823549", "0.58215445", "0.58214587", "0.5815558", "0.58097243", "0.5808137", "0.5808117", "0.5806432", "0.5803386", "0.5802476", "0.5802008", "0.58017224" ]
0.0
-1
create the show gallery
function tlp_show_process_gallery () { $ret = ''; $images = return_special_field('images'); $images_arr = array(); if (!empty($images)) { $images_arr = explode('||', $images); } $gallerylink = return_special_field('gallery'); $gallerycredit = return_special_field('gallerycredit'); if (!empty($images_arr) || !empty($gallerylink)) { if (!empty($images_arr)) { $count = count($images_arr); $width = floor(100 / $count); foreach ($images_arr as $image) { list($link, $img) = preg_split('/(?:\s+\.\.\.\s+)|(?:\|)/', $image); $ret .= '<a href="' . $link . '"><img src="' . $img . '" width="' . $width . '%"></a>'; } } if (!empty($gallerycredit) || !empty($gallerylink)) { $ret .= '<p class="show-gallery-link">'; if (!empty($gallerycredit)) { $ret .= '<span class="show-gallery-credit">Photos by ' . $gallerycredit . '.</span> '; } if (!empty($gallerylink)) { $ret .= '<a href="' . $gallerylink . '">Explore the entire gallery.</a>'; } $ret .= '</p>'; } } return $ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buildGallery ()\t{\n\t\t\t// Get the needed Information\n\t\t\t\n\t\t}", "public function run()\n {\n $initials = array(\n ['url' => 'winners-chapel-owerri-0-1542948878.jpg'],\n ['url' => 'winners-chapel-owerri-1-1542948878.jpg'],\n ['url' => 'winners-chapel-owerri-2-1542948878.jpg']\n );\n \n foreach($initials as $i){\n Gallery::create($i);\n }\n }", "function showcaseGallery($groupId, $title) {\n\t$config = new ConfigReader();\n\t$config->loadConfigFile('assets/core/config/widgets/showGroup/gallery.properties');\n\t\n\t$maxDisplay = $config->readValue('maxDisplay');\n\t$maxPerRow = $config->readValue('maxPerRow');\n\t$w = $config->readValue('maxImageSizeX');\n\t$h = $config->readValue('maxImageSizeY');\n\t\n\t//if the user is not an admin, validate that the user is a member of this group\n\t$result = mysql_query(\"SELECT parentId, imageUrl FROM imagesGroups WHERE parentId = '{$groupId}' AND inSeriesImage = 1 ORDER BY RAND() LIMIT $maxDisplay\");\n\t$total = mysql_num_rows($result);\n\t\n\tif ($total > 0) {\n\t\t\n\t\t$urlCategory =urlencode($row->category);\n\t\t$caption = htmlentities($row->caption);\n\t\t\n\t\t$x = 0;\n\t\t$count = 0;\n\t\t\n\t\t//adjust maxPerRow is it's greater than the returned number of objects\n\t\tif ($maxPerRow > $total) {\n\t\t\t\n\t\t\t$maxPerRow = $total;\n\t\t\t\n\t\t}\n\t\t\n\t\t$return .= \"\t\t\t\t<div id=\\\"gallery_container\\\">\\n\";\n\t\t$return .= \"\t\t\t\t\t<div class=\\\"header\\\"><a href=\\\"/groupgalleries/id/$groupId\\\">$title</a></div>\\n\";\n\t\t$return .= \"\t\t\t\t\t<div class=\\\"body\\\">\\n\";\n\t\t\n\t\twhile ($row = mysql_fetch_object($result)) {\n\t\t\t\n\t\t\t//count this row's column itteration\n\t\t\t$x++;\n\t\t\t\n\t\t\t//keep track of total displayed so far\n\t\t\t$count++;\n\t\t\t\n\t\t\t//determine if separator class is applied\n\t\t\tif ($x % $maxPerRow != 0) {\n\t\t\t\t\n\t\t\t\t$separator = \" separator\";\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t$separator = \"\";\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t$return .= \"<div class=\\\"gallery_image_container$separator\\\">\\n\";\n\t\t\t$return .= \"\t<a href=\\\"/groupgalleries/id/$groupId\\\"><img src=\\\"/file.php?load=$row->imageUrl&w=$w&h=$h\\\" border=\\\"0\\\"></a>\\n\";\n\t\t\t$return .= \"</div>\\n\";\n\t\t\t\n\t\t\t//row separator\n\t\t\tif ($x == $maxPerRow && $count < $total) {\n\t\t\t\t\n\t\t\t\t$return .= \"\t\t\t<div class=\\\"gallery_image_row_separator\\\"></div>\\n\";\n\t\t\t\t$x = 0;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t$return .= \"\t\t\t\t\t</div>\\n\";\n\t\t$return .= \"\t\t\t\t</div>\\n\";\n\t\t\n\t}\t\n\t\n\treturn($return);\n\t\n}", "public function create()\n {\n return view('dashboard.gallery.index')->with('galles',Gallery::get());\n\n }", "function slide_show()\n \t{\n // Setup show\n $show = ( $this->ipsclass->input['show'] == 'first' ) ? 0 : $this->ipsclass->input['show'];\n\n // Figure out if the user has chosen a value, or if we should go with a default\n $sort_key = ( $this->ipsclass->input['sort_key'] ) ? $this->ipsclass->input['sort_key'] : 'date';\n $order_key = ( $this->ipsclass->input['order_key'] ) ? $this->ipsclass->input['order_key'] : 'DESC';\n $prune_key = ( $this->ipsclass->input['prune_key'] ) ? $this->ipsclass->input['prune_key'] : '30';\n\n if( ! empty( $this->ipsclass->input['cat'] ) )\n {\n $where = \"category_id=\". intval( $this->ipsclass->input['cat'] );\n }\n else\n {\n $where = \"album_id=\". intval( $this->ipsclass->input['album'] );\n }\n\n // Get the picture\n $this->ipsclass->DB->cache_add_query( 'slideshow_image', \n\t\t\t\t\t\t\t array( 'where' => $where,\n\t\t\t\t\t\t\t\t\t 'prune' => $prune,\n 'sort_key' => $sort_key,\n 'order_key' => $order_key,\n 'show' => $show,\n\t\t\t\t\t\t\t), 'gallery_sql_queries' );\t\t\t\t\t\t\t\t\t \n $this->ipsclass->DB->simple_exec();\n \n // Show it\n $i = $this->ipsclass->DB->fetch_row();\n\n if( $this->ipsclass->DB->get_num_rows() )\n {\n $show++;\n $photo = $this->glib->make_image_link( $i );\n $type = ( $this->ipsclass->input['cat'] ) ? \"&amp;cat={$this->ipsclass->input['cat']}\" : \"&amp;album={$this->ipsclass->input['album']}&amp;mid={$i['mid']}\";\n $hfoff = ( $this->ipsclass->input['hfoff'] ) ? \"&hfoff=1\" : \"\";\n\t\t\t\t$close = ( $this->ipsclass->input['closewindow'] ) ? \"&closewindow=1\" : \"\";\n\t\t\t\t$url = \"{$this->ipsclass->base_url}automodule=gallery&cmd=slideshow&show={$show}&duration={$this->ipsclass->input['duration']}&sort_key={$this->ipsclass->input['sort_key']}&order_key={$this->ipsclass->input['order_key']}&prune_key={$this->ipsclass->input['prune_key']}{$type}{$hfoff}{$close}\";\n $this->output .= $this->html->ss_slide( $photo, $url, $i['id'] );\n }\n else\n {\n if( ! empty( $this->ipsclass->input['cat'] ) )\n {\n $url = \"automodule=gallery&cmd=sc&cat={$this->ipsclass->input['cat']}\";\n }\n else\n {\n $url = \"automodule=gallery&cmd=user&user={$this->ipsclass->input['mid']}&op=view_album&album={$this->ipsclass->input['album']}\";\n }\n\n\t\t\t\tif( $this->ipsclass->input['closewindow'] )\n\t\t\t\t{\n\t\t\t\t\techo '<html><body onload=\"javascript:window.close();\"></html>';\n\t\t\t\t\tdie();\n\t\t\t\t}\n \n $this->ipsclass->print->redirect_screen( $this->ipsclass->lang['ss_end'], $url );\n }\n\n // Page Info\n $this->title = $this->ipsclass->vars['board_name'].$this->ipsclass->lang['sep'].$this->ipsclass->lang['gallery'];\n $this->nav[] = \"<a href='\".$this->ipsclass->base_url.\"automodule=gallery'>Gallery</a>\";\n $this->nav[] = $i['caption'];\n\t\t\t\n // -------------------------------------------------------\n // Stat Update!\n // -------------------------------------------------------\n $this->ipsclass->DB->simple_update( 'gallery_images', 'views=views+1', \"id={$i['id']}\", 1 );\n $this->ipsclass->DB->simple_exec();\n\n\t\t\tif( $this->ipsclass->input['hfoff'] )\n\t\t\t{\n\t\t\t\t$this->ipsclass->print->pop_up_window( $this->title, $this->output );\n\t\t\t}\n }", "public function create()\n {\n\n $this->data = array(\n 'templates' => \\Pageblok::getTemplates(\"gallery\"),\n );\n\n return parent::create();\n }", "public function galleryCreate()\n {\n $data['pageTitle'] = __('Add New Image');\n $data['menu'] = 'gallery';\n $data['categories'] = GalleryCategory::where('status', STATUS_ACTIVE)->get();\n\n return view('admin.gallery.add', $data);\n }", "public function gallery()\n {\n $album = DB::table('albums')->get();\n return view('backends.gallery')->with('album', $album);\n }", "function create_gallery($dir) {\n echo '<div class=\"row\">';\n\n $num_files = glob($dir . \"*.{JPG,jpg,gif,png,bmp}\", GLOB_BRACE);\n $folder = opendir($dir);\n if ($num_files > 0) {\n while(false !== ($file = readdir($folder))) {\n $fullpath = $dir . $file;\n $fullpath_thumb = $dir . 'thumbnails/' . $file;\n $extension = strtolower(pathinfo($file, PATHINFO_EXTENSION));\n if($extension == 'jpg' || $extension == 'png' || $extension == 'gif' || $extension == 'bmp') {\n // insert thumbnail image as link which when clicked opens lightbox to full size version\n echo '<div class=\"hidden-xs col-sm-6 col-md-4 col-lg-3\">';\n echo '<a class=\"thumbnail\" rel=\"lightbox[group]\" href=\"' . $fullpath . '\">';\n echo '<img src=\"' . $fullpath_thumb . '\" class=\"img-responsive group1\"></a></div>';\n\n // disable lightbox on mobile\n echo '<div class=\"text-center col-xs-12 hidden-sm hidden-md hidden-lg hidden-xl\">';\n echo '<a class=\"thumbnail\" href=\"' . $fullpath . '\">';\n echo '<img src=\"' . $fullpath_thumb . '\" class=\"img-responsive\"></a></div>';\n }\n }\n } else {\n return \"<div><em>ERROR:</em> <span style='font-style:italic;'>No files found in specified folder, gallery not generated.</span></div>\";\n }\n closedir($folder);\n\n echo '</div>';\n}", "public function index()\n {\n $today = date('Y-m-d');\n $this->data['photos'] = DB::table('gallery')->where('show_from', '<=', $today)->where('show_until', '>', $today)->get();\n return view('gallery.index', $this->data);\n }", "public function create()\n {\n return view('admin_area.gallery.create');\n }", "public function create()\n {\n return view('gallery::galleries.create');\n }", "public function create()\n {\n return view('gallery.create');\n }", "public function create()\n {\n $galleryAlbums = GalleryAlbum::with(['category'])->get();\n return view('admin_dashboard.gallery.image.create', compact(['galleryAlbums']));\n }", "public function create()\n {\n $galleryData = ImgGallery::all();\n return view('pages.create_gallery', compact('galleryData'));\n }", "public function create()\n {\n $item = new Gallery();\n return view('pages.gallery.create', compact('item'));\n }", "function gallery_view()\n {\n $ob = new model();\n $show_gallery=$ob->gallery_view_sql();\n return $show_gallery;\n }", "function gallery($id = null){\r\n\t\t$this->Album->id = $id;\r\n\t\t$album = $this->Album->read();\r\n\t\t$this->set('album',$album);\r\n\t\t$this->set('path',$this->Admin->siteVar('imagepath'));\r\n\t\t$this->set('baseurl',$this->Admin->siteVar('absoluteimgurl'));\r\n\t\t\r\n\t\t$this->render('gallery','ajax');\r\n\t}", "function gallery_detail($uri_gallery){\n\t\t// $uri_gallery = $this->db->escape($uri_gallery);\n\t\t$filter['GALL_URI'] = $uri_gallery;\n\t\t$gall_info = $this->dashboard_m->get_gallery_info($filter);\n\t\t$data['gall_info_result'] = $gall_info;\n\t\t$data[\"title\"] = $gall_info->GALL_NAME;\n\t\t$data[\"description\"] = $gall_info->GALL_DESC;\n\t\t$data['breadcrumb_parent_uri'] = \"gallery\";\n\t\t$data['breadcrumb_parent'] = \"Galeri\";\n\t\t$data['breadcrumb_active'] = $gall_info->GALL_NAME;\n\t\t// Get Data Gallery Foto / Video \n\t\t$filter2['GALL_ID'] = $gall_info->GALL_ID;\n\t\t$gall_pic_list = $this->dashboard_m->get_pics_of_gallery($filter2);\n\t\t$data['result'] = $gall_pic_list;\n\t\t// Get Data Sidebar\n\t\t$filter3['GALL_ID'] = $gall_info->GALL_ID;\n\t\t$gall_list = $this->dashboard_m->get_galleries($filter3);\n\t\tshuffle($gall_list);\n\t\t$data['sidebar_result'] = $gall_list;\n\t\t$data['include_script'] = inc_script(\n\t\t\tarray(\n\t\t\t\t\"cms/plugin/dashboard/js/gallery_modal.js\",\n\t\t\t)\n\t\t);\n\n\t\t$this->masterpage->addContentPage('breadcrumb', 'breadcrumb', $data);\n\t\t$this->masterpage->addContentPage(\"gallery_detail\", 'contentmain', $data);\n\t\t$this->masterpage->show();\n\t}", "public function create()\n {\n return view('admin/image-gallery');\n }", "public function getCreateGallery()\n {\n return view('admin.galleries.create_edit_gallery', [\n 'gallery' => new Gallery,\n 'galleries' => Gallery::sort()->pluck('name','id')\n ]);\n }", "public function index()\n {\n return view('new_gallery');\n }", "function ShowGallery($folder, $mask,$thumbWidth,$thumbHeight)\r\n{\r\n\t$images = ListFiles($folder, $mask);\r\n\t?>\r\n\t<div id=\"gallery\" class=\"ad-gallery\" >\r\n\t\t<div class=\"ad-image-wrapper\">\r\n\t\t</div>\r\n\t\t<div class=\"ad-controls\">\r\n\t\t</div>\r\n\t\t<div class=\"ad-nav\">\r\n\t\t\t<div class=\"ad-thumbs\">\r\n\t\t\t\t<ul class=\"ad-thumb-list\">\r\n\t\t\t\t<?php \r\n\t\t\t\t$counter = 0; // for the imageX class (image0,image1,...)\r\n\t\t\t\tforeach ($images as $image)\r\n\t\t\t\t{\r\n\t\t\t\t\t$alt = basename($image,substr($mask,1)); // cut the folder and extension (mask as a \"*\" at begining so without it) \r\n\t\t\t\t\t$alt = str_replace(\"_\", \" \", $alt); // alt is name without underscore\r\n\t\t\t\t\techo\t\"<li>\";\r\n\t\t\t\t\techo \t\t\"<a href='$image'>\";\r\n\t\t\t\t\techo \t\"<img src='$image' alt='$alt' class='image\".$counter.\"' style='width:\".$thumbWidth.\"px; height:\".$thumbHeight.\"px;'/>\";\r\n\t\t\t\t\techo \t\"</a>\";\r\n\t\t\t\t\techo \t\"</li>\";\t\t\t\t\r\n\t\t\t\t}\t// foreach close\r\n\t\t\t\t?>\r\n\t\t\t\t</ul>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n\t<?php \r\n}", "public function show(Gallery $gallery)\n {\n //\n }", "public function show(Gallery $gallery)\n {\n //\n }", "public function show(Gallery $gallery)\n {\n //\n }", "public function show(Gallery $gallery)\n {\n //\n }", "public function show(Gallery $gallery)\n {\n //\n }", "public function show(Gallery $gallery)\n {\n //\n }", "public function create()\n {\n return view('admin.gallery.create');\n }", "public function create()\n {\n return view('admin.gallery.create');\n }", "public function create()\n {\n return view('admin.gallery.create');\n }", "public function index()\n {\n return view('gallery');\n }", "public function index()\n {\n $gallery = gallery::get();\n \n return view('back-office.gallery')->with('gallery',$gallery);\n }", "public function run()\n {\n //Gallery 相关\n $setting = $this->findSetting('gallery.gallery_home_show');\n if (!$setting->exists) {\n $setting->fill([\n 'display_name' => '画廊 在主页上显示(请填 yes 或 no)',\n 'value' =>'yes',\n 'details' => '画廊的图片是否在主页上显示',\n 'type' => 'text',\n 'order' => 1,\n 'group' => 'Gallery',\n ])->save();\n }\n\n $setting = $this->findSetting('gallery.gallery_title');\n if (!$setting->exists) {\n $setting->fill([\n 'display_name' => '画廊的总标题',\n 'value' =>'我们的风采',\n 'details' => '画廊页和主页上显示的画廊的标题',\n 'type' => 'text',\n 'order' => 2,\n 'group' => 'Gallery',\n ])->save();\n }\n }", "public static function printGallery() {\r\n\t\t$elts = Acid::mod('Photo')->dbList(array(array('active','=',1)),array('pos'=>'ASC'));\r\n\t\treturn Acid::tpl('pages/gallery.tpl',array('elts'=>$elts),Acid::mod('Photo'));\r\n\t}", "function origami_gallery($contents, $attr){\n\tif(!siteorigin_setting('display_gallery')) return $contents;\n\n\tif(!empty($attr['type']) && $attr['type'] == 'default') return '';\n\n\tif(siteorigin_panels_is_home() && empty($attr['ids'])){\n\t\t// Display the default Origami gallery\n\t\treturn origami_gallery_default();\n\t}\n\n\tglobal $post;\n\t\n\tstatic $instance = 0;\n\t$instance++;\n\n\t// We're trusting author input, so let's at least make sure it looks like a valid orderby statement\n\tif ( isset( $attr['orderby'] ) ) {\n\t\t$attr['orderby'] = sanitize_sql_orderby( $attr['orderby'] );\n\t\tif ( !$attr['orderby'] )\n\t\t\tunset( $attr['orderby'] );\n\t}\n\n\t/**\n\t * @var $order\n\t * @var $orderby\n\t * @var $id\n\t * @var $itemtag\n\t * @var $icontag\n\t * @var $captiontag\n\t * @var $size\n\t * @var $include\n\t * @var $exclude\n\t * @var $wp_default\n\t * @var $target_blank\n\t */\n\textract(shortcode_atts(array(\n\t\t'order' => 'ASC',\n\t\t'orderby' => 'menu_order ID',\n\t\t'id' => $post->ID,\n\t\t'itemtag' => 'dl',\n\t\t'icontag' => 'dt',\n\t\t'captiontag' => 'dd',\n\t\t'columns' => 3,\n\t\t'size' => 'origami-slider',\n\t\t'include' => '',\n\t\t'exclude' => '',\n\t\t'wp_default' => false,\n\t\t'target_blank' => false,\n\t), $attr));\n\t\n\t// This gallery has requested to use the WordPress default gallery\n\tif($wp_default) return $contents;\n\n\t$id = intval($id);\n\tif ( 'RAND' == $order )\n\t\t$orderby = 'none';\n\n\tif ( !empty($include) ) {\n\t\t$include = preg_replace( '/[^0-9,]+/', '', $include );\n\t\t$_attachments = get_posts( array('include' => $include, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) );\n\n\t\t$attachments = array();\n\t\tforeach ( $_attachments as $key => $val ) {\n\t\t\t$attachments[$val->ID] = $_attachments[$key];\n\t\t}\n\t}\n\telseif ( !empty($exclude) ) {\n\t\t$exclude = preg_replace( '/[^0-9,]+/', '', $exclude );\n\t\t$attachments = get_children( array('post_parent' => $id, 'exclude' => $exclude, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) );\n\t}\n\telse {\n\t\t$attachments = get_children( array('post_parent' => $id, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) );\n\t}\n\n\tif ( empty($attachments) ) return '';\n\n\t// This is the custom stuff\n\n\t// Create the gallery content\n\t$return = '';\n\t$return .= '<div class=\"flexslider-wrapper\">';\n\t$return .= '<div class=\"flexslider\">';\n\t$return .= '<ul class=\"slides\">';\n\tforeach($attachments as $attachment){\n\t\t$return .= '<li>';\n\t\t$return .= apply_filters('origami_slide_before', '', $attachment, $target_blank);\n\t\t$return .= wp_get_attachment_image($attachment->ID, $size, false, array('class' => 'slide-image'));\n\t\tif($attachment->post_excerpt){\n\t\t\t$return .= '<div class=\"flex-caption\">' . $attachment->post_excerpt . '</div>';\n\t\t}\n\t\t$return .= apply_filters('origami_slide_after', '', $attachment, $target_blank);\n\t\t$return .= '</li>';\n\t}\n\t$return .= '</ul>';\n\t$return .= '</div>';\n\t$return .= '</div>';\n\n\treturn $return;\n}", "public function display_gallery() {\n\n global $product;\n\n $gallery = \n wc_get_template(\n 'single-product/label-thumbnails.php',\n array(),\n FALSE,\n $this->plugin_path() . '/templates/' );\n\n }", "public function create()\n {\n\n $category = Gallery_category::all();\n\n // echo \"<pre>\";\n // print_r($category);\n // die();\n\n\n return view('backend.photo.create', get_defined_vars());\n }", "public function index() {\n $images = Gallery::all();\n // $images = Gallery::all();\n require_once('views/gallery/index.php');\n }", "public function create()\n\t{\n\t\t$labels = Label::where('status', '=', '1')->where('type', '=', 'Image')->orderBy('name', 'ASC')->lists('name', 'id');\n\t\treturn view('galleries.create', compact('labels'));\n\t}", "function gallery(){\n $str=\"\";\n $str.= \"<div class='gallery'>\";\n foreach (glob(\"*.{jpg,png,gif,JPG,jpeg}\",GLOB_BRACE) as $filename) {\n echo '<a data-fancybox=\"gallery\" href=\"'.$filename.'\"><img class=\"thumbnail\" src=\"'.$filename.'\"></a>';\n }\n $str.= \"</div>\";\n echo $str;\n}", "function gallery($gallery_name=\"eugenio-02\",$page_num=5,$title='Missing Title')\n\t{\n //data must give the template we want things shown\n //this is defined by the seecond segement\n // @gallery=gallery template\n // @page =page template\n // @sitemap=sitemap template\n $this->load->library('pagebuilder');\n \n\t $data['title'] = $gallery_name;\n\t $data['heading'] = \"My Real Heading\";\n\t $data['gallery']=$gallery_name;\n\t $data['page_num']=$page_num;\n\t $this->load->view('photographer_gallery',$data);\n \n\t}", "public function index()\n {\n return view('dashboard.gallery.index')->with('galles',Gallery::get());\n }", "public function makePhotoshopGallery()\n {\n $imagePath = 'images/photoshop';\n $imageFiles = File::allFiles($imagePath);\n\n return view('pages/photoshop')->with(compact('imagePath', 'imageFiles'));\n }", "function wtr_create_gallery() {\r\n\r\n\tglobal $WTR_Opt, $wtr_custom_posts_type;\r\n\t$wtr_custom_posts_type[]\t= 'gallery';\r\n\r\n\t$labels= array(\r\n\t\t'name' \t\t\t\t\t=> __( 'Gallery', 'wtr_ct_framework' ),\r\n\t\t'all_items'\t\t\t\t=> __( 'All Gallery', 'wtr_ct_framework' ),\r\n\t\t'singular_name' \t\t=> __( 'Gallery', 'wtr_ct_framework' ),\r\n\t\t'add_new' \t\t\t\t=> __( 'Add New', 'wtr_ct_framework' ),\r\n\t\t'add_new_item' \t\t\t=> __( 'Add New Gallery', 'wtr_ct_framework' ),\r\n\t\t'edit_item' \t\t\t=> __( 'Edit Gallery', 'wtr_ct_framework' ),\r\n\t\t'new_item' \t\t\t\t=> __( 'New Gallery', 'wtr_ct_framework' ),\r\n\t\t'view_item' \t\t\t=> __( 'View Gallery', 'wtr_ct_framework' ),\r\n\t\t'search_items' \t\t\t=> __( 'Search Gallery', 'wtr_ct_framework' ),\r\n\t\t'not_found' \t\t\t=> __( 'No Gallery found', 'wtr_ct_framework' ),\r\n\t\t'not_found_in_trash'\t=> __( 'No Gallery found in Trash', 'wtr_ct_framework' )\r\n\t);\r\n\r\n\t$args = array(\r\n\t\t'labels' \t\t\t\t=> $labels,\r\n\t\t'public' \t\t\t\t=> false,\r\n\t\t'publicly_queryable'\t=> false,\r\n\t\t'show_ui' \t\t\t\t=> true,\r\n\t\t'query_var' \t\t\t=> false,\r\n\t\t'capability_type' \t\t=> 'post',\r\n\t\t'hierarchical' \t\t\t=> false,\r\n\t\t'menu_position' \t\t=> null,\r\n\t\t'rewrite' \t\t\t\t=> true,\r\n\t\t'supports' \t\t\t\t=> array( 'title', 'thumbnail' ,'page-attributes' ),\r\n\t\t\"show_in_nav_menus\" \t=> false,\r\n\t\t'exclude_from_search'\t=> true,\r\n\t);\r\n\tregister_post_type( 'gallery', $args );\r\n}", "function _gallery($data){\n global $conf;\n global $lang;\n $ret = '';\n\n $files = $this->_findimages($data);\n\n //anything found?\n if(!count($files)){\n $ret .= '<div class=\"nothing\">'.$lang['nothingfound'].'</div>';\n return $ret;\n }\n\n // prepare alignment\n $align = '';\n $xalign = '';\n if($data['align'] == 1){\n $align = ' gallery_right';\n $xalign = ' align=\"right\"';\n }\n if($data['align'] == 2){\n $align = ' gallery_left';\n $xalign = ' align=\"left\"';\n }\n if($data['align'] == 3){\n $align = ' gallery_center';\n $xalign = ' align=\"center\"';\n }\n if(!$data['_single']){\n if(!$align) $align = ' gallery_center'; // center galleries on default\n if(!$xalign) $xalign = ' align=\"center\"';\n }\n\n $page = 0;\n\n // build gallery\n if($data['_single']){\n $ret .= $this->_image($files[0],$data);\n $ret .= $this->_showname($files[0],$data);\n $ret .= $this->_showtitle($files[0],$data);\n }elseif($data['cols'] > 0){ // format as table\n $close_pg = false;\n\n $i = 0;\n foreach($files as $img){\n\n // new page?\n if($data['paginate'] && ($i % $data['paginate'] == 0)){\n $ret .= '<div class=\"gallery_page gallery__'.$data['galid'].'\" id=\"gallery__'.$data['galid'].'_'.(++$page).'\">';\n $close_pg = true;\n }\n\n // new table?\n if($i == 0 || ($data['paginate'] && ($i % $data['paginate'] == 0))){\n $ret .= '<table>';\n\n }\n\n // new row?\n if($i % $data['cols'] == 0){\n $ret .= '<tr>';\n }\n\n // an image cell\n $ret .= '<td>';\n $ret .= $this->_image($img,$data);\n $ret .= $this->_showname($img,$data);\n $ret .= $this->_showtitle($img,$data);\n $ret .= '</td>';\n $i++;\n\n // done with this row? cloase it\n $close_tr = true;\n if($i % $data['cols'] == 0){\n $ret .= '</tr>';\n $close_tr = false;\n }\n\n // close current page and table\n if($data['paginate'] && ($i % $data['paginate'] == 0)){\n if ($close_tr){\n // add remaining empty cells\n while($i % $data['cols']){\n $ret .= '<td></td>';\n $i++;\n }\n $ret .= '</tr>';\n }\n $ret .= '</table>';\n $ret .= '</div>';\n $close_pg = false;\n }\n\n }\n\n if ($close_tr){\n // add remaining empty cells\n while($i % $data['cols']){\n $ret .= '<td></td>';\n $i++;\n }\n $ret .= '</tr>';\n }\n\n if(!$data['paginate']){\n $ret .= '</table>';\n }elseif ($close_pg){\n $ret .= '</table>';\n $ret .= '</div>';\n }\n }else{ // format as div sequence\n $i = 0;\n $close_pg = false;\n foreach($files as $img){\n\n if($data['paginate'] && ($i % $data['paginate'] == 0)){\n $ret .= '<div class=\"gallery_page gallery__'.$data['galid'].'\" id=\"gallery__'.$data['galid'].'_'.(++$page).'\">';\n $close_pg = true;\n }\n\n $ret .= '<div>';\n $ret .= $this->_image($img,$data);\n $ret .= $this->_showname($img,$data);\n $ret .= $this->_showtitle($img,$data);\n $ret .= '</div> ';\n\n $i++;\n\n if($data['paginate'] && ($i % $data['paginate'] == 0)){\n $ret .= '</div>';\n $close_pg = false;\n }\n }\n\n if($close_pg) $ret .= '</div>';\n\n $ret .= '<br style=\"clear:both\" />';\n }\n\n // pagination links\n $pgret = '';\n if($page){\n $pgret .= '<div class=\"gallery_pages\"><span>'.$this->getLang('pages').' </span>';\n for($j=1; $j<=$page; $j++){\n $pgret .= '<a href=\"#gallery__'.$data['galid'].'_'.$j.'\" class=\"gallery_pgsel button\">'.$j.'</a> ';\n }\n $pgret .= '</div>';\n }\n\n return '<div class=\"gallery'.$align.'\"'.$xalign.'>'.$pgret.$ret.'<div class=\"clearer\"></div></div>';\n }", "public function create()\n {\n $gallery = new Gallery();\n return view('admin.gallery.create', $gallery);\n }", "public function index()\n {\n $images = Gallery::orderBy('created_at', 'desc')->paginate(12);\n\n return view('gallery', compact('images'));\n }", "public function showThumbnails() {\n $this->generateHead();\n $thumbnailsArray = $this->getThumbnailsArray();\n for($i = 0; $i < $this->rowsCount * 2; $i ++){\n echo '<div class=\"col-xs-6\">';\n echo '<a href=\"big_img.php?img_id=' . $thumbnailsArray[$i]['id'] . '\" class=\"thumbnail\">';\n echo '<img src=\"images/thumbnails/' . $thumbnailsArray[$i]['filename'] . '\" alt=\"\">';\n echo '</a>';\n echo '</div>';\n }\n $this->generateFoot();\n }", "public function create()\n {\n return view('admin.video_gallery.create');\n }", "public function addGallery()\n {\n return view('Panel.action.inputGallery');\n }", "public function create()\n {\n $category = Category::all();\n return view('adminlte::gallery.create', compact('category'));\n }", "function print_gallery(){\n $gallery = new GalleryView();\n $gallery->print_gallery();\n }", "public function add_gallery()\n {\n \treturn view('backend/add_gallery');\n }", "public function create()\n {\n $cat = GalleryCategory::take(55)->get();\n return view('gallery_albums.create')->with('cat', $cat ) ;\n }", "function deco_display_awkward_gallery(){\n\t\t//this loops the most recent featured items\n\t\t$items = deco_get_random_featured_items(10);\n\t\tif ($items!=null) \n\t\t{\n\t\tset_items_for_loop($items);\n\t\twhile(loop_items()):\n\t\n\t\t\t$index = 0; \n\t\t\twhile ($file = loop_files_for_item()):\n\t\t\t if ($file->hasThumbnail()):\n\t\t\t //this makes sure the loop grabs only the first image for the item \n\t\t\t if ($index == 0): \n\t\t\t //item_file('fullsize uri') broke in Omeka version 1.3, so I use getWebPath instead...\n\t\t \t echo '<div><img src=\"'.$file->getWebPath('fullsize').'\" alt=\"\" title=\"\"/>'; \n\t\t \t endif;\n\t\t\t endif; \n\t\t\tendwhile;\n\t\t\t\n\t\t\techo '<div class=\"showcase-caption\">';\n\t\t\techo /*Item Title and Link*/'<h3>'.link_to_item().'</h3>';\n\t\t\techo /*Item Description Excerpt*/'<p>'.item('Dublin Core', 'Description',array('snippet'=>190));\n\t\t\techo /*Link to Item*/ link_to_item(' ...more ').'</p></div></div>';\n\t\t\t\n\t\t\tendwhile; \n}else \n\t\t\t{\n \techo'<div><img src=\"'.uri('').'/themes/deco/images/emptyslideshow.png\" alt=\"Oops\" /><div class=\"showcase-caption\"><h3>UH OH!</h3><br/><p>There are no featured images right now. You should turn off \"Display Slideshow\" in the theme settings until you have some.</p></div></div>';\n \t\t}}", "public function displayGallery($id) {\n\t\t/* load from database */\n\t\t$result = $this->db->query('SELECT * FROM image\n\t\t\tWHERE gallery_id = \"'.SQLite3::escapeString($id).'\"\n\t\t\t\tAND gallery_id != \"\"');\n\t\t$files = array();\n\t\tif ($result) {\n\t\t\twhile ($entry = $result->fetchArray(SQLITE3_ASSOC)) {\n\t\t\t\t$files[] = $entry;\n\t\t\t}\n\t\t}\n\t\tif (!count($files)) {\n\t\t\tthrow new QuicksandException(\"The gallery you are looking for does not exist (anymore).\");\n\t\t}\n\t\t\n\t\t?><!DOCTYPE html>\n<html>\n<head>\n\t<meta http-equiv=\"content-type\" content=\"text/html; charset=<?php echo CHARSET; ?>\">\n\t<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"<?php echo $this->url; ?>?action=favicon\">\n\t<title>Gallery <?php echo $id; ?></title>\n\t<style type=\"text/css\">\n\t<!--\n\tbody { background-image: url(data:image/gif;base64,R0lGODlhEAAQAKECAGZmZpmZmf///////yH5BAEKAAIALAAAAAAQABAAAAIfjG+gq4jM3IFLJgpswNly/XkcBpIiVaInlLJr9FZWAQA7); }\n\t.gallery a { display: inline-block; float: left; margin: 5px; }\n\timg { max-width: 600px; max-height: 600px; border: 1px solid white; }\n\tfooter { clear: left; padding-top: 50px; font-size: 12px; font-family: Arial,Helvetica,sans-serif; }\n\tfooter, footer a { color: white; }\n\t-->\n\t</style>\n</head>\n<body>\n\t<div class=\"gallery\">\n\t\t<?php foreach ($files as $file) {\n\t\t\t$imageUrl = $this->entityUrl.self::imageUrl($file['id'], $file);\n\t\t\t?><a href=\"<?php echo $imageUrl; ?>\">\n\t\t\t\t<img alt=\"<?php echo $file['id']; ?>\" src=\"<?php echo $imageUrl; ?>\">\n\t\t\t</a><?php\n\t\t} ?>\n\t</div>\n\t<footer>\n\t\t<a href=\"<?php echo $this->url; ?>\">\n\t\t\t<img alt=\"\" src=\"<?php echo $this->url; ?>?action=favicon\">\n\t\t</a>\n\t\t<p id=\"by\">\n\t\t\t<a href=\"https://code.teele.eu/quicksand\">Quicksand was coded by Teelevision</a> • Download <a href=\"https://qsand.de/dl/latest-stable/index.php\" title=\"Download this script. You are free to host it yourself. See the license.\">stable</a>/<a href=\"https://qsand.de/dl/latest-unstable/index.php\">beta</a>\n\t\t</p>\n\t\t<?php if (self::LEGAL_NOTICE != ''): ?>\n\t\t<p id=\"legal_notice\">\n\t\t\t<?php echo self::LEGAL_NOTICE; ?>\n\t\t</p>\n\t\t<?php endif; ?>\n\t</footer>\n</body>\n</html><?php\n\texit;\n\t}", "public function index()\n {\n\n $galleries = Image::all();\n $data['images']=Image::all();\n return view(\"admin.gallery.gallery\",$data, compact('galleries'));\n// return view(\"gallery\");\n }", "public function presentation_images()\n\t\t{\n\t\t\t$this->is_login();\n\t\t\t$this->load->model('presentation_images_model', 'pim');\n\t\t\t$data['presentation_images'] = $this->pim->get_all();\n $data['presentation_act'] = $this->pim->get_link();\n\t\t\t$this->load->view('presentation_images-admin', $data);\n\t\t}", "public function insert_gallery_shortcode() {\n\t\t\n\t\tcheck_ajax_referer( 'daylife-gallery-add-nonce', 'nonce' );\n\t\t// TODO: Update to insert ids into shortcode so it works with new media tool\n\t\techo '[gallery]';\n\t\tdie();\n\n\t}", "public function index()\n {\n $this->data['pageHead'] = \"All Gallery Photos\";\n if ( $this->permission(4) ) {\n $this->data['asUsualData'] = $this->asUsualData();\n $this->data['dashboardData'] = $this->dashboardData();\n $this->data['classes'] = CourseClass::arrOfClassName();\n $this->data['permission'] = $this->permission(4);\n return view('admin.gallery.gallery', $this->data);\n }else{\n return view('admin.gallery.gallery', $this->data);\n }\n }", "protected function prepareGalleryData() {}", "public function run()\n {\n SlideShow::create([\n 'foto' => 'public/slide-show/1.jpg'\n ]);\n SlideShow::create([\n 'foto' => 'public/slide-show/2.jpg'\n ]);\n SlideShow::create([\n 'foto' => 'public/slide-show/3.jpg'\n ]);\n }", "public function run()\n {\n $faker = \\Faker\\Factory::create();\n\n $galleryHTML = '\n <section id=\"default-wrapper\">\n <div class=\"container\">\n <div class=\"custom-gallery\">\n <div id=\"lightgallery\" class=\"list-unstyled justified-gallery\" style=\"height: 520px;\">\n <a data-pinterest-text=\"Pin it\" data-tweet-text=\"share it on twitter\" class=\"jg-entry\" href=\"images/gallery/1.jpg\" data-sub-html=\"sdsdsd\">\n <img class=\"img-responsive\" src=\"'.\\URL::to('/').'/theme/artemissalt/images/gallery/1.jpg\">\n <div class=\"custom-gallery-poster\">\n <img src=\"'.\\URL::to('/').'/theme/artemissalt/images/gallery/zoom.png\">\n </div>\n \n </a>\n <a data-pinterest-text=\"Pin it\" data-tweet-text=\"share it on twitter\" class=\"jg-entry\" href=\"images/gallery/2.jpg\" data-sub-html=\"sdsdsd\">\n <img class=\"img-responsive\" src=\"'.\\URL::to('/').'/theme/artemissalt/images/gallery/2.jpg\">\n <div class=\"custom-gallery-poster\">\n <img src=\"'.\\URL::to('/').'/theme/artemissalt/images/gallery/zoom.png\">\n </div>\n \n </a>\n <a data-pinterest-text=\"Pin it\" data-tweet-text=\"share it on twitter\" class=\"jg-entry\" href=\"images/gallery/3.jpg\">\n <img class=\"img-responsive\" src=\"'.\\URL::to('/').'/theme/artemissalt/images/gallery/3.jpg\">\n <div class=\"custom-gallery-poster\">\n <img src=\"'.\\URL::to('/').'/theme/artemissalt/images/gallery/zoom.png\">\n </div>\n \n </a>\n <a data-pinterest-text=\"Pin it\" data-tweet-text=\"share it on twitter\" class=\"jg-entry\" href=\"images/gallery/4.jpg\">\n <img class=\"img-responsive\" src=\"'.\\URL::to('/').'/theme/artemissalt/images/gallery/4.jpg\">\n <div class=\"custom-gallery-poster\">\n <img src=\"'.\\URL::to('/').'/theme/artemissalt/images/gallery/zoom.png\">\n </div>\n \n </a>\n <a data-pinterest-text=\"Pin it\" data-tweet-text=\"share it on twitter\" class=\"jg-entry\" href=\"images/gallery/5.jpg\">\n <img class=\"img-responsive\" src=\"'.\\URL::to('/').'/theme/artemissalt/images/gallery/5.jpg\">\n <div class=\"custom-gallery-poster\">\n <img src=\"'.\\URL::to('/').'/theme/artemissalt/images/gallery/zoom.png\">\n </div>\n \n </a>\n <a data-pinterest-text=\"Pin it\" data-tweet-text=\"share it on twitter\" class=\"jg-entry\" href=\"images/gallery/6.jpg\">\n <img class=\"img-responsive\" src=\"'.\\URL::to('/').'/theme/artemissalt/images/gallery/6.jpg\">\n <div class=\"custom-gallery-poster\">\n <img src=\"'.\\URL::to('/').'/theme/artemissalt/images/gallery/zoom.png\">\n </div>\n \n </a>\n <a data-pinterest-text=\"Pin it\" data-tweet-text=\"share it on twitter\" class=\"jg-entry\" href=\"images/gallery/7.jpg\">\n <img class=\"img-responsive\" src=\"'.\\URL::to('/').'/theme/artemissalt/images/gallery/7.jpg\">\n <div class=\"custom-gallery-poster\">\n <img src=\"'.\\URL::to('/').'/theme/artemissalt/images/gallery/zoom.png\">\n </div>\n \n </a>\n <!-- <a data-pinterest-text=\"Pin it\" data-tweet-text=\"share it on twitter\" class=\"jg-entry\" href=\"../static/img/8.jpg\"\n style=\"width: 187px; height: 126.144px; top: 133.144px; left: 382px; opacity: 1;\">\n \n <img class=\"img-responsive\" src=\"../static/img/thumb-8.jpg\"\n style=\"width: 187px; height: 127px; margin-left: -93.5px; margin-top: -63.5px;\">\n <div class=\"custom-gallery-poster\">\n <img src=\"images/gallery/zoom.png\">\n </div>\n \n </a>\n <a data-pinterest-text=\"Pin it\" data-tweet-text=\"share it on twitter\" class=\"jg-entry\" href=\"../static/img/9.jpg\"\n data-sub-html=\"sdsdsd\" style=\"width: 187px; height: 126.144px; top: 133.144px; left: 570px; opacity: 1;\">\n \n <img class=\"img-responsive\" src=\"../static/img/thumb-9.jpg\"\n style=\"width: 187px; height: 127px; margin-left: -93.5px; margin-top: -63.5px;\">\n <div class=\"custom-gallery-poster\">\n <img src=\"images/gallery/zoom.png\">\n </div>\n \n </a>\n <a data-pinterest-text=\"Pin it\" data-tweet-text=\"share it on twitter\" class=\"jg-entry\" href=\"../static/img/10.jpg\"\n style=\"width: 186px; height: 126.144px; top: 133.144px; left: 758px; opacity: 1;\">\n \n <img class=\"img-responsive\" src=\"../static/img/thumb-10.jpg\"\n style=\"width: 186px; height: 127px; margin-left: -93px; margin-top: -63.5px;\">\n <div class=\"custom-gallery-poster\">\n <img src=\"images/gallery/zoom.png\">\n </div>\n \n </a>\n <a data-pinterest-text=\"Pin it\" data-tweet-text=\"share it on twitter\" class=\"jg-entry\" href=\"../static/img/11.jpg\"\n data-sub-html=\"sdsdsd\" style=\"width: 187px; height: 126.144px; top: 260.287px; left: 6px; opacity: 1;\">\n \n <img class=\"img-responsive\" src=\"../static/img/thumb-11.jpg\"\n style=\"width: 187px; height: 127px; margin-left: -93.5px; margin-top: -63.5px;\">\n <div class=\"custom-gallery-poster\">\n <img src=\"images/gallery/zoom.png\">\n </div>\n \n </a>\n <a data-pinterest-text=\"Pin it\" data-tweet-text=\"share it on twitter\" class=\"jg-entry\" href=\"../static/img/12.jpg\"\n style=\"width: 187px; height: 126.144px; top: 260.287px; left: 194px; opacity: 1;\">\n \n <img class=\"img-responsive\" src=\"../static/img/thumb-12.jpg\"\n style=\"width: 187px; height: 127px; margin-left: -93.5px; margin-top: -63.5px;\">\n <div class=\"custom-gallery-poster\">\n <img src=\"images/gallery/zoom.png\">\n </div>\n \n </a>\n <a data-pinterest-text=\"Pin it\" data-tweet-text=\"share it on twitter\" class=\"jg-entry\" href=\"../static/img/13.jpg\"\n style=\"width: 187px; height: 126.144px; top: 260.287px; left: 382px; opacity: 1;\">\n \n <img class=\"img-responsive\" src=\"../static/img/thumb-13.jpg\"\n style=\"width: 187px; height: 127px; margin-left: -93.5px; margin-top: -63.5px;\">\n <div class=\"custom-gallery-poster\">\n <img src=\"images/gallery/zoom.png\">\n </div>\n \n </a>\n <a data-pinterest-text=\"Pin it\" data-tweet-text=\"share it on twitter\" class=\"jg-entry\" href=\"../static/img/14.jpg\"\n style=\"width: 187px; height: 126.144px; top: 260.287px; left: 570px; opacity: 1;\">\n \n <img class=\"img-responsive\" src=\"../static/img/thumb-14.jpg\"\n style=\"width: 187px; height: 127px; margin-left: -93.5px; margin-top: -63.5px;\">\n <div class=\"custom-gallery-poster\">\n <img src=\"images/gallery/zoom.png\">\n </div>\n \n </a>\n <a data-pinterest-text=\"Pin it\" data-tweet-text=\"share it on twitter\" class=\"jg-entry\" href=\"../static/img/15.jpg\"\n data-sub-html=\"sdsdsd\" style=\"width: 186px; height: 126.144px; top: 260.287px; left: 758px; opacity: 1;\">\n \n <img class=\"img-responsive\" src=\"../static/img/thumb-15.jpg\"\n style=\"width: 186px; height: 127px; margin-left: -93px; margin-top: -63.5px;\">\n <div class=\"custom-gallery-poster\">\n <img src=\"images/gallery/zoom.png\">\n </div>\n \n </a>\n <a data-pinterest-text=\"Pin it\" data-tweet-text=\"share it on twitter\" class=\"jg-entry\" href=\"../static/img/16.jpg\"\n style=\"width: 187px; height: 126.144px; top: 387.431px; left: 6px; opacity: 1;\">\n \n <img class=\"img-responsive\" src=\"../static/img/thumb-16.jpg\"\n style=\"width: 187px; height: 127px; margin-left: -93.5px; margin-top: -63.5px;\">\n <div class=\"custom-gallery-poster\">\n <img src=\"images/gallery/zoom.png\">\n </div>\n \n </a>\n <a data-pinterest-text=\"Pin it\" data-tweet-text=\"share it on twitter\" class=\"jg-entry\" href=\"../static/img/17.jpg\"\n style=\"width: 187px; height: 126.144px; top: 387.431px; left: 194px; opacity: 1;\">\n \n <img class=\"img-responsive\" src=\"../static/img/thumb-17.jpg\"\n style=\"width: 187px; height: 127px; margin-left: -93.5px; margin-top: -63.5px;\">\n <div class=\"custom-gallery-poster\">\n <img src=\"images/gallery/zoom.png\">\n </div>\n \n </a>\n <a data-pinterest-text=\"Pin it\" data-tweet-text=\"share it on twitter\" class=\"jg-entry\" href=\"../static/img/18.jpg\"\n style=\"width: 187px; height: 126.144px; top: 387.431px; left: 382px; opacity: 1;\">\n \n <img class=\"img-responsive\" src=\"../static/img/thumb-18.jpg\"\n style=\"width: 187px; height: 127px; margin-left: -93.5px; margin-top: -63.5px;\">\n <div class=\"custom-gallery-poster\">\n <img src=\"images/gallery/zoom.png\">\n </div>\n \n </a>\n <a data-pinterest-text=\"Pin it\" data-tweet-text=\"share it on twitter\" class=\"jg-entry\" href=\"../static/img/19.jpg\"\n data-sub-html=\"sdsdsd\" style=\"width: 187px; height: 126.144px; top: 387.431px; left: 570px; opacity: 1;\">\n \n <img class=\"img-responsive\" src=\"../static/img/thumb-19.jpg\"\n style=\"width: 187px; height: 127px; margin-left: -93.5px; margin-top: -63.5px;\">\n <div class=\"custom-gallery-poster\">\n <img src=\"images/gallery/zoom.png\">\n </div>\n \n </a>\n <a data-pinterest-text=\"Pin it\" data-tweet-text=\"share it on twitter\" class=\"jg-entry\" href=\"../static/img/20.jpg\"\n style=\"width: 186px; height: 126.144px; top: 387.431px; left: 758px; opacity: 1;\">\n \n <img class=\"img-responsive\" src=\"../static/img/thumb-20.jpg\"\n style=\"width: 186px; height: 127px; margin-left: -93px; margin-top: -63.5px;\">\n <div class=\"custom-gallery-poster\">\n <img src=\"images/gallery/zoom.png\">\n </div>\n \n </a> -->\n </div>\n </div>\n </div>\n </section>\n ';\n\n $homeHTML = '\n <section id=\"home-one\">\n <div class=\"container\">\n <h6 class=\"text-center\">Who We Are</h6>\n <h2 class=\"heading-decorated\">Welcome to Artemis Salt</h2>\n <div class=\"gap-20\"></div>\n <p class=\"text-center\">Lorem ipsum dolor sit amet consectetur adipisicing elit. Nobis laudantium deleniti pariatur culpa sed illo molestiae architecto aperiam repudiandae similique. Sed exercitationem veritatis temporibus excepturi minima eos quaerat suscipit assumenda.</p>\n\n <div class=\"gap-20\"></div>\n\n <div class=\"row\">\n <div class=\"col-lg-4\">\n <div class=\"service-card\">\n <span class=\"service-icon\"><img src=\"'.\\URL::to('/').'/theme/artemissalt/images/misc/icon1.png\"></span>\n <div class=\"media-body\">\n <h3 class=\"service-title\">\n <a href=\"#\">Water Softener Application</a>\n </h3>\n <p>Lorem ipsum dolor sit amet, consectuerter adipiscing elit diam, sed diam nonummy nibh euismod tincidunt.</p>\n </div>\n </div>\n </div>\n <div class=\"col-lg-4\">\n <div class=\"service-card\">\n <span class=\"service-icon\"><img src=\"'.\\URL::to('/').'/theme/artemissalt/images/misc/icon1.png\"></span>\n <div class=\"media-body\">\n <h3 class=\"service-title\">\n <a href=\"#\">Food Application</a>\n </h3>\n <p>Lorem ipsum dolor sit amet, consectuerter adipiscing elit diam, sed diam nonummy nibh euismod tincidunt.</p>\n </div>\n </div>\n </div>\n <div class=\"col-lg-4\">\n <div class=\"service-card\">\n <span class=\"service-icon\"><img src=\"'.\\URL::to('/').'/theme/artemissalt/images/misc/icon1.png\"></span>\n <div class=\"media-body\">\n <h3 class=\"service-title\">\n <a href=\"#\">Bakery Application</a>\n </h3>\n <p>Lorem ipsum dolor sit amet, consectuerter adipiscing elit diam, sed diam nonummy nibh euismod tincidunt.</p>\n </div>\n </div>\n </div>\n <div class=\"col-lg-4\">\n <div class=\"service-card\">\n <span class=\"service-icon\"><img src=\"'.\\URL::to('/').'/theme/artemissalt/images/misc/icon1.png\"></span>\n <div class=\"media-body\">\n <h3 class=\"service-title\">\n <a href=\"#\">Feed Application</a>\n </h3>\n <p>Lorem ipsum dolor sit amet, consectuerter adipiscing elit diam, sed diam nonummy nibh euismod tincidunt.</p>\n </div>\n </div>\n </div>\n <div class=\"col-lg-4\">\n <div class=\"service-card\">\n <span class=\"service-icon\"><img src=\"'.\\URL::to('/').'/theme/artemissalt/images/misc/icon1.png\"></span>\n <div class=\"media-body\">\n <h3 class=\"service-title\">\n <a href=\"#\">Chemical and Fertilizer Application</a>\n </h3>\n <p>Lorem ipsum dolor sit amet, consectuerter adipiscing elit diam, sed diam nonummy nibh euismod tincidunt.</p>\n </div>\n </div>\n </div>\n <div class=\"col-lg-4\">\n <div class=\"service-card\">\n <span class=\"service-icon\"><img src=\"'.\\URL::to('/').'/theme/artemissalt/images/misc/icon1.png\"></span>\n <div class=\"media-body\">\n <h3 class=\"service-title\">\n <a href=\"#\">Health & Advocacy</a>\n </h3>\n <p>Lorem ipsum dolor sit amet, consectuerter adipiscing elit diam, sed diam nonummy nibh euismod tincidunt.</p>\n </div>\n </div>\n </div>\n </div>\n </div>\n </section>\n\n <section id=\"home-two\">\n <div class=\"container-fluid p-0\">\n <div class=\"row no-gutters\">\n <div class=\"col-lg-6\">\n <div class=\"bg-wrapper\" style=\"background-image:url('.\\URL::to('/').'/theme/artemissalt/images/misc/bakery.jpg)\"></div>\n </div>\n <div class=\"col-lg-6\">\n <div class=\"two-wrapper\">\n <div class=\"two-wrap\">\n <h6 class=\"text-center\">Special Offers</h6>\n <h2>GET 30% OFF</h2>\n <p class=\"text-center\"><strong>YOUR ORDER OF $100 OR MORE</strong></p>\n <div class=\"gap-40\"></div>\n <ul id=\"countdown\" class=\"countdown\" data-date-time=\"Sep 30, 2020 00:00:00\">\n <li><span id=\"days\"></span>Days</li>\n <li><span id=\"hours\"></span>Hours</li>\n <li><span id=\"minutes\"></span>Minutes</li>\n <li><span id=\"seconds\"></span>Seconds</li>\n </ul>\n </div>\n </div>\n </div>\n </div>\n </div>\n </section>\n\n <section id=\"home-three\">\n <div class=\"container\">\n <div class=\"row\">\n <div class=\"col-lg-4\">\n <div class=\"special-card\">\n <div class=\"special-image\">\n <img src=\"'.\\URL::to('/').'/theme/artemissalt/images/misc/img01.jpg\">\n <div class=\"special-icon\"><img src=\"'.\\URL::to('/').'/theme/artemissalt/images/misc/icon1.png\"></div>\n </div>\n <div class=\"special-content\">\n <h4>Local Farmers</h4>\n <div class=\"gap-10\"></div>\n <p>Donec nec justo eget felis facilisis ferme ntum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque\n felis. Morbi in sem quis dui placerat ornare.</p>\n </div>\n </div>\n </div>\n <div class=\"col-lg-4\">\n <div class=\"special-card\">\n <div class=\"special-image\">\n <img src=\"'.\\URL::to('/').'/theme/artemissalt/images/misc/img01.jpg\">\n <div class=\"special-icon\"><img src=\"'.\\URL::to('/').'/theme/artemissalt/images/misc/icon1.png\"></div>\n </div>\n <div class=\"special-content\">\n <h4>Local Industries</h4>\n <div class=\"gap-10\"></div>\n <p>Donec nec justo eget felis facilisis ferme ntum. Aliquam porttitor mauris sit amet orci. Aenean dignissim\n pellentesque\n felis. Morbi in sem quis dui placerat ornare.</p>\n </div>\n </div>\n </div>\n <div class=\"col-lg-4\">\n <div class=\"special-card\">\n <div class=\"special-image\">\n <img src=\"'.\\URL::to('/').'/theme/artemissalt/images/misc/img01.jpg\">\n <div class=\"special-icon\"><img src=\"'.\\URL::to('/').'/theme/artemissalt/images/misc/icon1.png\"></div>\n </div>\n <div class=\"special-content\">\n <h4>Local Health Concerns</h4>\n <div class=\"gap-10\"></div>\n <p>Donec nec justo eget felis facilisis ferme ntum. Aliquam porttitor mauris sit amet orci. Aenean dignissim\n pellentesque\n felis. Morbi in sem quis dui placerat ornare.</p>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"gap-80\"></div>\n <h6 class=\"text-center\">All News Around Us</h6>\n <h2 class=\"heading-decorated\">Our Blog</h2>\n <div class=\"gap-40\"></div>\n <div class=\"row\">\n <div class=\"col-lg-4\">\n <div class=\"news-layout\">\n <div class=\"item-img\">\n <figure>\n <img src=\"'.\\URL::to('/').'/theme/artemissalt/images/misc/news1.jpg\" class=\"img-fluid\" alt=\"blog\">\n </figure>\n </div>\n <div class=\"item-content\">\n <span class=\"published-date\">Posted on February 27, 2020</span>\n <h3 class=\"news-title\">\n <a href=\"article.htm\">Were divided land his creature which have evening subdue</a>\n </h3>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin tincidunt nunc lorem, nec faucibus mi facilisis eget.\n Mauris laoreet, nisl id faucibus pellentesque, mi mi tempor enim, sit amet interdum felis nibh a leo.</p>\n <div class=\"gap-30\"></div>\n <a class=\"btn btn-md primary-btn mr-2\" href=\"#\">Read More</a>\n </div>\n </div>\n </div>\n <div class=\"col-lg-4\">\n <div class=\"news-layout\">\n <div class=\"item-img\">\n <figure>\n <img src=\"'.\\URL::to('/').'/theme/artemissalt/images/misc/news2.jpg\" class=\"img-fluid\" alt=\"blog\">\n </figure>\n </div>\n <div class=\"item-content\">\n <span class=\"published-date\">Posted on February 27, 2020</span>\n <h3 class=\"news-title\">\n <a href=\"article.htm\">Were divided land his creature which have evening subdue</a>\n </h3>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin tincidunt nunc lorem, nec faucibus mi facilisis\n eget.\n Mauris laoreet, nisl id faucibus pellentesque, mi mi tempor enim, sit amet interdum felis nibh a leo.</p>\n <div class=\"gap-30\"></div>\n <a class=\"btn btn-md primary-btn mr-2\" href=\"#\">Read More</a>\n </div>\n </div>\n </div>\n <div class=\"col-lg-4\">\n <div class=\"news-layout\">\n <div class=\"item-img\">\n <figure>\n <img src=\"'.\\URL::to('/').'/theme/artemissalt/images/misc/news3.jpg\" class=\"img-fluid\" alt=\"blog\">\n </figure>\n </div>\n <div class=\"item-content\">\n <span class=\"published-date\">Posted on February 27, 2020</span>\n <h3 class=\"news-title\">\n <a href=\"article.htm\">Were divided land his creature which have evening subdue</a>\n </h3>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin tincidunt nunc lorem, nec faucibus mi facilisis\n eget.\n Mauris laoreet, nisl id faucibus pellentesque, mi mi tempor enim, sit amet interdum felis nibh a leo.</p>\n <div class=\"gap-30\"></div>\n <a class=\"btn btn-md primary-btn mr-2\" href=\"#\">Read More</a>\n </div>\n </div>\n </div>\n </div>\n </div>\n </section>\n\n <section id=\"home-four\">\n <div class=\"container\">\n <div class=\"row\">\n <div class=\"col-lg-6\">\n <h6>Want to know more?</h6>\n <h2 class=\"text-left\">Send a Quote!</h2>\n <div class=\"gap-20\"></div>\n\n <form action=\"\">\n <div class=\"form-group\">\n <label for=\"name\">Your Name (required)</label>\n <div class=\"form-control-wrap\">\n <input type=\"text\" class=\"form-control\" id=\"name\" required autocomplete>\n </div>\n </div>\n <div class=\"form-group\">\n <label for=\"email\">Your Email (required)</label>\n <div class=\"form-control-wrap\">\n <input type=\"email\" class=\"form-control\" id=\"email\" required autocomplete>\n </div>\n </div>\n <div class=\"form-group\">\n <label for=\"phone\">Your Phone (required)</label>\n <div class=\"form-control-wrap\">\n <input type=\"number\" class=\"form-control\" id=\"phone\" required autocomplete>\n </div>\n </div>\n <div class=\"form-group\">\n <label for=\"subject\">Subject</label>\n <div class=\"form-control-wrap\">\n <input type=\"text\" class=\"form-control\" id=\"subject\" autocomplete>\n </div>\n </div>\n <div class=\"form-group\">\n <label for=\"message\">Your Message (required)</label>\n <div class=\"form-control-wrap\">\n <textarea class=\"form-control\" id=\"message\" rows=\"3\"></textarea>\n </div>\n </div>\n <button type=\"submit\" class=\"btn btn-md primary-btn\">Submit</button>\n </form>\n </div>\n </div>\n </div>\n </section>\n\n <section id=\"home-five\">\n <div class=\"container\">\n <h6 class=\"text-center\">Testimonials</h6>\n <h2 class=\"heading-decorated\">Clients words</h2>\n <div id=\"testimonial-slider\" class=\"slick-slider\">\n <div class=\"testimonial-card\">\n <div class=\"testimonial-quote\">\n <blockquote>\n <q>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam at ultrices ante. Nunc eu ex turpis. Vestibulum\n imperdiet fermentum velit ac laoreet. Fusce imperdiet ac nisi aliquam rhoncus. Ut ac dui eu massa pretium posuere in in\n velit. Nulla id odio fermentum.</q>\n </blockquote>\n </div>\n <div class=\"testimonial-author\">\n <cite>Pearl R. <small>School Teacher</small></cite>\n </div>\n </div>\n <div class=\"testimonial-card\">\n <div class=\"testimonial-quote\">\n <blockquote>\n <q>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam at ultrices ante. Nunc eu ex turpis. Vestibulum\n imperdiet fermentum velit ac laoreet. Fusce imperdiet ac nisi aliquam rhoncus. Ut ac dui eu massa pretium\n posuere in in\n velit. Nulla id odio fermentum.</q>\n </blockquote>\n </div>\n <div class=\"testimonial-author\">\n <cite>John Augustus A. <small>School Teacher</small></cite>\n </div>\n </div>\n </div>\n </div>\n </section>\n\n <section id=\"home-six\">\n <div class=\"container\">\n <h6 class=\"text-center text-white\">The Ultimate Retreat</h6>\n <h2 class=\"text-white heading-decorated\">Benefit of Sea Salt</h2>\n </div>\n </section>\n\n <section id=\"home-seven\">\n <div class=\"container-fluid p-0\">\n <div class=\"portfolio-grid\">\n <div class=\"grid-sizer\"></div>\n\n <a class=\"grid-item civic-muni large\" href=\"\">\n <div class=\"grid-item-inner\"\n style=\"background: url(https://images.unsplash.com/photo-1453929203062-5b1b9cb4cb94?dpr=1&auto=format&fit=crop&w=1500&h=2256&q=80&cs=tinysrgb&crop=&bg=); background-size: cover; background-position: center center;\">\n <h3>Keeps you hydrated</h3>\n <div class=\"overlay\"></div>\n </div>\n </a>\n\n <a class=\"grid-item k-12\" href=\"\">\n <div class=\"grid-item-inner\"\n style=\"background: url(https://images.unsplash.com/photo-1484882918957-e9f6567be3c8?dpr=1&auto=format&fit=crop&w=1500&h=1875&q=80&cs=tinysrgb&crop=&bg=); background-size: cover; background-position: center center;\">\n <h3>Reduces fluid retention</h3>\n <div class=\"overlay\"></div>\n </div>\n </a>\n\n <a class=\"grid-item higher-edu\" href=\"\">\n <div class=\"grid-item-inner\"\n style=\"background: url(https://images.unsplash.com/photo-1489878950755-bbe8f9b8672c?dpr=1&auto=format&fit=crop&w=1500&h=844&q=80&cs=tinysrgb&crop=&bg=); background-size: cover; background-position: center center;\">\n <h3>A great source of minerals</h3>\n <div class=\"overlay\"></div>\n </div>\n </a>\n\n\n <a class=\"grid-item medical\" href=\"\">\n <div class=\"grid-item-inner\"\n style=\"background: url(https://images.unsplash.com/photo-1419406692015-ddbc1dd91e54?dpr=1&auto=format&fit=crop&w=1500&h=1636&q=80&cs=tinysrgb&crop=&bg=); background-size: cover; background-position: center center;\">\n <h3>Balances electrolytes</h3>\n <div class=\"overlay\"></div>\n </div>\n </a>\n\n <a class=\"grid-item civic-muni medium\" href=\"\">\n <div class=\"grid-item-inner\"\n style=\"background: url(https://images.unsplash.com/photo-1450740199001-78e928502994?dpr=1&auto=format&fit=crop&w=1500&h=994&q=80&cs=tinysrgb&crop=&bg=); background-size: cover; background-position: center center;\">\n <h3>Prevents muscle cramps</h3>\n <div class=\"overlay\"></div>\n </div>\n </a>\n\n <a class=\"grid-item civic-muni\" href=\"\">\n <div class=\"grid-item-inner\"\n style=\"background: url(https://images.unsplash.com/photo-1457630509638-7a7543f31f75?dpr=1&auto=format&fit=crop&w=1500&h=1000&q=80&cs=tinysrgb&crop=&bg=); background-size: cover; background-position: center center\">\n <h3>Great for skin health</h3>\n <div class=\"overlay\"></div>\n </div>\n </a>\n\n <a class=\"grid-item k-12\" href=\"\">\n <div class=\"grid-item-inner\"\n style=\"background: url(https://images.unsplash.com/photo-1470075801209-17f9ec0cada6?dpr=1&auto=format&fit=crop&w=1500&h=2250&q=80&cs=tinysrgb&crop=&bg=); background-size: cover; background-position: center center;\">\n <h3>Improves digestion</h3>\n <div class=\"overlay\"></div>\n </div>\n </a>\n\n <a class=\"grid-item retail-commercial medium\" href=\"\">\n <div class=\"grid-item-inner\"\n style=\"background: url(https://images.unsplash.com/photo-1478025101087-7f1ce4c83156?dpr=1&auto=format&fit=crop&w=1500&h=1000&q=80&cs=tinysrgb&crop=&bg=); background-size: cover; background-position: center center;\">\n <h3>Nourishes the adrenal glands</h3>\n <div class=\"overlay\"></div>\n </div>\n </a>\n\n <a class=\"grid-item church-theater medium\" href=\"\">\n <div class=\"grid-item-inner\"\n style=\"background: url(https://images.unsplash.com/photo-1477525105990-60a9f6610642?dpr=1&auto=format&fit=crop&w=1500&h=1000&q=80&cs=tinysrgb&crop=&bg=); background-size: cover; background-position: center center;\">\n <h3>Regulates blood pressure</h3>\n <div class=\"overlay\"></div>\n </div>\n </a>\n\n </div>\n </div>\n </section>\n ';\n\n $aboutHTML = '\n <section id=\"default-wrapper\">\n <div class=\"container\">\n <div class=\"row default-row\">\n <div class=\"col-lg-3\">\n <h3>Quick Links</h3>\n <div class=\"gap-20\"></div>\n <div class=\"side-menu\">\n <ul>\n <li>\n <a href=\"#\">Lorem ipsum dolor</a>\n <ul>\n <li><a href=\"#\">History</a></li>\n <li><a href=\"#\">Company Profile</a></li>\n <li><a href=\"#\">Mission & Vision</a></li>\n <li><a href=\"#\">Our Team</a></li>\n </ul>\n </li>\n <li><a href=\"#\">Nulla sequi, sint</a></li>\n <li><a href=\"#\">Corporis, quos, sit</a></li>\n </ul>\n </div>\n </div>\n <div class=\"col-lg-9\">\n <div class=\"article-content\">\n <h3>Company Profile</h3>\n <p>&nbsp;</p>\n <p>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do\n eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut\n enim ad minim veniam, quis nostrud exercitation ullamco laboris\n nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor\n in reprehenderit in voluptate velit esse cillum dolore eu fugiat\n nulla pariatur. Excepteur sint occaecat cupidatat non proident,\n sunt in culpa qui officia deserunt mollit anim id est laborum.\n </p>\n <p>&nbsp;</p>\n <img src=\"images/misc/about-img.jpg\" alt=\"\" />\n <p>&nbsp;</p>\n <p>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do\n eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut\n enim ad minim veniam, quis nostrud exercitation ullamco laboris\n nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor\n in reprehenderit in voluptate velit esse cillum dolore eu fugiat\n nulla pariatur. Excepteur sint occaecat cupidatat non proident,\n sunt in culpa qui officia deserunt mollit anim id est laborum.\n </p>\n <p>&nbsp;</p>\n <p>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do\n eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut\n enim ad minim veniam, quis nostrud exercitation ullamco laboris\n nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor\n in reprehenderit in voluptate velit esse cillum dolore eu fugiat\n nulla pariatur. Excepteur sint occaecat cupidatat non proident,\n sunt in culpa qui officia deserunt mollit anim id est laborum.\n </p>\n <p>&nbsp;</p>\n <p>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do\n eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut\n enim ad minim veniam, quis nostrud exercitation ullamco laboris\n nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor\n in reprehenderit in voluptate velit esse cillum dolore eu fugiat\n nulla pariatur. Excepteur sint occaecat cupidatat non proident,\n sunt in culpa qui officia deserunt mollit anim id est laborum.\n </p>\n </div>\n </div>\n </div>\n </div>\n </section>\n ';\n\n\n\n $contact_us = '<h3>Contact Details</h3>\n <iframe class=\"mt-2 mb-4\"\n src=\"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d14917.830083111654!2d-73.65783255789836!3d45.465301998048886!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x4cc917153ba67f8f%3A0xa508f1e92565d250!2s5544+Avenue+Rosedale%2C+C%C3%B4te+Saint-Luc%2C+QC+H4V+2J1%2C+Canada!5e0!3m2!1sen!2sph!4v1564111296278!5m2!1sen!2sph\"\n width=\"100%\" height=\"300\" frameborder=\"0\" style=\"border:0\" allowfullscreen></iframe>\n <div class=\"row\">\n <div class=\"col-md-6\">\n <p>\n <strong>Office Location</strong><br />5544 Avenue\n Rosedale, Cöte Saint-Luc<br />QC H4V 2J1\n </p>\n <div class=\"gap-20\"></div>\n </div>\n <div class=\"col-md-6\">\n <p>\n <strong>Office Location</strong><br />5544 Avenue\n Rosedale, Cöte Saint-Luc<br />QC H4V 2J1\n </p>\n <div class=\"gap-20\"></div>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-md-6\">\n <p>\n <strong>Telephone</strong><br />+63 (2) 706-6144<br />+63\n (2) 706-5796<br />+63 (2) 511-0528\n </p>\n <div class=\"gap-20\"></div>\n </div>\n <div class=\"col-md-6\">\n <p>\n <strong>Follow Us</strong><br />For more updates, follow\n us on our social media accounts.\n </p>\n <div class=\"gap-80\"></div>\n </div>\n </div>';\n\n $footerHTML = '<div class=\"pre-footer\">\n <div class=\"container\">\n <div class=\"row\">\n <div class=\"col-lg-4 col-md-6\">\n <div class=\"footer-info\">\n <h6 class=\"footer-title\">Customer Care</h6>\n <ul class=\"quick-link\">\n <li><a href=\"\">Email: [email protected]</a></li>\n <li><a href=\"\">Mobile: +639191234567</a></li>\n <li><a href=\"\">Tel: +63(02)1234567</a></li>\n <li><a href=\"\">Fax: +63(02)9876543</a></li>\n </ul>\n <div class=\"gap-20\"></div>\n </div>\n </div>\n\n <div class=\"col-lg-1 col-md-12\">\n </div>\n \n <div class=\"col-lg-7 col-md-12\">\n <div class=\"footer-info\">\n <a href=\"/\" class=\"footer-logo\">\n <img src=\"'.\\URL::to('/').'/images/misc/logo-header-white.png\" alt=\"Artemis Salt\" />\n </a>\n <p>SYSU International Inc.<br>\n 145 Panay Ave. Quezon City 1008, Philippines</p>\n <div class=\"gap-20\"></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"post-footer\">\n <div class=\"container p-0\">\n <p>\n Copyright © 2020 <a href=\"\">SYSU International Inc.</a> <span class=\"white-spc\">All rights reserved.</span>\n </p>\n </div>\n </div>';\n\n \n $pages = [\n [\n 'parent_page_id' => 0,\n 'album_id' => 1,\n 'slug' => 'home',\n 'name' => 'Home',\n 'label' => 'Home',\n 'contents' => $homeHTML,\n 'status' => 'PUBLISHED',\n 'page_type' => 'default',\n 'image_url' => '',\n 'meta_title' => 'Home',\n 'meta_keyword' => 'home',\n 'meta_description' => 'Home page',\n 'user_id' => 1,\n 'template' => 'home',\n 'created_at' => date(\"Y-m-d H:i:s\"),\n 'updated_at' => date(\"Y-m-d H:i:s\")\n ],\n [\n 'parent_page_id' => 0,\n 'album_id' => 0,\n 'slug' => 'about-us',\n 'name' => 'About Us',\n 'label' => 'About Us',\n 'contents' => $aboutHTML,\n 'status' => 'PUBLISHED',\n 'page_type' => 'standard',\n 'image_url' => \\URL::to('/').'/theme/artemissalt/images/banners/sub/image1.jpg',\n 'meta_title' => 'About Us',\n 'meta_keyword' => 'About Us',\n 'meta_description' => 'About Us page',\n 'user_id' => 1,\n 'template' => '',\n 'created_at' => date(\"Y-m-d H:i:s\"),\n 'updated_at' => date(\"Y-m-d H:i:s\")\n ],\n\n [\n 'parent_page_id' => 0,\n 'album_id' => 0,\n 'slug' => 'contact-us',\n 'name' => 'Contact Us',\n 'label' => 'Contact Us',\n 'contents' => $contact_us,\n 'status' => 'PUBLISHED',\n 'page_type' => 'standard',\n 'image_url' => \\URL::to('/').'/theme/artemissalt/images/banners/sub/image1.jpg',\n 'meta_title' => 'Contact Us',\n 'meta_keyword' => 'Contact Us',\n 'meta_description' => 'Contact Us page',\n 'user_id' => 1,\n 'template' => 'contact-us',\n 'created_at' => date(\"Y-m-d H:i:s\"),\n 'updated_at' => date(\"Y-m-d H:i:s\")\n ],\n [\n 'parent_page_id' => 0,\n 'album_id' => 0,\n 'slug' => 'news',\n 'name' => 'News',\n 'label' => 'News',\n 'contents' => '',\n 'status' => 'PUBLISHED',\n 'page_type' => 'customize',\n 'image_url' => '',\n 'meta_title' => 'News',\n 'meta_keyword' => 'news',\n 'meta_description' => 'News page',\n 'user_id' => 1,\n 'template' => 'news',\n 'created_at' => date(\"Y-m-d H:i:s\"),\n 'updated_at' => date(\"Y-m-d H:i:s\")\n ],\n [\n 'parent_page_id' => 0,\n 'album_id' => 0,\n 'slug' => 'footer',\n 'name' => 'Footer',\n 'label' => 'footer',\n 'contents' => $footerHTML,\n 'status' => 'PUBLISHED',\n 'page_type' => 'default',\n 'image_url' => '',\n 'meta_title' => '',\n 'meta_keyword' => '',\n 'meta_description' => '',\n 'user_id' => 1,\n 'template' => '',\n 'created_at' => date(\"Y-m-d H:i:s\"),\n 'updated_at' => date(\"Y-m-d H:i:s\")\n ]\n ];\n\n DB::table('pages')->insert($pages);\n }", "public function create()\n {\n $data['thisPageId'] = $this->thisPageId;\n $data['thisModuleId'] = $this->thisModuleId;\n $rootParent = $this->photoGallery->rootParentList();\n\n $dash = \"\";\n $dropdown = [ ];\n $galleryList = [ \"\" => 'Select Gallery' ] + $this->recur($rootParent, $dash, $dropdown);\n\n $flags = $this->language->getAllDataNoPagination();\n $galleryLg = $this->photoGalleryLg->getAllDataNoPagination();\n\n return view('cms.modules.multicms.photoGallery_addnew', compact('galleryList', 'galleryLg', 'flags'), $data);\n }", "public function create()\n {\n $this->data['today'] = date('Y-m-d');\n return view('gallery.create', $this->data);\n }", "function gallery($imgloc, $imgurl, $alt, $title, $align, $class)\n {\n\n static $mt_gallery_count = 0;\n\n if ($mt_gallery_count) {\n return false;\n }\n\n $mt_gallery_count++;\n\n if (!@fopen($imgloc, 'r')) {\n // can't open file. Ignore it.\n return false;\n }\n\n $old_caption_type_iptc = $this->_params->get('caption_type_iptc');\n $old_caption_type_filename = $this->_params->get('caption_type_filename');\n $old_caption_type_title = $this->_params->get('caption_type_title');\n $old_caption_type_alt = $this->_params->get('caption_type_alt');\n\n $this->_params->set('caption_type_iptc', $this->_params->get('caption_type_gallery_iptc'));\n $this->_params->set('caption_type_filename', $this->_params->get('caption_type_gallery_filename'));\n $this->_params->set('caption_type_title', $this->_params->get('caption_type_gallery_title'));\n $this->_params->set('caption_type_alt', $this->_params->get('caption_type_gallery_alt'));\n\n $pathinfo = pathinfo($imgloc);\n $filepatt = \"$pathinfo[dirname]/{*.gif,*.jpg,*.png,*.GIF,*.JPG,*.PNG}\";\n\n\n $style = $align ? ' align=\"' . $align . '\" ' : '';\n $gallery = '<table class=\"' . $this->_params->get('gallery_class') . '\" >' . \"\\n\";\n\n $n = 0;\n $lblinks = '';\n\n if (file_exists(\"$imgloc.txt\")) {\n $imglist = file_get_contents(\"$imgloc.txt\");\n preg_match_all('/(\\S+\\.(?:jpg|png|gif))\\s(.*)/i', $imglist, $files, PREG_SET_ORDER);\n $dir = dirname($imgurl);\n } else {\n $files = glob($filepatt, GLOB_BRACE);\n sort($files);\n $imgpos = array_search($imgloc, $files);\n $files = array_merge(array_slice($files, $imgpos), array_slice($files, 0, $imgpos));\n $dir = dirname($imgurl);\n }\n\n// \tif($alt=='mt_gallery') {\n $this->mt_gallery_count++;\n\n if (!$alt) {\n $alt = $title;\n }\n\n if (!$alt) {\n $alt = \"gallery\" . $this->mt_gallery_count;\n }\n\n\n// \t}\n\n $mt_gallery_more = 0;\n\n foreach ($files as $file) {\n if (is_array($file)) {\n $fn = $dir . '/' . $file[1];\n $title = str_replace(\"'\", '&#39;', $file[2]);\n } else {\n $fn = $dir . '/' . basename($file);\n }\n $this->is_gallery = true;\n $galimg = preg_replace_callback($this->regex,\n array(&$this, 'image_replacer'),\n '<img ' . $style . ' class=\"' . $class . '\" alt=\"' . $alt . '\" title=\"' . $title . '\" src=\"' . $fn . '\" />' . \"\\n\");\n $this->is_gallery = false;\n if (!(strpos($galimg, '<img') === false)) {\n\n if ($n % $this->_params->get('num_cols') == 0) {\n $gallery .= '<tr class=\"' . $this->_params->get('gallery_class') . '\" >';\n }\n $gallery .= '<td class=\"' . $this->_params->get('gallery_class') . '\" valign=\"bottom\" nowrap=\"nowrap\" ' . $style . '>' . $galimg . '</td>\n';\n $n++;\n if ($n % $this->_params->get('num_cols') == 0) {\n $gallery .= \"</tr>\\n\";\n }\n } else if (substr($galimg, 0, 2) == '<a') {\n {\n $lblinks .= $galimg;\n }\n }\n }\n\n $gallery .= str_repeat('<td>&nbsp;</td>', $this->_params->get('num_cols') - 1 - ($n - 1) % $this->_params->get('num_cols')) . \"</tr>\";\n $gallery .= \"</table>\\n\";\n\n\n $this->_params->set('caption_type_iptc', $old_caption_type_iptc);\n $this->_params->set('caption_type_filename', $old_caption_type_filename);\n $this->_params->set('caption_type_title', $old_caption_type_title);\n $this->_params->set('caption_type_alt', $old_caption_type_alt);\n\n\n $mt_gallery_count--;\n return $gallery . $lblinks;\n\n }", "public function index()\n {\n $images = ImageGallery::get();\n \n \treturn view('image-gallery',compact('images'));\n }", "public function makePhotographyGallery()\n {\n $imagePath = 'images/photography';\n $imageFiles = File::allFiles($imagePath);\n\n return view('pages/photography')->with(compact('imagePath', 'imageFiles'));\n }", "public static function gallery_shortcode($attr) {\n\n\t\t\tstatic $instance = 0;\n\n\t\t\t$post = get_post();\n\t\t\t$instance ++;\n\t\t\t$output = '';\n\t\t\t$i = 0;\n\n\t\t\tif (! empty( $attr['ids'])) { \n\n\t\t\t\t$attr['include'] = $attr['ids'];\n\t\t\t\t$attr['orderby'] = empty($attr['orderby']) ? 'post__in' : $attr['orderby'];\n\t\t\t\t$attr['link'] = empty($attr['link']) ? 'post' : $attr['link'];\n\t\t\t}\n\n\t\t\t$atts = shortcode_atts(array(\n\n\t\t\t\t'order' => 'ASC',\n\t\t\t\t'orderby' => 'menu_order ID',\n\t\t\t\t'id' => $post ? $post->ID : 0,\n\t\t\t\t'itemtag' => 'figure',\n\t\t\t\t'icontag' => 'div',\n\t\t\t\t'captiontag' => 'figcaption',\n\t\t\t\t'columns' => 3,\n\t\t\t\t'size' => 'thumbnail',\n\t\t\t\t'style' => '',\n\t\t\t\t'include' => '',\n\t\t\t\t'exclude' => '',\n\t\t\t\t'link' => ''\n\n\t\t\t), $attr, 'gallery');\n\n\t\t\t// fetching the attachments\n\n\t\t\tif (! empty( $atts['include'])) {\n\t\t\t\t\n\t\t\t\t$_attachments = get_posts(array('include' => $atts['include'], 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $atts['order'], 'orderby' => $atts['orderby']));\n\t\t\t\t$attachments = array();\n\n\t\t\t\tforeach ($_attachments as $key => $val) { $attachments[$val->ID] = $_attachments[$key]; }\n\t\t\t}\n\t\t\telseif (! empty($atts['exclude'])) {\n\n\t\t\t\t$attachments = get_children(array('post_parent' => intval($atts['id']), 'exclude' => $atts['exclude'], 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $atts['order'], 'orderby' => $atts['orderby']));\n\t\t\t}\n\t\t\telse {\n\n\t\t\t\t$attachments = get_children(array('post_parent' => intval($atts['id']), 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $atts['order'], 'orderby' => $atts['orderby']));\n\t\t\t}\n\n\t\t\t// building the gallery\n\n\t\t\tif (! empty($attachments)) {\n\n\t\t\t\tif (is_feed()) {\n\n\t\t\t\t\tforeach ($attachments as $att_id => $attachment) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t$output .= wp_get_attachment_link($att_id, $atts['size'], true).\"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t\n\t\t\t\t\t$size = $atts['size'];\n\t\t\t\t\t$style = empty($atts['style']) ? '' : $atts['style'];\n\n\t\t\t\t\t$gallery = $atts['link'] === 'file' ? ' image-gallery' : '';\n\t\t\t\t\t$class = empty($style) ? 'gallery'.$gallery.' columns-'.intval($atts['columns']) : 'mosaic'.$gallery;\n\n\t\t\t\t\t$output .= \"\\n\";\n\t\t\t\t\t$output .= '<ul class=\"'.$class.'\">'.\"\\n\";\n\n\t\t\t\t\tforeach ($attachments as $id => $attachment) {\n\n\t\t\t\t\t\t$meta = wp_get_attachment_metadata($id);\n\t\t\t\t\t\t$thumbnail = wp_get_attachment_image_src($id, $size);\n\n\t\t\t\t\t\t$loader = esc_url(get_template_directory_uri()).'/img/img-loader.png';\n\n\t\t\t\t\t\t$caption = htmlspecialchars(get_text_excerpt($attachment->post_excerpt), 9999);\n\t\t\t\t\t\t$alt = get_post_meta($id, '_wp_attachment_image_alt', true);\n\n\t\t\t\t\t\t$width = $thumbnail[1];\n \t\t\t\t\t$height = $thumbnail[2];\n\n\t\t\t\t\t\t$image = '<img src=\"'.$loader.'\" data-srcset=\"'.$thumbnail[0].' 1x, '.$thumbnail[0].' 2x\" class=\"lazyload\" width=\"'.$width.'\" height=\"'.$height.'\" alt=\"'.(empty($alt) ? $caption : $alt).'\" />';\n\n\t\t\t\t\t\tif ($atts['link'] === 'file') {\n\n\t\t\t\t\t\t\t$output .= empty($style) ? \"\\t\".'<li><a href=\"'.wp_get_attachment_image_url($id, 'large').'\" data-rel=\"gallery\" rel=\"nofollow\" title=\"'.$caption.'\">'.$image.'</a></li>'.\"\\n\" : \"\\t\".'<li><figure class=\"cover-photo unveil\"><a href=\"'.wp_get_attachment_image_url($id, 'large').'\" data-rel=\"gallery\" rel=\"nofollow\" title=\"'.$caption.'\">'.$image.'</a></figure></li>'.\"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\telseif ($atts['link'] === 'post') {\n\n\t\t\t\t\t\t\t$output .= empty($style) ? \"\\t\".'<li><a href=\"'.get_attachment_link($id).'\" rel=\"nofollow\" title=\"'.$caption.'\">'.$image.'</a></li>'.\"\\n\" : \"\\t\".'<li><figure class=\"cover-photo unveil\"><a href=\"'.get_attachment_link($id).'\" rel=\"nofollow\" title=\"'.$caption.'\">'.$image.'</a></figure></li>'.\"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\n\t\t\t\t\t\t\t$output .= empty($style) ? \"\\t\".'<li>'.$image.'</li>'.\"\\n\" : \"\\t\".'<li><figure class=\"cover-photo unveil\">'.$image.'</figure></li>'.\"\\n\";\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$output .= '</ul>'.\"\\n\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $output;\n\t\t}", "public function show_images(){\n\t\t\t$dir = '../pictures/';\n\t\t\t//checks if is an actual directory, opens it and reads each and returns filename.ext\n\t\t\tif (is_dir($dir)) {\n\t\t\t if ($dh = opendir($dir)) {\n\t\t\t while (($file = readdir($dh)) !== false) {\n\t\t\t \tif( $file == '.' || $file == '..'){//readdir returns ., .. before actual filenames\n \t\tcontinue;//they are ignored\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//href value is to a include file showlarge.inc.php\n\t\t\t\t\t\techo \"<a href=?value=showlarge&value={$file}>\";\n\t\t\t\t\t\techo \"<img class = 'picture' src='{$dir}{$file}'></a>\";\n\t\t\t }\n\t\t\t closedir($dh);\n\t\t\t }\n\t\t\t}\n\t\t}", "function main($pro, $lang) {\n\n\n $rowNumbers = $pro['rowNumbers'];\n \n \n $data = '<div class=\\'com_images_gallery images_gallery\\'>';\n\n if (isset($_GET['page'])) {\n $rowFrom = $_GET['page'];\n } else {\n $rowFrom = \"0\";\n }\n\n global $lib;\n\n\n\n \n \n if (isset($_GET['show']) && $_GET['show'] == \"cat\") {\n\n if (isset($_GET['id']) && $_GET['id'] == \"tag\") {\n\n $data .=com_images_getTags($lang);\n } else {\n\n\n\n $id = $lib->util->returnID(\"com_images_gallery_categories\", $_GET['id']);\n\n\n $data .= getimages($pro, $lang,$id, $rowFrom, $rowNumbers);\n }\n } else if (isset($_GET['show']) && $_GET['show'] == \"item\") {\n\n if (isset($_GET['catid']) && $_GET['catid'] == \"tag\") {\n\n \n \n \n $data .=\"<div class='fliter'>\" . $lang['tag'] . \"</div>\";\n $data .=\"<div class='fliterData'>\" . $_GET['id'] . \"</div>\";\n $data .= getimagestag($_GET['id'], $rowFrom, $rowNumbers, $pro);\n } else {\n\n $id = $lib->util->returnID(\"com_images_gallery\", $_GET['id']);\n\n $data .= getImage($id);\n }\n } else if ($pro['gallery'] != \"\") {\n\n \n $data .= getimages($pro, $lang, $pro['gallery'], $rowFrom, $rowNumbers);\n } else {\n\n\n $data .= getCategories(\"0\");\n }\n return $data . \"</div>\";\n}", "public function index()\n {\n $galleries = Gallery::all();\n return view('admin.gallery.index' , compact('galleries'));\n }", "function beginGallery($uniqueId,$limitImages=0) {\n\t\tif ($limitImages==1) {\n\t\t\t$content = '<div class=\"content\"><div class=\"myGallery-NoScript\" id=\"myGallery-NoScript'.$uniqueId.'\">';\n\t\t}\n\t\telse {\n\t\t\t$content = '<div class=\"content\"><div class=\"myGallery\" id=\"myGallery'.$uniqueId.'\">';\n\t\t}\n\t\t\n if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rgsmoothgallery']['extraBeginGalleryHook'])) {\n foreach($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rgsmoothgallery']['extraBeginGalleryHook'] as $_classRef) {\n\t\t\t\t$_procObj = & t3lib_div::getUserObj($_classRef);\n\t\t\t\t$content = $_procObj->extraBeginGalleryProcessor($content, $limitImages,$this);\n }\n } \n return $content; \n }", "public function index()\n {\n $galleries = Gallery::orderByDesc('created_at')->paginate(20);\n return view('admin_area.gallery.index', compact('galleries'));\n }", "public function index()\n {\n $data =Gallery::latest()->paginate(5);\n return view('content/admin/gallery/gallery', compact('data'));\n }", "public function create()\n {\n return view('admin.videoGallery.create');\n }", "function anomous_gallery_post() {\n\n\t$labels = array(\n\t\t'name' => __( 'Gallery', 'autonomous' ),\n\t\t'singular_name' => __( 'Gallery', 'autonomous' ),\n\t\t'add_new' => _x( 'Add New Gallery', 'autonomous', 'autonomous' ),\n\t\t'add_new_item' => __( 'Add New Gallery', 'autonomous' ),\n\t\t'edit_item' => __( 'Edit Gallery', 'autonomous' ),\n\t\t'new_item' => __( 'New Gallery', 'autonomous' ),\n\t\t'view_item' => __( 'View Gallery', 'autonomous' ),\n\t\t'search_items' => __( 'Search Gallery', 'autonomous' ),\n\t\t'not_found' => __( 'No Gallery found', 'autonomous' ),\n\t\t'not_found_in_trash' => __( 'No Gallery found in Trash', 'autonomous' ),\n\t\t'menu_name' => __( 'Gallery', 'autonomous' ),\n\t);\n\n\t$args = array(\n\t\t'labels' => $labels,\n\t\t'description' => 'Gallery For Each Department and Festivels',\n\t\t'public' => true,\n\t\t'show_ui' => true,\n\t\t'show_in_nav_menus' => false,\n\t\t'publicly_queryable' => true,\n\t\t'exclude_from_search' => false,\n\t\t'has_archive' => true,\n\t\t'rewrite' => array( 'slug' => 'gallery','with_front' => false ),\n\t\t'capability_type' => 'post',\n\t\t'supports' => array(\n\t\t\t'title',\n\t\t\t'thumbnail',\n\t\t\t'editor',\n\t\t),\n\t\t'capabilities' => array(\n\t\t\t'edit_post' => 'hod_priv',\n\t\t\t'read_post' => 'hod_priv',\n\t\t\t'delete_post' => 'hod_priv',\n\t\t\t'edit_posts' => 'hod_priv',\n\t\t\t'edit_others_posts' => 'hod_priv',\n\t\t\t'delete_posts' => 'hod_priv',\n\t\t\t'publish_posts' => 'hod_priv',\n\t\t\t'read_private_posts' => 'hod_priv'\n\t\t),\n\t);\n\n\tregister_post_type( 'gallery_anomous', $args );\n}", "public function index()\n\t{\n\t\t$images = Image::where('product', '=', 0)->get();\n\t\treturn view('galleries.index', compact('images'));\n\t}", "public function gallery_albums()\n {\n $lang = $this->data['lang'];\n $user_id = $this->user_id;\n\n $this->data['page'] = 'gallery' ;\n $this->data['gallery_albums'] = $this->home_m->get_data('gallery_albums')->result_array();\n\n $body = 'gallery_albums' ;\n\n $this->load_pages($body,$this->data);\n }", "function index()\n {\n $data['gallery'] = $this->Gallery_model->get_all_gallery();\n \n $data['_view'] = 'gallery/index';\n $this->load->view('layouts/main',$data);\n }", "public function create()\n {\n $this->data['pageHead'] = \"Add New Photo\";\n if ( $this->permission(4) ) {\n $this->data['authUser'] = $this->asUsualData()['authUser'];\n $this->data['asUsualData'] = $this->asUsualData();\n $this->data['dashboardData'] = $this->dashboardData();\n $this->data['classes'] = CourseClass::arrOfClassName();\n return view('admin.gallery.gallery_create', $this->data);\n }else{\n return view('admin.gallery.gallery_create', $this->data);\n }\n }", "function build_bw_gallery () {\n\t/**\n\t* Start by collecting path and setup information\n\t**/\n\t$bwgallery_dr = dirname(dirname(__FILE__)); //directory of gallery core files\n\t$bwgallery_webdr = str_replace($_SERVER['DOCUMENT_ROOT'],\"\",dirname(dirname(__FILE__))); //relative path\n\t$bwgallery_img = scandir($bwgallery_dr.\"/images\",1); //gather list of files from images folder\n\t$bwgallery_ext_search = array(\"jpg\",\"jpeg\",\"gif\",\"png\"); //list of acceptable file extensions\n\t$bwgallery_thumb = \"\"; \n\t$bwgallery_display = \"\";\n\t\n\t/**\n\t* prepare image list\n\t**/\n\tforeach($bwgallery_img as $k=>$v) {\n\t\t$ext = pathinfo($v, PATHINFO_EXTENSION); //identify file extensions\n\t\tif (in_array($ext,$bwgallery_ext_search)) { //weed out non-image files\n\t\t\t$size = getimagesize($bwgallery_dr.\"/images/\".$v); //get image size\n\t\t\t$w = $size[0];\n\t\t\t$h = $size[1];\n\t\t\t$bwgallery_images[] = array('img'=>$v,'width'=>$size[0],'height'=>$size[1]);\n\t\t}\n\t}\n\t\n\t/**\n\t*get image information from csv if exists\n\t**/\n\t$bwgallery_descriptions = array();\n\tif (($handle = fopen($bwgallery_dr.\"/bw_gallery.csv\", \"r\")) !== FALSE) {\n\t\twhile (($data = fgetcsv($handle, 1000, \",\")) !== FALSE) {\n\t\t\t$bwgallery_descriptions[$data[0]] = $data[1];\n\t\t}\n\t\tfclose($handle);\n\t}\n\t\n\t/**\n\t* build html blocks for gallery\n\t**/\n\tforeach($bwgallery_images as $k=>$v) {\n\t\t$style = \"\";\n\t\t$bwgallery_thumb .= \"<li class=\\\"bw_gallery_titem\\\" rel=\\\"bw_gallery_imgdisplay_item\".$k.\"\\\"><img src=\\\"\".$bwgallery_webdr.\"/images/\".$v['img'].\"\\\" rel=\\\"bw_gallery_imgdisplay_item\".$k.\"\\\" /></li>\";\n\t\t\tif ($k == 0) {\n\t\t\t\t$style .= \"display:block;\";\n\t\t\t}\n\t\t\t$bwgallery_display .= \"<div class=\\\"bw_gallery_imgdisplay_item bw_gallery_imgdisplay_item\".$k.\"\\\" style=\\\"\".$style.\"\\\"><img src=\\\"\".$bwgallery_webdr.\"/images/\".$v['img'].\"\\\" /><div class=\\\"bw_gallery_imgdisplay_item_description\\\">\".$bwgallery_descriptions[$v['img']].\"</div></div>\";\n\t}\n\t\n\t/**\n\t* return variables for gallery display\n\t**/\n\treturn array(\n\t\t'webdr'=>$bwgallery_webdr,\n\t\t'images'=>$bwgallery_images,\n\t\t'thumb'=>$bwgallery_thumb,\n\t\t'display'=>$bwgallery_display\n\t);\n}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Gallery::find(),\n ]);\n\n return $this->render('index', compact('dataProvider'));\n }", "function generate_thumb($thumb){\nif (isset($thumb))\n\t/*---------------Start Director Setup ------------------------*/\n\t// Include DirectorAPI class file\n\tinclude('http://www.heyreverb.com/wp-content/plugins/ssp-slideshow/classes/DirectorPHP.php');\n\t$director = new Director('hosted-9c9cf54218f185433472b1e031a9b8c3', 'reverb.slideshowpro.com');\n\t//echo('Connected!');\n\t\n\t if ($thumb != \"\") {\n \t// Separate our comma separated list $thumb into an array\n $thumbnaildata = explode(\",\", $thumb);\n\t}\t\n\t\n\t# When your application is live, it is a good idea to enable caching.\n\t# You need to provide a string specific to this page and a time limit \n\t# for the cache. Note that in most cases, Director will be able to ping\n\t# back to clear the cache for you after a change is made, so don't be \n\t# afraid to set the time limit to a high number.\n\t$director->cache->set('10122010', '+60 minutes');\n\t\n\t# We can also request the album preview at a certain size\n\t#$director->format->preview(array('width' => \"0\", 'height' => '0', 'crop' => 0, 'quality' => 85, 'sharpening' => 1));\n\t$artlicleBig = array('name' => 'artlicleBig', 'width' => \"610\", 'height' => '384', 'crop' => 1, 'quality' => 80, 'sharpening' => 1);\n\t$artlicleMed = array('name' => 'artlicleMed', 'width' => \"282\", 'height' => '178', 'crop' => 1, 'quality' => 80, 'sharpening' => 1);\n\t$artlicleSm = array('name' => 'artlicleSm', 'width' => \"150\", 'height' => '150', 'crop' => 1, 'quality' => 80, 'sharpening' => 1);\n\t$artlicleTh = array('name' => 'artlicleTh', 'width' => \"150\", 'height' => '150', 'crop' => 1, 'quality' => 80, 'sharpening' => 1);\n\t$homeSlider = array('name' => 'homeSlider', 'width' => \"960\", 'height' => '400', 'crop' => 1, 'quality' => 95, 'sharpening' => 1);\n\t$director->format->add($artlicleBig);\n\t$director->format->add($artlicleMed);\n\t$director->format->add($artlicleSm);\n\t$director->format->add($artlicleTh);\n\t$director->format->add($homeSlider);\n /*-----------End Director Setup -----------------------------*/\t \n\n\t// Check to see if user wanted to use a specific image or if we should use the first one as a default\n\t$x = $thumbnaildata[1] -1;\n\tif ($x == -1) {\n\t\t$x = 0;\n\t}\n\n $album = $director->album->get($thumbnaildata[0]);\n\t$caption = $album->contents->content[$x]->caption;\n\t$album_name = $album->name;\n\t\n\t/*my array of formats*/\n\t$imginfo = Array (\n\t\t'articleBig_url' => $album->contents->content[$x]->artlicleBig->url .\"\\\" width=\\\"\" . $album->contents->content[$x]->artlicleBig->width . \"\\\" height=\\\"\" . $album->contents->content[$x]->artlicleBig->height . \"\\\" alt=\\\"\" . $album_name . \"\\\" /><div class=\\\"wp-caption\\\" style=\\\"margin-right:4px;width:610px;\\\"><p class=\\\"wp-caption-text\\\">\".$caption.\"</p></div>\",\n\t\t'articleMed_url' => $album->contents->content[$x]->artlicleMed->url .\"\\\" width=\\\"\" . $album->contents->content[$x]->artlicleMed->width . \"\\\" height=\\\"\" . $album->contents->content[$x]->artlicleMed->height . \"\\\" alt=\\\"\" . $album_name . \"\\\" /><div class=\\\"wp-caption\\\" style=\\\"margin-right:4px;width:282px;\\\"><p class=\\\"wp-caption-text\\\">\".$caption.\"</p></div>\",\n\t\t'articleSm_url' => $album->contents->content[$x]->artlicleSm->url .\"\\\" width=\\\"\" . $album->contents->content[$x]->artlicleSm->width . \"\\\" height=\\\"\" . $album->contents->content[$x]->artlicleSm->height . \"\\\" alt=\\\"\" . $album_name . \"\\\" />\",\n\t\t'articleTh_url' => $album->contents->content[$x]->artlicleTh->url .\"\\\" width=\\\"\" . $album->contents->content[$x]->artlicleTh->width . \"\\\" height=\\\"\" . $album->contents->content[$x]->artlicleTh->height . \"\\\" alt=\\\"\" . $album_name . \"\\\" />\",\n\t\t'homeSlider_url' => $album->contents->content[$x]->homeSlider->url );\n return $imginfo;\n}", "public function show() {\n if (!isset($_GET['id']))\n return call('pages', 'error');\n\n // we use the given id to get the right post\n $image = Gallery::find($_GET['id']);\n require_once('views/gallery/show.php');\n }", "public function run()\n {\n Gallery::create([\n 'building_id' => 1,\n 'image' => \"aadfdafadf\"\n ]);\n\n Gallery::create([\n 'building_id' => 2,\n 'image' => \"aadfdafadf\"\n ]);\n }", "public function createMedia();", "function galleries($title=\"Che_Guevara\",$page=\"1\")\n\t{\n\t //displays them\t \n\t \n\t $this->load->model('Articlesmodel');\n\t //load diretory to get all the images in a directory\n\t $this->load->helper('directory');\n\t $map = directory_map('../CodeIgniter/images', TRUE);\n\t //echo_array($map);\n\t $data['map']=$map;\n\t \n\t $this->Articlesmodel->article_name=\"../blog/$title\".'.dat';\n\t $data['content']=$this->Articlesmodel->get_article();\n\t //loads the parser filters\n\t $this->load->library('filterclass');\n\t //change wiki links and place into content\n\t $data['content']=$this->filterclass->wikitize($data['content']);\n\t $data['feature']=$this->filterclass->feature($data['content']);\n\t $data['keywords']=$this->filterclass->parseField('keywords',$data['content']);\n\t $data['title']=$this->filterclass->parseField('title',$data['content']);\n\t $data['feature_image']=$this->filterclass->parseField('feature-image',$data['content']);\n\t //let us get the list of articles in the directory\n\n\t $this->Articlesmodel->path='../blog/';\n\t $data['list']=$this->Articlesmodel->get_articles_list();\n\n\n\t //let us view what we got by sending data and choosing the view\n\t $this->load->view('directory_view',$data);\n \t}", "public function create()\n {\n $media = Media::where('type',1)->get();\n return view('Admin.Slide.add',compact('media'));\n }", "function admin_gallery()\n {\n // Require admin login\n if(!(isset($_SESSION['active_user']) && $_SESSION['active_user']['type'] == 'admin'))\n redirect_to('/');\n\n $this->load_outer_template('admin');\n\n if(!isset($this->params[2]) || (!is_numeric($this->params[2])))\n throw new exception(\"No set specified\");\n\n $item = $this->params[2];\n\n $m_gallery = instance_model('gallery');\n $m_set = instance_model('gallery_set');\n $m_member = instance_model('members');\n\n $set = $m_set->get_by_id($item);\n if($set == array())\n throw new exception('Set does not exist');\n\n $member = $m_member->get_by_id($set[0]['Owner']);\n\n if($member == array())\n throw new exception('Member does not exist');\n\n $gallery = $m_gallery->get_in_set($item);\n\n $list = array();\n foreach($gallery as $image)\n {\n $list []= array(\n 'name' => make_url('res', 'gallery', $member[0]['Clean_title'], 'thumbs', $image['File']),\n 'options' => array(\n 'Delete' => make_url('members', 'admin_gallery_delete', $item, $image['ID']))\n );\n }\n\n $view = instance_view('admin/index_generic');\n $view = $view->parse_to_variable(array(\n 'image_mode' => true,\n 'back_url' => make_url('members', 'admin_gallery_set', $set[0]['Owner']),\n 'sortable' => false,\n 'title' => 'Group: ' . $set[0]['Title'],\n 'new_url' => make_url('members', 'admin_gallery_create', $item),\n 'new_name' => 'Upload image',\n 'list' => $list\n ));\n\n\n $this->set_template_paramiters(array(\n 'content' => $view\n ));\n }", "function admin_showgal($real_path) {// global $get, $uri;\n\t/*$real_path = $path.'/'.$selection;\n\tif (isset($get['o'])) {\n\t\t$url = explode('/',$get['o']);\n\t\t$url1 = explode('|', $url[0]);\n\t\t$url2 = explode('|', $url[1]);\n\t\t$found = in_array('sl', $url1) ? true : false;\n\t\t$link = pre_seao($url1[0], $url2[0], false, true);\n\t\t$link = str_replace('ebookcms.php/', '', $link);\n\t\t$link = str_replace('ebookcms.php?', '?', $link);\n\t\t$add = !isset($get['sl']) ? pre_seao('sl', '1') : '';\n\t\tfor ($i=1; $i<count($url1); $i++) {\n\t\t\t$link .= pre_seao($url1[$i], $url2[$i]);\n\t\t\tif ($i==2 && !$found) {$link .= $add;}\n\t\t}\n\t}*/\n\techo '<div class=\"show_img\">';\n\tif (is_dir($real_path)) { $images = '';\n\t\t$handle = opendir($real_path);\n\t\t$extensions = array('.jpg', '.bmp', '.gif', '.png');\n\t\twhile (($file = readdir($handle)) == true) {\n\t\t\tif ($file != '.' && $file != '..' && $file != 'thumbs') {\n\t\t\t\tclearstatcache();\n\t\t\t\t$ext = strrchr($file, '.');\n\t\t\t\tif (in_array($ext, $extensions)) {\n\t\t\t\t\tif (file_exists($real_path.'/'.$file)) {\n\t\t\t\t\t\t$images = $images.'<li>\n\t\t\t\t\t\t\t<div class=\"si_img\">\n\t\t\t\t\t\t\t\t<img src=\"'.$real_path.'/'.$file.'\" />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</li>';\n\t\t\t\t\t }\n\t\t\t\t}\n\t\t\t}\n\t\t} closedir($handle);\n\t\tif (!empty($images)) {echo '<ul>'.$images.'</ul><br />';} else {echo t('no_image');}\n\t} else if (empty($selection)) {echo t('select_imgs');}\n\techo '</div>';\n\tif (!empty($images)) {return;}\n}", "public function create()\n {\n return view('gallery.albums.create');\n }", "public function index()\n {\n $items = Gallery::latest()->paginate(10);\n return view('pages.gallery.index', compact('items'));\n }", "public function create()\n {\n $types = typeTank::all();\n $title = 'Dodaj czołg';\n\n return view('admin.galleries.create', compact('types', 'title'));\n }", "public function getIndex() {\n\t\t// Title\n\t\t$title = Lang::get('admin/galleryimages/title.gallery_management');\n\n\t\t// Gallery category\n\t\t$galleries = Gallery::all();\n\n\t\t$options = array();\n\n\t\t$options[0] = Lang::get('admin/galleryimages/title.gallery_choose');\n\n\t\tforeach ($galleries as $gallery) {\n\t\t\t$options[$gallery -> id] = $gallery -> title;\n\t\t}\n\n\t\t// Show the page\n\t\treturn View::make('admin/galleryimages/index', compact('options', 'galleries', 'title'));\n\t}", "public function index()\n {\n $galleryImages = GalleryImage::with(['category.album'])->get();\n return view('admin_dashboard.gallery.image.index', compact(['galleryImages']));\n }", "public function index()\r\n\t{\t$dokumentasi =$this->Dokumentasi_model->home();\t\r\n\t\t$data= array(\t'title'\t\t\t =>'gallery'\r\n\t\t\t\t\t\t'gallery'\t\t => $gallery,\r\n\t\t\t\t\t\t'isi' =>'home/list/galery'\r\n\t\t );\r\n\t\t$this-> load->view('layout/wrapper',$data,FALSE);\r\n\t}" ]
[ "0.7478964", "0.6882237", "0.6727784", "0.66520244", "0.65690035", "0.65487844", "0.6531793", "0.65195656", "0.6504642", "0.6503334", "0.64912874", "0.64634514", "0.64429766", "0.643742", "0.64273566", "0.6422972", "0.64060414", "0.6404806", "0.6382659", "0.6378416", "0.63652164", "0.6363545", "0.6361805", "0.63411605", "0.63411605", "0.63411605", "0.63411605", "0.63411605", "0.63411605", "0.63333756", "0.63333756", "0.63333756", "0.6329658", "0.63288", "0.63043934", "0.62961733", "0.62956727", "0.62718165", "0.6270015", "0.6257448", "0.62447083", "0.62412506", "0.6231591", "0.62235254", "0.62196606", "0.6209959", "0.6207424", "0.62061644", "0.6195005", "0.6189526", "0.618781", "0.61752087", "0.6166", "0.61607456", "0.6158009", "0.614246", "0.6107949", "0.61034805", "0.60775274", "0.6076102", "0.6071212", "0.6069976", "0.60693485", "0.6068618", "0.6068291", "0.60619736", "0.6039548", "0.6039544", "0.60355246", "0.6034078", "0.60305923", "0.6010899", "0.6001944", "0.6000682", "0.5996036", "0.598722", "0.59814227", "0.5981178", "0.5978483", "0.5977957", "0.5977264", "0.5969185", "0.59686893", "0.596631", "0.5966156", "0.59599614", "0.5956273", "0.5954047", "0.5946049", "0.5943555", "0.5919243", "0.59154695", "0.59027207", "0.59016556", "0.5898114", "0.58917993", "0.5888952", "0.5888731", "0.5888723", "0.5881535" ]
0.6143019
55
take a "person list" and return a table
function tlp_show_process_personlist ($text) { $ret = ''; if (!empty($text)) { $ret .= '<table class="show-person-list"><tbody>'; $lines = explode("\n", $text); foreach ($lines as $line) { list($left, $right) = preg_split('/(?:\s*\.\.\.\s*)|(?:\|)/', $line); if (!empty($left) || !empty($right)) { $first_left_char = substr($left, 0, 1); if ($first_left_char === ':' || $first_left_char === '!') { $ret .= '<tr><th colspan="3">' . substr($left, 1) . '</th></tr>'; } else { $ret .= '<tr><td class="left">' . $left . '</td><td class="center"></td><td class="right">' . $right . '</td></tr>'; } } } $ret .= '</tbody></table>'; } return $ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function GetPersons()\n {\n require ('../phpQuery/phpQuery.php');\n\t $motrinfo = file_get_contents('http://motr-online.com/tops/person');\n $document = phpQuery::newDocument($motrinfo);\n $res = [];\n\n $hentry = $document->find('table.tableBord');\n \n $pqm=pq($hentry)->eq(0);\n $trarr=array();\n\n foreach ($pqm->find('tr') as $el1)\n {\n $pq1 = pq($el1);\n $trarr[] = $pq1;\n }\n \n for($i=1;$i<count($trarr);$i++){ \n $row = new PersonInfo();\n $row->position = $trarr[$i]->find('td')->eq(0)->text();\n $row->name = $trarr[$i]->find('td')->eq(1)->text();\n $row->class = $trarr[$i]->find('td')->eq(2)->text();\n $row->baseLvl = $trarr[$i]->find('td')->eq(3)->text();\n $row->jobLvl= $trarr[$i]->find('td')->eq(4)->text();\n $row->guild = $trarr[$i]->find('td')->eq(5)->find('a')->text();\n $row->guild_image = $trarr[$i]->find('td')->eq(5)->find('img')->attr('src');\n $row->socialRang = $trarr[$i]->find('td')->eq(6)->text();\n array_push($res,$row);\n }\n\n\t return $res;\n }", "public function showContactPersonsTable() {\r\n\t\t$stmt = $this->connect()->query(\"SELECT * FROM contact_person\");\r\n\t\techo \"<h3>Contact Person Table</h3>\";\r\n\t\techo \"<table><tr><td>\" . \"phone_number\" . \"</td><td>\" . \"email\" . \"</td></tr>\";\r\n\t\twhile ($row = $stmt->fetch()) {\r\n\t\t\techo \"<tr><td>\" . $row['phone_number'] . \"</td><td>\" . $row['email'] . \"</td></tr>\"; \r\n\t\t}\r\n\t\techo \"</table>\";\r\n\t}", "public function listPersons()\n {\n $pgw = $this->di['personGateway'];\n return $pgw->fetchAll();\n }", "public function getListPerson($limit){\n\t\t$query = $this->halo_model->getListPerson($limit);\n\t\t\n\t\t$table = \"\";\n\t\tif ($query->num_rows() > 0)\n\t\t{\n\t\t\tforeach ($query->result() as $row)\n\t\t\t{\n\t\t\t\t//echo $row->Code;\n\t\t\t\t//echo $row->Name;\n\t\t\t\t$table .= \"<tr><td>\".$row->Code.\"</td><td>\".$row->Name.\"</td></tr>\";\n\t\t\t\t\n\t\t\t}\n\t\t}\t\t\n\t\t$this->data[\"table\"] = $table;\n\t\t\n\t\t$this->load->view('v_halo', $this->data);\n\t\t//echo json_encode($query->result());\n\t\t\n\t}", "function get_all_persons($conn){\n\t $arr = array();\n\t $sql = 'SELECT * FROM persons';\n\t $stid = oci_parse($conn,$sql);\n\t $res = oci_execute($stid);\n\t \n\t if (!$res) {\n\t\t $err = oci_error($stid);\n\t\t echo htmlentities($err['message']);\n }\n\t \n\t while ($row = oci_fetch_array($stid, OCI_ASSOC)) {\n\t\t array_push($arr,$row);\n\t }\n\t oci_free_statement($stid);\n\t return $arr;\n\t }", "function getActorsAsTable($db)\n{\n try {\n $sql = $db->prepare(\"SELECT * FROM actors\");\n $sql->execute();\n\n $actors = $sql->fetchAll(PDO::FETCH_ASSOC);\nif($sql->rowCount() > 0) {\n $table = \"<table class='table'>\" . PHP_EOL;\n foreach ($actors as $actor) {\n $table .= \"<tr><td>\";\n $table .= $actor['firstname'];\n $table .= \"</td><td>\";\n $table .= $actor['lastname'];\n $table .= \"</td><td>\";\n $table .= $actor['dob'];\n $table .= \"</td><td>\";\n $table .= $actor['height'];\n $table .= \"</td></tr>\";\n }\n $table .= \"</table>\" . PHP_EOL;\n}else{\n $table = \"There are no actors in the DB\" . PHP_EOL;\n}\n return $table;\n\n\n } catch (PDOException $e) {\n die(\"There was a problem getting the list\");\n }\n}", "function person_list($person_id=-1) {\n\tglobal $_DB, $_STATE;\n\n\t//get each person in this org, then get their rate records; if no rate, return NULLs\n\t$sql = \"SELECT c00.person_id, c00.lastname, c00.firstname,\n\t\t\t\t\t\tc02.rate_id, c02.rate, c02.effective_asof, c02.expire_after,\n\t\t\t\t\t\tc00.inactive_asof\n\t\t\tFROM (\n\t\t\t\tSELECT c00.person_id, c00.lastname, c00.firstname, c10.inactive_asof\n\t\t\t\tFROM \".$_DB->prefix.\"c00_person AS c00\n\t\t\t\tINNER JOIN \".$_DB->prefix.\"c10_person_organization AS c10\n\t\t\t\tON c10.person_idref = c00.person_id\n\t\t\t\tWHERE c10.organization_idref = \".$_SESSION[\"organization_id\"].\"\n\t\t\t\t) AS c00\n\t\t\t\tLEFT OUTER JOIN (\n\t\t\t\tSELECT rate_id, person_idref, rate, effective_asof, expire_after\n\t\t\t\tFROM \".$_DB->prefix.\"c02_rate\n\t\t\t\tWHERE project_idref = \".$_STATE->project_id.\"\n\t\t\t\t) AS c02\n\t\t\t\tON c00.person_id = c02.person_idref\";\n\tif ($person_id > 0) $sql .= \"\n\t\t\tWHERE c00.person_id = \".$person_id;\n\t$sql .= \"\n\t\t\tORDER BY c00.lastname, c00.person_id, c02.effective_asof DESC;\";\n\t$stmt = $_DB->query($sql);\n\t$_STATE->records = array();\n\t$rates = array();\n\t$EOF = -1;\n\twhile ($EOF < 1) {\n\t\tif (!$row = $stmt->fetchObject()) { //EOF\n\t\t\tif ($EOF == -1) break; //no people!!??\n\t\t\t$EOF = 1;\n\t\t} else {\n\t\t\tif ($EOF == -1) $row_sav = $row; //first record\n\t\t\t$EOF = 0;\n\t\t}\n\t\tif (($EOF == 1) || ($row_sav->person_id != $row->person_id)) {\n\t\t\t$record = array(\n\t\t\t\t\"ID\" => $row_sav->person_id,\n\t\t\t\t\"name\" => $row_sav->lastname.\", \".$row_sav->firstname,\n\t\t\t\t\"inactive_asof\"=>new DATE_FIELD($row_sav->inactive_asof), //provides formatting only\n\t\t\t\t\"rates\" => $rates,\n\t\t\t\t);\n\t\t\t$_STATE->records[strval($row_sav->person_id)] = $record;\n\t\t\tif ($EOF == 1) break; //all done\n\t\t\t$rates = array();\n\t\t\t$row_sav = $row;\n\t\t}\n\t\t$rates[] = array(\n\t\t\t\"ID\" => $row->rate_id,\n\t\t\t\"update\" => false,\n\t\t\t\"rate\" => $row->rate,\n\t\t\t\t\t\t\t//pagename,DBname,load from DB?,write to DB?,required?,maxlength,disabled,value\n\t\t\t\"eff\"=>new DATE_FIELD(\"txtEff\",\"effective_asof\",FALSE,FALSE,FALSE,0,FALSE,$row->effective_asof),\n\t\t\t\"exp\"=>new DATE_FIELD(\"txtExp\",\"expire_after\",FALSE,FALSE,FALSE,0,FALSE,$row->expire_after),\n\t\t\t);\n\t}\n\t$stmt->closeCursor();\n}", "function get_people_manage_table_data_rows($people,$controller)\n{\n\t$CI =& get_instance();\n\t$table_data_rows='';\n\n\tforeach($people->result() as $person)\n\t{\n\t\t$table_data_rows.=get_person_data_row($person,$controller);\n\t}\n\n\tif($people->num_rows()==0)\n\t{\n\t\t$table_data_rows.='<tr><td colspan=\"6\"><div class=\"warning_message\" style=\"padding:7px;\">'.$CI->lang->line('common_no_persons_to_display').'</div></tr></tr>';\n\t}\n\n\treturn $table_data_rows;\n}", "function get_people_manage_table_data_rows($people,$controller)\n{\n\t$CI =& get_instance();\n\t$table_data_rows='';\n\t\n\tforeach($people->result() as $person)\n\t{\n\t\t$table_data_rows.=get_person_data_row($person,$controller);\n\t}\n\t\n\tif($people->num_rows()==0)\n\t{\n\t\t$table_data_rows.=\"<tr><td colspan='6'><div class='warning_message' style='padding:7px;'>\".$CI->lang->line('common_no_persons_to_display').\"</div></tr></tr>\";\n\t}\n\t\n\treturn $table_data_rows;\n}", "function print_members_details($fetched){\n\t$html = '';\n\t$html .= '<table id = \"table-output\">\n\t\t\t\t<tr>\n \t\t\t\t<th>Name</th>\n \t\t\t\t<th>Email address</th> \n \t\t\t\t</tr>';\n \tforeach($fetched as $school_details){\n\t\t$html .= '<tr><td>' . $school_details['member_name'] . '</td>';\n\t\t$html .= '<td>' . $school_details['member_email'] . '</td> </tr>';\n\t}\n\t$html .= '</table>';\n\treturn $html;\n}", "protected function buildPersonsTable(array $element, FormStateInterface $form_state, array $persons) {\n // Set #parents to 'top-level' by default.\n $element += ['#parents' => []];\n\n // Check if we may use JS.\n $use_js = $this->routeMatch->getParameter('js') == 'ajax' ? TRUE : FALSE;\n\n $element['people_list'] = [\n '#type' => 'table',\n '#header' => [\n t('Person'), t('Operations'),\n ],\n '#empty' => t('There are no people yet, add people below.'),\n ];\n\n foreach ($persons as $i => $person) {\n $row = [];\n $row['person']['#markup'] = $person->label();\n\n $row['operations'] = [\n // Needs a name else the submission handlers think all buttons are the\n // last button.\n '#name' => 'ajax-submit-' . implode('-', $element['#parents']) . '-' . $i,\n '#type' => 'submit',\n '#value' => t('Select'),\n '#limit_validation_errors' => [],\n '#submit' => [\n [$this, 'submitSelectPerson'],\n ],\n '#identity_element_registrant_row' => $i,\n ];\n if ($use_js) {\n $row['operations']['#ajax'] = [\n 'callback' => [$this, 'ajaxRegistrantElement'],\n 'wrapper' => $this->getRegistrantWrapperId(),\n ];\n }\n\n $element['people_list'][] = $row;\n }\n\n return $element;\n }", "function search_people($target) { \n //retrive a specific thinktank, either by id or name\n if (is_numeric($target)) { \n $query = \"SELECT * FROM people WHERE person_id= '$target'\"; \n }\n else { \n $target= mysql_real_escape_string($target); \n $query = \"SELECT * FROM people WHERE name_primary = '$target'\";\n }\n \n $results = $this->fetch($query);\n $output = array();\n foreach($results as $result) { \n $jobs = $this->search_jobs($result[\"name_primary\"], '', '', false, false);\n $temp_output['person'] = $result;\n $temp_output['jobs'] = $jobs;\n $output[] = $temp_output;\n }\n \n return $output;\n }", "private function create_table_people2(): ?string\n\t{\n\t\t$offset = ($this->xxl ? 50 : 30);\n\t\t$rows = ($this->xxl ? 30 : 15);\n\t\t$results = db::query('SELECT csnick, l_total FROM ruid_lines JOIN uid_details ON ruid_lines.ruid = uid_details.uid WHERE status NOT IN (3,4) AND l_total != 0 ORDER BY l_total DESC, ruid_lines.ruid ASC LIMIT '.$offset.','.($rows * 3));\n\t\t$col = 1;\n\t\t$row = 0;\n\n\t\twhile ($result = $results->fetchArray(SQLITE3_ASSOC)) {\n\t\t\tif (++$row > $rows) {\n\t\t\t\t++$col;\n\t\t\t\t$row = 1;\n\t\t\t}\n\n\t\t\t$columns[$col][$row] = [\n\t\t\t\t'csnick' => $result['csnick'],\n\t\t\t\t'l_total' => $result['l_total'],\n\t\t\t\t'pos' => $offset + (($col - 1) * $rows) + $row];\n\t\t}\n\n\t\t/**\n\t\t * Return if we don't have enough data to fill the table.\n\t\t */\n\t\tif (!isset($columns[3][$rows])) {\n\t\t\treturn null;\n\t\t}\n\n\t\t$total = db::query_single_col('SELECT COUNT(*) FROM ruid_lines JOIN uid_details ON ruid_lines.ruid = uid_details.uid WHERE status NOT IN (3,4)') - ($offset + $rows * 3);\n\t\t$colgroup = '<colgroup>'.str_repeat('<col>', 13);\n\t\t$thead = '<thead><tr><th colspan=\"13\">'.($total !== 0 ? '<span class=\"title-left\">Less Talkative People &ndash; All-Time</span><span class=\"title-right\">'.number_format($total).($total !== 1 ? ' People' : ' Person').' had even less to say..</span>' : 'Less Talkative People &ndash; All-Time');\n\t\t$thead .= '<tr><td><td>Lines<td><td>User<td><td>Lines<td><td>User<td><td>Lines<td><td>User<td>';\n\t\t$tbody = '<tbody>';\n\n\t\tfor ($i = 1; $i <= $rows; ++$i) {\n\t\t\t$tbody .= '<tr><td>';\n\n\t\t\tfor ($j = 1; $j <= 3; ++$j) {\n\t\t\t\t$tbody .= '<td>'.number_format($columns[$j][$i]['l_total']).'<td>'.$columns[$j][$i]['pos'].'<td>'.($this->link_user_php ? '<a href=\"user.php?nick='.$this->htmlify(urlencode($columns[$j][$i]['csnick'])).'\">'.$this->htmlify($columns[$j][$i]['csnick']).'</a>' : $this->htmlify($columns[$j][$i]['csnick'])).'<td>';\n\t\t\t}\n\t\t}\n\n\t\treturn '<table class=\"ppl2\">'.$colgroup.$thead.$tbody.'</table>'.\"\\n\";\n\t}", "public function test_it_can_list_people()\n {\n factory(Person::class)->create();\n\n $response = $this->getJson('api/v1/people', ['Authorization' => 'Bearer ' . $this->token]);\n\n $response\n ->assertOk()\n ->assertJsonStructure([\n '*' => [\n 'id', 'name', 'created_at', 'updated_at'\n ]\n ]);\n\n }", "function get_people_manage_table($people,$controller)\n{\n\t$CI =& get_instance();\n\t$table='<table class=\"tablesorter\" id=\"sortable_table\">';\n\n\t$headers = array('<input type=\"checkbox\" id=\"select_all\" />',\n\t$CI->lang->line('common_last_name'),\n\t$CI->lang->line('common_first_name'),\n\t$CI->lang->line('common_email'),\n\t$CI->lang->line('common_phone_number'),\n\t'&nbsp');\n\n\t$table.='<thead><tr>';\n\tforeach($headers as $header)\n\t{\n\t\t$table.=\"<th>$header</th>\";\n\t}\n\t$table.='</tr></thead><tbody>';\n\t$table.=get_people_manage_table_data_rows($people,$controller);\n\t$table.='</tbody></table>';\n\treturn $table;\n}", "function getPersons(){\n\t\t \n\t\t $linksObj = new dbXML_dbLinks;\n\t\t $creatorRels = $linksObj->relToCreator;\n\t\t $contribRels = $linksObj->relToContributor;\n\t\t \n\t\t $db = $this->startDB();\n\t\t $result = false;\n\t\t \n\t\t $sql = \"SELECT actTab.uuid, links.targ_uuid, links.link_type,\n\t\t persons.combined_name, persons.last_name, persons.first_name, persons.mid_init\n\t\t FROM \".$this->penelopeTabID.\" AS actTab\n\t\t JOIN links ON actTab.uuid = links.origin_uuid\n\t\t JOIN persons ON persons.uuid = links.targ_uuid\n\t\t WHERE links.targ_type LIKE '%person%' ;\n\t\t \";\n\t\t \n\t\t $resultA = $db->fetchAll($sql);\n\t\t \n\t\t $sql =\t\"\t\n\t\t\t\tSELECT actTab.uuid, links.targ_uuid, links.link_type, \n\t\t\t\tusers.combined_name, users.last_name, users.first_name, users.mid_init\n\t\t\t\tFROM \".$this->penelopeTabID.\" AS actTab\n\t\t\t\tJOIN links ON actTab.uuid = links.origin_uuid\n\t\t\t\tJOIN users ON users.uuid = links.targ_uuid\n\t\t\t\tWHERE links.targ_type LIKE '%person%'\n\t\t\t\t \n\t\t\t\t\";\n\t\t \n\t\t $resultB = $db->fetchAll($sql);\n\t\t if($resultA && $resultB){\n\t\t\t\t$result = array();\n\t\t\t\tforeach($resultA as $row){\n\t\t\t\t\t $ukey = md5($row[\"uuid\"].$row[\"targ_uuid\"].$row[\"link_type\"]);\n\t\t\t\t\t $result[$ukey] = $row;\n\t\t\t\t}\n\t\t\t\tforeach($resultB as $row){\n\t\t\t\t\t $ukey = md5($row[\"uuid\"].$row[\"targ_uuid\"].$row[\"link_type\"]);\n\t\t\t\t\t if(!array_key_exists($ukey, $result)){\n\t\t\t\t\t\t $result[$ukey] = $row;\n\t\t\t\t\t }\n\t\t\t\t}\n\t\t }\n\t\t elseif($resultB && !$resultA){\n\t\t\t\t$result = $resultB;\n\t\t }\n\t\t elseif(!$resultB && $resultA){\n\t\t\t\t$result = $resultA;\n\t\t }\n\t\t \n\t\t if($result){\n\t\t\t\t\n\t\t\t\t$rawCreators = array();\n\t\t\t\t$rawContributors = array();\n\t\t\t\t$persons = array();\n\t\t\t\tforeach($result as $row){\n\t\t\t\t\t $uuid = $row[\"targ_uuid\"];\n\t\t\t\t\t $uri = self::personBaseURI.$uuid;\n\t\t\t\t\t $name = $row[\"combined_name\"];\n\t\t\t\t\t $linkType = $row[\"link_type\"];\n\t\t\t\t\t if(in_array($linkType, $creatorRels)){\n\t\t\t\t\t\t if(!array_key_exists($uri, $rawCreators)){\n\t\t\t\t\t\t\t\t$rawCreators[$uri] = array(\"name\" => $name, \"count\" => 1);\n\t\t\t\t\t\t\t\t$rawCreators[$uri][\"rel\"] = $this->getLinkedPerson($uuid);\n\t\t\t\t\t\t }\n\t\t\t\t\t\t else{\n\t\t\t\t\t\t\t\t$rawCreators[$uri][\"count\"] ++ ; \n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t\t elseif(in_array($linkType, $contribRels)){\n\t\t\t\t\t\t if(!array_key_exists($uri, $rawContributors)){\n\t\t\t\t\t\t\t\t$rawContributors[$uri] = array(\"name\" => $name, \"count\" => 1);\n\t\t\t\t\t\t\t\t$rawContributors[$uri][\"rel\"] = $this->getLinkedPerson($uuid);\n\t\t\t\t\t\t }\n\t\t\t\t\t\t else{\n\t\t\t\t\t\t\t\t$rawContributors[$uri][\"count\"] = $rawContributors[$uri][\"count\"] + 1; \n\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t\t \n\t\t\t\t\t if(!array_key_exists($uri, $persons)){\n\t\t\t\t\t\t $persons[$uri] = array(\"name\" => $name, \"count\" => 1);\n\t\t\t\t\t\t $persons[$uri][\"rel\"] = $this->getLinkedPerson($uuid);\n\t\t\t\t\t }\n\t\t\t\t\t else{\n\t\t\t\t\t\t $persons[$uri][\"count\"] ++ ; \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\t\n\t\t\t\t\n\t\t\t\t//combine URIs for the same person, choose the URI with the most associated items\n\t\t\t\t$rawCreators = $this->consolidateRelatedURIs($rawCreators);\n\t\t\t\t$rawContributors = $this->consolidateRelatedURIs($rawContributors);\n\t\t\t\t$persons = $this->consolidateRelatedURIs($persons);\n\t\t\t\t\n\t\t\t\t//sort the array by count, from high to low\n\t\t\t\t$rawCreators = $this->orderURIs($rawCreators);\n\t\t\t\t$rawContributors = $this->orderURIs($rawContributors);\n\t\t\t\t$persons = $this->orderURIs($persons);\n\t\t\t\t\n\t\t\t\t$this->rawCreators = $rawCreators;\n\t\t\t\t$this->rawContributors = $rawContributors;\n\t\t\t\t$this->rawLinkedPersons = $persons;\n\t\t\t\t\n\t\t }\n\t }", "function get_people_manage_table($people,$controller)\n{\n\t$CI =& get_instance();\n\t$table='<table class=\"tablesorter\" id=\"sortable_table\">';\n\t\n\t$headers = array('<input type=\"checkbox\" id=\"select_all\" />', \n\t$CI->lang->line('common_last_name'),\n\t$CI->lang->line('common_first_name'),\n\t$CI->lang->line('common_email'),\n\t$CI->lang->line('common_phone_number'),\n\t'&nbsp');\n\t\n\t$table.='<thead><tr>';\n\tforeach($headers as $header)\n\t{\n\t\t$table.=\"<th>$header</th>\";\n\t}\n\t$table.='</tr></thead><tbody>';\n\t$table.=get_people_manage_table_data_rows($people,$controller);\n\t$table.='</tbody></table>';\n\treturn $table;\n}", "function getAllPerson($sw,$usePre=true) {\n if ($usePre) $Pre=$_SESSION[\"pre\"];\n $rechte=berechtigung(\"cp_\");\n if (!$sw[0]) { $where=\"cp_phone1 like '$Pre\".$sw[1].\"%' or cp_mobile1 like '$Pre\".$sw[1].\"%' \"; }\n else { $where=\"cp_name ilike '$Pre\".$sw[1].\"%' or cp_givenname ilike '$Pre\".$sw[1].\"%' or cp_stichwort1 ilike '$Pre\".$sw[1].\"%'\"; }\n $sql=\"select *,'P' as tab,cp_id as id,cp_name as name from contacts where ($where) and $rechte\";\n $rs=$GLOBALS['dbh']->getAll($sql);\n if($rs) return $rs;\n //Was geschieht wenn nach einer Person mit Vor- und Zuname gesucht wird??\n //Fall 1: Nachname wird zuerst eingeben \"Byron Augusta Ada\"\n $sw_array=explode(\" \",$sw[1],9);\n if (!isset($sw_array[1])) return false;\n $name=array_shift($sw_array);\n $givenname=implode(\" \",$sw_array);\n $where=\"cp_name ilike '$Pre\".$name.\"%' and cp_givenname ilike '$Pre\".$givenname.\"%'\";\n $sql=\"select *,'P' as tab,cp_id as id,cp_name as name from contacts where ($where) and $rechte\";\n $rs=$GLOBALS['dbh']->getAll($sql);\n if ($rs) return $rs;\n //Fall 2: Vorname wird zuerst eingegeben \"Augusta Ada Byron\"\n $sw_array=explode(\" \",$sw[1],9);\n $name=array_pop($sw_array);\n $givenname=implode(\" \", $sw_array);\n $where=\"cp_name ilike '$Pre\".$name.\"%' and cp_givenname ilike '$Pre\".$givenname.\"%'\";\n $sql=\"select *,'P' as tab,cp_id as id,cp_name as name from contacts where ($where) and $rechte\";\n $rs=$GLOBALS['dbh']->getAll($sql);\n if ($rs) return $rs;\n return false;\n}", "function ListaPersona() {\n\t\n\t\t\t$sql = \"SELECT * FROM persona\";\n\t\t\t$db = new conexion();\n\t\t\t$result = $db->consulta($sql);\n\t\t\t$num = $db->encontradas($result);\n\t\t\t$respuesta->datos = [];\n\t\t\t$respuesta->mensaje = \"\";\n\t\t\t$respuesta->codigo = \"\";\n\t\t\tif ($num != 0) {\n\t\t\t\tfor ($i=0; $i < $num; $i++) {\n\t\t\t\t\t$respuesta->datos[] = mysql_fetch_array($result);\n\t\t\t\t}\n\t\t\t\t$respuesta->mensaje = \"Ok\";\n\t\t\t\t$respuesta->codigo = 1;\n\t\t\t} else {\n\t\t\t\t$respuesta->mensaje = \"No existen registros de personas.\";\n\t\t\t\t$respuesta->codigo = 0;\n\t\t\t}\n\t\t\treturn json_encode($respuesta);\n\t\t}", "public function getPersonsList($hint, $uacc_uid=''){\r\n\t\t//format datetime into \"time ago\"\r\n\t\t$list = array();\r\n\r\n\t\tif($uacc_uid != '')\r\n\t\t\t$query = $this->db->select('people_id,first_name,last_name,company_id')->like(\"first_name\", $hint)->or_like(\"last_name\", $hint)->where(array(\"created_by\"=>$uacc_uid,\"deleted\"=>0))->order_by(\"company_id\", \"desc\")->get(\"sc_people\");\r\n\t\telse\r\n\t\t\t$query = $this->db->select(\"people_id,first_name,last_name,company_id\")->like(\"first_name\", $hint)->or_like(\"last_name\", $hint)->where(\"deleted\",0)->order_by(\"company_id\", \"desc\")->get(\"sc_people\");\r\n\r\n\t\t$this->load->model(\"general\");\r\n\r\n\r\n\t if ($query->num_rows() > 0){\r\n\t\t\tforeach($query->result() as $row){\r\n\t\t\t\t$company_name = $this->general->getAccountName($row->company_id);\r\n\t\t\t\tif($company_name != \"\" && $company_name != \" - \")\r\n\t\t\t\t\t$list[] = array(\"name\"=>$row->first_name . \" \" . $row->last_name . \" (\" . $company_name . \")\", \"label\"=>$row->first_name . \" \" . $row->last_name . \" (\" . $company_name . \")\", \"id\"=>$row->people_id);\r\n\t\t\t\telse\r\n\t\t\t\t\t$list[] = array(\"name\"=>$row->first_name . \" \" . $row->last_name, \"label\"=>$row->first_name . \" \" . $row->last_name, \"id\"=>$row->people_id);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $list;\r\n\t}", "function get_patients(){\n\t$conn = connect();\n\t$sql = \"select u.person_id, first_name, last_name from persons p join users u on p.person_id=u.person_id where u.CLASS='p'\";\n\n\tif(($statement = oci_parse($conn, $sql)) == false){\n\t\t$err = oci_error($statement);\n\t\techo htmlentities($err['message']);\n\t\toci_close($conn);\n\t\treturn FALSE;\n\t}\n\n\t$exec = oci_execute($statement);\n\n\tif(!$exec){\n\t\t$err = oci_error($statement);\n\t\toci_free_statement($statement);\n\t\techo htmlentities($err['message']);\n\t\toci_close($conn);\n\t\treturn FALSE;\n\t}\n\n\t$count = 0;\n\n\twhile($row = oci_fetch_assoc($statement)){\n\t\t$ret[$count] = $row;\n\t\t$count = $count + 1; \n\t}\n\toci_free_statement($statement);\n\toci_close($conn);\n\treturn $ret;\n}", "function printListPersonality(){\n\tglobal $xoopsDB;\n\t$sql = \"SELECT * FROM \".$xoopsDB->prefix(\"charinavi_personalities\");\n\t$res = $xoopsDB->query($sql);\n\twhile($row = $xoopsDB->fetchArray($res)){\n\t\tprintf(\"<option value='%s'>%s</option>\", $row[\"id\"], $row[\"personality\"]);\n\t}\n}", "public function getPeopleList()\n {\n //db object\n $db = JFactory::getDBO();\n //gen query\n $query = $db->getQuery(true);\n $query->select(\"DISTINCT(p.id),p.first_name,p.last_name\");\n $query->from(\"#__people AS p\");\n $query->leftJoin(\"#__users AS u ON u.id = p.owner_id\");\n $query->leftJoin(\"#__people_cf AS dcf ON dcf.person_id = p.id AND dcf.association_type='deal'\");\n\n //filter based on member access roles\n $user_id = UsersHelper::getUserId();\n $member_role = UsersHelper::getRole();\n $team_id = UsersHelper::getTeamId();\n\n if ($member_role != 'exec') {\n\n if ($member_role == 'manager') {\n $query->where(\"u.team_id=$team_id\");\n } else {\n $query->where(\"(p.owner_id=$user_id OR p.assignee_id=$user_id )\");\n }\n\n }\n\n $query->where(\"p.published=\".$this->published);\n\n $associationType = $this->app->input->get('association');\n $associationId = $this->app->input->get('association_id');\n\n if ($associationType == \"company\") {\n $query->where(\"p.company_id=\".$associationId);\n }\n if ($associationType == \"deal\") {\n $query->where(\"dcf.association_id=\".$associationId.\" AND dcf.association_type='deal'\");\n }\n\n //set query\n $db->setQuery($query);\n\n //load list\n $row = $db->loadAssocList();\n $blank = array(array('first_name'=>TextHelper::_('COBALT_NONE'),'last_name'=>'','id'=>0));\n $return = array_merge($blank,$row);\n\n //return results\n return $return;\n\n }", "function getActorsAsTable($db){ //function to get actors from database and display the data in a table\n try {\n $sql = \"SELECT * FROM actors\";\n $sql = $db->prepare($sql);\n $sql->execute();\n $actors = $sql->fetchAll(PDO::FETCH_ASSOC); //gets all data from the table and saves it to actors at an asaociative array\n if($sql->rowCount() > 0) {\n $table = \"<table>\" . PHP_EOL; //\n foreach ($actors as $actor) {\n $table .= \"<tr><td>\" . $actor['firstname'] . \"</td><td>\" . $actor['lastname'] . \"</td><td>\" . $actor['dob'] . \"</td><td>\" . $actor['height'] . \"</td>\"; //adds cells holding actor data to the string building the table\n $table .= \"</tr>\";\n }\n $table .= \"</table>\" . PHP_EOL;\n } else {\n $table = \"There are no actors.\" . PHP_EOL; //message saved to the variable if the db table is empty\n }\n return $table; //returns the table variable holding a string for the entire table\n } catch (PDOException $e){\n die(\"There was a problem getting the actors.\"); //output if it fails to access database\n }\n\n}", "private function getPersonDataArray()\n {\n $names = ['Jane', 'Joe', 'Bill', 'John'];\n $counter = $this->personCounter;\n if ($counter > (count($names)-1)) {\n $counter = 0;\n $this->personCounter = 0;\n } else {\n $this->personCounter++;\n }\n return [\n 'name' => $names[$counter],\n 'age' => rand(18, 50)\n ];\n }", "public static function getPeople($list = array(), $options = array()) {\n if (!$list) {\n $posts = self::getPostsByType('employee');\n } else {\n $posts = self::getPosts($list);\n }\n\n $options['items'] = $posts;\n\n return new PersonList($options);\n }", "function getAllFriends() {\n $query = \"SELECT id, concat(t1.first_name,' ' , t1.last_name) as name, t1.email\n FROM users as t1\n LEFT JOIN friends as t2\n on t1.id = t2.friend_id\n WHERE t2.user_id =\".$this->data['id'];\n $people = $this->connection->fetch_all($query);\n return array_map(function($data) { return new Person($data); }, $people);\n }", "function case_all_supervisors(){?>\n\t\t\t<table border=\"1\" cellspacing=\"2\" cellpadding=\"2\">\n\t\t\t<tr><th>Supervisor Id</th><th>Supervisor Name</th><th>Phone Number</th></tr>\n\t\t\t<?php $sql = \"select * from supervisor\";\n\t\t\t$result = mysql_query($sql);\n\t\t\twhile($row = mysql_fetch_array($result)){?>\n\t\t\t\t<tr>\n\t\t\t\t<td><?php echo $row['emp_id']?></td>\n\t\t\t\t<td><?php echo $row['first_name']; echo ' '; echo $row['last_name'];?></td>\n\t\t\t\t<td><?php echo $row['phone']?></td>\n\t\t\t\t</tr>\n\t\t\t<?php }?>\n\t\t\t\n\t\t\t</table>\n\t\t<?php }", "function get_personal_info($arguments, $names){\n $table_header=\"<table class='table table-hover table-dark'><thead><tr><th scope='col'>henkiloId\";\n \n for ($i=0; $i < count($arguments); $i++){\n $table_header .= \"<th scope='col'>\".str_replace(\"'\", \"\", $arguments[$i]) .\"</th>\";\n }\n $table_header .= \"</tr></thead>\";\n \n $sql = (\"SELECT idhenkilo,\".str_replace(\"'\",\"\",implode(\",\", $arguments)).\" FROM henkilo WHERE idhenkilo IN (\".implode(',',$names).\") \n ORDER BY idhenkilo\");\n $result = execute_query($sql);\n $table_row=\"\";\n if ($result->num_rows > 0) {\n while($row = $result->fetch_assoc()) {\n $table_row .= \"<tr>\";\n foreach ($row as $item) {\n $table_row .= \"<td>\". $item.\"</td>\";\n }\n $table_row .= \"</tr>\";\n }\n $html_table=$table_header. $table_row. \"</table>\";\n return $html_table;\n } else {\n return \"Antamillasi hakuehdoilla ei löytynyt tuloksia\";\n //return $sql;\n }\n \n}", "function personas(){ \n $personas = array(\n \"Joan Garcia:12/05/1992:1:1\",\n \"Elena Tomas:24/08/1991:1:2\",\n \"Dionisio Atapuerca:07/11/1924:1:3\",\n \"Eulalia Carroza:16/08/1930:1:4\",\n \"Rafael Alcalde:05/10/1965:1:5\",\n \"Marta Plaza:14/12/1967:1:6\",\n \"Ernesto Atapuerca:19/4/1956:1:7\",\n \"Matilde Alcalde:22/9/1996:1:8\"\n );\n return $personas;\n }", "public function testListPeople()\n {\n }", "function get_people_permission_manage_table_data_rows($people, $controller) {\n $CI = & get_instance();\n $table_data_rows = '';\n\n foreach ($people->result() as $person) {\n $table_data_rows.=get_person_permission_data_row($person, $controller);\n }\n\n if ($people->num_rows() == 0) {\n $table_data_rows.=\"<tr><td colspan='9'><span class='col-md-12 text-center text-warning' >\" . lang('common_no_persons_to_display') . \"</span></tr>\";\n }\n\n return $table_data_rows;\n}", "public function getList(){\n $listeNom=array();\n\n $sql = 'SELECT per_num,per_nom,per_prenom from personne order by per_nom';\n $req=$this->db->prepare($sql);\n $req->execute();\n while ($nom = $req->fetch(PDO::FETCH_OBJ)){\n $listeNom[]=new Personne ($nom);\n }\n\n return $listeNom;\n $req->closeCursor();\n }", "function get_doctors(){\n\t$conn = connect();\n\t$sql = \"select u.person_id, first_name, last_name from persons p join users u on p.person_id=u.person_id where u.CLASS='d'\";\n\n\tif(($statement = oci_parse($conn, $sql)) == false){\n\t\t$err = oci_error($statement);\n\t\techo htmlentities($err['message']);\n\t\toci_close($conn);\n\t\treturn FALSE;\n\t}\n\n\t$exec = oci_execute($statement);\n\n\tif(!$exec){\n\t\t$err = oci_error($statement);\n\t\toci_free_statement($statement);\n\t\techo htmlentities($err['message']);\n\t\toci_close($conn);\n\t\treturn FALSE;\n\t}\n\n\t$count = 0;\n\n\twhile($row = oci_fetch_assoc($statement)){\n\t\t$ret[$count] = $row;\n\t\t$count = $count + 1; \n\t}\n\toci_free_statement($statement);\n\toci_close($conn);\n\treturn $ret;\n}", "function printContractorTable($ContractorInfomration)\r\n\t\t{\r\n\r\n\t\t\twhile ($row = $ContractorInfomration->fetch(PDO::FETCH_ASSOC)) {\r\n\t\t\t\techo \"<tr>\";\r\n\t\t\t\techo \"<td>\" . $row['companyname'] . \"</td>\";\r\n\t\t\t\techo \"<td>\" . $row['contact'] . \"</td>\";\r\n\t\t\t\techo \"<td>\" . $row['town'] . \"</td>\";\r\n\t\t\t\techo \"<td>\" . $row['tel'] . \"</td>\";\r\n\t\t\t\techo \"<td>\" . $row['mobile'] . \"</td>\";\r\n\t\t\t\techo \"<td>\" . $row['email'] . \"</td>\";\r\n\t\t\t\techo \"</tr>\";\r\n\r\n\t\t\t}\r\n\t\t}", "function html_people()\n\t{\n\t\t#print(ECS_people::renderList($this->people));\n\t\t$people = array_values($this->people);\n\t\t$peoplesize = count($people);\n\t\tforeach($people AS $pos=>$ecsid)\n\t\t{\n\t\t\t$p = new ECS_Person(); \n\t\t\tif ($p->initFromEmail($ecsid)) \n\t\t\t{\n\t\t\t\tprint($p->renderLink());\n\t\t\t\tif ($pos < ($peoplesize - 2)) print(', ');\n\t\t\t\telseif ($pos == ($peoplesize - 2)) print(' and ');\n\t\t\t}\n\t\t}\n\t}", "function get_personas($accid)\r\n{\r\n\t$ret[] = array(-1,\"--account--\");\r\n\t$query = \"SELECT * from personas where '$accid'= accid \";\r\n\r\n\t$result = mysql_query ($query) or die(\"can not query table personas - \".mysql_error());\r\n\t$rowcount = mysql_num_rows($result);\r\n\t$odd = false; $first = true;\r\n\tif ($rowcount != 0) {\r\n\t\twhile (true) {\r\n\t\t\t$a = mysql_fetch_object($result);\r\n\t\t\tif ($a===false) break;\r\n\t\t\t$ret[] = array($a->persona,$a->persona);\r\n\t\t}\r\n\t}\r\n\treturn $ret;\r\n}", "function get_all_person()\n {\n $this->db->order_by('person_id', 'desc');\n return $this->db->get('person')->result_array();\n }", "public function persons()\n {\n return $this->morphedByMany(\\Illuminate\\Support\\Facades\\Config::get('sitec.core.models.person', \\Telefonica\\Models\\Actors\\Person::class), 'skillable');\n }", "public static function GetTableName() {\n\t\t\treturn \"person\";\n\t\t}", "public function people($params)\r\n {\r\n \t$_query = array('page' => isset($params['page']) ? $params['page'] : 1);\r\n\r\n return $this->curl_execute($method = 'people', $_query);\r\n }", "public function getList($nom)\n {\n // Le résultat sera un tableau d'instances de Personnage.\n }", "public function getList($nom)\n {\n // Le résultat sera un tableau d'instances de Personnage.\n }", "public function get_personas(){\n $consulta=$this->db->query(\"select * from personas;\");\n while($filas=$consulta->fetch_assoc()){\n $this->personas[]=$filas;\n }\n return $this->personas;\n}", "public function actionPerson() {\n // Clean up passed person name\n $term = trim($_GET['term']);\n\n // We want at least two letters\n if (strlen($term) <= 0) {\n return;\n }\n\n // Fetch all possible persons\n $dbJacqInput = Yii::app()->db;\n $command = $dbJacqInput->createCommand()\n ->select(\"id, name\")\n ->from(\"view_person\")\n ->where(array('like', 'name', $term . '%'))\n ->group('name');\n $rows = $command->queryAll();\n\n // Construct answer array with data from table\n $results = array();\n foreach ($rows as $row) {\n // Get a fitting person entry\n $model_person = Person::getByName($row['name']);\n\n // Add resulting perosn model info to response\n $results[] = array(\n \"label\" => $model_person->name,\n \"value\" => $model_person->name,\n \"id\" => $model_person->id,\n );\n }\n\n // Output results as service response\n $this->serviceOutput($results);\n }", "function get_people($selected_country)\n \n {\n\t\n\t//$query = $this->db->query(\"SELECT*FROM person WHERE countryid =$selected_country\" );\n\t\n\t$data = array();\n\t\n\t$query = $this->db->get_where('person', array('countryid' => $selected_country));\n\t\n\tforeach($query-> result_array() as $row)\n\t\n\t {\n\t $data[] = $row;\n\t /*\n\t echo $row->name.'<br>';\n\t echo $row->description .'<br>';\n\t echo $row->wlink .'<br>';\n\t */\n\t }\n\t\n\treturn $data;\n\t\n\t}", "public function persons($params = null) {\n $this->checkPage($params);\n\n $response = $this->sendRequest(\n 'GET', $this->addParams('/api/v1/persons', $params)\n );\n\n return $this->validate($response);\n }", "abstract protected function _listTables();", "public static function getPersons($term) {\n $sql = \"SELECT \n usuarios.dni, usuarios.nombre_persona, usuarios.dni+' '+usuarios.nombre_persona as label\n FROM\n (select \n persona.CodPer as dni\n ,persona.Nombres\n ,persona.Ape1\n ,persona.Ape2\n ,(RTRIM(persona.Nombres)+' '+RTRIM(persona.Ape1)+' '+RTRIM(persona.Ape2)) as nombre_persona\n from dbo.Identis persona\n left join dbo.permis usuario ON(\n persona.CodPer = usuario.LogIn\n )\n where usuario.FHasta >= GETDATE()\n ) usuarios\n WHERE usuarios.nombre_persona+usuarios.dni LIKE '%{$term}%'\n group BY usuarios.dni, usuarios.nombre_persona \";\n\n $command = Yii::$app->chacad->createCommand($sql);\n return $command->queryAll();\n }", "function listTables();", "function get_actors(){\n\t$db= $GLOBALS['db'];\n\t$results= $db->query(\"SELECT * FROM actors ORDER BY 'first_name'\" );\n\treturn $db->resToArray($results);\n}", "public static function toArray() {\n $str = \"\n SELECT id, firstName, lastName, email, password\n FROM indPrj_persons\";\n \n // Obtain an array of persons records.\n $records = Database::query($str);\n \n // Push each row into a new array to be outputted.\n $x = 0;\n $output = array();\n while($row = mysql_fetch_array($records)){\n $output[$x]['id'] = $row['id'];\n $output[$x]['firstName'] = $row['firstName'];\n $output[$x]['lastName'] = $row['lastName'];\n $output[$x]['email'] = $row['email'];\n $output[$x]['password'] = $row['password'];\n $x++;\n }\n \n return $output;\n }", "public function getPersonDummy() {\n return [\n \"id\"=>0,\n \"firstname\"=>\"\",\n \"lastname\"=>\"\",\n \"title\"=>\"\",\n \"user\"=>createPassword(8),\n \"passw\"=>encrypt_decrypt(\"encrypt\",createPassword(8)),\n \"role\"=>\"\",\n \"gender\"=>\"m\",\n \"gdpr\"=>0,\n \"schoolIdsAsTeacher\"=>null\n ];\n }", "public function getPatientList() {\n $result = array();\n //on lance la requete dans la BDD\n $query = 'SELECT `id`,`lastname`,`firstname` FROM `patients` ORDER BY`lastname`';\n //On declare et charge l'attribut $queryResult avec : \"dans la bdd la requete\"\n $queryResult = $this->db->query($query);\n //is_object — Détermine si une variable est de type objet\n //si le resultat de la requete est bien un objet charge \n //$result avec le tableau en type objet.\n if (is_object($queryResult)){\n $result = $queryResult->fetchAll(PDO::FETCH_OBJ);\n }\n //else { $result = array(); MAIS vu qu'on l'a deja intialisé a vide au dessus, si ca rentre dans la condition du else il correspondra automatiquement a tableau vide. C'est pour ca qu'on code pas le else.\n // au final on retourne la var result dans tous les cas, sa depend de ce qu'on a chargé dedans.\n return $result;\n }", "public function getMemberList($firstname, $surname, $address, $phonenum)\n {\n $firstname = db::escapechars(trim($firstname));\n $surname = db::escapechars(trim($surname));\n $address = db::escapechars(trim($address));\n $phonenum = db::escapechars(trim($phonenum));\n \n \n $sql = \"SELECT * FROM churchmembers WHERE 1=1 \";\n if($firstname != \"\"){\n $sql .= \"AND firstname LIKE '%$firstname%' \";\n }\n if($surname != \"\"){\n $sql .= \"AND surname LIKE '%$surname%' \";\n }\n if($address != \"\"){\n $sql .= \"AND ((address1 LIKE '%$address%') OR (address2 LIKE '%$address%') OR (address3 LIKE '%$address%') OR (address4 LIKE '%$address%')) \";\n }\n if($phonenum != \"\"){\n $sql .= \"AND phonenum LIKE '%$phonenum%' \";\n }\n \n $sql .= \"ORDER BY surname ASC, firstname ASC \";\n \n $result = db::returnallrows($sql);\n return $result;\n \n }", "public function people(){\n\t\treturn Person::left_join('profiles', 'profiles.id', '=', 'people.profile_id')\n\t\t\t\t\t ->select('people.*')->where('profiles.event_id', '=', $this->id);\n\t}", "public function getPeople() {\n $peopleNames = array();\n\n foreach ($this->tblPeople as $model_person) {\n $peopleNames[] = $model_person->name;\n }\n\n // return concatenated list of people names\n return implode(', ', $peopleNames);\n }", "function printResult($result) {\n echo \"<br>Employee Info<br>\";\n echo \"<table class='table table-striped'>\";\n echo \"<tr><th>Username</th>\". \" \" .\"<th>Wage</th>\". \" \" .\"<th>Job Type</th>\". \" \" .\"<th>Work Schedule</th></tr>\";\n\n while ($row = OCI_Fetch_Array($result, OCI_BOTH)) {\n echo \"<tr><td>\" . $row[\"USERNAME\"] . \" </td><td>\" . $row[\"WAGE\"] . \" </td><td>\" . $row[\"JOBT\"] . \"</td><td>\"\n . \" \" . $row[\"WORKS\"] . \"</td></tr>\"; //or just use \"echo $row[0]\" \n }\n echo \"</table>\";\n }", "function resultsToTable($results) {\n\t$html = \"<table border='1' cellspacing='0' cellpadding='2'>\\n\";\n\t$html .= \"<tr>\\n<th>ID</th>\\n<th>Name</th>\\n<th>Address</th>\\n<th></th>\\n\";\n\t$html .= \"<th>Region</th>\\n<th>State</th>\\n<th>Status</th>\\n\";\n\t$html .= \"<th>Deactivation Date</th>\\n<th>PWS Type</th>\\n</tr>\";\n\tforeach($results as $object) {\n\t\t$html .= \"\\n<tr>\\n<td>{$object->PWSID}</td>\\n<td>{$object->PWS_NAME}</td>\\n\";\n\t\t$html .= \"<td>{$object->ADDRESS_LINE1}</td>\\n<td>{$object->ADDRESS_LINE2}</td>\\n\";\n\t\t$html .= \"<td>{$object->EPA_REGION}</td>\\n\";\n\t\t$html .= \"<td>{$object->STATE_CODE}</th>\\n<td>{$object->SUBMISSION_STATUS_CODE}</td>\\n\";\n\t\t$html .= \"<td>{$object->PWS_DEACTIVATION_DATE}</td>\\n<td>{$object->PWS_TYPE_CODE}</td>\\n\";\n\t\t$html .= \"</tr>\\n\";\n\t}\n\treturn $html . \"</table>\\n\";\n}", "public function listUsers(){\n $sql=\"SELECT id_people,dni,first_name,last_name,adress,email,is_active FROM people WHERE is_user=3\";\n $rs=$this->con->prepare($sql);\n $rs->execute();\n return $rs->fetchAll(PDO::FETCH_OBJ);\n }", "public function getPersons()\n {\n $persons = Persons::all();\n\n return response()->json($persons);\n }", "function printHTMLTable($arrayNewPerson = array(),$col,$i){\n if(isset( $arrayNewPerson[$i][$col])){\n echo('<td>' .$arrayNewPerson[$i][$col] . '</td>');\n }\n else\n {\n echo('<td></td>');\n }\n }", "public function index()\r\n {\r\n return Person::all();\r\n }", "public function listTable()\n {\n // Searching the data\n $vehicles = Vehicle::orderBy('id', 'ASC')\n ->get();\n\n // Setting the list in $data array\n $data = [\n 'vehicles' => $vehicles,\n ];\n\n //dd($data);\n\n return $data;\n }", "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 }", "public function index_get(){\n $response = $this->PersonM->all_person();\n $this->response($response);\n }", "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}", "function printResult($result) {\n\techo \"<br>Got data from table tab1:<br>\";\n\techo \"<table>\";\n\techo \"<tr><th>ID</th><th>Name</th></tr>\";\n\n\twhile ($row = OCI_Fetch_Array($result, OCI_BOTH)) {\n //echo \"<tr><td>\" . $row[\"NID\"] . \"</td><td>\" . $row[\"NAME\"] . \"</td></tr>\"; //or just use \"echo $row[0]\" \n \"<tr><td>\" . $row[\"Player_Name\"] . \"</tr><td>\" . $row[\"Team_Name\"] . \"</tr><td>\" . $row[\"PPG\"] . \n \"</tr><td>\" . $row[\"Assist\"] . \"</tr><td>\" . $row[\"Rebounds\"] . \"</tr><td>\" . $row[\"Steals\"] . \n \"</tr><td>\" . $row[\"Turnovers\"] . \"</td></tr>\";\n\t}\n\techo \"</table>\";\n}", "abstract function getheadings();", "protected function getPersons() {\n $persons = [];\n\n // Persons from other registrations on the same order.\n $registrations = $this->registrationData->getOrderRegistrations($this->order);\n foreach ($registrations as $registration) {\n if ($registration === $this->registration) {\n continue;\n }\n\n foreach ($registration->getRegistrants() as $registrant) {\n $person = $registrant->getIdentity();\n if ($person) {\n $persons[$person->id()] = $person;\n }\n }\n }\n\n //$persons += $this->getOwnedPersons();\n\n // Allow other modules to alter the list of persons.\n $this->moduleHandler->alter('commerce_rng_persons_list', $persons, $this->order, $this->registration);\n\n return $persons;\n }", "public function getPersonRecords($dbConn, $offset, $limit) {\n\t //Adjust query so that:\n\t //TODO: People without a Contract Nr are ignored\n\t //Mede-leden without an e-mail address use their super-leden's email\n\t $query = \"SELECT wp.*\n\t\t\t FROM W4APersonen AS wp\n\t\t\t\tWHERE wp.ContractNr IS NOT NULL\n\t\t\t\tORDER BY wp.PersoonNr\n\t\t\t\tLIMIT $limit OFFSET $offset\";\n\t $rs = $dbConn->Execute($query);\n\t return $rs;\n\t //var_dump($rs);\n }", "public function index()\n {\n return Person::all();\n }", "function createAuthorArticleTable() {\n global $database;\n global $authorArticleTable;\n\n // only do this once\n if (isset($authorArticleTable))\n return;\n\n $sql = $database->prepare(\"SELECT articles.id AS article, authors.id AS author, authors.firstname, authors.lastname FROM authors, articles, authorship WHERE articles.id = authorship.article AND authors.id = authorship.author\");\n\n if ($sql->execute()) {\n $rows = $sql->fetchAll();\n\n foreach ($rows as $row) {\n if (!isset($authorArticleTable[$row[\"article\"]]))\n $authorArticleTable[$row[\"article\"]] = array();\n\n array_push($authorArticleTable[$row[\"article\"]], new Author($row[\"author\"], $row[\"firstname\"], $row[\"lastname\"]));\n }\n }\n}", "public function getAllNames(){\n $this->db->query(\"SELECT firstname, lastname FROM tb_user\");\n\n // Assign result set\n $results = $this->db->resultSet();\n\n return $results;\n }", "function student_list() {\n $query = db_select('student', 'st');\n $query\n ->fields('st', array('st_id', 'st_fnm', 'st_lnm', 'st_email'))\n ->range(0, 50)\n ->orderby('st.st_id');\n $results = $query\n ->execute();\n $header = array(t('ID'),\n t('First Name'),\n t('Last Name'),\n t('E-mail'),\n t('Delete'),\n t('Edit'),\n );\n $rows = array(); /*values pulling database*/\n foreach ($results as $result) {\n $rows[] = array(\n check_plain($result->st_id),\n check_plain($result->st_fnm),\n check_plain($result->st_lnm),\n check_plain($result->st_email),\n l(t('Delete'), 'formlist/' . $result->st_id . '/delete'),\n l(t('Edit'), 'formlist/' . $result->st_id . '/edit'),\n );\n }\n return theme('table', array('header' => $header, 'rows' => $rows));\n}", "public function getAllPersonne() {\n $qb = $this ->createQueryBuilder('p')\n ->select('p')\n ->orderBy('p.nom');\n return $qb->getQuery()->getResult();\n }", "private function createPersons(Entry $entry, $persons, $setter)\n {\n $length = count($persons);\n\n for ($j = 0; $j < $length; $j++) {\n $author = new Person();\n $author\n ->setGiven($persons[$j][0])\n ->setFamily($persons[$j][2])\n ->setNonDroppingParticle($persons[$j][3])\n ->setDroppingParticle($persons[$j][3]);\n\n if ($persons[$j][0] == '') {\n $author->setGiven($persons[$j][1]);\n } else {\n $author->setSuffix($persons[$j][1]);\n }\n\n $entry->$setter()->setPerson($author);\n }\n\n return $entry;\n }", "function build_teacher_list(){\r\n\tglobal $dbc;\r\n\t\r\n\t$query = 'SELECT u_id, firstname, lastname '.\r\n\t\t\t 'FROM user '.\r\n\t\t\t 'WHERE type = 3;';\r\n\t\r\n\t$result = mysqli_query($dbc, $query);\r\n\tif(!$result){\r\n\t\tdie ('Error '. mysqli_errno($dbc) .'<br />');\r\n\t}\r\n\telse {\r\n\t\t$temparr = array();\r\n\t\twhile($row = mysqli_fetch_object($result)){\r\n\t\t\t$temparr[$row->u_id] = $row->firstname .' '. $row->lastname;\r\n\t\t}\r\n\t\treturn $temparr;\r\n\t}\r\n}", "function get_liste_personnage($idoeuvre) {\r\n\r\n\t\t\t\t$requete = self::$connexion->prepare(\"SELECT * FROM \r\n\t\t\t\t\tmtvlist.jouer as jouer,\r\n\t\t\t\t\tmtvlist.personnage as perso,\r\n\t\t\t\t\tmtvlist.illustrepersonnage as illustre,\r\n\t\t\t\t\tmtvlist.image as image\r\n\r\n\t\t\t\t\tWHERE jouer.idpersonnage = perso.idpersonnage\r\n\t\t\t\t\tAND perso.idpersonnage = illustre.idpersonnage\r\n\t\t\t\t\tAND illustre.idimage = image.idimage \r\n\t\t\t\t\tAND jouer.idoeuvre = ?\");\r\n\r\n\t\t\t\t$requete->execute(array($idoeuvre));\r\n\t\t\t\t$resultat = $requete->fetchAll(PDO::FETCH_ASSOC);\r\n\t\t\t\treturn $resultat;\r\n\t\t\t\r\n\t\t\t}", "public function selectPersons($request) {\n\n // domain, app always present\n\n //\n $conditions = \"\";\n $domain = $request['domain'];\n $prefix = prefixed($domain);\n\n //\n if(isset($request['id'])){$id=clean($request['id']);$conditions.=\"AND \".substr($domain,0,-1).\"_id LIKE '%\".$id.\"%' \";}else{$conditions.=\"\";}\n\n $columns = \"\n\n person_id,\n person_attributes,\n person_first_name,\n person_last_name,\n person_email,\n person_phone,\n person_entitlements\n\n \";\n\n $table = $domain;\n\n //\n $start = 0;\n\n //\n if(isset($request['page'])) {\n\n //\n $start = ($request['page'] - 1) * $request['per'];\n \n }\n\n //\n if(!empty($request['id'])) {\n\n $conditions = \" WHERE\";\n $conditions.= \" \" . $prefix . \"_id = :id \";\n $conditions.= \" AND active = 1 \";\n $conditions.= \" ORDER BY time_finished DESC \";\n \n $subset = \" LIMIT 1\";\n\n $sql = \"SELECT \";\n $sql.= $columns;\n $sql.= \" FROM \" . $table;\n $sql.= $conditions;\n $sql.= $subset;\n \n //echo $sql; exit;\n\n //\n $statement = $this->pdo->prepare($sql);\n\n // bind value to the :id parameter\n $statement->bindValue(':id', $request['id']);\n\n //echo $sql; exit;\n\n } else {\n\n $conditions = \" WHERE \";\n $conditions.= \" active = 1 \";\n $conditions.= \" ORDER BY time_finished DESC \";\n $subset = \" OFFSET {$start}\" . \" LIMIT {$request['per']}\";\n\n $sql = \"SELECT \";\n $sql.= $columns;\n $sql.= \"FROM \" . $table;\n $sql.= $conditions;\n $sql.= $subset;\n \n //\n $statement = $this->pdo->prepare($sql);\n\n }\n \n // execute the statement\n $statement->execute();\n\n //\n $results = [];\n $total = $statement->rowCount();\n $pages = ceil($total/$request['per']); //\n //$current = 1; // current page\n //$limit = $result['limit'];\n //$max = $result['max'];\n\n //\n if($statement->rowCount() > 0) {\n\n //\n $data = [];\n \n //\n while($row = $statement->fetch(\\PDO::FETCH_ASSOC)) {\n \n //\n $data[] = [\n\n 'id' => $row['person_id'],\n 'attributes' => $row['person_attributes'],\n 'first_name' => $row['person_first_name'],\n 'last_name' => $row['person_last_name'],\n 'email' => $row['person_email'],\n 'phone' => $row['person_phone'],\n 'entitlements' => $row['person_entitlements']\n ];\n\n }\n\n } else {\n\n //\n echo 'No data in your DATABASE...';\n\n }\n\n $results[] = [\n 'status' => 200,\n 'message' => 'Successful',\n 'metadata' => [\n 'page' => $request['page'],\n 'pages' => $pages,\n 'total' => $total\n ],\n 'data' => $data,\n 'log' => [\n 'event' => substr(md5(uniqid(microtime(true),true)),0,13),\n 'process' => substr(md5(uniqid(microtime(true),true)),0,13)\n ],\n ];\n\n //echo \" results \";\n //echo json_encode($results);\n\n //\n return $results;\n\n }", "function show_records($dbc) {\n\t# Create a query to get the name and price sorted by price\n\t$query = 'SELECT number, fname, lname FROM presidents ORDER BY number ASC' ;\n\n\t# Execute the query\n\t$results = mysqli_query( $dbc , $query ) ;\n\tcheck_results($results) ;\n\n\t# Show results\n\tif( $results )\n\t{\n \t\t# But...wait until we know the query succeed before\n \t\t# rendering the table start.\n \t\techo '<H1>Presidents</H1>' ;\n \t\techo '<TABLE>';\n \t\techo '<TR>';\n \t\techo '<TH>Number</TH>';\n \t\techo '<TH>First Name</TH>';\n\t echo '<TH>Last Name</TH>';\n \t\techo '</TR>';\n\n \t\t# For each row result, generate a table row\n \t\twhile ( $row = mysqli_fetch_array( $results , MYSQLI_ASSOC ) )\n \t\t{\n \t\techo '<TR>' ;\n \t\techo '<TD>' . $row['number'] . '</TD>' ;\n \t\techo '<TD>' . $row['fname'] . '</TD>' ;\n \t\techo '<TD>' . $row['lname'] . '</TD>' ;\n \t\techo '</TR>' ;\n \t\t}\n\n \t\t# End the table\n \t\techo '</TABLE>';\n\n \t\t# Free up the results in memory\n \t\tmysqli_free_result( $results ) ;\n\t}\n}", "function Submission_Authors_Info_Tables($submission,$friends=array())\n {\n if (empty($friends))\n {\n $friends=$this->Submission_Authors_Read($submission);\n }\n\n $tables=array();\n foreach ($friends as $id => $friend)\n {\n array_push\n (\n $tables,\n $this->Submission_Author_Info_Table($submission,$friend)\n );\n }\n\n return $this->Html_Table(\"\",array($tables));\n }", "public function delegateListTableNames();", "public static function mostrar(){\n\t\t\t$db=DataBase::getConnect();\n\t\t\t$listaResultados=[];\n\t\t\t$select=$db->query('SELECT * FROM '.self::$sql_tabla.' ORDER BY id');\n\t\t\tforeach($select->fetchAll() as $persona){\n\t\t\t\t$listaResultados[]=new Persona($persona['id'],$persona['edad'],$persona['altura'],$persona['peso'],$persona['imc']);\n\t\t\t}\n\t\t\treturn $listaResultados;\t//Me devuelve una lista dentro de un array\n\t\t}", "function extract_tables($criteria = array())\n{\n\t$tables = array();\n\n\tforeach ($criteria as $table => $info)\n\t{\n\t\t$tables[$table] = $info['desc'];\n\t}\n\n\treturn $tables;\n}", "public function showContactPersons()\n\t{\n\t\t$participants = $this->participants->getAllContactPersons();\n\t\t$currentRow = 0;\n\t\t$maleCount = sizeof($this->participants->getMaleParticipants($participants));\n\t\t$femaleCount = (sizeof($participants)) - $maleCount;\n\t\t$contactPerson = 0;\n\t\treturn View::make('admin.participants-list', ['pageTitle' => 'Seniors'], compact('participants', 'currentRow', 'maleCount', 'femaleCount', 'contactPerson'));\n\t}", "function get_person($person_id)\n {\n return $this->db->get_where('person',array('person_id'=>$person_id))->row_array();\n }", "function researcher_projects_get_persons_json_callback($projectId){\n //TODO check access, if current user has the permission to get person info\n drupal_set_header('Content-Type: text/plain; charset: utf-8');\n $sql = \"SELECT pc.idperson id, u.mail name FROM {project_code} AS pc \"\n .\"LEFT JOIN {users} AS u ON u.uid=pc.idperson \"\n .\"WHERE pc.idproject=%d\";\n $res = db_query($sql,$projectId);\n $persons = array();\n while($person=db_fetch_array($res)){\n $persons[] = $person;\n }\n print(json_encode($persons));\n}", "public function loadList() {\n\t\t/*Query database for names and id*/\n\t\t$CI =& get_instance(); \n\t\t$query = $CI->db->query(\"SELECT Firstname, Lastname, employeeID, Username, Password, Instructor, Lifeguard, Headguard, Supervisor FROM `Employees` \");\n\t\t$list = $query->result_array();\t\t//TODO: Add Extra Sequerity here..\t\t\t\t\n\t\techo json_encode($list );\t\t\n\t}", "function titulopersonal(){\n print (\"\\n<tr>\");\n if($this->titulo !=\"\")\n foreach ($this->titulo as $titulo){\n print (\"\\n<th>$titulo</th>\");\n }\n print (\"\\n<tr>\"); \n }", "function getPatientList()\n {\n $getPatientList = $this->db->query(\n //reformate la date sur le format francais\n 'SELECT \n `us`.`id`\n ,`us`.`lastname`\n ,`us`.`firstname`\n ,DATE_FORMAT(`pat`.`birthDate`, \\'%d/%m/%Y\\') AS `birthDateFr` \n ,`pat`.`birthDate`\n ,`pat`.`phoneNumbers`\n ,`us`.`mail`\n FROM \n `dom20_users` as `us`\n INNER JOIN \n `dom20_patients` AS `pat`\n ON `us`.`id` = `pat`.`id_dom20_users`\n WHERE\n `us`.`id` = :id \n ORDER BY `lastname` ASC\n '\n );\n // fetchAll permet de recuperer un tableau d'objet\n return $getPatientList->fetchAll(PDO::FETCH_OBJ);\n }", "public function getJobTitleToTable() {\n return $this->db->selectObjList('SELECT jobtitle_id, shortname, longname, date_create '\n . 'FROM jobtitle ORDER BY shortname DESC;', $array = array(), \"Jobtitle\");\n }", "function getEverybody() {\n $query =\n \"SELECT\n id,\n concat(first_name,' ' , last_name) AS name,\n email,\n (select count(*) from friends where user_id = id and friend_id = \".$this->id.\") AS is_friend\n FROM users WHERE NOT id = \".$this->id;\n $people = $this->connection->fetch_all($query);\n return array_map(function($data) { return new Person($data); }, $people);\n }", "function printUserTable() {\n\tglobal $dbh;\n\t$users = User::getAllUsers($dbh);\n\t//var_dump($users);\n\tforeach($users as $user) {\n\t\techo \"<p>\" . $user . \"</p>\";\n\t}\n}", "public function getListOfTables() {}", "function createEmployeeList($rows){\n return \"<li><a href='?id=\".$rows['EmployeeID'].\"'> \".$rows['FirstName'].\" \".$rows['LastName'] .\"</a></li>\";\n}", "function printResult($result) {\n?>\n<table id=\"resultTable\">\n <thead>\n <tr>\n <th width=\"10%\">Student ID</th>\n <th width=\"10%\">First Name</th>\n <th width=\"10%\">Last Name</th>\n <th width=\"10%\">Major</th>\n </tr>\n </thead>\n <tbody>\n <?php\n\twhile ($row = OCI_Fetch_Array($result, OCI_BOTH)) : ?>\n\t<tr>\n <td><?php echo $row[\"STID\"]; ?></td>\n <td><?php echo $row[\"FNAME\"]; ?></td>\n <td><?php echo $row[\"LNAME\"]; ?></td>\n <td><?php echo $row[\"MAJOR\"]; ?></td>\n\t</tr>\n <?php endwhile; ?>\n </tbody>\n</table>\n<?php\n}", "function print_friend_request_pure_table($query_result) {\n echo \"<table class=\\\"pure-table pure-table-bordered\\\">\";\n\n echo \"<thead><tr>\";\n echo \"<td>UID</td>\";\n echo \"<td>UID2</td>\";\n echo \"<td>First Name</td>\";\n echo \"<td>Last Name</td>\";\n echo \"<td>Age</td>\";\n echo \"<td>Gender</td>\";\n echo \"<td>Location</td>\";\n echo \"<td>Request Time</td>\";\n echo \"</tr></thead>\";\n\n // echo \"<thead><tr>\";\n // for ($i = 0; $i < pg_num_fields($query_result); $i++) {\n // $fieldname = pg_field_name($query_result, $i);\n // echo \"<th>$fieldname</th>\";\n // }\n // echo \"</tr></thead>\";\n echo \"<tbody>\";\n while ($row = pg_fetch_row($query_result)) {\n echo \"<tr>\";\n $num = pg_num_fields($query_result);\n for ($i = 0; $i < $num; $i++) {\n echo \"<td>$row[$i]</td>\";\n }\n echo \"</tr>\";\n }\n echo \"</tbody>\";\n echo \"</table>\";\n }", "function list_emp($list_type) { //List emp for getting list of emplyee for what, NO idea\n $this->db->order_by(\"employe_table_employe_name\", \"asc\");\n return $this->db->get_where('employe_table', array('employe_table_employe_hierarchy' => $list_type, 'employe_table_employe_status'=>1))\n ->result_array();\n }", "public function makeTable($headings, $content);" ]
[ "0.655278", "0.6511811", "0.63206947", "0.6309132", "0.6250523", "0.60714024", "0.5931309", "0.592629", "0.5924371", "0.5810208", "0.5801356", "0.5779468", "0.575342", "0.5710706", "0.570937", "0.57077265", "0.5701726", "0.5689879", "0.5689657", "0.5687867", "0.5637745", "0.561957", "0.5612299", "0.5581359", "0.5558373", "0.55251384", "0.5521146", "0.55022985", "0.5484748", "0.5477581", "0.54576164", "0.54397285", "0.543575", "0.5435748", "0.5433836", "0.5421235", "0.54152286", "0.54029703", "0.5398583", "0.53984416", "0.5366735", "0.5357616", "0.5357616", "0.53505623", "0.53390044", "0.53301805", "0.53207636", "0.52937526", "0.52569544", "0.52566445", "0.52527136", "0.5239337", "0.52163464", "0.5213124", "0.52095115", "0.5189038", "0.51856536", "0.5184622", "0.5183715", "0.5181187", "0.51773095", "0.517104", "0.51704156", "0.51399887", "0.5132075", "0.5127268", "0.5119965", "0.51181144", "0.51170385", "0.511522", "0.51147574", "0.5111153", "0.5107766", "0.5092487", "0.50885123", "0.5066283", "0.5054547", "0.50536543", "0.5053128", "0.5052555", "0.5048245", "0.50433564", "0.5042954", "0.50428724", "0.5037547", "0.5035218", "0.5032176", "0.50305545", "0.50166947", "0.5013776", "0.4996077", "0.4985751", "0.4981118", "0.49681678", "0.49677193", "0.4966785", "0.49666467", "0.4963392", "0.49552202", "0.49539426" ]
0.66819394
0
return the slugs of shows, sorted by sequence order, matching the provided tag
function tlp_showlisting_filter ($tag) { $shows = array(); // retrieve the shows, filtering on the provided tag foreach (getChildrenMulti('productions', array('slug', 'meta', 'special', 'sequence')) as $page) { if (array_key_exists('special', $page) && $page['special'] === 'show') { if (in_array($tag, explode(', ', $page['meta']))) { $shows[$page['slug']] = $page['sequence']; } } } // sort by the sequence number asort($shows, SORT_NUMERIC); // return just the slugs return array_keys($shows); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function slugs();", "public function findBySlugWithCategoryAndTags($slug);", "public function show($tag)\n {\n $tag = Tag::where('slug', $tag)->firstOrFail();\n return $tag;\n }", "public static function getSlugList(){\n return Arr::flatten(self::all('slug')->toArray());\n }", "public static function getBySeries($slug)\n {\n // get a list of events that have the passed tag\n $events = self::whereHas('series', function ($q) use ($slug) {\n $q->where('name', '=', $slug);\n })->orderBy('name', 'ASC');\n\n return $events;\n }", "public function bySlug($slug);", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'tags'\n ]\n ];\n }", "function tpps_details_tags_sort() {\n $output = \"\";\n\n $query = db_select('tpps_tag', 't')\n ->fields('t')\n ->orderBy('static', 'DESC')\n ->orderBy('tpps_tag_id')\n ->execute();\n $tags = array();\n while (($result = $query->fetchObject())) {\n $tags[$result->tpps_tag_id] = array(\n 'id' => $result->tpps_tag_id,\n 'name' => $result->name,\n 'color' => $result->color,\n 'static' => $result->static,\n );\n }\n\n $output .= tpps_show_tags($tags);\n\n return \"<label for=\\\"tpps-tags-filter\\\">Sort by tags:</label><div id=\\\"tpps-tags-filter\\\">\" . $output . \"</div>\";\n}", "function shows_alphabetical( $orderby )\n{\n if( !is_admin() && is_post_type_archive( \"shows\" ) ){\n // alphabetical order by post title\n return \"post_title ASC\";\n }\n else return $orderby;\n}", "public function slugArray($tags);", "public function getCollectionSlugs()\n {\n $slugs = array_map(function (array $collection) {\n Assertion::keyExists($collection, 'slug');\n\n return strtolower($collection['slug']);\n }, $this->getCollectionsList());\n\n // filter empty slugs\n $slugs = array_filter($slugs);\n\n sort($slugs);\n\n return $slugs;\n }", "function getTagsX() {\r\n\t\t$query = 'SELECT DISTINCT t.name,'\r\n\t\t. ' CASE WHEN CHAR_LENGTH(t.alias) THEN CONCAT_WS(\\':\\', t.id, t.alias) ELSE t.id END as slug'\r\n\t\t. ' FROM #__flexicontent_tags AS t'\r\n\t\t. ' LEFT JOIN #__flexicontent_tags_item_relations AS i ON i.tid = t.id'\r\n\t\t. ' WHERE i.itemid = ' . (int) $this->_id\r\n\t\t. ' AND t.published = 1'\r\n\t\t. ' ORDER BY t.name'\r\n\t\t;\r\n\r\n\t\t$this->_db->setQuery( $query );\r\n\r\n\t\t$this->_tags = $this->_db->loadObjectList();\r\n\r\n\t\treturn $this->_tags;\r\n\t}", "public function sluggable(): array\n {\n return ['slug' => ['source' => 'title']];\n }", "public function sluggable(): array\n {\n return [\n 'slug' => [\n 'source' => 'title',\n ],\n ];\n }", "public function tagsOrderAfterFind($tags=null) {\n\t\t\n\t\t$tags = trim($tags, '|');\n\t\t$tags = explode('|', $tags);\n\n\t\tnatcasesort($tags); // Ordem alfabética\n\n\t\t$tags = '|'.implode('|', $tags).'|';\n\n\t\treturn mb_strtolower($tags);\n\t}", "public function sluggable(): array\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "public function sluggable(): array\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "public function sluggable(): array\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "public function sluggable(): array\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "public function sluggable(): array\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "public function sluggable(): array\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "public function tag( $slug ) {\n\t\t$data[\"tagInfo\"] = SM::getCache( 'tag_' . $slug, function () use ( $slug ) {\n\t\t\treturn Tag::with( \"blogs\" )\n\t\t\t ->where( \"slug\", $slug )\n\t\t\t ->where( 'status', 1 )\n\t\t\t ->first();\n\t\t} );\n\t\tif ( count( $data[\"tagInfo\"] ) > 0 ) {\n\t\t\t$page = \\request()->input( 'page', 0 );\n\t\t\t$key = 'tagBlogs_' . $data[\"tagInfo\"]->id . '_' . $page;\n\t\t\t$data[\"blogs\"] = SM::getCache( $key, function () use ( $data ) {\n\n\t\t\t\t$blog_posts_per_page = SM::smGetThemeOption(\n\t\t\t\t\t\"blog_posts_per_page\",\n\t\t\t\t\tconfig( \"constant.smFrontPagination\" )\n\t\t\t\t);\n\n\t\t\t\treturn $data[\"tagInfo\"]->blogs()\n\t\t\t\t ->where( \"status\", 1 )\n\t\t\t\t ->paginate( $blog_posts_per_page );\n\t\t\t}, [ 'tagBlogs' ] );\n\t\t\t$data['key'] = $key;\n\t\t\t$data['seo_title'] = $data['tagInfo']->seo_title;\n\t\t\t$data[\"meta_key\"] = $data[\"tagInfo\"]->meta_key;\n\t\t\t$data[\"meta_description\"] = $data[\"tagInfo\"]->meta_description;\n\t\t\t$data[\"image\"] = $data[\"tagInfo\"]->image != '' ? asset( SM::sm_get_the_src( $data[\"tagInfo\"]->image, 750, 560 ) ) : '';\n\n\t\t\treturn view( 'page.tag', $data );\n\t\t} else {\n\t\t\treturn abort( 404 );\n\t\t}\n\t}", "protected function getVideoTags()\n {\n $sql = \"SELECT t.tag, count(t.tag) as cnt FROM tags t\n INNER JOIN video_tag vt ON t.id = vt.tag_id GROUP BY t.tag ORDER BY Random()\";\n\n $rs = $this->sqliteQuery($sql);\n $str = \"\";\n foreach($rs as $row)\n {\n if($row['cnt']<=2){$tagStyle = \"tag1\";}\n if($row['cnt']>=2){$tagStyle = \"tag2\";}\n\n $str .= \"<a class='tag $tagStyle' href='\".DOMAIN.\"video-tags/\".$this->stringToURL($row['tag']).\".html'>{$row['tag']}</a>\";\n }\n $this->buffer = str_replace(\"{VIDEOTAGS}\", $str, $this->buffer);\n }", "function getSermons()\n\t{\n\t\t$db\t\t= $this->getDbo();\n\t\t$query\t= $db->getQuery(true);\n\n\t\t$query->select('id, title, sermon_date, created');\n\t\t$query->select(\"CASE WHEN CHAR_LENGTH(alias) THEN CONCAT_WS(':', id, alias) ELSE id END as slug\");\n\t\t$query->from('#__sermon_sermons');\n\t\t$query->where('state = 1');\n\t\t$query->order('sermon_date DESC');\n\n\t\t// Filter by cat if set\n\t\t$app\t= JFactory::getApplication();\n\t\t$params\t= $app->getParams();\n\t\t$cat\t= (int)$params->get('cat', 0);\n\t\tif($cat){\n\t\t\t$query->where('catid = '.$cat);\n\t\t}\n\n\t\t$rows = $this->_getList($query); \n\n return $rows;\n\t}", "public function postTag($slug) {\n // 'name' che è il nome per esteso del tag\n // 'slug' che è lo slug ricavato dal nome per esteso del tag\n // questa funzione riceve in ingresso lo slug ($slug) del tag\n // e deve ricavare l'elenco di tutti i posts che hanno quel tag associato\n // identificati dallo slug ricevuto come parametro in ingresso.\n // Poi la funzione richiama una view e le passa l'elenco di tutti i posts trovati\n // e l'oggetto categoria, quella identificata dallo slug ricevuto in ingresso\n\n // cerco nella colonna 'slug' della mia tabella 'tags', il tag (record) con slug uguale al parametro ricevuto\n $tag = Tag::where('slug', $slug)->first();\n\n // verifico se la select fatta sul DB mi ha ritornato qualcosa per il tag ricercato tramite slug\n // ad esempio l'utente potrebbe modificare la stringa nella barra indirizzi, alterando il nome\n // dello slug e scrivendo un qualcosa che non esiste e non corrisponde a nessun tag del DB\n if (!empty($tag)) {\n // qui sfrutto la relazione fra tags e posts, cioè la relazione fra le entità/modelli\n // Tag e Post. Nella classe Tag è definito un metodo posts()\n // (cioè col nome dell'entità verso la quale è definita la relazione)\n // posts() ritorna $this->hasMany('App\\Post');\n // chiamo la proprietà posts (in questa maniera'$tag->posts')\n // che restituisce i post che sono legati da relazione in base al tag\n $posts_by_tag = $tag->posts;\n\n // chiamo una view per visualizzare tutti i post del tag ricercato,\n // gli passo il tag e l'elenco dei posts\n return view('public.posts.posts-by-tag', [\n 'tag' => $tag,\n 'posts' => $posts_by_tag\n ]);\n } else {\n // ritorno la pagina di errore \"Page not found\" poichè lo slug ricevuto in ingresso\n // non ha corrispondenza nel mio DB (tabella 'tags')\n return abort(404);\n }\n }", "private function getExistingSlugs($slug)\n {\n $list = collect();\n foreach ($this->uniqueModels() as $class) {\n\n // get entries matching slug\n $slugs = $this->eloqent($class)\n ->whereRaw(\"slug LIKE '$slug%'\")\n ->withTrashed()// trashed, when entry gets activated\n ->get()\n ->pluck('slug');\n\n $list = $list->merge($slugs);\n }\n\n return $list;\n }", "public function getBySlug()\n {\n }", "public static function makeSlugArray($tags);", "public function findPublishedTitleAndSlug()\n {\n return $this->createPublishedSortedQueryBuilder()\n ->select('title', 'slug')\n ->getQuery()\n ->execute();\n }", "public function getSlug();", "public function getSlug();", "public function getSlug();", "public function getSlug();", "public function sluggable() : array\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "function ViewUrlsByTag( $f_szTags = '' ) {\n\tglobal $db;\n\n\t$g_szTag = $f_szTags;\n\n\t$script = $_SERVER['PHP_SELF'];\n\t$szBasePath = rtrim(dirname($script), '/') . '/';\n\n\t$mobile = isset($_GET['mobile']) || ( isset($_SERVER['HTTP_USER_AGENT']) && is_int(strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'mobi')) );\n\n\t// $arrInTags = explode(' ', $g_szTag);\n\t// $szWhereClause = 1 == count($arrInTags) ? \"(l_tags.tag = '\".$arrInTags[0].\"')\" : \"(l_tags.tag = '\".implode(\"' OR l_tags.tag = '\", $arrInTags).\"')\";\n\n\tif ( '~new' == $g_szTag ) {\n\t\t$szQuery = 'SELECT * FROM l_urls ORDER BY id DESC LIMIT 250;';\n\t}\n\telse {\n\t\t$tags = unaliasTags(preg_split('#[\\/\\s]+#', $g_szTag));\n\t\t$and = !strstr($g_szTag, \"/\");\n\n\t\t$szQuery = $db->replaceholders('\n\t\t\tSELECT u.*, COUNT(1) as matching\n\t\t\tFROM l_links l, l_tags t, l_urls u\n\t\t\tWHERE l.url_id = u.id AND l.tag_id = t.id AND t.tag in (?)\n\t\t\tGROUP BY u.id\n\t\t', array($tags));\n\t\tif ( $and ) {\n\t\t\t$szQuery .= $db->replaceholders(' HAVING matching = ?', array(count($tags)));\n\t\t}\n\t\t$szQuery .= ' ORDER BY u.id DESC';\n\t}\n\n\t$arrUrls = $db->fetch($szQuery)->all();\n\n\trequire 'tpl.index.php';\n\n}", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => ['title']\n ]\n ];\n }", "public function tags()\n {\n return $this->belongsToMany('App\\Models\\Tags\\TagsEloquent', 'shop_tags', 'shop_id', 'tag_id')->orderBy('display_order', 'asc')->withTimestamps();\n }", "public function getBlogByTags($locale, $tag_slug){\n if(isInteger($tag_slug)) {\n $displayListings = Posts::whereHas('tags', function($query) use ($tag_slug){\n $query->where('tag_id', $tag_slug);\n })->where('status', 'public')->paginate(5);\n $findTags = Tag::find($tag_slug);\n\n } else {\n $displayListings = Posts::whereHas('tags', function($query) use ($tag_slug){\n $query->where('tag_slug', $tag_slug);\n })->where('status', 'public')->paginate(5);\n $findTags = Tag::where('tag_slug', $tag_slug)->first();\n\n }\n if(!empty($findTags)){\n $newestPosts = $this->getNewest(5);\n\n return view('lightBlog::blog.blogTagView',[\n 'posts' => $displayListings,\n 'newest' => $newestPosts,\n 'tags' => $findTags,\n ]);\n }\n return redirect('/en/blog');\n }", "public function tag()\n {\n $model = TaggingUtility::tagModelString();\n return $this->belongsTo($model, 'tag_slug', 'slug');\n }", "public function getBySlugs(array $slugs);", "function get_post_format_slugs()\n {\n }", "function fetchLineup(){\n\t$args = array(\n\t\t'post_type'\t\t\t=> 'marcato_artist',\n\t\t'posts_per_page'\t=> -1,\n\t\t'orderby'\t\t\t=> 'title',\n\t\t'order'\t\t\t\t=> 'ASC'\n\t);\n\n\t$query = new WP_Query($args);\n\t$output = \"<ul id=\\\"lineuplist\\\">\";\n\t$currentAlpha = '-';\n\n\tforeach($query->posts as $key=>$post){\n\n\t\t// get categories for current page.\n\t\t$cats = get_the_terms($post->ID, 'artist_tag');\n\t\t$classlist = \"\";\n\t\tif($cats){\n\t\t\tforeach($cats as $cat){\n\t\t\t\t$classlist .= \" \" . $cat->slug;\n\t\t\t}\n\t\t}\n\n\t\t// case insesitive match. If it does not = 0 then it does not match.\n\t\tif(strcasecmp($post->post_title[0],$currentAlpha) != 0 ){\n\n\t\t\tif($key != 0) $output .= \"</ul></li>\\n\"; \n\t\t\t$currentAlpha = $post->post_title[0];\n\n\t\t\t$output .= \"<li><strong>\". $currentAlpha . \"</strong>\\n<ul>\";\n\t\t}\n\t\t$output .= \"<li class='act \".$classlist.\"'><a href='\" . get_permalink($post->ID) . \"'>\".$post->post_title.\"</a></li>\\n\"; \n\t}\n\t$output .= \"</ul></li></ul>\\n\";\n\treturn $output;\n\n}", "public function sluggable()\n {\n return [\n 'alias' => [\n 'source' => 'title'\n ]\n ];\n }", "public function getLocalizedSlugs();", "public function slug();", "public function slug();", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'title'\n ]\n ];\n }", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'title',\n ]\n ];\n }", "public function byTags(): void\n {\n $this->nav_chain->add(__('Blog'), '/blog/');\n $page_title = __('Search by tags');\n $this->nav_chain->add($page_title, '');\n\n $query = $this->request->getQuery('tag', '', FILTER_SANITIZE_STRING);\n\n if (! empty($query)) {\n $articles = (new BlogArticle())->where('tags', 'like', '%' . $query . '%')->paginate($this->user->config->kmess);\n }\n\n $this->render->addData(\n [\n 'title' => $page_title,\n 'page_title' => $page_title,\n 'keywords' => $this->settings['meta_keywords'],\n 'description' => $this->settings['meta_description'],\n ]\n );\n\n echo $this->render->render(\n 'blog::public/search_by_tags',\n [\n 'query' => $query,\n 'articles' => $articles ?? null,\n ]\n );\n }", "public function meta($slug='tag',$tag=false)\n\t{\n\t\t$data['section'] = array('library', 'meta');\n\t\tif ($tag === false || strtolower($tag) === 'all') {\n\t\t\t// showing all tags\n\t\t\t$data['pagetitle'] = ''; // Capitalize the first letter\n\t\t\tif (strtolower($slug) == 'project') {\n\t\t\t\t$data['contenttitle'] = 'Projects';\n\t\t\t} elseif (strtolower($slug) == 'dependency') {\n\t\t\t\t$data['contenttitle'] = 'All Dependencies';\n\t\t\t} else {\n\t\t\t\t$data['contenttitle'] = 'All '.ucfirst($slug).'s';\n\t\t\t}\n\t\t\t$data['slug'] = (strtolower($slug) == 'dependency') ? 'dependencies' : strtolower($slug).'s';\n\t\t\t$data['filter'] = true;\n\t\t\t$data['fullwidth'] = true;\t\t\n\t\t\t$data['dependency'] = false;\n\t\t\t$_tags = $this->pylos_model->get_data2('pylos_tags',false,array('type'=>$slug),true);\n\t\t\t$data['tags'] = array();\n\t\t\tforeach ($_tags as $t) {\n\t\t\t\t$_t = urldecode(strtolower($t['title']));\n\t\t\t\tif (isset($data['tags'][$_t])) {\n\t\t\t\t\t// if we already saw this tag, increase it's count\n\t\t\t\t\t$data['tags'][$_t][1]++;\n\t\t\t\t} else {\n\t\t\t\t\t// add to our array and set count to 1\n\t\t\t\t\t$data['tags'][$_t] = array($_t,1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->load->view('app/pylos/templates/header', $data);\n\t\t\t$this->load->view('app/pylos/templates/frontmatter-default', $data);\n\t\t\t$this->load->view('app/pylos/tags-list', $data);\n\t\t\t$this->load->view('app/pylos/templates/footer', $data);\n\t\t} else {\n\t\t\t// looks like we are showing a tag or dependency\n\t\t\t$data['pagetitle'] = urldecode($tag); // Capitalize the first letter\n\t\t\t$data['contenttitle'] = \"$slug &rarr; \".urldecode($tag);\n\t\t\t$data['filter'] = true;\n\t\t\t$data['slug'] = $slug;\n\t\t\t$data['tag'] = $tag;\n\t\t\t$data['fullwidth'] = true;\t\t\n\t\t\t$tags = $this->pylos_model->get_data2('pylos_tags',false,array('type'=>$slug,'title'=>urldecode($tag)),true);\n\t\t\tif (count($tags) == 0) {\n\t\t\t\t$data['blocks'] = false;\n\t\t\t\t$data['guides'] = false;\n\t\t\t\t$data['presentations'] = false;\n\t\t\t} else {\n\t\t\t\tif (isset($tags) && !empty($tags)) {\t\t\t\n\t\t\t\t\tforeach ($tags as $t) {\n\t\t\t\t\t\tswitch ($t['parenttype']) {\n\t\t\t\t\t\t\tcase \"pylos_block\":\n\t\t\t\t\t\t\t\t$data['blocks'][] = $this->pylos_model->get_data2('pylos_block',$t['parentid']);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"pylos_guides\":\n\t\t\t\t\t\t\t\t$data['guides'][] = $this->pylos_model->get_data2('pylos_guides',$t['parentid']);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"pylos_presentations\":\n\t\t\t\t\t\t\t\t$data['presentations'][] = $this->pylos_model->get_data2('pylos_presentations',$t['parentid']);\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} else {\n\t\t\t\t\t$data['blocks'] = false;\n\t\t\t\t\t$data['guides'] = false;\n\t\t\t\t\t$data['presentations'] = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tforeach (array('blocks','guides','presentations') as $t) if (!isset($data[$t])) $data[$t] = false;\n\t\t\t\n\t\t\tif ($slug == 'dependency') {\n\t\t\t\t$data['dependency'] = $this->pylos_model->get_data2('pylos_taxonomy',false,array('slug'=>urldecode($tag)));\n\t\t\t\t$data['dependency'] = $data['dependency'][0];\n\t\t\t} else {\n\t\t\t\t$data['dependency'] = false;\n\t\t\t}\n\t\t\t$data['fullwidth'] = true;\t\t\n\t\t\t$data['anon'] = ($this->ion_auth->logged_in()) ? false:true;\n\t\t\t$this->load->view('app/pylos/templates/header', $data);\n\t\t\t$this->load->view('app/pylos/templates/frontmatter-default', $data);\n\t\t\t$this->load->view('app/pylos/combined-list', $data);\n\t\t\t$this->load->view('app/pylos/templates/footer', $data);\n\t\t}\n\t}", "function cb2014_print_book_tags( $echo = true ) {\n global $book;\n\n $tags = get_book_tags($book->id);\n\n if ( count($tags) < 1 )\n return;\n\n $i = 0;\n $string = '';\n foreach ( (array) $tags as $tag ) {\n if ( $i++ != 0 )\n $string .= ', ';\n $link = book_tag_url($tag, 0);\n $string .= \"<li><a href='$link' rel='tag'>$tag</a></li>\";\n }\n\n if ( $echo )\n echo $string;\n return $string;\n}", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'title',\n ],\n ];\n }", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'title',\n ],\n ];\n }", "public function slug($slug);", "public function get_page_slugs()\n\t{\n\t\t// assign the slugs to the $options...\n\t\t$options = $this->db->select('title, url_title')->get($this->_table['pages'])->result();\n\n\t\t// there's a couple outside of normal possibilities in the db\n\t\t// so I add them here.\n\t\t$return[null] = lang('nav_form_choose_page');\n\t\t$return['pages/'] = lang('pages_index_controller_label');\n\n\t\t// foreach through them and add the url_title as key\n\t\t// and title as option text.\n\t\tforeach ($options as $opt)\n\t\t{\n\t\t\t$return[$opt->url_title] = $opt->title;\n\n\t\t}\n\n\t\t// return the obj\n\t\treturn $return;\n\t}", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => ['seo_url', 'seo_url1']\n ]\n ];\n }", "public function posttag($slug)\n {\n $tag_id = Tag::where('slug', $slug)->firstOrFail()->id;\n // $posts = Tag::with('posts')->where('id', $tag_id)->first()->posts->reverse();\n\n // Pagination creation by function below when need to create from array;\n $data = Tag::with('posts')\n ->where('id', $tag_id)\n ->first()->posts;\n $posts = $this->paginate($data);\n\n $main_menu_id = Menus::where('name', 'main-menu')\n ->with('items')\n ->first();\n if (isset($main_menu_id)) {\n $main_menu_id = $main_menu_id->id;\n }\n $main_menu = MenuItems::where('menu', $main_menu_id)\n ->orderBy('sort')\n ->get();\n $setting = Setting::all()->first();\n $categories = Category::all();\n $popular_posts = Post::orderBy('visitor', 'desc')\n ->take(10)\n ->with('category')\n ->inRandomOrder()\n ->limit(4)\n ->get();\n $most_visit = Post::orderBy('visitor', 'desc')->first();\n $socials = Social::all();\n $page_info = Page::where('label', 'tag')->first();\n return view('front.post', compact('page_info', 'posts', 'categories', 'setting', 'main_menu', 'popular_posts', 'most_visit', 'socials'));\n }", "public function sluggable(): array\n {\n return [\n 'slug' => [\n 'source' => 'judul'\n ]\n ];\n }", "function metaTags() {\r\n\t\tif (!defined('IS_UWR1RESULTS_VIEW')) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t$season = Uwr1resultsController::season();\r\n\t\t$season = $season.'/'.($season+1); // TODO: make a function for that\r\n\r\n\t\t$keywords = array('Unterwasserrugby', 'UWR', 'Liga', 'Ergebnisse', 'Unterwasser Rugby');\r\n\t\t$tags = array();\r\n\r\n\t\t$view = Uwr1resultsController::WhichView();\r\n\t\tif ('league' == $view) {\r\n\t\t\t$keywords[] = Uwr1resultsModelLeague::instance()->name();\r\n\t\t\t$tags['description'] = 'Ergebnisse der ' . Uwr1resultsModelLeague::instance()->name() . ' im UWR (Saison ' . $season . ') | ' . get_bloginfo('name');\r\n\t\t} else if ('tournament' == $view) {\r\n\t\t\t$keywords[] = Uwr1resultsModelLeague::instance()->name();\r\n\t\t\t$keywords[] = 'Turnier';\r\n\t\t\t$tags['description'] = 'Ergebnisse des UWR Turniers ' . Uwr1resultsModelLeague::instance()->name() . ' | ' . get_bloginfo('name');\r\n\t\t} else if ('index' == $view) {\r\n\t\t\t$keywords[] = 'Bundesliga';\r\n\t\t\t$keywords[] = 'Damenliga';\r\n\t\t\t$keywords[] = 'Landesliga';\r\n\t\t\t$keywords[] = 'Oberliga';\r\n\t\t\t$keywords[] = 'Bezirksliga';\r\n\t\t\t$keywords[] = 'Turniere';\r\n\t\t\t$keywords[] = 'Damen';\r\n\t\t\t$keywords[] = 'Jugend';\r\n\t\t\t$keywords[] = 'Junioren';\r\n\t\t\t$tags['description'] = 'UWR Ergebnisse aus der 1. und 2. Bundesliga, Damenliga, Landesliga, Oberliga und Bezirksliga im ' . get_bloginfo('name') . '.';\r\n\t\t}\r\n\t\t$tags['keywords'] = ((count($keywords) > 0)\r\n\t\t\t? implode(', ', $keywords) . ', '\r\n\t\t\t: '')\r\n\t\t\t. 'UW Rugby, Jugend, Junioren';\r\n\t\tforeach($tags as $name => $content) {\r\n\t\t\tprint '<meta name=\"'.$name.'\" content=\"'.$content.'\" />'.\"\\n\";\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public function show(Tags $tags)\n {\n //\n }", "public function bytag($id)\n\t{\n\t \n $tag = Tag::where('slug', '=', $id)->first();\n $taglist = Tag::findOrFail($tag->id)->cposts()->paginate(6);\n return view('catindex', array('type'=>'Tag','categlist' => $taglist,'posttype'=>$tag) );\n \n \n }", "public function sluggable(): array\n {\n return [\n 'slug' => [\n 'source' => 'name'\n ]\n ];\n }", "public function sluggable(): array\n {\n return [\n 'slug' => [\n 'source' => 'name'\n ]\n ];\n }", "public function sluggable(): array\n {\n return [\n 'slug' => [\n 'source' => 'name'\n ]\n ];\n }", "public function sluggable(): array\n {\n return [\n 'slug' => [\n 'source' => 'name'\n ]\n ];\n }", "public function getTags()\n {\n $title = \"Tags\";\n $view = $this->di->get(\"view\");\n $pageRender = $this->di->get(\"pageRender\");\n // Get all the tags from db\n $tags = $this->di->get(\"tagModel\")->getAllTags();\n\n $data = [\n //\"items\" => $book->findAll(),\n \"tags\" => $tags,\n ];\n\n $view->add(\"pages/tags\", $data);\n //$view->add(\"blocks/footer\", $data);\n\n $pageRender->renderPage([\"title\" => $title]);\n }", "public function getStoreTags($store_id) {\n\t\t##\n\t\t##\tPARAMETER\n\t\t##\t\t@store_id\t\t\tThe store ID\n\t\t##\n\t\t##\tRETURN\n\t\t##\t\tThe ordered tag list\n\t\t$sql = <<<EOD\n\t\tSELECT\n\t\t\tDISTINCT({$this->wpdb->prefix}topspin_tags.name),\n\t\t\t{$this->wpdb->prefix}topspin_stores_tag.order_num,\n\t\t\t{$this->wpdb->prefix}topspin_stores_tag.status\n\t\tFROM {$this->wpdb->prefix}topspin_tags\n\t\tLEFT JOIN\n\t\t\t{$this->wpdb->prefix}topspin_stores_tag ON {$this->wpdb->prefix}topspin_tags.name = {$this->wpdb->prefix}topspin_stores_tag.tag\n\t\tWHERE\n\t\t\t{$this->wpdb->prefix}topspin_stores_tag.store_id = '%d'\n\t\tORDER BY\n\t\t\t{$this->wpdb->prefix}topspin_stores_tag.order_num ASC\nEOD;\n\t\t$storeTags = $this->wpdb->get_results($this->wpdb->prepare($sql,array($store_id)),ARRAY_A);\n\t\t//Append new and updated tags\n\t\t$updatedSql = <<<EOD\n\t\tSELECT\n\t\t\t{$this->wpdb->prefix}topspin_tags.name\n\t\tFROM {$this->wpdb->prefix}topspin_tags\n\t\tWHERE\n\t\t\t{$this->wpdb->prefix}topspin_tags.name NOT IN (\n\t\t\t\tSELECT\n\t\t\t\t\tDISTINCT({$this->wpdb->prefix}topspin_tags.name)\n\t\t\t\tFROM {$this->wpdb->prefix}topspin_tags\n\t\t\t\tLEFT JOIN\n\t\t\t\t\t{$this->wpdb->prefix}topspin_stores_tag ON {$this->wpdb->prefix}topspin_tags.name = {$this->wpdb->prefix}topspin_stores_tag.tag\n\t\t\t\tWHERE\n\t\t\t\t\t{$this->wpdb->prefix}topspin_stores_tag.store_id = %d\n\t\t\t)\n\t\t\tAND artist_id = %d\nEOD;\n\t\t$newTags = $this->wpdb->get_results($this->wpdb->prepare($updatedSql,array($store_id,$this->artist_id)),ARRAY_A);\n\t\tforeach($newTags as $tag) {\n\t\t\t$tagArr = array(\n\t\t\t\t'name' => $tag['name'],\n\t\t\t\t'order_num' => 0,\n\t\t\t\t'status' => 0\n\t\t\t);\n\t\t\tarray_push($storeTags,$tagArr);\n\t\t}\n\t\treturn $storeTags;\n\t}", "public function sluggable()\n {\n return 'title';\n }", "public function findBySlug($slug);", "public function findBySlug($slug);", "public function findBySlug($slug);", "public function findBySlug($slug);", "public function findBySlug($slug);", "public static function getArchivalTagList() {\n\t\t// $archival_tags = [];\n// \t\tforeach (self::$asset_tags as $tag=>$label){\n// \t\t\tif (strpos($label,'*') !== false){\n// \t\t\t\t$archive_tags[] = \"'$tag'\";\n// \t\t\t}\n// \t\t}\n\t\treturn \"'\" . implode(\"','\",array_keys(self::$asset_tags)) . \"'\" ;\n\t}", "public function indexAlphabeticallyAction()\n {\n $tags = $this->getTagRepository()->findBy([], ['name'=>'ASC']);\n\n return $this->respond([\n 'tags' => $tags\n ]);\n }", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'slug_or_title',\n ],\n ];\n }", "function sf_create_slugs()\n{\n\tglobal $wpdb;\n\n\t# forums\n\t$records=$wpdb->get_results(\"SELECT forum_id, forum_name, forum_slug FROM \".SFFORUMS);\n\tif($records)\n\t{\n\t\tforeach($records as $record)\n\t\t{\n\t\t\t$title = sf_create_slug($record->forum_name, 'forum');\n\t\t\tif(empty($title))\n\t\t\t{\n\t\t\t\t$title = 'forum-'.$record->forum_id;\n\t\t\t}\n\t\t\t$wpdb->query(\"UPDATE \".SFFORUMS.\" SET forum_slug='\".$title.\"' WHERE forum_id=\".$record->forum_id);\n\t\t}\n\t}\n\n\t# topics\n\t$records=$wpdb->get_results(\"SELECT topic_id, topic_name, topic_slug FROM \".SFTOPICS);\n\tif($records)\n\t{\n\t\tforeach($records as $record)\n\t\t{\n\t\t\t$title = sf_create_slug($record->topic_name, 'topic');\n\t\t\tif(empty($title))\n\t\t\t{\n\t\t\t\t$title = 'topic-'.$record->topic_id;\n\t\t\t}\n\t\t\t$wpdb->query(\"UPDATE \".SFTOPICS.\" SET topic_slug='\".$title.\"' WHERE topic_id=\".$record->topic_id);\n\t\t}\n\t}\n\treturn;\n}", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => 'titre'\n ]\n ];\n }", "public function sluggable() {\n return [\n 'slug_curso' => [\n 'source' => 'titulo'\n ]\n ];\n }" ]
[ "0.58124113", "0.54973036", "0.5472134", "0.5435748", "0.53881925", "0.5305022", "0.5230149", "0.5227472", "0.5177352", "0.51557267", "0.51504016", "0.5150039", "0.5097893", "0.508732", "0.5084329", "0.5081011", "0.5081011", "0.5081011", "0.5081011", "0.5081011", "0.5081011", "0.5070639", "0.50631964", "0.5048395", "0.5041219", "0.5024489", "0.50240743", "0.501364", "0.5002261", "0.49881792", "0.49881792", "0.49881792", "0.49881792", "0.49632558", "0.49159616", "0.49132738", "0.49012014", "0.48980778", "0.48953032", "0.48910648", "0.48882234", "0.48868632", "0.48867363", "0.48845264", "0.48677883", "0.48504138", "0.48504138", "0.4846707", "0.4846707", "0.4846707", "0.4846707", "0.4846707", "0.4846707", "0.4846707", "0.4846707", "0.4846707", "0.4846707", "0.4846707", "0.4846707", "0.4846707", "0.4846707", "0.4846707", "0.4846707", "0.4846707", "0.4846707", "0.4846707", "0.4846707", "0.4846707", "0.48466825", "0.48428947", "0.48278815", "0.4824141", "0.48224908", "0.48224908", "0.48173898", "0.4809296", "0.4804533", "0.4803109", "0.47895378", "0.4788892", "0.47652507", "0.47648323", "0.47428322", "0.47428322", "0.47428322", "0.47428322", "0.47323364", "0.47263047", "0.47208887", "0.47203314", "0.47203314", "0.47203314", "0.47203314", "0.47203314", "0.47121307", "0.47012612", "0.46996647", "0.46915996", "0.46793655", "0.46773976" ]
0.8010079
0
return the front page items up to num
function tlp_frontpage_newsitems_slugs ($num = 3, $minforpinned = 2) { // get all news items, and sort them by slug descending $items = getChildrenMulti('news', array('slug', 'pin')); usort($items, function ($a, $b) { return strcmp($b['slug'], $a['slug']); }); // grab the first two. Then, look for any that have been pinned and add them. // if the number of items is less than 3, add one more $good = array(); $hold = array(); while ((count($good) < $minforpinned) && (!empty($items))) { $good[] = array_shift($items); } while(!empty($items)) { $temp = array_shift($items); if ($temp['pin'] == 'on') { $good[] = $temp; } else { $hold[] = $temp; } } if ((count($good) < $num) && (!empty($hold))) { $rest = array_splice($hold, 0, ($num - count($good))); $good = array_merge($good, $rest); } $ret = array(); foreach ($good as $item) { $ret[] = $item['slug']; } return $ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPageNumbers();", "private function pagenav($num) {\n $lastpage = ceil($this->factory->getCount('history') / $this->itemsPerPage);\n $parms = array(\n 'first' => 1,\n 'previous' => (max($num-1,1)),\n 'next' => min($num+1,$lastpage),\n 'last' => $lastpage\n );\n return $this->parser->parse('itemnav',$parms,true);\n }", "function getPagingfront($refUrl, $aryOpts, $pgCnt, $curPg) {\n $return = '';\n $return.='<div class=\"pagination\"><ul>';\n if ($curPg > 1) {\n $aryOpts['pg'] = 1;\n $return.='<li class=\"prev\"><a href=\"' . $refUrl . getQueryString($aryOpts) . '\">First</a></li>';\n\n $aryOpts['pg'] = $curPg - 1;\n $return.='<li class=\"prev\"><a href=\"' . $refUrl . getQueryString($aryOpts) . '\">Prev</a></li>';\n }\n for ($i = 1; $i <= $pgCnt; $i++) {\n $aryOpts['pg'] = $i;\n $return.='<li><a href=\"' . $refUrl . getQueryString($aryOpts) . '\" class=\"graybutton pagelink';\n if ($curPg == $i)\n $return.=' active';\n $return.='\" >' . $i . '</a></li>';\n }\n if ($curPg < $pgCnt) {\n $aryOpts['pg'] = $curPg + 1;\n $return.='<li class=\"prev\"><a href=\"' . $refUrl . getQueryString($aryOpts) . '\">Next</a></li>';\n $aryOpts['pg'] = $pgCnt;\n $return.='<li class=\"prev\"><a href=\"' . $refUrl . getQueryString($aryOpts) . '\">Last</a></li>';\n }\n $return.='</ul></div>';\n return $return;\n}", "function MyMod_Paging_Page_No_2_Item_Nos()\n {\n if ($this->NumberOfItems>$this->NItemsPerPage)\n {\n if ($this->MyMod_Paging_Active_ID && $this->MyMod_Paging_Active_ID>0)\n {\n $this->FirstItemNo=0;\n foreach ($items as $id => $item)\n {\n if ($item[ \"ID\" ]==$this->MyMod_Paging_Active_ID)\n {\n $this->FirstItemNo=$id;\n $this->OffSet=$this->NumberOfItems;\n }\n }\n }\n else\n {\n if ($this->MyMod_Paging_No==0)\n {\n $this->FirstItemNo=0;\n $this->OffSet=$this->NumberOfItems;\n }\n elseif\n (\n preg_match('/\\d+/',$this->MyMod_Paging_No)\n &&\n $this->MyMod_Paging_No>0\n )\n {\n $res=$this->NItemsPerPage % $this->NumberOfItems;\n\n $this->FirstItemNo=($this->MyMod_Paging_No-1)*$this->NItemsPerPage;\n $this->OffSet=$res;\n }\n else\n {\n $this->FirstItemNo=0;\n $this->OffSet=0;\n }\n }\n }\n else\n {\n $this->FirstItemNo=0;\n $this->OffSet=$this->NumberOfItems;\n }\n\n $this->LastItemNo=$this->FirstItemNo+$this->OffSet;\n }", "public function getPageItems()\n {\n }", "function page($num = 1)\n {\n // retrieve all data from history table per sorting\n $source = $this->factory->sortAll($this->sort);\n $records = array(); // start with an empty extract\n\n // use a foreach loop, because the record indices may not be sequential\n $index = 0; // where are we in the tasks list\n $count = 0; // how many items have we added to the extract\n $start = ($num - 1) * $this->itemsPerPage;\n \n foreach($source as $record) {\n if ($index++ >= $start) {\n $records[] = $record;\n $count++;\n }\n if ($count >= $this->itemsPerPage) break;\n }\n \n $this->data['pagination'] = $this->pagenav($num);\n $this->showPage($records);\n }", "public function getPageNumber();", "public function getPageNumber();", "function getPagingSup($refUrl, $aryOpts, $pgCnt, $curPg) {\n if (in_array('[__atuvc]', $aryOpts)) {\n unset($aryOpts[array_search('[__atuvc]')]);\n array_values($aryOpts);\n }\n $return = '';\n if ($curPg > 1) {\n $aryOpts['pg'] = 1;\n //$return.='<li class=\"pre\"><a href=\"'.$refUrl.getQueryString($aryOpts).'\">First</a></li>';\n\n $aryOpts['pg'] = $curPg - 1;\n $return.='<li ><a href=\"' . $refUrl . getQueryString($aryOpts) . '\" class=\"pre\">Previous</a></li>';\n }\n for ($i = 1; $i <= $pgCnt; $i++) {\n $aryOpts['pg'] = $i;\n if ($pgCnt == $i && $curPg >= $pgCnt)\n $class.=' bordernone';\n $return.='<li class=\"' . $class . '\"><a href=\"' . $refUrl . getQueryString($aryOpts) . '\" class=\"';\n if ($curPg == $i)\n $return.=' active';\n $return.='\" >' . $i . '</a></li>';\n }\n if ($curPg < $pgCnt) {\n $aryOpts['pg'] = $curPg + 1;\n $return.='<li class=\"last\"><a href=\"' . $refUrl . getQueryString($aryOpts) . '\" class=\"nextal\">Next</a></li>';\n $aryOpts['pg'] = $pgCnt;\n //$return.='<li class=\"last\"><a href=\"'.$refUrl.getQueryString($aryOpts).'\" class=\"nextal\">Last</a></li>';\n }\n return $return;\n}", "public function getPageNumber() {}", "public function getPageNumber() {}", "public function getFirstPage();", "function horizon_theme_paging_nav() {\n\t\t$mid = 2; // Total of items that will show along with the current page.\n\t\t$end = 1; // Total of items displayed for the last few pages.\n\t\t$show = false; // Show all items.\n\n\t\techo horizon_theme_pagination( $mid, $end, false );\n\t}", "protected function num() {\n $this->siblings = $this->siblings->not($this->page)->sortBy('num', 'asc');\n\n // special keywords and sanitization\n if($this->to == 'last') {\n $this->to = $this->siblings->count() + 1;\n } else if($this->to == 'first') {\n $this->to = 1;\n } else if($this->to === false) {\n $this->to = false;\n } else if($this->to < 1) {\n $this->to = 1; \n }\n\n // start the index\n $n = 0;\n\n if($this->to === false) {\n foreach($this->siblings as $sibling) {\n $n++; $sibling->_sort($n);\n }\n } else {\n\n // go through all items before the selected page\n foreach($this->siblings->slice(0, $this->to - 1) as $sibling) {\n $n++; $sibling->_sort($n);\n }\n\n // add the selected page\n $n++; $this->page->_sort($n);\n\n // go through all the items after the selected page\n foreach($this->siblings->slice($this->to - 1) as $sibling) {\n $n++; $sibling->_sort($n);\n }\n\n }\n\n }", "function head($count = 10)\n\t{\n\t\treturn array_slice($this->_data, 0, $count);\n\t}", "public function getPages();", "public function data_getAllButFront()\n\t{\n\t\treturn $this->pdo->query(sprintf(\"SELECT * FROM page_contents WHERE id != 1 ORDER BY contenttype, COALESCE(ordinal, 1000000)\"));\n\t}", "public function FirstItem()\n {\n return ($start = $this->getPageStart()) ? $start + 1 : 1;\n }", "function list_home_news_focus ($start=0, $num_show = 6)\n\t{\n\t\tglobal $ttH;\n\t\t$sql = \"select *\n\t\t\t\t\t\tfrom news\n\t\t\t\t\t\twhere is_show = 1\n\t\t\t\t\t\tand lang='\".$ttH->conf[\"lang_cur\"].\"'\n\t\t\t\t\t\tand is_focus = 1\n\t\t\t\t\t\torder by show_order desc, date_create desc\n\t\t\t\t\t\tlimit $start, $num_show\";\n\n\t\t$result = $ttH->db->query($sql);\n\t\t$num_rows= mysql_num_rows($result);\n\t\t$html_row = '';\n\t\tif ($num = $ttH->db->num_rows($result)) {\n\t\t\t$j = 0;\n\t\t\twhile ($row = $ttH->db->fetch_row($result))\n\t\t\t{\n\t\t\t\t$j++;\n\t\t\t\t$row['link'] = $ttH->site->get_link ('news','',$row['friendly_link']);\n\t\t\t\t$row[\"picture\"] = $ttH->func->get_src_mod($row[\"picture\"], 302, 150, 1, 1);\n\t\t\t\t$row['short'] = $ttH->func->short($row['content'], 120);\n\t\t\t\t$row['date_update'] = date('d/m/Y',$row['date_update']);\n\t\t\t\t$ttH->temp_box->assign('item', $row);\n\t\t\t\t$ttH->temp_box->parse(\"list_home_news_focus.item\");\n\t\t\t}\n\t\t\t$ttH->temp_box->parse(\"list_home_news_focus\");\n\t\t}\n\t\t$stop_more = ($num_rows == $num_show) ? 0 : 1;\n\t\t$output = $ttH->temp_box->text(\"list_home_news_focus\");\n\t\treturn array(\n\t\t\t'stop_more' => $stop_more,\n\t\t\t'output' => $output\n\t\t);\n\t}", "function get_recent_items($num = 10)\n{\n return get_db()->getTable('Item')->findBy(array('sort_field' => 'added', 'sort_dir' => 'd'), $num);\n}", "private function getNumPages() {\n //display all in one page\n if (($this->limit < 1) || ($this->limit > $this->itemscount)) {\n $this->numpages = 1;\n } else {\n //Calculate rest numbers from dividing operation so we can add one\n //more page for this items\n $restItemsNum = $this->itemscount % $this->limit;\n //if rest items > 0 then add one more page else just divide items\n //by limit\n $restItemsNum > 0 ? $this->numpages = intval($this->itemscount / $this->limit) + 1 : $this->numpages = intval($this->itemscount / $this->limit);\n }\n }", "public function offset(){\n\t\t//Page 1 has an offset of 0 (1-1) * 20\n\t\t//Page 2 has an offset of 20 (2-1) * 20\n\t\t//in other words, page 2 starts with item 21\n\t\treturn ($this->current_page - 1) * $this->per_page;\t\n\t}", "protected function getItemsNumber() {\n\t\treturn 20;\n\t}", "public function index()\n {\n return Press::sorted()->paginate(6);\n }", "function pager($count){\n //x if > 0 - decrement on num\n //y - number position of ouput increment on num\n //z - number of account increment on 1\n for($x=$count, $y=1, $z=1;\n $x>0;\n $x-=$this->num, $y+=$this->num ,$z++){\n if($this->pos == $y){\n echo $z;\n } else {\n echo \"<a href=?pos=\",$y,\"> \",$z,\" </a>\" ;\n }\n }\n }", "private function limit_page()\n {\n $page = $this->define_page();\n $start = $page * $this->count - $this->count;\n $fullnumber = $this->total;\n $total = $fullnumber['count'] / $this->count;\n is_float($total) ? $max = $total + 2 : $max = $total + 1;\n $array = array('start'=>(int)$start,'max'=>(int)$max);\n return $array;\n }", "public function pagination_numbers_set(){\n\t\t\t$this->pages_show_array = array();\n\t\t\t$this->pages_show_array['middle'] = array();\n\t\t\t$this->pages_show_array['prev'] = null;\n\t\t\t$this->pages_show_array['next'] = null;\n\t\t\t$this->pages_show_array['first'] = null;\n\t\t\t$this->pages_show_array['last'] = null;\n\n\t\t\t\n\t\t\tfor ($i=0; $i < sizeof($this->pages_array) ;$i++){\n\n\t\t\t\t//first iteration\n\t\t\t\tif ($i == 0){\n\t\t\t\t\t//prev\n\t\t\t\t\tif ($this->current_page <= 1){\n\t\t\t\t\t\t$this->pages_show_array['prev'] = null;\n\t\t\t\t\t}\n\t\t\t\t\telse if ($this->current_page >= $this->total_pages){\n\t\t\t\t\t\t$this->pages_show_array['prev'] = $this->total_pages - 1;\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\t$this->pages_show_array['prev'] = $this->current_page - 1;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\tif ($this->current_page > $this->pages_to_show){\n\t\t\t\t\t\t$this->pages_show_array['first'] = \"1 ...\";\n\t\t\t\t\t}\n\n\n\t\t\t\t\tarray_push($this->pages_show_array['middle'], $this->pages_array[$i]);\n\n\n\t\t\t\t}\n\n\t\t\t\t//last iteration\n\t\t\t\telse if ($i == sizeof($this->pages_array)-1){\n\n\t\t\t\t\tif ($this->current_page < $this->total_pages - $this->pages_to_show){\n\t\t\t\t\t\t$this->pages_show_array['last'] = \"...\" . $this->total_pages;\n\t\t\t\t\t}\n\n\n\t\t\t\t\t//next\n\t\t\t\t\tif ($this->current_page >= $this->total_pages){\n\t\t\t\t\t\t$this->pages_show_array['next'] = null;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$this->pages_show_array['next'] = $this->current_page + 1;\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\t//middle iterations\n\t\t\t\telse {\n\t\t\t\t\tarray_push($this->pages_show_array['middle'], $this->pages_array[$i]);\n\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\t\n\n\t\t\t\tif (empty($this->pages_show_array['next'])){\n\t\t\t\t\t$this->pages_show_array['next'] = null;\n\t\t\t\t}\n\t\t\t\n\n\t\t}", "public function getPageVisible() {}", "public function getPreviousPage();", "function get_blog_list($start = 0, $num = 10, $deprecated = '')\n {\n }", "public function getPages() {}", "public function index()\n {\n return Bien::paginate(3);\n }", "function getRecentEntries($number = 5)\r\n{\r\n global $context, $smcFunc;\r\n \r\n if (!is_numeric($number) || empty($number))\r\n $number = 5;\r\n \r\n \r\n}", "function &getFrontpageItems(&$params)\n\t{\n\t\t$db\t\t= &JFactory::getDBO();\n\t\t$user\t= &JFactory::getUser();\n\t\t$aid\t= $user->get('aid');\n\n\t\t// get some date values for the query\n\t\t$date\t\t= &JFactory::getDate();\n\t\t$now\t\t= $date->toMySQL();\n\t\t$nullDate\t= $db->getNullDate();\n\t\t\n\t\t//JXComments integration\n\t\t$jxcomments = (int)$params->get('jxcomments');\n\n\t\t// build the query to get article information\n\t\t$db->setQuery(\n\t\t\t'SELECT a.*, cc.description as catdesc, cc.title as cattitle, s.description as secdesc, s.title as sectitle,'.\n\t\t\t' CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(\":\", a.id, a.alias) ELSE a.id END as slug,'.\n\t\t\t' CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(\":\", cc.id, cc.alias) ELSE cc.id END as catslug,'.\n\t\t\t' CASE WHEN CHAR_LENGTH(s.alias) THEN CONCAT_WS(\":\", s.id, s.alias) ELSE s.id END as secslug'.\n\t\t\t' FROM #__content AS a'.\n\t\t\t' INNER JOIN #__categories AS cc ON cc.id = a.catid'.\n\t\t\t' INNER JOIN #__sections AS s ON s.id = a.sectionid'.\n\t\t\t' INNER JOIN #__content_frontpage AS f ON f.content_id = a.id'.\n\t\t\t' WHERE a.state = 1'.\n\t\t\t' AND a.access <= '.(int) $aid.' AND cc.access <= '.(int) $aid.' AND s.access <= '.(int) $aid .\n\t\t\t' AND (a.publish_up = '.$db->Quote($nullDate).' OR a.publish_up <= '.$db->Quote($now).' ) '.\n\t\t\t' AND (a.publish_down = '.$db->Quote($nullDate).' OR a.publish_down >= '.$db->Quote($now).' )'.\n\t\t\t' AND cc.section = s.id'.\n\t\t\t' AND cc.published = 1'.\n\t\t\t' AND s.published = 1'.\n\t\t\t' ORDER BY f.ordering',\n\t\t\t0, (int)$params->get('num_items')\n\t\t);\n\t\t$rows = $db->loadObjectList();\n\n\t\t// import library dependencies\n\t\trequire_once (JPATH_SITE.DS.'components'.DS.'com_content'.DS.'helpers'.DS.'route.php');\n\n\t\tfor ($i=0,$n=count($rows); $i < $n; $i++)\n\t\t{\n\t\t\t$rows[$i]->article_link = JRoute::_(ContentHelperRoute::getArticleRoute($rows[$i]->slug, $rows[$i]->catslug, $rows[$i]->sectionid));\n\t\t\t$rows[$i]->category_link = JRoute::_(ContentHelperRoute::getCategoryRoute($rows[$i]->catslug, $rows[$i]->sectionid));\n\t\t\t$rows[$i]->section_link = JRoute::_(ContentHelperRoute::getSectionRoute($rows[$i]->sectionid));\n\t\t\t$rows[$i]->date = $rows[$i]->created;\n\t\t\t$rows[$i]->text = modAnnouncmentHelper::processText($rows[$i], $params);\n\t\t\tif($jxcomments)\n\t\t\t{\n\t\t\t\t$rows[$i]->num_comments = modAnnouncmentHelper::getNumComments($rows[$i]->id);\n\t\t\t}\n\t\t}\n\n\t\treturn $rows;\n\t}", "function pagination($page_count,$page,$browse_range=3,$show_last=true)\n {\n if($page_count>1)\n {\n $xpagination['current'] = $page;\n if($page_count > $page)\n {\n $xpagination['next'] = $page+1;\n }\n else\n {\n $xpagination['next'] = 0;\n }\n if($page > 1)\n {\n $xpagination['previous'] = $page-1;\n }\n else\n {\n $xpagination['previous'] = 0;\n }\n $xpagination['items'][] = 1;\n if ($page > $browse_range+1) $xpagination['items'][] = 0;\n $n_range = $page-($browse_range-1);\n $p_range = $page+$browse_range;\n for($page_browse=$n_range; $page_browse<$p_range; $page_browse++)\n {\n if($page_browse > 1 && $page_browse <= $page_count) $xpagination['items'][] = $page_browse;\n }\n if($show_last)\n {\n if($page < $page_count-($browse_range)) $xpagination['items'][] = 0;\n if(!in_array($page_count,$xpagination['items'])) $xpagination['items'][] = $page_count;\n }\n return $xpagination;\n }\n return false;\n }", "public function getPageItems() {\r\n\t\treturn $this->__pageItems;\r\n\t}", "function titlesSlice($index = 0)\n{\n global $app, $globalSettings;\n\n // parameter checking\n if (!is_numeric($index)) {\n $app->getLog()->warn('titlesSlice: invalid page id ' . $index);\n $app->halt(400, \"Bad parameter\");\n }\n\n $filter = getFilter();\n $search = $app->request()->get('search');\n if (isset($search)) {\n $search = trim($search);\n }\n $sort = $app->request()->get('sort');\n\n if (isset($sort) && $sort == 'byReverseDate') {\n switch ($globalSettings[TITLE_TIME_SORT]) {\n case TITLE_TIME_SORT_TIMESTAMP:\n $tl = $app->calibre->timestampOrderedTitlesSlice($globalSettings['lang'], $index, $globalSettings[PAGE_SIZE], $filter, $search);\n break;\n case TITLE_TIME_SORT_PUBDATE:\n $tl = $app->calibre->pubdateOrderedTitlesSlice($globalSettings['lang'], $index, $globalSettings[PAGE_SIZE], $filter, $search);\n break;\n case TITLE_TIME_SORT_LASTMODIFIED:\n $tl = $app->calibre->lastmodifiedOrderedTitlesSlice($globalSettings['lang'], $index, $globalSettings[PAGE_SIZE], $filter, $search);\n break;\n default:\n $app->getLog()->error('titlesSlice: invalid sort order ' . $globalSettings[TITLE_TIME_SORT]);\n $tl = $app->calibre->timestampOrderedTitlesSlice($globalSettings['lang'], $index, $globalSettings[PAGE_SIZE], $filter, $search);\n break;\n }\n } else {\n $tl = $app->calibre->titlesSlice($globalSettings['lang'], $index, $globalSettings[PAGE_SIZE], $filter, $search);\n }\n\n $books = array_map('checkThumbnail', $tl['entries']);\n $app->render('titles.html', [\n 'page' => mkPage(getMessageString('titles'), 2, 1),\n 'url' => 'titleslist',\n 'books' => $books,\n 'curpage' => $tl['page'],\n 'pages' => $tl['pages'],\n 'search' => $search,\n 'sort' => $sort]);\n}", "protected function get_retrieved_ids() {\n $ids = $this->parse_ids($items);\n \n $sidx = $eidx = 0;\n if (is_array($this->page_size)) {\n $sidx = $this->page_size[0];\n $eidx = $this->page_size[1];\n if ($sidx < 0)\n $sidx = 0;\n if ($eidx < $sidx)\n $eidx = $sidx;\n if ($eidx >= count($ids))\n $eidx = count($ids) - 1;\n \n $len = $eidx - $sidx + 1;\n if ($sidx >= count($ids))\n $ids = array();\n else\n $ids = array_slice($ids, $sidx, $len);\n }\n\n list($start_count, $max_count) = $this->get_page_limit($this->page_size);\n $num_to_display = $max_count - $start_count + 1;\n $ids = array_slice($ids, $start_count, $num_to_display);\n\n // This is supposed to come at the end of the retrieval, but I don't know where to put it yet.\n // This is legacy code anyway and is going byebye soon.\n //$output[\"eod\"] = $start_count < $max_count;\n //$output[\"counts\"][\"displayed\"] = $start_count;\n //if (!$output[\"eod\"])\n // $output[\"counts\"][\"displayed\"]--;\n return $ids;\n }", "public function get_pages(&$pages, &$current_page, &$prev_page, &$next_page)\n\t{\n\t\tif($this->is_feed) $pages = array_slice($pages, 0, 10);\n\t}", "function FindThisMany( $num = 5, $orderby = \"date_revised DESC\" ) {\n\t\treturn MyActiveRecord::FindBySQL( 'Items', \"SELECT id, name, display_name, content, template, display_order, sku, price, taxonomy, public, public2, date_created, date_revised FROM items ORDER BY $orderby LIMIT $num\" ); \n\t}", "function __paging($number, $first) {\n\n if ($number == 0) {\n return '';\n } else {\n return '<paging>\n <startIndex>'.$this->__xml($first).'</startIndex>\n <numberResults>'.\n $this->__xml($number)\n .'</numberResults>\n </paging>';\n }\n\n}", "public function getBillets(){\n $db = $this -> init();\n if(isset($_GET['page'])){\n $display = $db->query('Select * from posts order by id asc limit '.(($_GET['page']-1)*5).',5') or die(print_r($db->errorInfo()));\n }\n else{\n $display = $db->query('Select * from posts order by id asc limit 0,5');\n }\n return $display;\n }", "public function getForHomePage()\n {\n return $this->prepare(DB::findAll($this->table, 'ORDER BY time DESC LIMIT 3'));\n }", "public function getItemsBeforeFirstPageBreak()\r\n {\r\n return $this->templateConfiguration['itemsBeforeFirstPageBreak'];\r\n }", "private function pageList() {\n //get pager range\n $this->getPagerRange();\n\n //loop specified ranged pager list\n\t\t//there is no link for current page number\n for ($i = $this->minPager; $i <= $this->maxPager; $i++) {\n if ($i == $this->currentPage) {\n print '<li class=\"current-page\">' . $i . '</li>';\n } else {\n print '<li><a href=\"' . $this->url . '&page=' . $i . '\">' . $i . '</a></li>';\n }\n }\n }", "public function getItemsPerPage();", "public function getItemsPerPage();", "public function getTeaserForTop(int $page = 1): Collection\n {\n }", "function recent_items($count = 10)\n{\n $items = get_recent_items($count);\n if ($items) {\n $html = '';\n foreach ($items as $item) {\n $html .= get_view()->partial('items/single.php', array('item' => $item));\n release_object($item);\n }\n } else {\n $html = '<p>' . __('No recent items available.') . '</p>';\n }\n return $html;\n}", "public function page_news($offset)//每頁顯示的新聞列表\r\n {\r\n $query = $this->db->order_by('date_time','DESC')->get_where('news',array('state' => '0'),11,$offset);\r\n return $query->result_array();\r\n }", "public function index()\n {\n return Material::oldest()->paginate(5);\n }", "function paginatitel(){\r\n\t\tglobal $movie;\r\n\t\techo $movie[0]['title'];\r\n\t}", "public function getItems()\n {\n $arrLinks = array();\n\n $intNumberOfLinks = floor($this->intNumberOfLinks / 2);\n $intFirstOffset = ($this->intPage - $intNumberOfLinks - 1);\n\n if ($intFirstOffset > 0) {\n $intFirstOffset = 0;\n }\n\n $intLastOffset = ($this->intPage + $intNumberOfLinks - $this->intTotalPages);\n\n if ($intLastOffset < 0) {\n $intLastOffset = 0;\n }\n\n $intFirstLink = ($this->intPage - $intNumberOfLinks - $intLastOffset);\n\n if ($intFirstLink < 1) {\n $intFirstLink = 1;\n }\n\n $intLastLink = ($this->intPage + $intNumberOfLinks - $intFirstOffset);\n\n if ($intLastLink > $this->intTotalPages) {\n $intLastLink = $this->intTotalPages;\n }\n\n for ($i = $intFirstLink; $i <= $intLastLink; $i++) {\n $arrLinks[] = (object) array(\n 'page' => $i,\n 'current' => $i == $this->intPage,\n 'href' => $this->getItemLink($i)\n );\n }\n\n return $arrLinks;\n }", "function getFeatureProducts(){\n \n $itemonpage = !empty($_GET['per_page'])?$_GET['per_page']:3;\n $page = !empty($_GET['page'])?$_GET['page']:1;\n $offset= ($page-1)*$itemonpage;\n\n $numberPage = ceil(30/$itemonpage);\n \n $sql = self::$connection->prepare(\"SELECT * FROM products limit \".$itemonpage.\" offset \".$offset);\n \n $sql->execute();//return an object\n $items = array();\n $items = $sql->get_result()->fetch_all(MYSQLI_ASSOC);\n include \"link.php\";\n return $items; //return an array\n }", "function getPages() {\n\t\t$sql = 'SELECT * FROM page WHERE vis = 1 ORDER BY psn';\n\t\t$qrh = mysqli_query($this->lnk, $sql);\n\t\t$i = 1;\n\t\t\n\t\t// iterate and extract data to be passed to view\n\t\twhile ( $res = mysqli_fetch_array($qrh)) {\n\t\t\t$results[] = array('id' => $res['id'],'name' => $res['nam']);\n\t\t\t$i++;\n\t\t}\n\t\t\n\t\treturn $results;\n\t\t\n\t}", "function pagenationv3($offset) {\r\n\r\n \r\n $this->offset = NULL;\r\n $this->offset = $offset;\r\n $allrecord = $this->offset + 1;\r\n $extra = $allrecord +$this->limit-1;\r\n if ($allrecord > $this->countRecord) {\r\n $string=\"No Record\";\r\n } else {\r\n $string=\"<li><a href=\\\"#\\\" >\" . $allrecord . \" to \".$extra.\" from \" . $this->countRecord . \"</a></li>\";\r\n }\r\n return $string;\r\n }", "public function getNewsForTop(int $page = 1): Collection\n {\n }", "public function getPreviousPageNumber(): int;", "function paginateWithExtra($size = 15);", "function showPages($Page,$VidNum,$query)\r\n{\r\n\t\t// wouldnt clik it again \r\n\t\t//first i want to show every video based on the page \r\n\t\t//if page was equal to 3 then i would show videos from 15 -22\r\n\t\t//if page was equal to 1 then i would show 0-6 \r\n\t\t//if page was equal to 2 then i would show 7-13\r\n\t\t//if page was equal to 3 then i would show 14-20\r\n\t\t// Query for the pages \r\n\t\t//Limit is Starting point and for how long to keep going \r\n\t\t$limit = (($Page* $VidNum)-1);\r\n\t\t$selectQuery =$query.\" LIMIT \".($limit - ($VidNum -1)) .\",\". ($VidNum -1) ;\r\n\t\t$result =ex_query($selectQuery);\r\n\t\t\r\n\t\tGenMultipleThumb($result);\r\n\t\t//\r\n\t\t//Now to show the number of pages again \r\n\t\t\r\n}", "function item_listing()\n {\n if ($this->isAdmin() == TRUE) {\n $this->loadThis();\n } else {\n // get top10 datas\n // id: 1-top1, 2-top2, 3-top3, 4-top4, 5-top5\n $ret = array(\n 'content' => '',\n 'status' => 'fail'\n );\n if (!empty($_POST)) {\n $id = $_POST['id'];\n // get top list data in homepage\n switch ($id) {\n case 1:\n $header = array(\"序号\", \"轮播图片\", \"类型\", \"单品活动/餐装活动/区域总代理\", \"排序\", \"新增日期\", \"操作\",);\n $cols = 7;\n $contentList = $this->carousel_model->getItems();\n $footer = (count($contentList) == 0||$contentList=='') ? $footer = \"没有轮播图项目.\" : '';\n break; // get top1\n }\n\n // end get\n $ret['header'] = $this->output_header($header);\n $ret['content'] = $this->output_content($contentList, $id);\n $ret['footer'] = $this->output_footer($footer, $cols);\n $ret['status'] = 'success';\n }\n echo json_encode($ret);\n }\n }", "function getPageNavigation($hits, $page, $max, $min=1) {\n $nav = \"<a href='\" . getQueryString(array('page' => $min)) . \"'>&lt;&lt;</a> \";\n $nav .= \"<a href='\" . getQueryString(array('page' => ($page > $min ? $page - 1 : $min) )) . \"'>&lt;</a> \";\n \n for($i=$min; $i<=$max; $i++) {\n $nav .= \"<a href='\" . getQueryString(array('page' => $i)) . \"'>$i</a> \";\n }\n \n $nav .= \"<a href='\" . getQueryString(array('page' => ($page < $max ? $page + 1 : $max) )) . \"'>&gt;</a> \";\n $nav .= \"<a href='\" . getQueryString(array('page' => $max)) . \"'>&gt;&gt;</a> \";\n return $nav;\n}", "public function paginate_numbers($count_of_entries, $items_per_page, $current_page, $pages_to_show){\n\t\t\t$this->pages_array = array();\n\t\t\t\n\t\t\t$this->pages_to_show = $pages_to_show;\n\t\t\t$this->current_page = $current_page;\n\t\t\t\n\t\t\t//ceiling to round fraction up to nearest whole number - total number of pages also = last page number\n\t\t\t$this->total_pages = ceil($count_of_entries / $items_per_page);\n\t\t\t\n\t\t\t//if the total number of pages is fewer than the limit, return only those pages\n\t\t\tif ($this->total_pages < $pages_to_show){\n\t\t\t\tfor ($i=0; $i < $this->total_pages;$i++){\n\t\t\t\t\tarray_push($this->pages_array, ($i + 1));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\t//if the current page is less than the number of pages to show, then only show the first amount of pages to show\n\t\t\t\tif ($this->current_page < $pages_to_show){\n\t\t\t\t\tfor ($i=0; $i < $pages_to_show;$i++){\n\t\t\t\t\t\tarray_push($this->pages_array, ($i + 1));\n\t\t\t\t\t}\t\t\t\n\t\t\t\t}\n\n\t\t\t\t//if the current page is not in the first batch of pages:\n\t\t\t\telse {\n\n\t\t\t\t\tif ($this->total_pages - $this->current_page < $pages_to_show){\n\n\t\t\t\t\t\t//with x pages of the last page\n\t\t\t\t\t\t$setpage = $this->total_pages - $pages_to_show+1;\n\t\t\t\t\t\t$counter = $pages_to_show;\n\n\t\t\t\t\t\tfor ($i=0; $i < $counter; $i++){\n\t\t\t\t\t\t\tarray_push($this->pages_array, $setpage);\n\t\t\t\t\t\t\t$setpage++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t//nowhere near the last page\n\t\t\t\t\t\n\t\t\t\t\telse{\n\t\t\t\t\t\t\n\t\t\t\t\t\t$setpage = $this->current_page - ($pages_to_show / 2);\n\t\t\t\t\t\tfor ($i=0; $i < $pages_to_show;$i++){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tarray_push($this->pages_array, $setpage);\n\t\t\t\t\t\t\t$setpage++;\n\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}\n\n\t\t\t\n\t\t\t\n\n\t\t}", "public function index()\n {\n if (null != $this->request->ifParameter(\"id\")) {\n $items_current_page = $this->request->getParameter(\"id\");\n } else {\n $items_current_page = 1;\n }\n $items = $this->item->getItemsFront($items_current_page);\n $previous_page = $items_current_page - 1;\n $next_page = $items_current_page + 1;\n $number_of_items_pages = $this->calculate->getNumberOfPagesOfExtHome();\n $number_of_items = $this->calculate->getTotalOfItemsHome();\n $number_of_cards = $this->calculate->getTotalOfCards();\n $number_of_links = $this->calculate->getTotalOfLinks();\n $this->generateView(array(\n 'items' => $items,\n 'number_of_items' => $number_of_items,\n 'number_of_cards' => $number_of_cards,\n 'number_of_links' => $number_of_links,\n 'items_current_page' => $items_current_page,\n 'previous_page' => $previous_page,\n 'next_page' => $next_page,\n 'number_of_items_pages' => $number_of_items_pages\n ));\n }", "function page_links($url, $nitems, $items_per_page, $start){\n // How many pages to potentially show before and after this one:\n $preshow = 3;\n $postshow = 3;\n\n $x = \"\";\n \n if ($nitems <= $items_per_page) return \"\";\n $npages = ceil($nitems / $items_per_page);\n $curpage = ceil($start / $items_per_page);\n\n // If this is not the first page, display \"previous\"\n //\n if ($curpage > 0){\n $x .= page_link(\n $url, $curpage-1, $items_per_page,\n tra(\"Previous\").\" &middot; \"\n );\n }\n\n if ($curpage - $preshow > 0) {\n $x .= page_link($url, 0, $items_per_page, \"1\");\n if ($curpage - $preshow > 1) {\n $x .= \" . . . \";\n } else {\n $x .= \" &middot; \";\n }\n }\n // Display a list of pages surrounding this one\n //\n for ($i=$curpage-$preshow; $i<=$curpage+$postshow; $i++){\n $page_str = (string)($i+1);\n if ($i < 0) continue;\n if ($i >= $npages) break;\n\n if ($i == $curpage) {\n $x .= \"<b>$page_str</b>\";\n } else {\n $x .= page_link($url, $i, $items_per_page, $page_str);\n }\n if ($i == $npages-1) break;\n if ($i == $curpage+$postshow) break;\n $x .= \" &middot; \";\n }\n\n if ($curpage + $postshow < $npages-1) {\n $x .= \" . . . \";\n $x .= page_link($url, $npages-1, $items_per_page, $npages);\n }\n // If there is a next page\n //\n if ($curpage < $npages-1){\n $x .= page_link(\n $url, $curpage+1, $items_per_page,\n \" &middot; \".tra(\"Next\")\n );\n }\n $x .= \"\\n\";\n return $x;\n}", "function bookcrossing_front_page() {\n $bids = db_select('bookcrossing_books', 'b')\n ->fields('b', array('bid'))\n ->condition('status', BOOKCROSSING_BOOK_STATUS_RESERVED, '<>')\n ->range(0, 3)\n ->orderRandom('bid')\n ->execute()\n ->fetchCol();\n $books = bookcrossing_load_multiple($bids);\n\n $output = '';\n foreach ($books as $book) {\n $view = node_view($book['node'], 'front_page');\n $build = bookcrossing_prepare_book_view($view, $book);\n $output .= render($build);\n }\n\n return $output . '<div style=\"clear: left\"></div>';\n}", "function getPaging($refUrl, $aryOpts, $pgCnt, $curPg) {\n $return = '';\n $return.='<div class=\"box-bottom\"><div class=\"paginate\">';\n if ($curPg > 1) {\n $aryOpts['pg'] = 1;\n $return.='<a href=\"' . $refUrl . getQueryString($aryOpts) . '\">First</a>';\n\n $aryOpts['pg'] = $curPg - 1;\n $return.='<a href=\"' . $refUrl . getQueryString($aryOpts) . '\">Prev</a>';\n }\n for ($i = 1; $i <= $pgCnt; $i++) {\n $aryOpts['pg'] = $i;\n $return.='<a href=\"' . $refUrl . getQueryString($aryOpts) . '\" class=\"';\n if ($curPg == $i)\n $return.='active';\n $return.='\" >' . $i . '</a>';\n }\n if ($curPg < $pgCnt) {\n $aryOpts['pg'] = $curPg + 1;\n $return.='<a href=\"' . $refUrl . getQueryString($aryOpts) . '\">Next</a>';\n $aryOpts['pg'] = $pgCnt;\n $return.='<a href=\"' . $refUrl . getQueryString($aryOpts) . '\">Last</a>';\n }\n $return.='<div class=\"clearfix\"></div></div></div>';\n return $return;\n}", "public function getItemsBeforePageBreak()\r\n {\r\n return $this->templateConfiguration['itemsBeforePageBreak'];\r\n }", "public function getNextPage();", "function index($page, $nombre_article) {\n $index = (($page - 1) * $nombre_article);\n return $index;\n}", "function on_page($num_items, $per_page, $start)\n{\n\tglobal $template, $user;\n\n\t// Make sure $per_page is a valid value\n\t$per_page = ($per_page <= 0) ? 1 : $per_page;\n\n\t$on_page = floor($start / $per_page) + 1;\n\n\t$template->assign_vars(array(\n\t\t'ON_PAGE'\t\t=> $on_page)\n\t);\n\n\treturn sprintf($user->lang['PAGE_OF'], $on_page, max(ceil($num_items / $per_page), 1));\n}", "function pagination(){}", "public function pageStart() {\r\n\t\treturn ($this->getCurrentPage() * $this->__pageItems) - ($this->__pageItems - 1);\r\n\t}", "public static function limitTopPages(\\Elgg\\Hook $hook) {\n\t\t$vars = $hook->getValue();\n\t\t$subtype = elgg_extract('subtype', $vars);\n\t\tif ($subtype !== \\StaticPage::SUBTYPE) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t$vars['entity_options'] = (array) elgg_extract('entity_options', $vars, []);\n\t\t\n\t\t$vars['entity_options']['metadata_name_value_pairs'] = [\n\t\t\t'parent_guid' => 0,\n\t\t];\n\t\n\t\treturn $vars;\n\t}", "public function list_pages() {\n\t\t$this->print_prev();\n\n\t\tif ($this->current_page+2 >= $this->total_pages-1) {\n\t\t\t$this->pages_right();\n\t\t} else {\n\t\t\t$this->pages_left();\n\t\t}\n\n\t\t$this->print_next();\n\t}", "function getNavs() {\n\t$pageData = getPageData();\n\t$li = '';\n\tforeach($pageData as $k => $v) {\n\t\t$li .= '<li><a href=\"' . COVER_PAGE . '?show=' . $k .'\">' . $k . '</a></li>' . \"\\n\";\n\t}\n\treturn $li;\n}", "function openskydora_get_most_viewed_items($count, $weeks_ago=7, $exclude=NULL) {\n\n $records = openskydora_get_most_viewed($count+20, $weeks_ago, $exclude);\n $item_records = array(); // No collections\n \n // filter out collection citation model\n foreach ($records as $pid=>$data) {\n $data->obj = islandora_object_load($pid);\n if (in_array('islandora:collectionCModel',$data->obj->models)) {\n // dsm ('collection! '. $pid);\n } else {\n $item_records[$pid] = $data;\n }\n }\n return array_slice($item_records, 0, $count, TRUE);\n}", "protected function _readPageBackwards($pageNumber) {}", "public function getStartIndex();", "public function getPage();", "function getTopLinks() {\n\t\t$link = getDbConnect();\n\t\t$preparedStatement = $link->prepare(\"SELECT * FROM urls ORDER BY visits DESC LIMIT 50;\");\n\t\t$preparedStatement->execute(array());\n\t\treturn parseFullResults($preparedStatement->fetchAll());\n\t}", "private function getItems()\n\t{\n\t\tglobal $objPage;\n\t\t$objDatabase = \\Database::getInstance();\n\t\t\n\t\t$time = time();\n\t\t$strBegin;\n\t\t$strEnd;\n\t\t$arrArticles = array();\n\t\t\n\t\t// Create a new data Object\n\t\t$objDate = new \\Date();\n\t\t\n\t\t// Set scope of pagination\n\t\tif($this->pagination_format == 'news_year')\n\t\t{\n\t\t\t// Display current year only\n\t\t\t$strBegin = $objDate->__get('yearBegin');\n\t\t\t$strEnd = $objDate->__get('yearEnd');\n\t\t}\n\t\telseif ($this->pagination_format == 'news_month')\t\n\t\t{\n\t\t\t// Display current month only\n\t\t\t$strBegin = $objDate->__get('monthBegin');\n\t\t\t$strEnd = $objDate->__get('monthEnd');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Display all\n\t\t}\n\t\t\n\t\t$strCustomWhere = '';\n\t\t// HOOK: allow other extensions to modify the sql WHERE clause\n\t\tif (isset($GLOBALS['TL_HOOKS']['readerpagination']['customsql_where']) && count($GLOBALS['TL_HOOKS']['readerpagination']['customsql_where']) > 0)\n\t\t{\n\t\t\tforeach($GLOBALS['TL_HOOKS']['readerpagination']['customsql_where'] as $callback)\n\t\t\t{\n\t\t\t\t$this->import($callback[0]);\n\t\t\t\t$strCustomWhere = $this->$callback[0]->$callback[1]('news',$this);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Fetch all news that fit in the scope\n\t\t$objArticlesStmt = $objDatabase->prepare(\"\n \tSELECT * FROM tl_news\n \tWHERE \n \t\tpid IN(\" . implode(',', $this->archives) . \") AND published=1 AND hide_in_pagination!=1\n \t\t\" . (!BE_USER_LOGGED_IN ? \" AND (start='' OR start<$time) AND (stop='' OR stop>$time)\" : \"\") . \"\n \t\t\" . ($strBegin ? \" AND (date>$strBegin) AND (date<$strEnd)\" : \"\" ) .\" \".$strCustomWhere. \"\n \tORDER BY date DESC\");\n\t \n\t\t$objArticles = $objArticlesStmt->execute();\n\t\t\n\t\tif ($objArticles->numRows < 1)\n\t\t{\n\t\t\treturn array();\n\t\t}\n\t\t\n\t\t// get all articles\n\t\t$arrArticles = $objArticles->fetchAllAssoc();\n\t\t\n\t\t// HOOK: allow other extensions to modify the items\n\t\tif (isset($GLOBALS['TL_HOOKS']['readerpagination']['getItems']) && count($GLOBALS['TL_HOOKS']['readerpagination']['getItems']) > 0)\n\t\t{\n\t\t\tforeach($GLOBALS['TL_HOOKS']['readerpagination']['getItems'] as $callback)\n\t\t\t{\n\t\t\t\t$this->import($callback[0]);\n\t\t\t\t$arrArticles = $this->$callback[0]->$callback[1]('news',$arrArticles,$this);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(count($arrArticles) < 1)\n\t\t{\n\t\t\treturn array();\n\t\t}\n\t\t\n\t\t// add keys for pagination (title, href)\n\t\tforeach($arrArticles as $i => $article)\n\t\t{\n\t\t\t// get alias\n \t\t$strAlias = (!$GLOBALS['TL_CONFIG']['disableAlias'] && $article['alias'] != '') ? $article['alias'] : $article['id'];\n \t\t\t\n \t\t\t$arrTmp = array\n \t\t\t(\n \t\t\t\t'href' => ampersand($this->generateFrontendUrl($objPage->row(), ((isset($GLOBALS['TL_CONFIG']['useAutoItem']) && $GLOBALS['TL_CONFIG']['useAutoItem']) ? '/' : '/items/') . $strAlias)),\n 'title' => specialchars($article['headline']),\n \t);\n \t\t\t\n \t\t\t$arrResult[] = array_merge($arrArticles[$i], $arrTmp);\n \t\t\tunset($arrTmp);\n\t\t}\n\t\t$arrArticles = $arrResult;\n\t\tunset($arrResult);\n\t\t\n\t\tif(count($arrArticles) < 1)\n\t\t{\n\t\t\treturn array();\n\t\t}\n\t\t\n\t\t// Higher the keys of the array by 1\n\t\t$arrTmp = array();\n\t\tforeach($arrArticles as $key => $value)\n\t\t{\n\t\t\t$arrTmp[$key+1] = $value;\n\t\t}\n\t\tksort($arrTmp);\n\t\t\n\t\t$arrArticles = $arrTmp;\n\t\tunset($arrTmp);\n\t\t\n\t\treturn $arrArticles;\n\t}", "abstract protected function createPages($count = 10): array;", "abstract public function get_url_list( $page_num, $object_subtype = '' );", "public function getPreviousItems($count = 3)\n {\n return array_reverse( array_slice($this->items, -($count+1), $count) );\n }", "public function toplist()\n {\n $listfac = Pago::join('factura_cab', 'factura_cab.numfac', '=', 'pagos.numfac')\n ->join('entidades','entidades.COD_ENT','=','factura_cab.cod_ent')\n ->select('factura_cab.numfac as numfac','fecfac', 'fecpago','NOM_ENT','valpago','estfac')\n ->orderBy('numfac', 'desc')\n ->take(5)\n ->get();\n\n return $listfac; \n }", "function page_func(){\n\t\t?>\n\t\t\t\t<div class=\"wrap\">\n\t\t\t\t\t<div class=\"tablenav\">\n\t\t\t\t\t\t<div class=\"tablenav-pages\">\n\t\t\t\t\t\t\t<span class=\"displaying-num\">\n\t\t\t\t\t\t\t\tDisplaying 1-20 of 69\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span class=\"page-number-current\">1</span>\n\t\t\t\t\t\t\t<a href=\"#\" class=\"page-numbers\">2</a>\n\t\t\t\t\t\t\t<a href=\"#\" class=\"page-numbers\">3</a>\n\t\t\t\t\t\t\t<a href=\"#\" class=\"page-numbers\">4</a>\n\t\t\t\t\t\t\t<a href=\"#\" class=\"page-numbers\">5</a>\n\t\t\t\t\t\t\t<a href=\"#\" class=\"page-numbers\">6</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t<?php \n\t\t\t}", "function get_previous_page(){\n\t\t$query = \"SELECT * FROM \" . Database::$table . \" ORDER BY timestamp DESC LIMIT 1\";\n\t\treturn Database::get_all_results($query);\n\t}", "static function page_list($startpage, $config, $first2last=true)\n {\n global $bodyreader;\n if ($first2last) $continue = \"next\"; \n else $continue = \"previous\";\n $items = $bodyreader->parse_advance($startpage, $config, array($continue));\n $pages[] = $startpage; \n while (!empty($items[0][$continue]))\n {\n $link = static::match_url($startpage, $items[0][$continue]);\n $pages[] = $link;\n $items = $bodyreader->parse_advance($link, $config, array($continue));\n }\n \n return $pages;\n }", "function mft_pager($variables) {\n $tags = $variables['tags'];\n $element = $variables['element'];\n $parameters = $variables['parameters'];\n $quantity = $variables['quantity'];\n global $pager_page_array, $pager_total;\n\n // Calculate various markers within this pager piece:\n // Middle is used to \"center\" pages around the current page.\n $pager_middle = ceil($quantity / 2);\n // current is the page we are currently paged to\n $pager_current = $pager_page_array[$element] + 1;\n // first is the first page listed by this pager piece (re quantity)\n $pager_first = $pager_current - $pager_middle + 1;\n // last is the last page listed by this pager piece (re quantity)\n $pager_last = $pager_current + $quantity - $pager_middle;\n // max is the maximum page number\n $pager_max = $pager_total[$element];\n // End of marker calculations.\n\n // Prepare for generation loop.\n $i = $pager_first;\n if ($pager_last > $pager_max) {\n // Adjust \"center\" if at end of query.\n $i = $i + ($pager_max - $pager_last);\n $pager_last = $pager_max;\n }\n if ($i <= 0) {\n // Adjust \"center\" if at start of query.\n $pager_last = $pager_last + (1 - $i);\n $i = 1;\n }\n // End of generation loop preparation.\n\n $li_first = theme('pager_first', array('text' => (isset($tags[0]) ? $tags[0] : t('« first')), 'element' => $element, 'parameters' => $parameters));\n $li_previous = theme('pager_previous', array('text' => (isset($tags[1]) ? $tags[1] : t('‹ previous')), 'element' => $element, 'interval' => 1, 'parameters' => $parameters));\n $li_next = theme('pager_next', array('text' => (isset($tags[3]) ? $tags[3] : t('next ›')), 'element' => $element, 'interval' => 1, 'parameters' => $parameters));\n $li_last = theme('pager_last', array('text' => (isset($tags[4]) ? $tags[4] : t('last »')), 'element' => $element, 'parameters' => $parameters));\n\n if ($pager_total[$element] > 1) {\n if ($li_first) {\n $items[] = array(\n 'class' => array('pager-first'),\n 'data' => $li_first,\n );\n }\n if ($li_previous) {\n $items[] = array(\n 'class' => array('pager-previous'),\n 'data' => $li_previous,\n );\n }\n\n // When there is more than one page, create the pager list.\n if ($i != $pager_max) {\n if ($i > 1) {\n $items[] = array(\n 'class' => array('pager-ellipsis'),\n 'data' => '…',\n );\n }\n // Now generate the actual pager piece.\n for (; $i <= $pager_last && $i <= $pager_max; $i++) {\n if ($i < $pager_current) {\n $items[] = array(\n 'class' => array('pager-item'),\n 'data' => theme('pager_previous', array('text' => $i, 'element' => $element, 'interval' => ($pager_current - $i), 'parameters' => $parameters)),\n );\n }\n if ($i == $pager_current) {\n $items[] = array(\n 'class' => array('pager-current'),\n 'data' => $i,\n );\n }\n if ($i > $pager_current) {\n $items[] = array(\n 'class' => array('pager-item'),\n 'data' => theme('pager_next', array('text' => $i, 'element' => $element, 'interval' => ($i - $pager_current), 'parameters' => $parameters)),\n );\n }\n }\n if ($i < $pager_max) {\n $items[] = array(\n 'class' => array('pager-ellipsis'),\n 'data' => '…',\n );\n }\n }\n // End generation.\n if ($li_next) {\n $items[] = array(\n 'class' => array('pager-next'),\n 'data' => $li_next,\n );\n }\n if ($li_last) {\n $items[] = array(\n 'class' => array('pager-last'),\n 'data' => $li_last,\n );\n }\n return theme('item_list', array(\n 'items' => $items,\n 'attributes' => array('class' => array('pager')),\n ));\n }\n}", "public function offset() {\n return ($this->current_page - 1) * $this->per_page;\n }", "public function page_list() {\n\n\t\t\t$output = \"\";\n\t\t\t$cur_page = $this->current_page;\n\t\t\t$tot_page = $this->total_pages();\n\n\t\t\tif( $cur_page <= $tot_page ) {\n\t\t\t\t$output .= \"<h3 class=\\\"pagelist\\\">Page {$cur_page} of \" ;\n\t\t\t\t$output .= \"{$tot_page}</h3>\";\t\n\t\t\t}\n\t\t\t\n\t\t\treturn $output;\n\n\t\t}", "protected function checkForMorePages()\n {\n $this->hasMore = $this->items->count() > $this->limit;\n\n $this->items = $this->items->slice(0, $this->limit);\n }", "function get_top_posts( $number = 10, $days = 2 ) {\n _deprecated_function( __FUNCTION__, '2.0.0', 'wpcom_vip_top_posts_array' );\n\n return array();\n}", "function _getAllPageNumbers($current_page, $last_page)\n{\n $page_ix = 1;\n $pages = array();\n while($page_ix <= $last_page){\n if($page_ix == $current_page){\n $pages[$page_ix] = 'current';\n } else {\n $pages[$page_ix] = $page_ix;\n } \n $page_ix++;\n }\n return $pages;\n}", "public abstract function get_url_list($page_num, $object_subtype = '');", "function getNumPages($num_pages, $category_id)\n{\n if (empty($category_id)) {\n for ($i = 1; $i <= $num_pages; $i++) {\n echo \"<a href ='index.php?page=\" . $i . \"'>\" . $i . \" </a> \";\n }\n }\n}", "public function getItemsByPage($page_num, $count) {\n\t\treturn $this->getItems(($page_num-1)*$count, $count);\n\t }", "function findStartGet($limit) { // limit diisi 10\n\t\tif ((!isset($_GET['page'])) || ($_GET['page'] == \"1\")) \n\t\t { \n\t\t $start = 0; \n\t\t $_GET['page'] = 1; \n\t\t } \n\t\t else \n\t\t { // jika $page= 3 \n\t\t $start = ($_GET['page']-1) * $limit; // maka $start= 20\n\t\t }\n\t\t\t\n\t\t return $start; \n }", "public function genPageNums()\n\t{\n\t\t$pageLinks = array();\t\n\t\n\t\tfor($i=1; $i<=$this->numofpages; $i++)\n\t\t{\n\t\t\t$page = $i;\n\t\t\t$item = $this->itemTpl;\t\t\t\n\t\t\tif($this->page == $i)\n\t\t\t{\n\t\t\t\t$styleclass = 'page_current';\n\t\t\t} else\n\t\t\t{\n\t\t\t\t$styleclass = 'page';\n\t\t\t}\n\t\t\t$item = str_replace(array('{pageclass}','{pagelink}', '{pagetext}'),\n\t\t\t\t\t\t\t\tarray($styleclass, $this->prepend.$page.$this->append, $i),\n\t\t\t\t\t\t\t\t$item);\t\n\t\t\t$pageLinks[$i] = $item;\n\t\t}\t\n\t\n\t\tif(($this->totalrows % $this->limit) != 0)\n\t\t{\n\t\t\t$this->numofpages++;\n\t\t\t$page = $i;\n\t\t\t$item = $this->itemTpl;\t\t\t\n\t\t\tif($this->page == $i)\n\t\t\t{\n\t\t\t\t$styleclass = 'page_current';\n\t\t\t} else\n\t\t\t{\n\t\t\t\t$styleclass = 'page';\n\t\t\t}\n\t\t\t$item = str_replace(array('{pageclass}','{pagelink}', '{pagetext}'),\n\t\t\t\t\t\t\t\tarray($styleclass, $this->prepend.$page.$this->append, $i),\n\t\t\t\t\t\t\t\t$item);\t\t\t\t\t\n\t\t\t$pageLinks[$i] = $item;\n\t\t}\n\t\tksort($pageLinks);\n\t\t$this->pagination['nums'] = $pageLinks;\n\t}" ]
[ "0.64494616", "0.64218956", "0.60716707", "0.59012496", "0.5877985", "0.58541745", "0.5773441", "0.5773441", "0.57074344", "0.57061714", "0.57061714", "0.5687755", "0.56631523", "0.5654094", "0.5630804", "0.56141955", "0.5609396", "0.5609094", "0.5608395", "0.5574949", "0.5574411", "0.55701095", "0.5566927", "0.5559143", "0.5527506", "0.55212575", "0.5506416", "0.5488965", "0.5473501", "0.54686725", "0.5457185", "0.5446117", "0.54312146", "0.54160863", "0.5403532", "0.5399881", "0.5395826", "0.5392967", "0.5379555", "0.53767335", "0.53663003", "0.5360686", "0.53595203", "0.5358261", "0.5355891", "0.53530246", "0.53530246", "0.5340727", "0.53389627", "0.5333102", "0.5332618", "0.53224385", "0.5317543", "0.5312824", "0.5306885", "0.5303608", "0.5300486", "0.5297518", "0.5297392", "0.5284089", "0.5281806", "0.52810395", "0.52789843", "0.5275957", "0.52756715", "0.5271593", "0.52634794", "0.525794", "0.52535003", "0.5249227", "0.5243774", "0.52427715", "0.5237941", "0.5232423", "0.5224922", "0.5222107", "0.522173", "0.52151674", "0.5212889", "0.520414", "0.5202823", "0.5191716", "0.51893497", "0.51879644", "0.51869994", "0.51786566", "0.51697546", "0.5163199", "0.51530194", "0.5142936", "0.51400876", "0.51396495", "0.51350677", "0.5134851", "0.5133797", "0.513171", "0.5123236", "0.51231486", "0.512243", "0.51167166" ]
0.5747513
8
Returns Singl News Item with $id
public static function getProgramsList() { $db = Db::getConnection(); $result = $db->query('SELECT * FROM `programs` ORDER BY `id` DESC'); $programs = $result->fetchAll(); return $programs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getNewsItemByID($id)\r\n\t{\r\n\t\t$id = intval($id);\r\n\r\n\t\tif ($id) {\r\n/*\t\t\t$host = 'localhost';\r\n\t\t\t$dbname = 'php_base';\r\n\t\t\t$user = 'root';\r\n\t\t\t$password = '';\r\n\t\t\t$db = new PDO(\"mysql:host=$host;dbname=$dbname\", $user, $password);*/\r\n\t\t\t$db = Db::getConnection();\r\n\t\t\t$result = $db->query('SELECT * FROM films WHERE id=' . $id);\r\n\r\n\t\t\t/*$result->setFetchMode(PDO::FETCH_NUM);*/\r\n\t\t\t$result->setFetchMode(PDO::FETCH_ASSOC);\r\n\r\n\t\t\t$newsItem = $result->fetch();\r\n\r\n\t\t\treturn $newsItem;\r\n\t\t}\r\n\r\n\t}", "protected function actionGetItem($id) {\n $model= new News();\n \n return $model->getById($id);\n }", "public static function getArticlesItemByID($id)\n {\n $id = intval($id);\n\n if ($id) {\n\n $db = Db::getConnection();\n $result = $db->query('SELECT * FROM articles WHERE id=' . $id);\n\n /*$result->setFetchMode(PDO::FETCH_NUM);*/\n $result->setFetchMode(PDO::FETCH_ASSOC);\n\n $newsItem = $result->fetch();\n\n return $newsItem;\n }\n\n }", "public function getRecord($id){\n return News::find($id);\n\n }", "function Select_Detail_Item_news($tbl_news, $id){\n\t\t$sql = mysql_query(\"SELECT * FROM $tbl_news WHERE id = '$id'\");\n\t\treturn mysql_fetch_object($sql);\n\t}", "function ViewDetail_Item_news( $tbl_news, $id ){\n\t\t$sql = mysql_query(\"SELECT * FROM $tbl_news WHERE id = '$id'\");\n\t\t$result = mysql_fetch_object($sql);\n\t\treturn $result;\n\t}", "public function getItem ($id);", "public function getItem( $id );", "public function getNewsById($id)\r\n {\r\n\r\n $collection = $this->newsFactory->create();\r\n $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance();\r\n $medialurl= $objectManager->get('Magento\\Store\\Model\\StoreManagerInterface')->getStore()->getBaseUrl(\\Magento\\Framework\\UrlInterface::URL_TYPE_MEDIA);\r\n foreach($collection as $news){\r\n if($news['entity_id'] == $id){\r\n $array_get['id'] = $news['entity_id'];\r\n $array_get['name'] =$news['title'];\r\n $array_get['description'] =$news['content'];\r\n $array_get['image'] = $medialurl.$news['image'];\r\n $array_get['status'] = $news['is_active'];\r\n\r\n }\r\n else{\r\n $array_get['message'] = 'No news found with this id';\r\n }\r\n\r\n $array_tmp=$array_get;\r\n\r\n }\r\n \r\n return [$array_tmp];\r\n\r\n\r\n \r\n }", "function get($id)\n {\n $query = \"SELECT * FROM `news` WHERE `id` = :id\";\n $sth = $this->db->prepare($query);\n $sth->bindValue(':id', $id);\n $sth->execute();\n\n return $sth->fetch();\n }", "public static function getBlogItemById($id) {\n $id = intval($id);\n\n if ($id) {\n\n $db = Db::getConnection();\n\n $result = $db->query('SELECT * FROM news WHERE id=' . $id);\n $result->setFetchMode(PDO::FETCH_ASSOC);\n\n $blogItem = $result->fetch();\n\n return $blogItem;\n }\n }", "public function getItem($id)\n {\n return $this->where('id', $id)->first();\n }", "public function show($id)\n {\n return News::findOrFail($id);\n }", "function getByStacklaFeedId($id);", "public function fetchSingle($id) {\n $comments=CommentModel::where('news_id','=',$id)\n ->where('comment_status','=',1)\n ->get();\n\n // fetch from the DB based on id\n $item = NewsModel::where('id', '=', $id)->first();\n dd($item);\n // return the view and pass in the post object\n return view('news-portal.users.single')\n ->withItem($item)\n ->withComments($comments);\n }", "public function get($id)\n {\n $item = Item::findOrFail($id);\n\n\n return $item;\n }", "public function get_news_by_id($id)\n {\n $query = $this->db->get_where('news', array('id' => $id));\n return $query->row_array();\n }", "public function show($id) {\n $find = News::find($id);\n\n if ($find) {\n return _json('success', $find);\n } else {\n return _json('error', _lang('app.error_is_occured'), 404);\n }\n }", "public function getItem($id) {\n foreach($this->all as $item) {\n if ($id == $item->getId()) {\n return $item;\n }\n }\n }", "public static function getRecordInDB($id_news){\r\n include_once './db_functions.php';\r\n $db = new DB_Functions();\r\n //Escaping\r\n $id_news = DB_Functions::esc($id_news);\r\n $query = \"SELECT *\r\n FROM \t NEWS\r\n\t WHERE\t ID_NEWS = $id_news;\";\r\n $resQuery = $db->executeQuery($query);\r\n //Se ho un recordset\r\n if (count($resQuery[\"response\"][]) == 1) {\r\n $news = new News($resQuery[\"response\"][0][0],$resQuery[\"response\"][0][1],$resQuery[\"response\"][0][2],$resQuery[\"response\"][0][3],$resQuery[\"response\"][0][4]);\r\n return $news;\r\n }\r\n else\r\n return null;\r\n }", "public function read($id)\n {\n $id = preg_replace(\"/[^0-9]/\", '', $id);\n $item = App\\News::where('id','=', $id)->get();\n return view('showarticle',['item' => $item]);\n }", "public function get( $id ){}", "public function getOneItem($id)\n {\n $item = Item::find($id);\n // dd($item);\n return $item;\n }", "public static function getNewsById(int $id)\n {\n return self::find($id);\n }", "public static function getPostItemById($id)\n {\n $id = intval($id);\n\n if ($id) {\n $db = Db::getConnection();\n $result = $db->query('SELECT * FROM publication WHERE id_publ =' . $id);\n $result->setFetchMode(\\PDO::FETCH_ASSOC);\n $postItem = $result->fetch();\n\n return $postItem;\n }\n }", "public function get_news_event_by_id($id=null)\n\t {\n\t \t$result = $this->db->where('id', $id)->get('news_events')->row();\n\n\t \tif($result): return $result; else: return FALSE; endif;\n\t }", "public function show($id)\n {\n return Item::find($id);\n }", "public function get( $id );", "public function getMediaItem($id);", "function get_item_by_id($id) {\n\tglobal $wpdb;\n\tglobal $webgrain2;\n\t$sql = \"SELECT * FROM \" . $webgrain2->second_menu_table . \" WHERE id = $id\";\n\t$result = $wpdb->get_results($wpdb->prepare($sql, 0));\n\tif(!empty($result)) { foreach($result as $r) { return $r; } }\n}", "public function getDataId($id)\n {\n $galeri = ModelGaleriNews::find($id);\n return $galeri;\n }", "public function getItemByID($id){\r\n $this->db->query('SELECT *,\r\n items.id as itemID,\r\n categories.id as categoryID,\r\n items.name as itemName,\r\n categories.name as categoryName,\r\n items.user_id as itemUserID,\r\n categories.user_id as categoryUserID,\r\n items.created_at as itemCreated,\r\n categories.created_at as categoryCreated\r\n FROM items\r\n INNER JOIN categories\r\n WHERE items.id = :id');\r\n $this->db->bind(':id', $id);\r\n\r\n $row = $this->db->single();\r\n\r\n return $row;\r\n }", "private function getOneNews() {\n $this->news->findOne();\n }", "public static function getNewsDetailsById($id)\n {\n $newsDetail = DB::table('news')\n ->select('*')\n ->where('id', '=', $id)\n ->first();\n\n return $newsDetail;\n }", "public function retrieveItem($id) {\n return $this->itemsDB->retrieve($id);\n }", "public function getId() {\n return $this->get('id', 'news');\n }", "public function show($id)\n {\n return $this->commandBus->execute(new \\Sailr\\Item\\GetSingleItemCommand($id));\n }", "public abstract function get($id);", "public function getLatestNews($id) {\n return $this->_latestNews->find ( $id );\n }", "public function getById( $id );", "function getNewsById($id) {\r\n global $db;\r\n\r\n $stmt = $db->prepare('SELECT * FROM news JOIN users USING (username) WHERE id = ?');\r\n $stmt->execute(array($id));\r\n return $stmt->fetch();\r\n }", "public function show($id)\n {\n $item = Item::findOrFail($id);\n\n\n return $item;\n }", "public function byId($id)\n\t{\n\t\treturn $this->find('id', $id)->first();\n\t}", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "static public function getItemById($id) {\n $rq = \"SELECT * FROM \" . PREFIX . \"shop.`item` \n WHERE `id` =\" . $id . \" LIMIT 1;\";\n\n $aItem = Sql::Get($rq, 1);\n // MemCacheManager::Set($sKey, $aItems, 900); //900s = 15 min\n\n return $aItem[0];\n }", "abstract public function get($id);", "abstract public function get($id);", "abstract public function get($id);", "public function get_one($id)\n {\n }", "public function weigerItemByID($id)\n {\n return $this->model->weigerItemByID($id);\n }", "public function show1($id)\n {\n // https://laravel.com/docs/5.5/eloquent\n //dump ($id);\n //dump($item = Item::find($id));\n //if ($item == null) abort(404);\n //try{\n //$item = Item::findOrFail($id);\n //}catch(\\Exception $e){\n //abort(404);\n //}\n //$item = Item::findOrFail($id);\n //dump($item->name);\n //return $item;\n }", "public function view_by_id($id){\n $this->db->where('id', $id);\n return $this->db->get('articles')->row();\n }", "public abstract function getById($id);", "public static function fetch_by_id($id){\n\t\t$mysql = mysql_connection::get_instance();\n\t\t\n\t\t$sql = 'SELECT\n\t\t\t\t\t`items`.`item_id`,\n\t\t\t\t\t`items`.`item_title`,\n\t\t\t\t\t`items`.`item_description`,\n\t\t\t\t\t`items`.`item_price`,\n\t\t\t\t\t`items`.`item_weight`,\n\t\t\t\t\t`items`.`item_quantity`,\n\t\t\t\t\t`items`.`item_time_created`,\n\t\t\t\t\t`categories`.`category_id`,\n\t\t\t\t\t`categories`.`category_name`,\n\t\t\t\t\t`categories`.`category_removed`\n\t\t\t\tFROM `items`\n\t\t\t\tINNER JOIN `categories` ON `items`.`category_id` = `categories`.`category_id`\n\t\t\t\tWHERE `item_id` = ?';\n\t\t\n\t\t$stmt = $mysql->prepare($sql);\n\t\t$stmt->bind_param('i', $id);\n\t\t$stmt->execute();\n\t\t$result = $stmt->get_result();\n\t\t$stmt->close();\n\t\t\n\t\tif ($result->num_rows != 1){\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$row = $result->fetch_assoc();\n\t\t\n\t\t$category = new category(intval($row['category_id']), $row['category_name'], (bool) $row['category_removed']);\n\t\t\n\t\treturn new self(intval($row['item_id']), $category, $row['item_title'], $row['item_description'], floatval($row['item_price']), intval($row['item_weight']), intval($row['item_quantity']), intval($row['item_time_created']));\n\t}", "public function getById($id) {\n foreach ($this->items as $item) {\n if ($item->id() == $id) {\n return $item;\n }\n }\n \n return null;\n }", "abstract public function getById($id);", "abstract public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "function get_news($news_id)\n {\n return $this->db->get_where('news',array('news_id'=>$news_id))->row_array();\n }", "abstract protected function get_item_from_db($item_id);", "public function retrieveNewsItem($newsId)\n {\n try{\n\n $response = [\n 'news' => []\n ];\n $statusCode = 200;\n\n $news = News::findOrFail($newsId);\n\n $response = [\n 'newsTitle' => $news->newsTitle,\n 'newsDesc' => $news->newsDescription,\n 'creatorId' => $news->creatorId,\n 'newsImageUrl' => url('uploads/newsimages/'.$news->newsImageUrl),\n 'createdDate'=>$news->created_at,\n 'modifiedDate'=>$news->updated_at\n ];\n\n return response()->json($response, $statusCode);\n\n }catch (Exception $e){\n return $this->responseConstructor\n ->setResultCode(404)\n ->setResultTitle($e->getMessage())\n ->respondWithError($e->getMessage()); }\n }", "public function item($id)\n {\n if (isset($this->stories[$id])) {\n return $this->stories[$id];\n }\n\n return false;\n }", "function newsItem_BacaDataDetil( $tbl_news, $id ){\n\t$sql = mysql_query(\"SELECT * FROM $tbl_news WHERE id = '$id'\");\n\t$result = mysql_fetch_object($sql);\n\treturn $result;\n}", "public function obtenerItem($id) {\n return $this\n ->reiniciar()\n ->donde([\n 'id'=>$id\n ])\n ->obtenerUno();\n }", "public function newsone($id = 0) {\n\t$this->load->library(array('rb'));\n\t$this->output->set_content_type('application/json', 'utf-8')\n\t ->set_header('Access-Control-Allow-Origin: *');\n\ttry {\n\t $new = R::findOne('news', 'id=?', [$id]);\n\t if(count($new) > 0) {\n\t $data_new = array(\n\t 'title'=>$new->title,\n\t\t'text'=>$new->text,\n\t\t'create_at'=>$new->created_at,\n );\n\t $this->output->set_status_header(200)\n\t\t->set_output(json_encode(array(\n\t\t 'status'=>'success',\n\t\t 'data'=>$data_new\n\t )));\n\t } else {\n\t $this->output->set_status_header(404)\n\t\t->set_output(json_encode(array(\n\t\t 'status'=>'error',\n\t\t 'message'=>'Notícia não encontrada'\n\t )));\n\t }\n\t} catch(Exception $e) {\n\t $this->output->set_status_header(500)\n\t\t->set_output(json_encode(array(\n\t\t 'status'=>'error',\n\t\t 'message'=>'Ocorreu um erro de conexão ao banco de dados',\n\t )));\n\t}\n }", "function news_get_row( $p_news_id ) {\r\n\t\t$c_news_id = db_prepare_int( $p_news_id );\r\n\r\n\t\t$t_news_table = config_get( 'mantis_news_table' );\r\n\r\n\t\t$query = \"SELECT *\r\n\t\t\t\t FROM $t_news_table\r\n\t\t\t\t WHERE id='$c_news_id'\";\r\n\t\t$result = db_query( $query );\r\n\r\n\t\tif ( 0 == db_num_rows( $result ) ) {\r\n\t\t\ttrigger_error( ERROR_NEWS_NOT_FOUND, ERROR );\r\n\t\t} else {\r\n\t\t\t$row = db_fetch_array( $result );\r\n\t\t\t$row['date_posted'] = db_unixtimestamp ( $row['date_posted'] );\r\n\t\t\treturn $row;\r\n\t\t}\r\n\t}", "function get_by_id($id)\n {\n $this->db->where($this->id, $id);\n $this->db->or_where('judul_seo', $id);\n return $this->db->get($this->table)->row(); \n }", "public function get( $iId );" ]
[ "0.83137465", "0.7868074", "0.7861217", "0.7516281", "0.75045323", "0.7484838", "0.7278758", "0.7250294", "0.7199441", "0.7167824", "0.71005446", "0.70543206", "0.70092785", "0.6972041", "0.69547355", "0.6913196", "0.6866611", "0.6862965", "0.68626535", "0.6849191", "0.68319416", "0.6829893", "0.68022096", "0.67829424", "0.6779503", "0.67753255", "0.6753881", "0.6749618", "0.6745049", "0.67404723", "0.672426", "0.6722846", "0.671556", "0.67135763", "0.67001617", "0.6699915", "0.6699774", "0.6682142", "0.6667327", "0.66555643", "0.6655037", "0.6646022", "0.66331804", "0.6620847", "0.6620847", "0.6620847", "0.6620847", "0.6620847", "0.6620847", "0.6620847", "0.6620847", "0.6620847", "0.6620847", "0.6620847", "0.6620847", "0.6620847", "0.6620847", "0.6620847", "0.6620847", "0.6620847", "0.6620847", "0.6620847", "0.6620847", "0.66174054", "0.660972", "0.660972", "0.660972", "0.6600312", "0.6586067", "0.65760946", "0.6571408", "0.656641", "0.6549313", "0.6533512", "0.6523731", "0.6523731", "0.6522056", "0.6522056", "0.6522056", "0.6522056", "0.6522056", "0.6522056", "0.6522056", "0.6522056", "0.6522056", "0.6522056", "0.6522056", "0.6522056", "0.6522056", "0.6522056", "0.6522056", "0.6514691", "0.64931077", "0.6492328", "0.64914113", "0.64903206", "0.6479175", "0.64782983", "0.64724135", "0.6469362", "0.6459577" ]
0.0
-1