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
Gets the specified meta structure
function getModel($name);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMeta();", "public function getMeta();", "public function getMeta(){\n // $this->meta();\n }", "private function getMetaData ()\n\t\t{\n\t\t\t$data = file_get_contents (\"META.inf\");\n\t\t\t$o = json_decode ($data,true);\n\t\t\treturn $o;\t\n\t\t}", "public function get_meta() {\n\t\treturn $this->meta;\n\t}", "public function get_meta() {\n\t\treturn $this->meta;\n\t}", "function getMeta(){\n\t\t$AccessToken = Auth::token();\n\t\t$baseUrl = url . '/api/v1/' . customerAlias . '/' . databaseAlias;\n\t\t$endpoint = '/meta';\n\t\t$request = $baseUrl . $endpoint;\n\t\t$ch = curl_init();\n\t\tcurl_setopt_array($ch, array(\n\t\t CURLOPT_HTTPGET => true,\n\t\t CURLOPT_HTTPHEADER => array(\n\t\t\t\t'Authorization: Bearer ' . $AccessToken),\n\t\t CURLOPT_URL => $request,\n\t\t\tCURLOPT_RETURNTRANSFER => 1\n\t\t ));\n\t\t$response = curl_exec($ch);\n\t\tcurl_close($ch);\n\t\treturn $response;\n\t}", "public function getMeta() {\n return $this->meta;\n }", "public function getMeta()\n {\n return $this->getValue('meta');\n }", "public function getMeta()\n {\n return $this->getValue('meta');\n }", "public function meta()\n {\n return $this->meta;\n }", "public function read_meta( &$object );", "public function getMeta()\n {\n return $this->meta;\n }", "public function getMeta()\n {\n return $this->meta;\n }", "public function getMeta()\n {\n return $this->meta;\n }", "public function getMeta()\n {\n return $this->meta;\n }", "public function getMeta()\n {\n return $this->meta;\n }", "public function getMeta(): array;", "function get_metadata($meta_type, $object_id, $meta_key = '', $single = \\false)\n {\n }", "public function getMeta() {\n return $this->meta;\n }", "public function getMeta($meta)\n {\n if (!isset($this->metas[$meta])) {\n return;\n }\n\n return $this->metas[$meta];\n }", "public function getAllMeta()\n {\n return $this->meta;\n }", "public function getMeta()\n {\n return $this->Meta;\n }", "public static function meta();", "public function getAllMeta()\n {\n return $this->meta;\n }", "function getmeta($params) {\n\t\trequire_once('deriveMetaData.class.php');\n\t\t$dbh = getConnection('ID');\n\t\t$getMeta = new DeriveMetaData();\n\t\t$getMeta->setdbh($dbh);\n\t\t$getMeta->setSQL($params->query);\n\t\t$retval = new \\stdClass();\n\t\t$retval->metaData = $getMeta->getPHPObject();\n\t\treturn $retval;\n}", "abstract public function getCorrespondingMetaData();", "function list_meta($meta)\n {\n }", "private function readMetaConfig(){\r\n\t\tif($this->CI->config->item('zt_head_meta')){\r\n\t\t\t$metaTags = $this->CI->config->item('zt_head_meta');\r\n\t\t\t$meta = null;\r\r\n\t\t\tforeach($metaTags as $metaTag){\r\n\t\t\t\tif(isset($metaTag[\"type\"])){\r\t\t\t\t\tif(isset($metaTag[\"lang\"]) && $metaTag[\"lang\"] && !empty($this->langService)){\r\t\t\t\t\t\t$meta = new Meta($metaTag[\"type\"], $metaTag[\"name\"], $this->langService->GetPrimaryWithSubLangCode());\t\r\t\t\t\t\t} else {\r\t\t\t\t\t\t$meta = new Meta($metaTag[\"type\"], $metaTag[\"name\"], $metaTag[\"content\"]);\t\r\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$meta = new Meta(Meta::TYPE_NAME, $metaTag[\"name\"], $metaTag[\"content\"]);\r\n\t\t\t\t}\r\r\n\t\t\t\t$this->head->AddMetaTag($meta);\r\n\t\t\t}\r\n\t\t}\r\r\n\t}", "private function getMeta() {\n $metadata = array(\n 'title' => 'User', \n 'desc' => 'Request URL: ' . Config::get('app.api_url'), \n 'meta' => array( \n 'title' => 'User | Seeties', \n 'description' => 'Sample meta description' \n ),\n 'sidebar' => View::make('user.sidebar')\n );\n\n return $metadata;\n }", "public function getAllMeta() {\n return $this->meta;\n }", "public function getMetaData();", "public function getMetas(): object\n {\n return (object) $this->metas->pluck('value', 'key')->toArray();\n }", "public function get_meta() : array\n {\n return $this->additional['meta'] ?? [];\n }", "public function getMeta(): ?array\n {\n return $this->meta;\n }", "public function get_meta( $key = '', $single = false );", "public function getMetas()\n {\n return $this->metas;\n }", "public function read_meta( &$object ) {\n\t\t}", "function get_metadata_raw($meta_type, $object_id, $meta_key = '', $single = \\false)\n {\n }", "public function getMetaData(): object\n\t{\n\t\treturn $this->metaData;\n\t}", "function getCmsMetaData ()\n {\n try\n {\n $result = $this->apiCall('get',\"{$this->api['cms_manager_url']}/resources/cms/{$this->api['cms_manager_id']}\",array(),'json');\n return $this->createResponse($result,'get My CMS Information');\n } catch ( Exception $e ) {\n return $this->createResponse($e,'API Call');\n }\n }", "public function getMeta() {\n return $this->hasMany(Meta::class,\n ['owner_id' => static::meta_id_field()])->andWhere([Meta::tableName() . '.owner' => static::tableName()]);\n }", "private function readMeta()\n {\n $xr = $this->xmlReader;\n \n $insideFieldOrder = FALSE;\n $fieldsNames = NULL;\n \n while ($xr->read())\n {\n // Begin: /meta/fieldOrder\n if ($xr->nodeType == XMLReader::ELEMENT &&\n $xr->name === 'fieldOrder')\n {\n $insideFieldOrder = TRUE;\n $fieldsNames = array();\n }\n \n // Read: /meta/fieldOrder/field/[TEXT]\n if ($insideFieldOrder &&\n $xr->nodeType == XMLReader::TEXT)\n {\n $fieldsNames[] = $xr->value;\n }\n \n // End: /meta/fieldOrder\n if ($xr->nodeType == XMLReader::END_ELEMENT &&\n $xr->name === 'fieldOrder')\n {\n return new Splunk_ResultsFieldOrder($fieldsNames);\n }\n }\n \n throw new Exception('Syntax error in <meta> element.');\n }", "public function getMetaAttribute(): object\n {\n return $this->getMetas();\n }", "public function getDataMetas()\n\t {\n\t \treturn get_option('metas-custom');\n\t }", "function get_meta( $key = '' ) {\n\t\tif ( $key ) {\n\t\t\tif ( empty( $this->meta[ $key ] ) )\n\t\t\t\treturn;\n\n\t\t\t$meta = $this->meta[ $key ];\n\t\t} else {\n\t\t\t$meta = $this->meta;\n\t\t}\n\t\treturn $meta;\n\t}", "public function getMetadata();", "public function getMetadata();", "public function getMetadata();", "public function getMeta($name)\n {\n $meta = $this->meta;\n\n return array_get($meta, $name);\n }", "public function getMetaInfo() {\n return $this->meta;\n }", "function getMetaData($dataType){\n\t\t$AccessToken = Auth::token();\n\t\t$baseUrl = url . '/api/v1/' . customerAlias . '/' . databaseAlias;\n\t\t$endpoint = '/meta/';\n\t\t$request = $baseUrl . $endpoint . $dataType;\n\t\t$ch = curl_init();\n\t\tcurl_setopt_array($ch, array(\n\t\t CURLOPT_HTTPGET => true,\n\t\t CURLOPT_HTTPHEADER => array(\n\t\t\t\t'Authorization: Bearer ' . $AccessToken),\n\t\t CURLOPT_URL => $request,\n\t\t\tCURLOPT_RETURNTRANSFER => 1\n\t\t ));\n\t\t$response = curl_exec($ch);\n\t\tcurl_close($ch);\n\t\treturn $response;\n\t}", "function getInfo ()\n\t{\n\t\t$node = $this->getElementsByTagname(\"MetaData\");\n\n\t\tif($node !== false)\n\t\t{\n\t\t\t$childs = $node[0]->child_nodes();\n\n\t\t\tforeach ($childs as $child)\n\t\t\t{\n\t\t\t\t\tif (($child->node_type() == XML_ELEMENT_NODE) && ($child->tagname == \"General\"))\n\t\t\t\t\t{\n\t\t\t\t\t\t$childs2 = $child->child_nodes();\n\n\t\t\t\t\t\tforeach ($childs2 as $child2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (($child2->node_type() == XML_ELEMENT_NODE) && ($child2->tagname == \"Title\" || $child2->tagname == \"Description\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$arr[$child2->tagname] = $child2->get_content();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// General-tag was found. Stop foreach-loop\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// for compatibility reasons:\n\t\t$arr[\"title\"] = $arr[\"Title\"];\n\t\t$arr[\"desc\"] = $arr[\"Description\"];\n\n\t\treturn $arr;\n\t}", "public function getMeta($model)\n {\n }", "public function metas();", "public function metaTag()\n {\n return $this->meta()->where('id', $this->meta_id)->first();\n }", "public function meta($name = null) {\n if ( $name === null ) {\n return $this->metaCache;\n }\n else {\n return @$this->metaCache[$name];\n }\n }", "public function getMeta($key) {\n\t\t$meta = $this->getMetaData();\n\t\treturn isset($meta[$key]) ? $meta[$key] : null;\n\t}", "public static function get($meta, $user);", "public function getMetadata() {}", "public function getMetadata() {}", "public function readMeta(array $parameters)\n {\n return call_user_func_array(\"get_{$this->getContext()}_meta\", $parameters);\n }", "public function getMeta($key)\n {\n return array_key_exists($key, $this->properties) ? $this->properties[$key] : null;\n }", "public function metaProvider()\n {\n return [[new \\Urbania\\AppleNews\\Api\\Objects\\Meta()]];\n }", "public function meta(){\n $table_meta = new \\stdClass();\n\n // get fields in the database table\n if(count($this->_model_meta)==0){\n $this->_meta();\n }\n\n\n foreach ($this->_model_meta as $meta) {\n $table_meta->{$meta->name} = $meta;\n }\n\n return $table_meta;\n }", "public function read_meta( &$object ) {\n\t\tglobal $wpdb;\n\n\t\t$object_id = is_object( $object ) ? $object->get_id() : $object;\n\n\t\t/*** TEST CACHE */\n\t\treturn false;\n\t\tif ( false === ( $meta_data = LP_Object_Cache::get( $object_id, 'learn-press/object-meta' ) ) ) {\n\t\t\t$id_column = ( 'user' == $this->_meta_type ) ? 'umeta_id' : 'meta_id';\n\t\t\t$object_id_column = $this->_meta_type . '_id';\n\t\t\t$table = _get_meta_table( $this->_meta_type );\n\n\t\t\t$query = $wpdb->prepare(\n\t\t\t\t\"\n\t\t\t\tSELECT {$id_column} as meta_id, meta_key, meta_value\n\t\t\t\tFROM {$table}\n\t\t\t\tWHERE {$object_id_column} = %d\n\t\t\t\tORDER BY {$id_column}\n\t\t\t\",\n\t\t\t\t$object_id\n\t\t\t);\n\t\t\t$meta_data = $wpdb->get_results( $query );\n\n\t\t\tLP_Object_Cache::set( $object_id, $meta_data, 'learn-press/object-meta' );\n\t\t}\n\n\t\treturn $meta_data;\n\t}", "public static function get_meta_type();", "protected function getMetas(): array\n {\n return $this->metas;\n }", "public function meta (\\stdClass $param);", "function sc_get_post_meta( $id, $key ){\n\treturn (object)get_post_meta( $id, $key, true );\n}", "function the_meta()\n {\n }", "public static function get_meta_table();", "public function get_meta( $meta_key ) {\n\t\t$meta_value = get_metadata( $this->get_meta_type(), $this->get_id(), $meta_key, true );\n\n\t\tif ( false === $meta_value ) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn $meta_value;\n\t}", "public function showMeta()\n {\n $query = $this->pdo->prepare(\"SHOW META\");\n $query->execute();\n return $query->fetchAll();\n }", "function getMeta()\n {\n if (!$this->meta)\n $this->meta = new DataEntity;\n\n return $this->meta;\n }", "public function getMetaData()\n {\n if (is_null($this->_metaData)) {\n list($app, $name) = explode('/', $this->_config['name']);\n $args = array($name, $this->_config['params']);\n $this->_metaData = $GLOBALS['registry']->callByPackage(\n $app, 'getTableMetaData', $args);\n\n // We need to make vars for the columns.\n foreach ($this->_metaData['sections'] as $secname => $section) {\n foreach ($section['columns'] as $col) {\n $title = isset($col['title']) ? $col['title'] : '';\n $typename = isset($col['type']) ? $col['type'] : 'text';\n $params = isset($col['params']) ? $col['params'] : array();\n // Column types which begin with % are pseudo-types handled\n // directly.\n if (substr($typename, 0, 1) != '%') {\n $type = Horde_Form::getType($typename, $params);\n $var = new Horde_Form_Variable(\n $title, $col['name'], $type, false, true, '');\n $this->_formVars[$secname][$col['name']] = $var;\n }\n }\n }\n }\n\n return $this->_metaData;\n }", "protected abstract function get_meta_type();", "public function getMetaDescription();", "public function get_meta( $key ) {\n\t\treturn isset( $this->data['meta'][ $key ] ) ? $this->data['meta'][ $key ] : null;\n\t}", "public function getMeta($meta_key = \"\", $multiple = false)\n {\n }", "public function getGenericMetadata()\n {\n return $this->generic_metadata;\n }", "private function simple_meta_get($build) {\n\n $params = $this->buildToParams($build);\n\n $exists = $this->database->get('*', 'shadow_meta', $params);\n $exists = count($exists) == 1 ? $exists[0] : $exists;\n\n if($exists->object_value){\n return $exists->object_value;\n }\n\n if (intval($exists->count) === 0) {\n\n $params['parent'] = $exists->id;\n unset($params['object_key']);\n\n $children = $this->database->get('*', 'shadow_meta', $params);\n if ($children) {\n $temp = array();\n foreach ($children as $obj) {\n $temp[$obj->object_key] = $obj->object_value ? $obj->object_value : $obj->count;\n }\n return $temp;\n }\n }\n return intval($exists->count);\n }", "public function getMetaData()\n {\n $meta = array();\n $meta['displayname'] = $this->__('Static pages');\n $meta['description'] = $this->__('Manager of the static pages of the site.');\n $meta['version'] = '3.0.0';\n //! this defines the module's url\n $meta['url'] = $this->__('pages');\n $meta['core_min'] = '1.4.0'; // requires minimum 1.4.0 or later\n $meta['core_max'] = '1.4.99';\n $meta['capabilities'] = array(HookUtil::SUBSCRIBER_CAPABLE => array('enabled' => true));\n $meta['securityschema'] = array('Pages::' => 'Page name::Page ID',\n 'Pages:category:' => 'Category ID::');\n // Module depedencies\n $meta['dependencies'] = array(\n array('modname' => 'Scribite',\n 'minversion' => '4.3.0',\n 'maxversion' => '',\n 'status' => ModUtil::DEPENDENCY_RECOMMENDED));\n\n return $meta;\n }", "function awm_basic_meta_structure($fields)\n {\n $metas = array();\n\n foreach ($fields as $field) {\n $meta_key = awm_clean_string($field['key']);\n $metas[$meta_key] = $field;\n $metas[$meta_key]['label'] = __($field['label'], 'extend-wp');\n\n $metas[$meta_key]['class'] = !empty($field['class']) ? explode(',', $field['class']) : array();\n $attributes = array();\n if (isset($field['attributes'])) {\n foreach ($field['attributes'] as $attribute) {\n if (!empty($attribute['label']) && !empty($attribute['value'])) {\n $attributes[$attribute['label']] = $attribute['value'];\n }\n }\n }\n $metas[$meta_key]['attributes'] = $attributes;\n switch ($field['case']) {\n case 'select':\n case 'radio':\n $metas[$meta_key]['options'] = array();\n if (!empty($field['options'])) {\n foreach ($field['options'] as $option) {\n $metas[$meta_key]['options'][$option['option']] = array('label' => __($option['label'], 'extend-wp'));\n }\n }\n break;\n }\n }\n\n return $metas;\n }", "public function getMeta(): array\n {\n return [];\n }", "public function meta($property = NULL)\n\t{\n\t\t// Cache the meta object\n\t\tif (!$this->_meta)\n\t\t{\n\t\t\t$this->_meta = Jelly_Meta::get($this);\n\t\t}\n\t\t\n\t\tif ($property)\n\t\t{\n\t\t\tif (isset($this->_meta->$property))\n\t\t\t{\n\t\t\t\treturn $this->_meta->$property;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn NULL;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $this->_meta;\n\t}", "public function meta($key = null)\n {\n if (is_null($key)) {\n return $this->meta;\n }\n\n return $this->meta[$key];\n }", "public function getMetaData()\n {\n return $this->metadata;\n }", "protected function meta() {\n if (!$this->_meta) {\n // Initialize at first call\n $this->_meta = new \\stdClass();\n if (!$this->isNewRecord && $this->{static::meta_id_field()}) {\n foreach ($this->meta as $meta_row) {\n $this->_meta->{static::meta_prefix() . $meta_row->meta_key} = $meta_row->meta_value;\n }\n }\n }\n return $this->_meta;\n }", "public function meta($key)\n {\n return $this->meta[$key] ?? null;\n }", "function get_registered_metadata($object_type, $object_id, $meta_key = '')\n {\n }", "function brag_rest_meta_get_flamingo( $object, $field_name, $request ) {\n\n\t$meta = get_post_meta( $object[ 'id' ], '_meta' );\n\n\treturn $meta;\n}", "public function getMeta(): LaramoreMeta\n {\n return Meta::getForTableName($this->getTableName());\n }", "protected function getMetadata()\n {\n // object not working must use array\n $metadata['platform'] = \"Magento 1\";\n $metadata['version'] = Mage::getVersion();\n return $metadata;\n }", "public function getMeta($id)\n {\n return isset($this->meta[$id]) ? $this->meta[$id] : false;\n }", "public function getMetadata()\n {\n if (isset($this->raw->metadata)) {\n if (is_object($this->raw->metadata)) {\n return (array) $this->raw->metadata;\n }\n\n return $this->raw->metadata;\n }\n\n return null;\n }", "function get_meta_objs() {\n return $this->meta_objs;\n }", "function facebook_meta($meta)\n{\n\tif(isset($meta))\n\t{\n\t\t$return = \"\";\n\t\t\n\t\tforeach($meta as $property => $content)\n\t\t{\n\t\t\t$return .= \"<meta property='\".$property.\"' content='\".$content.\"' />\\n\";\n\t\t}\n\t\t\n\t\treturn $return;\n\t}\n\telse\n\t{\n\t\treturn FALSE;\n\t}\n}", "public function generate( $meta = array() )\n\t\t{\n\t\t\t$meta = parent::generate( $meta );\n\n\t\t\tforeach( $this->get( 'sections', array() ) as $section ){\n\n\t\t\t\t$meta = $section->postId( $this->postId )\n\t\t\t\t\t\t\t\t->containerId( $this->id )\n\t\t\t\t\t\t\t\t->generate( $meta );\n\t\t\t}\n\n\t\t\treturn $meta;\n\t\t}", "function fetchMeta($metadata)\n {\n $languages = $this->getLanguages();\n $attribname = $this->fieldName().(!$this->isMlNode()?'_'.$languages[0]:'');\n $this->m_size = min($metadata[$attribname]['len'], $this->maxInputSize());\n $this->m_searchsize = min($metadata[$attribname]['len'], 20);\n $this->m_maxsize = $metadata[$attribname]['len'];\n }", "public function get_metadata() {\n return $this->metadata;\n }" ]
[ "0.7505508", "0.7505508", "0.72435355", "0.69990873", "0.6959177", "0.6959177", "0.69226617", "0.6887989", "0.6864568", "0.6864568", "0.685798", "0.68293184", "0.68270427", "0.68270427", "0.68270427", "0.68270427", "0.68270427", "0.6811633", "0.677654", "0.67394435", "0.67193294", "0.6669059", "0.65610236", "0.65466046", "0.65333045", "0.6523439", "0.6503372", "0.64964885", "0.64821553", "0.6478244", "0.6471423", "0.64167666", "0.63978803", "0.63793147", "0.6344246", "0.63286644", "0.6303802", "0.6301302", "0.6294696", "0.62928087", "0.6241611", "0.6216788", "0.6201966", "0.6189954", "0.6184067", "0.6179364", "0.61708856", "0.61708856", "0.61708856", "0.61432004", "0.61020815", "0.6084699", "0.60737014", "0.60714555", "0.6069241", "0.6038179", "0.60203546", "0.60110146", "0.5999835", "0.59938276", "0.59938276", "0.5987622", "0.5986897", "0.59839225", "0.5956776", "0.59525174", "0.59322715", "0.5896604", "0.58910286", "0.58722043", "0.5863676", "0.58379203", "0.5818162", "0.5816608", "0.58082765", "0.5806056", "0.580355", "0.5801251", "0.57935125", "0.57828933", "0.5766986", "0.57544893", "0.57445073", "0.5739604", "0.57356995", "0.5732637", "0.5714982", "0.5707306", "0.570403", "0.56973004", "0.5697266", "0.5689827", "0.5683638", "0.5681844", "0.56808066", "0.5663005", "0.56612563", "0.5660081", "0.5654714", "0.56523234", "0.56508374" ]
0.0
-1
Create a meta structure
function createModel($name, array $conf);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createMetaData()\n\t{\n\t\tparent::createMetaData();\n\t\t$this->saveAuthorToMetadata();\n\t}", "public static function meta();", "private function packMeta()\n {\n $transport = $this->modx->fromJSON(file_get_contents(__DIR__ . '/../transport.json'));\n unset($transport['support']['db']);\n\n $this->builder->setPackageAttributes([\n 'changelog' => file_get_contents(__DIR__ . '/../meta/changelog.txt'),\n 'license' => file_get_contents(__DIR__ . '/../meta/license.txt'),\n 'readme' => file_get_contents(__DIR__ . '/../meta/readme.txt'),\n 'requires' => $transport['support']\n ]);\n }", "protected function setup_metadata() {\n\t\tif ( $this->get_meta_type() ) {\n\t\t\t$this->fill( $this->get_metadata() );\n\t\t}\n\t}", "private function getMeta() {\n $metadata = array(\n 'title' => 'User', \n 'desc' => 'Request URL: ' . Config::get('app.api_url'), \n 'meta' => array( \n 'title' => 'User | Seeties', \n 'description' => 'Sample meta description' \n ),\n 'sidebar' => View::make('user.sidebar')\n );\n\n return $metadata;\n }", "function awm_basic_meta_structure($fields)\n {\n $metas = array();\n\n foreach ($fields as $field) {\n $meta_key = awm_clean_string($field['key']);\n $metas[$meta_key] = $field;\n $metas[$meta_key]['label'] = __($field['label'], 'extend-wp');\n\n $metas[$meta_key]['class'] = !empty($field['class']) ? explode(',', $field['class']) : array();\n $attributes = array();\n if (isset($field['attributes'])) {\n foreach ($field['attributes'] as $attribute) {\n if (!empty($attribute['label']) && !empty($attribute['value'])) {\n $attributes[$attribute['label']] = $attribute['value'];\n }\n }\n }\n $metas[$meta_key]['attributes'] = $attributes;\n switch ($field['case']) {\n case 'select':\n case 'radio':\n $metas[$meta_key]['options'] = array();\n if (!empty($field['options'])) {\n foreach ($field['options'] as $option) {\n $metas[$meta_key]['options'][$option['option']] = array('label' => __($option['label'], 'extend-wp'));\n }\n }\n break;\n }\n }\n\n return $metas;\n }", "public function createMetasPages($meta)\n\t {\n\t \tif ( isset($_GET['post']) || isset($_POST['post_ID']) )\n\t\t \t$post_id = $_GET['post'] ? $_GET['post'] : $_POST['post_ID'];\n\t\t else\n\t\t \t$post_id = null;\n\n\t\t $nameMetaBox = '';\n\t\t $titleMetaBox = '';\n\t\t $noInputs = '';\n\t\t $noEditors = '';\n\t\t $imgFeatured = '';\n\t\t $videoFeatured = '';\n\t\t $documentFeatured = '';\n\t\t $gallery = '';\n\n\t\t if (isset($meta['_title_meta_box'])) {\n\t\t \t$titleMetaBox = $meta['_title_meta_box'];\n\t\t }\n\n\t\t if (isset($meta['_no_inputs'])) {\n\t\t \t$noInputs = $meta['_no_inputs'];\n\t\t }\n\t\t \t\n\t\t if (isset($meta['_no_editors'])) {\n\t\t \t$noEditors = $meta['_no_editors'];\n\t\t }\n\n\t\t if (isset($meta['_name_meta_box'])) {\n\t\t \t$nameMetaBox = $meta['_name_meta_box']; \t\n\t\t }\n\n\t\t if ( isset($meta['_img_featured']) && $meta['_img_featured'] == 'yes' ) {\n\t\t \t$imgFeatured = $meta['_img_featured']; \t\n\t\t }\n\n\t\t if ( isset($meta['_video_featured']) && $meta['_video_featured'] == 'yes' ) {\n\t\t \t$videoFeatured = $meta['_video_featured']; \t\n\t\t }\n\n\t\t if ( isset($meta['_document_featured']) && $meta['_document_featured'] == 'yes' ) {\n\t\t \t$documentFeatured = $meta['_document_featured']; \t\n\t\t }\n\n\t\t if ( isset($meta['_gallery']) && $meta['_gallery'] == 'yes' ) {\n\t\t \t$gallery = $meta['_gallery']; \t\n\t\t }\n\n\t\t foreach ($meta['_pages'] as $key => $value) {\n\t\t \t$createMeta = false;\n\t\t \tif ($post_id == $value) {\n\t\t \t\t$createMeta = true;\n\t\t \t} else if( $value == 'all' ) {\n\t\t \t\t$createMeta = true;\n\t\t \t}\n\n\t\t \tif ($createMeta) {\n\t\t \t\tself::addMetaBox($nameMetaBox, $titleMetaBox, 'page' , $noInputs, $noEditors, $imgFeatured, $videoFeatured, $documentFeatured, $gallery);\n\t\t \t}\n\t\t }\n\t }", "public function metas();", "public function getMeta();", "public function getMeta();", "function add_metadata($meta_type, $object_id, $meta_key, $meta_value, $unique = \\false)\n {\n }", "protected function build_meta( Meta_Tags_Context $context ) {\n\t\treturn new Meta( $context, $this->container );\n\t}", "function wp_create_initial_post_meta()\n {\n }", "private function readMetaConfig(){\r\n\t\tif($this->CI->config->item('zt_head_meta')){\r\n\t\t\t$metaTags = $this->CI->config->item('zt_head_meta');\r\n\t\t\t$meta = null;\r\r\n\t\t\tforeach($metaTags as $metaTag){\r\n\t\t\t\tif(isset($metaTag[\"type\"])){\r\t\t\t\t\tif(isset($metaTag[\"lang\"]) && $metaTag[\"lang\"] && !empty($this->langService)){\r\t\t\t\t\t\t$meta = new Meta($metaTag[\"type\"], $metaTag[\"name\"], $this->langService->GetPrimaryWithSubLangCode());\t\r\t\t\t\t\t} else {\r\t\t\t\t\t\t$meta = new Meta($metaTag[\"type\"], $metaTag[\"name\"], $metaTag[\"content\"]);\t\r\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$meta = new Meta(Meta::TYPE_NAME, $metaTag[\"name\"], $metaTag[\"content\"]);\r\n\t\t\t\t}\r\r\n\t\t\t\t$this->head->AddMetaTag($meta);\r\n\t\t\t}\r\n\t\t}\r\r\n\t}", "public function generateMetaData($ObjectName) {\n\t\t$Object = Object::create($ObjectName);\n\t\t$fields = array();\n\t\t$db = $Object->db();\n\t\tarray_push($fields, array(\"name\"=>\"ID\", \"type\"=>\"int\")); //\n\t\tforeach($db as $key=>$value) {\n\t\t\t$value = $this->convertTypeToEXT($value);\n\t\t\t$xtype = $this->getInputType($value);\n\t\t\tarray_push($fields, array(\"name\"=>\"{$key}\", \"type\"=>\"{$value}\", \"xtype\"=>\"{$xtype}\")); //\n\t\t}\n\t\t$has_one = $Object->has_one();\n\t\tforeach($has_one as $key=>$value) {\n\t\t\t//array_push($fields, array(\"name\"=>\"{$key}\", \"type\"=>\"{$value}\"));\n\t\t\tif($value == 'Image') {\n\t\t\t\t$xtype = $this->getInputType($value);\n\t\t\t\tarray_push($fields, array(\"name\"=>\"{$key}\", \"mapping\"=>\"{$key}\", \"xtype\"=>\"{$xtype}\"));\n\t\t\t} else {\n\t\t\t\tarray_push($fields, array(\"name\"=>\"{$key}ID\", \"type\"=>\"int\", \"mapping\"=>\"{$key}ID\"));\n\t\t\t}\n\t\t\t$sObject = Object::create($value);\n\t\t\tif($sObject == $Object) {\n\t\t\t} else {\n\t\t\t\t$sdb = $sObject->db();\n\t\t\t\tarray_push($fields, array(\"name\"=>\"{$key}.ID\", \"type\"=>\"int\", \"mapping\"=>\"{$key}.ID\")); //, \"mapping\"=>\"{$key}.ID\"\n\t\t\t\tforeach($sdb as $sKey=>$sValue) {\n\t\t\t\t\t$sValue = $this->convertTypeToEXT($sValue);\n\t\t\t\t\t$xtype = $this->getInputType($sValue);\n\t\t\t\t\tarray_push($fields, array(\"name\"=>\"{$key}.{$sKey}\", \"type\"=>\"{$sValue}\", \"mapping\"=>\"{$key}.{$sKey}\", \"xtype\"=>\"{$xtype}\")); //, \"mapping\"=>\"{$key}.{$sKey}\"\n\t\t\t\t}\n\t\t\t\t$shas_one = $sObject->has_one();\n\t\t\t\tforeach($shas_one as $sKey=>$sValue) {\n\t\t\t\t\t$sValue = $this->convertTypeToEXT($sValue);\n\t\t\t\t\t$xtype = $this->getInputType($sValue);\n\t\t\t\t\tarray_push($fields, array(\"name\"=>\"{$key}.{$sKey}\", \"type\"=>\"{$sValue}\", \"mapping\"=>\"{$key}.{$sKey}\", \"xtype\"=>\"{$xtype}\")); //, \"mapping\"=>\"{$key}.{$sKey}\"\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$fields = Convert::array2json($fields);\n\t\t$metaData = \"\n\t\t\\\"metaData\\\": {\n\t\t\\\"idProperty\\\": \\\"ID\\\",\n \\\"root\\\": \\\"rows\\\",\n \\\"totalProperty\\\": \\\"results\\\",\n \\\"start\\\": 0,\n \\\"limit\\\": 20,\n \\\"successProperty\\\": \\\"success\\\",\n \\\"fields\\\": {$fields}\n \t},\n \t\";\n\t\treturn $metaData;\n\t}", "protected function save_meta() {}", "public static function MetaCreatable() {\n\t\t\treturn true;\n\t\t}", "protected function MetaAfterCreate() {\n\t\t}", "public function prepareMetaData() {\n if ($this->mt instanceof folksoPageDataMeta) {\n return $this->mt;\n }\n\n if (! $this->ptags instanceof folksoPagetags) {\n $this->ptags = new folksoPagetags($this->loc, $this->url);\n }\n\n\n $this->mt = $this->ptags->buildMeta();\n if (! $this->e13 instanceof folksoEanList) {\n $this->e13 = new folksoEanList($this->loc, $this->url);\n }\n // this is supposed to be a reference. it had better be!\n $this->mt->e13 = $this->e13;\n return $this->mt;\n }", "public function create($newmeta) {\n\t\tif ($this->req ['auth_type'] == 'oauth') {\n\t\t\tif (is_string ( $newmeta ) && isset ( $_POST ['properties'] ) && is_object ( json_decode ( $_POST ['properties'] ) )) {\n\t\t\t\tif ($this->isCreateable ()) {\n\t\t\t\t\t// @TODO\n\t\t\t\t\t// Need to convert because there is an old structure\n\t\t\t\t\t$aMetavalues = array ();\n\t\t\t\t\tforeach ( json_decode ( $_POST ['properties'] ) as $sName => $sValue ) {\n\t\t\t\t\t\tarray_push ( $aMetavalues, array ('name' => $sName, 'value' => $sValue ) );\n\t\t\t\t\t}\n\t\t\t\t\tif (count ( $aMetavalues ) <= 150) {\n\t\t\t\t\t\t$iPrimaryMeta = ( int ) $this->oMetas->insertMeta ( array ('name' => $newmeta, 'accounts_idaccount' => $this->usr, 'namespaces_idnamespace' => $this->req ['request'] ['ns'] ) );\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (( int ) $iPrimaryMeta > 0 && count ( $aMetavalues ) > 0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif ($this->setUsage ( $this->usr, array ('maxmetas' => 1 ) )) {\n\t\t\t\t\t\t\t\tif ($this->oMetavalue->insertValue ( $aMetavalues, $iPrimaryMeta )) {\n\t\t\t\t\t\t\t\t\t$this->addEntry ( 'response', array ('message' => 'Metaitem was created', 'meta' => $iPrimaryMeta ) );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$this->addEntry ( 'response', $this->oError->throwError ( 'META_BUDGET_LIMIT_REACHED' ) );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$this->addEntry ( 'response', $this->oError->throwError ( 'META_EXISTS' ) );\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->addEntry ( 'response', $this->oError->throwError ( 'TO_MUCH_PROPERTYS' ) );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$this->addEntry ( 'response', $this->oError->throwError ( 'OAUTH_ONLY' ) );\n\t\t}\n\t\treturn $this->getResponse ();\n\t}", "function create_meta_box() {\n\tif ( function_exists('add_meta_box') ) {\n\t\tadd_meta_box( 'new-meta-boxes', '<div class=\"icon-small\"></div> '.PEXETO_THEMENAME.' PAGE SETTINGS', 'new_meta_boxes', 'page', 'normal', 'high' );\n\t}\n}", "public function makeMeta(array $parameters)\n {\n return call_user_func_array(\"add_{$this->getContext()}_meta\", $parameters);\n }", "protected function make() {\n\n\t\tif ( ! is_null( $this->tag ) && isset( self::$aliases[ $this->tag ] ) ) {\n\t\t\t$this->set( 'key', self::$aliases[ $this->tag ] );\n\t\t}\n\n\t\t// Set Template\n\t\tif ( false !== $this->attributes['label'] ) {\n\t\t\t$template = 'shortcodes/metadata-label.php';\n\t\t} else {\n\t\t\t$template = 'shortcodes/metadata.php';\n\t\t}\n\n\t\t$this->template = new Template( $template );\n\t}", "public static function createItemMetaForFile($filename) {\n\t\t$exifData = t3lib_div::makeInstance('Tx_Yag_Domain_Import_MetaData_ExifParser')->parseExifData($filename);\n\t\t$iptcData = t3lib_div::makeInstance('Tx_Yag_Domain_Import_MetaData_IptcParser')->parseIptcData($filename);\n\t\t$xmpData = Tx_Yag_Domain_Import_MetaData_XmpParser::parseXmpData($filename);\n\t\t\n\t\t$itemMeta = new Tx_Yag_Domain_Model_ItemMeta();\n\t\t\n\t\t$itemMeta->setExif(serialize($exifData));\n\t\t$itemMeta->setIptc(serialize($iptcData));\n\t\t$itemMeta->setXmp($xmpData);\n\t\t\n\t\t$itemMeta->setAperture($exifData['ApertureValue']);\n\t\t$itemMeta->setArtist($iptcData[\"2#080\"][0]);\n\n\t\t$itemMeta->setArtistMail(self::getXmpValueByKey($xmpData, 'Iptc4xmpCore\\:CiEmailWork'));\n\t\t$itemMeta->setArtistWebsite(self::getXmpValueByKey($xmpData, 'Iptc4xmpCore\\:CiEmailWork')); \n\t\t$itemMeta->setCameraModel($exifData['Make'] . ' - ' . $exifData['Model']);\n\t\t$itemMeta->setCopyright($iptcData[\"2#116\"][0]);\n\t\t$itemMeta->setDescription($exifData['ImageDescription']);\n\t\t$itemMeta->setFlash($exifData['Flash']);\n\t\t$itemMeta->setFocalLength($exifData['FocalLength']);\n\n\t\t$itemMeta->setCaptureDate(new DateTime('@' . $exifData['CaptureTimeStamp']));\n\n\t\t//$itemMeta->setGpsLatitude(); // not available yet\n\t\t//$itemMeta->setGpsLongitude(); // not available yet\n\t\t$itemMeta->setIso($exifData['ISOSpeedRatings']); \n\t\tif(is_array($iptcData['2#025'])) $itemMeta->setKeywords(implode(',', $iptcData['2#025']));\n\t\t$itemMeta->setLens(self::getXmpValueByKey($xmpData, 'aux\\:Lens'));\n\n\t\t$itemMeta->setShutterSpeed($exifData['ShutterSpeedValue']);\n\t\t\n\t\treturn $itemMeta;\n\t}", "public function metaProvider()\n {\n return [[new \\Urbania\\AppleNews\\Api\\Objects\\Meta()]];\n }", "public function createEmptyMetadata();", "private function generateDefaultMetas($title, $description)\n\t{\n\t\t$metas = array(\n\t\t\t'title' => $title, \n\t\t\t'name' => array(\n\t\t\t 'description' => $description, \n\t\t\t 'twitter:card' => 'summary', \n\t\t\t 'twitter:site' => app_env('APP_TWITTER'), \n\t\t\t 'twitter:title' => $title, \n\t\t\t 'twitter:description' => $description, \n\t\t\t 'twitter:creator' => app_env('APP_TWITTER'), \n\t\t\t //Choose large image over small\n\t\t\t //At least 120px * 120px\n\t\t\t //No larger than 1Mb\n\t\t\t 'twitter:image' => app_env('APP_HOST') . DS . 'public/images/twitter_default_image.jpg', \n\t\t\t), \n\t\t\t'property' => array(\n\t\t\t 'og:title' => $title, \n\t\t\t 'og:type' => 'article', \n\t\t\t 'og:url' => app_env('APP_HOST'), \n\t\t\t //Choose large image over small\n\t\t\t //At least 200px * 200px\n\t\t\t //1200 * 630 is recommended\n\t\t\t 'og:image' => app_env('APP_HOST') . DS . 'public/images/og_default_image.jpg', \n\t\t\t 'og:site_name' => app_env('APP_NAME'), \n\t\t\t 'og:description' => $description\n\t\t\t), \n\t\t);\n\t\t\n\t\treturn $metas;\n\t}", "function metaInit () {\n $this->imageMeta = new ImageMeta($this->getImagePath());\n $this->imageMeta->getMeta();\n }", "public function metadata($var = null): array\n {\n if ($var !== null) {\n $this->_metadata = (array)$var;\n }\n\n // if not metadata yet, process it.\n if (null === $this->_metadata) {\n $this->_metadata = [];\n\n $config = Grav::instance()['config'];\n\n // Set the Generator tag\n $defaultMetadata = ['generator' => 'GravCMS'];\n $siteMetadata = $config->get('site.metadata', []);\n $headerMetadata = $this->getNestedProperty('header.metadata', []);\n\n // Get initial metadata for the page\n $metadata = array_merge($defaultMetadata, $siteMetadata, $headerMetadata);\n\n $header_tag_http_equivs = ['content-type', 'default-style', 'refresh', 'x-ua-compatible', 'content-security-policy'];\n $escape = !$config->get('system.strict_mode.twig_compat', false) || $config->get('system.twig.autoescape', true);\n\n // Build an array of meta objects..\n foreach ($metadata as $key => $value) {\n // Lowercase the key\n $key = strtolower($key);\n\n // If this is a property type metadata: \"og\", \"twitter\", \"facebook\" etc\n // Backward compatibility for nested arrays in metas\n if (is_array($value)) {\n foreach ($value as $property => $prop_value) {\n $prop_key = $key . ':' . $property;\n $this->_metadata[$prop_key] = [\n 'name' => $prop_key,\n 'property' => $prop_key,\n 'content' => $escape ? htmlspecialchars($prop_value, ENT_QUOTES | ENT_HTML5, 'UTF-8') : $prop_value\n ];\n }\n } elseif ($value) {\n // If it this is a standard meta data type\n if (in_array($key, $header_tag_http_equivs, true)) {\n $this->_metadata[$key] = [\n 'http_equiv' => $key,\n 'content' => $escape ? htmlspecialchars($value, ENT_COMPAT, 'UTF-8') : $value\n ];\n } elseif ($key === 'charset') {\n $this->_metadata[$key] = ['charset' => $escape ? htmlspecialchars($value, ENT_QUOTES | ENT_HTML5, 'UTF-8') : $value];\n } else {\n // if it's a social metadata with separator, render as property\n $separator = strpos($key, ':');\n $hasSeparator = $separator && $separator < strlen($key) - 1;\n $entry = [\n 'content' => $escape ? htmlspecialchars($value, ENT_QUOTES | ENT_HTML5, 'UTF-8') : $value\n ];\n\n if ($hasSeparator && !Utils::startsWith($key, 'twitter')) {\n $entry['property'] = $key;\n } else {\n $entry['name'] = $key;\n }\n\n $this->_metadata[$key] = $entry;\n }\n }\n }\n }\n\n return $this->_metadata;\n }", "function meta($name, $content=\"\") {\n\t\t$this->metas[] = array('name' => $name, 'content' => $content);\n\t}", "public function testCreateMetadata()\n {\n }", "static public function createMetadata(array $inputs)\n\t{\n\t\t$classes = [];\n\t\tforeach($inputs as $input)\n\t\t{\n\t\t\t$classes[static::factoryType($input['identifier'], $input['type'])] = $input['class'];\n\t\t}\n\t\t\n\t\treturn new Metadata(\n\t\t\t'relating', \n\t\t\t$classes,\n\t\t\tarray(\n\t\t\t\t'cache_prefix' => 'relating',\n\t\t\t\t'cache_tag' => 'relating-tag'\n\t\t\t)\n\t\t);\t\n\t}", "protected function getMetadata()\n {\n // object not working must use array\n $metadata['platform'] = \"Magento 1\";\n $metadata['version'] = Mage::getVersion();\n return $metadata;\n }", "private function getMetaData ()\n\t\t{\n\t\t\t$data = file_get_contents (\"META.inf\");\n\t\t\t$o = json_decode ($data,true);\n\t\t\treturn $o;\t\n\t\t}", "public function create()\n {\n return view('backend.meta.create');\n }", "public function meta() {\n\t\treturn [\n\t\t\t'name' => 'Duck page',\n\t\t\t'description' => 'This is a duck page',\n\t\t\t'template' => 'pages/duck-page.php',\n\t\t\t'post_type' => 'duck'\n\t\t];\n\t}", "abstract protected function createFields();", "public function getMeta(): array;", "private function updateMetas() {\n if( is_null($this->Metas) )\n $this->Metas = array();\n\n $this->Metas[0] = '<meta http-equiv=\"Content-Type\" content=\"' . $this->ContentType . '; charset=' . $this->Charset . '\" />';\n }", "public function initialize()\n {\n // attributes\n $this->setName('meta');\n $this->setPhpName('Meta');\n $this->setIdentifierQuoting(true);\n $this->setClassName('\\\\CE\\\\Model\\\\Meta');\n $this->setPackage('src.CE.Model');\n $this->setUseIdGenerator(true);\n // columns\n $this->addPrimaryKey('id', 'Id', 'INTEGER', true, null, null);\n $this->addForeignKey('website_id', 'WebsiteId', 'INTEGER', 'website', 'id', false, null, null);\n $this->addForeignKey('website_routing_id', 'WebsiteRoutingId', 'INTEGER', 'website_routing', 'id', false, null, null);\n $this->addColumn('culture', 'Culture', 'VARCHAR', false, 5, null);\n $this->addColumn('html', 'Html', 'LONGVARCHAR', true, null, null);\n }", "private function initMetaBox(){\n\t\t$path = get_template_directory() . '/sub/customfield/';\n\t\tif(function_exists('of_get_option')){\n\t\t\tif(of_get_option('is-seo',true)){\n\t\t\t\tnew WPO_MetaBox(array(\n\t\t\t\t 'id' => 'wpo_seo',\n\t\t\t\t 'title' => $this->l('SEO Fields'),\n\t\t\t\t 'types' => array('page','portfolio','post','video'),\n\t\t\t\t 'priority' => 'high',\n\t\t\t\t 'template' => $path . 'seo.php',\n\t\t\t\t));\n\t\t\t}\n\t\t}\n\n\t\tnew WPO_MetaBox(array(\n\t\t 'id' => 'wpo_template',\n\t\t 'title' => $this->l('Advanced Configuration'),\n\t\t 'types' => array('page'),\n\t\t 'priority' => 'high',\n\t\t 'template' => $path . 'page-advanced.php'\n\t\t));\n\n\t\tnew WPO_MetaBox(array(\n\t\t 'id' => 'wpo_pageconfig',\n\t\t 'title' => $this->l('Page Configuration'),\n\t\t 'types' => array('page'),\n\t\t 'priority' => 'high',\n\t\t 'template' => $path . 'page.php',\n\t\t));\n\n\t\tnew WPO_MetaBox(array(\n\t\t 'id' => 'wpo_post',\n\t\t 'title' => $this->l('Embed Options'),\n\t\t 'types' => array('post','video'),\n\t\t 'priority' => 'high',\n\t\t 'template' => $path . 'post.php',\n\t\t));\n\t}", "protected function _setTemplateMeta(){\n $this->template->project_name = $this->config['project']['name'] ;\n $this->template->title = $this->config['view']['title'] ;\n $this->template->keywords = $this->config['view']['keywords'];\n $this->template->description = $this->config['view']['description'];\n }", "public function registerMetaBoxes()\n\t {\n\t \t$dataMetas = self::getDataMetas();\n\n\t \tif ( !empty($dataMetas) ) {\n\t \t\tforeach ($dataMetas as $key => $meta) {\n\t \t\t\t/* CHECK IF HAS PAGES */\n\t \t\t\tif ( isset($meta[\"_pages\"]) && !empty($meta[\"_pages\"][0]) ) {\n\t \t\t\t\tself::createMetasPages($meta);\n\t \t\t\t}\n\n\t \t\t\t/* POSTS TYPES REGISTER METAS */\n\t \t\t\tif ( isset($meta[\"_posts_types\"]) && !empty($meta[\"_posts_types\"][0]) ) {\n\t \t\t\t\tself::createMetasPostTypes($meta);\n\t \t\t\t}\n\n\t \t\t\t/* CHECK IF ALL POSTS IS true */\n\t \t\t\tif ( isset($meta[\"_all_posts\"]) && $meta['_all_posts'] == 'yes' ) {\n\t \t\t\t\tself::createMetasPosts($meta);\n\t \t\t\t}\n\t \t\t}\n\t \t}\n\n\t }", "public function meta() {\n\t\treturn [\n\t\t\t'name' => __( 'Sections Page Type', 'gram' ),\n\t\t\t'description' => __( 'The page type for building sections', 'gram' ),\n\t\t\t'post_type' => 'page',\n\t\t];\n\t}", "public function meta(array $meta): ISchemaBuilder;", "public function metadataShouldBeCreatableAndFetchableWithTheApi(): void\n {\n $metadata = new Metadata();\n $this->assertNull($metadata->getShopType());\n $this->assertNull($metadata->getShopVersion());\n $this->assertNull($metadata->getMetadata('MyCustomData'));\n\n $metadata->setShopType('my awesome shop');\n $metadata->setShopVersion('v2.0.0');\n $metadata->addMetadata('MyCustomData', 'my custom information');\n $this->assertNull($metadata->getId());\n\n $this->heidelpay->createMetadata($metadata);\n $this->assertNotNull($metadata->getId());\n\n $fetchedMetadata = (new Metadata())->setParentResource($this->heidelpay)->setId($metadata->getId());\n $this->assertNull($fetchedMetadata->getShopType());\n $this->assertNull($fetchedMetadata->getShopVersion());\n $this->assertNull($fetchedMetadata->getMetadata('MyCustomData'));\n\n $this->heidelpay->fetchMetadata($fetchedMetadata);\n $this->assertEquals('my awesome shop', $fetchedMetadata->getShopType());\n $this->assertEquals('v2.0.0', $fetchedMetadata->getShopVersion());\n $this->assertEquals('my custom information', $fetchedMetadata->getMetadata('MyCustomData'));\n }", "public function meta() {\n\t\treturn [\n\t\t\t'name' => 'Info core type',\n\t\t\t'description' => 'This is a Info core type',\n\t\t\t'sort_order' => 500\n\t\t];\n\t}", "public function getMetaData()\n {\n $meta = array();\n $meta['displayname'] = $this->__('Static pages');\n $meta['description'] = $this->__('Manager of the static pages of the site.');\n $meta['version'] = '3.0.0';\n //! this defines the module's url\n $meta['url'] = $this->__('pages');\n $meta['core_min'] = '1.4.0'; // requires minimum 1.4.0 or later\n $meta['core_max'] = '1.4.99';\n $meta['capabilities'] = array(HookUtil::SUBSCRIBER_CAPABLE => array('enabled' => true));\n $meta['securityschema'] = array('Pages::' => 'Page name::Page ID',\n 'Pages:category:' => 'Category ID::');\n // Module depedencies\n $meta['dependencies'] = array(\n array('modname' => 'Scribite',\n 'minversion' => '4.3.0',\n 'maxversion' => '',\n 'status' => ModUtil::DEPENDENCY_RECOMMENDED));\n\n return $meta;\n }", "public function getMetaData();", "public abstract function createFields();", "function wck_add_meta(){\n\t\tparent::wck_add_meta();\n\t}", "function addMeta() {\n\t\n\tif( class_exists('acf') ) {\n\n\t$meta_description = get_field('meta_description', 'option');\n\t$meta_keywords = get_field('meta_keywords', 'option');\n\t$meta_author = get_field('meta_author', 'option');\n\t$meta_og_image = get_field('meta_og_img', 'option');\n\t$meta_img_full = $meta_og_image['url'];\n\n\t}\n\n\tif ( $meta_description ) {\n\t\techo '<meta name=\"description\" content=\"'.$meta_description.'\">'; \n\t}\n\n\tif ( $meta_keywords ) {\n\t\techo '<meta name=\"keywords\" content=\"'.$meta_keywords.'\">'; \n\t}\n\n\tif ( $meta_author ) {\n\t\techo '<meta name=\"author\" content=\"'.$meta_author.'\">'; \n\t}\n\n\tif ( $meta_og_image ) {\n\t\techo '<meta name=\"twitter:card\" content=\"summary\" />';\n\t\techo '<meta property=\"og:image\" content=\"'.$meta_img_full.'\" />';\n\t}\n\n}", "public function getCreateMeta(array $paramArray = [], bool $expand = true): object\n {\n $paramArray['expand'] = ($expand) ? 'projects.issuetypes.fields' : null;\n $paramArray = array_filter($paramArray);\n\n $queryParam = '?'.http_build_query($paramArray);\n\n $ret = $this->exec($this->uri.'/createmeta'.$queryParam, null);\n\n return json_decode($ret);\n }", "public static function registerMetaBoxes() {}", "public function meta(){\n $table_meta = new \\stdClass();\n\n // get fields in the database table\n if(count($this->_model_meta)==0){\n $this->_meta();\n }\n\n\n foreach ($this->_model_meta as $meta) {\n $table_meta->{$meta->name} = $meta;\n }\n\n return $table_meta;\n }", "public function meta (\\stdClass $param);", "public function getMeta(){\n // $this->meta();\n }", "public function createNutrMetaTable()\r\n\t{\r\n\t\t$query = 'CREATE TABLE `usdaMeta` (\r\n\t\t\t`NDB_No` int(5) unsigned zerofill NOT NULL,\r\n\t\t\t`metaValue` int(8) unsigned NOT NULL,\r\n\t\t\tPRIMARY KEY (`NDB_No`,`metaValue`),\r\n\t\t\tUNIQUE KEY `NDB_No` (`NDB_No`,`metaValue`)\r\n\t\t) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT=\"USDA Ingredient-metavalue mapping\"';\r\n\t\t$this->_db->setQuery($query);\r\n\t\treturn $this->_db->query();\r\n\t}", "public function generate( $meta = array() )\n\t\t{\n\t\t\t$meta = parent::generate( $meta );\n\n\t\t\tforeach( $this->get( 'sections', array() ) as $section ){\n\n\t\t\t\t$meta = $section->postId( $this->postId )\n\t\t\t\t\t\t\t\t->containerId( $this->id )\n\t\t\t\t\t\t\t\t->generate( $meta );\n\t\t\t}\n\n\t\t\treturn $meta;\n\t\t}", "private function createMetadataDefinition()\n {\n $id = $this->getServiceId('metadata');\n if (!$this->container->has($id)) {\n $definition = new Definition(self::CLASS_METADATA);\n $definition\n ->setFactory([new Reference($this->getManagerServiceId()), 'getClassMetadata'])\n ->setArguments([\n $this->container->getParameter($this->getServiceId('class'))\n ])//->setPublic(false)\n ;\n $this->container->setDefinition($id, $definition);\n }\n }", "public function testMetaData()\n\t{\n\t\ttestpack( 'Test meta data' );\n\n\t\t$bean = new OODBBean;\n\n\t\t$bean->setMeta( \"this.is.a.custom.metaproperty\", \"yes\" );\n\n\t\tasrt( $bean->getMeta( \"this.is.a.custom.metaproperty\" ), \"yes\" );\n\n\t\tasrt( $bean->getMeta( \"nonexistant\" ), NULL );\n\t\tasrt( $bean->getMeta( \"nonexistant\", \"abc\" ), \"abc\" );\n\n\t\tasrt( $bean->getMeta( \"nonexistant.nested\" ), NULL );\n\t\tasrt( $bean->getMeta( \"nonexistant,nested\", \"abc\" ), \"abc\" );\n\n\t\t$bean->setMeta( \"test.two\", \"second\" );\n\n\t\tasrt( $bean->getMeta( \"test.two\" ), \"second\" );\n\n\t\t$bean->setMeta( \"another.little.property\", \"yes\" );\n\n\t\tasrt( $bean->getMeta( \"another.little.property\" ), \"yes\" );\n\n\t\tasrt( $bean->getMeta( \"test.two\" ), \"second\" );\n\n\t\t// Copy Metadata\n\t\t$bean = new OODBBean;\n\n\t\t$bean->setMeta( \"meta.meta\", \"123\" );\n\n\t\t$bean2 = new OODBBean;\n\n\t\tasrt( $bean2->getMeta( \"meta.meta\" ), NULL );\n\n\t\t$bean2->copyMetaFrom( $bean );\n\n\t\tasrt( $bean2->getMeta( \"meta.meta\" ), \"123\" );\n\t}", "function getMakeMetadata(){\n\t\t if(!$this->getSavedMetadata()){\n\t\t\t\t$this->tableID = false;\n\t\t\t\t$this->tableName = \"[Not titled]\";\n\t\t\t\t$this->tableDesciption = \"[Not described]\";\n\t\t\t\t$this->tableTags = false;\n\t\t\t\t$this->tableDOI = false;\n\t\t\t\t$this->tableARK = false;\n\t\t\t\t$this->published = false;\n\t\t\t\t$this->pubCreated = false;\n\t\t\t\t$this->pubUpdate = false;\n\t\t\t\t$this->license = $this->DBgetLicense();\n\t\t\t\t$this->getProjects();\n\t\t\t\t$this->getPersons();\n\t\t\t\t$this->getProjectCreators();\n\t\t\t\t$this->getGenerateTableID(); //create a table ID based in the metadata for the table\n\t\t\t\t$this->saveMetadata(); //save the results\n\t\t }\n\t\t else{\n\t\t\t\t$this->metadataParse(); //get saved metadata ready to use\n\t\t }\n\t\t $this->getTableSize(); //get the number of records in a table\n\t\t $this->getTableFields(); //get the fields in a table.\n\t\t $this->getSampleRecords(); //get the fields in a table.\n\t }", "protected function meta() {\n if (!$this->_meta) {\n // Initialize at first call\n $this->_meta = new \\stdClass();\n if (!$this->isNewRecord && $this->{static::meta_id_field()}) {\n foreach ($this->meta as $meta_row) {\n $this->_meta->{static::meta_prefix() . $meta_row->meta_key} = $meta_row->meta_value;\n }\n }\n }\n return $this->_meta;\n }", "protected function addMeta() {\n foreach ($this->meta_info as $key => $meta) {\n $this->header.=\"<meta name='\" . $key . \"' content='\" . $meta . \"' /> \\n\";\n }\n }", "protected function initMeta($attr)\n {\n if (isset($attr[\"id\"])) {\n $this->meta[\"id\"] = $attr[\"id\"];\n }\n\n if (isset($attr[\"class\"])) {\n $this->meta[\"class\"] = $attr[\"class\"];\n }\n\n if (isset($attr[\"html\"])) {\n $this->meta[\"html\"] = $attr[\"html\"];\n }\n\n if (isset($attr[\"properties\"])) {\n $this->meta[\"properties\"] = $attr[\"properties\"];\n if (is_array($this->meta[\"properties\"])) {\n foreach ($this->meta[\"properties\"] as $att => $val) {\n $this->meta[\"prop\"] .= \" {$att} = '{$val}'\";\n }\n }\n }\n\n }", "public function buildMetaTags()\n\t{\n\t\t/* Set basic ones */\n\t\t$this->metaTags['og:site_name'] = \\IPS\\Settings::i()->board_name;\n\t\t$this->metaTags['og:locale'] = preg_replace( \"/^([a-zA-Z0-9\\-_]+?)(?:\\..*?)$/\", \"$1\", \\IPS\\Member::loggedIn()->language()->short );\n\t\t\n\t\t/* Add the site name to the title */\n\t\tif( \\IPS\\Settings::i()->board_name )\n\t\t{\n\t\t\t$this->title .= ' - ' . \\IPS\\Settings::i()->board_name;\n\t\t}\n\t\t\n\t\t/* Add Admin-specified ones */\n\t\tif( !$this->metaTagsUrl )\n\t\t{\n\t\t\t$protocol = ( \\IPS\\Request::i()->isSecure() ) ? \"https://\" : \"http://\";\n\t\t\t$this->metaTagsUrl\t= \\IPS\\Http\\Url::external( $protocol . parse_url( \\IPS\\Settings::i()->base_url, PHP_URL_HOST ) . $_SERVER['REQUEST_URI'] );\n\t\t\t$this->metaTagsUrl\t= urldecode( mb_substr( (string) $this->metaTagsUrl, mb_strlen( \\IPS\\Settings::i()->base_url ) ) );\n\t\n\t\t\tif ( isset( \\IPS\\Data\\Store::i()->metaTags ) )\n\t\t\t{\n\t\t\t\t$rows = \\IPS\\Data\\Store::i()->metaTags;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$rows = iterator_to_array( \\IPS\\Db::i()->select( '*', 'core_seo_meta' ) );\n\t\t\t\t\\IPS\\Data\\Store::i()->metaTags = $rows;\n\t\t\t}\n\t\t\t\n\t\t\tif( is_array( $rows ) )\n\t\t\t{\n\t\t\t\tforeach ( $rows as $row )\n\t\t\t\t{\n\t\t\t\t\tif( \\strpos( $row['meta_url'], '*' ) !== FALSE )\n\t\t\t\t\t{\n\t\t\t\t\t\tif( preg_match( \"#^\" . str_replace( '*', '(.+?)', trim( $row['meta_url'], '/' ) ) . \"$#i\", trim( $this->metaTagsUrl, '/' ) ) )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$_tags\t= json_decode( $row['meta_tags'], TRUE );\n\t\t\n\t\t\t\t\t\t\tif( is_array( $_tags ) )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tforeach( $_tags as $_tagName => $_tagContent )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif( !isset( $this->metaTags[ $_tagName ] ) )\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$this->metaTags[ $_tagName ]\t= $_tagContent;\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\n\t\t\t\t\t\t\t/* Are we setting page title? */\n\t\t\t\t\t\t\tif( $row['meta_title'] )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$this->title\t\t\t= $row['meta_title'];\n\t\t\t\t\t\t\t\t$this->metaTagsTitle\t= $row['meta_title'];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif( trim( $row['meta_url'], '/' ) == trim( $this->metaTagsUrl, '/' ) )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$_tags\t= json_decode( $row['meta_tags'], TRUE );\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif ( is_array( $_tags ) )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tforeach( $_tags as $_tagName => $_tagContent )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$this->metaTags[ $_tagName ]\t= $_tagContent;\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\n\t\t\t\t\t\t\t/* Are we setting page title? */\n\t\t\t\t\t\t\tif( $row['meta_title'] )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$this->title\t\t\t= $row['meta_title'];\n\t\t\t\t\t\t\t\t$this->metaTagsTitle\t= $row['meta_title'];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function aggregateMetaDefinitions()\n\t{\n\t\t$writeYaml = new writeYaml();\n\n\t\t$metatabs = $writeYaml->getYaml('system' . DIRECTORY_SEPARATOR . 'author', 'metatabs.yaml');\n\n\t\t# load cached metadefinitions\n\t\t# check if valid\n\t\t# if not, refresh cache\n\n\t\t# loop through all plugins\n\t\tforeach($this->settings['plugins'] as $name => $plugin)\n\t\t{\n\t\t\tif($plugin['active'])\n\t\t\t{\n\t\t\t\t$pluginSettings = \\Typemill\\Settings::getObjectSettings('plugins', $name);\n\t\t\t\tif($pluginSettings && isset($pluginSettings['metatabs']))\n\t\t\t\t{\n\t\t\t\t\t$metatabs = array_merge_recursive($metatabs, $pluginSettings['metatabs']);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $metatabs;\n\t}", "private function set_metafile_fields(){\n\n\t\t\t// add more fields for your requierements\n $custom_fields = array( \n\t\t\t\t'field_name1'\t=> __( 'field name 1', self::$plugin_obj->class_name ),\n\t\t\t\t'field_name2'\t=> __( 'field name 2', self::$plugin_obj->class_name ),\n\t\t\t\t'field_name3'\t=> __( 'field name 3', self::$plugin_obj->class_name ),\n\t\t\t );\n\n\n foreach( $custom_fields as $custom_attrname => $custom_value){\n self::$metafile_fields->$custom_attrname = $custom_value;\n } \n\n }", "private function _createTable() {\n $query = \"\n CREATE TABLE `seo_metadata` (\n `metadata_id` int(11) NOT NULL auto_increment,\n `seo_id` char(60) NOT NULL,\n `seo_title` varchar(255) NOT NULL,\n `seo_description` varchar(255) NOT NULL,\n `seo_keyword` varchar(255) NOT NULL,\n PRIMARY KEY (`metadata_id`),\n KEY `id_idx` (`id`)\n )\";\n $this->getAdapter()->query( $query );\n }", "function the_meta()\n {\n }", "function post_meta_setup(){\n\t\t$type_meta_array = array(\n\t\t\t'settings' => array(\n\t\t\t\t'type' => 'multi_option',\n\t\t\t\t'title' => __( 'Single '.$this->single_up.' Options', 'pagelines' ),\n\t\t\t\t'shortexp' => __( 'Parameters', 'pagelines' ),\n\t\t\t\t'exp' => __( '<strong>Single '.$this->single_up.' Options</strong><br>Add '.$this->single_up.' Metadata that will be used on the page.<br><strong>HEADS UP:<strong> Each template uses different set of metadata. Check out <a href=\"http://bestrag.net/'.$this->multiple.'-lud\" target=\"_blank\">demo page</a> for more information.', 'pagelines' ),\n\t\t\t\t'selectvalues' => array(\n\t\t\t\t\t'client_name' => array(\n\t\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t\t'inputlabel' => __( 'Client Name', 'pagelines' )\n\t\t\t\t\t),\n\t\t\t\t\t'client_name_url' => array(\n\t\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t\t'inputlabel' => __( 'Client Name URL (eg: http://www.client.co)', 'pagelines' )\n\t\t\t\t\t),\n\t\t\t\t\t'partner' => array(\n\t\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t\t'inputlabel' => __( 'Partner Company Name', 'pagelines' )\n\t\t\t\t\t),\n\t\t\t\t\t'partner_url' => array(\n\t\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t\t'inputlabel' => __( 'Partner Company URL', 'pagelines' )\n\t\t\t\t\t),\n\t\t\t\t\t'project_slogan' => array(\n\t\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t\t'inputlabel' => __( 'Project Slogan', 'pagelines' )\n\t\t\t\t\t),\n\t\t\t\t\t'img1' => array(\n\t\t\t\t\t\t'inputlabel' => __( 'Associate an image with this '.$this->single, 'pagelines' ),\n\t\t\t\t\t\t'type' => 'thickbox_image'\n\t\t\t\t\t),\n\t\t\t\t\t'img2' => array(\n\t\t\t\t\t\t'inputlabel' => __( 'Associate an image with this '.$this->single, 'pagelines' ),\n\t\t\t\t\t\t'type' => 'thickbox_image'\n\t\t\t\t\t),\n\t\t\t\t\t'custom_text1' => array(\n\t\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t\t'inputlabel' => __( 'Custom Text/HTML/Shortcode 1', 'pagelines' )\n\t\t\t\t\t),\n\t\t\t\t\t'custom_text2' => array(\n\t\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t\t'inputlabel' => __( 'Custom Text/HTML/Shortcode 2', 'pagelines' )\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t)\n\t\t );\n\t\t$fields = $type_meta_array['settings']['selectvalues'];\n\t\t$figo = array(); $findex = 0;\n\n\t\tforeach ($fields as $key => $value) {\n\t\t\t$figo[$findex] = array(\n\t\t\t\t'name' => $value['inputlabel'],\n\t\t\t\t'id' => $key,\n\t\t\t\t'type' => $value['type'],\n\t\t\t\t'std' => '',\n\t\t\t\t'class' => 'custom-class',\n\t\t\t\t'clone' => false\n\t\t\t);\n\t\t\t$findex++;\n\t\t}\n\t\t$metabox = array(\n\t\t\t'id' => 'projectal',\n\t\t\t'title' => 'Projectal Information',\n\t\t\t'pages' => array( $this->multiple ),\n\t\t\t'context' => 'normal',\n\t\t\t'priority' => 'high',\n\t\t\t'fields' => $figo\n\t\t);\n\t\t new RW_Meta_Box($metabox);\n\t}", "public function generate() {\n\t\t$data = [\n\t\t\t'@type' => $this->determine_page_type(),\n\t\t\t'@id' => $this->context->canonical . WPSEO_Schema_IDs::WEBPAGE_HASH,\n\t\t\t'url' => $this->context->canonical,\n\t\t\t'name' => $this->context->title,\n\t\t\t'isPartOf' => [\n\t\t\t\t'@id' => $this->context->site_url . WPSEO_Schema_IDs::WEBSITE_HASH,\n\t\t\t],\n\t\t];\n\n\t\t$data = WPSEO_Schema_Utils::add_piece_language( $data );\n\n\t\tif ( is_front_page() ) {\n\t\t\tif ( $this->context->site_represents_reference ) {\n\t\t\t\t$data['about'] = $this->context->site_represents_reference;\n\t\t\t}\n\t\t}\n\n\t\tif ( is_singular() ) {\n\t\t\t$this->add_image( $data );\n\n\t\t\t$post = get_post( $this->context->id );\n\t\t\t$data['datePublished'] = $this->date->format( $post->post_date_gmt );\n\t\t\t$data['dateModified'] = $this->date->format( $post->post_modified_gmt );\n\n\t\t\tif ( get_post_type( $post ) === 'post' ) {\n\t\t\t\t$data = $this->add_author( $data, $post );\n\t\t\t}\n\t\t}\n\n\t\tif ( ! empty( $this->context->description ) ) {\n\t\t\t$data['description'] = strip_tags( $this->context->description, '<h1><h2><h3><h4><h5><h6><br><ol><ul><li><a><p><b><strong><i><em>' );\n\t\t}\n\n\t\tif ( $this->add_breadcrumbs() ) {\n\t\t\t$data['breadcrumb'] = [\n\t\t\t\t'@id' => $this->context->canonical . WPSEO_Schema_IDs::BREADCRUMB_HASH,\n\t\t\t];\n\t\t}\n\n\t\t$data = $this->add_potential_action( $data );\n\n\t\treturn $data;\n\t}", "function get_metadata($meta_type, $object_id, $meta_key = '', $single = \\false)\n {\n }", "function getmeta($params) {\n\t\trequire_once('deriveMetaData.class.php');\n\t\t$dbh = getConnection('ID');\n\t\t$getMeta = new DeriveMetaData();\n\t\t$getMeta->setdbh($dbh);\n\t\t$getMeta->setSQL($params->query);\n\t\t$retval = new \\stdClass();\n\t\t$retval->metaData = $getMeta->getPHPObject();\n\t\treturn $retval;\n}", "public function addMeta(Meta $meta) {\n $this->meta[$meta->getName()] = $meta;\n }", "function vulcan_page_meta_boxes() {\r\r\n $meta_boxes = array(\r\r\n \"short_desc\" => array(\r\r\n \"name\" => \"short_desc\",\r\r\n \"title\" => \"Short Description\",\r\r\n \"description\" => \"Add short description to your pages.\",\r\r\n \"type\" => \"textarea\"\r\r\n ),\r\r\n \"page_thumbnail_image\" => array(\r\r\n \"name\" => \"page_thumbnail_image\",\r\r\n \"title\" => \"Thumbnail Image\",\r\r\n \"description\" => \"Add thumbnail image url, will be use for your page thumbnail, for example in Services child pages list.\",\r\r\n \"type\" => \"text\"\r\r\n )\r\r\n );\r\r\n \r\r\n return $meta_boxes;\r\r\n}", "public function GenerateStructure() {\n // WRITE CONSTRUCTOR\n $this->writeLine(\n sprintf(\n '$return = new pdoMap_Dao_Metadata_Table(\n \\'%1$s\\',\\'%2$s\\',\\'%3$s\\',\n \\'%4$s\\',\\'%5$s\\',\\'%6$s\\');',\n $this->name, // adapter name\n $this->getTableName(), // table name\n $this->entity->getClassName(), // entity class name\n $this->getInterface(), // interface service name\n $this->getAdapterClassName(), // adapter class name (if set)\n $this->getUse() // database connection\n )\n );\n // WRITE PROPERTIES\n $this->entity->GenerateProperties(); \n $this->writeLine('return $return;');\n }", "public function run()\n {\n \n $metadata = Metadata::create([\n 'title' => '', \n 'author'=>'Sistema'\n ]);\n }", "public function add_meta( &$object, $meta );", "public function meta()\n {\n return array_merge(parent::meta(), [\n 'fields' => 'adasd'\n ]);\n }", "public function createMediaMeta($bind)\n{\n\n $this->create(\"tbl_mediameta\", [\n\n 'media_id' => $bind['media_id'],\n 'meta_key' => $bind['meta_key'],\n 'meta_value' => $bind['meta_value']\n\n ]);\n\n}", "protected function loadMetaData() {}", "public function createMeta($key, $value): void\n {\n /** @var HasMetadataInterface $this */\n $exists = Meta::metable(static::class, $this->id)\n ->where('key', $key)->exists();\n\n if ($exists) {\n $message = \"Can't create meta (key: $key). \";\n $message .= \"Meta already exists\";\n throw new \\Exception($message);\n }\n\n $meta = new Meta;\n\n $meta->key = $key;\n $meta->value = $value;\n\n $this->meta()->save($meta);\n }", "public static function generateMeta(array $data = [])\n {\n $array_meta = [];\n\n foreach ($data as $k => $v) {\n $array_meta[] = \"{$k} ='$v' \";\n }\n\n $meta = implode(' ', $array_meta);\n echo \"<meta {$meta} >\";\n }", "protected function createObjects() {\n\t\t$this->lblId = $this->mctHut->lblId_Create();\n\t\t$this->lstPosition = $this->mctHut->lstPosition_Create();\n\t\t$this->txtName = $this->mctHut->txtName_Create();\n\t}", "function add_metadata_taxonomies() {\n\t/*\n\tEducational use: http://schema.org/educationalUse e.g. http://purl.org/dcx/lrmi-vocabs/edUse/instruction\nEducational audience: http://schema.org/EducationalAudience e.g. http://purl.org/dcx/lrmi-vocabs/educationalAudienceRole/student\nInteractivity type: http://schema.org/interactivityType e.g. http://purl.org/dcx/lrmi-vocabs/interactivityType/expositive (active, expositive, or mixed)\nProficiency level: http://schema.org/proficiencyLevel (Beginner, Expert)\n\t*/\n\tadd_educational_use();\n\tadd_educational_audience();\n\tadd_interactivity_type();\n\tadd_proficiency_level();\n}", "public function testPresenceOfSeoMetaFieldsInFormAfterFormGeneration(){\n //Change the local configuration for next tests\n Centurion_Config_Manager::set('seo.meta.types', array('description', 'keywords'));\n\n $form = new Seotable_Form_Model_First();\n\n $elements = $form->getElements();\n $this->assertArrayHasKey(\n Seo_Traits_Form_Model::FORM_META_FIELDS_PREFIX.'description',\n $elements,\n 'Error, the trait Seo was not add the element \"description\" for the Form'\n );\n\n $this->assertArrayHasKey(\n Seo_Traits_Form_Model::FORM_META_FIELDS_PREFIX.'keywords',\n $elements,\n 'Error, the trait Seo was not add the element \"keywords\" for the Form'\n );\n\n $this->assertInstanceOf(\n 'Zend_Form_Element_TextArea',\n $elements[Seo_Traits_Form_Model::FORM_META_FIELDS_PREFIX.'description'],\n 'Error, the type of all Meta Fields in the form must be a textarea. It is not the case for \"description\"'\n );\n\n $this->assertInstanceOf(\n 'Zend_Form_Element_TextArea',\n $elements[Seo_Traits_Form_Model::FORM_META_FIELDS_PREFIX.'keywords'],\n 'Error, the type of all Meta Fields in the form must be a textarea. It is not the case for \"keywords\"'\n );\n\n $displayGroups = $form->getDisplayGroups();\n\n $this->assertArrayHasKey(\n Seo_Traits_Form_Model::FORM_META_DISPLAYGROUP_NAME,\n $displayGroups,\n 'Error, the trait Seo was not create the display group \"meta_display_group\" to store Metas Fields'\n );\n\n $dgElements = $displayGroups[Seo_Traits_Form_Model::FORM_META_DISPLAYGROUP_NAME]->getElements();\n $this->assertEquals(\n 2,\n count($dgElements),\n 'Error, the displaygroup to store Metas Fields must contains only fields for meta (aka description and keywords)'\n );\n\n $this->assertArrayHasKey(\n Seo_Traits_Form_Model::FORM_META_FIELDS_PREFIX.'description',\n $dgElements,\n 'Error, the trait Seo was not add the element \"description\" for the Form'\n );\n\n $this->assertArrayHasKey(\n Seo_Traits_Form_Model::FORM_META_FIELDS_PREFIX.'keywords',\n $dgElements,\n 'Error, the trait Seo was not add the element \"keywords\" for the Form'\n );\n }", "function fumseck_pagemeta() {\n\t\n\t// Initialize\n\t\n\t$output = '';\n\tglobal $post;\n\t$post_id = $post->ID;\n\t\n\t\n\t// Get metadata for the page from WordPress\n\t\n\t$post_title = get_the_title($post_id);\n\t$post_permalink = get_permalink($post_id);\n\t\n\t$post_has_featured_image = has_post_thumbnail( $post_id );\n\t\n\tif( $post_has_featured_image ) {\n\t\t$post_featured_image_large = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large'); // [URL, w, h, resized?]\n\t};\n\t\n\t$post_summary = wp_strip_all_tags( get_field( '_summary', $post_id, true ));\n\t\n\t\n\tif ( ! $post_summary ) {\t\t// if no summary, try a manual excerpt\n\t\t$post_summary = $post->post_excerpt;\n\t};\t// TODO: do something if there's no manual excerpt either\n\n\t\n\t// Static metadata\n\t\n\t$output .= '<meta name=\"twitter:site\" content=\"@gpaumier\"><meta name=\"twitter:creator\" content=\"@gpaumier\">';\t\n\t$output .= '<meta name=\"twitter:domain\" content=\"guillaumepaumier.com\">';\t\n\t$output .= '<meta property=\"fb:admins\" content=\"710543474\" />';\n\t//$output .= '<meta property=\"fb:admins\" content=\"579323492087704\" />';\n\t$output .= '<meta property=\"article:author\" content=\"https://www.facebook.com/gllmpmr\" />';\n\t$output .= '<meta property=\"article:publisher\" content=\"https://www.facebook.com/gllmpmr\" />';\n\t\n\t$output .= '<meta property=\"og:type\" content=\"article\" />'; // TODO: be more specific\n\t\n\t// Common metadata\n\t\n\t$output .= '<meta property=\"og:site_name\" content=\"' . get_bloginfo( 'name' ) . '\"/>';\n\t\n\t$output .= '<meta name=\"twitter:title\" content=\"' . $post_title . '\">';\n\t$output .= '<meta property=\"og:title\" content=\"' . $post_title . '\"/>';\n\t\n\t\n\t$output .= '<meta property=\"og:url\" content=\"' . $post_permalink . '\" />';\n\t\n\t\n\t$output .= '<meta property=\"og:description\" content=\"' . $post_summary . '\" />';\n\t\n\t// TODO: add locale\n\t\n\tif ( get_post_format( $post_id ) === 'image' ) {\n\t\t\n\t\t$output .= '<meta name=\"twitter:card\" content=\"photo\">';\n\t\t$output .= '<meta name=\"twitter:image\" content=\"' . $post_featured_image_large[0] . '\">';\n\t\t$output .= '<meta name=\"twitter:image:width\" content=\"' . $post_featured_image_large[1] . '\">';\n\t\t$output .= '<meta name=\"twitter:image:height\" content=\"' . $post_featured_image_large[2] . '\">';\n\t\t$output .= '<meta property=\"og:image:width\" content=\"' . $post_featured_image_large[1] . '\" />';\n\t\t$output .= '<meta property=\"og:image:height\" content=\"' . $post_featured_image_large[2] . '\" />';\n\t\t\n\t} else {\t// Not a photo\n\t\t\n\t\t$output .= '<meta name=\"twitter:description\" content=\"' . $post_summary . '\">';\n\t\t\n\t\tif( $post_has_featured_image ) {\n\t\t\t\n\t\t\t$output .= '<meta name=\"twitter:card\" content=\"summary_large_image\">';\n\t\t\t$output .= '<meta name=\"twitter:image:src\" content=\"' . $post_featured_image_large[0] . '\">';\n\t\t\t$output .= '<meta property=\"og:image\" content=\"' . $post_featured_image_large[0] . '\" />';\n\t\t\t$output .= '<meta property=\"og:image:width\" content=\"' . $post_featured_image_large[1] . '\" />';\n\t\t\t$output .= '<meta property=\"og:image:height\" content=\"' . $post_featured_image_large[2] . '\" />';\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\t$output .= '<meta name=\"twitter:card\" content=\"summary\">';\n\t\t}\n\t\t\n\t};\n\t\n\n\techo $output;\n}", "public function addMetadata()\n {\n $metadata = new clozetext_metadata();\n $metadata->set_distractor_rationale('It is a general feedback');\n return $metadata;\n }", "public function store(AbstractMeta $meta)\n {\n }", "public function add_meta() {\n\t\techo \"\\n<meta data-plugin='a04_vertical_button' name='description' content='a sample meta description for this website'/>\\n\\n\";\n\t}", "function gotravel_mikado_add_meta_box($attributes) {\n\t\t$scope = array();\n\t\t$title = '';\n\t\t$hidden_property = '';\n\t\t$hidden_values = array();\n\t\t$name = '';\n\n\t\textract($attributes);\n\n\t\tif(!empty($scope) && $title !== '' && $name !== '') {\n\t\t\t$meta_box_obj = new GoTravelMikadoMetaBox($scope, $title, $hidden_property, $hidden_values, $name);\n\t\t\tgotravel_mikado_framework()->mkdMetaBoxes->addMetaBox($name, $meta_box_obj);\n\n\t\t\treturn $meta_box_obj;\n\t\t}\n\n\t\treturn false;\n\t}", "public function __construct() {\n\t\t\t//$this->meta_description = \"<enter description>\";\n\t\t\t//$this->meta_keywords = \"<enter keywords>\";\t\n\t\t}", "function add_meta_obj($meta_name = null, $vocab = null, $text = null, $lang = null, $attrs = null) {\n array_push($this->meta_objs, new MetaObj($meta_name, $vocab, $text, $lang, $attrs));\n }", "public function metadata($type);", "private function prepareMeta() {\n\t\tif (is_array($this->meta) && count($this->meta)) {\n\t\t\tforeach ($this->meta as $label => $value) {\n\t\t\t\t$this->meta[$label] = str_replace(\"\\r\", '', str_replace(\"\\n\", '<br />', $value));\n\t\t\t}\n\t\t}\n\n\t\t// add generator string\n\t\t$this->meta['generator'] = 'LFEditor';\n\n\t\treturn $this->meta;\n\t}", "public function meta() {\n\t\treturn [\n\t\t\t'name' => 'Tab page',\n\t\t\t'description' => 'This is a tab page',\n\t\t\t'template' => 'pages/tab-page.php'\n\t\t];\n\t}", "public function _create_metadata($feedback_id) {\n //this creates metadata tag relationship between metadata and feedback\n if($post_metadata = $this->post_data->get('metadata')) { \n $this->dbh->query(\"SET foreign_key_checks = 0\");\n foreach($post_metadata as $data) {\n //this data goes into MetadataTags Table\n $metatags_insert_id = DB::Table('MetadataTags', 'master')->insert_get_id(Array(\n 'tagName' => $data['name']\n , 'tagValue' => $data['value']\n , 'tagType' => $data['type']\n ));\n //Feedback MetadataTags junction table\n DB::Table('FeedbackMetadataTagMap', 'master')->insert(Array(\n 'feedbackId' => $feedback_id\n , 'tagId' => $metatags_insert_id\n ));\n }\n $this->dbh->query(\"SET foreign_key_checks = 1\");\n } \n }", "public function read_meta( &$object );", "public function useMetaData()\n {\n $this->render();\n $metaData = $this->param('meta_data');\n if ($metaData) {\n if (!empty($metaData['layout.yml'])) {\n $layoutData = BYAML::i()->parse(trim($metaData['layout.yml']));\n BLayout::i()->addLayout('viewproxy-metadata', $layoutData)->applyLayout('viewproxy-metadata');\n }\n if (($head = $this->view('head'))) {\n foreach ($metaData as $k=>$v) {\n $k = strtolower($k);\n switch ($k) {\n case 'title':\n $head->addTitle($v); break;\n case 'meta_title': case 'meta_description': case 'meta_keywords':\n $head->meta(str_replace('meta_','',$k), $v); break;\n }\n }\n }\n }\n return $this;\n }", "private function import_metas() {\n\t\tWPSEO_Meta::replace_meta( '_aioseop_description', WPSEO_Meta::$meta_prefix . 'metadesc', false );\n\t\tWPSEO_Meta::replace_meta( '_aioseop_keywords', WPSEO_Meta::$meta_prefix . 'metakeywords', false );\n\t\tWPSEO_Meta::replace_meta( '_aioseop_title', WPSEO_Meta::$meta_prefix . 'title', false );\n\t}" ]
[ "0.7326244", "0.7054287", "0.67588043", "0.6650297", "0.6578447", "0.64957935", "0.64384145", "0.6429619", "0.64207697", "0.64207697", "0.64066815", "0.6364772", "0.6361225", "0.6340315", "0.62636006", "0.62346756", "0.6181033", "0.61781067", "0.61549956", "0.6140334", "0.61177766", "0.60993093", "0.6071315", "0.6071148", "0.60600734", "0.6042499", "0.6020201", "0.6005411", "0.6000593", "0.5987828", "0.59710723", "0.59665376", "0.59611243", "0.59356374", "0.5921424", "0.5899139", "0.5884079", "0.5876706", "0.5842", "0.5832734", "0.58317995", "0.58280134", "0.5819479", "0.5809928", "0.5807364", "0.5789053", "0.5775066", "0.57716554", "0.57698894", "0.5760842", "0.5733849", "0.57328445", "0.57206035", "0.5713782", "0.57035756", "0.56981844", "0.5694729", "0.5684666", "0.5671724", "0.56685346", "0.5659931", "0.5654006", "0.56416833", "0.5638607", "0.563409", "0.56325656", "0.5625929", "0.5594759", "0.5592947", "0.5581802", "0.5581301", "0.5577711", "0.55733967", "0.5568591", "0.5565654", "0.5543209", "0.55373925", "0.55365294", "0.5532776", "0.5531924", "0.5527302", "0.55213726", "0.5512887", "0.5511007", "0.5507036", "0.5504754", "0.5498528", "0.54983026", "0.5498228", "0.54974", "0.5494306", "0.5492874", "0.54918945", "0.5485708", "0.54807776", "0.5477685", "0.5474827", "0.5471886", "0.54655814", "0.5462459", "0.54536223" ]
0.0
-1
Create a select statement
public function select( IModel $target, $statement, array $parameters = null );
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract function getSelectStatement();", "protected abstract function getSelectStatement();", "public function createSelectSql(): \\Hx\\Db\\Sql\\SelectInterface;", "public function createSelect()\n {\n return $this->getConnection()->select();\n }", "protected function getSelect() {\n $oSql = new SqlSelect();\n $oSql->setEntity($this->Persistence->getTableName());\n $oSql->addColumn(implode(',', $this->getColumns()));\n $oSql->setCriteria($this->Criteria); \n return $oSql->getInstruction();\n }", "protected function getSelectStatement()\n {\n return \"SELECT BookID, ISBN10, ISBN13, Title, CopyrightYear, TrimSize, PageCountsEditorialEst\n as PageCount, Description, CoverImage, Status, Subcategories.SubcategoryID, SubcategoryName, Imprints.ImprintID, Imprint, BindingType FROM Books\n JOIN Statuses ON (Books.ProductionStatusID = Statuses.StatusID) JOIN Subcategories ON \n (Books.SubcategoryID = Subcategories.SubcategoryID) JOIN Imprints USING (ImprintID) JOIN BindingTypes USING (BindingTypeID)\";\n }", "protected function prepareSelectStatement() {}", "protected function RetSelect() {\n\n $return = \"SELECT\";\n\n if ($this->\n distinct) {\n\n $return .= \" DISTINCT\";\n }\n\n $columnsArr = [];\n\n foreach ($this->\n columns as $key => $value) {\n\n if (is_string($value)) {\n\n $columnsArr[] = $value;\n } else if (isset($value['subquery']) &&\n $value['subquery'] instanceof \\FluitoPHP\\Database\\DBQueryHelper &&\n $value['subquery']->\n IsSelect()) {\n\n $columnsArr[] = \"(\" . $value['subquery']->\n Generate() . \")\" . (isset($value['label']) &&\n is_string($value['label']) ? \" AS \\\"{$value['label']}\\\"\" : \"\");\n } else if (isset($value['value'])) {\n\n $columnsArr[] = \"'{$value['value']}'\" . (isset($value['label']) &&\n is_string($value['label']) ? \" AS \\\"{$value['label']}\\\"\" : \"\");\n } else {\n\n $columnsArr[] = \"{$value['column']}\" . (isset($value['label']) &&\n is_string($value['label']) ? \" AS \\\"{$value['label']}\\\"\" : \"\");\n }\n }\n\n if (count($columnsArr)) {\n\n $return .= \" \" . implode($columnsArr, \", \");\n } else {\n\n $return .= \" *\";\n }\n\n\n $tablesStr = \"\";\n\n foreach ($this->\n tables as $key => $value) {\n\n if (is_string($value)) {\n\n $tablesStr .= \", $value\";\n } else {\n\n if (!(isset($value['table']) &&\n $value['table'] != \"\") &&\n isset($value['subquery']) &&\n $value['subquery'] instanceof \\FluitoPHP\\Database\\DBQueryHelper &&\n $value['subquery']->\n IsSelect()) {\n\n $value['table'] = \"(\" . rtrim($value['subquery']->\n Generate(), ';') . \")\";\n\n if (!isset($value['alias'])) {\n\n throw new \\Exception(\"Error: Alias required in case of subquery to be used in from clause.\");\n }\n } else {\n\n $value['table'] = \"{$value['table']}\";\n }\n\n if (isset($value['alias'])) {\n\n $value['alias'] = \"`{$value['alias']}`\";\n }\n\n if (!isset($value['table']) ||\n $value['table'] == \"\") {\n\n throw new \\Exception(\"Error: Tables not properly provided in QueryHelper.\");\n }\n\n if (!isset($value['jointype'])) {\n\n $tablesStr .= \", \" . $value['table'];\n\n if (isset($value['alias'])) {\n\n $tablesStr .= \" AS \" . $value['alias'];\n }\n } else {\n\n switch ($value['jointype']) {\n case 'j':\n\n $tablesStr .= \" JOIN \" . $value['table'];\n break;\n\n case 'ij':\n\n $tablesStr .= \" INNER JOIN \" . $value['table'];\n break;\n\n case 'cj':\n\n $tablesStr .= \" CROSS JOIN \" . $value['table'];\n break;\n\n case 'sj':\n\n $tablesStr .= \" STRAIGHT_JOIN \" . $value['table'];\n break;\n\n case 'lj':\n\n $tablesStr .= \" LEFT JOIN \" . $value['table'];\n break;\n\n case 'rj':\n\n $tablesStr .= \" RIGHT JOIN \" . $value['table'];\n break;\n\n case 'nj':\n\n $tablesStr .= \" NATURAL JOIN \" . $value['table'];\n break;\n\n case 'nlj':\n\n $tablesStr .= \" NATURAL LEFT JOIN \" . $value['table'];\n break;\n\n case 'nrj':\n\n $tablesStr .= \" NATURAL RIGHT JOIN \" . $value['table'];\n break;\n\n case 'loj':\n\n $tablesStr .= \" LEFT OUTER JOIN \" . $value['table'];\n break;\n\n case 'roj':\n\n $tablesStr .= \" RIGHT OUTER JOIN \" . $value['table'];\n break;\n\n case 'nloj':\n\n $tablesStr .= \" NATURAL LEFT OUTER JOIN \" . $value['table'];\n break;\n\n case 'nroj':\n\n $tablesStr .= \" NATURAL RIGHT OUTER JOIN \" . $value['table'];\n break;\n\n default:\n break;\n }\n\n if (isset($value['alias'])) {\n\n $tablesStr .= \" AS \" . $value['alias'];\n }\n\n if (isset($value['joinconditions']) &&\n count($value['joinconditions'])) {\n\n $tablesStr .= $this->\n WhereClause($value['joinconditions'], 1);\n }\n }\n }\n }\n\n $return .= \" FROM \" . ltrim($tablesStr, \", \");\n\n\n if (count($this->\n where)) {\n\n $return .= $this->\n WhereClause($this->\n where);\n }\n\n\n $groupsArr = [];\n\n foreach ($this->\n group as $key => $value) {\n\n if (is_string($value)) {\n\n $groupsArr[] = \"{$value}\";\n } else if (isset($value['subquery']) &&\n $value['subquery'] instanceof \\FluitoPHP\\Database\\DBQueryHelper &&\n $value['subquery']->\n IsSelect()) {\n\n $groupsArr[] = \"(\" . rtrim($value['subquery']->\n Generate(), ';') . \")\";\n } else if (isset($value['value'])) {\n\n $value['value'] = $this->\n connection->\n GetConn()->\n real_escape_string($value['value']);\n $groupsArr[] = \"'{$value['value']}'\";\n } else {\n\n $groupsArr[] = \"{$value['column']}\";\n }\n }\n\n if (count($groupsArr)) {\n\n $return .= \" GROUP BY \" . implode($groupsArr, \", \");\n }\n\n\n if (count($this->\n having)) {\n\n $return .= $this->\n WhereClause($this->\n having, 2);\n }\n\n\n $ordersArr = [];\n\n foreach ($this->\n order as $key => $value) {\n\n if (is_string($value)) {\n\n $ordersArr[] = $value;\n } else if (isset($value['subquery']) &&\n $value['subquery'] instanceof \\FluitoPHP\\Database\\DBQueryHelper &&\n $value['subquery']->\n IsSelect()) {\n\n $ordersArr[] = \"(\" . rtrim($value['subquery']->\n Generate(), ';') . \")\" . (isset($value['type']) &&\n $value['type'] == 'd' ? \" DESC\" : \"\");\n } else if (isset($value['value'])) {\n\n $ordersArr[] = \"'{$value['value']}'\" . (isset($value['type']) &&\n $value['type'] == 'd' ? \" DESC\" : \"\");\n } else {\n\n $ordersArr[] = \"{$value['column']}\" . (isset($value['type']) &&\n $value['type'] == 'd' ? \" DESC\" : \"\");\n }\n }\n\n if (count($ordersArr)) {\n\n $return .= \" ORDER BY \" . implode($ordersArr, \", \");\n }\n\n if ($this->\n perpage > 0) {\n\n if ($this->\n page < 1) {\n\n $this->\n page = 1;\n }\n\n $startcount = $this->\n perpage * ($this->\n page - 1);\n\n $return .= \" LIMIT {$startcount}, {$this->\n perpage}\";\n }\n\n return $return . \";\";\n }", "public function select($params){\n\t\t$DB = Registry::getInstance()->DB;\n\t\t$prefix = \"SELECT \";\n\t\t$p = $this->clean($params);\n\t\t$statement = $prefix.\" \".$this->genFrom($p['cols']).\" \".$this->genTable($p['tables']).$this->genWhere($p['where']);\t\n\t\treturn $DB->select($statement);\t\n\t}", "protected abstract function getSelectStatement(array $columns);", "protected function _authenticateCreateSelect()\n {\n // build credential expression\n if (empty($this->_credentialTreatment)\n || (strpos($this->_credentialTreatment, \"?\") === false)\n ) {\n $this->_credentialTreatment = '?';\n }\n\n $credentialExpression = \n '(CASE WHEN ' . \n $this->_db->escape($this->_credentialColumn, true)\n . ' = ' . $this->_credentialTreatment \n . ' THEN 1 ELSE 0 END) AS '\n . $this->_db->escape('zend_auth_credential_match', true);\n\n // get select\n \n $dbSelect = \"SELECT *, $credentialExpression \" \n . \" FROM \" . $this->_tableName\n . ' WHERE '\n . $this->_db->escape($this->_identityColumn, true) . ' = ?';\n if ($this->_conditionStatement) { \n $dbSelect .= ' AND ' . $this->_conditionStatement;\n }\n return $dbSelect;\n }", "public function get_select()\n {\n $flags = $this->sql_no_cache ? 'sql_no_cache' : '';\n $flags .= $this->sql_calc_found ? 'sql_calc_found_rows' : '';\n\n $fields_table = $this->alias ? $this->alias: self::quote_name($this->table);\n\n $fields = $this->fields ? join(', ', $this->fields): $fields_table.'.*';\n $from = $this->get_from();\n $join = $this->get_join();\n $where = $this->get_where();\n $having = $this->get_having();\n $order = $this->get_order();\n $group = $this->get_group();\n $limit = $this->get_limit();\n $mode = $this->for_update ? 'for update': '';\n $mode = $this->share_mode ? 'lock in share mode': '';\n // MySQL runs a needless filesort when grouping without an order clause. disable it.\n if ($group && !$order) $order = 'order by null';\n return \"select $flags $fields $from $join $where $group $having $order $limit $mode\";\n }", "private function __select() {\n $from_str = $this->getFromStr();\n $field = $this->field_str;\n if (empty($field)) {\n $field = '*';\n }\n $sql = \"SELECT {$field} FROM {$from_str}\";\n if (!empty($this->join_str_list)) {\n $temp = implode(' ', $this->join_str_list);\n $sql .= \" {$temp}\";\n }\n if (!empty($this->where_str)) {\n $sql .= \" WHERE {$this->where_str}\";\n }\n if (!empty($this->group_str)) {\n $sql .= \" GROUP BY {$this->group_str}\";\n }\n if (!empty($this->order_str)) {\n $sql .= \" ORDER BY {$this->order_str}\";\n }\n if (!empty($this->limit_str)) {\n $sql .= \" LIMIT {$this->limit_str}\";\n }\n $list = $this->query($sql);\n return $list;\n }", "protected function _sql_select ( /* void */ )\n {\n /*\n Start SQL query.\n */\n $sql = ($this->bDistinct) ? 'SELECT DISTINCT ' : 'SELECT ';\n /*\n Select which fields ?\n */\n $sql .= (empty($this->aFields)) ? '*' : implode(', ', $this->aFields);\n /*\n From which tables ?\n */\n $sql .= (empty($this->aTables)) ? '' : \"\\nFROM \" . implode(', ', $this->aTables);\n /*\n Join something ?\n */\n if (!empty($this->aJoin))\n {\n foreach ($this->aJoin as $j)\n {\n $sql .= \"\\n{$j[0]} JOIN {$j[1]} ON {$j[2]}\";\n }\n }\n /*\n Where ?\n */\n if (!empty($this->aWhere))\n {\n $sql .= \"\\nWHERE \" . implode(\"\\n\", $this->aWhere);\n $sql .= (!empty($this->aLike)) ? implode(\"\\n\", $this->aLike) : '';\n }\n elseif (!empty($this->aLike))\n {\n $sql .= \"\\nWHERE \" . implode(\"\\n\", $this->aLike);\n }\n /*\n Group by ?\n */\n if (!empty($this->aGroupBy))\n {\n $sql .= \"\\nGROUP BY \" . implode(', ', $this->aGroupBy);\n }\n /*\n Having ?\n */\n if (!empty($this->aHaving))\n {\n $sql .= \"\\nHAVING \";\n foreach ($this->aHaving as $i)\n {\n $sql .= \"\\n{$i[0]}{$i[1]} {$i[2]}\";\n }\n }\n /*\n Order by ?\n */\n if (!empty($this->aOrderBy))\n {\n $sql .= \"\\nORDER BY \";\n foreach ($this->aOrderBy as $i)\n {\n $sql .= \"{$i[0]} {$i[1]}, \";\n }\n $sql = trim($sql, ', ');\n }\n /*\n Query limit ?\n */\n if ($this->nLimit !== false)\n {\n if ($this->nOffset !== false)\n {\n $sql .= \"\\nLIMIT \" . $this->nOffset . ', ' . $this->nLimit;\n }\n else\n {\n $sql .= \"\\nLIMIT 0, \" . $this->nLimit;\n }\n }\n /*\n Return SQL.\n */\n return $sql;\n }", "public function select()\n {\n return $this->_db->factory('select', $this);\n }", "public function select();", "public function select();", "public function select();", "public function sql() {\n\t\t$sqlT = \\lulo\\twig\\TwigTemplate::factoryHtmlResource(\\lulo\\query\\Query::PATH . \"/select/query.twig.sql\");\n\t\treturn $sqlT->render([\"query\" => $this]);\n\t}", "private function buildSelectString () \n {\n $this->selectSql = \"SELECT \";\n $this->selectSql .= $this->columns;\n $this->selectSql .= \" FROM \" . $this->tableName;\n if ($this->where !== null && $this->where !== \"\") {\n $this->selectSql .= \" WHERE \" . $this->where;\n }\n if ($this->order !== null && $this->order !== \"\") {\n $this->selectSql .= \" ORDER BY \" . $this->order;\n }\n if ($this->other !== null && $this->other !== \"\") {\n $this->selectSql .= $this->other;\n }\n }", "public function generateSqlSelectStatement() {\n $subReport = $this->reportDefinition->getCurrentSubReport();\n\n $this->reportDefinition->resetDisplayGroup();\n\n $displayGroups = $this->reportDefinition->getDisplayGroups($subReport);\n if (is_null($displayGroups)) {\n throw new ReportException(\"Invalid XML Definition!!! ( DisplayGroups should be defined )\");\n }\n\n $displayGroup = $this->reportDefinition->getCurrentDisplayGroup($displayGroups);\n if (is_null($displayGroup)) {\n throw new ReportException(\"Invalid XML Definition!!! ( At least one display group should be defined )\");\n }\n\n $selectStatement = \"SELECT \";\n\n while (!is_null($displayGroup)) {\n\n $displayGroupType = $this->reportDefinition->getDisplayGroupType($displayGroup);\n if (is_null($displayGroupType) || empty($displayGroupType)) {\n throw new ReportException(\"Invalid XML Definition!!! ( Display Group Type is not defined )\");\n }\n\n if ($displayGroupType == self::DISPLAY_GROUP_TYPE_ONE) {\n\n $this->reportDefinition->resetField();\n $fields = $this->reportDefinition->getFields($displayGroup);\n\n if (is_null($fields)) {\n throw new ReportException(\"Invalid XML Definition!!! ( There are no fields defined )\");\n }\n\n $field = $this->reportDefinition->getCurrentField($fields);\n if (is_null($field)) {\n throw new ReportException(\"Invalid XML Definition!!! ( There is no field defined )\");\n }\n\n $firstRound = TRUE;\n while (!is_null($field)) {\n\n if (!$firstRound) {\n $selectStatement .= \",\";\n } else {\n $firstRound = FALSE;\n }\n\n $fieldName = $this->reportDefinition->getFieldName($field);\n if (is_null($fieldName) || empty($fieldName)) {\n throw new ReportException(\"Invalid XML Definition!!! ( A field should have a name )\");\n }\n\n $fieldAlias = $this->reportDefinition->getFieldAlias($field);\n\n if ($fieldAlias != \"\") {\n $fieldName = $fieldName . \" AS \" . $fieldAlias . \" \";\n }\n\n $selectStatement = $selectStatement . \" \" . $fieldName;\n\n $field = $this->reportDefinition->getNextField($fields);\n }\n } else if ($displayGroupType == self::DISPLAY_GROUP_TYPE_Many) {\n\n $this->reportDefinition->resetField();\n $fields = $this->reportDefinition->getFields($displayGroup);\n if (is_null($fields)) {\n throw new ReportException(\"Invalid XML Definition!!! ( There are no fields defined )\");\n }\n\n $field = $this->reportDefinition->getCurrentField($fields);\n if (is_null($field)) {\n throw new ReportException(\"Invalid XML Definition!!! ( There is no field defined )\");\n }\n\n $displayGroupName = $this->reportDefinition->getDisplayGroupName($displayGroup);\n if (is_null($displayGroupName) || empty($displayGroupName)) {\n throw new ReportException(\"Invalid XML Definition!!! ( Display group name is not defined )\");\n }\n\n $groupConcat = \"GROUP_CONCAT(DISTINCT CONCAT_WS('|^^|'\";\n\n while (!is_null($field)) {\n $fieldName = $this->reportDefinition->getFieldName($field);\n if (is_null($fieldName) || empty($fieldName)) {\n throw new ReportException(\"Invalid XML Definition!!! ( A field should have a name )\");\n }\n\n $groupConcat = $groupConcat . \", (CASE WHEN \" . $fieldName . \" IS NULL OR \" . $fieldName . \" = ' ' THEN '\" . self::EMPTY_FIELD_FILL . \"' ELSE \" . $fieldName . \" END )\";\n\n $field = $this->reportDefinition->getNextField($fields);\n }\n\n $groupConcat = $groupConcat . \") SEPARATOR '\" . self::SEPERATOR . \"')\";\n $selectStatement = $selectStatement . \" , \" . $groupConcat . \" AS \" . $displayGroupName;\n } else {\n throw new ReportException(\"Invalid XML Definition!!! ( Invalid group type ) \");\n }\n\n $displayGroup = $this->reportDefinition->getNextDisplayGroup($displayGroups);\n }\n\n $this->reportDefinition->resetField();\n $this->reportDefinition->resetDisplayGroup();\n return $selectStatement;\n }", "function SelectSQL() {\n\t\t$sFilter = $this->getSessionWhere();\n\t\tew_AddFilter($sFilter, $this->CurrentFilter);\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\n\t\t$this->Recordset_Selecting($sFilter);\n\t\t$sSort = $this->getSessionOrderBy();\n\t\treturn ew_BuildSelectSql($this->getSqlSelect(), $this->getSqlWhere(), $this->getSqlGroupBy(),\n\t\t\t$this->getSqlHaving(), $this->getSqlOrderBy(), $sFilter, $sSort);\n\t}", "function SelectSQL() {\n\t\t$sFilter = $this->getSessionWhere();\n\t\tew_AddFilter($sFilter, $this->CurrentFilter);\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\n\t\t$this->Recordset_Selecting($sFilter);\n\t\t$sSort = $this->getSessionOrderBy();\n\t\treturn ew_BuildSelectSql($this->getSqlSelect(), $this->getSqlWhere(), $this->getSqlGroupBy(),\n\t\t\t$this->getSqlHaving(), $this->getSqlOrderBy(), $sFilter, $sSort);\n\t}", "protected static function buildSelectionQuery() \n {\n return Query::select()->\n from(self::getTableName());\n }", "function select() {\n return \"\n contact_a.id AS contact_id,\n contact_a.contact_sub_type AS contact_sub_type,\n contact_a.sort_name AS sort_name,\n source,\n created_date,\n modified_date\n \";\n }", "protected function getSelectStatement() {\n return \"SELECT PostID, UserID, MainPostImage, Title, Message, PostTime\n FROM Posts\";\n }", "abstract public function prepareSelect();", "function getSelectSql()\n {\n $str = \"SELECT * FROM \";\n if (isset($this->schema))\n $str = $str . $this->schema . \".\";\n\n $str = $str . $this->tblName . \" WHERE \" . $this->getWhereCondition($this->tblIndex);\n return $str;\n }", "function _select ($table_name, $select_column_names, $distinct = FALSE) {\n\t\t$statement = $distinct ? 'SELECT DISTINCT ' : 'SELECT ';\n\t\tif ( isset($select_column_names) && $select_column_names ) {\n\t\t\t$count_select_column_names = count($select_column_names);\n\t\t\tfor ($pointer = 0; $pointer < $count_select_column_names; $pointer++) { \n\t\t\t\tif ($pointer == $count_select_column_names - 1 ) {\n\t\t\t\t\t$statement .= '`' . $select_column_names[$pointer] . '` ';\n\t\t\t\t} else {\n\t\t\t\t\t$statement .= '`' . $select_column_names[$pointer] . \"`, \";\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$statement .= \"* \";\n\t\t}\n\t\t$statement .= \"FROM `{$table_name}` \" ;\n\t\treturn $statement;\n\t}", "public function select($table, $fields, $where, $order, $start);", "static public function GenerateBaseSelectClause()\r\n\t{\r\n\t\t$returnValue = \"\tSELECT\ta.TagID,\r\n\t\t\t\t\t\t\t\t\t\ta.TagText \";\r\n\r\n\t\treturn $returnValue;\r\n\t}", "public function selectQuery($sql_stmt)\n {\n return DB::select($sql_stmt);\n }", "function SelectSQL() {\n\t\t$sFilter = $this->getSessionWhere();\n\t\tif ($this->CurrentFilter <> \"\") {\n\t\t\tif ($sFilter <> \"\") $sFilter = \"(\" . $sFilter . \") AND \";\n\t\t\t$sFilter .= \"(\" . $this->CurrentFilter . \")\";\n\t\t}\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\n\t\t$sSort = $this->getSessionOrderBy();\n\t\treturn ew_BuildSelectSql($this->SqlSelect(), $this->SqlWhere(), $this->SqlGroupBy(),\n\t\t\t$this->SqlHaving(), $this->SqlOrderBy(), $sFilter, $sSort);\n\t}", "private function GeneraSelectQuery($fields,$where)\r\n\t{\r\n\t\t$sql=\"select \r\n\t\t\t\".$fields.\" \r\n\t\t\tfrom Tabla\r\n\t\t\tinner join Tabla1 on Tabla1.id=Tabla.idTabla1\r\n\t\t\t\".(($where)?\" WHERE \".$where:\"\");\r\n\t\treturn $sql;\r\n\t}", "protected function runSelect()\n {\n return $this->connection->select(\n $this->toSql(),\n $this->getBindings(),\n $this->option->setUseWrite($this->useWritePdo)\n );\n }", "function select() {\n return \"\n contact_a.id as contact_id ,\n contact_a.contact_type as contact_type,\n contact_a.sort_name as sort_name,\n contact_a.job_title as job_title,\n contact_a.organization_name as current_employer\n \";\n }", "protected function buildSelectClause() {\r\n\t\t$sql='';\r\n\t\t$fields=array();\r\n\t\tforeach($this->_salt_fields as $data) {\r\n\t\t\t/** @var SqlExpr $expr */\r\n\t\t\tlist($expr, $alias) = $data;\r\n\r\n\t\t\t$fields[]=$expr->toSQL().' as '.self::escapeName($alias);\r\n\t\t\t$this->linkBindsOf($expr, ClauseType::SELECT);\r\n\t\t}\r\n\t\t$sql.=implode(', ', $fields);\r\n\t\treturn $sql;\r\n\t}", "public function select()\n\t{\n\t\treturn call_user_func_array([$this->queryFactory->__invoke('select'), 'select'], func_get_args());\n\t}", "function buildSelect($db_name,$table_name,$columns,$where_select){\n\n\t$query_select = \"SELECT \";\n\t//FILL COLUMNS FOR GET\n\tforeach ($columns as $c) {\n\t\t$query_select .= $c;\n\t\tif(array_search($c,$columns) != count($columns) - 1) $query_select .= \",\";\n\t}\n\tif($where_select != \"*\"){//GET \n\t\t//INTERMEDIATE\n\t\t$query_select .= \" FROM $table_name WHERE \";\n\t\t//FILL VALUES WHERE\n\t\tend($where_select);\n\t\t$last_key = key($where_select);\n\t\tforeach ($where_select as $key => $value) {\n\t\t\t$query_select .= $key . \"=\" . \":\" . $key;\n\t\t\tif($key != $last_key) $query_select .= \" AND \";\n\t\t}\n\t\texecuteQuery(\"USE $db_name\");\n\t\treturn executeQuery($query_select,$where_select);\n\t}\n\telse{//GET ALL SELECT\n\t\t//INTERMEDIATE\n\t\t$query_select .= \" FROM $table_name\";\n\t\texecuteQuery(\"USE $db_name\");\n\t\treturn executeQuery($query_select,\"*\");\n\t}\n\n}", "public function select()\n {\n $cols = $this->getColsAsFields();\n return $this->gateway->select($cols);\n }", "public function select($what = \"*\"){\n\t\t\tif(is_string($what)){\n\t\t\t\t$this->select = \"SELECT \" . $what . \" FROM \" . $this->table;\n\t\t\t}else{\n\t\t\t\t$this->select = false;\n\t\t\t}\n\t\t\treturn $this;\n\t\t}", "public function select(?string $template = null): Query\n {\n if ($this->queryType !== self::SELECT) {\n $this->resetStatement();\n $this->queryType = self::SELECT;\n }\n return $this->template($template ?? 'SELECT {{columns}} FROM {{tables}} {{where}} {{sort}} {{pagination}}');\n }", "function adv_select($table, array $where = null, array $fields = null, $order = '', $limit = null, $offset = null);", "protected function runSelectWithMeta()\n {\n return $this->connection->selectWithMeta(\n $this->toSql(),\n $this->getBindings(),\n ! $this->useWritePdo\n );\n }", "public function select($fields=null) { if ($fields) $this->fields($fields); return $this->execute($this->get_select()); }", "public function PgSelect($sql){\n $this->StartBD();\n $this->SQuery = $this->PgQuery($sql);\n if (!$this->SQuery){\n die(\"SELECT Erroneo!\");\n }\n $this->EndBD();\n }", "public function testInitialSelectStatement()\n {\n $method = $this->builder_reflection->getMethod('sql_select_statement');\n $method->setAccessible(TRUE);\n\n $property = $this->builder_reflection->getProperty('select_statement');\n $property->setAccessible(TRUE);\n\n $method->invokeArgs($this->builder, array('SELECT * FROM table1'));\n\n $string = 'SELECT * FROM table1';\n\n $this->assertEquals($string, $property->getValue($this->builder));\n }", "protected function buildValuesFromSelect(): string\n {\n $sql = '';\n\n // Check for a SELECT statement and append if available\n if ( isset($this->select) )\n {\n $sql .= $this->indentStatement($this->select, 1);\n\n $this->mergeBindings($this->select);\n }\n\n return $sql;\n }", "protected static function select()\n {\n }", "public function select($values = array(\"*\")){\n\t\t\t$string = self::SELECT;\n\n\t\t\t$string .= ' ' . (count($values) > 1 ? implode(', ', $values) : $values[0]);\n\t\t\t\n\t\t\t$this->_query = $string . ' ';\n\t\t\treturn $this->_returnObject ? $this : $string;\n\t\t}", "static function custom_get_sql() {\n # this is the default functionality\n $table = static::get_tablename();\n return \"select * from $table\";\n }", "function oracle9_test_select() {\n\t $sSQL = \"SELECT MCIID,CODCODE,ITMNAME,ITMACTIVE, DFTID FROM STI WHERE CODCODE='70129'\";\n\t echo $sSQL,\"<br>\";\n\t \n\t $result = $this->ora_con->Execute($sSQL);\n\t \n\t //print_r($result);\n\t $i=0;\n\t while(!$result->EOF) {\n\t echo \"<br>\",$result->fields[2];\n\t\t $result->MoveNext();\n\t\t $i+=1;\n\t }\n\t echo '>>>',$this->ora_con->ErrorMsg();\n\t}", "public function getStatement();", "public function getStatement();", "public function getStatement();", "final public static function toSQL()\n {\n $select = false;\n foreach (self::$starts as $reserved) {\n if (strpos(self::$query, $reserved . ' ') === 0) {\n $select = true;\n break;\n }\n }\n\n if (!$select) {\n self::$query = \"SELECT * FROM \" . self::tableName() . self::$query;\n }\n\n\n $values = [];\n for ($i = 0; $i < sizeof(self::$bindParams); $i++) {\n foreach (self::$bindParams[$i] as $item) {\n $values[] = $item;\n }\n }\n\n if (sizeof($values) > 0) {\n $query = self::$query;\n self::$query = \"\";\n self::$where = false;\n self::$bindParams = array();\n $query = str_replace(\"?\", \"#%s#\", $query);\n $query = sprintf($query, ...$values);\n $query = str_replace(\"#\", \"'\", $query);\n return sprintf($query, ...$values);\n }\n return self::$query;\n }", "static public function GenerateBaseSelectClause()\n\t{\n\t\t$returnValue = \"\tSELECT\ta.MerchantAccountID,\n\t\t\t\t\t\t\t\t\t\ta.Name,\n\t\t\t\t\t\t\t\t\t\ta.ProcessorClassName,\n\t\t\t\t\t\t\t\t\t\ta.IsAvailable,\n\t\t\t\t\t\t\t\t\t\tb.TransactionFee,\n\t\t\t\t\t\t\t\t\t\tb.DiscountPercent,\n\t\t\t\t\t\t\t\t\t\tb.AccountID \";\n\n\t\treturn $returnValue;\n\t}", "function select($fields = NULL)\n {\n // Create a fresh slate\n $this->object->_init();\n if (!$fields or $fields == '*') {\n $fields = $this->get_table_name() . '.*';\n }\n $this->object->_select_clause = \"SELECT {$fields}\";\n return $this->object;\n }", "public function select(string $table, string $columns, string $where = \"\", array $bindings = array()): PDOStatement;", "private function Select()\n {\n $return = false;\n $action = $this->Action();\n $columns = $this->Columns();\n $table = $this->Table();\n $where = (Checker::isArray($this->Where(), false))?$this->Where():array(Where::QUERY => \"\", Where::VALUES => array());\n $order = (Checker::isString($this->Order()))?$this->Order():\"\";\n $limit = (Checker::isInt($this->Limit()))?\" LIMIT \".$this->Limit():\"\";\n if($columns && $table && Checker::isArray($where, false))\n {\n $return[Where::QUERY] = \"$action $columns FROM $table\".$where[Where::QUERY].\"$order$limit\";\n\n if(Checker::isArray($where, false) && isset($where[Where::VALUES])) $return[Where::VALUES] = $where[Where::VALUES];\n else $return[Where::VALUES] = array();\n }\n return $return;\n }", "static function select($sql, $params = array()) {\n $sth = static::execute($sql, $params);\n\n $result = $sth->fetchAll();\n\n return $result;\n }", "public function select($values = []) {\r\n\t\t$_fields = implode(\",\", $this->clausules['fields']);\r\n\r\n\t\t$query[] = \"SELECT\";\r\n\t\t$query[] = $_fields;\r\n\t\t$query[] = \"FROM\";\r\n\t\t$query[] = $this->clausules['table'];\r\n\r\n\t\tif (isset($this->clausules['join'])) {\r\n\t\t\t$query[] = \"INNER JOIN \" . $this->clausules['join']['table'];\r\n\t\t\t$query[] = \"ON \" . $this->clausules['join']['param'];\r\n\t\t}\r\n\r\n\t\t$query[] = $this->testClausules();\r\n\r\n\t\t// Transforma as query[] em uma string sql\r\n\t\t$sql = implode(\" \", $query);\r\n\r\n\t\treturn $this->executeSelect($sql, $values);\r\n\t}", "public function select($infos)\n {\n try {\n\n $tabela = $infos['table'];\n $campos = isset($infos['fields']) ? $infos['fields'] : [\"*\"];\n\n $whereCriteria = $infos['where'];\n\n $campos = gettype($campos) == \"array\" ? implode(\", \", $campos) : $campos;\n\n $this->sql = \"SELECT \" . $campos . \" FROM $tabela \";\n if (!empty($whereCriteria)) {\n $this->sql .= \" WHERE \" . $whereCriteria . \" \";\n }\n return $this->sql . \";\";\n\n } catch (PhiberException $phiberException) {\n throw new PhiberException(new Internationalization(\"query_processor_error\"));\n }\n\n }", "public function select($query){\n return pg_fetch_all($this -> query($query));\n }", "private function _createSQLSelect(array $params){\n\t\t$select = 'SELECT ';\n\t\tif(isset($params['columns'])){\n\t\t\t$this->clear();\n\t\t\t$select.= $params['columns'];\n\t\t} else {\n\t\t\t$select.= join(', ', $this->_getAttributes());\n\t\t}\n\t\tif($this->_schema){\n\t\t\t$select.= ' FROM '.$this->_schema.'.'.$this->_source;\n\t\t} else {\n\t\t\t$select.= ' FROM '.$this->_source;\n\t\t}\n\t\t$return = 'n';\n\t\t$primaryKeys = $this->_getPrimaryKeyAttributes();\n\t\tif(isset($params['conditions'])&&$params['conditions']){\n\t\t\t$select.= ' WHERE '.$params['conditions'].' ';\n\t\t} else {\n\t\t\tif(!isset($primaryKeys[0])){\n\t\t\t\tif($this->isView==true){\n\t\t\t\t\t$primaryKeys[0] = 'id';\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(isset($params[0])){\n\t\t\t\tif(is_numeric($params[0])){\n\t\t\t\t\tif(isset($primaryKeys[0])){\n\t\t\t\t\t\t$params['conditions'] = $primaryKeys[0].' = '.$this->_db->addQuotes($params[0]);\n\t\t\t\t\t\t$return = '1';\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new ActiveRecordException('No se ha definido una llave primaria para este objeto');\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif($params[0]===''){\n\t\t\t\t\t\tif(isset($primaryKeys[0])){\n\t\t\t\t\t\t\t$params['conditions'] = $primaryKeys[0].\" = ''\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthrow new ActiveRecordException('No se ha definido una llave primaria para este objeto');\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$params['conditions'] = $params[0];\n\t\t\t\t\t}\n\t\t\t\t\t$return = 'n';\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(isset($params['conditions'])){\n\t\t\t\t$select.= ' WHERE '.$params['conditions'];\n\t\t\t}\n\t\t}\n\t\tif(isset($params['group'])&&$params['group']) {\n\t\t\t$select.= ' GROUP BY '.$params['group'];\n\t\t}\n\t\tif(isset($params['order'])&&$params['order']) {\n\t\t\t$select.= ' ORDER BY '.$params['order'];\n\t\t}\n\t\tif(isset($params['limit'])&&$params['limit']) {\n\t\t\t$select = $this->_limit($select, $params['limit']);\n\t\t}\n\t\tif(isset($params['for_update'])&&$params['for_update']==true){\n\t\t\t$select = $this->_db->forUpdate($select);\n\t\t}\n\t\tif(isset($params['shared_lock'])&&$params['shared_lock']==true){\n\t\t\t$select = $this->_db->sharedLock($select);\n\t\t}\n\t\treturn array('return' => $return, 'sql' => $select);\n\t}", "protected function getBaseSelect()\n {\n return \"SELECT * FROM \" . $this->getTableName();\n }", "function getSelectStatement($db, $params, $onlyCount) {\n\n\t\t$tableName = $db->escape_string($params[0], $db);\n\t\t$tableNameWithPrefix = $_ENV[\"table_prefix\"] . $tableName;\n\n\t\tif ($onlyCount) {\n\t\t\t$sqlQuery = \"select count(*) from `$tableNameWithPrefix`\";\n\t\t\t//if (isset($params[1])) {\n\t\t\t\t$sqlQuery .= $this->getFilter($db, $tableName, $params[1]);\n\t\t\t//}\n\t\t} else {\n\t\t\tif ($tableName == \"users\") {\n\t\t\t\t// change password to a dummy value\n\t\t\t\t$sqlQuery = \"SELECT id, username, 'dummy' as `password`, firstname, lastname, email, id_team, rights FROM `$tableNameWithPrefix`\";\n\t\t\t} else if ($tableName == \"play_table\") {\n\t\t\t\t$sqlQuery = \"select @rownum:=@rownum+1 as rank, t.*,\"\n\t\t\t\t\t\t. \" (t.wins * 3 + t.stand_off) as points,\"\n\t\t\t\t\t\t. \" (t.shoot - t.got) as goals_diff, \"\n\t\t\t\t\t\t. \" concat(shoot, ':', got) as goals\"\n\t\t\t\t\t\t. \" from `$tableNameWithPrefix` t, (SELECT @rownum:=0) r\";\n\t\t\t} else if ($tableName == \"player_match\") {\n\t\t\t\t$sqlQuery = \"select PM.*, SP.id_saison_team from `$tableNameWithPrefix` PM\"\n\t\t\t\t\t\t. \" left join `\" . $_ENV[\"table_prefix\"] . \"saison_player` SP on SP.id = PM.id_saison_player\";\n\t\t\t} else {\n\t\t\t\t$sqlQuery = \"select * from `$tableNameWithPrefix`\";\n\t\t\t}\n\n\t\t\t// set filter\n\t\t\t//if (isset($params[5])) {\n\t\t\t\t$sqlQuery .= $this->getFilter($db, $tableName, $params[5]);\n\t\t\t//}\n\n\t\t\t// set order\n\t\t\tif ($tableName == \"play_table\") {\n\t\t\t\t$sqlQuery .= \" order by points desc, goals_diff desc, t.shoot desc\";\n\t\t\t} else {\n\t\t\t\tif (isset($params[1]) && isset($params[2])) {\n\n\t\t\t\t\t$sortField = $params[1];\n\t\t\t\t\t$sortOrder = $params[2];\n\n\t\t\t\t\t$sqlQuery .= \" order by $sortField $sortOrder\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// set limit\n\t\t\tif (isset($params[3]) && isset($params[4])) {\n\t\t\t\t$firstIndex = $params[3];\n\t\t\t\t$maxRows = $params[4] - $firstIndex;\n\n\t\t\t\t$sqlQuery .= \" limit $firstIndex, $maxRows\";\n\t\t\t}\n\t\t}\n\t\t//\techo $sqlQuery;\n\t\treturn $sqlQuery;\n\t}", "public abstract function getSelectSQL($fields, $from, $joins, $where, $having, $group, $order, $limit, $values, $forupdate);", "function select() {\n\n $query = 'SELECT '\n .'trafficjam.id, '\n .'trafficjam.from, '\n .'trafficjam.from_loc_lat, '\n .'trafficjam.from_loc_lon, '\n .'trafficjam.to, '\n .'trafficjam.to_loc_lat, '\n .'trafficjam.to_loc_lon, '\n .'trafficjam.start, '\n .'trafficjam.delay, '\n .'trafficjam.distance, '\n .'trafficjam.timestamp, '\n .'trafficjam.road_name '\n .'FROM trafficjam '\n .'JOIN trafficjam tj ON tj.from = trafficjam.from AND tj.to = trafficjam.to AND tj.start = trafficjam.start AND tj.id = ? ';\n \n // Prepare statement.\n $stmt = $this->conn->prepare($query);\n \n // Bind id parameter.\n $stmt->bindParam(1, $this->id);\n \n // Execute query.\n $stmt->execute();\n \n return $stmt;\n }", "public function select($table_name, $fields = array(), $where = array(), $order_by = '')\r\n {\r\n }", "public abstract function getSelect(\n $fields, $from, $where = '', $groupby = '', $limit = 0, $offset = 0\n );", "protected function compileSelect(): ?string\n {\n if (! $this->columns) {\n return null;\n }\n\n return \"select $this->columns\";\n }", "public function select($where = null, $order = null, $limit = null, $fields = '*')\n {\n $where = strlen($where) ? 'WHERE ' . $where : '';\n $order = strlen($order) ? 'ORDER BY ' . $order : '';\n $limit = strlen($limit) ? 'LIMIT ' . $limit : '';\n\n //Montando query\n $query = 'SELECT ' . $fields . ' FROM ' . $this->table . ' ' . $where . ' ' . $order . ' ' . $limit;\n return $this->execute($query);\n }", "public function Select($cond)\r\n\t\r\n {\r\n\t\tglobal $db;\r\n if($cond==\"\")\r\n {\r\n $sql = \"SELECT * FROM \".$this->TableName;\r\n } else\r\n {\t\r\n\t\t \t\r\n\t\t $sql = \"SELECT * FROM \". $this->TableName.\" \".$cond;\r\n }\r\n try{\r\n $query = $db->prepare($sql);\r\n $query->execute();\r\n $arr['rows'] = $query->fetchAll(PDO::FETCH_ASSOC);\r\n $arr['err'] = false;\r\n } catch(PDOException $e){\r\n $arr['err'] = true;\r\n $arr['msg'] = $e->getMessage(); \r\n } \r\n return $arr;\r\n }", "abstract function getSQL();", "public function select()\n {\n return new QueryProxy('select', $this);\n }", "public function select($params = []) {\n\t\t\t// Get the target table\n\t\t\t$table = $params['table'] ?? $this->table;\n\t\t\t// Get columns names [col1, col2, col3] => \"col1, col2, col3\"\n\t\t\t$columns = isset($params['columns']) ? implode(', ', $params['columns']) : '*';\n\t\t\t// Get WHERE condition\n\t\t\t$where = $this->get_where_condition($params['where'] ?? []);\n\t\t\t// Get the params to bind\n\t\t\t$bindings = $this->bindings;\n\n\t\t\t// Execute the query and return results\n\t\t\treturn $this->query(\"SELECT $columns FROM $table $where\", $bindings);\n\t\t}", "function createQuery() ;", "function sql_select_statement(int $count, array $keys)\n {\n $sql = \"\";\n for($i = 0; $i < $count; $i++ ) { $sql .= ($i != $count - 1) ? $keys[$i] . \", \" : $keys[$i] . \" \"; }\n return $sql;\n }", "function createSelect($_table, $_value, $_colum)\n{\n\n $_prev_par= false;\n $_query = \"SELECT * FROM $_table\";\n\n foreach ($_value as $_key => $_value)\n {\n if ($_value != \"\")\n {\n if ($_prev_par)\n {\n $_query.= \" AND \";\n }\n else\n {\n $_query.= \" WHERE \";\n }\n\n $_query.= $_colum[$_key].\" = '$_value'\";\n $_prev_par = true;\n }\n }\n $_query.=\";\";\n\n return $_query;\n}", "protected function runSelect()\n {\n return $this->connection->select($this->toCypher(), $this->getBindings());\n }", "public function testSelectStmt()\n {\n $select = $this->getConnection()\n ->select()\n (['blog_title', 'blog_id'])\n ('dummy_posts')\n ('WHERE blog_title = :title');\n return $this->assertEquals($select, \"SELECT blog_title, blog_id FROM dummy_posts WHERE blog_title = :title\");\n }", "function buildQuery(){\n\t\t$r = ($this->fieldName == \"\") ? \"SELECT * FROM \" . $this->tableName . \";\" : \"SELECT * FROM \" . $this->tableName . \" WHERE \" . $this->fieldName . \" = \" . $this->fieldValue . \";\";\n\t\t//print \"executing $r <br/>\";\n\t\treturn $r;\n\t}", "function getSql()\n{\n\textract($this->query, EXTR_SKIP);\n\t\n\tif (!$select or !$from) return '';\n\t\n\t$sql = 'SELECT '.implode(',', $select).' FROM '.$from;\n\tif ($where) $sql .= ' WHERE '.implode(' AND ', array_unique($where));\n\tif ($whereJoin) $sql .= ($where? ' AND ':' WHERE ').implode(' AND ', array_unique($whereJoin));\n\tif ($group) $sql .= ' GROUP BY '.$group;\n\tif ($having) $sql .= ' HAVING '.implode(' AND ', array_unique($having));\n\tif ($order) $sql .= ' ORDER BY '.implode(',', $order);\n\tif ($limit) $sql .= ' LIMIT '.$limit[0].' OFFSET '.$limit[1];\n\treturn $sql;\n}", "function select($where = false){\n $query=\"SELECT * FROM \". $this->tableName ;\n $separator=\" WHERE \";\n if ($where){\n foreach ( $where as $key => $value){\n\t$query .= $separator . $key . \" = '\" . $value . \"'\";\n\t$separator = \" AND \";\n }\n }\n $query .= \";\";\n \n $results = array();\n $res = $this->dbh->query($query);\n while ($row = $res->fetch_assoc()){\n array_push($results, $row);\n }\n return $results;\n }", "public function getSelect();", "public function getSelect();", "private function query() {\n return ApplicationSql::query($this->_select, $this->_table, $this->_join, $this->_where, $this->_order, $this->_group, $this->_limit, $this->_offset);\n }", "public function to_str() {\n //\n //Construct the sql (select) statement\n $stmt = \n \"select \\n\"\n //\n //Field selection \n . \"{$this->fields->to_str()} \\n\"\n . \"from \\n\"\n //\n //For now the root is simply the name of a table or a bracketed \n //enclose sql \n . \"{$this->root->fromexp()} \\n\"\n //\n //The joins, if any\n . \"{$this->joins->to_str()} \\n\"\n //\n //The where clause, if necessary \n .\"{$this->wheres->to_str()}\";\n return $stmt;\n \n }", "public static function buildSelectStatement($columns = '*', $table, $where)\n{\n\t// Determine which columns to select\n\tif (empty($columns))\n\t{\n\t\t$columns = '*';\n\t}\n\telse\n\t{\n\t\t$columns = (is_array($columns))\n\t\t\t? implode(', ', $columns)\n\t\t\t: strval($columns);\n\t}\n\n\t// Form SELECT statement\n\t$stmt = 'SELECT ' . $columns\n\t . ' FROM ' . $table\n\t . self::buildWhereClause($where);\n\n\t// Return statement\n\treturn $stmt;\n}", "protected abstract function getSqlStatement();", "public function getSelectSql()\n {\n return $this->selectSql; \n }", "public function select($statement, $named_placeholder){\n\n // prepared statement (send statement to server + checks syntax)\n $stmt = $this->conn->prepare($statement);\n\n $stmt->execute($named_placeholder);\n $result = $stmt->fetchAll(PDO::FETCH_ASSOC);\n\n return $result;\n\n }", "public function make(){\n $query=$this->select.\" \".$this->from;\n if(!empty($this->where)){\n\t$query=$query.\" \".$this->where;\n }\n if(!empty($this->order)){\n\t$query= $query.\" \".$this->order;\n }\n return $query;\n}", "public function getSQL(){\n $sqlString = \"select \";\n $campos = $this->getCampos();\n //var_dump($campos);\n if (is_array($campos) && empty($campos)) {\n $sqlString .= \" * \";\n } else {\n $campos = \"\";\n foreach ($this->getCampos() as $key => $value) {\n if (!$campos == \"\") { \n $campos.=\" ,\"; \n };\n $campos.=\" \".$value.\" as \".$key.\" \";\n }\n $sqlString .= $campos;\n }\n $sqlString .= \" from \" . $this->getTabla();\n if ( $this->getSQLFilter() != \"\" ) {\n $sqlString .= \" where \" . $this->getSQLFilter();\n }\n \n $sqlString .= $this->getSQLGroupBy();\n $sqlString .= $this->getSQLOrderBy();\n //echo $sqlString.\"\\n\";\n return $sqlString; \n }", "protected function compileSelectStatement($selectOverride = false)\n {\n // Write the \"select\" portion of the query\n if ($selectOverride !== false) {\n $sqlStatement = $selectOverride;\n } else {\n $sqlStatement = ( ! $this->builderCache->distinct)\n ? 'SELECT %s'\n : 'SELECT DISTINCT %s';\n\n if (count($this->builderCache->select) === 0) {\n $SqlSelectStatement = \"*\";\n } else {\n // Cycle through the \"select\" portion of the query and prep each column name.\n // The reason we protect identifiers here rather than in the select() function\n // is because until the user calls the from() function we don't know if there are aliases\n foreach ($this->builderCache->select as $selectKey => $selectField) {\n $noEscape = isset($this->builderCache->noEscape [ $selectKey ])\n ? $this->builderCache->noEscape [ $selectKey ]\n : null;\n $this->builderCache->select [ $selectKey ] = $this->conn->protectIdentifiers(\n $selectField,\n false,\n $noEscape\n );\n }\n\n $SqlSelectStatement = implode(\", \\n\\t\", $this->builderCache->select);\n }\n\n $sqlStatement = sprintf($sqlStatement, $SqlSelectStatement);\n }\n\n return trim($sqlStatement);\n }", "function is_select_statement()\n {\n return $this->object->_select_clause ? TRUE : FALSE;\n }", "function SelectFactory ($options)\n{\n if ( ! is_array($options) ) return false;\n\n // Select statement clause list, in order of appearance\n\n $statement_clauses = array(); /* initialize to empty array */\n $statement_clauses[0] = array('name' => 'selectoptions', 'join' => ' ');\n $statement_clauses[1] = array('name' => 'columns', 'join' => ', ');\n $statement_clauses[2] = array('name' => 'from', 'join' => ', ');\n $statement_clauses[3] = array('name' => 'where', 'join' => ' AND ');\n $statement_clauses[4] = array('name' => 'groupby', 'join' => ', ');\n $statement_clauses[5] = array('name' => 'having', 'join' => ' AND ');\n $statement_clauses[6] = array('name' => 'orderby', 'join' => ', ');\n $statement_clauses[7] = array('name' => 'limit', 'join' => false);\n $statement_clauses[8] = array('name' => 'procedure', 'join' => false);\n $statement_clauses[9] = array('name' => 'into', 'join' => false);\n $statement_clauses[10] = array('name' => 'other', 'join' => false);\n\n $sql_statement = array();\t/* initialize the statement array receiver */\n $sql_statement[] = 'SELECT';\n\n for ($i=0; $i < count($statement_clauses); $i++) {\n if (array_key_exists($statement_clauses[$i])) {\n if ($statement_clauses[$i]['join'] && is_array($options[$statement_clauses[$i]['name']])) {\n\t$sql_statement[] = implode($statement_clauses[$i]['join'],$options[$statement_clauses[$i]['name']]);\n } else {\n\t$sql_statement[] = $options[$statement_clauses[$i]['name']];\n }\n }\n }\n\n // implode the crafted Select statement and return the string\n return implode(' ',$sql_statement);\n\n}", "public function select($whereCondition, $orderBy = '', $offset = 0, $limit = 0, $fields = []) \n\t{\n\t\t$sql = \"SELECT * FROM `\" . $this->table . '` ';\n\n\t\t//get fields sql\n\t\tif ($fields && is_array($fields)) {\n\t\t\t$sql = \"SELECT \" . $this->_stringFieldsSelect($fields) . ' FROM `' . $this->table . '` ';\n\t\t}\n\n\t\t//get where sql\n\t\t$sql .= $this->_whereCondition($whereCondition);\n\n\t\t//get order by sql\n\t\tif ($orderBy) {\n\t\t\t$sql .= ' ' . $this->_stringOrderBy($orderBy);\n\t\t}\n\n\t\t//get limit sql\n\t\tif ($limit) {\n\t\t\t$sql .= ' LIMIT '. $offset . ',' . $limit;\n\t\t}\n\n\t\t$sql .= ';';\n//echo $sql;exit;\n\t\t$result = $this->_getSelectResult($sql);\n\n\t\treturn $result;\n\t}", "public function fromSelectQuery(\\Yana\\Db\\Queries\\IsSelectQuery $query): string;" ]
[ "0.8003893", "0.8003893", "0.74862105", "0.74015784", "0.7202667", "0.7047833", "0.6992635", "0.6975984", "0.69068956", "0.6823758", "0.6819437", "0.6816849", "0.6809907", "0.67685044", "0.67463523", "0.6730124", "0.6730124", "0.6730124", "0.67271376", "0.67024565", "0.6680407", "0.6654832", "0.6654832", "0.6634212", "0.6607558", "0.6584403", "0.65728956", "0.6557817", "0.65409815", "0.64919573", "0.648999", "0.6483311", "0.6444661", "0.64103657", "0.64042515", "0.6402279", "0.6370897", "0.6367855", "0.63661253", "0.6363881", "0.6345819", "0.6318514", "0.6310636", "0.6299513", "0.62845933", "0.6279273", "0.6274822", "0.6267029", "0.62670153", "0.6264495", "0.62454367", "0.62402356", "0.62346447", "0.62346447", "0.62346447", "0.6230672", "0.6214567", "0.62123305", "0.62042254", "0.619833", "0.6190145", "0.6182634", "0.6173413", "0.6171716", "0.61633635", "0.6153473", "0.61423606", "0.6142184", "0.6131498", "0.6128316", "0.61253667", "0.61154217", "0.611455", "0.61131066", "0.608518", "0.608269", "0.6081386", "0.6074175", "0.60728264", "0.6066765", "0.6066534", "0.60635686", "0.6054688", "0.6037276", "0.6031168", "0.60259897", "0.60259897", "0.6021441", "0.6008959", "0.60056216", "0.5995548", "0.59781826", "0.5977655", "0.597348", "0.5970425", "0.59616977", "0.5961607", "0.5955173", "0.5953489", "0.5949501" ]
0.59700483
95
Executes the specified query and returns a statement reader
public function query($command);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function executeQuery() \r\n\t{\r\n\t\t$Result = $this->objStatement->execute();\r\n\t\t\r\n\t\tif($Result)\r\n\t\t{\r\n\t\t\t$Result = new DatabaseStatement($this->objStatement);\r\n\t\t}\r\n\t\t\r\n\t\treturn $Result;\r\n\t}", "public function query()\n {\n $statement = null;\n $args = func_get_args();\n $attempt = 0;\n $retry = false;\n $logger = $this->_config->getSQLLogger();\n\n do {\n /** @noinspection BadExceptionsProcessingInspection */\n try {\n $this->connect();\n\n if ($logger) {\n $logger->startQuery($args[0]);\n }\n\n try {\n $statement = call_user_func_array(\n [\n $this->_conn,\n 'query'\n ], $args\n );\n\n /** @var StatementInterface $statement */\n $statement->setFetchMode(PDO::FETCH_ASSOC);\n } catch (Exception $ex) {\n throw DBALException::driverExceptionDuringQuery($this->_driver, $ex, $args[0]);\n }\n\n if ($logger) {\n $logger->stopQuery();\n }\n } catch (Exception $e) {\n if ($this->validateReconnectAttempt($e, $attempt)) {\n $this->close();\n\n $retry = true;\n\n $attempt++;\n } else {\n throw $e;\n }\n }\n } while ($retry);\n\n return $statement;\n }", "public function executeQuery($query) {\r\n\t\t\r\n\t\t$this->mdb2->connect();\r\n\t\t\t\t\r\n\t\t$ResultSet = $this->mdb2->query($query);\r\n\t\t\r\n\t\t$this->mdb2->disconnect();\r\n\t\t\r\n\t\tif (PEAR::isError($ResultSet)) {\r\n\t\t\tdie($ResultSet->getMessage() . \": \" . $query);\r\n\t\t}\r\n\t\t\r\n\t\treturn $ResultSet;\r\n\t\t\r\n\t}", "function db_run_query( $statement ) {\n\n $this->pm_clear_dataset();\n $this->pm_store_statement( $statement );\n $this->pm_debug_statement( $statement );\n if( ! $this->query_is_select ) $this->pm_write_logfile( $statement );\n\n $this->dataset_obj = $this->connection->query( $statement );\n $this->pm_die_if_error( 'dataset_obj' );\n\n if( is_object( $this->dataset_obj )) # updates/inserts/deletes seem to return an integer not an object\n $this->rowcount = $this->dataset_obj->numrows();\n else\n $this->rowcount = ROWCOUNT_NOT_SET;\n\n return $this->dataset_obj;\n }", "public function query($statement);", "public static function executeQuery(Sql $db, $query){\n $statement = $db->prepareStatementForSqlObject($query);\n $rs = new ResultSet();\n return $rs->initialize($statement->execute())->buffer();\n }", "public function execute()\n {\n return $this->query($this->sSql);\n }", "public function execute(): Statement;", "public function query($query)\n {\n $stmt = new Doctrine_Adapter_Statement_Oracle($this, $query, $this->executeMode);\n $stmt->execute();\n\n return $stmt;\n }", "private function query() {\n return ApplicationSql::query($this->_select, $this->_table, $this->_join, $this->_where, $this->_order, $this->_group, $this->_limit, $this->_offset);\n }", "public function query($query) {\n\t\t$args = func_get_args();\n\t\t\n\t\tif (count($args) == 1) {\n\t\t\t$sql = $query;\n\t\t} else {\n\t\t\t$sql = call_user_func_array(array($this, 'quoteInto'), $args);\n\t\t}\n\t\t\n\t\t$statement = $this->zendDb()->query($sql);\n\n\t\tif (!is_object($statement)) {\n\t\t\tthrow new SimpleDb_Exception('Failed to execute query: '.$query);\n\t\t}\n\n\t\treturn $statement;\n\t}", "public function ExecuteQuery($query){\n\t\treturn $this->db_con->query($query);\n\t}", "public function execute(): ResultSet\n {\n if (null === $this->statement) {\n $this->prepare();\n }\n return $this->statement->execute($this->getParameters());\n }", "private function executeQuery() {\n\t\t$recordset = $this->getConnection()->execute( $this );\n\t\t\n\t\tif( $recordset === false ) {\n\t\t\t$this->_recordset = array();\n\t\t} else {\n\t\t\t$this->_recordset = $recordset;\n\t\t}\n\n\t\t$this->_currentRow = 0;\n\t\t$this->isDirty( false );\n\t}", "public function read(){\n $query = \"SELECT * FROM {$this->table}\";\n $stmt = $this->conn->prepare($query);\n $stmt->execute();\n return $stmt;\n }", "public function executeQuery($sql){\n return DB::executeQuery($this->db, $sql);\n }", "public function execute() \r\n\t{\r\n\t\treturn $this->objStatement->execute();\r\n\t}", "public function query($statement)\n {\n /* Check to see user is connected */\n if (!$this->_isConnected()) {\n return $this->_error(E_USER_NOTICE, 'Can only perform queries when connected!');\n }\n\n /* Do the actual parsing and get the arguments*/\n $parser = new sqlParser($statement);\n $arguments = $parser->parse();\n\n /* Perform the query and return results */\n if (($arguments !== false) && isset($arguments['action'])) {\n switch (strtolower($arguments['action'])) {\n case 'select':\n {\n return $this->select($arguments);\n }\n\n case 'insert':\n {\n return $this->insert($arguments);\n }\n\n case 'show tables':\n {\n return $this->showtables($arguments);\n }\n\n case 'show users':\n {\n return $this->getUsers($arguments);\n }\n\n case 'show databases':\n {\n return $this->showdbs($arguments);\n }\n\n case 'drop table':\n {\n return $this->droptable($arguments);\n }\n\n case 'drop database':\n {\n return $this->dropdb($arguments);\n }\n\n case 'describe':\n {\n return $this->describe($arguments);\n }\n\n case 'delete':\n {\n return $this->delete($arguments);\n }\n\n case 'create database':\n {\n return $this->createdb($arguments);\n }\n\n case 'create table':\n {\n return $this->createtable($arguments);\n }\n\n case 'update':\n {\n return $this->update($arguments);\n }\n\n case 'grant permissions':\n {\n return eval('return ' . $arguments['php']);\n }\n\n case 'lock db':\n {\n return $this->lockDb($arguments['db']);\n }\n\n case 'unlock db':\n {\n return $this->unlockDb($arguments['db']);\n }\n\n case 'is locked':\n {\n return $this->isLocked($arguments['db']);\n }\n\n case 'use database':\n {\n return $this->selectDb($arguments['db']);\n }\n }\n }\n\n /* Something went wrong */\n return false;\n }", "private function execute() {\n $query = $this->db->query($this->sql);\n return $query->result();\n }", "public function execute($query);", "public function getStatement($query){\n return $this->pdo->query($query);\n }", "public function read($query) {\n self::$_queries[] = $query;\n\n $link = (\n $this->_linkSlave === null ? $this->_linkMaster : $this->_linkSlave\n );\n\n $result = mysql_query($query, $link);\n\n if ($result === false) {\n throw new Atom_Db_Exception(\n mysql_error($link),\n mysql_errno($link)\n );\n }\n\n return new Atom_Db_Result($result);\n }", "public function query($statement, array $parameters = null);", "public function execute() { \n return $this -> stmt -> execute();\n }", "function executeQuery($query);", "abstract public function execute($query);", "public function read()\n {\n // Create query\n $query = '\n SELECT *\n FROM ' . $this->table . ' \n WHERE user_id = ?';\n \n // Prepare statement\n $stmt = $this->conn->prepare($query);\n\n // Bind ID\n $stmt->bindParam(1, $this->user_id);\n\n // Execute query\n $stmt->execute();\n\n return $stmt;\n }", "function execute( $sql ) {\r\n\r\n $result = $this->link->query( $sql );\r\n\r\n if ( !PEAR::isError( $result ) ) {\r\n $rsobject = new DBWrapperMDB2Result( $result, $this->link );\r\n $rsobject->moveNext();\r\n return $rsobject;\r\n }\r\n else {\r\n $this->resultError = $result->getMessage();\r\n return false;\r\n }\r\n\r\n }", "public function executeQuery($query) {\n\t\t$result = $this->connection->query($query);\n\t\t$this->rowsAffected = $this->connection->affected_rows;\n\t\t\t\n\t\tif(!$result) {\n\t\t\tthrow new DBException(\"Unable to execute query: \" . $query);\n\t\t}\n\t\treturn $result;\n\t}", "abstract public function query($sql);", "abstract function executeQuery($cons);", "public function query($sql) {\n $sth = $this->prepare($sql);\n $sth->execute();\n\n return $sth;\n }", "function execute( $qry )\n {\n // -- Montem la query. Pot ser un objecte o un string SELECT\n if( is_object( $qry ))\n {\n if( in_array( 'get_query', get_class_methods( $qry ) ))\n {\n $sQuery = $qry->get_query();\n }\n else\n {\n $this->throw_exception( $this->_hDb, __CLASS__.'::'.__FUNCTION__. ' - Objeto sin función get_query' );\n }\n }\n else\n {\n $sQuery = $qry;\n }\n if( empty( $sQuery ))\n {\n $this->throw_exception( $this->_hDb, __CLASS__.'::'.__FUNCTION__. ' - No existeix consulta' );\n }\n $result = odbc_exec( $sQuery, $this->_hDb );\n if( !$result )\n {\n $this->throw_exception( $this->_hDb, __CLASS__.'::'.__FUNCTION__. ' - Impossible executar consulta [['.$sQuery.']] ' );\n }\n return $result;\n }", "private function query($query) {\n $result = $this->connection->query($query);\n if (!$result) {\n throw new DatabaseException(\"Error occurred processing SQL statement '$query': \"\n . $this->connection->error,\n $this->connection->errno);\n }\n\n return $result;\n }", "public function query(string $sql, array $driverOptions = []): QueryResult;", "public function query( $sql )\r\n\t{\r\n\t\t$this->debugInfo($sql);\r\n\t\t\r\n\t\t$ret = db2_exec( $this->conn, $sql );\r\n\t\tif( !$ret )\r\n\t\t{\r\n\t\t\ttrigger_error(db2_stmt_errormsg(), E_USER_ERROR);\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t\r\n\t\treturn new QueryResult( $this, $ret );\t\t\r\n\t}", "public function query($type, $sql, $as_object = FALSE, array $params = NULL)\n\t{\n\t\t// Make sure the database is connected\n\t\t$this->_connection OR $this->connect();\n\n\t\tif ( ! empty($this->_config['connection']['persistent']) AND $this->_config['connection']['database'] !== self::$_current_databases[$this->_connection_id])\n\t\t{\n\t\t\t// Select database on persistent connections\n\t\t\t$this->_select_db($this->_config['connection']['database']);\n\t\t}\n\n\t\t// Execute the query\n\t\tif (($resource = $this->_connection->query($sql)) === FALSE)\n\t\t{\n\t\t\tthrow new DatabaseException('['.$this->_connection->errno.'] '.\n\t\t\t$this->_connection->error.' [ '.$sql.']', $this->_connection->errno);\n\t\t}\n\n\t\t// Set the last query\n\t\t$this->last_query = $sql;\n\n\t\tif ($type === 'select')\n\t\t{\n\t\t\t// Return an iterator of results\n\t\t\treturn new Result($resource, $sql, $as_object, $params);\n\t\t}\n\t\telseif ($type === 'insert')\n\t\t{\n\t\t\t// Return a list of insert id and rows created\n\t\t\treturn array(\n\t\t\t\t$this->_connection->insert_id,\n\t\t\t\t$this->_connection->affected_rows,\n\t\t\t);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Return the number of rows affected\n\t\t\treturn $this->_connection->affected_rows;\n\t\t}\n\t}", "protected function execute()\n{\n\t$this->result = $this->db->query($this->getSql());\n\t$this->position = 0;\n\t$this->data = array();\n\n\treturn $this->result;\n}", "final public function execute()\n {\n return $this\n ->finalize()\n ->getDB()\n ->execute($this);\n }", "public function execute($query,$offset=null,$limit=null)\n {\n \tif ($offset)\n \t\t$query.=\" OFFSET $offset\";\n \t\t\n \tif ($limit)\n \t\t$query.=\" LIMIT $limit\";\n \t\t\n \t$res=pg_query($this->connection,$query);\n \t\n \tif (!$res)\n \t\tthrow new DatabaseException(pg_last_error($this->connection));\n \t\n \treturn new PGSQLResult($res);\n }", "public function statement($query, $bindings = [], $rawResults = false)\n {\n return $this->run($query, $bindings, function (self $me, $query, array $bindings) use ($rawResults) {\n if ($me->pretending()) {\n return true;\n }\n\n $statement = $me->getCypherQuery($query, $bindings);\n\n $result = $statement->getResultSet();\n\n return ($rawResults === true) ? $result : $result instanceof ResultSetInterface;\n });\n }", "public function queryRow()\n\t{\n\t\treturn $this->queryInternal('fetch',$this->_fetchMode);\n\t}", "public function Execute()\r\n {\r\n $this->PREPARE_STATEMENT($this->sql);\r\n return $this->EXECUTE_STATEMENT($this->statement);\r\n \r\n }", "public function read(){\n //Create query\n $query = 'SELECT *\n FROM ' . $this->table . '\n ORDER BY created_at DESC';\n\n //Prepare statement\n $stmt = $this->conn->prepare();\n\n //Execute query\n $stmt->execute();\n\n return $stmt;\n }", "public function query($rawQuery, $params = array()){\n\n $stmt = $this->conn->prepare($rawQuery);\n $this->setParams($stmt, $params);\n $stmt->execute();\n return $stmt;\n }", "function query($sql) {\r\n\t\treturn $this->execute($sql);\r\n\r\n\t}", "function read(){\n $query = \"SELECT * FROM \" . $this->table_name;\n $stmt = $this->conn->prepare($query);\n $stmt->execute();\n return $stmt;\n }", "public function query($query){\n $this->result = oci_parse($this->con, $query);\n try{\n oci_execute($this->result);\n }catch(Exception $e){\n throw new Exception(\"Error en el query: \" . $e->getMessage());\n }\n }", "function executeQuery($sql, &$connection, $findFirst = false) {\n try {\n $result = mysqli_query($connection, $sql) or die(\"connection error\");\n $resultSet = array();\n while ($row = mysqli_fetch_assoc($result)) {\n $resultSet[] = (object) $row;\n }\n closeDb($connection);\n\n // return the first result only. useful when query for just \n // a single record\n if ($findFirst) {\n $resultSet = (count($resultSet) > 0) ? $resultSet[0] : null; \n } \n\n return $resultSet;\n } catch(Exception $e) {\n throw new Exception(\"db error\");\n }\n}", "public function runQuery($query = null) {\n $this->query = ($query) ? $query : $this->query;\n\n if (empty($this->query)) {\n throw new \\Exception('Cannot run an empty query', 500);\n }\n\n try {\n $res = $this->db\n ->rawQuery($this->query);\n } catch (\\Exception $ex) {\n throw new \\Exception($ex->getMessage(), $ex->getCode());\n }\n\n return $res;\n }", "function executeqry($query){\n \n$conn= self::connect();\n \n $stid = oci_parse($conn, $query);\n oci_execute($stid);\n \n oci_close($conn);\n \n return $stid; \n }", "protected function get_results_from_query() {\n\t\t\t\t\n\t\t\t\t$this->open_connection();\n\t\t\t\t\n\t\t\t\tif (!$this->conn) {\n\t\t\t\t\tthrow new Excepcion('No se pudo Conectar a la BD: ' . mysql_error());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\t\t\t\n\t\t\t\t\t$result = $this->conn->query($this->query);\n\t\t\t\t\n\t\t\t\t\t\tif (!$result) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tthrow new Excepcion('No se pudo ejecutar la consulta a la BD: ' . mysql_error());\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\treturn $result;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$result->close();\t\t\t\t\n\t\t\t\t$this->close_connection();\t\t\n\t\t\t\n\t\t}", "public function execute()\n {\n $query = $this->__toString();\n if (!empty($this->params)) {\n $statement = $this->pdo->prepare($query);\n $statement->execute($this->params);\n return $statement;\n }\n return $this->pdo->query($query);\n }", "public function exec(QueryInterface $query): StatementInterface\n {\n try {\n return $this\n ->prepare($query->getStatement())\n ->execute($query->getData());\n } catch (Exception $ex) {\n throw Exception::execute($query->__toString(), $ex);\n }\n }", "protected function execute_single_query(){\n\t\t$this -> open_connection();\n\t\t$this -> conn -> query($this -> query);\n\t\t$this -> close_connection();\n\t}", "public function query($statement)\r\n\t{\r\n\t\treturn mssql_query($statement, $this->mssql);\r\n\t}", "protected function _execute()\n {\n $this->triggerBeforeFind();\n if ($this->_results) {\n $decorator = $this->_decoratorClass();\n\n return new $decorator($this->_results);\n }\n\n $statement = $this->getEagerLoader()->loadExternal($this, $this->execute());\n\n return new ResultSet($this, $statement);\n }", "public function execute($query=null)\n {\n return static::query($query);\n }", "private function ExecuteQuery()\n\t{\n\t\tswitch($this->querytype)\n\t\t{\n\t\t\tcase \"SELECT\":\n\t\t\t{\n\t\t\t\t$this->stmt->execute();\n\t\t\t\t$this->querydata = $this->stmt->fetchAll(PDO::FETCH_ASSOC);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"INSERT\":\n\t\t\tcase \"UPDATE\":\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\t$this->beginTransaction();\n\t\t\t\t\t$this->stmt->execute();\n\t\t\t\t\t$this->commit();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcatch (PDOException $e)\n\t\t\t\t{\n\t\t\t\t\t$this->rollBack();\n\t\t\t\t\techo(\"Query failed: \" . $e->getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static function query( $query ) {\n global $edb;\n $conn = $edb->connect();\n try {\n $query = $conn->query($query);\n do {\n if ($query->columnCount() > 0) {\n $results = $query->fetchAll(PDO::FETCH_OBJ);\n }\n }\n while ($query->nextRowset());\n\n $conn = null;\n\n return $results;\n }\n catch (PDOException $e) {\n $conn = null;\n die ('Query failed: ' . $e->getMessage());\n }\n }", "protected function getStatement()\n\t{\n\t\tif (!isset($this->statement)) {\n\t\t\t$this->statement = $this->query->execute();\n\t\t}\n\n\t\treturn $this->statement;\n\t}", "public function query($query)\n {\n $result = $this->db->query($query);\n $result->execute();\n return $result;\n }", "public abstract function execute($sql);", "protected abstract function executeQuery(Result $result);", "public static function query($query){\n if(!self::$connection){\n self::initDb();\n }\n\n return self::$connection->query($query);\n }", "public function queryStream(string $sql, array $params = []): ReadableStreamInterface\n {\n $query = new Query($sql);\n if (false === empty($params)) {\n $query->bindParamsFromArray($params);\n }\n\n $command = new QueryCommand();\n $command->setQuery($query);\n $this->executeCommand($command);\n\n return new QueryStream($command, $this->stream);\n }", "public function RunQuery($query,$querytype=\"SELECT\")\n\t{\n\t\t//print_r($query);\t\t-- DEBUG\n\t\t$this->query = $query;\n\t\t$this->querytype = $querytype;\n\t\tif($query->statement==NULL)\n\t\t{\n\t\t\tthrow new ExceptionHandler(\"Database Query not specified\");\n\t\t}\n\t\tself::PrepStatement();\n\t\tself::ExecuteQuery();\n\t\treturn($this->querydata);\n\t}", "public function query($query) {\n if(method_exists($this->db, 'query')) {\n return $this->db->query($query);\n } else {\n throw new Exception(__METHOD__ . \" not implemented\");\n }\n }", "public function queryOne($sql, $fetchStyle = \\PDO::FETCH_BOTH, $cursorOrientation = \\PDO::FETCH_ORI_NEXT, $cursorOffset = 0) {\n\t\ttry {\n\t\t\t$statement = $this->query($sql);\n\t\t\treturn $statement->fetch($fetchStyle, $cursorOrientation, $cursorOffset);\n\t\t} catch(\\PDOException $e) {\n\t\t\t$this->logError($e->getMessage());\n\t\t\tthrow new QueryOneException($e->getMessage());\n\t\t}\n\t}", "public function read() \n {\n // Create query\n $sql = \"\n SELECT \n id,\n name,\n created_at\n FROM\n $this->table\n ORDER BY \n created_at DESC\n ;\";\n\n // Prepare statement\n $stmt = $this->conn->prepare($sql);\n\n // Execute statement\n $stmt->execute();\n \n return $stmt;\n }", "public function executeQuery($query){\n\t\n $resultQuery = mysqli_query($this->link, $query) or die (\"Requete => PROBLEME\");\n return $resultQuery;\n }", "protected function _executeStatement($stm, &$resultContainer)\r\n\t{\r\n\t//process query\r\n\t\t//$rc = false;\r\n\t\t$generator = $this->getGenerator();\r\n\r\n\t\t$class = get_class( $stm );\r\n\t\t$rc = null;\r\n\t\tswitch( $class )\r\n\t\t{\r\n\t\t\tcase SQLStatementSelect::class:\r\n\t\t\t\tfor( ;; ) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t$pdoStm = $this->_preparePdoStatement($stm);\r\n\t\t\t\t\t\t$pdoStm->execute();\r\n\t\t\t\t\t\t$rc = $this->_processSelectResult($pdoStm, $resultContainer, \"SQL query\");\r\n\t\t\t\t\t} catch (\\Exception $e) {\r\n\t\t\t\t\t\tif ($e->getCode() == 5) {\r\n\t\t\t\t\t\t\tif (strstr($e->getMessage(), \"locked\") !== false) {\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t$message = \"Can't execute statement from $stm->cacheKey\\n\"\r\n\t\t\t\t\t\t\t. \" {$stm->generate($generator)} \\n==\\n {$stm->querySql}\\n\\n\"\r\n\t\t\t\t\t\t\t. \"params:\" . count($stm->queryParams)\r\n\t\t\t\t\t\t\t. \"Error: \"\r\n\t\t\t\t\t\t\t. $e->getMessage()\r\n\t\t\t\t\t\t\t. \" from \" . $e->getFile() . ':' . $e->getLine();\r\n\t\t\t\t\t\tif (php_sapi_name() == \"cli\") {\r\n\t\t\t\t\t\t\tprint_r($message);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthrow new DatabaseException(\r\n\t\t\t\t\t\t\t$message\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase SQLStatementDelete::class:\r\n\r\n\t\t\t\t$sql = $generator->generate($stm);\r\n\t\t\t\ttry {\r\n\t\t\t\t\t$pdoStm = $this->link->prepare($sql.\";\");\r\n\t\t\t\t}\r\n\t\t\t\tcatch( \\PDOException $e)\r\n\t\t\t\t{\r\n\t\t\t\t\tthrow new DatabaseException(\"Can't prepare statement: $sql\\nError: \" . $e->getMessage());\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (! $pdoStm) {\r\n\t\t\t\t\tthrow new DatabaseException(\"Can't prepare statement: $sql\\nError: \" . $this->getEngineError());\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$this->repeatWhenLocked(function()use($pdoStm, &$rowsAffected, &$resultContainer, &$rc){\r\n\t\t\t\t\t$rc = $pdoStm->execute();\r\n\t\t\t\t\t$rowsAffected = $pdoStm->rowCount();\r\n\t\t\t\t\t$resultContainer->add( $rowsAffected );\r\n\t\t\t\t},function(){});\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase SQLStatementUpdate::class:\r\n\t\t\tcase SQLStatementInsert::class:\r\n\t\t\t\t$rc =null;\r\n\t\t\t\t$pdoStm = null;\r\n\t\t\t\t$this->repeatWhenLocked(\r\n\t\t\t\t\tfunction () use (&$pdoStm, &$rc, $stm) {\r\n\t\t\t\t\t\t$pdoStm = $this->_preparePdoStatement($stm);\r\n\t\t\t\t\t\t$rc = $pdoStm->execute();\r\n\t\t\t\t\t},\r\n\t\t\t\t\tfunction () use (&$pdoStm) {\r\n\t\t\t\t\t\t$this->getLogger()->warning('exception. ' . @$pdoStm->queryString);\r\n\t\t\t\t\t\t$this->resetLastPdoStm();\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t$rowsAffected = $pdoStm->rowCount();\r\n\t\t\t\t$pdoStm->closeCursor();\r\n\t\t\t\t$resultContainer->add($rowsAffected );\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tthrow new DatabaseException(\"Don't know how to execute $class\");\r\n\t\t}\r\n\t\treturn $rc;\r\n\t}", "public function getStatement();", "public function getStatement();", "public function getStatement();", "protected abstract function executeQuery($query);", "public function query($query){\n\t\t$this->lastQuery = $query;\n\t\treturn $this->connection->query($query);\n\t}", "public function executeQuery($q){ $this->makeConnection();\n //check for SQL injection\n\n //execute query\n $results = $this->connection->query($q);\n\n return $results;\n\n }", "public function query($sql) {\n\t\t$query = $sql;\n\t\t$params = array();\n\t\tif ($sql instanceof Sql) {\n\t\t\t$params = $sql->getParams();\n\t\t\t$query = $sql->getSql();\n\t\t}\n\t\ttry {\n\t\t\t$info = $this->getDebugTrace();\n\t\t\t$info['type'] = 'QueryLog';\n\t\t\t$this->logQuery($sql, $info);\n\t\t\t$statement = $this->prepare($query);\n\t\t\t$this->bind($statement, $params);\n\t\t\t$statement->execute();\n\t\t} catch(\\PDOException $e) {\n\t\t\t$info = $this->getDebugTrace();\n\t\t\t$info['message'] = $e->getMessage();\n\t\t\t$info['level'] = \\Sy\\Debug\\Log::ERR;\n\t\t\t$this->logQuery($sql, $info);\n\t\t\tthrow new QueryException($e->getMessage());\n\t\t}\n\t\treturn $statement;\n\t}", "function runQuery()\n\t{\n\t\treturn $this->query;\n\t}", "private function RunBasicQuery() {\n // Prepare the Query\n $this->stmt = $this->db->prepare($this->sql);\n \n // Run the Query in the Database\n $this->stmt->execute();\n \n // Store the Number Of Rows Returned\n $this->num_rows = $this->stmt->rowCount();\n \n // Work with the results (as an array of objects)\n $this->rs = $this->stmt->fetchAll();\n \n // Free the statement\n $this->stmt->closeCursor(); \n }", "public function Execute($sql) {\r\n return $this->_connection->query($sql);\r\n }", "public function executeQuery(Expression $expr): DbalResult\n {\n if ($this->_connection === null) {\n throw new Exception('DBAL connection is not set');\n }\n\n return $expr->executeQuery($this->getConnection());\n }", "public function execute()\n\t{\n\t\t$this->query->setFetchMode($this->fetchMode);\n\n\t\t$this->query->execute($this->params);\t\n\n\t\t// Fetch the data in the appropriate format\n\t\tswitch ($this->fetchMethod) {\n\t\t\tcase 'row':\n\t\t\t\t$this->result = $this->query->fetch();\n\t\t\t\tbreak;\n\t\t\tcase 'field':\n\t\t\t\t$this->result = $this->query->fetchColumn();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$this->result = $this->query->fetchAll();\n\t\t\t\tbreak;\n\t\t}\n\t}", "function getResRow($tsql,$method=PDO::FETCH_ASSOC){ \n $rs=$this->DBH->prepare($tsql);\n $rs->execute();\n $row=$rs->fetch($method);\n \n return $row;\n }", "public function exec_query($sql = null) {\n\t\t$this->setFoundRows();\n\t\tif($this->debug) {\n\t\t\ttry {\n\t\t\t\t// Execute query\n\t\t\t\t$this->query = (isset($sql) && !empty($sql)) ? $sql : $this->getFullQuery();\n\t\t\t\t$Rs = $this->Connection->Execute($this->query, $this->params);\n\t\t\t\t$Rs->last_query = $this->getSQL($this->query); // full query with parameter\n\t\t\t\t//$this->writeQueryInLog($Rs->last_query, debug_backtrace());\n\n\t\t\t\t// $this->query_debugger($Rs->last_query); // Debug queries\n\t\t\t\t\n\t\t\t\t$this->resetVariables(); // reset all variables\t\t\t\t\n\t\t\t} catch (Exception $e) {\n\t\t\t\t$newex = new Exception($e->getMessage());\n\t\t\t\t//echo 'ex :: '.$this->getSQL($this->getFullQuery());exit;\n\t\t\t\t$this->displayException($newex);\n\t\t\t}\n\t\t} \n\t\telse {\n\t\t\t$this->query = (isset($sql) && !empty($sql)) ? $sql : $this->getFullQuery();\n\t\t\t$Rs = $this->Connection->Execute($this->query, $this->params);\n\t\t\t$Rs->last_query = $this->getSQL($this->query); // full query with parameter\n\t\t\t$this->resetVariables();\t\t\t\n\t\t}\n\t\t\n\t\t$this->query = trim($this->query);\n\t\tif(stripos($this->query, 'INSERT') === 0) {\n\t\t\treturn $this->Connection->getLastInsertedId();\n\t\t} \n\t\telseif(stripos($this->query, 'UPDATE') === 0) {\n\t\t\treturn $Rs;\n\t\t} \n\t\telse {\n\t\t\tif($Rs->RecordCount() == 0)\n\t\t\t\treturn false;\n return $Rs;\n\t\t}\n\t}", "function runQuery()\r\n\t\t{\r\n\t\tif(!$this->conn)\r\n\t\t\t{\r\n\t\t\t$this->createConnect();\r\n\t\t\t}\r\n\t\tif($this->query)\r\n\t\t\t{\r\n\t\t\t$this->errors=\"\";\r\n\t\t\t$this->query.=\";\";\r\n\t\t\t$this->result = mysql_query($this->query);\r\n\t\t\tif(mysql_affected_rows()>=0)\r\n\t\t\t\t{\r\n\t\t\t\tunset($this->query);\r\n\t\t\t\t}\r\n\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\techo \"<br>Error:<br>\";\r\n\t\t\t\t$debugging=debug_backtrace();\r\n\t\t\t\tforeach ($debugging as $debug)\r\n\t\t\t\t\t{\r\n\t\t\t\t\techo \"<b>File :</b> \".$debug[\"file\"].\"<br />\";\r\n\t\t\t\t\techo \"<b>Line :</b> \".$debug[\"line\"].\"<br />\";\r\n\t\t\t\t\techo \"<b>Function :</b> \".$debug[\"function\"].\"<br />\";\r\n\t\t\t\t\techo \"<b>Cause :</b> \".mysql_error().\"<br />\";\r\n\t\t\t\t\t}\r\n\t\t\t\techo \"<b>Query :</b> \".$this->query.\"<hr>\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\telse\r\n\t\t\t{\r\n\t\t\techo \"<br>-- NULL Query --\";\r\n\t\t\t}\r\n\t\tif (!is_resource($this->result))\r\n\t\t\t{\r\n\t\t\t$this->errors=mysql_error();\r\n\t\t\tif($this->transaction)\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->transaction=FALSE;\r\n\t\t\t\t\t$this->query=\"ROLLBACK TRANSACTION\";\r\n\t\t\t\t\t$this->runQuery();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "abstract public function Execute($query, $multiline = FALSE);", "public function query($query, $isReadOnly = false)\n {\n $query = $this->sanitizeQuery($query);\n $this->getLogger()->info($query, array(\n 'category' => Category::FRAMEWORK | Category::DATABASE,\n 'className' => 'Db/Layer',\n ));\n $result = new Result($query, $this->getFirstAvailableConnection($isReadOnly), $this);\n return $this->executeQuery($result);\n }", "public static function query($sql);", "abstract public function execute($sql);", "public function query($query, $resultmode = MYSQLI_STORE_RESULT) {\n\n\t\t$res = @parent::query($query, $resultmode);\n\n\t\tif ($res === false) {\n\t\t\tthrow new DBAdapterException(\"query failed: \" . $this->error);\n\t\t}\n\n\t\treturn $res;\n\n\t}", "public function ExecuteQuery($Query){\n\t\treturn $this->db->query($Query); \n\t}", "abstract public function getStatement(array $row): Transaction;", "public function query($rawquery, $params = [])\r\n {\r\n $stmt = $this->conn->prepare($rawquery);\r\n\r\n $this->setParams($stmt, $params);\r\n \r\n $stmt->execute();\r\n\r\n return $stmt;\r\n }", "function read(){\n \n // select all query\n $query = \"SELECT * from \" . $this->table_name . \"\";\n \n // prepare query statement\n $stmt = $this->conn->prepare($query);\n \n // execute query\n $stmt->execute();\n \n return $stmt;\n }", "abstract public function query($sql, $execute =FALSE);", "private function query()\n {\n $lStart = microtime(true);\n\n //arguments should be query (with placeholders) followed by an array of key-value pairs\n $args = func_get_args();\n $args = array_shift($args);\n $query = array_shift($args);\n $params = $args ? array_shift($args) : [];\n\n $sth = $this->pdo->prepare($query);\n if (!$sth) {\n //prepare failed\n $this->handlePrepareError($sth, $query, $params);\n }\n\n //explicitly bind parameters as int/string so IN() doens't get quoted\n foreach ($params as $key => $value) {\n if (is_numeric($value)) {\n $sth->bindValue($key, $value, PDO::PARAM_INT);\n } elseif (is_bool($value)) {\n $sth->bindValue($key, $value, PDO::PARAM_BOOL);\n } elseif (is_null($value)) {\n $sth->bindValue($key, $value, PDO::PARAM_NULL);\n } else {\n $sth->bindValue($key, $value, PDO::PARAM_STR);\n }\n }\n\n //query invalid\n if(!$sth->execute()) {\n $this->handleExecuteError($sth, $query, $params);\n }\n $this->queryTimer += microtime(true) - $lStart;\n $this->queryCount++;\n\n $query = preg_replace('/^\\s+/', '', $query);\n if(str_starts_with(strtolower($query), 'select')) {\n //return results for SELECT\n return $sth;\n\n } elseif(str_starts_with(strtolower($query), 'insert')) {\n //return insert id for INSERT\n $id = $this->pdo->lastInsertId();\n return ($id ?: true);\n\n } else {\n //return TRUE for DELETE, UPDATE\n //NB: don't return affected rows for UPDATE since 0 affected will be interpreted as query failed)\n return true;\n }\n }", "public function _Execute($sql) {\n\t\ttry {\n\t\t\t$this->_error = NULL;\n\t\t\tif(!$this->_connection) { $this->_Connect(); }\n\t\t\t\n\t\t\tif (substr_count(strtoupper($sql), 'SELECT') > 0 || substr_count(strtoupper($sql), 'PRAGMA') > 0) {\n\t\t\t\t$statement = $this->_connection->prepare($sql);\n\t\t\t\tif($statement) {\n\t\t\t\t\t$statement->execute();\n\t\t\t\t\t$result = $statement->fetchAll();\n\t\t\t\t} else {\n\t\t\t\t\t$result = NULL;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif(!$this->_auto_commit && !$this->_begin) {\n\t\t\t\t\t$this->_connection->beginTransaction();\n\t\t\t\t\t$this->_begin = true;\n\t\t\t\t}\n\t\t\t\t$result = $this->_connection->exec($sql);\n\t\t\t}\n\t\t\tif ($result === FALSE) {\n\t\t\t\t$error = $this->_connection->errorInfo();\n\t\t\t\t$this->_RenderError($error[0].'-'.$error[1].' '.$error[2], 'XUXO_ERROR_CODE_004');\n\t\t\t}\n\t\t\t\n\t\t\t$this->_resource = ($result) ? $result : NULL;\n\t\t\treturn $result;\n\t\t} catch (Exception $e) {\n\t\t\t$this->_RenderError($e->getMessage(), 'XUXO_ERROR_CODE_004');\n\t\t}\n\t}", "public function read(){\n try {\n // query to get all users\n $this->_query = \"SELECT * FROM \" . $this->_dbtable;\n\n //preparing query\n $statement = $this->_conn->prepare($this->_query);\n\n // executing query\n $statement->execute();\n\n return $statement;\n }\n catch(PDOException $ex){\n echo \"Error\" . $ex->getMessage();\n }\n }", "public function executeQueryStmt($sql, $params)\n {\n $stmt = $this->dbConn->prepare($sql, [PDO::ATTR_CURSOR => PDO::CURSOR_FWDONLY]);\n $stmt->execute($params);\n\n return $stmt;\n }" ]
[ "0.68564725", "0.66371757", "0.65742147", "0.65702254", "0.6392775", "0.6391776", "0.6297167", "0.62868977", "0.6217043", "0.6179345", "0.6161859", "0.6160129", "0.6149424", "0.6113733", "0.61010784", "0.6072828", "0.60718584", "0.6037863", "0.60378236", "0.6037531", "0.6037302", "0.6018894", "0.60083467", "0.60004973", "0.5976766", "0.5972401", "0.59481615", "0.59449273", "0.5917054", "0.591085", "0.5877886", "0.58648914", "0.5860496", "0.5860356", "0.58470577", "0.58330655", "0.58104557", "0.58085656", "0.578497", "0.57806784", "0.57796174", "0.5777817", "0.5773326", "0.57701355", "0.5761095", "0.57573104", "0.5756968", "0.57561463", "0.57556164", "0.5743923", "0.5743377", "0.5739661", "0.5738152", "0.5728937", "0.5719875", "0.5717455", "0.571201", "0.57079905", "0.5704378", "0.57031405", "0.5700038", "0.5685602", "0.5682735", "0.5680159", "0.5674819", "0.5668242", "0.5663365", "0.56630903", "0.5662397", "0.5659882", "0.5658929", "0.56573504", "0.5657209", "0.5657209", "0.5657209", "0.5656192", "0.5638762", "0.5632913", "0.56285906", "0.5628445", "0.5627509", "0.5622255", "0.56205726", "0.56171733", "0.56170297", "0.5615807", "0.5615671", "0.56110567", "0.5605231", "0.56049633", "0.56046474", "0.5592797", "0.55894136", "0.55873084", "0.55842656", "0.5583767", "0.5583417", "0.55818516", "0.55786586", "0.5573538", "0.55728537" ]
0.0
-1
Create a select statement
public function delete(IModel $target, array $primaries);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract function getSelectStatement();", "protected abstract function getSelectStatement();", "public function createSelectSql(): \\Hx\\Db\\Sql\\SelectInterface;", "public function createSelect()\n {\n return $this->getConnection()->select();\n }", "protected function getSelect() {\n $oSql = new SqlSelect();\n $oSql->setEntity($this->Persistence->getTableName());\n $oSql->addColumn(implode(',', $this->getColumns()));\n $oSql->setCriteria($this->Criteria); \n return $oSql->getInstruction();\n }", "protected function getSelectStatement()\n {\n return \"SELECT BookID, ISBN10, ISBN13, Title, CopyrightYear, TrimSize, PageCountsEditorialEst\n as PageCount, Description, CoverImage, Status, Subcategories.SubcategoryID, SubcategoryName, Imprints.ImprintID, Imprint, BindingType FROM Books\n JOIN Statuses ON (Books.ProductionStatusID = Statuses.StatusID) JOIN Subcategories ON \n (Books.SubcategoryID = Subcategories.SubcategoryID) JOIN Imprints USING (ImprintID) JOIN BindingTypes USING (BindingTypeID)\";\n }", "protected function prepareSelectStatement() {}", "protected function RetSelect() {\n\n $return = \"SELECT\";\n\n if ($this->\n distinct) {\n\n $return .= \" DISTINCT\";\n }\n\n $columnsArr = [];\n\n foreach ($this->\n columns as $key => $value) {\n\n if (is_string($value)) {\n\n $columnsArr[] = $value;\n } else if (isset($value['subquery']) &&\n $value['subquery'] instanceof \\FluitoPHP\\Database\\DBQueryHelper &&\n $value['subquery']->\n IsSelect()) {\n\n $columnsArr[] = \"(\" . $value['subquery']->\n Generate() . \")\" . (isset($value['label']) &&\n is_string($value['label']) ? \" AS \\\"{$value['label']}\\\"\" : \"\");\n } else if (isset($value['value'])) {\n\n $columnsArr[] = \"'{$value['value']}'\" . (isset($value['label']) &&\n is_string($value['label']) ? \" AS \\\"{$value['label']}\\\"\" : \"\");\n } else {\n\n $columnsArr[] = \"{$value['column']}\" . (isset($value['label']) &&\n is_string($value['label']) ? \" AS \\\"{$value['label']}\\\"\" : \"\");\n }\n }\n\n if (count($columnsArr)) {\n\n $return .= \" \" . implode($columnsArr, \", \");\n } else {\n\n $return .= \" *\";\n }\n\n\n $tablesStr = \"\";\n\n foreach ($this->\n tables as $key => $value) {\n\n if (is_string($value)) {\n\n $tablesStr .= \", $value\";\n } else {\n\n if (!(isset($value['table']) &&\n $value['table'] != \"\") &&\n isset($value['subquery']) &&\n $value['subquery'] instanceof \\FluitoPHP\\Database\\DBQueryHelper &&\n $value['subquery']->\n IsSelect()) {\n\n $value['table'] = \"(\" . rtrim($value['subquery']->\n Generate(), ';') . \")\";\n\n if (!isset($value['alias'])) {\n\n throw new \\Exception(\"Error: Alias required in case of subquery to be used in from clause.\");\n }\n } else {\n\n $value['table'] = \"{$value['table']}\";\n }\n\n if (isset($value['alias'])) {\n\n $value['alias'] = \"`{$value['alias']}`\";\n }\n\n if (!isset($value['table']) ||\n $value['table'] == \"\") {\n\n throw new \\Exception(\"Error: Tables not properly provided in QueryHelper.\");\n }\n\n if (!isset($value['jointype'])) {\n\n $tablesStr .= \", \" . $value['table'];\n\n if (isset($value['alias'])) {\n\n $tablesStr .= \" AS \" . $value['alias'];\n }\n } else {\n\n switch ($value['jointype']) {\n case 'j':\n\n $tablesStr .= \" JOIN \" . $value['table'];\n break;\n\n case 'ij':\n\n $tablesStr .= \" INNER JOIN \" . $value['table'];\n break;\n\n case 'cj':\n\n $tablesStr .= \" CROSS JOIN \" . $value['table'];\n break;\n\n case 'sj':\n\n $tablesStr .= \" STRAIGHT_JOIN \" . $value['table'];\n break;\n\n case 'lj':\n\n $tablesStr .= \" LEFT JOIN \" . $value['table'];\n break;\n\n case 'rj':\n\n $tablesStr .= \" RIGHT JOIN \" . $value['table'];\n break;\n\n case 'nj':\n\n $tablesStr .= \" NATURAL JOIN \" . $value['table'];\n break;\n\n case 'nlj':\n\n $tablesStr .= \" NATURAL LEFT JOIN \" . $value['table'];\n break;\n\n case 'nrj':\n\n $tablesStr .= \" NATURAL RIGHT JOIN \" . $value['table'];\n break;\n\n case 'loj':\n\n $tablesStr .= \" LEFT OUTER JOIN \" . $value['table'];\n break;\n\n case 'roj':\n\n $tablesStr .= \" RIGHT OUTER JOIN \" . $value['table'];\n break;\n\n case 'nloj':\n\n $tablesStr .= \" NATURAL LEFT OUTER JOIN \" . $value['table'];\n break;\n\n case 'nroj':\n\n $tablesStr .= \" NATURAL RIGHT OUTER JOIN \" . $value['table'];\n break;\n\n default:\n break;\n }\n\n if (isset($value['alias'])) {\n\n $tablesStr .= \" AS \" . $value['alias'];\n }\n\n if (isset($value['joinconditions']) &&\n count($value['joinconditions'])) {\n\n $tablesStr .= $this->\n WhereClause($value['joinconditions'], 1);\n }\n }\n }\n }\n\n $return .= \" FROM \" . ltrim($tablesStr, \", \");\n\n\n if (count($this->\n where)) {\n\n $return .= $this->\n WhereClause($this->\n where);\n }\n\n\n $groupsArr = [];\n\n foreach ($this->\n group as $key => $value) {\n\n if (is_string($value)) {\n\n $groupsArr[] = \"{$value}\";\n } else if (isset($value['subquery']) &&\n $value['subquery'] instanceof \\FluitoPHP\\Database\\DBQueryHelper &&\n $value['subquery']->\n IsSelect()) {\n\n $groupsArr[] = \"(\" . rtrim($value['subquery']->\n Generate(), ';') . \")\";\n } else if (isset($value['value'])) {\n\n $value['value'] = $this->\n connection->\n GetConn()->\n real_escape_string($value['value']);\n $groupsArr[] = \"'{$value['value']}'\";\n } else {\n\n $groupsArr[] = \"{$value['column']}\";\n }\n }\n\n if (count($groupsArr)) {\n\n $return .= \" GROUP BY \" . implode($groupsArr, \", \");\n }\n\n\n if (count($this->\n having)) {\n\n $return .= $this->\n WhereClause($this->\n having, 2);\n }\n\n\n $ordersArr = [];\n\n foreach ($this->\n order as $key => $value) {\n\n if (is_string($value)) {\n\n $ordersArr[] = $value;\n } else if (isset($value['subquery']) &&\n $value['subquery'] instanceof \\FluitoPHP\\Database\\DBQueryHelper &&\n $value['subquery']->\n IsSelect()) {\n\n $ordersArr[] = \"(\" . rtrim($value['subquery']->\n Generate(), ';') . \")\" . (isset($value['type']) &&\n $value['type'] == 'd' ? \" DESC\" : \"\");\n } else if (isset($value['value'])) {\n\n $ordersArr[] = \"'{$value['value']}'\" . (isset($value['type']) &&\n $value['type'] == 'd' ? \" DESC\" : \"\");\n } else {\n\n $ordersArr[] = \"{$value['column']}\" . (isset($value['type']) &&\n $value['type'] == 'd' ? \" DESC\" : \"\");\n }\n }\n\n if (count($ordersArr)) {\n\n $return .= \" ORDER BY \" . implode($ordersArr, \", \");\n }\n\n if ($this->\n perpage > 0) {\n\n if ($this->\n page < 1) {\n\n $this->\n page = 1;\n }\n\n $startcount = $this->\n perpage * ($this->\n page - 1);\n\n $return .= \" LIMIT {$startcount}, {$this->\n perpage}\";\n }\n\n return $return . \";\";\n }", "public function select($params){\n\t\t$DB = Registry::getInstance()->DB;\n\t\t$prefix = \"SELECT \";\n\t\t$p = $this->clean($params);\n\t\t$statement = $prefix.\" \".$this->genFrom($p['cols']).\" \".$this->genTable($p['tables']).$this->genWhere($p['where']);\t\n\t\treturn $DB->select($statement);\t\n\t}", "protected abstract function getSelectStatement(array $columns);", "protected function _authenticateCreateSelect()\n {\n // build credential expression\n if (empty($this->_credentialTreatment)\n || (strpos($this->_credentialTreatment, \"?\") === false)\n ) {\n $this->_credentialTreatment = '?';\n }\n\n $credentialExpression = \n '(CASE WHEN ' . \n $this->_db->escape($this->_credentialColumn, true)\n . ' = ' . $this->_credentialTreatment \n . ' THEN 1 ELSE 0 END) AS '\n . $this->_db->escape('zend_auth_credential_match', true);\n\n // get select\n \n $dbSelect = \"SELECT *, $credentialExpression \" \n . \" FROM \" . $this->_tableName\n . ' WHERE '\n . $this->_db->escape($this->_identityColumn, true) . ' = ?';\n if ($this->_conditionStatement) { \n $dbSelect .= ' AND ' . $this->_conditionStatement;\n }\n return $dbSelect;\n }", "public function get_select()\n {\n $flags = $this->sql_no_cache ? 'sql_no_cache' : '';\n $flags .= $this->sql_calc_found ? 'sql_calc_found_rows' : '';\n\n $fields_table = $this->alias ? $this->alias: self::quote_name($this->table);\n\n $fields = $this->fields ? join(', ', $this->fields): $fields_table.'.*';\n $from = $this->get_from();\n $join = $this->get_join();\n $where = $this->get_where();\n $having = $this->get_having();\n $order = $this->get_order();\n $group = $this->get_group();\n $limit = $this->get_limit();\n $mode = $this->for_update ? 'for update': '';\n $mode = $this->share_mode ? 'lock in share mode': '';\n // MySQL runs a needless filesort when grouping without an order clause. disable it.\n if ($group && !$order) $order = 'order by null';\n return \"select $flags $fields $from $join $where $group $having $order $limit $mode\";\n }", "private function __select() {\n $from_str = $this->getFromStr();\n $field = $this->field_str;\n if (empty($field)) {\n $field = '*';\n }\n $sql = \"SELECT {$field} FROM {$from_str}\";\n if (!empty($this->join_str_list)) {\n $temp = implode(' ', $this->join_str_list);\n $sql .= \" {$temp}\";\n }\n if (!empty($this->where_str)) {\n $sql .= \" WHERE {$this->where_str}\";\n }\n if (!empty($this->group_str)) {\n $sql .= \" GROUP BY {$this->group_str}\";\n }\n if (!empty($this->order_str)) {\n $sql .= \" ORDER BY {$this->order_str}\";\n }\n if (!empty($this->limit_str)) {\n $sql .= \" LIMIT {$this->limit_str}\";\n }\n $list = $this->query($sql);\n return $list;\n }", "protected function _sql_select ( /* void */ )\n {\n /*\n Start SQL query.\n */\n $sql = ($this->bDistinct) ? 'SELECT DISTINCT ' : 'SELECT ';\n /*\n Select which fields ?\n */\n $sql .= (empty($this->aFields)) ? '*' : implode(', ', $this->aFields);\n /*\n From which tables ?\n */\n $sql .= (empty($this->aTables)) ? '' : \"\\nFROM \" . implode(', ', $this->aTables);\n /*\n Join something ?\n */\n if (!empty($this->aJoin))\n {\n foreach ($this->aJoin as $j)\n {\n $sql .= \"\\n{$j[0]} JOIN {$j[1]} ON {$j[2]}\";\n }\n }\n /*\n Where ?\n */\n if (!empty($this->aWhere))\n {\n $sql .= \"\\nWHERE \" . implode(\"\\n\", $this->aWhere);\n $sql .= (!empty($this->aLike)) ? implode(\"\\n\", $this->aLike) : '';\n }\n elseif (!empty($this->aLike))\n {\n $sql .= \"\\nWHERE \" . implode(\"\\n\", $this->aLike);\n }\n /*\n Group by ?\n */\n if (!empty($this->aGroupBy))\n {\n $sql .= \"\\nGROUP BY \" . implode(', ', $this->aGroupBy);\n }\n /*\n Having ?\n */\n if (!empty($this->aHaving))\n {\n $sql .= \"\\nHAVING \";\n foreach ($this->aHaving as $i)\n {\n $sql .= \"\\n{$i[0]}{$i[1]} {$i[2]}\";\n }\n }\n /*\n Order by ?\n */\n if (!empty($this->aOrderBy))\n {\n $sql .= \"\\nORDER BY \";\n foreach ($this->aOrderBy as $i)\n {\n $sql .= \"{$i[0]} {$i[1]}, \";\n }\n $sql = trim($sql, ', ');\n }\n /*\n Query limit ?\n */\n if ($this->nLimit !== false)\n {\n if ($this->nOffset !== false)\n {\n $sql .= \"\\nLIMIT \" . $this->nOffset . ', ' . $this->nLimit;\n }\n else\n {\n $sql .= \"\\nLIMIT 0, \" . $this->nLimit;\n }\n }\n /*\n Return SQL.\n */\n return $sql;\n }", "public function select()\n {\n return $this->_db->factory('select', $this);\n }", "public function select();", "public function select();", "public function select();", "public function sql() {\n\t\t$sqlT = \\lulo\\twig\\TwigTemplate::factoryHtmlResource(\\lulo\\query\\Query::PATH . \"/select/query.twig.sql\");\n\t\treturn $sqlT->render([\"query\" => $this]);\n\t}", "private function buildSelectString () \n {\n $this->selectSql = \"SELECT \";\n $this->selectSql .= $this->columns;\n $this->selectSql .= \" FROM \" . $this->tableName;\n if ($this->where !== null && $this->where !== \"\") {\n $this->selectSql .= \" WHERE \" . $this->where;\n }\n if ($this->order !== null && $this->order !== \"\") {\n $this->selectSql .= \" ORDER BY \" . $this->order;\n }\n if ($this->other !== null && $this->other !== \"\") {\n $this->selectSql .= $this->other;\n }\n }", "public function generateSqlSelectStatement() {\n $subReport = $this->reportDefinition->getCurrentSubReport();\n\n $this->reportDefinition->resetDisplayGroup();\n\n $displayGroups = $this->reportDefinition->getDisplayGroups($subReport);\n if (is_null($displayGroups)) {\n throw new ReportException(\"Invalid XML Definition!!! ( DisplayGroups should be defined )\");\n }\n\n $displayGroup = $this->reportDefinition->getCurrentDisplayGroup($displayGroups);\n if (is_null($displayGroup)) {\n throw new ReportException(\"Invalid XML Definition!!! ( At least one display group should be defined )\");\n }\n\n $selectStatement = \"SELECT \";\n\n while (!is_null($displayGroup)) {\n\n $displayGroupType = $this->reportDefinition->getDisplayGroupType($displayGroup);\n if (is_null($displayGroupType) || empty($displayGroupType)) {\n throw new ReportException(\"Invalid XML Definition!!! ( Display Group Type is not defined )\");\n }\n\n if ($displayGroupType == self::DISPLAY_GROUP_TYPE_ONE) {\n\n $this->reportDefinition->resetField();\n $fields = $this->reportDefinition->getFields($displayGroup);\n\n if (is_null($fields)) {\n throw new ReportException(\"Invalid XML Definition!!! ( There are no fields defined )\");\n }\n\n $field = $this->reportDefinition->getCurrentField($fields);\n if (is_null($field)) {\n throw new ReportException(\"Invalid XML Definition!!! ( There is no field defined )\");\n }\n\n $firstRound = TRUE;\n while (!is_null($field)) {\n\n if (!$firstRound) {\n $selectStatement .= \",\";\n } else {\n $firstRound = FALSE;\n }\n\n $fieldName = $this->reportDefinition->getFieldName($field);\n if (is_null($fieldName) || empty($fieldName)) {\n throw new ReportException(\"Invalid XML Definition!!! ( A field should have a name )\");\n }\n\n $fieldAlias = $this->reportDefinition->getFieldAlias($field);\n\n if ($fieldAlias != \"\") {\n $fieldName = $fieldName . \" AS \" . $fieldAlias . \" \";\n }\n\n $selectStatement = $selectStatement . \" \" . $fieldName;\n\n $field = $this->reportDefinition->getNextField($fields);\n }\n } else if ($displayGroupType == self::DISPLAY_GROUP_TYPE_Many) {\n\n $this->reportDefinition->resetField();\n $fields = $this->reportDefinition->getFields($displayGroup);\n if (is_null($fields)) {\n throw new ReportException(\"Invalid XML Definition!!! ( There are no fields defined )\");\n }\n\n $field = $this->reportDefinition->getCurrentField($fields);\n if (is_null($field)) {\n throw new ReportException(\"Invalid XML Definition!!! ( There is no field defined )\");\n }\n\n $displayGroupName = $this->reportDefinition->getDisplayGroupName($displayGroup);\n if (is_null($displayGroupName) || empty($displayGroupName)) {\n throw new ReportException(\"Invalid XML Definition!!! ( Display group name is not defined )\");\n }\n\n $groupConcat = \"GROUP_CONCAT(DISTINCT CONCAT_WS('|^^|'\";\n\n while (!is_null($field)) {\n $fieldName = $this->reportDefinition->getFieldName($field);\n if (is_null($fieldName) || empty($fieldName)) {\n throw new ReportException(\"Invalid XML Definition!!! ( A field should have a name )\");\n }\n\n $groupConcat = $groupConcat . \", (CASE WHEN \" . $fieldName . \" IS NULL OR \" . $fieldName . \" = ' ' THEN '\" . self::EMPTY_FIELD_FILL . \"' ELSE \" . $fieldName . \" END )\";\n\n $field = $this->reportDefinition->getNextField($fields);\n }\n\n $groupConcat = $groupConcat . \") SEPARATOR '\" . self::SEPERATOR . \"')\";\n $selectStatement = $selectStatement . \" , \" . $groupConcat . \" AS \" . $displayGroupName;\n } else {\n throw new ReportException(\"Invalid XML Definition!!! ( Invalid group type ) \");\n }\n\n $displayGroup = $this->reportDefinition->getNextDisplayGroup($displayGroups);\n }\n\n $this->reportDefinition->resetField();\n $this->reportDefinition->resetDisplayGroup();\n return $selectStatement;\n }", "function SelectSQL() {\n\t\t$sFilter = $this->getSessionWhere();\n\t\tew_AddFilter($sFilter, $this->CurrentFilter);\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\n\t\t$this->Recordset_Selecting($sFilter);\n\t\t$sSort = $this->getSessionOrderBy();\n\t\treturn ew_BuildSelectSql($this->getSqlSelect(), $this->getSqlWhere(), $this->getSqlGroupBy(),\n\t\t\t$this->getSqlHaving(), $this->getSqlOrderBy(), $sFilter, $sSort);\n\t}", "function SelectSQL() {\n\t\t$sFilter = $this->getSessionWhere();\n\t\tew_AddFilter($sFilter, $this->CurrentFilter);\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\n\t\t$this->Recordset_Selecting($sFilter);\n\t\t$sSort = $this->getSessionOrderBy();\n\t\treturn ew_BuildSelectSql($this->getSqlSelect(), $this->getSqlWhere(), $this->getSqlGroupBy(),\n\t\t\t$this->getSqlHaving(), $this->getSqlOrderBy(), $sFilter, $sSort);\n\t}", "protected static function buildSelectionQuery() \n {\n return Query::select()->\n from(self::getTableName());\n }", "function select() {\n return \"\n contact_a.id AS contact_id,\n contact_a.contact_sub_type AS contact_sub_type,\n contact_a.sort_name AS sort_name,\n source,\n created_date,\n modified_date\n \";\n }", "protected function getSelectStatement() {\n return \"SELECT PostID, UserID, MainPostImage, Title, Message, PostTime\n FROM Posts\";\n }", "abstract public function prepareSelect();", "function getSelectSql()\n {\n $str = \"SELECT * FROM \";\n if (isset($this->schema))\n $str = $str . $this->schema . \".\";\n\n $str = $str . $this->tblName . \" WHERE \" . $this->getWhereCondition($this->tblIndex);\n return $str;\n }", "function _select ($table_name, $select_column_names, $distinct = FALSE) {\n\t\t$statement = $distinct ? 'SELECT DISTINCT ' : 'SELECT ';\n\t\tif ( isset($select_column_names) && $select_column_names ) {\n\t\t\t$count_select_column_names = count($select_column_names);\n\t\t\tfor ($pointer = 0; $pointer < $count_select_column_names; $pointer++) { \n\t\t\t\tif ($pointer == $count_select_column_names - 1 ) {\n\t\t\t\t\t$statement .= '`' . $select_column_names[$pointer] . '` ';\n\t\t\t\t} else {\n\t\t\t\t\t$statement .= '`' . $select_column_names[$pointer] . \"`, \";\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$statement .= \"* \";\n\t\t}\n\t\t$statement .= \"FROM `{$table_name}` \" ;\n\t\treturn $statement;\n\t}", "public function select($table, $fields, $where, $order, $start);", "static public function GenerateBaseSelectClause()\r\n\t{\r\n\t\t$returnValue = \"\tSELECT\ta.TagID,\r\n\t\t\t\t\t\t\t\t\t\ta.TagText \";\r\n\r\n\t\treturn $returnValue;\r\n\t}", "public function selectQuery($sql_stmt)\n {\n return DB::select($sql_stmt);\n }", "function SelectSQL() {\n\t\t$sFilter = $this->getSessionWhere();\n\t\tif ($this->CurrentFilter <> \"\") {\n\t\t\tif ($sFilter <> \"\") $sFilter = \"(\" . $sFilter . \") AND \";\n\t\t\t$sFilter .= \"(\" . $this->CurrentFilter . \")\";\n\t\t}\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\n\t\t$sSort = $this->getSessionOrderBy();\n\t\treturn ew_BuildSelectSql($this->SqlSelect(), $this->SqlWhere(), $this->SqlGroupBy(),\n\t\t\t$this->SqlHaving(), $this->SqlOrderBy(), $sFilter, $sSort);\n\t}", "private function GeneraSelectQuery($fields,$where)\r\n\t{\r\n\t\t$sql=\"select \r\n\t\t\t\".$fields.\" \r\n\t\t\tfrom Tabla\r\n\t\t\tinner join Tabla1 on Tabla1.id=Tabla.idTabla1\r\n\t\t\t\".(($where)?\" WHERE \".$where:\"\");\r\n\t\treturn $sql;\r\n\t}", "protected function runSelect()\n {\n return $this->connection->select(\n $this->toSql(),\n $this->getBindings(),\n $this->option->setUseWrite($this->useWritePdo)\n );\n }", "function select() {\n return \"\n contact_a.id as contact_id ,\n contact_a.contact_type as contact_type,\n contact_a.sort_name as sort_name,\n contact_a.job_title as job_title,\n contact_a.organization_name as current_employer\n \";\n }", "protected function buildSelectClause() {\r\n\t\t$sql='';\r\n\t\t$fields=array();\r\n\t\tforeach($this->_salt_fields as $data) {\r\n\t\t\t/** @var SqlExpr $expr */\r\n\t\t\tlist($expr, $alias) = $data;\r\n\r\n\t\t\t$fields[]=$expr->toSQL().' as '.self::escapeName($alias);\r\n\t\t\t$this->linkBindsOf($expr, ClauseType::SELECT);\r\n\t\t}\r\n\t\t$sql.=implode(', ', $fields);\r\n\t\treturn $sql;\r\n\t}", "public function select()\n\t{\n\t\treturn call_user_func_array([$this->queryFactory->__invoke('select'), 'select'], func_get_args());\n\t}", "function buildSelect($db_name,$table_name,$columns,$where_select){\n\n\t$query_select = \"SELECT \";\n\t//FILL COLUMNS FOR GET\n\tforeach ($columns as $c) {\n\t\t$query_select .= $c;\n\t\tif(array_search($c,$columns) != count($columns) - 1) $query_select .= \",\";\n\t}\n\tif($where_select != \"*\"){//GET \n\t\t//INTERMEDIATE\n\t\t$query_select .= \" FROM $table_name WHERE \";\n\t\t//FILL VALUES WHERE\n\t\tend($where_select);\n\t\t$last_key = key($where_select);\n\t\tforeach ($where_select as $key => $value) {\n\t\t\t$query_select .= $key . \"=\" . \":\" . $key;\n\t\t\tif($key != $last_key) $query_select .= \" AND \";\n\t\t}\n\t\texecuteQuery(\"USE $db_name\");\n\t\treturn executeQuery($query_select,$where_select);\n\t}\n\telse{//GET ALL SELECT\n\t\t//INTERMEDIATE\n\t\t$query_select .= \" FROM $table_name\";\n\t\texecuteQuery(\"USE $db_name\");\n\t\treturn executeQuery($query_select,\"*\");\n\t}\n\n}", "public function select()\n {\n $cols = $this->getColsAsFields();\n return $this->gateway->select($cols);\n }", "public function select($what = \"*\"){\n\t\t\tif(is_string($what)){\n\t\t\t\t$this->select = \"SELECT \" . $what . \" FROM \" . $this->table;\n\t\t\t}else{\n\t\t\t\t$this->select = false;\n\t\t\t}\n\t\t\treturn $this;\n\t\t}", "public function select(?string $template = null): Query\n {\n if ($this->queryType !== self::SELECT) {\n $this->resetStatement();\n $this->queryType = self::SELECT;\n }\n return $this->template($template ?? 'SELECT {{columns}} FROM {{tables}} {{where}} {{sort}} {{pagination}}');\n }", "function adv_select($table, array $where = null, array $fields = null, $order = '', $limit = null, $offset = null);", "protected function runSelectWithMeta()\n {\n return $this->connection->selectWithMeta(\n $this->toSql(),\n $this->getBindings(),\n ! $this->useWritePdo\n );\n }", "public function select($fields=null) { if ($fields) $this->fields($fields); return $this->execute($this->get_select()); }", "public function PgSelect($sql){\n $this->StartBD();\n $this->SQuery = $this->PgQuery($sql);\n if (!$this->SQuery){\n die(\"SELECT Erroneo!\");\n }\n $this->EndBD();\n }", "public function testInitialSelectStatement()\n {\n $method = $this->builder_reflection->getMethod('sql_select_statement');\n $method->setAccessible(TRUE);\n\n $property = $this->builder_reflection->getProperty('select_statement');\n $property->setAccessible(TRUE);\n\n $method->invokeArgs($this->builder, array('SELECT * FROM table1'));\n\n $string = 'SELECT * FROM table1';\n\n $this->assertEquals($string, $property->getValue($this->builder));\n }", "protected function buildValuesFromSelect(): string\n {\n $sql = '';\n\n // Check for a SELECT statement and append if available\n if ( isset($this->select) )\n {\n $sql .= $this->indentStatement($this->select, 1);\n\n $this->mergeBindings($this->select);\n }\n\n return $sql;\n }", "protected static function select()\n {\n }", "public function select($values = array(\"*\")){\n\t\t\t$string = self::SELECT;\n\n\t\t\t$string .= ' ' . (count($values) > 1 ? implode(', ', $values) : $values[0]);\n\t\t\t\n\t\t\t$this->_query = $string . ' ';\n\t\t\treturn $this->_returnObject ? $this : $string;\n\t\t}", "static function custom_get_sql() {\n # this is the default functionality\n $table = static::get_tablename();\n return \"select * from $table\";\n }", "function oracle9_test_select() {\n\t $sSQL = \"SELECT MCIID,CODCODE,ITMNAME,ITMACTIVE, DFTID FROM STI WHERE CODCODE='70129'\";\n\t echo $sSQL,\"<br>\";\n\t \n\t $result = $this->ora_con->Execute($sSQL);\n\t \n\t //print_r($result);\n\t $i=0;\n\t while(!$result->EOF) {\n\t echo \"<br>\",$result->fields[2];\n\t\t $result->MoveNext();\n\t\t $i+=1;\n\t }\n\t echo '>>>',$this->ora_con->ErrorMsg();\n\t}", "public function getStatement();", "public function getStatement();", "public function getStatement();", "final public static function toSQL()\n {\n $select = false;\n foreach (self::$starts as $reserved) {\n if (strpos(self::$query, $reserved . ' ') === 0) {\n $select = true;\n break;\n }\n }\n\n if (!$select) {\n self::$query = \"SELECT * FROM \" . self::tableName() . self::$query;\n }\n\n\n $values = [];\n for ($i = 0; $i < sizeof(self::$bindParams); $i++) {\n foreach (self::$bindParams[$i] as $item) {\n $values[] = $item;\n }\n }\n\n if (sizeof($values) > 0) {\n $query = self::$query;\n self::$query = \"\";\n self::$where = false;\n self::$bindParams = array();\n $query = str_replace(\"?\", \"#%s#\", $query);\n $query = sprintf($query, ...$values);\n $query = str_replace(\"#\", \"'\", $query);\n return sprintf($query, ...$values);\n }\n return self::$query;\n }", "static public function GenerateBaseSelectClause()\n\t{\n\t\t$returnValue = \"\tSELECT\ta.MerchantAccountID,\n\t\t\t\t\t\t\t\t\t\ta.Name,\n\t\t\t\t\t\t\t\t\t\ta.ProcessorClassName,\n\t\t\t\t\t\t\t\t\t\ta.IsAvailable,\n\t\t\t\t\t\t\t\t\t\tb.TransactionFee,\n\t\t\t\t\t\t\t\t\t\tb.DiscountPercent,\n\t\t\t\t\t\t\t\t\t\tb.AccountID \";\n\n\t\treturn $returnValue;\n\t}", "function select($fields = NULL)\n {\n // Create a fresh slate\n $this->object->_init();\n if (!$fields or $fields == '*') {\n $fields = $this->get_table_name() . '.*';\n }\n $this->object->_select_clause = \"SELECT {$fields}\";\n return $this->object;\n }", "public function select(string $table, string $columns, string $where = \"\", array $bindings = array()): PDOStatement;", "private function Select()\n {\n $return = false;\n $action = $this->Action();\n $columns = $this->Columns();\n $table = $this->Table();\n $where = (Checker::isArray($this->Where(), false))?$this->Where():array(Where::QUERY => \"\", Where::VALUES => array());\n $order = (Checker::isString($this->Order()))?$this->Order():\"\";\n $limit = (Checker::isInt($this->Limit()))?\" LIMIT \".$this->Limit():\"\";\n if($columns && $table && Checker::isArray($where, false))\n {\n $return[Where::QUERY] = \"$action $columns FROM $table\".$where[Where::QUERY].\"$order$limit\";\n\n if(Checker::isArray($where, false) && isset($where[Where::VALUES])) $return[Where::VALUES] = $where[Where::VALUES];\n else $return[Where::VALUES] = array();\n }\n return $return;\n }", "static function select($sql, $params = array()) {\n $sth = static::execute($sql, $params);\n\n $result = $sth->fetchAll();\n\n return $result;\n }", "public function select($values = []) {\r\n\t\t$_fields = implode(\",\", $this->clausules['fields']);\r\n\r\n\t\t$query[] = \"SELECT\";\r\n\t\t$query[] = $_fields;\r\n\t\t$query[] = \"FROM\";\r\n\t\t$query[] = $this->clausules['table'];\r\n\r\n\t\tif (isset($this->clausules['join'])) {\r\n\t\t\t$query[] = \"INNER JOIN \" . $this->clausules['join']['table'];\r\n\t\t\t$query[] = \"ON \" . $this->clausules['join']['param'];\r\n\t\t}\r\n\r\n\t\t$query[] = $this->testClausules();\r\n\r\n\t\t// Transforma as query[] em uma string sql\r\n\t\t$sql = implode(\" \", $query);\r\n\r\n\t\treturn $this->executeSelect($sql, $values);\r\n\t}", "public function select($infos)\n {\n try {\n\n $tabela = $infos['table'];\n $campos = isset($infos['fields']) ? $infos['fields'] : [\"*\"];\n\n $whereCriteria = $infos['where'];\n\n $campos = gettype($campos) == \"array\" ? implode(\", \", $campos) : $campos;\n\n $this->sql = \"SELECT \" . $campos . \" FROM $tabela \";\n if (!empty($whereCriteria)) {\n $this->sql .= \" WHERE \" . $whereCriteria . \" \";\n }\n return $this->sql . \";\";\n\n } catch (PhiberException $phiberException) {\n throw new PhiberException(new Internationalization(\"query_processor_error\"));\n }\n\n }", "public function select($query){\n return pg_fetch_all($this -> query($query));\n }", "private function _createSQLSelect(array $params){\n\t\t$select = 'SELECT ';\n\t\tif(isset($params['columns'])){\n\t\t\t$this->clear();\n\t\t\t$select.= $params['columns'];\n\t\t} else {\n\t\t\t$select.= join(', ', $this->_getAttributes());\n\t\t}\n\t\tif($this->_schema){\n\t\t\t$select.= ' FROM '.$this->_schema.'.'.$this->_source;\n\t\t} else {\n\t\t\t$select.= ' FROM '.$this->_source;\n\t\t}\n\t\t$return = 'n';\n\t\t$primaryKeys = $this->_getPrimaryKeyAttributes();\n\t\tif(isset($params['conditions'])&&$params['conditions']){\n\t\t\t$select.= ' WHERE '.$params['conditions'].' ';\n\t\t} else {\n\t\t\tif(!isset($primaryKeys[0])){\n\t\t\t\tif($this->isView==true){\n\t\t\t\t\t$primaryKeys[0] = 'id';\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(isset($params[0])){\n\t\t\t\tif(is_numeric($params[0])){\n\t\t\t\t\tif(isset($primaryKeys[0])){\n\t\t\t\t\t\t$params['conditions'] = $primaryKeys[0].' = '.$this->_db->addQuotes($params[0]);\n\t\t\t\t\t\t$return = '1';\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new ActiveRecordException('No se ha definido una llave primaria para este objeto');\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif($params[0]===''){\n\t\t\t\t\t\tif(isset($primaryKeys[0])){\n\t\t\t\t\t\t\t$params['conditions'] = $primaryKeys[0].\" = ''\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthrow new ActiveRecordException('No se ha definido una llave primaria para este objeto');\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$params['conditions'] = $params[0];\n\t\t\t\t\t}\n\t\t\t\t\t$return = 'n';\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(isset($params['conditions'])){\n\t\t\t\t$select.= ' WHERE '.$params['conditions'];\n\t\t\t}\n\t\t}\n\t\tif(isset($params['group'])&&$params['group']) {\n\t\t\t$select.= ' GROUP BY '.$params['group'];\n\t\t}\n\t\tif(isset($params['order'])&&$params['order']) {\n\t\t\t$select.= ' ORDER BY '.$params['order'];\n\t\t}\n\t\tif(isset($params['limit'])&&$params['limit']) {\n\t\t\t$select = $this->_limit($select, $params['limit']);\n\t\t}\n\t\tif(isset($params['for_update'])&&$params['for_update']==true){\n\t\t\t$select = $this->_db->forUpdate($select);\n\t\t}\n\t\tif(isset($params['shared_lock'])&&$params['shared_lock']==true){\n\t\t\t$select = $this->_db->sharedLock($select);\n\t\t}\n\t\treturn array('return' => $return, 'sql' => $select);\n\t}", "protected function getBaseSelect()\n {\n return \"SELECT * FROM \" . $this->getTableName();\n }", "function getSelectStatement($db, $params, $onlyCount) {\n\n\t\t$tableName = $db->escape_string($params[0], $db);\n\t\t$tableNameWithPrefix = $_ENV[\"table_prefix\"] . $tableName;\n\n\t\tif ($onlyCount) {\n\t\t\t$sqlQuery = \"select count(*) from `$tableNameWithPrefix`\";\n\t\t\t//if (isset($params[1])) {\n\t\t\t\t$sqlQuery .= $this->getFilter($db, $tableName, $params[1]);\n\t\t\t//}\n\t\t} else {\n\t\t\tif ($tableName == \"users\") {\n\t\t\t\t// change password to a dummy value\n\t\t\t\t$sqlQuery = \"SELECT id, username, 'dummy' as `password`, firstname, lastname, email, id_team, rights FROM `$tableNameWithPrefix`\";\n\t\t\t} else if ($tableName == \"play_table\") {\n\t\t\t\t$sqlQuery = \"select @rownum:=@rownum+1 as rank, t.*,\"\n\t\t\t\t\t\t. \" (t.wins * 3 + t.stand_off) as points,\"\n\t\t\t\t\t\t. \" (t.shoot - t.got) as goals_diff, \"\n\t\t\t\t\t\t. \" concat(shoot, ':', got) as goals\"\n\t\t\t\t\t\t. \" from `$tableNameWithPrefix` t, (SELECT @rownum:=0) r\";\n\t\t\t} else if ($tableName == \"player_match\") {\n\t\t\t\t$sqlQuery = \"select PM.*, SP.id_saison_team from `$tableNameWithPrefix` PM\"\n\t\t\t\t\t\t. \" left join `\" . $_ENV[\"table_prefix\"] . \"saison_player` SP on SP.id = PM.id_saison_player\";\n\t\t\t} else {\n\t\t\t\t$sqlQuery = \"select * from `$tableNameWithPrefix`\";\n\t\t\t}\n\n\t\t\t// set filter\n\t\t\t//if (isset($params[5])) {\n\t\t\t\t$sqlQuery .= $this->getFilter($db, $tableName, $params[5]);\n\t\t\t//}\n\n\t\t\t// set order\n\t\t\tif ($tableName == \"play_table\") {\n\t\t\t\t$sqlQuery .= \" order by points desc, goals_diff desc, t.shoot desc\";\n\t\t\t} else {\n\t\t\t\tif (isset($params[1]) && isset($params[2])) {\n\n\t\t\t\t\t$sortField = $params[1];\n\t\t\t\t\t$sortOrder = $params[2];\n\n\t\t\t\t\t$sqlQuery .= \" order by $sortField $sortOrder\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// set limit\n\t\t\tif (isset($params[3]) && isset($params[4])) {\n\t\t\t\t$firstIndex = $params[3];\n\t\t\t\t$maxRows = $params[4] - $firstIndex;\n\n\t\t\t\t$sqlQuery .= \" limit $firstIndex, $maxRows\";\n\t\t\t}\n\t\t}\n\t\t//\techo $sqlQuery;\n\t\treturn $sqlQuery;\n\t}", "public abstract function getSelectSQL($fields, $from, $joins, $where, $having, $group, $order, $limit, $values, $forupdate);", "function select() {\n\n $query = 'SELECT '\n .'trafficjam.id, '\n .'trafficjam.from, '\n .'trafficjam.from_loc_lat, '\n .'trafficjam.from_loc_lon, '\n .'trafficjam.to, '\n .'trafficjam.to_loc_lat, '\n .'trafficjam.to_loc_lon, '\n .'trafficjam.start, '\n .'trafficjam.delay, '\n .'trafficjam.distance, '\n .'trafficjam.timestamp, '\n .'trafficjam.road_name '\n .'FROM trafficjam '\n .'JOIN trafficjam tj ON tj.from = trafficjam.from AND tj.to = trafficjam.to AND tj.start = trafficjam.start AND tj.id = ? ';\n \n // Prepare statement.\n $stmt = $this->conn->prepare($query);\n \n // Bind id parameter.\n $stmt->bindParam(1, $this->id);\n \n // Execute query.\n $stmt->execute();\n \n return $stmt;\n }", "public function select($table_name, $fields = array(), $where = array(), $order_by = '')\r\n {\r\n }", "public abstract function getSelect(\n $fields, $from, $where = '', $groupby = '', $limit = 0, $offset = 0\n );", "protected function compileSelect(): ?string\n {\n if (! $this->columns) {\n return null;\n }\n\n return \"select $this->columns\";\n }", "public function select($where = null, $order = null, $limit = null, $fields = '*')\n {\n $where = strlen($where) ? 'WHERE ' . $where : '';\n $order = strlen($order) ? 'ORDER BY ' . $order : '';\n $limit = strlen($limit) ? 'LIMIT ' . $limit : '';\n\n //Montando query\n $query = 'SELECT ' . $fields . ' FROM ' . $this->table . ' ' . $where . ' ' . $order . ' ' . $limit;\n return $this->execute($query);\n }", "public function Select($cond)\r\n\t\r\n {\r\n\t\tglobal $db;\r\n if($cond==\"\")\r\n {\r\n $sql = \"SELECT * FROM \".$this->TableName;\r\n } else\r\n {\t\r\n\t\t \t\r\n\t\t $sql = \"SELECT * FROM \". $this->TableName.\" \".$cond;\r\n }\r\n try{\r\n $query = $db->prepare($sql);\r\n $query->execute();\r\n $arr['rows'] = $query->fetchAll(PDO::FETCH_ASSOC);\r\n $arr['err'] = false;\r\n } catch(PDOException $e){\r\n $arr['err'] = true;\r\n $arr['msg'] = $e->getMessage(); \r\n } \r\n return $arr;\r\n }", "abstract function getSQL();", "public function select()\n {\n return new QueryProxy('select', $this);\n }", "public function select($params = []) {\n\t\t\t// Get the target table\n\t\t\t$table = $params['table'] ?? $this->table;\n\t\t\t// Get columns names [col1, col2, col3] => \"col1, col2, col3\"\n\t\t\t$columns = isset($params['columns']) ? implode(', ', $params['columns']) : '*';\n\t\t\t// Get WHERE condition\n\t\t\t$where = $this->get_where_condition($params['where'] ?? []);\n\t\t\t// Get the params to bind\n\t\t\t$bindings = $this->bindings;\n\n\t\t\t// Execute the query and return results\n\t\t\treturn $this->query(\"SELECT $columns FROM $table $where\", $bindings);\n\t\t}", "function createQuery() ;", "function sql_select_statement(int $count, array $keys)\n {\n $sql = \"\";\n for($i = 0; $i < $count; $i++ ) { $sql .= ($i != $count - 1) ? $keys[$i] . \", \" : $keys[$i] . \" \"; }\n return $sql;\n }", "function createSelect($_table, $_value, $_colum)\n{\n\n $_prev_par= false;\n $_query = \"SELECT * FROM $_table\";\n\n foreach ($_value as $_key => $_value)\n {\n if ($_value != \"\")\n {\n if ($_prev_par)\n {\n $_query.= \" AND \";\n }\n else\n {\n $_query.= \" WHERE \";\n }\n\n $_query.= $_colum[$_key].\" = '$_value'\";\n $_prev_par = true;\n }\n }\n $_query.=\";\";\n\n return $_query;\n}", "protected function runSelect()\n {\n return $this->connection->select($this->toCypher(), $this->getBindings());\n }", "public function testSelectStmt()\n {\n $select = $this->getConnection()\n ->select()\n (['blog_title', 'blog_id'])\n ('dummy_posts')\n ('WHERE blog_title = :title');\n return $this->assertEquals($select, \"SELECT blog_title, blog_id FROM dummy_posts WHERE blog_title = :title\");\n }", "function buildQuery(){\n\t\t$r = ($this->fieldName == \"\") ? \"SELECT * FROM \" . $this->tableName . \";\" : \"SELECT * FROM \" . $this->tableName . \" WHERE \" . $this->fieldName . \" = \" . $this->fieldValue . \";\";\n\t\t//print \"executing $r <br/>\";\n\t\treturn $r;\n\t}", "function getSql()\n{\n\textract($this->query, EXTR_SKIP);\n\t\n\tif (!$select or !$from) return '';\n\t\n\t$sql = 'SELECT '.implode(',', $select).' FROM '.$from;\n\tif ($where) $sql .= ' WHERE '.implode(' AND ', array_unique($where));\n\tif ($whereJoin) $sql .= ($where? ' AND ':' WHERE ').implode(' AND ', array_unique($whereJoin));\n\tif ($group) $sql .= ' GROUP BY '.$group;\n\tif ($having) $sql .= ' HAVING '.implode(' AND ', array_unique($having));\n\tif ($order) $sql .= ' ORDER BY '.implode(',', $order);\n\tif ($limit) $sql .= ' LIMIT '.$limit[0].' OFFSET '.$limit[1];\n\treturn $sql;\n}", "function select($where = false){\n $query=\"SELECT * FROM \". $this->tableName ;\n $separator=\" WHERE \";\n if ($where){\n foreach ( $where as $key => $value){\n\t$query .= $separator . $key . \" = '\" . $value . \"'\";\n\t$separator = \" AND \";\n }\n }\n $query .= \";\";\n \n $results = array();\n $res = $this->dbh->query($query);\n while ($row = $res->fetch_assoc()){\n array_push($results, $row);\n }\n return $results;\n }", "public function getSelect();", "public function getSelect();", "private function query() {\n return ApplicationSql::query($this->_select, $this->_table, $this->_join, $this->_where, $this->_order, $this->_group, $this->_limit, $this->_offset);\n }", "public function to_str() {\n //\n //Construct the sql (select) statement\n $stmt = \n \"select \\n\"\n //\n //Field selection \n . \"{$this->fields->to_str()} \\n\"\n . \"from \\n\"\n //\n //For now the root is simply the name of a table or a bracketed \n //enclose sql \n . \"{$this->root->fromexp()} \\n\"\n //\n //The joins, if any\n . \"{$this->joins->to_str()} \\n\"\n //\n //The where clause, if necessary \n .\"{$this->wheres->to_str()}\";\n return $stmt;\n \n }", "public static function buildSelectStatement($columns = '*', $table, $where)\n{\n\t// Determine which columns to select\n\tif (empty($columns))\n\t{\n\t\t$columns = '*';\n\t}\n\telse\n\t{\n\t\t$columns = (is_array($columns))\n\t\t\t? implode(', ', $columns)\n\t\t\t: strval($columns);\n\t}\n\n\t// Form SELECT statement\n\t$stmt = 'SELECT ' . $columns\n\t . ' FROM ' . $table\n\t . self::buildWhereClause($where);\n\n\t// Return statement\n\treturn $stmt;\n}", "protected abstract function getSqlStatement();", "public function getSelectSql()\n {\n return $this->selectSql; \n }", "public function select($statement, $named_placeholder){\n\n // prepared statement (send statement to server + checks syntax)\n $stmt = $this->conn->prepare($statement);\n\n $stmt->execute($named_placeholder);\n $result = $stmt->fetchAll(PDO::FETCH_ASSOC);\n\n return $result;\n\n }", "public function make(){\n $query=$this->select.\" \".$this->from;\n if(!empty($this->where)){\n\t$query=$query.\" \".$this->where;\n }\n if(!empty($this->order)){\n\t$query= $query.\" \".$this->order;\n }\n return $query;\n}", "public function getSQL(){\n $sqlString = \"select \";\n $campos = $this->getCampos();\n //var_dump($campos);\n if (is_array($campos) && empty($campos)) {\n $sqlString .= \" * \";\n } else {\n $campos = \"\";\n foreach ($this->getCampos() as $key => $value) {\n if (!$campos == \"\") { \n $campos.=\" ,\"; \n };\n $campos.=\" \".$value.\" as \".$key.\" \";\n }\n $sqlString .= $campos;\n }\n $sqlString .= \" from \" . $this->getTabla();\n if ( $this->getSQLFilter() != \"\" ) {\n $sqlString .= \" where \" . $this->getSQLFilter();\n }\n \n $sqlString .= $this->getSQLGroupBy();\n $sqlString .= $this->getSQLOrderBy();\n //echo $sqlString.\"\\n\";\n return $sqlString; \n }", "public function select(\n IModel $target, $statement, array $parameters = null\n );", "protected function compileSelectStatement($selectOverride = false)\n {\n // Write the \"select\" portion of the query\n if ($selectOverride !== false) {\n $sqlStatement = $selectOverride;\n } else {\n $sqlStatement = ( ! $this->builderCache->distinct)\n ? 'SELECT %s'\n : 'SELECT DISTINCT %s';\n\n if (count($this->builderCache->select) === 0) {\n $SqlSelectStatement = \"*\";\n } else {\n // Cycle through the \"select\" portion of the query and prep each column name.\n // The reason we protect identifiers here rather than in the select() function\n // is because until the user calls the from() function we don't know if there are aliases\n foreach ($this->builderCache->select as $selectKey => $selectField) {\n $noEscape = isset($this->builderCache->noEscape [ $selectKey ])\n ? $this->builderCache->noEscape [ $selectKey ]\n : null;\n $this->builderCache->select [ $selectKey ] = $this->conn->protectIdentifiers(\n $selectField,\n false,\n $noEscape\n );\n }\n\n $SqlSelectStatement = implode(\", \\n\\t\", $this->builderCache->select);\n }\n\n $sqlStatement = sprintf($sqlStatement, $SqlSelectStatement);\n }\n\n return trim($sqlStatement);\n }", "function is_select_statement()\n {\n return $this->object->_select_clause ? TRUE : FALSE;\n }", "function SelectFactory ($options)\n{\n if ( ! is_array($options) ) return false;\n\n // Select statement clause list, in order of appearance\n\n $statement_clauses = array(); /* initialize to empty array */\n $statement_clauses[0] = array('name' => 'selectoptions', 'join' => ' ');\n $statement_clauses[1] = array('name' => 'columns', 'join' => ', ');\n $statement_clauses[2] = array('name' => 'from', 'join' => ', ');\n $statement_clauses[3] = array('name' => 'where', 'join' => ' AND ');\n $statement_clauses[4] = array('name' => 'groupby', 'join' => ', ');\n $statement_clauses[5] = array('name' => 'having', 'join' => ' AND ');\n $statement_clauses[6] = array('name' => 'orderby', 'join' => ', ');\n $statement_clauses[7] = array('name' => 'limit', 'join' => false);\n $statement_clauses[8] = array('name' => 'procedure', 'join' => false);\n $statement_clauses[9] = array('name' => 'into', 'join' => false);\n $statement_clauses[10] = array('name' => 'other', 'join' => false);\n\n $sql_statement = array();\t/* initialize the statement array receiver */\n $sql_statement[] = 'SELECT';\n\n for ($i=0; $i < count($statement_clauses); $i++) {\n if (array_key_exists($statement_clauses[$i])) {\n if ($statement_clauses[$i]['join'] && is_array($options[$statement_clauses[$i]['name']])) {\n\t$sql_statement[] = implode($statement_clauses[$i]['join'],$options[$statement_clauses[$i]['name']]);\n } else {\n\t$sql_statement[] = $options[$statement_clauses[$i]['name']];\n }\n }\n }\n\n // implode the crafted Select statement and return the string\n return implode(' ',$sql_statement);\n\n}", "public function select($whereCondition, $orderBy = '', $offset = 0, $limit = 0, $fields = []) \n\t{\n\t\t$sql = \"SELECT * FROM `\" . $this->table . '` ';\n\n\t\t//get fields sql\n\t\tif ($fields && is_array($fields)) {\n\t\t\t$sql = \"SELECT \" . $this->_stringFieldsSelect($fields) . ' FROM `' . $this->table . '` ';\n\t\t}\n\n\t\t//get where sql\n\t\t$sql .= $this->_whereCondition($whereCondition);\n\n\t\t//get order by sql\n\t\tif ($orderBy) {\n\t\t\t$sql .= ' ' . $this->_stringOrderBy($orderBy);\n\t\t}\n\n\t\t//get limit sql\n\t\tif ($limit) {\n\t\t\t$sql .= ' LIMIT '. $offset . ',' . $limit;\n\t\t}\n\n\t\t$sql .= ';';\n//echo $sql;exit;\n\t\t$result = $this->_getSelectResult($sql);\n\n\t\treturn $result;\n\t}", "public function fromSelectQuery(\\Yana\\Db\\Queries\\IsSelectQuery $query): string;" ]
[ "0.8003893", "0.8003893", "0.74862105", "0.74015784", "0.7202667", "0.7047833", "0.6992635", "0.6975984", "0.69068956", "0.6823758", "0.6819437", "0.6816849", "0.6809907", "0.67685044", "0.67463523", "0.6730124", "0.6730124", "0.6730124", "0.67271376", "0.67024565", "0.6680407", "0.6654832", "0.6654832", "0.6634212", "0.6607558", "0.6584403", "0.65728956", "0.6557817", "0.65409815", "0.64919573", "0.648999", "0.6483311", "0.6444661", "0.64103657", "0.64042515", "0.6402279", "0.6370897", "0.6367855", "0.63661253", "0.6363881", "0.6345819", "0.6318514", "0.6310636", "0.6299513", "0.62845933", "0.6279273", "0.6274822", "0.6267029", "0.62670153", "0.6264495", "0.62454367", "0.62402356", "0.62346447", "0.62346447", "0.62346447", "0.6230672", "0.6214567", "0.62123305", "0.62042254", "0.619833", "0.6190145", "0.6182634", "0.6173413", "0.6171716", "0.61633635", "0.6153473", "0.61423606", "0.6142184", "0.6131498", "0.6128316", "0.61253667", "0.61154217", "0.611455", "0.61131066", "0.608518", "0.608269", "0.6081386", "0.6074175", "0.60728264", "0.6066765", "0.6066534", "0.60635686", "0.6054688", "0.6037276", "0.6031168", "0.60259897", "0.60259897", "0.6021441", "0.6008959", "0.60056216", "0.5995548", "0.59781826", "0.5977655", "0.597348", "0.5970425", "0.59700483", "0.59616977", "0.5961607", "0.5955173", "0.5953489", "0.5949501" ]
0.0
-1
Inserts values and returns the created primary
public function insert(IModel $target, array $values);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function insert_id();", "public function insert(array $data){\n\t\t$primary = parent::insert($data);\n\t\treturn $primary;\n\t}", "public function insert_id();", "abstract public function insertId();", "abstract public function insertId();", "abstract public function insertId();", "public function insert() {\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\t$ks_db->beginTransaction ();\r\n\t\t\t\r\n\t\t\t$arrBindings = array ();\r\n\t\t\t$insertCols = '';\r\n\t\t\t$insertVals = '';\r\n\t\t\t\r\n\t\t\tif (isset ( $this->userid )) {\r\n\t\t\t\t$insertCols .= \"lp_userid, \";\r\n\t\t\t\t$insertVals .= \"?, \";\r\n\t\t\t\t$arrBindings[] = $this->userid;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->random )) {\r\n\t\t\t\t$insertCols .= \"lp_random, \";\r\n\t\t\t\t$insertVals .= \"?, \";\r\n\t\t\t\t$arrBindings[] = $this->random;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->deadline )) {\r\n\t\t\t\t$insertCols .= \"lp_deadline, \";\r\n\t\t\t\t$insertVals .= \"?, \";\r\n\t\t\t\t$arrBindings[] = $this->deadline;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//remove trailing commas\r\n\t\t\t$insertCols = preg_replace(\"/, $/\", \"\", $insertCols);\r\n\t\t\t$insertVals = preg_replace(\"/, $/\", \"\", $insertVals);\r\n\t\t\t\r\n\t\t\t$sql = \"INSERT INTO $this->sqlTable ($insertCols)\";\r\n\t\t\t$sql .= \" VALUES ($insertVals)\";\r\n\t\t\t\r\n\t\t\t$ks_db->query ( $sql, $arrBindings );\r\n\r\n\t\t\t//set the id property\r\n\t\t\t$this->id = $ks_db->lastInsertId();\r\n\t\t\t\r\n\t\t\t$ks_db->commit ();\r\n\t\t\t\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_db->rollBack ();\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql);\r\n\t\t\techo \"Fatal Error: \" . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "function insertId();", "abstract protected function _getInsertId();", "abstract public function InsertId();", "abstract public function insertID();", "public function insert(){\r\n\t\tif (!$this->new){\r\n\t\t\tMessages::msg(\"Cannot insert {$this->getFullTableName()} record: already exists.\",Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t\r\n\t\t$this->beforeCommit();\r\n\t\t\r\n\t\t$vals = array();\r\n\t\t$error = false;\r\n\t\tforeach ($this->values as $name=>$value){\r\n\t\t\tif ($value->isErroneous()){\r\n\t\t\t\tFramework::reportErrorField($name);\r\n\t\t\t\t$error = true;\r\n\t\t\t}\r\n\t\t\t$vals[\"`$name`\"] = $value->getSQLValue();\r\n\t\t}\r\n\t\tif ($error){\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t\r\n\t\t$sql = 'INSERT INTO '.$this->getFullTableName().' ('.implode(', ',array_keys($vals)).') VALUES ('.implode(', ',$vals).')';\r\n\t\tif (!SQL::query($sql)->success()){\r\n\t\t\tMessages::msg('Failed to insert record into '.$this->getFullTableName().'.',Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t\r\n\t\t// Get this here, because getPrimaryKey can call other SQL queries and thus override this value\r\n\t\t$auto_id = SQL::getInsertId();\r\n\t\t\r\n\t\t$table = $this->getTable();\r\n\t\t// Load the AUTO_INCREMENT value, if any, before marking record as not new (at which point primary fields cannot be changed)\r\n\t\tforeach ($table->getPrimaryKey()->getColumns() as $name){\r\n\t\t\tif ($table->getColumn($name)->isAutoIncrement()){\r\n\t\t\t\t$this->$name = $auto_id;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t$this->new = false;\r\n\t\t$this->hasChanged = false;\r\n\t\tforeach ($this->values as $value){\r\n\t\t\t$value->setHasChanged(false);\r\n\t\t}\r\n\t\t\r\n\t\t$this->afterCommit();\r\n\t\t\t\r\n\t\treturn self::RES_SUCCESS;\r\n\t}", "public static function insertId() {\n\treturn self::$instance->insertId();\n }", "public function getInsertId();", "function insert_id();", "public function insert () {\n\t\t$insertObj = ORM::for_table(self::AUTHCODE_TABLE)->create();\n\t\t$insertObj->code_hash = $this->hash;\n\t\t$insertObj->save();\n\t\treturn $insertObj->id();\n\t\t//$hsh = sqlPrep($this->hash);\n\t\t//$insstmt = \"INSERT INTO AUTHCODES (CODE_HASH) VALUES ($hsh)\";\n\t}", "public final function insert()\n {\n // Run beforeCreate event methods and stop when one of them return bool false\n if ($this->runBefore('create') === false)\n return false;\n\n // Create tablename\n $tbl = '{db_prefix}' . $this->tbl;\n\n // Prepare query and content arrays\n $fields = array();\n $values = array();\n $keys = array();\n\n // Build insert fields\n foreach ( $this->data as $fld => $val )\n {\n // Skip datafields not in definition\n if (!$this->isField($fld))\n continue;\n\n // Regardless of all further actions, check and cleanup the value\n $val = $this->checkFieldvalue($fld, $val);\n\n // Put fieldname and the fieldtype to the fields array\n $fields[$fld] = $this->getFieldtype($fld);\n\n // Object or array values are stored serialized to db\n $values[] = is_array($val) || is_object($val) ? serialize($val) : $val;\n }\n\n // Add name of primary key field\n $keys[0] = $this->pk;\n\n // Run query and store insert id as pk value\n $this->data->{$this->pk} = $this->db->insert('insert', $tbl, $fields, $values, $keys);\n\n return $this->data->{$this->pk};\n }", "public function insert() {\n\t\t$insert_array = $this->toDbArray(true, true);\n\t\tif (array_key_exists('_id', $insert_array)) { unset($insert_array['_id']); }\n\t\t$ret_val = $this->getCollection()->save($insert_array);\n\t\tif (isset($insert_array['_id'])) {\n\t\t\t$this->setId($insert_array['_id']);\n\t\t}\n\t\treturn $this->getId();\n\t}", "public function insert()\n {\n $this->id = insert($this);\n }", "public function insert() {\n\t\tif ($this->wpdb->insert($this->table, $this->toArray(TRUE))) {\t\t\t\t\t\t\n\t\t\tif (isset($this->auto_increment)) {\n\t\t\t\t$this[$this->primary[0]] = $this->wpdb->insert_id;\n\t\t\t}\t\t\t\n\t\t\treturn $this;\n\t\t} else {\t\t\t\t\t\n\t\t\tthrow new Exception($this->wpdb->last_error);\n\t\t}\n\t}", "function Insert_ID()\n\t{\n\t\treturn $this->GetOne($this->identitySQL);\n\t}", "public abstract function insert();", "public function insertData()\n {\n try {\n// print_r($this->insertUpdateArray);exit;\n $id = DB::table($this->dbTable)->insertGetId($this->insertUpdateArray);\n } catch (Exception $ex) {\n throw new Exception($ex->getMessage(), 10024, $ex);\n }\n return $id;\n }", "public function sql_insert_id() {}", "public function sql_insert_id() {}", "public function create() {\n global $db;\n $this->_precreate();\n $sql_keys = ''; $sql_values = '';\n $data = array();\n foreach($this->_magicProperties as $key=>$value)\n {\n $sql_keys .= \"`\".addslashes($key).\"`,\";\n $sql_values .= \"?,\";\n $data[] = $value;\n }\n $sql_keys = substr($sql_keys, 0, -1);\n $sql_values = substr($sql_values, 0, -1);\n\n $query = \"INSERT INTO {$this->table} ($sql_keys) VALUES ($sql_values);\";\n $result = $db->query($query,$data);\n if (!isset($this->_magicProperties['id']) || !$this->_magicProperties['id']) {\n $id = $db->lastInsertId();\n $this->{'set'.$this->id_field}($id);\n }\n $this->loaded = true;\n $this->_postcreate($result);\n return $this->id;\n }", "public function store() {\n\t\t$dbh = App::getDatabase()->connect();\n\n\t\t$query = \"INSERT INTO \".$this->getTableName().\"\n\t\t\t\t VALUES (\";\n\n\t\t$fl = true;\n\t\tforeach ($this as $val) {\n\t\t\t$query .= (($fl) ? \"\" : \", \").((is_null($val)||($val === \"\")) ? \"default\" : \"'\".$val.\"'\");\n\t\t\t$fl = false;\n\t\t}\n\n\t\t$query .= \") \\nRETURNING \";\n\t\t$fl = true;\n\t\tforeach($this->getPrimaries() as $pk) {\n\t\t\t$query .= ($fl) ? $pk : \", \".$pk;\n\t\t\t$fl = false;\n\t\t}\n\n\t\t$sth = $dbh->query($query);\n\t\t$data = $sth->fetch(\\PDO::FETCH_ASSOC);\n\n\t\t$dbh = null;\n\t\treturn $data;\n\t}", "static function create($table,$data = array()) {\n\n self::$db -> insert($table,$data);\n return self::$db -> insert_id();\n }", "public function insert($data = array())\n {\n \n\n $id = parent::insert($data);\n return $id;\n }", "abstract public function insert();", "protected function createNew() {\n $this->db->insert($this->tableName, $this->mapToDatabase());\n $this->id = $this->db->insert_id();\n }", "public function insert( $attributes ) {\n\t\treturn Database::table( $this->table )->insertGetId( $attributes, $this->primary_key );\n\t}", "public abstract function Insert();", "function add_primary_user($admin_email, $admin_first_name, $admin_last_name, $admin_department, $admin_password, $accountID, $permissions){\r\n global $db;\r\n $query = 'INSERT INTO Users(AccountID_FK, Username, Password, First_Name, Last_Name, Department, Permissions)\r\n VALUES (:AccountID, :Email, :Password, :First_Name, :Last_Name, :Department, :Permissions)';\r\n $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\r\n $statement = $db->prepare($query);\r\n $statement->bindParam(':Email', $admin_email);\r\n $statement->bindParam(':First_Name', $admin_first_name);\r\n $statement->bindParam(':Last_Name', $admin_last_name);\r\n $statement->bindParam(':Department', $admin_department);\r\n $statement->bindParam(':Password', $admin_password);\r\n $statement->bindParam(':AccountID', $accountID);\r\n $statement->bindParam(':Permissions', $permissions);\r\n echo \"User Account ID is: \" . $accountID;\r\n $statement->execute();\r\n $last_id = $db->lastInsertId();\r\n echo \"New record created succesfully. User ID is: \" . $last_id;\r\n $statement->closeCursor();\r\n return $last_id;\r\n}", "public function insert() : string\n {\n if (empty($this->newProperties)) {\n $this->fillProperties();\n }\n\n $params = [];\n $columns = [];\n\n foreach ($this->newProperties as $key => $value) {\n if ($key === 'id') {\n continue;\n }\n\n $params[\":{$key}\"] = $value;\n $columns[] = \"`{$key}`\";\n }\n\n $columns = implode(', ', $columns);\n $placeholders = implode(', ', array_keys($params));\n $tableName = static::getTableName();\n\n $sql = sprintf(\n \"INSERT INTO `%s` (%s) VALUES (%s)\",\n $tableName,\n $columns,\n $placeholders\n );\n\n $stmt = static::getConn()->prepare($sql);\n $stmt->execute($params);\n\n $info = $stmt->errorInfo();\n if ($info[0] !== \\PDO::ERR_NONE) {\n die('We have : ' . $info[2]);\n }\n\n return static::getLastInsertId();\n }", "abstract function getPrimaryKey();", "public static function insert_id(){\n return self::$connection->insert_id;\n }", "public function insert()\n {\n $db = $this->getDatabase();\n $sql = \"INSERT INTO \" . $this->getTable() . \" (name) VALUES (:name)\";\n $stm = $db->prepare($sql);\n $stm->bindValue(':name', $this->getName());\n $stm->execute();\n $stm->fetch(\\PDO::FETCH_ASSOC);\n\n return $db->lastInsertId();\n }", "public function insertAndGetId($sql, $params = array());", "abstract public function getPrimaryKey();", "abstract public function getPrimaryKey();", "public function getInsertId(){\n return $this->sqli->insert_id;\n }", "function insert_id($table) {\r\n\t\treturn $this->dbh->insert_id($table);\r\n\t\t\r\n\t}", "protected function _insert() {\n $def = $this->_getDef();\n if(!isset($def) || !$def){\n return false;\n }\n \n foreach ($this->_tableData as $field) {\n $fields[] = $field['field_name'];\n $value_holder[] = '?';\n $sql_fields[] = '`' . $field['field_name'] . '`';\n $field_name = $field['field_name'];\n \n if(false !== ($overrideKey = $this->_getOverrideKey($field_name))){\n $field_name = $overrideKey;\n }\n \n $$field_name = $this->$field_name;\n \n if($$field_name instanceof \\DateTime){\n $$field_name = $$field_name->format('Y-m-d H:i:s');\n }\n \n if(is_array($$field_name)){\n $$field_name = json_encode($$field_name);\n }\n \n $values[] = $$field_name;\n }\n \n $this->setLastError(NULL);\n \n $sql = \"INSERT INTO `{$this->_table}` (\" . implode(',', $sql_fields) . \") VALUES (\" . implode(',', $value_holder) . \")\";\n $stmt = Database::connection($this->_connection)->prepare($sql, $values);\n $stmt->execute();\n $success = true;\n if ($stmt->error !== '') {\n $this->setLastError($stmt->error);\n $success = false;\n }\n \n $id = $stmt->insert_id;\n \n $stmt->close();\n \n $primaryKey = $this->_getPrimaryKey();\n \n $this->{$primaryKey} = $id;\n \n return $success;\n }", "public function insert_id(){\n \treturn $this->_insert_id;\n }", "public function insert_id(){\n\t\treturn $this->insert_id;\n\t}", "private function _insert($data){\n if($lastId = $this->insert($data)){\n return $lastId;\n }else{\n // Error\n Application_Core_Logger::log(\"Could not insert into table {$this->_name}\", 'Error');\n return false;\n } \t\n }", "public function insertid()\n\t{\n\t\treturn 0;\n\t}", "public function save()\r\n\t{\r\n\t\t$fields = array();\r\n\t\tforeach ($this->fields as $column => $field) {\r\n\t\t\tif (strpos($column, '%') === false)\r\n\t\t\t\t$column = $column . $this->getModificator($column);\r\n\r\n\t\t\tif ($field instanceof DbTable)\r\n\t\t\t\t$fields[$column] = $field->save();\r\n\t\t\telse\r\n\t\t\t\t$fields[$column] = $field;\r\n\t\t}\r\n\r\n\t\tif (empty($this->primaryKeyValue)) {\r\n\t\t\t$this->primaryKeyValue = Db::query('INSERT INTO %c %v', $this->table, $fields);\r\n\t\t} else {\r\n\t\t\t$mod = self::$structure->getModificator($this->table, $this->primaryKey);\r\n\t\t\tDb::query(\"UPDATE %c SET %a WHERE %c = $mod\", $this->table, $fields, $this->primaryKey, $this->primaryKeyValue);\r\n\t\t}\r\n\r\n\t\t$this->fields = array();\r\n\t\treturn $this->primaryKeyValue;\r\n\t}", "public function getPrimary(){\n return $this->primaryKey;\n }", "public function insertId()\r\n\t{\r\n\t\t//orcal_last_inserted_id($this->link)\r\n\t}", "public function insert() {\n\t\t\t\n\t\t\t$insert_array = $this->buildInsertFields();\n\t\t\t$query = \"INSERT INTO \" . $this->table_name . \" (\" . $insert_array['insert_statement'] . \") VALUES (\" . \n\t\t\t\t\t\t\t\t\t$insert_array['values_statement'] . \")\";\n\t\t\treturn $this->query($query, $insert_array['bind_params']);\n\n\t\t}", "public function insert() {\n if($this->id != 0){\n return null;\n }\n // Connect to db\n $db = Db::instance();\n\n // Build query\n $q = sprintf(\"INSERT INTO `%s` (`user_id`, `story_id`, `comment`) VALUES (%d, %d, %s);\", self::DB_TABLE, $db->escape($this->user_id), $db->escape($this->story_id), $db->escape($this->comment));\n\n // Execute query\n $db->query($q);\n\n // Set the ID for the new object\n $this->id = $db->getInsertID();\n return $this->id;\n }", "function create($table, $data)\n {\n $current = get_instance();\n $current->db->insert($table, $data);\n return $current->db->insert_id();\n }", "function insert($values){\n $query = \"insert into \" . $this->tableName . \" (\";\n $separator = \"\";\n \n foreach ($values as $key => $value){\n $query .= $separator . \"`\" . $key . \"`\";\n $separator = \", \";\n \n }\n $query .= \") values (\";\n $separator = \"\";\n \n foreach ($values as $key => $value){\n $query .= $separator . \"'\" . $value . \"'\";\n $separator = \", \";\n \n }\n $query .= \");\";\n\n $this->dbh->query($query); \n return $this->dbh->insert_id;\n \n }", "public function create(){\n\n $id=0;\n $attributes = $this->prepared_attributes_insert();\n\t\t\n\t $sql = \"INSERT INTO \".static::$table_name.\" (\";\n\t $sql .= join(\",\",array_keys($attributes));\n\t $sql .= \") VALUES (\"; \n $sql .= join(\",\",array_values($attributes));\t\t \n $sql .= \") \";\n \n $idf = static::$id_field;\n \n $this->{static::$id_field} = static::db()->insert($sql);\n static::db()->free_statement();\n if (static::$idf !== -1)\n {\n\t return true;\n\t } else {\n\t return false;\n\t }\n }", "function getInsertId(){\r\n\t\treturn $this->m_insertId;\r\n\t}", "public function save(){\n\t\t\n\t\tif(!isset($this->data[$this->primary_key])){\n\t\t\t$success = $this->db\n\t\t\t\t->set($this->data)\n\t\t\t\t->insert($this->table);\n\n\t\t\t$this->data[$this->primary_key] = $this->db->last_insert_id;\n\t\t}else{\n\t\t\t$success = $this->db\n\t\t\t\t->set($this->data)\n\t\t\t\t->where($this->primary_key, $this->data[$this->primary_key])\n\t\t\t\t->update($this->table);\n\t\t}\n\n\t\treturn $success;\n\t}", "public function insertId() {\n return $this->insertId;\n }", "public function insertId() {\n\t\tif (!$this->connection) return false;\n\t\t$result = @pg_query($this->connection, 'SELECT lastval()');\n\t\tif ($result === false) return false;\n\t\t$return = @pg_fetch_array($result);\n\t\tpg_free_result($result);\n\t\treturn is_array($return) ? reset($return) : false;\n\t}", "function insert() {\n\t\tglobal $_DB_DATAOBJECT; //Indicate to PHP that we want to use the already-defined global, as opposed to declaring a local var\n\t\t//Grab the database connection that has already been made by the parent's constructor:\n\t\t$__DB = &$_DB_DATAOBJECT['CONNECTIONS'][$this->_database_dsn_md5];\n\t\tif ($this->reg_type != null) {\n\t\t\t$this->badge_number = $__DB->nextId('badge_number'); //Fetch the next id in the sequence. To set the sequence to a specifc value, use phpMyAdmin to tweak the value in the badge_number_seq table\n\t\t}\n\t\treturn DB_DataObject::insert();\n\t}", "function insert() {\n\t\t$sql = \"INSERT INTO \".$this->hr_db.\".hr_amphur (amph_name, amph_name_en, amph_pv_id, amph_active)\n\t\t\t\tVALUES(?, ?, ?, ?)\";\n\t\t$this->hr->query($sql, array( $this->amph_name, $this->amph_name_en, $this->amph_pv_id, $this->amph_active));\n\t\t$this->last_insert_id = $this->hr->insert_id();\n\t}", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_situacion' => $this->iid_situacion);\n }\n return $this->aPrimary_key;\n }", "public function getPrimaryKey();", "public function getPrimaryKey();", "public function getPrimaryKey();", "public function insert() {\n $sql = \"INSERT INTO contratos (numero_contrato, objeto_contrato, presupuesto, fecha_estimada_finalizacion)\n VALUES (:numero_contrato, :objeto_contrato, :presupuesto, :fecha_estimada_finalizacion)\";\n $args = array(\n \":numero_contrato\" => $this->numeroContrato,\n \":objeto_contrato\" => $this->objetoContrato,\n \":presupuesto\" => $this->presupuesto,\n \":fecha_estimada_finalizacion\" => $this->fechaEstimadaFinalizacion,\n );\n $stmt = $this->executeQuery($sql, $args);\n\n if ($stmt) {\n $this->id = $this->getConnection()->lastInsertId();\n }\n\n return !$stmt ? false : true;\n }", "public function insert()\n {\n if(empty($this->attributes)){\n return;\n }\n if ($this->isAutoInc) {\n $columlList = \" (\";\n $valuelList = \" (\";\n foreach ($this->attributes as $column => $value) {\n $columlList .= $column . \", \";\n $valuelList .= \":\".$column . \", \";\n }\n $columlList = str_last_replace(\", \", \")\", $columlList);\n $valuelList = str_last_replace(\", \", \")\", $valuelList);\n $sqlQuery = \"INSERT INTO \" . $this->table . $columlList . \" VALUES\" . $valuelList;\n\n Db::instance()->execute($sqlQuery,$this->attributes);\n #println($sqlQuery, \"blue\");\n }\n }", "function identity()\n {\n return $this->db->insert_id();\n }", "public function new($params)\r\n {\r\n $insert_id = $this->insert($params);\r\n return $insert_id;\r\n }", "public function insertLocal() \n {\n return LocalDAC::insertLocal($this);\n }", "function get_insert_id()\n\t{\n\t\treturn $this->__insert_id;\n\t}", "public function Insert(){\n //Instancia conexao com o PDO\n $pdo = Conecta::getPdo();\n //Cria o sql passa os parametros e etc\n $sql = \"INSERT INTO $this->table (idcidade, cidade) VALUES (?, ?)\";\n $consulta = $pdo->prepare($sql);\n $consulta ->bindValue(1, $this->getIdCidade());\n $consulta ->bindValue(2, $this->getCidade());\n $consulta ->execute();\n $last = $pdo->lastInsertId();\n }", "function create($table, $data){\n\n global $conn;\n // $sql = \"INSERT INTO users SET (username=?, admin=?, email=?, password=?)\"\n$sql = \"INSERT INTO $table SET \";\n\n$i = 0;\n foreach ($data as $key => $value){\n if($i === 0){\n $sql = $sql . \" $key=?\"; \n } else{\n $sql = $sql . \", $key=?\";\n }\n$i++;\n}\n\n$stmt = executeQuery($sql, $data);\n$id = $stmt->insert_id;\nreturn $id;\n}", "function _createAndReturnId($sql, $updateParent) {\n $inserted = $this->update($sql);\n if ($inserted) {\n $dar = $this->retrieve(\"SELECT LAST_INSERT_ID() AS id\");\n if ($row = $dar->getRow()) {\n $inserted = $row['id'];\n if ($inserted && $updateParent) {\n $this->_updateUpdateDateOfParent($row['id']);\n }\n } else {\n $inserted = $dar->isError();\n }\n }\n return $inserted;\n }", "function wrapper_insert_id() {\n\t\t$res = @mssql_query(\"SELECT @@IDENTITY\", $this->link_id);\n\t\t$rows = @mssql_result($res, 0, 0);\n\t\treturn (int)$rows;\n\t}", "public function insertGetId()\n {\n return $this->lastId;\n }", "public function insertGetId()\n {\n return $this->lastId;\n }", "private function create() {\n global $connection;\n $sql = 'insert into ' . static::$tableName . ' set ' . self::buildNameParametersSQL();\n $stmt = $connection->prepare($sql);\n $this->prepareValues($stmt);\n return $stmt->execute();\n }", "public function the_insert_id(){\n return mysqli_insert_id($this->connection);\n }", "function getInsertId() {\r\n return $this->m_insertId;\r\n }", "public function insert()\n {\n\n $query = 'insert into manager (userid, projectid)\n values (:userid, :projectid)';\n\n $result = $this->conn->prepare($query);\n\n $result->bindValue(':userid', $this->value['userid'],PDO::PARAM_INT);\n $result->bindValue(':projectid', $this->value['projectid'], PDO::PARAM_INT);\n\n $result->execute();\n\n $this->projectid = $this->conn->lastInsertId();\n\n return ;\n }", "public function insert(){\n\t\t$parametro = func_get_args();\n\t\t$resultado = $this->execSql($this->INSERT,$parametro);\n//\t\t\tdie();\n\t\tif(!$resultado){\n\t\t\t$this->onError(\"COD_INSERT\",$this->INSERT);\n\t\t}\n\t\treturn $resultado;\n\t}", "function inserisci_provincia($nome_provincia=\"\"){\n\t$db = new db(DB_USER,DB_PASSWORD,DB_NAME,DB_HOST);\n\t$nome_provincia= sistemaTesto($nome_provincia);\n\t$q=\"INSERT INTO provincia (id_provincia, nome) VALUES (null,'$nome_provincia')\";\n\t$r=$db->query($q);\n\t$id=mysql_insert_id();\n\treturn $id;\n}", "public function insert($titulos){\n// $id=$titulos->getId();\n$descripcion=$titulos->getDescripcion();\n$universidad_id=$titulos->getUniversidad_id();\n$docente_id=$titulos->getDocente_id()->getId();\n\n try {\n $sql= \"INSERT INTO `titulos`( `descripcion`, `universidad`, `docente_id`)\"\n .\"VALUES ('$descripcion','$universidad_id','$docente_id')\";\n return $this->insertarConsulta($sql);\n } catch (SQLException $e) {\n throw new Exception('Primary key is null');\n }\n }", "public function insert_id(){\n\t\t\treturn mysqli_insert_id($this->connection);\n\t\t}", "public function insert_id(){\n\t\t\treturn mysqli_insert_id($this->connection);\n\t\t}", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_ubi' => $this->iid_ubi, 'id_tarifa' => $this->iid_tarifa, 'year' => $this->iyear, 'id_serie' => $this->iid_serie);\n }\n return $this->aPrimary_key;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_dl' => $this->iid_dl);\n }\n return $this->aPrimary_key;\n }", "public function insert() {\n if($this->topic_id != 0)\n return null;\n\n $db = Db::instance(); // connect to db\n $q = sprintf(\"INSERT INTO profiles (`firstname`, `lastname`, `username`, `password`, `photo`, `number_posts`)\n VALUES (%s, %s, %s, %s, %s, %d);\",\n $db->escape($this->firstname),\n $db->escape($this->lastname),\n $db->escape($this->username),\n $db->escape($this->password),\n $db->escape($this->photo),\n $db->escape($this->number_posts)\n );\n\n $db->query($q); // execute query\n return $db->getInsertID();\n }", "function insert($presence)\n {\n $this->db->insert('aanwezigheid', $presence);\n return $this->db->insert_id();\n }", "public function getInsertId(){\n\t\treturn $this->con->insert_id;\n\t}", "public function Insert_Id()\n {\n $this->init();\n return $this->db->Insert_Id();\n }", "public function insert()\n {\n $sql = \"INSERT INTO \" . self::TABLE_NAME . \"(id,\n pro_name,\n pro_slug,\n pro_content,\n pro_size,\n pro_size_info,\n pro_price,\n pro_quantity,\n pro_seo_title,\n pro_seo_description,\n pro_status,\n pro_add_date,\n pro_update_date,\n user_id,\n brand_id\n )\n VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)\";\n $stmt = $this->prepare($sql);\n $stmt->bind_param(\"ssssisiississii\",\n $this->getId(),\n $this->getProName(),\n $this->getProSlug(),\n $this->getProContent(),\n $this->getProSize(),\n $this->getProSizeInfo(),\n $this->getProPrice(),\n $this->getProQuantity(),\n $this->getProSeoTitle(),\n $this->getProSeoDescription(),\n $this->getProStatus(),\n $this->getProAddDate(),\n $this->getProUpdateDate(),\n $this->getUserId(),\n $this->getBrandId()\n );\n $result = $stmt->execute();\n $stmt->close();\n return $result;\n }", "public function save() {\n\t\tif (array_intersect_key($this->toArray(TRUE), array_flip($this->primary))) {\n\t\t\t$this->update();\n\t\t} else {\n\t\t\t$this->insert();\n\t\t}\n\t\treturn $this;\n\t}", "public function insert() {\n \n }", "public function insert_id(){\n return mysqli_insert_id($this->connection);\n }", "protected function _insert()\n {\n \n }", "protected function _insert()\n {\n \n }", "public function getInsertId()\n {\n return $this->insertId;\n }", "function insert($taak) {\n $this->db->insert('taak', $taak);\n return $this->db->insert_id();\n }" ]
[ "0.73167276", "0.7205334", "0.7183379", "0.7174677", "0.7174677", "0.7174677", "0.7171911", "0.7146467", "0.7093169", "0.7081764", "0.7025659", "0.698334", "0.69248796", "0.68974847", "0.6879531", "0.6876342", "0.6865404", "0.68501794", "0.6798837", "0.6751948", "0.6749092", "0.6579933", "0.65702266", "0.6563952", "0.6563538", "0.6555392", "0.6517567", "0.6515584", "0.65019876", "0.64943564", "0.64694756", "0.64633775", "0.6462664", "0.64577854", "0.6456598", "0.6451185", "0.6434536", "0.642945", "0.6425061", "0.6418262", "0.6418262", "0.64157206", "0.64105827", "0.64079547", "0.6405658", "0.64018023", "0.6382645", "0.63712764", "0.636915", "0.6368096", "0.636294", "0.6342176", "0.6340946", "0.63383573", "0.63341796", "0.6308167", "0.63056445", "0.629366", "0.6292621", "0.628661", "0.6285271", "0.6280034", "0.6256661", "0.6255691", "0.6255691", "0.6255691", "0.6249398", "0.62342006", "0.62216467", "0.6219116", "0.6216409", "0.6210316", "0.62101173", "0.6205226", "0.6204409", "0.6203487", "0.619473", "0.619473", "0.6193103", "0.6191911", "0.61911076", "0.61792654", "0.6165578", "0.6163576", "0.61596596", "0.61467993", "0.61467993", "0.61457783", "0.6143254", "0.6128682", "0.61217296", "0.61216944", "0.6120216", "0.61178", "0.61174625", "0.61167157", "0.6113135", "0.6101529", "0.6101529", "0.60967606", "0.6094491" ]
0.0
-1
Update the specified record with specified values
public function update(IModel $target, array $values, $primary);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update($record);", "public function updateRecord() \n {\n $str = \"Id = :Id\";\n array_walk($this->arrayKeysValues(), function ($value, $key) use (&$str) {\n $str .= \", $key = :$key\";\n });\n $sql = sprintf(\"UPDATE Cubans SET %s WHERE Id = :Id\", $str);\n $statement = $this->connect->prepare($sql);\n $statement->execute(array_merge([\":Id\" => $this->id], $this->arrayKeysValues()));\n }", "function update($record)\n\t{\n\t\t// convert object from associative array, if needed\n\t\t$record = (is_array($record)) ? (object) $record : $record;\n\t\t// update the collection appropriately\n\t\t$key = $record->{$this->_keyfield};\n\t\tif (isset($this->_data[$key]))\n\t\t{\n\t\t\t$this->_data[$key] = $record;\n\t\t\t$this->store();\n\t\t}\n\t}", "abstract public function updateRecord($tableName, $record, $where = '');", "public function update(Tinebase_Record_Interface $_record) {\n }", "static function update( $table_name, $record, $values, $id_field = 'id', $formats = array() ) {\n global $wpdb;\n \n \n\n if ( is_numeric( $record ) ) {\n $id_record = $record;\n } elseif ( is_object( $record ) ) {\n $id_record = $record->$id_field;\n } elseif ( is_array( $record ) ) {\n $id_record = $record[$id_field];\n }\n\n $where = array(\n $id_field => $id_record\n );\n\n if ( empty( $formats ) ) {\n $result = $wpdb->update( $table_name, $values, $where );\n } else {\n $where_formats = array( '%d' );\n $result = $wpdb->update( $table_name, $values, $where, $formats, $where_formats );\n }\n return $result;\n }", "function editRecord($rec)\r\n\t\t{\r\n\t\t\t// Create associative array of key fields and data values\r\n\t\t\t$data = array(\"idMedicalRecord\"=>$rec[0],\"medicalRec_weight\"=>$rec[1],\"medicalRec_height\"=>$rec[2],\"medicalRec_bloodPressure\"=>$rec[3],\"medicalRec_temperature\"=>$rec[4],\"medicalRec_bloodIronLevel\"=>$rec[5],\"medicalRec_time\"=>$rec[6],\"medicalRec_date\"=>$rec[7],\"medicalRec_medicalHistory\"=>$rec[8],\"medicalRec_rejectionReason\"=>$rec[9]);\r\n\t\t\t// Bind values to object's attributes\r\n\t\t\t$this->bind($data);\r\n\t\t\t// Add new updated values to table in database to location of given Primary key\r\n\t\t\t$this->update($rec[0]);\r\n\t\t}", "function updateRecord($table_name,$uid,$update_field,$update_value,$conn){\n\t\t$update_echo = '';\n\n\t\tfor($i=0;$i<count($update_field);$i++){\n\n\t\t\tif ($i==(count($update_field)-1)) {\n\t\t\t\t$update_echo = $update_echo.$update_field[$i].\"='\".$update_value[$i].\"'\";\n\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$update_echo = $update_echo.$update_field[$i].\"='\".$update_value[$i].\"', \";\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\t$sql = \"UPDATE $table_name SET $update_echo WHERE uid=$uid\";\n\n\t\techo $sql;\n\t\t\n\t\tif ($conn->query($sql) === TRUE) {\n\t\t echo \"Record updated successfully\";\n\t\t} else {\n\t\t echo \"Error updating record: \" . $conn->error;\n\t\t}\n\t}", "private function update_record($table, Array $columns, Array $records, Array $where_columns, Array $where_records, $printSQL = false) {\n\t\treturn $this->get_database_utils ()->update_record ( $table, $columns, $records, $where_columns, $where_records, $printSQL );\n\t}", "private function update_record($table, Array $columns, Array $records, Array $where_columns, Array $where_records, $printSQL = false) {\n\t\treturn $this->get_database_utils ()->update_record ( $table, $columns, $records, $where_columns, $where_records, $printSQL );\n\t}", "private function update_record($table, Array $columns, Array $records, Array $where_columns, Array $where_records, $printSQL = false) {\n\t\treturn $this->get_database_utils ()->update_record ( $table, $columns, $records, $where_columns, $where_records, $printSQL );\n\t}", "function update($idMedicalRecord) // Implementation \r\n\t\t{\r\n\t\t\t$this->idMedicalRecord = $idMedicalRecord;\r\n\t\t\t$dbo = database::getInstance(); // pass back that database object already created perhaps\r\n\t\t\t$sql = $this->buildQuery('update'); // what we want to do (update records)\r\n\r\n\t\t\t$dbo->doQuery($sql); // execute query statement\r\n\t\t}", "public function updateOrCreateRecord(array $record) {\n /** @var CmfDbModel|KeyValueModelHelpers $this */\n if (empty($record['key'])) {\n throw new DbModelException($this, '$record does not contain [key] key or its value is empty');\n } else if (!array_key_exists('value', $record)) {\n throw new DbModelException($this, '$record does not contain [value] key');\n }\n $conditions = [\n 'key' => $record['key']\n ];\n $fkName = $this->getMainForeignKeyColumnName();\n if (!empty($fkName)) {\n if (empty($record[$fkName])) {\n throw new DbModelException($this, \"\\$record does not contain [{$fkName}] key or its value is empty\");\n }\n $conditions[$fkName] = $record[$fkName];\n }\n $object = $this->getOwnDbObject()->find($conditions);\n if ($object->exists()) {\n return $object\n ->begin()\n ->_setFieldValue('value', $record['value'])\n ->commit();\n } else {\n return $object\n ->reset()\n ->fromData($record)\n ->save();\n }\n }", "public function update(Request $request, Record $record)\n {\n //\n }", "public function update($entity){ \n //TODO: Implement update record.\n }", "public function updateRecord() {\r\n\t\tif (isset($_POST['level']) && $_POST['level']=='header') $this->updateHeader();\r\n\t\tif (isset($_POST['level']) && $_POST['level']=='detail') $this->updateDetail();\r\n\t}", "public function update(){\r\n\t\tif (!$this->hasChanged) return self::RES_UNCHANGED;\r\n\t\t$table = $this->getTable();\r\n\t\tif ($this->new){\r\n\t\t\tMessages::msg(\"Cannot update record in {$this->getFullTableName()}, because the record doesn't exist.\",Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\tif (!$table->hasPrimaryKey()){\r\n\t\t\tMessages::msg(\"Cannot update record in {$this->getFullTableName()}, because the table does not have a primary key.\",Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t\r\n\t\t$this->beforeCommit();\r\n\t\t\r\n\t\t$vals = array();\r\n\t\t$where = array();\r\n\t\t$changeCount = 0;\r\n\t\t$error = false;\r\n\t\tforeach ($this->values as $name=>$value){\r\n\t\t\tif ($value->isErroneous()){\r\n\t\t\t\tFramework::reportErrorField($name);\r\n\t\t\t\t$error = true;\r\n\t\t\t}\r\n\t\t\tif ($value->hasChanged()){\r\n\t\t\t\t$vals[] = \"`$name` = \".$value->getSQLValue();\r\n\t\t\t\t$changeCount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ($error){\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t\r\n\t\tforeach ($table->getPrimaryKey()->getColumns() as $name){\r\n\t\t\t$where[] = \"`$name` = \".$this->values[$name]->getSQLValue();\r\n\t\t}\r\n\t\t$sql = 'UPDATE '.$this->getFullTableName().' SET '.implode(', ',$vals).' WHERE '.implode(' AND ',$where).' LIMIT 1';\r\n\t\tif (!SQL::query($sql)->success()){\r\n\t\t\tMessages::msg('Failed to update record in '.$this->getFullTableName().'.',Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t$this->hasChanged = false;\r\n\t\tforeach ($this->values as $value){\r\n\t\t\t$value->setHasChanged(false);\r\n\t\t}\r\n\t\t\r\n\t\t$this->afterCommit();\r\n\t\t\r\n\t\treturn self::RES_SUCCESS;\r\n\t}", "public function updateBy( array $data, $value = NULL, $field = 'id' );", "function UpdateRecord($values)\n {\n $databasename = $this->databasename;\n $tablename = $this->tablename;\n $path = $this->path;\n //dprint_r($_FILES);\n if ( !isset($values[$this->primarykey]) )\n return false;\n $unirecid = $values[$this->primarykey];\n return $this->UpdateRecordBypk($values,$this->primarykey,$values[$this->primarykey]);\n }", "function my_update_record( $table_name , $primary_key , $data_id , $datas ){\r\n\r\n\tglobal $connection;\r\n\r\n\t$build_query = \" UPDATE `\".$table_name .\"` SET \" ;\r\n\tforeach( $datas as $field => $value ){\r\n\t\r\n\t\t$build_query .= \"`\".$field .\"` = \". $value . \", \";\r\n\t\r\n\t}\r\n\t\r\n\t$query = rtrim( trim($build_query) , \",\" );\r\n\t\r\n\t$update_query = $query .\" WHERE `\".$primary_key.\"` = \". $data_id ; \r\n \r\n\t$result = my_query( $update_query );\r\n\t \r\n\treturn $connection->affected_rows ; \r\n\r\n}", "public function updateRecord ($sqlString);", "public function updateRow($row);", "public function updateRecord(){\n\t\tglobal $db;\n $data = array('email'=>$this->email);\n\t\t\t\t$response = $db->update($this->table,$data,\"id = $this->id\");\n\t\treturn $response;\n\t}", "private function updateRecord(Item $record, $columnname, $newvalue)\n {\n \t$clonedrecord = clone $record;\n \tswitch ($columnname)\n \t{\n \t\tcase \"CallNumbers\":\n \t\t\t$callnumbers = explode(\";\", $newvalue);\n \t\t\t$callnumbers = array_combine($callnumbers, $callnumbers);\n \t\t\t$clonedrecord->setCallNumbers($callnumbers);\n \t\t\tbreak;\n \t\tcase ItemDAO::TITLE:\n \t\t\t$clonedrecord->setTitle($newvalue);\n \t\t\tbreak;\n \t\tcase ItemDAO::AUTHOR_ARTIST:\n \t\t\t$clonedrecord->setAuthorArtist($newvalue);\n \t\t\tbreak;\n \t\tcase ItemDAO::DATE_OF_OBJECT:\n \t\t\t$clonedrecord->setDateOfObject($newvalue);\n \t\t\tbreak;\n \t\tcase \"VolumeCount\":\n \t\t\t$clonedrecord->getInitialCounts()->setVolumeCount($newvalue);\n \t\t\tbreak;\n \t\tcase \"SheetCount\":\n \t\t\t$clonedrecord->getInitialCounts()->setSheetCount($newvalue);\n \t\t\tbreak;\n \t\tcase \"PhotoCount\":\n \t\t\t$clonedrecord->getInitialCounts()->setPhotoCount($newvalue);\n \t\t\tbreak;\n \t\tcase \"BoxCount\":\n \t\t\t$clonedrecord->getInitialCounts()->setBoxCount($newvalue);\n \t\t\tbreak;\n \t\tcase \"OtherCount\":\n \t\t\t$clonedrecord->getInitialCounts()->setOtherCount($newvalue);\n \t\t\tbreak;\n \t\tcase ItemDAO::COMMENTS:\n \t\t\t$clonedrecord->setComments($newvalue);\n \t\t\tbreak;\n \t\tcase ProposalDAO::EXAM_DATE:\n \t\t\t$clonedrecord->getFunctions()->getProposal()->setExamDate($newvalue);\n \t\t\tbreak;\n \t\tcase ProposalDAO::DIMENSION_UNIT:\n \t\t\t$clonedrecord->getFunctions()->getProposal()->getDimensions()->setUnit($newvalue);\n \t\t\tbreak;\n \t\tcase ProposalDAO::HEIGHT:\n \t\t\t$clonedrecord->getFunctions()->getProposal()->getDimensions()->setHeight($newvalue);\n \t\t\tbreak;\n \t\tcase ProposalDAO::WIDTH:\n \t\t\t$clonedrecord->getFunctions()->getProposal()->getDimensions()->setWidth($newvalue);\n \t\t\tbreak;\n \t\tcase ProposalDAO::THICKNESS:\n \t\t\t$clonedrecord->getFunctions()->getProposal()->getDimensions()->setThickness($newvalue);\n \t\t\tbreak;\n \t\tcase ReportDAO::REPORT_DATE:\n \t\t\t$clonedrecord->getFunctions()->getReport()->setReportDate($newvalue);\n \t\t\tbreak;\n \t\tcase \"ReportUnit\":\n \t\t\t$clonedrecord->getFunctions()->getReport()->getDimensions()->setUnit($newvalue);\n \t\t\tbreak;\n \t\tcase \"ReportHeight\":\n \t\t\t$clonedrecord->getFunctions()->getReport()->getDimensions()->setHeight($newvalue);\n \t\t\tbreak;\n \t\tcase \"ReportWidth\":\n \t\t\t$clonedrecord->getFunctions()->getReport()->getDimensions()->setWidth($newvalue);\n \t\t\tbreak;\n \t\tcase \"ReportThickness\":\n \t\t\t$clonedrecord->getFunctions()->getReport()->getDimensions()->setThickness($newvalue);\n \t\t\tbreak;\n \t\tcase \"FinalVolumeCount\":\n \t\t\t$clonedrecord->getFunctions()->getReport()->getCounts()->setVolumeCount($newvalue);\n \t\t\tbreak;\n \t\tcase \"FinalSheetCount\":\n \t\t\t$clonedrecord->getFunctions()->getReport()->getCounts()->setSheetCount($newvalue);\n \t\t\tbreak;\n \t\tcase \"FinalPhotoCount\":\n \t\t\t$clonedrecord->getFunctions()->getReport()->getCounts()->setPhotoCount($newvalue);\n \t\t\tbreak;\n \t\tcase \"FinalBoxCount\":\n \t\t\t$clonedrecord->getFunctions()->getReport()->getCounts()->setBoxCount($newvalue);\n \t\t\tbreak;\n \t\tcase \"FinalOtherCount\":\n \t\t\t$clonedrecord->getFunctions()->getReport()->getCounts()->setOtherCount($newvalue);\n \t\t\tbreak;\n \t\tcase \"FinalHousingCount\":\n \t\t\t$clonedrecord->getFunctions()->getReport()->getCounts()->setHousingCount($newvalue);\n \t\t\tbreak;\n \t}\n\t\treturn $clonedrecord;\n }", "function UpdateRecord($tabel_name='',$where='', $param)\n {\n $this->db\n ->where($where)\n ->update($tabel_name, $param);\n }", "function adv_update($table, array $data, array $where);", "function update() {\n\t\t\t$updateQuery = \"UPDATE \".$this->table.\" SET \";\n\n\t\t\t$keysAR = array_keys($this->activeRecord);\n\n\t\t\tfor ($loopUp = 0; $loopUp < count($this->activeRecord); $loopUp++) {\n\n $updateQuery .= $keysAR[$loopUp] . \" = ?, \";\n $paramArray[] = $this->activeRecord[$keysAR[$loopUp]];\n\n\t\t\t}\n\n\t\t\t$updateQuery = substr($updateQuery, 0, -2); // Haal de laatste komma weg.\n\n\t\t\t$updateQuery .= \" WHERE \";\n\n\t\t\t// Fetch de primary key van de tabel.\n $fetchPrimary = $this->mysqlConnection->query(\"SHOW INDEX FROM \".$this->table);\n $arrayIndex = $fetchPrimary->fetch(PDO::FETCH_ASSOC);\n $kolomIndex = $arrayIndex['Column_name'];\n\n $updateQuery .= $kolomIndex.\" = \".$this->originalValues[$kolomIndex];\n\n\t\t\t$this->lastQuery = $updateQuery;\n\n $updateTable = $this->mysqlConnection->prepare($this->lastQuery);\n $updateTable->execute($paramArray);\n\n\t\t}", "function updateField() {\n DATABASE::INIT_TABLE($this->database, $this->table);\n $fname = $this->urlParam('fname');\n $fvalue = $this->urlParam('fvalue');\n $id = $this->urlParam('id');\n DATABASE::UPDATE($this->table, [$fname], [$fvalue], $id);\n }", "function update_record () {\n\t\t\n\t\t// validate input\n $valid = true;\n if (empty($this->name)) {\n $this->nameError = 'Please enter Name';\n $valid = false;\n }\n\n if (empty($this->email)) {\n $this->emailError = 'Please enter Email Address';\n $valid = false;\n } \n\n\n if (empty($this->mobile)) {\n $this->mobileError = 'Please enter Mobile Number';\n $valid = false;\n }\n\n // update data\n if ($valid) {\n $pdo = Database::connect();\n $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n $sql = \"UPDATE customers SET name = ?, email = ?, mobile = ? WHERE id=\".$_GET['id'];\n $q = $pdo->prepare($sql);\n $q->execute(array($this->name,$this->email,$this->mobile));\n Database::disconnect();\n header(\"Location: customer.php\");\n }\n else {\n $this->update();\n }\n\t\n\t}", "public function modifyRecords(){\n \n // Get the sql statement\n $sql = $this->updateSql();\n // Prepare the query\n $stmt = $this->db->prepare($sql);\n\n foreach ($this->requestUpdateValues as $key => $value) {\n $stmt->bindParam($this->params['columnName_Pdo'][$key], $this->requestUpdateValues[$key]);\n }\n \n $stmt->execute();\n \n return true;\n \n }", "public function update( array $params );", "public function update(Record $record)\n {\n request()->validate([\n 'title' => 'required',\n 'content' => 'required',\n ]);\n\n $success = $record->update([\n 'title' => request('title'),\n 'content' => request('content'),\n ]);\n\n return [\n 'success' => $success\n ];\n }", "function modify_record(&$_usr, &$_rec) {\r\n\t\t$query=\"update materials \";\r\n\t\tif(is_array($_rec)) {\r\n\t\t\t$spl=\"\";\r\n\t\t\t$query.=\" set \";\r\n\t\t\tforeach ($_rec as $k=>$v) {\r\n\t\t\t\t$query.=$spl.$k.\"='\".$v.\"'\";\r\n\t\t\t\t$spl=\", \";\r\n\t\t\t}\r\n\t\t}\r\n\t\t$query.=\"where materials.user_id=matlinks.mat_id and matlinks.user_id=\".$_usr['user_id'];\r\n\t\t$mq = mysql_query($query);\r\n\t\treturn ( mysql_query($query) && mysql_affected_rows()==1 );\r\n\t}", "function update($values){\n\n $id = $values['id'];\n unset($values['id']);\n $query = \" UPDATE \" . $this->tableName;\n $separator = \" SET \";\n\n foreach ($values as $key => $value){\n $query .= $separator . $key . \" = '\" . $value . \"'\";\n $separator = \", \";\n\n }\n $query .= \" where id = $id \";\n $query .= \";\";\n return $this->dbh->query($query);\n \n }", "protected function _update() {\n $this->_getDef();\n \n //prepare\n foreach ($this->_tableData as $field) {\n if($field['primary']) {\n $primaryKey = $field['field_name'];\n $primaryValue = $this->$primaryKey;\n continue;\n }\n \n $sql_fields[] = '`' . $field['field_name'] . '` =?';\n \n $field_name = $field['field_name'];\n \n if(false !== ($overrideKey = $this->_getOverrideKey($field_name))){\n $field_name = $overrideKey;\n }\n \n if($this->$field_name instanceof \\DateTime){\n $$field_name = $this->$field_name->format('Y-m-d H:i:s');\n } elseif(is_array($$field_name)){\n $$field_name = json_encode($$field_name);\n } else {\n $$field_name = $this->$field_name;\n }\n \n $values[] = $$field_name;\n }\n \n $values[] = $primaryValue;\n \n $sql = \"UPDATE `{$this->_table}` SET \" . implode(',', $sql_fields) . \" WHERE `{$primaryKey}` =?\";\n $stmt = Database::connection($this->_connection)->prepare($sql, $values);\n $stmt->execute();\n $this->setLastError(NULL);\n if($stmt->error !== ''){\n $this->setLastError($stmt->error);\n }\n \n $stmt->close();\n \n return $this->getLastError() === NULL ? true : false;\n }", "public function update() {\n\t\tif (isset($this->params['updated'])) {\n\t\t\t$this->params['updated'] = null;\n\t\t} // 'updated' is an auto timestamp\n\n\t\t$columns = array();\n\t\tforeach (array_keys($this->params) as $key) {\n\t\t\tarray_push($columns, $key . ' = ?');\n\t\t}\n\t\t$bindings = implode(', ', $columns);\n\t\t$sql = 'UPDATE ' . static::$table . ' SET ' . $bindings . ' WHERE id = ' . $this->get('id') . ' ;';\n\t\t$query = DBH()->prepare($sql);\n\t\t$query->execute(array_values($this->params));\n\t}", "private function crud_put($record = null)\n {\n $key = $record['id'];\n // Make sure the new record has an ID\n if (!isset($key))\n {\n $this->response(array('error' => 'Update: No item specified'), 406);\n return;\n }\n // make sure the item is real\n if (!$this->supplies->exists($key))\n {\n $this->response(array('error' => 'Update: Item ' . $key . ' not found'), 406);\n return;\n }\n // proceed with update\n $this->supplies->update($record);\n // check for DB errors\n $oops = $this->db->error();\n if (empty($oops['code']))\n $this->response(array('ok'), 200);\n else\n $this->response($oops, 400);\n }", "public function update($table, array $fields_arr, $where) {\n }", "public function updateRecord()\n\t{\n\t\tif($this->user->hasRight($this->getHandler()->getEditRight()))\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$record = $this->getHandler()->getRecord();\n\t\t\t\t$record->import($this->getRequest());\n\n\t\t\t\t// check owner\n\t\t\t\tif(!$this->isOwner($record))\n\t\t\t\t{\n\t\t\t\t\tthrow new Exception('You are not the owner of the record');\n\t\t\t\t}\n\n\t\t\t\t// check captcha\n\t\t\t\t$this->handleCaptcha($record);\n\n\t\t\t\t// update\n\t\t\t\t$this->getHandler()->update($record);\n\n\n\t\t\t\t$msg = new Message('You have successful edit a ' . $record->getName(), true);\n\n\t\t\t\t$this->setResponse($msg);\n\t\t\t}\n\t\t\tcatch(\\Exception $e)\n\t\t\t{\n\t\t\t\t$msg = new Message($e->getMessage(), false);\n\n\t\t\t\t$this->setResponse($msg);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$msg = new Message('Access not allowed', false);\n\n\t\t\t$this->setResponse($msg, null, $this->user->isAnonymous() ? 401 : 403);\n\t\t}\n\t}", "public function update($table, array $values, array $where);", "public function update(array $data, array $where);", "public function update(UpdatePatientRecordRequest $request, PatientRecord $patientRecord)\n {\n //\n }", "private function update()\n {\n $queryString = 'UPDATE ' . $this->table . ' SET ';\n foreach ($this->data as $column => $value) {\n if ($column != self::ID) {\n $queryString .= $column . ' =:' . $column . ',';\n }\n }\n $queryString .= ' updated_at = sysdate() WHERE 1 = 1 AND ' . self::ID . ' =:' . self::ID;\n $this->query = $this->pdo->prepare($queryString);\n }", "function update($field, $value, $model)\n {\n }", "function update($id,$fields_val){\n $count=0;$set='';\n foreach($fields_val as $f => $v){\n $count++;\n $set .= \"$f = '$v'\";\n $set .=($count != count($fields_val))?',':'';\n \n }\n $sql = \"UPDATE {$this -> table} SET {$set} WHERE {$this -> pk} = '{$id}'\";\n $updt = $this -> query($sql);\n return $updt;//returns true on success and false if otherwise\n }", "public function update(){\n if(empty($this->attributes)){\n return;\n }\n if ($this->isAutoInc) {\n $fieldsList = \" SET \";\n foreach ($this->attributes as $column => $value) {\n $fieldsList.=$column.\"=\".'\\''.$value.'\\''.\", \";\n }\n $fieldsList = str_last_replace(\", \", \"\", $fieldsList);\n $sqlQuery = \"UPDATE \".$this->table.$fieldsList.\" WHERE \".$this->idName.\"=\".$this->attributes[$this->idName];\n\n Db::instance()->execute($sqlQuery,$this->attributes);\n }\n }", "final public function UpdateActiveRecord($recArr)\n\t{\n\t $this->m_ActiveRecord = $recArr;\n $this->m_RecordRow->SetRecordArr($this->m_ActiveRecord); // needed ???\n\t}", "static function update($connection, $id, $data, $new_value)\n {\n }", "public function update(array $data);", "public function update(array $data);", "public function update(array $data);", "public function update($listOfValue);", "public function edit(Record $record)\n {\n //\n }", "public function update(){\n\t\t$this->beforeSave();\n\t\t$tableName = $this->tableName();\n\t\t$fields = $this->fields();\n\t\t// Remove fields set as ignored by rules validation.\n\t\t$fields = $this->removeIgnored($fields);\n\t\t// Create PDO placeholders.\n\t\t$params = implode(', ', array_map(fn($name) => $name . ' = :' . $name, $fields));\n\t\t$primaryKey = $this->getPrimaryKey();\n\t\t$where = $primaryKey . ' = :' . $primaryKey;\n\t\t$statement = $this->db->prepare('UPDATE ' . $tableName . ' SET ' . $params . ' WHERE ' . $where);\n\t\t// Bind values to placeholders.\n\t\tforeach($fields as $field){\n\t\t\t$this->binder($statement, ':' . $field, $this->{$field});\n\t\t}\n\t\t$statement->bindValue(':' . $primaryKey, $this->{$primaryKey});\n\t\tif($statement->execute()){\n\t\t\t$this->afterSave();\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "function UpdateRec($strTable, $strWhere, $arrValue){\n\n\t\t$strQuery = \"\tupdate $strTable set \";\n\n\t\treset($arrValue);\n\n\t\twhile (list ($strKey, $strVal) = each ($arrValue))\n\t\t{\n\t\t\t$strQuery .= $strKey . \"='\" . FixString2($strVal) . \"',\";\n\t\t}\n\n\t\t// remove last comma\n\t\t$strQuery = substr($strQuery, 0, strlen($strQuery) - 1);\n\n\t\t$strQuery .= \" where $strWhere;\";\n\n\t\t// execute query\n\t\tSQLQuery($strQuery);\n\t}", "public function update($data) {}", "public function update($data) {}", "public function update($table_name, $fields_values = array(), $where = array())\r\n {\r\n }", "public function update($table, $fieldValues, $conditions, $bind = []);", "function UpdateRecord($id,$param) {\n $this->db->where('id_form_bd',$id);\n $this->db->update('form_bd',$param);\n }", "public final function update() {\n\t\t$properties = self::getProperties($this);\n\t\t$columns = array_keys($properties);\n\t\t$values = array_values($properties);\n\n\t\t$setArray = array();\n\t\tfor ($i = 0; $i < count($properties); $i++) {\n\t\t\t$column = $columns[$i];\n\t\t\tif (strcmp($column, $this->primaryField) == 0 ||\n\t\t\t\tin_array($column, $this->uniqueFields)\n\t\t\t) {\n\t\t\t\t// Remove the value for binding\n\t\t\t\tunset($values[$i]);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$setArray[] = $column . \" = ?\";\n\t\t}\n\n\t\t$sql = \"\n\tUPDATE\n\t\t\" . $this->table . \"\n\tSET\n\t\t\" . implode(\", \", $setArray) . \"\n\tWHERE\n\t\t\" . $this->primaryField . \" = ?\n\t;\";\n\t\t// Adds the primary key binding\n\t\t$values[] = $this->{$this->primaryField};\n\n\t\t$db = new MySQL();\n\t\t$statement = $db->prepare($sql);\n\t\t$status = $statement->execute($values);\n\t\t$statement = NULL;\n\n\t\treturn $status;\n\t}", "function updateMatterRecord($fileIndexVal, $dateVal, $matterVal, $nsFileName, $cnsFileName, $nsFileAddr, $cnsFileAddr, $slNumber) {\r\n\t\t\t$updateQuery \t= \"update document_details set file_index=?, date_val=? , matters=?, note_sheet=?, corr_note_sheet=?, \r\n\t\t\t\t\t\t\t\tnst_file_address=?, cnst_file_address=? where sl_no=?\";\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t$query\t\t \t= $this->pdo->prepare($updateQuery);\r\n\t\t\t$matterDetails\t= array($fileIndexVal, $dateVal, $matterVal, $nsFileName, $cnsFileName, $nsFileAddr, $cnsFileAddr, $slNumber);\r\n\t\t\t$query->execute($matterDetails);\r\n\t\t\t\r\n\t\t\t$rowUpdated \t= $query->rowCount(); // count the number of rows get updated\r\n\t\t\treturn $rowUpdated;\r\n\t\t}", "public function update($table, array $data, array $identifier);", "public function update($identifier, array $values, $flush = true);", "function EditRow() {\r\n\t\tglobal $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\r\n\t\t$conn = &$this->Connection();\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\r\n\t\t$rs = $conn->Execute($sSql);\r\n\t\t$conn->raiseErrorFn = '';\r\n\t\tif ($rs === FALSE)\r\n\t\t\treturn FALSE;\r\n\t\tif ($rs->EOF) {\r\n\t\t\t$this->setFailureMessage($Language->Phrase(\"NoRecord\")); // Set no record message\r\n\t\t\t$EditRow = FALSE; // Update Failed\r\n\t\t} else {\r\n\r\n\t\t\t// Save old values\r\n\t\t\t$rsold = &$rs->fields;\r\n\t\t\t$this->LoadDbValues($rsold);\r\n\t\t\t$rsnew = array();\r\n\r\n\t\t\t// Nro_Serie\r\n\t\t\t$this->Nro_Serie->SetDbValueDef($rsnew, $this->Nro_Serie->CurrentValue, \"\", $this->Nro_Serie->ReadOnly || $this->Nro_Serie->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->SetDbValueDef($rsnew, $this->SN->CurrentValue, NULL, $this->SN->ReadOnly || $this->SN->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Cant_Net_Asoc\r\n\t\t\t$this->Cant_Net_Asoc->SetDbValueDef($rsnew, $this->Cant_Net_Asoc->CurrentValue, NULL, $this->Cant_Net_Asoc->ReadOnly || $this->Cant_Net_Asoc->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Id_Marca\r\n\t\t\t$this->Id_Marca->SetDbValueDef($rsnew, $this->Id_Marca->CurrentValue, 0, $this->Id_Marca->ReadOnly || $this->Id_Marca->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Id_Modelo\r\n\t\t\t$this->Id_Modelo->SetDbValueDef($rsnew, $this->Id_Modelo->CurrentValue, 0, $this->Id_Modelo->ReadOnly || $this->Id_Modelo->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Id_SO\r\n\t\t\t$this->Id_SO->SetDbValueDef($rsnew, $this->Id_SO->CurrentValue, 0, $this->Id_SO->ReadOnly || $this->Id_SO->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Id_Estado\r\n\t\t\t$this->Id_Estado->SetDbValueDef($rsnew, $this->Id_Estado->CurrentValue, 0, $this->Id_Estado->ReadOnly || $this->Id_Estado->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// User_Server\r\n\t\t\t$this->User_Server->SetDbValueDef($rsnew, $this->User_Server->CurrentValue, NULL, $this->User_Server->ReadOnly || $this->User_Server->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Pass_Server\r\n\t\t\t$this->Pass_Server->SetDbValueDef($rsnew, $this->Pass_Server->CurrentValue, NULL, $this->Pass_Server->ReadOnly || $this->Pass_Server->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// User_TdServer\r\n\t\t\t$this->User_TdServer->SetDbValueDef($rsnew, $this->User_TdServer->CurrentValue, NULL, $this->User_TdServer->ReadOnly || $this->User_TdServer->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Pass_TdServer\r\n\t\t\t$this->Pass_TdServer->SetDbValueDef($rsnew, $this->Pass_TdServer->CurrentValue, NULL, $this->Pass_TdServer->ReadOnly || $this->Pass_TdServer->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Cue\r\n\t\t\t// Fecha_Actualizacion\r\n\r\n\t\t\t$this->Fecha_Actualizacion->SetDbValueDef($rsnew, ew_CurrentDate(), NULL);\r\n\t\t\t$rsnew['Fecha_Actualizacion'] = &$this->Fecha_Actualizacion->DbValue;\r\n\r\n\t\t\t// Usuario\r\n\t\t\t$this->Usuario->SetDbValueDef($rsnew, CurrentUserName(), NULL);\r\n\t\t\t$rsnew['Usuario'] = &$this->Usuario->DbValue;\r\n\r\n\t\t\t// Call Row Updating event\r\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\r\n\t\t\tif ($bUpdateRow) {\r\n\t\t\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\r\n\t\t\t\tif (count($rsnew) > 0)\r\n\t\t\t\t\t$EditRow = $this->Update($rsnew, \"\", $rsold);\r\n\t\t\t\telse\r\n\t\t\t\t\t$EditRow = TRUE; // No field to update\r\n\t\t\t\t$conn->raiseErrorFn = '';\r\n\t\t\t\tif ($EditRow) {\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\r\n\r\n\t\t\t\t\t// Use the message, do nothing\r\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\r\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\r\n\t\t\t\t\t$this->CancelMessage = \"\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\r\n\t\t\t\t}\r\n\t\t\t\t$EditRow = FALSE;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Call Row_Updated event\r\n\t\tif ($EditRow)\r\n\t\t\t$this->Row_Updated($rsold, $rsnew);\r\n\t\tif ($EditRow) {\r\n\t\t\t$this->WriteAuditTrailOnEdit($rsold, $rsnew);\r\n\t\t}\r\n\t\t$rs->Close();\r\n\t\treturn $EditRow;\r\n\t}", "public function update () {\n reset($this->__fields);\n $pk = key($this->__fields);\n $form = $this->getForm();\n $updates = array();\n\n foreach ($form as $k => $v) {\n $updates[] = sprintf('%s = :%s', $k, $k);\n }\n\n $sql = sprintf(\n 'UPDATE %s SET %s WHERE %s = :%s'\n , $this->getTableName()\n , implode(',', $updates)\n , $pk\n , $pk\n );\n\n $stmt = $this->__db->prepare($sql);\n $stmt->bindValue($pk, $this->__get($pk));\n\n foreach ($form as $k => $v) {\n if (is_object($v->getData()) && get_class($v->getData()) == 'DateTime') {\n $stmt->bindValue($k, $v->getData(), $this->__fields[$k]['type']);\n } else {\n $stmt->bindValue($k, $v->getData());\n }\n }\n\n $stmt->execute();\n\n return $this;\n }", "public function update() {\n global $DB;\n $record = array(\n 'sortorder' => $this->sortorder,\n 'criterion' => $this->criterion,\n 'addinfo' => json_encode($this->addinfo)\n );\n if ($this->id) {\n $record['id'] = $this->id;\n $DB->update_record($this->get_table_name(), $record);\n } else {\n $record['instantquizid'] = $this->instantquiz->id;\n $this->id = $DB->insert_record($this->get_table_name(), $record);\n }\n }", "public function updateRow(Request $request)\n {\n $result=MyRow::where('id',$request->id)->update([$request->column_name=>$request->value]);\n if ($result) echo 'Data Updated';\n }", "public function update_record_in_shipment(Array $columns, Array $records, Array $where_columns, Array $where_records, $printSQL = false) {\n\t\treturn $this->update_record ( $this->get_table (), $columns, $records, $where_columns, $where_records, $printSQL );\n\t}", "public function update() {\n // Get the values that are currently in the database\n $curr_vals = $this->read_single();\n\n // Set the values that will be added to the table\n foreach ($curr_vals as $key => $value) {\n // Convert key from the Database's capitalization to\n // this model's attribute capitalization style (all lowercase)\n $local_key = strtolower($key);\n // If user didn't specify property\n if (($this->attr[$local_key] === \"\") || ($this->attr[$local_key] === null)){\n // Then use the value that's already in the database\n $this->attr[$local_key] = $curr_vals[$key];\n }\n }\n\n // Create query\n $query = \"UPDATE \" . $this->table .\n \" SET = \" .\n \" WHERE MID = :mid AND Spot = :spot \";\n\n // Prepare statement\n $stmt = $this->conn->prepare($query);\n\n // Clean the data (reduce malicious SQL injection, etc.)\n foreach ($this->attr as $key => $value) {\n $this->attr[$key] = htmlspecialchars(strip_tags($value));\n }\n \n // Bind the data to a variable for an SQL attribute\n foreach ($this->attr as $key => $value) {\n $stmt->bindValue((\":\" . $key), $value);\n }\n\n // Execute the prepared statement and check for errors in running it\n return $this->runPrepStmtChkErr($stmt);\n }", "public function update() {\n global $db;\n $this->_preupdate();\n $sql_set = '';\n $data = array();\n foreach($this->_magicProperties as $key=>$value)\n {\n $sql_set .= \"`\".addslashes($key).\"`=\";\n $sql_set .= \"?,\";\n $data[] = $value;\n }\n $sql_set = substr($sql_set, 0, -1);\n\n $query = \"UPDATE {$this->table} SET $sql_set WHERE \".$this->id_field.\"=?;\";\n $data[] = $this->{'get'.$this->id_field}();\n\n $result = $db->query($query,$data);\n $this->_postupdate($result);\n return $result;\n }", "abstract protected function updateSpecificProperties($row);", "abstract public function updateData();", "public function DoUpdate()\n\t{\n\n\t\treturn db_update_records($this->fields, $this->tables, $this->values, $this->filters);\n\t}", "function update(array $values)\n{\n\tforeach ($this as $model) {\n\t\t$model->setValues($values);\n\t\t$model->save();\n\t}\n}", "public function modifyRecord($record)\n {\n return $record;\n }", "public function updateRecord($table = NULL , $columns = NULL, $where = NULL)\n\t{\n\t//echo $table;die;\n\t\t\tif($table == NULL || $columns == NULL)\n\t\t\t{\n\t\t\t\treturn ;\n\t\t\t}\n\t\t\t\n\t\t if($where){\n\t\t\t $this->db->where($where);\n\t\t }\n\t\t \n\t\t //print_r($this->db->last_query()). '<hr>';\n\t\t $result = $this->db->update($table, $columns);\n\t\t return $result;\n\t\t$this->db->close();\t\t\n\t}", "protected function update() {\n $this->db->updateRows($this->table_name, $this->update, $this->filter);\n storeDbMsg($this->db,ucwords($this->form_ID) . \" successfully updated!\");\n }", "public static function populateRecord($record, $row)\n {\n $columns = array_flip($record->attributes());\n foreach ($row as $name => $type_value) {\n $value=current($type_value);\n if (isset($columns[$name])) {\n $record->setAttribute($name, $value);\n $record->setOldAttribute($name,$value);\n } elseif ($record->canSetProperty($name)) {\n $record->$name = $value;\n }\n }\n\n\n }", "public function update(Request $request, QualityRecord $qualityRecord)\n {\n //\n }", "public function setRecord($record){\n $this->record = $record;\n }", "function updateval($ufield,$uvalue,$table,$where,$whereval,$whereb=\"\",$wherevalb=\"\"){\n\n\t\tif ($ufield ==\"\" || $uvalue==\"\" || $table==\"\" || $where==\"\" || $whereval==\"\") {\n\t\t\t$this->showerror(\"There is an error with your Update request, please try again\");\n\t\t}\n\t\t// make the second check\n\t\tif (($whereb ==\"\" && $wherevalb !=\"\") || ($whereb !=\"\" && $wherevalb ==\"\")) {\n\t\t $this->showerror(\"There is an error with your optional fields, please try again\");\n\t\t}\n\t\t// else no error, so continue process\n\t\t// check if the record exists\n\t // Are we updation to match two fields?\n\t if ($whereb ==\"\" && $wherevalb ==\"\") {\n\t \t// we are only updation to match one fileld\n\t \t // check if record already exist in the database\n\t\t if ($this->rec_exist($where,$whereval,$table,$n=\"\")){\n\t\t\t// check if value is more than one\n\t\t\t if ($this->havecomma($ufield) || $this->havecomma($uvalue)) {\n\t\t\t \t// make the value arrays\n\t\t\t \t$afield = $this->makearray($ufield);\n\t\t\t \t$avalue = $this->makearray($uvalue);\n\t\t\t \t// count the values in each arrays\n\t\t\t \tif (count($afield) != count($avalue)) {\n\t\t\t \t\t// arrays does not match, show error\n\t\t\t \t\t$this->showerror(\"The values in your \\'field\\' does not match that of \\'value\\'. Please check your fields and values\");\n\t\t\t \t}\n\t\t\t \t// they are equal, so get the number and update\n\t\t\t \t$c = count($afield);\n\t\t\t \t$d = $c - 1;\n\t\t\t \tfor ($i=0; $i<=$d; $i++){\n\t\t\t \t $tquery = \"UPDATE \". $table . \" SET \". $afield[$i] .\"='\" .$avalue[$i] .\"' WHERE \". $where .\"='$whereval'\";\n\t\t\t \t $mres = mysqli_query($this->dcon, $tquery);\n\t\t\t \t if (!$mres){\n\t\t\t\t $this->showerror(\"Could not update record to the database\");\n\t\t\t }\n\t\t\t \t}\n\n\t\t\t }\n\t\t else {\n\t\t\t \t// add single field and value to the database\n\t\t\t\t$tquery = \"UPDATE \". $table . \" SET \". $ufield .\"='$uvalue' WHERE \". $where .\"='$whereval'\";\n\t\t\t\t$mres = mysqli_query($this->dcon, $tquery);\n\t\t\t\tif (!$mres){\t\t\t\t\n\t\t\t\t\t$this->showerror(\"Could not update record to the database\");\n\t\t\t\t }\n\t\t\t }\n\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$this->showerror(\"There is no such record or table in the database\");\n\t\t\t}\n\t }\n\t else { // we are updating to match two fields\n\t \t // check if record already exist in the database\n\t\t if ($this->rec_existb($where,$whereval,$whereb,$wherevalb,$table)){\n\t\t\t// check if value is more than one\n\t\t\t if ($this->havecomma($ufield) || $this->havecomma($uvalue)) {\n\t\t\t \t// make the value arrays\n\t\t\t \t$afield = $this->makearray($ufield);\n\t\t\t \t$avalue = $this->makearray($uvalue);\n\t\t\t \t// count the values in each arrays\n\t\t\t \tif (count($afield) != count($avalue)) {\n\t\t\t \t\t// arrays does not match, show error\n\t\t\t \t\t$this->showerror(\"The values in your \\'field\\' does not match that of \\'value\\'. Please check your fields and values\");\n\t\t\t \t}\n\t\t\t \t// they are equal, so get the number and update\n\t\t\t \t$c = count($afield);\n\t\t\t \t$d = $c - 1;\n\t\t\t \tfor ($i=0; $i<=$d; $i++){\n\t\t\t \t $tquery = \"UPDATE \". $table . \" SET \". $afield[$i] .\"='\" .$avalue[$i] .\"' WHERE \". $where .\"='$whereval' AND \". $whereb .\"='$wherevalb'\";\n\t\t\t \t $mres = mysqli_query($this->dcon, $tquery);\n\t\t\t \t if (!$mres){\n\t\t\t\t $this->showerror(\"Could not update record to the database\");\n\t\t\t }\n\t\t\t \t}\n\n\t\t\t }\n\t\t else {\n\t\t\t \t// add single field and value to the database\n\t\t\t\t$tquery = \"UPDATE \". $table . \" SET \". $ufield .\"='$uvalue' WHERE \". $where .\"='$whereval' AND \". $whereb .\"='$wherevalb'\";\n\t\t\t\t$mres = mysqli_query($this->dcon, $tquery);\n\t\t\t\tif (!$mres){\n\t\t\t\t\t$this->showerror(\"Could not update record to the database\");\n\t\t\t\t }\n\t\t\t }\n\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$this->showerror(\"There is no such record or table in the database\");\n\t\t\t}\n\t }\n\t\t// else all went well. return true\n\t\treturn true;\n\t}", "function bulkUpdateFields($doc = []) {\n // $doc = ['name' => 'Audi'], ['$set' => ['price' => 52000]];\n\n $bulk = $this->getBulkWrite();\n $bulk->update($doc);\n\n $this->manager->executeBulkWrite($this->db_collection, $bulk);\n }", "public function updaterecorddataAction()\n {\n \t$this->_helper->viewRenderer->setNoRender();\n \t\n \t$itemid = $this->getRequest()->getParam('itemID');\n \t$columnname = $this->getRequest()->getParam('column');\n \t$newvalue = $this->getRequest()->getParam('newdata');\n \t$group = GroupNamespace::getCurrentGroup();\n \t\n \tif (isset($itemid) && isset($group))\n \t{\n \t\t$records = $group->getRecords();\n \t\tif (isset($records[$itemid]))\n \t\t{\n \t\t\t$record = $records[$itemid];\n \t\t\t$updatedrecord = $this->updateRecord($record, $columnname, $newvalue);\n \t\t\tif ($this->isIdentification($columnname))\n \t\t\t{\n \t\t\t\t$itemid = ItemDAO::getItemDAO()->saveItemIdentification($updatedrecord, $record);\n \t\t\t}\n \t\t\telseif ($this->isProposal($columnname))\n \t\t\t{\n \t\t\t\t$proposalid = ProposalDAO::getProposalDAO()->saveItemProposal($updatedrecord->getFunctions()->getProposal(), $updatedrecord);\n \t\t\t\t//Set the itemid to null if the proposal update failed.\n \t\t\t\tif (is_null($proposalid))\n \t\t\t\t{\n \t\t\t\t\t$itemid = NULL;\n \t\t\t\t}\n \t\t\t}\n \t\t\telseif ($this->isReport($columnname))\n \t\t\t{\n \t\t\t\t$reportid = ReportDAO::getReportDAO()->saveItemReport($updatedrecord->getFunctions()->getReport(), $record->getFunctions()->getReport(), $updatedrecord);\n \t\t\t\t//Set the itemid to null if the report update failed.\n \t\t\t\tif (is_null($reportid))\n \t\t\t\t{\n \t\t\t\t\t$itemid = NULL;\n \t\t\t\t}\n \t\t\t}\n \t\t\t//If the save was successful, then update the namespace\n \t\t\tif (!is_null($itemid))\n \t\t\t{\n \t\t\t\t$records[$itemid] = $updatedrecord;\n \t\t\t\t$group->setRecords($records);\n \t\t\t\tGroupNamespace::setCurrentGroup($group);\n \t\t\t}\n \t\t\t//TODO: Otherwise, throw an error via json\n \t\t\telse\n \t\t\t{\n \t\t\t\tLogger::log('Update record did not save', Zend_Log::ERR);\n \t\t\t}\n \t\t}\n \t}\n }", "public function SQL_UPDATE() {\r\n\t}", "public function updateRecord_Library($RecordID, $LB_Section, $LB_Returned, $LB_Amount, $LB_TitleOfBooks){\r\n\t\t$now = date('Y-m-d H:i:s');\r\n\t\t$TimeStamp = human_to_unix($now);\r\n\t\t$ID = (int)$this->session->userdata['user_id'];\r\n\r\n\t\tif($LB_Amount == ''){$LB_Amount = '0';}\r\n\r\n\t\t$query = $this->db->query(\"UPDATE `staff_reg_off_library` SET \r\n\t\t\tsection = '$LB_Section',\r\n\t\t\tbooks_returned = '$LB_Returned',\r\n\t\t\tamount_due = $LB_Amount,\r\n\t\t\ttitle_of_books = '$LB_TitleOfBooks',\r\n\r\n\t\t\tmodified = '$TimeStamp',\r\n\t\t\tmodified_by = '$ID'\r\n\r\n\t\t\tWHERE id = $RecordID\");\r\n\t}", "public function update(array $update);", "public function update_record_in_antibiotics_and_how_to_use_them(Array $columns, Array $records, Array $where_columns, Array $where_records, $printSQL = false) {\n\t\treturn $this->update_record ( $this->get_table (), $columns, $records, $where_columns, $where_records, $printSQL );\n\t}", "abstract protected function updateModel();", "function update( \\gb\\domain\\DomainObject $object ) {\n //$this->updateStmt->execute( $values );\n }", "protected function update()\n\t{\n\t\t//append ID to fields\n\t\t$query = $this->connection->prepare\n\t\t(\"\n\t\t\tupdate Booth\n\t\t\tset BoothNum = ?\n\t\t\twhere BoothID = ?\n\t\t\");\n\n\t\t$query->execute(array_values($this->fields));\n\n\t}", "private function internalUpdate()\n {\n $param = array();\n\n // Run before update methods and stop here if the return bool false\n if ($this->runBefore('update') === false)\n return false;\n\n // Define fieldlist array\n $fieldlist = array();\n\n // Build updatefields\n foreach ( $this->data as $fld => $val )\n {\n // Skip datafields not in definition\n if (!$this->isField($fld))\n continue;\n\n $val = $this->checkFieldvalue($fld, $val);\n $type = $val == 'NULL' ? 'raw' : $this->getFieldtype($fld);\n\n $fieldlist[] = $this->alias . '.' . $fld . '={' . $type . ':' . $fld . '}';\n $param[$fld] = $val;\n }\n\n // Create filter\n $filter = ' WHERE ' . $this->alias . '.' . $this->pk . '={' . $this->getFieldtype($this->pk) . ':' . $this->pk . '}';\n\n // Even if the pk value is present in data, we set this param manually to prevent errors\n $param[$this->pk] = $this->data->{$this->pk};\n\n // Build fieldlist\n $fieldlist = implode(', ', $fieldlist);\n\n // Create complete sql string\n $sql = \"UPDATE {db_prefix}{$this->tbl} AS {$this->alias} SET {$fieldlist}{$filter}\";\n\n // Run query\n $this->db->query($sql, $param);\n\n // Run after update event methods\n if ($this->runAfter('update') === false)\n return false;\n }", "public function updateRecord($table, $setData, $where=false){\n\t\t\n\t\t$set \t\t = '';\n\t\tforeach($setData as $key => $val){\n\t\t\t$set \t.= $key.\"=\".\"'\".$val.\"'\".\",\";\n\t\t}\n\t\t$set \t\t = rtrim($set,\",\");\n\t\t\n\t\tif($where){\n\t\t\t$where \t= $this->makeWhere($where);\n\t\t}\n\t\t$query \t\t= \"UPDATE $table SET $set \".$where;\n\t\t\n\t\t$this->query($query);\n\t\t\t\t\t\n\t}", "public function update() {\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\t$ks_db->beginTransaction ();\r\n\t\t\t\r\n\t\t\t$arrBindings = array ();\r\n\t\t\t\r\n\t\t\tif (! isset ( $this->id )) { \r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//check if record exists\r\n\t\t\tif(! $this->exists ()) {\r\n\t\t\t\techo \"Fatal Error: No record found with id of ($this->id)\";\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t$sql = \"UPDATE $this->sqlTable SET \";\r\n\t\t\t\r\n\t\t\tif (isset ( $this->userid )) {\r\n\t\t\t\t$sql .= \"lp_userid = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->userid;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->random )) {\r\n\t\t\t\t$sql .= \"lp_random = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->random;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->deadline )) {\r\n\t\t\t\t$sql .= \"lp_deadline = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->deadline;\r\n\t\t\t}\r\n\r\n\t\t\t$sql = preg_replace ( '/, $/', '', $sql);\r\n\t\t\t$sql .= \" WHERE lp_id = ?\";\r\n\t\t\t$arrBindings[] = $this->id;\r\n\t\t\t\r\n\t\t\t$ks_db->query ( $sql, $arrBindings );\r\n\t\r\n\t\t\t$ks_db->commit ();\r\n\t\t\t\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_db->rollBack ();\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql);\r\n\t\t\techo \"Fatal Error: \" . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "public function update( $sql, $params=array());", "function update_record($dbc, $id, $item_name, $description, $location_id, $owner, $finder, $status) {\n\t$query = 'UPDATE stuff set id = '.$id.', set item_name = '.$item_name.', set description = '.$description.', set location_id = '.$location_id.', set create_date= '.$create_date.' , set owner= '.$owner.', set finder = '.$finder.', set status = '.$status.')' ;\n show_query($query);\n\n $results = mysqli_query($dbc,$query) ;\n check_results($results) ;\n\n return $results ;\n}", "public function updateRecord_Finance($RecordID, $FN_LoanBalance, $FN_AdvAmount, $FN_PFContribution, $FN_CPDOutstanding, $FN_ChildFee, $FN_ChildSDReceivable, $FN_Comments){\r\n\t\t$now = date('Y-m-d H:i:s');\r\n\t\t$TimeStamp = human_to_unix($now);\r\n\t\t$ID = (int)$this->session->userdata['user_id'];\r\n\r\n\t\t$query = $this->db->query(\"UPDATE `staff_reg_off_finance` SET \r\n\t\t\tloan_balance = $FN_LoanBalance,\r\n\t\t\tadvance_amount = '$FN_AdvAmount',\r\n\t\t\tpf_contribution = $FN_PFContribution,\r\n\t\t\tcpd_balance = '$FN_CPDOutstanding',\r\n\t\t\tchild_disc_inactive = $FN_ChildFee,\r\n\t\t\tchild_sec_deposit_receivable = $FN_ChildSDReceivable,\r\n\t\t\tcomments = '$FN_Comments',\r\n\r\n\t\t\tmodified = '$TimeStamp',\r\n\t\t\tmodified_by = '$ID'\r\n\r\n\t\t\tWHERE id = $RecordID\");\r\n\t}", "public static function updateRecord(string $table, array $data, array $where = null)\n {\n try {\n if (is_null($where))\n return Capsule::table($table)->update($data);\n else\n return Capsule::table($table)->where($where)->update($data);\n } catch (Exception $ex) {\n logActivity(\"Can not update record into {$table}, error: {$ex->getMessage()}\");\n }\n }", "public function updateRecords($data)\n {\n\n $this->dataStore->setData($data);\n }", "public function updateRecord($arrDatos) {\n\t\t\t\t$data = array(\n\t\t\t\t\t$arrDatos [\"column\"] => $arrDatos [\"value\"]\n\t\t\t\t);\n\t\t\t\t$this->db->where($arrDatos [\"primaryKey\"], $arrDatos [\"id\"]);\n\t\t\t\t$query = $this->db->update($arrDatos [\"table\"], $data);\n\t\t\t\tif ($query) {\n\t\t\t\t\treturn true;\n\t\t\t\t} else {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t}" ]
[ "0.82367384", "0.7632844", "0.739537", "0.73464715", "0.70177495", "0.6954069", "0.6850906", "0.6843063", "0.67875826", "0.67875826", "0.67875826", "0.6772654", "0.67018396", "0.6687194", "0.6659693", "0.66580313", "0.6634291", "0.6583869", "0.6581958", "0.65147096", "0.6495169", "0.64560854", "0.6417564", "0.6407467", "0.64067245", "0.6403741", "0.639695", "0.63897437", "0.6379782", "0.6379233", "0.6364686", "0.6360028", "0.6330829", "0.6325104", "0.632322", "0.6316299", "0.6305195", "0.62960523", "0.62959474", "0.62857336", "0.6285538", "0.6283681", "0.62666696", "0.6250586", "0.6245478", "0.6240944", "0.62395036", "0.6227894", "0.62207454", "0.62207454", "0.62207454", "0.621545", "0.6206673", "0.6206067", "0.62030184", "0.62021476", "0.62021476", "0.6201655", "0.61992604", "0.61990595", "0.6198064", "0.6186722", "0.617694", "0.61696374", "0.6154562", "0.6141832", "0.61372745", "0.61364245", "0.6134383", "0.6131989", "0.61180776", "0.61132425", "0.61068475", "0.60978144", "0.6096005", "0.60904753", "0.6088167", "0.60849243", "0.6076484", "0.6076481", "0.6074866", "0.60585713", "0.6057069", "0.6051554", "0.6049971", "0.6047643", "0.6045896", "0.6041948", "0.60418785", "0.60358727", "0.603394", "0.60287744", "0.6028152", "0.60241014", "0.60190797", "0.6017806", "0.6017621", "0.6016614", "0.6008949", "0.60083497" ]
0.6280086
42
Deploys the specified model (creates database or tables)
public function deploy(IModel $target);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function install() {\r\n\tforeach ($this->getModel() AS $model) {\r\n\t $this->getEntity($model->getName())->createTable();\r\n\t}\r\n }", "private function createDatabase()\n {\n // get entity manager\n $em = $this->modelManager;\n\n // get our schema tool\n $tool = new SchemaTool( $em );\n\n // ...\n $classes = array_map(\n function( $model ) use ( $em ) {\n return $em->getClassMetadata( $model );\n },\n $this->models\n );\n\n // remove them\n $tool->createSchema( $classes );\n }", "private function make()\n {\n \n $file = database_path().'/migrations/'.$this->fileName.'.php';\n \n $content = $this->blueprint();\n \n $this->file_write( $file, $content );\n \n }", "public function run()\n {\n \t\tDB::table('models')->insert($models);\n }", "public function mainAction()\n {\n echo shell_exec(\"mysql -u root -e 'CREATE DATABASE IF NOT EXISTS \" . $this->config->database->dbname . \";'\");\n\n // Run migrations if necessary\n echo shell_exec('php vendor/bin/phinx migrate -c config/phinx.php') . \"\\n\";\n }", "protected function createModel()\n {\n $this->call('make:model', array_filter([\n 'name' => $this->getNameInput(),\n '--factory' => $this->option('factory'),\n '--migration' => $this->option('migration'),\n ]));\n }", "public function createDatabase()\n {\n /** @var \\Shopware\\Components\\Model\\ModelManager $em */\n $em = $this->get('models');\n $tool = new \\Doctrine\\ORM\\Tools\\SchemaTool($em);\n\n $classes = [\n $em->getClassMetadata('Shopware\\CustomModels\\CustomSort\\ArticleSort'),\n ];\n\n try {\n $tool->createSchema($classes);\n } catch (\\Doctrine\\ORM\\Tools\\ToolsException $e) {\n //\n }\n }", "public function execute() {\n $oldMigrations = new Filesystem(\"App/system/databases/migrations\");\n $oldMigrations->addFilter(new MigrationFilter($this->model->getShortModelName()));\n\n\n //todo: write custom iterator\n $oldMigrations->customCallback([$this, \"applyOldMigrations\"]);\n //todo: get the current model and get the diffrences between that and the migration\n //todo: write a new migration.\n //\n // $this->buildChangeSet();\n //do stuff execute all the things\n $this->createNewMigration();\n\n }", "protected function createModel()\n {\n $model = $this->info['model'];\n\n $modelName = basename(str_replace('\\\\', '/', $model));\n\n // make it singular\n $modelName = Str::singular($modelName);\n\n $this->info['modelName'] = $modelName;\n\n $modelOptions = [\n 'model' => $this->info['model'],\n '--module' => $this->moduleName,\n ];\n $options = $this->setOptions([\n 'index',\n 'unique',\n 'data',\n 'uploads',\n 'float',\n 'bool',\n 'int',\n 'data',\n 'parent'\n ]);\n\n $this->call('engez:model', array_merge($modelOptions, $options));\n }", "public function createModel(PayModel $model);", "public function run()\n {\n # truncates tables before seeding\n foreach ($this->toTruncate as $table) {\n DB::table($table)->delete();\n }\n\n factory(App\\Models\\Product::class, 25)->create();\n }", "public function create(Model $model);", "public function run()\n {\n $vehicleMake = new VehicleMake();\n $vehicleMake->name = 'Dodge';\n $vehicleMake->save();\n $vehicleMake = new VehicleMake();\n $vehicleMake->name = 'Toyota';\n $vehicleMake->save();\n }", "public function run()\n {\n \\App\\Models\\User::factory(1)->create();\n\n \\App\\Models\\Customer::factory(10)->create();\n \\App\\Models\\Supplier::factory(10)->create();\n\n foreach ($this->measurements as $measurement)\n {\n \\App\\Models\\Measurement::create($measurement);\n }\n foreach ($this->products as $product)\n {\n \\App\\Models\\Product::create($product);\n }\n }", "protected function createModel()\n {\n $this->call('wizard:model', [\n 'name' => $this->argument('name'),\n ]);\n }", "public function run()\n {\n $typeProduct = new TypesProduct();\n $typeProduct->name = 'Venta';\n $typeProduct->description = 'Ventas';\n $typeProduct->save();\n $typeProduct = new TypesProduct();\n $typeProduct->name = 'Inventario';\n $typeProduct->description = 'Inventario';\n $typeProduct->save();\n\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n ModelHasRole::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n $model=new ModelHasRole;\n $model->role_id ='1';\n $model->model_type ='App\\User';\n $model->model_id ='1';\n $model->save();\n }", "public function run()\n {\n $serviceCategory = factory(App\\ServiceCategory::class)->make();\n $serviceCategory->save();\n $service = factory(App\\Service::class)->make();\n $service->save();\n\n }", "public function run()\n {\n $data = array(\n array(\n 'projectid' => 1,\n 'project' => 'Project Nova',\n 'desc' => 'sample project',\n 'visibility' => 'public',\n 'created' => time()\n ),\n array(\n 'projectid' => 2,\n 'project' => 'Project X',\n 'desc' => 'sample project',\n 'visibility' => 'public',\n 'created' => time()\n )\n );\n $table = $this->table('projects');\n $table->insert($data)\n ->save();\n }", "public function createApply()\n {\n Az::debug($this->newName, 'application');\n\n Az::debug($this->newName, 'creating DB & tables');\n $this->createDb();\n $this->fillDb();\n $this->callPageRunCmd();\n\n }", "public function create($args){\n\n if($args[0] == 'model'){\n\n if(!isset($args[1])){\n echo 'You must specify a table to build the model from' . PHP_EOL;\n exit;\n }//if\n\n $table = $args[1];\n\n $templatePath = isset($args[2]) ? $args[2] : 'app/config/model.format';\n $outputPath = isset($args[3]) ? $args[3] : 'app/model';\n\n if($table=='all'){\n $result = $this->getDBSchema();\n while($row = $result->fetch()){\n $model = \\Disco\\manage\\Manager::buildModel($row['table_name']);\n \\Disco\\manage\\Manager::writeModel($row['table_name'],$model,$templatePath,$outputPath);\n }//while\n }//if\n else {\n $model = \\Disco\\manage\\Manager::buildModel($table);\n \\Disco\\manage\\Manager::writeModel($table,$model,$templatePath,$outputPath);\n }//el\n\n }//if\n else if($args[0] == 'record'){\n\n if(!isset($args[1])){\n echo 'You must specify a table to build the record from' . PHP_EOL;\n exit;\n }//if\n\n $table = $args[1];\n\n $templatePath = isset($args[2]) ? $args[2] : 'app/config/record.format';\n $outputPath = isset($args[3]) ? $args[3] : 'app/record';\n\n if($table=='all'){\n $result = $this->getDBSchema();\n while($row = $result->fetch()){\n $record = \\Disco\\manage\\Manager::buildRecord($row['table_name']);\n \\Disco\\manage\\Manager::writeRecord($row['table_name'],$record,$templatePath,$outputPath);\n }//while\n }//if\n else {\n $record = \\Disco\\manage\\Manager::buildRecord($table);\n \\Disco\\manage\\Manager::writeRecord($table,$record,$templatePath,$outputPath);\n }//el\n\n }//elif\n\n }", "public function run()\n {\n \n Vendor::create([\n\n 'vendor_name' => 'Foodway',\n 'user_id'=> 2,\n\n ]);\n\n }", "protected function execute(InputInterface $input, OutputInterface $output)\n {\n $model = $this->modelPath . Str::singular(Str::studly($input->getArgument(\"model\"))) . '.php';\n\n if (!file_exists($model)):\n $model = $this->_createModel($input);\n $output->writeln($model . ' model generated');\n\n if ($input->getOption('migration')):\n $migration = $this->_createMigration($input);\n $output->writeln($migration . ' file generated');\n endif;\n else:\n $output->writeln(\"Model already exists\");\n endif;\n }", "public function run()\n {\n factory(App\\bread_model_class::class, 20)->create();\n }", "private function create()\n {\n if ($this->isRequired()) {\n $db = Database::getDatabaseConnection();\n $db->exec($this->getDropQuery());\n $db->exec($this->getCreateQuery());\n $this->populate($db);\n }\n }", "public function run()\n {\n //\n\t\tfactory(App\\Models\\KModel::class,5)->create();\n }", "public function run()\n {\n BudgetsModel::create(['total_budget_soles' => '0', 'total_budget_dollar' => '0','representative_id' => '1']);\n }", "public function migrate() \n {\n\n Masteryl_Migration::createOrUpdateDir(MASTERYL_MIGRATIONS_PATH, $this);\n\n if(!empty($this->modules)) {\n foreach($this->modules as $mod) {\n $dir = $mod['path'].'migrations';\n \n if(file_exists($dir))\n Masteryl_Migration::createOrUpdateDir($dir, $this);\n }\n }\n\n }", "public function run()\n {\n DB::table('product')->delete();\n DB::statement(\"ALTER TABLE `product` AUTO_INCREMENT = 1;\");\n\n App\\Product::create([\n 'type' => 'ticket'\n\n ]);\n\n App\\Product::create([\n 'type' => 'service'\n ]);\n }", "private function createModel($table){\n\n // Filtering file name\n $fileName = $this::cleanToName($table[\"name\"]) . '.php';\n \n // Prepare the Class scheme inside the model\n $contents = '<?php echo \"Hello World\"; ?>';\n\n // Return a boolean to process completed\n return Storage::disk('models')->put($this->appNamePath.'/'.$fileName, $contents);\n\n }", "public function run()\n {\n User::truncate();\n Product::truncate();\n User::forceCreate([\n 'name' => 'foo',\n 'email' => '[email protected]',\n 'password' => bcrypt('password'),\n ]);\n factory(User::class, 5)->create();\n factory(Product::class, 5)->create();\n }", "public function run()\n {\n //\n $newCompany = Company::firstOrCreate([\n //'id' => 'brandix',\n 'is_visible' => true,\n 'is_active' => true,\n 'code' => 'brandix',\n 'name' => 'brandix',\n 'display_name' => 'brandix'\n ]);\n \n $newStrategicBusinessUnit = $newCompany->strategicBusinessUnits()->firstOrCreate([\n //'id' => 'bli',\n 'is_visible' => true,\n 'is_active' => true,\n 'code' => 'bli',\n 'name' => 'bli',\n 'display_name' => 'bli'\n ]);\n \n $newCompany->strategicBusinessUnits()->save($newStrategicBusinessUnit);\n }", "protected function main()\n {\n $msg = new Message();\n $dir = new Directory('app/Database/Model');\n $tables = DB::tables();\n $models = [];\n $msg->set(sizeof($dir->fileList()) . ' models has been found.');\n $msg->success('Database migration has started...');\n $n = 0;\n\n foreach($dir->files() as $file)\n {\n $converted = Str::toKebabCase($file->name());\n $models[] = $converted;\n }\n\n // Drop non-existing tables.\n\n foreach($tables as $table)\n {\n if(!in_array($table, $models))\n {\n DB::table($table)->drop();\n $msg->set('{red}' . $table . '{/red} has been dropped.');\n }\n }\n\n // Create new table.\n \n foreach($dir->files() as $model)\n {\n $name = $model->name();\n $model = 'App\\Database\\Model\\\\' . $name;\n $alias = Str::toKebabCase($name);\n\n if(!in_array($alias, $tables))\n {\n $msg->set('{yellow}' . $name . '{/yellow} has started to migrate.');\n $instance = $model::migration();\n\n if($instance->success())\n {\n $n++;\n $msg->set('{yellow}' . $name . '{/yellow} model migration has succeed.');\n }\n else\n {\n $msg->set('{yellow}' . $name . '{/yellow} model migration has failed.');\n }\n }\n else\n {\n $schema = $model::columns()->get();\n $column1 = DB::table($alias)->columns();\n $column2 = Arr::keys($schema);\n $compare1 = Arr::diff($column1, $column2);\n $compare2 = Arr::diff($column2, $column1);\n\n if(!empty($compare1))\n {\n foreach($compare1 as $column)\n {\n $msg->error($column . ' column has been dropped.');\n DB::table($alias)->drop($column);\n }\n }\n else if(!empty($compare2))\n {\n foreach($compare2 as $column)\n {\n $data = $schema[$column];\n \n $msg->success($column . ' column has been added.');\n DB::query('ALTER TABLE ' . $alias . ' ADD ' . $data->generate());\n }\n }\n else\n {\n $msg->set('{yellow}' . $name . '{/yellow} was already migrated.');\n }\n }\n }\n\n if($n != 0)\n {\n $msg->success('Successfully migrated ' . $n . ' models.');\n }\n else\n {\n $msg->error('No model has been migrated.');\n }\n }", "public function run()\n {\n factory(Brackets\\AdminAuth\\Models\\AdminUser::class, 10)->create();\n factory(App\\Models\\Brand::class, 50)->create();\n factory(App\\Models\\Product::class, 100)->create();\n }", "private function packModels()\n {\n /** @var xPDOManager $manager */\n $manager = $this->modx->getManager();\n /** @var xPDOGenerator $generator */\n $generator = $manager->getGenerator();\n\n Utils::removeDirectory(__DIR__ . '/../core/components/videocast/model/videocast/mysql');\n\n $generator->parseSchema(\n __DIR__ . '/../core/components/videocast/model/schema/videocast.mysql.schema.xml',\n __DIR__ . '/../core/components/videocast/model/'\n );\n\n $this->modx->log(modX::LOG_LEVEL_INFO, 'Models generated');\n }", "public function creating($model)\n\t{\n\t}", "public function create_model($name, $controller, $action){\n\t\t$models_dir = Kumbia::$active_models_dir;\n\t\tif(file_exists(\"$models_dir/$name.php\")){\n\t\t\tFlash::error(\"Error: El modelo '$name' ya existe\\n\");\n\t\t} else {\n\t\t\t$model_name = str_replace(\" \", \"\", ucwords(strtolower(str_replace(\"_\", \"\", $name))));\n\t\t\t$file = \"<?php\\n\t\t\t\\n\tclass $model_name extends ActiveRecord {\\n\n\t}\\n\t\\n?>\\n\";\n\t\t\tfile_put_contents(\"$models_dir/$name.php\", $file);\n\t\t\tFlash::success(\"Se cre&oacute; correctamente el modelo '$name' en models/$name.php\\n\");\n\t\t\t$model = $name;\n\t\t\trequire_once \"$models_dir/$model.php\";\n\t\t\t$objModel = str_replace(\"_\", \" \", $model);\n\t\t\t$objModel = ucwords($objModel);\n\t\t\t$objModel = str_replace(\" \", \"\", $objModel);\n\t\t\tif(!class_exists($objModel)){\n\t\t\t\tthrow new BuilderControllerException(\"No se encontr&oacute; la Clase \\\"$objModel\\\" Es necesario definir una clase en el modelo\n\t\t\t\t\t\t\t'$model' llamado '$objModel' para que esto funcione correctamente.\");\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\tKumbia::$models[$objModel] = new $objModel($model, false);\n\t\t\t\tKumbia::$models[$objModel]->source = $model;\n\t\t\t}\n\t\t\t$this->route_to(\"controller: $controller\", \"action: $action\");\n\t\t}\n\t}", "public function run()\n {\n tbl_company::create([\n 'name' => 'company',\n 'email' => '[email protected]',\n 'phone' =>'09-111111111',\n 'address'=>'yangon',\n 'ref_initials'=>'ADM',\n ]);\n }", "public function run()\n {\n factory(Product::class, 10)->create()->each(function($u) {\n $u->skus()->saveMany(factory(Sku::class, 2)->make());\n $u->images()->save(factory(Image::class, 1)->make());\n });\n }", "function createModel($name, array $conf);", "public function run()\n {\n\t $this->call(CategoryTableSeed::class);\n\t $this->call(ProductTableSeed::class);\n\t $this->call(UserTableSeed::class);\n }", "public function sync()\n {\n $sql = null;\n $module = new \\ZPM\\Core\\Setup\\Schema();\n $modData = new \\ZPM\\Core\\Setup\\Info();\n\n $module->install();\n }", "protected function createBaseModel()\n {\n $name = $this->qualifyClass('Model');\n $path = $this->getPath($name);\n\n if (!$this->files->exists($path)) {\n $this->files->put(\n $path,\n $this->files->get(__DIR__.'/../../stubs/model.base.stub')\n );\n }\n }", "public function run()\n {\n PostType::create(['name' => 'Topic']);\n PostType::create(['name' => 'Report']);\n PostType::create(['name' => 'Help']);\n PostType::create(['name' => 'Campaign']);\n }", "public function run()\n {\n factory(Manufacturer::class, DatabaseSeeder::AMOUNT['DEFAULT'])->create();\n }", "public function run()\n {\n factory(Product::class, 15)->create();\n Manufacturer::get()->each(function ($manufacturer) {\n factory(Product::class, 10)->create([\n 'category_id' => 11,\n 'manufacturer_id' => $manufacturer->id\n ]);\n });\n }", "public function run()\n {\n $this->cleanDatabase();\n\n factory(User::class, 50)->create();\n factory(Document::class, 30)->create();\n }", "public function run()\n {\n Model::unguard();\n\n factory(ProductCategory::class, 3)->create();\n factory(SubProduct::class, 3)->create();\n\n }", "public function run()\n {\n foreach ($this->getProducts() as $product) {\n App\\Product::create($product);\n }\n }", "public function create(Model $model)\n\t{\n\t\tif ($this->beta) {\n\t\t\t$this->client->sendBetaRequest('POST', '/' . $this->uri, null, $model->getSchema());\n\t\t} else {\n\t\t\t$this->client->sendRequest('POST', '/' . $this->uri, null, $model->getSchema());\n\t\t}\n\t\treturn true;\n\t}", "public function execute()\n {\n\n try {\n // log a message that provisioning starts\n $this->getApplication()->getInitialContext()->getSystemLogger()->info(\n 'Now start to create database!'\n );\n\n // load the datasource node\n /** @var \\AppserverIo\\Appserver\\Core\\Api\\Node\\DatabaseNode $databaseNode */\n $databaseNode = $this->getDatasourceNode()->getDatabase();\n\n // load the connection data\n $user = $databaseNode->getUser();\n $db = $databaseNode->getDatabaseName();\n $host = $databaseNode->getDatabaseHost();\n $password = $databaseNode->getPassword();\n\n // create the connection\n $dbh = new \\PDO(sprintf('mysql:host=%s', $host), 'root');\n\n // execute the statement\n $dbh->exec(\"CREATE DATABASE `$db`;\n CREATE USER '$user'@'localhost' IDENTIFIED BY '$password';\n GRANT ALL ON `$db`.* TO '$user'@'localhost';\n FLUSH PRIVILEGES;\");\n\n // log a message that provisioning has been successfull\n $this->getApplication()->getInitialContext()->getSystemLogger()->info(\n 'Successfully created database!'\n );\n\n } catch (\\Exception $e) {\n $this->getApplication()->getInitialContext()->getSystemLogger()->error($e->__toString());\n }\n }", "public function run()\n {\n \tDB::table('customers')->delete();\n\n factory(App\\Models\\Customer::class, 50)->create()->each(function($u) {\n $u->projects()->saveMany(factory(App\\Models\\Project::class, 3)->make());\n });\n }", "public function run()\n {\n $this->save('Lino', 'Banfi', 1936);\n $this->save('Alberto', 'Sordi', 1920);\n $this->save('Diego', 'Abatantuono', 1955);\n factory(Actor::class, 100)->create();\n }", "public function run()\n {\n factory(App\\Toothpaste::class, 10)->create()->each(function ($toothpaste) {\n\n $toothpaste->products()->save(\n factory(App\\Product::class)->make([\n 'productable_id' => $toothpaste->id,\n 'productable_type' => App\\Toothpaste::class,\n 'category_id' => 2\n ])\n );\n });\n }", "public function run()\n {\n // model factories: generación de datos de pruebas\n \t//factory(Product::class)->make(); // crea objetos\n\n \tfactory(Product::class, 100)->create();//crea objetos y los guarda en bbdd\n }", "public function run()\n {\n \\App\\Models\\Category::factory(10)->create();\n \\App\\Models\\Country::factory(10)->create();\n \\App\\Models\\User::factory(10)->create();\n \\App\\Models\\Opportunity::factory(10)->create();\n \\App\\Models\\OpportunityDetail::factory(10)->create();\n \n \\App\\Models\\Question::factory(10)->create();\n \\App\\Models\\Comment::factory(10)->create();\n \n }", "public function up()\n {\n $this->createTable('salmon_main_weapon2', [\n 'id' => $this->primaryKey(),\n 'key' => $this->apiKey(),\n 'name' => $this->string(32)->notNull(),\n 'splatnet' => $this->integer()->null(),\n 'weapon_id' => $this->pkRef('weapon2')->null(),\n ]);\n\n $this->db->transaction(function (): void {\n // copy weapons from {{weapon2}} table\n $this->execute(\n 'INSERT INTO {{salmon_main_weapon2}}([[key]], [[name]], [[splatnet]], [[weapon_id]]) ' .\n 'SELECT [[key]], [[name]], [[splatnet]], [[id]] ' .\n 'FROM {{weapon2}} ' .\n 'WHERE {{weapon2}}.[[id]] = {{weapon2}}.[[main_group_id]] ' .\n 'ORDER BY {{weapon2}}.[[splatnet]] ASC',\n );\n\n $this->batchInsert('salmon_main_weapon2', ['key', 'name'], [\n ['kuma_blaster', 'Grizzco Blaster'],\n ['kuma_brella', 'Grizzco Brella'],\n ['kuma_charger', 'Grizzco Charger'],\n ['kuma_slosher', 'Grizzco Slosher'],\n ]);\n });\n }", "public function run()\n {\n $this->disableForeignKeys();\n\n // Add the master administrator, user id of 1\n category::create([\n 'name' => 'Physics',\n ]);\n\n category::create([\n 'name' => 'Chemistry',\n ]);\n\n $this->enableForeignKeys();\n }", "public function run()\n {\n $data = [\n [\n 'description' => 'Pop',\n 'value' => 5.00,\n 'merchant' => 1\n ],\n [\n 'description' => 'Burguer',\n 'value' => 25.00,\n 'merchant' => 2\n ]\n ];\n\n $this->table('products')\n ->insert($data)\n ->save();\n }", "private function createSchema()\n {\n $tool = new SchemaTool($this->container->get('models'));\n $classes = [\n $this->container->get('models')->getClassMetadata(Store::class),\n ];\n $tool->updateSchema($classes, true);\n }", "public function run()\n {\n HouseTypeModel::create(['name' => 'Villa']);\n HouseTypeModel::create(['name' => 'Flat']);\n HouseTypeModel::create(['name' => 'Twin House']);\n \n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n Supplier::factory(100)->create();\n ProductType::create(['name' => 'default']);\n Product::factory(100)->create();\n Order::factory(200)->create();\n Purchase::factory(200)->create();\n ItemListing::factory(500)->create();\n }", "private function dropAndCreateTables(){\n \n $migration = new MikeMigration($this::genPrefix(10));\n $save = 0;\n\n // Prepare Dropped Tables\n if($this->droppedTables){\n $save++;\n foreach($this->droppedTables as $item){\n\n $migration->up(\"\\t\\t\" . 'Schema::dropIfExists(\"'.$this->appPrefix.'_'.$item[\"name\"].'\"); ');\n\n $migration->down($this::prepareTableBlueprint($item));\n\n \n // Delete Model\n Storage::disk('models')->delete($this->appNamePath.'/'.$item[\"name\"].'.php');\n // Delete Controller\n Storage::disk('controllers')->delete($this->appNamePath.'/'.$item[\"name\"].'Controller.php');\n // Delete Routes\n //...\n\n }\n }\n // Prepare New Tables \n if($this->newTables){\n $save++;\n foreach($this->newTables as $item){\n\n\n $migration->up($this::prepareTableBlueprint($item));\n\n $migration->down(\"\\t\\t\" . 'Schema::dropIfExists(\"'.$this->appPrefix.'_'.$item[\"name\"].'\"); ');\n\n }\n }\n // If Exist Dropped pr New Tables \n if($save > 0){\n $migration->save();\n }\n \n\n\n }", "public function run()\n {\n entity(User::class)->create();\n entity(User::class)->create();\n entity(User::class)->create();\n entity(Task::class)->create(['name' => 'Task 1']);\n entity(Task::class)->create(['name' => 'Task 2']);\n entity(Task::class)->create(['name' => 'Task 3']);\n }", "public function run()\n {\n factory(App\\Post::class,20)->create()->each(function ($u) {\n $u->Applicant_skill()->associate(factory(App\\Applicant_skill::class)->make());\n });\n }", "public function run()\n {\n factory( Product::class, 15)->create();\n $this->call(ConditionSeeder::class);\n $this->call(PivotSeeder::class);\n }", "public function run()\n {\n Brand::factory()->count(10)->has(Product::factory()->count(2))->create();\n //1 ta brands ar jonno 2 ta product insert hobe\n //brand seeder run korle brand,product,category te data insert hobe\n }", "public function run()\n {\n App\\Tag::create(factory(App\\Tag::class)->make()->toArray())->save();\n App\\Tag::create(factory(App\\Tag::class)->make()->toArray())->save();\n App\\Tag::create(factory(App\\Tag::class)->make()->toArray())->save();\n App\\Tag::create(factory(App\\Tag::class)->make()->toArray())->save();\n App\\Tag::create(factory(App\\Tag::class)->make()->toArray())->save();\n App\\Tag::create(factory(App\\Tag::class)->make()->toArray())->save();\n }", "public function run()\n {\n DB::connection('tenant')->beginTransaction();\n\n factory(\\App\\Model\\Master\\Customer::class, 10)->create();\n factory(\\App\\Model\\Master\\Supplier::class, 10)->create();\n factory(\\App\\Model\\Master\\Warehouse::class, 2)->create();\n\n $this->importChartOfAccount();\n $this->seedItems();\n\n DB::connection('tenant')->commit();\n }", "public function run()\n {\n factory(App\\Category::class, 10)->create()->each(function ($u) {\n $u->products()->saveMany(factory(App\\Product::class, 3)->make());\n });\n }", "public function run()\n {\n factory(App\\Tag::class, 20)->create()->each(function ($el){\n $el->save();\n });\n }", "public function run()\n {\n $this->disableForeignKeys();\n\n // Categories\n $categories = [\n 'SEDAN',\n 'SUV',\n 'MPV',\n 'VAN',\n 'TRUCK',\n 'HATCHBACK',\n 'CROSSOVER',\n 'COUPE',\n 'CONVERTIBLE'\n ];\n\n foreach ($categories as $category) {\n VehicleCategory::create([\n 'title' => $category,\n 'description' => strtolower($category),\n ]);\n }\n\n $this->enableForeignKeys();\n }", "public function run()\n {\n $product = new \\App\\Product;\n $product->product_name = \"Spion\";\n $product->stock = 10;\n $product->status = \"Active\";\n $product->price_buy = 100000;\n $product->price_sell = 120000;\n $product->save();\n\n $product = new \\App\\Product;\n $product->product_name = \"Ban\";\n $product->stock = 10;\n $product->status = \"Active\";\n $product->price_buy = 200000;\n $product->price_sell = 250000;\n $product->save();\n\n $this->command->info(\"Product berhasil diinsert\");\n }", "private function model()\n {\n $location = $this->args[\"location\"] . DIRECTORY_SEPARATOR . 'models' . DIRECTORY_SEPARATOR;\n $relative_location = $this->args['application_folder'] . DIRECTORY_SEPARATOR . 'models' . DIRECTORY_SEPARATOR;\n $class_name = '';\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 $tmp = explode(DIRECTORY_SEPARATOR, $this->args['subdirectories']);\n $tmp = join('_', $tmp);\n $class_name .= ApplicationHelpers::camelize($tmp);\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 $class_name .= ucfirst(strtolower($this->args['name']));\n\n $args = array(\n \"class_name\" => ucfirst(strtolower($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_model'],\n \"extra\" => $this->extra,\n 'relative_location' => $relative_location,\n );\n\n $template = new TemplateScanner(\"model\", $args);\n $model = $template->parse();\n\n $message = \"\\t\";\n if (file_exists($filename))\n {\n $message .= 'Model 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, $model))\n {\n $message .= 'Created model: ';\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 model: ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'red');\n }\n $message .= $relative_location;\n }\n\n fwrite(STDOUT, $message . PHP_EOL);\n\n // Create the migration for the new model\n $this->migration();\n\n return;\n }", "public function testAction()\n {\n echo shell_exec(\"mysql -u root -e 'CREATE DATABASE IF NOT EXISTS \" . $this->config->database->dbname . \";'\");\n // Run migrations if necessary\n echo shell_exec('php vendor/bin/phinx migrate -e test -c config/phinx.php') . \"\\n\";\n }", "public function run()\n {\n \\App\\Models\\Info_Software::create(['nombre_software' => 'Sistema de auditoria academica',\n 'version_software'=>'version 1.0']);\n }", "public function run()\n {\n factory(\\App\\models\\ProductCategory::class, 6)->create()->each(function($category) {\n $category->products()->saveMany(factory(App\\models\\Product::class, 4)->make());\n });\n }", "public function run()\n {\n \\App\\Models\\Location::factory(5)->create();\n \\App\\Models\\University::factory(5)->create();\n \\App\\Models\\Major::factory(10)->create();\n \\App\\Models\\Alternative::factory(10)->create(); \n }", "public function run()\n {\n DB::table('AuditModels')->insert([\n 'codice' => \"001\",\n 'descrizione' => \"Audit Fornitore\",\n 'versione' => \"Rev. 03 del 06-04-2012\",\n ]);\n\n DB::table('AuditModels')->insert([\n 'codice' => \"002\",\n 'descrizione' => \"Audit Preliminare\",\n 'versione' => \"1.5.3\",\n ]);\n }", "public function run()\n {\n //\n $package = new Package([\n 'name' => 'culture & heritage'\n ]);\n $package->save();\n\n $package = new Package([\n 'name' => 'beaches'\n ]);\n $package->save();\n\n $package = new Package([\n 'name' => 'nature & wild life'\n ]);\n $package->save();\n\n $package = new Package([\n 'name' => 'tea trails & scenic beauty'\n ]);\n $package->save();\n\n $package = new Package([\n 'name' => 'ayurvedha & reflexology'\n ]);\n $package->save();\n\n $package = new Package([\n 'name' => 'adventure & sports'\n ]);\n $package->save();\n\n\n }", "public function actionCreate() { \n $storage = $this->getProcessModel();\n $deps = $storage->getFormData();\n $models = $storage->getModels();\n if (Yii::$app->request->post()) {\n foreach ($models as $key => $model) {\n try {\n $model->load(Yii::$app->request->post());\n } catch (\\Exception $e) {\n Yii::$app->getSession()->setFlash('error', $model->getErrors());\n break;\n }\n }\n \n if (Model::validateMultiple($models)) {\n $transaction = Yii::$app->db->beginTransaction();\n try {\n $id = $storage->saveData($models);\n $transaction->commit();\n $class = new \\ReflectionClass(get_called_class());\n } catch (\\Exception $e) {\n $transaction->rollBack();\n throw $e;\n }\n return $this->redirect(['view', 'id' => $id]);\n }\n else\n {\n foreach ($models as $key => $model) {\n if(!empty($model->getErrors())){\n p($model->getErrors());\n }\n }\n }\n }\n return $this->render('create', array_merge($models, $deps));\n }", "public function run(){\n //\n DB::table('products')->insert([\n \t'name' => 'Harina Pan',\n 'price' => '4000',\n 'weight' => '4',\n 'type' => 'physical',\n\n ]);\n Products::factory()->count(3)->create();\n \n\n }", "public function run()\n {\n // Entities\n\n Entity::create([\n 'name' => 'BlueDog',\n 'table' => 'blue_dogs',\n 'created_at' => '2022-02-22 22:22:22',\n ]);\n\n Entity::create([\n 'name' => 'RedCat',\n 'table' => 'redCats',\n 'created_at' => '2022-02-22 22:22:22',\n ]);\n }", "public function run()\n {\n \t$user = User::find(1);\n \t$customer_type = CustomerType::find(1);\n \tfactory(App\\Customer::class)->create(['user_id' => $user->id, 'last_updated_user_id' => $user->id,\n \t\t\t'customer_type_id' => $customer_type->id\n \t]);\n }", "public function run()\n {\n Schema::disableForeignKeyConstraints();\n Brand::truncate();\n Schema::enableForeignKeyConstraints();\n Brand::insert([\n 'name' => 'Hatchbox',\n 'slug' => 'HATCH'\n ]);\n Brand::insert([\n 'name' => 'MonoPrice',\n 'slug' => 'MP'\n ]);\n Brand::insert([\n 'name' => 'Ziro',\n 'slug' => 'ZIRO'\n ]); \n }", "public function run()\n {\n factory(\\Modules\\Posts\\Entities\\Post::class, 100)->create();\n }", "function create($model)\n {\n }", "public function insertTable($model)\n {\n\t$modelName= is_object($model) ? $model->getTableName() : $model;\n\t$sql=array();\n\t$sql[] = $this->sql('insert into [tables] values (null, %s, %s);', $model->getTableName(), $model->getHash() );\n\tforeach($model->getFields() as $field )\n\t{\n\t $sql[] = $this->sql('insert into [fields] values (null, %s, %s, %s, %s);',\n\t strtolower($field->getName()),\n\t $model->getTableName(),\n\t $field->getHash(),\n\t get_class($field));\n\t}\n\t$this->queue(\n\t PerfORMStorage::TABLE_ADD,\n\t $modelName,\n\t $sql,\n\t array(\n\t\t'model' => $model)\n\t );\n\n\t$key= $model->getHash();\n\tif ( key_exists($key, $this->renamedTables))\n\t{\n\t $array= $this->renamedTables[$key];\n\t $array->counter++;\n\t $array->to= $modelName;\n\t}\n\telse\n\t{\n\t $this->renamedTables[$key]= (object) array(\n\t 'counter' => 1,\n\t 'to' => $modelName,\n\t );\n\t}\n }", "public function run()\n {\n DB::table('delivery')->delete();\n Delivery::create(array(\n 'company_id' => 1,\n 'name' => 'Adicionados manualmente',\n 'num_services' => 0\n ));\n }", "public function run()\n {\n // model factories\n factory(Category::class, 4)->create();\n factory(Product::class, 100)->create();\n factory(ProductImage::class, 400)->create();\n }", "public function migrate()\n {\n $this->syncRepository();\n $this->copyVariables();\n $this->copyDeployKeys();\n $this->reEnableBuilds();\n }", "public function run()\n {\n factory(Elbow\\Medium::class, 10)->create(['manufacturer_id' => $this->manufacturerId()]);\n }", "public function run()\n {\n factory(\\Modules\\Shop\\Models\\Shop::class, 30)->create();\n /*DB::table('shops')->truncate();\n $shop = [\n [\n 'name' => 'TAOBAO',\n 'link' => 'http://google.com',\n ],\n [\n 'name' => '1088',\n 'link' => 'http://google.com',\n ],\n ];\n\n DB::table('shops')->insert($shop);\n */\n }", "function migrate(){\n\n create_table();\n save_migration_tables();\n\n}", "public function run()\n {\n Model::unguard();\n\n /*factory(YCZ\\User::class, 50)->create()->each(function($u) {\n $u->posts()->save(factory(YCZ\\User::class)->make());\n });\n\n factory(YCZ\\Type::class, 50)->create()->each(function($u) {\n $u->posts()->save(factory(YCZ\\Type::class)->make());\n });*/\n\n /*factory(YCZ\\Operation::class, 50)->create()->each(function($u) {\n $u->posts()->save(factory(YCZ\\Operation::class)->make());\n });*/\n\n factory(YCZ\\Property::class, 50)->create()->each(function($u) {\n $u->posts()->save(factory(YCZ\\Property::class)->make());\n });\n // $this->call(UserTableSeeder::class);\n\n Model::reguard();\n }", "public function run()\n {\n $this->call([\n CountryTableSeeder::class,\n ProvinceTableSeeder::class,\n TagTableSeeder::class\n ]);\n\n User::factory()->count(10)->create();\n Category::factory()->count(5)->create();\n Product::factory()->count(20)->create();\n Section::factory()->count(5)->create();\n Bundle::factory()->count(20)->create();\n\n $bundles = Bundle::all();\n // populate bundle-product table (morph many-to-many)\n Product::all()->each(function ($product) use ($bundles) {\n $product->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray(),\n ['default_quantity' => rand(1, 10)]\n );\n });\n // populate bundle-tags table (morph many-to-many)\n Tag::all()->each(function ($tag) use ($bundles) {\n $tag->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray()\n );\n });\n }", "public function createModel()\n {\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n DB::table('branches')->truncate();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n // create user\n \\App\\Model\\Branch::create([\n 'location' => 'Chaya Center',\n 'phone_number' => '123456789',\n 'open_time' => '9 AM',\n 'close_time' => '8 PM'\n ]);\n }", "public function run()\n {\n $category = new \\App\\SysProductCategory([\n 'name' => 'Clothing',\n 'description' => 'T-Shirts, Sweaters, Baseball Caps etc.'\n ]);\n $category->save();\n\n $category = new \\App\\SysProductCategory([\n 'name' => 'Sticker & Patches',\n 'description' => ''\n ]);\n $category->save();\n\n $category = new \\App\\SysProductCategory([\n 'name' => 'Media',\n 'description' => 'CDs, digital downloads etc.'\n ]);\n $category->save();\n }", "public function run()\n {\n DB::statement(\"SET foreign_key_checks=0\");\n Product::truncate();\n\n $dir = storage_path('app/public/product_images');\n $leave_files = ['default.jpg'];\n foreach( glob(\"$dir/*\") as $file ) {\n if( !in_array(basename($file), $leave_files) )\n unlink($file);\n }\n\n DB::statement(\"SET foreign_key_checks=1\");\n factory(Product::class, 20)->create();\n }" ]
[ "0.63962144", "0.61090654", "0.5910637", "0.5844688", "0.5838799", "0.5819756", "0.5747207", "0.5732298", "0.567137", "0.56622267", "0.566218", "0.5627514", "0.5576937", "0.5574871", "0.55736446", "0.55699295", "0.55678767", "0.5538005", "0.55229115", "0.55125004", "0.5493417", "0.5487038", "0.54742825", "0.54515636", "0.54462755", "0.5442029", "0.5432986", "0.54311883", "0.5424454", "0.5417219", "0.54154116", "0.53989077", "0.5387971", "0.53666836", "0.5365584", "0.5344523", "0.5344451", "0.5337044", "0.5313336", "0.53131306", "0.53056943", "0.53033984", "0.5297153", "0.5295474", "0.5292076", "0.5289546", "0.528548", "0.52693886", "0.52668697", "0.52662736", "0.52645147", "0.5258983", "0.525848", "0.5248342", "0.5246638", "0.5244102", "0.524204", "0.5237741", "0.52369267", "0.5233671", "0.5230029", "0.5229798", "0.5229139", "0.5223726", "0.52186346", "0.5216496", "0.52157265", "0.521039", "0.5209921", "0.52082694", "0.5194497", "0.51939684", "0.5191396", "0.5188638", "0.51853454", "0.51823235", "0.5177733", "0.51756024", "0.51742125", "0.51728904", "0.5168791", "0.5162209", "0.51617885", "0.5161782", "0.515738", "0.5149488", "0.5146433", "0.51446843", "0.51410913", "0.5139308", "0.51386255", "0.51344556", "0.5134406", "0.51330227", "0.5129594", "0.5125444", "0.512452", "0.5122758", "0.5118698", "0.5117075" ]
0.65553904
0
Destroys the specified model (destroy table)
public function destroy(IModel $target);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete(Model $model);", "public function delete(Model $model);", "public function destroy(Model $model)\n {\n return $model->delete();\n }", "public function delete(Model $model): void\n {\n $model->delete();\n }", "public abstract function deleteModel(\\MPF\\Db\\Model $model);", "public function delete(Model $model)\n {\n $model->delete();\n }", "public function destroy(User $model);", "public function deleted(Model $model)\n {\n Schema::dropIfExists($model->getBuilderTable());\n }", "public function deleteModel(Model &$model)\n {\n }", "public function delete(Model $model)\n {\n }", "public function delete($model);", "public function delete(Model $model)\n {\n // TODO: Implement delete() method.\n }", "public function destroy() {\n\t\t$sql = 'DELETE FROM ' . static::$table . ' WHERE id = ' . $this->get('id') . ';';\n\t\t$query = DBH()->prepare($sql);\n\t\t$query->execute();\n\t}", "public function deleting($model)\n\t{\n\t}", "public function uninstall() {\r\n\tforeach ($this->getModel() AS $model) {\r\n\t $this->getEntity($model->getName())->deleteTable();\r\n\t}\r\n }", "protected function performDestroy(Model $entity): void\n {\n $entity->delete();\n }", "public function destroy()\n {\n return $this->model->delete();\n }", "public function destroy()\n {\n $db = XenForo_Application::get('db');\n $db->query('DROP TABLE `' . self::DB_TABLE . '`');\n }", "public function destroy(Request $request, object $model): bool;", "public function delete(Model $model)\n {\n return $model->delete();\n }", "public function deletedModel(Model &$model)\n {\n }", "public function crudDestroy(Model $model)\n {\n $this->authorize('delete', $model);\n\n $model->delete();\n\n $subroute = 'index';\n if (auth()->user()->defaultNested and \\Illuminate\\Support\\Facades\\Route::has($this->route . '.tree')) {\n $subroute = 'tree';\n }\n\n return redirect()->route($this->route . '.' . $subroute)\n ->with('success', trans($this->view . '.destroy.success', ['name' => $model->name]));\n }", "public function destroy(FormModel $formModel)\n {\n //\n }", "public function delete(Identifiable $model);", "public function deleteModel($entity){\n $this->entityManager->remove($entity);\n $this->entityManager->flush();\n }", "public function __destruct()\n {\n\tunset($this->model);\n }", "protected function destroyModel($query, $model)\n {\n $data = $model->dataset();\n\n if (!$data->isPersisted()) {\n throw new UndestroyableModelException($model);\n }\n\n $id = $model->id();\n\n if (!$id || $query->delete($id) !== 1) {\n throw new UndestroyableModelException($model);\n }\n\n $data->markDestroyed();\n }", "public function destroy($id)\n {\n $model = KatApp::findOrFail($id);\n $model->delete();\n }", "public function destroy(ChatModel $chatModel)\n {\n //\n }", "protected function performDeleteOnModel()\n {\n $this->getApi()->{'delete'.ucfirst($this->getEntity())}(\n $this->{$this->primaryKey},\n array_merge(...array_values($this->getGlobalScopes()))\n );\n\n $this->exists = false;\n }", "public function cleanup(Model $model) {\n parent::cleanup($model);\n }", "public function destroy(BrandModel $brandModel)\n {\n //\n }", "public function destroy(TonelajesModel $tonelajesModel)\n\n {\n //\n }", "function destroy(){\n\t\tif(!$this->id)\n\t\t\tthrow new APortalException(\"Can't destroy object does not exist in database\",$this);\n\n\t\t$this->hook('destroy'); // can be used for access control or cache deletion\n\n\t\t// STEP1 - destroy relations\n\t\t$this->api->deleteRel($this,null);\n\t\t$this->api->deleteRel(null,$this);\n\n\t\t// STEP2 - destroy supplimentary table entry\n\t\t$this->api->db->dsql()\n\t\t\t->table($this->table_name)\n\t\t\t->where('id',$this->id)\n\t\t\t->do_delete();\n\n\t\t// STEP3 - delete obj table entry\n\t\t$this->api->db->dsql()\n\t\t\t->table('obj')\n\t\t\t->where('id',$this->id)\n\t\t\t->do_delete();\n\t}", "public function destroy(ProductModel $productModel)\n {\n //\n }", "public function destroy(BranchModel $branchModel)\n {\n //\n }", "public function deleteByModel(Model $model): bool;", "public function destroy(BlogModel $blogModel)\n {\n //\n }", "public function deleted(Request $model)\n {\n $models = [\n 'engagement',\n 'address',\n ];\n\n foreach($models as $relation){\n $model->$relation()->delete();\n }\n }", "public function delete(Model $instance)\n {\n // TODO: Implement delete() method.\n }", "public function removeByModel(Model $model)\n {\n return $model->delete();\n }", "public function destroyAction() {\n $model = new Application_Model_Compromisso();\n //mando para a model o id de quem sera excluido\n $model->delete($this->_getParam('id'));\n //redireciono\n $this->_redirect('compromisso/index');\n }", "public function destroy($parent = null, $model = null)\n {\n if ($this->repository->delete($model)) {\n return back();\n }\n }", "public function destroy(Acaramodel $acaramodel)\n {\n //\n }", "public function destroy(int $id) : void\n {\n $this->model->destroy($id);\n }", "public function remove(Builder $query, Model $model) {}", "public function destroy(Modelo $modelo)\n {\n //\n }", "public function destroy() {\n $this->connection->schema()->dropTable($this->mapTable);\n $this->connection->schema()->dropTable($this->messageTable);\n }", "public function delete(Model $parent);", "public function delete()\n {\n Db::getInstance()->delete($this->getTableName(), ['id' => $this->getId()]);\n }", "public function afterDelete(\\Model $model) {\n $this->__clearCacheModel($model);\n\n parent::afterDelete($model);\n }", "protected function performDeleteOnModel()\n {\n $this->newQuery()->delete($this->fileName);\n }", "public function delete($model)\n {\n $this->search->delete($model);\n }", "public function destroy()\n\t{\n\t\treturn $this->_adapter->dropTable($this->_identifier);\n\t}", "public function destroy() {\n\t\t$this->removeInstance();\n\t\t$this->tearDownTestDatabase();\n\t}", "public function afterDelete($model) \r\n {\r\n $this->updateCounters($model);\r\n $this->foreignTableIDs = array();\r\n }", "public function deleting(MActivityRule $model)\n\t{\n\t}", "public function destroy($model)\n {\n if ($this->repository->delete($model)) {\n if (! Request::ajax()) {\n return Redirect::back();\n }\n }\n }", "public function custdestroy(Request $request, Policy_rules $model)\n {\n\n $model->where('rule_id', '=', $request->get('rule_id'))\n ->where('policy_id', '=', $request->get('policy_id'))->delete();\n return ['status' => 0];\n }", "public function dropTable($model)\n {\n\t$modelName= is_object($model) ? $model->getTableName() : $model;\n\t$hash= $this->fetchSingle('select hash from [tables] where [name] = %s ',\n\t $modelName);\n\t$sql= array();\n\t$sql[] = $this->sql('delete from [tables] where [name] = %s;', $modelName );\n\t$sql[] = $this->sql('delete from [fields] where [table] = %s;', $modelName );\n\t$sql[] = $this->sql('delete from [indexes] where [table] = %s;', $modelName );\n\n\t$this->queue(\n\t PerfORMStorage::TABLE_DROP,\n\t $modelName,\n\t $sql,\n\t array(\n\t\t'model' => $model)\n\t );\n\n\n\t$key= $hash;\n\tif ( key_exists($key, $this->renamedTables))\n\t{\n\t $array= $this->renamedTables[$key];\n\t $array->counter++;\n\t $array->from= $modelName;\n\t}\n\telse\n\t{\n\t $this->renamedTables[$key]= (object) array(\n\t 'counter' => 1,\n\t 'from' => $modelName,\n\t );\n\t}\n }", "public function deleted($model)\n {\n if (static::syncingDisabledFor($model)) {\n return;\n }\n $model->unsearchable();\n }", "public function delete()\n {\n Contest::destroy($this->modelId);\n $this->modalConfirmDeleteVisible = false;\n $this->resetPage();\n }", "public function delete($model)\n {\n $this->loadModel($model);\n\n return $this->activeModelInstance\n ? $this->activeModelInstance->delete()\n : null;\n }", "public function destroy(Request $request, string $model, string $id): Response\n {\n //\n }", "protected function performDeleteOnModel()\n {\n $this->performCascadeDelete();\n parent::performDeleteOnModel();\n }", "public function destroy(cr $cr)\n {\n //\n }", "public function destroy(cr $cr)\n {\n //\n }", "public function destroy(cr $cr)\n {\n //\n }", "public function destroy(cr $cr)\n {\n //\n }", "public function destroy(cr $cr)\n {\n //\n }", "public function deleteFromTable(ActiveRecordModel $instance): void\n {\n // Récupère le nom de table du modèle\n $className = get_class($instance);\n $tableName = $className::getTableName();\n\n // Envoie une requête de suppression en base de données\n $statement = $this->databaseHandler->prepare('DELETE FROM `'. $tableName . '` WHERE `id` = :id');\n $statement->execute([ ':id' => $instance->getId() ]);\n }", "public function delete( One_Model $model )\n\t{\n\t\treturn null;\n\t}", "public function deleteProcuct($productModel) {\n\n }", "public function destroy(_modelName_ $_modelEntry_)\n {\n $_modelEntry_->delete();\n return [\n \"status\" => 1,\n \"data\" => $_modelEntry_->makeHidden($this->hidden),\n \"msg\" => \"_modelName_ deleted successfully\"\n ];\n }", "public function removeAction() {\n\t\t$unitModelId = $this->getRequest()->getParam('unitModelId');\n\n\t\t$model = new Unit_Model_UnitModel();\n\t\t$result = $model->delete( $unitModelId );\t\t\t\t\n\n $this->setFlashMessage('recordDeleted'); \n $this->_helper->redirector('viewallunitmodels', 'unitmodel', 'unit');\t\t\n\t}", "public function remove()\n {\n database()->run('DELETE FROM ' . $this->table . ' WHERE ' . $this->primaryKey . ' = ?', [ $this->{$this->primaryKey} ]);\n $this->__destruct();\n }", "function delete() {\n $this->db->delete(self::table_name, array('id' => $this->id));\n // need to delete from tag maps too\n // tbd\n }", "public static function uninstallModel() {\r\n return GearSection::dropTables() && GearOption::dropTables();\r\n }", "function _destroy($id) {\n return ee()->db->delete($this->table_name, \n array('id' => $id));\n }", "public function testDestroy()\n {\n if ($this->skipBaseTests) $this->markTestSkipped('Skipping Base Tests');\n\n $item = $this->model->factory()->create();\n\n // Removes the dates for comparison\n $itemArray = $item->toArray();\n unset($itemArray['created_at']);\n unset($itemArray['updated_at']);\n\n // Check that the model is in the database\n $this->assertDatabaseHas($this->table, $itemArray);\n\n $response = $this->delete(\"{$this->baseUrl}/{$item->getKey()}\", [], ['FORCE_CONTENT_TYPE'=>'json'])\n ->assertStatus(200);\n\n // The model should not exist in the database now\n $this->assertDatabaseMissing($this->table, $itemArray);\n\n }", "public function destroy(PersonModel $person, Site $site)\n {\n $person->removeSite($site);\n }", "public function destroy(Request $request)\n {\n \n // delete\n \n// the delete query is part of the query to get or find the model\n //if u use get it seems the query will return a Collection of objects not models and thus u cant do a delet on them\n \n $account = AccountModel::where('ACCOUNT_ID',$request->input(\"id\"))->delete();\n //deletion of a model seems to return true or 1 if successful so a check is done below\n if(empty($account)){\n \\Session::flash('flash_message', 'Account not found!');\n\n return \\redirect(\"view_accounts\");\n }\n \n// $account->delete();\n \n \n \\Session::flash('flash_message', 'Account successfully deleted!');\n\n return \\redirect(\"view_accounts\");\n }", "public function deleted(MActivityRule $model)\n\t{\n\t}", "public function destroy();", "public function destroy();", "public function destroy();", "public function destroy();", "public function destroy();", "public function destroy();", "public function destroy();", "public function clearModels();", "public function destroy() {}", "public function destroy() {}", "public function destroy() {}", "public function destroy() {}", "public function destroy() {}", "public function destroy() {}", "public function destroy(string $id)\n {\n //\n $model = $this->model->findOrFail($id);\n return $model->delete();\n }", "public function delete() {\n global $DB;\n $DB->delete_records($this->get_table_name(), array('id' => $this->id));\n }", "public function destroy() {\n }" ]
[ "0.7536335", "0.7536335", "0.7527087", "0.7518178", "0.7451491", "0.7434802", "0.73631895", "0.7336215", "0.7266159", "0.7240518", "0.7206452", "0.71506834", "0.7147833", "0.70841825", "0.7007743", "0.6984051", "0.6968334", "0.6935222", "0.69305015", "0.68517077", "0.68297917", "0.68235755", "0.6818333", "0.6788931", "0.67653626", "0.6745269", "0.6714086", "0.671335", "0.6712867", "0.66702384", "0.6646783", "0.66465837", "0.6634262", "0.66251355", "0.6607966", "0.6594879", "0.65909564", "0.6588011", "0.6587036", "0.65738434", "0.65357363", "0.6534528", "0.64907426", "0.64553887", "0.6447597", "0.64451593", "0.6442015", "0.6429175", "0.640362", "0.63999", "0.63759476", "0.63710815", "0.63692445", "0.6366992", "0.63404316", "0.6336381", "0.63349783", "0.632719", "0.6311437", "0.6304305", "0.63036305", "0.6273621", "0.6258269", "0.62382156", "0.621697", "0.6214492", "0.6214492", "0.6214492", "0.6214492", "0.6214492", "0.62045354", "0.61961496", "0.61938167", "0.61907065", "0.6175998", "0.61755574", "0.6168949", "0.61680984", "0.61622185", "0.61574084", "0.61487114", "0.61464643", "0.6107498", "0.609124", "0.609124", "0.609124", "0.609124", "0.609124", "0.609124", "0.609124", "0.6087384", "0.6085877", "0.6085877", "0.6085877", "0.6085877", "0.6085877", "0.6084657", "0.6083568", "0.6082369", "0.60820484" ]
0.74198854
6
Check if the reader has results
public function hasResults();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasResults() {\n\t\treturn $this->count() >= 1;\n\t}", "public function has_result()\n\t{\n\t\treturn !empty($this->result);\n\t}", "public function isHasResults();", "function has_results() {\n\t\treturn ($this->QueryID && $this->record_count() !== 0);\n\t}", "public function hasResult()\n\t{\n\t\treturn isset($this->result);\n\t}", "public function hasResult(): bool\n {\n return ! is_null($this->result);\n }", "public function hasResults() {\n return 0 < count($this->getResults());\n }", "public function hasResult();", "public function hasResult();", "public function hasResult();", "final public function hasResults()\n {\n return boolval($this->results);\n }", "public function hasRows()\n\t{\n\t\treturn count($this->getRows()) > 0;\n\t}", "public function checkResult() {\n\t\treturn ($this->_query_result !== false);\n\t}", "public function hasResults()\n {\n return $this->matches && $this->matches->exists();\n }", "public function has_results()\n\t{\n\t\treturn (bool) $this->total_results();\n\t}", "public function hasResult()\n {\n return Claroline::getDatabase()->query( \"\n SELECT\n user_id\n FROM\n `{$this->tbl['examination_score']}`\n WHERE\n user_id = \" . Claroline::getDatabase()->escape( $this->userId )\n )->numRows();\n }", "public function has_results()\r\n {\r\n \t$tbl_stats = Database::get_statistic_table(TABLE_STATISTIC_TRACK_E_EXERCICES);\r\n\t\t$sql = 'SELECT count(exe_id) AS number FROM '.$tbl_stats\r\n\t\t\t\t.\" WHERE exe_cours_id = '\".$this->get_course_code().\"'\"\r\n\t\t\t\t.' AND exe_exo_id = '.$this->get_ref_id();\r\n \t$result = api_sql_query($sql, __FILE__, __LINE__);\r\n\t\t$number=mysql_fetch_row($result);\r\n\t\treturn ($number[0] != 0);\r\n }", "public function hasResult(){\n return $this->_has(2);\n }", "public function hasResults($r)\r\n {\r\n return ($this->numResults($r) > 0 ? true : false);\r\n }", "public function hasRowContents(){\n return $this->_has(1);\n }", "protected function all() {\n if (!$this->query_failed) {\n return $this->results;\n }\n\n return false;\n }", "public function checkIfAnalyzerResultDataExist($result): bool;", "public function valid()\n {\n return count($this->result_queue) !== 0;\n }", "public function rewind()\n {\n try \n {\n mysql_data_seek($this->result, 0);\n return true;\n }\n catch(Exception $e)\n {\n // Unseekable row.\n return false;\n }\n \n return false;\n }", "protected function checkResultSet() {\n\t\tif (is_null($this->indexMax)) {\n\t\t\tthrow new Exception('Query does not produce a result set - can not perform operation');\n\t\t}\n\t}", "public function hasValidResult()\n {\n return ( $this->result !== null );\n }", "function emptyResult() {\r\n\t if(mysqli_num_rows($this->result) > 0){\r\n\t\t return false;\r\n\t }else{\r\n\t\t return true;\r\n\t }\r\n\t \r\n }", "public function found_rows() {\n\t\t$this->FoundRows();\n\t}", "function _fetch()\n\t{\n\t\tif (array_key_exists($this->rows,$this->_currentRow)) {\n\t\t\t$this->fields = $this->rows[$this->_currentRow];\t\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "function isEmptyQuery($resource) {\n\t// Deal with the result from doQuery()\n\tif ( NULL != $resource ) {\n\t\t$num_row = mysqli_num_rows($resource);\n\t\tif ( $num_row && 0 < $num_row )\n\t\t\treturn false;\n\t}\n\treturn true;\n}", "public function fetchHasResults($q = '')\r\n {\r\n return $this->hasResults($this->query($q));\r\n }", "public function isReadCompleted(): bool;", "public function valid ()\n\t{\n\t\tif (is_a($this->rs,'iterator'))\n\t\t{\n\t\t\treturn $this->rs->valid();\n\t\t}\n\t\treturn false;\n\t}", "public function hasResults(...$args): bool\n {\n return $this->hasJson('results', ...$args);\n }", "public function valid() {\n\t\treturn $this->can_fetch() && (false !== $this->fetch());\n\t}", "public function checkrow(){\n return $this->select->num_rows;\n }", "function emptyResult(){\n\t\t$result=$this->query('select * from users where username=\"'.$this->user.'\" AND password=\"'.$this->pass.'\"');\n\t\tif(mysqli_num_rows($result)>0){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public function valid()\n {\n if (!$this->isBuffered())\n $return = $this->getCurrentData();\n else\n $return = $this->position < $this->resultOrigin->num_rows;\n\n return $return;\n }", "public function hasResult($name)\n {\n return isset($this->results[$name]);\n }", "public function is_loaded()\n {\n return !!$this->_cursor;\n }", "function isReady()\n\t{\n\t\treturn ($this->getCompleteResult() !== false);\n\t}", "function check_data($db_connection, $query)\n{\n if ($result = mysqli_query($db_connection, $query)) {\n $row = $result->fetch_assoc();\n if ($row[\"count\"] > 0) {\n return true;\n }\n return false;\n }\n}", "public function RowCount()\r\n\t{\r\n\t\t$this->ResetError();\r\n\t\tif( !$this->IsConnected() )\r\n\t\t{\r\n\t\t\t$this->SetError('No connection', -1);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telseif( !$this->last_result )\r\n\t\t{\r\n\t\t\t$this->SetError('No query results exist', -1);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$result = @mysql_num_rows( $this->last_result );\r\n\t\t\tif( !$result )\r\n\t\t\t{\r\n\t\t\t\t$this->SetError();\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn $result;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function hasRows($sql_result = null)\n {\n if( !$sql_result ){\n $sql_result = $this->result;\n }\n \n $numRows = $sql_result->num_rows;\n \n if( $numRows > 0 ){\n return true;\n }\n \n return false;\n }", "protected function reportRows()\n {\n // foreach table\n foreach ($this->rowsLoadedForTable as $tableName => $rows) {\n $msg = \"Rows loaded for table '\".$tableName.\"': \".$rows;\n $this->log($msg);\n }\n\n return true;\n }", "function getNRows() \n { \n if($this->rsQry)\n {\n return true;\n }\n else\n {\n\t\t\t return mysql_num_rows($this->rsQry);\n }\n\t\t}", "public function hasData() {\n try {\n $res = TRUE;\n }\n catch (\\Exception $e) {\n $res = FALSE;\n }\n\n return $res;\n }", "abstract public function hasRow();", "public function hasRet()\n {\n return $this->get(self::RET) !== null;\n }", "public function hasRet()\n {\n return $this->get(self::RET) !== null;\n }", "public function hasRowSet(){\n return $this->_has(8);\n }", "public function read()\n {\n return $this->read_at !== null;\n }", "function check_results($result) {\n\tif((!$result) || (mysql_num_rows($result) < '1')) {\n\t\t$num_results = '0';\n\t} else $num_results = mysql_num_rows($result);\n\treturn array($result,$num_results);\n}", "public function hasRowCount(){\n return $this->_has(7);\n }", "public function valid()\n {\n if(is_null($this->paginationVar))\n return true;\n return $this->curIndex < count($this->res);\n }", "public function valid()\n {\n return isset($this->resultSet[$this->key()]);\n }", "public function isLoaded() {\n return is_object($this->result);\n }", "function mysql_num_rows($res) {\n\t$null = true;\n\twhile($row = $res->fetch_assoc()) {\n\t\t$null = false;\n\t}\n\treturn true;\n}", "public function hasNext()\n {\n return $this->cursor()->hasNext();\n }", "public function numRows() {\n\t\tif ($this->result) return mysql_num_rows($this->result);\n\t\treturn false;\n\t}", "public function hasNext(): bool;", "public function hasNext(): bool;", "public function next_row()\n\t\t{\tif (isset($this->res))\n\t\t\t\treturn mysql_fetch_row($this->res);\n\n\t\t\techo \"You need to make a query first! <br />\";\n\t\t\treturn false;\n\t\t}", "public function getTheRows(){\n if($this->dboutcomes == false){\n return false;\n }\n //get the total number of rows affected\n return mysqli_num_rows($this->dboutcomes);\n }", "public function isReadCompleted(): bool {\n return $this->_builder->isReadCompleted();\n }", "public function num_rows()\n {\n if(is_resource($this->resource))\n {\n $result = pg_num_rows($this->resource);\n\n if(!$result)\n {\n return false;\n }\n else\n {\n return $result;\n }\n }\n else\n {\n return false;\n }\n }", "public function read($query){\n $query_result = $this->db_conn->query($query)\n or die($this->db_conn->error.\" The error line number is \".__LINE__);\n $num_rows = $query_result->num_rows;\n if($num_rows > 0){\n return $query_result;\n }else {\n return false;\n }\n }", "public function valid()\n\t{\n\t\treturn $this->row !== NULL;\n\t}", "protected function checkConnectionResults($results)\n {\n if (!is_resource($results)) {\n return \\sqlsrv_errors();\n } else {\n return true;\n }\n }", "public function readAll()\n {\n $read = $this->find()->fetch(true);\n\n if ($read) {\n $this->Result = $read;\n $this->Error = \"Sucesso!\";\n } else {\n $this->Result = false;\n $this->Error = \"Não foi possível consultar!\";\n }\n }", "public function isBufferedResultsEnabled(): bool;", "public function available() {\r\n\t\t// All streams were read\r\n\t\tif($this->_streamsCount===0) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// The current stream has more data\r\n\t\tif(reset($this->_streams)->available()) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\t// Check the other streams, if they have data\r\n\t\tforeach($this->_streams as $stream) {\r\n\t\t\tif($stream->available()) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "function NumRows() {\n\t\t\tif ($this->result) {\n\t\t\t\treturn mysql_num_rows($this->result);\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n \t}", "protected function isFetched()\r\n\t{\r\n\t\treturn $this->bFetched;\r\n\t}", "public function hasRecord();", "public function isRead() {\n\t\treturn $this -> data['is_read'] == 1;\n\t}", "function dbResultExists($query) {\n\t$result = dbQuery($query);\n\t$row = mysqli_fetch_array($result);\n\tif(!empty($row)) { return(true); }\n\treturn(false);\n}", "public function valid() {\n\t\t$this->checkResultSet();\n\n\t\tif ($this->index >= 0 && $this->index < $this->indexMax) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function should_be_fetched() {\n\t\tif ( ! isset( $this->ryte_option[ self::LAST_FETCH ] ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn ( ( time() - $this->ryte_option[ self::LAST_FETCH ] ) > self::FETCH_LIMIT );\n\t}", "public function access() {\n \treturn true;\n // return count($this->selectContentRowsToConvert());\n }", "function rows($res){\t\n\t\treturn(0);\n\t}", "public function hasDatasetResultDto() {\n return $this->_has(2);\n }", "public function hasRet(){\n return $this->_has(5);\n }", "private function fetch()\n\t{\n\t\tif ($this->sqlResource)\n\t\t{\n\t\t\treturn mysql_fetch_assoc($this->sqlResource);\n\t\t}\n\t\telse\n\t\t\treturn FALSE;\n\t}", "public function hasRecord() {}", "public function hasData(){\n return $this->_has(1);\n }", "function num_rows()\r\n {\r\n return mysql_num_rows($this->res_id);\r\n }", "public function hasData(){\n return $this->_has(10);\n }", "public function hasData(){\n return $this->_has(10);\n }", "function fetchRow() {\r\n if($this->getNumRows() > 0)\r\n return mysql_fetch_array($this->m_Result);\r\n else\r\n return false;\r\n }", "function numResults() {\n\t\treturn $this->num_rows();\n\t}", "public function valid() {\n // TODO: Check numProcessed against itemlimit\n return !is_null($this->currentRow);\n }", "public function rewind() {\n if(count($this->resultList)<=0)\n return false;\n $ret = reset($this->resultList);\n $this->EOF = ($ret === false);\n return $ret;\n }", "function database_num_rows($database_result)\n {\n if( !is_resource($database_result) ) return FALSE;\n\t return mysql_num_rows($database_result);\n\t}", "public function hasNext() {\n return !feof($this->handle);\n }", "public function EndOfSeek()\r\n\t{\r\n\t\t$this->ResetError();\r\n\t\tif( $this->IsConnected() )\r\n\t\t{\r\n\t\t\tif( $this->activeRow >= ( $this->RowCount() ) )\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$this->SetError( 'No connection' );\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "function results()\n\t{\n\t\treturn null;\n\t}", "function num_rows()\n\t{\n\t\t$num_rows=0;\n\t\treturn !$num_rows = sqlsrv_num_rows($this->result_id) ? 0 : $num_rows;\n\t}", "function Next()\n {\n $this->row = mysqli_fetch_array($this->rs);\n return !!$this->row;\n }", "protected function isMulti()\n\t{\n \treturn isset($this->results[0]);\n\t}" ]
[ "0.7550277", "0.7321628", "0.71564066", "0.71380705", "0.7032356", "0.6996233", "0.6973486", "0.69299275", "0.69299275", "0.69299275", "0.6929449", "0.6820699", "0.67693126", "0.66812176", "0.6623584", "0.6577766", "0.6526286", "0.64603376", "0.64056975", "0.6260377", "0.62586755", "0.6250752", "0.6213341", "0.6204199", "0.6181574", "0.617354", "0.6159304", "0.61530745", "0.61092", "0.6079315", "0.6065759", "0.6062823", "0.6052876", "0.6042523", "0.5985574", "0.597626", "0.5946839", "0.5936261", "0.5932213", "0.59167355", "0.5893731", "0.5888615", "0.58832705", "0.5880549", "0.58726954", "0.5863949", "0.5863435", "0.58278346", "0.5817032", "0.5817032", "0.5780849", "0.5778183", "0.5776489", "0.57742006", "0.5767372", "0.57602715", "0.5755461", "0.57472235", "0.5736845", "0.5716058", "0.56656814", "0.56656814", "0.5665483", "0.5664793", "0.56615573", "0.5650213", "0.56380194", "0.5635418", "0.56283015", "0.56180596", "0.561748", "0.5614403", "0.56078863", "0.5607474", "0.5602037", "0.5601681", "0.5601033", "0.55985147", "0.55969137", "0.5594145", "0.5590285", "0.5581251", "0.55730283", "0.55721664", "0.55698454", "0.5562941", "0.5556981", "0.55565035", "0.55565035", "0.5547361", "0.5539024", "0.5534484", "0.5516188", "0.5515093", "0.5514588", "0.54998434", "0.54996336", "0.54993814", "0.5496457", "0.54952824" ]
0.7315757
2
Gets the model identifier (from application layer)
public function getIdentifier();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getModelId()\n {\n return $this->model_id;\n }", "public function id()\n {\n return $this->identity['modelId'];\n }", "public function getModelId() {\n\t\treturn $this->getSourceId();\n\t}", "public function getModelId()\n\t{\n\t\treturn $this->handler->get_table_id();\n\t}", "public function instanceModelId()\n {\n return self::modelId();\n }", "public function getModelIdentifier(): string\n\t{\n\t\treturn static::class;\n\t}", "protected function getModelPrimaryKey(): string\n {\n $model = $this->option('model');\n $model = new $model;\n\n return $model->getRouteKeyName();\n }", "function __getModelId($modelClass)\n {\n $inflector = new Inflector;\n return $inflector->underscore(substr($class, 0, -7));\n }", "public function getModelIdentifier()\n {\n return Cart::getIdentifierByClassName('ProductsIdentifier');\n }", "public function getDeployedModelId()\n {\n return $this->deployed_model_id;\n }", "public function getModelKey()\n {\n if (isset($this->modelKey) == false) {\n $reflectionClass = new ReflectionClass($this->owner);\n $this->modelKey = $reflectionClass->getShortName();\n }\n\n return $this->modelKey;\n }", "public function getModelKeyName()\n {\n // Create an instance of the model to get primary key name\n // I couldn't find a better solution \n $model = $this->getModel();\n $model = new $model;\n return $model->getKeyName();\n }", "function model() {\r\n\t\treturn $this->params['models'][0];\r\n\t}", "public static function getModelCodeName()\n {\n return 'Identifier'; // just use the plain old identifier\n }", "public function getModel(): string\n {\n return $this->model;\n }", "public function getModel(): string\n {\n return $this->model;\n }", "public function getModel(): string\n {\n return $this->model;\n }", "public function id(): string\n {\n return $this->model->getRouteKey();\n }", "public function getModelInstanceID() : string\n {\n return \\md5(\\implode('-', $this->getModelInstanceElements()));\n }", "public function getNormalizedIdentifier(object $model): ?string;", "public function modelInformationKeyForModel($model);", "public function getName()\n {\n return empty($this->model->name) ? $this->id : $this->model->name;\n }", "public function getModelName() : string\n {\n return self::$openAPIModelName;\n }", "public function getModelName() : string\n {\n return self::$openAPIModelName;\n }", "public function getModelName() : string\n {\n return self::$openAPIModelName;\n }", "public function getModelName() : string\n {\n return self::$openAPIModelName;\n }", "public function getModelName() : string\n {\n return self::$openAPIModelName;\n }", "public function getModelName() : string\n {\n return self::$openAPIModelName;\n }", "public function modelName(): string\n {\n return class_basename($this->model);\n }", "public function getId()\n {\n return $this->sys->getId();\n }", "public function getID(): string {\n\t\treturn $this->appName;\n\t}", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public function getModelName()\r\n {\r\n return self::$openAPIModelName;\r\n }", "public static function model(): string\n {\n return static::$model;\n }", "private function getModelName()\n {\n $function = new \\ReflectionClass( $this->model ); \n return $function->getShortName();\n }", "public function getModelName()\n {\n return $this->getConfig()->modelName;\n }", "abstract public function getPrimaryModel();", "public function moduleKeyForModel($model);", "public function resourceId(): int\n {\n return $this->model->id;\n }", "public function id(object $model): ?string;", "public function getModelName()\n {\n return self::$openAPIModelName;\n }", "public function getModelName()\n {\n return self::$openAPIModelName;\n }", "public function getModelName()\n {\n return self::$openAPIModelName;\n }", "public function getModelName()\n {\n return self::$openAPIModelName;\n }", "public function getModelName()\n {\n return self::$openAPIModelName;\n }" ]
[ "0.80809444", "0.7959677", "0.7790302", "0.76912934", "0.768398", "0.7511605", "0.74707663", "0.73653173", "0.73382854", "0.72158283", "0.7149864", "0.7099018", "0.68585443", "0.68329597", "0.6809018", "0.6809018", "0.6809018", "0.67942435", "0.67265695", "0.66449255", "0.6641788", "0.658758", "0.6585137", "0.6585137", "0.6585137", "0.6585137", "0.6585137", "0.6585137", "0.65813917", "0.65770113", "0.65647066", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.6502455", "0.650087", "0.65003866", "0.6498123", "0.6481037", "0.64773494", "0.64574116", "0.64337367", "0.642726", "0.642726", "0.642726", "0.642726", "0.642726" ]
0.0
-1
Gets the current application layer
public function getApplication();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getLayer()\n {\n if (Mage::helper('enterprise_search')->getIsEngineAvailableForNavigation()) {\n return Mage::getSingleton('enterprise_search/catalog_layer');\n } else {\n return Mage::getSingleton('catalog/layer');\n }\n }", "public static function getCurrent()\n\t{\n\t\tif (Application::hasInstance())\n\t\t{\n\t\t\t$application = Application::getInstance();\n\t\t\treturn $application->getContext();\n\t\t}\n\n\t\treturn null;\n\t}", "public function getApplication()\n {\n return $this->getHandlerManager()->getApplication();\n }", "public function getApplication()\r\n {\r\n return $this->Application;\r\n }", "public function getFramework() {\r\n\t\treturn $this->context->getState('framework');\r\n\t}", "public function getApplication(){ \r\n\t\treturn \\Yaf\\Application::app();\r\n\t}", "public function getApplication()\n {\n return $this->application;\n }", "public function getApplication()\n {\n return $this->application;\n }", "public function getApplication()\n {\n return $this->application;\n }", "public function getApplication()\n {\n return $this->application;\n }", "public static function self()\n {\n return self::$app;\n }", "public function get()\n {\n return $this->app;\n }", "public function get()\n {\n return $this->app;\n }", "public function getApplication()\n\t{\n\t\treturn $this->application;\n\t}", "public function getApplication()\n\t{\n\t\treturn $this->application;\n\t}", "final public function getApplication()\n {\n return $this->_app;\n }", "public function getApp() {\n return $this->call->getApp();\n }", "public static function get() {\n return self::$app;\n }", "public function getApplication()\n {\n return $this->app;\n }", "public function getApplication()\n {\n return $this->app;\n }", "public function getApplication()\n {\n return $this->app;\n }", "public function getApplication()\n {\n return $this->app;\n }", "public function getApp()\n {\n return $this->app;\n }", "public function getApp()\n {\n return $this->app;\n }", "public function getApp()\n {\n return $this->app;\n }", "public function getApp()\n {\n return $this->app;\n }", "public function getApp()\n {\n return $this->app;\n }", "public function getApp()\n {\n return $this->app;\n }", "function getApplication() {\n return $this->step->application;\n }", "public function getApplication()\n {\n return isset($this->application) ? $this->application : null;\n }", "public function get()\n {\n return $this->app;\n }", "public function get()\n {\n return $this->app;\n }", "protected function getApp()\n {\n return $this->app;\n }", "public static function getApp()\n\t{\n\t\treturn static::$app;\n\t}", "public function getApplicationContext() {}", "public function app()\r\n {\r\n return $this->app;\r\n }", "public static function app()\n {\n return self::$_app;\n }", "public function &getApp() {\n return $this->app;\n }", "public function getApplication() {\n\t\t$instance = $this->getSourceInstance();\n\t\tif ($instance !== null) {\n\t\t\t$application = $instance->unbox()->application;\n\t\t\tif ($application !== null) {\n\t\t\t\treturn $application;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public abstract function getApplication();", "public function get_app() {\n\t\tif(self::$app)\n\t\t\treturn self::$app;\n\n\t\tglobal $a;\n\t\tself::$app = $a;\n\n\t\treturn self::$app;\n\t}", "public static function getActiveApp()\n {\n return self::$_activeApp;\n }", "public function getApplication() {\r\n return \\Accelerator\\Application::instance();\r\n }", "public function app()\n {\n return $this->app;\n }", "function getApplication();", "public function getApp();", "public function getAppEnvironment()\n {\n return $this->appEnvironment;\n }", "public function getApp()\n {\n return $this['app.name'];\n }", "function getActiveLayer() {return $this->_activelayer;}", "public static function getFacadeApplication ( )\n {\n return static::$application;\n }", "final public function getAppConfig()\n {\n return $this->appConfig;\n }", "public static function getInstance()\n\t{\n\t\treturn ( isset(static::$app) ? static::$app : null );\n\t}", "protected function getApplicationContext() {}", "public function getInitialContext()\n {\n return $this->getApplication()->getInitialContext();\n }", "protected function _getApplication()\n {\n $client = $this->_registry->getClient();\n $application = method_exists($client, 'getApplication') ? $client->getApplication() : null;\n\n if (!$application instanceof Zend_Application) {\n throw new Zend_Tool_Framework_Provider_Exception('Unable to retrieve Zend_Application from client');\n }\n\n return $application;\n }", "public function getCurrentSite()\n {\n return $this->application->getSite();\n }", "public function getAppService()\n {\n return $this->getController()->getServiceLocator()->get('Application\\Service\\Service');\n }", "public static function getApplication() : Application\n {\n return self::$app;\n }", "public function getApplication(): ?Application\n {\n return parent::getApplication();\n }", "public static function getAppLoader() {\n return self::$appLoader;\n }", "function getEnvironment(){ return $_ENV['CURRENT_ENVIRONMENT']; }", "function app()\n {\n return \\Core\\Container::getInstance()->singleton('app');\n }", "function getCurrentContext();", "public function getCurrentAppId() {\n return $this->container->offsetGet('appId');\n }", "public function getAppConnector()\n {\n return $this->app_connector;\n }", "public function getSourceApp()\n {\n return $this->sourceApp;\n }", "public static function get()\n\t{\n\t\t// then return content of APPLICATION_ENV\n\t\t// else return \"development\"\n\t\treturn (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : \"development\");\n\t}", "public function getContainer()\n {\n return $this->getModule()->getContainer();\n }", "public function getCurrentContext()\n\t{\n\t\treturn $this->context_name;\n\t}", "public static function context() {\n\t\treturn self::get_context();\n\t}", "public abstract function getApplicationNamespace();", "public function getContext()\n {\n return self::$context;\n }", "public function getSlimApp() {\n return $this->slimApp;\n }", "public static function getFacadeApplication()\n {\n return static::$app;\n }", "static function getCurrent()\n {\n $route = App::router()->getCurrent();\n return self::generate($route, $route->getParameters());\n }", "public function getContext() {\n\t\treturn $this->getPrivateSetting('context');\n\t}", "protected function _getConnectApp()\n {\n if (!$this->_connectApp) {\n $this->_connectApp = Mage::helper('xmlconnect')->getApplication();\n if (!$this->_connectApp) {\n $this->_connectApp = Mage::getModel('xmlconnect/application');\n $this->_connectApp->loadDefaultConfiguration();\n }\n }\n return $this->_connectApp;\n }", "static public function get(): ?Application\n\t{\n\t\treturn self::$instance;\n\t}", "public function getApp()\n\t{\n\t\tif(! self::$_app){\n\t\t if ($this->scopes) $this->config['oauth']['scopes'] = $this->scopes;\n\t\t\tself::$_app = Factory::officialAccount($this->config);\n\t\t}\n\t\treturn self::$_app;\n\t}", "function tev_app() {\n return Tev\\Application\\Application::getInstance();\n }", "public static function context()\n {\n return self::$_context;\n }", "public function getFrameworkConfig()\n {\n if (empty($this->framework)) {\n $this->framework = $this->getConfigValue('config/framework');\n }\n return $this->framework;\n }", "public function controller()\n {\n return $this->context;\n }", "public function application(): Application\n {\n return self::instance()->runner->application();\n }", "public function getEnvironment() {\n\t\treturn $this->getKernel()->getEnvironment();\n\t}", "public function app()\n {\n return \\Cloud::app();\n }", "public static function current()\n {\n return self::$currentContext;\n }", "protected function getRouter()\n {\n return $this->app['router'];\n }", "protected function getRouter()\n {\n return $this->app['router'];\n }", "public function getContext ()\n {\n return $this->context;\n }", "public static function getInstance()\n {\n return isset(static::$apps[static::$id]) ? static::$apps[static::$id] : null;\n }", "protected function getDispatcher()\n {\n return $this->di->getShared('dispatcher');\n }", "protected function getInternal() {\r\n\t\treturn $this->servlet->getInternal();\r\n\t}", "public function environment()\n {\n return \\Config::get('app')['env'];\n }", "static public function getConfig() {\n return Application::$config;\n }", "function get_application_name()\r\n {\r\n return self :: APPLICATION_NAME;\r\n }" ]
[ "0.6989154", "0.69404596", "0.6679831", "0.66767746", "0.6650761", "0.6649103", "0.6647848", "0.6647848", "0.6647848", "0.6647848", "0.6621214", "0.66071594", "0.66071594", "0.6589666", "0.6589666", "0.657651", "0.6574386", "0.6544676", "0.65162444", "0.65162444", "0.65162444", "0.65162444", "0.65098596", "0.65098596", "0.65098596", "0.65098596", "0.65098596", "0.65098596", "0.64750457", "0.64667326", "0.6431188", "0.6431188", "0.64256227", "0.63920224", "0.6357906", "0.6297718", "0.6295735", "0.6259596", "0.62300307", "0.6219608", "0.6217604", "0.6210253", "0.6147328", "0.6122131", "0.6121043", "0.6103728", "0.6036022", "0.60328346", "0.60109484", "0.59781724", "0.59413004", "0.5933137", "0.5905988", "0.58929807", "0.58404124", "0.5826291", "0.581604", "0.58139855", "0.58052605", "0.5782523", "0.5745569", "0.57253134", "0.5720003", "0.5712684", "0.5685604", "0.56814486", "0.5656061", "0.5652243", "0.56493616", "0.56468266", "0.5636835", "0.5630502", "0.5627702", "0.56276304", "0.5626499", "0.5623983", "0.56214917", "0.56212485", "0.5617081", "0.5612728", "0.5608007", "0.56024355", "0.5602434", "0.5594862", "0.55900097", "0.5584475", "0.55701566", "0.55581987", "0.55581987", "0.55448043", "0.55419314", "0.55412", "0.55398196", "0.552814", "0.55275047", "0.55213267" ]
0.63308066
39
Gets the storage name
public function getName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _getStorageName() {\n\t\tif($this->_rememberMe) {\n\t\t\treturn self::TOKEN_COOKIE_STORAGE;\n\t\t}\n\n\t\treturn self::TOKEN_SESSION_STORAGE;\n\t}", "public static function getStorageName()\n {\n return 'nb_icontact_prospect';\n }", "public static function getStorageName()\n {\n return 'nb_domain_zone';\n }", "public function getStorageId()\n {\n return $this->_getField(self::$STORAGE_ID);\n }", "public function getStorageId(): string\n {\n return sprintf('$%s', $this->getData());\n }", "public function getStorageDir() : string\n {\n return $this->storageDir;\n }", "public function getStorageId() {\n return $this->configuration['storage_id'] ?: NULL;\n }", "public static function getStorageName()\n {\n return 'nb_catalog_item_lang';\n }", "protected function getStorageFile()\n\t{\n\t\t$this->createDirectory();\n\t\treturn $this->storagePath.$this->storageFileName;\n\t}", "public function getStorageInfo()\n\t{\n\t\treturn 'table=`'.$this->getTable().'\\'';\n\t}", "public function getCurrentStorage() {\n return @$this->attributes['current_storage'];\n }", "public function getStoragePath(){\n return $this->storageEngine->getStoragePath();\n }", "public function getStorage($identifier) {\n\t\t\n\t\t$storage_folder = getStorageFolder($identifier);\n\t\t\n\t\t$storage_folder = str_replace(WWW_ROOT, '', $storage_folder);\n\t\t\n\t\treturn $storage_folder;\n\t\t\n\t}", "public static function getStorage() {}", "public function getStorageGroup()\n {\n return $this->get('storagegroup');\n }", "public function getStoragePath()\n {\n return $this->storagePath;\n }", "public function getStoragePath()\n {\n return $this->storagePath;\n }", "public function get_storage_unit()\n {\n return $this->storage_unit;\n }", "public function getStorage() {}", "public function getStorage() {}", "public function getStorage() {}", "public static function getStorageTableName() {}", "public function getStorage()\n {\n return $this->get(self::_STORAGE);\n }", "public function getStorage()\r\n {\r\n return $this->storage;\r\n }", "public function getStorage()\n {\n return $this->storage;\n }", "public function getStorage()\n {\n return $this->storage;\n }", "public function getStorage()\n {\n return $this->storage;\n }", "public function getStorage()\n {\n return $this->storage;\n }", "public function getStorage()\n {\n return $this->storage;\n }", "public function getStorage()\n {\n return $this->storage;\n }", "public function getStorage()\n {\n return $this->storage;\n }", "public function getStorage()\n {\n return $this->storage;\n }", "public function getStorage()\n {\n return $this->storage;\n }", "public function getStorageUid();", "public function getStorage();", "public function getStorage();", "public function getStoragePath(): string;", "public function getStorageService()\n {\n $class = $this->app['config']->get('shoppingcart.storage','session');\n\n switch ($class)\n {\n case 'session':\n return 'session';\n break;\n case 'database':\n return 'database';\n break;\n default:\n return 'session';\n break;\n }\n }", "public function getStoreName();", "function getStorage() ;", "protected function getStorageInfo() {\n\t\t$dirInfo = \\OC\\Files\\Filesystem::getFileInfo('/', false);\n\t\treturn \\OC_Helper::getStorageInfo('/', $dirInfo);\n\t}", "public function getStorageNode()\n {\n return $this->get('storagenode');\n }", "public function storagePath()\n {\n return $this->storagePath ?: $this->basePath . DIRECTORY_SEPARATOR . 'storage';\n }", "protected function getStorage($storageName)\n {\n return Config::get('mysql_dump.storage.' . $storageName);\n }", "public function getStorage()\n {\n return $this->_storage;\n }", "public static function getStorageName()\n {\n return 'nb_commerce_product_category';\n }", "public function getStorage() {\n\t\treturn $this->_storage;\n\t}", "function getStorage();", "protected function getStoragePID() {\r\n\t\t$tsConf = tx_pttools_div::typoscriptRegistry('plugin.tx_ptgsaconfmgm.');\r\n\t\t$persDataStorage = $tsConf['persDataStorage'];\r\n\t\treturn $persDataStorage;\r\n\t}", "public function storagePath()\n {\n return $this->basePath . DIRECTORY_SEPARATOR . 'storage';\n }", "function storage_path()\n {\n return base_path() . '/storage';\n }", "public static function getDiskName()\n\t{\n\t\t$defaultDisk = config('filesystems.default', 'public');\n\t\t// $defaultDisk = config('filesystems.cloud'); // Only for tests purpose!\n\t\t\n\t\treturn $defaultDisk;\n\t}", "public function getStoreName()\n {\n return $this->store_name;\n }", "public function getStoreName()\n {\n return $this->store_name;\n }", "public function getRootStorage() {\n return @$this->attributes['root_storage'];\n }", "public function getDistriStoreName()\n {\n return $this->distri_store_name;\n }", "static function getHandlerName ()\n {\n return __('Internal storage');\n }", "public function getStorageEndpoint()\n\t{\n\t\treturn $this->storageEndpoint;\n\t}", "private function getCacheKey($storage_name){\n return $storage_name.'_'.$this->media_type.'_'.$this->media_id;\n }", "public function getAzureFilesStorageShareName() {\n return @$this->attributes['azure_files_storage_share_name'];\n }", "function get_stored_file_name()\n\t{\n\t\tglobal $log;\n\t\t$log->debug(\"Entering get_stored_file_name() method ...\");\n\t\t$log->debug(\"Exiting get_stored_file_name method ...\");\n\t\treturn $this->stored_file_name;\n\t}", "abstract public function getStorageName(Carbon $referenceDate): string;", "protected function getStoreName() {\n return Mage::getStoreConfig('general/store_information/name');\n }", "public function getStoreName(): string\n {\n return $this->storeName;\n }", "function getStorageEngine() {\n \treturn $this->storage_engine;\n }", "public function getStoreName()\n {\n return $this->_fields['StoreName']['FieldValue'];\n }", "public function storage_path();", "public function getStorageClass()\n {\n return $this->data['storage_class'];\n }", "public function getStorageClass()\n {\n return $this->storage_class;\n }", "public function getStorageType()\n\t{\n\t\treturn \"db\";\n\t}", "public function getStorageService();", "public function getStorageType() {\n return $this->configuration['storage_type'] ?: NULL;\n }", "protected function getStoragePath()\n {\n return Command::getDataDir() . self::STORAGE_DIR . DIRECTORY_SEPARATOR . self::CSV_DATASTORE;\n }", "public function getStorageClass()\n {\n return $this->_storageClass;\n }", "public static function getDisk()\n {\n return Storage::disk('s3');\n }", "public function getStorage()\n {\n if (null === $this->storage) {\n $this->setStorage();\n }\n return $this->storage;\n }", "public function getDiskName(): string\n {\n return $this->disk;\n }", "public static function getStorageDescriptorPath()\n {\n return preg_replace('/.php$/', '.json', __FILE__);\n }", "public static function getStorageDescriptorPath()\n {\n return preg_replace('/.php$/', '.json', __FILE__);\n }", "public static function getStorageDescriptorPath()\n {\n return preg_replace('/.php$/', '.json', __FILE__);\n }", "public static function getStorageDescriptorPath()\n {\n return preg_replace('/.php$/', '.json', __FILE__);\n }", "public function storageType();", "public function getStorage($name)\n {\n return $this\n ->getService('storage')\n ->getDriver($name)\n ;\n }", "public function getName()\n {\n return 'filesystem';\n }", "protected static function bucket_name() {\n\t\tif(isset(static::$_bucket_name)) {\n\t\t\treturn static::$_bucket_name;\n\t\t} else {\n\t\t\t$class_parts = explode('\\\\', strtolower(get_class(new static())));\n\t\t\tstatic::$_bucket_name = array_pop($class_parts);\n\t\t}\n\t\treturn static::$_bucket_name;\n\t}", "private function _getStorageFilename($storageGroup, $storageId, $createPath) {\n return $this->_getFileLocation(\n $this->_storageDirectory.DIRECTORY_SEPARATOR.$storageGroup,\n $storageId,\n $createPath\n );\n }", "protected function getDefaultStorage()\n {\n $storageList = $this->_storages;\n $storageNames = array_keys($storageList);\n $defaultStorageName = array_shift($storageNames);\n if (empty($defaultStorageName)) {\n throw new Exception('Unable to determine default storage in the hub!');\n }\n $storage = $this->getStorage($defaultStorageName);\n return $storage;\n }", "public function getStoragePath($path = null)\n {\n return $this->getBasePath().'/storage'.($path ? '/'.$path : $path);\n }", "public function getStorage()\n {\n return Controllers\\StorageController::getInstance();\n }", "public static function getName() {\n return isset(self::$name)\n ? self::$name\n : (self::$name = base_convert(crc32(self::getBaseDir()),16,32));\n\t}", "public function getStorage(): StorageInterface\n {\n return $this->configuration[ConfigurationInterface::STORAGE];\n }", "public static function get_store_name() {\n\t\t\tif ( self::$store_name ) {\n\t\t\t\treturn self::$store_name;\n\t\t\t}\n\t\t\t$name = trim(\n\t\t\t\tstr_replace(\n\t\t\t\t\t\"'\",\n\t\t\t\t\t\"\\u{2019}\",\n\t\t\t\t\thtml_entity_decode(\n\t\t\t\t\t\tget_bloginfo( 'name' ),\n\t\t\t\t\t\tENT_QUOTES,\n\t\t\t\t\t\t'UTF-8'\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t);\n\t\t\tif ( $name ) {\n\t\t\t\tself::$store_name = $name;\n\t\t\t\treturn $name;\n\t\t\t}\n\t\t\t// Fallback to site url\n\t\t\t$url = get_site_url();\n\t\t\tif ( $url ) {\n\t\t\t\tself::$store_name = parse_url( $url, PHP_URL_HOST );\n\t\t\t\treturn self::$store_name;\n\t\t\t}\n\t\t\t// If site url doesn't exist, fall back to http host.\n\t\t\tif ( $_SERVER['HTTP_HOST'] ) {\n\t\t\t\tself::$store_name = $_SERVER['HTTP_HOST'];\n\t\t\t\treturn self::$store_name;\n\t\t\t}\n\n\t\t\t// If http host doesn't exist, fall back to local host name.\n\t\t\t$url = gethostname();\n\t\t\tself::$store_name = $url;\n\t\t\treturn ( self::$store_name ) ? ( self::$store_name ) : 'A Store Has No Name';\n\t\t}", "public function storagePath($path = ''): string\n {\n return ($this->storagePath ?: $this->basePath.DIRECTORY_SEPARATOR.'storage').\n ($path != '' ? DIRECTORY_SEPARATOR.$path : '');\n }", "public function storagePath($path = '')\n\t{\n\t\treturn $this['path.storage'].ltrim($path, '/');\n\t}", "public function name() {\n\t\treturn basename($this->path);\n\t}", "public function getStorage() {\n return $this->sectionStorage;\n }", "public function getNodename();", "public function describeStorage(array $context = []): string;", "public static function getDisk()\n {\n\t\t$defaultDisk = self::getDiskName();\n\t\t$disk = Storage::disk($defaultDisk);\n\t\t\n\t\treturn $disk;\n }", "public function getDeletedFilesStorage() {\n return @$this->attributes['deleted_files_storage'];\n }", "public function storageKey()\n\t{\n\t\treturn md5($this->product->storageKey() . \"combination:{$this->getKey()}\");\n\t}" ]
[ "0.7858911", "0.7590557", "0.7529293", "0.7461326", "0.7345516", "0.72785527", "0.7262415", "0.71614605", "0.7153258", "0.70877033", "0.7080479", "0.6989476", "0.6968452", "0.69403946", "0.69370455", "0.69190955", "0.69190955", "0.6918465", "0.69129115", "0.69124234", "0.69123644", "0.6896098", "0.6892298", "0.689049", "0.68903995", "0.68903995", "0.68903995", "0.68903995", "0.68903995", "0.68903995", "0.68903995", "0.68903995", "0.68903995", "0.6850956", "0.6823626", "0.6823626", "0.68111545", "0.68109953", "0.6803954", "0.68027633", "0.67953396", "0.6786771", "0.6780067", "0.6758952", "0.6729448", "0.67157185", "0.6701115", "0.6694638", "0.6657275", "0.6647916", "0.6618535", "0.66152465", "0.66121995", "0.66121995", "0.65896344", "0.65819556", "0.657135", "0.6547505", "0.65370035", "0.65352327", "0.65338326", "0.65291625", "0.651277", "0.6506034", "0.6497568", "0.6451741", "0.64401007", "0.6428122", "0.6393055", "0.6355953", "0.6305231", "0.63013446", "0.62930304", "0.6279542", "0.6264797", "0.6259867", "0.6257695", "0.6257601", "0.6257601", "0.6257601", "0.6257601", "0.62488234", "0.6237598", "0.62374556", "0.622399", "0.6221289", "0.6203388", "0.6138346", "0.61338437", "0.6133381", "0.6129829", "0.6120054", "0.6117325", "0.61166686", "0.60979927", "0.60944664", "0.6080125", "0.6057238", "0.60516375", "0.6030606", "0.6023822" ]
0.0
-1
Gets the primary key name
public function getPrimary();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPrimaryKeyName()\n {\n return self::$primary_key_name;\n }", "protected function getPrimaryKeyName(): string\n {\n return $this->query->getModel()->getKeyName();\n }", "public function getPrimaryKeyName()\n {\n return $this->primaryKeyName;\n }", "public function getPrimaryKey() {\n\t\treturn $this->_key_primary->name;\n\t}", "public function getKeyName()\n {\n return isset($this->primaryKey) ? $this->primaryKey : static::$defaultPrimaryKey;\n }", "public function getUserPrimaryKeyName() {\n\n $forcedPkName = Configure::read('acl.aro.user.primary_key');\n if (! empty($forcedPkName)) {\n return $forcedPkName;\n } else {\n /* Return the primary key's name that follows the CakePHP\n * conventions */\n return 'id';\n }\n }", "public function getKeyName()\n {\n if (!$this->primaryKey) {\n if ($key = $this->getPrimaryFromFields()) {\n $this->primaryKey = $key;\n } else {\n $this->primaryKey = 'id';\n }\n }\n\n return $this->primaryKey;\n }", "protected abstract function getPrimaryKeyName();", "public static function primaryKey() {\n return (new static)->getKeyName();\n }", "protected function _getPrimaryKey(): string\n {\n if (!$this->_primaryKey) {\n $primaryKey = (array)$this->_table->getPrimaryKey();\n $this->_primaryKey = $primaryKey[0];\n }\n\n return $this->_primaryKey;\n }", "public function getRolePrimaryKeyName() {\n\n $forcedPkName = Configure::read('acl.aro.role.primary_key');\n if (! empty($forcedPkName)) {\n return $forcedPkName;\n } else {\n /* Return the primary key's name that follows the CakePHP\n * conventions */\n return 'id';\n }\n }", "public function getKeyName()\n {\n return $this->primaryKey;\n }", "public function getKeyName()\n {\n return $this->primaryKey;\n }", "public function getPrimaryKeyName()\n\t{\n\t\treturn 'id';\n\t}", "public function getPrimaryKeyFieldName(){\n\t\treturn $this->primaryKey;\n\t}", "protected function _getPrimaryIdKey()\n {\n if ($this->_primaryIdKey == null) {\n $info = $this->_getTable()->info();\n\n $this->_primaryIdKey = (string) array_shift($info[Zend_Db_Table_Abstract::PRIMARY]);\n }\n\n return $this->_primaryIdKey;\n }", "public function pkName()\r\n {\r\n $schema = $this->schema();\r\n foreach($schema as $col){\r\n if( $col['PRIMARY'] === true )\r\n return $col['FIELD'];\r\n }\r\n throw new \\Exception( __CLASS__ .\" Error: could not find Primary Key for table: \" . $this->table->name() ); \r\n }", "private function getPrimaryKey()\n {\n $result = database()->fetchResult('SHOW KEYS FROM ' . $this->table . ' WHERE Key_name = \"PRIMARY\"');\n\n return ($result['Column_name'] ?? null);\n }", "public function getPrimaryKey()\n\t{\n\t\treturn $this->name;\n\t}", "public function getPrimaryKeyName()\n\t{\n\t\treturn 'name';\n\t}", "public function getKeyName()\n {\n return $this->keyName ?: 'id';\n }", "public function getKeyName()\n {\n return $this->keyName ?: 'id';\n }", "function primary_key()\r\n\t{\r\n\t\treturn 'key';\r\n\t}", "public function getAuthIdentifierName()\n {\n return $this->primaryKey;\n }", "public function getAuthIdentifierName() {\n return $this->primaryKey;\n }", "public function primary_key()\n\t{\n\t\treturn $this->primary_key;\n\t}", "public function primary_key(){\n $table_columns = $this->meta();\n\n $primary_key_column = NULL;\n foreach ($table_columns as $col) :\n if($col->primary_key):\n $primary_key_column = $col->name;\n endif;\n endforeach;\n\n return $primary_key_column; \n }", "public function getKeyName(): string\n {\n return 'id';\n }", "public function getModelKeyName()\n {\n // Create an instance of the model to get primary key name\n // I couldn't find a better solution \n $model = $this->getModel();\n $model = new $model;\n return $model->getKeyName();\n }", "protected function primaryKeyName($table) {\n $table = $this->connection->prefixTables('{' . $table . '}');\n return $this->connection->query('SELECT name FROM sys.key_constraints WHERE parent_object_id = OBJECT_ID(:table) AND type = :type', [\n ':table' => $table,\n ':type' => 'PK',\n ])->fetchField();\n }", "function get_primary_key_column()\n {\n return $this->object->_primary_key_column;\n }", "public function get_primary_row(){\r\n $result = $this->db->query(\"SHOW KEYS FROM \". $this->db->formatTableName($this->table). \"\r\n WHERE Key_name = %s\"\r\n , \"PRIMARY\");\r\n $pk = \"\";\r\n foreach ($result as $res){\r\n $pk = $res[\"Column_name\"];\r\n }\r\n return $pk;\r\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_dl' => $this->iid_dl);\n }\n return $this->aPrimary_key;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_nom' => $this->iid_nom, 'id_nivel' => $this->iid_nivel);\n }\n return $this->aPrimary_key;\n }", "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 }", "protected function get_primary_column_name()\n {\n }", "protected function get_primary_column_name()\n {\n }", "protected function get_primary_column_name()\n {\n }", "protected function getPrimaryKeyMemberName()\n {\n return MemberNames::ENTITY_ID;\n }", "function get_primary_key_column()\n {\n return $this->_primary_key_column;\n }", "public function getPrimaryKeyColumn() : string\n {\n return $this->primaryKey;\n }", "public function getPrimaryKeyStr()\n {\n return $this->venda->getPrimaryKeyStr() . '-' . $this->getParcela();\n }", "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}", "protected function _getPrimaryKey(){\n $def = $this->_getDef();\n foreach($def as $column){\n if($column['primary'] === true){\n return $column['field_name'];\n }\n }\n \n return false;\n }", "private function pk_column(){\n\t\tif( in_array(static::$table_name, Model_Kiwi::$composite_key_tables) ){\n\t\t\treturn \"composite_key\";\n\t\t}\n\t\t//if the primary key of the table has been defined in config - return that else use convention\n\t\tif( in_array( static::$table_name, array_keys(Model_Kiwi::$kiwi_pk_hash))){\n\t\t\treturn Model_Kiwi::$kiwi_pk_hash[ static::$table_name ];\n\t\t}\n\t\treturn Model_Kiwi::singularize(static::$table_name) . '_id';\n\t}", "public function PrimaryKey() {\n\t\t\treturn $this->intId;\n\t\t}", "public function PrimaryKey() {\n\t\t\treturn $this->intId;\n\t\t}", "protected function getInstanceIdentifierName(): string\n\t{\n\t\treturn (string) $this->getKeyName();\n\t}", "public function getAuthIdentifierName()\n {\n return $this->getKeyName();\n }", "public function getCustomEntityPrimaryKeyColumnName()\n {\n return self::CUSTOM_TABLE_PRIMARY_KEY_COLUMN;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_activ' => $this->iid_activ, 'id_asignatura' => $this->iid_asignatura, 'id_nom' => $this->iid_nom);\n }\n return $this->aPrimary_key;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('nivel_stgr' => $this->inivel_stgr);\n }\n return $this->aPrimary_key;\n }", "public function getTablePrimaryKey()\n {\n return 'p.id';\n }", "public function getKey()\n {\n return $this->id;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_region' => $this->iid_region);\n }\n return $this->aPrimary_key;\n }", "public function getPKField() {\n return $this->_key_field;\n }", "public function PK() {\n $returnvalue = '';\n $returnvalue .= $this->getDeterminationID();\n return $returnvalue;\n }", "public function getAuthIdentifierName()\n {\n // TODO: Implement getAuthIdentifierName() method.\n return $this->getKeyName();\n }", "public function getPrimaryKey();", "public function getPrimaryKey();", "public function getPrimaryKey();", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_item' => $this->iid_item);\n }\n return $this->aPrimary_key;\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_item' => $this->iid_item);\n }\n return $this->aPrimary_key;\n }", "public function getKeyName();", "public function getKeyName();", "public function getKeyName();", "protected function getModelPrimaryKey(): string\n {\n $model = $this->option('model');\n $model = new $model;\n\n return $model->getRouteKeyName();\n }", "public function getKey()\n {\n return $this->getId();\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_ubi' => $this->iid_ubi, 'id_tarifa' => $this->iid_tarifa, 'year' => $this->iyear, 'id_serie' => $this->iid_serie);\n }\n return $this->aPrimary_key;\n }", "public static function getPkFieldName()\n {\n $modelClass = self::getClass();\n\n return implode('__', $modelClass::getScheme()->getPkFieldNames());\n }", "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_situacion' => $this->iid_situacion);\n }\n return $this->aPrimary_key;\n }", "public static function getPk(){\n return static::$_primaryKey;\n }", "function getKeyName() {\n\t\treturn (string)$this->keypair->keyName;\n\t}", "function _lookup_primary_key_column()\n {\n $key = $this->_wpdb()->get_row(\"SHOW INDEX FROM {$this->get_table_name()} WHERE Key_name='PRIMARY'\", ARRAY_A);\n if (!$key) {\n throw new Exception(\"Please specify the primary key for {$this->get_table_name()}\");\n }\n return $key['Column_name'];\n }", "public function getKeysName()\n {\n $primaryKey = [$this->getKeyName()];\n\n if ($sortKey = $this->getSortKeyName()) {\n $primaryKey[] = $sortKey;\n }\n\n return $primaryKey;\n }", "public function getAuthIdentifierName()\n {\n return $this->getKey();\n }", "public function preparePrimaryKeyName()\n {\n $this->primaryKeyName = $this->getOption('primary');\n\n if (empty($this->primaryKeyName)) {\n $this->primaryKeyName = 'id';\n }\n }", "private function _fetch_table_primary_key()\n {\n if ($this->primary_key == null) {\n $this->primary_key = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))) . '_id';\n }\n }", "private function _fetch_table_primary_key()\n {\n if ($this->primary_key == null) {\n $this->primary_key = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))) . '_id';\n }\n }", "public function getQualifiedKeyName()\n {\n return $this->getKeyName();\n }", "public static function getNameKey()\n {\n return self::getRepo()->getNameKey();\n }", "public function getPrimaryKey()\r\n\t{\r\n\t\treturn $this->primaryKey;\r\n\t}", "public function getQualifiedKeyName()\n {\n return $this->getTable().'.'.$this->getKeyName();\n }", "public function getPrimaryKey()\n {\n if ($this->_primaryKey === null) {\n $schema = $this->getSchema();\n $key = $schema->getPrimaryKey();\n if (count($key) === 1) {\n $key = $key[0];\n }\n $this->_primaryKey = $key;\n }\n\n return $this->_primaryKey;\n }", "public function getTableKeyName()\n\t{\n\t\treturn \"id\".$this->getTableName();\n\t}", "public function getTableKeyName()\r\n\t{\r\n\t\treturn \"id\".$this->getTableName();\r\n\t}", "public function getPk()\n {\n return $this->{static::primaryKey()};\n }", "public function json_primary_key($table_name){\n\t\tif( in_array( $table_name, array_keys(Model_Kiwi::$kiwi_pk_hash))){\n\t\t\treturn Model_Kiwi::$kiwi_pk_hash[ $table_name ];\n\t\t}\n\t\treturn Model_Kiwi::singularize($table_name) . '_id';\n\t}", "protected function getPrimaryKeyColumnName()\n {\n return ColumnKeys::PATH;\n }", "public static function primaryKey()\n {\n return static::PRIMARY_KEY;\n }", "public function getPrimaryKey() {\n return $this->_data->getDeepValue('indexes/primary/columns/0', null);\n }", "public function getPrimaryKey()\n {\n return $this->primaryKey;\n }", "public function getPrimaryKey()\n\t{\n $indexes = $this->getIndexes();\n\n foreach ($indexes as $index){\n if ($index['Key_name'] == \"PRIMARY\"){\n return $index;\n }\n }\n\n \t\t\n\t}", "protected function primaryParameterName($modelName) {\n $modelClass = new $modelName;\n return $modelClass->tableSchema->primaryKey;\n }", "public static function getPrimaryKey()\n {\n return self::getRepo()->getPrimaryKey();\n }", "public function getPrimaryName()\n\t{\n\t\tif (null === $this->_primaryName) {\n\t\t\t$this->setPrimaryName(current($this->info(self::PRIMARY)));\n\t\t}\n\t\t\n\t\treturn $this->_primaryName;\n\t}", "public function getKey()\n {\n return $this->__get(\"key\");\n }", "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 getPrimaryKeyField()\n\t{\n\t\treturn $this->primaryKey;\n\t}", "public function id()\n {\n return $this->read($this->metadata['pk']->name);\n }" ]
[ "0.8921222", "0.87215143", "0.85805094", "0.8467421", "0.84068537", "0.83795667", "0.8359384", "0.828755", "0.8258604", "0.8234142", "0.8215452", "0.81679165", "0.81679165", "0.8149795", "0.80913776", "0.8045215", "0.80201024", "0.8016582", "0.80136645", "0.80011845", "0.7973543", "0.7973543", "0.79519653", "0.7909453", "0.7903592", "0.78116757", "0.7733758", "0.77132815", "0.7697268", "0.7648641", "0.7599231", "0.7597694", "0.75958884", "0.7593817", "0.7593168", "0.7558725", "0.7558725", "0.75577235", "0.75527966", "0.7511209", "0.7497799", "0.7487621", "0.74768037", "0.7429542", "0.7418804", "0.74113053", "0.74113053", "0.74092525", "0.7403989", "0.73939615", "0.7392043", "0.738141", "0.7376107", "0.73643905", "0.7342995", "0.73383474", "0.7338325", "0.7336802", "0.73294395", "0.73294395", "0.73294395", "0.7328536", "0.7328536", "0.73250324", "0.73250324", "0.73250324", "0.73229414", "0.73216367", "0.73109156", "0.7303677", "0.72926646", "0.72828466", "0.72800165", "0.7271084", "0.7270016", "0.726835", "0.72679484", "0.7264485", "0.7264485", "0.7253565", "0.7242873", "0.7242519", "0.7235411", "0.7227585", "0.7226737", "0.7216096", "0.72127175", "0.7196954", "0.718589", "0.7167838", "0.7163407", "0.7161934", "0.71381843", "0.7131225", "0.7126156", "0.7126123", "0.7123317", "0.7112763", "0.7112763", "0.71109307", "0.7091862" ]
0.0
-1
Gets the storage driver
public function getStorage();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getCloudDriver()\r\n\t{\r\n\t\treturn $this->royalcms['config']['filesystems.cloud'];\r\n\t}", "function get_storage()\n{\n return env('FILESYSTEM_DRIVER');\n}", "public function getDriver()\n {\n return $this->driver;\n }", "final public function getDriver() {\n return $this->driver;\n }", "function getStorageEngine() {\n \treturn $this->storage_engine;\n }", "public function getDriver()\n {\n return $this->_driver;\n }", "public function getDriver()\n {\n return $this->_driver;\n }", "Public Function getDriver() { Return $this->driver; }", "public function getLocalDriverHandle()\n {\n return $this->config->get('acme::filesystem.local_driver');\n }", "public function getDriver()\n\t{\n\t\treturn $this->driver;\n\t}", "public function getDriver()\n {\n return $this->config['driver'];\n }", "public function driver()\n {\n return $this->driver;\n }", "public function storage(): FilesystemAdapter\n {\n return Storage::disk($this->getDiskName());\n }", "public function get_driver()\n\t{\n\t\treturn $this->driver;\n\t}", "public function getDriver() {\n return $this->_driver;\n }", "public function getDriver() {\n return $this->_driver;\n }", "public function getStorage()\n {\n return $this->get(self::_STORAGE);\n }", "public function getdriver()\n {\n return $this->driver;\n }", "public function getStorage($name)\n {\n return $this\n ->getService('storage')\n ->getDriver($name)\n ;\n }", "public function getStorageService();", "public function getDefaultDriver()\n {\n return config('filesystems.default');\n }", "public function getStorage()\n {\n return $this->storage;\n }", "public function getStorage()\n {\n return $this->storage;\n }", "public function getStorage()\n {\n return $this->storage;\n }", "public function getStorage()\n {\n return $this->storage;\n }", "public function getStorage()\n {\n return $this->storage;\n }", "public function getStorage()\n {\n return $this->storage;\n }", "public function getStorage()\n {\n return $this->storage;\n }", "public function getStorage()\n {\n return $this->storage;\n }", "public function getStorage()\n {\n return $this->storage;\n }", "protected function getDefaultDriver()\n {\n return config('filesystems.default');\n }", "public function getStorageService()\n {\n $class = $this->app['config']->get('shoppingcart.storage','session');\n\n switch ($class)\n {\n case 'session':\n return 'session';\n break;\n case 'database':\n return 'database';\n break;\n default:\n return 'session';\n break;\n }\n }", "public function getStorage()\r\n {\r\n return $this->storage;\r\n }", "public function getDefaultDriver()\n\t{\n\t\treturn $this->royalcms['config']['filesystems.default'];\n\t}", "public function getCacheDriver()\n {\n return (string)$this->cacheDriver;\n }", "protected function getDefaultDriver()\r\n\t{\r\n\t\treturn $this->royalcms['config']['filesystems.default'];\r\n\t}", "public function getStorage(): StorageInterface\n {\n return $this->configuration[ConfigurationInterface::STORAGE];\n }", "public function getDriver()\n {\n return $this->_list->getDriver();\n }", "public function getDriver()\r\n\t{\r\n\t\treturn $this->dbDriver;\r\n\t}", "public static function getStorage() {}", "public function getStorage() {}", "public function getStorage() {}", "public function getStorage() {}", "public function getStorage()\n {\n return $this->_storage;\n }", "protected function getStorageDisk()\n {\n return config('paperclip.storage.disk')\n ?: config('filesystems.default');\n }", "public function getDriver(): ?string\n {\n \\Logger::getLogger(\\get_class($this))\n ->info(\\sprintf(\n __METHOD__ . \" get '%s'\",\n $this->driver === null\n ? \"null\"\n : $this->driver\n ));\n return $this->driver;\n }", "public function getStorage()\n {\n return Controllers\\StorageController::getInstance();\n }", "public function driver()\n {\n return $this->makeDriversFactory($this->makeConfig())->make();\n }", "public function driver(): ?string\n {\n return $this->driver;\n }", "public function getStorage() {\n\t\treturn $this->_storage;\n\t}", "function getStorage()\n{\n\tif (!$this->storage) $this->storage = new AuthDbStorage;\n\treturn $this->storage;\t\n}", "public function driver()\n {\n return strtolower($this->driver);\n }", "public function getStorage(): StorageInterface\n {\n return $this->storage;\n }", "public static function getDisk()\n {\n return Storage::disk('s3');\n }", "public function storageClass()\n {\n return 'OAuth2_Storage_Pdo';\n }", "public function getStorageType()\n\t{\n\t\treturn \"db\";\n\t}", "protected function getDriver() {}", "public function getAuthenticatedDriver()\n {\n $driverId = $this->resourceServer->getOwnerId();\n return DriverRepository::find($driverId);\n }", "public function getDriver()\n {\n if ($this->driver === null) {\n $this->driver = $this->getPDO()->getAttribute(PDO::ATTR_DRIVER_NAME);\n }\n\n return $this->driver;\n }", "public function getDriverIdentifier()\n {\n return $this->driver;\n }", "protected function getDriver(): string\n {\n return $this->pdo->getAttribute(\\PDO::ATTR_DRIVER_NAME);\n }", "public function getStorageType() {\n return $this->configuration['storage_type'] ?: NULL;\n }", "public function getStorage()\n {\n if (null === $this->storage) {\n $this->setStorage();\n }\n return $this->storage;\n }", "public function getDefaultDriver()\n {\n return Arr::get($this->container['config']['cache'], 'default');\n }", "function getStorage();", "public function getStorage()\n {\n if($this->_storageInstance == null)\n {\n $storageClass = $this->_storageClass;\n $this->_storageInstance = new $storageClass($this->_storageConfig);\n $this->_storageInstance->setMapperInstance($this);\n }\n return $this->_storageInstance;\n }", "public function get_storage_unit()\n {\n return $this->storage_unit;\n }", "public function driver($driver = null)\n\t{\n\t\treturn $this->store($driver);\n\t}", "public function getCacheDriver(): ?string;", "public function driver($driver = null)\n {\n return $this->store($driver);\n }", "protected function getDefaultStorage()\n {\n $storageList = $this->_storages;\n $storageNames = array_keys($storageList);\n $defaultStorageName = array_shift($storageNames);\n if (empty($defaultStorageName)) {\n throw new Exception('Unable to determine default storage in the hub!');\n }\n $storage = $this->getStorage($defaultStorageName);\n return $storage;\n }", "protected function getStorage()\n{\n\tglobal $pclib;\n\tif (!$this->storage) $this->storage = new TranslatorDbStorage($this);\n\treturn $this->storage;\n}", "final public function getDriverName(): string\n {\n return $this->driver;\n }", "public function getDriverName()\n {\n return $this->getConfig('driver');\n }", "public static function getDisk()\n {\n\t\t$defaultDisk = self::getDiskName();\n\t\t$disk = Storage::disk($defaultDisk);\n\t\t\n\t\treturn $disk;\n }", "public function getCurrentStorage() {\n return @$this->attributes['current_storage'];\n }", "private function getStorage()\n {\n if (empty($this->storage)) {\n $this->storage = $this->wizardStorageFactory->create([\n 'key' => $this->getRequest()->getParam(UrlBuilder::REQUEST_PARAM_CONFIGURE_KEY)\n ]);\n }\n return $this->storage;\n }", "protected function getStorage($storageName)\n {\n return Config::get('mysql_dump.storage.' . $storageName);\n }", "public function getStorageClass()\n {\n return $this->storage_class;\n }", "public function getAdapter(): Filesystem\n {\n return $this->adapter;\n }", "public function getDefaultDriver(): string\n {\n return $this->app['config'][$this->driverKey()];\n }", "public function getStorageId() {\n return $this->configuration['storage_id'] ?: NULL;\n }", "protected static function getAvailableDriver()\n {\n $serverDiagnostic = new ServerDiagnostic();\n $candidates = [\n [\n \"name\" => \"gd\",\n \"type\" => \"extension\",\n ],\n [\n \"name\" => \"imagick\",\n \"type\" => \"extension\",\n ],\n ];\n $diagnostic = $serverDiagnostic->checkRequirements($candidates);\n\n if ($diagnostic[\"imagick\"][\"passed\"]) {\n return \"imagick\";\n } else if ($diagnostic[\"gd\"][\"passed\"]) {\n return \"gd\";\n }\n\n // Return gd by default\n return \"gd\";\n }", "public function getStorageClass()\n {\n return $this->_storageClass;\n }", "abstract protected function getDriver();", "public function getDefaultDriver()\n {\n return $this->app['config']['instruments.driver'];\n }", "public function getStorageEndpoint()\n\t{\n\t\treturn $this->storageEndpoint;\n\t}", "public function storageType();", "function _getStorage()\n {\n if ($this->_handler instanceof CacheStorage) {\n return $this->_handler;\n }\n\n $this->_handler = CacheStorage::getInstance($this->_options['storage'], $this->_options);\n if ($this->_handler != null) {\n if ($this->_handler->test()) {\n return $this->_handler;\n } else {\n $this->_handler = CacheStorage::getInstance('file', $this->_options);\n return $this->_handler;\n }\n } else {\n return null;\n }\n }", "function getStorage() ;", "public function getStorageGroup()\n {\n return $this->get('storagegroup');\n }", "private static function _dbDriver(): string\n {\n $db = Craft::$app->getDb();\n\n if ($db->getIsMysql()) {\n $driverName = 'MySQL';\n } else {\n $driverName = 'PostgreSQL';\n }\n\n return $driverName . ' ' . App::normalizeVersion($db->getSchema()->getServerVersion());\n }", "public function getDefaultDriver()\n {\n $driver = $this->config[self::$packageName.'::driver'];\n return $driver;\n }", "public function getDefaultDriver()\n {\n return $this->config()->get('settings.default', 'json');\n }", "public function getDefaultDriver()\n {\n return $this->configurations['driver'] ?? 'gd';\n }", "public function getDefaultDriver()\n {\n return static::$oDefaultDriver;\n }", "protected function getStorageFile()\n\t{\n\t\t$this->createDirectory();\n\t\treturn $this->storagePath.$this->storageFileName;\n\t}", "public function getStoragePath(){\n return $this->storageEngine->getStoragePath();\n }", "public function getDriverName()\n {\n return isset($this->driverName) ? $this->driverName : null;\n }" ]
[ "0.7497664", "0.7287567", "0.7251915", "0.72392464", "0.72338384", "0.71996075", "0.71996075", "0.7143535", "0.71403944", "0.7101628", "0.70823747", "0.70632714", "0.7059553", "0.7019716", "0.70148635", "0.70148635", "0.6991683", "0.69691885", "0.691012", "0.6881576", "0.6875127", "0.68728215", "0.68728215", "0.68728215", "0.68728215", "0.68728215", "0.68728215", "0.68728215", "0.68728215", "0.68728215", "0.685096", "0.6850325", "0.68399966", "0.6817625", "0.6804861", "0.6798981", "0.6798747", "0.6786794", "0.67672426", "0.67623717", "0.6757806", "0.6757", "0.6756823", "0.6717519", "0.67090446", "0.6700997", "0.66961503", "0.6668337", "0.6638943", "0.66358566", "0.66288334", "0.6614116", "0.66136783", "0.660825", "0.65978026", "0.65637666", "0.6526739", "0.6502614", "0.65025973", "0.6493858", "0.6492894", "0.6478854", "0.64533234", "0.6426826", "0.63956404", "0.63869303", "0.63735914", "0.63719165", "0.6365502", "0.6362936", "0.6361476", "0.6341722", "0.6336004", "0.63324916", "0.6331888", "0.63300306", "0.6327371", "0.63217086", "0.6314435", "0.6311458", "0.6310797", "0.63100225", "0.6301679", "0.62797064", "0.6276772", "0.6273971", "0.6264635", "0.6252291", "0.62479454", "0.6243226", "0.62358296", "0.6233328", "0.62137187", "0.62118703", "0.62042814", "0.6182122", "0.6174675", "0.6172962", "0.61687547" ]
0.6662417
49
Create a select request
public function query($statement, array $parameters = null);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSelect();", "public function getSelect();", "public function select();", "public function select();", "public function select();", "public function select(Request $request)\n {\n $response = $this->postService::select($request->id, $request->select);\n\n return json_encode($response);\n }", "public function createSelect()\n {\n return $this->getConnection()->select();\n }", "abstract public function prepareSelect();", "public function Do_select_Example1(){\n\n\t}", "public function select()\n {\n\n }", "protected static function select()\n {\n }", "public function executeSelect(sfWebRequest $request)\n {\n $this->hasPermissionsForSelect();\n \n $after = $request->getParameter('after');\n // Prevent possible header insertion tricks\n $after = preg_replace(\"/\\s+/\", \" \", $after);\n $multiple = !!$request->getParameter('multiple');\n if ($multiple)\n {\n $selection = preg_split(\"/\\s*,\\s*/\", $request->getParameter('aMediaIds'));\n } else\n {\n $selection = array($request->getParameter('aMediaId') + 0);\n }\n $options = array();\n $optional = array('type', 'aspect-width', 'aspect-height',\n 'minimum-width', 'minimum-height', 'width', 'height', 'label');\n foreach ($optional as $option)\n {\n if ($request->hasParameter($option))\n {\n $options[$option] = $request->getParameter($option);\n }\n }\n aMediaTools::setSelecting($after, $multiple, $selection, $options);\n\n return $this->redirect(\"aMedia/index\");\n }", "function select( \n\t $name, $title = null, $value = null, \n\t $required = false, \n\t $attributes = null,\n\t $options = array(),\n\t $datatype = Form::DATA_STRING\n\t){\n return $this->input(\n\t $name, \n\t Form::TYPE_SELECT,\n\t $title, \n\t $value, \n\t $required, \n\t $attributes,\n\t $options,\n\t $datatype\n );\n\t}", "public function consultarTiposJSONSelectAction() {\n $select = \"<select>\";\n //$select = $select . \"<option value='' >Seleccione una Acción</option>\";\n $select = $select . \"<option value=\" . User::$VENDEDOR . \" >\" . User::$VENDEDOR_TEXT . \"</option>\";\n $select = $select . \"<option value=\" . User::$COMPRADOR . \" >\" . User::$COMPRADOR_TEXT . \"</option>\";\n $select = $select . \"<option value=\" . User::$APROBADOR . \" >\" . User::$APROBADOR_TEXT . \"</option>\";\n $select = $select . \"<option value=\" . User::$DIGITADOR . \" >\" . User::$DIGITADOR_TEXT . \"</option>\";\n $select = $select . \"</select>\";\n\n $response = new Response($select);\n return $response;\n }", "public function newSelect()\n {\n return $this->newInstance('Select');\n }", "static function createSelect($input, $name) {\n include $_SERVER[\"DOCUMENT_ROOT\"] . \"/mvdv/core/view/templates/general/form/formelements/select.php\";\n }", "function mSELECT(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$SELECT;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:116:3: ( 'select' ) \n // Tokenizer11.g:117:3: 'select' \n {\n $this->matchString(\"select\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "public function select(){\n $records =10;\n $data = $this->repository->getObjects($records);\n $user = $this->returnTr($data);\n $area = Area::all();\n $select = $this->returnOption($area,\"Chọn khu vực\" );\n return response()->json(['user'=>$user,'select'=>$select]); \n }", "public function select( $select ) {\n $args = func_get_args();\n\n $this->_type = self::TYPE_SELECT;\n\n foreach( $args AS $arg ) {\n $this->_select[] = $arg;\n }\n\n return $this;\n }", "public function actionSelect(){\n $select = $this->select('Pilih donk akhh..', ['kopi'=>'kopi', 'susu'=>'susu']);\n echo \"Pilihan nya adalah : $select\";\n }", "protected function _authenticateCreateSelect()\n {\n // build credential expression\n if (empty($this->_credentialTreatment)\n || (strpos($this->_credentialTreatment, \"?\") === false)\n ) {\n $this->_credentialTreatment = '?';\n }\n\n $credentialExpression = \n '(CASE WHEN ' . \n $this->_db->escape($this->_credentialColumn, true)\n . ' = ' . $this->_credentialTreatment \n . ' THEN 1 ELSE 0 END) AS '\n . $this->_db->escape('zend_auth_credential_match', true);\n\n // get select\n \n $dbSelect = \"SELECT *, $credentialExpression \" \n . \" FROM \" . $this->_tableName\n . ' WHERE '\n . $this->_db->escape($this->_identityColumn, true) . ' = ?';\n if ($this->_conditionStatement) { \n $dbSelect .= ' AND ' . $this->_conditionStatement;\n }\n return $dbSelect;\n }", "function select($name = \"txt\", $alttext = \"\", $selecttype = \"array\", $lookup = \"\", $value = \"\", $event = \"\", $cssid = \"\", $readonly = false, $nochoose = true) {\n\n if (isset($_REQUEST[$name])) {\n if ($value == \"\") {\n $value = $_REQUEST[$name];\n }\n }\n $lookuplist = [];\n if ($selecttype == \"array\" || $selecttype == \"multiarray\") {\n\n if (is_array($lookup)) {\n $lookuplist = $lookup;\n } else {\n $lookuplist = explode(\"|\", $lookup);\n }\n } else if ($selecttype == \"sql\" || $selecttype == \"multisql\") {\n $lookuprow = $this->DEB->getRows($lookup, DEB_ARRAY); //format [0] = NAME\n\n\n foreach ($lookuprow as $irow => $row) {\n $lookuplist[$irow] = $row[0] . \",\" . $row[1]; //make it in the form of array\n }\n }\n //make options for the type of select etc .....\n if ($selecttype == \"multiarray\" || $selecttype == \"multisql\") {\n $options = \"multiple=\\\"multiple\\\"\";\n } else {\n $options = \"\";\n }\n if ($readonly == true) {\n $disabled = \"disabled=\\\"disabled\\\"\";\n } else {\n $disabled = \"\";\n }\n //default text\n if ($alttext == \"\") {\n $alttext = \"Choose\";\n }\n if ($cssid != \"\") {\n $cssid = \"id=\\\"{$cssid}\\\"\";\n } else {\n $cssid = \"\";\n }\n $html = \"<select class=\\\"form-control\\\" $cssid name=\\\"{$name}\\\" $options {$event} $disabled >\";\n\n if (!$nochoose) {\n $html .= \"<option value=\\\"\\\">{$alttext}</option>\";\n }\n\n foreach ($lookuplist as $lid => $option) {\n\n $toption = explode(\",\", $option);\n if (count($toption) != 2) {\n $toption[0] = $lid;\n $toption[1] = $option;\n }\n\n $option = $toption;\n\n if (trim($value) == trim($option[0])) {\n $html .= \"<option selected=\\\"selected\\\" value=\\\"{$option[0]}\\\">{$option[1]}</option>\";\n } else {\n $html .= \"<option value=\\\"{$option[0]}\\\">{$option[1]}</option>\";\n }\n }\n $html .= \"</select>\";\n return $html;\n }", "public function select(SS_HTTPRequest $request)\n {\n\n $uploadField = $this->getUploadField();\n $uploadField->setRequest($request);\n\n return $uploadField->handleSelect($request);\n }", "public static function select($name = \"\")\n\t{\n\t\treturn new Select($name);\n\t}", "public function createSelectSql(): \\Hx\\Db\\Sql\\SelectInterface;", "public function funcSelect($request)\n {\n $query = $this->model_message\n ->select('id', 'user_id', 'title', 'message', 'datevisit')\n ->orderBy('datevisit', 'desc');\n\n return $query->get();\n }", "public function select($selectType, AbstractRequest $request = null)\n {\n if (!$request instanceof AbstractRequest) {\n $request = Front::getInstance()->getRequest();\n }\n\n if (!in_array($selectType, $this->_selectTypes)) {\n throw new \\InvalidArgumentException(\n sprintf(\"Invalid select type submitted. Allowed types: %s\", implode(', ', $this->_selectTypes)));\n }\n\n $user = $this->getUser();\n $settings = $this->getSettings();\n\n $categoriesService = new Service\\Table\\Relational\\Categories();\n\n $type = $request->getParam('type');\n $keywords = $request->getParam('keywords');\n $listingId = intval($request->getParam('listing_id'));\n $filter = $request->getParam('filter');\n\n /* listings sort drop-down */\n $sort = $request->getParam('sort');\n\n $showOnly = (array)$request->getParam('show_only');\n $listingTypes = (array)$request->getParam('listing_type');\n $country = $request->getParam('country');\n\n /* listings module specific params */\n $parentId = intval($request->getParam('parent_id'));\n $price = $request->getParam('price');\n\n $priceFrom = isset($price[\\Ppb\\Form\\Element\\Range::RANGE_FROM]) ? doubleval($price[\\Ppb\\Form\\Element\\Range::RANGE_FROM]) : null;\n $priceTo = isset($price[\\Ppb\\Form\\Element\\Range::RANGE_TO]) ? doubleval($price[\\Ppb\\Form\\Element\\Range::RANGE_TO]) : null;\n\n /* members module specific params */\n $show = $request->getParam('show');\n $userId = $request->getParam('user_id');\n\n $select = $this->getTable()->getAdapter()\n ->select()\n ->from(array('l' => 'listings'), '*');\n\n $listingTypes = array_filter($listingTypes);\n if (empty($listingTypes) || in_array('all', (array)$listingTypes)) {\n $listingTypes = array_keys($this->getListingTypes());\n }\n\n $select->where(\"l.listing_type IN (?)\", $listingTypes);\n\n switch ($selectType) {\n case self::SELECT_LISTINGS:\n if (!in_array($filter, array('open', 'closed', 'scheduled'))) {\n $filter = 'open';\n }\n if ($show != 'store') {\n $select->where('l.list_in != ?', 'store');\n }\n break;\n case self::SELECT_MEMBERS:\n $select->where('l.user_id = ?', $user['id']);\n break;\n }\n\n switch ($type) {\n case 'categories':\n if ($parentId) {\n $select->reset('order')\n ->where('l.catfeat = ?', 1)\n ->order(new Expr('rand()'));\n }\n break;\n case 'homepage':\n $select->reset('order')\n ->where('l.hpfeat = ?', 1)\n ->order(new Expr('rand()'));\n break;\n case 'recent':\n $select->reset('order')\n ->order('l.start_time DESC');\n break;\n case 'ending':\n $select->reset('order')\n ->where('l.end_time IS NOT NULL')\n ->order('l.end_time ASC');\n break;\n case 'popular':\n $select->reset('order')\n ->order('l.nb_clicks DESC');\n break;\n case 'seller-other-items':\n $select->reset('order')\n ->where('l.user_id = ?', (int)$userId)\n ->where('l.id != ?', (int)$request->getParam('current_listing_id'))\n ->order('l.start_time DESC');\n break;\n case 'seller':\n $select->reset('order')\n ->where('l.user_id = ?', (int)$userId)\n ->order('l.start_time DESC');\n }\n\n switch ($show) {\n case 'bids':\n $select->join(array('b' => 'bids'), 'b.listing_id = l.id', 'b.id AS bid_id')\n ->group('l.id');\n break;\n\n case 'offers':\n $select->join(array('o' => 'offers'), \"o.listing_id = l.id AND o.type='offer'\", 'o.id AS offer_id')\n ->group('l.id');\n break;\n\n case 'sold':\n $select = $this->_addSelectPart('sold', $select);\n\n break;\n\n case 'pending':\n $select->join(array('o' => 'offers'), \"o.listing_id = l.id AND o.type='offer'\", 'o.id AS offer_id')\n ->joinLeft(array('s' => 'sales_listings'), \"s.listing_id = l.id\", 's.id AS sale_listing_id')\n ->where('s.id IS NULL')\n ->group('l.id');\n break;\n\n case 'unsold':\n $select->joinLeft(array('s' => 'sales_listings'), \"s.listing_id = l.id\", 's.id AS sale_listing_id')\n ->where('s.id IS NULL')\n ->group('l.id');\n break;\n case 'store':\n $select->where('l.list_in != ?', 'site');\n\n if ($slug = $request->getParam('store_slug')) {\n $usersService = new Users();\n $store = $usersService->findBy('store_slug', $slug);\n if (!empty($store['id'])) {\n $userId = $store['id'];\n }\n }\n\n if ($userId) {\n $select->where('l.user_id = ?', $userId);\n }\n\n break;\n case 'other-items':\n $select->where('l.list_in != ?', 'store')\n ->where('l.user_id = ?', $userId);\n break;\n case 'featured':\n $select->where('l.hpfeat = ?', 1);\n break;\n\n case 'recent':\n if (empty($sort)) {\n $sort = 'started_desc';\n }\n break;\n case 'popular':\n if (empty($sort)) {\n $sort = 'clicks_desc';\n }\n break;\n case 'ending':\n $select->where('l.end_time <> ?', 0);\n if (empty($sort)) {\n $sort = 'ending_asc';\n }\n break;\n case 'by-user':\n $select->where('l.user_id = ?', $userId);\n }\n\n if (in_array('sold', $showOnly)) {\n $filter = 'sold';\n }\n if (in_array('accept_returns', $showOnly)) {\n $select->where('l.postage_settings LIKE ?', '%s:14:\"accept_returns\";s:1:\"1\"%');\n }\n if (in_array('make_offer', $showOnly)) {\n $select->where('l.enable_make_offer = ?', 1);\n }\n\n if ($country) {\n $select->where('l.country = ?', (int)$country);\n }\n\n if ($listingId) {\n $select->where('l.id = ?', $listingId);\n }\n\n if (!empty($keywords)) {\n $params = '%' . str_replace(' ', '%', $keywords) . '%';\n if (is_numeric($keywords)) {\n $select->where('(l.id = \"' . intval($keywords) . '\" OR l.name LIKE \"' . $params . '\" OR l.subtitle LIKE \"' . $params . '\")');\n }\n else {\n $keywords = explode(' ', $keywords);\n $conditions = array();\n\n $conditions[] = 'l.name LIKE \"%1$s\"';\n\n if ($settings['search_subtitle']) {\n $conditions[] = 'l.subtitle LIKE \"%1$s\"';\n }\n if ($settings['search_description']) {\n $conditions[] = 'l.description LIKE \"%1$s\"';\n }\n if ($settings['search_category_name']) {\n $select->joinLeft(array('mc' => 'categories'), 'mc.id = l.category_id', 'mc.full_name AS main_category_name');\n $conditions[] = 'mc.full_name LIKE \"%1$s\"';\n\n if ($settings['addl_category_listing']) {\n $select->joinLeft(array('ac' => 'categories'), 'ac.id = l.addl_category_id', 'ac.full_name AS addl_category_name');\n $conditions[] = 'ac.full_name LIKE \"%1$s\"';\n }\n }\n\n $cond = implode(' OR ', $conditions);\n\n foreach ((array)$keywords as $keyword) {\n $select->where('(' . sprintf($cond, '%' . $keyword . '%') . ')');\n// $select->where('(l.name LIKE \"%' . $keyword . '%\" OR l.subtitle LIKE \"%' . $keyword . '%\")'); // OBSOLETE\n }\n\n // REGEXP SOLUTION - SEARCHES FOR ANY KEYWORD - NOT GOOD\n// $select->where(\"l.name REGEXP '( )*(\" . str_replace(' ', ')*( )*(', $keywords) . \")( )*'\");\n\n }\n }\n\n if ($priceFrom > 0) {\n $select->where('l.start_price >= ?', $priceFrom);\n }\n if ($priceTo > 0) {\n $select->where('l.start_price <= ?', $priceTo);\n }\n\n switch ($filter) {\n case 'open':\n $select->where('l.closed = ?', 0)\n ->where('l.deleted = ?', 0);\n\n if ($selectType != self::SELECT_MEMBERS) {\n $select->where('l.active = ?', 1)\n ->where('l.approved = ?', 1);\n }\n break;\n case 'closed':\n $select->where('l.closed = ?', 1)\n ->where('l.deleted = ?', 0)\n ->where('l.end_time <= ?', new Expr('now()'));\n\n if ($selectType != self::SELECT_MEMBERS) {\n $select->where('l.active = ?', 1)\n ->where('l.approved = ?', 1);\n }\n\n if (empty($sort)) {\n $sort = 'ending_desc';\n }\n break;\n case 'scheduled':\n $select->where('l.closed = ?', 1)\n ->where('l.deleted = ?', 0)\n ->where('l.start_time > ?', new Expr('now()'));\n\n if ($selectType != self::SELECT_MEMBERS) {\n $select->where('l.active = ?', 1)\n ->where('l.approved = ?', 1);\n }\n break;\n case 'suspended':\n $select->where('l.active != ?', 1)\n ->where('l.approved = ?', 1);\n break;\n case 'awaiting_approval':\n $select->where('l.approved = ?', 0);\n break;\n case 'deleted':\n $select->where('l.deleted = ?', 1);\n break;\n case 'sold':\n $select = $this->_addSelectPart('sold', $select);\n break;\n }\n\n switch ($sort) {\n case 'price_asc':\n $select->order(new Expr(\"IF(l.listing_type='product',l.buyout_price, IF(max(b.amount) is null, l.start_price, max(b.amount))) ASC\"))\n ->joinLeft(array('b' => 'bids'), 'b.listing_id = l.id', new Expr('max(b.amount) as current_bid'))\n ->group('l.id');\n\n break;\n case 'price_desc':\n $select->order(new Expr(\"IF(l.listing_type='product',l.buyout_price, IF(max(b.amount) is null, l.start_price, max(b.amount))) DESC\"))\n ->joinLeft(array('b' => 'bids'), 'b.listing_id = l.id', new Expr('max(b.amount) as current_bid'))\n ->group('l.id');\n break;\n case 'started_asc':\n $select->order('l.start_time ASC');\n break;\n case 'started_desc':\n $select->order('l.start_time DESC');\n break;\n case 'ending_asc':\n $select->order('l.end_time ASC');\n break;\n case 'ending_desc':\n $select->order('l.end_time DESC');\n break;\n case 'clicks_asc':\n $select->order('l.nb_clicks ASC');\n break;\n case 'clicks_desc':\n $select->order('l.nb_clicks DESC');\n break;\n case 'relevance':\n $select->order('l.nb_clicks DESC');\n break;\n default:\n if (!$select->getPart('order')) {\n $select->order('l.created_at DESC');\n }\n break;\n }\n\n $select->where('l.draft = ?', ($filter == 'drafts') ? 1 : 0);\n\n /*\n * search by category\n */\n $categoriesFilter = array(0);\n\n if ($parentId) {\n $categoriesIds = array_keys($categoriesService->getChildren($parentId, true));\n\n if ($settings['addl_category_listing']) {\n $select->where('l.category_id IN (?) OR l.addl_category_id IN (?)', $categoriesIds);\n }\n else {\n $select->where('l.category_id IN (?)', $categoriesIds);\n }\n\n $categoriesFilter = array_merge($categoriesFilter, array_keys(\n $categoriesService->getBreadcrumbs($parentId)));\n }\n\n $customFieldsService = new CustomFields();\n\n $customFields = $customFieldsService->getFields(\n array(\n 'type' => 'item',\n 'active' => 1,\n 'searchable' => 1,\n 'category_ids' => $categoriesFilter,\n ))->toArray();\n\n // pre php 5.5 array_column workaround - equivalent to:\n // $customFields = array_column($customFields, 'id');\n $customFields = array_map(function ($element) {\n return $element['id'];\n }, $customFields);\n /*\n * custom fields search \n */\n $params = $request->getParams();\n\n foreach ($params as $key => $value) {\n if (preg_match('#^(custom_field_)#', $key) && !empty($value)) {\n $fieldId = str_replace('custom_field_', '', $key);\n\n if (in_array($fieldId, $customFields)) {\n $alias = 'cf' . $fieldId;\n\n $customFieldsSelect = null;\n if (is_string($value)) {\n if (!empty($value)) {\n // search using like, just like with keywords search\n //$customFieldsSelect = \"{$alias}.value = '{$value}'\"; OBSOLETE\n $value = explode(' ', $value);\n $customFieldsSelect = array();\n foreach ((array)$value as $val) {\n $customFieldsSelect[] = \"{$alias}.value LIKE '%{$val}%'\";\n }\n $customFieldsSelect = implode(' OR ', $customFieldsSelect);\n }\n }\n else if (is_array($value)) {\n $checkBoxSrc = array();\n $radioSrc = array();\n foreach ($value as $val) {\n if (!empty($val)) {\n $checkBoxSrc[] = $val;\n $radioSrc[] = \"{$alias}.value = '{$val}'\";\n }\n }\n if (count($checkBoxSrc) > 0) {\n $customFieldsSelect = \"{$alias}.value REGEXP '\\\"\" . implode('\"|\"',\n array_unique($checkBoxSrc)) . \"\\\"' OR \"\n . implode(' OR ', $radioSrc);\n }\n }\n\n if (!empty($customFieldsSelect)) {\n $select->join(array($alias => 'custom_fields_data'),\n \"{$alias}.owner_id = l.id AND {$alias}.field_id = '\" . (int)$fieldId . \"' AND ({$customFieldsSelect})\",\n $alias . '.id AS ' . $alias . '_id');\n }\n }\n }\n }\n\n return $select;\n }", "public function select()\n\t{\n\t\t$this->_query['select'] = func_get_args();\n\n\t\treturn $this;\n\t}", "private function __select() {\n $from_str = $this->getFromStr();\n $field = $this->field_str;\n if (empty($field)) {\n $field = '*';\n }\n $sql = \"SELECT {$field} FROM {$from_str}\";\n if (!empty($this->join_str_list)) {\n $temp = implode(' ', $this->join_str_list);\n $sql .= \" {$temp}\";\n }\n if (!empty($this->where_str)) {\n $sql .= \" WHERE {$this->where_str}\";\n }\n if (!empty($this->group_str)) {\n $sql .= \" GROUP BY {$this->group_str}\";\n }\n if (!empty($this->order_str)) {\n $sql .= \" ORDER BY {$this->order_str}\";\n }\n if (!empty($this->limit_str)) {\n $sql .= \" LIMIT {$this->limit_str}\";\n }\n $list = $this->query($sql);\n return $list;\n }", "public function getSelect($param) {\n //operario y poder seleccionar el operario que va ser foranea en otra tabla\n $json = FALSE;\n extract($param);\n $select = \"\";\n $select .= \"<option value='0'>Seleccione un Operario</option>\";\n foreach ($conexion->getPDO()->query(\"SELECT fk_usuario, nombres FROM operario ORDER BY nombres\") as $fila) {\n $select .= \"<option value='{$fila['fk_usuario']}'>{$fila['fk_usuario']} - {$fila['nombres']}</option>\";\n }\n echo $json ? json_encode($select) : (\"<select id='$id'>$select</select>\");\n }", "function select($name='',$class='',$optName='',$id='',$attrib='') {\n\t\t$n = '';\n\t\t$option = '';\n\t\t$fldname = str_replace(' ', '_', $name);\n\t\tif(isset($_SESSION[$fldname])) $n = $_SESSION[$fldname];\n\t\tif(isset($_POST[$fldname])) $n = $_POST[$fldname]; \n\t\tforeach($optName as $optVal){\n\t\t\t$cndtn = ($n == $optVal)? 'selected=\"selected\"' : '';\n\t\t\t$option .= '<option value=\"'.$optVal.'\" '.$cndtn.'>'.$optVal.'</option>';\t\t\n\t\t}\n\t\t$select = '<select name=\"'.$fldname.'\" class=\"'.$class.'\" id=\"'.$id.'\" '.$attrib.'>'.$option.'</select>';\n\t\techo $select;\n\t}", "private function _select(){\n $this->debugBacktrace();\n $parameter = $this->selectParam; //transfer to local variable.\n $this->selectParam = \"\"; //reset updateParam.\n\n \n \n $sql = \"\";\n if($this->hasRawSql){\n $sql = $parameter;\n $this->hasRawSql = false;\n }\n else{\n $tableName = $this->tableName;\n $this->tableName = \"\"; //reset.\n\n $columns = \"\";\n if(!isset($parameter) || empty($parameter)){\n $columns = \"*\";\n $sql = $this->_prepare_select_sql($columns,$tableName);\n }\n else{\n //first check whether it has 'select' keyword\n $parameter = trim($parameter);\n $keyWord = substr($parameter,0,6);\n if(strtoupper($keyWord)==\"SELECT\") {\n $sql = $parameter;\n }\n else{\n $columns = $parameter;\n $sql = $this->_prepare_select_sql($columns,$tableName);\n }\n }\n }\n\n \n $queryObject = $this->_perform_mysql_query($sql);\n \n if(empty($this->selectModifier)){\n //No select modifier (first, firstOrDefault, single, singleOrDefault) found ---->\n $quantity = 0;\n $rows = array();\n switch ($this->fetchType){\n case \"fetch_object\":\n while ($row = mysqli_fetch_object($queryObject)) {\n if(isset($tableName)){\n $meta = new stdClass();\n $meta->type = $tableName;\n $row->__meta = $meta;\n }\n $rows[] = $row;\n $quantity++;\n }\n break;\n case \"fetch_assoc\":\n while ($row = mysqli_fetch_assoc($queryObject)) {\n $rows[] = $row;\n $quantity++;\n }\n break;\n case \"fetch_array\":\n while ($row = mysqli_fetch_array($queryObject)) {\n $rows[] = $row;\n $quantity++;\n }\n break;\n case \"fetch_row\":\n while ($row = mysqli_fetch_row($queryObject)) {\n $rows[] = $row;\n $quantity++;\n }\n break;\n case \"fetch_field\":\n while ($row = mysqli_fetch_field($queryObject)) {\n $rows[] = $row;\n $quantity++;\n }\n break;\n }\n\n if($quantity>0){\n mysqli_free_result($queryObject);\n }\n\n return $rows;\n //<----No select modifier (first, firstOrDefault, single, singleOrDefault) found \n }\n else{ \n //select modifier (first, firstOrDefault, single, singleOrDefault) found ---->\n $selectModifier = $this->selectModifier;\n $this->selectModifier = \"\";\n $row;\n switch($selectModifier){\n case \"first\":\n $numRows = mysqli_num_rows($queryObject);\n if($numRows == 0){\n throw new ZeroException(\"No data found.\");\n }\n break;\n \n case \"firstOrNull\":\n $numRows = mysqli_num_rows($queryObject);\n if($numRows == 0){\n return NULL;\n }\n break;\n\n case \"single\":\n $numRows = mysqli_num_rows($queryObject);\n if($numRows == 0){\n throw new ZeroException(\"No data found.\");\n }\n if($numRows > 1){\n throw new ZeroException(\"Multiple records found.\");\n }\n break;\n\n case \"singleOrNull\":\n $numRows = mysqli_num_rows($queryObject);\n if($numRows == 0){\n return NULL;\n }\n if($numRows > 1){\n return NULL;\n }\n break;\n }\n\n return $this->_prepareSingleRecord($queryObject);\n //<---- select modifier (first, firstOrDefault, single, singleOrDefault) found *212*062#\n }\n }", "public function select() {\n return $this->getActionByName('Select');\n }", "public function select($fields);", "protected function getSelect() {\n $oSql = new SqlSelect();\n $oSql->setEntity($this->Persistence->getTableName());\n $oSql->addColumn(implode(',', $this->getColumns()));\n $oSql->setCriteria($this->Criteria); \n return $oSql->getInstruction();\n }", "public function setSelect($select);", "function Select($name,$data,$parameters = \"\",$value = \"\",$event = \"\") {\n\n $attributes = Render::explodeParameters($parameters);\n $event = $attrubutes[event];\n\n $content .= \"<select name=\\\"$name\\\" $event class=dataentry>\\n\";\n\n if (count($data) == 0) {\n $content .= \"<option value=\\\"\\\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\\n\";\n } else {\n\n if (isset($attributes[first])) {\n\t$content .= \"<option value=\\\"\\\">$attributes[first]\\n\";\n } \n }\n\n if (count($data) > 0) { \n foreach($data as $k => $v) {\n\t\n\tif (($v[value] == $value) or ($v[value] == $attributes[value]) or ($v[checked]) or ($v[selected])) {\n\t $content .= \"<option value=\\\"$v[value]\\\" selected> $v[text]\\n\";\n\t} else {\n\t $content .= \"<option value=\\\"$v[value]\\\"> $v[text]\\n\";\n\t}\n }\n }\n\n $content .= \"</select>\\n\";\n\n return $content;\n }", "function dmSelect($table, $name, $value=\"\", $all=FALSE, $attrs=NULL, $required=TRUE) {\n $dmQ = new DmQuery();\n $dmQ->connect();\n # Don't use getAssoc() so that we can set the default below\n $dms = $dmQ->get($table);\n $dmQ->close();\n $default = \"\";\n $options = array();\n if ($all) {\n $options['all'] = 'All';\n }\n if (!$required) {\n // Add \"Any\" for the first option.\n $loc = new Localize(OBIB_LOCALE, \"shared\");\n $options[''] = $loc->getText(\"any\");\n }\n foreach ($dms as $dm) {\n $options[$dm->getCode()] = $dm->getDescription();\n if ($dm->getDefaultFlg() == 'Y') {\n $default = $dm->getCode();\n }\n }\n if ($value == \"\") {\n $value = $default;\n }\n if (!$required) {\n // Selected on \"Any\" option.\n $value = \"\";\n }\n return inputField('select', $name, $value, $attrs, $options);\n}", "private function _montaInicioSelectQuestionario()\r\n {\r\n $select = $this->select()\r\n ->setIntegrityCheck(false);\r\n\r\n $select->from(array('pp' => KT_B_PERGUNTA_PEDIDO),\r\n array('cd_pergunta_pedido',\r\n 'tx_titulo_pergunta',\r\n 'st_multipla_resposta',\r\n 'st_obriga_resposta',\r\n 'tx_ajuda_pergunta'),\r\n $this->_schema);\r\n $select->join(array('orpp' => $this->_name),\r\n '(pp.cd_pergunta_pedido = orpp.cd_pergunta_pedido)',\r\n array('st_resposta_texto',\r\n 'ni_ordem_apresenta'),\r\n $this->_schema);\r\n $select->join(array('rp' => KT_B_RESPOSTA_PEDIDO),\r\n '(orpp.cd_resposta_pedido = rp.cd_resposta_pedido)',\r\n array('cd_resposta_pedido',\r\n 'tx_titulo_resposta'),\r\n $this->_schema);\r\n \r\n return $select;\r\n }", "public static function renderSelect();", "protected function prepareSelectStatement() {}", "public function select($field);", "protected function runSelect()\n {\n return $this->connection->select(\n $this->toSql(),\n $this->getBindings(),\n $this->option->setUseWrite($this->useWritePdo)\n );\n }", "public function createRequest();", "public function createRequest();", "public function select2(Request $request)\n {\n $params = $request->get('params');\n \n // Quantidade de registros por pagina\n $registros_por_pagina = 100;\n \n if(!empty($request->get('id'))) { \n // Monta Retorno\n $item = $this->repository->findOrFail($request->get('id'));\n return [\n 'id' => $item->codsubgrupoproduto,\n 'subgrupoproduto' => $item->subgrupoproduto,\n 'inativo' => $item->inativo,\n ];\n } else {\n\n // Numero da Pagina\n $params['page'] = $params['page']??1;\n \n // Monta Query\n $qry = $this->repository->model->where('codgrupoproduto', $request->codgrupoproduto);\n \n if(!empty($params['term'])) {\n foreach (explode(' ', $params['term']) as $palavra) {\n if (!empty($palavra)) {\n $qry->whereRaw(\"(tblsubgrupoproduto.subgrupoproduto ilike '%{$palavra}%')\");\n }\n }\n }\n\n if ($request->get('somenteAtivos') == 'true') {\n $qry->ativo();\n }\n \n // Total de registros\n $total = $qry->count();\n \n // Ordenacao e dados para retornar\n $qry->select('codsubgrupoproduto', 'subgrupoproduto', 'inativo');\n $qry->orderBy('subgrupoproduto', 'ASC');\n $qry->limit($registros_por_pagina);\n $qry->offSet($registros_por_pagina * ($params['page']-1));\n \n // Percorre registros\n $results = [];\n foreach ($qry->get() as $item) {\n $results[] = [\n 'id' => $item->codsubgrupoproduto,\n 'subgrupoproduto' => $item->subgrupoproduto,\n 'inativo' => $item->inativo,\n ];\n }\n \n // Monta Retorno\n return [\n 'results' => $results,\n 'params' => $params,\n 'pagination' => [\n 'more' => ($total > $params['page'] * $registros_por_pagina)?true:false,\n ]\n ];\n }\n }", "protected function runSelect()\n {\n return $this->connection->select($this->toCypher(), $this->getBindings());\n }", "public function select()\n\t{\n\t\treturn call_user_func_array([$this->queryFactory->__invoke('select'), 'select'], func_get_args());\n\t}", "public function select(Request $request)\n { \n $torneo = Models\\Torneo::find($request->torneo);\n $request->session()->put('torneo_id', $torneo);\n $torneos = Models\\Torneo::all();\n return view(\"admin.select_torneo_form\",[\"torneos\" => $torneos]);\n }", "public function select($what)\n {\n $this->select = $what;\n return $this;\n }", "function __select( $hidden = true ) {\n\t\t$data = '';\n\t\tif( $hidden === true ) {\n\t\t\t// use hyperv-vm.select.class\n\t\t\trequire_once($this->rootdir.'/plugins/hyperv/class/hyperv-vm.select.class.php');\n\t\t\t$controller = new hyperv_vm_select($this->htvcenter, $this->response);\n\t\t\t$controller->actions_name = $this->actions_name;\n\t\t\t$controller->tpldir = $this->tpldir;\n\t\t\t$controller->message_param = $this->message_param;\n\t\t\t$controller->lang = $this->lang['select'];\n\t\t\t$data = $controller->action();\n\t\t}\n\t\t$content['label'] = $this->lang['select']['tab'];\n\t\t$content['value'] = $data;\n\t\t$content['target'] = $this->response->html->thisfile;\n\t\t$content['request'] = $this->response->get_array($this->actions_name, 'select' );\n\t\t$content['onclick'] = false;\n\t\tif($this->action === 'select'){\n\t\t\t$content['active'] = true;\n\t\t}\n\t\treturn $content;\n\t}", "function qselect(){\r\n\t\t\r\n\t\r\n\t}", "public function select()\n {\n return $this->_db->factory('select', $this);\n }", "function select_option()\r\n{}", "function CategorySelect($data)\n{\n switch ($data['Type']) {\n case 'Read':\n $response = ReadSelect($data);\n break;\n case 'Update':\n $response = UpdateSelect($data);\n break;\n case 'Delete':\n $response = DeleteSelect($data);\n break;\n }\n\n return $response;\n}", "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 testSelect()\n {\n $index = new Index();\n $query = new Query($index);\n $this->assertSame($query, $query->select(['a', 'b']));\n $elasticQuery = $query->compileQuery()->toArray();\n $this->assertEquals(['a', 'b'], $elasticQuery['_source']);\n\n $query->select(['c', 'd']);\n $elasticQuery = $query->compileQuery()->toArray();\n $this->assertEquals(['a', 'b', 'c', 'd'], $elasticQuery['_source']);\n\n $query->select(['e', 'f'], true);\n $elasticQuery = $query->compileQuery()->toArray();\n $this->assertEquals(['e', 'f'], $elasticQuery['_source']);\n }", "private function buildQuery( array $request )\n\t{\n\t\treturn $this->buildSelect($request);\n\t}", "public function getSelect()\n {\n throw new \\Exception('SELECT not ready');\n }", "public function select()\n {\n return curl_multi_select( $this->mh );\n }", "public function select($arg){\n if(is_string($arg)){\n $this->params['SELECT'] = \"$arg\";\n }else if(is_array($arg)){\n $c = \"\";\n $x = 0;\n foreach($arg as $a){//foreach, translate into SQL language\n if($x != 0){\n $c .= \",\";\n }\n $x++;\n $c .= $a;\n }\n $this->params[\"SELECT\"] = $c;//change the select using the arguments\n }else{\n echo 'An error has occured';\n return false;\n }\n return $this;\n }", "function select($args) {\r\n\t\t\t$args = $this->apply_name_fix($this->apply_default_args($args)) ;\r\n\t\t\tif ($args['multiple']) {\r\n\t\t\t\techo \"<select class='optselect chzn-select' multiple='true' style='\" .$this->width($args['width']) . \"' name='\" . $args['formname'] . \"\" . \"[]'>\";\r\n\t\t\t\tforeach ($args['selections'] as $key => $value) {\r\n\t\t\t\t\techo \"<option \" . (array_search($value , $args['value']) === false ? '' : 'selected' ). \" value='\" . $key . \"'>\" . $value . \"</option>\";\t\r\n\t\t\t\t}\t\r\n\t\t\t\techo \"</select>\";\r\n\t\t\t} else {\r\n\t\t\t\techo \"<select class='optselect chzn-select' style='\" .$this->width($args['width']) . \"' name='\" . $args['formname'] . \"'>\";\r\n\t\t\t\tforeach ($args['selections'] as $key => $value) {\r\n\t\t\t\t\techo \"<option \" . ($args['value'] == $key ? 'selected' : '' ). \" value='\" . $key . \"'>\" . $value . \"</option>\";\t\r\n\t\t\t\t}\t\r\n\t\t\t\techo \"</select>\";\r\n\t\t\t}\r\n\t\t\t$this->description($args['description']);\r\n\t\t}", "public function select($producto);", "function select ( $arguments = \"\" ) {\n $arguments = func_get_args();\n $rc = new ReflectionClass('tselect');\n return $rc->newInstanceArgs( $arguments ); \n}", "function CreaSelect($Nombre,$Sql,$Comentario,$valor=\"\"){\n\t\t$result = mysql_query($Sql);\n\t\techo \"\\t<tr><td>$Comentario</td><td><select name='$Nombre'>\\n\";\n\t\twhile($row=mysql_fetch_row($result))\n\t\t{\n\t\t \tif($row[0]==$valor)$seleccionar=\"selected\";\n\t\t \telse $seleccionar=\"\";\n\t\t\techo \"\\t\\t<option $seleccionar value='\".$row[0].\"'>\".$row[1].\"</option>\\n\"\t;\n\t\t}\n\t\t\techo \"</select></td></tr>\\n\";\n\t\t\n\t}", "public function select($calendario);", "protected static function buildSelectionQuery() \n {\n return Query::select()->\n from(self::getTableName());\n }", "protected function select($request) {\r\n $message = \"\";\r\n try {\r\n $results = $this->connection->query($request);\r\n } catch (PDOException $e) {\r\n $json= json_decode(file_get_contents(\"./framework/lang/\".$this->lang.\"/information.json\"));\r\n $message=$json->Error->ErrorType->FailExecRequest;\r\n $message = $message .$request.\" \". $e->getMessage();\r\n return $message;\r\n }\r\n $table = $results->fetchALL(PDO::FETCH_ASSOC); // on dit qu'on veut que le résultat soit récupérable sous forme de tableau)\r\n return $table;\r\n }", "public abstract function getSelect(\n $fields, $from, $where = '', $groupby = '', $limit = 0, $offset = 0\n );", "protected function createSelect($config)\n {\n $tmpl = $this->getOptionalTemplate(\n $config,\n ARCH_PATH.'/theme/form/select.php'\n );\n \n $config['name'] = $this->getDefaultName($config);\n $config['items'] = $this->getListItems($config);\n \n if (!isset($config['selected'])) {\n $config['selected'] = array();\n if ($this->record && !empty($config['items_table'])) {\n $fk = $this->driver->getRelationColumn(\n (string) $this->config['table'],\n (string) $config['items_table']\n );\n if (isset($this->record[$fk])) {\n $config['selected'][] = $this->record[$fk];\n }\n }\n }\n return new \\Arch\\Registry\\View($tmpl, $config);\n }", "protected abstract function getSelectStatement();", "protected abstract function getSelectStatement();", "public function select($select = null)\n {\n $this->_type = self::SELECT;\n\n if (empty($select)) {\n return $this;\n }\n\n $selects = is_array($select) ? $select : func_get_args();\n\n return $this->add('select', $selects, false);\n }", "public function select(string $blade, array $queryParams = []): SelectResultCollection;", "public function select($select_expression, $opt = null)\n\t{\n\t\tif (!$opt) $opt = array();\n\t\t$opt['SelectExpression'] = $select_expression;\n\n\t\treturn $this->authenticate('Select', $opt, $this->hostname);\n\t}", "public function select($cotizacion);", "function selectempreUser()\n {\n $conn = new mysqli(SERVER, USER, PASSWORD, DB);\n $sql = \"SELECT * FROM tb_business\";\n $result = $conn->query($sql);\n if ($result->num_rows > 0)\n {\n $select = \"<label>Empresa</label>\";\n $select .= \"<select class='form-control select2' name='id_business' id='id_business' style='width: 100%;'>\";\n $select .= \"<option selected='selected'>Select</option>\";\n // output data of each row\n while($row = $result->fetch_assoc())\n {\n $select .= \"<option value=\".$row['id_business'].\">\".$row['nombre'].\"</option>\";\n }\n $select .=\"</select>\";\n return $select;\n\n }\n\n }", "public function Do_Allselect_Example1(){\n\n\t}", "public function getSelect(): ?Select;", "public function select()\n {\n return new geoTableSelect($this->_name);\n }", "public function select($params){\n\t$this->select.=\" \".$params;\n\t\t\treturn $this;\n\t}", "function create_compute_resources_select($applicationId, $resourceHostId)\n{\n $computeResources = get_available_app_interface_compute_resources($applicationId);\n\n echo '<select class=\"form-control\" name=\"compute-resource\" id=\"compute-resource\">';\n\n foreach ($computeResources as $id => $name)\n {\n $selected = ($resourceHostId == $id)? ' selected' : '';\n\n echo '<option value=\"' . $id . '\"' . $selected . '>' .\n $name . '</option>';\n\n }\n\n echo '</select>';\n}", "public function select ($attrs, $array, $opts=[])\n { // Let's build our select structure.\n $select = new \\SimpleXMLElement('<select/>');\n if (is_string($attrs))\n {\n $attrs = ['name'=>$attrs];\n }\n if \n (\n isset($opts['id']) && $opts['id'] \n && !isset($attrs['id']) && isset($attrs['name'])\n )\n {\n $attrs['id'] = $attrs['name'];\n }\n\n // See if we're using bitmasks for the selected values.\n if (isset($opts['mask']))\n $is_mask = $opts['mask'];\n else\n $is_mask = False;\n\n // Check for a selected option.\n if (isset($opts['selected']))\n {\n $selected = $opts['selected'];\n\n if (is_array($selected))\n {\n // Get an identifier we can use.\n if (isset($attrs['id']))\n {\n $identifier = $attrs['id'];\n }\n elseif (isset($attrs['name']))\n {\n $identifier = $attrs['name'];\n }\n else\n {\n $identifier = Null;\n }\n if (isset($identifier) && isset($selected[$identifier]))\n {\n $selected = $selected[$identifier];\n }\n }\n }\n else\n {\n $selected = Null;\n }\n\n // Check for a 'ns' option to override translation prefix.\n if (isset($opts['ns']))\n {\n $prefix = $opts['ns'];\n }\n else\n {\n $prefix = '';\n }\n\n // Check for a 'ttns' option, specifying a tooltip translation prefix.\n if (isset($opts['ttns']))\n {\n $ttns = $opts['ttns'];\n }\n else\n {\n $ttns = null;\n }\n\n // For processing complex entities.\n if (isset($opts['labelkey']))\n {\n $label_key = $opts['labelkey'];\n }\n else\n {\n $label_key = 'text';\n }\n if (isset($opts['valuekey']))\n {\n $value_key = $opts['valuekey'];\n }\n else\n {\n $value_key = 'id';\n }\n\n // Add attributes.\n foreach ($attrs as $aname=>$aval)\n {\n $select->addAttribute($aname, $aval);\n }\n\n if (isset($opts['translate']))\n {\n $translate = $opts['translate'] && isset($this->translate);\n }\n else\n {\n $translate = isset($this->translate);\n }\n\n // Used only if translation service is enabled.\n $tooltips = [];\n\n // Add options, with potential translation processing.\n if ($translate)\n {\n $array = $this->translate->strArray($array, $prefix);\n if (isset($ttns))\n {\n $tooltips = $this->translate->strArray($array, $ttns);\n }\n }\n foreach ($array as $value=>$label)\n {\n if (isset($tooltips[$value]) && $tooltips[$value] != $value)\n {\n $tooltip = $tooltips[$value];\n }\n else\n {\n $tooltip = null;\n }\n\n if (is_array($label))\n { // Process complex entries.\n if (isset($label[$value_key]))\n $value = $label[$value_key];\n if (isset($label[$label_key]))\n $label = $label[$label_key];\n }\n\n $option = $select->addChild('option', $label);\n $option->addAttribute('value', $value);\n if (isset($tooltip))\n {\n $option->addAttribute('title', $tooltip);\n }\n if \n (\n isset($selected)\n &&\n (\n ($is_mask && ($value & $selected))\n ||\n ($value == $selected)\n )\n )\n {\n $option->addAttribute('selected', 'selected');\n }\n }\n $html = $this->return_value($select, $opts);\n if (substr(trim($html), -2) == '/>')\n {\n $html = substr_replace(trim($html), '></select>', -2);\n# error_log(\"Correcting singleton select HTML: $html\");\n }\n return $html;\n }", "public function createSelector()\n {\n $o = new SelectSelector();\n $this->appendSelector($o);\n\n return $o;\n }", "function select() {\n\n $query = 'SELECT '\n .'trafficjam.id, '\n .'trafficjam.from, '\n .'trafficjam.from_loc_lat, '\n .'trafficjam.from_loc_lon, '\n .'trafficjam.to, '\n .'trafficjam.to_loc_lat, '\n .'trafficjam.to_loc_lon, '\n .'trafficjam.start, '\n .'trafficjam.delay, '\n .'trafficjam.distance, '\n .'trafficjam.timestamp, '\n .'trafficjam.road_name '\n .'FROM trafficjam '\n .'JOIN trafficjam tj ON tj.from = trafficjam.from AND tj.to = trafficjam.to AND tj.start = trafficjam.start AND tj.id = ? ';\n \n // Prepare statement.\n $stmt = $this->conn->prepare($query);\n \n // Bind id parameter.\n $stmt->bindParam(1, $this->id);\n \n // Execute query.\n $stmt->execute();\n \n return $stmt;\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 }", "protected function socketSelect() {}", "public function select($what = \"*\"){\n\t\t\tif(is_string($what)){\n\t\t\t\t$this->select = \"SELECT \" . $what . \" FROM \" . $this->table;\n\t\t\t}else{\n\t\t\t\t$this->select = false;\n\t\t\t}\n\t\t\treturn $this;\n\t\t}", "function selMethod($selmethid, $methval) {\n\techo \"<SELECT ID=$selmethid CLASS=selmeth>\\n\";\n\techo \"<OPTION VALUE='PUT'\";\n\tif ($methval == \"PUT\") {\n\t\techo \" SELECTED\";\n\t}\n\techo \">PUT</OPTION>\\n\";\n\techo \"<OPTION VALUE='POST'\";\n\tif ($methval == \"POST\") {\n\t\techo \" SELECTED\";\n\t}\n\techo \">POST</OPTION>\\n\";\n\techo \"<OPTION VALUE='DELETE'\";\n\tif ($methval == \"DELETE\") {\n\t\techo \" SELECTED\";\n\t}\n\techo \">DELETE</OPTION>\\n\";\n\techo \"</SELECT>\\n\";\n\t\n\techo \"<SCRIPT>\\$(\\\"#$selmethid\\\").selectmenu({width : 'auto'});</SCRIPT>\\n\";\n}", "protected function select(): Select\n {\n return $this->select;\n }", "public function select($select = '*')\n {\n $this->_type = db::SELECT;\n\n if (is_string($select))\n {\n $select = explode(',', $select);\n }\n elseif (is_object($select))\n {\n $this->_select[] = $select;\n }\n\n foreach ($select as $val)\n {\n if ($val !== '')\n {\n $this->_select[] = $val;\n }\n }\n\n return $this;\n }", "public function select(): array\n {\n return $this->getApiRequestor()->getRequest('/api/expiration-rule/select');\n }", "public function select($name, $id = '')\n\t{\n\t\treturn sprintf('<select name=\"pets\" id= \"pet-select\">', $name, $id);\n\t}", "public function createSelect($where = null, $order = null, $count = null, $offset = null, $columns = null)\n\t{\n\t\tif (!($where instanceof Zend_Db_Table_Select)) {\n\t\t\t$select = $this->select(true);\n\t\t\n\t\t\tif ($where !== null) {\n\t\t\t\t$this->_where($select, $where);\n\t\t\t}\n\t\t\n\t\t\tif ($order !== null) {\n\t\t\t\t$this->_order($select, $order);\n\t\t\t}\n\t\t\n\t\t\tif ($count !== null || $offset !== null) {\n\t\t\t\t$select->limit($count, $offset);\n\t\t\t}\n\t\t\n\t\t\tif ($columns !== null) {\n \t\t$select->reset(Zend_Db_Table_Select::COLUMNS);\n\t\t\t\t$select->columns($columns);\n\t\t\t}\n\t\t} else {\n\t\t\t$select = $where;\n\t\t}\n\t\t\n\t\treturn $select;\n\t}", "function select($id)\n\t{\n\treturn parent::select($id);\n\t}", "function select($id)\n\t{\n\treturn parent::select($id);\n\t}", "function _select($name,$options){\n\t\t$selectAtts = \"name='$name' \";\n\t\t$optionFields = '';\n\t\tif ($options['multiple']) {\n\t\t\t$selectAtts.=\"multiple='multiple' \";\n\t\t}\n\t\tforeach ($options['options'] as $key => $label) {\n\t\t\t$optionAtts = \"value = \\\"$key\\\" \";\n\t\t\tif ($key == $options['value']) {\n\t\t\t\t$optionAtts.= \"selected='selected' \";\n\t\t\t}\n\t\t\t$optionFields.=sprintf($this->inputTags['option'],$label,$optionAtts);\n\t\t}\n\t\t\n\t\treturn sprintf($this->inputTags['select'],$optionFields,$selectAtts);\t\t\n\t}", "protected function createFromSelect($elementName='from', $label='')\n {\n $valid = array();\n $invalid = array();\n\n $organization = $this->mailer->getOrganization();\n // The organization\n $key = 'organization';\n if ($name = $organization->getContactName()) {\n $extra = $organization->getName();\n } else {\n $name = $organization->getName();\n $extra = null;\n }\n if ($email = $organization->getEmail()) {\n $title = false;\n $valid[] = $key;\n } else {\n $title = $this->_('Organization does not have an e-mail address.');\n $invalid[] = $key;\n }\n $options[$key] = $this->createMultiOption(array(\\MUtil_Model::REQUEST_ID => $organization->getId()),\n $name, $email, $extra, $title,\n array('controller' => 'organization', 'action' => 'edit'));\n $this->fromOptions[$key] = $email;//$name . ' <' . $email . '>';\n\n // The user\n $key = 'user';\n $name = $this->currentUser->getFullName();\n $extra = null;\n if ($email = $this->currentUser->getEmailAddress()) {\n $title = false;\n $valid[] = $key;\n } else {\n $title = $this->_('You do not have an e-mail address.');\n $invalid[] = $key;\n }\n $options[$key] = $this->createMultiOption(array(),\n $name, $email, $extra, $title,\n array('controller' => 'option', 'action' => 'edit'));\n $this->fromOptions[$key] = $email;//$name . ' <' . $email . '>';\n\n // As \"the\" application\n $key = 'application';\n $user = $this->loader->getCurrentUser();\n if ($user->hasPrivilege('pr.plan.mail-as-application') &&\n isset($this->project->email['site'])) {\n\n if ($email = $this->project->email['site']) {\n $options['application'] = $this->createMultiOption(array(), $this->project->name, $email);\n $valid[] = 'application';\n $this->fromOptions[$key] = $email;//$this->project->name . ' <' . $email . '>';\n }\n }\n\n $firstSelectable = reset($valid);\n $element = $this->form->createElement('radio', $elementName, array(\n 'disable' => $invalid,\n 'escape' => (!$this->view),\n 'label' => $label,\n 'multiOptions' => $options,\n 'required' => true,\n 'value' => $firstSelectable,\n ));\n\n $element->addValidator('InArray', false, array('haystack' => $valid));\n return $element;\n }", "public function availableTenantResourceOperationsRequest()\n {\n\n $resourcePath = '/tenant';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];\n foreach ($formParamValueItems as $formParamValueItem) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValueItem\n ];\n }\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'OPTIONS',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "function select() {\r\n\t\t$query = 'SELECT * FROM `subscribers`';\r\n\t\t\r\n\t\t$this->query = $query;\r\n\t}", "function selectHtml($idPlato, $name, $condicion, $parametros, $valorSeleccionado = \"\", $blanco = true, $orderby = \"1\") {\r\n $select = \"<select name='$name' id='$idPlato'>\";\r\n if ($blanco) {\r\n $select.= \"<option value='' />&nbsp $ </option>\";\r\n }\r\n $lista = $this->getList($condicion, $parametros, $orderby);\r\n foreach ($lista as $objeto) {\r\n $selected = \"\";\r\n if ($objeto->getIdPlato() == $valorSeleccionado) {\r\n $selected = \"selected\";\r\n }\r\n\r\n $select = \"<option $selected value='\" . $objeto->getIdPlato() . \"' >\" . $objeto->getNombre() . \",\" . $objeto->getDescripcion() .\r\n $objeto->getPrecio() . \"</option>\";\r\n }\r\n\r\n $select.=\"</select>\";\r\n return $select;\r\n }" ]
[ "0.6695744", "0.6695744", "0.6675248", "0.6675248", "0.6675248", "0.6598708", "0.6470805", "0.6377854", "0.62820184", "0.6233816", "0.6223679", "0.6196871", "0.61688024", "0.6024678", "0.59473556", "0.59279233", "0.5911109", "0.58984977", "0.5851167", "0.5849457", "0.58402073", "0.58350366", "0.5797302", "0.57807076", "0.5773602", "0.5773289", "0.5760468", "0.573851", "0.571738", "0.56936234", "0.56840163", "0.5656377", "0.56352854", "0.5634839", "0.5611546", "0.55985945", "0.55962104", "0.5595021", "0.55941534", "0.55870855", "0.5579723", "0.5573049", "0.55655676", "0.554603", "0.554603", "0.55410033", "0.5533861", "0.55327094", "0.55295956", "0.552601", "0.55185497", "0.5511338", "0.5510319", "0.55100137", "0.55020463", "0.5484055", "0.5476271", "0.54757774", "0.5456204", "0.54317915", "0.5421009", "0.5407083", "0.5402315", "0.54013777", "0.54006195", "0.5395977", "0.5394938", "0.53880507", "0.5384812", "0.5375036", "0.53747475", "0.53747475", "0.5369914", "0.53664213", "0.53605664", "0.5355332", "0.5349903", "0.5349755", "0.5346305", "0.5342499", "0.53413445", "0.5338042", "0.53358614", "0.5331868", "0.532259", "0.5321536", "0.53136396", "0.53035057", "0.5297681", "0.52946943", "0.52938235", "0.5293701", "0.5280518", "0.52792233", "0.52784926", "0.52784926", "0.5267424", "0.5264715", "0.5251632", "0.524999", "0.5245718" ]
0.0
-1
Check if the specified column is defined
public function hasColumn($name);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function columnExists( $tablename, $columnname );", "public function has(string $col) : bool;", "function has_column($column_name)\n {\n if (empty($this->object->_table_columns)) {\n $this->object->lookup_columns();\n }\n return array_search($column_name, $this->object->_table_columns) !== FALSE;\n }", "function mf_mysql_column_exist($table_name, $column_name,$dbh) {\r\n\r\n\t\t$query = \"SHOW COLUMNS FROM $table_name LIKE '$column_name'\";\r\n\t\t$sth = mf_do_query($query,array(),$dbh);\r\n\t\t$row = mf_do_fetch_result($sth);\r\n\t\t\r\n\t\tif(!empty($row)){\r\n\t\t\treturn true;\t\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "function verify_column( $column, $table, $db = null ) {\n\n\t\t$columns = $this->get_columns( $table, $db );\n\t\treturn in_array( $column, $columns );\n\n\t}", "public function hasColumn($column) {\n\t\t$returnValue = FALSE;\n\t\tif (array_key_exists($column, $this->_allowedColumns)) {\n\t\t\t$returnValue = TRUE;\n\t\t}\n\n\t\treturn $returnValue;\n\t}", "static public function hasColumn($table, $column)\n {\n return self::call(__FUNCTION__ , func_get_args());\n }", "public function hasColumn($columnName)\r\n {\r\n }", "private function has_column($column)\n {\n $object_vars = get_object_vars($this);\n\n //check if the key exists\n return array_key_exists($column, $object_vars);\n }", "function column_exists($column, $table)\n {\n $exists = false;\n $this->container->db->setQuery(\"SHOW columns FROM `{$table}`\");\n $columns = $this->contaner->db->loadAssocList();\n\n if (is_array($columns)) while (list ($key, $val) = each($columns)) {\n if ($val['Field'] == $column) {\n $exists = true;\n break;\n }\n }\n\n return $exists;\n }", "protected function checkColumnExists($column) {\n\t\tif (array_key_exists($column, $this->columns)) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function hasColumn($name) {\n $info = $this->_data->getDeepValue('columns/' . $name);\n return !empty($info);\n }", "public function columnExists($column)\n {\n return isset($this->columns[$column]);\n }", "public function validate_column($column)\n {\n }", "public function hasColumn($tableName, $columnName);", "function issetTableColumn($table_name, $column_name)\n{\n global $wpdb;\n $columns = $wpdb->get_results(\"SHOW COLUMNS FROM \" . $table_name, ARRAY_A);\n foreach ($columns as $column) {\n if ($column['Field'] == $column_name) {\n return true;\n }\n }\n}", "public function hasColumn(string $id): bool\r\n {\r\n return array_key_exists($id, $this->columns);\r\n }", "public function isColumn($key)\n {\n return in_array(strtolower($key), $this->columns());\n }", "function spr_exclude_column_found($column) {\nglobal $spr_exclude_db_debug;\n\n\t$rs = safe_query('SELECT * FROM '.safe_pfx('txp_section'),$spr_exclude_db_debug);\n\t$a = nextRow($rs);\n\treturn array_key_exists($column, $a);\n}", "public function testIsColumnAvailable()\n {\n /* ----------------------------------------------------\n * in below $csvData var we have faked the header data\n * -----------------------------------------------------*/\n $csvData = [['first_name','last_name','address']]; \n \n $column = 'first_name';\n\n /*\n |--------------------------------------------------------------------------\n | Success Scenario\n |--------------------------------------------------------------------------\n |\n | Let's test the success scenario\n |\n */\n\n $resp = $this->isColumnAvailable($column, $csvData);\n\n /* ------------------------------------------------------------------------------\n * we compare the response of isColumnAvailable in case when column is available\n * -------------------------------------------------------------------------------*/\n $this->assertEqualsCanonicalizing($resp,[\"key\"=>0,\"name\"=>\"first_name\"]);\n \n\n /*\n |--------------------------------------------------------------------------\n | Failure Scenario\n |--------------------------------------------------------------------------\n |\n | Let's test the failure scenario\n |\n */\n\n $resp = $this->isColumnAvailable('unknown_column', $csvData);\n\n /* ----------------------------------------------------------------------------------\n * we compare the response of isColumnAvailable method in case when column not found\n * -----------------------------------------------------------------------------------*/\n $this->assertFalse($resp);\n \n }", "public function column_exists($table_name, $column, $dbname = null)\n {\n $columns = $this->columns($table_name, $dbname);\n return sizeof(array_intersect($columns, (array) $column)) === sizeof((array) $column);\n }", "function Pico_CheckTable($table_name, $column, $definition)\n{\n\tglobal $db;\n\t\n\t$fields = $db->assoc('SHOW COLUMNS FROM `'.$table_name.'`');\n\t$all_fields = array();\n\tforeach ($fields as $f)\n\t{\n\t\t$all_fields[] = $f['Field'];\n\t}\n\t\n\tif (!in_array($column, $all_fields))\n\t{\n\t\t$db->run('ALTER TABLE `'.$table_name.'` ADD COLUMN `'.$column.'` ' . $definition);\n\t}\n}", "protected function hasColumn($name)\n\t{\n\t\t$columns = $this->getAllColumnsNames();\n\n\t\treturn in_array($name, $columns);\n\t}", "public function columnExists($table, $column)\n {\n return $this->query($table);\n }", "public function CheckExitColumn($table,$col){\n if(trim($col) == '') return array();\n $db_column= new db_query(\"SHOW COLUMNS FROM \" . $table . \" LIKE '\" . trim($col) . \"'\");\n //$result = mysqli_query();\n $exists = mysqli_fetch_assoc($db_column->result);\n unset($db_column);\n if(!empty($exists)){\n return $exists;\n }\n return array();\n }", "public function hasColumn($column)\n {\n $table = $this->container->make($this->getModelName())->getTable();\n\n if (!isset($this->db_columns[$table])) {\n $this->db_columns[$table] = \\Schema::getColumnListing($table);\n }\n return in_array($column, $this->db_columns[$table]);\n }", "public function hasColumns(){\n return $this->_has(3);\n }", "function columnExists($tableName, $columnName) {\n\t\t$siteDao =& DAORegistry::getDAO('SiteDAO');\n\t\t$dict = NewDataDictionary($siteDao->getDataSource());\n\n\t\t// Make sure the table exists\n\t\t$tables = $dict->MetaTables('TABLES', false);\n\t\tif (!in_array($tableName, $tables)) return false;\n\n\t\t// Check to see whether it contains the specified column.\n\t\t// Oddly, MetaColumnNames doesn't appear to be available.\n\t\t$columns = $dict->MetaColumns($tableName);\n\t\tforeach ($columns as $column) {\n\t\t\tif ($column->name == $columnName) return true;\n\t\t}\n\t\treturn false;\n\t}", "public function isColumnExist(string $table = null, string $column = null): int\n {\n if (!$table || !$column) {\n return -1;\n }\n\n $table = \\HtmlAnalyzer::sanitizeAndRemoveTags($table);\n $column = \\HtmlAnalyzer::sanitizeAndRemoveTags($column);\n\n $query = \"SELECT COLUMN_NAME\n FROM INFORMATION_SCHEMA.COLUMNS\n WHERE TABLE_SCHEMA = :dbName\n AND TABLE_NAME = :tableName\n AND COLUMN_NAME = :columnName\";\n\n $stmt = $this->prepare($query);\n\n try {\n $stmt->bindValue(':dbName', $this->dsn['database'], \\PDO::PARAM_STR);\n $stmt->bindValue(':tableName', $table, \\PDO::PARAM_STR);\n $stmt->bindValue(':columnName', $column, \\PDO::PARAM_STR);\n $stmt->execute();\n $stmt->fetch();\n\n if ($stmt->rowCount()) {\n return 1; // column already exist\n }\n return 0; // column to add\n } catch (\\PDOException $e) {\n $this->logSqlError($query, $e->getMessage());\n return -1;\n }\n }", "private function hasNoColumns() {\n if (count($this->columns) === 0) return true;\n\n\n if (count($this->columns) === 1 && isset($this->columns['*'])) {\n return true;\n }\n\n return false;\n }", "function diy_check_table_columns($table_name, $field_name, $db_connection = 'mysql') {\n\t\t$connection = DB::connection($db_connection);\n\t\treturn $connection->getSchemaBuilder()->hasColumn($table_name, $field_name);\n\t}", "public function hasColumnNumber(){\n return $this->_has(5);\n }", "public function hasColumn(string $table, string $column): bool\n {\n return in_array(\n strtolower($column), array_map('strtolower', $this->getColumnListing($table))\n );\n }", "public function isValidColumnType($column);", "public function hasColumn($column)\n {\n $parameters = [];\n $parameters['handler'] = 'aql';\n $parameters['explanation'] = \"Checking if any document within the table has the '\"\n .implode(', ', (array) $column)\n .\"' column(s).\";\n $parameters['column'] = $column;\n\n return $this->addCommand('hasAttribute', $parameters);\n }", "protected function hasHook($column)\n {\n // If developer provided column prefixed with table name we will\n // not even try to map the column, since obviously the value\n // refers to the actual column name on the queried table.\n return is_string($column) && strpos($column, '.') === false;\n }", "public function isAvailable($column, $value){\n\n $vars = $this->theHand->fetchWithConditions($this->table,$column, \"$column='$value'\");\n\n return count($vars)==0;\n\n\n }", "function f_fieldExists($link, $table, $column, $column_attr = \"VARCHAR( 255 ) NULL\") {\r\n $exists = false;\r\n $columns = mysqli_query($link, \"SHOW COLUMNS FROM $table LIKE '\".$column.\"'\");\r\n //ferror_log(\"SQL: $sql \". \"returns \". $num_rows . \" rows.\");\r\n $exists = ( mysqli_num_rows($columns) )?TRUE:FALSE;\r\n if (!$exists) {\r\n ferror_log(\"ALTER TABLE `$table` ADD `$column` $column_attr\");\r\n if (mysqli_query($link, \"ALTER TABLE `$table` ADD `$column` $column_attr\")) {\r\n return TRUE;\r\n }\r\n } else {\r\n return TRUE;\r\n }\r\n return FALSE;\r\n}", "public function columnExists($columnName)\n {\n return $this->getChildren()->controlExists($columnName, 'ContainerModelBase');\n }", "public function __isset($columnName)\n {\n return array_key_exists($columnName, $this->data);\n }", "private function checkColumn($columnName,\n $table = TABLE_ORDERS_SHOPGATE_ORDER\n ) {\n $result = xtc_db_query(\"show columns from `{$table}`\");\n\n $exists = false;\n while ($field = xtc_db_fetch_array($result)) {\n if ($field['Field'] == $columnName) {\n $exists = true;\n break;\n }\n }\n\n return !$exists;\n }", "public function checkColumnExists($fieldKey)\n {\n\n if(in_array($fieldKey, $this->_tableFields)) {\n return true;\n }\n return false;\n }", "public function exists(string $column): bool\n {\n if (trim($column) === '') {\n throw new Exception\\InvalidArgumentException(__METHOD__ . ' Column name cannot be empty');\n }\n\n return $this->columns->offsetExists($column);\n }", "protected function checkColumn($table, $column, $alias)\n {\n foreach ($this->columns as $col) {\n if($col->table->alias == $table->alias && $col->name == $column) return true;\n if(strlen($alias) && $col->alias == $alias) throw new \\Exception('WpSqlBuilder - Trying to add two different columns with same alias \"'.$alias.'\".', 1);\n }\n return false;\n }", "public function columnExists(Property $property);", "public function hasProperty($column)\n\t{\t\n\t\tif(!$this->columns->isKey($column))\n\t\t\tthrow new NoColumnInTableException($column, $this->table_name());\n\t\treturn true;\n\t}", "private function columnExists($column_name, $table_columns) {\r\n foreach ($table_columns as $column) {\r\n if($column_name == $column[\"Field\"]) return true;\r\n }\r\n return false;\r\n }", "public function getColumnDefinition($column){ }", "public function validate_column( $column ) {\n $valid_columns = array(\n 'post_date', 'post_date_gmt', 'post_modified',\n 'post_modified_gmt', 'comment_date', 'comment_date_gmt'\n );\n /**\n * Filter the list of valid date query columns.\n *\n * @since 3.7.0\n *\n * @param array $valid_columns An array of valid date query columns. Defaults are 'post_date', 'post_date_gmt',\n * 'post_modified', 'post_modified_gmt', 'comment_date', 'comment_date_gmt'\n */\n if ( ! in_array( $column, apply_filters( 'date_query_valid_columns', $valid_columns ) ) )\n $column = 'post_date';\n \n return $column;\n }", "public function __isset($name)\n {\n return in_array($name, $this->columns);\n }", "public function checkcol($tbl, $col) \n {\n $this->connect();\n \n //connect to database\n if (!empty($tbl)) \n {\n try\n {\n $sql = \"SELECT count(*) \n FROM information_schema.COLUMNS \n WHERE \n TABLE_SCHEMA = '\" . DN . \"' \n AND TABLE_NAME = '\" . $tbl . \"' \n AND COLUMN_NAME = '\" . $col . \"'\";\n \n return $this->GetOne($sql);\n }\n catch(PDOException $e) \n {\n return $e->getMessage();\n }\n } else\n {\n return 'No query provided';\n die;\n }\n $this->disconnect();\n \n //disconnect from database\n \n \n }", "public static function hasColumn($table, $column)\n {\n $column = str_replace($table.'.', '', $column);\n $minutes = Config::get('lara_util.cache.time');\n\n // if all cache is disabled\n if ($minutes === false) {\n return Schema::hasColumn($table, $column);\n }\n\n $columnList = Cache::remember('table_schema_' . $table, $minutes, function () use ($table) {\n return Schema::getColumnListing($table);\n });\n\n if (in_array($column, $columnList)) {\n return true;\n }\n\n return false;\n }", "protected function _hasHeader() {\n return (isset ($this->colName) && !empty ($this->colName));\n }", "function isColumnValid(array $grid, int $x, bool $verbose = false): bool;", "public static function isValidColumn($model, $column)\n {\n // check if the model exists\n try\n {\n $table = Doctrine::getTable($model);\n }\n catch (Exception $e)\n {\n return false;\n }\n \n // Do we have relations in the column name?\n if (ullGeneratorTools::hasRelations($column))\n {\n $relations = UllGeneratorTools::relationStringToArray($column);\n $nativeColumn = array_pop($relations);\n $finalModel = UllGeneratorTools::getFinalModelFromRelations($model, $relations);\n \n return self::isValidColumn($finalModel, $nativeColumn);\n }\n \n // For native columns (without relations)\n else\n {\n if ($table->hasColumn($column))\n {\n return true;\n }\n \n if ($table->hasRelation('Translation'))\n {\n $finalModel = UllGeneratorTools::getFinalModelFromRelations($model, 'Translation');\n return self::isValidColumn($finalModel, $column);\n }\n }\n \n return false;\n }", "public function validate_column( $column ) {\r\n\t\t$valid_columns = array(\r\n\t\t\t'post_date', 'post_date_gmt', 'post_modified',\r\n\t\t\t'post_modified_gmt', 'comment_date', 'comment_date_gmt'\r\n\t\t);\r\n\t\t/**\r\n\t\t * Filter the list of valid date query columns.\r\n\t\t *\r\n\t\t * @since 3.7.0\r\n\t\t *\r\n\t\t * @param array $valid_columns An array of valid date query columns. Defaults are 'post_date', 'post_date_gmt',\r\n\t\t * 'post_modified', 'post_modified_gmt', 'comment_date', 'comment_date_gmt'\r\n\t\t */\r\n\t\tif ( ! in_array( $column, apply_filters( 'date_query_valid_columns', $valid_columns ) ) )\r\n\t\t\t$column = 'post_date';\r\n\r\n\t\treturn $column;\r\n\t}", "public function hasHeader() {\n return is_array($this->colName) && !empty($this->colName);\n }", "public function findColumn(string $column);", "public function has(array $data, $column)\n {\n if (strpos($column, '.')) {\n list($model, $column) = explode('.', $column);\n return isset($data[$model][$column]) || isset($data[\"{$model}.{$column}\"]);\n }\n return isset($data[$this->model->alias][$column]) || isset($data[\"{$this->model->alias}.{$column}\"]) || isset($data[$column]);\n }", "function _mysql_field_exists($table, $field) {\n $sql = \"SHOW COLUMNS FROM $table LIKE '$field'\";\n $r = db_query($sql);\n $row = db_row($r['result']);\n\n if($row) {\n return true;\n }\n return false;\n}", "public function isFieldPresentByColumnTable($columnName, $tableName)\n\t{\n\t\tif (!isset($this->_fieldby_tblcol_cache[$tableName])) {\n\t\t\t$rows = (new App\\Db\\Query())->select(['columnname'])->from('vtiger_field')->where(['tablename' => $tableName, 'presence' => [0, 2]])->column();\n\t\t\tif ($rows) {\n\t\t\t\t$this->_fieldby_tblcol_cache[$tableName] = $rows;\n\t\t\t}\n\t\t}\n\t\t// If still the field was not found (might be disabled or deleted?)\n\t\tif (!isset($this->_fieldby_tblcol_cache[$tableName])) {\n\t\t\treturn false;\n\t\t}\n\t\treturn in_array($columnName, $this->_fieldby_tblcol_cache[$tableName]);\n\t}", "protected function columnType()\n {\n $table = $this->ask('Enter the name of desired table');\n $this->checkInput($table);\n $column = $this->ask('Enter the desired column');\n $this->checkInput($column);\n $this->service->columnType($table, $column);\n }", "protected function checkInModal($column){\n\n if($this->model->where($column, '=',$this->token)->exists()){\n return true;\n }\n return false;\n }", "private function isField($fld)\n {\n return isset($this->columns->{$fld});\n }", "public static function tableHasColumn(DomElement $table, $columnName)\n {\n // Is this a table node?\n if ($table->tagName !== 'table') {\n $msg = 'tableHasColumn\\'s first argument must be a table node.';\n throw new DALParserException($msg);\n }\n\n /*\n Check UDTs ? If yes, then change the fn name to schemaHasColumn().\n */\n\n // Check Table Columns.\n $cols = $table->getElementsByTagName('columns')->item(0);\n if ($cols !== NULL) {\n $cols = $cols->getElementsByTagName('column');\n foreach ($cols as $col) {\n if ($col->nodeValue === $columnName) {\n return TRUE;\n }\n }\n }\n\n return FALSE;\n\n }", "function maybe_add_column($table_name, $column_name, $create_ddl)\n {\n }", "public static function columns_data($table, $column) {\n $columns = static ::columns($table);\n foreach($columns as $_column) {\n if (strtolower($_column['Field']) == strtolower($column)) {\n return $_column;\n }\n }\n throw new Exception(\"No Column Found\");\n }", "public function columnExists($name, $in_database = true)\n\t{\n\t\t$name = (string)$name;\n\n\t\tif ( $in_database ) {\n\t\t\treturn $this->createColumnReflection($name, array())->exists();\n\t\t}\n\n\t\treturn isset($this->columns[$name]);\n\t}", "private function columnExistsInTable($columnName, $columnsFromDatabase) {\n foreach ($columnsFromDatabase as $colFromDb) {\n if ($columnName === $colFromDb->Field) {\n return true;\n }\n }\n //if we got to here, the column is NOT in the db\n return false;\n }", "public function getField($column) {\n\t\tif (!$column) return ['QUERY'];\n\t\treturn false;\n\t}", "public function qualifyColumn($column);", "public function hasColumns($type = NULL)\n\t{\n\t\treturn count($type == NULL ? $this->getColumns() : $this->getColumns($type)) > 0;\n\t}", "static public function hasColumns($table, array $columns)\n {\n return self::call(__FUNCTION__ , func_get_args());\n }", "public function hasColumnType($name);", "public function hasColumnType($name);", "function add_column_if_not_exist($dbtable, $column, $column_attr = \"varchar( 255 ) NULL\" ) {\n $exists = false;\n $columns = mysql_query(\"show columns from $dbtable\");\n while ($c = mysql_fetch_assoc($columns)) {\n if($c['Field'] == $column) {\n $exists = true;\n break;\n }\n } \n if (!$exists) {\n mysql_query(\"ALTER TABLE `$dbtable` ADD `$column` $column_attr\");\n }\n }", "public function validateIsFullColumn($selectedColumn){\r\n //in case of a full Column\r\n if($this->board->gameBoard[0][$selectedColumn-1] != Board::CELL){\r\n columnIsFullMsg($this->currentPlayer);\r\n return true;\r\n }\r\n return false;\r\n }", "public function isNull($column)\n {\n return !isset($this->data[$column]) || !strlen($this->data[$column]);\n }", "function checkColumnStatus($table, $column, $status){\n\n global $connection;\n\n $query = \"SELECT * FROM $table WHERE $column = '$status' \";\n $result = mysqli_query($connection, $query);\n \n return mysqli_num_rows($result);\n\n}", "public function hasTableAndColumn(): Closure\n {\n return function (string $table_name, string $column) {\n return (Schema::hasTable($table_name) && Schema::hasColumn($column));\n };\n }", "protected function columnMatchCheck ( $lineColumns ) {\n }", "public function testGetColumn() {\n\n $obj = new DataTablesRequest();\n\n $this->assertNull($obj->getColumn(\"data\"));\n\n $obj->setColumns([$this->dtColumn]);\n $this->assertSame($this->dtColumn, $obj->getColumn(\"data\"));\n }", "protected static function columnExists($sTable, $sColumn)\n {\n $oConfig = Registry::getConfig();\n $sDbName = $oConfig->getConfigParam('dbName');\n $sSql = 'SELECT 1\n FROM information_schema.COLUMNS\n WHERE\n TABLE_SCHEMA = ?\n AND TABLE_NAME = ?\n AND COLUMN_NAME = ?';\n\n $oDb = DatabaseProvider::getDb();\n\n return (bool)$oDb->getOne($sSql, array($sDbName, $sTable, $sColumn));\n }", "function isOrigamiColumn(&$Model, $column, $modelName = null) {\n $testModel = $Model;\n\n // If a column is passed with a . in it like \"Users.address\" then separate\n // the name into model and column\n if (stripos($column, '.')) {\n list($modelName, $column) = explode('.', $column);\n }\n\n // If a modelName is specified then test against the specified model\n if ($modelName) {\n if (isset($testModel->name)) {\n $currentModelName = $testModel->name;\n } else {\n $currentModelName = $modelName;\n }\n if ($currentModelName != $modelName) {\n if (App::import('Model', $modelName)) {\n $testModel =& ClassRegistry::init($modelName);\n } else {\n $testModel = false;\n }\n }\n }\n\n if (isset($testModel->_schema[$column]['origami'])) {\n if ($testModel->_schema[$column]['origami']) {\n return true;\n }\n } elseif (!isset($testModel->_schema[$column])) {\n return true;\n }\n\n return false;\n }", "public function bindColumn($column, &$variable, int $type = null): bool;", "function get_column_type ($table_name, $column_name) { \n\n\t$column_row_arr = NULL;\n\t\n\t// Get the array of meta data for the table\n\tlist($errArr, $columns_arr) = show_columns($table_name);\n if ( count($columns_arr) > 0) {\n \t// Loop through metadata\n \tforeach ($columns_arr as $columns_row)\n \t{\n \t\tif ($columns_row[DFT_FIELD] == $column_name) {\n \t\t\t$column_row_arr = $columns_row;\n \t\t\tbreak; // column name is found in meta data \n \t\t}\n \t}\n }\n\treturn $column_row_arr;\n}", "public function isColumnModified($col)\n {\n return $this->modifiedColumns && isset($this->modifiedColumns[$col]);\n }", "public function isColumnModified($col)\n {\n return $this->modifiedColumns && isset($this->modifiedColumns[$col]);\n }", "public function isColumnModified($col)\n {\n return $this->modifiedColumns && isset($this->modifiedColumns[$col]);\n }", "public function isColumnModified($col)\n {\n return $this->modifiedColumns && isset($this->modifiedColumns[$col]);\n }", "public function isColumnModified($col)\n {\n return $this->modifiedColumns && isset($this->modifiedColumns[$col]);\n }", "public function isColumnModified($col)\n {\n return $this->modifiedColumns && isset($this->modifiedColumns[$col]);\n }", "public function isColumnModified($col)\n {\n return $this->modifiedColumns && isset($this->modifiedColumns[$col]);\n }", "public function isColumnModified($col)\n {\n return $this->modifiedColumns && isset($this->modifiedColumns[$col]);\n }", "public function isColumnModified($col)\n {\n return $this->modifiedColumns && isset($this->modifiedColumns[$col]);\n }", "public function isColumnModified($col)\n {\n return $this->modifiedColumns && isset($this->modifiedColumns[$col]);\n }", "public function isColumnModified($col)\n {\n return $this->modifiedColumns && isset($this->modifiedColumns[$col]);\n }", "public function isColumnModified($col)\n {\n return $this->modifiedColumns && isset($this->modifiedColumns[$col]);\n }", "public function checkEnableColumnEdit()\n\t{\n\t\treturn false;\n\t}", "private function checkSevenDayInCol():bool\n {\n $stmt = $this->pdo->query(\"SHOW COLUMNS FROM `distribution_municipalities` LIKE '%_sevendayin'\");\n return !is_bool($stmt->fetch());\n }" ]
[ "0.77556634", "0.7698059", "0.76775366", "0.76289475", "0.7594199", "0.7578685", "0.7512257", "0.750773", "0.74582183", "0.7422181", "0.7347159", "0.7330013", "0.7303591", "0.7299614", "0.7227518", "0.7213966", "0.7136048", "0.71041787", "0.7025581", "0.7018138", "0.6970771", "0.69506377", "0.6905121", "0.69036067", "0.6902037", "0.68982196", "0.68450177", "0.68169606", "0.6788261", "0.6779721", "0.6779417", "0.67746836", "0.6769031", "0.67669994", "0.6763821", "0.670266", "0.67017883", "0.6687546", "0.6683057", "0.66583043", "0.665085", "0.66410226", "0.65912306", "0.6588242", "0.65851355", "0.65535706", "0.6539065", "0.65157807", "0.64802593", "0.64752", "0.647025", "0.6465828", "0.6461846", "0.6453644", "0.6428455", "0.64029145", "0.6343618", "0.6330884", "0.6264842", "0.6251295", "0.6230508", "0.62252355", "0.6181788", "0.6174032", "0.61681086", "0.61489373", "0.6140703", "0.61343664", "0.6127693", "0.6114094", "0.61066186", "0.6095911", "0.6084203", "0.6081152", "0.6081152", "0.6080406", "0.605631", "0.605264", "0.60510826", "0.6044043", "0.6025252", "0.60031116", "0.5998496", "0.598991", "0.5988655", "0.5980619", "0.59768534", "0.59768534", "0.59768534", "0.59768534", "0.59768534", "0.59768534", "0.59768534", "0.59768534", "0.59768534", "0.59768534", "0.59768534", "0.59768534", "0.59723645", "0.5950851" ]
0.75849193
5
Gets a cache provider from its configuration key
public function get($name = null);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getCacheProvider()\n {\n if (!self::$provider) {\n self::$provider = new ArrayCache();\n }\n\n return self::$provider;\n }", "static public function cache($provider = null) {\n $impl = self::instance();\n return $impl->get_resource('cache', $provider);\n }", "public function provider($key);", "static public function getCache($key)\n {\n if (getenv('AMTEL_CACHE') == 'redis') {\n return Cache::store('redis')->get($key);\n }\n }", "public function get($configKey, $key);", "public function get($cache_name);", "public function getProvider();", "public function getProvider();", "public function getProvider();", "public function getItem(string $key): CacheItemInterface;", "public function getItem($key): CacheItem;", "protected static function getCache($key)\n {\n \tif(!self::cacheExsits($key))\n \t\treturn null;\n \t$class = get_called_class();\n \treturn BaseEntityAbstract::$_entityCache[$class][$key];\n }", "public function getCacheAdapter();", "function get_cache($key) {\n return $this->get_cache_dir() . $key . '.cache';\n }", "public function get_provider() {\n\t\treturn $this->session->get($this->config['session_key'] . '_provider', null);\n\t}", "public function getCache($key)\n {\n return $this->memcache->get($key);\n }", "public function getProvider($provider_id);", "public function getObjFromCache($key);", "private function getCacheParameter($key)\n\t{\n\t\t$param = $this->app['config']['cache'][$key];\n\t\t\n\t\treturn $param;\n\t}", "function get($key)\n {\n return $this->cache->get($key, $this->group);\n }", "public function getProvider(string $key): OpenIdConfigurationProvider\n {\n if (!isset($this->providers[$key]) && isset($this->config['providers'][$key])) {\n $options = $this->config['providers'][$key];\n $providerOptions = [\n 'openIDConnectMetadataUrl' => $options['metadata_url'],\n 'clientId' => $options['client_id'],\n 'clientSecret' => $options['client_secret'],\n ] + $this->config['default_providers_options'];\n\n if (isset($options['redirect_uri'])) {\n $providerOptions['redirectUri'] = $options['redirect_uri'];\n } elseif (isset($options['redirect_route'])) {\n $providerOptions['redirectUri'] = $this->router->generate(\n $options['redirect_route'],\n $options['redirect_route_parameters'] ?? [],\n UrlGeneratorInterface::ABSOLUTE_URL\n );\n }\n\n if (isset($options['leeway'])) {\n $providerOptions['leeway'] = $options['leeway'];\n }\n\n if (isset($options['allow_http'])) {\n $providerOptions['allowHttp'] = $options['allow_http'];\n }\n\n $this->providers[$key] = new OpenIdConfigurationProvider($providerOptions);\n }\n\n if (isset($this->providers[$key])) {\n return $this->providers[$key];\n }\n\n throw new InvalidProviderException(sprintf('Invalid provider: %s', $key));\n }", "public function getProvider(): ProviderInterface;", "public function getCacheInstance($cacheName = null);", "public static function get($cacheName='_'){\n\t\tif(!isset(self::$_instances[$cacheName]))\n\t\t\tself::$_instances[$cacheName]=CCache::create(self::$_config[$cacheName]);\n\t\treturn self::$_instances[$cacheName];\n\t}", "protected function getCache() {\n\t\t$factory = $this->policy('rate_factoryname');\n\t\t$lifetime = $this->policy('rate_lock_timeout') + 60; // As long as it's longer than the actual timeout\n\t\t$cache = SS_Cache::factory($factory);\n\t\t$cache->setOption('automatic_serialization', true);\n\t\t$cache->setOption('lifetime', $lifetime);\n\t\treturn $cache;\n\t}", "public function getCache(string $driverName): \\Nofuzz\\SimpleCache\\CacheInterface;", "public function getValFromCache($key);", "protected function getCache($key = null) {\n if (!$key) {\n $key = \"data\";\n }\n $fullKey = \"cache-\".$this->getID().\"-{$key}\";\n\n $found = false;\n $cached = \\apcu_fetch($fullKey, $found);\n if ($found) {\n return $cached;\n }\n return false;\n }", "public function cache(string $key)\n {\n if (isset($this->caches[$key]) === true) {\n return $this->caches[$key];\n }\n\n // get the options for this cache type\n $options = $this->cacheOptions($key);\n\n if ($options['active'] === false) {\n // use a dummy cache that does nothing\n return $this->caches[$key] = new NullCache();\n }\n\n $type = strtolower($options['type']);\n $types = $this->extensions['cacheTypes'] ?? [];\n\n if (array_key_exists($type, $types) === false) {\n throw new InvalidArgumentException([\n 'key' => 'app.invalid.cacheType',\n 'data' => ['type' => $type]\n ]);\n }\n\n $className = $types[$type];\n\n // initialize the cache class\n $cache = new $className($options);\n\n // check if it is a useable cache object\n if (is_a($cache, 'Kirby\\Cache\\Cache') !== true) {\n throw new InvalidArgumentException([\n 'key' => 'app.invalid.cacheType',\n 'data' => ['type' => $type]\n ]);\n }\n\n return $this->caches[$key] = $cache;\n }", "public function load ($key) {\n return $this->cache->get($key);\n }", "public static function getProvider()\n {\n return self::$provider;\n }", "private function setupCache($key = 'default')\n {\n if ($this->isDisabled() || false == $this->getCacheEnabled($key)) {\n $cache = new DisabledCache();\n\n return $cache;\n }\n\n $cache = $this->getCacheDriver($this->getCacheType());\n\n return $cache;\n }", "protected function getCacheService()\n {\n return $this->services['cache'] = new \\phpbb\\cache\\service(${($_ = isset($this->services['cache.driver']) ? $this->services['cache.driver'] : ($this->services['cache.driver'] = new \\phpbb\\cache\\driver\\file())) && false ?: '_'}, ${($_ = isset($this->services['config']) ? $this->services['config'] : $this->getConfigService()) && false ?: '_'}, ${($_ = isset($this->services['dbal.conn']) ? $this->services['dbal.conn'] : ($this->services['dbal.conn'] = new \\phpbb\\db\\driver\\factory($this))) && false ?: '_'}, './../', 'php');\n }", "public function get($key = '*')\n {\n if ($key === '*') {\n return $this->cache;\n }\n return $this->cache[$key];\n }", "public function getProvider()\n {\n $config = $this->scopeConfig->getValue(\n 'payment/az2009_cielo_bank_slip/provider',\n \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE\n );\n\n return $config;\n }", "function get($key) {\n return $this->cacheObj->get($key);\n }", "public function getCacheTime($configKey);", "public function getCache() {\n\t\treturn $this->get('Cundd\\\\Rest\\\\Cache\\\\Cache');\n\t}", "public function getConfig($key);", "public function getConfig($key);", "public function getServiceProvider($provider);", "public function getFromMap($cacheKey);", "protected function getFromCache()\n {\n return $this->cache->get($this->getCacheKey());\n }", "protected function load_cache(){\r\n\t\tstatic $cached = null;\r\n\t\t\r\n\t\tif(!$cached){\r\n\t\t\t\r\n\t\t\tif($this->_cfg->get('sfversion') == 'auto'){\r\n\t\t\t\t// get version from sourceforge/cache\r\n\t\t\t\tif (!$this->is_cached()) $this->update_cache();\r\n\t\t\t\t$cached = (object)include($this->get_cache());\r\n\t\t\t}else{\r\n\t\t\t\t// use predefined version from config\r\n\t\t\t\t$cached = (object)$this->_cfg->get('sfversion');\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn $cached;\r\n\t}", "public function getCache();", "protected function getConfigCacheFactoryService()\n {\n return $this->services['config_cache_factory'] = new \\Symfony\\Component\\Config\\ResourceCheckerConfigCacheFactory(array());\n }", "public static function get (string $key)\n {\n $value = null;\n\n if (function_exists('resolve')) {\n $repo = resolve('config');\n\n if ($repo && method_exists($repo, 'get')) {\n $value = $repo->get($key);\n }\n }\n\n return $value;\n }", "abstract protected function getCacheClass();", "public function getConfigurationProvider() {\n\t\tif (!$this->configurationProvider) {\n\t\t\t$this->configurationProvider = $this->get('Cundd\\\\Rest\\\\Configuration\\\\TypoScriptConfigurationProvider');\n\t\t}\n\t\treturn $this->configurationProvider;\n\t}", "public function getFromCache() {}", "public function getProvider()\n {\n return $this->provider;\n }", "public function getProvider()\n {\n return $this->provider;\n }", "public function getProvider() {\n return $this->provider;\n }", "protected function getConfigCacheFactoryService()\n {\n return $this->services['config_cache_factory'] = new \\Symfony\\Component\\Config\\ResourceCheckerConfigCacheFactory(new RewindableGenerator(function () {\n yield 0 => ${($_ = isset($this->services['dependency_injection.config.container_parameters_resource_checker']) ? $this->services['dependency_injection.config.container_parameters_resource_checker'] : $this->services['dependency_injection.config.container_parameters_resource_checker'] = new \\Symfony\\Component\\DependencyInjection\\Config\\ContainerParametersResourceChecker($this)) && false ?: '_'};\n yield 1 => ${($_ = isset($this->services['config.resource.self_checking_resource_checker']) ? $this->services['config.resource.self_checking_resource_checker'] : $this->services['config.resource.self_checking_resource_checker'] = new \\Symfony\\Component\\Config\\Resource\\SelfCheckingResourceChecker()) && false ?: '_'};\n }, 2));\n }", "public static function get($key, $default = null){\n return \\Illuminate\\Cache\\Repository::get($key, $default);\n }", "public function getProvider()\n {\n return $this->Provider;\n }", "public function getAtCache($key)\n {\n return self::$__cache->getItem($key);\n }", "public static function getCache() {}", "public static function getCacheType();", "protected function getProvider()\n\t{\n\t\treturn $this->container->get('ant_badge.provider');\n\t}", "function cache_get( $key ) {\n\t\t\n\t\tif ( !extension_loaded('apc') || (ini_get('apc.enabled') != 1) ) {\n\t\t\tif ( isset( $this->cache[ $key ] ) ) {\n\t\t\t\treturn $this->cache[ $key ];\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn apc_fetch( $key );\n\t\t}\n\n\t\treturn false;\n\n\t}", "public function getProviderConfig($userId, $providerCode);", "public function get( $key ) {\n if ( isset( $this->cache[ $key ] ) ) {\n return $this->cache[ $key ];\n }else{\n return null;\n }\n }", "public function getCacheDriver(): ?string;", "public function get($key)\n {\n $prefixed = $this->prefix.$key;\n\n $cache = $this->table()->where('key', '=', $prefixed)->first();\n\n // If we have a cache record we will check the expiration time against current\n // time on the system and see if the record has expired. If it has, we will\n // remove the records from the database table so it isn't returned again.\n if (! is_null($cache)) {\n if (is_array($cache)) {\n $cache = (object) $cache;\n }\n\n if (time() >= $cache->expiration) {\n $this->forget($key);\n\n return;\n }\n\n return unserialize($cache->value);\n }\n }", "public function get( $key )\n {\n return $this->cache->get( $key );\n }", "public function get($key)\n {\n $_params = $this->buildParams(['id' => $this->prefix . $key]);\n\n try {\n $_response = $this->client->get($_params);\n\n if (array_get($_response, 'found', false)) {\n return array_get($_response, '_source.cache_value');\n }\n } catch (Missing404Exception $_ex) {\n // Not found\n }\n\n return null;\n }", "public function getCacheConfig()\n {\n $config = null;\n if (file_exists($this->options['cache_path'])) {\n $content = @file_get_contents($this->options['cache_path']);\n $config = new Config($this->app, $content);\n }\n return $config;\n }", "protected static function getCacheManager() {}", "public function get()\n {\n return Cache::get($this->cacheKey);\n }", "protected function get_cache_engine() {\n\n if ($this->caching && !$this->cache) {\n $rcube = rcube::get_instance();\n $ttl = $rcube->config->get('dbmail_cache_ttl', '10d');\n $this->cache = $rcube->get_cache('DBMAIL', $this->caching, $ttl);\n }\n\n return $this->cache;\n }", "public function getCache()\r\n\t{\r\n\t\treturn \\Bitrix\\Main\\Data\\Cache::createInstance();\r\n\t}", "public function getCache()\n {\n return $this->get('cache', false);\n }", "function get ($key) {\n return $this->memcached->get($key);\n }", "public function getByKey($key);", "protected function createProvider()\n {\n $this->provider = new Keycloak(\n [\n 'authServerUrl' => $this->config->get('authServerUrl'),\n 'realm' => $this->config->get('realm'),\n 'clientId' => $this->config->get('clientId'),\n 'clientSecret' => $this->config->get('clientSecret'),\n 'redirectUri' => $this->getRedirectUrl()\n ]\n );\n\n return $this->provider;\n }", "protected static function getCacheIdentifier() {}", "public function get($key)\n\t{\n\t\tLogger::getInstance()->log(LoggerEntry::CACHE, 'Cache', 'Get key from cache: ' . $key);\n\t\treturn $this->cacheLayer->get($key);\n\t}", "public function getConfigCacheKey() \n {\n return (string) $this->configCacheKey;\n }", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public static function getCache($key)\n\t{\n\t\t$key = str_replace(\"/\", \"\", $key);\n\t\tif (!file_exists(TwitchHelper::$cache_folder . DIRECTORY_SEPARATOR . \"kv\" . DIRECTORY_SEPARATOR . $key)) return false;\n\t\treturn file_get_contents(TwitchHelper::$cache_folder . DIRECTORY_SEPARATOR . \"kv\" . DIRECTORY_SEPARATOR . $key);\n\t}", "public static function get( $key )\n {\n return self::$cache->get( $key );\n }", "protected function getCache()\n {\n return $this->cache;\n }", "public function get($name) {\n if($this->memcached !== false) {\n return $this->memcached->get(\"MystoreApiCache_\".$name);\n } else {\n return $this->$name;\n }\n }", "public function getProvider(): string\n {\n return $this->provider;\n }", "public static function fetch($key) {\n\t\t\t$klass = self::getInstance();\n\t\t\treturn $klass->cache[crc32($key)];\n\t\t}", "private function getCacheServer()\n {\n /**\n * The configuration options are encapsulated in a class called RedisOptions\n * Here we setup the server configuration using the values from our config file\n */\n $redis_options = new RedisOptions();\n $redis_options->setServer(array(\n 'host' => self::$__endpoint,\n 'port' => self::$__port,\n 'timeout' => self::$__timeout\n ));\n // /**\n // * This is not required, although it will allow to store anything that can be serialized by PHP in Redis\n // */\n // $redis_options->setLibOptions ( array (\n // Redis::OPT_SERIALIZER => Redis::SERIALIZER_PHP\n // ) );\n \n /**\n * We create the cache passing the RedisOptions instance we just created\n */\n $redis_cache = new Redis($redis_options);\n \n return $redis_cache;\n }", "public function __invoke()\n {\n return new ConfigProvider(__DIR__ . '/../config/{{,*.}global,{,*.}local}.php');\n }", "public function cacheProvider()\n {\n return [\n [new ArrayCache()],\n [new NamespaceCache(new ArrayCache(), 'other')],\n ];\n }", "private function getProviderConfig($providerName)\n {\n return Config::get('providers.' . $providerName);\n }", "protected function getCacheManager() {}", "protected function getCacheManager() {}", "function _biurnal_conf_get_conf_cache($name) {\n ctools_include('object-cache');\n $cache = ctools_object_cache_get('biurnal_conf', $name);\n if (!$cache) {\n $cache = biurnal_conf_load($name);\n if ($cache) {\n $cache->locked = ctools_object_cache_test('biurnal_conf', $name);\n }\n }\n\n return $cache;\n}", "public function getCache() {\n $viewer = Engine_Api::_()->user()->getViewer();\n $viewer_id = $viewer->getIdentity();\n\n $isCacheEnabled = $this->isCacheEnabled();\n if (empty($isCacheEnabled))\n return false;\n\n $cacheName = $this->_cacheName();\n if (empty($cacheName))\n return null;\n $cache = Zend_Registry::get('Zend_Cache');\n\n try {\n $getCache = $cache->load($cacheName);\n } catch (Exception $e) {\n return null;\n }\n if (!empty($getCache))\n return $getCache;\n\n return null;\n }" ]
[ "0.6603842", "0.659212", "0.63904166", "0.6322412", "0.62412536", "0.6240189", "0.618221", "0.618221", "0.618221", "0.6134023", "0.60815746", "0.6041094", "0.6034874", "0.6025759", "0.6007863", "0.59743553", "0.5965432", "0.5962093", "0.5957115", "0.5952038", "0.5928211", "0.5909706", "0.5887065", "0.5829791", "0.58057046", "0.57656896", "0.5760884", "0.5760129", "0.5758557", "0.5751555", "0.5751337", "0.5746541", "0.57432747", "0.57089454", "0.5694079", "0.56717914", "0.56702447", "0.5650566", "0.5649595", "0.5649595", "0.56353474", "0.5622397", "0.56169516", "0.5605404", "0.5603841", "0.55995405", "0.5598139", "0.55964017", "0.5591888", "0.5587762", "0.5582552", "0.5582552", "0.55786645", "0.5553646", "0.55479", "0.55456036", "0.5510112", "0.55070376", "0.5504978", "0.5499295", "0.5497056", "0.5485427", "0.5484443", "0.5472405", "0.54693514", "0.5466674", "0.5451728", "0.54508036", "0.5450574", "0.5446448", "0.54388654", "0.5418355", "0.54174256", "0.5405442", "0.5404717", "0.5399286", "0.5384447", "0.537763", "0.53716505", "0.5362971", "0.5362971", "0.5362971", "0.5362971", "0.5362971", "0.5362971", "0.5362971", "0.5362971", "0.53472733", "0.5343416", "0.53422135", "0.53415626", "0.53339237", "0.5326944", "0.5323748", "0.5320055", "0.5319526", "0.5310244", "0.53044134", "0.53039247", "0.52971876", "0.52956474" ]
0.0
-1
Creates a cache instance for the specified driver
public function create($driver, array $conf = null);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public function factory($driver, array$options = array())\n {\n $filename = 'DiggLite/Cache/' . str_replace('_', '/', $driver . '.php');\n $class = 'DiggLite_Cache_' . $driver;\n\n include_once $filename;\n if (!class_exists($class)) {\n throw new DiggLite_Exception(\"Cache driver $class does not exist\");\n }\n\n return new $class($options);\n }", "public static function factory($driver, $options = [])\n {\n if (!class_exists($cacheClass = sprintf('ILess\\Cache\\%s', $driver))) {\n throw new InvalidArgumentException(sprintf('The cache driver \"%s\" does not exist.', $driver));\n }\n\n return new $cacheClass($options);\n }", "public function createCache(string $driverName, array $options=null): \\Nofuzz\\SimpleCache\\CacheInterface;", "public static function driver($driver = null){\n return \\Illuminate\\Cache\\CacheManager::driver($driver);\n }", "private function _createCache($cache)\n {\n $defaults = array(\n 'class' => 'Doctrine\\Common\\Cache\\ArrayCache',\n 'namespace' => '__kodefoundry_yiiext_doctrine',\n );\n\n $config = array_merge($defaults, $this->caches[$cache]);\n\n if (class_exists($config['class']) === false) {\n throw new \\Doctrine\\Common\\CommonException(\\Yii::t('kf.ext', 'Unknown class \"{class}\" specified in the cache configuration', array(\n '{class}' => $config['class']\n )));\n }\n\n $driver = new $config['class'];\n\n // Memcache specific\n if ($driver instanceof \\Doctrine\\Common\\Cache\\MemcacheCache) {\n $driver->setMemcache($this->_createMemcacheDriver($config));\n }\n\n // Memcached specific\n if ($driver instanceof \\Doctrine\\Common\\Cache\\MemcachedCache) {\n $driver->setMemcached($this->_createMemcachedDriver($config));\n }\n\n if ($driver instanceof \\Doctrine\\Common\\Cache\\CacheProvider) {\n $driver->setNamespace($config['namespace']);\n $this->_cachedObjects[$cache] = $driver;\n return $driver;\n }\n\n throw new \\Doctrine\\Common\\CommonException(\\Yii::t(\n 'kf.ext',\n 'The cache driver {driver} must implement \\Doctrine\\Common\\Cache\\CacheProvider',\n array('{driver}' => $config['class'])\n ));\n }", "public function setCacheDriver($cacheDriver);", "public function getCache(string $driverName): \\Nofuzz\\SimpleCache\\CacheInterface;", "public static function cache(){\n\n if (!isset(self::$_cache)) {\n if(!GO::isInstalled()){\n self::$_cache=new \\GO\\Base\\Cache\\None();\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tif(!isset(GO::session()->values['cacheDriver'])){\n\t\t\t\t\t\t\t\t$cachePref = array(\n\t\t\t\t\t\t\t\t\t\t\"\\\\GO\\\\Base\\\\Cache\\\\Apcu\",\n\t\t\t\t\t\t\t\t\t\t\"\\\\GO\\\\Base\\\\Cache\\\\Disk\"\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\tforeach($cachePref as $cacheDriver){\n\t\t\t\t\t\t\t\t\t$cache = new $cacheDriver;\n\t\t\t\t\t\t\t\t\tif($cache->supported()){\n\n\t\t\t\t\t\t\t\t\t\tGO::debug(\"Using $cacheDriver cache\");\n\t\t\t\t\t\t\t\t\t\tGO::session()->values['cacheDriver'] = $cacheDriver;\n\t\t\t\t\t\t\t\t\t\tself::$_cache=$cache;\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}else\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$cacheDriver = GO::session()->values['cacheDriver'];\n\t\t\t\t\t\t\t\tGO::debug(\"Using $cacheDriver cache\");\n\t\t\t\t\t\t\t\tself::$_cache = new $cacheDriver;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n }\n return self::$_cache;\n }", "private static function driver($driver)\n\t{\n\t\tswitch($driver)\n\t\t{\n\t\t\tcase 'apc':\n\t\t\t\treturn new Driver\\APC(static::$configuration['key']);\n\t\t\tcase 'file':\n\t\t\t\treturn new Driver\\File(static::$configuration['key'], static::$configuration['path']);\n\t\t\tcase 'memcache':\n\t\t\t\treturn new Driver\\Memcache(static::$configuration['key'], Memcache::instance());\n\t\t\tcase 'memcached':\n\t\t\t\treturn new Driver\\Memcached(static::$configuration['key'], Memcached::instance());\n\t\t\tdefault:\n\t\t\t\tthrow new \\InvalidArgumentException('Cachew driver ['.$driver.'] is not currently supported');\n\t\t\tbreak;\n\t\t}\n\t}", "protected function createCacheHandler($driver)\n {\n $minutes = $this->app['config']['staff_session.lifetime'];\n\n return new CacheBasedSessionHandler($this->app['cache']->driver($driver), $minutes);\n }", "protected function createMemcachedDriver(): StoreContract\n {\n return $this->createCacheBased('memcached');\n }", "protected function createWincacheDriver(array $config)\n\t{\n\t\treturn $this->repository(new WinCacheStore($this->getPrefix()));\n\t}", "function &createCache() {}", "public function createApcDriver()\n\t{\n\t\t$prefix = $this->getCacheParameter('prefix');\n\n\t\treturn new Repository(new ApcStore(new Apc, $prefix));\n\t}", "private function setDriver($params)\n {\n if (isset($params['driver'])) {\n return Cache::driver($params['driver']);\n } \n return Cache::driver();\n }", "private function _createMemcachedDriver(array $config)\n {\n $defaultServer = array(\n 'host' => 'localhost',\n 'port' => 11211,\n );\n\n $memcached = new \\Memcached();\n\n if (isset($config['servers']) === true) {\n foreach ($config['servers'] as $server) {\n $server = array_replace_recursive($defaultServer, $server);\n $memcached->addServer(\n $server['host'],\n $server['port']\n );\n }\n } else {\n $memcached->addserver(\n $defaultServer['host'],\n $defaultServer['port']\n );\n }\n\n return $memcached;\n }", "protected function createCacheBased($driver): StoreContract\n {\n if ($this->cacheManager === null) {\n throw new RuntimeException(\\sprintf('No instance of [%s] found.', CacheManagerContract::class));\n }\n\n return $this->buildSession(\n new Psr6SessionHandler(\n clone $this->cacheManager->getDriver($driver),\n ['ttl' => $this->resolvedOptions['lifetime'], 'prefix' => 'ns_ses_']\n )\n );\n }", "protected function createCache($identifier) {\n\t\tif (isset($this->cacheConfigurations[$identifier]['frontend'])) {\n\t\t\t$frontend = $this->cacheConfigurations[$identifier]['frontend'];\n\t\t} else {\n\t\t\t$frontend = $this->defaultCacheConfiguration['frontend'];\n\t\t}\n\n\t\tif (isset($this->cacheConfigurations[$identifier]['backend'])\n\t\t\t&& isset($this->cacheConfigurations[$identifier]['backend']['frontend'])\n\t\t) {\n\t\t\t/** @var \\TYPO3\\CMS\\Extbase\\Reflection\\ReflectionService $reflectionService */\n\t\t\t$reflectionService = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance('TYPO3\\\\CMS\\\\Extbase\\\\Reflection\\\\ReflectionService');\n\t\t\t$phpBackendRequired = $reflectionService->hasMethod($this->cacheConfigurations[$identifier]['frontend'], 'requireOnce');\n\t\t}\n\n\t\tif ($phpBackendRequired) {\n\t\t\t$backend = 'TYPO3\\\\CMS\\\\Core\\\\Cache\\\\Backend\\\\NullBackend';\n\t\t} else {\n\t\t\t$backend = 'FluidTYPO3\\\\Uncache\\\\Cache\\\\Backend\\\\TransientMemoryBackend';\n\t\t}\n\n\t\t$backendOptions = $this->defaultCacheConfiguration['options'];\n\n\t\t// Add the cache identifier to the groups that it should be attached to, or use the default ones.\n\t\tif (isset($this->cacheConfigurations[$identifier]['groups']) && is_array($this->cacheConfigurations[$identifier]['groups'])) {\n\t\t\t$assignedGroups = $this->cacheConfigurations[$identifier]['groups'];\n\t\t} else {\n\t\t\t$assignedGroups = $this->defaultCacheConfiguration['groups'];\n\t\t}\n\t\tforeach ($assignedGroups as $groupIdentifier) {\n\t\t\tif (!isset($this->cacheGroups[$groupIdentifier])) {\n\t\t\t\t$this->cacheGroups[$groupIdentifier] = array();\n\t\t\t}\n\t\t\t$this->cacheGroups[$groupIdentifier][] = $identifier;\n\t\t}\n\n\t\t$this->cacheFactory->create($identifier, $frontend, $backend, $backendOptions);\n\t}", "public function __construct()\n {\n $this->driver = \\App::make(\\App::config('cache.driver')); \n }", "protected function createMemcacheDriver(): StoreContract\n {\n return $this->createCacheBased('memcache');\n }", "protected function createMemcachedDriver(array $config)\n\t{\n\t\t$servers = $this->royalcms['config']['cache.memcached'];\n\n\t\t$memcached = $this->royalcms['memcached.connector']->connect($servers);\n\n\t\treturn $this->repository(new MemcachedStore($memcached, $this->getPrefix()));\n\t}", "protected function createRedisDriver(): StoreContract\n {\n return $this->createCacheBased('redis');\n }", "protected function createDatabaseDriver(array $config)\n\t{\n\t\t$connection = $this->getDatabaseConnection();\n\n\t\t$encrypter = $this->royalcms['encrypter'];\n\n\t\t// We allow the developer to specify which connection and table should be used\n\t\t// to store the cached items. We also need to grab a prefix in case a table\n\t\t// is being used by multiple applications although this is very unlikely.\n\t\t$table = $this->royalcms['config']['cache.table'];\n\n\t\t$prefix = $this->getPrefix();\n\n\t\treturn $this->repository(new DatabaseStore($connection, $encrypter, $table, $prefix));\n\t}", "protected function getCache_DriverService()\n {\n return $this->services['cache.driver'] = new \\phpbb\\cache\\driver\\file();\n }", "public function getCacheInstance($cacheName = null);", "private function _createMemcacheDriver(array $config)\n {\n $defaultServer = array(\n 'host' => 'localhost',\n 'port' => 11211,\n 'persistent' => true,\n 'weight' => 1,\n 'timeout' => 1,\n 'retryInterval' => 15,\n 'status' => true\n );\n\n $memcache = new \\Memcache();\n\n if (isset($config['servers']) === true) {\n foreach ($config['servers'] as $server) {\n $server = array_replace_recursive($defaultServer, $server);\n $memcache->addserver(\n $server['host'],\n $server['port'],\n $server['persistent'],\n $server['weight'],\n $server['timeout'],\n $server['retryInterval'],\n $server['status']\n );\n }\n } else {\n $memcache->addserver(\n $defaultServer['host'],\n $defaultServer['port'],\n $defaultServer['persistent'],\n $defaultServer['weight'],\n $defaultServer['timeout'],\n $defaultServer['retryInterval'],\n $defaultServer['status']\n );\n }\n\n return $memcache;\n }", "public static function make()\n {\n return new waCache(new waFileCacheAdapter([]), wa()->getConfig()->getApplication());\n }", "protected function createPredisDriver(): StoreContract\n {\n return $this->createCacheBased('predis');\n }", "protected function createXcacheDriver(array $config)\n\t{\n\t\treturn $this->repository(new XCacheStore($this->getPrefix()));\n\t}", "private function setupCache($key = 'default')\n {\n if ($this->isDisabled() || false == $this->getCacheEnabled($key)) {\n $cache = new DisabledCache();\n\n return $cache;\n }\n\n $cache = $this->getCacheDriver($this->getCacheType());\n\n return $cache;\n }", "static function factory()\n {\n if (function_exists('apc_fetch')) {\n $class = new BaseZF_Framework_Cache_Apc();\n } else {\n $class = new BaseZF_Framework_Cache_Apc_Disable();\n }\n\n return $class;\n }", "public function createCache(array $config, FlysystemManager $manager)\n {\n return $this->cache->make($config, $manager);\n }", "public function getCacheAdapter();", "protected function getCache() {\n\t\t$factory = $this->policy('rate_factoryname');\n\t\t$lifetime = $this->policy('rate_lock_timeout') + 60; // As long as it's longer than the actual timeout\n\t\t$cache = SS_Cache::factory($factory);\n\t\t$cache->setOption('automatic_serialization', true);\n\t\t$cache->setOption('lifetime', $lifetime);\n\t\treturn $cache;\n\t}", "protected function createApcuDriver(): StoreContract\n {\n return $this->createCacheBased('apcu');\n }", "public function setCacheDriver($driver = 'apc', array $frontend = array(), array $backend = array())\n {\n $this->cacheDriver = (string)$driver;\n $frontend['caching'] = true;\n $frontend['automatic_serialization'] = true;\n $this->cache = $this->factory('Core', $this->cacheDriver, $frontend, $backend);\n return $this;\n }", "function &factory($driver, $params = array())\n {\n if (is_array($driver)) {\n list($app, $driver) = $driver;\n }\n\n $driver = basename($driver);\n $class = 'Horde_Compress_' . $driver;\n if (!class_exists($class)) {\n if (!empty($app)) {\n include_once $app . '/lib/Compress/' . $driver . '.php';\n } else {\n include_once 'Horde/Compress/' . $driver . '.php';\n }\n }\n\n if (class_exists($class)) {\n $compress = new $class($params);\n } else {\n $compress = false;\n }\n\n return $compress;\n }", "public function createCache($networkId, $name, $type, $instanceClass)\n {\n return $this->requestWithErrorHandling('post', '/api/networks/'.$networkId.'/caches', [\n 'name' => $name,\n 'type' => $type,\n 'instance_class' => $instanceClass,\n ]);\n }", "public static function factory($cache, array $options = array())\n\t{\n\t\tif (! $cache instanceof Rest_Cache)\n\t\t{\n\t\t\t$cache = Rest_Cache::instance($cache);\n\t\t}\n\n\t\t$options['cache'] = $cache;\n\n\t\treturn new Rest_HTTP_Cache($options);\n\t}", "public function __construct(string $cache) {\n try {\n $this->duration = (int)($_ENV[\"CACHE_DURATION\"] ?? 86400);\n switch ($cache) {\n case \"apcu\":\n $this->driver = new APCuCache($this->duration);\n break;\n }\n } catch (\\Exception $e) {\n $exception = Utilities::parseException($e);\n Nova::log($exception[\"message\"], \"error\");\n }\n }", "public function getCache($cache='default')\n {\n if (isset($this->_cachedObjects[$cache]) === true) {\n return $this->_cachedObjects[$cache];\n }\n\n // if there is not a configuration for the cache, the default cache driver will be returned\n if (isset($this->caches[$cache]) === false) {\n $driver = new \\Doctrine\\Common\\Cache\\ArrayCache();\n $this->_cachedObjects[$cache] = $driver;\n return $driver;\n }\n\n $driver = $this->_createCache($cache);\n $this->_cachedObjects[$cache] = $driver;\n return $driver;\n }", "static public function factory($driver = 'CacheLite', array $options = array())\n {\n $class = 'OpenID_Store_' . $driver;\n if (!class_exists($class)) {\n throw new OpenID_Store_Exception(\n 'Invalid storage driver: ' . $driver,\n OpenID_Exception::INVALID_VALUE\n );\n }\n\n $instance = new $class($options);\n if (!$instance instanceof OpenID_Store_Interface) {\n throw new OpenID_Store_Exception(\n $class . ' does not implement OpenID_Store_Interface',\n OpenID_Exception::INVALID_DEFINITION\n );\n }\n\n return $instance;\n }", "function createDriver($driver, array $conf = null);", "protected function _initCache() {\n\t\t$options = $this->getOptions();\n\t\tswitch($options['cache']) {\n\t\t\tcase 'apc':\n\t\t\t\t$cache = new \\Doctrine\\Common\\Cache\\ApcCache();\n\t\t\tbreak;\n\n\t\t\tcase 'memcache':\n\t\t\t\t$cache = new \\Doctrine\\Common\\Cache\\MemcacheCache();\n\t\t\tbreak;\n\n\t\t\tcase 'xcache':\n\t\t\t\t$cache = new \\Doctrine\\Common\\Cache\\XcacheCache();\n\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\t$cache = new \\Doctrine\\Common\\Cache\\ArrayCache();\n\t\t}\n\n// \t\t$this->_config->setMetadataCacheImpl($cache);\n// \t\t$this->_config->setQueryCacheImpl($cache);\n\t}", "protected function createMemcachedDriver()\n {\n $store = $this->app['config']['session.memcached_store'];\n\n // Verify store uses the memcached driver\n $repository = $this->app['cache']->store($store);\n if (!($repository->getStore() instanceof MemcachedStore)) {\n throw new RuntimeException(\"session.memcached_store [{$store}] is not a memcached store.\");\n }\n\n $minutes = $this->app['config']['session.lifetime'];\n\n return $this->buildSession(new CacheBasedSessionHandler($repository, $minutes));\n }", "public function uniqueVia()\n {\n return Cache::driver('redis');\n }", "public static function get_instance_for_cache(cache_definition $definition) {\n return new cache_phpunit_dummy_datasource();\n }", "function &factory($driver, $params = null)\n {\n if (is_array($driver)) {\n $app = $driver[0];\n $driver = $driver[1];\n }\n\n $driver = basename($driver);\n $persistent_params = array();\n\n if ($driver == 'memcached') {\n // Trap for old driver name.\n $driver = 'memcache';\n } elseif (($driver != 'memcache') && !empty($params['memcache'])) {\n unset($params['memcache']);\n $persistent_params = array('persistent_driver' => $driver, 'persistent_params' => $params);\n $driver = 'memcache';\n $params = null;\n }\n\n $class = 'SessionHandler_' . $driver;\n if (!class_exists($class)) {\n if (!empty($app)) {\n include $GLOBALS['registry']->get('fileroot', $app) . '/lib/SessionHandler/' . $driver . '.php';\n } else {\n include 'Horde/SessionHandler/' . $driver . '.php';\n }\n }\n\n if (class_exists($class)) {\n if (empty($params)) {\n include_once 'Horde.php';\n $params = Horde::getDriverConfig('sessionhandler', $driver);\n }\n $handler = new $class(array_merge($params, $persistent_params));\n } else {\n $handler = PEAR::raiseError('Class definition of ' . $class . ' not found.');\n }\n\n return $handler;\n }", "private static function getAssetCache($asset)\n\t{\n\t\treturn new AssetCache\n\t\t(\t$asset\n\t\t,\tnew FilesystemCache(self::cachePath())\n\t\t);\n\t}", "public function driver($driver = null)\n\t{\n\t\treturn $this->store($driver);\n\t}", "public function driver($driver = null)\n {\n return $this->store($driver);\n }", "protected function getVictoireCore_EntityProxy_CacheDriverService()\n {\n return $this->services['victoire_core.entity_proxy.cache_driver'] = new \\Victoire\\Bundle\\CoreBundle\\CacheWarmer\\EntityProxyCacheDriver($this->get('annotation_reader'), __DIR__);\n }", "protected function createRedisDriver(array $config)\n\t{\n\t\t$redis = $this->royalcms['redis'];\n\n\t\treturn $this->repository(new RedisStore($redis, $this->getPrefix()));\n\t}", "public static function getInstance()\n {\n if (!isset(self::$instance)) {\n switch (CACHE_TYPE) {\n case CacheType::apc:\n self::$cache = new APC();\n break;\n case CacheType::eaccelerator:\n self::$cache = new eAccelerator;\n break;\n case CacheType::xcache:\n self::$cache = new XCache;\n break;\n case CacheType::file:\n self::$cache = new File;\n break;\n\n case CacheType::none:\n default:\n self::$cache = new NoCache;\n break;\n }\n\n $c = __CLASS__;\n self::$instance = new $c;\n }\n\n return self::$instance;\n }", "protected function createDriver($driver)\n {\n // We'll check to see if a creator method exists for the given driver. If not we\n // will check for a custom driver creator, which allows developers to create\n // drivers using their own customized driver creator Closure to create it.\n if (isset($this->customCreators[$driver])) {\n return $this->callCustomCreator($driver);\n } else {\n $method = 'create'.Str::studly($driver).'Driver';\n\n if (method_exists($this, $method)) {\n return $this->$method();\n }\n }\n\n if ($extendDriver = $this->config->get('hashing.drivers.' . $driver)) {\n if ($this->container->has($extendDriver)) {\n return $this->container->get($extendDriver)->init($this->container);\n }\n }\n\n throw new InvalidArgumentException(\"Driver [$driver] not supported.\");\n }", "public function getCache()\n\t{\n\t\tif( ! $this->cache_on)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(isset($this->cache_obj))\n\t\t{\n\t\t\treturn $this->cache_obj;\n\t\t}\n\t\t\n\t\t$class = 'Db_Cache_'.$this->cachedrv;\n\t\t\n\t\t$this->cache_obj = new $class($this->cacheopt);\n\t\t\n\t\treturn $this->cache_obj;\n\t}", "public function with(string $driver)\n {\n return $this->driver($driver);\n }", "public function with(string $driver)\n {\n return $this->driver($driver);\n }", "public function cache(string $key)\n {\n if (isset($this->caches[$key]) === true) {\n return $this->caches[$key];\n }\n\n // get the options for this cache type\n $options = $this->cacheOptions($key);\n\n if ($options['active'] === false) {\n // use a dummy cache that does nothing\n return $this->caches[$key] = new NullCache();\n }\n\n $type = strtolower($options['type']);\n $types = $this->extensions['cacheTypes'] ?? [];\n\n if (array_key_exists($type, $types) === false) {\n throw new InvalidArgumentException([\n 'key' => 'app.invalid.cacheType',\n 'data' => ['type' => $type]\n ]);\n }\n\n $className = $types[$type];\n\n // initialize the cache class\n $cache = new $className($options);\n\n // check if it is a useable cache object\n if (is_a($cache, 'Kirby\\Cache\\Cache') !== true) {\n throw new InvalidArgumentException([\n 'key' => 'app.invalid.cacheType',\n 'data' => ['type' => $type]\n ]);\n }\n\n return $this->caches[$key] = $cache;\n }", "public static function getInstance($handler = 'file', $options = array())\n {\n static $now = null;\n if (is_null($now)) {\n $now = time();\n }\n $options['now'] = $now;\n //We can't cache this since options may change...\n $handler = strtolower(preg_replace('/[^A-Z0-9_\\.-]/i', '', $handler));\n $class = 'CacheStorage' . ucfirst($handler);\n if (!class_exists($class)) {\n $path = dirname(__FILE__) . DS . 'storage' . DS . $handler . '.php';\n require_once($path);\n }\n $return = new $class($options);\n return $return;\n }", "public function initCache() {\n $cacheclass = \"corelib_cache_mongoCache\";\n if (self::$_config['caching']['type']) {\n $cacheclass = \"corelib_cache_\" . self::$_config['caching']['type'] . \"Cache\";\n }\n $this->_cache = new $cacheclass(self::$_config['caching']);\n }", "public static function inst( $cacheName ) {\n if ( ! isset( self::$instances[ $cacheName ] ) ) {\n $class = get_called_class();\n self::$instances[ $cacheName ] = new $class();\n }\n return self::$instances[ $cacheName ];\n }", "public static function get($cacheName='_'){\n\t\tif(!isset(self::$_instances[$cacheName]))\n\t\t\tself::$_instances[$cacheName]=CCache::create(self::$_config[$cacheName]);\n\t\treturn self::$_instances[$cacheName];\n\t}", "public static function factory($type)\n {\n if (include_once 'Drivers/' . $type . '.php') {\n $classname = 'Driver_' . $type;\n return new $classname;\n } else {\n throw new Exception('Driver not found');\n }\n }", "public function get($driver = null)\n {\n if (!$driver) {\n return $this->servers[0];\n }\n\n if (in_array($driver, $this->servers, true)) {\n return $this->servers[$driver];\n } else {\n throw new Exception('Cache `'.$driver.'` not found.');\n }\n }", "public static function getInstance(string $identifier, string $driver = 'apcu'): mixed\n {\n if (!isset(self::$instances[$identifier])) {\n self::$instances[$identifier] = app()->make(__CLASS__)->driver($driver);\n }\n\n return self::$instances[$identifier];\n }", "protected function create() {\n return call_user_func_array(static::$drivers[$this->options['driver']], array($this));\n }", "function __construct(Cache $cache) {\n// $client = RedisAdapter::createConnection('redis://localhost');\n// $this->cache = new RedisTagAwareAdapter($client);\n $this->cache = $cache->getCache();\n\n }", "private function _getSessionRepository() {\r\n $cache = $this->getProvider()->prototype('cache'); /* @var $cache \\PM\\Main\\Cache */\r\n $repository = $this->getProvider()->get('PM\\Profiler\\Monitor\\Repository\\Cache');\r\n /* @var $repository \\PM\\Profiler\\Monitor\\Repository\\Cache */\r\n $repository->setCache($cache);\r\n\r\n return $repository;\r\n }", "function autoDriver() {\n\n $driver = \"files\";\n\n if(extension_loaded('apc') && ini_get('apc.enabled') && strpos(PHP_SAPI,\"CGI\") === false)\n {\n $driver = \"apc\";\n }elseif(extension_loaded('pdo_sqlite') && is_writeable($this->getPath())) {\n $driver = \"sqlite\";\n }elseif(is_writeable($this->getPath())) {\n $driver = \"files\";\n }else if(class_exists(\"memcached\")) {\n $driver = \"memcached\";\n }elseif(extension_loaded('wincache') && function_exists(\"wincache_ucache_set\")) {\n $driver = \"wincache\";\n }elseif(extension_loaded('xcache') && function_exists(\"xcache_get\")) {\n $driver = \"xcache\";\n }else if(function_exists(\"memcache_connect\")) {\n $driver = \"memcache\";\n }else {\n $path = dirname(__FILE__).DIRECTORY_SEPARATOR.\"drivers\";\n $dir = opendir($path);\n while($file = readdir($dir)) {\n if($file!=\".\" && $file!=\"..\" && strpos($file,\".php\") !== false) {\n $namex = str_replace(\".php\",\"\",$file);\n $class = \"phpfastcache_\".$namex;\n $option = $this->option;\n $option['skipError'] = true;\n $driver = new $class($option);\n $driver->option = $option;\n if($driver->checkdriver()) {\n $driver = $namex;\n }\n }\n }\n }\n\n return $driver;\n }", "private function instance()\n\t{\n\t\tif (!$this->instance) {\n\t\t\t$this->instance = new \\Memcache();\n\t\t\t\n\t\t\tforeach ($this->servers as $server) {\n\t\t\t\t$this->instance->addServer(\n\t\t\t\t\t$server->host(),\n\t\t\t\t\t$server->port(),\n\t\t\t\t\t$server->isPersistent(),\n\t\t\t\t\t$server->weight(),\n\t\t\t\t\t$server->timeout(),\n\t\t\t\t\t$server->retryInterval()\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $this->instance;\n\t}", "public static function create(\n ContainerInterface $container = null,\n array $configs = []\n ){\n if (null === $container) {\n $container = Factory::create();\n }\n\n return new Cache(\n $container,\n new SerializerManager(),\n new CompressorManager(),\n $configs\n );\n }", "protected function createFilesystemDriver(): StoreContract\n {\n return $this->createCacheBased('filesystem');\n }", "public function getCache()\r\n\t{\r\n\t\treturn \\Bitrix\\Main\\Data\\Cache::createInstance();\r\n\t}", "public function with($driver)\n {\n return $this->driver($driver);\n }", "public function with($driver)\n {\n return $this->driver($driver);\n }", "protected function createRedisDriver(array $config)\n {\n $redis = $this->app['redis'];\n\n $connection = Arr::get($config, 'connection', 'default') ?: 'default';\n\n $store = new RedisStore($redis, $this->getPrefix($config), $connection);\n\n try {\n $store->getRedis()->ping();\n\n return $this->repository($store);\n } catch (Exception $e) {\n event('redis.unavailable', null);\n // for supporting tag\n return parent::createArrayDriver(\\Config::get('cache.stores.array'));\n }\n }", "public static function repository($store){\n return \\Illuminate\\Cache\\CacheManager::repository($store);\n }", "protected function createMongodbDriver(): StoreContract\n {\n return $this->createCacheBased('mongodb');\n }", "protected function cache(): CacheManager\n {\n $cache = cache();\n if ($cache->supportsTags()) {\n $cache->tags($this->tags);\n }\n\n return $cache;\n }", "static public function getInstance( $type = self::CACHE_TYPE_AUTODISCOVER, $lock_enabled = self::CACHE_LOCKING_DISABLED )\n\t{\n if ( self::CACHE_TYPE_AUTODISCOVER == $type )\n {\n $type = self::discoverCacheType();\n }\n\n\t\tself::$cache_type = $type;\n\n\t\tif ( isset( self::$instance[$type][$lock_enabled] ) )\n\t\t{\n\t\t\treturn self::$instance[$type][$lock_enabled];\n\t\t}\n\n\t\tswitch ( $type )\n\t\t{\n\t\t\tcase self::CACHE_TYPE_MEMCACHED:\n\t\t\t\t// http://php.net/manual/en/book.memcached.php\n\t\t\t\t// Memcached offers more methods than Memcache (like append, cas, replaceByKey...)\n\t\t\t\t$cache_object = new CacheMemcached();\n\t\t\t\tbreak;\n\t\t\tcase self::CACHE_TYPE_MEMCACHE:\n\t\t\t\t// http://php.net/manual/en/book.memcache.php:\n\t\t\t\t$cache_object = new CacheMemcache();\n\t\t\t\tbreak;\n\t\t\tcase self::CACHE_TYPE_DISK:\n\t\t\t\t// Use cache disk instead:\n\t\t\t\t$cache_object = new CacheDisk();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new Exception_500( \"Unknown cache type requested: '{$type}'\");\n\t\t}\n\n\t\t// Memcache is down, we cache on disk to handle this dangerous situation:\n\t\tif ( false !== strpos( self::$cache_type, 'MEMCACHE' ) && !$cache_object->isActive() )\n\t\t{\n\t\t\ttrigger_error( 'Memcached is down! Falling back to Disk cache if available...' );\n\n\t\t\t// Use cache disk instead:\n\t\t\t$cache_object = new CacheDisk();\n\t\t\tself::$cache_type = self::CACHE_TYPE_DISK;\n\t\t}\n\n\t\t$cache_object->use_locking = (bool) $lock_enabled;\n\t\tself::$instance[$type][$lock_enabled] = $cache_object;\n\n\t\treturn self::$instance[$type][$lock_enabled];\n\t}", "static function getInstance($name){\n\t\tif(! isset( self::$_instances[$name]))\n\t\t\tself::$_instances[$name] = new cacheItem($name);\n\t\treturn self::$_instances[$name];\n\t}", "public static function getInstance($driverName)\n {\n if (isset(self::$instances[$driverName])) {\n return self::$instances[$driverName];\n }\n\n $driver = __CLASS__ . '_' . ucfirst(strtolower($driverName));\n self::$instances[$driverName] = self::factory($driver);\n\n return self::$instances[$driverName];\n }", "public static function instance($driver = null)\n\t{\n\t\tempty($driver) and $driver = static::$configuration['default'];\n\n\t\tif(($driver = \\strtolower($driver)) and !isset(static::$drivers[$driver]))\n\t\t{\n\t\t\tstatic::$drivers[$driver] = static::driver($driver);\n\t\t}\n\n\t\treturn static::$drivers[$driver];\n\t}", "protected function defaultCache() : Repository\n {\n return Cache::store();\n }", "protected function createRedisDriver(array $config)\n {\n $config = $this->getConfig('redis');\n $redis = $this->app['redis'];\n $connection = $config['connection'] ?? 'default';\n $store = new RedisStore($redis, $this->getPrefix($config), $connection);\n try {\n $store->getRedis()->ping();\n return $this->repository($store);\n } catch (\\Exception $e) {\n Log::debug(__METHOD__, ['ERROR' => $e]);\n throw $e;\n }\n }", "public function __construct()\n {\n $this->init_config();//init cache config set the driver and path/key;\n if($this->driver==\"redis\") {\n $this->redis = new \\Redis();\n $this->redis->connect(\"127.0.0.1\", 6379);\n }\n if($this->driver==\"file\"){\n $this->file=new file();\n $this->path=dirname(dirname(dirname(__FILE__))).\"/$this->path/\";//set file store path\n }\n }", "protected function getCacheService()\n {\n return $this->services['cache'] = new \\phpbb\\cache\\service(${($_ = isset($this->services['cache.driver']) ? $this->services['cache.driver'] : ($this->services['cache.driver'] = new \\phpbb\\cache\\driver\\file())) && false ?: '_'}, ${($_ = isset($this->services['config']) ? $this->services['config'] : $this->getConfigService()) && false ?: '_'}, ${($_ = isset($this->services['dbal.conn']) ? $this->services['dbal.conn'] : ($this->services['dbal.conn'] = new \\phpbb\\db\\driver\\factory($this))) && false ?: '_'}, './../', 'php');\n }", "private static function createCacheStorage(array $options): CacheStorageInterface\n {\n $options = array_merge(\n array(\n 'adapter' => 'DoctrineCacheAdapter',\n 'backend' => array(\n 'class' => 'Doctrine\\Common\\Cache\\FilesystemCache',\n 'args' => array('%{TEMP}/bartlett/cache'),\n ),\n ),\n $options\n );\n\n if (!isset($options['adapter'])) {\n throw new InvalidArgumentException('Adapter is missing');\n }\n\n $adapterClass = $options['adapter'];\n\n if (strpos($adapterClass, '\\\\') === false) {\n // add default namespace\n $adapterClass = __NAMESPACE__ . '\\Cache\\\\' . $adapterClass;\n }\n if (!class_exists($adapterClass)) {\n throw new InvalidArgumentException(\n sprintf(\n 'Adapter \"%s\" cannot be loaded.',\n $adapterClass\n )\n );\n }\n\n if (!isset($options['backend']['class'])) {\n throw new InvalidArgumentException(\n sprintf(\n 'Backend is missing for %s',\n $adapterClass\n )\n );\n }\n $backendClass = $options['backend']['class'];\n\n if (!class_exists($backendClass)) {\n throw new InvalidArgumentException(\n sprintf(\n 'Backend \"%s\" cannot be loaded.',\n $backendClass\n )\n );\n }\n $rc = new ReflectionClass($backendClass);\n\n if (isset($options['backend']['args'])) {\n $args = self::replaceTokens($options['backend']['args']);\n } else {\n $args = array();\n }\n\n $backend = $rc->newInstanceArgs($args);\n $cacheAdapter = new $adapterClass($backend);\n\n return new DefaultCacheStorage($cacheAdapter);\n }", "abstract protected function getCacheClass();", "protected static function factory($driver) {\n\t\tif (isset(static::$registrar[$driver])) {\n\t\t\t$resolver = static::$registrar[$driver];\n\n\t\t\treturn $resolver();\n\t\t}\n\n\t\tswitch ($driver) {\n\t\t\tcase 'fluent':\n\t\t\t\treturn new Auth\\Drivers\\Fluent(Config::get('auth.table'));\n\n\t\t\tcase 'eloquent':\n\t\t\t\treturn new Auth\\Drivers\\Eloquent(Config::get('auth.model'));\n\n\t\t\tdefault:\n\t\t\t\tthrow new \\Exception(\"Auth driver {$driver} is not supported.\");\n\t\t}\n\t}", "public function driver(string $driver = '', array $config = []): Factory\n {\n $driver = $driver ?: $this->default['driver'];\n $config = $config ?: $this->default['config'];\n\n if (empty($driver)) {\n throw new InvalidArgumentException('No mobile card driver was specified.');\n }\n\n if (!class_exists($driver) || !is_subclass_of($driver, Factory::class)) {\n throw new InvalidArgumentException(\"Driver [$driver] not supported.\");\n }\n\n if (!isset($this->drivers[$driver])) {\n if (!is_array($config)) {\n $config = [];\n }\n\n $this->drivers[$driver] = new $driver($config);\n }\n\n return $this->drivers[$driver];\n }", "public function createInstance($driver, $config = false)\n {\n // use createDriver() because driver() only creates on instance\n $reference = $this->createDriver($driver);\n\n // any other setup needed\n if ($config) {\n $reference->configure($config);\n }\n\n return $reference;\n }", "public function create($driver, array $params = array())\n {\n $params['browser'] = $this->_injector->getInstance('Horde_Browser');\n $params['vars'] = Horde_Variables::getDefaultVariables();\n\n if (strcasecmp($driver, 'csv') === 0) {\n $params['charset'] = 'UTF-8';\n }\n\n return Horde_Data::factory($driver, $params);\n }", "public static function instance() {\n return new \\phpbrowscap\\Browscap(APPPATH . static::$cache_file);\n }", "public static function create($driver, $options = array(), $alias = NULL) {\n $alias = trim(strtolower($alias));\n $driver = trim(strtolower($driver));\n\n try {\n // Make sure alias isn't already taken\n if (isset($alias) and !empty($alias) and isset(self::$connections[$alias])) throw new Exception('Alias already registered!');\n\n // Make sure requested driver is a valid one\n if (!self::loadDriver($driver)) throw new Exception('Failed to load driver!');\n\n // Create the new driver\n $dbDriverClass = \"dbDriver_$driver\";\n $dbDriverObj = new $dbDriverClass($options);\n\n // Save the driver for later if it's been given an alias\n if (!empty($alias)) self::$connections[$alias] = $dbDriverObj;\n\n // Return the new driver object\n return $dbDriverObj;\n }catch(Exception $e) {\n trigger_error(__METHOD__.\"() {$e->getMessage()} thrown from line {$e->getLine()}\", E_USER_ERROR);\n return FALSE;\n }\n }", "protected function createApcDriver(array $config)\n\t{\n\t\treturn $this->repository(new ApcStore(new ApcWrapper, $this->getPrefix()));\n\t}", "public function be_instantiatable() {\n\t\t$this->assertInstanceOf( Cache::class, $this->make_instance() );\n\t}", "public function factory()\n {\n $redis = new \\Redis();\n $host = $this->getConfig()->getValue(self::CONFIG_HOST);\n $port = $this->getConfig()->getValue(self::CONFIG_PORT);\n $timeout = $this->getConfig()->getValue(self::CONFIG_TIMEOUT);\n\n if ($this->getConfig()->getValueFlag(self::CONFIG_PERSISTENT)) {\n $redis->pconnect($host, $port, $timeout);\n } else {\n $redis->connect($host, $port, $timeout);\n }\n\n if ($this->getConfig()->hasValue(self::CONFIG_DATABASE)) {\n $redis->select($this->getConfig()->getValue(self::CONFIG_DATABASE));\n }\n\n return $redis;\n }", "protected function initCache()\n {\n $this->di->set('viewCache', function () {\n /** @var DiInterface $this */\n $config = $this->getShared('config');\n\n $frontend = new FrontOutput(['lifetime' => $config->get('viewCache')->lifetime]);\n\n $config = $config->get('viewCache')->toArray();\n $backend = '\\Phalcon\\Cache\\Backend\\\\' . $config['backend'];\n unset($config['backend'], $config['lifetime']);\n\n return new $backend($frontend, $config);\n });\n\n $this->di->setShared('modelsCache', function () {\n /** @var DiInterface $this */\n $config = $this->getShared('config');\n\n $frontend = '\\Phalcon\\Cache\\Frontend\\\\' . $config->get('modelsCache')->frontend;\n $frontend = new $frontend(['lifetime' => $config->get('modelsCache')->lifetime]);\n\n $config = $config->get('modelsCache')->toArray();\n $backend = '\\Phalcon\\Cache\\Backend\\\\' . $config['backend'];\n unset($config['backend'], $config['lifetime'], $config['frontend']);\n\n return new $backend($frontend, $config);\n });\n\n $this->di->setShared('dataCache', function () {\n /** @var DiInterface $this */\n $config = $this->getShared('config');\n\n $frontend = '\\Phalcon\\Cache\\Frontend\\\\' . $config->get('dataCache')->frontend;\n $frontend = new $frontend(['lifetime' => $config->get('dataCache')->lifetime]);\n\n $config = $config->get('dataCache')->toArray();\n $backend = '\\Phalcon\\Cache\\Backend\\\\' . $config['backend'];\n unset($config['backend'], $config['lifetime'], $config['frontend']);\n\n return new $backend($frontend, $config);\n });\n }" ]
[ "0.75100785", "0.71562785", "0.6999679", "0.68367475", "0.68360806", "0.6551046", "0.6537155", "0.6470437", "0.64093834", "0.62414515", "0.6234608", "0.62163323", "0.61792094", "0.61789596", "0.61775446", "0.6112251", "0.60689586", "0.60364455", "0.6023417", "0.6001358", "0.59623134", "0.5961242", "0.59413177", "0.58937025", "0.5812707", "0.5805111", "0.58006227", "0.5786745", "0.5781293", "0.5748763", "0.5727901", "0.5704271", "0.56233114", "0.5591946", "0.55868053", "0.5551206", "0.5526295", "0.5505787", "0.5491229", "0.54866064", "0.5468887", "0.5461093", "0.5448008", "0.5436837", "0.5426932", "0.54222476", "0.54216135", "0.5416911", "0.5411357", "0.5408024", "0.53845066", "0.53784835", "0.53763", "0.5370506", "0.5350536", "0.53469336", "0.53428066", "0.53428066", "0.53316796", "0.5313049", "0.5289678", "0.52861476", "0.5278561", "0.52603906", "0.5257865", "0.52378386", "0.5232056", "0.5224724", "0.5224586", "0.52201706", "0.5218688", "0.5218484", "0.5215178", "0.5198294", "0.5192498", "0.5192498", "0.51870584", "0.51832086", "0.5170904", "0.5169485", "0.516019", "0.51536614", "0.5152467", "0.51464546", "0.512374", "0.51223284", "0.5104699", "0.51029724", "0.5099416", "0.5098615", "0.5089551", "0.5081489", "0.5076215", "0.5075", "0.5047469", "0.50402844", "0.5029652", "0.5029234", "0.501983", "0.5017157" ]
0.522758
67
Gets the value from the specified key
public function getValue($key);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get($key);", "public static function get($key);", "public function get( $key );", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public function get(string $key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function get($key);", "public function value($key){\n if (isset($this->data[$key])) return $this->data[$key];\n else return $key;\n }", "public function get(string $key) {\n\t\treturn $this->data[$key];\n\t}", "private function get($key)\n {\n return $this->data[$key];\n }", "public function get($key) {\n\t\tif ($this->isValidKey($key)) {\n\t\t\treturn $this->getKey($key);\n\t\t}\n\t}", "public function get(string $key): mixed;", "public static function getValue(string $key)\n {\n return optional(static::get($key))->getValue();\n }", "abstract protected function getValue($key);", "public function getByKey($key);", "public function get($key)\n\t{\n\t\treturn $this->data[$key];\n\t}", "public function get($key)\n {\n $rtn = null;\n\n if ( isset($this->keyValues[$key]) )\n {\n $rtn = $this->keyValues[$key];\n }\n\n return $rtn;\n }", "public function findValue($key)\n\t{\n\t\treturn $this->find($key)->value;\n\t}", "public function get($key)\n {\n return $this->data[$key];\n }", "public static function retrieve( $key )\n {\n return self::get( $key, $valid = false );\n }", "protected function getValue($key)\n {\n return $this->_cache->get($key);\n }", "public function get($key)\n {\n return $this->__get($key);\n }", "public function get(string $key)\n {\n $result = null;\n\n if ($this->has($key)) {\n $result = $this->values[$key];\n }\n\n return $result;\n }", "public function getValFromCache($key);", "public function get(string|int $key): mixed;", "function get($key);", "public function get($key){\n\n return $this->data[$key];\n }", "public function get($key)\n\t{\n\t\tif ($this->has($key))\n\t\t{\n\t\t\treturn $this->data[$this->id($key)]['value'];\n\t\t}\n\n\t\treturn null;\n\t}", "abstract public function get($key);", "public static function get( string $key ) {\n\t\t$option = static::find( $key );\n\n\t\treturn false === $option ? false : $option->value;\n\t}", "public function get( $key ) {\n\t\treturn $this->$key;\n\t}", "abstract public function get ($key);", "public function get($key)\n {\n return $this->find($key);\n }", "public function get(mixed $key): mixed\n {\n return\n ($index = $this->indexOf($key)) > -1 ?\n $this->values[$index] :\n null;\n }", "public function getGet($key){\n $key = FW_String::strtolower($key);\n \n if($this->issetGet($key)){\n return $this->get[$key];\n }\n \n return null;\n }", "function get($key) {\n\t\t\treturn $this->inst->get($key);\n\t\t}", "public function get($key)\n {\n $item = apc_fetch($key);\n\n return $item ? $item['value'] : null;\n }", "public function get($key) {\n\t\treturn isset($this->_value[$key]) ? $this->_value[$key] : null;\n\t}", "public function getValue($key)\n {\n if ($this->hasValue($key)) {\n return $this->values[$key];\n }\n }", "public function get($strKey);", "public function get($key)\n\t{\n\t\treturn $this->store()->offsetGet($key);\n\t}", "public function getValue($key) \n {\n \tif(!$this->loaded) {\n \t\t$this->load();\n \t}\n \t\n \tif(count($this->values) == 1) {\n \t\treturn $this->values[0]->getValue($key);\n \t} else {\n \t\treturn $this->values;\n \t}\n }", "public function valueForKey($key)\n {\n return $this->array[$key];\n }", "public function get(string $key)\r\n\t{\r\n\t\treturn $this->connection->get($key);\r\n\t}", "public function getValue($key)\n {\n if($this->values[$key])\n {\n $return $this->values[$key];\n }\n \n return NULL;\n }", "public function get($key) {\n if (isset($this->_hash[$key])) return $this->_hash[$key]; else return NULL;\n }", "public function getItem($key);", "public function getItem($key);", "public function getItem($key);", "public function getItem($key);", "public static function get(string $key)\n\t{\n\t\treturn static::value($_GET, $key);\n\t}", "public function get($key)\n {\n return $this->adapter->get($key);\n }", "public function getValue($key) {\n $allValues = $this->getAllValues();\n if (isset($allValues[$key])) {\n return $allValues[$key];\n } else {\n return null;\n }\n }", "public function get($key) {\n\t\tif(array_key_exists($key, $this->data)) return $this->data[$key]; \n\t\t\telse return null;\n\t}", "public function get($key)\n\t{\t\n\t\treturn $this->{$key};\n\t}", "public function get($key) {\n\t\tif ($this->has($key)) {\n\t\t\treturn $this->data[$key];\n\t\t}\n\t\treturn null;\n\t}", "function get( $key ){\r\n\t\treturn $this->$key;\r\n\t}", "public function get(string $key) {\n\t\tif (!array_key_exists($key, $this->input)) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn $this->input[$key];\n\t}", "public function get($key)\n {\n return $this->driver->get($key);\n }", "public function offsetGet($key)\n {\n return $this->__get($key);\n }", "public function offsetGet($key)\n {\n return $this->__get($key);\n }", "public function get($key) {\n\t\tif(!array_key_exists($key, $this->data)) {\n\t\t\treturn NULL;\n\t\t}\n\n\t\treturn $this->data[$key];\n\t}", "public function get(string $key)\n {\n return $this->factoryFromKey($key)->get($key);\n }", "public function get($key) {\n $value = $this->memcached->get($key);\n\n return $value;\n }", "public function getValue($key)\r\n {\r\n if (!isset($this->storage[$key])) {\r\n return null;\r\n }\r\n\r\n return $this->storage[$key];\r\n }", "public function getValue($key){\n\t\tif (isset($this->_storage[$key])){\n\t\t\treturn $this->_storage[$key];\n\t\t}else{\n\t\t\treturn null;\n\t\t}\n\t}", "public function get($key) {\n if (isset($this->map[$key])) {\n return $this->map[$key];\n }\n }" ]
[ "0.82606524", "0.82606524", "0.81740165", "0.81134725", "0.81134725", "0.81134725", "0.81134725", "0.81134725", "0.81134725", "0.81134725", "0.81134725", "0.8084556", "0.8084556", "0.8084556", "0.8084556", "0.8084556", "0.8084556", "0.8084556", "0.8084556", "0.8084556", "0.8084556", "0.8084556", "0.8084556", "0.8084556", "0.8084556", "0.8084556", "0.8084556", "0.8084556", "0.8084556", "0.8084556", "0.8084556", "0.8084556", "0.8084556", "0.8084556", "0.8084556", "0.8084556", "0.8084556", "0.8084556", "0.8084556", "0.7966715", "0.7963727", "0.7913382", "0.789176", "0.7881373", "0.78140104", "0.77978104", "0.7754239", "0.7737425", "0.7705772", "0.7682257", "0.7676489", "0.7671097", "0.76600015", "0.76599663", "0.7649832", "0.7621697", "0.76115227", "0.76101846", "0.7607351", "0.75574374", "0.75555414", "0.7523213", "0.75201994", "0.7519721", "0.75005597", "0.74962926", "0.74846643", "0.7474869", "0.74589825", "0.7441202", "0.7440878", "0.7436595", "0.74225974", "0.7404285", "0.73983115", "0.73940647", "0.73755807", "0.73586184", "0.7339309", "0.7339309", "0.7339309", "0.7339309", "0.7338345", "0.73336786", "0.73213464", "0.7313868", "0.73124444", "0.7311004", "0.7302505", "0.7299403", "0.7284539", "0.72594017", "0.72594017", "0.72423637", "0.7225924", "0.72236985", "0.7218364", "0.72092384", "0.720863" ]
0.85932136
0
Get values from the specified keys
public function getValues(array $keys);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final public function gets(...$keys)\n {\n return $this->onPrepareReturns(Base\\Arrs::gets($this->prepareKeys(...$keys),$this->arr(),$this->isSensitive()));\n }", "function get_multi($keys) {\n\t\t$out = array();\n\t\tforeach($keys as $key)\n\t\t\t$out[$key] = $this->get($key);\n\t\treturn $out;\n\t}", "protected function getValues($keys)\n {\n return $this->_cache->get($keys);\n }", "public function getItems(array $keys = []);", "public function params(string ... $keys) {\n $value = $this -> controllerData -> getData();\n foreach ($keys as $key) {\n $value = $value[$key];\n }\n return $value;\n }", "public function get(string $keys): mixed;", "public function mget(string ...$keys): array\r\n\t{\r\n\t\treturn $this->connection->mget($keys);\r\n\t}", "public function getItems($keys) {\n\t\t$result = array();\n\n\t\t// extremely simple solution, this can be improved by extending the adapter interfaces sometime\n\t\tforeach ($keys as $key) {\n\t\t\t$this->checkKey($key);\n\t\t\t$result[$key] = $this->get($key);\n\t\t}\n\n\t\treturn $result;\n\t}", "public function value_by_keys($keys)\n {\n $data = array();\n $current_time = time();\n $values = $this->storevalues;\n $keys_array = explode(',', $keys);\n foreach ($values as $key => $value) {\n if (in_array($key, $keys_array)) {\n $values[$key]['created_at'] = $current_time;\n $data[$key] = $value;\n }\n }\n $this->save($values);\n return $data;\n }", "#[Pure]\n public function getMulti(array $keys) : array\n {\n $items = [];\n foreach ($keys as $key) {\n $items[$key] = $this->get($key);\n }\n return $items;\n }", "public function getItems(array $keys = []): array;", "public function get_many($keys) {\n $result = array();\n foreach ($keys as $key) {\n $result[$key] = $this->get($key);\n }\n return $result;\n }", "public function only($keys): array\n\t{\n\t\t$keys = is_array($keys) ? $keys : func_get_args();\n\t\t$results = [];\n\t\t$input = $this->all();\n\n\t\tforeach ($keys as $key) {\n\t\t\tArr::set($results, $key, Data::get($input, $key));\n\t\t}\n\n\t\treturn $results;\n\t}", "function getMulti($keys) {\n return $this->memcached->getMulti($keys);\n }", "function wp_cache_get_multiple( $keys, $group = '', $force = false ) {\n\t\t$values = array();\n\n\t\tforeach ( $keys as $key ) {\n\t\t\t$values[ $key ] = wp_cache_get( $key, $group, $force );\n\t\t}\n\n\t\treturn $values;\n\t}", "public function get($keys=null)\n {\n $data = $this->storevalues;\n if (!empty($keys)) {\n $data = $this->value_by_keys($keys);\n }\n return $data;\n }", "public function getMultiple($keys, $default = null)\n {\n $values = array();\n foreach ($keys AS $key) {\n $values[$key] = $this->get($key, $default);\n }\n return $values;\n }", "public function getMultiple(array $keys): array\n {\n $results = [];\n foreach ($keys as $key) {\n $results[$key] = $this->get($key);\n }\n return $results;\n }", "public function getMultiple($keys, $default = null);", "public function only($keys, $data)\n {\n # code...\n $placeholder = new stdClass;\n $results = [];\n\n foreach ($data as $d) {\n foreach ($keys as $key) {\n $value = data_get($d, $key, $placeholder);\n if ($value !== $placeholder) {\n $arr[$key] = $value;\n }\n }\n array_push($results, $arr);\n }\n\n return $results;\n }", "abstract public function getKeys();", "public function getItems(array $keys = array())\n {\n }", "public static function getMultiple($keys)\n\t{\n\t\t\n\t \tif (!is_array($keys) OR !is_array(self::$_CONF))\n\t \t\tdie(Tools::displayError());\n\n\t\t$resTab = array();\n\n\t\tforeach ($keys AS $key)\n\t\t\tif (array_key_exists($key, self::$_CONF))\n\t\t\t\t$resTab[$key] = self::$_CONF[$key];\n\t\treturn $resTab;\n\t}", "public function filter($key)\n {\n $all = is_array($key) ? $key : array($key);\n $values = array();\n foreach($all as $key) {\n $values[$key] = $this->get($key);\n }\n return $values;\n }", "public function getMultiple($keys, $keysInResult = false){\n\n if (!$keys || !count($keys)) {\n $keys = array();\n }\n if (is_string($keys)) {\n $keys = array($keys);\n }\n\n $keysArray = array();\n\n foreach ($keys as $numericIndex){\n $keysArray[] = $this->_keyFromId($numericIndex);\n }\n\n /**\n * result array always contains the count of items that equals to requested keys count\n */\n $resFromCache = $this->getAdapter()->getMultiple($keysArray); // returns numeric array from 0 till n\n\n if(!is_array($resFromCache)){\n return array();\n }\n\n $res = array();\n foreach ($resFromCache as $numericIndex=>$item){\n if(empty($item)){// do not return empty results\n continue;\n }\n $res[$this->_getKeyByIndex($keys, $numericIndex, $keysInResult)] = $item;\n }\n return $res;\n }", "public function getMultiple(array $keys)\n {\n $return = array();\n if (!$this->getOptions()->getEnabled() || empty($keys)) {\n return $return;\n }\n $results = $this->storage->getItems($keys);\n\n foreach ($keys as $key) {\n $return[$key] = (\n (\n isset($results[$key]['value']) &&\n !$this->isExpired($results[$key])\n ) ?\n $results[$key]['value'] :\n false\n );\n }\n\n return $return;\n }", "public function getMulti(array $keys): array {\n foreach ($keys as $key) {\n $return[$key] = FALSE;\n }\n if ($this->driver) {\n $return = $this->driver->getMulti($keys);\n }\n return $return;\n }", "static function getKeys();", "public function dataStoreGet($keys) {\n $store = array();\n foreach ($keys as $key) {\n if ($cache = \\Drupal::cache()->get('acquia.spi.' . $key)) {\n if (!empty($cache->data)) {\n $store[$key] = $cache->data;\n }\n }\n }\n return $store;\n }", "public function getMultiple($keys, $default = null)\n {\n if (!$keys || (!\\is_array($keys) && !$keys instanceof \\Traversable)) {\n throw new InvalidArgumentException('Cache keys must be an array or Traversable');\n }\n\n $values = [];\n\n foreach ($keys as $key) {\n $values[$key] = $this->get($key, $default);\n }\n\n return $values;\n }", "public function getMultiple($key)\n {\n return $this->doFetch($key);\n }", "public function getMultiple($keys, $default = null)\n {\n if (!$this->isEnable) {\n return $default;\n }\n\n $data = $this->client->mget($keys);\n if (!$data) {\n return $default;\n }\n\n $result = [];\n foreach ($data as $value) {\n if ($value) {\n $result[] = unserialize($value);\n }\n }\n\n return $result;\n }", "public function intersectKeys(...$keys): Collection;", "public function getMulti(\n\t\tarray $keys,\n\t\tarray &$cas_tokens = array(),\n\t\t$flags = ''\n\t) {}", "public function valueKeys(): array;", "public function getItems( $keys = null )\n\t{\n\t\tif ( $keys )\n\t\t\treturn array_intersect_key( $this->items , array_flip( $keys ) );\n\t\treturn $this->items;\n\t}", "public function getKeysAndValues() {\n return array(\n array('key', 'key', 'value'),\n array('KEY', 'key', 'value'),\n array('Some_key', 'some-key', 'value'),\n array('SOME-KEY', 'some-key', 'value'),\n );\n }", "public function getKeys();", "static public function getMulti($subject, $keys) {\n\t\t$cache = self::singleton();\n\t\t$fetchArray = array();\n\t\t$retval = array();\n\t\t\n\t\tforeach($keys as $oneKey) {\n\t\t\t$genKey = self::generateKey($subject, $oneKey);\n\t\t\tif(isset(self::$local[$genKey])) {\n\t\t\t\t$retval[$oneKey] = self::$local[$genKey];\n\t\t\t\tY_Log::debug('cache get local %s', $genKey);\n\t\t\t} else\n\t\t\t\t$fetchArray[] = $genKey;\n\t\t}\n\t\t\n\t\t// Things not found in the local cache are looked up, copied, and returned\n\t\tif(!empty($fetchArray)) {\n\t\t\t$moreStuff = $cache->getMulti( $fetchArray );\n\t\t\tif(!empty($moreStuff)) {\n\t\t\t\tforeach($moreStuff as $genKey=>$value) {\n\t\t\t\t\tself::$local[$genKey] = $value;\n\t\t\t\t\tlist($subject,$key) = self::parseKey($genKey);\n\t\t\t\t\t$retval[$key] = $value;\n\t\t\t\t\tY_Log::debug('cache get remote %s', $genKey);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $retval;\n\t}", "public function export(string ...$keys): array\n {\n $output = [];\n\n foreach ($keys as $key) {\n $value = $this->get($key);\n\n if ($value !== null) {\n $output[$key] = $value;\n }\n }\n\n return $output;\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 getMulti(array $keys, array &$tokens = null): array\n {\n $values = $this->local->getMulti($keys);\n $tokens = [];\n\n // short-circuit reading from real cache if we have an uncommitted flush\n if (!$this->suspend) {\n // figure out which missing key we need to get from real cache\n $keys = array_diff($keys, array_keys($values));\n foreach ($keys as $i => $key) {\n // don't reach out to real cache for keys that are about to be gone\n if ($this->local->expired($key)) {\n unset($keys[$i]);\n }\n }\n\n // fetch missing values from real cache\n if ($keys) {\n $missing = $this->cache->getMulti($keys);\n $values += $missing;\n }\n }\n\n // any tokens we get will be unreliable, so generate some replacements\n // (more elaborate explanation in get())\n foreach ($values as $key => $value) {\n $token = uniqid('', false);\n $tokens[$key] = $token;\n $this->tokens[$token] = serialize($value);\n }\n\n return $values;\n }", "public function get_multiple($keys, $group = 'default', $force = \\false)\n {\n }", "public function getMultiple( $keys, $default = null )\n\t{\n\t\treturn $this->getObject()->getMultiple( $keys, $default );\n\t}", "public function getMulti(array $keys) {\n return [];\n }", "public function getKeys() {}", "public function testGetAllReturnsAllValuesForSpecifiedKey()\n {\n $values = $this->store->getAll(self::KEY);\n\n $this->assertCount(2, $values);\n $this->assertEquals(self::$FIRST_VALUE, $values[0]);\n $this->assertEquals(self::$SECOND_VALUE, $values[1]);\n }", "public function getValues();", "public function only(array $keys, $key = null)\n {\n $items = (null !== $key) ? $this->get($key) : $this->items;\n\n return array_intersect_key((array)$items, array_flip($keys));\n }", "public function getAllWhereKeysIn(array $keys): CollectionInterface;", "public function only($keys)\n\t{\n\t\treturn array_filter($this->toArray(), function ($value, $key) use ($keys) {\n\t\t\treturn in_array($key, $keys);\n\t\t}, ARRAY_FILTER_USE_BOTH);\n\t}", "function kc_array_multi_get_value( $array, $keys ) {\n\tforeach ( $keys as $idx => $key ) {\n\t\tunset( $keys[$idx] );\n\t\tif ( !isset($array[$key]) )\n\t\t\treturn false;\n\n\t\tif ( count($keys) )\n\t\t\t$array = $array[$key];\n\t}\n\n\tif ( !isset($array[$key]) )\n\t\treturn false;\n\n\treturn $array[$key];\n}", "public function getItems(array $keys = array())\n {\n return $this->client->mget($keys);\n }", "public function GetAll()\n {\n return $this->_keyValPairs;\n }", "public function getMany(array $keys)\n {\n $values = $this->connection()->mget($this->prefixKeys($keys));\n\n return array_combine($keys, array_map(function ($value) {\n return is_numeric($value) ? $value : unserialize($value);\n }, $values));\n }", "public function only() {\n $args = func_get_args();\n $result = array();\n foreach($args as $arg) {\n $result[$arg] = $this->get($arg);\n }\n\n return $result;\n }", "public function fetchMultiple(array $keys): array\n {\n $result = [];\n foreach ($keys as $key) {\n $result[] = $this->fetch($key);\n }\n return $result;\n }", "public function loadMany(array $keys) : array\r\n {\r\n $this->updateCache();\r\n\r\n return array_intersect_key($this->loaded, array_flip($keys));\r\n }", "public function fetchPairs(string $key = null, string $value = null): array;", "private function setKeys($keys)\n {\n return array('consumer_key'=>$keys[0],\n 'consumer_secret'=>$keys[1],\n 'oauth_access_token' =>$keys[2],\n 'oauth_access_token_secret' =>$keys[3]\n );\n }", "private function getKeyValues(array $assetsData, string $key): array\n {\n $values = [];\n foreach ($assetsData as $assetData) {\n $values[] = $assetData[$key];\n }\n return $values;\n }", "protected function get_meta_values( $key = '_avia_builder_template_%' ) \n\t\t{\n global $wpdb;\n if( empty( $key ) ) return;\n \n $compare_by = strpos($key, '%') !== false ? \"LIKE\" : \"=\";\n $id = AviaStoragePost::get_custom_post('template_builder_snippets');\n \n $r = $wpdb->get_col( $wpdb->prepare( \"\n SELECT meta_value FROM {$wpdb->postmeta}\n WHERE meta_key {$compare_by} '%s'\n AND post_id = '%s'\n \", $key, $id) );\n\n return $r;\n }", "protected function get_listkeys($sKey=\"\")\n {\n //si son multiples\n $arKeyValue = array();\n if($_POST[\"pkeys\"])\n {\n //$arKeysNames = explode(\",\",$_POST[\"hidKeyFields\"]);//id,Code_Erp\n $arKeyFields = $_POST[\"pkeys\"];//id=24,Code_Erp=\n foreach($arKeyFields as $i=>$sKeysValues)\n { \n $arKeysValues = explode(\",\",$sKeysValues);\n foreach($arKeysValues as $sKeyValue)\n { \n $arKV = explode(\"=\",$sKeyValue);\n $arKeyValue[$i][$arKV[0]] = $arKV[1];\n }\n }\n }\n elseif($_POST[\"id\"])\n $arKeyValue = $_POST[\"id\"];\n elseif($_POST[$sKey])\n $arKeyValue = $_POST[$sKey];\n return $arKeyValue;\n }", "function unserialize_keys($keys)\n\t{\n\t\t// ignore if $keys is already an array\n\t\tif(is_array($keys)) return $keys;\n\n\t\tif(ACCESS_MODEL == \"discrete\") {\n\t\t\t// since only keys (and not module/group names) are stored, we\n\t\t\t// know each key from the DB will be a sub-item\n\t\t\t$ak = array();\n\t\t\tforeach(explode(',', $keys) as $k) $ak[] = \"-- $k\";\n\t\t} else if(ACCESS_MODEL == \"roles\") {\n\t\t\t$ak = explode(',', $keys);\n\t\t}\n\t\treturn $ak;\n\t}", "public function getDataByMultiKey() {\n $val = json_decode($this, true);\n for ($i = 0; $i < func_num_args(); $i++) {\n $valid = false; //assume response is not valid unless the ith argument is found\n if (isset($val[func_get_arg($i)])) {\n $val = $val[func_get_arg($i)];\n $valid = true;\n }\n }\n if ($valid) {\n return $val;\n }\n else {\n return null;\n }\n return null;\n }", "public function many(array $keys)\n {\n $_prefixed = array_map(function($key) {\n return $this->prefix . $key;\n },\n $keys);\n\n $_params = $this->buildParams(['body' => $_prefixed]);\n\n try {\n $_responses = $this->client->mget($_params);\n\n return array_combine($keys, $_responses);\n } catch (\\Exception $_ex) {\n }\n\n return null;\n }", "public function getKeys(): array;", "abstract public function keys(): Seq;", "public function getValuesArray()\n {\n return $this->keyValues;\n }", "public function arrayKeysValues()\n {\n return array(\n\t\t\t\"FirstName\" => $this->firstName,\n\t\t\t\"LastName\" => $this->lastName,\n\t\t\t\"Gender\" => $this->gender,\n\t\t\t\"YearOfBirth\" => $this->yearOfBirth,\n \"IdGenre\" => $this->genre,\n \"IsInGroup\" => $this->group\n\t\t);\n }", "public function getItems(array $keys)\n {\n $result = array();\n\n foreach ($keys as $key) {\n $result[$key] = $this->getItem($key);\n }\n\n return $result;\n }", "function pick(array $keys, iterable $items) : iterable\n{\n $indexMatch = function($value, $key) use($keys) {\n return in_array($key, $keys);\n };\n return pickBy($indexMatch, $items);\n}", "public function getData($key);", "public function getValues() {}", "public function getValues() {}", "public function getSomeElementValues($elements)\n\t{\n\t\treturn array_intersect_key($this->getElementValues(),array_flip($elements));\t\n\t}", "public static function get($key)\n {\n $data = self::data();\n $key = strtolower(trim($key));\n return isset($data[$key]) ? $data[$key] : [];\n }", "public function getValues($names)\n {\n $result = array();\n foreach ($this->entities as $entity) \n {\n $result[] = $entity->getValues($names);\n }\n \n return $result;\n }", "public function getMetas($meta_keys, $multiple = false)\n {\n $meta = $this->getMeta(false, false);\n\n // Keep only the requested keys\n $meta = (array) set($meta)->keepKeys($meta_keys);\n\n // Keep only one value if requested\n if (!$multiple) {\n $meta = array_map(\"current\", $meta);\n }\n\n return $meta;\n }", "protected abstract function loadKeys(array $keys);", "public function getRecordKeys()\n\t{\n\t\t$arKeys = [];\n\t\t$arKey = [];\n\t\tif (Param(\"key_m\") !== NULL) {\n\t\t\t$arKeys = Param(\"key_m\");\n\t\t\t$cnt = count($arKeys);\n\t\t} else {\n\t\t\tif (Param(\"IncomeCode\") !== NULL)\n\t\t\t\t$arKeys[] = Param(\"IncomeCode\");\n\t\t\telseif (IsApi() && Key(0) !== NULL)\n\t\t\t\t$arKeys[] = Key(0);\n\t\t\telseif (IsApi() && Route(2) !== NULL)\n\t\t\t\t$arKeys[] = Route(2);\n\t\t\telse\n\t\t\t\t$arKeys = NULL; // Do not setup\n\n\t\t\t//return $arKeys; // Do not return yet, so the values will also be checked by the following code\n\t\t}\n\n\t\t// Check keys\n\t\t$ar = [];\n\t\tif (is_array($arKeys)) {\n\t\t\tforeach ($arKeys as $key) {\n\t\t\t\tif (!is_numeric($key))\n\t\t\t\t\tcontinue;\n\t\t\t\t$ar[] = $key;\n\t\t\t}\n\t\t}\n\t\treturn $ar;\n\t}", "public function getMultiByKey(\n\t\t$master,\n\t\tarray $keys,\n\t\tarray &$cas_tokens = array(),\n\t\t$flags = ''\n\t) {}", "public function mget(array $keys)\n {\n return array_map(function ($value) {\n return $value !== false ? $value : null;\n }, $this->command('mget', [$keys]));\n }", "static function get($data /*key subkey ...*/){\n $ar = func_get_args();\n array_shift($ar);\n if(is_array($ar[0])) {\n $def = def($ar,1);\n $ar = $ar[0];\n } else $def = NULL;\n while($ck = array_shift($ar)){\n if(isset($data[$ck])) $data = $data[$ck]; \n else return($def);\n } \n return($data);\n }", "public function getPairs($_key = null, $_val = null, $_deleted = 0, $_where = array())\n {\n $key = $_key ? $_key : $this->primary;\n $val = $_val ? $_val : $this->priName;\n\n $select = $this->getSql()->select();\n $select->columns(array($key, $val));\n\n // except delete\n if (!$_deleted) {\n $select->where(array('is_deleted' => 0));\n }\n\n if ($_where) {\n $select->where($_where);\n }\n\n $rows = $this->selectWith($select);\n $res = array();\n foreach ($rows as $row) {\n $res[$row->$key] = $row->$val;\n }\n return $res;\n }", "public function get($keys = [])\n {\n if (0 === count($keys)) {\n return $this->getPipes();\n }\n\n array_push($keys, resolve('pipe_any'));\n\n return collect($keys)->map(function ($key) {\n return Arr::get($this->pipes, $key, []);\n })\n ->flatten()\n ->toArray();\n }", "public function extractKeys($keys) {\n $Configuration = new MOC_Configuration();\n foreach ($keys as $key => $value) {\n if (is_numeric($key)) {\n $key = $value;\n }\n\n $Configuration->set($key, $this->get($value));\n }\n return $Configuration;\n }", "public function getMultiple(array $keys, $default = null)\n {\n if (is_callable([$this->interface, 'getMultiple'])) {\n $handleValue = function ($values) {\n foreach ($values as $key => &$value) {\n if (null === $value) {\n unset($this->items[$key]);\n } else {\n $value = $this->items[$key] = $this->unserializer($value);\n }\n }\n\n return $values;\n };\n\n try {\n $result = $this->interface->getMultiple(array_map(fn ($key) => $this->prefix.$key, $keys), $default);\n } catch (Throwable $throwable) {\n return reject($throwable);\n }\n\n if ($result instanceof PromiseInterface) {\n return $result->then($handleValue);\n }\n\n return resolve($handleValue($result));\n }\n\n $promises = [];\n\n foreach ($keys as $key) {\n $promises[$key] = $this->get($key, $default);\n }\n\n return all($promises);\n }", "private function getAllKeys() {\n\n\t\t$keys = array();\n\n\t\t// Open file\n\t\t$fp = $this->openFile($this->data['file'], self::FILE_READ);\n\n\t\t// Loop through each line of file\n\t\twhile (($line = fgets($fp)) !== false) {\n\n\t\t\t// Split up seperator\n\t\t\t$pieces = explode(\"=\", $line);\n\n\t\t\t// Add key to array\n\t\t\t$keys[] = $pieces[0];\n\t\t}\n\n\t\t// Close file\n\t\t$this->closeFile($fp);\n\n\t\treturn $keys;\n\t}", "public function get($keys, $default = NULL) {\n return $this->keysMap->get($keys, $default);\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 }", "public function getDataByKey($key)\n {\n if (isset($this->data[$key])) {\n return $this->data[$key];\n }\n\n return [];\n }", "public function multiget($keys,\n $columns = null,\n $columnStart = \"\",\n $columnFinish = \"\",\n $columnReversed = false,\n $columnCount = ColumnFamily::DEFAULT_COLUMN_COUNT,\n $superColumn = null,\n $readConsistencyLevel = null,\n $bufferSize=16)\n\t{\n\t\tif (empty($this->_columnFamily))\n\t\t\t$this->init();\n\t\treturn $this->_columnFamily->multiget($keys, $columns, $columnStart, $columnFinish,\n\t\t\t\t\t\t\t\t\t\t$columnReversed, $columnCount, $superColumn, $readConsistencyLevel, $bufferSize);\n }", "public function getValue($key);", "public function getValue($key);", "function array_select_keys(array $array, iterable $keys): array\n{\n return array_reduce(\n $keys,\n function (array $acc, $k) use ($array): array {\n if (array_key_exists($k, $array)) {\n $acc[$k] = $array[$k];\n }\n\n return $acc;\n },\n []\n );\n}", "function get(array $data) {\n\t\t$values = [];\n\t\tforeach ($data as $key) {\n\t\t\t$values[$key] = $this->$key ?? null;\n\t\t}\n\n\t\treturn $values;\n\t}", "public function all(): array\n {\n return collect($this->getKeys())\n ->mapWithKeys(fn (string $key) => [$key => $this->get($key)])\n ->toArray();\n }", "public static function keys(): array;", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(GoodsInSalePeer::ID, $keys, Criteria::IN);\n\t}" ]
[ "0.7525767", "0.7384867", "0.7322216", "0.711976", "0.7067325", "0.6959175", "0.69160396", "0.69054425", "0.68865305", "0.684577", "0.6799544", "0.6787443", "0.67829895", "0.6650181", "0.6595405", "0.6522173", "0.6469433", "0.6445572", "0.6443387", "0.64412165", "0.63946754", "0.63704145", "0.6364679", "0.63623357", "0.6298528", "0.6296749", "0.62395996", "0.6193171", "0.617963", "0.6169479", "0.6169203", "0.6145408", "0.611201", "0.6105259", "0.60806113", "0.60670155", "0.6050436", "0.60458755", "0.60038865", "0.59911907", "0.5982632", "0.598009", "0.59046936", "0.5879718", "0.5851236", "0.58483213", "0.5838121", "0.5777504", "0.576732", "0.57530147", "0.57441056", "0.5718943", "0.5692364", "0.567163", "0.5661323", "0.5634936", "0.5633615", "0.5618184", "0.5616271", "0.56119126", "0.5594821", "0.5580714", "0.55786794", "0.55786735", "0.5570792", "0.5570285", "0.55692714", "0.5554947", "0.5548074", "0.55343944", "0.5530893", "0.55195916", "0.55192834", "0.5517227", "0.5517227", "0.5503246", "0.55023557", "0.5501619", "0.5466541", "0.546261", "0.54570943", "0.54537976", "0.5453321", "0.5451436", "0.5447441", "0.5442413", "0.54356885", "0.5412275", "0.5402469", "0.5400125", "0.5387797", "0.53868496", "0.53828937", "0.53815424", "0.53815424", "0.5369785", "0.5362515", "0.53622884", "0.5359666", "0.53469205" ]
0.82206994
0
Sets a value attached to the specified key
public function setValue($key, $value);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set( $key , $value ) {\n\t\teval( '$this->items' . $this->nodelize( $key ) . ' = $value;' );\n\t}", "public function set( $key, $value );", "public function set( $key, $value );", "public function set ($key, $value);", "public function set ($key, $value) {\r\n\t\t$this->_data[$key] = $value;\r\n\t}", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value);", "public function set($key, $value) {\n\t\t$this->data[$key] = $value;\n\t}", "public function set(string $key, $value): void {\n\t\t$this->data[$key] = $value;\n\t}", "public function set($key, $value)\r\n {\r\n $this->values[$key] = $value;\r\n }", "public function set(string $key, $value) {\n\t\t$this->data[$key] = $value;\n\t}", "public function set(string $key, $value): void\n {\n\t\t$this->values[$key] = $value;\n\t}", "public function set($key,$value) {\n $this->_data[$key]=$value;\n }", "public function _set($key, $value)\n {\n $this->data[$key] = $value;\n }", "public function _set($key, $value)\n {\n $this->data[$key] = $value;\n }", "public function set($key, $value)\n\t{\n\t\t$this->data[$key] = $value;\n\t}", "public function set($key, $value)\n {\n $this->data[$key] = $value;\n }", "public function set($key, $value)\n {\n $this->data[$key] = $value;\n }", "public function set($key, $value)\n {\n $this->data[$key] = $value;\n }", "public function set($key, $value)\n\t{\n\t\t$this->values[$this->block][$key] = $value;\n\t}", "public static function set($key, $value){\n self::setRequestVar($key, $value);\n \n }", "public function set($key, $value) {\n\n }", "public function __set($key, $value);", "static public function set($key, $value)\r\n {\r\n /* First we make sure we have a valid variable name */\r\n self::validateKey($key);\r\n\r\n /* Then we set the value */\r\n Fset::set(self::$values, $key, $value);\r\n }", "public function set(string $key, $value): void\n {\n $this->data[$key] = $value;\n }", "public function setValue($key, $value)\n {\n $this->values[$key] = $value;\n }", "public function set(string $key, $value);", "public function set(string $key, $value);", "public static function set($key, $value)\r\n {\r\n self::$_data[$key] = $value;\r\n }", "public function set($key, $value)\n {\n if ($this->_doValidate) {\n // validate the value passed\n ValueValidator::validate($value);\n }\n\n if ($key[0] === '_') {\n if ($key === self::ENTRY_ID) {\n $this->setInternalId($value);\n return;\n }\n\n if ($key === self::ENTRY_KEY) {\n $this->setInternalKey($value);\n return;\n }\n\n if ($key === self::ENTRY_REV) {\n $this->setRevision($value);\n return;\n }\n\n if ($key === self::ENTRY_ISNEW) {\n $this->setIsNew($value);\n return;\n }\n }\n\n if (!$this->_changed) {\n if (!isset($this->_values[$key]) || $this->_values[$key] !== $value) {\n // set changed flag\n $this->_changed = true;\n }\n }\n\n // and store the value\n $this->_values[$key] = $value;\n }", "public function __set( $key, $value ) {\n\n\t\t$this->_data[ $key ] = $value;\n\t}", "static function set($key, $value)\n {\n self::$values[$key] = $value;\n }", "abstract public function set ($key, $value);", "public function set ( $key, &$value ) { \t$this->storage[$key] = $value; }", "function set($key, $newvalue) {\n\t\t$this->valuemap[$key]= $newvalue;\n\t}", "public function setData($key, $value);", "public function setData($key, $value);", "public function __set($key, $value) {\n\t\t$this->{\"set_{$key}\"}($value);\n\t}", "public function __set($key, $value)\n {\n\n $this->setData($key, $value);\n\n }", "abstract public function set($key, $value);", "abstract public function set($key, $value);", "public function __set($key, $value) {\n $this->pos = 0;\n $this->data[$key] = $value;\n $this->keys = array_keys($this->data);\n }", "public function __set($key, $value)\n {\n self::$data[$key] = $value;\n }", "public function __set($key, $value) {\n $this->setField($key, $value);\n }", "public static function Set($key, $val);", "public function __set($key,$value) {\n $cur = $this->key();\n if(!isset($this->_changed[$cur]) || !is_array($this->_changed[$cur])){\n $this->_changed[$cur]=[];\n }\n if($this->$key != $value){\n $this->_changed[$cur][$key] = $value;\n }\n $this->_data[$cur][$key] = $value;\n }", "public function set($strKey, $varValue);", "public function __set($key, $value)\n\t{\n\t\t$this->data[$key] = $value;\n\t}", "public function __set($key, $value) {\n $this[$key] = $value;\n }", "public function __set($key, $value)\n {\n $this->data[$key] = $value;\n }", "public function set(string $key, $value): void;", "public function set($key, $value)\n {\n $this->engine->assign($key, $value);\n }", "public function set($key, $value)\n {\n $this->engine->assign($key, $value);\n }", "public function setValue($key, $value)\n {\n $this->map[$key] = $value;\n }", "public function set($key, $data);", "public function _set($key, $value){\r\n\t\t$this->_attributes[$key] = $value;\r\n\t}", "public function set(string $key, mixed $value): void\n {\n }", "abstract protected function putValue($key, $value);", "public function set($key, $value)\n {\n return $this->add('set', $key .' = ' . $value, true);\n }", "public function __set($key, $value)\n\t{\n\t\t$this[$key] = $value;\n\t}", "public function __set($key, $val);", "public function set(string $key, $data);", "public function set($key, $value): void;", "public function set(string $key, $value)\n {\n $this->items[$key] = $value;\n }", "public function __set($key, $value) {\n\t}", "public function __set($key, $value)\n {\n $this->fields[ $key ] = $value;\n }", "public function set( $key, $value )\n {\n $this->contents[ $key ] = $value;\n }", "public static function set($key, $value)\n {\n self::$__request[$key] = $value;\n }", "public function __set($key, $value)\n {\n }", "public function __set($key, $value)\n {\n }", "public function __set($key, $value)\n {\n }", "public function __set($key, $value)\n {\n }", "protected function setData($key, $value)\n {\n $this->data[$key] = $value;\n }", "public function set($key, $value = null);", "public function set($key, $value = null);", "public function __set($key, $value){\n\t\t\t\t$this->$key = $value;\n\t\t\t}", "public function __set($key, $value){\n\t\t\t\t$this->$key = $value;\n\t\t\t}", "public function set($key, $value)\n {\n $this->_elements[$key] = $value;\n }", "public function __set($key, $value) {\n\t\t$this->set($key, $value); \n\t}", "public function __set($key, $value) {\n\t\t$this->set($key, $value); \n\t}", "public function __set($key, $value)\n {\n switch ($key) {\n case self::ENTRY_NAME :\n $this->setName($value);\n break;\n case self::ENTRY_CODE :\n $this->setCode($value);\n break;\n default:\n $this->set($key, $value);\n break;\n }\n }", "function __set( $key, $value ) {\n\t\t$this->{$key} = $value;\n\t}", "public function assign($key, $value) {\n $this->dwoo_data->$key = $value;\n }", "public function set($key, $value)\n {\n Arr::set($this->items, $key, $value);\n }" ]
[ "0.8039327", "0.799483", "0.799483", "0.79846686", "0.79632014", "0.7939078", "0.7939078", "0.7939078", "0.7939078", "0.7939078", "0.7939078", "0.7939078", "0.7939078", "0.7939078", "0.7939078", "0.7939078", "0.7939078", "0.7939078", "0.7939078", "0.7939078", "0.7939078", "0.7939078", "0.79253715", "0.79143846", "0.7900627", "0.78828245", "0.7879734", "0.7851886", "0.78296685", "0.78296685", "0.7804612", "0.7801395", "0.7801395", "0.7801395", "0.7784612", "0.776415", "0.7739791", "0.7732283", "0.77262723", "0.77172256", "0.77122617", "0.77062404", "0.77062404", "0.7705607", "0.76987034", "0.7697081", "0.7666785", "0.76634425", "0.76445884", "0.7633631", "0.76278025", "0.76278025", "0.7618754", "0.7609168", "0.7601393", "0.7601393", "0.7599514", "0.75780606", "0.7568441", "0.7544785", "0.7543876", "0.75350285", "0.7522213", "0.75180674", "0.7517302", "0.75124633", "0.75001836", "0.75001836", "0.74955374", "0.74928886", "0.74920994", "0.74912524", "0.74853027", "0.7463572", "0.7455994", "0.7445573", "0.7432132", "0.7414874", "0.74045664", "0.73893136", "0.73858637", "0.73852813", "0.73703563", "0.73621655", "0.73593414", "0.7358674", "0.7358674", "0.73526525", "0.7352177", "0.7352177", "0.73468095", "0.73468095", "0.73462975", "0.73306316", "0.73306316", "0.7330485", "0.73229134", "0.7315112", "0.73133487" ]
0.8491142
0
Set values attaches to specified indexes (keys)
public function setValues($values);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set(int $index, $value);", "public function set($index, $value)\n {\n $value = $this->cube($value);\n parent::set($index, $value);\n }", "public function setAll($values)\r\n {\r\n foreach ($values as $key => $value)\r\n $this->$key = $value;\r\n }", "public function offsetSet($key, $value) {}", "public function offsetSet($index, $newval);", "public function offsetSet( $key, $value );", "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 setMultiByKey(array $values, $expiry = 0) {}", "protected function setCanonicalIndex(): void\n {\n $got = $this->redisConn->hget($this->index, IndexInterface::STRUCTURE);\n $data = (null === $got) ? [] : $this->unser($got);\n if (empty($data)) { // just fill-in new index data\n $data[$this->index] = [\n IndexInterface::ALIASES => [],\n ];\n $this->setMappings($data);\n $this->redisConn->hset($this->index, IndexInterface::STRUCTURE, $this->ser($data));\n } else if (empty($this->indexType) === false\n && empty($data[$this->index][IndexInterface::MAPPINGS][$this->indexType])\n ) {// check for type and update if there is no alike\n $this->setMappings($data);\n $this->redisConn->hset($this->index, IndexInterface::STRUCTURE, $this->ser($data));\n } else { // setting new fields with whitespace type by default\n $this->setMappings($data, true);\n if (true === $this->isNewField) {\n $this->redisConn->hset($this->index, IndexInterface::STRUCTURE, $this->ser($data));\n }\n }\n }", "public function set_update_batch($key, $index = '', $escape = NULL)\n\t{\n\t\t$key = $this->_object_to_array_batch($key);\n\n\t\tif ( ! is_array($key))\n\t\t{\n\t\t\t// @todo error\n\t\t}\n\n\t\tis_bool($escape) OR $escape = $this->_protect_identifiers;\n\n\t\tforeach ($key as $k => $v)\n\t\t{\n\t\t\t$index_set = FALSE;\n\t\t\t$clean = array();\n\t\t\tforeach ($v as $k2 => $v2)\n\t\t\t{\n\t\t\t\tif ($k2 === $index)\n\t\t\t\t{\n\t\t\t\t\t$index_set = TRUE;\n\t\t\t\t}\n\n\t\t\t\t$clean[$k2] = array(\n\t\t\t\t\t'field' => $this->protect_identifiers($k2, FALSE, $escape),\n\t\t\t\t\t'value' => ($escape === FALSE ? $v2 : $this->escape($v2))\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif ($index_set === FALSE)\n\t\t\t{\n\t\t\t\treturn $this->display_error('db_batch_missing_index');\n\t\t\t}\n\n\t\t\t$this->qb_set_ub[] = $clean;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function index_put(){\n\t\t\n\t\t}", "private function _set_all ($key, $values) {\r\n\t\tif (!in_array($key, self::get_all_keys())) return false;\r\n\t\tif (empty($this->_data[$key])) $this->_data[$key] = array();\r\n\r\n\t\t$this->_data[$key] = $values;\r\n\t}", "public function offsetSet($index, $object)\r\n\t{\r\n\t\tif( $index === null )\r\n\t\t{\r\n\t\t\t$index = $object->get($this->obj->primaryKey);\r\n\t\t}\r\n\r\n\t\tif( !isset($this->keyAssocation[$index]) )\r\n\t\t{\r\n\t\t\t$this->keyAssocation[$index] = $this->count++;\r\n\t\t}\r\n\r\n\t\t$this->elements[$this->keyAssocation[$index]] = $object;\r\n\t}", "public function offsetSet($key, $val): void;", "function set($keys, $data) {\n\n $SET = array();\n\n foreach ($keys as $key) {\n $index = $key;\n $value = $data[$key];\n $SET[] = \"`$index` = '\" . str_replace(\"'\", \"\\'\", $value) . \"'\";\n }\n\n return implode(', ', $SET);\n}", "function set_keys($keys)\n\t{\n\t\tif(!is_array($keys)) $keys = explode(',', $keys);\n\t\tforeach($keys as $key) $this->set_key($key);\n\t}", "public function offsetSet($key,$value) {\n\t\t$this->sets[$key] = $value;\n\t}", "public function setAll($values) {\n\t\tif (isset($values[self::$primaryKey[$this->table]])) {\n\t\t\t$this->originalData = $values;\n\t\t}\n\t\telse {\n\t\t\t$this->modifiedData = $values;\n\t\t}\n\t}", "public function bulkSet(array $args = array()) {\n foreach ($args as $argName => $arg) {\n $this->__set($argName, $arg);\n }\n }", "public function offsetSet($index, $newval)\n {\n }", "function set_row($keys,$sql_set) {\r\n $sql_where = '';\r\n if (count($keys) > 0) {\r\n $sql_wheres = array();\r\n foreach ($keys as $key=>$val) {\r\n if (is_array($val)) die('setrow: multi value does not supported');\r\n $sql_wheres[] = \"`$key`='\".myaddslashes($val).\"'\";\r\n }\r\n $sql_where = ' where '.join(' and ',$sql_wheres);\r\n }\r\n if (is_array($sql_set)) { # Note, if using array, I DONOT support mysql function/expression!! use string for that.\r\n $sql_sets = array();\r\n foreach ($sql_set as $key=>$val) {\r\n $sql_sets[] = '`'.$key.'` = \\''.addslashes($url).'\\'';\r\n }\r\n $sql_set = join(',',$sql_sets);\r\n }\r\n assert($sql_where != ''); # safeguard against setting all rows\r\n $sql = 'update `'.$this->db_table.'` set '.$sql_set.$sql_where;\r\n #~ echo $sql;exit;\r\n $res = mysql_query($sql) or die('<br>'.$sql.'<br>'.mysql_error()); #do to database\r\n }", "public function setData($key, $value);", "public function setData($key, $value);", "function set(array $grid, int $rowIndex, int $columnIndex, int $value): void {//tiene\n $grid[$rowIndex][$columnIndex] = $value; \n}", "public function setUpdate(array $source_key) {\n $query = $this->connection->update($this->mapTable)\n ->fields(array('needs_update' => MigrateMap::STATUS_NEEDS_UPDATE));\n $count = 1;\n foreach ($source_key as $key_value) {\n $query->condition('sourceid' . $count++, $key_value);\n }\n $query->execute();\n }", "function offsetSet($key, $value)\n\t{\n\t\t$this->fields[$key] = $value;\n\t}", "protected function setHashIndexKey(): void\n {\n $this->hashIndexKey = $this->index . (empty($this->indexType)\n ? self::HASH_INDEX_GLUE\n : (self::HASH_INDEX_GLUE . $this->indexType . self::HASH_INDEX_GLUE));\n }", "static function setC(&$data,$value/*key subkey ...*/){\n $ar = array_slice(func_get_args(),2);\n if(is_array($ar[0])) $ar = $ar[0];\n return(call_user_func_array(array('ops_narray','set'),array(&$data,$value,$ar,TRUE)));\n }", "public function offsetSet($key, $element)\n {\n $this->elements[$key] = $element;\n $this->iteratorCount = count($this->elements);\n }", "public function set_keys( $keys )\n\t{\n\t\t$this->keys = $keys;\n\t}", "public function offsetSet($index, $newval)\n {\n parent::offsetSet($index, $newval & 0xff);\n }", "public function offsetSet($key, $value)\n {\n $this->setData($key, $value);\n }", "public function offsetSet($key,$value){\n if(!array_key_exists($key,$this->definition)){\n throw new \\Disco\\exceptions\\Exception(\"Field `{$key}` is not defined by this data model\");\n }//if\n $this->data[$key] = $value;\n }", "public function __set($key, $value) {\n $this->pos = 0;\n $this->data[$key] = $value;\n $this->keys = array_keys($this->data);\n }", "public function setHashIndex($value);", "function setExtraVarKeys($extra_keys)\n\t{\n\t\tif(!is_array($extra_keys) || count($extra_keys) < 1)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tforeach($extra_keys as $val)\n\t\t{\n\t\t\t$obj = new ExtraItem($val->module_srl, $val->idx, $val->name, $val->type, $val->default, $val->desc, $val->is_required, $val->search, $val->value, $val->eid);\n\t\t\t$this->keys[$val->idx] = $obj;\n\t\t}\n\t}", "public function SET_hash($field_names_and_values) {\n\t\t//$this->scriptForceHint('UPDATE');\n\t\tif (!$field_names_and_values) throw new Exception(\"Attempting to SET an empty associative array\");\n\t\tforeach ($field_names_and_values as $field_name => $value) {\n\t\t\t$this->SET_once($field_name, $value);\n\t\t}\t\n\t}", "public function fnSet(array $_a): void {\n forEach($_a as $sKey=>$sValue) {\n if ($this->fnKeyExists($sKey)) {\n $this->aData[$sKey] = $sValue;\n }\n }\n }", "public function offsetSet($key, $value)\n {\n $this->setArgument($key, $value);\n }", "public function set($key, $data);", "public function offsetSet(mixed $key, mixed $value): void\n {\n $this->setArgument($key, $value);\n }", "public function offsetSet($key, $value)\n\t{\n\t\t$this->setAttribute($key, $value);\n\t}", "final public function __set($index, $value)\n {\n $this->_registry->$index = $value;\n }", "public function offsetSet($key, $value) {\n $this->setDatapoint($key, $value);\n }", "public function setValues($values)\n {\n foreach ($this->entities as $entity) \n {\n $entity->setValues($values);\n }\n }", "protected function setListIndexKey(): void\n {\n $this->listIndexKey = $this->index . (empty($this->indexType)\n ? self::LIST_INDEX_GLUE\n : (self::LIST_INDEX_GLUE . $this->indexType . self::LIST_INDEX_GLUE));\n }", "public function offsetSet($key, $value) {\n\t\t$this->set($key, $value);\n\t}", "public function offsetSet($key, $value)\n {\n $this->with($key, $value);\n }", "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 offsetSet($index, $value) {\n return;\n }", "public function setValue($entries) {}", "function putIndex(){\n\n }", "function putIndex(){\n\n }", "public function setMultiValue($key, $value, $boost = FALSE) {\n $this->addField($key, $value, $boost);\n }", "public function offsetSet($key, $value)\n {\n $this->attributes->put($key, $value);\n }", "public function offsetSet($key, $value): void\n {\n if (is_array($this->_data)) {\n $value = $this->in($value, $key, 'array');\n $this->_data[$key] = $value;\n } elseif ($this->_data instanceof \\ArrayAccess) {\n $value = $this->in($value, $key, 'array');\n $this->_data[$key] = $value;\n } else {\n throw new \\Exception('Cannot use object of type ' . get_class($this->_data) . ' as array');\n }\n }", "public function setValues($values = []);", "public function offsetSet($key, $value)\n {\n $this->data[$key] = $value;\n }", "public function offsetSet($key, $value)\n {\n $this->data[$key] = $value;\n }", "public function setKeys($keys)\n {\n $this->_keys = $keys;\n }", "public function offsetSet($index, $newval)\n\t{\n\t\tif ($index === null)\n\t\t{\n\t\t\t$this[] = $newval;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tparent::offsetSet($index, $newval);\n\t\t}\n\t}", "function change_index(&$tableau, $old_key, $new_key) {\n $changed = FALSE; $temp = 0;\n \n foreach ($tableau as $key => $value) {\n switch ($changed) {\n case FALSE :\n //creates the new key and deletes the old\n if ($key == $old_key) {\n $tableau[$new_key] = $tableau[$old_key];\n unset($tableau[$old_key]);\n $changed = TRUE;\n }\n break;\n\n case TRUE :\n //moves following keys\n if ($key != $new_key){\n $temp= $tableau[$key];\n unset($tableau[$key]);\n $tableau[$key] = $temp;\n break;\n } else {$changed = FALSE;} //stop\n }\n }\n array_values($tableau); //free_memory\n}", "public static function updateMapping(){\r\n $db = self::getDb();\r\n $command = $db->createCommand();\r\n\t\tif(!$command->indexExists(self::index())){\r\n\t\t\t$command->createIndex(self::index());\r\n\t\t}\r\n $command->setMapping(self::index(), self::type(), self::mapping());\r\n }", "public function offsetSet($key,$value)\n {\n if( !in_array($key,$this->_allowed_variables) )\n {\n\ttrigger_error('Modification of internal data is deprecated: '.$key,E_USER_NOTICE);\n }\n $this->_data[$key] = $value;\n }", "protected function setOffset($key, $value){\r\n $this->_registry[$key] = $value;\r\n }", "public function offsetSet($key, $value)\r\n {\r\n $this->set($key, $value);\r\n }", "public function __set($key, $val);", "public function offsetSet( $key, $value )\n\t{\n\t\t$this->set( $key, $value );\n\t}", "abstract public function set ($key, $value);", "public function __set($k, $v) {\n $this->_values[$k] = $v;\n }", "#[\\ReturnTypeWillChange]\n public function offsetSet($index, $value)\n {\n }", "public function set_key_names($keys) {\n\t\t$this->keys = $keys;\n\t}", "public function table_index_edit ( $tname, $field, $value, $key )\n\t{\n\t}", "public function setValues($values){\n\t\tif(!is_array($values)) return;\n\t\t\n\t\tforeach($values as $field_name => $value){\n\t\t\tif(isset($this->Fields[$field_name])){\n\t\t\t\t$this->Fields[$field_name]->value = $value;\n\t\t\t}\n\t\t}\n\t}", "function SetKey( $i ) { $this->_key = $i; $this->SetValue('_key', $i ); }", "public function setValues($valueCollection) {\n\n foreach ($valueCollection as $key => $value) {\n if (isset($this[$key])) {\n $this[$key]->setValue($value);\n } //if\n } //foreach\n \n }", "abstract public function set($key, $value);", "abstract public function set($key, $value);", "public function offsetSet($key, $value)\n {\n $this->set($key, $value);\n }", "public function offsetSet($key, $value)\n {\n $this->set($key, $value);\n }", "public function offsetSet($key, $value)\n {\n $this->set($key, $value);\n }", "public function setNodeValue (Array $indexes, $value)\r\n {\r\n $newNode = new Node($value);\r\n $currentNode = $this->root;\r\n $this->_setNode($currentNode, $newNode, $indexes);\r\n }", "public final function offsetSet($index, $child) : void\n {\n $this->insert($index, $child, \\true);\n }", "public function __set($index, $value) {\n\n\t\tif ($this->_hasAdapter(get_class(), __FUNCTION__))\n\t\t\treturn $this->_callAdapter(get_class(), __FUNCTION__, $index, $value);\n\n\t\t$filtered = $this->_applyFilter(get_class(), __FUNCTION__, array(\n\t\t\t'index' => $index,\n\t\t\t'value' => $value\n\t\t), array('event' => 'args'));\n\t\t\n\t\t$index = $filtered['index'];\n\t\t$value = $filtered['value'];\n\n\t\tif ($this->_collection === null) {\n\t\t\t$this->_collection = new Collection();\n\t\t}\n\t\t$this->_collection->addWithName($index, $value);\n\t\t$this->_notify(get_class() . '::' . __FUNCTION__, $index, $value);\n\t}", "public function __set($k, $v) {\n\t\t$this->_data[$k] = $v;\n\t}", "public function setData($key, $value)\n {\n $this->owner->{$this->dataAttribute} = ArrayHelper::merge($this->owner->{$this->dataAttribute}, [$key => $value]);\n }", "public function offsetSet($key, $value) {\n\t\tif ($key === null) {\n\t\t\t$this->append($value);\n\t\t} else {\n\t\t\t$this->set($key, $value);\n\t\t}\n\t}", "public static function mset($_arg) {\n\t\tif (!is_array($_arg)) {\n\t\t\t// Invalid argument\n\t\t\ttrigger_error(self::TEXT_MSet);\n\t\t\treturn;\n\t\t}\n\t\t// Bind key-value pairs\n\t\tarray_map('self::set',array_keys($_arg),$_arg);\n\t}", "static function set(&$data,$value/*key subkey ... [TF]*/){\n $ar = func_get_args();\n array_shift($ar);\n array_shift($ar);\n $dat = $data; // local copy\n $nc = count($ar);\n if($nc>0 and is_bool($ar[$nc-1])){\n $create = array_pop($ar);\n $nc--;\n } else $create = FALSE;\n if(is_array($ar[0])) {\n $ar = $ar[0];\n $nc = count($ar);\n }\n if($nc==0){$data = $value; return(TRUE);} // special case\n $dstack = array();\n for($ii=0;$ii<$nc-1;$ii++){\n $dstack[] = $dat;\n if(!isset($dat[$ar[$ii]])){\n\tif($create) $dat = array(); else return(FALSE);\n }\n $dat = count($dat)>0?$dat[$ar[$ii]]:NULL;\n }\n if(!is_array($dat)){\n if($create) $dat = array(); else return(FALSE);\n }\n $dat[$ar[$ii--]] = $value;\n for(;$ii>=0;$ii--){\n $swap = $dat;\n $dat = array_pop($dstack);\n $dat[$ar[$ii]] = $swap;\n }\n $data = $dat;\n return(TRUE);\n }", "public function fill($values = []) {\n foreach ($values as $key => $value) {\n $key = explode('_', $key);\n if (count($key) > 1 && end($key) === 'id') {\n array_pop($key);\n }\n $key = array_values($key);\n for ($i = 0; $i < count($key); $i++) {\n $key[$i] = ucfirst($key[$i]);\n }\n $key = implode('', $key);\n $func = 'set' . $key;\n if (method_exists($this, $func)) {\n $this->$func($value);\n }\n }\n $this->afterFill();\n }", "function __set($key, $value) {\n\t\t\tif($key == \"table_name\") {\n\t\t\t\t$this->set_content_columns($value);\n\t\t\t} elseif(is_object($value) && $value instanceof self && $this->auto_save_associations) {\n\t\t\t\tif($association_type = $this->get_association_type($key)) {\n\t\t\t\t\t$this->save_associations[$association_type][] = $value;\n\t\t\t\t\tif($association_type == \"belongs_to\") {\n\t\t\t\t\t\t$foreign_key = Inflector::singularize($value->table_name).\"_id\";\n\t\t\t\t\t\t$this->$foreign_key = $value->id;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telseif(in_array($key, $this->i18n_column_names)) {\n\t\t\t\tif(is_array($value)) {\n\t\t\t\t\tforeach($value as $locale => $the_value) {\n\t\t\t\t\t\t$this->i18n_column_values[$key][$locale] = $the_value;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$this->i18n_column_values[$key][$this->get_locale()] = $value;\n\t\t\t\t}\n\t\t\t\treturn $value;\n\t\t\t}\n\t\t\telseif(is_array($value) && $this->auto_save_associations) {\n\t\t\t\tif($association_type = $this->get_association_type($key)) {\n\t\t\t\t\t$this->save_associations[$association_type][] = $value;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->$key = $value;\n\t\t}", "public function setValue($bibtex_key, $p, $v) // {{{\n {\n $entry = $this->m_entries[$bibtex_key];\n $entry[$p] = $v;\n $entry[\"raw\"][$p] = $v;\n $this->m_entries[$bibtex_key] = $entry;\n }", "function set($k,$v){\r\n\t\t$this->_Set($k,$v);\r\n\t}", "public function set( $key, $value );", "public function set( $key, $value );", "function ag_ps_override_indexes($array, $to_override) {\n\tforeach($to_override as $key => $val) {\n\t\t$array[$key] = $val;\t\n\t}\n\t\n\treturn $array;\n}", "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 updateIndex()\n {\n if ($this->es_index_helper) {\n call_user_func($this->es_index_helper, $this);\n }\n }", "public function set(string $key, $data);" ]
[ "0.61397254", "0.60747796", "0.6003855", "0.59997857", "0.59621924", "0.59521985", "0.5922879", "0.5886065", "0.5852551", "0.58256215", "0.58017826", "0.57910824", "0.57674694", "0.5764488", "0.5760726", "0.5754852", "0.5726272", "0.5686982", "0.56772274", "0.56738096", "0.5650987", "0.5607095", "0.5607095", "0.5591072", "0.55595696", "0.5558775", "0.5509968", "0.5500125", "0.5456162", "0.54555625", "0.5453183", "0.5437169", "0.54299825", "0.5423961", "0.54227537", "0.5391398", "0.53875196", "0.5385089", "0.5380707", "0.5371341", "0.5369907", "0.53629", "0.5350014", "0.5347908", "0.5347007", "0.534081", "0.5330954", "0.5329715", "0.53279084", "0.53219736", "0.5321818", "0.5318943", "0.5318943", "0.530952", "0.53095025", "0.5306284", "0.5304898", "0.5299563", "0.5299563", "0.52848595", "0.5279197", "0.5276143", "0.52572113", "0.525605", "0.5247323", "0.524712", "0.52405775", "0.523207", "0.52295387", "0.5219998", "0.52134126", "0.5208332", "0.5206334", "0.52063036", "0.52043533", "0.51908094", "0.5190495", "0.5190495", "0.5187853", "0.5187853", "0.5187853", "0.51846707", "0.5181513", "0.5171289", "0.51678306", "0.51594174", "0.5157658", "0.5155675", "0.51556504", "0.515466", "0.5151482", "0.5140098", "0.513891", "0.51350594", "0.51350594", "0.51346856", "0.51345104", "0.51345104", "0.5133732", "0.5132441" ]
0.5428704
33
Remove the specified key
public function unsetValue($key);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function remove($key);", "public function remove($key);", "public function remove($key);", "public function remove($key);", "public function remove($key);", "public function remove($key);", "public function remove($key);", "public function remove($key);", "public function remove($key) {}", "public function remove(string $key);", "protected function _removeKey($key) {}", "function remove($key);", "function remove($key);", "function remove ($key);", "abstract public function remove($key);", "public function removeItem($key);", "public function remove(string $key): void;", "public function del($key);", "function remove(string $key): void;", "public function removeAt($key);", "public function remove($key){\n\n }", "public function remove($key) {\n unset($this->_hash[$key]);\n }", "public function remove(string $key): self;", "public function delete( $key );", "public function __unset($key);", "public function __unset($key);", "function rm($key) {\n }", "public function delete($key);", "public function delete($key);", "public function delete($key);", "public function unsetKey(string $key);", "public function erase($key);", "public function rem($key);", "public function delete($key): void;", "function remove($key)\n {\n unset($this->data[$key]);\n }", "function remove($key)\n {\n unset($this->data[$key]);\n }", "public function remove($key)\n {\n unset($this->data[$key]);\n }", "public function deleteItem($key);", "public function Remove($key)\n {\n $actualKey = null;\n if($this->_key($key, $actualKey))\n {\n unset($this->_keyValPairs[$actualKey]);\n }\n }", "public function remove(string $key): void\n {\n\t\tunset($this->values[$key]);\n\t}", "public function delete(string $key): void;", "abstract public function delete( $key );", "public function unlink($key);", "abstract public function delete ($key);", "public function remove($key)\n\t{\n\t\tif (isset($this->data[$key])) {\n\t\t\tunset($this->data[$key]);\n\t\t}\n\t}", "abstract public function delete($key);", "public function remove($key)\r\n {\r\n unset($this->attributes[$key]);\r\n }", "public function remove($key)\n {\n unset($this->items[$key]);\n }", "public function query_remove($key) {\n\t\t\t\\uri\\query::remove($this->object, $key);\n\t\t}", "public function __unset($key) {\n\t\t$this->remove($key); \n\t}", "public function __unset($key) {\n\t\t$this->remove($key); \n\t}", "public function remove(string $key): bool {}", "public static function remove($key)\n {\n unset(self::$map[$key]);\n }", "public function remove(string $key): void\n {\n unset($this->items[$key]);\n }", "public function remove($key)\r\n {\r\n unlink($this->getFullFileName($key));\r\n }", "public function remove($key, $value = '');", "public function __unset($key)\r\n {\r\n $this->remove($key);\r\n }", "public function remove($key)\n {\n if ($this->offsetExists($key)) {\n $this->offsetUnset($key);\n }\n }", "public function remove($key)\r\r\n\t{\r\r\n\t\t$this->_storage->remove($key);\r\r\n\t}", "function remove($key) {\n return apc_delete($key);\n }", "public function remove($key) {\n return apc_delete($key);\n }", "public function without($key);", "public function remove($key)\r\n {\r\n return apc_delete($key);\r\n }", "private function delKey($key)\n {\n $this->model::where('key', $key)->get()->map(function($row){ $row->delete(); });\n }", "public function remove( $key ) {\n\t\tif (isset($this->array[$key])) {\n\t\t\tunset($this->array[$key]);\n\t\t}\n\t}", "public static function remove($key){\n if(self::exists($key)){\n unset(self::$answers[strtolower($key)]);\n }\n }", "public function remove($key) {\r\n\t\tif(in_array($key, array_keys($key))) {\r\n\t\t\tunset($this->arg[$key]);\r\n\t\t\t--$this->size;\r\n\t\t}\r\n\t}", "public function remove($key) {\n return $this->connection->delete($this->key($key));\n }", "public static function delete($key)\n {\n if (self::has($key)) {\n unset(self::$__request[$key]);\n }\n }", "public function __unset($key)\r\n {\r\n $this->shared_data->remove($key);\r\n }", "public function __unset($key)\n\t{\n\t\t$this->delete($key);\n\t}", "public function forget($key);", "public function forget($key);", "public function forget($key);", "public function forget($key);", "function delete($key) {\n\t\tunset($this->_cache[$key]);\n\t}", "public function __unset($key)\n {\n }", "public /*void*/ function __unset(/*scalar*/ $key){}", "public function __unset($key)\n {\n $this->forget($key);\n }", "public function deleteItem($key)\n {\n }", "public function remove($key, $id)\n\t{\n\t\treturn db::delete($this->_table_name.'_'.AutoModeler::factory(inflector::singular($key))->get_table_name())->where($key.'_id', '=', $id)->where(inflector::singular($this->_table_name).'_id', '=', $this->_data['id'])->execute($this->_db);\n\t}", "public function __unset($key) {\n unset(current($this->_data)[$key]);\n }", "public static function Remove($key)\n {\n unset($_REQUEST[$key]);\n }", "public function remove($key)\n {\n if(isset($this->list[$key]))\n {\n unset($this->list[$key]);\n }else\n {\n throw new InvalidCollectionKey(\"The key provided does not exist\");\n }\n }", "public function offsetUnset( $key );", "public function remove($key) {\n\t\t$value = isset($this->data[$key]) ? $this->data[$key] : null;\n\t\t$this->trackChange(\"unset:$key\", $value, null); \n\t\tunset($this->data[$key]); \n\t\treturn $this;\n\t}", "public function offsetUnset($key) {\n\t\t$this->remove($key);\n\t}", "public function delete_key($key){\n if($this->driver==\"file\"){\n $this->file->delete_file($this->path.md5($key).\".txt\");\n }\n if($this->driver==\"redis\"){\n $this->redis->hDel($this->path,md5($key));\n }\n }", "public function remove( $key ) \n {\n unset( $this->variables[$key] );\n }", "public function __unset( $key ) {\n\t\tunset( $this->_data[$key] );\n\t}", "public function remove(string $key): void\n\t{\n\t\tunset($this->headers[$this->formatKey($key)]);\n\t}", "public function offsetUnset($key)\r\n {\r\n $this->remove($key);\r\n }", "public function removeKey($key, $id = null)\n {\n $params['index'] = $this->model->getIndex();\n $params['type'] = $this->model->getType();\n if ($this->model->_id == null) {\n $params['id'] = $id;\n }\n $params['body']['script'] = \"ctx._source.remove(\\\"\".$key.\"\\\")\";\n return $this->client->update($params) ? true : false;\n }", "public function remove($key) \r\n {\r\n if(is_null($key)) \r\n {\r\n throw new ArgumentNullException(\"key is null.\");\r\n }\r\n \r\n unset($this->elements[$key]);\r\n }", "public function delInCache($key);", "public function delete($key) {\n\t\t// and return the result\n\t\treturn eaccelerator_rm($key);\n\t}", "abstract public function forget($key);", "function _delete($key){\n $this->_set($key, null);\n }", "public function removeObjectForKey($key)\n {\n $this->removeObjectForKeyWithLifeTimePathAndDomain($key);\n }", "public function delete($key) {\n\t\tif ($this->has($key)) {\n\t\t\tunlink($this->_dir . $key);\n\t\t}\n\t}" ]
[ "0.9050021", "0.9050021", "0.9050021", "0.9050021", "0.9050021", "0.9050021", "0.9050021", "0.9050021", "0.9031941", "0.8973257", "0.8888053", "0.88026786", "0.88026786", "0.8745989", "0.87223643", "0.86377496", "0.8516945", "0.85098636", "0.8495327", "0.84766585", "0.8470724", "0.8282406", "0.82756144", "0.8192203", "0.81369597", "0.81369597", "0.8126074", "0.8115314", "0.8115314", "0.8115314", "0.80695075", "0.8053388", "0.8038421", "0.8016041", "0.7962784", "0.7962784", "0.79326606", "0.78593284", "0.7855626", "0.7849965", "0.7785476", "0.778199", "0.77662814", "0.7764141", "0.7762963", "0.7755362", "0.77432", "0.7740537", "0.77244765", "0.7694514", "0.7694514", "0.7688453", "0.7681588", "0.76728964", "0.7636943", "0.7630563", "0.7629481", "0.7603856", "0.7603391", "0.7590542", "0.7589386", "0.75221163", "0.7500886", "0.74970794", "0.7482673", "0.7481018", "0.7460563", "0.7446487", "0.7431977", "0.7424593", "0.741178", "0.73959756", "0.73959756", "0.73959756", "0.73959756", "0.7379142", "0.7375889", "0.73754543", "0.7351618", "0.7342772", "0.73292536", "0.7303666", "0.7296122", "0.7267011", "0.72548366", "0.7241904", "0.7223086", "0.72193956", "0.72071576", "0.7196528", "0.71862173", "0.7179633", "0.717878", "0.7177057", "0.71768445", "0.7176432", "0.71742725", "0.71617997", "0.715001", "0.7144214" ]
0.72163284
88
Remove the specified keys
public function unsetValues($keys);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removekeys($src, $keys){\n return array_diff_key($src, array_flip($keys));\n}", "final public function unset(...$keys):Main\\Map\n {\n $this->checkAllowed('unset');\n $return = $this->onPrepareThis('unset');\n Base\\Arrs::unsetsRef($return->prepareKeys(...$keys),$return->arr(),$this->isSensitive());\n\n return $return->checkAfter();\n }", "public function deleteItems(array $keys);", "public function forget(...$keys): self;", "public function removeKey( ...$keys )\n\t{\n\n\t\tforeach ( $keys as $key )\n\t\t\tunset( $this->items[ $key ] );\n\n\t\treturn $this;\n\t}", "public function removeAll(array $keys=[]): CollectionInterface;", "function array_forget(&$array, $keys)\n {\n Arr::forget($array, $keys);\n }", "function array_forget(&$array, $keys)\n {\n Arr::forget($array, $keys);\n }", "protected function _removeKey($key) {}", "public static function del($keys)\n {\n return parent::del($keys);\n }", "function remove_row($keys) {\r\n $sql_where = '';\r\n if (count($keys) > 0) {\r\n $sql_wheres = array();\r\n foreach ($keys as $key=>$val) {\r\n if (is_array($val)) die('remove_row: multi value does not supported');\r\n $sql_wheres[] = \"`$key`='\".myaddslashes($val).\"'\";\r\n }\r\n $sql_where = ' where '.join(' and ',$sql_wheres);\r\n }\r\n assert($sql_where != ''); # safeguard against setting all rows\r\n $sql = 'delete from `'.$this->db_table.'`'.$sql_where.' limit 1'; # with limit safe guard\r\n #~ echo '<br>'.$sql;\r\n $res = mysql_query($sql) or die('<br>'.$sql.'<br>'.mysql_error()); #do to database\r\n }", "function remove($key);", "function remove($key);", "function remove ($key);", "public function deleteItems(array $keys)\n {\n }", "public function without($key);", "public static function removeAll(){\n\n foreach(static::all() as $key => $value){\n static::remove($key);\n }\n }", "function array_remove_keys($array, $keys)\n{\n $assocKeys = array();\n foreach ($keys as $key) {\n $assocKeys[$key] = true;\n }\n\n return array_diff_key($array, $assocKeys);\n}", "public function removeQuery(array $queryKeys);", "public function remove($key) {}", "public function remove($key);", "public function remove($key);", "public function remove($key);", "public function remove($key);", "public function remove($key);", "public function remove($key);", "public function remove($key);", "public function remove($key);", "function array_remove_keys($array, $keys) {\n $assocKeys = array();\n foreach($keys as $key) {\n $assocKeys[$key] = true;\n }\n\n return array_diff_key($array, $assocKeys);\n }", "function array_forget(&$array, $keys)\n {\n return Arr::forget($array, $keys);\n }", "abstract public function remove($key);", "public function removePairs(string ...$keys): static\n {\n return $this->removeQueryPairsByKey(...$keys);\n }", "public function removeParams(string ...$keys): static\n {\n return $this->removeQueryParameters(...$keys);\n }", "function remove(){\n tep_db_query(\"delete from \" . TABLE_CONFIGURATION . \" where configuration_key in ('\" . implode(\"', '\", $this->keys()) . \"')\");\n }", "function array_remove_keys($array, $keys = array()) {\n // doing anything else.\n if(empty($array) || (! is_array($array))) {\n return $array;\n }\n\n // If $keys is a comma-separated list, convert to an array.\n if(is_string($keys)) {\n $keys = explode(',', $keys);\n }\n\n // At this point if $keys is not an array, we can't do anything with it.\n if(! is_array($keys)) {\n return $array;\n }\n\n // array_diff_key() expected an associative array.\n $assocKeys = array();\n foreach($keys as $key) {\n $assocKeys[$key] = true;\n }\n\n return array_diff_key($array, $assocKeys);\n }", "public function removeQueryPairs(string ...$keys): static\n {\n return $this->removeQueryPairsByKey(...$keys);\n }", "public function remove($key){\n\n }", "function unset_array_keys($array, $keys) {\n $new_array = array();\n foreach($array as $arr) {\n foreach($arr as $key => $val) {\n if(in_array($key, $keys)) {\n unset($arr[$key]);\n }\n }\n array_push($new_array, $arr);\n }\n return $new_array;\n}", "public function delete_multiple(array $keys, $group = '')\n {\n }", "public function rem($key);", "function array_remove(array &$array, $keys) {\n $original = &$array;\n\n if ( ! is_array($keys)) {\n $keys = array($keys);\n }\n\n foreach ((array) $keys as $key) {\n $parts = explode('.', $key);\n\n while (count($parts) > 1) {\n $part = array_shift($parts);\n\n if (isset($array[$part]) && is_array($array[$part])) {\n $array = &$array[$part];\n }\n }\n\n unset($array[array_shift($parts)]);\n\n $array = &$original;\n }\n }", "public function except($keys): array\n\t{\n\t\t$keys = is_array($keys) ? $keys : func_get_args();\n\t\t$results = $this->all();\n\n\t\tArr::forget($results, $keys);\n\n\t\treturn $results;\n\t}", "public function removeItem($key);", "public static function unsetFromArray($keys, array &$arr)\n {\n $keys = self::makeArray($keys);\n foreach($keys as $key)\n {\n if (array_key_exists($key, $arr))\n unset($arr[$key]);\n }\n }", "public static function delete(string ...$keys)\n {\n static::getInstance()->delete(...$keys);\n }", "public function testMultipleMultiDimensionalKeyGetsRemoved()\n {\n $this->filter->values([\n 'test.test.test',\n 'test.test2',\n 'test.test3.test'\n ])->remove();\n\n $result = $this->filter->filter([\n 'test' => [\n 'test' => [\n 'test' => 'test',\n ],\n 'test2' => 'test',\n 'test3' => [\n 'test' => 'test',\n ],\n ],\n 'test2' => 'test',\n ]);\n\n $this->assertEquals(['test2' => 'test'], $result);\n }", "public function clear(array $keys)\n {\n }", "public function deleteKeyPatterns($keyPatterns);", "public function remove_all($key)\n\t{\n\t\tif (in_array($key, $this->_has_many))\n\t\t{\n\t\t\treturn db::delete($this->_table_name.'_'.AutoModeler::factory(inflector::singular($key))->get_table_name())->where(inflector::singular($this->_table_name).'_id', '=', $this->id)->execute($this->_db);\n\t\t}\n\t\telse if (in_array($key, $this->_belongs_to))\n\t\t{\n\t\t\treturn db::delete(AutoModeler::factory(inflector::singular($key))->get_table_name().'_'.$this->_table_name)->where(inflector::singular($this->_table_name).'_id', '=', $this->id)->execute($this->_db);\n\t\t}\n\t}", "public function deleteAllForKey()\n\t{\n\t\t$keys = $this->getAllKeys();\n return parent::deleteMulti($keys);\n\t}", "public function remove(string $key);", "public static function forget(&$array, $keys)\n {\n \n $original = &$array;\n $keys = (array)$keys;\n \n foreach ($keys as $key) {\n \n if (static::exists($array, $key)) {\n unset($array[$key]);\n continue;\n }\n \n $parts = explode('.', $key);\n \n $array = &$original;\n \n while (count($parts) > 1) {\n $part = array_shift($parts);\n \n if (static::accessible($array) && static::exists($array, $part)) {\n \n $array = &$array[$part];\n } else {\n \n continue 2;\n }\n \n }\n \n unset($array[array_shift($parts)]);\n \n \n }\n \n }", "public function removeMulti(array $keys) : static\n {\n foreach ($keys as $key) {\n $this->remove($key);\n }\n return $this;\n }", "public function delete($keys = NULL)\n\t{\n\t\tif ($keys === NULL)\n\t\t{\n\t\t\t$this->_filters[$this->_path] = array();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tforeach ((array) $keys as $key)\n\t\t\t{\n\t\t\t\tunset($this->_filters[$this->_path][$key]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->_save();\n\t\t\n\t\treturn $this;\n\t}", "public function deleteItems(array $keys): bool;", "public function removeAt($key);", "public function unsetData($keys)\n\t{\n\t\tif(is_array($keys)) {\n\t\t\t$this->userData = array_diff_key($this->userData,array_flip($keys));\n\t\t} elseif(isset($this->userData[$keys])) {\n\t\t\tunset($this->userData[$keys]);\n\t\t}\n\n\t\t$this->autoSave AND $this->saveData();\n\t}", "public function getAllWhereKeysNotIn(array $keys): CollectionInterface;", "public function deleteMultiple( $keys )\n\t{\n\t\t$this->getObject()->deleteMultiple( $keys );\n\t}", "public function testMultiDimensionalKeyGetsRemoved()\n {\n $this->filter->value('test.test.test')->remove();\n\n $result = $this->filter->filter([\n 'test' => [\n 'test' => [\n 'test' => 'test',\n ],\n ],\n 'test2' => 'test',\n ]);\n\n $this->assertEquals(['test2' => 'test'], $result);\n }", "function remove() {\n $keys = \"\";\n $keys_array = $this->keys();\n for ($i = 0; $i < sizeof($keys_array); $i ++) {\n $keys .= \"'\" . $keys_array[$i] . \"',\";\n }\n $keys = substr($keys, 0, - 1);\n \n if (MODULE_PAYMENT_CGP_DROP_TABLE === 'True') {\n tep_db_query(\"DROP TABLE IF EXISTS `CGP_orders_table`\");\n }\n \n tep_db_query(\"DELETE FROM \" . TABLE_CONFIGURATION . \" WHERE configuration_key IN (\" . $keys . \")\");\n }", "public static function forget(array &$array, array|string $keys): void\n {\n\n $original =& $array;\n\n foreach ((array)$keys as $key) {\n\n $parts = explode('.', $key);\n\n while (count($parts) > 1) {\n\n $part = array_shift($parts);\n\n if (isset($array[$part]) && is_array($array[$part])) {\n\n $array =& $array[$part];\n\n }\n\n }\n\n unset($array[array_shift($parts)]);\n\n // Clean up after each iteration\n\n $array =& $original;\n\n }\n }", "public function __unset($key);", "public function __unset($key);", "final public function remove(...$values):Main\\Map\n {\n $this->checkAllowed('remove');\n $return = $this->onPrepareThis('remove');\n $data =& $return->arr();\n $data = Base\\Arrs::valuesStrip($return->prepareValues(...$values),$data,$this->isSensitive());\n\n return $return->checkAfter();\n }", "public static function forget(&$array, $keys)\n {\n $original =& $array;\n\n foreach ( (array)$keys as $key )\n {\n $parts = explode('.', $key);\n\n while ( count($parts) > 1 )\n {\n $part = array_shift($parts);\n\n if ( isset($array[ $part ]) && is_array($array[ $part ]) )\n {\n $array =& $array[ $part ];\n }\n }\n\n unset($array[ array_shift($parts) ]);\n\n // clean up after each pass\n $array =& $original;\n }\n }", "public function offsetUnset( $key );", "public function remove(...$items);", "public function deleteMulti(array $keys) {\n return 0;\n }", "function remove() {\r\n global $db;\r\n $db->Execute(\"delete from \" . TABLE_CONFIGURATION . \" where configuration_key in ('\" . implode(\"', '\", $this->keys()) . \"')\");\r\n }", "public static function forget(&$array, $keys)\n {\n $original =& $array;\n\n foreach ((array) $keys as $key)\n {\n $parts = explode('.', $key);\n\n while (count($parts) > 1)\n {\n $part = array_shift($parts);\n\n if (isset($array[$part]) && is_array($array[$part]))\n {\n $array =& $array[$part];\n }\n }\n\n unset($array[array_shift($parts)]);\n\n // clean up after each pass\n $array =& $original;\n }\n }", "function remove() {\n global $db;\n $db->Execute(\"delete from \" . TABLE_CONFIGURATION . \" where configuration_key in ('\" . implode(\"', '\", $this->keys()) . \"')\");\n }", "function rm($key) {\n }", "function wp_cache_delete_multiple(array $keys, $group = '')\n {\n }", "public static function forget(&$array, $keys)\n {\n $original =& $array;\n\n foreach ( (array)$keys as $key ) {\n $parts = explode('.', $key);\n\n while ( count($parts) > 1 ) {\n $part = array_shift($parts);\n\n if ( isset($array[ $part ]) and is_array($array[ $part ]) ) {\n $array =& $array[ $part ];\n }\n\n unset($array[ array_shift($parts) ]);\n\n $array =& $original;\n }\n }\n }", "function remove()\t{\r\n\t\ttep_db_query(\"delete from IXcore.\" . TABLE_CONFIGURATION . \" where configuration_key in ('\" . implode(\"', '\", $this->keys()) . \"')\");\r\n\t}", "public static function forget( &$array, $keys )\n {\n $original = &$array;\n\n $keys = (array)$keys;\n\n if ( count( $keys ) === 0 ) {\n return;\n }\n\n foreach ( $keys as $key ) {\n // if the exact key exists in the top-level, remove it\n if ( static::exists( $array, $key ) ) {\n unset( $array[ $key ] );\n\n continue;\n }\n\n $parts = explode( '.', $key );\n\n // clean up before each pass\n $array = &$original;\n\n while ( count( $parts ) > 1 ) {\n $part = array_shift( $parts );\n\n if ( isset( $array[ $part ] ) && is_array( $array[ $part ] ) ) {\n $array = &$array[ $part ];\n } else {\n continue 2;\n }\n }\n\n unset( $array[ array_shift( $parts ) ] );\n }\n }", "public function delete($keys=array()){\n\n //get delete\n if(is_array($keys) && count($keys)){\n return $this->client->del($keys);\n }\n }", "public function del($key);", "public function testKeyGetsRemoved()\n {\n $this->filter->value('test')->remove();\n\n $result = $this->filter->filter([\n 'test' => 'test',\n 'test2' => 'test',\n ]);\n\n $this->assertEquals(['test2' => 'test'], $result);\n }", "public function __unset($key) {\n\t\tforeach (array('attributes', 'relationships') as $source) {\n\t\t\tunset($this->$source[$key]);\n\t\t}\n\t}", "public function except($keys)\n\t{\n\t\treturn array_filter($this->toArray(), function ($value, $key) use ($keys) {\n\t\t\treturn ! in_array($key, $keys);\n\t\t}, ARRAY_FILTER_USE_BOTH);\n\t}", "function deleteMulti($keys, $time=0) {\n return $this->memcached->deleteMulti($keys, $time);\n }", "public function clear(array $keys=null)\n {\n if ($keys === null) {\n $this->attributes = [];\n return;\n }\n\n if (!$keys) {\n return;\n }\n\n foreach ($keys as $key) {\n if (array_key_exists($key, $this->attributes)) {\n $this->offsetUnset($key);\n }\n }\n }", "static public function deleteMulti($subject, $keys) {\n\t\tforeach($keys as $oneKey)\n\t\t\tself::delete($subject, $oneKey);\n\t}", "public static function forget(&$array, $keys)\n {\n $original = &$array;\n\n $keys = (array) $keys;\n\n if (count($keys) === 0) {\n return;\n }\n\n foreach ($keys as $key) {\n $parts = explode('.', $key);\n\n while (count($parts) > 1) {\n $part = array_shift($parts);\n\n if (isset($array[$part]) && is_array($array[$part])) {\n $array = &$array[$part];\n } else {\n $parts = [];\n }\n }\n\n unset($array[array_shift($parts)]);\n\n // clean up after each pass\n $array = &$original;\n }\n }", "private function array_remove_keys($array, $keys = array()) {\n // doing anything else.\n if(empty($array) || (! is_array($array))) {\n return $array;\n }\n\n // At this point if $keys is not an array, we can't do anything with it.\n if(! is_array($keys)) {\n return $array;\n }\n\n // array_diff_key() expected an associative array.\n $assocKeys = array();\n foreach($keys as $key) {\n $assocKeys[$key] = true;\n }\n\n return array_diff_key($array, $assocKeys);\n }", "public function remove($key, $value = '');", "public function testRemoveOnNotExistingKeyWithValues()\n {\n $this->filter->value('test')->remove();\n\n $result = $this->filter->filter(['test2' => 'test']);\n\n $this->assertEquals(['test2' => 'test'], $result);\n }", "function remove(string $key): void;", "function dePlucks($array, $key_array){\n $out =[];\n foreach($array as $row){\n $temp = $row;\n foreach ($key_array as $key) {\n unset($temp[$key]);\n }\n $out[] = $temp;\n }\n return $out;\n }", "public function clear( $keys = null ) {\n\t\tif ( $keys === null ) {\n\t\t\t$this->cache = array();\n\t\t} else {\n\t\t\tforeach ( (array)$keys as $key ) {\n\t\t\t\tunset( $this->cache[$key] );\n\t\t\t}\n\t\t}\n\t}", "public function erase($key);", "public function remove($key) {\r\n\t\tif(in_array($key, array_keys($key))) {\r\n\t\t\tunset($this->arg[$key]);\r\n\t\t\t--$this->size;\r\n\t\t}\r\n\t}", "public function remove(string $key): void;", "public function testRemove() {\n $data = $this->expanded;\n $match = $data;\n\n unset($match['boolean']);\n $data = Hash::remove($data, 'boolean');\n $this->assertEquals($match, $data);\n\n unset($match['one']['depth']);\n $data = Hash::remove($data, 'one.depth');\n $this->assertEquals($match, $data);\n\n unset($match['one']['two']['depth']);\n $data = Hash::remove($data, 'one.two.depth');\n $this->assertEquals($match, $data);\n\n unset($match['one']['two']['three']['depth'], $match['one']['two']['three']['zero'], $match['one']['two']['three']['null']);\n $data = Hash::remove($data, 'one.two.three.depth');\n $data = Hash::remove($data, 'one.two.three.zero');\n $data = Hash::remove($data, 'one.two.three.null');\n $this->assertEquals($match, $data);\n\n unset($match['one']['two']['three']['four']['five']['six']['seven']['key']);\n $data = Hash::remove($data, 'one.two.three.four.five.six.seven.key');\n $this->assertEquals($match, $data);\n\n foreach (array(true, false, null, 123, 'foo') as $type) {\n $data = Hash::remove($data, $type);\n $this->assertEquals($match, $data);\n }\n\n $data = Hash::remove($data, 'a.fake.path');\n $this->assertEquals($match, $data);\n }", "function array_except($array, $keys)\n\t{\n\t\treturn array_diff_key($array, array_flip((array) $keys));\n\t}", "final public static function remove($key) {\n if (is_string($key) && ! is_false(strpos($key, ','))) {\n $key = explode(',', $key);\n }\n\n\n if (is_array($key)) {\n $old = static::fetch_item('--cache-tags');\n\n foreach ((array) $old as $i => $val) {\n $diff = array_intersect($key, (array) $val);\n\n if (empty($diff)) {\n continue;\n }\n\n static::delete_item($i);\n\n unset($old[$i]);\n }\n return static::store_item('--cache-tags', $old, NEVER);\n }\n return static::delete_item($key);\n }", "public function afterEraseEvent($self, $pkeys){\n }", "public function removeFilter($key);" ]
[ "0.7571214", "0.7452452", "0.7195923", "0.7117254", "0.70979214", "0.70221794", "0.6965189", "0.6965189", "0.69491464", "0.6922035", "0.69086903", "0.6907789", "0.6907789", "0.6866263", "0.6823514", "0.6787255", "0.6738699", "0.6729358", "0.67291266", "0.6713101", "0.6653947", "0.6653947", "0.6653947", "0.6653947", "0.6653947", "0.6653947", "0.6653947", "0.6653947", "0.66269636", "0.6621779", "0.6597567", "0.6588193", "0.65712917", "0.6562635", "0.65127647", "0.65008754", "0.6490175", "0.64767236", "0.6476571", "0.6475471", "0.64732265", "0.645875", "0.644777", "0.64253044", "0.64162666", "0.6415337", "0.64144146", "0.64136827", "0.64011765", "0.6395807", "0.63943714", "0.6375144", "0.6341862", "0.6322905", "0.63185924", "0.6318449", "0.6316287", "0.63128805", "0.63056976", "0.6304038", "0.6284544", "0.6262503", "0.62590253", "0.62590253", "0.6249721", "0.62471795", "0.62446547", "0.6238315", "0.6227964", "0.62177086", "0.62174577", "0.6213207", "0.6207995", "0.6207894", "0.6205343", "0.6199609", "0.61962414", "0.6194191", "0.6177307", "0.61714137", "0.6160049", "0.6156945", "0.61563236", "0.6132662", "0.6128048", "0.6095748", "0.6047806", "0.6041608", "0.6038556", "0.6036278", "0.6011521", "0.59910786", "0.5978894", "0.59612745", "0.59538615", "0.5938549", "0.59371823", "0.59369487", "0.59235185", "0.59036076" ]
0.7654068
0
Enabled the current plugin to the specified target level
function enable($target = 'core');
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setLevel($level);", "public function setLevel($level);", "function disable($target = 'core');", "public function onEnable() {\n $this->getLogger()->info(TextFormat::YELLOW . \"Enabling MaxPlugin...\");\n $this->getServer()->getPluginManager()->registerEvents($this,$this);\n }", "public function enable();", "public function enable();", "protected function enabled()\n {\n }", "function enable ($enabled = true);", "public function enabled(Module $module);", "public function set_autodiscovery_level($level = \\SIMPLEPIE_LOCATOR_ALL)\n {\n }", "public function enable() {}", "private function pageEnabled() {\r\n\t\t//Check if the plugin is valid and exits \t\r\n\t\tif (isset ( $_POST ['enable_module'] ) || strlen ( $_POST ['enable_module'] ) < 1 || ! ereg ( \"[a-zA-Z]+\", $_POST ['enable_module'] )) {\r\n\t\t\tthrow new Exception ( \"Invalid plugin name {$_POST['enable_module']}\" );\r\n\t\t}\r\n\t\t\r\n\t\t$plugin = $this->data->xpath ( \"plugin[@name='{$_POST ['enable_module']}']\" );\r\n\t\t\r\n\t\t//Check if there where any plugins found with that name\r\n\t\tif (! is_array ( $plugin ) || empty ( $plugin [0] )) {\r\n\t\t\tthrow new Exception ( \"The plugin {$_POST['enable_module']} could not be found.\" );\r\n\t\t}\r\n\t\t\r\n\t\tLogger::getRootLogger ()->info ( \"Changing status of module {$_POST ['enable_module']} to {$_POST ['enable']}\" );\r\n\t\t\r\n\t\t//Enable/disbale the plugin in XML\r\n\t\tif ($_POST ['enable'] == 'true' || $_POST ['enable'] == '1') {\r\n\t\t\t$plugin [0] ['enabled'] = \"true\";\r\n\t\t} elseif ($_POST ['enable'] == 'false' || $_POST ['enable'] == '0') {\r\n\t\t\t\r\n\t\t\t//Try to stop the plugin, when going from enabled to disabled.\r\n\t\t\t$plugin_object = $this->framework->getPlugin ( ( string ) $plugin [0] ['name'] );\r\n\t\t\tif (isset ( $plugin_object ) && $plugin_object->isService () && ( string ) $plugin [0] ['enabled'] == \"true\") {\r\n\t\t\t\t$plugin_object->stop ();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$plugin [0] ['enabled'] = \"false\";\r\n\t\t} else {\r\n\t\t\tthrow new Exception ( \"Invalid status option for a plugin. Did not disable/enable {$_POST ['enable_module']}.\" );\r\n\t\t}\r\n\t\t\r\n\t\t//Save config and print the changed plugin\r\n\t\tif ($this->config->saveConfig ()) {\r\n\t\t\techo \"<reply action=\\\"ok\\\"><plugin\";\r\n\t\t\tforeach ( $plugin [0]->attributes () as $name => $value ) {\r\n\t\t\t\techo \" $name = \\\"$value\\\"\";\r\n\t\t\t}\r\n\t\t\techo \"/></reply>\";\r\n\t\t} else {\r\n\t\t\tthrow new Exception ( \"Error, could not save configuration file.\" );\r\n\t\t}\r\n\t}", "public function enable()\n {\n $this->enabled = true;\n }", "public function enabled();", "public function enabled();", "public function enabled();", "public function enabled();", "public static function enable() {\n\t\tself::$enabled = true;\n\t}", "public function setLevel($level) {\n $this->level = $level;\n }", "public function enable()\n {\n add_settings_field(\n 'enable',\n apply_filters($this->plugin_name . 'label-enable', esc_html__('Enable', $this->plugin_name)),\n [$this->builder, 'checkbox'],\n $this->plugin_name,\n $this->plugin_name . '-general',\n [\n 'description' => 'Serve ' . get_site_url() . '/.well-known/security.txt on your WordPress site.',\n 'id' => 'enable',\n 'value' => isset($this->options['enable']) ? $this->options['enable'] : false,\n ]\n );\n }", "function activate_plugin() {\n\t$logger = get_logger();\n\t$logger->activate();\n\n\t/**\n\t * Trigger custom capabilities required by the plugin to be registered.\n\t */\n\tdo_action( 'mcavoy_register_caps' );\n}", "public static function enable(){\n self::$enabled = true; \n self::$disabled=false;\n }", "public function SetLevel($level)\n {\n $this->level = $level;\n }", "public function enable( $name );", "public static function enable()\n {\n self::$_enabled = TRUE;\n }", "public function hookEnable(): void\n {\n $this->say(\"Executing the Plugin's enable hook...\");\n $this->_exec(\"php ./src/hook_enable.php\");\n }", "public function is_enableable();", "public function onEnable(){\n\t\t $this->getServer()->getPluginManager()->registerEvents($this, $this);\n $this->getLogger()->info(TextFormat::BLUE . \"TimerAPI has been enabled!\");\n }", "public function onDisable() {\n $this->getLogger()->info(TextFormat::YELLOW . \"Disabling MaxPlugin...\");\n }", "public static function enable(): void\n {\n self::$isEnabled = true;\n }", "public function isEnabled($moduleName);", "public static function enable(): void\n {\n static::$_enabled = true;\n }", "public function setEnabled($enabled);", "public function setEnabled($enabled);", "function before_enable() { }", "private function activateNextLevel(int $nextLevel): void\n {\n // Callback before next level\n $this->levels[$nextLevel]['callback']($nextLevel, $this->levels[$nextLevel]['name']);\n\n // If auto skip is enabled, there is no sense to regulate tests\n if ($this->autoSkip) {\n return;\n }\n\n // If low-level tests weren't successful, automatically skip the next one\n if ($this->failed !== 0) {\n $this->setAutoSkip(true);\n }\n }", "public function enableWikiOnProfile()\n {\n $this->amOnRoute(['/user/account/edit-modules']);\n $this->waitForText('Enable');\n\n if(version_compare(Yii::$app->version ,'1.4-dev', '<')) {\n // Note: this only works if no other profile module is installed\n $this->click('Enable');\n } else {\n $this->click('.enable-module-wiki');\n }\n\n $this->waitForText('Disable');\n }", "public function enable_powered_by() {\n\t\tupdate_option( 'algolia_powered_by_enabled', 'yes' );\n\t}", "public function setLevel(int $level) {\n\n $this->level = $level;\n\n }", "public function enable() {\n\t\t$this->update(FALSE);\n\t}", "public function is_enabled()\n {\n }", "public function canBeEnabled();", "public function enable(OvalSourceDef &$ovalSourceDef) {\n \t$this->db->query(\n \"update OvalSourceDef set enabled=\".Constants::$ENABLED.\" where id=\".mysql_real_escape_string($ovalSourceDef->getId()));\n }", "public function setEnabled($enabled)\n {\n $this->enabled = (int) $enabled;\n }", "public function setDebugLevel($level = 0)\n {\n $this->do_debug = $level;\n }", "public function activatePlugin();", "public function is_enabled()\n {\n }", "public function support($name) {\n\t\t$this->enable_or_disable($name, true);\n\t}", "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 }", "public function set_enabled($var_enabled) {\r\n\t\t$this->enabled = $var_enabled;\r\n\t}", "public static function is_enable() {\n\t\treturn true;\n\t}", "function setDebug( $level )\r\n\t{\r\n\t\tif( $this->debug & DBGTRACE ) echo \"setDebug( $level )\\n\";\r\n\t\t$this->debug = $level;\r\n\t}", "public function enable($id)\n {\n }", "public function admin_enable($id = null) {\n\n\t\t\t/*disable rendering of view*/\n\t\t\t$this->autoRender = false;\n\n\t\t\t/*set activity as \"Enable\"*/\n\t\t\t$act=array('activ'=>'1');\n\n\t\t\t/*save activity parameter to table \"modules\"*/\n\t\t\t$this->Module->id=$id;\n\t\t\t$this->Module->save($act);\n\n\t\t\t/*back to method \"admin_index\"*/\n\t\t\t$this->redirect(array('action' => 'admin_index'));\n\t\t\t}", "public function setEnableTargetsToSelfAddAccess($val)\n {\n $this->_propDict[\"enableTargetsToSelfAddAccess\"] = $val;\n return $this;\n }", "abstract protected function activate_plugin();", "public function setEnabled($enabled) {\n $this->enabled = $enabled;\n }", "public function setDebugLevel($level = 0)\n {\n }", "public function toggleEnabled(){\n \n global $DB;\n \n $obj = new \\stdClass();\n $obj->id = $this->id;\n $obj->enabled = !$this->enabled;\n $DB->update_record(\"bcgt_crit_award_structures\", $obj);\n \n // If this is a Build grading structure, disable all the others first\n // Removed this, as now GCSE have different grading structures for different assessments\n// if ($this->qualBuildID > 0)\n// {\n// \n// $DB->execute(\"UPDATE {bcgt_crit_award_structures} \n// SET enabled = 0\n// WHERE buildid = ?\n// AND id <> ?\n// AND deleted = 0\", array($this->qualBuildID, $this->id));\n// \n// }\n \n }", "public function enable(): bool {}", "function activate_akvockan_plugin() {\n\tInc\\Base\\Activate::activate();\n}", "function setLevel($level) {\n\t\tif (is_string($level)) {\n\t\t\tswitch (strtolower($level)) {\n\t\t\t\tcase \"debug\":\n\t\t\t\t\t$level = MC_LOGGER_DEBUG;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"info\":\n\t\t\t\t\t$level = MC_LOGGER_INFO;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"warn\":\n\t\t\t\tcase \"warning\":\n\t\t\t\t\t$level = MC_LOGGER_WARN;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"error\":\n\t\t\t\t\t$level = MC_LOGGER_ERROR;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"fatal\":\n\t\t\t\t\t$level = MC_LOGGER_FATAL;\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\t$level = MC_LOGGER_FATAL;\n\t\t\t}\n\t\t}\n\n\t\t$this->_level = $level;\n\t}", "public function setPlayerLevel($value)\n {\n return $this->set(self::_PLAYER_LEVEL, $value);\n }", "protected function isEnabled($level)\n {\n // logging off\n if (!isset($this->config['log_levels']) || in_array(self::OFF, $this->config['log_levels'])) {\n return false;\n }\n\n // log all or\n // check for specific log level\n return in_array(self::ALL, $this->config['log_levels']) || in_array($level, $this->config['log_levels']);\n }", "function Enable() {\n\n\t\t\t//add_action('load-categories.php', array(\"TreBiMeteo\",'SetAdminConfiguration'));\n\t\t\t//add_action('load-edit-tags.php', array(\"TreBiMeteo\",'SetAdminConfiguration'));\n\t\t\t// Aggiungiamo la pagina delle opzioni\n\t\t\tadd_action('admin_menu', array(\"TreBiMeteo\",'SetAdminConfiguration'));\n\t\t\t//add_action('widgets_init', array(\"TreBiMeteo\",'SetWidget'));\t\t\t\n\n\t\t}", "public function isLogEnabled($level=2)\n {\n return $this->getDebugSetting(\"enable_log\") == true &&\n \t\t$this->getDebugSetting(\"log_level\") >= $level;\n }", "function isEnabled ();", "function disable()\n{\n\t$args = func_get_args();\n\tif (is_array($args[0])) $args = $args[0];\n\t$this->enable($args, false);\n}", "function enableAccount($accountId)\n\t\t{\n\t\t\tmysql_query(\"UPDATE argus_accounts SET status = 'ENABLED' WHERE account_id = '\".$accountId.\"' AND status = 'DISABLED'\") or die(mysql_error());\n\t\t\t\n\t\t\treturn;\n\t\t}", "public function enablePlugin($args){\n\n // Note the ID and the name attribute of the element match that of the ID in the call to add_settings_field\n echo '<input type=\"checkbox\" id=\"'. $this->htmlName .'\" name=\"'. $this->htmlName .'\" value=\"1\" ' . checked(1, get_option($this->htmlName), false) . '/>'; \n \n echo'<label for=\"'. $this->htmlName .'\"> ' . $args[0] . '</label>'; \n }", "public function setLogLevel($level)\r\n {\r\n $this->level = $level;\r\n }", "public function enable(string $slug);", "public function durabilityLevel($level): IncrementOptions\n {\n if (gettype($level) == \"integer\") {\n $level = Deprecations::convertDeprecatedDurabilityLevel(__METHOD__, $level);\n }\n $this->durabilityLevel = $level;\n return $this;\n }", "public function enable($enabled = true) {\n return parent::setAttr(\"disabled\", !$enabled);\n }", "public function setEnabled( $enabled ){\r\n $this->enabled = $enabled;\r\n \r\n $sqlQuery = \"UPDATE users SET enable = \" . $enabled . \" WHERE user_id = \" . $this->getID() . \" AND role = '\" . AGENT_ROLE_ID . \"';\";;\r\n $result = $this->dbcomm->executeQuery($sqlQuery);\r\n\r\n if ($result != true)\r\n {\r\n echo \"<br><b>\" . $this->dbcomm->giveError() . \"</b>\";\r\n return 0;\r\n }\r\n else\r\n {\r\n if ( $this->dbcomm->affectedRows() == 1) \r\n {\r\n return 1;\r\n }\r\n else\r\n {\r\n return 0;\r\n }\r\n\r\n } \r\n }", "public function setLevel($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Streetview\\Publish\\V1\\Level::class);\n $this->level = $var;\n\n return $this;\n }", "private function enableInternal(Addon $addon, array $options) {\n $wasEnabled = $this->isEnabledConfig($addon, $options);\n\n $this->addonManager->startAddon($addon);\n\n // Load bootstrap file.\n if ($bootstrap = $addon->getSpecial('bootstrap')) {\n include_once $addon->path($bootstrap, Addon::PATH_FULL);\n }\n\n $this->runSetup($addon);\n $this->enableInConfig($addon, true, $options);\n if ($pluginClass = $addon->getPluginClass()) {\n $this->events->bindClass($pluginClass, $addon->getPriority());\n\n // Fire some main events on the plugin.\n if (!$wasEnabled) {\n $this->callBootstrapEvents($pluginClass);\n }\n }\n\n if (!$wasEnabled) {\n $this->logger->info(\n 'The {addonKey} {addonType} was enabled.',\n ['event' => 'addon_enabled', 'addonKey' => $addon->getKey(), 'addonType' => $addon->getType()]\n );\n }\n }", "function isEnabled();", "function isEnabled();", "function enableAdministrator($id) {\r\n\r\n\t\t$this->query('UPDATE admins SET `enabled` = 1 WHERE id= '. $id .';');\r\n\r\n\t}", "function admin_enable($id = null) {\n\n\t\t$subdomain = $this->Subdomain->read(null, $id);\n\n\t\t/**\n\t\t * Read the \"Status\" component for more informations.\n\t\t * Dir : controllers/components/status.php\n\t\t */\n\t\tif (!empty($subdomain)) {\n\n\t\t\t$subdomain['Subdomain']['status'] = 0;\n\n\t\t\t/**\n\t\t\t * Select the subdomain name with the ID.\n\t\t\t * It's necessary for the insert in the \"robot\" table.\n\t\t\t * @var string\n\t\t\t */\n\t\t\t$data = $this->Robot->search($id, 'Subdomain');\n\t\t\t\n\t\t\t/**\n\t\t\t * Change the subdomain status.\n\t\t\t * Redirect the administrator to index page.\n\t\t\t */\n\t\t\tif ($this->Subdomain->save($subdomain)) {\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * Insert the delete action in the \"robot\" table.\n\t\t\t\t * The Perl robot will check in this table.\n\t\t\t\t */\n\t\t\t\t$this->Robot->insert($data['Subdomain']['name'], 'SUBDOMAIN', $data['User']['name'], NULL, $data['Subdomain']['domain_id'], NULL, 5);\n\n\t\t\t\t/**\n\t\t\t\t * Insert the enable action in the \"logs\" table.\n\t\t\t\t */\n\t\t\t\t$this->Logs->insert($this->Auth->user('id'), '<strong>[ ' . $data['Subdomain']['name'] . ' ]</strong> ' . __d('domain', 'Subdomain enabled by (' . $this->Auth->user('name') . ').', true) , 'DNS', $_SERVER[\"REMOTE_ADDR\"]);\n\t\t\t\t\n\t\t\t\t$this->Session->setFlash(__d('domain', 'The subdomain has been enabled.', true));\n\t\t\t\t$this->redirect(array('action' => 'index'));\n\n\t\t\t}\n\t\t}\n\n\t}", "function enableHitsOnly(){\n\t\t$this->hitsonly = true;\n\t}", "public function setVerbosity($level)\n {\n }", "protected function toggleDisableAction() {}", "public static function enable($enable = true) : void\n {\n }", "public function setPower()\n {\n $this->_role->power = 200;\n }", "function ju_module_enabled(string $m):bool {return ju_module_m()->isEnabled($m);}", "function threadratinglog_activate()\n{\n\tchange_admin_permission('tools', 'ratinglog');\n}", "function enable()\n{\n\t$args = func_get_args();\n\t$val = (end($args) === false)? 1:0;\n\tif (is_array($args[0])) $args = $args[0];\n\tforeach($args as $name) {\n\t\tif ($name) $this->elements[$name]['noprint'] = $val;\n\t}\n}", "public function enable_step($old_state);", "public function setLevel($level)\n {\n $this->level = $level;\n $this->childContainer->setLevel($level + 1);\n }", "public function base_plugin_active()\n\t{\n\t\treturn true;\n\t}", "function isEnabled($name);", "public function switch_on ($id, $level = 100) {\n\t\t//Returns true or false. No values are set! (Execute get_status to get the new status)\n\t\treturn $this->_switch_on ($id, $level);\n\t}", "public function setAccessLevel($level) {\n $this->access_level = $level;\n }", "public function enable() {\n\t\tif ($this->enabled) return;\n\t\t$this->setUp($this->outputMode, $this->crashCallback, $this->destructCallback);\n\t\t$this->enabled = true;\n\t}", "public function setPower()\n {\n $this->_role->power = 100;\n }", "function admin_enable($id = null) {\n\n\t\t$user = $this->User->read(null, $id);\n\n\t\t/**\n\t\t * Read the \"Status\" component for more informations.\n\t\t * Dir : controllers/components/status.php\n\t\t */\n\t\tif (!empty($user)) {\n\n\t\t\t$user['User']['status'] = 0;\n\n\t\t\t/**\n\t\t\t * Change the user status.\n\t\t\t * Redirect the administrator to index page.\n\t\t\t */\n\t\t\tif ($this->User->save($user)) {\n\t\t\t\t$this->Session->setFlash(__d('core', 'The user has been enabled.', true));\n\t\t\t\t$this->redirect(array('action' => 'index'));\n\t\t\t}\n\t\t}\n\n\t}", "public function testEnabled(): void\n {\n $agentWithoutEnabling = $this->agentFromConfigArray();\n self::assertFalse($agentWithoutEnabling->enabled());\n\n // but a config that has monitor = true, it is set\n $enabledAgent = $this->agentFromConfigArray([ConfigKey::MONITORING_ENABLED => 'true']);\n self::assertTrue($enabledAgent->enabled());\n }", "function enable($watcherId);" ]
[ "0.5906983", "0.59058696", "0.5755222", "0.5707993", "0.5691277", "0.5691277", "0.568822", "0.5581171", "0.55494344", "0.55480134", "0.5537755", "0.54685503", "0.54541266", "0.54407394", "0.54407394", "0.54407394", "0.54407394", "0.5413409", "0.539197", "0.5346802", "0.527397", "0.5271859", "0.5262038", "0.5212033", "0.52064806", "0.5161489", "0.5155739", "0.51438665", "0.5129063", "0.5125571", "0.50710857", "0.50577337", "0.50466853", "0.50466853", "0.50307256", "0.5029515", "0.5022565", "0.50219774", "0.5014625", "0.5013781", "0.5013341", "0.4970014", "0.494375", "0.49314836", "0.49298942", "0.49228802", "0.49131233", "0.49018055", "0.48816884", "0.48741984", "0.48603615", "0.48571283", "0.48550466", "0.48504442", "0.48494455", "0.4847147", "0.48353675", "0.48204386", "0.4806847", "0.4793241", "0.47852787", "0.47793084", "0.47668368", "0.47630352", "0.47588784", "0.4758161", "0.47566685", "0.47505805", "0.47208506", "0.47169602", "0.4704305", "0.47033307", "0.47015616", "0.47013244", "0.4694663", "0.46925327", "0.46874863", "0.46827465", "0.46827465", "0.46775112", "0.4675097", "0.46726507", "0.46681154", "0.4655913", "0.46555784", "0.46459043", "0.46455172", "0.46368155", "0.46332988", "0.4628578", "0.4628131", "0.4626641", "0.46137917", "0.4596188", "0.45953178", "0.45913276", "0.45899272", "0.4580368", "0.45802575", "0.45796213" ]
0.69578433
0
Disable the current plugin from the specified target
function disable($target = 'core');
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function disable();", "function disable()\n{\n\t$args = func_get_args();\n\tif (is_array($args[0])) $args = $args[0];\n\t$this->enable($args, false);\n}", "public function hookDisable(): void\n {\n $this->say(\"Executing the Plugin's disable hook...\");\n $this->_exec(\"php ./src/hook_disable.php\");\n }", "public function disable() {}", "abstract protected function deactivate_plugin();", "public function onDisable() {\n\t}", "public function deactivatePlugin();", "public function onDisable() {\n $this->getLogger()->info(TextFormat::YELLOW . \"Disabling MaxPlugin...\");\n }", "function deactivate_plugin() {}", "public function disable( $name );", "function enable($target = 'core');", "function deactivate_sitewide_plugin($plugin = \\false)\n {\n }", "public function disable(Module $module);", "function deactivate_mfn_wp_plugin()\n{\n require_once plugin_dir_path(__FILE__) . 'includes/class-mfn-wp-plugin-deactivator.php';\n Mfn_Wp_Plugin_Deactivator::deactivate();\n}", "public function disable()\n {\n $this->enabled = false;\n }", "protected function toggleDisableAction() {}", "public static function disable() {\n\t\tself::$enabled = false;\n\t}", "public function plugin_deactivate() {\r\n\r\n\t}", "public static function disable(){\n self::$disabled = true; \n self::$enabled = false;\n }", "public static function disable(): void\n {\n self::$isEnabled = false;\n }", "function disable($target_username) {\n $this->stmnt('UPDATE USERS SET DISABLED=\\'yes\\', TIMESTAMP_CHANGE = NOW() WHERE MONK_ID = \\'' . $target_username . '\\'');\n }", "function mediatags_deactivate_plugin()\n\t{\n\t}", "public static function deactivate() {\n if ( !current_user_can( 'activate_plugins' ) ) {\n return;\n }\n\n $plugin = isset( $_REQUEST['plugin'] ) ? $_REQUEST['plugin'] : '';\n check_admin_referer( 'deactivate-plugin_' . $plugin );\n\n Clanpress_Mode::reset();\n }", "public function disable_extension(){}", "public static function disable()\n {\n self::$_enabled = FALSE;\n }", "public function disable(): void\n {\n $this->disabled = true;\n }", "function disable_plugins(){\n\t\t\t\t# Required to check\n\t\t\t\tinclude_once(ABSPATH .'wp-admin/includes/plugin.php');\n\n\t\t\t\tif (is_plugin_active('wp-fastest-cache/wpFastestCache.php')) {\n\t\t\t\t\tdeactivate_plugins('wp-fastest-cache/wpFastestCache.php');\n\t\t\t\t}\n\t\t\t}", "public function disable() {\n\t\t$this->update(TRUE);\n\t}", "public function deactivate_me() {\r\n\r\n\t\t// We do a check for deactivate_plugins before calling it, to protect\r\n\t\t// any developers from accidentally calling it too early and breaking things.\r\n\t\tif ( function_exists( 'deactivate_plugins' ) ) {\r\n\t\t\tdeactivate_plugins( $this->basename );\r\n\t\t}\r\n\t}", "public static function disable(): void\n {\n static::$_enabled = false;\n }", "public function disable_plugins() {\n\t\tif ( ! $this->is_safe_environment() ) {\n\t\t\treturn;\n\t\t}\n\n\t\tforeach ( $this->plugins as $plugin ) {\n\t\t\tif ( is_plugin_active( $plugin ) ) {\n\t\t\t\tdeactivate_plugins( $plugin, true );\n\t\t\t}\n\t\t}\n\t}", "public function disable(string $slug);", "function deactivate_akvockan_plugin() {\n\tInc\\Base\\Deactivate::deactivate();\n}", "function jft_assistant_deactivate() {\n\trequire_once JFT_ASSISTANT_DIR__ . '/classes/JftAssistant/Autoloader.php';\n\tJftAssistant_Autoloader::register();\n\tJftAssistant_Plugin::get_instance()->deactivate();\n}", "function deactivate_sitewide_plugin( $plugin = false ) {\n\t_deprecated_function( __FUNCTION__, '3.0.0', 'deactivate_plugin()' );\n}", "public function disable_powered_by() {\n\t\tupdate_option( 'algolia_powered_by_enabled', 'no' );\n\t}", "public function disable(ContextInterface $ctx): void;", "public function disable(ContextInterface $ctx): void;", "public function disable(ContextInterface $ctx): void;", "public function disable(): bool {}", "function KemiSitemap_deactivate(){\n deactivate_plugins( plugin_basename( __FILE__ ) );\n }", "public function deactivate() {\n\t\t/**\n\t\t * Fires when the plugin is being deactivated.\n\t\t *\n\t\t * @since 7.0\n\t\t */\n\t\tdo_action('audition_deactivate');\n\t}", "public function disabled();", "public function disabled();", "public static function deactivate() {\n\n\t\tif ( is_admin() && current_user_can( 'activate_plugins' ) ) {\n\t\t\t$activator = static::get_instance();\n\t\t\t\n\t\t\tif ( self::DO_LOG_ACTIVATION ) {\n\t\t\t\tself::log_message( __METHOD__, 'Dectivating plugin ' . plugin_basename( $activator->get_plugin_file() ) );\n\t\t\t}\n\t\t\t\n\t\t\t$activator->deactivate_classes();\n\t\t\t$activator->deactivate_plugin();\n\t\t\t\n\t\t\tflush_rewrite_rules();\n\t\t}\n\t}", "function deactivator()\n{\n require_once plugin_dir_path( __FILE__ ) . 'includes/Deactivator.php';\n\tDeactivator::deactivate();\n}", "public static function disable()\n {\n // Disable the page theme\n unset(self::$data['theme']);\n\n // Disable the optimizer\n self::$data['optimize'] = false;\n }", "function disable($watcherId);", "public function deactivated_plugin( $filename ) {\n \n }", "public static function phpunit_disable() {\n parent::disable();\n }", "function deactivate_ts()\n{\n require_once plugin_dir_path(__FILE__) . 'includes/class-ts-deactivator.php';\n TS_Deactivator::deactivate();\n}", "public function disable_step($old_state);", "function deactivate() {\n\t\t\twp_clear_scheduled_hook('twitter_pull_event');\n\t\t\t// remove the options\n\t\t\tdelete_option('h2utp_options');\n\t\t}", "function _deactivate() {}", "public function disable() {\n\t\tif (!$this->enabled) return;\n\t\t$this->errorCatcher->disable();\n\t\t$this->enabled = false;\n\t}", "function disable_extension()\n\t{\n\t\tglobal $DB;\n\t\t$DB->query(\"DELETE FROM exp_extensions WHERE class = '\" . get_class($this) . \"'\");\n\t}", "function wpcom_vip_plugins_ui_disable_activation() {\n _deprecated_function( __FUNCTION__, '2.0.0', 'plugins_url' );\n}", "function disable_extension()\n\t{\n\t\tglobal $DB;\n\t\t$DB->query(\"DELETE FROM exp_extensions WHERE class = '\".$DB->escape_str(get_class($this)).\"'\");\n\t}", "public function deactivate() {\r\n\r\n if ( ! current_user_can('activate_plugins') ) {\r\n return;\r\n }\r\n\r\n $plugin = isset( $_REQUEST['plugin'] ) ? $_REQUEST['plugin'] : '';\r\n check_admin_referer( \"deactivate-plugin_{$plugin}\" );\r\n\r\n delete_transient( 'ce_flush_rules' );\r\n flush_rewrite_rules();\r\n\r\n }", "function myplugin_deactivate()\n{\n\tglobal $wpdb, $myplugin_options_all, $myplugin_dbtables_all;\n\n\tmyplugin_deactivate_dbtables( $myplugin_dbtables_all );\n\tmyplugin_deactivate_options( $myplugin_options_all );\n}", "public function deactivate();", "function deactivate_dashwp() {\n\trequire_once plugin_dir_path( __FILE__ ) . 'includes/class-dashwp-deactivator.php';\n\tDashWP_Deactivator::deactivate();\n}", "public function disable($name)\n\t{\n\t\t// @codingStandardsIgnoreStart\n\t\twhile ($this->disable_step($name));\n\t\t// @codingStandardsIgnoreEnd\n\t}", "public static function deactivate(){\n // Do nothing\n }", "public function plugin_deactivate(){\n\t\t//flush permalinks\n\t\tflush_rewrite_rules();\n\t}", "public function plugin_deactivate(){\n\t\t//flush permalinks\n\t\tflush_rewrite_rules();\n\t}", "function deactivate_plugin() {\n\tdelete_option( 'rewrite_rules' );\n}", "abstract public function deactivate();", "public function disableExtension()\n {\n $this->resourceConfig->saveConfig(self::XML_PATH_MODULE_ACTIVE, 0, 'default', 0);\n }", "function stop_manager_deactivate()\n{\n\treturn TRUE;\n}", "function _drush_pm_disable($args) {\n drush_include_engine('drupal', 'environment');\n // To be consistent call the environment.inc function which will show the user\n // an error.\n drush_module_disable($args);\n}", "function hm_deactivate_conflicts() {\n\t$plugins = get_option('active_plugins' );\n\t$plugin_deactivate = array_keys( $plugins, 'WPThumb/wpthumb.php' );\n\tunset( $plugins[$plugin_deactivate[0]]);\n\tupdate_option( 'active_plugins', $plugins );\n}", "protected function deactivateSelf() {}", "function deactivate_ongkoskirim_id() {\n\trequire_once plugin_dir_path( __FILE__ ) . 'includes/class-ongkoskirim-id-deactivator.php';\n\tOngkoskirim_Id_Deactivator::deactivate();\n}", "public static function deactivate() {\n\n }", "function ff_disable_feature( $feature )\n\t{\n\t\tff_FeatureFlags::getInstance()->getFeature( $feature )->globalDisable();\n\t}", "public function disable_extension() {\n ee()->db->where('class', __CLASS__);\n ee()->db->delete('extensions');\n }", "function deactivate_cps() {\n\trequire_once plugin_dir_path( __FILE__ ) . 'includes/class-cps-deactivator.php';\n\tcps_Deactivator::deactivate();\n}", "public static function deactivate(){\n }", "public static function deactivate(){\n }", "public static function deactivate() {\n\t}", "function disable_extension()\n\t{\n\t\tee()->db->where('class', __CLASS__);\n\t\tee()->db->delete('extensions');\n\t}", "public function admin_disable($id = null) {\n\n\t\t\t/*disable rendering of view*/\n\t\t\t$this->autoRender = false;\n\n\t\t\t/*set activity as \"Disable\"*/\n\t\t\t$act=array('activ'=>'0');\n\n\t\t\t/*save activity parameter to table \"modules\"*/\n\t\t\t$this->Module->id=$id;\n\t\t\t$this->Module->save($act);\n\n\t\t\t/*back to method \"admin_index\"*/\n\t\t\t$this->redirect(array('action' => 'admin_index'));\n\t\t\t}", "public function deactivate(): void;", "function deactivate_plugins($plugins, $silent = \\false, $network_wide = \\null)\n {\n }", "public static function deactivate()\n {\n }", "public function disableAutomation(): self\n\t{\n\t\t$this->isAutomationEnabled = false;\n\n\t\treturn $this;\n\t}", "public function deactivate() {\n\n }", "public function deactivate() {\n\n }", "public function deactivate()\n {\n if (Manager::getInstance()->isPluginActivated('Login') == false) {\n Manager::getInstance()->activatePlugin('Login');\n }\n }", "function tideways_disable()\n{\n}", "function deactivate_wp_book() {\n Inc\\Base\\Deactivate::deactivate();\n}", "public static function deactivate()\n {\n // Do nothing\n }", "function test_bu_mobile_is_disabled() {\n\t\tupdate_option(\n\t\t\t'active_plugins',\n\t\t\tarray(\n\t\t\t\t'bu-mobile/bu-mobile.php',\n\t\t\t)\n\t\t);\n\n\t\tresponsive_disable_bu_mobile_plugin();\n\n\t\t$this->assertSame( array(), get_option( 'active_plugins' ) );\n\t}", "function hook_deactivate() {\r\n\r\n if (!current_user_can('activate_plugins'))\r\n return;\r\n $plugin = isset($_REQUEST['plugin']) ? $_REQUEST['plugin'] : '';\r\n check_admin_referer(\"deactivate-plugin_{$plugin}\");\r\n }", "function disable_extension()\n {\n ee()->db->where('class', __CLASS__);\n ee()->db->delete('extensions');\n }", "function deactivate_mw_qbo_desktop() {\n\trequire_once plugin_dir_path( __FILE__ ) . 'includes/class-mw-qbo-desktop-deactivator.php';\n\tMW_QBO_Desktop_Deactivator::deactivate();\n}", "public static function deactivate() {\n\t\t// Do nothing.\n\t}", "function disable_embeds_tiny_mce_plugin( $plugins ) {\n return array_diff( $plugins, array( 'wpembed' ) );\n}", "public function uninstallPlugin()\n {\n }" ]
[ "0.6849664", "0.6794527", "0.66730446", "0.6635169", "0.6602413", "0.6591144", "0.6584679", "0.65350246", "0.64985204", "0.6464987", "0.64152795", "0.6355722", "0.63463825", "0.6325659", "0.62966573", "0.6193167", "0.61840236", "0.6132527", "0.60985464", "0.6062782", "0.6008287", "0.59948146", "0.5980552", "0.5980159", "0.59681857", "0.59661025", "0.59546924", "0.5930706", "0.5917542", "0.59001964", "0.58248806", "0.58184004", "0.5810432", "0.5786653", "0.57655406", "0.5750191", "0.5742049", "0.5742049", "0.5742049", "0.5736238", "0.57277006", "0.57230735", "0.57176656", "0.57176656", "0.5702829", "0.5701815", "0.5687086", "0.56808513", "0.5638738", "0.5614412", "0.56067586", "0.5605243", "0.5596779", "0.5592818", "0.55826765", "0.55744916", "0.555159", "0.55413306", "0.55371445", "0.55313677", "0.55206376", "0.550079", "0.5496897", "0.54966885", "0.5463509", "0.5463509", "0.545478", "0.5454041", "0.544712", "0.54440695", "0.54419386", "0.5440334", "0.5435695", "0.5431365", "0.54164046", "0.53587073", "0.5357746", "0.53542095", "0.5349712", "0.5349712", "0.5335897", "0.53336793", "0.5331972", "0.5315392", "0.5311582", "0.5306532", "0.53014964", "0.5296147", "0.5296147", "0.5277625", "0.5275879", "0.527384", "0.52725327", "0.5265705", "0.5263575", "0.52615786", "0.5250996", "0.5250458", "0.5242215", "0.5235718" ]
0.83290714
0
Check if the current plugin is enabled
function isEnabled();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function is_enabled() {\n $enabled = file_exists(ABSPATH . '!sak4wp.php');\n return $enabled;\n }", "public function isActive()\n {\n If ($this->theme_active == 1)\n {\n //plugin is active\n return true;\n\n } else {\n \n //plugin is not active\n return false;\n }\n\n }", "public function is_enabled()\n {\n }", "public function is_enabled() {\n\t\t\t$enabled = get_option( $this->_plugin_prefix . '_enabled' );\n\t\t\tif ( $enabled == 1 ) {\n\t\t\t\t$enabled = true;\n\t\t\t} else {\n\t\t\t\t$enabled = false;\n\t\t\t}\n\t\t\treturn $enabled;\n\t\t}", "function acf_is_plugin_active()\n{\n}", "function wpdc_check_active(){ \r\n\r\n // plugin is ok\r\n // do the actions and filters\r\n\t\t\tadd_action( 'admin_menu',\t'wpdc_my_add_plugin_admin_page'); // the function to show the plugin settings page\r\n }", "public function base_plugin_active()\n\t{\n\t\treturn true;\n\t}", "public function is_enabled()\n {\n }", "public function isEnabled()\n {\n return $this->helper->isEnabled();\n }", "public function isEnabled()\n\t{\n\t\t// note: don't use $this->_main->.. as it might not exist when this func is called.\n\t\treturn Mage::helper('shoptimally_upsalecoupons/main')->isEnabled();\n\t}", "function is_plugin_enabled($plugin)\n\t{\n\t\tglobal $CONFIG;\n\t\t\n\t\treturn in_array($plugin, $CONFIG->enabled_plugins);\n\t}", "public function _isEnable(){\n return true;\n if(!array_key_exists('enable', $this->moduleConfig)) return false;\n return $this->moduleConfig['enable'];\n }", "public function isEnabled()\n {\n if ((string)$this->global->enabled === \"1\") {\n return true;\n }\n return false;\n }", "public function isEnabled()\n {\n return $this->_helperData->isEnabled();\n }", "public static function is_enable() {\n\t\treturn true;\n\t}", "static function wpl_toolskit_ot_active() {\n\t\t//if ( is_plugin_active( 'option-tree/ot-loader.php' ) ) {\n\t\t\treturn true;\n\t\t//}\n\t}", "public static function is_enabled() {\n\t\tif (self::$enabled) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "protected function isInstalledAndEnabled()\n {\n return $this->isPluginAvailable($this->identifier)\n && Settings::get('octoshop_products_enabled', true);\n }", "public function isEnabled()\n {\n return Mage::getStoreConfig('refersion/refersion_settings/refersion_active');\n }", "function plugin_is_active() {\n\t\treturn class_exists( 'Marketpress' );\n\t}", "public function isModuleEnable()\n {\n return $this->helperData->getEnabled();\n }", "function plugin_is_active() {\n\t\treturn function_exists( 'jigoshop_init' ) || class_exists( 'JigoshopInit' );\n\t}", "public static function enabled(): bool\n {\n return static::$_enabled;\n }", "public static function isEnabled()\n {\n $app_model = new waAppSettingsModel();\n $is_enabled = $app_model->get(array('shop', self::PLUGIN_ID), self::PLUGIN_ID . '-profile');\n $profile_cookie = $app_model->get(array('shop', self::PLUGIN_ID), self::PLUGIN_ID_SHORT . '-profile-cookie');\n $cookie_enabled = $profile_cookie && waRequest::cookie($profile_cookie, '');\n return $is_enabled && $cookie_enabled;\n }", "public function enabled()\n\t{\n\t\tif ($this->isLocked())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\tif ($this->issetCustomExec())\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\treturn $this->fields['USE']->getValue() == 'Y';\n\t}", "public function is_enabled() {\n\n\t\t// Check if debug is on\n\t\tif ( 'on' === $this->settings->get_option( 'debug' ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "protected function _isModuleEnabled()\n {\n return $this->_helper->isEnabled();\n }", "function heateor_ss_is_plugin_active($pluginFile){\r\n\treturn in_array($pluginFile, apply_filters('active_plugins', get_option('active_plugins')));\r\n}", "abstract function is_plugin();", "public function isEnabled()\n {\n return $this->getStoreConfig(self::MODULE_ENABLED);\n }", "protected function isEnabled() {\n\t\treturn (\n\t\t\t$this->getPageService()->isEnabled() &&\n\t\t\t(bool) $this->getTypoScriptService()->resolve('settings.enable')\n\t\t);\n\t}", "private function isEnabled()\n {\n return $this->getConfigBool('enable', false);\n }", "public static function isEnabled(): bool\n {\n return self::$enabled;\n }", "public function is_enabled(){\n\t\treturn !!$this->_enabled;\n\t}", "public function isEnabled($pluginName) {\n foreach($this->defaultIncludes as $name => $doInclude) {\n if($pluginName == $name) {\n return $doInclude;\n }\n }\n return false;\n }", "public function is_enabled() {\n $settings = get_option('woocommerce_enda_bundle_rate_settings');\n return $settings['enabled'] == 'yes' ? true : false;\n }", "public function is_powered_by_enabled() {\n\t\t$enabled = get_option( 'algolia_powered_by_enabled', 'yes' );\n\n\t\treturn 'yes' === $enabled;\n\t}", "public function getIsEnabled()\n {\n return $this->helper->isEnabled();\n }", "protected function isEnabled()\n {\n $store = Mage::app()->getStore();\n return $store->getConfig('cueconnect/enabled/enabled');\n }", "public function is_plugin_settings() {\n\n\t\treturn isset( $_GET['page'], $_GET['tab'] ) && 'wc-settings' === $_GET['page'] && 'pip' === $_GET['tab'];\n\t}", "public function isEnabled() {\n\t\treturn $this->_runtime['enabled'];\n\t}", "public static function installerEnabled()\n {\n /** @var \\Nwidart\\Modules\\Module $installer */\n $installer = Module::find('installer');\n if (!$installer) {\n return false;\n }\n\n return $installer->isEnabled();\n }", "public function isEnabled()\n {\n return $this->config->isEnabledSDK($this->_storeManager->getStore()->getId());\n }", "public function enabled()\n {\n return (bool) Mage::getStoreConfig('actions/settings/enabled');\n }", "private function is_required_plugin_installed() {\n\t\trequire_once( ABSPATH . 'wp-admin/includes/plugin.php' );\n\t\t$requvired_plugin_list = array(\n\t\t\t'rest-api/plugin.php',\n\t\t\t'butterbean/butterbean.php',\n\t\t);\n\t\tforeach ( $requvired_plugin_list as $plugin ) {\n\t\t\tif ( ! is_plugin_active( $plugin ) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public function is_elex_dpd_enabled() {\n\t\treturn class_exists( 'Elex_dp_dynamic_pricing_plugin' );\n\t}", "function getEnabledPlugins();", "public function isActive() {\r\n return $this->getModelPlugin()->isActive($this->getPluginKey());\r\n }", "public function isEnabled(): bool\n {\n return config('theme-system.enable', true) ?? true;\n }", "public function isEnabled()\n {\n\t\tif($this->actif == 1) return true;\n \telse return false;\n }", "public static function isEnabled()\n {\n return self::$enabled;\n }", "public static function isEnabled()\n {\n return self::$enabled;\n }", "function acadp_registration_enabled() {\n\n\t$registration_settings = get_option( 'acadp_registration_settings', array() );\n\n\tif( ! empty( $registration_settings['engine'] ) && 'acadp' == $registration_settings['engine'] ) {\n\t\treturn true;\n\t}\n\n\treturn false;\n\n}", "public static function isEnabled() {\n return self::$enabled;\n }", "public function isEnabled()\n {\n return true;\n }", "public function isEnabled()\n {\n return true;\n }", "public function isEnabled()\n {\n return true;\n }", "public function isEnabled()\n {\n return true;\n }", "public function isEnabled()\n {\n return true;\n }", "public function is_plugins_active( $pl_file_path = NULL ){\r\n $installed_plugins_list = get_plugins();\r\n return isset( $installed_plugins_list[$pl_file_path] );\r\n }", "public static function enabled() {\r\n\t\treturn self::$enabled;\r\n\t}", "public function is_enabled() : Bool\n\t{\n\t\treturn $this->_enabled;\n\t}", "public function is_plugin_settings() {\n\t\treturn isset( $_GET['page'] ) && 'wc-settings' === $_GET['page'] &&\n\t\t isset( $_GET['tab'] ) && 'products' === $_GET['tab'] &&\n\t\t isset( $_GET['section'] ) && 'inventory' === $_GET['section'];\n\t}", "public function isEnabled()\n {\n return $this->config->isEnabled();\n }", "public function enabled();", "public function enabled();", "public function enabled();", "public function enabled();", "public static function check_activated_plugin() {\n\t\t$set = [];\n\t\t$plugins = get_option( 'active_plugins', [] );\n\n\t\tforeach ( self::get_conflicting_plugins() as $plugin => $type ) {\n\t\t\tif ( ! isset( $set[ $type ] ) && in_array( $plugin, $plugins, true ) ) {\n\t\t\t\t$set[ $type ] = true;\n\t\t\t\tself::set_notification( $type );\n\t\t\t}\n\t\t}\n\n\t\tif ( in_array( 'wpml-string-translation/plugin.php', $plugins, true ) ) {\n\t\t\tGlobalHelper::remove_notification( 'convert_wpml_settings' );\n\t\t}\n\t}", "public function isEnabled()\n {\n return (bool)Mage::helper('Core')->isModuleEnabled('Faonni_AccountNavigation') && \n\t\t\tMage::getStoreConfig('faonni_accountnavigation/general/active');\n }", "public function isEnabled()\n {\n return true;\n\n }", "public static function Elementor_active_check() {\n\n if ( ! self::$active_plugins ) {\n self::init();\n }\n\n return in_array( 'elementor/elementor.php', self::$active_plugins ) || array_key_exists( 'elementor/elementor.php', self::$active_plugins );\n }", "private function scan_allowed() {\n\t\treturn $this->as3cf->is_plugin_enabled();\n\t}", "public function isEnabled()\n {\n return Mage::getStoreConfig('quickview/settings/enabled', Mage::app()->getStore());\n }", "public function isEnabled()\n {\n return Mage::getStoreConfigFlag('training_layred/catalog/enabled');\n }", "public function is_enabled($name)\n\t{\n\t\treturn isset($this->extensions[$name]['ext_active']) && $this->extensions[$name]['ext_active'];\n\t}", "public static function Wpml_active_check() {\n\n if ( ! self::$active_plugins ) {\n self::init();\n }\n\n return in_array( 'sitepress-multilingual-cms/sitepress.php', self::$active_plugins ) || array_key_exists( 'sitepress-multilingual-cms/sitepress.php', self::$active_plugins );\n }", "public function isEnabled( $name ) {\n if ( is_null($this->_plugins) ) $this->getPlugins();\n return isset($this->_plugins[ $name ]) && $this->_plugins[ $name ]->isEnabled();\n }", "public function isEnabled(): bool\n {\n return $this->enabled;\n }", "public function is_enabled_global() {\n\t\t$enabled = get_option( 'rg_gforms_enable_akismet' );\n\n\t\treturn $enabled === false ? true : $enabled === '1';\n\t}", "function idealEnabled() {\r\n\t\t$db = & JFactory::getDBO();\r\n\t\t$sql = 'SELECT COUNT(id) FROM #__osmembership_plugins WHERE name=\"os_ideal\" AND published=1';\r\n\t\t$db->setQuery($sql) ;\r\n\t\t$total = $db->loadResult() ;\r\n\t\tif ($total) {\r\n\t\t\trequire_once JPATH_ROOT.'/components/com_osmembership/plugins/ideal/ideal.class.php';\r\n\t\t\treturn true ;\r\n\t\t} else {\r\n\t\t\treturn false ;\r\n\t\t}\r\n\t}", "public function isEnabled() : bool {\n\n\t\t\treturn $this->enabled;\n\t\t}", "function should_load() {\n\t\tinclude_once( ABSPATH . 'wp-admin/includes/plugin.php' );\n\n\t\treturn is_plugin_active( 'revslider/revslider.php' );\n\t}", "public function isActive() \n {\t\n \t// if PIWIK tracking is activated return TRUE\n \tif (Mage::getStoreConfig('piwik/piwik/active')) {\n \t\treturn true;\n \t}\n \t// return FALSE otherwise\n \treturn false;\n }", "function the_champ_facebook_plugin_enabled(){\r\n\tglobal $theChampFacebookOptions, $theChampCounterOptions;\r\n\tif((the_champ_social_commenting_enabled() && the_champ_facebook_commenting_enabled()) || the_champ_facebook_like_rec_enabled()){\r\n\t\treturn true;\r\n\t}else{\r\n\t\treturn false;\r\n\t}\r\n}", "protected function isServiceAvailable()\n {\n return (boolean) $this->extConfig['providers'][strtolower($this->provider)]['enabled'];\n }", "function IsEnabled()\n {\n $states =& CCDebug::_states();\n return( isset($states['enabled']) && ($states['enabled'] === true) );\n }", "public function is_enabled() {\n $enabled = get_option( 'edd_commissions_payout_schedule_enabled', '' );\n\n if ( 'enabled' === $enabled ) {\n return true;\n }\n\n return false;\n }", "public function is_plugin_installed() {\n\t\trequire_once( ABSPATH . 'wp-admin/includes/plugin.php' );\n\n\t\t$plugins = get_plugins();\n\n\t\treturn ! empty( $plugins[ self::PLUGIN_SLUG ] );\n\t}", "public function enabled()\n {\n return $this->context->enabled();\n }", "public function is_available() {\n\t\tif ( 'yes' === $this->enabled ) {\n\t\t\tif ( ! $this->testmode && is_checkout() ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif ( ! $this->secret_key || ! $this->publishable_key ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function isEnabled() {\n return true;\n }", "public function checkFundraisingPlugin() {\r\n\t\t$module = 'ynfundraising';\r\n\t\t$modulesTable = Engine_Api::_ ()->getDbtable ( 'modules', 'core' );\r\n\t\t$mselect = $modulesTable->select ()->where ( 'enabled = ?', 1 )->where ( 'name = ?', $module );\r\n\t\t$module_result = $modulesTable->fetchRow ( $mselect );\r\n\t\tif (count ( $module_result ) > 0) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private function pageEnabled() {\r\n\t\t//Check if the plugin is valid and exits \t\r\n\t\tif (isset ( $_POST ['enable_module'] ) || strlen ( $_POST ['enable_module'] ) < 1 || ! ereg ( \"[a-zA-Z]+\", $_POST ['enable_module'] )) {\r\n\t\t\tthrow new Exception ( \"Invalid plugin name {$_POST['enable_module']}\" );\r\n\t\t}\r\n\t\t\r\n\t\t$plugin = $this->data->xpath ( \"plugin[@name='{$_POST ['enable_module']}']\" );\r\n\t\t\r\n\t\t//Check if there where any plugins found with that name\r\n\t\tif (! is_array ( $plugin ) || empty ( $plugin [0] )) {\r\n\t\t\tthrow new Exception ( \"The plugin {$_POST['enable_module']} could not be found.\" );\r\n\t\t}\r\n\t\t\r\n\t\tLogger::getRootLogger ()->info ( \"Changing status of module {$_POST ['enable_module']} to {$_POST ['enable']}\" );\r\n\t\t\r\n\t\t//Enable/disbale the plugin in XML\r\n\t\tif ($_POST ['enable'] == 'true' || $_POST ['enable'] == '1') {\r\n\t\t\t$plugin [0] ['enabled'] = \"true\";\r\n\t\t} elseif ($_POST ['enable'] == 'false' || $_POST ['enable'] == '0') {\r\n\t\t\t\r\n\t\t\t//Try to stop the plugin, when going from enabled to disabled.\r\n\t\t\t$plugin_object = $this->framework->getPlugin ( ( string ) $plugin [0] ['name'] );\r\n\t\t\tif (isset ( $plugin_object ) && $plugin_object->isService () && ( string ) $plugin [0] ['enabled'] == \"true\") {\r\n\t\t\t\t$plugin_object->stop ();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$plugin [0] ['enabled'] = \"false\";\r\n\t\t} else {\r\n\t\t\tthrow new Exception ( \"Invalid status option for a plugin. Did not disable/enable {$_POST ['enable_module']}.\" );\r\n\t\t}\r\n\t\t\r\n\t\t//Save config and print the changed plugin\r\n\t\tif ($this->config->saveConfig ()) {\r\n\t\t\techo \"<reply action=\\\"ok\\\"><plugin\";\r\n\t\t\tforeach ( $plugin [0]->attributes () as $name => $value ) {\r\n\t\t\t\techo \" $name = \\\"$value\\\"\";\r\n\t\t\t}\r\n\t\t\techo \"/></reply>\";\r\n\t\t} else {\r\n\t\t\tthrow new Exception ( \"Error, could not save configuration file.\" );\r\n\t\t}\r\n\t}", "public static function isEnabled()\n {\n return self::get('is_enabled', false);\n }", "public function is_enableable();", "public static function enabled()\n {\n return (extension_loaded('apc') && ini_get('apc.enabled')) ? true : false;\n }", "public function isEnabled(): bool;", "public function isEnabled(): bool;", "public function isEnabled(): bool;", "public function is_enabled() {\n $enabled = (bool) get_config('reportgen', 'DBdetails');\n return $enabled;\n }" ]
[ "0.76779765", "0.7460873", "0.7416462", "0.7342203", "0.72720784", "0.72714114", "0.72692895", "0.72678465", "0.7264106", "0.7226873", "0.72131836", "0.7201595", "0.7187439", "0.7183476", "0.71778274", "0.71583694", "0.71244055", "0.7122556", "0.71217686", "0.7116426", "0.7098003", "0.70762837", "0.70325696", "0.7030133", "0.702355", "0.700589", "0.7005688", "0.6984642", "0.6967068", "0.69624025", "0.6954365", "0.69541615", "0.69519454", "0.6926946", "0.6925826", "0.6925693", "0.69217414", "0.6916605", "0.69063926", "0.6902434", "0.68927974", "0.6888898", "0.688646", "0.68836766", "0.68730533", "0.6865736", "0.68611836", "0.6854339", "0.68510354", "0.684702", "0.6840554", "0.6840554", "0.68255574", "0.6824758", "0.68112755", "0.68112755", "0.68112755", "0.68112755", "0.68112755", "0.6805831", "0.68041825", "0.67780685", "0.6774699", "0.67737496", "0.6771108", "0.6771108", "0.6771108", "0.6771108", "0.67681915", "0.6760207", "0.67529315", "0.6736327", "0.6725721", "0.67230374", "0.6718833", "0.671411", "0.67088985", "0.67063963", "0.6700809", "0.66960025", "0.66936785", "0.66932636", "0.66850907", "0.66837144", "0.6669715", "0.6664756", "0.66585696", "0.66558456", "0.66556996", "0.6642939", "0.66421723", "0.66402894", "0.663899", "0.66388637", "0.6631326", "0.66298455", "0.6627177", "0.6625645", "0.6625645", "0.6625645", "0.6624861" ]
0.0
-1
Gets the current plugin options
function getOptions();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_options(){\n\t\treturn $this->options;\n\t}", "public function getOptions()\n {\n if (null === $this->options) {\n $this->setOptions(new PluginOptions());\n }\n return $this->options;\n }", "public function get_options()\n\t\t{\n\t\t\treturn $this->_options;\n\t\t}", "public function options()\n {\n return $this->options;\n }", "public function options()\n {\n return $this->options;\n }", "public function options()\n {\n return $this->options;\n }", "private function gather_plugin_options() {\n $options = array();\n foreach ( $this->OPTIONS as $value ) {\n $options[ $value ] = get_option( $value );\n }\n return array( '_wp_super_cache_options' => $options );\n }", "protected function getOptions()\n {\n return $this->options;\n }", "public function getOptions() {\n\t\treturn $this->options;\n\t}", "public function getOptions()\n {\n return $this->options->getOptions();\n }", "protected function getOptions()\r\n\t{\r\n\t\treturn isset($this->options) ? $this->options : array();\r\n\t}", "public function getOptions()\n\t{\n\t\treturn $this->_options;\n\t}", "public function getOptions()\n\t{\n\t\treturn $this->_options;\n\t}", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public final function getOptions()\n {\n return $this->_getOptions();\n }", "public function getOptions() \n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->_options;\n }", "public function getOptions()\n {\n return $this->_options;\n }", "public function getOptions()\n {\n return $this->_options;\n }", "public function getOptions()\n {\n return $this->_options;\n }", "public function getOptions() {\n\t\treturn $this->_options;\n\t}", "public function getOptions() {}", "public function getOptions() {}", "public function getOptions() {}", "public function getOptions()\n {\n return $this->_options;\n }", "public function getOptions() {\n return $this->options;\n }", "public function getOptions() {\n return $this->options;\n }", "public function getOptions() {\n return $this->options;\n }", "protected function getOptions() {}", "protected function getOptions() {}", "protected function getOptions() {}", "protected function _options() {\n\t\t\treturn array();\n\t\t}", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->options;\n }", "public function getOptions()\n {\n return $this->_options;\n }", "protected function getOptions() {\n\t\treturn array();\n\t}", "public function getOptions() {\n return $this->options;\n }", "public function getOptions() {\n return $this->options;\n }", "public function getOptions() {\n\n return $this->options;\n }", "public final function getOptions() { return $this->_options; }", "protected function getOptions()\r\n\t{\r\n\t\treturn array();\r\n\t}", "protected function getOptions() {\n\t\treturn array(\n\t\t);\n\t}", "protected function getOptions()\n\t{\n\t\treturn [\n\t\t];\n\t}", "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "function get_options() {\r\n\t\t\t$set_options = array(\r\n\t\t\t\t'plugin_css' => true, \r\n\t\t\t\t'home' => true,\r\n\t\t\t\t'single' => true,\r\n\t\t\t\t'page' => true,\r\n\t\t\t\t'archive' => true,\r\n\t\t\t\t'search' => true,\r\n\t\t\t\t'feed' => true,\r\n\t\t\t\t'attachment' => true,\r\n\t\t\t\t'tag' => true,\r\n\t\t\t\t'category' => true,\r\n\t\t\t\t'date' => true,\r\n\t\t\t\t'author' => true,\r\n\t\t\t\t'the_content' => true,\r\n\t\t\t\t'the_excerpt' => true,\r\n\t\t\t\t'the_comment' => false,\r\n\t\t\t\t'excluded_cats' => array(),\r\n\t\t\t\t'excluded_ids' => array()\r\n\t\t\t\t);\r\n\t\t\t$options = get_option($this->options_name);\r\n\t\t\tif (!empty($options)) {\r\n\t\t\t\tforeach ($options as $key => $option)\r\n\t\t\t\t\t$set_options[$key] = $option;\r\n\t\t\t}else{\r\n\t\t\t\tupdate_option($this->options_name, $set_options);\r\n\t\t\t}\r\n\t\t\treturn $set_options;\r\n\t\t}", "public function get_options() {\n\n if( $this->args['database'] === 'transient' ) {\n $this->options = get_transient( $this->unique );\n } else if( $this->args['database'] === 'theme_mod' ) {\n $this->options = get_theme_mod( $this->unique );\n } else if( $this->args['database'] === 'network' ) {\n $this->options = get_site_option( $this->unique );\n } else {\n $this->options = get_option( $this->unique );\n }\n\n if( empty( $this->options ) ) {\n $this->options = array();\n }\n\n return $this->options;\n\n }", "public function getOptions(){\n return $this->options;\n }", "function getOptions() ;", "public function getOptions()\r\n {\r\n }", "protected function getOptions()\n\t{\n\t\treturn array(\n\t\t\t\n\t\t);\n\t}", "protected function getOptions()\n\t{\n\t\treturn array(\n\t\t\t\n\t\t);\n\t}", "protected function getOptions()\n\t{\n\t\treturn array(\n\t\t\t\n\t\t);\n\t}", "protected function getOptions()\n\t{\n\t\treturn array(\n\t\t\t\n\t\t);\n\t}", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();", "public function getOptions();" ]
[ "0.7936512", "0.78368706", "0.78199166", "0.7789982", "0.7789982", "0.7789982", "0.7769649", "0.77353895", "0.7682485", "0.7680586", "0.7670967", "0.7666574", "0.7666574", "0.7661475", "0.7661475", "0.7661475", "0.7661475", "0.7661475", "0.7661475", "0.7661475", "0.7661475", "0.7661475", "0.7661475", "0.7661475", "0.7661475", "0.7661475", "0.7661475", "0.7661475", "0.7661475", "0.7661475", "0.7661475", "0.7661475", "0.7661475", "0.7661475", "0.7659338", "0.76536864", "0.7637686", "0.7637686", "0.7637686", "0.7637686", "0.76302385", "0.7629085", "0.7629085", "0.7628909", "0.7619853", "0.7617978", "0.7617978", "0.7617978", "0.7613703", "0.7613703", "0.76134133", "0.76131994", "0.7612353", "0.7612353", "0.76062506", "0.7604135", "0.7602659", "0.7602659", "0.7596808", "0.75943154", "0.7589518", "0.7582455", "0.7576433", "0.7576208", "0.7576208", "0.7576208", "0.7576208", "0.7576208", "0.7576208", "0.7576208", "0.7576208", "0.7576208", "0.7576208", "0.7576208", "0.7576208", "0.7576208", "0.75588024", "0.7540767", "0.7538802", "0.753193", "0.7527178", "0.75194407", "0.75194407", "0.75194407", "0.75194407", "0.751529", "0.751529", "0.751529", "0.751529", "0.751529", "0.751529", "0.751529", "0.751529", "0.751529", "0.751529", "0.751529", "0.751529", "0.751529", "0.751529", "0.751529", "0.751529" ]
0.0
-1
Gets an option value
function getOption($name);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function value()\n {\n return $this->app->input->get('option');\n }", "public function getValue() {\n \n $_aParams = func_get_args(); \n return AdminPageFramework_WPUtility::getOption( \n $this->oProp->sOptionKey, \n $_aParams, \n null, // default\n $this->getSavedOptions() + $this->oProp->getDefaultOptions( $this->oForm->aFields ) // additional array to merge with the options\n );\n \n }", "public function get() {\n\t\treturn $this->options->get( self::OPTION );\n\t}", "public function getOpt($option) {}", "public function getOption() {\n return $this->get(self::OPTION);\n }", "public function get_value() {\n return $this->get_selected_options();\n }", "public function getOption()\n {\n return $this->option;\n }", "public function getOption()\n {\n return $this->option;\n }", "public function get_value($option_key)\r\n {\r\n return get_option($option_key, '');\r\n }", "public function get(string $option);", "public function get(string $option);", "public function get( $option );", "final protected function getOption($option) {\n return isset($this->valueOptions[$option]) ? $this->valueOptions[$option] : null;\n }", "public function getValue() {\n\t\ttry {\n\t\t\t$value\t= parent::getValue();\n\t\t\tif (strlen($value) > 0) {\n\t\t\t\tif (!array_key_exists((string)$value, (array)$this->getOptions())) {\n\t\t\t\t\tthrow new LBoxExceptionFormControl(\"$value: \". LBoxExceptionFormControl::MSG_FORM_CONTROL_VALUE_NOT_OPTION, LBoxExceptionFormControl::CODE_FORM_CONTROL_VALUE_NOT_OPTION);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $value;\n\t\t}\n\t\tcatch (Exception $e) {\n\t\t\tthrow $e;\n\t\t}\n\t}", "public function getOption() {\n\t\treturn $this->_option;\n\t}", "public function get( $option ) {\n\t\treturn $this->options->get( $option );\n\t}", "protected function get()\n {\n return get_option($this->hash);\n }", "public static function get( string $key ) {\n\t\t$option = static::find( $key );\n\n\t\treturn false === $option ? false : $option->value;\n\t}", "public function getOptionValue($option, $taskName = NULL) {\n list($source, $value) = $this->getOption($option, $taskName);\n return $value;\n }", "private function get_option() {\n\t\t$default = [\n\t\t\tself::STATUS => self::NOT_FETCHED,\n\t\t\tself::LAST_FETCH => 0,\n\t\t];\n\n\t\treturn get_option( self::OPTION_NAME, $default );\n\t}", "public function option($key)\n {\n return $this->options[$key];\n }", "function getValue($setting)\n\t\t{\n\t\t\t// lookup the value in the array \n\t\t\tif (isset($this->options[$setting]))\n\t\t\t{\n\t\t\t\t// return its value, if set\n\t\t\t\treturn $this->options[$setting];\n\t\t\t}\n\t\t\t\n\t\t\t// default to NULL\n\t\t\treturn NULL;\n\t\t}", "public function getOptionElement($value){\n\t\treturn $this->options[$value];\n\t}", "function _get( $option_key ) {\n\t\treturn bf_get_option( $option_key, $this->option_panel_id );\n\t}", "public function get_option($option) {\n if (isset($this->options[$option])) return $this->options[$option];\n return null;\n }", "protected function getOptionValue(DOMElement $option)\n {\n if ($option->hasAttribute('value')) {\n return $option->getAttribute('value');\n }\n\n return $option->textContent;\n }", "public function getOption($name);", "public function getOption($name);", "public function getOption($name);", "public function getOption($option)\n {\n $option = strtoupper($option);\n if (array_key_exists($option, $this->options)) {\n return $this->options[$option];\n }\n \n return;\n }", "public function getOption( $key ) {\n\n\t\t\t$options = get_option( $this->optionsKey, array() );\n\t\t\t$value = isset( $options[$key] ) ? $options[$key] : '';\n\n\t\t\treturn $value;\n\t\t}", "public function offsetGet($option)\n {\n return $this->getOption($option);\n }", "public function getValue()\n {\n return $this->getParameter('value');\n }", "public function getValue()\n {\n return $this->getParameter('value');\n }", "public function getOption($key);", "public function getOption($key)\n\t{\n\t\treturn $this->options->get($key);\n\t}", "public function fetchOptionValue($key)\n {\n $results = $this->fetchAllAsArray(\n array(\n 'where' => array(\n 'name = ?' => $key\n )\n )\n );\n\n if (isset($results[0])) {\n return $results[0]['value'];\n }\n return null;\n }", "public function getOption($option)\n {\n return $this->options[$option] ?? false;\n }", "function get_option( $option = false ) {\n\t\t\t\t// Get options from database\n\t\t\t\t$options = get_option( $this->option );\n\t\t\t\t// Check option is specified\n\t\t\t\t$value = ( $option ) ? $options[$option] : $options;\n\t\t\t\t// Return result\n\t\t\t\treturn ( is_array( $value ) ) ? array_filter( $value, 'esc_attr' ) : esc_attr( stripslashes( $value ) );\n\t\t\t}", "public function getOption($key)\n {\n return $this->_options[$key];\n }", "public function getValue($option, $altOption = false, $default = null) {\n\t\tif(isset($this->args[$option])) {\n\t\t\treturn $this->args[$option];\n\t\t}\n\t\tif($altOption && isset($this->args[$altOption])) {\n\t\t\treturn $this->args[$altOption];\n\t\t}\n\t\treturn $default;\n\t}", "function getOption($option)\n {\n return isset($this->_options[$option]) ? $this->_options[$option] : null;\n }", "protected function getOptionsValue($index)\n {\n $index = trim((string)$index);\n if ($index === '') {\n return null;\n }\n if (!empty($this->options[$index])) {\n return $this->options[$index];\n }\n return null;\n }", "public function getOption(string $name);", "public function getOption(string $name);", "public function getOption($key)\n {\n return array_key_exists($key, $this->optionsCollection) ? $this->optionsCollection[$key] : '';\n }", "public function getOption($option, $default = null);", "public function getFieldValue(): ?string\n {\n return $this->getOption('fieldvalue');\n }", "function get_option( $option ) {\n\t\tif ( isset ( $this->options[$option] ) )\n\t\t\treturn $this->options[$option];\n\t\telse\n\t\t\treturn false;\n\t}", "function getOption ( $key, $option )\n\t{\n\t\tif ( isset( $this->options[$option][$key] ) ) {\n\t\t\t$return = $this->options[$option][$key]; // From Admin Page\n\t\t} else {\n\t\t\t$return = $this->default_options[$option][$key]; // Default\n\t\t}\n\t\treturn ($return);\n\t}", "public function getSiteOption($optionName){\n\t\ttry{\t\t\n\t\t\t$stmt = $this->db->prepare(\"SELECT optionValue FROM site_options WHERE optionName = :optionName\");\n\t\t\t$stmt->execute(array(':optionName'=>$optionName));\n\t\t\t$val=$stmt->fetch(PDO::FETCH_ASSOC);\n\t\t\treturn $val['optionValue'];\t\t\t\n\t\t} catch(PDOException $e) {\n echo $e->getMessage();\n } \n }", "public function getOption($option)\n {\n return isset($this->options[$option]) ? $this->options[$option] : null;\n }", "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}", "public function get() {\n\t\treturn (bool) $this->user_options->get( static::OPTION );\n\t}", "function EV_get_option( $key = '' ) {\n\treturn cmb2_get_option( EV_admin()->key, $key );\n}", "function get_option($name) {\n $setting = Setting::where('name', $name)->first();\n if(!$setting) {\n return \"\";\n }\n return $setting->value;\n}", "function cpo_get_option( $option_name = '', $option_array = 'ctct_settings' ) {\n\t//Determines whether to grab current language, or original language's option\n\t$option_list_name = $option_array;\n\t$option_list = get_option( $option_list_name, false );\n\tif ( $option_list && isset( $option_list[ $option_name ] ) ) {\n\t\t$option_value = $option_list[ $option_name ];\n\t} else {\n\t\t$option_value = false;\n\t}\n\n\treturn $option_value;\n}", "function get_option($option_name, $default_value = false)\n{\n if (!is_string($option_name)) {\n // Option name must be string\n return $default_value;\n }\n\n $opt = \\Controller::model(\"Option\", $option_name);\n if (!$opt->isAvailable()) {\n return $default_value;\n }\n\n // Return the value\n return $opt->get(\"option_value\");\n}", "function get_option($option_key) {\n if (!isset($result)) {\n $result = get_option($option_key);\n }\n\n return $result;\n }", "function getOption( $option )\n {\n return $this->_objectPool[$this->_lastUsedObjectKey]->getOption( $option );\n }", "public function getOption($option)\n {\n if (!isset($this->options[$option])) {\n return false;\n }\n\n return $this->options[$option];\n }", "function get_field_value($id){\n\t\treturn stripslashes(get_option( $id )); \n\t}", "public function getOption($name)\n {\n if (!isset($this->options[$name])) {\n $value = $this->defaultOptions[$name];\n } else {\n $value = $this->options[$name];\n }\n\n return $value;\n }", "public function option(string $key)\n {\n return $this->input->getOption($key);\n }", "public function wp_get_info(string $option = 'siteurl'){\n\n\t $bdd = Bdd::getInstance();\n\n\t\t$req = $bdd->dbh->prepare('SELECT option_value FROM '.$this->_table_prefix.'options WHERE option_name = \"' . $option . '\";');\n\t\t$req->execute();\n\n\t\treturn $req->fetch();\n\t}", "public function option()\n {\n return $this->optionRequested;\n }", "public function getOption($key)\n {\n return isset($this->options[$key]) ? $this->options[$key] : null;\n }", "public function getOption($key)\n {\n return isset($this->options[$key]) ? $this->options[$key] : null;\n }", "public function getOption($option)\n {\n return isset($this->_options[$option])\n ? $this->_options[$option]\n : null;\n }", "public function get($key) {\n if( ! $this->settingExists($key) )\n return null;\n else\n return $this->options[$key];\n }", "function _options_option($option) {\n global $db ;\n $data = null ;\n $req = $db->prepare(\"SELECT `data` FROM `_options` WHERE `option` = :option \") ;\n $req->execute(array(\n \"option\" => $option\n )) ;\n $data = $req->fetch() ;\n return (isset($data['data'])) ? $data['data'] : false ;\n}", "public final function getOption($option, $defaultValue = false)\n {\n if (isset($this->_options[$option]))\n return $this->_options[$option];\n return $defaultValue;\n }", "private function getSurveyOptionValue($survey_id, $field_name, $option_value){\r\n \t\t\r\n \t\t/**\r\n \t\t * get survey data\r\n \t\t */\r\n \t\t$survey_data = $this->db_model->getSurveyData($survey_id);\r\n \t\t\r\n \t\tforeach ($survey_data as $row){\r\n \t\t\t\r\n \t\t\t$options = explode('::', $row['options']);\r\n \t\t\tarray_unshift($options, 0);\r\n \t\t\tunset($options[0]);\r\n \t\t\t\r\n \t\t\tif ($row['type'] == 'radio'){\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\t\t\r\n \t\t\t}elseif ($row['type'] == 'checkbox'){\r\n \t\t\t\t\r\n \t\t\t\t$option_expl = explode('::', $option_value);\r\n \t\t\t\t\t\t\r\n\t\t \t\t$value = array();\r\n\t\t \t\tforeach ($option_expl as $row)\r\n\t\t \t\t\t$value[] = @$options[$row];\t\t\t\t\r\n \t\t\t\t\r\n\t\t \t\tif ($value)\r\n\t\t \t\t\treturn join(',', $value);\r\n\t\t \t\t\t\r\n \t\t\t} // if ($survey_data['type'] == 'radio'){\r\n \t\t\t\r\n \t\t} // foreach ($survey_data as $row){\r\n \t\t\r\n \t}", "function acapi_get_option($name) {\n // Make sure $name is an acapi option.\n $options = acapi_common_options();\n if (!isset($options[$name])) {\n return drush_set_error('ACAPI_UNKNOWN_OPTION', dt('Unknown ac-api option @name.', array('@name' => $name)));\n }\n\n // If the user specified --$name=<value> on the command line, return <value>.\n $value = drush_get_option($name, NULL);\n if (isset($value)) {\n return $value;\n }\n\n // If the ac-config file sets $name, return the value.\n $values = acapi_load_options($name);\n if (isset($values[$name])) {\n return $values[$name];\n }\n\n // If $name has a default value, return it.\n if (!empty($options[$name]['default_value'])) {\n return $options[$name]['default_value'];\n }\n\n // No specified value, no default, return NULL.\n return;\n}", "function getConfigValue($name) {\n return UserConfigOptions::getValue($name, $this);\n }", "public function getValue()\n {\n return $this->get(self::_VALUE);\n }", "public function getValue()\n {\n return $this->get(self::_VALUE);\n }", "public function getValue()\n {\n return isset($this->value) ? $this->value : '';\n }", "public function getValue()\n {\n return isset($this->value) ? $this->value : '';\n }", "function getValue()\n {\n return $this->getAttribute(\"value\");\n }", "public function getOption($id)\n {\n if (!isset($this->options[$id])) {\n throw new OptionNotFoundException(\n 'There is no option called \"' . $id . '\" in the collection.'\n );\n }\n $option = $this->options[$id];\n return $option->getValue();\n }", "function ot_get_option( $option_id, $default = '' ) { \r\n\t\t$options = get_option( 'option_tree' );\r\n\t\t/* look for the saved value */\r\n\t\tif ( isset( $options[ $option_id ] ) && !empty( $options[ $option_id ] ) ) {\r\n\t\t\treturn $options[ $option_id ];\r\n\t\t}\r\n\t\treturn $default;\r\n\t}", "public function val() {\n\treturn $this->attr(\"value\");\n }", "function getOption( $name )\n\t{\n\t\tif( !isset( $this->options[$name] ) )\n\t\t\treturn null;\n\t\treturn $this->options[$name];\n\t}", "public function get_option( $key='' ) {\n // Load our options array\n if ( ! $this->options ) {\n $this->options = get_option( self::WP_OPTIONS_NAME );\n }\n return ( isset( $this->options[ $key ] ) ? $this->options[ $key ] : '' );\n }", "public function getOption($key)\n\t{\n\t\treturn isset($this->options[$key]) ? $this->options[$key] : false;\n\t}", "protected function get_option( $option ) {\n\t\t\tif ( isset ( $this->options[$option] ) )\n\t\t\t\treturn $this->options[$option];\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}", "public function getValue() {\n\t\treturn $this->data[\"value\"];\n\t}", "function get_the_option( $key ) {\n return genesis_get_option( $key, GENESIS_SIMPLE_SETTINGS_FIELD );\n }", "public function get_field_option( $value ) {\n\t\treturn FrmField::get_option( $this->field, $value );\n\t}", "public function getValue()\n {\n if (!$this->isExplicitlySet) {\n return $this->defaultValue;\n } else {\n return $this->value;\n }\n }", "public function getValue()\n {\n return $this->get(self::VALUE);\n }", "public function getValue()\n {\n return $this->get(self::VALUE);\n }", "public function getValue()\n {\n return isset($this->value) ? $this->value : null;\n }", "public function get_value()\n\t{\n\t\treturn $this->value;\n\t}", "public function getOption ($key, $default = '') {\n $value = $default;\n\n # Search through sections and take the value from the first section\n foreach ($this->_sections as $section) {\n if (isset ($this->_values[$section.$key])) {\n $value = $this->_values[$section.$key];\n break;\n }\n }\n\n return $value;\n }", "public function getValue(): mixed\n {\n return $this->field?->getValue();\n }", "public function getOption(string $name, mixed $default = null): mixed;", "public function getOption($name)\n {\n return array_key_exists($name, $this->options) ? $this->options[$name] : null;\n }", "private function getOption($name)\n {\n return $this->parsedOptions[$name]??null;\n }" ]
[ "0.81025183", "0.78691965", "0.7766517", "0.76527584", "0.7548669", "0.75312203", "0.7469938", "0.7469938", "0.73346746", "0.7297404", "0.7297404", "0.7268432", "0.72565037", "0.72553855", "0.725166", "0.7169674", "0.71171886", "0.7113178", "0.7025064", "0.7011615", "0.69875884", "0.69496584", "0.69345117", "0.686086", "0.6850081", "0.6814634", "0.6809562", "0.6809562", "0.6809562", "0.67924184", "0.67812407", "0.67686415", "0.67364055", "0.67364055", "0.67356014", "0.6720212", "0.67136794", "0.6693616", "0.66902095", "0.66755736", "0.6661425", "0.66481", "0.6641057", "0.66396767", "0.66396767", "0.662838", "0.6626935", "0.6626419", "0.6598117", "0.6597128", "0.6596944", "0.6590186", "0.65814215", "0.658137", "0.6567419", "0.6566495", "0.65582377", "0.6548998", "0.6537489", "0.6522689", "0.65082455", "0.65065086", "0.65032053", "0.6498688", "0.6486686", "0.64628136", "0.6444239", "0.6444239", "0.6440593", "0.64352477", "0.64208245", "0.6420643", "0.641451", "0.64057076", "0.63984305", "0.6384129", "0.6384129", "0.637766", "0.637766", "0.6375088", "0.63573015", "0.634668", "0.63371646", "0.63070977", "0.6301858", "0.6292565", "0.6285767", "0.6269686", "0.6267191", "0.6256586", "0.6256351", "0.6250978", "0.6250978", "0.6247068", "0.6238193", "0.6237776", "0.623353", "0.622544", "0.622496", "0.6222811" ]
0.69670594
21
Gets a list of all available plugins
function getPlugins();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_plugins() {\n\t\treturn get_plugins();\n\t}", "public function getAvailablePlugins()\n\t{\n\t\t$this->loadAvailablePlugins();\n\t\treturn self::$_plugins;\n\t}", "public static function getPlugins() {\r\n\t\treturn self::getModulesForUser(Config::$sis_plugin_folder);\r\n\t}", "protected function get_installed_plugins()\n {\n }", "static final function getPlugins()\n {\n self::initPlugins();\n return self::$plugins;\n }", "public static function getPlugins()\n\t{\n\t\treturn $plugins = glob(__DIR__.'/../../content/plugins/*/index.php');\n\t}", "public function getPlugins()\n {\n return $this->plugins;\n }", "public function getPlugins()\n {\n return $this->plugins;\n }", "public function getRegisteredPlugins()\n {\n return $this->registeredPlugins;\n }", "function getEnabledPlugins();", "public function getPlugins()\n\t{\n\t\treturn $this->plugins;\n\t}", "public function listPlugin()\n\t{\n\t\t\n\t}", "public function getPlugins() {\n if (is_null($this->_plugins)) {\n $this->_plugins = $this->_scanPlugins();\n }\n return $this->_plugins;\n }", "function getPlugins() {\n return $this->plugins;\n }", "protected function get_plugins() {\n\t\tif ( ! $this->plugins ) {\n\t\t\t$this->plugins = array_keys( get_plugins() );\n\t\t}\n\n\t\treturn $this->plugins;\n\t}", "public static function plugins() {\n\t\t\treturn self::$plugins;\n\t\t}", "public function getPlugins()\n {\n return $this->getService('plugins');\n }", "function getPlugins() {\n\n return $this->plugins;\n\n }", "public static function getPluginList () {\n\t\treturn self::$pInfo[1];\n\t\t$glob = glob(TH_ROOT.TH_PLUGINS.'*/plugin.php');\n\t\tforeach($glob as $plugin) {\n\t\t\t// $plugin is a full path, we don't want that.\n\t\t\t$plugin = explode(TH_ROOT.TH_PLUGINS, $plugin, 2);\n\t\t\t$plugin = explode('/plugin.php', $plugin[1]);\n\t\t\t$r[] = $plugin[0];\n\t\t}\n\t\treturn $r;\n\t}", "public function getPlugins()\n {\n $this->getPlugin('base');\n }", "function listPlugins( ) {\n\t\t$list = array();\n\n\t\t$pathname = $GLOBALS['mosConfig_absolute_path'].'/administrator/components/com_joomap/plugins/';\n\t\tif ( is_dir($pathname) ) {\n\t\t\t$dir_handle = opendir($pathname);\n\t\t\tif( $dir_handle ) {\n\t\t\t\twhile (($filename = readdir($dir_handle)) !== false) {\n\t\t\t\t\tif( substr( $filename, -11 ) == '.plugin.php' ) {\n\t\t\t\t\t\t$list[] = $filename;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tclosedir($dir_handle);\n\t\t\t}\n\t\t}\n\t\treturn $list;\n\t}", "public function getInstalledPlugins()\n {\n $pluginModel = Plugin::model(); \n $records = $pluginModel->findAll();\n \n $plugins = array();\n\n foreach ($records as $record) {\n // Only add plugins we can find\n if ($this->loadPlugin($record->name) !== false) {\n $plugins[$record->id] = $record;\n }\n }\n return $plugins;\n }", "function get_plugins_list()\n\t{\n\t\t$dir = @opendir(MYBB_ROOT.\"inc/plugins/\");\n\t\tif($dir)\n\t\t{\n\t\t\twhile($file = readdir($dir))\n\t\t\t{\n\t\t\t\t$ext = get_extension($file);\n\t\t\t\tif($ext == \"php\")\n\t\t\t\t{\n\t\t\t\t\t$plugins_list[] = $file;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@sort($plugins_list);\n\t\t}\n\t\t@closedir($dir);\n\n\t\treturn $plugins_list;\n\t}", "public function getInstalledPlugins()\n {\n $installed = array();\n foreach ($this->environment->getRegistry()->packageInfo(null, null, null) as $channel => $packages)\n {\n foreach ($packages as $package)\n {\n $installed[] = $this->environment->getRegistry()->getPackage(isset($package['package']) ? $package['package'] : $package['name'], $channel);\n }\n }\n\n return $installed;\n }", "public function getPlugins()\n {\n return $this->getProperty()->plugins;\n }", "function getPlugins() {\n\n\tglobal $di;\n\n\t$pluginsPath = path_content('plugins');\n\t$plugins = [];\n\t$envs = ['Admin', 'Cms'];\n\n\tforeach($envs as $env) {\n\t\t$list = scandir($pluginsPath.'\\\\'.$env);\n\n\t\tif(!empty($list)) {\n\t\t\tunset($list[0]);\n\t\t\tunset($list[1]);\n\n\t\t\tforeach($list as $namePlugin) {\n\n\t\t\t\t$namespace = '\\\\Plugin\\\\' . $env . '\\\\' . $namePlugin . '\\\\Plugin';\n\t\t\t\tif(class_exists($namespace)) {\n\t\t\t\t\t$plugin = new $namespace($di);\n\t\t\t\t\t$plugins[$namePlugin] = $plugin->details();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}\n\n\treturn $plugins;\n}", "function wpc_installed_plugins(): array\n {\n $plugins = get_plugins();\n\n $plugin_slugs = [];\n\n foreach ( $plugins as $key => $plugin ) {\n $slug = explode( '/', $key );\n\n $plugin_slugs[] = '\"wpackagist-plugin/' . $slug[0] . '\": \"*\",';\n // Add the slug to the array\n }\n\n return $plugin_slugs;\n }", "protected function getInstalledPlugins()\n\t{\n\t\tif(!class_exists('Zend_Registry'))\n\t\t{\n\t\t\tthrow new Exception(\"Not possible to list installed plugins (case LogStats module)\");\n\t\t}\n\t\tif(!is_null(Zend_Registry::get('config')->PluginsInstalled->PluginsInstalled))\n\t\t{\n\t\t\treturn Zend_Registry::get('config')->PluginsInstalled->PluginsInstalled->toArray();\n\t\t}\n\t\telseif(is_array(Zend_Registry::get('config')->PluginsInstalled))\n\t\t{\n\t\t\treturn Zend_Registry::get('config')->PluginsInstalled;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn Zend_Registry::get('config')->PluginsInstalled->toArray();\n\t\t}\n\t}", "private function plugins(){\n $all_plugins = explode(',', json_decode(file_get_contents($this->pluginsJson))->all->names);\n debug($all_plugins);\n die;\n }", "private function get_user_installed_plugins() {\n // All plugins - \"external/installed by user\".\n $allplugins = array();\n\n $pluginman = \\core_plugin_manager::instance();\n $plugininfos = $pluginman->get_plugins();\n\n foreach ($plugininfos as $key => $modtype) {\n foreach ($modtype as $key => $plug) {\n if (!$plug->is_standard() && !$plug->is_subplugin()) {\n // Each plugin data, // can be different structuer in case of wordpress product.\n $allplugins[] = array(\n 'name' => $plug->displayname,\n 'versiondisk' => $plug->versiondisk,\n 'versiondb' => $plug->versiondb,\n 'versiondisk' => $plug->versiondisk,\n 'release' => $plug->release\n );\n }\n }\n }\n\n return $allplugins;\n }", "public function getPlugins() {\n if ( is_null($this->_plugins) ) {\n $this->_plugins = array();\n $plugins = $this->_app->config->getConfig('plugins');\n foreach( $plugins as $name => $conf ) {\n $this->_plugins[ $name ] = new Plugin(\n $this->_app, \n !empty($conf['enabled']) ? $conf['enabled'] : false,\n !empty($conf['options']) ? $conf['options'] : array()\n );\n }\n }\n return $this->_plugins;\n }", "public function getRequiredPlugins() {}", "function subsite_manager_get_plugins() {\n\n // grab plugins\n $options = array(\n 'type' => 'object',\n 'subtype' => 'plugin',\n 'limit' => false\n );\n\n $old_ia = elgg_set_ignore_access(true);\n $plugins = elgg_get_entities($options);\n elgg_set_ignore_access($old_ia);\n\n return $plugins;\n }", "public static function getPlugins()\n {\n if (static::$plugins instanceof Closure) {\n return (static::$plugins)();\n }\n\n return static::$plugins;\n }", "function wpcom_vip_get_loaded_plugins() {\n\tglobal $vip_loaded_plugins;\n\n\tif ( ! isset( $vip_loaded_plugins ) )\n\t\t$vip_loaded_plugins = array();\n\n\treturn $vip_loaded_plugins;\n}", "protected function get_installed_plugins() {\n\t\t$plugins = array();\n\n\t\t$plugin_info = get_site_transient( 'update_plugins' );\n\t\tif ( isset( $plugin_info->no_update ) ) {\n\t\t\tforeach ( $plugin_info->no_update as $plugin ) {\n\t\t\t\t$plugin->upgrade = false;\n\t\t\t\t$plugins[ $plugin->slug ] = $plugin;\n\t\t\t}\n\t\t}\n\n\t\tif ( isset( $plugin_info->response ) ) {\n\t\t\tforeach ( $plugin_info->response as $plugin ) {\n\t\t\t\t$plugin->upgrade = true;\n\t\t\t\t$plugins[ $plugin->slug ] = $plugin;\n\t\t\t}\n\t\t}\n\n\t\treturn $plugins;\n\t}", "public function get_unfiltered_plugin_list() {\n\t\t$this->override_active = false;\n\t\t$all_plugins = get_option( 'active_plugins' );\n\t\t$this->override_active = true;\n\n\t\treturn $all_plugins;\n\t}", "public function get_plugins()\n {\n $pluginDirs = App::objects('plugin', null, false);\n $plugins = array();\n\n foreach ($pluginDirs as $pluginDir){\n\n $pluginClasses = App::objects('controller', APP.'Plugin'. DS .$pluginDir. DS .'Controller', false);\n\n App::import('Controller', $pluginDir.'.'.$pluginDir.'App');\n $parentActions = get_class_methods($pluginDir.'AppController');\n\n foreach($pluginClasses as $plugin) {\n\n if (strpos($plugin,'App') === false) {\n\n $plugin = str_ireplace('Controller', '', $plugin);\n App::import('Controller', $pluginDir.'.'.$plugin);\n $actions = get_class_methods($plugin.'Controller');\n\n foreach($actions as $k => $v) {\n if ($v{0} == '_') {\n unset($actions[$k]);\n }\n }\n\n $plugins[$pluginDir][$plugin] = array_diff($actions, $parentActions);\n }\n }\n }\n\n return $plugins;\n }", "public function getActivePluginsList()\n\t{\n\t\techo \"Active plugins:\\n\";\n\t\tforeach (get_plugins() as $plugin_name => $plugin_details)\n\t\t{\n\t\t\tif (is_plugin_active($plugin_name) === true)\n\t\t\t{\n\t\t\t\tforeach ($plugin_details as $details_key => $details_value)\n\t\t\t\t{\n\t\t\t\t\tif (in_array($details_key, array('Name', 'Version', 'PluginURI')))\n\t\t\t\t\t{\n\t\t\t\t\t\techo $details_key . \" : \" . $details_value . \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\techo \"Path : \" . $plugin_name . \"\\n\";\n\t\t\t}\n\t\t}\n\t}", "public function obtenerPlugins(){\n if ($this->getSelectedLicense() > empresa::LICENSE_FREE) {\n return plugin::getAll();\n }\n\n return false;\n //return $this->obtenerObjetosRelacionados( TABLE_EMPRESA .\"_plugin\", \"plugin\");\n }", "protected function getPlugins()\n {\n delete_site_transient('update_plugins');\n wp_update_plugins();\n\n $data = get_site_transient('update_plugins');\n $plugins = get_plugins();\n foreach ($plugins as $pluginKey => &$plugin) {\n $plugin['Status'] = is_plugin_active($pluginKey) ? 'active' : 'inactive';\n\n $plugin['Slug'] = null;\n if (isset($data->response[$pluginKey]->slug)) {\n $plugin['Slug'] = $data->response[$pluginKey]->slug;\n } elseif (isset($data->no_update[$pluginKey]->slug)) {\n $plugin['Slug'] = $data->no_update[$pluginKey]->slug;\n }\n }\n return $plugins;\n }", "function wp_get_mu_plugins()\n {\n }", "public function getPlugins()\n {\n /** @var WebApplication|ConsoleApplication $this */\n return $this->get('plugins');\n }", "private function get_active_plugins() {\n\t\t$plugins = get_plugins();\n\t\t$active = get_option( 'active_plugins' );\n\t\t$active_list = array();\n\t\tforeach ( $active as $slug ):\n\t\t\tif ( isset( $plugins[ $slug ] ) ) {\n\t\t\t\t$active_list[] = $plugins[ $slug ];\n\t\t\t}\n\t\tendforeach;\n\n\t\treturn $active_list;\n\t}", "protected function get_installed_plugin_slugs()\n {\n }", "public function list_plugins($plugin = null) {\n\t\tApp::uses('CroogoPlugin','Extensions.Lib');\n\t\t$all = $this->params['all'];\n\t\t$plugins = $plugin == null ? App::objects('plugins') : array($plugin);\n\t\t$loaded = CakePlugin::loaded();\n\t\t$CroogoPlugin = new CroogoPlugin();\n\t\t$this->out(__('Plugins:'), 2);\n\t\t$this->out(__('%-20s%-50s%s', __('Plugin'), __('Author'), __('Status')));\n\t\t$this->out(str_repeat('-', 80));\n\t\tforeach ($plugins as $plugin) {\n\t\t\t$status = '<info>inactive</info>';\n\t\t\tif ($active = in_array($plugin, $loaded)) {\n\t\t\t\t$status = '<success>active</success>';\n\t\t\t}\n\t\t\tif (!$active && !$all) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$data = $CroogoPlugin->getPluginData($plugin);\n\t\t\t$author = isset($data['author']) ? $data['author'] : '';\n\t\t\t$this->out(__('%-20s%-50s%s', $plugin, $author, $status));\n\t\t}\n\t}", "public function get_all()\n {\n $plugins = $this->get_plugins();\n\n $pluginControllers = array();\n\n foreach($plugins as $plugin){\n foreach($plugin as $controller => $actions){\n $pluginControllers[$controller] = $plugin[$controller];\n }\n }\n\n return array_merge($this->get(), $pluginControllers);\n }", "public function get_meta_plugins() {\n\t\tSingleton::get_instance( 'Plugin', $this )->get_remote_plugin_meta();\n\t}", "public function getLoadedPlugins()\n\t{\n\t\treturn $this->loadedPlugins;\n\t}", "public function discoverPlugins() {\n foreach($this->fs->roots(false) as $root) {\n $this->findAvailablePlugins($root);\n }\n }", "private function loadPlugins()\n\t{\n\t\t$plugins = plugin_installed_list();\n\t\t$plugins = collect($plugins)->map(function ($item, $key) {\n\t\t\tif (is_object($item)) {\n\t\t\t\t$item = Arr::fromObject($item);\n\t\t\t}\n\t\t\tif (isset($item['item_id']) && !empty($item['item_id'])) {\n\t\t\t\t$item['installed'] = plugin_check_purchase_code($item);\n\t\t\t}\n\t\t\t\n\t\t\treturn $item;\n\t\t})->toArray();\n\t\t\n\t\tConfig::set('plugins', $plugins);\n\t\tConfig::set('plugins.installed', collect($plugins)->whereStrict('installed', true)->toArray());\n\t}", "public function get_plugins( $refresh = false ) {\n\t\t$args = array(\n\t\t\t'tab' => esc_attr( $this->browser_args['default_tab'] ),\n\t\t\t'page' => 1,\n\t\t);\n\t\t$args = array_merge( $args, $this->browser_args );\n\n\t\t$list = new BC_Framework_Plugin_Browser_List( $this->page_slug, null, $args );\n\n\t\treturn $list->items;\n\t}", "function get_mu_plugins()\n {\n }", "public static function getPlugins()\n {\n\n $plugins = array();\n\n $pluginsdir = opendir('modules/Scribite/plugins/TinyMCE/vendor/tiny_mce/plugins');\n while (false !== ($f = readdir($pluginsdir))) {\n if ($f != '.' && $f != '..' && $f != 'CVS' && $f != '_template' && !preg_match('/[.]/', $f)) {\n $plugins[] = array(\n 'text' => $f,\n 'value' => $f\n );\n }\n }\n closedir($pluginsdir);\n asort($plugins);\n\n return $plugins;\n }", "private function getUserInstalledPlugins()\n {\n $query = $this->container->get('dbal_connection')->createQueryBuilder();\n $query->select(['plugin.name', 'plugin.label', 'plugin.version'])\n ->from('s_core_plugins', 'plugin')\n ->where('plugin.name NOT IN (:names)')\n ->andWhere('plugin.source != :source')\n ->setParameter(':source', 'Default')\n ->setParameter(':names', ['PluginManager', 'StoreApi'], Connection::PARAM_STR_ARRAY);\n\n /** @var \\PDOStatement $statement */\n $statement = $query->execute();\n\n return $statement->fetchAll(\\PDO::FETCH_ASSOC);\n }", "static public function enumerate_plugins() {\n $dir = dirname(__FILE__).'/dimension';\n\n $listoffiles = scandir($dir);\n foreach ($listoffiles as $index => $entry) {\n if ($entry == '.' || $entry == '..' || substr($entry, -4) != '.php' || $entry == 'dimension_interface.php') {\n unset($listoffiles[$index]);\n }\n }\n\n return $listoffiles;\n }", "public function getInstantiablePlugins() {\n\t\treturn array_filter($this->plugins, function($el) {\n\t\t\treturn $el->isInstantiable();\n\t\t});\n\t}", "public function getPlugins()\n {\n if ($this->plugins instanceof \\Doctrine\\ORM\\PersistentCollection) {\n return $this->plugins->getValues();\n }\n else {\n return $this->plugins;\n }\n }", "function wp_get_active_and_valid_plugins()\n {\n }", "function loadPlugins() {\n // @todo make this more efficient\n $plugin_dirs = $this->listDir(MWG_BASE . '/plugins/');\n foreach($plugin_dirs as $ptypes) {\n $this->loadPluginGroup($ptypes);\n } \n }", "public static function get_enabled_plugins() {\n global $DB;\n\n $plugins = core_plugin_manager::instance()->get_installed_plugins('surveyproformat');\n if (!$plugins) {\n return array();\n }\n $installed = array();\n foreach ($plugins as $plugin => $version) {\n $installed[] = 'surveyproformat_'.$plugin;\n }\n\n list($installed, $params) = $DB->get_in_or_equal($installed, SQL_PARAMS_NAMED);\n $disabled = $DB->get_records_select('config_plugins', \"plugin $installed AND name = 'disabled'\", $params, 'plugin ASC');\n foreach ($disabled as $conf) {\n if (empty($conf->value)) {\n continue;\n }\n list($type, $name) = explode('_', $conf->plugin, 2);\n unset($plugins[$name]);\n }\n\n $enabled = array();\n foreach ($plugins as $plugin => $version) {\n $enabled[$plugin] = $plugin;\n }\n\n return $enabled;\n }", "public function getPluginInstances()\n {\n return Collection::make($this->pluginDirectories())->map(function ($path) {\n $name = $this->files->basename($path);\n $class = $this->qualifyNamespace($name);\n \n if(! class_exists($class)) {\n return null;\n }\n\n $plugin = new $class(app());\n\n if($plugin instanceof Plugin) {\n return $plugin;\n } \n\n return null;\n })->filter();\n }", "function getAllUsedServices()\n {\n $ret = array();\n foreach ($this->plugins as $name => $obj) {\n if ($obj->is_account) {\n if (isset($obj->DisplayName)) {\n $ret[$name] = $obj->DisplayName;\n } else {\n $ret[$name] = $name;\n }\n }\n }\n return $ret;\n }", "public function getPluginArray()\n {\n if( $this->getService()->isRest() )\n return $this->getProperty()->plugins;\n return NULL;\n }", "public static function parseInstalledPlugins() {\r\n\t\t$obj = new QPluginConfigParser(QPluginInstaller::getMasterConfigFilePath());\t\t\r\n\t\treturn $obj->parseConfig();\r\n\t}", "private function get_useful_plugins() {\n\t\t$available = get_transient( $this->plugins_cache_key );\n\t\t$hash = get_transient( $this->plugins_cache_hash_key );\n\t\t$current_hash = substr( md5( wp_json_encode( $this->useful_plugins ) ), 0, 5 );\n\n\n\t\tif ( $available !== false && $hash === $current_hash ) {\n\t\t\t$available = json_decode( $available, true );\n\n\t\t\tforeach ( $available as $slug => $args ) {\n\t\t\t\t$available[ $slug ]['cta'] = $this->plugin_helper->get_plugin_state( $slug );\n\t\t\t\t$available[ $slug ]['path'] = $this->plugin_helper->get_plugin_path( $slug );\n\t\t\t\t$available[ $slug ]['activate'] = $this->plugin_helper->get_plugin_action_link( $slug );\n\t\t\t\t$available[ $slug ]['deactivate'] = $this->plugin_helper->get_plugin_action_link( $slug, 'deactivate' );\n\t\t\t}\n\n\t\t\treturn $available;\n\t\t}\n\n\t\t$data = [];\n\t\tforeach ( $this->useful_plugins as $slug ) {\n\t\t\t$current_plugin = $this->plugin_helper->get_plugin_details( $slug );\n\t\t\tif ( $current_plugin instanceof \\WP_Error ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$data[ $slug ] = [\n\t\t\t\t'banner' => $current_plugin->banners['low'],\n\t\t\t\t'name' => html_entity_decode( $current_plugin->name ),\n\t\t\t\t'description' => html_entity_decode( $current_plugin->short_description ),\n\t\t\t\t'version' => $current_plugin->version,\n\t\t\t\t'author' => html_entity_decode( wp_strip_all_tags( $current_plugin->author ) ),\n\t\t\t\t'cta' => $this->plugin_helper->get_plugin_state( $slug ),\n\t\t\t\t'path' => $this->plugin_helper->get_plugin_path( $slug ),\n\t\t\t\t'activate' => $this->plugin_helper->get_plugin_action_link( $slug ),\n\t\t\t\t'deactivate' => $this->plugin_helper->get_plugin_action_link( $slug, 'deactivate' ),\n\t\t\t];\n\t\t}\n\n\t\tset_transient( $this->plugins_cache_hash_key, $current_hash );\n\t\tset_transient( $this->plugins_cache_key, wp_json_encode( $data ) );\n\n\t\treturn $data;\n\t}", "public function plugins(){\r\n\t\t//first check for permission\r\n\t\tif($this->users->is_logedin() && $this->users->has_permission('administrator_admin_panel')\t){\r\n\t\t\treturn $this->module_plugins();\r\n\t\t}\r\n\t\telse{\r\n\t\t\t//access denied\r\n\t\t\treturn $this->module_no_permission();\r\n\t\t}\r\n\t\t\r\n\t}", "private function pageGetPlugins() {\n\t\techo \"<reply action=\\\"ok\\\">\\n\";\r\n\t\t\r\n\t\t//To get the status of all plugins, they must all be started first.\n\t\t//As a safety measure, check that it's not running at boot.\n\t\t$this->framework->startAllPlugins ( false );\r\n\t\t\r\n\t\t//Print each plugin\n\t\tforeach ( $this->data as $plugin ) {\r\n\t\t\t$plugin_object = $this->framework->getPlugin ( ( string ) $plugin ['name'] );\r\n\t\t\t$status = \"\";\r\n\t\t\tif (isset ( $plugin_object )) {\r\n\t\t\t\t$status = $plugin_object->getStatus ();\r\n\t\t\t} else if (( string ) $plugin ['enabled'] == \"true\") {\r\n\t\t\t\tthrow new Exception('The module '.$plugin['name'].' could not be retrieved');\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\techo \"<plugin status=\\\"{$status}\\\" \";\r\n\t\t\t//also print all other attributes the plugin has.\n\t\t\tforeach ( $plugin->attributes () as $name => $value ) {\r\n\t\t\t\techo \" $name = \\\"$value\\\"\";\r\n\t\t\t}\r\n\t\t\techo \"/>\\n\"; //Closing tag of plugin\n\t\t}\r\n\t\techo \"</reply>\";\r\n\t}", "public function getActivePlugins() {\n if (is_null($this->_activePlugins)) {\n $activePlugins = $this->_optionsHelper->getOption('active_plugins');\n $this->_activePlugins = $activePlugins ? $activePlugins : array();\n }\n return $this->_activePlugins;\n }", "static public function all_subplugins() {\n $plugins = [];\n $pluginnames = self::all_subplugin_names();\n foreach ($pluginnames as $contextname) {\n $plugins[] = self::factory($contextname);\n }\n return $plugins;\n }", "public function getEnabledPlugins() {\n if ( is_null($this->_enabled) ) {\n $this->_enabled = array();\n foreach( $this->getPlugins() as $name => $plugin ) {\n if ( $plugin->isEnabled() ) {\n $this->_enabled[ $name ] = $plugin;\n }\n }\n }\n return $this->_enabled;\n }", "private function get_missing_plugins() {\n\n\t\t$missing_plugins = array();\n\t\t\n\t\tforeach ( $this->get_prerequisite_plugins() as $plugin_name => $plugin_directory_and_file ) {\n\t\t\tif ( ! is_plugin_active( $plugin_directory_and_file ) ) {\n\t\t\t\t$missing_plugins [] = \"$plugin_name ($plugin_directory_and_file)\";\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $missing_plugins;\n\t}", "protected function get_installed_plugin_slugs() {\n\t\treturn array_keys( $this->get_installed_plugins() );\n\t}", "public function getAllPluginsPath()\n {\n if ($this->_allPluginsPath === null) {\n $this->_allPluginsPath = array_map(function ($path) {\n return rtrim($path, '/\\\\').DIRECTORY_SEPARATOR;\n }, $this->_pluginsDirPath);\n\n foreach ($this->getAllModulesPath() as $name => $path) {\n $p = $path.'plugins'.DIRECTORY_SEPARATOR;\n if (file_exists($p) &&\n is_dir($p) &&\n !in_array($p, $this->_allPluginsPath)) {\n $this->_allPluginsPath[] = $p;\n }\n }\n\n $bundled = realpath(__DIR__.'/../../jelix-legacy/plugins/').DIRECTORY_SEPARATOR;\n if (file_exists($bundled) && !in_array($p, $this->_allPluginsPath)) {\n array_unshift($this->_allPluginsPath, $bundled);\n }\n }\n\n return $this->_allPluginsPath;\n }", "private static function search()\r\n\t{\r\n\t\t$dir = 'plugins';\r\n\t\t// search for plugin modules in the plugins directory\t\t \r\n\t\t$modules = model_Utils_ModuleHelper::searchDirectoryForModules($dir);\r\n\t\tforeach ($modules as $module)\r\n\t\t{\r\n\t\t\t// save found module paths to the db so we can auto-load them in the future\r\n\t\t\tmodel_Utils_ModuleHelper::saveModule($module);\r\n\t\t\t// add matching paths to Kohana's module paths\t\t\r\n\t\t\tmodel_Utils_ModuleHelper::addModulePath($module);\r\n\t\t}\r\n\t\treturn Model_Admin_EventsAdmin::searchForListeners($dir,'Interface_iPCPPlugin');\t\r\n\t}", "public static function getStudiorumPlugins()\n\t\t{\n\n\t\t\tif( !function_exists( 'get_plugins' ) ){\n\t\t\t\trequire_once ABSPATH . 'wp-admin/includes/plugin.php';\n\t\t\t}\n\n\t\t\t// Returns a list of all available plugins\n\t\t\t$allPlugins = get_plugins();\n\n\t\t\tif( !$allPlugins || !is_array( $allPlugins ) || empty( $allPlugins ) ){\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$output = array();\n\n\t\t\tforeach( $allPlugins as $pathAndSlug => $pluginData )\n\t\t\t{\n\t\t\t\n\t\t\t\t$splitPathAndSlug = explode( '/', $pathAndSlug );\n\n\t\t\t\t// Search for 'studiorum' in the folder name\n\t\t\t\t$folderName = strtolower( $splitPathAndSlug[0] );\n\n\t\t\t\t$searchFor = 'studiorum';\n\n\t\t\t\t$pos = strpos( $folderName, $searchFor );\n\n\t\t\t\tif( $pos === false ){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$output[$folderName] = $pluginData;\n\n\t\t\t}\n\n\t\t\treturn $output;\n\n\t\t}", "private function get_wpforms_plugins() {\n\n\t\tif ( ! empty( $this->plugins ) ) {\n\t\t\treturn $this->plugins;\n\t\t}\n\n\t\t$plugins = get_option( 'active_plugins', [] );\n\n\t\tforeach ( $plugins as $key => $plugin_file ) {\n\t\t\t$slug = dirname( $plugin_file );\n\n\t\t\tif ( ! $this->is_wpforms_plugin( $slug ) ) {\n\t\t\t\tunset( $plugins[ $key ] );\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$plugins[ $key ] = $slug;\n\t\t}\n\n\t\t$this->plugins = $plugins;\n\n\t\treturn $this->plugins;\n\t}", "function load_plugins() {\n\tglobal $root;\n\t$plugins = get_option('active_plugins');\n\n\tif (! $plugins) {\n\t\t$plugins = array();\n\t}\n\tforeach ($plugins as $key => $path) {\n\t\tif (file_exists($root.$path)) {\n\t\t\trequire $root.$path;\n\t\t}\n\t}\n}", "public function getPlugins($enabledOnly = true)\n\t{\n\t\tif ($enabledOnly)\n\t\t{\n\t\t\treturn $this->_enabledPlugins;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (!isset($this->_allPlugins))\n\t\t\t{\n\t\t\t\t$this->_allPlugins = array();\n\n\t\t\t\t// Find all of the plugins in the plugins folder\n\t\t\t\t$pluginsPath = craft()->path->getPluginsPath();\n\t\t\t\t$pluginFolderContents = IOHelper::getFolderContents($pluginsPath, false);\n\n\t\t\t\tif ($pluginFolderContents)\n\t\t\t\t{\n\t\t\t\t\tforeach ($pluginFolderContents as $pluginFolderContent)\n\t\t\t\t\t{\n\t\t\t\t\t\t// Make sure it's actually a folder.\n\t\t\t\t\t\tif (IOHelper::folderExists($pluginFolderContent))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$pluginFolderContent = IOHelper::normalizePathSeparators($pluginFolderContent);\n\t\t\t\t\t\t\t$pluginFolderName = mb_strtolower(IOHelper::getFolderName($pluginFolderContent, false));\n\t\t\t\t\t\t\t$pluginFilePath = IOHelper::getFolderContents($pluginFolderContent, false, \".*Plugin\\.php\");\n\n\t\t\t\t\t\t\tif (is_array($pluginFilePath) && count($pluginFilePath) > 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$pluginFileName = IOHelper::getFileName($pluginFilePath[0], false);\n\n\t\t\t\t\t\t\t\t// Chop off the \"Plugin\" suffix\n\t\t\t\t\t\t\t\t$handle = mb_substr($pluginFileName, 0, mb_strlen($pluginFileName) - 6);\n\t\t\t\t\t\t\t\t$lcHandle = mb_strtolower($handle);\n\n\t\t\t\t\t\t\t\t// Validate that the lowercase plugin class handle is the same as the folder name\n\t\t\t\t\t\t\t\t// and that we haven't already loaded a plugin with the same handle but different casing\n\t\t\t\t\t\t\t\tif ($lcHandle === $pluginFolderName && !isset($this->_allPlugins[$lcHandle]))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$plugin = $this->getPlugin($handle, false);\n\n\t\t\t\t\t\t\t\t\tif ($plugin)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$this->_allPlugins[$lcHandle] = $plugin;\n\t\t\t\t\t\t\t\t\t\t$names[] = $plugin->getName();\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\tif (!empty($names))\n\t\t\t\t\t{\n\t\t\t\t\t\t// Sort plugins by name\n\t\t\t\t\t\t$this->_sortPlugins($names, $this->_allPlugins);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $this->_allPlugins;\n\t\t}\n\t}", "public function get_shared_plugins() {\n\t\treturn get_plugins( self::SHARED_PLUGINS_RELATIVE_PATH );\n\t}", "protected function get_detected_plugins () {\n //** Check if get_plugins() function exists */\n if ( ! function_exists( 'get_plugins' ) ) {\n require_once ABSPATH . 'wp-admin/includes/plugin.php';\n }\n $response = array();\n $products = get_plugins();\n if ( is_array( $products ) && ( 0 < count( $products ) ) ) {\n $reference_list = $this->get_product_reference_list();\n //echo \"<pre>\"; print_r( $reference_list ); echo \"</pre>\"; die();\n $activated_products = $this->get_activated_products();\n if ( is_array( $reference_list ) && ( 0 < count( $reference_list ) ) ) {\n foreach ( $products as $k => $v ) {\n if ( in_array( $k, array_keys( $reference_list ) ) ) {\n $status = 'inactive';\n if ( in_array( $k, array_keys( $activated_products ) ) ) { \n $status = 'active'; \n }\n $response[$k] = array( \n 'product_name' => $v['Name'], \n 'product_version' => $v['Version'], \n 'instance_key' => $reference_list[$k]['instance_key'], \n 'product_id' => $reference_list[$k]['product_id'],\n 'product_status' => $status, \n 'product_file_path' => $k,\n 'errors_callback' => isset( $reference_list[$k]['errors_callback'] ) ? $reference_list[$k]['errors_callback'] : false,\n );\n }\n }\n }\n }\n return $response;\n }", "public function get_plugins_list()\n {\n $baseUrl = 'http://prismjs.com/plugins/';\n\n // JS and related CSS file name must be same, except extension\n return [\n 1 => ['name' => 'Autolinker ', 'url' => $baseUrl . 'autolinker/', 'file' => 'prism-autolinker', 'need_css' => 1],\n 2 => ['name' => 'Autoloader ', 'url' => $baseUrl . 'autoloader/', 'file' => 'prism-autoloader', 'need_css' => 0],\n\n 3 => ['name' => 'Command Line', 'url' => $baseUrl . 'command-line/', 'file' => 'prism-command-line', 'need_css' => 1],\n 4 => ['name' => 'Copy to Clipboard', 'url' => $baseUrl . 'copy-to-clipboard/', 'file' => 'prism-copy-to-clipboard', 'need_css' => 1],\n\n 5 => ['name' => 'File Highlight ', 'url' => $baseUrl . 'file-highlight/', 'file' => 'prism-file-highlight', 'need_css' => 0],\n 6 => ['name' => 'Line Highlight', 'url' => $baseUrl . 'line-highlight/', 'file' => 'prism-line-highlight', 'need_css' => 1],\n 7 => ['name' => 'Line Numbers', 'url' => $baseUrl . 'line-numbers/', 'file' => 'prism-line-numbers', 'need_css' => 1],\n\n 8 => ['name' => 'Preview: Base', 'url' => $baseUrl . 'previewer-base/', 'file' => 'prism-previewer-base', 'need_css' => 1],\n 9 => ['name' => 'Preview: Angle', 'url' => $baseUrl . 'previewer-angle/', 'file' => 'prism-previewer-angle', 'need_css' => 1],\n 10 => ['name' => 'Preview: Color', 'url' => $baseUrl . 'previewer-color/', 'file' => 'prism-previewer-color', 'need_css' => 1],\n 11 => ['name' => 'Preview: Easing', 'url' => $baseUrl . 'previewer-easing/', 'file' => 'prism-previewer-easing', 'need_css' => 1],\n 12 => ['name' => 'Preview: Gradient', 'url' => $baseUrl . 'previewer-gradient/', 'file' => 'prism-previewer-gradient', 'need_css' => 1],\n 13 => ['name' => 'Preview: Time', 'url' => $baseUrl . 'previewer-time/', 'file' => 'prism-previewer-time', 'need_css' => 1],\n\n 14 => ['name' => 'Show Invisibles', 'url' => $baseUrl . 'show-invisibles/', 'file' => 'prism-show-invisibles', 'need_css' => 1],\n 15 => ['name' => 'Show Language', 'url' => $baseUrl . 'show-language/', 'file' => 'prism-show-language', 'need_css' => 1],\n // Docs not correctly linking\n // 16 => array('name' => 'WebPlatform Docs', 'url' => $base_url . 'wpd/', 'file' => 'prism-wpd', 'need_css' => 1),\n 16 => ['name' => 'Normalize Whitespace', 'url' => $baseUrl . 'normalize-whitespace/', 'file' => 'prism-normalize-whitespace', 'need_css' => 0],\n ];\n }", "public function getPluginNames() : array\n {\n $names = array();\n \n if( count( $this->plugins ) > 0 )\n {\n foreach( $this->plugins as $plugin )\n {\n $names[] = $plugin->getName();\n }\n }\n return $names;\n }", "public function get_plugins( $plugin_folder = '' ) {\n\t\treturn $this->tgmpa->get_plugins( $plugin_folder );\n\t}", "private function get_conflicting_plugins_list() {\n\n\t\t$plugins = [\n\t\t\t'2-click-socialmedia-buttons/2-click-socialmedia-buttons.php' => '2 Click Social Media Buttons.',\n\t\t\t'add-link-to-facebook/add-link-to-facebook.php' => 'Add Link to Facebook.',\n\t\t\t'extended-wp-reset/extended-wp-reset.php' => 'Extended WP Reset.',\n\t\t\t'add-meta-tags/add-meta-tags.php' => 'Add Meta Tags.',\n\t\t\t'all-in-one-seo-pack/all_in_one_seo_pack.php' => 'All In One SEO Pack',\n\t\t\t'easy-facebook-share-thumbnails/esft.php' => 'Easy Facebook Share Thumbnail.',\n\t\t\t'facebook/facebook.php' => 'Facebook (official plugin).',\n\t\t\t'facebook-awd/AWD_facebook.php' => 'Facebook AWD All in one.',\n\t\t\t'facebook-featured-image-and-open-graph-meta-tags/fb-featured-image.php' => 'Facebook Featured Image & OG Meta Tags.',\n\t\t\t'facebook-meta-tags/facebook-metatags.php' => 'Facebook Meta Tags.',\n\t\t\t'wonderm00ns-simple-facebook-open-graph-tags/wonderm00n-open-graph.php' => 'Facebook Open Graph Meta Tags for WordPress.',\n\t\t\t'facebook-revised-open-graph-meta-tag/index.php' => 'Facebook Revised Open Graph Meta Tag.',\n\t\t\t'facebook-thumb-fixer/_facebook-thumb-fixer.php' => 'Facebook Thumb Fixer.',\n\t\t\t'facebook-and-digg-thumbnail-generator/facebook-and-digg-thumbnail-generator.php' => 'Fedmich\\'s Facebook Open Graph Meta.',\n\t\t\t'network-publisher/networkpub.php' => 'Network Publisher.',\n\t\t\t'nextgen-facebook/nextgen-facebook.php' => 'NextGEN Facebook OG.',\n\t\t\t'opengraph/opengraph.php' => 'Open Graph.',\n\t\t\t'open-graph-protocol-framework/open-graph-protocol-framework.php' => 'Open Graph Protocol Framework.',\n\t\t\t'seo-facebook-comments/seofacebook.php' => 'SEO Facebook Comments.',\n\t\t\t'seo-ultimate/seo-ultimate.php' => 'SEO Ultimate.',\n\t\t\t'sexybookmarks/sexy-bookmarks.php' => 'Shareaholic.',\n\t\t\t'shareaholic/sexy-bookmarks.php' => 'Shareaholic.',\n\t\t\t'sharepress/sharepress.php' => 'SharePress.',\n\t\t\t'simple-facebook-connect/sfc.php' => 'Simple Facebook Connect.',\n\t\t\t'social-discussions/social-discussions.php' => 'Social Discussions.',\n\t\t\t'social-sharing-toolkit/social_sharing_toolkit.php' => 'Social Sharing Toolkit.',\n\t\t\t'socialize/socialize.php' => 'Socialize.',\n\t\t\t'only-tweet-like-share-and-google-1/tweet-like-plusone.php' => 'Tweet, Like, Google +1 and Share.',\n\t\t\t'wordbooker/wordbooker.php' => 'Wordbooker.',\n\t\t\t'wordpress-seo/wp-seo.php' => 'Yoast SEO',\n\t\t\t'wordpress-seo-premium/wp-seo-premium.php' => 'Yoast SEO Premium',\n\t\t\t'wp-seopress/seopress.php' => 'SEOPress',\n\t\t\t'wp-seopress-pro/seopress-pro.php' => 'SEOPress Pro',\n\t\t\t'wpsso/wpsso.php' => 'WordPress Social Sharing Optimization.',\n\t\t\t'wp-caregiver/wp-caregiver.php' => 'WP Caregiver.',\n\t\t\t'wp-facebook-like-send-open-graph-meta/wp-facebook-like-send-open-graph-meta.php' => 'WP Facebook Like Send & Open Graph Meta.',\n\t\t\t'wp-facebook-open-graph-protocol/wp-facebook-ogp.php' => 'WP Facebook Open Graph protocol.',\n\t\t\t'wp-ogp/wp-ogp.php' => 'WP-OGP.',\n\t\t\t'zoltonorg-social-plugin/zosp.php' => 'Zolton.org Social Plugin.',\n\t\t\t'all-in-one-schemaorg-rich-snippets/index.php' => 'All In One Schema Rich Snippets.',\n\t\t\t'wp-schema-pro/wp-schema-pro.php' => 'Schema Pro',\n\t\t\t'no-category-base-wpml/no-category-base-wpml.php' => 'No Category Base (WPML)',\n\t\t\t'all-404-redirect-to-homepage/all-404-redirect-to-homepage.php' => 'All 404 Redirect to Homepage',\n\t\t\t'remove-category-url/remove-category-url.php' => 'Remove Category URL',\n\t\t];\n\n\t\t$plugins = Helper::is_module_active( 'redirections' ) ? array_merge( $plugins, $this->get_redirection_conflicting_plugins() ) : $plugins;\n\t\t$plugins = Helper::is_module_active( 'sitemap' ) ? array_merge( $plugins, $this->get_sitemap_conflicting_plugins() ) : $plugins;\n\n\t\treturn $plugins;\n\t}", "public function getPluginManager();", "public function search_plugins() {\n\n\t\trequire_once( ABSPATH . \"wp-admin\" . '/includes/plugin-install.php' );\n\n $request = array(\n 'per_page' => 24,\n 'search' => $_POST['search'],\n 'fields' => $this->get_api_fields()\n );\n\n $results = plugins_api( 'query_plugins', $request );\n\t\t$data = array();\n\t\t$plugins = array();\n\n foreach( $results->plugins as $plugin ) {\n\t\t\t$plugins[] = $this->prepare_data( $plugin );\n\t\t}\n\t\t\n\t\t$data['info'] = $results->info;\n\t\t$data['plugins'] = $plugins;\n\n echo json_encode($data);\n\n die();\n }", "protected function getDefaultPlugins(): array\n {\n $plugins = [\n new BaseUriPlugin($this->getBaseUri()->withPath(self::API_VERSION), ['replace' => true]),\n new HeaderDefaultsPlugin($this->getDefaultHeaders()),\n new HistoryPlugin($this->journal),\n new ResponseHandlerPlugin(),\n ];\n if ($this->auth) {\n $plugins[] = new AuthenticationPlugin($this->auth);\n }\n\n return $plugins;\n }", "function get_all_plugin_names(array $types) {\n $pluginman = core_plugin_manager::instance();\n $returnarray = array();\n foreach ($types as $type) {\n // Get all plugins of a given type.\n $pluginarray = $pluginman->get_plugins_of_type($type);\n // Plugins will be returned as objects so get the name of each and push it into a new array.\n foreach ($pluginarray as $plugin) {\n array_push($returnarray, $plugin->name);\n }\n }\n return $returnarray;\n}", "public function loadPlugins()\n\t{\n\t\tif (!$this->_pluginsLoaded && !$this->_loadingPlugins)\n\t\t{\n\t\t\tif (craft()->isInstalled())\n\t\t\t{\n\t\t\t\t// Prevent this function from getting called twice.\n\t\t\t\t$this->_loadingPlugins = true;\n\n\t\t\t\t// Find all of the enabled plugins\n\t\t\t\t// TODO: swap the SELECT statements after next breakpoint\n\t\t\t\t$rows = craft()->db->createCommand()\n\t\t\t\t\t//->select('id, class, version, schemaVersion, settings, installDate')\n\t\t\t\t\t->select('*')\n\t\t\t\t\t->from('plugins')\n\t\t\t\t\t->where('enabled=1')\n\t\t\t\t\t->queryAll();\n\n\t\t\t\t$names = array();\n\n\t\t\t\tforeach ($rows as $row)\n\t\t\t\t{\n\t\t\t\t\t$plugin = $this->_getPlugin($row['class']);\n\n\t\t\t\t\tif ($plugin)\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->_autoloadPluginClasses($plugin);\n\n\t\t\t\t\t\t// Clean it up a bit\n\t\t\t\t\t\t$row['settings'] = JsonHelper::decode($row['settings']);\n\t\t\t\t\t\t$row['installDate'] = DateTime::createFromString($row['installDate']);\n\n\t\t\t\t\t\t$this->_enabledPluginInfo[$row['class']] = $row;\n\n\t\t\t\t\t\t$lcPluginHandle = mb_strtolower($plugin->getClassHandle());\n\t\t\t\t\t\t$this->_plugins[$lcPluginHandle] = $plugin;\n\t\t\t\t\t\t$this->_enabledPlugins[$lcPluginHandle] = $plugin;\n\t\t\t\t\t\t$names[] = $plugin->getName();\n\n\t\t\t\t\t\t$plugin->setSettings($row['settings']);\n\n\t\t\t\t\t\t$plugin->isInstalled = true;\n\t\t\t\t\t\t$plugin->isEnabled = true;\n\n\t\t\t\t\t\t// If we're not updating, check if the plugin's version number changed, but not its schema version.\n\t\t\t\t\t\tif (!craft()->isInMaintenanceMode() && $this->hasPluginVersionNumberChanged($plugin) && !$this->doesPluginRequireDatabaseUpdate($plugin))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// Update our record of the plugin's version number\n\t\t\t\t\t\t\tcraft()->db->createCommand()->update(\n\t\t\t\t\t\t\t\t'plugins',\n\t\t\t\t\t\t\t\tarray('version' => $plugin->getVersion()),\n\t\t\t\t\t\t\t\t'id = :id',\n\t\t\t\t\t\t\t\tarray(':id' => $row['id'])\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Sort plugins by name\n\t\t\t\t$this->_sortPlugins($names, $this->_enabledPlugins);\n\n\t\t\t\t// Now that all of the components have been imported, initialize all the plugins\n\t\t\t\tforeach ($this->_enabledPlugins as $plugin)\n\t\t\t\t{\n\t\t\t\t\t$plugin->init();\n\t\t\t\t}\n\n\t\t\t\t$this->_loadingPlugins = false;\n\t\t\t}\n\n\t\t\t$this->_pluginsLoaded = true;\n\n\t\t\t// Fire an 'onLoadPlugins' event\n\t\t\t$this->onLoadPlugins(new Event($this));\n\t\t}\n\t}", "public function get_plugins(){\n\t\t\t\n\t\t\t$this->load->dbutil(); \n\n\t\t\tif($this->dbutil->database_exists('wpadmin_localhost')){\n\n\t\t\t\t# Get the credentials from the database to populate the database below.\n\t\t \t$this->load->model('download_model');\t\n\n\t\t\t\t$query = $this\n\t\t\t\t\t\t\t->download_model\n\t\t\t\t\t\t\t->get_site_credentials();\n\n\t\t\t\t$host = $query[0]->admin_host;\n\t\t\t\t$user = $query[0]->admin_user;\n\t\t\t\t$pass = $query[0]->admin_password;\t\t\t\t\n\n\t\t\t\t$config['hostname'] = \"localhost\";\n\t\t\t $config['username'] = $user;\n\t\t\t $config['password'] = $pass;\n\t\t\t $config['database'] = \"wordpress_default_plugins\";\n\t\t\t $config['dbdriver'] = \"mysql\";\n\t\t\t $config['dbprefix'] = \"\";\n\t\t\t $config['pconnect'] = FALSE;\n\t\t\t $config['db_debug'] = TRUE;\n\t\t\t $config['cache_on'] = FALSE;\n\t\t\t $config['cachedir'] = \"\";\n\t\t\t $config['char_set'] = \"utf8\";\n\t\t\t $config['dbcollat'] = \"utf8_general_ci\";\n\n\t\t\t \t$db2 = $this->load->database($config,TRUE);\n\n\t\t\t\t$query = $db2->get('default_plugins');\n\n\t\t\t\t$query = $query->result();\t\n\n\t\t\t\treturn $query; \t\t\t\n\n\t\t\t}\telse {\n\t\t\t\tredirect('admin');\n\t\t\t}\n\n\n\t\t}", "public function get_active_plugins_option() {\n\t\treturn (array) get_option( self::OPTION_ACTIVE_PLUGINS, array() );\n\t}", "function get_plugins($plugin_folder = '')\n {\n }", "static function getPlugins( $folder='Tienda' )\r\n\t{\r\n\t\t$database = JFactory::getDBO();\r\n\t\t\r\n\t\t$order_query = \" ORDER BY ordering ASC \";\r\n\t\t$folder = strtolower( $folder );\r\n\t\t\r\n if(version_compare(JVERSION,'1.6.0','ge')) {\r\n\t // Joomla! 1.6+ code here\r\n\t $query = \"\r\n\t\t\tSELECT \r\n\t\t\t\t* \r\n\t\t\tFROM \r\n\t\t\t\t#__extensions \r\n\t\t\tWHERE enabled = '1'\r\n\t\t\tAND \r\n\t\t\t\tLOWER(`folder`) = '{$folder}'\r\n\t\t\r\n\t\t\";\r\n\t } else {\r\n\t // Joomla! 1.5 code here\r\n\t $query = \"\r\n\t\t\tSELECT \r\n\t\t\t\t* \r\n\t\t\tFROM \r\n\t\t\t\t#__plugins \r\n\t\t\tWHERE published = '1'\r\n\t\t\tAND \r\n\t\t\t\tLOWER(`folder`) = '{$folder}'\r\n\t\t\t{$order_query}\r\n\t\t\";\r\n\t\t}\t\t\r\n\r\n\t\t$database->setQuery( $query );\r\n\t\t$data = $database->loadObjectList();\r\n\t\treturn $data;\r\n\t}", "public function findAvailablePlugins($root) {\n $globIter = new \\GlobIterator($root . D_S . \"Plugins\" . D_S . \"*\" . D_S . \"plugin.yml\");\n foreach($globIter as $pluginFile) {\n $pluginInfo = yaml_parse_file($pluginFile->getRealPath());\n $pluginInfo['root'] = $pluginFile->getPath();\n $this->availablePlugins[$pluginInfo['name']] = $pluginInfo;\n }\n }", "public static function loadPlugins(){\n\n\t\t// check to make sure the plugins directory exists\n\t\tif( !self::_pluginsDirectoryExists() )\n\t\t\treturn;\n\n\t\t// scan the directory, searching for plugins that fit the stereotype\n\t\tself::_scanForPlugins();\n\t}", "function get_popup_plugin_list($version){\r\n\t$versions = require apply_filters('etheme_file_url', ETHEME_THEME . 'versions.php');\r\n\t$version = $versions[$version];\r\n\r\n\r\n\t$instance = call_user_func( array( get_class( $GLOBALS['tgmpa'] ), 'get_instance' ) );\r\n\t$plugins = array(\r\n\t\t'all' => array(), // Meaning: all plugins which still have open actions.\r\n\t\t'install' => array(),\r\n\t\t'update' => array(),\r\n\t\t'activate' => array(),\r\n\t);\r\n\r\n\tforeach ( $instance->plugins as $slug => $plugin ) {\r\n\r\n\t\t$new_is_plugin_active = (\r\n\t\t\t( ! empty( $instance->plugins[ $slug ]['is_callable'] ) && is_callable( $instance->plugins[ $slug ]['is_callable'] ) )\r\n\t\t\t|| in_array( $instance->plugins[ $slug ]['file_path'], (array) get_option( 'active_plugins', array() ) ) || is_plugin_active_for_network( $instance->plugins[ $slug ]['file_path'] )\r\n\t\t);\r\n\t\t\r\n\t\tif ( $new_is_plugin_active && false === $instance->does_plugin_have_update( $slug ) ) {\r\n\t\t\t// No need to display plugins if they are installed, up-to-date and active.\r\n\t\t\tcontinue;\r\n\t\t} else {\r\n\t\t\t$plugins['all'][ $slug ] = $plugin;\r\n\r\n\t\t\tif ( ! $instance->is_plugin_installed( $slug ) ) {\r\n\t\t\t\t$plugins['install'][ $slug ] = $plugin;\r\n\t\t\t} else {\r\n\t\t\t\tif ( false !== $instance->does_plugin_have_update( $slug ) ) {\r\n\t\t\t\t\t$plugins['update'][ $slug ] = $plugin;\r\n\t\t\t\t\t// unset($plugins['all'][ $slug ]);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( $instance->can_plugin_activate( $slug ) ) {\r\n\t\t\t\t\t$plugins['activate'][ $slug ] = $plugin;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t$required = array_filter($plugins['all'], function($el) {\r\n\t\treturn $el['required'];\r\n\t});\r\n\r\n\t$version_plugins = ( ! empty( $version['plugins'] ) ) ? $version['plugins'] : array();\r\n\r\n\t$to_show = array_filter($plugins['all'], function($el) use($version_plugins) {\r\n\t\treturn in_array( $el['slug'], array_merge($version_plugins) );\r\n\t});\r\n\r\n\t$return = array_merge($required,$to_show);\r\n\r\n\tforeach ($return as $key => $value) {\r\n\t\tif ( array_key_exists($key, $plugins['install']) ) {\r\n\t\t\t$return[$key]['btn_text'] = esc_html__( 'Install', 'xstore' );\r\n\t\t} else if( array_key_exists($key, $plugins['activate']) ){\r\n\t\t\t$return[$key]['btn_text'] = esc_html__( 'Activate', 'xstore' );\r\n\t\t}\r\n\t}\r\n\r\n\treturn $return;\r\n}", "abstract protected function get_plugin_components();", "protected function getPluginFiles()\n\t{\n\t\t$pluginPath = $this->pluginPath;\n\t\t$plugins = array();\n\t\t$dirIter = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($pluginPath), RecursiveIteratorIterator::CHILD_FIRST);\n\t\t/*@var SplFileInfo $fileObj*/\n\t\tforeach($dirIter as $fileObj)\n\t\t{\n\t\t\tif(!$fileObj->isDir() && preg_match(\"#\\.plugin\\.php$#\", $fileObj->getFilename()))\n\t\t\t{\n\t\t\t\t$plugins[] = $fileObj->getPathname();\n\t\t\t}\n\t\t}\n\t\treturn $plugins;\n\t}", "function loadPlugins() {\n\t\t$pathname = $GLOBALS['mosConfig_absolute_path'].'/administrator/components/com_joomap/plugins/';\n\t\t$plugins = JoomapPlugins::listPlugins();\n\t\tforeach( $plugins as $plugin ) {\n\t\t\tinclude_once( $pathname.$plugin );\n\t\t}\n\t}" ]
[ "0.82623965", "0.80233794", "0.79860055", "0.7821467", "0.78028935", "0.77926046", "0.7751574", "0.7751574", "0.7744255", "0.7716211", "0.7702277", "0.7689137", "0.7684541", "0.7669164", "0.76312727", "0.76131165", "0.76122475", "0.7611972", "0.75989395", "0.75597006", "0.7516858", "0.74996066", "0.74808526", "0.747886", "0.7453609", "0.7447245", "0.74426407", "0.7405717", "0.7401454", "0.7379176", "0.7274548", "0.7243626", "0.7209914", "0.7173392", "0.71715176", "0.71657205", "0.7164759", "0.7150024", "0.71491265", "0.71429133", "0.7083777", "0.7066758", "0.70659506", "0.70318747", "0.6994637", "0.6993245", "0.6988468", "0.6967914", "0.69485825", "0.6948085", "0.69471246", "0.69240636", "0.6913209", "0.69126976", "0.68984056", "0.6884876", "0.6872038", "0.6862502", "0.6822679", "0.68122846", "0.6810256", "0.68001294", "0.6790987", "0.6779795", "0.6778476", "0.6776559", "0.6761514", "0.6752675", "0.67479765", "0.67376715", "0.6712297", "0.67098767", "0.6684864", "0.6678498", "0.6661189", "0.6653671", "0.6645617", "0.66367745", "0.66357094", "0.6610526", "0.66077197", "0.65835375", "0.6580086", "0.65520793", "0.6545421", "0.65351325", "0.65347505", "0.6524505", "0.6521403", "0.65048677", "0.6502899", "0.64610857", "0.64566725", "0.6455709", "0.6443646", "0.64230126", "0.6419657", "0.6408618", "0.6407329", "0.640466" ]
0.79037666
3
Gets a list of enabled plugins
function getEnabledPlugins();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEnabledPlugins() {\n if ( is_null($this->_enabled) ) {\n $this->_enabled = array();\n foreach( $this->getPlugins() as $name => $plugin ) {\n if ( $plugin->isEnabled() ) {\n $this->_enabled[ $name ] = $plugin;\n }\n }\n }\n return $this->_enabled;\n }", "public static function get_enabled_plugins() {\n global $DB;\n\n $plugins = core_plugin_manager::instance()->get_installed_plugins('surveyproformat');\n if (!$plugins) {\n return array();\n }\n $installed = array();\n foreach ($plugins as $plugin => $version) {\n $installed[] = 'surveyproformat_'.$plugin;\n }\n\n list($installed, $params) = $DB->get_in_or_equal($installed, SQL_PARAMS_NAMED);\n $disabled = $DB->get_records_select('config_plugins', \"plugin $installed AND name = 'disabled'\", $params, 'plugin ASC');\n foreach ($disabled as $conf) {\n if (empty($conf->value)) {\n continue;\n }\n list($type, $name) = explode('_', $conf->plugin, 2);\n unset($plugins[$name]);\n }\n\n $enabled = array();\n foreach ($plugins as $plugin => $version) {\n $enabled[$plugin] = $plugin;\n }\n\n return $enabled;\n }", "public function get_plugins() {\n\t\treturn get_plugins();\n\t}", "public function getAvailablePlugins()\n\t{\n\t\t$this->loadAvailablePlugins();\n\t\treturn self::$_plugins;\n\t}", "public function getPlugins()\n {\n return $this->plugins;\n }", "public function getPlugins()\n {\n return $this->plugins;\n }", "public function getPlugins()\n {\n return $this->getProperty()->plugins;\n }", "public function getRegisteredPlugins()\n {\n return $this->registeredPlugins;\n }", "public function getPlugins()\n\t{\n\t\treturn $this->plugins;\n\t}", "public static function getPlugins() {\r\n\t\treturn self::getModulesForUser(Config::$sis_plugin_folder);\r\n\t}", "function getPlugins() {\n return $this->plugins;\n }", "function getPlugins() {\n\n return $this->plugins;\n\n }", "public function getPlugins()\n {\n return $this->getService('plugins');\n }", "function getPlugins();", "public static function getPluginList () {\n\t\treturn self::$pInfo[1];\n\t\t$glob = glob(TH_ROOT.TH_PLUGINS.'*/plugin.php');\n\t\tforeach($glob as $plugin) {\n\t\t\t// $plugin is a full path, we don't want that.\n\t\t\t$plugin = explode(TH_ROOT.TH_PLUGINS, $plugin, 2);\n\t\t\t$plugin = explode('/plugin.php', $plugin[1]);\n\t\t\t$r[] = $plugin[0];\n\t\t}\n\t\treturn $r;\n\t}", "static final function getPlugins()\n {\n self::initPlugins();\n return self::$plugins;\n }", "public function getPlugins() {\n if (is_null($this->_plugins)) {\n $this->_plugins = $this->_scanPlugins();\n }\n return $this->_plugins;\n }", "public static function plugins() {\n\t\t\treturn self::$plugins;\n\t\t}", "public function getPlugins() {\n if ( is_null($this->_plugins) ) {\n $this->_plugins = array();\n $plugins = $this->_app->config->getConfig('plugins');\n foreach( $plugins as $name => $conf ) {\n $this->_plugins[ $name ] = new Plugin(\n $this->_app, \n !empty($conf['enabled']) ? $conf['enabled'] : false,\n !empty($conf['options']) ? $conf['options'] : array()\n );\n }\n }\n return $this->_plugins;\n }", "protected function get_plugins() {\n\t\tif ( ! $this->plugins ) {\n\t\t\t$this->plugins = array_keys( get_plugins() );\n\t\t}\n\n\t\treturn $this->plugins;\n\t}", "public function get_unfiltered_plugin_list() {\n\t\t$this->override_active = false;\n\t\t$all_plugins = get_option( 'active_plugins' );\n\t\t$this->override_active = true;\n\n\t\treturn $all_plugins;\n\t}", "public function getInstalledPlugins()\n {\n $pluginModel = Plugin::model(); \n $records = $pluginModel->findAll();\n \n $plugins = array();\n\n foreach ($records as $record) {\n // Only add plugins we can find\n if ($this->loadPlugin($record->name) !== false) {\n $plugins[$record->id] = $record;\n }\n }\n return $plugins;\n }", "public function getRequiredPlugins() {}", "public function listPlugin()\n\t{\n\t\t\n\t}", "protected function get_installed_plugins()\n {\n }", "public function getPlugins($enabledOnly = true)\n\t{\n\t\tif ($enabledOnly)\n\t\t{\n\t\t\treturn $this->_enabledPlugins;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (!isset($this->_allPlugins))\n\t\t\t{\n\t\t\t\t$this->_allPlugins = array();\n\n\t\t\t\t// Find all of the plugins in the plugins folder\n\t\t\t\t$pluginsPath = craft()->path->getPluginsPath();\n\t\t\t\t$pluginFolderContents = IOHelper::getFolderContents($pluginsPath, false);\n\n\t\t\t\tif ($pluginFolderContents)\n\t\t\t\t{\n\t\t\t\t\tforeach ($pluginFolderContents as $pluginFolderContent)\n\t\t\t\t\t{\n\t\t\t\t\t\t// Make sure it's actually a folder.\n\t\t\t\t\t\tif (IOHelper::folderExists($pluginFolderContent))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$pluginFolderContent = IOHelper::normalizePathSeparators($pluginFolderContent);\n\t\t\t\t\t\t\t$pluginFolderName = mb_strtolower(IOHelper::getFolderName($pluginFolderContent, false));\n\t\t\t\t\t\t\t$pluginFilePath = IOHelper::getFolderContents($pluginFolderContent, false, \".*Plugin\\.php\");\n\n\t\t\t\t\t\t\tif (is_array($pluginFilePath) && count($pluginFilePath) > 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$pluginFileName = IOHelper::getFileName($pluginFilePath[0], false);\n\n\t\t\t\t\t\t\t\t// Chop off the \"Plugin\" suffix\n\t\t\t\t\t\t\t\t$handle = mb_substr($pluginFileName, 0, mb_strlen($pluginFileName) - 6);\n\t\t\t\t\t\t\t\t$lcHandle = mb_strtolower($handle);\n\n\t\t\t\t\t\t\t\t// Validate that the lowercase plugin class handle is the same as the folder name\n\t\t\t\t\t\t\t\t// and that we haven't already loaded a plugin with the same handle but different casing\n\t\t\t\t\t\t\t\tif ($lcHandle === $pluginFolderName && !isset($this->_allPlugins[$lcHandle]))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$plugin = $this->getPlugin($handle, false);\n\n\t\t\t\t\t\t\t\t\tif ($plugin)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$this->_allPlugins[$lcHandle] = $plugin;\n\t\t\t\t\t\t\t\t\t\t$names[] = $plugin->getName();\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\tif (!empty($names))\n\t\t\t\t\t{\n\t\t\t\t\t\t// Sort plugins by name\n\t\t\t\t\t\t$this->_sortPlugins($names, $this->_allPlugins);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $this->_allPlugins;\n\t\t}\n\t}", "public static function getPlugins()\n\t{\n\t\treturn $plugins = glob(__DIR__.'/../../content/plugins/*/index.php');\n\t}", "protected function getInstalledPlugins()\n\t{\n\t\tif(!class_exists('Zend_Registry'))\n\t\t{\n\t\t\tthrow new Exception(\"Not possible to list installed plugins (case LogStats module)\");\n\t\t}\n\t\tif(!is_null(Zend_Registry::get('config')->PluginsInstalled->PluginsInstalled))\n\t\t{\n\t\t\treturn Zend_Registry::get('config')->PluginsInstalled->PluginsInstalled->toArray();\n\t\t}\n\t\telseif(is_array(Zend_Registry::get('config')->PluginsInstalled))\n\t\t{\n\t\t\treturn Zend_Registry::get('config')->PluginsInstalled;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn Zend_Registry::get('config')->PluginsInstalled->toArray();\n\t\t}\n\t}", "function listPlugins( ) {\n\t\t$list = array();\n\n\t\t$pathname = $GLOBALS['mosConfig_absolute_path'].'/administrator/components/com_joomap/plugins/';\n\t\tif ( is_dir($pathname) ) {\n\t\t\t$dir_handle = opendir($pathname);\n\t\t\tif( $dir_handle ) {\n\t\t\t\twhile (($filename = readdir($dir_handle)) !== false) {\n\t\t\t\t\tif( substr( $filename, -11 ) == '.plugin.php' ) {\n\t\t\t\t\t\t$list[] = $filename;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tclosedir($dir_handle);\n\t\t\t}\n\t\t}\n\t\treturn $list;\n\t}", "public function getPlugins()\n {\n $this->getPlugin('base');\n }", "public function getLoadedPlugins()\n\t{\n\t\treturn $this->loadedPlugins;\n\t}", "public function getActivePlugins() {\n if (is_null($this->_activePlugins)) {\n $activePlugins = $this->_optionsHelper->getOption('active_plugins');\n $this->_activePlugins = $activePlugins ? $activePlugins : array();\n }\n return $this->_activePlugins;\n }", "public function getActivePluginsList()\n\t{\n\t\techo \"Active plugins:\\n\";\n\t\tforeach (get_plugins() as $plugin_name => $plugin_details)\n\t\t{\n\t\t\tif (is_plugin_active($plugin_name) === true)\n\t\t\t{\n\t\t\t\tforeach ($plugin_details as $details_key => $details_value)\n\t\t\t\t{\n\t\t\t\t\tif (in_array($details_key, array('Name', 'Version', 'PluginURI')))\n\t\t\t\t\t{\n\t\t\t\t\t\techo $details_key . \" : \" . $details_value . \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\techo \"Path : \" . $plugin_name . \"\\n\";\n\t\t\t}\n\t\t}\n\t}", "private function get_active_plugins() {\n\t\t$plugins = get_plugins();\n\t\t$active = get_option( 'active_plugins' );\n\t\t$active_list = array();\n\t\tforeach ( $active as $slug ):\n\t\t\tif ( isset( $plugins[ $slug ] ) ) {\n\t\t\t\t$active_list[] = $plugins[ $slug ];\n\t\t\t}\n\t\tendforeach;\n\n\t\treturn $active_list;\n\t}", "function get_plugins_list()\n\t{\n\t\t$dir = @opendir(MYBB_ROOT.\"inc/plugins/\");\n\t\tif($dir)\n\t\t{\n\t\t\twhile($file = readdir($dir))\n\t\t\t{\n\t\t\t\t$ext = get_extension($file);\n\t\t\t\tif($ext == \"php\")\n\t\t\t\t{\n\t\t\t\t\t$plugins_list[] = $file;\n\t\t\t\t}\n\t\t\t}\n\t\t\t@sort($plugins_list);\n\t\t}\n\t\t@closedir($dir);\n\n\t\treturn $plugins_list;\n\t}", "public function obtenerPlugins(){\n if ($this->getSelectedLicense() > empresa::LICENSE_FREE) {\n return plugin::getAll();\n }\n\n return false;\n //return $this->obtenerObjetosRelacionados( TABLE_EMPRESA .\"_plugin\", \"plugin\");\n }", "public function getInstantiablePlugins() {\n\t\treturn array_filter($this->plugins, function($el) {\n\t\t\treturn $el->isInstantiable();\n\t\t});\n\t}", "function wp_get_active_and_valid_plugins()\n {\n }", "public function getPlugins()\n {\n if ($this->plugins instanceof \\Doctrine\\ORM\\PersistentCollection) {\n return $this->plugins->getValues();\n }\n else {\n return $this->plugins;\n }\n }", "public static function get_enabled_components() {\r\n\t\treturn self::$enabled_components;\r\n\t}", "public function getInstalledPlugins()\n {\n $installed = array();\n foreach ($this->environment->getRegistry()->packageInfo(null, null, null) as $channel => $packages)\n {\n foreach ($packages as $package)\n {\n $installed[] = $this->environment->getRegistry()->getPackage(isset($package['package']) ? $package['package'] : $package['name'], $channel);\n }\n }\n\n return $installed;\n }", "public static function getPlugins()\n {\n if (static::$plugins instanceof Closure) {\n return (static::$plugins)();\n }\n\n return static::$plugins;\n }", "function wpcom_vip_get_loaded_plugins() {\n\tglobal $vip_loaded_plugins;\n\n\tif ( ! isset( $vip_loaded_plugins ) )\n\t\t$vip_loaded_plugins = array();\n\n\treturn $vip_loaded_plugins;\n}", "function subsite_manager_get_plugins() {\n\n // grab plugins\n $options = array(\n 'type' => 'object',\n 'subtype' => 'plugin',\n 'limit' => false\n );\n\n $old_ia = elgg_set_ignore_access(true);\n $plugins = elgg_get_entities($options);\n elgg_set_ignore_access($old_ia);\n\n return $plugins;\n }", "function getPlugins() {\n\n\tglobal $di;\n\n\t$pluginsPath = path_content('plugins');\n\t$plugins = [];\n\t$envs = ['Admin', 'Cms'];\n\n\tforeach($envs as $env) {\n\t\t$list = scandir($pluginsPath.'\\\\'.$env);\n\n\t\tif(!empty($list)) {\n\t\t\tunset($list[0]);\n\t\t\tunset($list[1]);\n\n\t\t\tforeach($list as $namePlugin) {\n\n\t\t\t\t$namespace = '\\\\Plugin\\\\' . $env . '\\\\' . $namePlugin . '\\\\Plugin';\n\t\t\t\tif(class_exists($namespace)) {\n\t\t\t\t\t$plugin = new $namespace($di);\n\t\t\t\t\t$plugins[$namePlugin] = $plugin->details();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}\n\n\treturn $plugins;\n}", "public function getPluginArray()\n {\n if( $this->getService()->isRest() )\n return $this->getProperty()->plugins;\n return NULL;\n }", "public function loadPlugins()\n\t{\n\t\tif (!$this->_pluginsLoaded && !$this->_loadingPlugins)\n\t\t{\n\t\t\tif (craft()->isInstalled())\n\t\t\t{\n\t\t\t\t// Prevent this function from getting called twice.\n\t\t\t\t$this->_loadingPlugins = true;\n\n\t\t\t\t// Find all of the enabled plugins\n\t\t\t\t// TODO: swap the SELECT statements after next breakpoint\n\t\t\t\t$rows = craft()->db->createCommand()\n\t\t\t\t\t//->select('id, class, version, schemaVersion, settings, installDate')\n\t\t\t\t\t->select('*')\n\t\t\t\t\t->from('plugins')\n\t\t\t\t\t->where('enabled=1')\n\t\t\t\t\t->queryAll();\n\n\t\t\t\t$names = array();\n\n\t\t\t\tforeach ($rows as $row)\n\t\t\t\t{\n\t\t\t\t\t$plugin = $this->_getPlugin($row['class']);\n\n\t\t\t\t\tif ($plugin)\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->_autoloadPluginClasses($plugin);\n\n\t\t\t\t\t\t// Clean it up a bit\n\t\t\t\t\t\t$row['settings'] = JsonHelper::decode($row['settings']);\n\t\t\t\t\t\t$row['installDate'] = DateTime::createFromString($row['installDate']);\n\n\t\t\t\t\t\t$this->_enabledPluginInfo[$row['class']] = $row;\n\n\t\t\t\t\t\t$lcPluginHandle = mb_strtolower($plugin->getClassHandle());\n\t\t\t\t\t\t$this->_plugins[$lcPluginHandle] = $plugin;\n\t\t\t\t\t\t$this->_enabledPlugins[$lcPluginHandle] = $plugin;\n\t\t\t\t\t\t$names[] = $plugin->getName();\n\n\t\t\t\t\t\t$plugin->setSettings($row['settings']);\n\n\t\t\t\t\t\t$plugin->isInstalled = true;\n\t\t\t\t\t\t$plugin->isEnabled = true;\n\n\t\t\t\t\t\t// If we're not updating, check if the plugin's version number changed, but not its schema version.\n\t\t\t\t\t\tif (!craft()->isInMaintenanceMode() && $this->hasPluginVersionNumberChanged($plugin) && !$this->doesPluginRequireDatabaseUpdate($plugin))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// Update our record of the plugin's version number\n\t\t\t\t\t\t\tcraft()->db->createCommand()->update(\n\t\t\t\t\t\t\t\t'plugins',\n\t\t\t\t\t\t\t\tarray('version' => $plugin->getVersion()),\n\t\t\t\t\t\t\t\t'id = :id',\n\t\t\t\t\t\t\t\tarray(':id' => $row['id'])\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Sort plugins by name\n\t\t\t\t$this->_sortPlugins($names, $this->_enabledPlugins);\n\n\t\t\t\t// Now that all of the components have been imported, initialize all the plugins\n\t\t\t\tforeach ($this->_enabledPlugins as $plugin)\n\t\t\t\t{\n\t\t\t\t\t$plugin->init();\n\t\t\t\t}\n\n\t\t\t\t$this->_loadingPlugins = false;\n\t\t\t}\n\n\t\t\t$this->_pluginsLoaded = true;\n\n\t\t\t// Fire an 'onLoadPlugins' event\n\t\t\t$this->onLoadPlugins(new Event($this));\n\t\t}\n\t}", "public function get_active_plugins_option() {\n\t\treturn (array) get_option( self::OPTION_ACTIVE_PLUGINS, array() );\n\t}", "public function getPlugins()\n {\n /** @var WebApplication|ConsoleApplication $this */\n return $this->get('plugins');\n }", "public function plugins(){\r\n\t\t//first check for permission\r\n\t\tif($this->users->is_logedin() && $this->users->has_permission('administrator_admin_panel')\t){\r\n\t\t\treturn $this->module_plugins();\r\n\t\t}\r\n\t\telse{\r\n\t\t\t//access denied\r\n\t\t\treturn $this->module_no_permission();\r\n\t\t}\r\n\t\t\r\n\t}", "function wpc_installed_plugins(): array\n {\n $plugins = get_plugins();\n\n $plugin_slugs = [];\n\n foreach ( $plugins as $key => $plugin ) {\n $slug = explode( '/', $key );\n\n $plugin_slugs[] = '\"wpackagist-plugin/' . $slug[0] . '\": \"*\",';\n // Add the slug to the array\n }\n\n return $plugin_slugs;\n }", "private function loadPlugins()\n\t{\n\t\t$plugins = plugin_installed_list();\n\t\t$plugins = collect($plugins)->map(function ($item, $key) {\n\t\t\tif (is_object($item)) {\n\t\t\t\t$item = Arr::fromObject($item);\n\t\t\t}\n\t\t\tif (isset($item['item_id']) && !empty($item['item_id'])) {\n\t\t\t\t$item['installed'] = plugin_check_purchase_code($item);\n\t\t\t}\n\t\t\t\n\t\t\treturn $item;\n\t\t})->toArray();\n\t\t\n\t\tConfig::set('plugins', $plugins);\n\t\tConfig::set('plugins.installed', collect($plugins)->whereStrict('installed', true)->toArray());\n\t}", "static public function all_enabled_subplugins() {\n $plugins = self::all_subplugins();\n foreach ($plugins as $index => $contexthandler) {\n if (!self::is_enabled($contexthandler->contextname)) {\n unset($plugins[$index]);\n }\n }\n return $plugins;\n }", "private function get_user_installed_plugins() {\n // All plugins - \"external/installed by user\".\n $allplugins = array();\n\n $pluginman = \\core_plugin_manager::instance();\n $plugininfos = $pluginman->get_plugins();\n\n foreach ($plugininfos as $key => $modtype) {\n foreach ($modtype as $key => $plug) {\n if (!$plug->is_standard() && !$plug->is_subplugin()) {\n // Each plugin data, // can be different structuer in case of wordpress product.\n $allplugins[] = array(\n 'name' => $plug->displayname,\n 'versiondisk' => $plug->versiondisk,\n 'versiondb' => $plug->versiondb,\n 'versiondisk' => $plug->versiondisk,\n 'release' => $plug->release\n );\n }\n }\n }\n\n return $allplugins;\n }", "protected function getPlugins()\n {\n delete_site_transient('update_plugins');\n wp_update_plugins();\n\n $data = get_site_transient('update_plugins');\n $plugins = get_plugins();\n foreach ($plugins as $pluginKey => &$plugin) {\n $plugin['Status'] = is_plugin_active($pluginKey) ? 'active' : 'inactive';\n\n $plugin['Slug'] = null;\n if (isset($data->response[$pluginKey]->slug)) {\n $plugin['Slug'] = $data->response[$pluginKey]->slug;\n } elseif (isset($data->no_update[$pluginKey]->slug)) {\n $plugin['Slug'] = $data->no_update[$pluginKey]->slug;\n }\n }\n return $plugins;\n }", "public function getPluginsList()\n {\n $plugins = [];\n // @codingStandardsIgnoreStart\n $reflection = new \\ReflectionClass($this->pluginList);\n // @codingStandardsIgnoreEnd\n\n $processed = $reflection->getProperty('_processed');\n $processed->setAccessible(true);\n $processed = $processed->getValue($this->pluginList);\n\n $inherited = $reflection->getProperty('_inherited');\n $inherited->setAccessible(true);\n $inherited = $inherited->getValue($this->pluginList);\n\n $types = [\n DefinitionInterface::LISTENER_BEFORE => 'before',\n DefinitionInterface::LISTENER_AROUND => 'around',\n DefinitionInterface::LISTENER_AFTER => 'after'\n ];\n\n /**\n * @see: Magento/Framework/Interception/PluginList/PluginList::_inheritPlugins($type)\n */\n foreach ($processed as $currentKey => $processDef) {\n if (preg_match('/^(.*)_(.*)___self$/', $currentKey, $matches) ||\n preg_match('/^(.*?)_(.*?)_(.*)$/', $currentKey, $matches)\n ) {\n $type = $matches[1];\n $method = $matches[2];\n\n if (!empty($inherited[$type])) {\n foreach ($processDef as $keyType => $pluginsNames) {\n if (!is_array($pluginsNames)) {\n $pluginsNames = [$pluginsNames];\n }\n\n $classMethod = $type . '::' . $method;\n // @codingStandardsIgnoreStart\n $key = md5($classMethod);\n // @codingStandardsIgnoreEnd\n\n if (!isset($plugins[$key])) {\n $fileName = $this->config->getPhpClassFile($type);\n\n $plugins[$key] = [\n 'class_method' => $classMethod,\n 'file' => $fileName,\n 'phpstorm_url' => $this->config->getPhpStormUrl($fileName),\n 'plugins' => [],\n 'phpstorm_links' => [],\n ];\n\n if ($this->config->isPhpStormEnabled()) {\n $plugins[$key]['phpstorm_links'] = [\n [\n 'key' => 'Original Class',\n 'file' => $fileName,\n 'link' => $this->config->getPhpStormUrl($fileName),\n ],\n ];\n }\n }\n\n foreach ($pluginsNames as $pluginName) {\n if (!empty($inherited[$type][$pluginName])) {\n $sortOrder = (int) $inherited[$type][$pluginName]['sortOrder'];\n\n $fileName = $this->config->getPhpClassFile(\n $inherited[$type][$pluginName]['instance']\n );\n\n $plugins[$key]['plugins'][$pluginName] = [\n 'order' => $sortOrder,\n 'plugin' => $inherited[$type][$pluginName]['instance'],\n 'method' => $types[$keyType] . ucfirst($method),\n 'file' => $fileName,\n ];\n if ($this->config->isPhpStormEnabled()) {\n $plugins[$key]['phpstorm_links'][] = [\n 'key' => 'Plugin \"' . $pluginName . '\"',\n 'file' => $fileName,\n 'link' => $this->config->getPhpStormUrl($fileName),\n ];\n }\n }\n }\n }\n }\n }\n }\n\n return $plugins;\n }", "private function plugins(){\n $all_plugins = explode(',', json_decode(file_get_contents($this->pluginsJson))->all->names);\n debug($all_plugins);\n die;\n }", "protected function get_installed_plugins() {\n\t\t$plugins = array();\n\n\t\t$plugin_info = get_site_transient( 'update_plugins' );\n\t\tif ( isset( $plugin_info->no_update ) ) {\n\t\t\tforeach ( $plugin_info->no_update as $plugin ) {\n\t\t\t\t$plugin->upgrade = false;\n\t\t\t\t$plugins[ $plugin->slug ] = $plugin;\n\t\t\t}\n\t\t}\n\n\t\tif ( isset( $plugin_info->response ) ) {\n\t\t\tforeach ( $plugin_info->response as $plugin ) {\n\t\t\t\t$plugin->upgrade = true;\n\t\t\t\t$plugins[ $plugin->slug ] = $plugin;\n\t\t\t}\n\t\t}\n\n\t\treturn $plugins;\n\t}", "private function getUserInstalledPlugins()\n {\n $query = $this->container->get('dbal_connection')->createQueryBuilder();\n $query->select(['plugin.name', 'plugin.label', 'plugin.version'])\n ->from('s_core_plugins', 'plugin')\n ->where('plugin.name NOT IN (:names)')\n ->andWhere('plugin.source != :source')\n ->setParameter(':source', 'Default')\n ->setParameter(':names', ['PluginManager', 'StoreApi'], Connection::PARAM_STR_ARRAY);\n\n /** @var \\PDOStatement $statement */\n $statement = $query->execute();\n\n return $statement->fetchAll(\\PDO::FETCH_ASSOC);\n }", "public static function getPlugins()\n {\n\n $plugins = array();\n\n $pluginsdir = opendir('modules/Scribite/plugins/TinyMCE/vendor/tiny_mce/plugins');\n while (false !== ($f = readdir($pluginsdir))) {\n if ($f != '.' && $f != '..' && $f != 'CVS' && $f != '_template' && !preg_match('/[.]/', $f)) {\n $plugins[] = array(\n 'text' => $f,\n 'value' => $f\n );\n }\n }\n closedir($pluginsdir);\n asort($plugins);\n\n return $plugins;\n }", "public function get_plugins()\n {\n $pluginDirs = App::objects('plugin', null, false);\n $plugins = array();\n\n foreach ($pluginDirs as $pluginDir){\n\n $pluginClasses = App::objects('controller', APP.'Plugin'. DS .$pluginDir. DS .'Controller', false);\n\n App::import('Controller', $pluginDir.'.'.$pluginDir.'App');\n $parentActions = get_class_methods($pluginDir.'AppController');\n\n foreach($pluginClasses as $plugin) {\n\n if (strpos($plugin,'App') === false) {\n\n $plugin = str_ireplace('Controller', '', $plugin);\n App::import('Controller', $pluginDir.'.'.$plugin);\n $actions = get_class_methods($plugin.'Controller');\n\n foreach($actions as $k => $v) {\n if ($v{0} == '_') {\n unset($actions[$k]);\n }\n }\n\n $plugins[$pluginDir][$plugin] = array_diff($actions, $parentActions);\n }\n }\n }\n\n return $plugins;\n }", "protected function get_detected_plugins () {\n //** Check if get_plugins() function exists */\n if ( ! function_exists( 'get_plugins' ) ) {\n require_once ABSPATH . 'wp-admin/includes/plugin.php';\n }\n $response = array();\n $products = get_plugins();\n if ( is_array( $products ) && ( 0 < count( $products ) ) ) {\n $reference_list = $this->get_product_reference_list();\n //echo \"<pre>\"; print_r( $reference_list ); echo \"</pre>\"; die();\n $activated_products = $this->get_activated_products();\n if ( is_array( $reference_list ) && ( 0 < count( $reference_list ) ) ) {\n foreach ( $products as $k => $v ) {\n if ( in_array( $k, array_keys( $reference_list ) ) ) {\n $status = 'inactive';\n if ( in_array( $k, array_keys( $activated_products ) ) ) { \n $status = 'active'; \n }\n $response[$k] = array( \n 'product_name' => $v['Name'], \n 'product_version' => $v['Version'], \n 'instance_key' => $reference_list[$k]['instance_key'], \n 'product_id' => $reference_list[$k]['product_id'],\n 'product_status' => $status, \n 'product_file_path' => $k,\n 'errors_callback' => isset( $reference_list[$k]['errors_callback'] ) ? $reference_list[$k]['errors_callback'] : false,\n );\n }\n }\n }\n }\n return $response;\n }", "public function getEnabledModules()\n {\n return array_filter($this->definitions, [$this, 'filterEnabled']);\n }", "public static function get_installed_addons_list(){\n $installed_addons = [];\n $installed_addons = apply_filters('latepoint_installed_addons', $installed_addons);\n return $installed_addons;\n }", "function wp_get_mu_plugins()\n {\n }", "public function get_enabled_tools() {\n\n\t\t// If already defined, get out of here.\n\t\tif ( isset( $this->enabled_tools ) ) {\n\t\t\treturn $this->enabled_tools;\n\t\t}\n\n\t\t// Get our settings.\n\t\t$settings = $this->get_settings();\n\n\t\t// Get enabled tools.\n\t\tif ( isset( $settings['enable_tools'] ) && ! empty( $settings['enable_tools'] ) ) {\n\n\t\t\t// Make sure its an array.\n\t\t\tif ( ! is_array( $settings['enable_tools'] ) ) {\n\t\t\t\t$settings['enable_tools'] = explode( ', ', $settings['enable_tools'] );\n\t\t\t}\n\n\t\t\t// Return the enabled list.\n\t\t\treturn $this->enabled_tools = $settings['enable_tools'];\n\n\t\t}\n\n\t\t// We have no enabled tools.\n\t\treturn $this->enabled_tools = false;\n\t}", "protected function get_installed_plugin_slugs()\n {\n }", "function getAllUsedServices()\n {\n $ret = array();\n foreach ($this->plugins as $name => $obj) {\n if ($obj->is_account) {\n if (isset($obj->DisplayName)) {\n $ret[$name] = $obj->DisplayName;\n } else {\n $ret[$name] = $name;\n }\n }\n }\n return $ret;\n }", "public function get_plugins_data() {\n return $this->plugins_data;\n }", "public static function parseInstalledPlugins() {\r\n\t\t$obj = new QPluginConfigParser(QPluginInstaller::getMasterConfigFilePath());\t\t\r\n\t\treturn $obj->parseConfig();\r\n\t}", "public function getEnabledAdapters()\n {\n $where = $this->getAdapter()->quoteInto('enabled = ?', 1);\n return $this->fetchAll($where, 'displayOrder');\n }", "private function get_wpforms_plugins() {\n\n\t\tif ( ! empty( $this->plugins ) ) {\n\t\t\treturn $this->plugins;\n\t\t}\n\n\t\t$plugins = get_option( 'active_plugins', [] );\n\n\t\tforeach ( $plugins as $key => $plugin_file ) {\n\t\t\t$slug = dirname( $plugin_file );\n\n\t\t\tif ( ! $this->is_wpforms_plugin( $slug ) ) {\n\t\t\t\tunset( $plugins[ $key ] );\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$plugins[ $key ] = $slug;\n\t\t}\n\n\t\t$this->plugins = $plugins;\n\n\t\treturn $this->plugins;\n\t}", "protected function get_installed_plugin_slugs() {\n\t\treturn array_keys( $this->get_installed_plugins() );\n\t}", "public static function getEnabled()\n {\n return array_filter(\n $providers = array_keys(self::getProviders(), true, true),\n function ($provider) {\n // if ('google' === $provider && ends_with(config('app.url'), '.local')) {\n // return false;\n // }\n\n return self::isConfigured($provider);\n }\n );\n }", "private function get_useful_plugins() {\n\t\t$available = get_transient( $this->plugins_cache_key );\n\t\t$hash = get_transient( $this->plugins_cache_hash_key );\n\t\t$current_hash = substr( md5( wp_json_encode( $this->useful_plugins ) ), 0, 5 );\n\n\n\t\tif ( $available !== false && $hash === $current_hash ) {\n\t\t\t$available = json_decode( $available, true );\n\n\t\t\tforeach ( $available as $slug => $args ) {\n\t\t\t\t$available[ $slug ]['cta'] = $this->plugin_helper->get_plugin_state( $slug );\n\t\t\t\t$available[ $slug ]['path'] = $this->plugin_helper->get_plugin_path( $slug );\n\t\t\t\t$available[ $slug ]['activate'] = $this->plugin_helper->get_plugin_action_link( $slug );\n\t\t\t\t$available[ $slug ]['deactivate'] = $this->plugin_helper->get_plugin_action_link( $slug, 'deactivate' );\n\t\t\t}\n\n\t\t\treturn $available;\n\t\t}\n\n\t\t$data = [];\n\t\tforeach ( $this->useful_plugins as $slug ) {\n\t\t\t$current_plugin = $this->plugin_helper->get_plugin_details( $slug );\n\t\t\tif ( $current_plugin instanceof \\WP_Error ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$data[ $slug ] = [\n\t\t\t\t'banner' => $current_plugin->banners['low'],\n\t\t\t\t'name' => html_entity_decode( $current_plugin->name ),\n\t\t\t\t'description' => html_entity_decode( $current_plugin->short_description ),\n\t\t\t\t'version' => $current_plugin->version,\n\t\t\t\t'author' => html_entity_decode( wp_strip_all_tags( $current_plugin->author ) ),\n\t\t\t\t'cta' => $this->plugin_helper->get_plugin_state( $slug ),\n\t\t\t\t'path' => $this->plugin_helper->get_plugin_path( $slug ),\n\t\t\t\t'activate' => $this->plugin_helper->get_plugin_action_link( $slug ),\n\t\t\t\t'deactivate' => $this->plugin_helper->get_plugin_action_link( $slug, 'deactivate' ),\n\t\t\t];\n\t\t}\n\n\t\tset_transient( $this->plugins_cache_hash_key, $current_hash );\n\t\tset_transient( $this->plugins_cache_key, wp_json_encode( $data ) );\n\n\t\treturn $data;\n\t}", "public function getEnabled()\n {\n return array_filter($this->storage, function($val)\n {\n return $val['status'] === ProviderInterface::STATUS_INSTALLED;\n });\n }", "private static function search()\r\n\t{\r\n\t\t$dir = 'plugins';\r\n\t\t// search for plugin modules in the plugins directory\t\t \r\n\t\t$modules = model_Utils_ModuleHelper::searchDirectoryForModules($dir);\r\n\t\tforeach ($modules as $module)\r\n\t\t{\r\n\t\t\t// save found module paths to the db so we can auto-load them in the future\r\n\t\t\tmodel_Utils_ModuleHelper::saveModule($module);\r\n\t\t\t// add matching paths to Kohana's module paths\t\t\r\n\t\t\tmodel_Utils_ModuleHelper::addModulePath($module);\r\n\t\t}\r\n\t\treturn Model_Admin_EventsAdmin::searchForListeners($dir,'Interface_iPCPPlugin');\t\r\n\t}", "private function pageGetPlugins() {\n\t\techo \"<reply action=\\\"ok\\\">\\n\";\r\n\t\t\r\n\t\t//To get the status of all plugins, they must all be started first.\n\t\t//As a safety measure, check that it's not running at boot.\n\t\t$this->framework->startAllPlugins ( false );\r\n\t\t\r\n\t\t//Print each plugin\n\t\tforeach ( $this->data as $plugin ) {\r\n\t\t\t$plugin_object = $this->framework->getPlugin ( ( string ) $plugin ['name'] );\r\n\t\t\t$status = \"\";\r\n\t\t\tif (isset ( $plugin_object )) {\r\n\t\t\t\t$status = $plugin_object->getStatus ();\r\n\t\t\t} else if (( string ) $plugin ['enabled'] == \"true\") {\r\n\t\t\t\tthrow new Exception('The module '.$plugin['name'].' could not be retrieved');\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\techo \"<plugin status=\\\"{$status}\\\" \";\r\n\t\t\t//also print all other attributes the plugin has.\n\t\t\tforeach ( $plugin->attributes () as $name => $value ) {\r\n\t\t\t\techo \" $name = \\\"$value\\\"\";\r\n\t\t\t}\r\n\t\t\techo \"/>\\n\"; //Closing tag of plugin\n\t\t}\r\n\t\techo \"</reply>\";\r\n\t}", "public function getPluginInstances()\n {\n return Collection::make($this->pluginDirectories())->map(function ($path) {\n $name = $this->files->basename($path);\n $class = $this->qualifyNamespace($name);\n \n if(! class_exists($class)) {\n return null;\n }\n\n $plugin = new $class(app());\n\n if($plugin instanceof Plugin) {\n return $plugin;\n } \n\n return null;\n })->filter();\n }", "function get_mu_plugins()\n {\n }", "public function get_all()\n {\n $plugins = $this->get_plugins();\n\n $pluginControllers = array();\n\n foreach($plugins as $plugin){\n foreach($plugin as $controller => $actions){\n $pluginControllers[$controller] = $plugin[$controller];\n }\n }\n\n return array_merge($this->get(), $pluginControllers);\n }", "public function getPlugins($extensionName = false)\n {\n if (null === $this->plugins) {\n $this->plugins = array();\n foreach ($this->getExtensions() as $extension) {\n $this->plugins = array_merge($this->plugins, $extension->getPlugins());\n }\n }\n\n // filter plugins that belong to $extension\n if ($extensionName) {\n\n $plugins = array();\n foreach (array_keys($this->plugins) as $k) {\n if ($extensionName == $this->plugins[$k]->getExtension()->getName()) {\n $plugins[] = $this->plugins[$k];\n }\n }\n\n return $plugins;\n }\n\n return $this->plugins;\n }", "protected function getExtensions() {\n $listing = new ExtensionDiscovery($this->root);\n // Ensure that tests in all profiles are discovered.\n $listing->setProfileDirectories([]);\n $extensions = $listing->scan('module', TRUE);\n $extensions += $listing->scan('profile', TRUE);\n $extensions += $listing->scan('theme', TRUE);\n return $extensions;\n }", "function wp_get_active_network_plugins()\n {\n }", "public static function getAllActivePluginsWithoutPluginPath()\n\t\t{\n\n\t\t\t$activePlugins = wp_get_active_and_valid_plugins();\n\n\t\t\tif( !$activePlugins || !is_array( $activePlugins ) || empty( $activePlugins ) ){\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$output = array();\n\n\t\t\t// Each active plugin file has the plugin dir prepended, we need to strip that\n\t\t\t$pathToRemove = WP_PLUGIN_DIR . '/';\n\n\t\t\tforeach( $activePlugins as $key => $path )\n\t\t\t{\n\n\t\t\t\t// Remove the path\n\t\t\t\t$withoutPath = str_replace( $pathToRemove, '', $path );\n\n\t\t\t\t$output[] = $withoutPath;\n\n\t\t\t}\n\n\t\t\treturn $output;\n\n\t\t}", "public function get_plugins( $refresh = false ) {\n\t\t$args = array(\n\t\t\t'tab' => esc_attr( $this->browser_args['default_tab'] ),\n\t\t\t'page' => 1,\n\t\t);\n\t\t$args = array_merge( $args, $this->browser_args );\n\n\t\t$list = new BC_Framework_Plugin_Browser_List( $this->page_slug, null, $args );\n\n\t\treturn $list->items;\n\t}", "public function getPluginNames() : array\n {\n $names = array();\n \n if( count( $this->plugins ) > 0 )\n {\n foreach( $this->plugins as $plugin )\n {\n $names[] = $plugin->getName();\n }\n }\n return $names;\n }", "private function get_missing_plugins() {\n\n\t\t$missing_plugins = array();\n\t\t\n\t\tforeach ( $this->get_prerequisite_plugins() as $plugin_name => $plugin_directory_and_file ) {\n\t\t\tif ( ! is_plugin_active( $plugin_directory_and_file ) ) {\n\t\t\t\t$missing_plugins [] = \"$plugin_name ($plugin_directory_and_file)\";\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $missing_plugins;\n\t}", "protected function getWorkflowPlugins(): array\n {\n return $this->classDiscovery\n ->setRelativeNamespace('ProjectX\\Plugin\\Workflow')\n ->setSearchPattern('/.*Workflow\\.php$/')\n ->getClasses();\n }", "function load_plugins() {\n\tglobal $root;\n\t$plugins = get_option('active_plugins');\n\n\tif (! $plugins) {\n\t\t$plugins = array();\n\t}\n\tforeach ($plugins as $key => $path) {\n\t\tif (file_exists($root.$path)) {\n\t\t\trequire $root.$path;\n\t\t}\n\t}\n}", "public function getPluginFunctions()\n {\n if (KILVIN_REQUEST === 'INSTALL') {\n return [];\n }\n\n $functions = [];\n $plugins = Plugins::installedPlugins();\n $registered = Plugins::twig()['function'];\n\n foreach($plugins as $plugin_name => $plugin_details) {\n\n if (!isset($registered[$plugin_name])) {\n continue;\n }\n\n foreach ($registered[$plugin_name] as $class) {\n if ($details = $this->getFunctionDetails($class)) {\n $functions = array_merge($functions, $details);\n }\n }\n }\n\n return array_filter($functions);\n }", "abstract protected function get_plugin_components();", "public function get_shared_plugins() {\n\t\treturn get_plugins( self::SHARED_PLUGINS_RELATIVE_PATH );\n\t}", "public function get_used_plugin_list($type='') {\n global $DB;\n\n $whereparams = array();\n $sql = 'SELECT plugin\n FROM {surveypro_item}\n WHERE surveyproid = :surveyproid';\n $whereparams['surveyproid'] = $this->surveypro->id;\n if (!empty($type)) {\n $sql .= ' AND type = :type';\n $whereparams['type'] = $type;\n }\n $sql .= ' GROUP BY plugin';\n\n $pluginlist = $DB->get_fieldset_sql($sql, $whereparams);\n\n return $pluginlist;\n }", "function mbifthen_active_nw_plugins() {\r\n\tif ( !is_multisite() )\r\n\t\treturn false;\r\n\t$mbifthen_activePlugins = ( get_site_option('active_sitewide_plugins' ) ) ? array_keys( get_site_option('active_sitewide_plugins' ) ) : array();\r\n\treturn $mbifthen_activePlugins;\r\n}", "function loadPlugins() {\n // @todo make this more efficient\n $plugin_dirs = $this->listDir(MWG_BASE . '/plugins/');\n foreach($plugin_dirs as $ptypes) {\n $this->loadPluginGroup($ptypes);\n } \n }", "public function getPluginManager();", "protected function getDefaultPlugins(): array\n {\n $plugins = [\n new BaseUriPlugin($this->getBaseUri()->withPath(self::API_VERSION), ['replace' => true]),\n new HeaderDefaultsPlugin($this->getDefaultHeaders()),\n new HistoryPlugin($this->journal),\n new ResponseHandlerPlugin(),\n ];\n if ($this->auth) {\n $plugins[] = new AuthenticationPlugin($this->auth);\n }\n\n return $plugins;\n }", "function getInstalledPackagePlugins( $pForce = FALSE ){\n\t\tif( empty( $this->mPackagePluginsInstalled ) || $pForce ){\n\t\t\t$query = \"SELECT pp.`guid` as guid_key, pp.`guid`, pp.`package_guid`, pp.`version`, pp.`active`, pp.`required`, pp.`path_type`, pp.`handler_file`, pp.`name`, pp.`description` \n\t\t\t\t\t\tFROM `\".BIT_DB_PREFIX.\"package_plugins` pp\"; \n\t\t\tif( $ret = $this->mDb->getAssoc( $query ) ){\n\t\t\t\t$this->mPackagePluginsInstalled = $ret;\n\t\t\t}\n\t\t}\n\t\treturn $this->mPackagePluginsInstalled;\n\t}", "function vmoodle_config_get_plugins_params() {\n\tglobal $CFG, $DB;\n\t\n\t$paramslist = $DB->get_records_sql_menu(\"SELECT DISTINCT id,CONCAT(plugin,'/',name) FROM {config_plugins} \");\n\t$paramlist = array_combine(array_values($paramslist), array_values($paramslist));\n\treturn $paramlist;\n}" ]
[ "0.82479465", "0.80223155", "0.7908184", "0.7756952", "0.7712163", "0.7712163", "0.77100235", "0.7684768", "0.76756185", "0.7659897", "0.7606471", "0.76046383", "0.75356615", "0.7509681", "0.7472184", "0.74697685", "0.74507105", "0.74476135", "0.74257755", "0.74103165", "0.740294", "0.73426014", "0.73066145", "0.7245631", "0.7224823", "0.72225887", "0.7220664", "0.72139615", "0.72137386", "0.7187318", "0.71789974", "0.71743375", "0.71703255", "0.7166415", "0.7122568", "0.7106855", "0.7081946", "0.7052232", "0.70309037", "0.7010687", "0.6994648", "0.6991044", "0.69627213", "0.6941909", "0.69339514", "0.6910715", "0.69056004", "0.69014907", "0.68928623", "0.6869306", "0.68223166", "0.6796073", "0.67603046", "0.67536116", "0.6698132", "0.6680283", "0.66485226", "0.6642189", "0.6608184", "0.65487915", "0.65447176", "0.6524979", "0.64874864", "0.6475318", "0.6458448", "0.64345336", "0.6422926", "0.6393427", "0.63594216", "0.6359408", "0.63480586", "0.6343193", "0.6336906", "0.63329035", "0.6329896", "0.6318311", "0.63093686", "0.6292815", "0.6291547", "0.62845737", "0.62742525", "0.62699443", "0.62596613", "0.6246167", "0.6243777", "0.6236948", "0.62365276", "0.62341535", "0.62228173", "0.6220925", "0.62202454", "0.62132823", "0.6212631", "0.6212168", "0.62095106", "0.62005335", "0.6199787", "0.6181155", "0.6173019", "0.6153801" ]
0.87014973
0
Gets the specified plugin
function getPlugin($name);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPlugin();", "public function getPlugin();", "public function getPlugin(): Plugin {\n\t\treturn $this->loader;\n\t}", "public function plugin(): Plugin\n {\n return $this->plugin;\n }", "function &_getPlugin() {\n\t\t$plugin =& PluginRegistry::getPlugin('generic', OAS_PLUGIN_NAME);\n\t\treturn $plugin;\n\t}", "public function get_plugin() {\n\n\t\trequire_once( ABSPATH . \"wp-admin\" . '/includes/plugin-install.php' );\n\n\t\t$request = array(\n 'slug' => $_POST['slug'],\n\t\t\t'fields' => $this->get_api_fields()\n );\n\n\t\t// Get datas from API\n $result = plugins_api( 'plugin_information', $request );\n\n\t\t// Prepare datas for template\n\t\t$plugin = $this->prepare_data( $result );\n\n\t\techo json_encode( $plugin );\n\n\t\tdie();\n\t}", "protected function getPlugin(): PluginInterface\n {\n return $this->plugin;\n }", "public function get($name)\n {\n return $this->pluginManager->get($name);\n }", "function getPlugin($arg) {\n\n $predicate = $this->filter;\n\n foreach ($this->plugins as $plugin) {\n\n if ($plugin->$predicate($arg)) {\n return $plugin;\n }\n\n }\n\n return null;\n\n }", "function post_layouts_fll_get_plugin_component( $name, $args ) {\r\n return require( COMPONENTS . \"/$name.php\" );\r\n}", "function &_getPlugin() {\n\t\t$plugin =& PluginRegistry::getPlugin('generic', USAGESTATS_PLUGIN_NAME);\n\t\treturn $plugin;\n\t}", "public function getContainedPluginInstance();", "public function getPluginType();", "function _get_plugin_from_callback($callback)\n {\n }", "function getPlugins();", "public function getModelPlugin() {\r\n return $this->_model_plugin;\r\n }", "public function getPluginId();", "public function getPluginUrl (): string {\n return $this->pluginUrl;\n }", "public function pluginInfo($info) {\n if (isset($this->plugin[$info])) return $this->plugin[$info];\n }", "function get_plugin_instance() {\n\tglobal $prodigy_commerce_plugin;\n\treturn $prodigy_commerce_plugin;\n}", "public function getPluginName() {}", "function plugin(): Plugin {\n\tstatic $instance = null;\n\n\t$autoload_file = __DIR__ . '/vendor/autoload.php';\n\tif ( file_exists( $autoload_file ) ) {\n\t\trequire $autoload_file;\n\t}\n\n\tif ( is_null( $instance ) ) {\n\t\t$base_path = __FILE__;\n\t\t$base_dir = dirname( $base_path );\n\t\t$base_url = plugins_url( '', $base_path );\n\t\t$services_factory = require_once \"$base_dir/services.php\";\n\t\t$services = $services_factory( $base_dir, $base_url );\n\t\t$container = new DI_Container( $services );\n\n\t\t$instance = new Plugin( $container );\n\t}\n\n\treturn $instance;\n}", "function getPluginID () {return $this->getFieldValue ('plugin_id');}", "function getPluginPath() {\n\t\treturn $this->pluginPath;\n\t}", "public function plugin ()\n {\n return new Plugin($this->url, $this->port);\n }", "function dynamo_support_get_plugin_version() {\n if ( ! function_exists( 'get_plugins' ) )\n require_once( ABSPATH . 'wp-admin/includes/plugin.php' );\n $plugin_folder = get_plugins( '/' . plugin_basename( dirname( __FILE__ ) ) );\n $plugin_file = basename( ( __FILE__ ) );\n return $plugin_folder[$plugin_file]['Version'];\n }", "public function getPlugin( $name ) {\n if ( is_null($this->_plugins) ) $this->getPlugins();\n if (isset($this->_plugins[ $name ])) {\n return $this->_plugins[ $name ];\n } else {\n throw new \\OutOfBoundsException(\n 'Undefined plugin : ' . $name\n );\n }\n }", "static final function getPlugin($pluginname)\n {\n self::initPlugins();\n \n $pluginname = mb_strtolower($pluginname);\n if(isset(self::$plugins[$pluginname])){\n return self::$plugins[$pluginname];\n }\n else{\n throw new NoExistPluginException($pluginname);\n }\n }", "public static function plugin_instance()\r\n\t{\r\n\t\tif ( ! static::$instance)\r\n\t\t{\r\n\t\t\tstatic::$instance = static::forge(array(PLUGINPATH));\r\n\t\t}\r\n\t\treturn static::$instance;\r\n\t}", "public function getMetric()\n {\n $metric_record = Metric::getByID($this->metrics_id);\n \n if (!$metric_plugin = $metric_record->getMetricObject()) {\n return false;\n }\n \n return $metric_plugin;\n }", "function get_plugin_ini($pluginDirName, $iniKeyName)\n{\n $pluginIniReader = Zend_Registry::get('plugin_ini_reader');\n if ($pluginIniReader->hasPluginIniFile($pluginDirName)) {\n return $pluginIniReader->getPluginIniValue($pluginDirName, $iniKeyName);\n }\n}", "function get_plugin_by($key = '', $value = \\null)\n {\n }", "protected function getPluginObject($code = null)\n {\n if ($code === null) {\n $code = $this->guessPluginCodeFromTest();\n }\n\n if (isset($this->pluginTestCaseLoadedPlugins[$code])) {\n return $this->pluginTestCaseLoadedPlugins[$code];\n }\n }", "public function getPluginId() {\n return $this->pluginId;\n }", "public function getPluginId() {\n return $this->pluginId;\n }", "public function plugin($name, array $options = null)\n {\n $plugins = $this->getPluginManager();\n return $plugins->get($name, $options);\n }", "public function getPluginManager();", "function getAndLoadPlugin($type,$name) {\n\t\t$funcName = 'smarty_'.strtolower($type).'_'.$name;\n\t\tif(!function_exists($funcName)) {\n\t\t\t$plugin = $this->_get_plugin_filepath($type, $name);\n\t\t\tif(!@is_readable($plugin)) {\n\t\t\t\t$this->trigger_error('Smarty plugin \"'.$name.'\" unavailable');\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tinclude_once($plugin);\n\t\t}\n\t\treturn $funcName;\n\t}", "public function getActiveSource() {\n $config = \\Drupal::config('vacancy_importer.settings');\n $source = $config->get('source');\n\n try {\n $test = $this->getDefinition($source);\n } catch (PluginNotFoundException $e) {\n $message = SafeMarkup::format(\"The configured vacancy source plugin '@source' was not found.\", ['@source' => $source]);\n throw new PluginNotFoundException($source, $message);\n }\n\n return $source;\n }", "private function getPluginConfig()\n {\n // get subshop specific config\n $shop = $this->getShop();\n $pluginConfig = Shopware()->Container()->get('shopware.plugin.cached_config_reader')->getByPluginName('RocketBoard', $shop);\n return $pluginConfig;\n }", "function get_plugin_broker()\n{\n try {\n return Zend_Registry::get('pluginbroker');\n } catch (Zend_Exception $e) {\n return null;\n }\n}", "public function getPluginPath(): string\n {\n return $this->pluginPath;\n }", "public function get_plugin_details($plugin_name){\n\t \t$this->load->model('download_model');\t\n\n\t\t\t$query = $this\n\t\t\t\t\t\t->download_model\n\t\t\t\t\t\t->get_site_credentials();\n\n\t\t\t$host = $query[0]->admin_host;\n\t\t\t$user = $query[0]->admin_user;\n\t\t\t$pass = $query[0]->admin_password;\t\t\t\t\n\n\t\t\t$config['hostname'] = \"localhost\";\n\t\t $config['username'] = $user;\n\t\t $config['password'] = $pass;\n\t\t $config['database'] = \"wordpress_default_plugins\";\n\t\t $config['dbdriver'] = \"mysql\";\n\t\t $config['dbprefix'] = \"\";\n\t\t $config['pconnect'] = FALSE;\n\t\t $config['db_debug'] = TRUE;\n\t\t $config['cache_on'] = FALSE;\n\t\t $config['cachedir'] = \"\";\n\t\t $config['char_set'] = \"utf8\";\n\t\t $config['dbcollat'] = \"utf8_general_ci\";\n\n\t\t \t$db2 = $this->load->database($config,TRUE);\n\n\t\t\t$query = $db2->get_where('default_plugins', array('plugin_name' => $plugin_name));\n\n\t\t\t$query = $query->result();\t\n\n\t\t\treturn $query; \n\t\t}", "abstract function getPluginKey();", "public function getPluginName() {\n return $this->plugin_name;\n }", "public function getPluginName() {\n return $this->plugin_name;\n }", "public static function get_plugin_info() {\n\t\t$cache = get_transient( self::TRANSIENT );\n\t\tif ( $cache ) {\n\t\t\treturn $cache;\n\t\t}\n\n\t\t$request = wp_remote_get( self::API_URL, [ 'timeout' => 20 ] );\n\t\tif ( ! is_wp_error( $request ) && is_array( $request ) ) {\n\t\t\t$response = json_decode( $request['body'], true );\n\t\t\tset_transient( self::TRANSIENT, $response, ( 12 * HOUR_IN_SECONDS ) );\n\t\t\treturn $response;\n\t\t}\n\n\t\treturn false;\n\t}", "private function _getPlugin($handle)\n\t{\n\t\t// Get the full class name\n\t\t$class = $handle.'Plugin';\n\t\t$nsClass = __NAMESPACE__.'\\\\'.$class;\n\n\t\t// Skip the autoloader\n\t\tif (!class_exists($nsClass, false))\n\t\t{\n\t\t\t$path = craft()->path->getPluginsPath().mb_strtolower($handle).'/'.$class.'.php';\n\n\t\t\tif (($path = IOHelper::fileExists($path, false)) !== false)\n\t\t\t{\n\t\t\t\trequire_once $path;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\tif (!class_exists($nsClass, false))\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\t$plugin = new $nsClass;\n\n\t\t// Make sure the plugin implements the IPlugin interface\n\t\tif (!$plugin instanceof IPlugin)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\treturn $plugin;\n\t}", "function ARTEMIS_SWP_JPT_get_plugin_option($option)\r\n{\r\n\t$options = get_option('AC_plugin_options');\r\n\t\r\n\tif (isset($options[$option])) {\r\n\t\treturn $options[ $option ];\r\n\t}\r\n\t\r\n\treturn \"\";\r\n}", "protected abstract function getPluginVersion();", "public function get_plugin_name() {\n return $this->plugin_name;\n }", "public function get_plugin_name() {\n\t\treturn $this->plugin_name;\n\t}", "public function get_plugin_name() {\n\t\treturn $this->plugin_name;\n\t}", "public function get_plugin_name() {\n\t\treturn $this->plugin_name;\n\t}", "public function get_plugin_name() {\n\t\treturn $this->plugin_name;\n\t}", "public function get_plugin_name() {\n\t\treturn $this->plugin_name;\n\t}", "public function get_plugin_name() {\n\t\treturn $this->plugin_name;\n\t}", "public function get_plugin_name() {\n\t\treturn $this->plugin_name;\n\t}", "public function get_plugin_name() {\n\t\treturn $this->plugin_name;\n\t}", "public function get_plugin_name() {\n\t\treturn $this->plugin_name;\n\t}", "public function get_plugin_name()\n {\n return $this->plugin_name;\n }", "public function getPluginStd()\n {\n if( $this->getService()->isSoap() )\n return $this->getProperty()->plugins;\n return NULL;\n }", "private function pluginRegistered($plugin)\n\t{\n\t\treturn $this->plugins[$plugin][\"flag\"];\n\t}", "public static function getPluginUrl()\n {\n return isset(self::$pluginUrl) ? self::$pluginUrl : plugin_dir_url(dirname(__FILE__));\n }", "function _get_plugin_url() {\n static $plugin_url;\n\n if (empty($plugin_url)) {\n $plugin_url = plugins_url(null, __FILE__);\n }\n\n return $plugin_url;\n}", "protected function plugin_base() {\n\t\treturn $this->plugin( 'base' );\n\t}", "public function plugin_file() {\n if ( $this->plugin_file ) return $this->plugin_file;\n\n return $this->plugin_file = plugin_dir_path( __FILE__ );\n }", "public function getPluginVersion($plugin, $stability = null)\n {\n $versions = $this->environment->getRest()->getPluginVersions($plugin, $stability);\n foreach ($versions as $version)\n {\n if (!$this->isPluginCompatible($plugin, $version))\n {\n continue;\n }\n\n return $version;\n }\n\n throw new sfPluginDependencyException(sprintf('No release available for plugin \"%s\" in state \"%s\" that satisfies the application requirements.', $plugin, $stability));\n }", "public function get_plugin_name()\n {\n }", "public function getGrPluginDetails()\n\t{\n\t\tglobal $wpdb;\n\t\t$sql = \"\n\t\t\t\tSELECT *\n\t\t\t\tFROM $wpdb->options options\n\t\t\t\tWHERE options.`option_name` LIKE 'GrIntegrationOptions%'\n\t\t\t\tORDER BY options.`option_name` DESC;\n\t\t\t\t\";\n\n\t\treturn $wpdb->get_results($sql);\n\t}", "public function plugin_path()\n {\n return plugin_dir_path(__FILE__);\n }", "public function getPlugin( $platform, $name )\n\t\t{\n\t\t\t$tablePlugins = new Default_Model_DbTable_Plugins();\n\t\t\t$name = $tablePlugins->getAdapter()->quote( $name, 'string' );\n\t\t\t$platform = $tablePlugins->getAdapter()->quote( strtolower( $platform ), 'string' );\n\t\t\t$where = \"`name` = $name AND `platform` = $platform\";\n\t\t\treturn $tablePlugins->fetchRow( $where );\n\t\t}", "public static function getPluginList () {\n\t\treturn self::$pInfo[1];\n\t\t$glob = glob(TH_ROOT.TH_PLUGINS.'*/plugin.php');\n\t\tforeach($glob as $plugin) {\n\t\t\t// $plugin is a full path, we don't want that.\n\t\t\t$plugin = explode(TH_ROOT.TH_PLUGINS, $plugin, 2);\n\t\t\t$plugin = explode('/plugin.php', $plugin[1]);\n\t\t\t$r[] = $plugin[0];\n\t\t}\n\t\treturn $r;\n\t}", "function get_plugin_files($plugin)\n {\n }", "function getinfo($id) {\n\t\tglobal $sql;\n\t\t$id = intval($id);\n\t\tif ($sql->db_Select('plugin', '*', \"plugin_id = {$id}\")) {\n\t\t\treturn $sql->db_Fetch();\n\t\t}\n\t}", "function started_plugin() {\n\treturn Started_Plugin::instance();\n}", "abstract protected function get_plugin_components();", "function getEnabledPlugins();", "public function getContainedPluginId();", "public function getPlugins()\n {\n $this->getPlugin('base');\n }", "public function getInstance() {\n\t\tif ( $this->getClass() == null ) return;\n\t\treturn $this->app->getIocContainer()->getInstance($this->getClass());\n\t\t// $callable = array($this->getClass(), \"getInstance\");\n\t\t// if ( ($instance = call_user_func($callable)) === false ) {\n\t\t// \tthrow new Exception\\Plugin\\PluginClassLoaderException(\"Failed call to \\\"\". $this->getClass() .\"::getInstance()\\\"\");\n\t\t// }\n\t\t// return $instance;\n\t}", "public static function get_instance( $plugin = null ){\n if( null === self::$instance ){\n self::$instance = new self( $plugin );\n }\n return self::$instance;\n }", "function getPluginVersion( $pPlugin, $pDefault = '0.0.0' ) {\n\t\tglobal $gBitSystem;\n\t\tif( !($ret = $this->getInstalledPackagePluginConfigValue( $pPlugin, 'version' )) ){\n\t\t\t$ret = $pDefault;\n\t\t}\n\t\treturn $ret;\n\t}", "public function get_plugin_slug() {\n return $this->plugin_slug;\n }", "function _get_plugin_directory() {\n return __DIR__;\n}", "public function getLoader(): ?HorseShop\n {\n $plugin = Server::getInstance()->getPluginManager()->getPlugin(\"HorseShop\");\n if ($plugin instanceof HorseShop) {\n return $plugin;\n }\n return null;\n }", "function _get_plugin_url() {\n static $plugin_url;\n\n if ( empty( $plugin_url ) ) {\n $plugin_url = plugins_url( null, __FILE__ ) .'/';\n }\n\n return $plugin_url;\n}", "public static function get_instance() {\n\t\tif ( ! ( self::$instance instanceof Plugin ) ) {\n\t\t\tself::$instance = new Plugin();\n\t\t}\n\t\treturn self::$instance;\n\t}", "public function getMain() {\r\n\r\n return Server::getInstance()->getPluginManager()->getPlugin(\"HideAndSeek\");\r\n\r\n }", "public function getPlugin($pluginNamespace)\n {\n $plugins = $this->getPlugins();\n\n if (!isset($plugins[$pluginNamespace])) {\n throw new \\Exception(sprintf(\n 'Plugin \"%s\" not found',\n $pluginNamespace\n ));\n }\n\n return $plugins[$pluginNamespace];\n }", "public function get_current_plugin_path() {\n\t\t$vendor_path = str_replace( '\\\\', '/', dirname( dirname( __FILE__ ) ) );\n\t\t// Path to the plugin's folder (the parent of the vendor/jetpack-autoloader folder).\n\t\treturn substr( $vendor_path, 0, strrpos( $vendor_path, '/' ) );\n\t}", "public function plugin($name, array $options = null)\n {\n return $this->getHelperPluginManager()\n ->setRenderer($this)\n ->get($name, $options);\n }", "public function getPluginDir (): string {\n return $this->pluginDir;\n }", "public function getProvider()\r\n\t{\r\n\t\treturn CrossKalturaDistributionPlugin::getProvider();\r\n\t}", "function get_plugins($plugin_folder = '')\n {\n }", "public function getPluginName() {\n\t\treturn $this->_pluginName;\n\t}", "protected function _loadPlugin($name)\n {\n $class = \"$name\\\\$name\";\n if ( class_exists($class,true) ) {\n return $class;\n } else {\n // try to require plugin class from plugin path\n return $this->tryRequire($name);\n }\n }", "public function getPluginConfiguration() {\n return $this->pluginConfiguration;\n }", "function plugin_path($plugin = '')\n\t{ \n\t\treturn extension_path(\"plugins\").($plugin ? DS.$plugin : $plugin);\n\t}", "protected function getPluginUrl($path = '', $plugin = '')\n\t{\n\t\treturn plugins_url($path,$plugin);\n\t}" ]
[ "0.8303084", "0.8303084", "0.7130766", "0.70358217", "0.6788941", "0.6778452", "0.6672697", "0.66687506", "0.64410067", "0.64160967", "0.64055437", "0.6395915", "0.63940465", "0.63839054", "0.617384", "0.6125157", "0.61245096", "0.61226845", "0.61167765", "0.611197", "0.61036354", "0.61027867", "0.608079", "0.6074748", "0.60624355", "0.60011613", "0.59959966", "0.5981363", "0.59717256", "0.5947336", "0.5939159", "0.5933549", "0.59319156", "0.5927368", "0.5927368", "0.58904666", "0.5882423", "0.5864254", "0.5859014", "0.5856713", "0.5831158", "0.58267796", "0.5818051", "0.58134055", "0.57832056", "0.57832056", "0.5771668", "0.5764608", "0.57585216", "0.5740337", "0.5711844", "0.5708517", "0.5708517", "0.5708517", "0.5708517", "0.5708517", "0.5708517", "0.5708517", "0.5708517", "0.5708517", "0.5702851", "0.5700306", "0.5684842", "0.568419", "0.5654932", "0.56475115", "0.56462276", "0.5645643", "0.5642573", "0.56339824", "0.56218964", "0.56218445", "0.56123877", "0.5600996", "0.5600809", "0.56006", "0.55916804", "0.5557062", "0.55497926", "0.5548777", "0.5547251", "0.55306834", "0.55279535", "0.55210453", "0.55192876", "0.5519253", "0.5515036", "0.5513794", "0.5511226", "0.550208", "0.5494669", "0.54859287", "0.548004", "0.54714704", "0.5464881", "0.54576635", "0.54539704", "0.54525536", "0.5444359", "0.54439276" ]
0.74830973
2
Check if the specified plugin is enabled or not
function isEnabled($name);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_plugin_enabled($plugin)\n\t{\n\t\tglobal $CONFIG;\n\t\t\n\t\treturn in_array($plugin, $CONFIG->enabled_plugins);\n\t}", "abstract function is_plugin();", "function acf_is_plugin_active()\n{\n}", "function wpdc_check_active(){ \r\n\r\n // plugin is ok\r\n // do the actions and filters\r\n\t\t\tadd_action( 'admin_menu',\t'wpdc_my_add_plugin_admin_page'); // the function to show the plugin settings page\r\n }", "protected function is_plugin_installed($plugin)\n {\n }", "function heateor_ss_is_plugin_active($pluginFile){\r\n\treturn in_array($pluginFile, apply_filters('active_plugins', get_option('active_plugins')));\r\n}", "public function is_enabled() {\n $enabled = file_exists(ABSPATH . '!sak4wp.php');\n return $enabled;\n }", "public function isEnabled($pluginName) {\n foreach($this->defaultIncludes as $name => $doInclude) {\n if($pluginName == $name) {\n return $doInclude;\n }\n }\n return false;\n }", "private function is_required_plugin_installed() {\n\t\trequire_once( ABSPATH . 'wp-admin/includes/plugin.php' );\n\t\t$requvired_plugin_list = array(\n\t\t\t'rest-api/plugin.php',\n\t\t\t'butterbean/butterbean.php',\n\t\t);\n\t\tforeach ( $requvired_plugin_list as $plugin ) {\n\t\t\tif ( ! is_plugin_active( $plugin ) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public function is_plugin_settings() {\n\n\t\treturn isset( $_GET['page'], $_GET['tab'] ) && 'wc-settings' === $_GET['page'] && 'pip' === $_GET['tab'];\n\t}", "public function isActive()\n {\n If ($this->theme_active == 1)\n {\n //plugin is active\n return true;\n\n } else {\n \n //plugin is not active\n return false;\n }\n\n }", "function hasPlugin($arg) {\n\n return ($this->getPlugin($arg) !== null);\n\n }", "function getEnabledPlugins();", "public function is_plugin_settings() {\n\t\treturn isset( $_GET['page'] ) && 'wc-settings' === $_GET['page'] &&\n\t\t isset( $_GET['tab'] ) && 'products' === $_GET['tab'] &&\n\t\t isset( $_GET['section'] ) && 'inventory' === $_GET['section'];\n\t}", "function plugin_is_active() {\n\t\treturn function_exists( 'jigoshop_init' ) || class_exists( 'JigoshopInit' );\n\t}", "function plugin_is_active() {\n\t\treturn class_exists( 'Marketpress' );\n\t}", "static function wpl_toolskit_ot_active() {\n\t\t//if ( is_plugin_active( 'option-tree/ot-loader.php' ) ) {\n\t\t\treturn true;\n\t\t//}\n\t}", "public static function check_activated_plugin() {\n\t\t$set = [];\n\t\t$plugins = get_option( 'active_plugins', [] );\n\n\t\tforeach ( self::get_conflicting_plugins() as $plugin => $type ) {\n\t\t\tif ( ! isset( $set[ $type ] ) && in_array( $plugin, $plugins, true ) ) {\n\t\t\t\t$set[ $type ] = true;\n\t\t\t\tself::set_notification( $type );\n\t\t\t}\n\t\t}\n\n\t\tif ( in_array( 'wpml-string-translation/plugin.php', $plugins, true ) ) {\n\t\t\tGlobalHelper::remove_notification( 'convert_wpml_settings' );\n\t\t}\n\t}", "public function is_plugin_installed() {\n\t\trequire_once( ABSPATH . 'wp-admin/includes/plugin.php' );\n\n\t\t$plugins = get_plugins();\n\n\t\treturn ! empty( $plugins[ self::PLUGIN_SLUG ] );\n\t}", "public function is_enabled() {\n\t\t\t$enabled = get_option( $this->_plugin_prefix . '_enabled' );\n\t\t\tif ( $enabled == 1 ) {\n\t\t\t\t$enabled = true;\n\t\t\t} else {\n\t\t\t\t$enabled = false;\n\t\t\t}\n\t\t\treturn $enabled;\n\t\t}", "function isPluginInstalled( $pPackagePluginGuid ){\n\t\treturn !is_null( $this->getInstalledPluginConfig( $pPackagePluginGuid ) );\n\t}", "public function is_elex_dpd_enabled() {\n\t\treturn class_exists( 'Elex_dp_dynamic_pricing_plugin' );\n\t}", "public function is_plugin_settings() {\n\t\treturn isset( $_GET['page'] ) &&\n\t\t\t'wc-settings' == $_GET['page'] &&\n\t\t\tisset( $_GET['tab'] ) &&\n\t\t\t'tax' == $_GET['tab'] &&\n\t\t\tisset( $_GET['section'] ) &&\n\t\t\t'avatax' == $_GET['section'];\n\t}", "private function pageEnabled() {\r\n\t\t//Check if the plugin is valid and exits \t\r\n\t\tif (isset ( $_POST ['enable_module'] ) || strlen ( $_POST ['enable_module'] ) < 1 || ! ereg ( \"[a-zA-Z]+\", $_POST ['enable_module'] )) {\r\n\t\t\tthrow new Exception ( \"Invalid plugin name {$_POST['enable_module']}\" );\r\n\t\t}\r\n\t\t\r\n\t\t$plugin = $this->data->xpath ( \"plugin[@name='{$_POST ['enable_module']}']\" );\r\n\t\t\r\n\t\t//Check if there where any plugins found with that name\r\n\t\tif (! is_array ( $plugin ) || empty ( $plugin [0] )) {\r\n\t\t\tthrow new Exception ( \"The plugin {$_POST['enable_module']} could not be found.\" );\r\n\t\t}\r\n\t\t\r\n\t\tLogger::getRootLogger ()->info ( \"Changing status of module {$_POST ['enable_module']} to {$_POST ['enable']}\" );\r\n\t\t\r\n\t\t//Enable/disbale the plugin in XML\r\n\t\tif ($_POST ['enable'] == 'true' || $_POST ['enable'] == '1') {\r\n\t\t\t$plugin [0] ['enabled'] = \"true\";\r\n\t\t} elseif ($_POST ['enable'] == 'false' || $_POST ['enable'] == '0') {\r\n\t\t\t\r\n\t\t\t//Try to stop the plugin, when going from enabled to disabled.\r\n\t\t\t$plugin_object = $this->framework->getPlugin ( ( string ) $plugin [0] ['name'] );\r\n\t\t\tif (isset ( $plugin_object ) && $plugin_object->isService () && ( string ) $plugin [0] ['enabled'] == \"true\") {\r\n\t\t\t\t$plugin_object->stop ();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$plugin [0] ['enabled'] = \"false\";\r\n\t\t} else {\r\n\t\t\tthrow new Exception ( \"Invalid status option for a plugin. Did not disable/enable {$_POST ['enable_module']}.\" );\r\n\t\t}\r\n\t\t\r\n\t\t//Save config and print the changed plugin\r\n\t\tif ($this->config->saveConfig ()) {\r\n\t\t\techo \"<reply action=\\\"ok\\\"><plugin\";\r\n\t\t\tforeach ( $plugin [0]->attributes () as $name => $value ) {\r\n\t\t\t\techo \" $name = \\\"$value\\\"\";\r\n\t\t\t}\r\n\t\t\techo \"/></reply>\";\r\n\t\t} else {\r\n\t\t\tthrow new Exception ( \"Error, could not save configuration file.\" );\r\n\t\t}\r\n\t}", "private function scan_allowed() {\n\t\treturn $this->as3cf->is_plugin_enabled();\n\t}", "function is_uninstallable_plugin($plugin)\n {\n }", "private function checkPlugin() {\n\n $check_version = !$this->input->getOption('without-plugin');\n\n if ($check_version) {\n $this->output->writeln(\n '<comment>' . __('Checking plugin version...') . '</comment>',\n OutputInterface::VERBOSITY_VERBOSE\n );\n\n $plugin = new Plugin();\n $plugin->checkPluginState('racks');\n\n if (!$plugin->getFromDBbyDir('racks')) {\n $message = __('Racks plugin is not part of GLPI plugin list. It has never been installed or has been cleaned.')\n . ' '\n . sprintf(\n __('You have to install Racks plugin files in version %s to be able to continue.'),\n self::RACKS_REQUIRED_VERSION\n );\n $this->output->writeln(\n [\n '<error>' . $message . '</error>',\n ],\n OutputInterface::VERBOSITY_QUIET\n );\n return false;\n }\n\n $is_version_ok = '1.8.0' === $plugin->fields['version'];\n if (!$is_version_ok) {\n $message = sprintf(\n __('You have to install Racks plugin files in version %s to be able to continue.'),\n self::RACKS_REQUIRED_VERSION\n );\n $this->output->writeln(\n '<error>' . $message . '</error>',\n OutputInterface::VERBOSITY_QUIET\n );\n return false;\n }\n\n $is_installable = in_array(\n $plugin->fields['state'],\n [\n Plugin::TOBECLEANED, // Can be in this state if check was done without the plugin dir\n Plugin::NOTINSTALLED, // Can be not installed if plugin has been cleaned in plugin list\n Plugin::NOTUPDATED, // Plugin 1.8.0 version has never been installed\n ]\n );\n if ($is_installable) {\n if ($this->input->getOption('update-plugin')) {\n $message = sprintf(\n __('Migrating plugin to %s version...'),\n self::RACKS_REQUIRED_VERSION\n );\n $this->output->writeln(\n '<info>' . $message . '</info>',\n OutputInterface::VERBOSITY_NORMAL\n );\n\n ob_start();\n $plugin->install($plugin->fields['id']);\n ob_end_clean();\n\n // Reload and check migration result\n $plugin->getFromDB($plugin->fields['id']);\n if (!in_array($plugin->fields['state'], [Plugin::TOBECONFIGURED, Plugin::NOTACTIVATED])) {\n $message = sprintf(\n __('Plugin migration to %s version failed.'),\n self::RACKS_REQUIRED_VERSION\n );\n $this->output->writeln(\n '<error>' . $message . '</error>',\n OutputInterface::VERBOSITY_QUIET\n );\n return false;\n }\n } else {\n $message = sprintf(\n __('Racks plugin data has to be updated to %s version. It can be done using the --update-plugin option.'),\n self::RACKS_REQUIRED_VERSION\n );\n $this->output->writeln(\n '<comment>' . $message . '</comment>',\n OutputInterface::VERBOSITY_QUIET\n );\n return false;\n }\n }\n\n $is_state_ok = in_array(\n $plugin->fields['state'],\n [\n Plugin::ACTIVATED, // Should not be possible as 1.8.0 is not compatible with 9.3\n Plugin::TOBECONFIGURED, // Should not be possible as check_config of plugin returns always true\n Plugin::NOTACTIVATED,\n ]\n );\n if (!$is_state_ok) {\n // Should not happens as installation should put plugin in awaited state\n throw new LogicException('Unexpected plugin state.');\n }\n }\n\n $rack_tables = [\n 'glpi_plugin_racks_itemspecifications',\n 'glpi_plugin_racks_others',\n 'glpi_plugin_racks_othermodels',\n 'glpi_plugin_racks_racks',\n 'glpi_plugin_racks_racks_items',\n 'glpi_plugin_racks_rackmodels',\n 'glpi_plugin_racks_racktypes',\n 'glpi_plugin_racks_rackstates',\n 'glpi_plugin_racks_roomlocations',\n ];\n $missing_tables = false;\n foreach ($rack_tables as $table) {\n if (!$this->db->tableExists($table)) {\n $this->output->writeln(\n '<error>' . sprintf(__('Racks plugin table \"%s\" is missing.'), $table) . '</error>',\n OutputInterface::VERBOSITY_QUIET\n );\n $missing_tables = true;\n }\n }\n if ($missing_tables) {\n $this->output->writeln(\n '<error>' . __('Migration cannot be done.') . '</error>',\n OutputInterface::VERBOSITY_QUIET\n );\n return false;\n }\n\n return true;\n }", "protected function isInstalledAndEnabled()\n {\n return $this->isPluginAvailable($this->identifier)\n && Settings::get('octoshop_products_enabled', true);\n }", "abstract function is_plugin_new_install();", "function should_load() {\n\t\tinclude_once( ABSPATH . 'wp-admin/includes/plugin.php' );\n\n\t\treturn is_plugin_active( 'revslider/revslider.php' );\n\t}", "function get_plugin_status( $install_string = '' ) {\n\n\t// Get the array of active plugins.\n\t$currently_active = get_option( 'active_plugins' );\n\n\t// check the array for being active, with fallback\n\treturn in_array( $install_string, $currently_active ) ? true : false;\n}", "public function is_plugin_active( $plugin ) {\n\t\tif ( in_array( $plugin, $this->get_active_plugins_option() ) )\n\t\t\treturn 'option';\n\t\telseif ( in_array( 'shared-plugins/' . $plugin, wpcom_vip_get_loaded_plugins() ) )\n\t\t\treturn 'manual';\n\t\telse\n\t\t\treturn false;\n\t}", "function acadp_registration_enabled() {\n\n\t$registration_settings = get_option( 'acadp_registration_settings', array() );\n\n\tif( ! empty( $registration_settings['engine'] ) && 'acadp' == $registration_settings['engine'] ) {\n\t\treturn true;\n\t}\n\n\treturn false;\n\n}", "function the_champ_facebook_plugin_enabled(){\r\n\tglobal $theChampFacebookOptions, $theChampCounterOptions;\r\n\tif((the_champ_social_commenting_enabled() && the_champ_facebook_commenting_enabled()) || the_champ_facebook_like_rec_enabled()){\r\n\t\treturn true;\r\n\t}else{\r\n\t\treturn false;\r\n\t}\r\n}", "public function checkFundraisingPlugin() {\r\n\t\t$module = 'ynfundraising';\r\n\t\t$modulesTable = Engine_Api::_ ()->getDbtable ( 'modules', 'core' );\r\n\t\t$mselect = $modulesTable->select ()->where ( 'enabled = ?', 1 )->where ( 'name = ?', $module );\r\n\t\t$module_result = $modulesTable->fetchRow ( $mselect );\r\n\t\tif (count ( $module_result ) > 0) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "function isPluginActive($a_pname)\n\t{\n\t\tglobal $ilPluginAdmin;\n\t\tif ($ilPluginAdmin->isActive(IL_COMP_MODULE, \"SurveyQuestionPool\", \"svyq\", $a_pname))\n\t\t{\n\t\t\treturn TRUE;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t}", "public function is_plugins_active( $pl_file_path = NULL ){\r\n $installed_plugins_list = get_plugins();\r\n return isset( $installed_plugins_list[$pl_file_path] );\r\n }", "public function base_plugin_active()\n\t{\n\t\treturn true;\n\t}", "private function enablePlugin($pluginName)\n\t{\n\t\t// Create a new db object.\n\t\t$db = $this->db;\n\t\t$query = $db->getQuery(true);\n\n\t\t$query\n\t\t\t->update($db->quoteName('#__extensions'))\n\t\t\t->set($db->quoteName('enabled') . ' = 1')\n\t\t\t->where($db->quoteName('name') . ' = :pluginname')\n\t\t\t->where($db->quoteName('type') . ' = ' . $db->quote('plugin'))\n\t\t\t->bind(':pluginname', $pluginName);\n\n\t\t$db->setQuery($query);\n\n\t\ttry\n\t\t{\n\t\t\t$db->execute();\n\t\t}\n\t\tcatch (ExecutionFailureException $e)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\t// Store language filter plugin parameters.\n\t\tif ($pluginName == 'plg_system_languagefilter')\n\t\t{\n\t\t\t$params = '{'\n\t\t\t\t. '\"detect_browser\":\"0\",'\n\t\t\t\t. '\"automatic_change\":\"1\",'\n\t\t\t\t. '\"item_associations\":\"1\",'\n\t\t\t\t. '\"remove_default_prefix\":\"0\",'\n\t\t\t\t. '\"lang_cookie\":\"0\",'\n\t\t\t\t. '\"alternate_meta\":\"1\"'\n\t\t\t\t. '}';\n\t\t\t$query\n\t\t\t\t->clear()\n\t\t\t\t->update($db->quoteName('#__extensions'))\n\t\t\t\t->set($db->quoteName('params') . ' = :params')\n\t\t\t\t->where($db->quoteName('name') . ' = ' . $db->quote('plg_system_languagefilter'))\n\t\t\t\t->where($db->quoteName('type') . ' = ' . $db->quote('plugin'))\n\t\t\t\t->bind(':params', $params);\n\n\t\t\t$db->setQuery($query);\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$db->execute();\n\t\t\t}\n\t\t\tcatch (ExecutionFailureException $e)\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_plugin_active( $plugin ) {\n\t\treturn kalium()->is->plugin_active( $plugin );\n\t}", "public function is_enabled()\n {\n }", "function ts_check_if_control_panel()\r\n{\r\n\t$control_panel = ot_get_option('control_panel');\r\n\t\r\n\tif ($control_panel == 'enabled_admin' && current_user_can('manage_options') || $control_panel == 'enabled_all')\r\n\t{\r\n\t\treturn true;\r\n\t}\r\n\treturn false;\r\n}", "public function plugin_is_configured() {\n\t\treturn isset( $this->settings->client_id, $this->settings->base_uri ) && $this->settings->client_id && $this->settings->base_uri;\n\t}", "private static function is_installed( $plugin ) {\n\t\tif ( ! function_exists( 'get_plugins' ) ) {\n\t\t\trequire_once ABSPATH . 'wp-admin/includes/plugin.php';\n\t\t}\n\n\t\t$all_plugins = get_plugins();\n\n\t\treturn isset( $all_plugins[ $plugin ] );\n\t}", "public static function installerEnabled()\n {\n /** @var \\Nwidart\\Modules\\Module $installer */\n $installer = Module::find('installer');\n if (!$installer) {\n return false;\n }\n\n return $installer->isEnabled();\n }", "public function is_enabled()\n {\n }", "public function isPluginActive($plugin) {\n return in_array($plugin, $this->getActivePlugins());\n }", "function isMuPlugin ()\n\t{\n\t\tif ( strpos( dirname( __FILE__ ), 'mu-plugins' ) ) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "function validate_plugin_accessibility(){\n\n $final_response=new stdClass();\n if( $GLOBALS['glbstg_plugenabled']==0 or $GLOBALS['glbstg_plugenabled']==\"0\" or $GLOBALS['glbstg_plugenabled']==\"\"){\n\n $final_response->response_notice=\"X5GON plugin is not enabled. Check with admin.\";\n }else{\n $final_response->response_notice=1;\n }\n\n return $final_response;\n }", "protected function checkPluginVC(){\n\t\t\t$_active_vc = apply_filters('active_plugins',get_option('active_plugins'));\n\t\t\tif(in_array('js_composer/js_composer.php',$_active_vc)){\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "public function is_powered_by_enabled() {\n\t\t$enabled = get_option( 'algolia_powered_by_enabled', 'yes' );\n\n\t\treturn 'yes' === $enabled;\n\t}", "public function _isEnable(){\n return true;\n if(!array_key_exists('enable', $this->moduleConfig)) return false;\n return $this->moduleConfig['enable'];\n }", "public static function isEnabled()\n {\n $app_model = new waAppSettingsModel();\n $is_enabled = $app_model->get(array('shop', self::PLUGIN_ID), self::PLUGIN_ID . '-profile');\n $profile_cookie = $app_model->get(array('shop', self::PLUGIN_ID), self::PLUGIN_ID_SHORT . '-profile-cookie');\n $cookie_enabled = $profile_cookie && waRequest::cookie($profile_cookie, '');\n return $is_enabled && $cookie_enabled;\n }", "public function isEnabled( $name ) {\n if ( is_null($this->_plugins) ) $this->getPlugins();\n return isset($this->_plugins[ $name ]) && $this->_plugins[ $name ]->isEnabled();\n }", "function rtasset_check_plugin_dependecy() {\n\n\tglobal $rtasset_plugin_check;\n\t$rtasset_plugin_check = array(\n\t\t'rtbiz' => array(\n\t\t\t'project_type' => 'all',\n\t\t\t'name' => esc_html__( 'WordPress for Business.', RT_ASSET_TEXT_DOMAIN ),\n\t\t\t'active' => class_exists( 'Rt_Biz' ),\n\t\t\t'filename' => 'index.php',\n\t\t),\n\t);\n\n\t$flag = true;\n\n\tif ( ! class_exists( 'Rt_Biz' ) || ! did_action( 'rt_biz_init' ) ) {\n\t\t$flag = false;\n\t}\n\n\tif ( ! $flag ) {\n\t\tadd_action( 'admin_enqueue_scripts', 'rtasset_plugin_check_enque_js' );\n\t\tadd_action( 'wp_ajax_rtasset_activate_plugin', 'rtasset_activate_plugin_ajax' );\n\t\tadd_action( 'admin_notices', 'rtasset_admin_notice_dependency_not_installed' );\n\t}\n\n\treturn $flag;\n}", "static public function checkPluginExists($plugin, $boolean = true)\n {\n try {\n sfApplicationConfiguration::getActive()->getPluginConfiguration($plugin);\n return true;\n } catch (Exception $e) {\n return false;\n }\n }", "public function is_plugin_enabled($cmid, $course_id=null) {\n global $DB;\n\n $settings = (array) get_config('plagiarism');\n if (!$settings['programming_use']) { // globaly disabled\n return false;\n }\n\n\n $plagiarism_programming_setting = (array) get_config('plagiarism_programming');\n if ($plagiarism_programming_setting['level_enabled']=='global') { // globally enabled\n return true;\n }\n\n // specifically enabled for some courses\n if (!$course_id) {\n $course_module = get_coursemodule_from_id('', $cmid);\n $course_id = ($course_module)?$course_module->course:0;\n }\n return $DB->get_record('plagiarism_programming_cours', array('course' => $course_id))!=false;\n }", "function idealEnabled() {\r\n\t\t$db = & JFactory::getDBO();\r\n\t\t$sql = 'SELECT COUNT(id) FROM #__osmembership_plugins WHERE name=\"os_ideal\" AND published=1';\r\n\t\t$db->setQuery($sql) ;\r\n\t\t$total = $db->loadResult() ;\r\n\t\tif ($total) {\r\n\t\t\trequire_once JPATH_ROOT.'/components/com_osmembership/plugins/ideal/ideal.class.php';\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 check_capabilities() {\n\n\t\tif ( ! current_user_can( 'install_plugins' ) ) {\n\t\t\treturn;\n\t\t\t// TODO: Error message\n\t\t}\n\n\t}", "public static function is_enable() {\n\t\treturn true;\n\t}", "public function isEnabled()\n\t{\n\t\t// note: don't use $this->_main->.. as it might not exist when this func is called.\n\t\treturn Mage::helper('shoptimally_upsalecoupons/main')->isEnabled();\n\t}", "function isPackagePluginActive( $pPluginGuid ) {\n\t\treturn( $this->getPackagePluginConfigValue( $pPluginGuid, 'active' ) == 'y' );\n\t}", "function pi_test_plugin_pas_installe($plugin) {\n include_spip('inc/plugin');\n $arr = preg_grep('#^.*'.preg_quote($plugin).'/?.*$#i',liste_plugin_actifs());\n return !count($arr);\n}", "function wp_get_active_and_valid_plugins()\n {\n }", "function codebean_is_plugin_active_for_network( $plugin ) {\n\tif ( !is_multisite() )\n\t\treturn false;\n\n\t$plugins = get_site_option( 'active_sitewide_plugins');\n\tif ( isset($plugins[$plugin]) )\n\t\treturn true;\n\n\treturn false;\n}", "function have_profile(){\n\treturn ( get_profile('enabled') === true && get_profile() !== -1 );\n}", "function joe_uah_plugins_check() {\n\n\t// Set constants for active third party plugins\n\tdefine( 'JOE_UAH_MINIORANGE_2_FACTOR', class_exists( 'Miniorange_Authentication' ) );\n\n}", "public function isPluginActive($sPluginName)\n {\n $pluginModel = Plugin::model();\n $record = $pluginModel->findByAttributes(array('name' => $sPluginName, 'active' => '1'));\n if ($record == false)\n {\n return false;\n }\n else\n {\n return true;\n }\n }", "public function installPlugin()\n\t{\n\t\treturn true;\t\n\t}", "public function isEnabled()\n\t{\n\t\treturn Mage::helper('wordpress')->isPluginEnabled('wordpress-seo/wp-seo.php') \n\t\t\t|| Mage::helper('wordpress')->isPluginEnabled('wordpress-seo-premium/wp-seo-premium.php');\n\t}", "public function isEnabled()\n {\n return $this->helper->isEnabled();\n }", "protected function photon_is_available() {\n\t\t$available = ! function_exists( 'jetpack_photon_url' )\n\t\t\t|| (\n\t\t\t\ttrue === defined( 'JETPACK_DEV_DEBUG' )\n\t\t\t\t&& true === constant( 'JETPACK_DEV_DEBUG' )\n\t\t\t);\n\n\t\treturn apply_filters(\n\t\t\t'wpcom_thumbnail_editor_photon_is_available',\n\t\t\t$available\n\t\t);\n\t}", "public function pluginInstalled( string $pluginName )\n {\n return array_key_exists( $pluginName, $this->plugins );\n }", "protected function isEnabled() {\n\t\treturn (\n\t\t\t$this->getPageService()->isEnabled() &&\n\t\t\t(bool) $this->getTypoScriptService()->resolve('settings.enable')\n\t\t);\n\t}", "function can_download_plugin() {\n\t\tif( SS_Envato_API()->user->is_staff() ) return true;\n\n\t\t$current_user = wp_get_current_user(); \n\n\t\t$tf_codes = get_user_tf_codes( $current_user->ID );\n\t\t$site_codes = get_on_site_licenses( $current_user->ID );\n\n\t \t$plugins_codes = explode(',', etheme_get_custom_field('tf_themes'));\n\t \t$for_themes = explode(',', etheme_get_custom_field('et_themes'));\n\n\t \t$intersection = array_intersect($tf_codes, $plugins_codes);\n\t \t$intersection2 = array_intersect($site_codes, $for_themes);\n\n\t \tif(count($intersection) > 0 || count($intersection2) > 0 || et_is_staff()) {\n\t \t\treturn true;\n\t \t}\n\n\t \treturn false;\n\n\t}", "function plugin_depends($plugin_name)\n\t{\n\t\tif (!is_plugin_enabled($plugin_name))\n\t\t\tthrow new PluginException(sprintf(_echo('plugins:exception:missingplugin'), $plugin_name)); \n\t\t\t\n\t\treturn true;\n\t}", "public function is_enabled() {\n\n\t\t// Check if debug is on\n\t\tif ( 'on' === $this->settings->get_option( 'debug' ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "function ppom_is_api_enable() {\n \n $api_enable = get_option( 'ppom_api_enable' );\n $api_key = get_option( 'ppom_rest_secret_key' );\n \n $return = false;\n \n if( $api_enable == 'yes' && $api_key != '' ) {\n $return = true;\n }\n \n return $return;\n}", "public function is_enabled() {\n $settings = get_option('woocommerce_enda_bundle_rate_settings');\n return $settings['enabled'] == 'yes' ? true : false;\n }", "public function isEnabled()\n {\n return $this->_helperData->isEnabled();\n }", "function isEnabled()\n{\n global $avahips_config;\n\n // Load Avahi-PS configuration file\n $aps_cfg = load_conffile($avahips_config);\n\n // Check for IPFS as a backend database for publication\n if (isset($aps_cfg['DATABASE']) && strpos($aps_cfg['DATABASE'], 'ipfs') !== false) {\n return true;\n }\n return false;\n}", "protected function get_plugin_status($plugin)\n {\n }", "public static function is_enabled() {\n\t\tif (self::$enabled) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "function isSitePlugin() {\n\t\treturn false;\n\t}", "public static function Elementor_active_check() {\n\n if ( ! self::$active_plugins ) {\n self::init();\n }\n\n return in_array( 'elementor/elementor.php', self::$active_plugins ) || array_key_exists( 'elementor/elementor.php', self::$active_plugins );\n }", "function _init_plugin() {\n\t\tglobal $db, $apcms;\n\t\t\n\t\treturn true;\n\t}", "private function is_elementor_dev_installed() {\n\t\treturn in_array( static::PLUGIN_NAME, $this->get_plugins(), true );\n\t}", "protected function _isModuleEnabled()\n {\n return $this->_helper->isEnabled();\n }", "function checkInstalledPlugin($template) {\n\tglobal $communityPaths;\n\n\t$pluginName = basename($template['PluginURL']);\n\tif ( ! file_exists(\"/var/log/plugins/$pluginName\") ) return false;\n\t$dupeList = readJsonFile($communityPaths['pluginDupes']);\n\tif ( ! $dupeList[$pluginName] ) return true;\n\treturn strtolower(trim(plugin(\"pluginURL\",\"/var/log/plugins/$pluginName\"))) != strtolower(trim($template['PluginURL']));\n}", "private function isEnabled()\n {\n return $this->getConfigBool('enable', false);\n }", "function check_environment() {\n if (\n !is_plugin_active('woocommerce/woocommerce.php') and\n current_user_can('activate_plugins')\n ) {\n // Stop activation redirect and show error\n $this->deactivate_plugin();\n wp_die(\n 'Sorry, but this plugin requires the Woocommerce plugin to be installed and active. <br>\n <a href=\"' . admin_url('plugins.php') . '\">&laquo; Return to Plugins</a>'\n );\n }\n }", "private function pluginRegistered($plugin)\n\t{\n\t\treturn $this->plugins[$plugin][\"flag\"];\n\t}", "function is_network_only_plugin($plugin)\n {\n }", "public function check_dependencies($disable = false) {\n $result = true;\n $active_plugins = get_option('active_plugins', array());\n if (is_multisite()) {\n $active_sitewide_plugins = get_site_option('active_sitewide_plugins', array());\n $active_sitewide_plugins = array_keys($active_sitewide_plugins);\n $active_plugins = array_merge($active_plugins, $active_sitewide_plugins);\n }\n\n $_is_active = in_array('wp-jobsearch/wp-jobsearch.php', $active_plugins);\n if (!$_is_active) {\n $this->admin_notices[] = '<div class=\"error\">' . __('<em><b>Addon Jobsearch Scheduled Meetings</b></em> needs the <b>WP Jobsearch</b> plugin. Please install and activate it.', 'jobsearch-shmeets') . '</div>';\n }\n if (!$_is_active) {\n include_once( ABSPATH . 'wp-admin/includes/plugin.php' );\n deactivate_plugins(plugin_basename(__FILE__));\n $result = false;\n }\n return $result;\n }", "private function isEnabled()\n {\n if(is_file(JPATH_SITE.DS.'components'.DS.'com_magebridge'.DS.'models'.DS.'config.php')) {\n return true;\n }\n return false;\n }", "function is_active_addons($key)\r\n{\r\n $act_key = get_option($key);\r\n if ($act_key != '')\r\n {\r\n return true;\r\n }\r\n}", "public function enabled()\n\t{\n\t\tif ($this->isLocked())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\tif ($this->issetCustomExec())\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\treturn $this->fields['USE']->getValue() == 'Y';\n\t}", "static function has_required_plugins( $plugins = array('H', 'Timber') ) {\n $is_all_installed = true;\n\n // if any of the plugins doesn't exist, break the loop\n if( is_array( $plugins ) ) {\n foreach( $plugins as $p ) {\n $is_all_installed = class_exists( $p );\n if( !$is_all_installed ) { break; }\n }\n } else {\n $is_all_installed = class_exists( $plugins );\n }\n\n // show error message if all not installed AND it's admin page\n $is_admin_page = is_admin() && current_user_can('install_plugins');\n if( !$is_all_installed && $is_admin_page ) {\n add_action('admin_notices', function() {\n $text = sprintf(\n __('You need to activate WP Edje and Timber. <a href=\"%s\">Activate now »</a>.', 'my'),\n admin_url('plugins.php')\n );\n echo '<div class=\"notice notice-error\"><p>' . $text . '</p></div>';\n });\n }\n return $is_all_installed;\n }", "public function isEnabled()\n {\n if ((string)$this->global->enabled === \"1\") {\n return true;\n }\n return false;\n }", "public static function is_plugin_active( $plugin ) {\n\t\tif ( function_exists( 'is_plugin_active' ) ) {\n\t\t\treturn is_plugin_active( $plugin );\n\t\t}\n\t\treturn in_array( $plugin, get_option( 'active_plugins', array() ), true );\n\t}", "public function canShowScript() {\n\t\t$pluginUpgrader = new Utils\\PluginUpgraderSilentAjax();\n\t\t$miLite = $pluginUpgrader->pluginSlugs['miLite'];\n\t\t$miPro = $pluginUpgrader->pluginSlugs['miPro'];\n\t\t$emLite = $pluginUpgrader->pluginSlugs['emLite'];\n\t\t$emPro = $pluginUpgrader->pluginSlugs['emPro'];\n\t\t$activePlugins = get_option( 'active_plugins' );\n\n\t\tif (\n\t\t\tin_array( $miLite, $activePlugins, true ) ||\n\t\t\tin_array( $miPro, $activePlugins, true ) ||\n\t\t\tin_array( $emLite, $activePlugins, true ) ||\n\t\t\tin_array( $emPro, $activePlugins, true )\n\t\t) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$googleAnalyticsId = aioseo()->options->deprecated->webmasterTools->googleAnalytics->id;\n\t\t$gtmContainerId = aioseo()->options->deprecated->webmasterTools->googleAnalytics->gtmContainerId;\n\n\t\tif (\n\t\t\tin_array( 'googleAnalytics', aioseo()->internalOptions->internal->deprecatedOptions, true ) &&\n\t\t\t! $googleAnalyticsId &&\n\t\t\t! $gtmContainerId\n\t\t) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn ! $this->userIsExcluded();\n\t}" ]
[ "0.779948", "0.7765498", "0.72858274", "0.72032857", "0.7157867", "0.7117273", "0.7112665", "0.71106577", "0.70538133", "0.7040197", "0.69788605", "0.6968064", "0.6940967", "0.69051784", "0.6903759", "0.68723", "0.68649876", "0.68343115", "0.6822617", "0.679283", "0.6781917", "0.6781151", "0.6757729", "0.67524546", "0.672247", "0.672152", "0.669719", "0.6696888", "0.6691784", "0.66773325", "0.66704005", "0.66604036", "0.6649297", "0.6641991", "0.6634437", "0.6622664", "0.66182506", "0.66018677", "0.66016793", "0.6597802", "0.6595633", "0.6586992", "0.65678746", "0.6556635", "0.6542688", "0.6537164", "0.65357757", "0.6534217", "0.6520745", "0.6510258", "0.6506111", "0.6505165", "0.6503014", "0.64997107", "0.6499704", "0.6481694", "0.64814883", "0.64792347", "0.64599866", "0.64596605", "0.6446406", "0.6439429", "0.64331424", "0.6422567", "0.64200944", "0.64071834", "0.6406948", "0.6392907", "0.6390155", "0.63841987", "0.63837516", "0.6381822", "0.6379634", "0.6366469", "0.6361297", "0.63576365", "0.63324195", "0.63302726", "0.63244003", "0.63196087", "0.63067603", "0.63028437", "0.63003826", "0.62871873", "0.6287106", "0.62803334", "0.62800246", "0.627462", "0.62697077", "0.6268455", "0.6263029", "0.6261924", "0.62539905", "0.6248032", "0.6245535", "0.62430197", "0.6240938", "0.6240102", "0.6239564", "0.6237838", "0.62356657" ]
0.0
-1
Gets the requested method type
public function getMethod();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMethod() {\n\t\treturn $this->getDriver()->getType();\n\t}", "protected function get_method_type() {\n\n\t\treturn isset( $this->response_data->expMonth ) ? 'credit_card' : 'echeck';\n\t}", "public function fetch_method()\n\t{\n\t\t$method = $this->route_stack[self::SEG_METHOD];\n\t\treturn ($method === $this->fetch_class()) ? 'index' : $method;\n\t}", "public function getMethod() {\n\t\tif (isset($_GET[$this->config->get('methodParam')]))\n\t\t\t$method = urldecode($_GET[$this->config->get('methodParam')]);\n\t\telse\n\t\t\t$method = $this->config->get('defaultMethod');\n\t\t\n\t\treturn strtolower($method);\n\t}", "public function getMethod()\n {\n if (isset($_POST[$this->methodParam])) {\n return strtoupper($_POST[$this->methodParam]);\n } elseif (isset($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE'])) {\n return strtoupper($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE']);\n } else {\n return isset($_SERVER['REQUEST_METHOD']) ? strtoupper($_SERVER['REQUEST_METHOD']) : 'GET';\n }\n }", "private function requestMethod() \n {\n // Take the method as found in $_SERVER\n $method = $_SERVER['REQUEST_METHOD'];\n\n if ($_SERVER['REQUEST_METHOD'] == 'HEAD') {\n ob_start();\n $method = 'GET';\n } // If it's a POST request, check for a method override header\n elseif ($_SERVER['REQUEST_METHOD'] == 'POST') {\n $headers = $this->requestHeaders();\n if (isset($headers['X-HTTP-Method-Override']) && in_array($headers['X-HTTP-Method-Override'], array('PUT', 'DELETE', 'PATCH'))) {\n $method = $headers['X-HTTP-Method-Override'];\n }\n }\n return $method;\n }", "public function getMethod()\n {\n return $this->values[\"method\"];\n }", "protected function __get_method()\n\t{\n\t\t$method = $this->env['REQUEST_METHOD'];\n\n\t\tif ($method == 'POST' && !empty($this->request_parameters['_method']))\n\t\t{\n\t\t\t$method = $this->request_parameters['_method'];\n\t\t}\n\n\t\t$method = strtolower($method);\n\n\t\tif (!in_array($method, self::$methods))\n\t\t{\n\t\t\tthrow new Exception('Unsupported request method: %method', array('%method' => $method), 400);\n\t\t}\n\n\t\treturn $method;\n\t}", "public function getRequestMethod()\n\t{\n\t\t$method = $this->server->get('REQUEST_METHOD');\n\t\tif(in_array(strtoupper($method),$this->methods))\n\t\t{\n\t\t\treturn $method;\n\t\t}\n\t\treturn ;\n\t}", "public function getMethod()\t{\n\t\tif ($this->class != \"NoRoute\")\t{\n\t\t\treturn $this->method;\n\t\t}\n\t\treturn \"invoke\";\n\t}", "public function getMethod()\r\n {\r\n if (isset($this->server['REQUEST_METHOD'])) {\r\n return strtoupper($this->server['REQUEST_METHOD']);\r\n }\r\n\r\n return 'GET';\r\n }", "public function getMethod()\n {\n return $this->method ?: 'GET';\n }", "public static function method(){\n \n return self::$request->getMethod(); \n }", "public function GetMethod () {\n\t\treturn $this->method;\n\t}", "protected function getMethod(): string\n {\n if (strlen($this->method) == 0) {\n $this->method = 'get';\n }\n return $this->method;\n }", "static public function GetMethod() {\n if (isset(self::$method))\n return self::$method;\n else\n return self::UNKNOWN;\n }", "public static function getMethod()\n {\n $method = strtoupper($_SERVER['REQUEST_METHOD']);\n\n return $method;\n }", "function get_method() {\n $parts = explode('/', $this->request_uri);\n if (count($parts) > 3) {\n return $parts[3];\n }\n return 'index';\n }", "public function GetMethod() {\n\n $Server= $this->GetRequestContext()->SERVER;\n $Method= $Server['REQUEST_METHOD']; // it is always present\n\n // for XMLHttpRequest request return 'AJAX'\n if (isset($this->Headers['X-REQUESTED-WITH']) && $this->Headers['X-REQUESTED-WITH'] === 'XMLHttpRequest'\n && $this->GetOption('AcceptAjaxAsMethod')) {\n return 'AJAX';\n }\n\n // honor 'X-HTTP-METHOD-OVERRIDE' header\n if ($Method === 'POST' && isset($this->Headers['X-HTTP-METHOD-OVERRIDE'])) {\n return strtoupper($this->Headers['X-HTTP-METHOD-OVERRIDE']);\n }\n\n // override with custom method\n $Key= $this->GetOption('OverrideMethodField');\n $Post= $this->GetRequestContext()->POST;\n if ($Method === 'POST' && isset($Post[$Key])) {\n return strtoupper($Post[$Key]);\n }\n\n // return original value\n return $Method;\n }", "public function getMethod() : string;", "public function getRequestMethod()\n {\n if (is_null($this->method)) {\n $server = provider::access('server');\n\n if ($server->isExist('REQUEST_METHOD') && $server->isValid('REQUEST_METHOD', validate::T_PRINTABLE)) {\n $this->method = strtoupper($server->getValue('REQUEST_METHOD'));\n }\n }\n\n return $this->method;\n }", "public function method(): string\n {\n return \\strtoupper($this->request()->getMethod());\n }", "public function getMethod(): string;", "public function getMethod(): string;", "public function getMethod(): string;", "public function getMethod(): string;", "public function getMethod(): string;", "public function getMethod(): string;", "public function getMethod(): string\n {\n return $this->method;\n }", "public function getMethod(): string\n {\n return $this->method;\n }", "public function getMethod(): string {}", "protected function getMethod() {\n return $this->method;\n }", "protected function getRequestMethod() {\n\t\tif($this->_requestMethod === null) {\n\t\t\t$this->_requestMethod = $_SERVER['REQUEST_METHOD'];\n\t\t}\n\t\treturn $this->_requestMethod;\n\t}", "public function get_method() {\n\t\treturn $this->method;\n\t}", "public function method(): string\n {\n return $this->request->getMethod();\n }", "public function method(): string\n {\n return $this->request->getMethod();\n }", "public function method(): string\n {\n return $this->request->getMethod();\n }", "public function getMethod()\n {\n if($this->_method == NULL || !isset($this->_method))\n {\n $this->_method = substr(get_class($this),3);\n }\n \n return $this->_method;\n }", "protected function _getMethodNameForType($type = null) {\n\t\t$result = '_getValueForString';\n\t\tif (empty($type)) {\n\t\t\treturn $result;\n\t\t}\n\n\t\t$type = mb_strtolower($type);\n\t\t$methodName = '_getValueFor' . Inflector::camelize($type);\n\t\tif (method_exists($this, $methodName)) {\n\t\t\t$result = $methodName;\n\t\t}\n\n\t\treturn $result;\n\t}", "public static function getMethod()\n {\n return $_SERVER['REQUEST_METHOD'];\n }", "public function getMethod()\r\n {\r\n return $this->method;\r\n }", "public static function getMethod() {\n\t if(!isset(self::$method)) {\n\t self::$method = isset($_SERVER['REQUEST_METHOD'])\n\t ? $_SERVER['REQUEST_METHOD']\n\t : null;\n\t }\n\t return self::$method;\n\t}", "public function getMethod() {\n return $this->method;\n }", "public function getMethod() {\n return $this->method;\n }", "public function getMethod() {\n return $this->method;\n }", "public function getMethod() {\r\n\t\treturn $this->method;\r\n\t}", "public function getMethod ()\n {\n\n return $this->method;\n\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod() {\n \n return $this->method;\n \n }", "public function getMethod()\n\t{\n\t\t//current method\n\t\t$httpMethod = mb_strtoupper($this->getRequestMethod());\n\t\t// If it's a HEAD request override it to being GET and prevent any output, as per HTTP Specification\n\t\t// @url http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.4\n\t\tif ($httpMethod === Request::HEAD) {\n\t\t\t$httpMethod = Request::GET;\n\t\t}\n\n\t\t//When request is POST then check whether method override was sent and check whether in the method override have an annother method\n\t\t//like PUT, PATCH or DELETE \n\t\tif ($httpMethod === Request::POST) {\n\t\t\t$httpHeaders = $this->getServerParams();\n\n\t\t\tif (isset($httpHeaders['HTTP_X_HTTP_METHOD_OVERRIDE'])) {\n\t\t\t\t$overrideMethod = $httpHeaders['HTTP_X_HTTP_METHOD_OVERRIDE'];\n\n\t\t\t\tif (in_array($overrideMethod, array('PUT', 'DELETE', 'PATCH'))) {\n\t\t\t\t\t$httpMethod = $overrideMethod;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$httpMethod = $httpHeaders['REQUEST_METHOD'];\n\t\t\t}\n\t\t}\n\n\t\t//return current method\n\t\treturn $httpMethod;\n\t}", "public function getMethod() {\n\t\treturn $this->method;\n\t}", "public function getMethod() {\n\t\treturn $this->method;\n\t}", "public function getMethod() {\n\t\treturn $this->method;\n\t}", "public function getRequestMethod() {\n $request_method = variable_get($this->module . '_supported_method');\n\n $request_method = preg_split('/,/', $request_method);\n return $request_method;\n }", "public function getMethod ()\n {\n return $this->method;\n }", "public static function method()\n\t{\n\t\treturn $_SERVER['REQUEST_METHOD'];\n\t}", "public function getMethod()\n\t{\n\t\treturn strtoupper($this->_internal_request->get_normalized_http_method());\n\t}", "public function getMethod()\n {\n return filter_input(INPUT_SERVER, 'REQUEST_METHOD');\n }", "public function getMethod() \n {\n return $this->method;\n }", "public function getMethod(): string {\n\n return strtoupper($_SERVER['REQUEST_METHOD']);\n }", "public function getMethod()\n {\n return $this->method->getMethod();\n }", "public function getRequestMethod()\n {\n // Take the method as found in $_SERVER\n $method = $_SERVER['REQUEST_METHOD'];\n\n // If it's a HEAD request override it to being GET and prevent any output, as per HTTP Specification\n // @url http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.4\n if ($_SERVER['REQUEST_METHOD'] == 'HEAD') {\n ob_start();\n $method = 'GET';\n }\n\n // If it's a POST request, check for a method override header\n elseif ($_SERVER['REQUEST_METHOD'] == 'POST') {\n $headers = $this->getRequestHeaders();\n if (isset($headers['X-HTTP-Method-Override']) && in_array($headers['X-HTTP-Method-Override'], ['PUT', 'DELETE', 'PATCH'])) {\n $method = $headers['X-HTTP-Method-Override'];\n }\n }\n\n return $method;\n }", "public function getMethod()\n {\n return $this->getParam('server/REQUEST_METHOD');\n }", "public function get_method();", "public function get_method() {\n return $this->_method;\n }", "public static function getMethod()\n {\n return ! empty(self::getInstance()->urlParams[self::PARAM_METHOD]) ? self::getInstance()->urlParams[self::PARAM_METHOD] : self::DEFAULT_CONTROLLER_ACTION;\n }", "public function get_type();", "public function getMethod()\n {\n return $this->_method;\n }", "private static function get_method(){\n\t\t\tif(!self::$method)\n\t\t\t\tself::$method = $_SERVER['REQUEST_METHOD'];\n\t\t\t\t\n\t\t\treturn strtolower(self::$method);\n\t\t}", "public function getMethod() { return $this->_method; }", "public function getMethod()\n {\n return strtoupper($this->server['REQUEST_METHOD']);\n }", "public function getMethod() : string\n {\n return $this->method;\n }", "public static function method($type) {\n return $_SERVER['REQUEST_METHOD'] == strtoupper($type);\n }", "public function getMethod() :string;", "public static function method()\n {\n return $_SERVER['REQUEST_METHOD'];\n }", "public static function method()\n {\n return $_SERVER['REQUEST_METHOD'];\n }" ]
[ "0.77031356", "0.76252186", "0.69732016", "0.69721305", "0.6921705", "0.6906779", "0.688603", "0.6865695", "0.68646896", "0.6838046", "0.68256617", "0.68218493", "0.6820166", "0.6819947", "0.6815083", "0.68143773", "0.67799747", "0.67714304", "0.6741448", "0.67374915", "0.67326444", "0.67316544", "0.6728895", "0.6728895", "0.6728895", "0.6728895", "0.6728895", "0.6728895", "0.6728198", "0.6728198", "0.67218286", "0.67174447", "0.66890913", "0.6688898", "0.66855407", "0.66855407", "0.66855407", "0.6681703", "0.6662921", "0.6660215", "0.6659249", "0.6657552", "0.66569316", "0.66569316", "0.66569316", "0.66528314", "0.6643854", "0.6641446", "0.6641446", "0.6641446", "0.6641446", "0.6641446", "0.6641446", "0.6641446", "0.6641446", "0.6641446", "0.6641446", "0.6641446", "0.6641446", "0.6641446", "0.6641446", "0.6641446", "0.6641446", "0.6641446", "0.6641446", "0.6638878", "0.66386855", "0.6632319", "0.66309893", "0.66309893", "0.66309893", "0.66186816", "0.6614774", "0.66132545", "0.6611999", "0.6606529", "0.66020435", "0.65952575", "0.6593478", "0.6591865", "0.6582714", "0.658022", "0.65771407", "0.6576847", "0.6571569", "0.6570633", "0.65602845", "0.6556402", "0.6555141", "0.6551112", "0.6550847", "0.6550831", "0.65489745", "0.65489745" ]
0.66826963
43
Gets the requested unique ressource location
public function getLocation();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function oz_get_resource_path ()\r\n{\r\n\t//Defaults to \"./res/\" URI path relative to the current url.\r\n\t//This may be changed to point to some other folders in case Apache mod_rewrite or\r\n\t//SEO friendly urls are used and the \"./res/\" path doesn't point to correct location.\r\n\treturn $_REQUEST['oz_res_uri'];\r\n}", "public function getTargetResourceLocation()\n {\n if (array_key_exists(\"targetResourceLocation\", $this->_propDict)) {\n return $this->_propDict[\"targetResourceLocation\"];\n } else {\n return null;\n }\n }", "protected function getResourcePath()\n {\n return preg_replace('/\\?.*$/', '?kizilare_debug=1&res=', $_SERVER['REQUEST_URI']);\n }", "public function getResourceUri()\n {\n return $this->resource_uri;\n }", "public static function location()\n\t{\n\t\tstatic $location;\n\n\t\tif($location === null)\n\t\t{\n\t\t\t$location = Config::get('mako.asset_location');\n\t\t}\n\n\t\treturn $location;\n\t}", "public function getResource(): string\n {\n return $this->resource;\n }", "public function getResource(): string\n {\n return $this->resource;\n }", "public function get_resource() : string\n {\n return $this->resource;\n }", "public function getRessource()\n\t{\n\t\treturn $this->Ressource;\n\t}", "public function getLocation() {\n\t\tif(isset($this->data['mdid'])) {\n\t\t\treturn $this->data['md_folder'] . $this->data['md_filename'];\n\t\t}\n\t\treturn ;\n\t}", "public static function getLookupPath() {\n return self::$lookup_path;\n }", "public function getResource()\n {\n $path = $this->getPath();\n $query = isset($this->urlParts['query']) ? '?' . $this->urlParts['query'] : '';\n\n return $path . $query;\n }", "function celerity_get_resource_uri($resource, $source = 'phabricator') {\n $resource = ltrim($resource, '/');\n\n $map = CelerityResourceMap::getNamedInstance($source);\n $response = CelerityAPI::getStaticResourceResponse();\n return $response->getURI($map, $resource);\n}", "public function get_resource();", "public function getPath(): string {\n $meta_data = stream_get_meta_data($this->file);\n return $meta_data[\"uri\"];\n }", "public function fullPath(){\n\t $this->path = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];\n\treturn $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];\n }", "public function getSrcPath()\n {\n return $this->getSettingArray()[\"src_path\"];\n }", "public function getServerSource()\n {\n return Yii::$app->storage->fileServerPath($this->filter_id . '_' . $this->file->name_new_compound);\n }", "protected function get_uri()\n {\n }", "public function getFoundPath() {}", "public function getCanonicalLocation(): string;", "public function getResourceName()\n { \n switch ($this->type){\n case 'project': \n return Project::find($this->resourse); \n break;\n \n case 'estimate': \n return Estimate::find($this->resourse); \n break;\n \n default :\n return null;\n break;\n } \n }", "private function getImageSourcePath()\r\n {\r\n // check if relative\r\n if(substr($this->_imagesource, 0, 2) == \"..\" || $this->_imagesource{0} == \".\")\r\n {\r\n return dirname($_SERVER['SCRIPT_FILENAME']) . '/' . $this->_imagesource;\r\n }\r\n else\r\n {\r\n return $this->_imagesource;\r\n }\r\n }", "public function getSource()\n {\n return Yii::$app->storage->fileAbsoluteHttpPath($this->filter_id . '_' . $this->file->name_new_compound);\n }", "public function get_uri()\n {\n }", "public function getResourceId()\n {\n if (array_key_exists(\"resourceId\", $this->_propDict)) {\n return $this->_propDict[\"resourceId\"];\n } else {\n return null;\n }\n }", "public function getResourceId()\n\t{\n\t\treturn 'Location';\n\t}", "abstract public function get_thumbnail_source_path();", "public function getResourceSpacePath()\n\t{\n\t\treturn realpath(dirname(__FILE__).'/../../../'.Yii::app()->config->system['rsDirectory']).'/';\n\t}", "public function url()\n\t{\n\t\t$this->buildImage();\n\t\treturn $this->buildCachedFileNameUrl;\n\t}", "public function getSourceLocation()\n {\n return $this->source_location;\n }", "public function getSourceFullUrl()\n {\n return $this->source_full_url;\n }", "private function getPath() {\n return '%2F' . urlencode($this->source) . '%2F' . urlencode($this->campaign) .'%2F' . urlencode($this->content);\n }", "public function getPathLocation(): string;", "public function get_source_slug();", "public function get_cached_path() {\n // Set either the source or cache file as our datasource\n if ($this->serve_default)\n {\n $file_data = $this->source_file;\n }\n else\n {\n $file_data = $this->cached_file;\n }\n\n // Output the file\n return $file_data;\n }", "public function mainImageURL()\n {\n if ($this->image) {\n $imageLocation = $this->image->location;\n } else {\n // If the image cannot be displayed, show a generic image.\n $imageLocation = 'generic/generic1.jpg';\n }\n\n return Storage::url($imageLocation);\n }", "function ImageSRC()\n\t{\treturn $this->imagelocation . (int)$this->id . \".jpg\";\n\t}", "public function getLocationLinkTemplate()\n {\n return $this->scopeConfig->getValue(self::XML_PATH_LOCATION_LINK_TEMPLATE, ScopeInterface::SCOPE_STORE);\n }", "public function getResource();", "public function getResource();", "public function getResource();", "public function getResource();", "public function getResource();", "public function getResource();", "function getFSResource()\n {\n return $this->_c_givenResource;\n }", "public function getAbsoluteSrc();", "public function getFileBaseUrl()\n {\n return Mage::getBaseUrl('media').'family'.'/'.'file';\n }", "public function get_thumb_relative_path(){\n\t\treturn $this->dir . '/' . $this->get_thumb_name();\n\t}", "public function getResourceId()\n {\n $this->resourceId;\n }", "public function getResourceName();", "public static function getURI() {\n\n return self::loadUrl();\n }", "protected function _getResource()\n {\n return parent::_getResource();\n }", "protected function _getResource()\n {\n return parent::_getResource();\n }", "protected function _getResource()\n {\n return parent::_getResource();\n }", "public function GetSourceResource()\n {\n return $this->_sourceResource;\n }", "public function getResource(){\n return $this->resource;\n }", "public function getUrl(){\n return $this->server->getUrl() . \"/\" . $this->name;\n \n }", "protected function base()\n {\n return $this->use_production\n ? self::PRODUCTION_URI\n : self::DEVELOPMENT_URI;\n }", "public function getRealUrlAliasBase(): string;", "private static function extractCrsrc()\n {\n return empty($_GET[\"_crsrc\"])\n ?\n (empty($_SERVER[\"HTTP_X_CORRELATION_SRC\"])\n ?\n \"\"\n :\n $_SERVER[\"HTTP_X_CORRELATION_SRC\"])\n :\n $_GET[\"_crsrc\"];\n }", "public function resourceUri(): string\n {\n return \"custom-dashboard-{$this->model->id}\";\n }", "protected function ___url() {\n\t\treturn $this->pagefiles->url . $this->basename;\n\t}", "public function getLocationbase()\n {\n return $this->locationbase;\n }", "public function getFullPath()\n {\n $assetstore = $this->get('assetstore');\n\n return $assetstore->getPath().'/'.$this->getPath();\n }", "public function getTemplatePath()\n {\n return $this->document->documentURI;\n }", "public static function getRequestedURL()\n {\n return self::getInstance()->requestedUrl;\n }", "private function getFraxResourceDirPath() {\r\n\t\treturn self::getFraxResourceDirPathWithFolderId($this->fraxionResourceService->getResourceFolderId());\r\n\t}", "public function getImageBaseURL()\r\n {\r\n return $this->base_url;\r\n }", "public function getUrl(){\n\t \treturn $this->dirname.'/'.$this->filename.'.'.$this->extension;\n\t }", "public function get_full_relative_path(){\n\t\treturn $this->dir . '/' . $this->get_full_name();\n\t}", "public static function getThisUrl() {}", "public function getFullPath()\n\t{\n\t\treturn $this->getServerName() . $this->getScriptDirectory();\n\t}", "public function getResource() {}", "protected function get_resource_path( $resolved_url ) {\n\t\tif ( empty( $resolved_url ) ) {\n\t\t\treturn $resolved_url;\n\t\t}\n\t\t$index = strpos( $resolved_url, 'resource/' );\n\t\tif ( false === $index ) {\n\t\t\treturn $resolved_url;\n\t\t}\n\t\treturn substr( $resolved_url, $index + strlen( 'resource/' ) );\n\t}", "function searchURI()\t{\n return $this->getRandomString(mt_rand(0,100));\n\t}", "protected function fullPath()\n {\n\n if ( $this->is_external )\n {\n if ( $this->path )\n {\n $ph = '/' . $this->path;\n } else {\n $ph = null;\n }\n\n return $this->external_url . $ph;\n } else {\n\n // switch the disk\n switch ( $this->disk )\n {\n case 'local':\n\n return Config::get('app.url') . '/' . $this->path;\n break;\n\n case 's3':\n return Config::get('photos.storage_path') . '/' . $this->path;\n break;\n }\n }\n }", "public function getResource()\n {\n return $this->resource ?: parent::getResource();\n }", "public function location()\n {\n return $this->resolvedLocation ?: $this->location;\n }", "public function getUri() {}", "public function getUri() {}", "public function getResourceID()\n {\n return $this->get('ResourceID');\n }", "public function getResourceID()\n {\n return $this->get('ResourceID');\n }", "public function getResourceID()\n {\n return $this->get('ResourceID');\n }", "public function getResourceID()\n {\n return $this->get('ResourceID');\n }", "function ThumbSRC()\n\t{\treturn $this->imagelocation . \"thumbs/\" . (int)$this->id . \".jpg\";\n\t}", "public function getResourceUid()\n {\n if (! $this->isSynced()) {\n return;\n }\n\n return $this->getAttribute('metadata.uid', null);\n }", "public function getResourceUuid()\n {\n return $this->resource_uuid;\n }", "public function getGetTemplateResourceURLResult()\n {\n return isset($this->GetTemplateResourceURLResult) ? $this->GetTemplateResourceURLResult : null;\n }", "public function getLocation()\n {\n return $this->getParameter('location');\n }", "public function getResourcesPath()\n {\n return $this->createPath($this->sourcePath, 'Asar', 'Resources');\n }", "public function getURI();", "public function getUploadUri()\n {\n return 'app/templates/template_'.$this->uid;\n }", "public function getUri():string{\n\t\treturn $this->full_uri;\t\t\n\t}", "public function getUrl()\n {\n if (!$this->filename) {\n return null;\n }\n\n return $this->base_url . '/' . $this->filename;\n }", "public function getFileBaseUrl()\n {\n return Mage::getBaseUrl('media').'invitationstatus'.'/'.'file';\n }", "public function getImageCachePath()\n {\n return $this->getSettingArray()[\"image_cache_path\"];\n }", "protected function _getUrl(): string\n {\n property_exists_or_fail($this, ['id', 'album']);\n\n return Router::url(['_name' => 'photo', 'slug' => $this->get('album')->get('slug'), 'id' => (string)$this->get('id')], true);\n }", "public function getUrl()\n {\n return $this->_url->getUrl('*/variable/template');\n }", "public function get_location()\n\t{\n\t\treturn $this->location;\n\t}", "public function getRelativeURL() {\n\t\treturn $this->_relativeURL;\n\t}" ]
[ "0.6839138", "0.63785166", "0.63706714", "0.62864625", "0.6214698", "0.6211318", "0.6211318", "0.6098804", "0.60958093", "0.60439885", "0.60365", "0.6026259", "0.60213095", "0.5987472", "0.5986834", "0.59703714", "0.59613425", "0.5954918", "0.59525234", "0.5928864", "0.5922767", "0.59037244", "0.58704346", "0.5867772", "0.5861139", "0.58348036", "0.5808819", "0.5803892", "0.57828355", "0.57783073", "0.5766917", "0.57539797", "0.5739184", "0.5734299", "0.5724961", "0.57108307", "0.57044005", "0.5698303", "0.5688289", "0.56796217", "0.56796217", "0.56796217", "0.56796217", "0.56796217", "0.56796217", "0.56768316", "0.56738305", "0.56696206", "0.5662976", "0.56593716", "0.56567174", "0.56559646", "0.5655019", "0.5655019", "0.5655019", "0.56547254", "0.5646272", "0.564572", "0.564351", "0.5635348", "0.56329614", "0.5623938", "0.56227225", "0.56221175", "0.56133306", "0.5609128", "0.55972385", "0.5591273", "0.5587821", "0.558535", "0.55842406", "0.557853", "0.5578251", "0.5568117", "0.55602133", "0.5560176", "0.5557422", "0.55533487", "0.5549452", "0.5548495", "0.5548495", "0.55481327", "0.55481327", "0.55473447", "0.55473447", "0.5544729", "0.5540193", "0.553104", "0.5526563", "0.55241525", "0.55238444", "0.5522916", "0.55184764", "0.5504762", "0.55045503", "0.5504149", "0.55036163", "0.55022645", "0.54933137", "0.5491481", "0.54884094" ]
0.0
-1
Gets the request base dir (to build requests)
public function getBaseDir();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function base_path() {\n return (new Server)->get('DOCUMENT_ROOT');\n }", "function get_base_dir() {\n return $this->base_dir;\n }", "public function getBaseDirectory()\n {\n return $this->getParam(DirectoryKeys::BASE);\n }", "public function basePath() {\n return $this\n ->getRequest()\n ->getBasePath();\n }", "private function basePath(): string\n\t{\n\t\treturn rtrim((new RequestFactory)\n\t\t\t->fromGlobals()->url->basePath, '/');\n\t}", "function base_path()\n {\n return dirname(__DIR__);\n }", "public function getBaseUrl()\n {\n // Current Request URI\n $this->currentUrl = $_SERVER['REQUEST_URI'];\n\n // Remove rewrite base path (= allows one to run the router in a sub folder)\n $basePath = implode('/', array_slice(explode('/', $_SERVER['SCRIPT_NAME']), 0, -1)) . '/';\n\n return $basePath;\n\n }", "public function determineBaseUrl()\n {\n // why this works at all :)\n return dirname($_SERVER['SCRIPT_NAME']);\n }", "function base_path()\n {\n $paths = getPaths();\n\n return $paths['base'];\n }", "function basePath() {\n\t$commonPath = __FILE__;\n\t$requestPath = $_SERVER['SCRIPT_FILENAME'];\n\t\n\t//count the number of slashes\n\t// number of .. needed for include level is numslashes(request) - numslashes(common)\n\t// then add one more to get to base\n\t$commonSlashes = substr_count($commonPath, '/');\n\t$requestSlashes = substr_count($requestPath, '/');\n\t$numParent = $requestSlashes - $commonSlashes + 1;\n\t\n\t$basePath = \".\";\n\tfor($i = 0; $i < $numParent; $i++) {\n\t\t$basePath .= \"/..\";\n\t}\n\t\n\treturn $basePath;\n}", "public static function basedir() {\n\t\t$directory = trim($_SERVER['SUBDIRECTORY'], '/');\n\t\t$directory = str_replace('\\\\', '/', $directory);\n\n\t\treturn '/' . $directory;\n\t}", "public function getBasePath()\n {\n return $this->detectBasePath();\n }", "protected function getBasePath()\n {\n return $this->vfs()->url();\n }", "public function getBaseDirectory()\n {\n return $this->baseDirectory;\n }", "public function getBasePath()\n {\n return dirname(__DIR__);\n }", "public function getBasePath()\n {\n return dirname(__DIR__);\n }", "protected function detectBasePath()\n {\n $filename = basename(\n $this->request->getServerParams()['SCRIPT_FILENAME']\n );\n $baseUrl = $this->getBaseUrl();\n $basePath = $baseUrl;\n\n // basename() matches the script filename; return the directory\n if (basename($baseUrl) === $filename) {\n $basePath = str_replace('\\\\', '/', dirname($baseUrl));\n }\n return $basePath;\n }", "public function getBasePath()\n {\n // Check if server base path is defined, if not define it.\n if ($this->serverBasePath === null) {\n $this->serverBasePath = implode('/', array_slice(explode('/', $_SERVER['SCRIPT_NAME']), 0, -1)) . '/';\n }\n\n return $this->serverBasePath;\n }", "public function getBasePath() {\n\t\treturn $this->settings['npo_api_base_path'];\n\t}", "public function getBasePath()\n {\n return dirname($this->file);\n }", "function serendipity_httpCoreDir() {\n if (!empty($_SERVER['SCRIPT_FILENAME']) && substr(php_sapi_name(), 0, 3) != 'cgi') {\n return dirname($_SERVER['SCRIPT_FILENAME']) . '/';\n }\n\n if (!empty($_SERVER['ORIG_PATH_TRANSLATED'])) {\n return dirname(realpath($_SERVER['ORIG_PATH_TRANSLATED'])) . '/';\n }\n\n return $_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['PHP_SELF']) . '/';\n}", "public function getBaseDir()\n\t{\n\t\treturn $this->baseDir;\n\t}", "public function baseUrl() {\n return dirname($_SERVER['PHP_SELF']) . '/';\n }", "public static function getBasePath()\n {\n $base_path = substr(trim(\\ROOT, '/'), strlen(trim($_SERVER['DOCUMENT_ROOT'], '/')));\n if (DS !== '/') {\n $base_path = str_replace(DS, '/', $base_path);\n }\n return $base_path;\n }", "public static function getBasePath() {\n\t \tif(!isset(self::$basePath)) {\n\t \t\t$script = self::getScriptName();\n\t \t\tself::$basePath = substr (\n\t \t\t\t\t$script,\n\t \t\t\t\t0,\n\t \t\t\t\tstrrpos($script, '/' ));\n\t \t}\n\t \treturn self::$basePath;\n\t }", "public function get_base_dir()\r\n\t\t{\r\n\t\t\treturn str_replace( \"/\", DIRECTORY_SEPARATOR, __DIR__ . \"/../../\" . self::HOME_DIR );\r\n\t\t}", "public function getBasePath()\n {\n if ($this->basePath === null) {\n $this->basePath = dirname(getcwd());\n }\n\n return $this->basePath;\n }", "public function getBaseDirectory(): string\n {\n return $this->baseDirectory;\n }", "public function getBasePath()\n {\n return $this->basePath();\n }", "public function getBasePath()\n {\n return __DIR__ . '/..';\n }", "protected function getBasePath()\n {\n return getcwd();\n }", "private static function get_request(){\n\t\t if(!self::$request) {\n\t\t\t\t\t\t\n \t\t\t\t// Get the query string value into which the .htaccess file rewrote the request path.\n \t\t\t\t$query = $_GET['q'];\n \t\t\t\t\n \t\t\t\t// Get the path to the current directory: Take the path to the current file, and remove the website's root directory from it.\n \t\t\t\t$current_dir = str_replace($_SERVER['DOCUMENT_ROOT'], '', dirname(__FILE__));\n \t\t\t\t\n \t\t\t\t// Remove the path to the current directory from the request path, storing the result as our final request.\n \t\t self::$request = str_replace($current_dir, '', $query);\n }\n\t\t\treturn self::$request;\t\n\t\t}", "public final function getApplicationBaseDir()\r\n\t{\r\n\t\treturn $this->m_basedir;\r\n\t}", "function getBaseUrl()\n{\n $doc_root_folders = utf8_explode(\"/\", $_SERVER['DOCUMENT_ROOT']);\n $cwd__folders = utf8_explode(\"/\", getcwd());\n //the difference between those is the path from doc root to the folder where\n //all files for this URI reside\n $path_from_doc_root = implode(\"/\", array_diff($cwd__folders, $doc_root_folders));\n return $_SERVER['HTTP_HOST'].'/'.$path_from_doc_root;\n}", "public static function getBaseUrl() {\n return substr($_SERVER[\"REQUEST_URI\"], 0, strrpos($_SERVER[\"REQUEST_URI\"], \"/\") + 1);\n }", "public static function getBaseDir() {\n\t return self::$baseDir ??\n\t (self::$baseDir = dirname(getcwd()));\n\t}", "function get_base()\n\t{\n\t\t$site_url = get_site_option('siteurl');\n\t\t$base = trim(preg_replace('#https?://[^/]+#ui', '', $site_url), '/');\n\n\t\t// @since 1.3.0 - guess min dir to check for any dir that we have to\n\t\t// remove from the base\n\t\t$this->_guess_min_dir();\n\n\t\t$this->base = !empty($this->remove_from_base)\n\t\t\t? preg_replace('#^' . $this->remove_from_base . '/?#ui', '', $base, 1)\n\t\t\t: $base;\n\t}", "protected function getBaseUrl()\n {\n $module_dir = '';\n if ($this->checkSecureUrl()) {\n $module_dir = _PS_BASE_URL_SSL_ ;\n } else {\n $module_dir = _PS_BASE_URL_ ;\n }\n return $module_dir;\n }", "public function get_base_url()\r\n\t\t{\r\n\t\t\t$url = \"http\";\r\n \t\t\tif ( isset( $_SERVER[ 'HTTPS' ] ) && $_SERVER[ 'HTTPS' ] == \"on\" ) $url .= \"s\";\r\n\t\t\t$url .= \"://\";\r\n \t\t\tif ( $_SERVER[ 'SERVER_PORT' ] != \"80\" )\r\n\t\t\t\t$url .= $_SERVER[ 'SERVER_NAME' ]. \":\" . $_SERVER[ 'SERVER_PORT' ] . $_SERVER[ 'REQUEST_URI' ];\r\n\t\t\telse\r\n\t\t\t\t$url .= $_SERVER[ 'SERVER_NAME' ] . \"/\";\r\n\t\t\t\r\n\t\t\treturn $url . self::HOME_DIR;\r\n\t\t}", "static public function getGoogBasePath()\n {\n $base_path = sfConfig::get('app_googleClosure_base-path');\n \n return rtrim($base_path, '/');\n }", "function getBaseURI(){\n\t\n\treturn \"http://\" . $_SERVER[ 'HTTP_HOST' ] . dirname( $_SERVER[ 'PHP_SELF' ] );\n}", "public function get_base_root()\r\n {\r\n return realpath(ROOT_DIR_NAME);\r\n }", "public function getBasePath()\n {\n if ($this->_basePath === null) {\n $class = new \\ReflectionClass($this);\n $this->_basePath = dirname($class->getFileName());\n }\n return $this->_basePath;\n }", "public function getBasePath()\n\t{\n\t\treturn $this->basePath;\n\t}", "function get_base_url() {\n $fin_string = '';\n $parts = explode('/', $this->request_uri);\n if (count($parts) > 2) {\n $subparts = array_slice($parts, 2);\n foreach ($subparts as $p)\n $fin_string .= $p . '/';\n return substr($fin_string, 0, -1);\n }\n return $fin_string;\n }", "public function getBasePath(): string\n {\n return $this->basePath;\n }", "protected function getBaseDir()\n {\n $ref = new \\ReflectionObject($this);\n\n return realpath(dirname(dirname($ref->getFileName())));\n }", "public function getBasePath() { return self::$basePath; }", "private function get_base_path() : string {\n return plugin_dir_path( dirname( __FILE__, 2 ) );\n }", "public function getBasePath()\n {\n return $this->basePath;\n }", "function base_path() {\n\treturn str_replace('index.php','',$_SERVER['SCRIPT_NAME']);\n}", "function tsapress_base_dir(){\n\t$tsapress_base_dir = trim(next(explode(home_url(), site_url())), \"/\"); //grabs base directory structure if wordpress is installed in a subdirectory\n\tif ($tsapress_base_dir != \"\") $tsapress_base_dir .= \"/\";\n\treturn $tsapress_base_dir;\t//outputs \"[base]/\"\n}", "public function getRequestPath()\n {\n return isset($this->request_path) ? $this->request_path : '';\n }", "public function getBaseDirectory(): string\n {\n return $this->file->getBaseDirectory();\n }", "public static function getBasePath()\n {\n\n $baseUrl = trim(_PS_BASE_URL_, '/') . '/';\n\n $baseUri = trim(__PS_BASE_URI__, '/');\n\n // Do some check on subfolder.\n if(!empty($baseUri)) {\n\n $baseUri = $baseUri . '/';\n\n }\n\n return $baseUrl . $baseUri;\n }", "public function getBaseURL(){\n\t\tif($this->htaccess){\n\t\t\treturn \"/\";\n\t\t}\n\t\treturn \"\";\n\t}", "public static function basePath()\n {\n if(!self::$BASE_PATH){\n $reflector = new \\ReflectionClass(\\BethelChika\\Laradmin\\LaradminServiceProvider::class);\n self::$BASE_PATH= dirname(dirname($reflector->getFileName()));\n }\n return self::$BASE_PATH;\n }", "public function getBasePath(): string;", "public function getBasePath(): string;", "public static function getBaseUrl ()\r\n\t{\r\n\t\t# Obtain the value\r\n\t\t$baseUrl = dirname (substr ($_SERVER['SCRIPT_FILENAME'], strlen ($_SERVER['DOCUMENT_ROOT'])));\r\n\t\t\r\n\t\t# Convert backslashes to forwarded slashes if necessary\r\n\t\t$baseUrl = str_replace ('\\\\', '/', $baseUrl);\r\n\t\t\r\n\t\t# Deal with the special case of an application at top-level\r\n\t\tif ($baseUrl == '/') {$baseUrl = '';}\r\n\t\t\r\n\t\t# Return the value\r\n\t\treturn $baseUrl;\r\n\t}", "static function base()\n {\n return trim(App::router()->getBase(), '/');\n }", "public function getRootDir()\n {\n return $this->server['DOCUMENT_ROOT'];\n }", "protected function _getBase ()\n {\n global $config;\n return $config->current['BASE'];\n }", "function getBaseUrl(){\n return $_SERVER['SERVER_NAME'];\n}", "public static function getBaseUrl()\n {\n $protocol = isset($_SERVER['HTTPS']) ? 'https' : 'http';\n $url = $protocol . '://' . $_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT'] . $_SERVER['REQUEST_URI'];\n\n // cut at last '/' (we dont want to see index.php)\n return substr($url, 0, strrpos($url, '/'));\n }", "private function basePath()\n {\n $directory = dirname((new \\ReflectionClass(self::class))->getFileName());\n\n return $directory . '/../../../../twig-bridge/src/BenGorUser/TwigBridge/Infrastructure/Ui';\n }", "public function getBaseDirectory(): string\n {\n if ( ! $this->baseDirectory) {\n $this->baseDirectory = dirname($this->getPath());\n }\n\n return $this->baseDirectory;\n }", "public function getBaseURL() {\n $url = $_SERVER['SERVER_PORT'] == '443' ? 'https://' : 'http://';\n \n $url .= $_SERVER['SERVER_NAME'].dirname($_SERVER['PHP_SELF']);\n \n return $url;\n }", "public function base_dir(){\n return $this->plugin_dir() . 'base/';\n }", "public function getBasePath() : string{\n return $this->basePath;\n }", "public function get_base_uri()\r\n\t{\r\n\t\tif($this->base_uri != null)\r\n\t\t\treturn $this->base_uri;\r\n\t\t\r\n\t\treturn htmlentities(dirname($_SERVER['PHP_SELF']), ENT_QUOTES | ENT_IGNORE, \"UTF-8\") . '/';\r\n\t}", "protected function getBasePath()\n\t{\n\t\tif ($this->_basePath !== null)\n\t\t\treturn $this->_basePath;\n\t\telse\n\t\t\treturn $this->_basePath = realpath(Yii::app()->basePath.'/../').'/';\n\t}", "public function getAppBaseDirName(){\n return $this->getSite()->getParent()->getAppDir(true);\n }", "public function getBasePath();", "public function getBasePath();", "public function getBasePath();", "public function getBasePath();", "private function baseName(){\n \n if ($this->baseName===null) {\n $this->baseName= implode('/', array_slice(explode('/', $_SERVER['SCRIPT_NAME']), 0, -1)) . '/';\n }\n return $this->baseName;\n\n }", "function this_dir_url() {\n $url = isset($_SERVER['HTTPS']) ? 'https://' : 'http://';\n $url .= $_SERVER['SERVER_NAME'];\n $url .= $_SERVER['REQUEST_URI'];\n\n return dirname($url);\n}", "protected function getAbsoluteBasePath() {}", "public function getBaseUrl()\n {\n return $this->request ? $this->request->getBaseUrl() : null;\n }", "static public function getRootPath() {\n\t\treturn Page::$base_path;\n\t}", "public function getBaseUrl()\n {\n foreach($this->requestData as $key => $data)\n {\n $this->baseUrl = $this->baseUrl . '&' . $key . '=' . $data;\n }\n\n return $this->baseUrl;\n }", "public static function getBaseURL(){\n return self::$baseURL;\n }", "public static function getBasepath()\n {\n if (!self::$basePath) {\n $candidate = getcwd() ?: dirname(dirname(dirname(dirname(__FILE__))));\n self::$basePath = rtrim($candidate, DIRECTORY_SEPARATOR);\n }\n\n return self::$basePath;\n }", "public static function getBasepath()\n {\n if (!self::$basePath) {\n $candidate = getcwd() ?: dirname(dirname(dirname(dirname(__FILE__))));\n self::$basePath = rtrim($candidate, DIRECTORY_SEPARATOR);\n }\n\n return self::$basePath;\n }", "public static function getBasepath()\n {\n if (! self::$basePath) {\n $candidate = getcwd() ?: dirname(dirname(dirname(dirname(__FILE__))));\n self::$basePath = rtrim($candidate, DIRECTORY_SEPARATOR);\n }\n\n return self::$basePath;\n }", "private function obtenerdir() {\r\n $request = $this->request;\r\n $port = \"\";\r\n if ($request->getPort() != '80') {\r\n if ($request->isSecure()) {\r\n if ($request->getPort() != '443') {\r\n $port = ':' . $request->getPort();\r\n }\r\n } else {\r\n $port = ':' . $request->getPort();\r\n }\r\n }\r\n $dir = $request->getScheme() . '://' . $request->getHost() . $port;\r\n return $dir;\r\n }", "function base_url() {\n return Micro::get(Config::class)->get('app.base_url');\n }", "public static function base()\n {\n\n static $base = false;\n\n if ($base === false) {\n\n $base = Config::get('monstra.base_url');\n\n // Try to autodetect base url if its not configured\n if ($base === '' && isset($_SERVER['HTTP_HOST'])) {\n\n $protocol = Request::isSecure() ? 'https' : 'http';\n\n $script = $_SERVER['SCRIPT_NAME'];\n\n $base = rtrim($protocol . '://' . $_SERVER['HTTP_HOST'] . str_replace(basename($script), '', $script), '/');\n }\n\n // Add index.php?\n !Config::get('monstra.clean_urls') && $base .= '/index.php';\n }\n\n return $base;\n }", "public function get_strBasePath()\n {\n return $this->strBasePath;\n }", "private function getDir() {\n return sprintf(\"%s/%s/\", app_path(), config('newportal.portlets.namespace'));\n }", "function get_base_url() {\n $protocol = strtolower(substr($_SERVER[\"SERVER_PROTOCOL\"], 0, 5)) == 'https://' ? 'https://' : 'http://';\n\n /* returns /myproject/index.php */\n $path = $_SERVER['PHP_SELF'];\n /*\n * returns an array with:\n * Array (\n * [dirname] => /myproject/\n * [basename] => index.php\n * [extension] => php\n * [filename] => index\n * )\n */\n $path_parts = pathinfo($path);\n $directory = $path_parts['dirname'];\n /*\n * If we are visiting a page off the base URL, the dirname would just be a \"/\",\n * If it is, we would want to remove this\n */\n $directory = ($directory == \"/\") ? \"\" : $directory;\n\n /* Returns localhost OR mysite.com */\n $host = $_SERVER['HTTP_HOST'];\n\n /*\n * Returns:\n * http://localhost/mysite\n * OR\n * https://mysite.com\n */\n return $protocol . $host . $directory;\n}", "public function getBasePath()\n {\n return config('nar.generator.basePath', app()->path()) . '/Api/'\n . strtoupper(env('API_VERSION')) . '/'\n . 'Controllers';\n }", "private function getBaseURL() {\n $pageURL = 'http';\n if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') {\n $pageURL .= 's';\n }\n $pageURL .= '://';\n if ($_SERVER['SERVER_PORT'] !== '80') {\n $pageURL .= $_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT'] . $_SERVER['REQUEST_URI'];\n } else {\n $pageURL .= $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];\n }\n $splitted = explode('?', $pageURL);\n if (substr($splitted[0], -1) === '/') {\n return $splitted[0];\n }\n\n return $splitted[0] . '/';\n }", "public function getFilesBase();", "protected function detectBaseUrl()\n {\n $filename = $this->request->getServerParams()['SCRIPT_FILENAME'];\n $phpSelf = $this->request->getServerParams()['PHP_SELF'];\n $baseUrl = '/';\n\n $basename = basename($filename);\n if ($basename) {\n $path = ($phpSelf ? trim($phpSelf, '/') : '');\n $basePos = strpos($path, $basename) ?: 0;\n $baseUrl .= substr($path, 0, $basePos) . $basename;\n }\n\n return$baseUrl;\n }", "public static function get_upload_base() {\n\t\t$upload = wp_upload_dir();\n\n\t\treturn trailingslashit( $upload['basedir'] ) . static::SUB_DIR . '/';\n\t}", "public function getBaseUrl()\n\t\t{\n\t\t\treturn $this->base_url;\n\t\t}", "static function getCurrentScriptDir(){\n \n return Strings::ditchLastPiece($_SERVER['SCRIPT_NAME']);\n \n }" ]
[ "0.75013715", "0.7467928", "0.7378694", "0.73451674", "0.73366517", "0.7319462", "0.72973645", "0.72922385", "0.728756", "0.7207071", "0.69875634", "0.6968603", "0.6956582", "0.695205", "0.69432056", "0.69432056", "0.6939308", "0.6938604", "0.6913609", "0.68929994", "0.6878994", "0.6878451", "0.68726075", "0.68577665", "0.683144", "0.68286717", "0.6818182", "0.6807774", "0.6800501", "0.6792624", "0.67902756", "0.6767368", "0.6764823", "0.67618614", "0.675367", "0.6748993", "0.672286", "0.6709049", "0.66902465", "0.668849", "0.66805756", "0.6650518", "0.6634551", "0.66308767", "0.66298974", "0.6629142", "0.66271544", "0.66270304", "0.6618722", "0.6597601", "0.6595006", "0.6586825", "0.6584586", "0.65832686", "0.65770894", "0.65735763", "0.65731454", "0.6571725", "0.6571725", "0.65649384", "0.65529925", "0.65421945", "0.6541872", "0.65409327", "0.6532149", "0.653052", "0.65169924", "0.6508063", "0.6503164", "0.6498734", "0.64951193", "0.6491385", "0.6483979", "0.64836115", "0.64836115", "0.64836115", "0.64836115", "0.64775544", "0.64705145", "0.6461271", "0.6448836", "0.64432216", "0.644065", "0.6431288", "0.6416095", "0.6416095", "0.6415654", "0.64150417", "0.64101106", "0.64009136", "0.640067", "0.64004445", "0.6389059", "0.6387524", "0.6379749", "0.6373154", "0.6372045", "0.6362997", "0.6356425", "0.6349448" ]
0.66827744
40
Sets the requested unique ressource location
public function setLocation($url);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function setResource(): String;", "public function setImageSourcePath($strSource = NULL) {\r\n\t\t\t$this->objParent->source_path = __SITE_ROOT__ . str_replace(__SITE_ROOT__, \"\", $strSource);\t \r\n\t\t }", "public function setResource( $uri ) {\n\t\tif ( self::validateResource($uri) ) {\n\t\t\t$this->resource = TRUE;\n\t\t\t$this->setParameter( \"info\", htmlentities( $uri ) );\n\t\t}\n\t}", "protected function setInitialRelativePath() {}", "public function setTargetResourceLocation($val)\n {\n $this->_propDict[\"targetResourceLocation\"] = $val;\n return $this;\n }", "protected function set_url($location=null)\n\t{\n\n\t\t$this->url = $this->api_host.$location;\n\t\t\n\t}", "function setLocations($sFileName)\n\t{\n\t\t$this->filename = basename($sFileName);\n\t\t$this->sFileLocation = $sFileName;\n\t\t$this->sImageURL = $sFileName;\n\t}", "protected function setDestination() {}", "public function setPaths()\n\t{\n\t\t$this->componentURL = Request::base() . 'publications/';\n\t\t$this->resourceURL = $this->componentURL . $this->id;\n\n\t\t$database = \\App::get('db');\n\t\t$pub = new \\Components\\Publications\\Tables\\Publication($database);\n\t\t$publication = $pub->getPublication($this->id);\n\t\t$this->resourceSite = \\Components\\Publications\\Helpers\\Html::buildPubPath($this->id, $publication->version_id, '', $publication->secret, 1);\n\t}", "function oz_get_resource_path ()\r\n{\r\n\t//Defaults to \"./res/\" URI path relative to the current url.\r\n\t//This may be changed to point to some other folders in case Apache mod_rewrite or\r\n\t//SEO friendly urls are used and the \"./res/\" path doesn't point to correct location.\r\n\treturn $_REQUEST['oz_res_uri'];\r\n}", "private function setRqueUri(){\n }", "public function set_cache_location($location = './cache')\n {\n }", "final public function setTempFileOwner($source){\n\n //return an object_uri;\n return '';\n }", "protected function detectResourcesBaseUri()\n {\n $this->resourcesBaseUri = 'http://baseuri/_Resources/';\n }", "public function setResource($value)\n {\n if (!is_string($value) || empty($value))\n throw new CException(Yii::t('EWebFeed', 'resource must be a non-empty string'));\n EWebFeed::validateURI($value);\n $this->resource = $value;\n }", "function setSyncUrl()\n {\n }", "private static function setUristr() {\n $uri_request = HttpHelper::getUri();\n if(WEB_DIR != \"/\") {\n self::$uri = str_replace(WEB_DIR, \"\", $uri_request);\n } else {\n self::$uri = substr($uri_request, 1);\n }\n }", "function setLocation($location);", "public static function setUrl(): void\n\t{\n\n\t\tif (strpos(static::$fullUrl, '?')) {\n\t\t\tstatic::$url = substr(static::$fullUrl, 0, strpos(static::$fullUrl, '?'));\n\t\t} else {\n\t\t\tstatic::$url = static::$fullUrl;\n\t\t}\n\n\t}", "protected function _resourceMap()\n\t{\n\t\t$resourceMap = new \\ResourceMapGenerator();\n\t\t$id = '';\n\n\t\t// Retrieves the ID from alias\n\t\tif (substr(strtolower($this->_alias), -4) == '.rdf')\n\t\t{\n\t\t\t$lastSlash = strrpos($this->_alias, '/');\n\t\t\t$lastDot = strrpos($this->_alias, '.rdf');\n\t\t\t$id = substr($this->_alias, $lastSlash, $lastDot);\n\t\t}\n\n\t\t// Create download headers\n\t\t$resourceMap->pushDownload($this->config->get('webpath'));\n\t\texit;\n\t}", "public function set_path() {\n\t\t\t\n\t\t\t// pick up the path types\n\t\t\t$path_types = include_once(CONFIGPATH . 'path-types.php' );\n\n\t\t\t// get the base path for the deploy type\n\t\t\t$base_path = $path_types[ $this->repo[ 'type' ] ];\n\n\t\t\t// check if it is a valid path\n\t\t\t$this->is_path_valid( $base_path );\n\n\t\t\t// append the repositories name to get the final deploy path\n\t\t\t$this->repo[ 'path' ] = $base_path . '/' . $this->repo[ 'name' ];\n\t\t}", "public function setResourcePath($resourcePath);", "public function __construct(){\n\t\t$this->url = YaffmapConfig::get('url').$this->path;\n\t}", "protected function setPath()\n {\n $this->path = self::PATH_SKIN\n . LC_DS . $this->skin\n . ($this->locale && $this->locale != 'en' ? '_' . $this->locale : '')\n . LC_DS;\n }", "public function setIdentifier(){\n\n \t$this->fileIdentifier = $this->getIdentifier();\n }", "private function somebody_set_us_up_the_base()\n\t{\n\t\tdefine('BASE', SELF.'?S='.ee()->session->session_id().'&amp;D=cp'); // cp url\n\t}", "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 static function setFullUrl(): void\n\t{\n\t\t$requestUri = urldecode(Server::get('REQUEST_URI'));\n\t\tstatic::$fullUrl = rtrim(preg_replace('#^' . static::$scriptDirectory . '#', '', $requestUri), '/');\n\t}", "protected function initiateUrl()\n\t{\n\t\t// base url\n\t\tif($this->app->config->has('app.url'))\n\t\t\t$this->setBase($this->app->config->get('app.url'));\n\n\t\t// asset url\n\t\tif($this->app->config->has('asset.url'))\n\t\t\t$this->setAsset($this->app->config->get('asset.url'));\n\t}", "protected function setUrl() {\r\n\t\t$this->url = htmlspecialchars(t3lib_div::getIndpEnv('TYPO3_REQUEST_URL'), ENT_QUOTES);\r\n\t}", "public function setResourceId(?string $value): void {\n $this->getBackingStore()->set('resourceId', $value);\n }", "public function setSource( $url ) {\n\t\t$this->source = $url;\n\t}", "function setPath() {\n\n // Wp installation path\n $wp_install_path = str_replace( 'http://' . $_SERVER['HTTP_HOST'], '', site_url());\n\n // Set the instance starting path\n $this->path = $wp_install_path . App::getOption('path');\n\n // Grab the server-passed \"REQUEST_URI\"\n $this->current_uri = $this->request->server()->get('REQUEST_URI');\n\n // Remove the starting URI from the equation\n // ex. /wp/cocoon/mypage -> /mypage\n $this->request->server()->set(\n 'REQUEST_URI', substr($this->current_uri, strlen($this->path))\n );\n\n }", "public function setFull_Filename(){\n \t $this->filename = $this->setDestination().'/'.$this->id.'.'.$this->ext;; \n\t}", "public function set_locations() {\n\t\t\t$this->locations = $this->wpseo_local_locations_repository->get( [], false );\n\t\t}", "protected function initCurrentUrl() {}", "protected function initCurrentUrl() {}", "protected function setCachePath(): void\n {\n $filename = basename($this->pathFile);\n\n $this->pathCache = $this->cacheDir.'/'.$filename;\n }", "private function set_img_path()\n {\n $file_name = sprintf('%03d',$this->img_count);\n $this->img_path = L_TEMP_IMAGE_PATH.$file_name.\".png\";\n $this->img_count++;\n }", "function setBufferFile()\r\n\t {\r\n\t \t//$this->_bufferFile = '/tmp/fabrik_package-' . $this->label . '.xml';\r\n\t\t$this->_bufferFile = JPATH_SITE . \"/administrator/components/com_fabrik/fabrik_package-\". $this->label . '.xml';\r\n\t }", "public function setResource($type, $name, $object, ?\\SetaPDF_Core_Document $document = null) {}", "public function set_origin($origin){\n \t$this->origin = $origin;\n }", "protected function setSource($source) {}", "public function setUri($uri) {}", "protected function setApiSourceInfo() {\n $this->apiSourceInfo = pathinfo($this->api['source']);\n }", "function setImagePath($image_path) {\n $this->local_image_path = $image_path;\n if(empty($this->local_image_path)) {\n $this->local_image_path = SugarThemeRegistry::get($this->local_theme)->getImagePath();\n }\n if(isset($this->xTemplate))$this->xTemplate->assign(\"IMAGE_PATH\", $this->local_image_path);\n}", "function SetFileName(){\n\t\t$this->FindRootFile();\n\t\t$this->BookLink = $_SERVER['DOCUMENT_ROOT'].'/'.$this->BookLink.'/'.$this->RootFile;\n\t}", "public function initialize(){\n $this->setSource('location');\n }", "public function setImageOutputPath($strPath = NULL) {\r\n\t\t\t$this->objParent->target_path = __SITE_ROOT__ . str_replace(__SITE_ROOT__, \"\", $strPath);\r\n\t\t }", "public function test_comicEntityIsCreated_AResourceURI_setResourceURI()\n {\n $sut = $this->getSUT();\n $resourceURI = $sut->getResourceURI();\n $expected = URI::create('http://gateway.marvel.com/v1/public/comics/41530');\n $this->assertEquals($expected, $resourceURI);\n }", "public function setLocation(string $location): void;", "public function set_file_path($global_var){\r\n $gb = $GLOBALS[$global_var];\r\n $root = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . '/';\r\n echo \"<br />\" . $root . \"<br />\";\r\n \r\n if($this->local == 'true'){\r\n return \"https://\" . $_SERVER[\"HOME\"] . $gb . $this->file_path;\r\n }else{\r\n return $this->file_path;\r\n }\r\n \r\n }", "public function setPreferredLocation($location) {\n $this->preferredLocation = $location;\n }", "protected function get_uri()\n {\n }", "public function setLocation($url = null);", "function setSourcepath(Path $sourcepath)\r\n\t{\r\n\t\tif ($this->sourcepath === NULL)\r\n\t\t{\r\n\t\t\t$this->sourcepath = $sourcepath;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$this->sourcepath->append($sourcepath);\r\n\t\t}\r\n\t}", "protected function defineSitePath() {}", "public function setResource($resource);", "function Set_RequiredStorageLocation($requiredLocation)\r\n\t{\r\n\t\t$this->_requiredLocation = $requiredLocation;\r\n\t}", "private function setUrl()\n {\n curl_setopt($this->curl, CURLOPT_URL, $this->server);\n }", "public function preRenderUrl()\n {\n\n if (!$this->context->element)\n $this->context->element = $this->getIdKey();\n\n $this->defUrl = $this->context->toUrlExt();\n $this->defAction = $this->context->toActionExt();\n\n }", "private function setResource()\n {\n $path = $_SERVER['PATH_INFO'];\n $params = explode('/', $path);\n $this->_requestResource = $params[2];\n if (!in_array($this->_requestResource, $this->_allowResource)) {\n throw new Exception(\"Request resource not allowed!\", 405);\n }\n\n $this->_version = $params[1];\n\n if (!$this->notValid($params[3])) {\n $this->_requestUri = $params[3];\n }\n }", "public function setUrl()\n {\n $this->set('url', function() {\n $url = new Url();\n $url->setBaseUri('/');\n return $url;\n });\n }", "public function location(string $location): static\n {\n return $this->setAssetProperty('location', $location);\n }", "protected function setLocation($location) {\r\n // TODO: Don't really know what this is?\r\n $this->location = $this->create($location);\r\n }", "public function setURI($uri) {\n $this->uri = $uri;\n }", "public function setServerRelativeUrl($value)\n {\n $this->setProperty(\"ServerRelativeUrl\", $value, true);\n }", "function setupInitialVars() {\n\t\tparent::setupInitialVars();\n\t\t\n\t\t$this->getEngine()->assign('daoUriView', $this->buildUriPath(grantsController::ACTION_SEARCH));\n\t}", "function setID($path);", "public function fullPath(){\n\t $this->path = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];\n\treturn $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];\n }", "public function setScriptPath()\n\t{\n\t\t$this->scriptPath = Yii::getPathOfAlias('webroot').$this->ds.$this->suffix.$this->ds;\n\t}", "protected\n function setPublicUrl()\n {\n $publicUrl = url() . config('album.paths.cache');\n\n return $publicUrl;\n }", "private function setResource()\n {\n try {\n $this->setContext();\n $this->resource = stream_socket_client(\n self::$host . \":\" . self::$port,\n $errno,\n $errstr,\n self::TIMEOUT,\n STREAM_CLIENT_CONNECT,\n $this->context\n );\n $this->serverInfo = stream_get_meta_data($this->resource);\n $this->SMTPResponses[\"initial\"] = fgets($this->resource, 4096);\n } catch (\\Exception $e) {\n $this->error = $e->getMessage();\n $this->errorNumber = $e->getCode();\n }\n $this->connected = is_resource($this->resource);\n }", "public function setSiteUrl()\n {\n }", "public function setResourcesUploaded($view,$username)\n {\n\t\t$resourceDb=new \\Foundation\\Resource();\n\t\t$resources=$resourceDb-> getResourcesByUser($username);\n\t\t$view->assign('resource',$resources);\n\t}", "public function setAlias()\n\t{\n\t\tif(empty($this->alias)){\n $this->alias = Amputate::rus2route(Amputate::getLimb($this->title, 20, ''));\n }\t\n\t}", "public function setLocation($location)\n {\n $this->location = $location;\n }", "public function setLocation($location)\n {\n $this->location = $location;\n }", "public function setAssetUrlBaseRemap($remap);", "function ImageSRC()\n\t{\treturn $this->imagelocation . (int)$this->id . \".jpg\";\n\t}", "function set_url($path = null) {\n //check if is a valid url \n if (filter_var($path, FILTER_VALIDATE_URL) !== FALSE) {\n return $path;\n } else {\n return SITE_ADDR . $path;\n }\n}", "public function setResource($resource) {\n\n $this->resource = $resource;\n }", "protected function getResourcePath()\n {\n return preg_replace('/\\?.*$/', '?kizilare_debug=1&res=', $_SERVER['REQUEST_URI']);\n }", "protected function setPersonalDictionaryPath() {}", "public function getTargetResourceLocation()\n {\n if (array_key_exists(\"targetResourceLocation\", $this->_propDict)) {\n return $this->_propDict[\"targetResourceLocation\"];\n } else {\n return null;\n }\n }", "function resources_url($filename = NULL)\n {\n return 'https://resources.crud4.com/v1/' . $filename;\n //return site_url('resources/' . $param);\n }", "private function setUrl(): void\n {\n $completeUrl = $_SERVER['REQUEST_URI'];\n $explodedUrl = \\explode('?', $completeUrl);\n $this->url = trim($explodedUrl[0], '/'); // Cleaned URL\n }", "public static function set($target_file)\r\n\r\n {\r\n header('Location: index.php?page=display&filename=' .$target_file );\r\n \r\n }", "function qa_set_request($request, $relativeroot, $usedformat = null)\n{\n\tif (qa_to_override(__FUNCTION__)) { $args=func_get_args(); return qa_call_override(__FUNCTION__, $args); }\n\n\tglobal $qa_request, $qa_root_url_relative, $qa_used_url_format;\n\n\t$qa_request = $request;\n\t$qa_root_url_relative = $relativeroot;\n\t$qa_used_url_format = $usedformat;\n}", "public static function location()\n\t{\n\t\tstatic $location;\n\n\t\tif($location === null)\n\t\t{\n\t\t\t$location = Config::get('mako.asset_location');\n\t\t}\n\n\t\treturn $location;\n\t}", "public function setFullpath($fullpath) {\n $this->fullpath = $fullpath;\n }", "public function getResource() {}", "public function init()\n {\n self::$updateTime = \\Yii::$app->params['update_time'];\n\n if ($this->sourcePath !== null) {\n $this->sourcePath = rtrim(\\Yii::getAlias($this->sourcePath), '/\\\\');\n }\n if ($this->basePath !== null) {\n $this->basePath = rtrim(\\Yii::getAlias($this->basePath), '/\\\\');\n }\n if ($this->baseUrl !== null) {\n $this->baseUrl = rtrim(\\Yii::getAlias($this->baseUrl), '/');\n }\n }", "function setUrl($url);", "private function setUri(): void\n {\n $this->uri = strtok($_SERVER['REQUEST_URI'],'?');\n }", "public static function setSchemeLocation($newLoc)\n {\n self::$configPath = $newLoc;\n static::$loaded_scheme = false;\n }", "function setUri() {\n\t\tif (env('HTTP_X_REWRITE_URL')) {\n\t\t\t$uri = env('HTTP_X_REWRITE_URL');\n\t\t} elseif(env('REQUEST_URI')) {\n\t\t\t$uri = env('REQUEST_URI');\n\t\t} else {\n\t\t\tif (env('argv')) {\n\t\t\t\t$uri = env('argv');\n\n\t\t\t\tif (defined('SERVER_IIS')) {\n\t\t\t\t\t$uri = BASE_URL . $uri[0];\n\t\t\t\t} else {\n\t\t\t\t\t$uri = env('PHP_SELF') . '/' . $uri[0];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$uri = env('PHP_SELF') . '/' . env('QUERY_STRING');\n\t\t\t}\n\t\t}\n\t\treturn $uri;\n\t}", "public function set( $path ) {\n\t\t$this->path = $path;\n\n\t\t$path_info = pathinfo( $this->path );\n\n\t\t$this->file = $path_info['basename'];\n\t\t$this->extension = $path_info['extension'] == 'jpg' ? 'jpeg' : $path_info['extension'];\n\t\t$this->filename = $path_info['filename'];\n\n\t\t$this->server = 'http' . ($_SERVER['HTTPS'] == 'on' ? 's' : '') . '://' . $_SERVER['HTTP_HOST'];\n\n\t\t$this->url = $this->server.str_replace( $this->base_dir, '', $this->path );\n\t}", "public function __initPath()\n\t{\n\t\tdefine('IMG_PATH', STATIC_PATH . '/img');\n define('UPLOAD_PATH', STATIC_PATH . '/upload');\n define('CSS_PATH', STATIC_PATH . '/css');\n define('JS_PATH', STATIC_PATH . '/js');\n define('UPLOAD_THUMBAIL_PATH', UPLOAD_PATH . '/thumbnails');\n // Define url to image directory\n define('IMG_URL', STATIC_URL . '/img');\n define('UPLOAD_URL', STATIC_URL . '/upload');\n define('CSS_URL', STATIC_URL . '/css');\n define('JS_URL', STATIC_URL . '/js');\n define('UPLOAD_THUMBAIL_URL', UPLOAD_URL . '/thumbnails');\n\t}", "protected function initLocations(){}" ]
[ "0.62478775", "0.5790452", "0.57534426", "0.5721154", "0.56939644", "0.5686513", "0.5683104", "0.56201917", "0.5614116", "0.5600559", "0.55784714", "0.5543054", "0.54988563", "0.5478185", "0.54028666", "0.53958887", "0.53939724", "0.53741175", "0.5364088", "0.5262536", "0.5257008", "0.52526045", "0.5238794", "0.51971346", "0.5182576", "0.5175515", "0.51746094", "0.51694506", "0.51586056", "0.51324433", "0.51145226", "0.5105966", "0.51041716", "0.50486887", "0.5044181", "0.5041363", "0.5041363", "0.50394064", "0.5023465", "0.50234437", "0.5017613", "0.49974954", "0.49854857", "0.49853116", "0.4983897", "0.49790904", "0.4972787", "0.4971204", "0.4952771", "0.4951582", "0.49504378", "0.49333456", "0.491439", "0.49093834", "0.49047056", "0.49037546", "0.49026284", "0.49020082", "0.49017972", "0.4895187", "0.48944545", "0.48904797", "0.4889151", "0.4887309", "0.4883212", "0.4872332", "0.48648524", "0.48631987", "0.48625764", "0.48617452", "0.48563376", "0.4839401", "0.48333243", "0.4831209", "0.48282182", "0.48280415", "0.48255244", "0.48255244", "0.4824062", "0.4822828", "0.48225522", "0.48129582", "0.48109314", "0.4804299", "0.48015624", "0.47921228", "0.47912216", "0.47883517", "0.47873473", "0.47835055", "0.47833964", "0.47798082", "0.47771043", "0.4767213", "0.47624946", "0.47568136", "0.47540697", "0.4752415", "0.47520956", "0.47520658" ]
0.4936088
51
Gets the response type : html, xml, json ...
public function getResponseType();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function responseType ();", "public function get_response_type()\n\t{\n\t\treturn $this->response_type;\n\t}", "public function get_response_type()\n\t{\n\t\treturn $this->response_type;\n\t}", "public function get_response_content_type()\n {\n // Return.\n \n return $this->response_content_type;\n }", "public function getResponseType()\n {\n return $this->response_type;\n }", "public function getResponseType(){\n return $this->response_type;\n }", "public function getType()\r\n\t{\r\n\t\t//TODO: Parse the raw response header info for content type\r\n\t\t//EXAMPLE OF RETURNED DATA FROM $this->_solrResponse->getRawResponseHeaders()\r\n\t\t/*\r\n\t\t\"HTTP/1.1 200 OK\r\n\t\tContent-Type: text/xml; charset=utf-8\r\n\t\tContent-Length: 764\r\n\t\tServer: Jetty(6.1.3)\r\n\r\n\t\t\"\r\n\t\t*/\r\n\t\t\r\n\t\treturn 'text/xml';\r\n\t}", "public function getResponseContentType(){\n return $this->contentType;\n }", "public function getResponseContentType()\n {\n return $this->responseContentType;\n }", "public function getResponseType() {\n return NoNull($this->settings['type'], 'application/json');\n }", "public function getResponseType(): string\n {\n return $this->responseType;\n }", "public function getResponseType()\n {\n return $this->_requestType;\n }", "public function getResponseType()\n {\n return $this->responseType;\n }", "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 getContentType()\n\t{\n\t\treturn isset($this->_response['headers']['content-type']) ? $this->_response['headers']['content-type'] : null;\n\t}", "public function getRespContentType()\n {\n return curl_getinfo($this->res, CURLINFO_CONTENT_TYPE);\n }", "public function determineContentType()\n {\n // step 1: are we in a browser at all?\n if (!isset($_SERVER))\n {\n // no, so we must be a console app\n return App_Request::CT_CONSOLE;\n }\n\n // TODO: detect content negotiation properly\n return App_Request::CT_XHTML;\n }", "public function getResponseType()\n\t{\n\t\treturn null;\n\t}", "public function contentType()\n {\n return $this->header('Content-Type');\n }", "public function getLastResponseContentType(): string\n {\n return $this->lastResponseContentType;\n }", "private function getContentType() {\n return (is_array($this->curlInfo) && isset($this->curlInfo['content_type'])) ? $this->curlInfo['content_type'] : ContentType::JSON;\n }", "public function getcontentType();", "public function setResponseType() {\n\t\t$uri_end = end($this->registry->router->uri);\n\t\t$this->response_type = substr(strrchr($uri_end,'.'),1);\n\t\t\n\t\tif($this->response_type) {\n\t\t\t\n\t\t\t// remove the extension from the method so that it loads properly\n\t\t\t$response_index = count($this->registry->router->uri) - 1;\n\t\t\t$this->registry->router->uri[$response_index] = str_replace(\".\".$this->response_type,'',$this->registry->router->uri[$response_index]);\n\t\t\t\n\t\t} else {\n\t\t\techo \"no response type defined\";\n\t\t\texit;\n\t\t}\n\t}", "public function contentType() {\n\t\treturn $this->getHeader('Content-Type');\n\t}", "private function get_content_type() {\n\n\t $ct = $this->content_types();\n\t $a = trim(reset(explode(',',$_SERVER['HTTP_ACCEPT'])));\n\t \n\t\theader('Content-type:'.$a); // Set header\n\t\n\t if (array_key_exists($a,$ct)) return $ct[$a];\n\t // throw error\n\t throw new Exception('Content type unknown - '.$a);\n\t \n }", "public function getResponseClass();", "public function negotiateResponseContent(string $type, IRequest $request): ContentNegotiationResult;", "public function getContentType()\n {\n return $this->_headers[ODataConstants::HTTPRESPONSE_HEADER_CONTENTTYPE];\n }", "protected function getContentType() : string\n {\n return implode(',', (array) $this->httpResponse->getHeader('Content-Type'));\n }", "public function getTypeAction()\n {\n $content = null;\n try {\n $content = $this->dms()->getService()->getInfo($this->params('file'), 'type');\n } catch (NoFileException $e) {\n $content = $e->getMessage();\n }\n\n return $this->getResponse()->setContent($content);\n }", "public function get_content_type()\n {\n }", "public function getResponceType()\n {\n return $this->responceType;\n }", "public function getContentType()\n\t{\n\t\t// yet been initialised\n\t\tif (!$this->contentType) {\n\t\t\tthrow new \\RuntimeException(\n\t\t\t\t'Response must be initialised first'\n\t\t\t);\n\t\t}\n\t\t\n\t\treturn $this->contentType;\n\t\t\n\t}", "public function getMessageType(): string\n {\n $error = $this->get('json', 'error');\n\n if ($error === true) {\n return 'error';\n }\n\n if ($error === false) {\n return 'success';\n }\n\n return 'info';\n }", "public function getContentType()\n {\n return $this->getHttpHeader('Content-Type', $this->options['content_type']);\n }", "public static function getContentType() {}", "public function GetResponseClass ();", "public function getContentType(): ?string\n {\n $header = $this->response->getHeaderLine('Content-Type');\n\n return $header === '' ? null : $header;\n }", "function getContentType();", "public function getContentType(): string;", "public function getContentType();", "public function getContentType();", "public function getContentType();", "public function getContentType();", "public function getContentType();", "public function getContentType();", "public function getContentType();", "public function getContentType();", "public function getContentType();", "public function get_content_type( $type ) {\n $content_type = \"text/plain\";\n switch($type){\n case 'csv':\n $content_type = \"text/csv\";\n break;\n case 'txt':\n default:\n $break;\n }\n return $content_type;\n }", "public function getWantedType() {\n $accepts = $this->getHeaders('Accept');\n\n $accept = trim(explode(',', $accepts)[0]);\n\n $key = array_search($accept, self::$contentTypes);\n\n return $key ? $key : $accept;\n }", "public function getContentType()\n {\n }", "public function getResponseClass(): string\n {\n return 'AuthorizeResponse';\n }", "public function getClientMediaType() {}", "public function getResponseType()\n {\n return OAuth2Protocol::OAuth2Protocol_ResponseType_Token;\n }", "public function getType()\n {\n return 'json';\n }", "abstract public function getContentType();", "public function getPageType();", "public function getPageType();", "public function get($type)\n {\n $rsp = new Response();\n\n if($type === \"word\")\n return $this->getAllWords();\n\n if($type === \"email\")\n return $this->getAllEmails();\n\n $rsp->setFailure(400, \"Your request couldn't be executed. Check for wrong arguments or missing values.\")\n ->send();\n }", "public function contenttype() {\n return $this->info['content_type'];\n }", "public function contentType();", "protected function htmlOrJson() {\n\t\tif ($this->isDataPost) {\n\t\t\t$response = array(\n\t\t\t\t'html' => $this->response);\n\t\t\t$this->jsonResult($response);\n\t\t} else {\n\t\t\techo $this->response;\n\t\t}\n\t}", "public function getContentType()\n {\n return self::RENDERER_CONTENT_TYPE;\n }", "public function get_type();", "public function getClientMediaType() {\n\n return $this->type;\n }", "public function get_type(): string;", "public function renderType(): string\n {\n $type = strtolower(Arr::get($_REQUEST, 'renderType', 'all'));\n\n if ($type === self::RENDER_VIEW) {\n return self::RENDER_VIEW;\n }\n\n if ($type === self::RENDER_JSON && $this->allowRenderJson) {\n return self::RENDER_JSON;\n }\n\n return self::RENDER_ALL;\n }", "public function getContentType()\n {\n if (isset($_SERVER[\"CONTENT_TYPE\"])) {\n return $_SERVER[\"CONTENT_TYPE\"];\n } elseif (isset($_SERVER[\"HTTP_CONTENT_TYPE\"])) {\n //fix bug https://bugs.php.net/bug.php?id=66606\n return $_SERVER[\"HTTP_CONTENT_TYPE\"];\n }\n\n return null;\n }", "public static function getContentType(): string\n {\n return static::CONTENT_TYPE;\n }", "function get_content_type($html_test){\n\t\tif($html_test){\n\t\t\t$this->content_type = 'text/html';\n\t\t}else{\n\t\t\t$this->content_type = 'text/plain';\n\t\t}\n\t}", "public function getContentType()\n {\n return $this->getHeader(self::HEADER_CONTENT_TYPE);\n }", "public function getContentType()\n {\n $result = $this->getHeader('Content-Type');\n\n return $result ? $result[0] : null;\n }", "public function getExpectedResponseType() {\n if ( !$this->expectedResponseType ) {\n throw new \\Exception(\"You must define the expectedResponseType property in the request class\");\n } \n return $this->expectedResponseType;\n }", "public function getMimeTypes()\n {\n return explode(';', $this->response->getHeader('Content-Type')[0]);\n }", "public function testIfPreferredFormatIsNotAcceptedReturnJson()\n {\n $server = [\n 'HTTP_ACCEPT' => 'text/text,application/xhtml+xml,application/json;q=0.9,*/*;q=0.8',\n ];\n $request = new Request($this->config, $server);\n\n $result = $request->preferredContentTypeOutOf([\n 'text/html',\n 'application/xml',\n ]);\n\n $this->assertEquals('json', $result);\n }", "public abstract function getContentType();", "public abstract function getContentType();", "function get_type() {\n\t\treturn $this->get_data( 'type' );\n\t}", "public function getAcceptableResponseMediaTypes(string $type): array;", "protected function _getAcceptFormat() {\n if ($this->getFormat() === 'xml') {\n return 'Accept: application/xml';\n }\n\n return 'Accept: application/json';\n }", "public function testPreferredContentTypeOfReturnsADesiredFormatIfItIsAccepted()\n {\n $server = [\n 'HTTP_ACCEPT' => 'text/text,application/xhtml+xml,application/json;q=0.9,*/*;q=0.8',\n ];\n $request = new Request($this->config, $server);\n\n $result = $request->preferredContentTypeOutOf(\n ['text/html', 'application/json']\n );\n\n $this->assertEquals('application/json', $result);\n\n $result = $request->preferredContentTypeOutOf();\n\n $this->assertEquals('application/json', $result);\n }", "public function pi_set_content_type(){\n \treturn \"text/html\";\n\t}", "public static function type()\n {\n foreach (self::typesConditions() as $type => $condition) {\n if ($condition()) {\n return $type;\n }\n }\n return '404';\n }", "function contentType()\n {\n return '';\n }", "protected function determineContentType(ServerRequestInterface $request)\n {\n $acceptHeader = $request->getHeaderLine('Accept');\n $selectedContentTypes = array_intersect(explode(',', $acceptHeader), $this->knownContentTypes);\n\n if (count($selectedContentTypes)) {\n return reset($selectedContentTypes);\n }\n\n // handle +json and +xml specially\n if (preg_match('/\\+(json|xml)/', $acceptHeader, $matches)) {\n $mediaType = 'application/'.$matches[1];\n if (in_array($mediaType, $this->knownContentTypes)) {\n return $mediaType;\n }\n }\n\n return 'text/html';\n }", "public function getContentType()\n {\n return $this->get(self::_CONTENT_TYPE);\n }", "function response($type = 'success', $message = null)\n {\n switch (strtolower($type)) {\n case 'deleted':\n $code = 204;\n break;\n case 'unauthorized':\n $code = 401;\n break;\n case 'forbidden':\n $code = 403;\n break;\n case 'not found':\n $code = 404;\n break;\n default:\n $code = 200;\n break;\n }\n\n header('HTTP/1.1 '.$this->codes[$code]);\n header(\"Status: $code\");\n http_response_code($code);\n \n if($message) echo json_encode($message);\n\n exit();\n }", "protected function createContent($type)\n {\n if ($type == 'json') {\n $this->headers['content_type'] = 'application/json; charset=UTF-8';\n\n return json_encode(['url' => $this->ch, 'status' => 'ok']);\n } elseif ($type == 'xml') {\n $this->headers['content_type'] = 'text/xml; charset=UTF-8';\n\n return '<?xml version=\"1.0\" encoding=\"UTF-8\"?><result><url>'.$this->ch.'</url><status>ok</status></result>';\n }\n\n return 'ok';\n }", "protected function desiredResponseFormat($request) {\n return $request->responseFormat ?? $request->format() ?? 'html';\n }", "private function getTypeOfRequest() {\n\t\t\n\t\t// If this is a POST request, likely it's Google, but let's check to confirm\n\t\tif ($_SERVER['REQUEST_METHOD'] === 'POST') {\n\t\t\ttry {\n\t\t\t\t$json = file_get_contents($this->inputStream);\n\t\t\t\t$action = json_decode($json, true);\n\t\t\t\tif ($action == '' or $action == null) {\n\t\t\t\t\treturn 'other';\n }\n // Confirm that this request matches the projectID // TODO\n\t\t\t\t$this->decodedWebhook = $action; // Make the webhook JSON available to the class\n\t\t\t\treturn 'webhook';\n\t\t\t}\n\t\t\tcatch (Exception $e) {\n\t\t\t\treturn 'other';\n\t\t\t}\n\t\t}\n return 'other'; // Else, just return something else\n\t}", "public function getClientMediaType()\n {\n return $this->fileInfo['type'];\n }", "protected function getRequestType()\r\n {\r\n return array_key_exists('StatusCode', $this->request_data) && is_numeric($this->request_data['StatusCode'])\r\n ? self::REQ_NOTIFICATION\r\n : self::REQ_CUSTOMER_REDIRECT;\r\n }", "public static function getContentType() {\n\t\treturn isset($_SERVER['CONTENT_TYPE']) ? $_SERVER['CONTENT_TYPE'] : null;\n\t}", "protected function _type() {\r\n\r\n $urlParts = explode('/', $this->url);\r\n\r\n $type = array_pop($urlParts);\r\n\r\n return $type;\r\n\r\n }", "public function get_data_type() { return \"json\"; }", "protected function _setContentType() {\n\t\tif (in_array($this->_status, array(304, 204))) {\n\t\t\treturn;\n\t\t}\n\t\t$whitelist = array(\n\t\t\t'application/javascript', 'application/json', 'application/xml', 'application/rss+xml'\n\t\t);\n\n\t\t$charset = false;\n\t\tif ($this->_charset &&\n\t\t\t(strpos($this->_contentType, 'text/') === 0 || in_array($this->_contentType, $whitelist))\n\t\t) {\n\t\t\t$charset = true;\n\t\t}\n\n\t\tif ($charset) {\n\t\t\t$this->header('Content-Type', \"{$this->_contentType}; charset={$this->_charset}\");\n\t\t} else {\n\t\t\t$this->header('Content-Type', \"{$this->_contentType}\");\n\t\t}\n\t}", "private function htmlResponse() {\n\n /*\n * In case of error, return json\n */\n if (is_array($this->response) && $this->response['ErrorCode'] === 500) {\n $this->request['content-type'] = self::DEFAULT_RESPONSE_FORMAT;\n return $this->jsonResponse();\n }\n \n /*\n * No collection set => renders home page\n */\n if (!$this->request['collection']) {\n $template = new Template(realpath(dirname(__FILE__)) . '/../templates/home.php', $this);\n }\n /*\n * Identifier set => renders resource page\n */ else if ($this->request['identifier']) {\n $template = new Template(realpath(dirname(__FILE__)) . '/../templates/' . $this->responseDescription['template'] . '/' . $this->request['method'] . 'Resource' . '.php', $this, $this->response, $this->responseDescription);\n }\n /*\n * Renders collection\n */ else {\n $template = new Template(realpath(dirname(__FILE__)) . '/../templates/' . $this->responseDescription['template'] . '/' . $this->request['method'] . 'Collection' . '.php', $this, $this->response, $this->responseDescription);\n }\n\n return $template->render();\n }", "function getHTMLContentType() {\n\t\tif (t3lib_div::int_from_ver(TYPO3_version) < 4002002) {\n\t\t\treturn (count($this->theParts['html']['media']) && $this->includeMedia) ? 'multipart/related;' : 'multipart/alternative;';\n\t\t} else {\n\t\t\treturn (count($this->theParts['html']['media']) && $this->includeMedia) ? 'multipart/related' : 'multipart/alternative';\t\n\t\t}\n\t}" ]
[ "0.80709755", "0.7766252", "0.7766252", "0.7680574", "0.76071477", "0.75916374", "0.7584651", "0.7536211", "0.75220895", "0.7482981", "0.71942306", "0.7140915", "0.71140516", "0.69506985", "0.69484514", "0.6908833", "0.6768765", "0.6711454", "0.66994464", "0.6695181", "0.6556554", "0.65219164", "0.6509628", "0.64946616", "0.648658", "0.6472118", "0.6428077", "0.6415793", "0.63837135", "0.6366948", "0.6366391", "0.6357507", "0.629439", "0.62879944", "0.6287795", "0.6268709", "0.62557316", "0.6230406", "0.62112457", "0.6169502", "0.6108252", "0.6108252", "0.6108252", "0.6108252", "0.6108252", "0.6108252", "0.6108252", "0.6108252", "0.6108252", "0.6107819", "0.6107774", "0.609985", "0.60936314", "0.6085307", "0.6015048", "0.60098916", "0.60053605", "0.599803", "0.599803", "0.5997646", "0.59900486", "0.59864694", "0.597046", "0.5969678", "0.59665334", "0.5949312", "0.5945508", "0.5933604", "0.59312433", "0.5925859", "0.5917134", "0.59162384", "0.5902933", "0.59008735", "0.5896645", "0.58921224", "0.5889412", "0.5889412", "0.5886511", "0.58812517", "0.5876848", "0.58648527", "0.58645433", "0.5858836", "0.5847371", "0.5846402", "0.58395606", "0.5836959", "0.5834324", "0.58263206", "0.5819856", "0.5783995", "0.578239", "0.57778037", "0.57558495", "0.57520175", "0.575099", "0.5748207", "0.5742701" ]
0.70191544
14
Gets the list of requested parameters
public function getParameters();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getParams();", "public function getParams();", "public function getParams();", "public function getParams();", "public function getParams();", "public function getParams();", "public function getParams();", "public function getParams();", "public function getParams();", "public function getParams();", "public function getRequestParams();", "public function getParametersList(){\n return $this->_get(2);\n }", "public function getParams() {}", "public function getParameters() {}", "public function getRequestParameters()\n\t{\n\t\treturn $this->aParameters;\n\t}", "public function getAcceptedParameters();", "public function getParameters()\n {\n return $this->parameters->all();\n }", "public function getRequestParameters() {\n return array();\n }", "public function getParameters()\n {\n return array();\n }", "function getParams()\n {\n }", "public function get_params()\n {\n }", "public function get_params()\n {\n }", "public function getParameters(/* ... */)\n {\n return $this->_params;\n }", "public function getParameters()\n {\n // TODO: Implement getParameters() method.\n }", "abstract protected function getRequiredRequestParameters();", "function getParameters(): array;", "public function getParams()\n {\n // TODO: Implement getParams() method.\n }", "function getParams()\n {\n }", "public function getDefinedParameters();", "function getParameters()\r\n {\r\n }", "public function getParameters()\n {\n return $this->params;\n }", "public function getParameters()\n {\n return $this->params;\n }", "public function getParameters()\n {\n return $this->params;\n }", "public function getParameters()\n {\n return $this->params;\n }", "function getParameters();", "function getParameters();", "public function getParamNames();", "public function getRequiredParameters();", "public function getRequiredParameters();", "function getParameters() {\n\t\treturn $this->inputParameters;\n\t}", "public function get_request_arguments();", "public function getParams(): array;", "public static function getRequiredParams();", "private function getParameters() {\n $raw_parameters = $this->routeMatch->getRawParameters();\n $parameters = $this->routeMatch->getParameters();\n\n $return_params = [];\n foreach ($parameters as $key => $value) {\n if ($raw_value = $raw_parameters->get($key)) {\n $return_params[$key] = $raw_value;\n continue;\n }\n\n $return_params[$key] = $parameters->get($key);\n }\n\n return $return_params;\n }", "private static function getParams(): array\n {\n $getParams = [];\n\n if (!empty($_GET)) {\n $getParams = filter_input_array(INPUT_GET, FILTER_DEFAULT);\n }\n\n return $getParams;\n }", "public function getParameters(): array;", "public function get_parameters() {\r\n\t\treturn $this->parameters;\r\n\t}", "abstract public function getParameters();", "public function getAllParam()\n {\n return isset($this->params) ? $this->params : null;\n }", "public function parameters()\n {\n return array_merge($this->get, $this->post);\n }", "private static function ParamList ()\n {\n return array (\n \"a\" => array (\n \"charset\", \"coords\", \"href\",\n \"hreflang\", \"name\", \"rel\",\n \"rev\", \"shape\", \"target\",\n \"style\",\n ),\n \"button\" => array (\n \"disabled\", \"name\", \"type\",\n \"value\", \"accesskey\", \"class\",\n \"dir\", \"id\", \"lang\", \"style\",\n \"tabindex\", \"title\", \"xml:lang\",\n ),\n );\n }", "public function get_params() {\n\t\treturn $this->params;\n\t}", "public function getParameters(): array\n {\n return $this->parameters;\n }", "public function getParameters(): array\n {\n return $this->parameters;\n }", "public function getParameters(): array\n {\n return $this->parameters;\n }", "public function getParameters(): array\n {\n return $this->parameters;\n }", "public static function getParams()\n {\n return self::$params;\n }", "public function getParameters()\n\t{\n\t\treturn $this->parameters;\n\t}", "public function getParameters() {\n \n return $this->params;\n \n }", "private function getAllInputParameters () {\n// \t\t$params = $this->getInputParameters();\n\t\t$params = array();\n\t\t$catalogId = $this->session->getCourseCatalogId();\n\t\tif (!$catalogId->isEqual($this->session->getCombinedCatalogId()))\n\t\t\t$params[':catalog_id'] = $this->session->getCatalogDatabaseId($catalogId);\n\t\t\n\t\t$params[':subj_code'] = $this->session->getSubjectFromCourseId($this->courseId);\n\t\t$params[':crse_numb'] = $this->session->getNumberFromCourseId($this->courseId);\n\t\t\n\t\treturn $params;\n\t}", "public function all()\n {\n return $this->params;\n }", "public function getParameters()\n\t{\n\n\t}", "public function getParameters()\n\t{\n\n\t}", "public function getParameters()\r\n {\r\n return $this->parameters;\r\n }", "function get_list_params()\n\t{\n\t\treturn '';\n\t}", "public function getParameters()\n {\n return $this->parameters;\n }", "public function getParameters()\n {\n return $this->parameters;\n }", "public function getParameters()\n {\n return $this->parameters;\n }", "public function getParameters()\n {\n return $this->parameters;\n }", "public function getParameters()\n {\n return $this->parameters;\n }", "public function getParameters()\n {\n return $this->parameters;\n }", "public function getParameters()\n {\n return $this->parameters;\n }", "public function getParameters()\n {\n return $this->parameters;\n }", "public function getParameters()\n {\n return $this->parameters;\n }", "public function getParameters()\n {\n return $this->parameters;\n }", "public function getParameters()\n {\n return $this->parameters;\n }", "public function getParameters($includeGET = true)\n {\n return ($includeGET) ?\n $this->parameters :\n array_diff_assoc($this->parameters, $this->request->query->all())\n ;\n }", "public function getParameters() : array\n {\n return $this->parameters;\n }", "public function parameters(): array\n {\n return $this->route->parameters();\n }", "public function getParams()\r\n\t{\r\n\t\treturn $this->params;\r\n\t}", "public function get_parameters()\n\t{\n\t\treturn $this->set_params;\n\t}", "public function getParameters()\n {\n return $this->parameters;\n }", "public function getParameters()\n {\n return $this->parameters;\n }", "public function GetParameters()\n {\n return $this->parameters;\n }", "public function getParams()\n\t{\n\t\treturn $this->params;\n\t}", "function getParameterNames();", "function getRouteParameters();", "public function get_query_params()\n {\n }", "public function getApiParameters();", "public function getParametersRequest(): ParameterBag { return $this->parameters; }", "public function getParameters(): array {\n\t\t\treturn $this->parameters;\n\t\t}", "public function get_url_get_parameters() {\r\n\t\treturn $this->url_get_parameters;\r\n\t}", "function get_parameters()\r\n {\r\n return $this->parameters;\r\n }" ]
[ "0.7846559", "0.7846559", "0.7846559", "0.7846559", "0.7846559", "0.7846559", "0.7846559", "0.7846559", "0.7846559", "0.7846559", "0.7749011", "0.77256775", "0.769754", "0.76452947", "0.7539867", "0.7531967", "0.75314534", "0.75290227", "0.7523318", "0.75106794", "0.74961907", "0.74961907", "0.74888474", "0.7476554", "0.7471794", "0.74697125", "0.74689734", "0.74505764", "0.74473286", "0.7436913", "0.7382021", "0.7382021", "0.7382021", "0.7382021", "0.73707205", "0.73707205", "0.73587024", "0.73461217", "0.73461217", "0.73198587", "0.7318368", "0.7313424", "0.7307159", "0.72970176", "0.7283452", "0.72604674", "0.72587544", "0.725468", "0.7245226", "0.724445", "0.7244388", "0.7215159", "0.7203833", "0.7203833", "0.7203833", "0.7203833", "0.72021675", "0.72015923", "0.7201102", "0.7199227", "0.71860206", "0.71828073", "0.71828073", "0.7177417", "0.7176902", "0.7160657", "0.7160657", "0.7160657", "0.7160657", "0.7160657", "0.7160657", "0.7160657", "0.7160657", "0.7160657", "0.7160657", "0.7160657", "0.71581084", "0.71574634", "0.71546423", "0.7152238", "0.7147656", "0.71380264", "0.71380264", "0.7129668", "0.7127914", "0.71113104", "0.7100128", "0.7089917", "0.70861363", "0.7085003", "0.7083628", "0.70823", "0.7082054" ]
0.7767127
16
Gets the specified parameter
public function getParameter($name);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getParam($param);", "public static function getParam() {\n\n\t}", "public function getParameter($param)\n {\n return $this->params[$param];\n }", "public function getParameter()\n\t{\n\t\treturn $this->parameter;\n\t}", "function get_parameter($name)\r\n {\r\n if (array_key_exists($name, $this->parameters))\r\n return $this->parameters[$name];\r\n }", "public function getParam()\n {\n return $this->param;\n }", "public function getParam()\n {\n return $this->param;\n }", "public function getParam($param)\n {\n if (isset($this->params[$param])) {\n return $this->params[$param];\n }\n }", "public function getParam($name);", "public function getParameter();", "public function getParameter();", "public function getParam($name) {\n if (isset($this->parameter[$name])) {\n return $this->parameter[$name];\n }\n }", "public function get_parameter($parameter) {\n\t if (isset($this->decodedWebhook['queryResult']['parameters'][$parameter])) {\n\t\t return $this->decodedWebhook['queryResult']['parameters'][$parameter];\n\t }\n\t\treturn false;\n }", "public function getParam($name) {\n return $this->params[$name];\n }", "protected function get_parameter( $name ) {\n\t\treturn $this->has_parameter( $name ) ? $this->parameters[ $name ] : null;\n\t}", "public function getParam($param, $filters=null);", "public function getParam($name){\n\t\treturn array_key_exists($name, $this->params) ? $this->params[$name] : NULL;\n\t}", "public function getParam($param){\n\n if (property_exists($this, '_'.$param)){\n $param = '_'.$param;\n return $this->$param;\n } else\n return null;\n }", "public function getParameter($parameter)\n {\n $params = $this->getParameters();\n\n return $params[$parameter] ?? null;\n }", "function getParam($name) {\n\t\treturn isset($this->params[$name]) ? $this->params[$name] : null;\n\t}", "protected function get_param($param) {\n if ($this->params !== null && isset($this->params[$param])) {\n return $this->params[$param];\n } else {\n $staticname = \"default$param\";\n assert(isset(static::$$staticname));\n return static::$$staticname;\n }\n }", "function getParam($name) {\n if (isset($this->params[$name])) {\n return $this->params[$name];\n }\n return null;\n }", "function getParam($inKey = null) {\n\t\treturn $this->_getItem($inKey);\n\t}", "public function getParam($param)\n {\n return isset($this->_params[$param]) ? $this->_params[$param] : null;\n }", "public function getParam (string $key)\n {\n return $this->params[$key];\n }", "public function getParam($name)\n {\n return Tools::getValue($name);\n }", "public function getParam($param) {\n\t\t\t\tif(isset($this->$param)) {\n\t\t\t\t\t\treturn $this->$param;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t}", "private function fetchParameter()\r\n\t{\r\n\t\t//@TODO schlundus, move fetch inside the parameterInfo class\r\n\t\t$parameterSource = $this->parameterInfo->source;\r\n\t\t$parameterName = $this->parameterInfo->name;\r\n\t\t\r\n\t\t$src = null;\r\n\t\tswitch($parameterSource)\r\n\t\t{\r\n\t\t\tcase \"POST\":\r\n\t\t\t\t$src = $_POST;\r\n\t\t\t\tbreak;\r\n\t\r\n\t\t\tcase \"GET\":\r\n\t\t\t\t$src = $_GET;\r\n\t\t\t\tbreak;\r\n\t\r\n\t\t\tcase \"REQUEST\":\r\n\t\t\t\t$src = $_REQUEST;\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\r\n\t\t$value = null;\r\n\t\t$fetched = false;\r\n\t\tif ($src)\r\n\t\t{\t\r\n\t\t\tif (isset($src[$parameterName]))\r\n\t\t\t{\r\n\t\t\t\t$value = $src[$parameterName];\r\n\t\t\t\t$fetched = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this->bFetched = $fetched;\r\n\t\t$this->taintValue = $value;\r\n\t}", "public function getParam($key);", "public function getParam($name) {\n return $this->app->getParam($name);\n }", "public function getParam($param)\n {\n $result = (new Query())\n ->select('value')\n ->from('uuid_param')\n ->where([\n 'uuid' => $this->getUuid(),\n 'param' => $param,\n ])\n ->one();\n return $result ? $result['value'] : null;\n }", "public function getParameter($name){\n\t\treturn Registry::get('router')->get($name);\n\t}", "public function getParam($key)\n {\n if (isset($this->params[$key])) {\n return $this->params[$key];\n }\n }", "public function getParam($param = false)\n {\n if ($param && isset($this->params->$param)) {\n $result = $this->params->$param;\n } elseif ($param && !isset($this->params->$param)) {\n $result = null;\n } else {\n $result = $this->params;\n }\n\n return $result;\n }", "public function __get($param);", "final public static function getParam($key) {\n $param = self::getParams();\n return $param[$key];\n }", "private function getParameter($key)\n {\n return $this->parameters->get($key);\n }", "public function getParameter($name)\n {\n return $this->parameters[$name] ?? null;\n }", "function getParam($key, $parameter) {\r\n $params =& new mosParameters( $parameter );\r\n $return = $params->get( $key, false );\r\n\tunset( $params );\r\n\treturn $return;\r\n\r\n /*\r\n\tif (!$params) return false;\r\n\t$params = split(\"\\n\",$params);\r\n\tforeach ($params AS $param) {\r\n\t list($keyn,$value) = split('=', $param);\r\n\t if ($keyn == $key) return $value;\r\n }\r\n return false;\r\n\t*/\r\n}", "public function getParam($key)\n {\n return $this->_params[$key];\n }", "public function getParam($key) {\n if (isset($this->params[$key])) {\n return $this->params[$key];\n }\n return NULL;\n }", "public function get($parameterName) {\n return $this->getParameter($parameterName);\n }", "public function getParam1()\n {\n return $this->get(self::_PARAM1);\n }", "public function getParam1()\n {\n return $this->get(self::_PARAM1);\n }", "public function getParam1()\n {\n return $this->get(self::_PARAM1);\n }", "public function getParam1()\n {\n return $this->get(self::_PARAM1);\n }", "public function getParam1()\n {\n return $this->get(self::_PARAM1);\n }", "public function getParam1()\n {\n return $this->get(self::_PARAM1);\n }", "protected function parameter(string $parameter)\n {\n return $this->getContainer()->get(Config::class)->get($parameter);\n }", "public function getParam($param_name){\n\t\tthrow new Exception(\"Method \".__CLASS__.\"::\".__METHOD__.\" not implemented yet!\");\n\t}", "public function __get($param)\r\n {\r\n return $this->param($param);\r\n }", "protected function get(string $parameter, $default = null) {\n\t\treturn $this->parameters[$parameter] ?? $default;\n\t}", "public function param ($pname)\n {\n return Yii::app()->request->getParam($pname);\n }", "function _getParameter( $name, $default='' ) {\n\t\t$return = \"\";\n\t\t$return = $this->params->get( $name, $default );\n\t\treturn $return;\n\t}", "public function getParam(string $name)\n {\n if (! isset($this->getParameters()[$name])) {\n throw (new \\Exception('Parameter ' . $name . ' was not found in route', - 1));\n }\n\n return $this->getParameters()[$name];\n }", "public function getParam($param)\n {\n if (!array_key_exists($param, $this->_params)) {\n throw new \\InvalidArgumentException(\"This parameter does not exists.\");\n }\n\n if (array_key_exists($param, $this->_params_values)) {\n return $this->_params_values[$param];\n }\n\n return $this->_params[$param];\n }", "public function getParam($name)\n {\n return isset($this->params[$name]) ? $this->params[$name] : null;\n }", "public function get($param) {\n\t\treturn isset($_GET[$param]) ? $_GET[$param] : null;\n\t}", "protected function getParameter($name)\n {\n return $this->container->getParameter($name);\n }", "public function getParam($name)\n {\n if (isset($this->params[$name])) {\n return $this->params[$name];\n }\n return null;\n }", "public function getParameter($name){\n\t\tif(!isset($this->inputParameters[$name])){\n\t\t\tthrow new ValidationException(\"Could not find parameter: {$name}\");\n\t\t}\n\t\treturn $this->inputParameters[$name];\n\t}", "public function get( $name )\n\t{\n\t\tif( isset( $this->params[ $name ] ) ) return $this->params[ $name ];\n\t\treturn null;\n\t}", "public function get_param(string $param_name) {\r\n\t\t$record = $this->field(['*'])->table(['message_default_params'])->where(['id'=>1])->one();\r\n\t\treturn $record[$param_name] ?? null;\r\n\t}", "protected function get_param( $param ) {\n $params = array(\n 'effect' => 'animation',\n 'width' => 'width',\n 'height' => 'height',\n 'sph' => 'sph',\n 'spw' => 'spw',\n 'delay' => 'delay',\n 'sDelay' => 'sDelay',\n 'opacity' => 'opacity',\n 'titleSpeed' => 'titleSpeed',\n 'hoverPause' => 'hoverPause',\n 'navigation' => 'showNavigationButtons',\n 'links' => 'showNavigationPrevNext',\n 'prevText' => 'prevText',\n 'nextText' => 'nextText'\n );\n\n if ( isset( $params[$param] ) ) {\n return $params[$param];\n }\n\n return false;\n }", "protected function get_param( $param ) {\n $params = array(\n 'effect' => 'effect',\n 'slices' => 'slices',\n 'prevText' => 'prevText',\n 'nextText' => 'nextText',\n 'delay' => 'pauseTime',\n 'animationSpeed' => 'animSpeed',\n 'hoverPause' => 'pauseOnHover',\n 'spw' => 'boxCols',\n 'sph' => 'boxRows',\n 'navigation' => 'controlNav',\n 'links' =>'directionNav',\n 'autoPlay' => 'autoPlay'\n );\n\n if ( isset( $params[$param] ) ) {\n return $params[$param];\n }\n\n return false;\n }", "public function getParameter($name)\n {\n $name = strtolower($name);\n if (isset($this->parameters[$name])) {\n return $this->parameters[$name];\n }\n return null;\n }", "function get_param($param_name)\n{\n if($_POST[$param_name])\n\t\treturn $_POST[$param_name];\n\telse\n\t\treturn $_GET[$param_name];\n}", "public function getParam($name)\n {\n // TODO: Implement getParam() method.\n }", "public function getParam($name)\n {\n return $this->getResponseParam($name);\n }", "public function get($parameter)\n {\n return $this->request->input($parameter);\n }", "public function get($parameter)\n {\n return $this->request->input($parameter);\n }", "public function getParameter($name)\n {\n if (array_key_exists($name, $this->params)) {\n return $this->params[$name];\n }\n\n return null;\n }", "public function getParam(string $name)\n {\n return $this->params[$name] ?? null;\n }", "function getUrlParameter($parameterName) {\n\n\t\t$parameter = null;\n\n\t\tif (isset($_GET[$parameterName]))\n\t\t\t$parameter = $_GET[$parameterName];\n\n\t\treturn $parameter;\n\n\t}", "public static function getParam($name) {\n return isset(static::$_params[$name]) ? static::$_params[$name] : null;\n }", "public function getParameter($name)\n {\n return $this->container->getParameter($name);\n }", "public function getParameter($name)\n {\n return $this->container->getParameter($name);\n }", "public function getParameter($name)\n {\n $name = strtolower($name);\n if (isset($this->parameters[$name])) {\n return $this->parameters[$name];\n }\n\n return null;\n }", "protected function getParam($param, $default = null) {\n // set or encoding failed. Recover in these cases so we can perform\n // mail migrations, see T9251.\n if (!is_array($this->parameters)) {\n $this->parameters = array();\n }\n\n return idx($this->parameters, $param, $default);\n }", "public function getParameter(string $name): mixed\n {\n return $this->parameters[$name] ?? null;\n }", "public static function getRouteParameter($parameter) {\n\t\treturn self::$route_parameters[self::$route_options['route'][$parameter]];\n\t}", "public function getParam($key = 1)\n {\n $value = null;\n if (($key !== null) && (is_numeric($key))) {\n $value = self::setAntiInjection($this->joUrl[\"PARAM{$key}\"]);\n }\n return $value;\n }", "public function getParam($index)\n {\n return $this->params[$index];\n }", "public function getParameter($key)\n {\n return isset($this->params[$key]) ? $this->params[$key] : null;\n }", "public function genericParam() {\n return $this->_genericParam;\n }", "private function _get_param( $index ) {\n\t\treturn ( isset( $this->_params[ $index ] ) ) ? $this->_params[ $index ] : null ;\n\t}", "public function getParameter($key);", "public function getParam($name)\n {\n if(isset($this->_invokeParams[$name])) {\n return $this->_invokeParams[$name];\n }\n\n return null;\n }", "public static function getRouteVariable($parameter) {\n\n\t\tif (self::_hasAdapter(get_class(), __FUNCTION__))\n\t\t\treturn self::_callAdapter(get_class(), __FUNCTION__, $parameter);\n\n\t\t$parameter = self::_applyFilter(get_class(), __FUNCTION__, $parameter, array('event' => 'args'));\n\n\t\tif (isset(self::$route_parameters[$parameter])) {\n\t\t\tself::_notify(get_class() . '::' . __FUNCTION__, $parameter, self::$route_parameters[$parameter]);\n\t\t\t$found_parameter = self::_applyFilter(get_class(), __FUNCTION__, self::$route_parameters[$parameter], array('event' => 'return'));\n\n\t\t\treturn $found_parameter;\n\t\t}\n\t}", "function getParam($path, $variableName, $default=\"\", $remainingData=false) {\r\n\tif (isset($_GET[$variableName])) {\r\n\t\t$val = $_GET[$variableName];\r\n\t} else {\r\n\t\t$val = getParamFromPath($path, $variableName, $default, $remainingData);\r\n\t}\r\n\treturn $val!=\"\" ? $val : $default;\r\n}", "protected function getParam($name, $default = null)\n\t{\n\t\treturn $this->_params->get($name, $default);\n\t}", "public function value($parameter);", "function get_param($name) {\n \n if (isset($_REQUEST[$name])) return $_REQUEST[$name];\n else return \"\";\n}", "public function getParam($name, $default = null)\n {\n if (isset($this->params[$name])) {\n return $this->params[$name];\n }\n $name = str_replace('.', '_', $name);\n return $this->request->get($name, $default);\n }", "public function param(string $param): mixed\n {\n return !empty($this->params[$param]) ? $this->params[$param] : null;\n }", "public function getParam($param, $defaultRet = false)\n {\n return $this->getRequest()->getParam($param, $defaultRet);\n }", "function param($name)\n{\n return Yii::app()->params[$name];\n}", "function getParam($name)\n\t{\n\t\t$db = JFactory::getDbo();\n\t\t$db->setQuery('SELECT manifest_cache FROM #__extensions WHERE name = \"com_sermonspeaker\"');\n\t\t$manifest = json_decode($db->loadResult(), true);\n\t\treturn $manifest[$name];\n\t}" ]
[ "0.8390055", "0.8133642", "0.7935025", "0.7919341", "0.77266777", "0.77056086", "0.77056086", "0.7672574", "0.76158834", "0.75969476", "0.75969476", "0.7533714", "0.7508497", "0.7489165", "0.74523497", "0.74330235", "0.7390947", "0.7384737", "0.7329904", "0.73122627", "0.7310415", "0.7269202", "0.72666276", "0.72556746", "0.72533065", "0.72518253", "0.71915007", "0.7172095", "0.7161288", "0.7112903", "0.70842695", "0.70448345", "0.70425206", "0.7026399", "0.6993602", "0.6993094", "0.69782245", "0.69730645", "0.69672436", "0.6964499", "0.6959578", "0.69488287", "0.69327825", "0.69327825", "0.69327825", "0.69327825", "0.69327825", "0.69327825", "0.69254726", "0.6923733", "0.6922501", "0.6921596", "0.6919658", "0.6914358", "0.6910693", "0.6902378", "0.6901439", "0.68778574", "0.6867461", "0.68669766", "0.6861632", "0.6856633", "0.68563604", "0.6850696", "0.6848884", "0.6847675", "0.68402743", "0.68370986", "0.6836918", "0.68274385", "0.68274385", "0.68258876", "0.68196905", "0.6807548", "0.68006223", "0.67901736", "0.67901736", "0.6780174", "0.6780042", "0.6767496", "0.67633915", "0.6750696", "0.6727994", "0.6722164", "0.6715307", "0.6711939", "0.66937834", "0.6688784", "0.66846186", "0.6681118", "0.6680261", "0.6672068", "0.6663143", "0.6656668", "0.66293275", "0.66279036", "0.66206115", "0.6610214" ]
0.72976863
23
Check if the specified parameter is defined
public function hasParameter($name);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasParam($name);", "public function hasParam(){\n return $this->_has(2);\n }", "public function hasParam(){\n return $this->_has(2);\n }", "public function hasParam(){\n return $this->_has(2);\n }", "public function hasParam(){\n return $this->_has(2);\n }", "public function hasParam(){\n return $this->_has(2);\n }", "protected function has_parameter( $name ) {\n\t\treturn ! empty( $this->parameters[ $name ] );\n\t}", "public function hasParameter($param)\n {\n return array_key_exists($param, $this->params);\n }", "public function hasParamValue(string $name): bool;", "public function parameterExists($key);", "function hasParam($name)\n {\n return isset($_REQUEST[$name]);\n }", "function hasParam($name) {\n\t\tif (isset($this->getvars[$name])) {\n\t\t\treturn TRUE;\n\t\t}\n\t\tif (isset($this->postvars[$name])) {\n\t\t\treturn TRUE;\n\t\t}\n\t\treturn FALSE;\n\t}", "public function has_param($key)\n {\n }", "public function hasParam($param)\n {\n return isset($this->params[$param]);\n }", "public function hasParam($name)\n {\n return (isset($this->params[$name]));\n }", "final public function hasParameter($name)\n {\n return isset($this->parameters[$name]);\n }", "public function hasParam($name)\n {\n return isset($this->params[$name]);\n }", "public function hasParameter(string $name): bool\n {\n return isset($this->parameters[$name]);\n }", "public function hasParameter($name)\n {\n return array_key_exists($name, $this->parameters);\n }", "public function paramExists (string $key)\n {\n if (array_key_exists($key, $this->getParams()))\n return true;\n\n return false;\n }", "public function hasParameter($name)\n {\n return array_key_exists($name, $this->config);\n }", "public function hasRequestParameter($name)\n {\n return $this->request_parameter_holder->has($name);\n }", "public function hasParameter($name)\n {\n return isset($this->parameters[$name]) || array_key_exists($name, $this->parameters);\n }", "function isParam($name) {\r\n return ( getParam($name) != false );\r\n}", "public function hasParameters()\n {\n return preg_match('/\\{/', $this->pattern) === 1;\n }", "public function hasParameters()\n {\n return !empty($this->params);\n }", "public function hasParameter(string $id): bool\n {\n return $this->exists($id, self::DEFINITION_PARAMETER);\n }", "public function hasParameter ($name)\n {\n\n return isset($this->parameters[$name]);\n\n }", "public function hasParameters(){\n return $this->_has(2);\n }", "public function hasParameters()\n {\n return isset($this->parameters);\n }", "public function __isset($param)\r\n {\r\n // Get all of our request params\r\n $params = $this->params();\r\n\r\n return isset($params[$param]);\r\n }", "public function hasParameter(string $id): bool\n {\n return isset($this->getParameters()[$id]);\n }", "private function hasParam(string $parameter): bool\n {\n return in_array($parameter, $this->queryParameters);\n }", "public function hasParameters()\n {\n return count($this->parameters) > 0;\n }", "function exist_param($fieldname){\n return array_key_exists($fieldname, $_REQUEST);\n }", "public function hasParams(){\n return $this->_has(8);\n }", "public function hasParameter($name, $ns = null)\r\n {\r\n return $this->parameterHolder->has($name, $ns);\r\n }", "public function hasParameters()\n {\n return isset($this->parameters) && count($this->parameters) > 0;\n }", "public function has_parameters() {\r\n\t\treturn (sizeof($this->parameters) > 0);\r\n\t}", "function hasParam($setting) {\n list($class, $param) = explode('::',$setting);\n if (class_exists($class, false)) {\n $class = new ReflectionClass($class);\n return $class->getConstant($param);\n }\n return false;\n}", "public function isMethodParameter() {}", "private function _has($param)\n {\n return !empty($this->$param);\n }", "public function exists($parameter);", "public function hasParameter($name)\n {\n if ($this->hasParameters()) {\n return array_key_exists($name, $this->parameters());\n }\n return false;\n }", "function get_exists($parameter){\n return key_exists($parameter, $_GET) && strlen(trim($_GET[$parameter])) > 0;\n}", "public function has($name)\r\n {\r\n return array_key_exists($name, $this->parameters);\r\n }", "public function hasParams()\r\n\t{\r\n\t\treturn (is_array($this->pathParameters) && !empty($this->pathParameters));\r\n\t}", "public function hasParam($index): bool\n {\n return isset($this->params[$index]);\n }", "public function hasParameter($parameterName)\n {\n return isset($this->parameters[$parameterName]);\n }", "public function hasNamedParameter($name)\n {\n return isset($this->namedParameters[strtolower($name)]);\n }", "public function hasParameter($name)\n {\n if ($this->hasParameters()) {\n return array_key_exists($name, $this->getParameters());\n }\n\n return false;\n }", "public function hasParameterValue($parameterName)\n {\n return $this->hasParameter($parameterName) && !$this->getParameter($parameterName)->isRequired();\n }", "public function parameterExist($parameterName) {\n $result = array_key_exists($parameterName, $this->params);\n return $result;\n }", "function isTheseParametersAvailable($params){\n\t\t\n\t\t//traversing through all the parameters \n\t\tforeach($params as $param){\n\t\t\t//if the paramter is not available\n\t\t\tif(!isset($_POST[$param])){\n\t\t\t\t//return false \n\t\t\t\treturn false; \n\t\t\t}\n\t\t}\n\t\t//return true if every param is available \n\t\treturn true; \n\t}", "public function checkRequiredParamsSet() : bool {\n }", "public function __isset( $param ) {\n\t\treturn isset( $_REQUEST[ $param ] );\n\t}", "public function __isset(string $name): bool\n {\n return isset($this->parameters[$name]);\n }", "public function hasParameter($index)\n {\n return (\n isset($this->parameters[$index])\n && $this->parameters[$index] != ''\n );\n }", "public function offsetExists($param)\n\t{\n\t\treturn isset($this->params[(string) $param]);\n\t}", "public function __isset($name)\n {\n return $this->hasParam($name);\n }", "public function has(String $name)\n {\n return isset($this->parameters[$name]);\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 hasArgument($name): bool;", "public function isOpenParameter()\n\t{\n\t\treturn $this->_value == '...';\n\t}", "public function hasArgument($name);", "public function hasArgument($name);", "public function hasParameters() {\n $count = count($this->getParameters());\n \n return ($count > 0) ? $count : FALSE;\n }", "public function hasParam($name, $namespace = self::NAMESPACE_DEFAULT)\n {\n return isset($this->params[$namespace][$name]);\n }", "public function has(string $name): bool\n {\n foreach ($this as $parameter) {\n if ($parameter->getName() === $name) {\n return true;\n }\n }\n\n return false;\n }", "public function __isset($name)\n {\n return array_key_exists($name, $this->params);\n }", "function getParamInfo() {\n\t\treturn FALSE;\n\t}", "public function isParamSet($param, $prefix = '') {\n return !empty($prefix) ? $this->_rediska->existsInHash($prefix, $param) : $this->_rediska->exists($param);\n }", "public function hasRequiredParameters()\n {\n foreach ($this->parameters as $parameter) {\n if ($parameter->isRequired()) {\n return true;\n }\n }\n\n return false;\n }", "public function isDefined();", "private function _requestHasParam(string $key, array $request)\n {\n return array_key_exists($key, $request);\n }", "public function hasParameter($parameters) {\n\t\ttry {\n\t\t\t$value = $this->getParameter($parameters);\n\t\t} catch (\\Exception $e) {\n\t\t\t$value = null;\n\t\t}\n\t\treturn isset($value);\n\t}", "public function hasSwitchParam(): bool\n {\n return $this->request && $this->request->query->has($this->switchParam);\n }", "public function testMissingParameterGetCheck() {\n $this->pingdom->getCheck(null);\n }", "public function valid(): bool\n {\n return isset($this->parameters[$this->position]);\n }", "private function hasParam(array $array, $key = null)\n {\n if ($key !== null) {\n return array_key_exists($key, $array);\n } else {\n return !empty($array);\n }\n }", "public function isValidParam ($key)\n {\n if (in_array(strtoupper($key), $this->_validParamNames)) {\n return true;\n }\n return false;\n }", "public function has($key): bool\n {\n return array_key_exists($key, $this->params);\n }", "public function has($name)\n {\n return array_key_exists($name, $this->params);\n }", "function get_all_exists($parameters){\n foreach($parameters as $parameter){\n if(!get_exists($parameter)) return false;\n }\n return true;\n}", "public function hasArgument($name)\n {\n return $this->input->hasArgument($name);\n }", "public function has(string $parameterName)\n {\n return isset($this->parameters[$parameterName]);\n }", "public function hasOptionalParameters()\n {\n foreach ($this->parameters as $parameter) {\n if (!$parameter->isRequired()) {\n return true;\n }\n }\n\n return false;\n }", "function post_exists($parameter){\n return key_exists($parameter, $_POST) && strlen(trim($_POST[$parameter])) > 0;\n}", "public function __isset($name)\n {\n return isset($this->_params['args'][$name]);\n }", "public function __isset($name)\n {\n return isset($this->_params['args'][$name]);\n }", "public function has($name)\n {\n return $this->argument->defined($name);\n }", "public function hasArg($name)\n {\n return isset($this->args[$name]);\n }", "function func_has_arg(int|string $arg): bool\n{\n $trace = debug_backtrace(0)[1];\n\n // Name check.\n if (is_string($arg)) {\n if (!empty($trace['args'])) {\n $ref = !empty($trace['class'])\n ? new ReflectionCallable([$trace['class'], $trace['function']])\n : new ReflectionCallable($trace['function']);\n\n return array_key_exists($ref->getParameter($arg)?->getPosition(), $trace['args']);\n }\n\n return false;\n }\n\n // Count & position check.\n return !empty($trace['args']) && array_key_exists($arg, $trace['args']);\n}", "public function has($param, $path = 'global')\n\t{\n\t\treturn array_key_exists($path, $this->data) && array_key_exists($param, $this->data[$path]);\n\t}", "public function __isset($key)\n {\n return isset($this->params[$key]);\n }", "public function IsParametersSet()\n {\n $parameters = $this->GetParameters();\n \n $isSet = !is_null($parameters);\n \n return $isSet;\n }", "function required_param($parname, $type=PARAM_CLEAN, $errMsg=\"err_param_requis\") {\n\n // detect_unchecked_vars addition\n global $CFG;\n if (!empty($CFG->detect_unchecked_vars)) {\n global $UNCHECKED_VARS;\n unset ($UNCHECKED_VARS->vars[$parname]);\n }\n\n if (isset($_POST[$parname])) { // POST has precedence\n $param = $_POST[$parname];\n } else if (isset($_GET[$parname])) {\n $param = $_GET[$parname];\n } else {\n erreur_fatale($errMsg,$parname);\n }\n // ne peut pas �tre vide !!! (required)\n $tmpStr= clean_param($param, $type); //PP test final\n // attention \"0\" est empty !!!\n\n if (!empty($tmpStr) || $tmpStr==0) return $tmpStr;\n else erreur_fatale(\"err_param_suspect\",$parname.' '.$param. \" \".__FILE__ );\n\n\n}", "public function checkParams()\n {\n if (!isset($_GET['params'])) {\n die($this->error('404'));\n } else {\n $id = $_GET['params'];\n }\n }", "public function isValidParameter($key)\n {\n if (empty($key)) return false;\n\n $validParameters = $this->getValidParameters();\n\n return empty($validParameters) || in_array($key, $validParameters);\n }" ]
[ "0.80165577", "0.78514326", "0.78514326", "0.78514326", "0.78514326", "0.78514326", "0.77363604", "0.77131563", "0.7612693", "0.7603801", "0.7590044", "0.75522417", "0.7532681", "0.7447304", "0.741078", "0.74092716", "0.7383242", "0.7349386", "0.7344325", "0.73358464", "0.7326312", "0.730937", "0.7266971", "0.7260491", "0.7252952", "0.72518635", "0.7235235", "0.7234041", "0.72254574", "0.7194852", "0.71383905", "0.7115604", "0.7107218", "0.7096355", "0.7088117", "0.7086563", "0.70745814", "0.7064998", "0.7046232", "0.70115644", "0.6994448", "0.693018", "0.6929979", "0.69229", "0.69058275", "0.686655", "0.68580997", "0.6827531", "0.6803469", "0.6787309", "0.67800784", "0.677329", "0.67341566", "0.67338735", "0.6733365", "0.6712494", "0.6710166", "0.66975516", "0.66935015", "0.66598946", "0.6644368", "0.66349", "0.6624896", "0.6615442", "0.66131693", "0.66131693", "0.6582199", "0.6582048", "0.6561899", "0.6556589", "0.65365446", "0.6524414", "0.6511791", "0.6477315", "0.647155", "0.64678425", "0.6459656", "0.64434063", "0.6407989", "0.6357653", "0.6350248", "0.63431126", "0.6343101", "0.63383555", "0.63199544", "0.6318779", "0.6263971", "0.624682", "0.624447", "0.624447", "0.6239516", "0.62352663", "0.62286043", "0.6223641", "0.62192774", "0.6210936", "0.6206968", "0.62026036", "0.62010854" ]
0.8020747
1
Check if the specified configuration key is defined
public function hasConfig($key);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasConfig(string $key): bool;", "public function has($configKey, $key);", "public function has($key)\n {\n if(array_key_exists($key,$this->config_arr))\n return true;\n else\n return false;\n }", "public function is_api_key_in_config() {\n\t\treturn defined( 'ALGOLIA_API_KEY' );\n\t}", "function config($key) {\n global $config;\n\n return !empty($config[$key]) ? $config[$key] : false;\n}", "public function exists($key)\r\n {\r\n return isset($this->config[$key]);\r\n }", "public function has($key){\n return (array_key_exists($key,$this->settings));\n }", "public function has($key)\n {\n return array_key_exists($key, $this->config);\n }", "public function has($key)\n {\n return array_key_exists($key, $this->config);\n }", "public static function has($key)\n {\n return isset(self::$config[$key]);\n }", "public function hasConfig();", "function conditional_config($config_key) {\n\tif(!chevereto_config($config_key)) {\n\t\treturn false;\n\t} else {\n\t\treturn true;\n\t}\n}", "public function is_search_api_key_in_config() {\n\t\treturn defined( 'ALGOLIA_SEARCH_API_KEY' );\n\t}", "public function checkIfEssentialConfigurationExists() {}", "public function hasConfig($key) {\n return $this->getConfigAugment()->has($key);\n }", "public function settingExists($key) {\n return isset($this->options[$key]);\n }", "final public function hasConfig($key = null)\n {\n $config = $this->getConfig();\n\n if (is_null($key)) {\n return !empty($config);\n } else {\n return array_key_exists($key, $config);\n }\n }", "public function exists($key) {\n\t\treturn array_key_exists($key, $this -> settings);\n\t}", "private function keyExists(string $key)\n {\n return array_key_exists($key, $this->definitions);\n }", "public function testConfigHasApiKey()\n\t{\n\t\t$this->assertTrue(isset($this->config['apiKey']));\n\t\t$this->assertTrue(empty($this->config['apiKey']));\n\t}", "function baseSettings_exists($key)\n {\n return app('BaseSettings_exists')->exists($key);\n }", "public function isApiKeyConfigured()\n {\n $public_key = Mage::helper('core')->decrypt(Mage::getStoreConfig('payment/bitcoin/public_key'));\n $private_key = Mage::helper('core')->decrypt(Mage::getStoreConfig('payment/bitcoin/private_key'));\n return (!empty($private_key) && !empty($public_key));\n }", "public static function has($key)\n {\n if (isset(static::$cache[$key])) return true;\n\n $config = DBConfig::where('_key', '=', $key)->first();\n\n if (is_null($config)) return false;\n else return true;\n }", "public function __isset($key) {\n return isset(self::$settings[$key]);\n }", "public function paramExists (string $key)\n {\n if (array_key_exists($key, $this->getParams()))\n return true;\n\n return false;\n }", "public function checkKeyPresence($key) {\n if (!$this->check($key)) {\n throw new MOC_Configuration_Exception(sprintf('Required configuration setting \"%s\" is missing', $key));\n }\n }", "function option_exists($key)\n {\n return app('option')->exists($key);\n }", "public function hasSetting($key) : bool\n {\n return isset($this->settings[$key]);\n }", "function config($key){\n $config = include 'config.php';\n\n if(key_exists($key,$config)){\n return $config[$key];\n }\n return false;\n}", "public function has( $key )\n {\n $this->loadSettingsIfNotLoaded();\n\n return $this->randomDefaultValue !== array_get( $this->settings, $key, $this->randomDefaultValue );\n }", "public function issetKey(string $key) : bool;", "public function parameterExists($key);", "public function has($key): bool\n {\n return array_key_exists($key, $this->params);\n }", "public static function has(string $key)\n {\n $segments = explode('.', $key);\n $file = array_shift($segments);\n $arr = static::loadConfig($file);\n\n foreach ($segments as $seg) {\n if (!array_key_exists($seg, $arr)) {\n return false;\n }\n $arr = $arr[$seg];\n }\n\n return $arr ? true : false;\n }", "public function key_exists($key) {\n return in_array($key, array_keys($this->params));\n }", "public static function settingExists(string $key): bool\n\t{\n\t\tif (in_array($key, ['favourites', 'streamers'])) return true;\n\n\t\tforeach (self::$settingsFields as $setting) {\n\t\t\tif ($setting['key'] == $key) return true;\n\t\t}\n\t\treturn false;\n\t}", "public function has(string $key): bool {}", "function option_exists(string $key)\n {\n return Options::exists($key);\n }", "public function isset($key): bool;", "function has_global_setting($key)\n{\n global $globalSettings;\n return (isset($globalSettings[$key]) && !empty($globalSettings[$key]));\n}", "function has_config() {\n return true;\n }", "function has_configuration() {\n\t\treturn true;\n\t}", "private function _api_key_exists()\n {\n $apikey = Apikey::where('secret', '=', $this->_key)->first();\n if (!$apikey) {\n return false;\n }\n return true;\n }", "public function has_config() {\n return true;\n }", "public function has_config() {\n return true;\n }", "function has($key = '')\n {\n }", "public function __isset(string $key): bool;", "public function has($key)\n {\n return array_key_exists($key, $this->parsedOptions);\n }", "public static function has($name)\n {\n return array_key_exists($name, self::$config);\n }", "public function has($key) : bool;", "public function has_config() {\n return false;\n }", "public function has_config() {\n return false;\n }", "public static function config($key)\n\t{\n\t\treturn (TC::$config !== NULL) ? TC::$config->get($key) : false;\n\t}", "public function __isset($key)\n {\n return isset($this->params[$key]);\n }", "public function has(string $key): bool;", "public function has(string $key): bool;", "public function has(string $key): bool;", "public function has(string $key): bool;", "public function has(string $key): bool;", "public function has(string $key): bool;", "public function has(string $key): bool;", "public function offsetExists($key)\n {\n return array_key_exists($key, $this->defaultVariables);\n }", "public function checkConfig();", "public function keyExists(string $key): bool;", "public function has(string $key) : bool;", "function exists($key) {\n\t\treturn isset($this->args[$key]);\n\t}", "public function has_option($key) {\n return is_array($this->options) && array_key_exists($key, $this->options);\n }", "public function has($key, $package = 'mybb/core')\n\t{\n\t\t$this->assertLoaded();\n\n\t\treturn isset($this->settings[$package][$key]);\n\t}", "function requires(string $key): bool\n{\n if (array_key_exists($key, $_ENV)) {\n return true;\n }\n\n throw new UnexpectedValueException(\"$key is not set in the environment variables\");\n}", "public function __isset($key)\n\t{\n\t\treturn array_key_exists($key, $this->props);\n\t}", "public function has($key);", "public function has($key);", "public function has($key);", "public function has($key);", "public function has($key);", "public function has($key);", "public function has($key);", "public function has($key);", "public function has($key);", "public function has($key);", "public function has($key);", "public function has($key);", "public function has($key);", "public function has($key);", "public function has($key);", "public function has($key);", "public function has($key);", "public function has($key);", "public function has( $key )\n\t{\n\t\treturn $this->request->has($key);\n\t}", "public static function isConfigured()\n {\n return !(bool) (empty(self::applicationId()) || empty(self::apiKey()));\n }", "public function hasConfig($key)\n {\n if ( null === $key ) {\n return false;\n }\n\n $this->validateConfigKey($key);\n $configurator = $this->getConfigurator();\n\n return isset($configurator[$key]);\n }", "public function has(string $key): bool\n {\n return array_key_exists($key, $this->variables);\n }", "public function has($key)\n {\n $data = $this->parameters;\n\n foreach (explode('.', $key) as $pkey) {\n if (!array_key_exists($pkey, $data) || !is_array($data)) {\n return false;\n }\n\n $data = $data[$pkey];\n }\n\n return true;\n }", "private function isConfigured() : bool\n {\n if (!is_readable($this->settings['sp_key_file'])) {\n return false;\n }\n if (!is_readable($this->settings['sp_cert_file'])) {\n return false;\n }\n $key = file_get_contents($this->settings['sp_key_file']);\n if (!openssl_get_privatekey($key)) {\n return false;\n }\n $cert = file_get_contents($this->settings['sp_cert_file']);\n if (!openssl_get_publickey($cert)) {\n return false;\n }\n if (!SignatureUtils::certDNEquals($cert, $this->settings)) {\n return false;\n }\n return true;\n }", "public function has(string $key): bool\n {\n return false;\n }", "public function hasServerParam(string $key)\n\t{\n\t\treturn isset($this->getServerParams()[$key]) ? true : false;\n\t}", "public function has_param($key)\n {\n }", "public function has_configuration()\n {\n return true;\n }", "public function has_configuration()\n {\n return true;\n }", "public static function has($key) {\n return static::get($key) !== null;\n }" ]
[ "0.83128804", "0.78871", "0.77189046", "0.7514252", "0.749829", "0.73914665", "0.7366664", "0.7339544", "0.7339544", "0.7300253", "0.7256063", "0.7245127", "0.7241233", "0.71758795", "0.71379906", "0.7088905", "0.7073178", "0.7046484", "0.7013935", "0.7006623", "0.69946253", "0.6981816", "0.690591", "0.6899181", "0.6896986", "0.68913335", "0.6890139", "0.6875573", "0.6862856", "0.6810703", "0.68064886", "0.6781043", "0.6774306", "0.6771838", "0.67486167", "0.6743866", "0.67389214", "0.67376906", "0.67213637", "0.6692144", "0.6681967", "0.6666934", "0.6664039", "0.66614455", "0.66614455", "0.6643568", "0.6640722", "0.6629331", "0.66243786", "0.6606143", "0.6599195", "0.6599195", "0.6584955", "0.65523094", "0.655191", "0.655191", "0.655191", "0.655191", "0.655191", "0.655191", "0.655191", "0.6551903", "0.65510917", "0.65359426", "0.6522672", "0.6517045", "0.65170085", "0.6500235", "0.6499691", "0.64995134", "0.64901197", "0.64901197", "0.64901197", "0.64901197", "0.64901197", "0.64901197", "0.64901197", "0.64901197", "0.64901197", "0.64901197", "0.64901197", "0.64901197", "0.64901197", "0.64901197", "0.64901197", "0.64901197", "0.64901197", "0.64901197", "0.6488076", "0.6482376", "0.6457131", "0.64498585", "0.6440028", "0.64349574", "0.6428699", "0.64271253", "0.6424044", "0.6416661", "0.6416661", "0.6413289" ]
0.83470756
0
Gets the configuration entry
public function getConfig($key);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_setting() {\n return get_config(NULL, $this->name);\n }", "static function getConfig() {\n\t\treturn self::getRegistry()->get(self::REGISTRY_CONFIG);\n\t}", "public function get_config()\n\t{\n\t\treturn $this->cfg;\n\t}", "public function getConfig(){\n\t\treturn $this->_config;\n\t}", "public function getConfig()\n {\n return $this->get('config');\n }", "public function getConfig()\n {\n return $this['config'];\n }", "public static function getConfig()\n {\n return self::$config;\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function getConfig(){\n return $this->config;\n }", "public function getConfig()\r\n {\r\n return $this->_file;\r\n }", "public static function read()\n {\n return self::$config;\n }", "public function getConfig() \n {\n return $this->config;\n }", "public function get() {\n return $this->_configuration;\n }", "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 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 getConfigKey(): string;", "public function get($key)\r\n {\r\n return $this->config[$key];\r\n }", "public function getConfig()\n {\n return $this->_config;\n }", "public function getConfig()\n {\n return $this->_config;\n }", "public function getConfig() {\n return $this->_config;\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 config_get(){\n\t\treturn $this->fb->exec('dhcp.config_get');\n\t}", "function getConfig()\n {\n return $this->config;\n }", "public function get()\r\n {\r\n $this->ensureLoaded();\r\n return $this->config;\r\n }", "public function getConfig() {\r\n return $this->config;\r\n }", "public function getConfiguration()\n {\n return $this->_config;\n }", "public function getConfig() {\n \t\n \t// Return our configuration\n \treturn $this->aConfig;\n }", "public function getConfig()\n {\n return $this->_getConfigFile();\n }", "public static function getInstance() {\n return self::getConfig();\n }", "public static function getConf(){\n $conf = Configuration::first();\n return $conf;\n }", "public function getConfig() {}", "function getConfig($key = '')\n {\n return isset($this->config[$key]) ? $this->config[$key] : null;\n }", "public function config()\n {\n return $this->context->getConfig();\n }", "public function getSetting() {}", "public function getSetting() {}", "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()\n {\n return $this->config;\n }", "public function getConfigurarion()\n {\n return $this->configuration;\n }", "public function getConfig()\n {\n return $this->config ?: $this->setConfig()->getConfig();\n }", "protected function get($name) {\n return $this->configuration->get($name);\n }", "public function getConfig ()\n {\n $config = Mage::getModel('socnet/network')\n ->getConfigByNetworkKey($this->getNetworkKey());\n return $config;\n }", "protected function getConfig()\n\t{\n\t\treturn $this->oConfig;\n\t}", "public function getConfig()\r\n {\r\n return Zend_Registry::get('config');\r\n }", "public function getConfig()\n {\n return Mage::getModel(\"postident/config\");\n }", "public function getConfig() {\n if ($this->config) {\n return $this->config;\n }\n \n $this->config = $this->parse($this->configFile);\n return $this->config;\n }", "public function getEntry();", "public function getEntry()\n {\n return $this->entry;\n }", "public function getEntry()\n {\n return $this->entry;\n }", "public function getEntry()\n {\n return $this->entry;\n }", "function getConfig()\n {\n return $this->_api->doRequest(\"GET\", \"{$this->getBaseApiPath()}/config\");\n }", "public function getConfig() {\n if (is_null($this->getData(\"config\"))) {\n $this->setData(\"config\", Mage::getModel(\"cloudiq_callme/config\"));\n }\n\n return $this->getData(\"config\");\n }", "static public function getConfig() {\n return Application::$config;\n }", "private static function _getConfig()\n\t{\n\t\treturn \\Config::get('app.fqdn', '');\n\t}", "public function getConfig() : \\codename\\core\\config {\r\n return $this->config;\r\n }", "function getConfig() {\n\t\tif (null === $this->_config) {\n\t\t\t$sql = \"\n\t\t\t\tSELECT c.node_id FROM synd_inv_config c\n\t\t\t\tWHERE c.parent_node_id = \".$this->_db->quote($this->nodeId);\n\t\t\t$this->_config = (string)$this->_db->getOne($sql);\n\t\t\t$this->_node_onchange_internal();\n\t\t}\n\n\t\tif ('' == $this->_config || null === ($config = $this->_storage->getInstance($this->_config))) {\n\t\t\t$config = $this->appendChild($this->_storage->factory('config'));\n\t\t\t$this->_config = $config->nodeId;\n\t\t\t$this->_node_onchange_internal();\n\t\t}\n\n\t\treturn $config;\n\t}", "public function getConfig() {\n return $this->container->offsetGet('config');\n }", "private function config()\n {\n return $this->app['config'];\n }", "private function config()\n {\n return $this->app['config'];\n }", "abstract protected function getConfig();", "private function getConfig($key)\n {\n return $this->config->get($key);\n }", "public static function getConfig () {\n\n\t\treturn parse_ini_file(APPPATH . '/config/config.ini');\n\t}", "static public function getConfig($key = null)\n {\n return Ini::getConfig($key);\n }", "public function getConfiguration(): ?string;", "public function getConfiguration() {\n return $this->configuration;\n }", "public function getConfig()\n {\n return $this->traitGetConfig();\n }", "public function &getConfig() {\n return $this->config;\n }", "public function getConfig() : Config\n {\n return $this->config;\n }", "public function getConfiguration()\n\t{\n\t\treturn $this->configuration;\n\t}", "abstract public function getConfig();", "public function getConfig ()\n {\n return $this->web->getConfig();\n }", "public function getConfiguration() {\n return $this->configuration;\n }", "public function getKey()\n {\n return Config::getKey(get_class($this->config));\n }", "public function getConfig() {\n $configFiles = [\n 4 => 'laravel-haml::config',\n 5 => 'laravel-haml',\n 6 => 'haml'\n ];\n\n\t\t$key = $configFiles[$this->version()];\n\t\treturn $this->app->make('config')->get($key);\n\t}", "protected function getConfig()\n {\n\n return $this->app['config']['manticore'];\n }" ]
[ "0.68556684", "0.68522304", "0.6796613", "0.6791402", "0.6783485", "0.67475647", "0.67385405", "0.67333084", "0.67111236", "0.66947687", "0.6684268", "0.6653622", "0.6628087", "0.6626794", "0.6626794", "0.6626794", "0.6626794", "0.6626794", "0.6626794", "0.6626794", "0.6626794", "0.66242033", "0.66242033", "0.66242033", "0.66242033", "0.66242033", "0.66242033", "0.66242033", "0.66242033", "0.66242033", "0.66242033", "0.66242033", "0.66242033", "0.66242033", "0.66242033", "0.66242033", "0.6613741", "0.6613464", "0.6612613", "0.6612613", "0.66095686", "0.66070676", "0.66070676", "0.66070676", "0.66070676", "0.6595186", "0.6585681", "0.6584754", "0.6577299", "0.65761167", "0.65737575", "0.6555021", "0.65297127", "0.649009", "0.64876926", "0.64656985", "0.6463532", "0.6457309", "0.6457309", "0.6425229", "0.6425229", "0.6398021", "0.6392956", "0.6390371", "0.6379507", "0.63785464", "0.6368869", "0.63682467", "0.6359344", "0.63532984", "0.635101", "0.6344072", "0.6344072", "0.6344072", "0.63337684", "0.6326411", "0.6287646", "0.6278243", "0.6264948", "0.62588155", "0.62526846", "0.6252481", "0.6252481", "0.62417054", "0.62349606", "0.6226379", "0.6217039", "0.621264", "0.620963", "0.6203022", "0.61991525", "0.61795825", "0.6175491", "0.6171233", "0.6167962", "0.6163014", "0.6159942", "0.6159507", "0.6149963" ]
0.6278389
77
Sets the specified configuration entry
public function setConfig($key, $value);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract function setConfig($key, $value);", "public function set(string $name, $entry): void;", "public function set($config){\n\t\t$this->configValues = $config;\n\t}", "public static function set(array $config): void;", "public static function set(string $config, mixed $value) : void{\n self::$configurations[$config] = $value;\n }", "function set($key, $val)\n {\n $config[$key] = $val;\n \n }", "public function setConfiguration($config){\r\n $this->configuration=$config;\r\n }", "public function set($setting_data = '', string $setting_key = '');", "function set_external_config($key, $value)\n {\n $this->_external_config[$key] = $value;\n }", "public static function set( $entry, $value ) {\r\n if ( !property_exists( 'Registry', $entry ) )\r\n throw new LibraryException('Registry entry does not exist');\r\n\r\n self::$$entry = $value;\r\n }", "function set_item($item, $value)\n\t{\n\t\t$this->config[$item] = $value;\n\t}", "protected function _set_parameter($key, $value)\n {\n clearos_profile(__METHOD__, __LINE__);\n\n $file = new File(self::FILE_CONFIG);\n\n if (! $file->exists())\n $file->create('root', 'root', '0644');\n\n $match = $file->replace_lines(\"/^$key\\s*=\\s*/\", \"$key = $value\\n\");\n\n if (!$match)\n $file->add_lines(\"$key = $value\\n\");\n\n $this->is_loaded = FALSE;\n }", "public function setConfig($a_configItem, $a_value)\n {\n $this->m_config[$a_configItem] = $a_value;\n }", "protected function _set_parameter($key, $value)\n {\n clearos_profile(__METHOD__, __LINE__);\n\n $this->is_loaded = FALSE;\n\n $file = new File(self::APP_CONFIG);\n\n if (! $file->exists())\n $file->create(\"root\", \"root\", \"0644\");\n\n $match = $file->replace_lines(\"/^$key\\s*=\\s*/\", \"$key = $value\\n\");\n\n if (!$match)\n $file->add_lines(\"$key = $value\\n\");\n }", "public function setConfig($data, $value) {\n if (is_string($data)) {\n $this->_config[$data] = $value;\n } else {\n throw new ConfigException(\"Error while setting a config value\");\n }\n }", "public function set(string $a_key, string $a_val) : void\n {\n $ilDB = $this->db;\n\n $ilDB->replace(\n \"crn_sts_mtr_settings\",\n array(\n \"keyword\" => array(\"text\", $a_key)),\n array(\n \"value\" => array(\"clob\", $a_val))\n );\n\n $this->setting[$a_key] = $a_val;\n }", "public function setEntry($entry)\n {\n if ($this->validateEntry($entry)) {\n $this->entries[] = $entry;\n }\n }", "public function set ( $name, $value ) {\n\t\tif(!ctype_alpha(str_replace(' ', '', $name))) {\n\t\t\tthrow new \\InvalidArgumentException(sprintf('The name \"%s\" is invalid.', $name));\n\t\t}\n\t\t$this->config[$name] = $value;\n\t}", "public function setConfiguration(array $config);", "public function set(string $key, $value) : void\n {\n if (isJson($this->configuration)) {\n $configuration = json_decode($this->configuration, true);\n $configuration[$key] = $value;\n $this->configuration = json_encode($configuration);\n } else {\n $this->configuration = json_encode([\n $key => $value\n ]);\n }\n\n $this->saveOrFail();\n }", "protected function setConfigValue($data){\t\n\t\tMage::getModel('core/config_data')->load($data['path'],'path')->setData($data)->save();\n\t}", "public function setConfig(Configuration $config);", "public function setConfig($config)\r\n {\r\n $this->config = $config;\r\n }", "function cfg_set(...$args)\n{\n\tglobal $CONFIG;\n\tswitch( count($args) )\n\t{\n\t\tcase 2: $CONFIG[$args[0]] = $args[1]; break;\n\t\tcase 3: $CONFIG[$args[0]][$args[1]] = $args[2]; break;\n\t\tcase 4: $CONFIG[$args[0]][$args[1]][$args[2]] = $args[3]; break;\n\t\tcase 5: $CONFIG[$args[0]][$args[1]][$args[2]][$args[3]] = $args[4]; break;\n\t\tcase 6: $CONFIG[$args[0]][$args[1]][$args[2]][$args[3]][$args[4]] = $args[5]; break;\n\t\tcase 7: $CONFIG[$args[0]][$args[1]][$args[2]][$args[3]][$args[4]][$args[5]] = $args[6]; break;\n\t\tdefault: WdfException::Raise(\"Illegal argument count: \".count($args));\n\t}\n}", "public function __set($key, $value)\n\t{\n\t\t$this->config(array($key => $value));\n\t}", "public function setWithConfig(string $id, $class, $config_file, $setter = false);", "function _set_config_param($name,$value)\r\n\t{\r\n\t\t$this->db->query(\"update m_config_params set value = ? where name = ? limit 1\",array($value,$name));\r\n\t}", "public function set()\n\t{\n\t\t$options = $this->arguments->getOpts();\n\n\t\tif (empty($options))\n\t\t{\n\t\t\tif ($this->output->isInteractive())\n\t\t\t{\n\t\t\t\t$options = array();\n\t\t\t\t$option = $this->output->getResponse('What do you want to configure [name|email|etc...] ?');\n\n\t\t\t\tif (is_string($option) && !empty($option))\n\t\t\t\t{\n\t\t\t\t\t$options[$option] = $this->output->getResponse(\"What do you want your {$option} to be?\");\n\t\t\t\t}\n\t\t\t\telse if (empty($option))\n\t\t\t\t{\n\t\t\t\t\t$this->output->error(\"Please specify what option you want to set.\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->output->error(\"The {$option} option is not currently supported.\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->output = $this->output->getHelpOutput();\n\t\t\t\t$this->help();\n\t\t\t\t$this->output->render();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tif (Config::save($options))\n\t\t{\n\t\t\t$this->output->addLine('Saved new configuration!', 'success');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->output->error('Failed to save configuration');\n\t\t}\n\t}", "function setEntryKey($entryKey) {\n\t\t$this->setData('entryKey', $entryKey);\n\t}", "public function setConfig($config)\n\t{\n\t\t$this->config = $config;\n\t}", "function setLdapEntry($entry)\n\t{\n\t\t$this->ldap_dn = $entry['dn'];\n\n\t\t// Required\n\t\t$this->username = $entry['uid'][0];\n\t\t$this->surname = $entry['sn'][0];\n\t\t$this->commonName = $entry['cn'][0];\n\n\t\t// Optional\n\t\tif (isset($entry['givenname'][0])) {\n\t\t\t$this->givenname = $entry['givenname'][0];\n\t\t}\n\t\tif (isset($entry['userPassword'][0])) {\n\t\t\t$this->password = $entry['userPassword'][0];\n\t\t}\n\t\tif (isset($entry['description'])) {\n\t\t\t$this->description = $entry['description'][0];\n\t\t}\n\t\tif (isset($entry['telephonenumber'])) {\n\t\t\t$this->telephoneNumber = $entry['telephonenumber'][0];\n\t\t}\n\t\tif (isset($entry['mail'])) {\n\t\t\t$this->mail = $entry['mail'][0];\n\t\t}\n\t\tif (isset($entry['o'])) {\n\t\t\t$this->organizationName = $entry['o'][0];\n\t\t}\n\t}", "public function setConfig($config)\n {\n $this->config = $config;\n }", "public function setConfig($config)\n {\n $this->config = $config;\n }", "public function set_config($name, $value) {\n $settingspluginname = 'assessmentsettings';\n $this->load_config();\n if ($value === null) {\n unset($this->config->$name);\n } else {\n $this->config->$name = $value;\n }\n set_config($name, $value, \"local_$settingspluginname\");\n }", "abstract protected function saveConfiguration($name, $value);", "public function setSetting($name, $format, $value)\n\t{\n\t\t$this->localSettings[$format][$name] = $value;\n\t}", "public function set_item($item, $value)\n\t{\n\t\tGSMS::$config[$item] = $value;\n\t}", "public function setConfig($key, $value)\n {\n Config::set($key, $value);\n }", "public function set($key, $value)\n\t{\n\t\t$this->componentConfig->set($key, $value);\n\t}", "public function setConfig($id, $value) {\n\t\t$config = $this->em->getRepository('SSNTherapassBundle:Config')->find($id);\n\t\tif (is_null($config)) {\n\t\t\t$config = new Config();\n\t\t}\n\t\t$config->setValue($value);\n\t\tif (is_null($config->getId())) {\n\t\t\t$config->setId($id);\n\t\t\t$this->em->persist($config);\n\t\t}\n\t}", "public static function set($name, $value)\n {\n self::$config[$name] = $value;\n }", "public function edit ( $name, $value ) {\n\t\tif( !$this->has ( $name ) ) {\n\t\t\tthrow new \\InvalidArgumentException(sprintf('The name \"%s\" does not exist and can not be edited.', $name));\n\t\t}\n\t\t$this->config[$name] = $value;\n\t}", "public function set(string $entryIdentifier, $data, array $tags = [], int $lifetime = null);", "public function set($parameter, $value);", "public function set_value($set_value = NULL,$index = NULL,$item = NULL){\n if(is_null($index)){\n $this->ini_file_array = $set_value;\n } else if(is_null($item)){\n $this->ini_file_array[\"$index\"] = $set_value;\n } else {\n $this->ini_file_array[\"$index\"][\"$item\"] = $set_value;\n }\n }", "function set($setting, $value , $instance_id = null)\r\n\t{\r\n\t\treturn parent::set($setting, $value);\r\n\t}", "function set($name, $value, $site_guid = 0) {\n\n\n\t\t$name = trim($name);\n\n\t\t// cannot store anything longer than 255 characters in db, so catch before we set\n\t\tif (elgg_strlen($name) > 255) {\n\t\t\t_elgg_services()->logger->error(\"The name length for configuration variables cannot be greater than 255\");\n\t\t\treturn false;\n\t\t}\n\n\t\t$site_guid = (int) $site_guid;\n\t\tif ($site_guid == 0) {\n\t\t\t$site_guid = (int) $this->CONFIG->site_guid;\n\t\t}\n\n\t\tif ($site_guid == $this->CONFIG->site_guid) {\n\t\t\t$this->CONFIG->$name = $value;\n\t\t}\n\n\t\t$escaped_name = sanitize_string($name);\n\t\t$escaped_value = sanitize_string(serialize($value));\n\t\t$result = _elgg_services()->db->insertData(\"INSERT INTO {$this->CONFIG->dbprefix}config\n\t\t\tSET name = '$escaped_name', value = '$escaped_value', site_guid = $site_guid\n\t\t\tON DUPLICATE KEY UPDATE value = '$escaped_value'\");\n\n\t\treturn $result !== false;\n\t}", "public function setup()\n {\n \t// rtConfig::set('your-key', $your_value);\n }", "public function set( $key, $value ) {\n\n $this->_getConfigVars();\n $this->_conf[$key] = $value;\n $this->_updateConfigFile();\n }", "function setConfigValue( $path, $value, $type = 'leave' )\n\t{\n\t\t$this->conf[$path]\t\t\t=\t$this->convertValue( $value, $type );\n\t\t$this->currentConf[$path]\t=\t$this->convertValue( $value, $type );\n\t}", "public function setConfig($config)\n {\n self::$config = $config;\n }", "public function set($key, $value = null)\n {\n if (func_num_args() === 1 && is_array($key)) {\n foreach ($key as $name => $value) {\n $this->set($name, $value);\n }\n\n return;\n }\n\n if ($this->offsetExists($key)) {\n $this->config[ $key ] = $value;\n } else {\n throw new Exception(\"Config entry «{$key}» doesn't exists. \");\n }\n }", "public function set($key, $value)\n {\n if ($config = $this->getConfigFor($key)) {\n if ($type = Arr::get($config, 'type')) {\n @settype($value, $type);\n }\n $this->setting->set($key, $value);\n }\n }", "public function testGetSetConfig()\n {\n $this->config->set('foo', 'baz');\n $this->assertEquals($this->config->get('foo'), 'baz');\n }", "public function set_config($key, $value) {\n $this->config[$key] = $value;\n }", "function set_config($config_name, $config_value, $is_dynamic = false)\n{\n\tglobal $db, $cache, $config;\n\n\t$sql = 'UPDATE ' . CONFIG_TABLE . \"\n\t\tSET config_value = '\" . $db->sql_escape($config_value) . \"'\n\t\tWHERE config_name = '\" . $db->sql_escape($config_name) . \"'\";\n\t$db->sql_query($sql);\n\n\tif (!$db->sql_affectedrows() && !isset($config[$config_name]))\n\t{\n\t\t$sql = 'INSERT INTO ' . CONFIG_TABLE . ' ' . $db->sql_build_array('INSERT', array(\n\t\t\t'config_name'\t=> $config_name,\n\t\t\t'config_value'\t=> $config_value,\n\t\t\t'is_dynamic'\t=> ($is_dynamic) ? 1 : 0));\n\t\t$db->sql_query($sql);\n\t}\n\n\t$config[$config_name] = $config_value;\n\n\tif (!$is_dynamic)\n\t{\n\t\t$cache->destroy('config');\n\t}\n}", "public static function set(string $key, mixed $value)\n {\n static::$config[$key] = $value;\n }", "public function setConfiguration(IConfiguration $config);", "public static function set()\r\n\t\t{\r\n\t\t\t\r\n\t\t\t// Get the section.\r\n\t\t\t$section = Legato_Stage::$section;\r\n\t\t\t\r\n\t\t\t// If this isn't the default section and it hasn't been initialized\r\n\t\t\t// yet, carry over the default section's setting.\r\n\t\t\tif ( $section != 'default' && !self::$_loaded[$section] )\r\n\t\t\t{\r\n\t\t\t\tself::$_settings[$section] = self::$_settings['default'];\r\n\t\t\t\tself::$_loaded[$section] = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Get the arguments passed in.\r\n\t\t\t$args = func_get_args();\r\n\t\t\t\r\n\t\t\t// Setting a category or key?\r\n\t\t\tif ( count( $args ) == 3 )\r\n\t\t\t{\r\n\t\t\t\tself::$_settings[$section][$args[0]][$args[1]] = $args[2];\r\n\t\t\t\tself::$_setting_sections[$args[0]][$args[1]] = $section;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tif ( !is_array( self::$_settings[$section][$args[0]] ) )\r\n\t\t\t\t\tself::$_settings[$section][$args[0]] = array();\r\n\t\t\t\t\t\r\n\t\t\t\tself::$_settings[$section][$args[0]] = array_merge( self::$_settings[$section][$args[0]], $args[1] );\r\n\t\t\t\t\r\n\t\t\t\t// We have to overwrite which settings belong to which sections.\r\n\t\t\t\tif ( !self::$_setting_sections[$args[0]] )\r\n\t\t\t\t\tself::$_setting_sections[$args[0]] = array();\r\n\t\t\t\t\t\r\n\t\t\t\tself::$_setting_sections[$args[0]] = array_merge( self::$_setting_sections[$args[0]], array_fill_keys( array_keys( $args[1] ), $section ) );\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Success.\r\n\t\t\treturn true;\r\n\t\t\t\r\n\t\t}", "public function set(string $configPath, ?string $value, string $scope = null): self;", "public function __set($name, $value)\n\t{\n\t\t// Ensure that setting a date always sets a JDate instance.\n\t\tif ((($name == 'updatedDate') || ($name == 'publishedDate')) && !($value instanceof JDate))\n\t\t{\n\t\t\t$value = new JDate($value);\n\t\t}\n\n\t\t// Validate that any authors that are set are instances of JFeedPerson or null.\n\t\tif (($name == 'author') && (!($value instanceof JFeedPerson) || ($value === null)))\n\t\t{\n\t\t\tthrow new InvalidArgumentException('JFeedEntry \"author\" must be of type JFeedPerson. ' . gettype($value) . 'given.');\n\t\t}\n\n\t\t// Validate that any sources that are set are instances of JFeed or null.\n\t\tif (($name == 'source') && (!($value instanceof JFeed) || ($value === null)))\n\t\t{\n\t\t\tthrow new InvalidArgumentException('JFeedEntry \"source\" must be of type JFeed. ' . gettype($value) . 'given.');\n\t\t}\n\n\t\t// Disallow setting categories, contributors, or links directly.\n\t\tif (($name == 'categories') || ($name == 'contributors') || ($name == 'links'))\n\t\t{\n\t\t\tthrow new InvalidArgumentException('Cannot directly set JFeedEntry property \"' . $name . '\".');\n\t\t}\n\n\t\t$this->properties[$name] = $value;\n\t}", "public function setValue($key, $value) {\n\t\t$this->config->setValue($key, $value);\n\t}", "private function setConfig($name, $value, $target = null)\n {\n switch($target){\n \n case self::HEADER:\n $this->config->header->{$name} = $value;\n break;\n \n case self::CONTENT:\n $this->config->content->{$name} = $value;\n break;\n \n default:\n $this->config->{$name} = $value;\n break;\n }\n }", "public function set( $option, $value );", "public function setParameter(string $name, $value): void\n {\n $this->config[$name] = $value;\n }", "private function set($configuration=null)\r\n {\r\n //we are doing global registration for env and var value.\r\n $this->app->register('environmentVariables',$configuration);\r\n $this->app->register('env',$this->environment([],$this->app['environmentVariables']));\r\n }", "public function setData($key, $value);", "public function setData($key, $value);", "public function __set($name,$value)\n\t{\n\t\tif(in_array($name,$this->config_other_attributes))\n\t\t\t$this->list_other_attributes[$name]=$value;\n\t\telse \n\t\t\tparent::__set($name,$value);\n\t}", "function sloodle_set_config($name, $value)\n {\n // If in debug mode, ensure the name is prefixed appropriately for Sloodle\n if (defined('SLOODLE_DEBUG') && SLOODLE_DEBUG) {\n if (substr_count($name, 'sloodle_') < 1) {\n exit (\"ERROR: sloodle_set_config(..) called with invalid value name \\\"$name\\\". Expected \\\"sloodle_\\\" prefix.\");\n }\n }\n // Use the standard Moodle config function, ignoring the 3rd parameter (\"plugin\", which defaults to NULL)\n return set_config(strtolower($name), $value);\n\t}", "function register_setting($key, $value)\n{\n csSettings::set($key, $value);\n}", "public function put($configKey, $key, $data);", "public function set($name, $value);", "public function set($name, $value);", "public function set($name, $value);", "public function setSettings($key, $val){\r\n $this->setting[$key] = $val;\r\n }", "function set_post_parameter($param, $value) {\n\n $post_value = \\M\\Config::get('POST');\n $post_value[$param] = $value;\n\n \\M\\Config::set('POST', $post_value);\n}", "protected function _setValue($name, $value) {}", "public function setSiteConfiguration($configuration);", "public function setConfig($key, $value, $bolPass = false)\r\n\t{\r\n\t\t$this->arrConfig[Parser::strtoupper( $key )] = $value;\r\n\t\t\r\n\t\tif ( $bolPass == true )\r\n\t\t{\r\n\t\t\t$this->arrPass[Parser::strtolower( $key )] = $value;\r\n\t\t}\r\n\t}", "function configure(&$settings) {\n print_header('Alter Configuration');\n \n $table_headers = array('Setting', 'Name', 'Value');\n \n $table_rows = array();\n foreach ($settings as $Name => $value) {\n $table_rows[] = array(count($table_rows), $Name, $value);\n }\n \n $table = new \\cli\\Table();\n $table->setHeaders($table_headers);\n $table->setRows($table_rows);\n $table->display(); \n\n do{\n $setting = \\cli\\prompt(\"Choose a setting to alter (type 'r' to return)\");\n if ($setting === 'r') {\n return null;\n }\n } while(!is_numeric($setting) || $setting > count($settings) - 1 || $setting < 0);\n\n $keys = array_keys($settings);\n $key = $keys[$setting];\n $value = $settings[$key];\n \n $settings[$key] = \\cli\\prompt(\"Enter new value for $key\", $value);\n \n configure($settings);\n}", "protected function setParamConfig()\n {\n $this->paramConfig = ArrayManipulation::deepMerge($this->paramConfig, array(\n 'placeholder' => array(\n 'name' => 'Platzhalter Text',\n 'type' => 'textfield'\n ),\n 'rows' => array(\n 'name' => 'Anzahl Zeilen',\n 'type' => 'textfield'\n ),\n 'maxlength' => array(\n 'name' => 'Maximale Anzahl Zeichen (optional)',\n 'type' => 'textfield'\n )\n ));\n }", "public function set($name, $value){}", "public function setConfig(array $config): void\r\n {\r\n }", "public function setConfig(array $config): void\r\n {\r\n }", "public function set( $name, $value )\n\t{\n\t\t$name = trim( $name, '/' );\n\n\t\tif( $value !== null )\n\t\t{\n\t\t\t$this->cache[ $name ] = $value;\n\n\t\t\tif( isset( $this->negCache[ $name ] ) ) {\n\t\t\t\tunset( $this->negCache[ $name ] );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->negCache[ $name ] = true;\n\t\t}\n\n\t\t// don't store local configuration\n\t}", "protected function cms_set_option(\n $in_option_key, ///< The name of the option\n $in_option_value ///< the values to be set (associative array)\n ) {\n // phpcs:enable PSR1.Methods.CamelCapsMethodName.NotCamelCaps\n // Added a test, to prevent the creation of multiple empty settings by low-rank users trying SQL injections.\n if (function_exists('update_option') && is_array($in_option_value) && count($in_option_value)) {\n $ret = update_option($in_option_key, $in_option_value);\n } elseif (is_array($in_option_value) && count($in_option_value)) {\n echo \"<!-- BMLTPlugin ERROR (cms_set_option)! No update_option()! -->\";\n }\n }", "private function _setEntry($alias, $entry) \n {\n $this->_entries[$alias] = $entry;\n return;\n }", "public function config($id = null) {\n $this->set('id', $id);\n }", "public function set($key, $value, $section = '')\n {\n $this->_config->set($key, $value, $section);\n }", "public static function set($name, $data)\n {\n list($file_name) = explode('.', $name, 2);\n static::load($file_name);\n \\Config::set('data::'.$name, $data);\n }", "public function setConf ($pathInDotNotation, $value)\n {\n //breakdown dot notation\n $keys = explode(\".\", $pathInDotNotation);\n\n $destination = &$this->configs;\n\n foreach ($keys as $key) {\n $destination = &$destination [$key];\n }\n\n $destination = $value;\n }", "abstract protected function _updateConfiguration();", "public function set_config($name, $value) {\n $pluginname = $this->get_name();\n $this->load_config();\n if ($value === null) {\n unset($this->config->$name);\n } else {\n $this->config->$name = $value;\n }\n set_config($name, $value, \"local_$pluginname\");\n }", "public function set($key, $value) {\n $this->store->setConfigValue($key, $value);\n }", "public function setOption($key, $value);", "public function set($name, $value)\n {\n $this->settings[$name] = $value;\n }", "public function write() {\n\t\t$database = Registry::get(\"database\");\n\t\t$v = \"value='\" . $this -> value . \"'\";\n\t\t$statement = Registry::get(\"database\") -> query(\"UPDATE server.configs SET \" . $v . \" WHERE key_='\" . $this -> key . \"'\");\n\t}", "public function set_config($data, $value = null)\n\t{\n\t\tif (is_array($data) && $value === null) {\n\t\t\t$this->config = array_merge($this->config, $data);\n\t\t} else {\n\t\t\t$this->config[$data] = $value;\n\t\t}\n\t}", "function setNewConfig($config) {\n if ($config && is_object($config) && is_a($config, 'HTMLPurifier_Config')) {\n $this->htmlPurifier()->config = &$config;\n }\n }" ]
[ "0.66165805", "0.65699375", "0.63935024", "0.6250778", "0.61605656", "0.61542815", "0.6114246", "0.6112015", "0.6097479", "0.6025027", "0.5976464", "0.59111214", "0.5896093", "0.58916974", "0.588156", "0.5867874", "0.5859758", "0.5850123", "0.5848494", "0.5840159", "0.5836502", "0.5835174", "0.58333427", "0.58171755", "0.5810863", "0.57841986", "0.57744634", "0.57649934", "0.57509124", "0.5722952", "0.5710941", "0.5703776", "0.5703776", "0.5654311", "0.56504625", "0.5646542", "0.56307966", "0.56219214", "0.5606684", "0.56061584", "0.55969894", "0.5590804", "0.55778444", "0.5574484", "0.5572997", "0.5572024", "0.5543838", "0.55427825", "0.5533828", "0.55232364", "0.55134135", "0.5511895", "0.55041915", "0.55029196", "0.55028164", "0.5484184", "0.5475174", "0.5474204", "0.54675066", "0.5464595", "0.5461298", "0.54567885", "0.54528856", "0.54492486", "0.54437065", "0.5441677", "0.5435598", "0.5435598", "0.5432692", "0.5429276", "0.54247963", "0.54241514", "0.54187196", "0.54187196", "0.54187196", "0.5408694", "0.5403543", "0.5403294", "0.54025245", "0.53995377", "0.53986084", "0.5393026", "0.5382015", "0.53805155", "0.53805155", "0.5377744", "0.5363286", "0.5363137", "0.536113", "0.53574526", "0.53528273", "0.5351648", "0.53472584", "0.53432196", "0.5335112", "0.5328338", "0.53282857", "0.53260696", "0.531942", "0.53130925" ]
0.67918986
0
Gets the application name
public function getName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getApplicationName();", "public function getAppName()\n {\n return $this->get(self::APP_NAME);\n }", "public function getAppName()\n {\n return $this->app_name;\n }", "public function getApplicationName()\n\t{\n\t\treturn $this->config->get('rocketeer::application_name');\n\t}", "public function getApplicationName() \n\t{\n\t\treturn $this->application_name;\n\t}", "function get_application_name()\r\n {\r\n return self :: APPLICATION_NAME;\r\n }", "function get_application_name()\r\n {\r\n return self :: APPLICATION_NAME;\r\n }", "function get_application_name()\r\n {\r\n return self :: APPLICATION_NAME;\r\n }", "abstract public function getApplicationName();", "public function getApp()\n {\n return $this['app.name'];\n }", "function app_name()\n {\n return config('app.name');\n }", "function app_name()\n {\n return config('app.name');\n }", "function app_name()\n {\n return config('app.name');\n }", "function app_name()\n {\n return config('app.name');\n }", "function app_name()\n {\n return config('app.name');\n }", "function app_name()\n {\n return config('app.name');\n }", "public function getAppName()\n {\n return $this->appName;\n }", "public function getAppName()\r\n\t{\r\n\t\treturn $this->_appName;\r\n\t}", "public function getUseAppName() \n \t{\n \t\treturn $this->use_appname;\n \t}", "public function getAppDisplayName()\n {\n if (array_key_exists(\"appDisplayName\", $this->_propDict)) {\n return $this->_propDict[\"appDisplayName\"];\n } else {\n return null;\n }\n }", "public function get_name_application(){\n\t\treturn $this->search_application;\n\t}", "public function getApplicationTitle()\n {\n return $this->application_title;\n }", "protected function asksForApplicationName(): string\n {\n if (empty($name = $this->input->getArgument('name'))) {\n $name = $this->ask('What is your application name?');\n }\n\n if (empty($name)) {\n $name = trim(basename(BASE_PATH));\n }\n\n return Str::lower($name);\n }", "public function name() : string\n {\n return config('app.name');\n }", "public static function getTitle()\n {\n global $application_name;\n return $application_name;\n }", "static public function getDefaultApplicationName( )\n {\n return\n empty(self::$_defaultApplication)\n ? self::DEFAULT_APPLICATION\n : self::$_defaultApplication;\n }", "public function getDefaultAppName()\n\t{\n\t\treturn $this->_defaultAppName;\n\t}", "public function getID(): string {\n\t\treturn $this->appName;\n\t}", "public static function defaultAppName():string {\n\n # Set result\n $result = \"Crazy Project\";\n\n # Get current app path\n $appPath = File::path(\"@app_root\");\n\n # Check app path\n if($appPath){\n\n # Set composer path\n $conposerAppPath = \"$appPath/composer.json\";\n\n # Check composer name\n if(File::exists($conposerAppPath) && ($composerName = Composer::get(\"name\", $conposerAppPath)) !== null)\n\n # Set result\n $result = $composerName;\n\n else\n\n # Extract name from app path\n $result = Strings::getLastString(trim($appPath, \"/\"), \"/\");\n\n }\n\n # Then add space before capital letters\n $result = Process::spaceBeforeCapital($result);\n\n # Return result\n return $result;\n\n }", "public function get_program_name() {\n $program = new program($this->db, $this->program);\n return $program->get_name() . \n (($program->get_version() != null && $program->get_version() != \"\") ? \n (\" (Version \".$program->get_version()).\")\" : \"\");\n \n \n }", "function mobile_app_name()\n{\n $appClientId = request()->header('app-client-id');\n if (!empty($appClientId)) {\n return $appClientId;\n }\n\n $params = request()->all();\n if (isset($params['app_client_id']) && !empty($params['app_client_id'])) {\n return $params['app_client_id'];\n }\n return '';\n}", "public function set_appname()\n\t{\n\t\t$appname = (string) ee()->config->item('newrelic_app_name');\n\n\t\t// -------------------------------------------\n\t\t//\tHidden Configuration Variable\n\t\t//\t- newrelic_app_name => Change application name that appears in\n\t\t//\t the New Relic dashboard\n\t\t// -------------------------------------------*/\n\t\tif ( ! empty($appname))\n\t\t{\n\t\t\t$appname .= ' - ';\n\t\t}\n\n\t\t// -------------------------------------------\n\t\t//\tHidden Configuration Variable\n\t\t//\t- newrelic_include_version_number => Whether or not to include the version\n\t\t// number with the application name\n\t\t// -------------------------------------------*/\n\t\t$version = (ee()->config->item('newrelic_include_version_number') == 'y') ? ' v'.APP_VER : '';\n\n\t\tnewrelic_set_appname($appname.APP_NAME.$version);\n\t}", "public function getApp() {\n return $this->call->getApp();\n }", "public function getSystemName(): string\n {\n if (($name = Craft::$app->getProjectConfig()->get('system.name')) !== null) {\n return Craft::parseEnv($name);\n }\n\n try {\n $name = $this->getSites()->getPrimarySite()->name;\n } catch (SiteNotFoundException $e) {\n $name = null;\n }\n\n return $name ?: 'Craft';\n }", "public function getName(): string {\n\t\treturn $this->l10nFactory->get($this->appName)->t('Nextcloud announcements');\n\t}", "public function getCurrentSiteName(): string {\n try {\n return $this->findCurrentSite()->getSiteName();\n } catch (\\Exception $e) {\n $this->logger->error((string) $e);\n\n return $_SERVER['SITE_NAME'] ?? '[name unavailable]';\n }\n }", "protected function getName()\r\n {\r\n return app::values()->page();\r\n }", "function sysName(){\n\tglobal $driver;\n\t$sql\t=\t\"SELECT systemname FROM settings\"; //Retrieve the system name\n\tif($appname\t= $driver->perform_request($sql)):\n\t\t$row\t= $driver->load_data($appname);\n\t\t$sysname\t=\t(!empty($row['systemname']))?($row['systemname']):\" Microfinance \";//Retrieved system name\n\telse:\n\t\t\tdie('<p class=\"error\">ERROR Retrieving Application name.<br/>'.mysql_error().'</p>');\n\tendif;\n\treturn $sysname; //The application name\n}", "function site_name()\n {\n return config_item('site_name');\n }", "public function getAppBaseDirName(){\n return $this->getSite()->getParent()->getAppDir(true);\n }", "public function openSearchAppName(): string\n {\n return config('scout.opensearch.appName');\n }", "public function getApp();", "function getApplication() {\n return $this->step->application;\n }", "protected function applicationNamespace(): string\n {\n return $this->container->get('config')->get('app', 'app_namespace') ?: 'App';\n }", "function getAppId()\n {\n return $this->_props['AppId'];\n }", "static function Name()\n {\n return self::Variable('SERVER_NAME');\n }", "public function __toString(): string\n {\n return \"Application name: \" . $this->name;\n }", "public function getAppId()\n {\n return $this->app_id;\n }", "public function getAppId()\n {\n return $this->app_id;\n }", "public function getAppId()\n {\n return $this->app_id;\n }", "public function getAppId()\n {\n return $this->app_id;\n }", "public function getAppId()\n {\n return $this->app_id;\n }", "public function getAppId()\n {\n return $this->app_id;\n }", "public function getAppId()\n {\n return $this->app_id;\n }", "public function getAppId(): string;", "public function getAppId() {\n return $this->app_id;\n }", "public function getName(): string\n {\n return session_name();\n }", "public function getAppNames(): array {\n return $this->configVars['site']['website-names'];\n }", "public function get_app_key() {\n\n\t\t// Get plugin settings.\n\t\t$settings = $this->get_plugin_settings();\n\n\t\treturn rgar( $settings, 'customAppKey' ) ? rgar( $settings, 'customAppKey' ) : null;\n\n\t}", "public static function getName(): string\n {\n return SPLASH_NAME;\n }", "public static function getApp()\n\t{\n\t\treturn static::$app;\n\t}", "function siteName() {\n\t\treturn $GLOBALS[\"siteName\"];\n\t}", "public function getCurrentAppId() {\n return $this->container->offsetGet('appId');\n }", "public function getApplication();", "public function getApplication();", "public function getApplication();", "public function getApplication();", "public function getApplication();", "public static function getBuilderName()\n {\n $builderName = null;\n if (self::functionAvailable('exec')) {\n $output = [];\n $success = 0;\n exec('whoami', $output, $success);\n if ($success == 0) {\n $builderName = $output[0];\n }\n }\n if (is_null($builderName)) {\n $builderName = get_current_user();\n }\n\n return $builderName;\n }", "public function getEnvironmentName()\n {\n if ($this->environmentName) {\n return ucfirst($this->environmentName) . ' ' . __(\"Environment\");\n }\n }", "private function namebase() {\n return $this->module->name;\n }", "static public function GetApp($name = null) {\r\n if (is_null($name)) {\r\n if (count(self::$_apps) == 1)\r\n return array_pop(self::$_apps);\r\n \r\n elseif (count(self::$_apps) > 1)\r\n throw new Exception('Application name is not provided.');\r\n \r\n else\r\n throw new Exception('There is no any application created.');\r\n }\r\n \r\n if (!array_key_exists($name, self::$_apps))\r\n throw new Exception(Tii::Out('The application (%s) is not found.',$name));\r\n \r\n return self::$_apps[$name];\r\n }", "protected function getName()\n {\n return $this->slimInstance->router()->getCurrentRoute()->getName();\n }", "public static function getBuilderName()\r\n {\r\n $builderName = null;\r\n if (self::functionAvailable('exec')) {\r\n $output = [];\r\n $success = 0;\r\n exec('whoami', $output, $success);\r\n if ($success == 0) {\r\n $builderName = $output[0];\r\n }\r\n }\r\n if (is_null($builderName)) {\r\n $builderName = get_current_user();\r\n }\r\n\r\n return $builderName;\r\n }", "function getApplication();", "public function siteName()\n {\n return get_bloginfo('name', 'display');\n }", "public function getApplication()\r\n {\r\n return $this->Application;\r\n }", "public function getName()\n {\n return $this->getConfig ( 'name' );\n }", "protected function getAppString($key)\n {\n return $GLOBALS['app_strings'][$key];\n }", "protected function getTaskName()\n {\n return str_replace(' ', '', lcfirst(ucwords(str_replace('-', ' ', $this->executableName))));\n }", "public function get_name() {\n\t\treturn 'hello-world';\n\t}", "public function get_application_id() {\n\t\tif ( ! $this->is_application_id_in_config() ) {\n\n\t\t\treturn (string) get_option( 'algolia_application_id', '' );\n\t\t}\n\n\t\t$this->assert_constant_is_non_empty_string( ALGOLIA_APPLICATION_ID, 'ALGOLIA_APPLICATION_ID' );\n\n\t\treturn ALGOLIA_APPLICATION_ID;\n\t}", "private static function get_site_name()\n {\n }", "public function getArgument()\n {\n return 'applications';\n }", "public function getApplication()\n {\n return $this->application;\n }", "public function getApplication()\n {\n return $this->application;\n }", "public function getApplication()\n {\n return $this->application;\n }", "public function getApplication()\n {\n return $this->application;\n }", "public function getApp()\n {\n return $this->app;\n }", "public function getApp()\n {\n return $this->app;\n }", "public function getApp()\n {\n return $this->app;\n }", "public function getApp()\n {\n return $this->app;\n }", "public function getApp()\n {\n return $this->app;\n }", "public function getApp()\n {\n return $this->app;\n }", "public function getName() {\n\t\t\treturn $this->MODULE_NAME;\t\n\t\t}", "public function getProgrammeNameAttribute()\n {\n return config('arc.programmes')[$this->programme];\n }", "function packagename()\r\n{\r\n\treturn app('packagename');\r\n}", "public function getAppHost(): string;", "public function getSiteName();", "public function getSiteName()\n {\n return $this->settings->get('branding.site_name');\n }", "public function getAppDisplayName(): ?string {\n $val = $this->getBackingStore()->get('appDisplayName');\n if (is_null($val) || is_string($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'appDisplayName'\");\n }" ]
[ "0.9057266", "0.9048911", "0.88671803", "0.8817545", "0.8754382", "0.8615711", "0.8615711", "0.8615711", "0.8576247", "0.85309154", "0.84452283", "0.84452283", "0.84452283", "0.84452283", "0.84452283", "0.84452283", "0.84257174", "0.83318", "0.8080606", "0.79059196", "0.78779215", "0.78611296", "0.78471065", "0.7740909", "0.7701563", "0.7679013", "0.75457644", "0.7339105", "0.7287904", "0.71991163", "0.685565", "0.6836334", "0.67924696", "0.6743512", "0.67256033", "0.668413", "0.6681506", "0.6602038", "0.6562426", "0.6561087", "0.65423864", "0.6532749", "0.6527979", "0.6510087", "0.64986116", "0.6498124", "0.64831066", "0.6426811", "0.6426811", "0.6426811", "0.6426811", "0.6426811", "0.6426811", "0.6426811", "0.641944", "0.6417313", "0.64006716", "0.63822895", "0.6375011", "0.6373684", "0.63603574", "0.63591397", "0.63496196", "0.63478565", "0.63478565", "0.63478565", "0.63478565", "0.63478565", "0.6345804", "0.6340099", "0.63354063", "0.6332009", "0.6330978", "0.63307834", "0.63248116", "0.631925", "0.6315805", "0.630168", "0.6298878", "0.6298242", "0.6296847", "0.62959695", "0.62932163", "0.62864774", "0.6285881", "0.6285881", "0.6285881", "0.6285881", "0.62855506", "0.62855506", "0.62855506", "0.62855506", "0.62855506", "0.62855506", "0.6281293", "0.62782896", "0.62779385", "0.6265293", "0.6258382", "0.6258191", "0.6255121" ]
0.0
-1
Sets the current application name
public function setName($value);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set_appname()\n\t{\n\t\t$appname = (string) ee()->config->item('newrelic_app_name');\n\n\t\t// -------------------------------------------\n\t\t//\tHidden Configuration Variable\n\t\t//\t- newrelic_app_name => Change application name that appears in\n\t\t//\t the New Relic dashboard\n\t\t// -------------------------------------------*/\n\t\tif ( ! empty($appname))\n\t\t{\n\t\t\t$appname .= ' - ';\n\t\t}\n\n\t\t// -------------------------------------------\n\t\t//\tHidden Configuration Variable\n\t\t//\t- newrelic_include_version_number => Whether or not to include the version\n\t\t// number with the application name\n\t\t// -------------------------------------------*/\n\t\t$version = (ee()->config->item('newrelic_include_version_number') == 'y') ? ' v'.APP_VER : '';\n\n\t\tnewrelic_set_appname($appname.APP_NAME.$version);\n\t}", "public function setAppName($name)\n\t{\n\t\t$this->_appName = $name;\n\t}", "public function setApplicationName($app_name) \n\t{\n\t\t$this->application_name = $app_name;\n\t}", "public static function applicationName(string $name): void\n {\n if (!static::hasNewRelic()) {\n return;\n }\n\n newrelic_set_appname($name);\n }", "public function setDefaultAppName($name)\n\t{\n\t\t$this->_defaultAppName = $name;\n\t}", "function get_application_name()\r\n {\r\n return self :: APPLICATION_NAME;\r\n }", "function get_application_name()\r\n {\r\n return self :: APPLICATION_NAME;\r\n }", "function get_application_name()\r\n {\r\n return self :: APPLICATION_NAME;\r\n }", "public function getAppName()\n {\n return $this->app_name;\n }", "protected function asksForApplicationName(): string\n {\n if (empty($name = $this->input->getArgument('name'))) {\n $name = $this->ask('What is your application name?');\n }\n\n if (empty($name)) {\n $name = trim(basename(BASE_PATH));\n }\n\n return Str::lower($name);\n }", "public function setUseAppName($use_appname) \n \t{\n \t\t$this->use_appname = $use_appname;\n \t}", "private function set_nameApp($_nameApp)\n {\n if (!$_nameApp) {\n throw new MonaeException('Le nom de l\\'application est obligatoire.');\n }\n $this->_nameApp = $_nameApp;\n }", "public function getAppName()\n {\n return $this->get(self::APP_NAME);\n }", "public function getApplicationName()\n\t{\n\t\treturn $this->config->get('rocketeer::application_name');\n\t}", "public function getApplicationName() \n\t{\n\t\treturn $this->application_name;\n\t}", "function app_name()\n {\n return config('app.name');\n }", "function app_name()\n {\n return config('app.name');\n }", "function app_name()\n {\n return config('app.name');\n }", "function app_name()\n {\n return config('app.name');\n }", "function app_name()\n {\n return config('app.name');\n }", "function app_name()\n {\n return config('app.name');\n }", "public function getApplicationName();", "public function getAppName()\n {\n return $this->appName;\n }", "public function setAppName($value)\n {\n return $this->set(self::APP_NAME, $value);\n }", "abstract public function getApplicationName();", "public function getUseAppName() \n \t{\n \t\treturn $this->use_appname;\n \t}", "public function getAppName()\r\n\t{\r\n\t\treturn $this->_appName;\r\n\t}", "public static function setTitle($projectTitle=\"Default App\")\n {\n global $application_name;\n $application_name = $projectTitle;\n }", "static public function getDefaultApplicationName( )\n {\n return\n empty(self::$_defaultApplication)\n ? self::DEFAULT_APPLICATION\n : self::$_defaultApplication;\n }", "protected function setSiteName() {\r\n\t\t$this->siteName = trim($this->settings['site']['siteName']);\r\n\t}", "public static function setCurrentName($name) {\n Session::put(Privilege::SESSION_NAME_NAME, $name);\n }", "public function setName(string $name): void\n\t{\n\t\tthrow new \\RuntimeException('The console application name cannot be changed');\n\t}", "public function getDefaultAppName()\n\t{\n\t\treturn $this->_defaultAppName;\n\t}", "public function setAppDisplayName(?string $value): void {\n $this->getBackingStore()->set('appDisplayName', $value);\n }", "public function name() : string\n {\n return config('app.name');\n }", "public static function defaultAppName():string {\n\n # Set result\n $result = \"Crazy Project\";\n\n # Get current app path\n $appPath = File::path(\"@app_root\");\n\n # Check app path\n if($appPath){\n\n # Set composer path\n $conposerAppPath = \"$appPath/composer.json\";\n\n # Check composer name\n if(File::exists($conposerAppPath) && ($composerName = Composer::get(\"name\", $conposerAppPath)) !== null)\n\n # Set result\n $result = $composerName;\n\n else\n\n # Extract name from app path\n $result = Strings::getLastString(trim($appPath, \"/\"), \"/\");\n\n }\n\n # Then add space before capital letters\n $result = Process::spaceBeforeCapital($result);\n\n # Return result\n return $result;\n\n }", "public function setAppName($var)\n {\n GPBUtil::checkString($var, True);\n $this->app_name = $var;\n\n return $this;\n }", "public function SetName ($name = \\MvcCore\\IEnvironment::PRODUCTION) {\n\t\t$this->name = $name;\n\t\tforeach (static::GetAllNames() as $envName)\n\t\t\t$this->values[$envName] = FALSE;\n\t\t$this->values[$this->name] = TRUE;\n\t\treturn $name;\n\t}", "public function getApp()\n {\n return $this['app.name'];\n }", "public function setAppDisplayName($val)\n {\n $this->_propDict[\"appDisplayName\"] = $val;\n return $this;\n }", "public function setControllerName()\n {\n $this->name = \"tagui\";\n }", "protected function setTitle()\n\t{\n\t\tglobal $APPLICATION;\n\n\t\tif ($this->arParams[\"SET_TITLE\"] == 'Y')\n\t\t\t$APPLICATION->SetTitle(Localization\\Loc::getMessage(\"SPOL_DEFAULT_TITLE\"));\n\t}", "static public function setDefaultApplicationName( $application )\n {\n if( empty($application) )\n {\n throw new InvalidArgumentException(\n 'Empty argument passed to setDefaultApplicationName().'\n );\n }\n\n $old = self::$_defaultApplication;\n self::$_defaultApplication = (string) $application;\n return $old;\n }", "private function _setProcessName(string $proName)\n {\n if( PHP_OS=='Darwin')\n {\n return ;\n }\n\n $proName = self::$appName.'_'.$proName;\n if(function_exists('cli_set_process_title'))\n {\n @cli_set_process_title($proName);\n }\n if(extension_loaded('proctitle') && function_exists('setproctitle'))\n {\n @setproctitle($proName);\n }\n }", "public function get_name_application(){\n\t\treturn $this->search_application;\n\t}", "public function updateappname() \n\t{\n\t\ttry \n\t\t{\n\t\t\t// select mongoDB collection\n\t\t\t$func_collection \t= \t$this->mongo_db->db->func;\n\t\t\t// preparing data\n\t\t\t$prepare_data \t\t= \tarray(\n\t\t\t\t'$set' \t=> array(\n\t\t\t\t\t'application_name' => $this->application_name\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t// update to database\n\t\t\t$func_collection->update(array(\n\t\t\t\t'application_id' => $this->application_id\n\t\t\t\t),$prepare_data);\n\t\t\treturn true;\n\t\t}\n\t\tcatch (Exception $e) \n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "function setSyncProdName()\n {\n }", "public function setName(string $name): void\n {\n session_name($name);\n }", "public function __construct()\n {\n $this->app_name = env('APP_NAME','sziveslatas.hu');\n }", "public static function getTitle()\n {\n global $application_name;\n return $application_name;\n }", "public function set_name($new_name) {\r\n\t\t$this->name = strtoupper($new_name);\r\n\t}", "public function getApplicationTitle()\n {\n return $this->application_title;\n }", "public function set_module_name($name) {\n\t\t$this->my_module_name = $name;\n\t}", "private function __construct() \n {\n $this->_applicationName = 'Admin';\n }", "protected function setName($name)\n\t{\n\t\t$this->pageName = $name;\n\t}", "function set_uname($name){\n $this -> uname = $name;\n }", "public static function setName($name)\n\t{\n\t\tself::$name = $name;\n\t}", "private function setSessionName(): void\n {\n $cookie = new Cookie($this->expiringTime - 1);\n if ($cookie->exists('sessionName')) {\n return;\n }\n\n // unset all session name cookies\n foreach ($_COOKIE as $key => $value) {\n if (strlen($key) === strlen($this->name)) {\n $cookie->unset($key);\n }\n }\n\n $cookie->save('sessionName', $this->name);\n }", "public function setFormName($name){\n\t\t$this->_form_name = $name;\t\n\t}", "public static function applicationName(string $name): MetaTag {\n return static::namedContent('application-name', $name);\n }", "public function updateappname() \n \t{\n \t\ttry \n \t\t{\n\t\t\t// select mongoDB collection\n \t\t\t$app_collection \t= \t$this->mongo_db->db->used;\n\t\t\t// preparing data\n \t\t\t$prepare_data \t\t= \tarray(\n \t\t\t\t'$set' \t\t\t=> \t\tarray(\n \t\t\t\t\t'use_appname' \t=> \t$this->use_appname\n \t\t\t\t\t)\n \t\t\t\t);\n\t\t\t// update to database\n \t\t\t$app_collection->update(array(\n \t\t\t\t'use_appid' \t=> \t$this->use_appid\n \t\t\t\t),\n \t\t\t$prepare_data, array(\n \t\t\t\t'multiple' \t\t=> \ttrue\n \t\t\t\t)\n \t\t\t);\n \t\t\treturn true;\n \t\t} \n \t\tcatch (Exception $e) \n \t\t{\n \t\t\treturn false;\n \t\t}\n \t}", "function set_name($name) {\n $this->name = $name;\n }", "public function set_formname($name) {\n $this->form_name=$name;\n }", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->_name = $name;\n\t}", "public function name($name) {\n if($this->current_module) {\n $name = $this->current_module . ':' . $name;\n }\n $this->current_name = $name;\n\t\treturn $this;\n\t}", "public function setName($name) {\r\n\t\t$this->name = $name;\r\n\t}", "protected function _setControllerName($name) {\n\t\t$this->controller = $name;\n\t}", "public function appName($default = '')\n {\n // Using the env `SIGNALFX_SERVICE_NAME` for consistency with other tracers.\n $appName = $this->stringValue('service.name');\n if ($appName) {\n return $appName;\n }\n\n $appName = getenv('ddtrace_app_name');\n if (false !== $appName) {\n self::logDebug(\n 'Env variable \\'ddtrace_app_name\\' is deprecated and will be removed soon. ' .\n 'Use \\'SIGNALFX_SERVICE_NAME\\' instead'\n );\n return trim($appName);\n }\n return $default;\n }", "public function setName( string $name ) {\n\t\t$this->name = $name;\n\t}", "public function set_name( $name ) {\n\t\t$this->label = $name;\n\t\t$this->slug = sanitize_title_with_dashes( $name );\n\t}", "public function setName($name){\n\t\t$this->name = $name;\n\t}", "public function setName($name){\n\t\t$this->name = $name;\n\t}", "public function setName($name){\n $this->__set('name',$name);\n }", "public function setName($name) {\n $this->name = $name;\n }", "public function setName($name) {\n $this->name = $name;\n }", "public function setName($name) {\n $this->name = $name;\n }", "public function setName($name) {\n $this->name = $name;\n }", "public function setName($name) {\n $this->name = $name;\n }", "public function setName($name) {\n $this->name = $name;\n }", "protected function setName($value)\n\t{\n\t\t$this->name = $value;\n\t}", "protected function setName($value)\n\t{\n\t\t$this->name = $value;\n\t}", "abstract protected function setMainActionName();", "private function setCurrentMenuName(){\n \n $currentmenuname = NULL;\n \n foreach(array_keys(menu_ui_get_menus()) as $menuname){\n \n $activelink = \\Drupal::service('menu.active_trail')->getActiveLink($menuname);\n \n if(!empty($activelink))\n $currentmenuname = $menuname;\n \n }\n \n $this->currentmenuname = $currentmenuname;\n \n }", "protected function setName(string $name) {\n $this->name = $name;\n }", "protected function setName(string $name)\r\n\t{\r\n\t\t$this->name = $name;\r\n\t}", "function setDbName($sessionID, $name){\r\n\t\tif($this->userCanSetDbName()){\r\n\t\t\t// NOT IMPLEMENTED!!!!\r\n\t\t}\r\n\t}", "public function setName($name) {\n $this->name = $name;\n }", "private function setName($name) {\n if (is_string($name)) {\n $this->name = $name;\n }\n }", "public function setName($name){\n \n $this->name = $name;\n \n }", "public function setName($name)\n\t{\n\t\t$this->_name = $name;\n\t}", "public function setName($name)\n\t{\n\t\t$this->_name = $name;\n\t}", "function setName($name) {\n $this->name = $name;\n }", "protected function set_database_name($val){ $this->input ['db_nam_sar_sup'] = $val ;}" ]
[ "0.81923616", "0.78969496", "0.7660342", "0.7383096", "0.72666734", "0.70244753", "0.70244753", "0.70244753", "0.7001436", "0.69643253", "0.6933383", "0.6920582", "0.68911856", "0.6847645", "0.6782782", "0.67775947", "0.67775947", "0.67775947", "0.67775947", "0.67775947", "0.67775947", "0.674458", "0.67405343", "0.67233557", "0.66952485", "0.668455", "0.6669682", "0.66385275", "0.6568469", "0.6555975", "0.6555097", "0.6374193", "0.637024", "0.6362829", "0.63619924", "0.63541406", "0.6334812", "0.6233445", "0.6189153", "0.6089048", "0.6088031", "0.60636115", "0.6016981", "0.60141855", "0.5982351", "0.5982201", "0.59765536", "0.59500915", "0.59397835", "0.5919866", "0.5909874", "0.58938575", "0.587105", "0.58379376", "0.5803968", "0.57987934", "0.57783306", "0.5778042", "0.5776441", "0.5774814", "0.5746266", "0.57319427", "0.5718945", "0.57172275", "0.57172275", "0.57172275", "0.57172275", "0.57172275", "0.57172275", "0.57172275", "0.57172275", "0.57156706", "0.5713222", "0.57114583", "0.5690697", "0.5676981", "0.5668983", "0.5659224", "0.5653959", "0.5653959", "0.56438535", "0.56247795", "0.56247795", "0.56247795", "0.56247795", "0.56247795", "0.56247795", "0.56218785", "0.56218785", "0.5619999", "0.56157565", "0.56088895", "0.5601828", "0.5600613", "0.5593453", "0.55924964", "0.55774176", "0.55653083", "0.55653083", "0.55549514", "0.5549363" ]
0.0
-1
Gets the page title
public function getTitle();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getPageTitle() {\r\n\t\treturn $this->pageTitle;\r\n\t}", "static public function getTitle() {\n\t\treturn self::$page_title;\n\t}", "private function getPageTitle() {\n return $this->pageTitle;\n }", "public function getPageTitle()\n {\n return $this->page_title;\n }", "public function get_page_title() {\n return $this->get_string('page_title');\n }", "public function getPageTitle() {\n\t\treturn $this->pageTitle;\n\t}", "public function get_page_title() {\n\n\t\tob_start();\n\n\t\t$this->output_page_title();\n\t\t$this->output_vendor_info();\n\n\t\treturn ob_get_clean();\n\t}", "public function getPageTitle() {\r\n\t\t$config = $this->getConfig();\r\n return $config[\"title\"];\r\n }", "public function getTitle()\n {\n $list = $this->getPages();\n\n return isset($list[$this->page])\n ? $list[$this->page]\n : '';\n }", "public function getPageTitle() {\n return $this->configuration['page_title'];\n }", "public function getPageTitle()\n {\n $element = $this->query('title')->first();\n if ($element) {\n return $element->text();\n }\n\n return '';\n }", "function getPageTitle() {\n return $this->title;\n }", "public static function get_page_title() {\n\t\t// Set the current page of the WP query since it's used by SEO plugins.\n\t\tglobal $wp_query, $page;\n\t\t$oldPage = $wp_query->get( 'page' );\n\t\tif ( $page > 1 ) {\n\t\t\t$wp_query->set( 'page', $page );\n\t\t} else {\n\t\t\t$wp_query->set( 'page', null );\n\t\t}\n\n\t\t// Get the title.\n\t\t$title = self::get_page_titleHelper();\n\t\t$title = html_entity_decode( $title, ENT_QUOTES, 'UTF-8' );\n\n\t\t// Set back the current page.\n\t\t$wp_query->set( 'page', $oldPage );\n\n\t\t// Return the title.\n\t\treturn $title;\n\t}", "public function getTitle() {\n return (isset($this->titlePage)) ? $this->titlePage.' - '.Params::param('metainfo-titlePage') : Params::param('metainfo-titlePage');\n }", "function getPageTitle() {\n\t\tglobal $current_page_title;\n\t\t\n\t\treturn $current_page_title;\n\t}", "public function getPageTitle(): string;", "function get_page_title()\n {\n return $this->object->name;\n }", "private static final function getPageTitle () {\r\n // Execute the <title tag> .tp file;\r\n $webHeaderString = new FileContent (FORM_TP_DIR . _S . 'frm_web_header_title.tp');\r\n return $webHeaderString->doToken ('[%TITLE_REPLACE_STRING%]',\r\n implode (_DCSP, ((self::$objPageTitleBackward->toInt () == 1) ? (self::$objPageTitle->arrayReverse ()->toArray ()) :\r\n self::$objPageTitle->toArray ())));\r\n }", "public function get_title () {\r\n\t\treturn $this->get_info()['title'];\r\n\t}", "private static function get_page_titleHelper() {\n\t\tglobal $wpseo_front;\n\t\tif (\n\t\t\tisset( $wpseo_front ) &&\n\t\t\tmethod_exists( $wpseo_front, 'title' )\n\t\t) {\n\t\t\treturn $wpseo_front->title( '', false );\n\t\t}\n\n\t\t// If the SEO Ultimate plugin is active and compatible.\n\t\tglobal $seo_ultimate;\n\t\tif (\n\t\t\tisset( $seo_ultimate ) &&\n\t\t\tproperty_exists( $seo_ultimate, 'modules' ) &&\n\t\t\tisset( $seo_ultimate->modules['titles'] ) &&\n\t\t\tmethod_exists( $seo_ultimate->modules['titles'], 'get_title' )\n\t\t) {\n\t\t\t@$title = $seo_ultimate->modules['titles']->get_title();\n\n\t\t\treturn $title;\n\t\t}\n\n\t\t// If all else fails, return the standard WordPress title. Unfortunately, most theme hard-code their <title> tag.\n\t\treturn wp_title( '', false );\n\t}", "public static function getTitle()\n {\n return self::$title;\n }", "protected function getPageTitle() {\n global $post_id;\n\n try {\n if (defined('TOPIC_ID')) {\n // get title from TOPICS\n $SQL = \"SELECT `title` FROM \".TABLE_PREFIX.\"mod_topics WHERE `topic_id`='\".TOPIC_ID.\"'\";\n }\n elseif (!is_null($post_id) || defined('POST_ID')) {\n // get title from NEWS\n $id = (defined('POST_ID')) ? POST_ID : $post_id;\n $SQL = \"SELECT `title` FROM \".TABLE_PREFIX.\"mod_news_posts WHERE `post_id`='$id'\";\n }\n else {\n // get regular page title\n $SQL = \"SELECT `page_title` FROM \".TABLE_PREFIX.\"pages WHERE `page_id`='\".PAGE_ID.\"'\";\n }\n return $this->app['db']->fetchColumn($SQL);\n } catch (\\Doctrine\\DBAL\\DBALException $e) {\n throw new \\Exception($e);\n }\n }", "public function getTitle()\n {\n return $this->get(self::_TITLE);\n }", "public function getTitle()\n {\n return $this->get(self::_TITLE);\n }", "function getTitle() {\n\t\tif($this->title) {\n\t\t\treturn $this->title;\n\t\t}\n\t\telse if(Session::getValue(\"nav_sindex\")) {\n\t\t\t$query = new Query();\n\t\t\tif($query->sql(\"SELECT name FROM \".UT_NAV.\" WHERE sindex = '\".Session::getValue(\"sindex\").\"'\")) {\n\t\t\t\treturn $query->getQueryResult(0, \"name\");\n\t\t\t}\n\t\t}\n\t\treturn SITE_NAME;\n\t}", "public function title() {\n\t\tif ( ! is_object( $this->object ) ) {\n\t\t\treturn esc_html__( 'Page not found', 'nhg-seo' );\n\t\t}\n\n\t\t$title = Strategy::get_from_meta( 'post', $this->object->ID, $this->object, 'title' );\n\t\tif ( \\is_string( $title ) && '' !== $title ) {\n\t\t\treturn $title;\n\t\t}\n\n\t\treturn Strategy::get_title( 'post', $this->object->post_type, $this->object );\n\t}", "function GetTitle() {\r\n global $PageTitle;\r\n if (isset($PageTitle)){echo $PageTitle;}else{echo 'BHM Accessories';}\r\n }", "public function getTitle() {\n\t\treturn Template::getSiteTitle();\n\t}", "function get_page_heading()\n {\n return $this->object->get_page_title();\n }", "function getHtmlTitle()\n\t{\n\t\t// set up the page title\n\t\tif ($this->isContentPage) {\n\t\t\t\n\t\t\tif (isset($this->map[$this->area]['show'][$this->page]) &&\n\t\t\t\t$this->map[$this->area]['show'][$this->page] != $this->page) {\n\t\t\t\t// use the 'show' text\n\t\t\t\t$htmlTitle = $this->map[$this->area]['show'][$this->page];\n\t\t\t} else {\n\t\t\t\t// if the nav title and the page name are the same,\n\t\t\t\t// show a hierarchy instead.\n\t\t\t\t// for content pages, the name is based on the\n\t\t\t\t// area and page-path\n\t\t\t\t$htmlTitle = $this->area;\n\t\t\t\t\n\t\t\t\tif (count($this->path)) {\n\t\t\t\t\t$htmlTitle .= ' -- ' .\n\t\t\t\t\timplode(' : ', $this->path);\n\t\t\t\t} else {\n\t\t\t\t\t$htmlTitle .= ' : ' . $this->page;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t\n\t\t\t// for non-content (administrative) pages, the\n\t\t\t// name is based on the script name.\n\t\t\t$htmlTitle = basename(strip_tags($_SERVER['SCRIPT_NAME']));\n\t\t\t$htmlTitle = str_replace('.php', '', $htmlTitle);\n\t\t\t$htmlTitle = str_replace('_', ' ', $htmlTitle);\n\t\t\t$htmlTitle = ucwords($htmlTitle);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn $htmlTitle;\n\t}", "public static function find_title()\n {\n $page = self::get_if_account_page_exists();\n\n return $page->Title;\n }", "public function getPageTitle()\n {\n return 'Links to Scanned Page - ' . $this->page->uri;\n }", "function getBrowserTitle() {\n\t\tglobal $gPageTitle;\n\t\treturn( $gPageTitle );\n\t}", "public function title(){\r\n\r\n echo ISSET($this->pageSettings->page_title)?$this->pageSettings->page_title:'';\r\n\r\n }", "public function getTitle(): string\n {\n return I18N_PAGES;\n }", "public function getTitle()\n\t{\n\t\t$content = $this->getContent();\n\t\treturn $content->title;\n\t}", "public function getTitle()\n {\n return $this->getValue('title');\n }", "public function getTitle() {\r\n\t\treturn $this->title;\r\n\t}", "public function getPageTitleInfo()\n {\n static $pageTitleInfo = null;\n\n if ( $pageTitleInfo ) {\n return $pageTitleInfo;\n }\n $translator = $this->view->translator;\n $input = $this->view->input;\n \n $pageConfig = $this->view->pageConfig;\n $titleChunks = array();\n\n if ($pageConfig->useTitlePrefix() ) {\n $titleChunks[] = $translator ? $translator->_($pageConfig->getTitlePrefix()) : $pageConfig->getTitlePrefix();\n }\n\n $name = $pageConfig->getTitle(); \n $titleChunks[] = $translator ? $translator->_($name) : $name;\n\n $titleChunks = array_reverse($titleChunks);\n $pageTitleInfo = join( $titleChunks, $pageConfig->getTitlePrefixDelimiter() );\n return $pageTitleInfo;\n }", "public function getTitle()\r\n\t\t{\r\n\t\t\treturn $this->_title;\r\n\t\t}", "public function getTitle()\n\t\t{\n\t\t\treturn $this->_title;\n\t\t}", "public function getTitle()\n\t\t{\n\t\t\treturn $this->_title;\n\t\t}", "public function get_title()\n\t{\n\t\treturn $this->title;\n\t}", "public function getTitle() {\n\t\treturn $this->title;\t\n\t}", "public function getTitle() {\n\t\treturn $this->title;\n\t}", "public function getTitle() {\n\t\treturn $this->title;\n\t}", "public function getTitle() {\n\t\treturn $this->title;\n\t}", "public function getTitle() {\n\t\treturn $this->title;\n\t}", "public function getTitle() {\r\n\t\treturn $this->_title;\r\n\t}", "public function getTitle() {\n\t\t\treturn $this->title;\n\t\t}", "public function getTitle()\n {\n\t\treturn $this->title;\n\t}", "public function getTitle()\r\n\t{\r\n\t\treturn $this->_title;\r\n\t}", "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "public function getTitle()\n\t{\n\t\treturn $this->title;\n\t}", "function get_the_title() {\n\n md_get_the_title();\n \n }", "public function getTitle() {\n return \\Drupal::config('taxonomy_facets.settings')->get('page_title');\n }", "public function getTitle()\r\n {\r\n return $this->m_title;\r\n }", "public function getTitle() {\n\t\treturn $this->_title;\n\t}", "protected function renderPageTitle() {}", "public function get_title();", "public function getTitle(): string {\n\t\treturn $this->title;\n\t}", "public function getTitle() {\n\t\t\n\t\t\treturn $this->_title;\n\t\t\n\t\t}", "public static function title($page_title = false)\r\n\t{\r\n\t\t$title = '';\r\n\t\tif($page_title)\r\n\t\t{\r\n\t\t\t$title = $page_title . ' | ';\r\n\t\t}\r\n\t\treturn $title . Kohana::$config->load('site')->get('name');\r\n\t}", "public static function title($page_title = false)\r\n\t{\r\n\t\t$title = '';\r\n\t\tif($page_title)\r\n\t\t{\r\n\t\t\t$title = $page_title . ' | ';\r\n\t\t}\r\n\t\treturn $title . Kohana::$config->load('site')->get('name');\r\n\t}", "public function getTitle(): string\n {\n return $this->_title;\n }", "function get_title() {\n\t\treturn $this->settings['title'];\n\t}", "public function getTitle()\n {\n return $this->getData(self::TITLE);\n }", "protected function getTitle() {\r\n\t\treturn $this->newsItem->getTitle();\r\n\t}", "public function getTitle()\n {\n return $this->_title;\n }", "public function getTitle()\n {\n return $this->_title;\n }", "public function getTitle()\n {\n return $this->_title;\n }", "public function getTitle()\n {\n return $this->_title;\n }", "public function getTitle()\n {\n return $this->_title;\n }", "public function getTitle()\n {\n return $this->_title;\n }", "public function getTitle()\n {\n return $this->_title;\n }", "public function getTitle()\n {\n return isset($this->metas['title']) ? $this->metas['title'] : '';\n }", "public function _GetPageTitle() {\n\t\t$page_title = 'Shirtswithstamps: T-Shirts with stamps for every ocassion';\n\t\t\n\t\tif (isset($_GET['DepartmentId']) && isset($_GET['CategoryId'])) {\n\t\t\t$page_title = Catalog::GetDepartmentName($_GET['DepartmentId']).' &raquo; '.Catalog::GetCategoryName($_GET['CategoryId']).' - Shirts With Stamps';\n\t\t\t\n\t\tif (isset($_GET['Page']) && ((int)$_GET['Page']) > 1)\n\t\t\t$page_title = Catalog::GetDepartmentName($_GET['DepartmentId']).' &raquo; '.Catalog::GetCategoryName($_GET['CategoryId']).' - Page '.((int)$_GET['Page']).' - Shirtswithstamps';\t\n\t\t}\n\t\t\n\t\telseif (isset($_GET['DepartmentId'])) {\n\t\t\t$page_title = Catalog::GetDepartmentName($_GET['DepartmentId']).' - Shirts With Stamps';\n\t\t\t\n\t\t\tif (isset($_GET['Page']) && ((int)$_GET['Page']) > 1)\n\t\t\t\t$page_title = Catalog::GetDepartmentName($_GET['DepartmentId']).' - Page '.((int)$_GET['Page']).' - Shirts With Stamps';\n\t\t}\n\t\t\n\t\telseif (isset($_GET['ProductId'])) {\n\t\t\t$page_title = Catalog::GetProductName($_GET['ProductId']).' - Shirts With Stamps';\n\t\t}\n\t\t\n\t\telseif (isset($_GET['SearchResults'])) {\n\t\t\t$page_title = '';\n\t\t\t\n\t\t\t// Display the search string\n\t\t\t$page_title = trim(str_replace('-', ' ', $_GET['SearchString'])).' (';\n\t\t\t\n\t\t\t// Display 'all-words' search or 'any-words' search\n\t\t\t$all_words = isset($_GET['AllWords']) ? $_GET['AllWords'] : 'off';\n\t\t\t\n\t\t\t$page_title .= (($all_words == 'on') ? 'all' : 'any').'-words search';\n\t\t\t\n\t\t\t// Display the page number\n\t\t\tif (isset($_GET['Page']) && ((int)$_GET['Page'] < 1))\n\t\t\t\t$page_title .= ', page '.((int)$_GET['Page']);\n\t\t\t\t\n\t\t\t$page_title .= ')';\n\t\t}\n\t\t\n\t\telse {\n\t\t\tif (isset($_GET['Page']) && ((int)$_GET['Page']) > 1)\n\t\t\t\t$page_title .= ' - Page '.((int)$_GET['Page']);\n\t\t}\n\t\t\n\t\treturn $page_title;\n\t}", "public function getTitle(): string\n {\n return $this->title;\n }", "public function getTitle(): string\n {\n return $this->title;\n }", "public function getTitle(): string\n {\n return $this->title;\n }", "public function getTitle(): string\n {\n return $this->title;\n }", "public function getTitle(): string\n {\n return $this->title;\n }", "public function getTitle(): string\n {\n return $this->title;\n }", "public function getTitle(): string\n {\n return $this->title;\n }", "public function getTitle(): string\n\t{\n\t\treturn $this->title;\n\t}", "public function get_title() {\n\t\tif ( ! is_null( $this->title ) ) {\n\t\t\treturn $this->title;\n\t\t}\n\n\t\t/**\n\t\t * Allow changing the title.\n\t\t *\n\t\t * @param string $title The page title being put out.\n\t\t */\n\t\t$this->title = $this->do_filter( 'frontend/title', $this->paper->title() );\n\n\t\t// Early Bail!!\n\t\tif ( '' === $this->title ) {\n\t\t\treturn $this->title;\n\t\t}\n\n\t\t// Remove excess whitespace.\n\t\t$this->title = preg_replace( '[\\s\\s+]', ' ', $this->title );\n\n\t\t// Capitalize Titles.\n\t\tif ( Helper::get_settings( 'titles.capitalize_titles' ) ) {\n\t\t\t$this->title = ucwords( $this->title );\n\t\t}\n\n\t\t$this->title = wp_strip_all_tags( stripslashes( $this->title ), true );\n\t\t$this->title = esc_html( $this->title );\n\t\t$this->title = convert_smilies( $this->title );\n\n\t\treturn $this->title;\n\t}", "public function getTitle()\n {\n return $this->title;\n }", "public function getTitle()\n {\n return $this->title;\n }", "public function getTitle()\n {\n return $this->title;\n }", "public function getTitle()\n {\n return $this->title;\n }", "public function getTitle()\n {\n return $this->title;\n }" ]
[ "0.9009089", "0.8967029", "0.896351", "0.88662356", "0.88571894", "0.8848067", "0.87375534", "0.8672296", "0.86392736", "0.8609965", "0.857358", "0.8554077", "0.85520476", "0.8517262", "0.8446222", "0.83773357", "0.83437395", "0.82884854", "0.8270993", "0.8228507", "0.81310403", "0.81149817", "0.80759346", "0.80759346", "0.8073569", "0.80618316", "0.8053424", "0.80524373", "0.8033383", "0.79951245", "0.79908943", "0.79883254", "0.79773074", "0.7965484", "0.79616535", "0.7938437", "0.79374975", "0.79239655", "0.7912237", "0.7911255", "0.7909591", "0.7909591", "0.79066104", "0.7906332", "0.79048973", "0.79048973", "0.79048973", "0.79048973", "0.7904156", "0.7901391", "0.7898099", "0.78962725", "0.7892968", "0.7892968", "0.7892968", "0.7892968", "0.7892968", "0.7892968", "0.7892968", "0.7892968", "0.7892968", "0.7892968", "0.7892968", "0.7892968", "0.7892514", "0.78824216", "0.78808284", "0.7877066", "0.7875971", "0.78753483", "0.78597796", "0.7848336", "0.78482795", "0.78482795", "0.7847932", "0.7832157", "0.78166664", "0.78129894", "0.7811212", "0.7811212", "0.7811212", "0.7811212", "0.7811212", "0.7811212", "0.7811212", "0.78105646", "0.7805432", "0.7805416", "0.7805416", "0.7805416", "0.7805416", "0.7805416", "0.7805416", "0.7805416", "0.7805183", "0.78021944", "0.78015536", "0.78015536", "0.78015536", "0.78015536", "0.78015536" ]
0.0
-1
Sets the current page title
public function setTitle($value);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setPageTitle() {\r\n\t\t$pageTitleText = (empty($this->settings['news']['semantic']['general']['pageTitle']['useAlternate'])) ? $this->newsItem->getTitle() : $this->newsItem->getAlternativeTitle();\r\n\t\t$pageTitleAction = $this->settings['news']['semantic']['general']['pageTitle']['action'];\r\n\r\n\t\tif (!empty($pageTitleAction)) {\r\n\t\t\tswitch ($pageTitleAction) {\r\n\t\t\t\tcase 'prepend':\r\n\t\t\t\t\t$pageTitleText .= ': ' . $GLOBALS['TSFE']->page['title'];\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'append':\r\n\t\t\t\t\t$pageTitleText = $GLOBALS['TSFE']->page['title'] . ': ' . $pageTitleText;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t}\r\n\t\t\t$this->pageTitle = html_entity_decode($pageTitleText, ENT_QUOTES, \"UTF-8\");\r\n\t\t\t$GLOBALS['TSFE']->page['title'] = $this->pageTitle;\r\n\t\t\t$GLOBALS['TSFE']->indexedDocTitle = $this->pageTitle;\r\n\t\t}\r\n\t}", "public function setPageTitle($title);", "public function setPageTitle($page_name);", "public function setPageTitle($page_name);", "function setTitle() {\n global $pageTitle;\n\n $pageTitle = isset($pageTitle) ? $pageTitle : 'Default' ;\n echo $pageTitle;\n }", "protected function setTitle()\n\t{\n\t\tglobal $APPLICATION;\n\n\t\tif ($this->arParams[\"SET_TITLE\"] == 'Y')\n\t\t\t$APPLICATION->SetTitle(Localization\\Loc::getMessage(\"SPOL_DEFAULT_TITLE\"));\n\t}", "function setPageTitle($pageTitle)\n\t{\n\t\t$this->pageTitle = $pageTitle;\n\t}", "public static function setPageTitle($title)\n\t{\n\t\tYii::app()->controller->pageTitle = $title;\n\t}", "public function set_pagetitle($title)\n {\n $this->pagetitle = $title;\n }", "function set_title() {\n \tglobal $pageTitle;\n \tif (isset($pageTitle))\n \t\techo 'Tanqeeb | ' . $pageTitle;\n \telse\n \t\techo 'Tanqeeb';\n}", "public function setTitle($title) {\n\t\tTemplate::setSiteTitle($title);\n\t}", "protected function setPageTitle($title) {\n\n $this->pageTitle = $title;\n\n $args = array('class' => 'title');\n $titleTag = \\MUtil_Html::create('h3', $title, $args);\n\n $this->html->append($titleTag);\n }", "public function setPageTitle($title)\n {\n self::set('_title', $title);\n }", "public function setPageTitle($title)\n\t{\n\t\t$this->_themeExtras['title'] = $title;\n\t}", "public function title(){\r\n\r\n echo ISSET($this->pageSettings->page_title)?$this->pageSettings->page_title:'';\r\n\r\n }", "function od_set_page_title($orig_title) {\n\t\treturn \"Map | \"; // set the page title (could be improved, eg based on filters. Might be something the user wants to set\n\t}", "public function setPageTitle($pageTitle) {\n $this->pageTitle = $pageTitle;\n }", "public function setTitle($title = ''){\n $this->setVar('TITLE', $title);\n }", "public function setPageTitle($title)\n {\n $titleElement = $this->query('title')->first();\n if ($title === '') {\n // If empty value passed we need to remove title tag\n if ($titleElement) {\n $this->removeElement($titleElement);\n }\n } else {\n if ($titleElement) {\n $titleElement->text($title);\n } else {\n $titleElement = new Title($title);\n $head = $this->query('head');\n if ($head->count() > 0) {\n /* @var Element $head */\n $this->appendTo($head->first(), $titleElement);\n }\n }\n }\n }", "public function setTitle($title) {\r\n $this->_title = $title;\r\n }", "public function setTitle($newTitle) { $this->Title = $newTitle; }", "function setTitle($title) {\r\n $this->_title = $title;\r\n }", "function setTitle($title) {\r\n $this->_title = $title;\r\n }", "public function setTitle($title)\n\t{\n\t\t$this->title = $title;\n\n\t\tif($this->pageInitialized)\n\t\t{\n\t\t\t$titleElement = $this->document->getElementsByTagName('title')->item(0);\n\t\t\t$titleElement->clear();\n\t\t\t$titleElement->loadHtml($title);\n\t\t}\n\t}", "public function setTitle($title) {\n $this->_title = $title;\n }", "function setTitle($title) {\n\t\t$this->_title = $title;\n\t}", "function setTitle($title) {\n\t\t$this->title = $title;\n\t}", "public function setTitle($title)\r\n\t\t{\r\n\t\t\t$this->_title = $title;\r\n\t\t}", "function set_title($title){\r\n\t\t$this->_title = $title;\r\n\t}", "public function setTitle($title) {\r\n $this->title = $title;\r\n }", "public function setTitle($title) {\n\t\t$this->title = $title;\n\t}", "public function setTitle($title) {\n\t\t$this->title = $title;\n\t}", "public function setTitle($title) {\n\t\t$this->title = $title;\n\t}", "public function setTitle($title){\n $this->title = $title;\n }", "public function setTitle($title) {\n $this->_title = $title;\n }", "function setBrowserTitle( $pTitle ) {\n\t\tglobal $gBitSmarty, $gPageTitle;\n\t\t$gPageTitle = $pTitle;\n\t\t$gBitSmarty->assign( 'browserTitle', $pTitle );\n\t\t$gBitSmarty->assign( 'gPageTitle', $pTitle );\n\t}", "public function setTitle($title) {\n $this->title = $title ;\n }", "public function setTitle($title) {\n\t\t\n\t\t\t$this->_title = $title;\n\t\t\n\t\t}", "public function setTitle($title = '')\n {\n $this->title = $title;\n }", "public function setTitle($title){\n $this->title = $title;\n }", "function setTitle($title)\r\n\t{\r\n\t\t$this->title = $title;\r\n\t}", "function setTitle($title)\r\n {\r\n $this->title = $title;\r\n }", "function setTitle($title)\n {\n $this->m_title = $title;\n }", "public function setTitle($title)\n {\n $this->_title = $title;\n }", "public function setTitle($title)\n {\n $this->_title = $title;\n }", "public function setTitle($title)\r\n {\r\n $this->title = $title;\r\n }", "public function setTitle($title) {\n $this->title = $title;\n }", "public function setTitle($title) {\n $this->title = $title;\n }", "public function setTitle($title)\n\t{\n\t\t$this->title = $title;\n\t}", "public function setTitle($title)\n\t{\n\t\t$this->title = $title;\n\t}", "public function setTitle($title){\n $this->p_title = $title;\n }", "public function setTitle($value)\n {\n $this->_title = $value;\n }", "public function setTitle( $newTitle )\n {\n\t\t$this->title = $newTitle;\n\t}", "function setTitle($title)\n {\n $this->title = $title;\n }", "function setTitle($title)\n {\n $this->title = $title;\n }", "function setTitle($title)\n {\n $this->title = $title;\n }", "public function setTitle($title)\n {\n $this->title = $title;\n }", "public function setTitle($title)\n {\n $this->title = $title;\n }", "public function setTitle($title)\n {\n $this->title = $title;\n }", "public function setTitle($title)\n {\n $this->title = $title;\n }", "public function setTitle($title)\n {\n $this->title = $title;\n }", "public function setTitle($title)\n {\n $this->title = $title;\n }", "public function setTitle($title)\n {\n $this->title = $title;\n }", "function set_the_title($title) {\n\n md_set_the_title($title);\n \n }", "public function setTitle($title){\n \t$this->title = $title;\n }", "public function setTitle($newTitle) {\n\t\t$this->title = $newTitle;\n\t}", "public function setTitle($title);", "public function setTitle($title);", "public function setTitle($title);", "public function setTitle($title);", "public function setTitle($title);", "public function setTitle($title);", "public function setTitle($title);", "protected function setPageTitle($title, $raw = false)\n {\n $this->data[\"site\"][\"page_title\"] = $raw ? $title : config(\"site_name\") . \" - \" . $title;\n }", "function PageTitle ($set = false) {\n \tif (!$set) {\n \t\treturn $this->pagetitle;\n \t}\n \telse {\n \t\t$this->pagetitle = $set . ' | ' . $this->config->item('server_name');\n \t\treturn $this->pagetitle;\n \t}\n }", "public function setTitle($var)\n {\n $this->_title = $var;\n }", "function setTitle(string $title): void\n {\n $this->data['head']['title'] = $title;\n }", "public function set_title($title)\n {\n $this->title = $title;\n }", "public function setTitle($value)\n {\n $this->title = $value;\n }", "public static function setTitle($projectTitle=\"Default App\")\n {\n global $application_name;\n $application_name = $projectTitle;\n }", "public function set_page_title($p_page_title)\n\t{\n\t\t$this->c_page_title = $p_page_title;\n\t}", "public function setTitle(string $title) {\n\t\t$this->title = $title;\n\t}", "public static function setTitle(string $title) {}", "protected function regeneratePageTitle() {}", "public function setTitle($title)\n\t{\n\t\t$this->setBodyTitle($title);\n\t\t$this->setPageTitle($title);\n\t}", "protected function renderPageTitle() {}", "public function setTitle($title)\n {\n $this->title = (string) $title;\n }", "public function setTitle($title)\n\t{\n\t\tif (!empty($title)) {\n\t\t\t$this->title = $title;\n\t\t}\n\t}", "public function setTitle(string $title);", "public function SetHeadTitle ($title) {\r\n\t\t$this->head->SetTitle($title);\r\n\t}", "function setTitle($a_title)\n\t{\n\t\t$this->title = $a_title;\n\t}", "function set_title($title) \r\n\t{\r\n\t\t//$this->title = $title;\r\n\t\t$this->data['title_for_layout'] = $title;\r\n\t\t$this;\r\n\t}", "final public function setPageTitle($title) {\n if ($title === null) {\n return;\n }\n if ($this->title !== null) {\n trigger_warning(\"Setting page title more than once! Was {$this->title} but now is $title\", E_USER_WARNING);\n }\n $this->title = $title;\n return $this;\n }", "public function setTitle(string $title): void {\n\t\t$this->m_title = $title;\n\t}", "function setTitle( &$value )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n $this->Title = $value;\n }", "public function setPageTitle(array $config): void\n {\n foreach ($config as $item) {\n if (isset($item['active']) && $item['active']) {\n $this->_View->assign('title', $item['title']);\n break;\n }\n }\n }", "public function setTitle($title)\n {\n $this->setValue('title', $title);\n }", "public function setTitle(string $title): void\n {\n $this->_title = $title;\n }", "function pageTitle(){\n\t\tglobal $pageTitle;\n\t\techo isset($pageTitle) ? $pageTitle : \"Default\";\n\t}", "function setTitle( $title )\n {\n $title = trim( $title );\n $this->properties['TITLE'] = $title;\n }", "public function set_title($text){\n $this->title=$text;\n }" ]
[ "0.8608421", "0.8210156", "0.80975467", "0.80975467", "0.7955799", "0.78968316", "0.7885441", "0.7855212", "0.7768573", "0.77248245", "0.77200997", "0.77167785", "0.77066576", "0.7689272", "0.76750165", "0.76621085", "0.7657394", "0.7656129", "0.76415116", "0.76340866", "0.7624836", "0.7620333", "0.7620333", "0.7615706", "0.76131475", "0.76093817", "0.75967616", "0.759244", "0.75905234", "0.7583129", "0.7574677", "0.7574677", "0.7574677", "0.7563784", "0.7562976", "0.7555059", "0.7542271", "0.7540056", "0.75371933", "0.75364643", "0.75347567", "0.7530864", "0.7528945", "0.7521381", "0.7521381", "0.75151074", "0.75062585", "0.75062585", "0.7492374", "0.7492374", "0.74742836", "0.7473092", "0.74651206", "0.7463156", "0.7463156", "0.7463156", "0.74568516", "0.74568516", "0.74568516", "0.74568516", "0.74568516", "0.74568516", "0.7449971", "0.7446558", "0.7445896", "0.7431857", "0.74274796", "0.74274796", "0.74274796", "0.74274796", "0.74274796", "0.74274796", "0.74274796", "0.7422283", "0.7417104", "0.73856807", "0.73811054", "0.73618376", "0.73352903", "0.7288516", "0.7285424", "0.7277584", "0.72757185", "0.7268848", "0.72417074", "0.7230986", "0.72265184", "0.7217168", "0.7200022", "0.71991175", "0.71929824", "0.7181593", "0.7179483", "0.71787864", "0.71770424", "0.7172075", "0.7166385", "0.7149463", "0.714197", "0.71419173", "0.71348387" ]
0.0
-1
Gets the page description
public function getDescription();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public function getDescription() {\n\t\treturn self::$page_description;\n\t}", "public function getPageDescription()\n {\n $element = $this->query('meta[name=\"description\"]')->first();\n if ($element) {\n return $element->getAttribute('content');\n }\n\n return '';\n }", "public function getPageDescription()\n {\n if ($this->_pageDescription === null) {\n $action = $this->getAction();\n if (method_exists($action, 'label')) /* @var \\Restyii\\Action\\Base $action */\n $this->_pageDescription = $action->label();\n }\n return $this->_pageDescription;\n }", "public function get_description () {\r\n\t\t$content = file_get_contents($this->url);\r\n\t\t$regex = preg_match('/<p id=\"eow-description\" class=\"\" >(.*)<\\/p>/i', $content, $matches);\r\n\t\treturn $matches[1];\r\n\t}", "public function description()\n\t{\n\t\t$txt = array();\n\t\t$txt['wiki'] = 'Generates a link to a random page.';\n\t\t$txt['html'] = '<p>Generates a link to a random page.</p>';\n\t\treturn $txt['html'];\n\t}", "private function get_description()\n\t{\n\t\treturn $this->m_description;\n\t}", "private function get_description()\n\t{\n\t\treturn $this->m_description;\n\t}", "function getDataDescription($data)\n{\n\t$dataDesc = getData($data, \"Page/Description\");\n\treturn $dataDesc[0];\n}", "public function getDescription() {\n\t\treturn Template::getSiteMetaDescription();\n\t}", "function site_description() {\n\treturn site_meta('description');\n}", "public function get_description() {\n\t\treturn $this->_post->post_excerpt;\n\t}", "function getPageDescription() {\n global $wp_query,\n $post;\n\n $description = get_bloginfo( 'description' );\n\n // single / page\n if( ( is_single() || is_page() ) && !is_front_page() ) {\n $_description = $post->post_content;\n\n // try fetching first text blocks\n if( function_exists( 'get_field' ) ) {\n if( $blocks = get_field( 'blocks', $post->ID ) ) {\n for( $i = 0; $i < count( $blocks ); $i++ ) {\n if( $blocks[$i]['acf_fc_layout'] === 'text' ) {\n $_description = $blocks[$i]['text'];\n break;\n }\n }\n }\n }\n\n if( function_exists( 'get_field' ) ) {\n if( get_field( 'linkpreview--description', $post->ID ) ) {\n $_description = get_field( 'linkpreview--description', $post->ID );\n }\n }\n\n $description = ( !empty( $_description ) ) ? $_description : $description;\n }\n\n // custom taxonomy terms\n if( !empty( $wp_query->query_vars['term'] ) ) {\n $term = get_term_by( 'slug', $wp_query->query_vars['term'], $wp_query->query_vars['taxonomy'] );\n if( $term ) {\n $description = ( !empty( $term->description ) ) ? $term->description : $description;\n }\n }\n\n // tags\n if( is_tag() ) {\n $tag = get_term_by( 'slug', $wp_query->query['tag'], 'post_tag' );\n if( $tag ) {\n $description = ( !empty( $tag->description ) ) ? $tag->description : $description;\n }\n }\n\n // category\n if( is_category() ) {\n $category = get_term_by( 'slug', $wp_query->query['category_name'], 'category' );\n if( $category ) {\n $description = ( !empty( $category->description ) ) ? $category->description : $description;\n }\n }\n\n // author\n if( !empty( $wp_query->query['author_name'] ) ) {\n $author = get_user_by( 'slug', $wp_query->query['author_name'] );\n if( $author ) {\n $biography = get_the_author_meta( 'description', $author->ID );\n $description = ( !empty( $biography ) ) ? $biography : $description;\n }\n }\n\n return wp_trim_words( $description, 115, null );\n}", "function get_description() \t{\n \t\treturn $this->description;\n \t}", "public function get_description()\n {\n }", "public function get_description()\n {\n }", "public function getDesc()\n {\n return $this->get(self::_DESC);\n }", "function getDescription() {\r\n\t\treturn 'Lets you determine how many comments to show on item page, what order to show them in and provides pagination of results';\r\n\t}", "public function get_description() {\n\t\t\t$path = $this->git_directory_path();\n\t\t\treturn file_get_contents($path.\"/description\");\n\t\t}", "public function description()\n {\n $description = $this->DOM->filter(\"meta[name='description']\")->attr('content');\n\n return $description;\n }", "public function getDescription() {\n return $this->_get( 'description' );\n }", "public function get_description()\n\t{\n\t\treturn $this->description;\n\t}", "public function get_description()\n\t{\n\t\treturn $this->description;\n\t}", "public function get_description(){\n\t\treturn $this->description;\n\t}", "public function get_description() {\n\t\treturn $this->description;\n\t}", "protected function getDescription() {\r\n\t\treturn $this->description;\r\n\t}", "public function get_description() { \n\n\t\treturn $this->description; \n\t\n\t}", "abstract function getdescription();", "public function get_description() {\r\n return $this->description;\r\n }", "function getDescription()\r\n\t\t{\r\n\t\t\treturn $this->description;\r\n\t\t\t\r\n\t\t}", "public function get_description() {\n return $this->description;\n }", "public function getDescription()\r\n {\r\n return $this->m_description;\r\n }", "public function get_description(){\n\t\treturn $this->_description;\n\t}", "function get_description() {\n return $this->get_mapped_property('description');\n }", "public function getDescription()\n {\n return $this->getHeaderFieldModel('Content-Description');\n }", "function getDescription() {\n\t\treturn $this->data_array['description'];\n\t}", "public function getDescriptionAction()\n {\n $content = null;\n try {\n $content = $this->dms()->getService()->getInfo($this->params('file'), 'description');\n } catch (NoFileException $e) {\n $content = $e->getMessage();\n }\n\n return $this->getResponse()->setContent($content);\n }", "function learn_press_course_lesson_description() {\n\t\tlearn_press_get_template( 'content-lesson/description.php' );\n\t}", "public function getDescription() {\n return $this->config['general']['description'];\n }", "public function get_page_info()\n {\n }", "public function getDescription() {\n return $this->desc;\n }", "public static function description()\n {\n return static::$_description;\n }", "public function GetDescription()\n {\n return $this->GetTextField('description', 600, true, $this->GetDescriptionVariables());\n }", "function getDescription() \n {\n return $this->_description;\n }", "public function getDescription()\n {\n $headers = $this->getDefaultHeaders();\n $response = $this->client->request(\n 'GET',\n $this->api . $this->repo,\n array(\n \"headers\" => $headers\n )\n );\n\n if ($response->getStatusCode() == 200) {\n $body = $response->getBody();\n $body = json_decode($body, true);\n return $body[\"description\"];\n }\n return '';\n }", "public function getDesc()\n {\n return $this->desc;\n }", "public function getDesc()\n {\n return $this->desc;\n }", "public static function getDescription();", "function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "function arras_document_description() {\n\tif ( class_exists('All_in_One_SEO_Pack') || class_exists('Platinum_SEO_Pack') ) return false;\n\t\n\tif ( is_single() || is_page() ) {\n\t\tif ( have_posts() ) {\n\t\t\twhile( have_posts() ) {\n\t\t\t\tthe_post();\n\t\t\t\techo '<meta name=\"description\" content=\"' . get_the_excerpt() . '\" />';\n\t\t\t}\n\t\t}\n\t} else {\n\t\techo '<meta name=\"description\" content=\"' . get_bloginfo('description') . '\" />';\n\t}\n}", "function getDescription() {\n\t\treturn $this->description;\n\t}", "function article_description() {\n return Registry::prop('article', 'description');\n}", "public function getDescription() {\n\t\treturn self::$_description;\n\t}", "public function getDescription()\r\n {\r\n return $this->description;\r\n }", "public function getDescription() {\r\n\t\t$tmp_body = strip_tags($this -> body);\r\n\t\t$description = Engine_Api::_() -> ynblog() -> subPhrase($tmp_body, 150);\r\n\t\treturn $description;\r\n\t}", "public function get_description() {\n\t\tif ( ! is_null( $this->description ) ) {\n\t\t\treturn $this->description;\n\t\t}\n\n\t\t/**\n\t\t* Allow changing the meta description sentence.\n\t\t*\n\t\t* @param string $description The description sentence.\n\t\t*/\n\t\t$this->description = $this->do_filter( 'frontend/description', trim( $this->paper->description() ) );\n\n\t\t// Early Bail!!\n\t\tif ( '' === $this->description ) {\n\t\t\treturn $this->description;\n\t\t}\n\n\t\t$this->description = wp_strip_all_tags( stripslashes( $this->description ), true );\n\t\t$this->description = esc_attr( $this->description );\n\n\t\treturn $this->description;\n\t}", "public function getDescription()\n {\n return $this->post->post_content;\n }", "function getDescription() {\n return $this->description;\n }", "public function getDescription()\r\n {\r\n return $this->_description;\r\n }", "public function getDescription()\r\n {\r\n return $this->_description;\r\n }", "public function getDescription()\n {\n return $this->_description;\n }", "function emc_the_cpt_description(){\r\n\r\n\t$desc = get_page_by_path( 'description', OBJECT, 'emc_content_focus' );\r\n\t$html = apply_filters( 'the_content', $desc->post_content );\r\n\techo $html;\r\n\r\n}", "public function getDescription()\r\n {\r\n return $this->description;\r\n }", "public function getDescription()\r\n {\r\n return $this->description;\r\n }", "function getDescription() {\n\t\treturn $this->_Description;\n\t}", "function getDescription() {\n\t\treturn $this->_Description;\n\t}", "public function get_description()\r\n {\r\n \t$data = $this->get_exercise_data();\r\n \treturn $data['description'];\r\n }", "public function getDescription() {\r\n return $this->description;\r\n }", "public function getDescription()\n {\n $this->parseDocBlock();\n return $this->description;\n }", "public function getDescription()\n { \n return $this->description;\n }", "public static function getDescription()\n {\n return self::$description;\n }", "public function getDescription()\n {\n return $this->_description;\n }", "public function getDesc()\n {\n return $this->Desc;\n }", "public function getDescription() {\n return $this->description;\n }", "public function getDescription() \n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public static function description($description)\n {\n // Set page description\n self::$data['description'] = $description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }", "public function getDescription()\n {\n return $this->description;\n }" ]
[ "0.8648934", "0.8196595", "0.7809184", "0.7608427", "0.7240764", "0.7229498", "0.7229498", "0.7171623", "0.710823", "0.7091599", "0.7070574", "0.70604646", "0.7012445", "0.6990432", "0.6990432", "0.6943201", "0.6942586", "0.6940996", "0.69359285", "0.69316036", "0.69229716", "0.69229716", "0.6905046", "0.6901238", "0.6875306", "0.6873284", "0.68635356", "0.68487406", "0.68276614", "0.68240833", "0.6820625", "0.68202996", "0.6819218", "0.6817634", "0.68156576", "0.6814871", "0.68114114", "0.68044585", "0.6801258", "0.6798613", "0.6794152", "0.679138", "0.6780191", "0.6776608", "0.67726743", "0.67726743", "0.6765856", "0.6759846", "0.67516184", "0.67493236", "0.674857", "0.67480075", "0.67381096", "0.67350334", "0.67309415", "0.6730137", "0.6726409", "0.67251074", "0.67183644", "0.67183644", "0.6716947", "0.6710583", "0.67101485", "0.67101485", "0.671", "0.671", "0.67096454", "0.6699874", "0.6699523", "0.6689992", "0.6689643", "0.66890866", "0.6689024", "0.6687235", "0.66872203", "0.66870415", "0.66870165", "0.6680345", "0.6680345", "0.6680345", "0.6680345", "0.6680345", "0.6680345", "0.6680345", "0.6680345", "0.6680345", "0.6680345", "0.6680345", "0.6680345", "0.6680345", "0.6680345", "0.6680345", "0.6680345", "0.6680345", "0.6680345", "0.6680345", "0.6680345", "0.6680345", "0.6680345", "0.6680345", "0.6680345" ]
0.0
-1
Sets the current page description
public function setDescription($value);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public function setDescription($new_description) {\n\t\tself::$page_description = (string)$new_description;\n\t}", "public function setPageDescription($pageDescription)\n {\n $this->_pageDescription = $pageDescription;\n }", "public static function description($description)\n {\n // Set page description\n self::$data['description'] = $description;\n }", "public function setDescription ($value) {\n\t\t$this->setData(\"pageDescription\", $value);\n\t\treturn true;\n\t}", "public function setDescription($description)\n\t{\n\t\t$this->description = $description;\n\n\t\tif($this->pageInitialized)\n\t\t\t$this->setMetaTag('description', $this->description);\n\t}", "public function setPageDescription($text)\n {\n $metaDescription = $this->query('meta[name=\"description\"]')->first();\n if ($text === '') {\n // If empty value passed we need to remove title tag\n if ($metaDescription) {\n $this->removeElement($metaDescription);\n }\n } else {\n if ($metaDescription) {\n $metaDescription->setAttribute('content', $text);\n } else {\n // Try to insert meta description tag into head\n $metaDescription = new Meta('description', $text);\n $head = $this->query('head');\n if ($head->count() > 0) {\n /* @var Element $head */\n $this->appendTo($head->first(), $metaDescription);\n }\n }\n }\n }", "protected function setDescription() {\r\n\t\t$descriptionCrop = intval($this->settings['news']['semantic']['general']['description']['crop']);\r\n\t\t$descriptionAction = $this->settings['news']['semantic']['general']['description']['action'];\r\n\t\t$descriptionText = $this->newsItem->getTeaser();\r\n\t\tif (empty($descriptionText)) {\r\n\t\t\t$descriptionText = $this->newsItem->getBodytext();\r\n\t\t}\r\n\t\tif (!empty($descriptionText) && !empty($descriptionAction)) {\r\n\t\t\tif (!empty($GLOBALS['TSFE']->page['description'])) {\r\n\t\t\t\tswitch ($descriptionAction) {\r\n\t\t\t\t\tcase 'prepend':\r\n\t\t\t\t\t\t$descriptionText .= ': ' . $GLOBALS['TSFE']->page['description'];\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 'append':\r\n\t\t\t\t\t\t$descriptionText = $GLOBALS['TSFE']->page['description'] . ': ' . $descriptionText;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$this->description = $this->contentObject->crop($descriptionText, $descriptionCrop . '|...|' . TRUE);\r\n\t\t}\r\n\t}", "public function setDescription($description) {\n\t\tTemplate::setSiteMetaDescription($description);\n\t}", "protected function assignDescription()\n {\n $this->description = '';\n }", "function setDescription($description) {\n\t\t$this->description = $description;\n\t}", "protected function setDescription($description) {\r\n $this->description = $description;\r\n }", "protected function assignDescription()\n {\n $this->description = 'This is a test for a Template Variable migration class';\n }", "function setDescription( $value )\r\n {\r\n $this->Description = $value;\r\n }", "function setDescription( $value )\r\n {\r\n $this->Description = $value;\r\n }", "public function setDescription($description){\n\t\t$this->description = $description;\n\t}", "function setHeadDescription($var)\n\t{\n\t\t$this -> head_description = $var;\n\t}", "public function setSetDescription($description) {\r\n\t\t$this -> setdescription = $description;\r\n\t}", "function setDescription( &$value )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n $this->Description = $value;\n }", "public function setDescription($desc) {\n\t\t$this->description = $desc;\n\t}", "public function set_description($new) {\n\t\t\t$path = $this->git_directory_path();\n\t\t\tfile_put_contents($path.\"/description\", $new);\n\t\t}", "public function setDescription($description) {\n\t\t$this->description = $description;\n\t}", "public function setDescription($description)\n {\n $this->_description = $description;\n }", "public function setDescription($description)\r\n {\r\n $this->description = $description;\r\n }", "public function setDescription($description) {\n $this->_description = $description;\n }", "function set_description($description)\r\n {\r\n $this->set_default_property(self :: PROPERTY_DESCRIPTION, $description);\r\n }", "public function setDescription($description) {\n $this->description = $description;\n }", "public function setDescription( $description )\r\n\t{\r\n\t\t$this->description = $description;\r\n\t}", "function setItem_description($description){\n $this->item_description = $description;\n }", "public function setDescription($desc)\n {\n $this->description = $desc;\n }", "public function setDescription($description)\n\t{\n\t\t$this->_description = $description;\n\t}", "function set_description($description)\n {\n $this->set_default_property(self :: PROPERTY_DESCRIPTION, $description);\n }", "public function set_description ($description) {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->_description = $description;\n }", "public function setDescription($newDescription)\n {\n $this->description = $newDescription;\n }", "public function setDescription(?string $value): void {\n $this->getBackingStore()->set('description', $value);\n }", "public function setDescription(?string $value): void {\n $this->getBackingStore()->set('description', $value);\n }", "public function setDescription(?string $value): void {\n $this->getBackingStore()->set('description', $value);\n }", "public function setDescription(?string $value): void {\n $this->getBackingStore()->set('description', $value);\n }", "public function setDescription(?string $value): void {\n $this->getBackingStore()->set('description', $value);\n }", "public function setDescription(?string $value): void {\n $this->getBackingStore()->set('description', $value);\n }", "public function setDescription(?string $value): void {\n $this->getBackingStore()->set('description', $value);\n }", "public function setDescription(?string $value): void {\n $this->getBackingStore()->set('description', $value);\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function setDescription($description)\n {\n $this->description = $description;\n }", "public function testAssignDescription()\n {\n $this->markTestIncomplete(\n 'This test has not been implemented yet.'\n );\n }", "protected function set_meta_desc()\r\r\n {\r\r\n define('_KEYWORDS',_BUY_ONLINE);\r\r\n define('_DESCRIPTION',_BUY_ONLINE);\r\r\n define('_TITLE_PAGE',_BUY_ONLINE);\r\r\n }", "public function setDescription($description) \n\t{\n \n $this->description = empty($description) ? \"\" : $description;\t\n\t}", "public function setDescription(string $description)\n {\n $this->description = $description;\n }", "public function setDescription($description);", "public function setDescription($description);", "public function setDescription($description);", "public function setDescription($description);", "public function setDescription($description);", "public function setDescription($description);", "public function setDesciption($description);", "public function SetHeadDescription ($description) {\r\n\t\t$this->head->SetDescription($description);\r\n\t}", "function learn_press_course_lesson_description() {\n\t\tlearn_press_get_template( 'content-lesson/description.php' );\n\t}", "public function set_description($desciption){\n\t\t$this->set_channel_element('description', $desciption);\n\t}", "public function setDescription(?string $description): void\n {\n $this->description = $description;\n }", "public function set_description($description) \n\t{\n\t\t$tag = ($this->version == ATOM)? 'summary' : 'description'; \n\t\t$this->add_element($tag, $description);\n\t}", "public function setDescription($value)\n {\n $this->setItemValue('description', (string)$value);\n }", "public function setDescription(string $description)\n {\n $this->description = $description;\n }", "static public function getDescription() {\n\t\treturn self::$page_description;\n\t}", "public function setDescription($value) {\n\t\tif($value == \"\") { $value = \"None\"; }\n\t\tself::$_description = $value;\n\t}", "public function setOsDescription(?string $value): void {\n $this->getBackingStore()->set('osDescription', $value);\n }", "function setDescription($description) {\n $this->checkChange();\n\n $this->description = $description;\n return $this;\n }", "function setDescriptionA($descriptionA) {\r\r\n\t\t$this->descriptionA = $descriptionA;\r\r\n\t}", "public function set_description($description)\n {\n $this->set_default_property(self::PROPERTY_DESCRIPTION, $description);\n }", "public function setDesc($val){ return $this->setField('desc',$val); }", "public function setCategoryDescription(?string $value): void {\n $this->getBackingStore()->set('categoryDescription', $value);\n }", "public function setDescription(DescriptionDescriptor $description): void;", "public function KemiSitemap_description()\n {\n echo '<p>Kemi Sitemap Description</p>';\n }", "function setDescription($locale, $description) {\n\t\t$this->localeData[$locale]['description'] = $description;\n\t}", "function setPageTitle($pageTitle)\n\t{\n\t\t$this->pageTitle = $pageTitle;\n\t}", "public function setNewDescription($value)\n {\n return $this->set('NewDescription', $value);\n }", "function setDescripcion($sdescripcion = '')\n {\n $this->sdescripcion = $sdescripcion;\n }", "public function setDescription($description)\n {\n $this->feedbackFields['description'] = $description;\n }", "public function setDescription(?string $description): void\n {\n $this->description['value'] = $description;\n }", "protected function setPageTitle() {\r\n\t\t$pageTitleText = (empty($this->settings['news']['semantic']['general']['pageTitle']['useAlternate'])) ? $this->newsItem->getTitle() : $this->newsItem->getAlternativeTitle();\r\n\t\t$pageTitleAction = $this->settings['news']['semantic']['general']['pageTitle']['action'];\r\n\r\n\t\tif (!empty($pageTitleAction)) {\r\n\t\t\tswitch ($pageTitleAction) {\r\n\t\t\t\tcase 'prepend':\r\n\t\t\t\t\t$pageTitleText .= ': ' . $GLOBALS['TSFE']->page['title'];\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'append':\r\n\t\t\t\t\t$pageTitleText = $GLOBALS['TSFE']->page['title'] . ': ' . $pageTitleText;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t}\r\n\t\t\t$this->pageTitle = html_entity_decode($pageTitleText, ENT_QUOTES, \"UTF-8\");\r\n\t\t\t$GLOBALS['TSFE']->page['title'] = $this->pageTitle;\r\n\t\t\t$GLOBALS['TSFE']->indexedDocTitle = $this->pageTitle;\r\n\t\t}\r\n\t}", "function woo_menu_description() {\n\tif ( get_option('woo_menu_desc') == \"true\" ) {\n\t\t$GLOBALS[desc] = \"true\";\n\t\techo '<style type=\"text/css\">#secnav a { line-height:16px; padding:13px 15px; }</style>' . \"\\n\";\n\t}\n}", "public function testSetGetDescription()\n {\n $this->item->setDescription('A fine javelin, suitable for throwing at retreating enemies.');\n $this->assertEquals($this->item->getDescription(), 'A fine javelin, suitable for throwing at retreating enemies.');\n }", "function setDescriptionB($descriptionB) {\r\r\n\t\t$this->descriptionB = $descriptionB;\r\r\n\t}", "public function setDescription($description) {\n\t\t$this->addChannelTag('description', $description);\n\t}", "private function readDescriptionConfig(){\r\t\tif(empty($this->langService) || $this->langService->IsDefaultSelected()){\r\t\t\tif(empty($this->langService) || $this->CI->config->item(\"zt_site_description\")){\r\t\t\t\t$description = $this->CI->config->item(\"zt_site_description\");\r\t\t\t\t$this->head->SetDescription($description);\r\t\t\t}\t\r\t\t} else {\r\t\t\tif($this->CI->config->item(\"zt_site_description_\" . $this->langService->GetLangCode())){\r\t\t\t\t$description = $this->CI->config->item(\"zt_site_description_\" . $this->langService->GetLangCode());\r\t\t\t\tif(empty($description)){\r\t\t\t\t\t$description = $this->CI->config->item(\"zt_site_description\");\t\r\t\t\t\t}\r\t\t\t\t\r\t\t\t\t$this->head->SetDescription($description);\r\t\t\t}\r\t\t}\r\n\t}", "public function setDescription(/*string*/ $description);", "public function getPageDescription()\n {\n if ($this->_pageDescription === null) {\n $action = $this->getAction();\n if (method_exists($action, 'label')) /* @var \\Restyii\\Action\\Base $action */\n $this->_pageDescription = $action->label();\n }\n return $this->_pageDescription;\n }", "public function setDescription($val)\n {\n $this->_propDict[\"description\"] = $val;\n return $this;\n }", "public function setDescription($val)\n {\n $this->_propDict[\"description\"] = $val;\n return $this;\n }", "public function setDescription($val)\n {\n $this->_propDict[\"description\"] = $val;\n return $this;\n }" ]
[ "0.73607045", "0.7340605", "0.733745", "0.71801484", "0.7162514", "0.7105265", "0.69596016", "0.6832081", "0.676383", "0.6745884", "0.67338234", "0.6675333", "0.6656014", "0.6656014", "0.66074985", "0.65842855", "0.6569542", "0.6543173", "0.65217435", "0.6484166", "0.6455056", "0.64489645", "0.6425461", "0.6419159", "0.6417527", "0.6396245", "0.639359", "0.6383172", "0.6380436", "0.63714886", "0.6370135", "0.63444227", "0.63425744", "0.63353467", "0.6321081", "0.6321081", "0.6321081", "0.6321081", "0.6321081", "0.6321081", "0.6321081", "0.6321081", "0.6318998", "0.6318998", "0.6318998", "0.6318998", "0.6318998", "0.6318998", "0.6318998", "0.6318998", "0.6318998", "0.6318998", "0.6318998", "0.6318998", "0.6318998", "0.6297255", "0.6290769", "0.6255256", "0.6236023", "0.62078667", "0.62078667", "0.62078667", "0.62078667", "0.62078667", "0.62078667", "0.62032926", "0.61577845", "0.60962874", "0.6059305", "0.6038681", "0.60368305", "0.60151726", "0.6008093", "0.600096", "0.5992641", "0.5986702", "0.5944676", "0.59356207", "0.592787", "0.5922771", "0.58672476", "0.58508754", "0.5837468", "0.5833489", "0.5814881", "0.5797079", "0.5787985", "0.5779142", "0.57791233", "0.57741946", "0.5770714", "0.57612526", "0.5760289", "0.5755411", "0.57435626", "0.5739798", "0.5732493", "0.57288694", "0.57288694", "0.57288694" ]
0.58484894
82
Gets the page template
public function getTemplate();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getTemplatePage()\n {\n return self::$templatePage;\n }", "public function getTemplate() {}", "protected function getPageTemplate()\n {\n return new Template();\n }", "function get_template()\n {\n }", "abstract public function getTemplate();", "public function get_template()\n {\n }", "public function get_template()\n {\n }", "function getTemplate();", "function get_template_of_page($pageid=null)\n{\n\tif ($pageid===null)\n\t{\n\t\tglobal $post;\n\t\t$pageid = $post->ID;\n\t}\n\treturn get_post_meta($pageid, '_wp_page_template', true);\n}", "function get_paged_template()\n {\n }", "public static function getTemplate() {\n $settings = self::getSettings();\n \n return $settings->template;\n }", "public function getTemplate(){\n\t\treturn $this->template;\n\t}", "public function get_template() {\n return $this->_template;\n }", "public function getTemplate () {\r\n\t\treturn $this->_template;\r\n\t}", "public function getTemplate()\n {\n return $this->template;\n }", "public function getTemplate()\n {\n return $this->template;\n }", "public function getTemplate()\n {\n return $this->template;\n }", "public function getTemplate()\n {\n return $this->template;\n }", "public function getTemplate()\n {\n return $this->template;\n }", "public function getTemplate()\n {\n return $this->template;\n }", "public function getTemplate()\n {\n return $this->template;\n }", "public function getTemplate()\n {\n return $this->template;\n }", "public function getTemplate()\n {\n return $this->template;\n }", "public function getTemplate()\n {\n return $this->template;\n }", "public function getTemplate()\n {\n return $this->template;\n }", "public function getTemplate()\n {\n return $this->template;\n }", "public function getTemplate()\n {\n return $this->template;\n }", "protected function getDocumentTemplate() {}", "protected function getDocumentTemplate() {}", "protected function getDocumentTemplate() {}", "protected function getDocumentTemplate() {}", "protected function getDocumentTemplate() {}", "protected function getDocumentTemplate() {}", "protected function getDocumentTemplate() {}", "protected function getDocumentTemplate() {}", "protected function getDocumentTemplate() {}", "function getTemplate()\r\n\t{\r\n\t\tglobal $config;\r\n\t\tglobal $section;\r\n\t\t\r\n\t\t$style = $_REQUEST[\"_style\"];\r\n\t\t$site = $this->Site();\r\n\t\tif(!$site) Site::getSite();\r\n\t\t\r\n\t\t$templateFile = \"\";\r\n\t\t\r\n\t\tswitch($style)\r\n\t\t{\r\n\t\tcase 'print':\r\n\t\t\t$templateFile = $site->print_template;\r\n\t\t\tbreak;\r\n\r\n\t\tcase 'popup':\r\n\t\t\t$templateFile = $site->popup_template;\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase 'mobile':\r\n\t\t\t$templateFile = $site->mobile_template;\r\n\t\t\t\r\n\t\tcase 'nude':\r\n\t\t\treturn \"{description}\";\r\n\t\t}\r\n\r\n\t\tif ($section)\r\n\t\t{\r\n\t\t\tif (!$templateFile) $templateFile = $section->getTemplateFile($this->identifier);\r\n\t\t}\r\n\t\t\t\t\r\n\t\tif (!$templateFile) $templateFile = $this->template;\r\n\t\tif (!$templateFile) $templateFile = $site->default_template;\r\n\t\t\r\n\t\t$templateFile = ComponentManager::fireEvent(\"OverrideTemplate\", $templateFile);\r\n\t\t\r\n\t\t$template = file_get_contents(\"{$config['homedir']}/templates/{$templateFile}\");\r\n\r\n\t\treturn $template;\r\n\t}", "public function getTemplate()\n\t{\n\t\treturn $this->template;\n\t}", "public function getTemplate()\n\t{\n\t\treturn $this->template;\n\t}", "public function getTemplate(){\n\t\treturn $this->CustomTemplate ? $this->CustomTemplate : $this->config()->get('default_template');\n\t}", "public function getTemplate() {\n return $this->template;\n }", "function getPageTemplate($post_ID) { \n return get_post_meta( $post_ID, '_wp_page_template', true ); \n }", "private function getTemplateForPage($page)\n {\n return (view()->exists($page->template)) ? $page->template : 'default';\n }", "public function getTemplate() {\n\t\t\treturn $this->template;\n\t\t}", "public function getTemplate()\r\n {\r\n return $this->_customTemplate;\r\n }", "public function getTemplate() {\r\n return $this->_template;\r\n }", "public function template() {\n\n // check for a cached template name\n if(isset($this->cache['template'])) return $this->cache['template'];\n\n // get the template name\n $templateName = $this->intendedTemplate();\n\n if($this->kirby->registry->get('template', $templateName)) {\n return $this->cache['template'] = $templateName; \n } else {\n return $this->cache['template'] = 'default';\n }\n\n }", "public function page( $template )\n {\n // Get the current post ID\n $post_id = get_the_ID();\n\n // Get the current post slug\n $slug = get_page_uri($post_id);\n\n // Check pages directory for page\n if( $found = locate_template('templates/page/' . $slug . '.php') )\n {\n return $found;\n }\n\n // Check for generic page template\n if( $found = locate_template('templates/page.php') )\n {\n return $found;\n }\n\n // Use wp default location\n return $template;\n\n }", "public function getTemplate()\n\t{\n\t\treturn $this->_template;\n\t}", "public function returnTemplate() {\n\t\treturn $this->template;\n\t}", "public function getTemplate(): string;", "public function getTemplate(): string;", "public function getTemplate(): string;", "public function getTemplate(): string;", "function getTemplate(){\n\t\treturn $this->html_result;\n\t}", "function getTemplate( $page ) \n {\n $contents = '';\n \n $fileName = $page->getBLTemplateName();\n \n $pathToTemplates = $this->values[ ModuleCreator::KEY_PATH_RAD_ROOT ];\n $pathToTemplates .= 'data/'.ModuleCreator::PATH_OBJECT_BL;\n \n $contents = file_get_contents( $pathToTemplates.$fileName );\n \n return $contents;\n }", "public function getContentPageTpl()\n {\n $aTemplate = array();\n $sContentId = $this->getContent()->oxcontents__oxloadid->value;\n $myConfig = $this->getConfig();\n if ($sContentId == $myConfig->getConfigParam('sRDFaBusinessEntityLoc')) {\n $aTemplate[] = $this->_sBusinessTemplate;\n }\n if ($sContentId == $myConfig->getConfigParam('sRDFaDeliveryChargeSpecLoc')) {\n $aTemplate[] = $this->_sDeliveryTemplate;\n }\n if ($sContentId == $myConfig->getConfigParam('sRDFaPaymentChargeSpecLoc')) {\n $aTemplate[] = $this->_sPaymentTemplate;\n }\n\n return $aTemplate;\n }", "public function getHtmlTemplate() {}", "final public function getTemplate() {\n\t\treturn '';\n\t}", "public function getTemplate() \n {\n return $_SESSION['template'];\n \n }", "protected function template()\n\t{\n\t\treturn Phpfox::getLib('template');\t\n\t}", "protected function _setPageViewTemplate()\n {\n\n $fishpigWordpressModuleVersion = Mage::getConfig()->getNode('modules/Fishpig_Wordpress/version');\n\n if ($fishpigWordpressModuleVersion > 4) {\n parent::_setPageViewTemplate();\n } else {\n $page = $this->_initPage();\n\n $template = $page->getMetaValue('_wp_page_template');\n\n // This is the folder in Magento template\n $path = 'page/';\n\n //preg_match('/([^\\/]*)\\.php$/', $template, $match);\n //$filename = $path . $match[1] . '.phtml';\n // The extension is replaced with .phtml,\n // meaning that the directory structure is preserved.\n // (page-templates/templ.php will become $path . page-templates/templ.phtml)\n $filename = $path . str_replace('.php', '.phtml', $template);\n\n // This is to use Magento fallback system\n $params = array('_relative' => false);\n $area = $this->getLayout()->getBlock('root')->getArea();\n\n if ($area) {\n $params['_area'] = $area;\n }\n\n $templateName = Mage::getDesign()->getTemplateFilename($filename, $params);\n\n // If no other matches are found, Magento will eventually give a path in base/default, even if that template doesn't exist\n if (file_exists($templateName)) {\n $this->getLayout()->getBlock('root')->setTemplate($filename);\n }\n\n return $this;\n }\n }", "protected function get_template() {\n\t\treturn 'post';\n\t}", "public function getTemplateAttribute(): string\n {\n return $this->meta->_wp_page_template ?: '';\n ;\n }", "function get_clientpage_template( $template ) {\r\n global $post;\r\n\r\n/*\r\n\r\n if ( 'clientspage' == $post->post_type ) {\r\n $wpc_settings = get_option( 'wpc_settings' );\r\n if ( isset( $wpc_settings['pages']['portal_page_id'] ) && 0 < $wpc_settings['pages']['portal_page_id'] ) {\r\n $page_template = get_post_meta( $wpc_settings['pages']['portal_page_id'], '_wp_page_template', true );\r\n if ( $page_template ) {\r\n if ( file_exists( get_template_directory() . \"/{$page_template}\" ) )\r\n return get_template_directory() . \"/{$page_template}\";\r\n else\r\n return '';\r\n }\r\n } __use_same_as_portal_page\r\n } else */\r\n\r\n\r\n\r\n if ( 'clientspage' == $post->post_type ) {\r\n $page_template = get_post_meta( $post->ID, '_wp_page_template', true );\r\n\r\n if ( !$page_template || '__use_same_as_portal_page' == $page_template ) {\r\n $wpc_settings = get_option( 'wpc_settings' );\r\n if ( isset( $wpc_settings['pages']['portal_page_id'] ) && 0 < $wpc_settings['pages']['portal_page_id'] ) {\r\n $page_template = get_post_meta( $wpc_settings['pages']['portal_page_id'], '_wp_page_template', true );\r\n if ( $page_template ) {\r\n if ( file_exists( get_template_directory() . \"/{$page_template}\" ) )\r\n return get_template_directory() . \"/{$page_template}\";\r\n }\r\n }\r\n return '';\r\n } else {\r\n if ( file_exists( get_template_directory() . \"/{$page_template}\" ) )\r\n return get_template_directory() . \"/{$page_template}\";\r\n else\r\n return '';\r\n }\r\n }\r\n elseif ( 'hubpage' == $post->post_type ) {\r\n $wpc_settings = get_option( 'wpc_settings' );\r\n if ( isset( $wpc_settings['pages']['hub_page_id'] ) && 0 < $wpc_settings['pages']['hub_page_id'] ) {\r\n $page_template = get_post_meta( $wpc_settings['pages']['hub_page_id'], '_wp_page_template', true );\r\n if ( $page_template ) {\r\n if ( file_exists( get_template_directory() . \"/{$page_template}\" ) )\r\n return get_template_directory() . \"/{$page_template}\";\r\n else\r\n return '';\r\n }\r\n }\r\n }\r\n\r\n return $template;\r\n }", "private function getTemplate(): string\n {\n $sTemplate = $this->getViewPath() . static::TEMPLATE . static::TEMPLATE_EXT;\n if (!is_file($sTemplate)) {\n $sTemplate = $this->getViewRootDirectory();\n $sTemplate .= $this->getCurrentClassName() . DIRECTORY_SEPARATOR;\n $sTemplate .= static::TEMPLATE . static::TEMPLATE_EXT;\n if (!is_file($sTemplate)) {\n $sTemplate = $this->getViewRootDirectory();\n $sTemplate .= static::TEMPLATE . static::TEMPLATE_EXT;\n }\n }\n\n return $sTemplate;\n }", "protected function GetTemplate()\n\t{\n\t\treturn 'heads.tpl';\n\t}", "public function getTemplateFile();", "public function getTemplate()\n {\n return isset($this->parseTemplate)?$this->parseTemplate:false;\n }", "public function getTemplate()\n {\n\n if ( ! $this->template) {\n $this->setDefaultTemplate();\n }\n\n if (is_string($this->template)) {\n $this->template = $this->createTemplate($this->template);\n }\n\n return $this->template;\n }", "public function template() {\n\t\tif( !$this->template ) {\n\t\t\t$this->template = new Template( $this->template_id );\n\t\t}//end if\n\t\treturn $this->template;\n\t}", "abstract public function getTemplateFile();", "public function get_default_template() {\n\t\t\t$file = file_get_contents( dirname( __FILE__ ).'/assets/template.html' );\n\t\t\treturn $file;\n\t\t}", "public function getGathercontentTemplate();", "public function view_course_template( $template ) {\n\t\t// Return the search template if we're searching (instead of the template for the first result)\n\t\tif ( is_search() ) {\n\t\t\treturn $template;\n\t\t}\n\t\t\n\t\t// Get global post\n\t\tglobal $post;\n\t\t// Return template if post is empty\n\t\tif ( ! $post ) {\n\t\t\treturn $template;\n\t\t}\n\t\t// Return default template if we don't have a custom one defined\n\t\tif ( ! isset( $this->templates[get_post_meta( \n\t\t\t$post->ID, '_wp_page_template', true \n\t\t)] ) ) {\n\t\t\treturn $template;\n\t\t} \n\t\t$file = plugin_dir_path( __FILE__ ). 'page-templates/' . get_post_meta( \n\t\t\t$post->ID, '_wp_page_template', true\n\t\t);\n\t\t// Just to be safe, we check if the file exist first\n\t\tif ( file_exists( $file ) ) {\n\t\t\treturn $file;\n\t\t} else {\n\t\t\techo $file;\n\t\t}\n\t\t// Return template\n\t\treturn $template;\n\t}", "function bethel_custom_template() {\n global $post;\n if (is_page() && isset($post) && is_object($post)) {\n $post->page_template = get_post_meta( $post->ID, '_wp_page_template', true );\n }\n}", "function getHTML() \n {\n \n // Make a new Template object\n $this->template = new Template( $this->pathModuleRoot.'templates/' );\n \n // store the link info\n $this->template->set( 'links', $this->links );\n\n \n // store the page labels\n $name = $this->dataManager->getModuleName();\n $this->labels->setLabelTag( '[Title]', '[moduleName]', $name);\n $this->template->setXML( 'pageLabels', $this->labels->getLabelXML() );\n \n // store XML List of Applicants ...\n $this->template->setXML( 'dataList', $this->dataManager->getXML() );\n \n\n /*\n * Set up any additional data transfer to the Template here...\n */\n // store XML list of State Vars\n $this->template->setXML( 'stateVarList', $this->listStateVar->getXML() );\n \n // store XML list of Data Access Objects\n $this->template->setXML( 'daObjectList', $this->listDAObjects->getXML() );\n \n // store XML list of Page Objects\n $this->template->setXML( 'pageList', $this->listPageObjects->getXML() );\n \n // store XML list of Page Transitions\n $this->template->setXML( 'transitionList', $this->listTransitions->getXML() );\n \n // now store an array of Page Names so the transitions can list \n // the names of the Pages Objects ...\n $pageNames = array();\n $this->listPageObjects->setFirst();\n while ( $page = $this->listPageObjects->getNext() ) {\n $pageNames[ $page->getID() ] = $page->getName();\n }\n $this->template->set( 'pageNames', $pageNames );\n \n\t\treturn $this->template->fetch( 'page_ViewModule.php' );\n \n }", "public function view_project_template( $template ) {\n\n global $post;\n\n if ( !isset( $post ) ) return $template;\n\n if ( ! isset( $this->templates[ get_post_meta( $post->ID, '_wp_page_template', true ) ] ) ) {\n return $template;\n } // end if\n\n $template_loader = new Uou_Atmf_Load_Template();\n\n if( is_page_template( 'atmf-search.php' ) ){\n $file = $template_loader->locate_template( 'atmf-search.php' );\n }\n\n\n // $file = plugin_dir_path( __FILE__ ) . 'templates/' . get_post_meta( $post->ID, '_wp_page_template', true );\n\n if( file_exists( $file ) ) {\n return $file;\n } // end if\n\n return $template;\n\n }", "public function actionGetTemplate(){\n $post = Yii::$app->getRequest()->post();\n echo file_get_contents(dirname(\\Yii::getAlias('@webroot')).'/frontend/views/templates/'.$post['template']);\n }", "function templates_example()\n{\n /* Get post object by its template */\n $post = \\ActiTemplate\\Template::getTemplatePageObject('page-contact.php');\n\n /* Get post ID by its template */\n $postID = \\ActiTemplate\\Template::getTemplatePageId('page-contact.php');\n\n /* Get post url by its template */\n $url = \\ActiTemplate\\Template::getTemplatePageUrl('page-contact.php');\n}", "private function _getCurrentTemplateContent() {\n $page = Application_Model_Mappers_PageMapper::getInstance()->find($this->_toasterData['id']);\n $tempate = Application_Model_Mappers_TemplateMapper::getInstance()->find($page->getTemplateId());\n if(!$tempate instanceof Application_Model_Models_Template) {\n return false;\n }\n return $tempate->getContent();\n }", "function f_get_template(){\n /// you need get info config in setting then insert here. the present it default\n $host = $this->host;\n $slugs = $this->slugs;\n $key = $this->key;\n $ajax_url = $this->ajax_url;\n $elementor = $this->elementor;\n/// get slug from url and remove element empty\n $slug = array_filter( explode('/', $_SERVER['REQUEST_URI']) );\n // check exist in slugs config\n if( isset( $slugs[$slug[1]] )){\n $template_api = $slugs[$slug[1]];\n $template_api['action'] = 'action_slug_api';\n $template_api['key'] = $key;\n $template_api['ajax_url'] = $ajax_url;\n $template_api['elementor'] = $elementor;\n $template_api['name'] = $slug[1];\n // check type template list or template single\n if($template_api['slug']){\n $template_api['url'] = $host.$template_api['url'].$slug[2];\n }else{\n $template_api['url'] = $host.$template_api['url'];\n }\n $this->do_template($template_api);\n\n }\n }", "public function template()\n {\n if ($this->template === null) {\n return 'charcoal/app/handler/layout';\n }\n\n return $this->template;\n }", "public function getTemplate($context = null);", "function oneviewer_page_template( $template ) {\n if ( is_page('viewer') ) {\n $newtemplate = dirname( __FILE__ ) . '/templates/page-one-viewer.php';\n return $newtemplate ;\n }\n return $template;\n\n}", "public function get_page_template($post_id){\n\t\t$value = 'page_template';\n\n\t\t$query = $this->db->prepare(\"SELECT * FROM `nw_postmeta` WHERE `post_id` = ? AND `meta_key`= ? \");\n\t\t$query-> bindValue(1, $post_id);\n\t\t$query-> bindValue(2, $value);\n\n\t\ttry{\n\t\t\t$query->execute();\n\t\t\t$data = $query->fetch();\n\n\t\t\treturn $data;\n\t\t}catch(PDOException $e){\n\t\t\tdie($e ->getMessage());\n\t\t}\n\t}", "public function get_main_template() {\n\n\t\t\treturn $this->main_template;\n\n\t\t}", "public function render() {\n\t\treturn $this->template( 'page' );\n\t}", "public function getContent()\r\n {\r\n return $this->template;\r\n }", "protected function content_template() {}", "protected function content_template() {}", "function get_page_templates($post = \\null, $post_type = 'page')\n {\n }", "public function getPageTemplate($name)\n {\n if(array_key_exists($name, $this->pages)) {\n return $this->templates[$this->pages[$name]];\n }\n }", "public function findTemplate() {\n\n\t\t$templatePath = $this->_template;\n\n\t\tif (empty($templatePath)) {\n\n\t\t\t$templateFolders = array();\n\n\t\t\tif (strlen($tmp = $this->_Model->templatePath)) {\n\t\t\t\t$templateFolders[] = \\Finder::joinPath(APP_ROOT, $tmp);\n\t\t\t}\n\t\t\t// bubble up for template path\n\t\t\telseif (strlen($tmp = $this->_Model->getBubbler()->templatePath)) {\n\t\t\t\t$templateFolders[] = \\Finder::joinPath(APP_ROOT, $tmp);\n\t\t\t}\n\t\t\t// I should add the root page model's template path if exists\n\t\t\t$templateFolders[] = NINJA_ROOT . '/src/ninja/Mod/' . $this->_Module->getModName() . '/template';\n\n\t\t\t$templateFolders = array_unique($templateFolders);\n\n\t\t\t$templateNames = array();\n\t\t\t// I respect what's set in the model, and it should not be invalid\n\t\t\tif (strlen($templateName = $this->_Model->template)) {\n\t\t\t\t$templateNames[]= $templateName;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$Module = $this->_Module;\n\t\t\t\t$modName = $Module->getModName();\n\n\t\t\t\t$a = $Module::moduleNameByClassname(get_class($this->_Model));\n\t\t\t\t$templateNames[] = \\Finder::joinPath($modName, \\Finder::classToPath($a));\n\t\t\t\t$b = $Module::moduleNameByClassname(get_class($this->_Module));\n\t\t\t\t$templateNames[] = \\Finder::joinPath($modName, \\Finder::classToPath($b));\n\t\t\t}\n\n\t\t\t$extension = '.html.mustache';\n\n\t\t\t// for debug\n\t\t\t//echop($templateFolders); echop($templateNames); die;\n\n\t\t\t$templatePath = \\Finder::fileByFolders($templateFolders, $templateNames, $extension);\n\n\t\t}\n\n\t\treturn $templatePath;\n\n\t}", "public function intendedTemplate() {\n if(isset($this->cache['intendedTemplate'])) return $this->cache['intendedTemplate'];\n return $this->cache['intendedTemplate'] = $this->content()->exists() ? $this->content()->name() : 'default';\n }" ]
[ "0.8253101", "0.7963465", "0.7957704", "0.78039616", "0.7770169", "0.77420676", "0.77415496", "0.77401656", "0.75434214", "0.74846995", "0.74378026", "0.73526937", "0.7337524", "0.73235005", "0.7319462", "0.7319462", "0.7319462", "0.7319462", "0.7319462", "0.7319462", "0.7319462", "0.7319462", "0.7319462", "0.7319462", "0.7319462", "0.7319462", "0.7319462", "0.7312922", "0.7312922", "0.7312922", "0.7312922", "0.7312769", "0.7312769", "0.7312371", "0.73106354", "0.73106354", "0.72850454", "0.7267093", "0.7267093", "0.7262129", "0.7249059", "0.7247258", "0.72141606", "0.72064996", "0.72012603", "0.72003657", "0.7165561", "0.716128", "0.7148906", "0.71383506", "0.7133186", "0.7133186", "0.7133186", "0.7133186", "0.7119414", "0.71166545", "0.71050674", "0.7100217", "0.70205957", "0.6982554", "0.69734997", "0.69382316", "0.6879334", "0.687419", "0.68614256", "0.6822098", "0.6807988", "0.68045086", "0.6796564", "0.6772826", "0.6766965", "0.6746343", "0.6736297", "0.6730811", "0.6718691", "0.6701337", "0.66908324", "0.66724664", "0.66665107", "0.66586834", "0.6649644", "0.66466135", "0.6645167", "0.6634762", "0.6630764", "0.66260684", "0.6625733", "0.6612634", "0.66108644", "0.66086465", "0.66086465", "0.6599131", "0.65929776", "0.6588325", "0.6583891" ]
0.78896195
8
Sets the current page template
public function setTemplate($value);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function switch_page_template() {\n\n global $post;\n\n $post_type = get_post_type($post->ID);\n\n if (is_page() or is_post_type_hierarchical($post_type)) {// Checks if current post type is a page, rather than a post\n $current_page_template = get_post_meta($post->ID, '_wp_page_template', true);\n $parent_page_template = get_post_meta($post->post_parent, '_wp_page_template', true);\n $parents = get_post_ancestors($post->ID);\n\n if ($parents) {\n update_post_meta($post->ID, '_wp_page_template', $parent_page_template, $current_page_template);\n }\n }// End check for page\n }", "protected function setPageTemplate($template)\r\n {\r\n $this->pageTemplate = $template;\r\n }", "private function setTemplate(){\n if (isset($this->data['template']) && !empty($this->data['template'])){\n $template = APP_ROOT.'/app/templates/'.trim($this->data['template']).'.tpl';\n if (file_exists($template)){\n $this->template = $template;\n return;\n }\n }\n //default\n $this->template = APP_ROOT.'/app/templates/default.tpl';\n }", "public function setTemplate($template)\n\t{\n\t\t$this->template = $template;\n\t\t$this->pageInitialized = false;\n\t}", "public static function setTemplate(PageTemplate $template) {\n\t\tself::getInstance()->setPageTemplate($template);\n\t}", "protected function _setPageViewTemplate()\n {\n\n $fishpigWordpressModuleVersion = Mage::getConfig()->getNode('modules/Fishpig_Wordpress/version');\n\n if ($fishpigWordpressModuleVersion > 4) {\n parent::_setPageViewTemplate();\n } else {\n $page = $this->_initPage();\n\n $template = $page->getMetaValue('_wp_page_template');\n\n // This is the folder in Magento template\n $path = 'page/';\n\n //preg_match('/([^\\/]*)\\.php$/', $template, $match);\n //$filename = $path . $match[1] . '.phtml';\n // The extension is replaced with .phtml,\n // meaning that the directory structure is preserved.\n // (page-templates/templ.php will become $path . page-templates/templ.phtml)\n $filename = $path . str_replace('.php', '.phtml', $template);\n\n // This is to use Magento fallback system\n $params = array('_relative' => false);\n $area = $this->getLayout()->getBlock('root')->getArea();\n\n if ($area) {\n $params['_area'] = $area;\n }\n\n $templateName = Mage::getDesign()->getTemplateFilename($filename, $params);\n\n // If no other matches are found, Magento will eventually give a path in base/default, even if that template doesn't exist\n if (file_exists($templateName)) {\n $this->getLayout()->getBlock('root')->setTemplate($filename);\n }\n\n return $this;\n }\n }", "function setTemplate($template);", "public function setTemplate( $template )\n\t{\n\t\t// Search for the template layout.\n\t\tif ( 'MAIN' == $this->context_name )\n\t\t{\n\t\t\t$found\t= false;\n\t\t\t$path\t= dirname( $template );\n\n\n\t\t\tfor ( $i = 0; !$found && $i < 3; $i++ )\n\t\t\t{\n\t\t\t\tif ( file_exists( TEMPLATE_PATH . $path . '/layout' . TEMPLATE_EXTENSION ) )\n\t\t\t\t{\n\t\t\t\t\t$found = true;\n\t\t\t\t\t$path = $path . '/layout' . TEMPLATE_EXTENSION;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$path\t= dirname( $path );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( $found )\n\t\t\t{\n\t\t\t\t$this->layout\t= $this->twig->loadTemplate( $path );\n\t\t\t}\n\t\t}\n\t\t$this->current_context['template'] = $this->twig->loadTemplate( $template );\n\t}", "public function setTemplate($template) {\n \n\n \t$this->display($template);\n }", "function setTemplate($value) {\n $this->template = $value;\n }", "protected function setPageTemplate(PageTemplate $template) {\n\t\t$container = $template->initialize($this);\n\t\tif ($container !== null) {\n\t\t\t$this->_body = $container;\n\t\t}\n\t}", "public function setTemplate($template = '')\n {\n $this->template = ROOT . DS . $this->configuration->get('app.name') . DS . 'view' . DS . $this->action . DS . $template . '.phtml';\n }", "function qa_set_template($template)\n{\n\tglobal $qa_template;\n\t$qa_template = $template;\n}", "public static function use_parent_template() {\n add_action('save_post', array('core_admin', 'switch_page_template'));\n }", "protected function _setTemplateMeta(){\n $this->template->project_name = $this->config['project']['name'] ;\n $this->template->title = $this->config['view']['title'] ;\n $this->template->keywords = $this->config['view']['keywords'];\n $this->template->description = $this->config['view']['description'];\n }", "function setupTemplate() {\r\n\t\tparent::setupTemplate();\r\n\t\tLocale::requireComponents(array(LOCALE_COMPONENT_PKP_SUBMISSION, LOCALE_COMPONENT_OJS_EDITOR, LOCALE_COMPONENT_PKP_MANAGER, LOCALE_COMPONENT_OJS_AUTHOR, LOCALE_COMPONENT_OJS_MANAGER));\r\n\t\t$templateMgr =& TemplateManager::getManager();\r\n\t\t$isEditor = Validation::isEditor();\r\n\t\t\r\n\t\tif (Request::getRequestedPage() == 'editor') {\r\n\t\t\t$templateMgr->assign('helpTopicId', 'editorial.editorsRole');\r\n\t\t\r\n\t\t} else {\r\n\t\t\t$templateMgr->assign('helpTopicId', 'editorial.sectionEditorsRole');\r\n\t\t}\r\n\t\t\r\n\t\t$roleSymbolic = $isEditor ? 'editor' : 'sectionEditor';\r\n\t\t$roleKey = $isEditor ? 'user.role.coordinator' : 'user.role.sectionEditor';\r\n\t\t$pageHierarchy = array(array(Request::url(null, 'user'), 'navigation.user'), array(Request::url(null, 'user'), $roleKey), array(Request::url(null, $roleSymbolic, 'submissionsReport'), 'editor.reports.reportGenerator'));\r\n\t\t\r\n\t\t$templateMgr->assign('pageHierarchy', $pageHierarchy);\r\n\t}", "private function configureTemplate(){\n\t\t$template = $this->getTemplate();\n\t\t$template->setPageSubtitle($this->getModule()->getDisplayedName());\n\t}", "public function setTemplate($path)\n {\n $this->templatePages = $this->setSourceFile($path);\n }", "function set_template($template_name) {\n\t\t$this->template = $template_name;\n\t}", "function setTemplate($template) {\n $this->template = $template;\n }", "public function setTemplate($tpl_name){\n \tif($this->isAllowedToChangeTemplate()){\n \t\t$this->template = $tpl_name;\n \t\t$this->baseReplaces['tpl_folder'] = $this->getTemplateDir();\n \t\t$GLOBALS['tpl']['activeTemplate'] = $tpl_name;\n \t}\n }", "public function setView($template);", "protected function setDefaultTemplate()\n {\n $defaultTemplate = $this->config->getKey('default_template');\n $this->setTemplate($defaultTemplate);\n }", "public function setTemplate($template);", "public function setTemplate($template);", "function _setTemplate($template = null) {\n if (empty($template)) {\n $backtrace = debug_backtrace();\n if (empty($backtrace[1]['function'])) {\n return $this->template = null;\n }\n $parent = $backtrace[1]['function'];\n $method = '';\n if ($parent == '__call') {\n $method = str_replace('send', '', $backtrace[2]['function']);\n } else {\n $method = $backtrace[1]['function'];\n }\n $template = Inflector::underscore($method);\n }\n $this->template = sprintf('%s%s%s',\n $this->_templateFolder(),\n DS,\n $template\n );\n }", "public function setTemplate($p);", "function bethel_custom_template() {\n global $post;\n if (is_page() && isset($post) && is_object($post)) {\n $post->page_template = get_post_meta( $post->ID, '_wp_page_template', true );\n }\n}", "public static function getTemplatePage()\n {\n return self::$templatePage;\n }", "public function setTemplate(string $template);", "protected function content_template() {}", "protected function content_template() {}", "protected function content_template() {\n\t}", "public function setTemplate($template)\n {\n // store instance of template\n\t\t$this->_template = $template;\n }", "protected function setTemplateVariables() {}", "protected function content_template()\n {\n }", "protected function content_template()\n {\n }", "protected function content_template()\n {\n }", "protected function content_template()\n {\n }", "protected function content_template()\n {\n }", "protected function content_template()\n {\n }", "protected function content_template()\n\t{\n\t\t//\n\t}", "function template($template=\"simple\"){\n\n\t\t// THE PHYSICAL TEMPLATE SHOULD BE IN THE RESPECTIVE \n\t\t// TEMPLATE/TYPE/$template.php\n\t\t$this->template = $template;\n\t}", "protected function setupTemplate() {\r\n \r\n }", "function set_template( $template_file = 'template.php' )\n {\n // make sure that $template_file has .php extension\n $template_file = substr( $template_file, -4 ) == '.php' ? $template_file : ( $template_file . \".php\" );\n\n $this->template = \"../../{$this->settings->root_folder}/themes/{$this->settings->theme}/{$template_file}\";\n }", "public static function setTemplate($template)\n {\n self::$template = $template;\n }", "public function page_templates()\n {\n // Single Chiro Quiz page template\n if (is_single() && get_post_type() == $this->token) {\n if (!defined('PLATFORM_FUNNEL')) {\n define('PLATFORM_FUNNEL', 'CHIRO_QUIZ');\n }\n\n include($this->template_path . 'single-quiz.php');\n exit;\n }\n }", "public function setTemplate($template)\n {\n if(is_array($template)){\n $this->current_template = $this->igt_template;\n $this->setValue($template);\n }\n\n }", "public function Setup_Templates_List() : void\n {\n $this->Templates = apply_filters(\"WP_Plugin_virtual_pages_templates\",[\n ...array('page.php', 'index.php' ), ...(array) $this->Template]);\n }", "protected function _content_template() {\n\t}", "function Template()\r\n\t{\t\t\r\n\t\tglobal $_REQUEST;\t\t\r\n\t\t$theme = $this->theme;\r\n\t\t/*** Get Template By Page Id ***/\r\n\t\t$file = $this->get_template();\r\n\t\t\r\n\t\tif($_SETTINGS['debug'] == 1){\r\n\t\t\techo \"TEMPLATE: \".$file.\" <Br>\";\r\n\t\t}\r\n\t\t\r\n\t\t$websitepath = $this->website_path;\r\n\t\t//die(\"FILE: $file\");\r\n\t\t//exit();\r\n\t\tinclude''.$_SERVER['DOCUMENT_ROOT'].$websitepath.'themes/'.$theme.''.$file.'';\r\n\t}", "public function setTemplate()\n {\n $root = &XCube_Root::getSingleton();\n $language = $root->mContext->getXoopsConfig('language');\n $this->mMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/user/language/' . $language . '/mail_template/');\n $this->mMailer->setTemplate('register.tpl');\n }", "function oneviewer_page_template( $template ) {\n if ( is_page('viewer') ) {\n $newtemplate = dirname( __FILE__ ) . '/templates/page-one-viewer.php';\n return $newtemplate ;\n }\n return $template;\n\n}", "public function currentPage()\n {\n $this->get('/view/{template}', function(Request $request, Response $response, array $args) {\n $template = $args['template'] . '.twig';\n $data = $this->basePath . '/src/data/' . $args['template'] . '.php';\n $data = (file_exists($data)) ? require $data : [];\n\n return $this->view->render($response, $template, $data);\n })->setName('templates.view');\n\n $this->get('/data/{template}', function(Request $request, Response $response, array $args) {\n $data = $this->basePath . '/src/data/' . $args['template'] . '.php';\n $data = (file_exists($data)) ? require $data : [];\n\n return $response->withJson($data);\n })->setName('templates.data');\n\n return $this;\n }", "private function initializeTemplate() {\n\t\t$this->doc = t3lib_div::makeInstance('bigDoc');\n\t\t$this->doc->backPath = $GLOBALS['BACK_PATH'];\n\t\t$this->doc->docType = 'xhtml_strict';\n\t\t$this->doc->styleSheetFile2\n\t\t\t= '../typo3conf/ext/realty/BackEnd/BackEnd.css';\n\n\t\t$this->template\n\t\t\t= tx_oelib_TemplateRegistry::getInstance()->getByFileName(\n\t\t\t\t'EXT:realty/BackEnd/mod_template.html'\n\t\t);\n\t}", "abstract protected function setTemplate($item);", "public static function setUpSiteTemplate($template){\n \t//get fontController and then get plugin instance\n \t$front = Zend_Controller_Front::getInstance();\n\t\t$st = $front->getPlugin('Hotspot_Plugin_ViewSetup');\n\t\t//set template number\n\t\t$st->setRenderLayout($template);\n }", "function StoreCurrentPage($template_name) {\r\n\t\tglobal $gameinstance, $sr;\r\n\t\t// basename ensures we store only the file & arguments - not all the directory information\r\n\t\t$thisuri = basename($_SERVER['REQUEST_URI']);\r\n\t\t$tpl_vars = $sr->get_template_vars();\r\n\t\t// we set the array character value of curr_template_vars to \"\" - otherwise the data just grows exponentially!\r\n\t\t$tpl_vars['character']['curr_template_vars'] = \"\";\r\n\t\t$serialized_vars = addslashes(serialize($tpl_vars));\r\n\t\t$serialized_nav = addslashes(serialize($_SESSION['allowed_navs']));\r\n\t\t$_SESSION['allowed_navs'] = array(); // once stored empty the nav list in the session\r\n\t\tdbn(__FILE__,__LINE__,\"update ${gameinstance}_characters set curr_request_uri = '$thisuri', curr_template_page = '$template_name', curr_template_vars = '$serialized_vars', curr_allowed_navs = '$serialized_nav' where login_id = $_SESSION[login_id]\");\r\n\t}", "public function content_template()\n {\n }", "public function content_template()\n {\n }", "public function content_template()\n {\n }", "public function content_template()\n {\n }", "public function content_template()\n {\n }", "public function content_template()\n {\n }", "public function content_template()\n {\n }", "public function content_template()\n {\n }", "public function content_template()\n {\n }", "public function content_template()\n {\n }", "public static function setTemplatePage(templatesInterface $templatePage)\n {\n if(isset($templatePage) && !empty($templatePage)){\n self::$templatePage = $templatePage;\n }\n }", "protected function _content_template()\n {\n\n }", "protected function getPageTemplate()\n {\n return new Template();\n }", "public function setTemplate($val){ return $this->setField('template',$val); }", "public function setTemplate(string $template_name);", "protected function setContentType()\n {\n $this->content_type = 'Page';\n }", "protected function _content_template() {\n \n }", "public function __construct () {\n $this->template = new PageTemplate ();\n }", "public function __construct () {\n $this->template = new PageTemplate ();\n }", "public function __construct () {\n $this->template = new PageTemplate ();\n }", "public function template()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/template', [\n\t\t\t'templates_availables' => $this->templates_availables,\n\t\t]);\n\t}", "public function initContent()\n {\n parent::initContent();\n\n $this->setTemplate(_PS_THEME_DIR_.'<%= name %>.tpl');\n }", "function CI_Template() {\n $this->_ci_ob_level = ob_get_level();\n\t\t\n // Copy an instance of CI so we can use the entire framework.\n $this->CI = & get_instance();\n\n // Load the template config file and setup our master template and regions\n include(APPPATH . 'config/template' . EXT);\n if (isset($template)) {\n $this->config = $template;\n $this->set_template($template['active_template']);\n }\n }", "function displayPage()\n {\n $this->getState()->template = 'transition-page';\n }", "static public function setCurrentTpl($tpl)\r\n\t{\r\n\t\t$origin = __CLASS__.'::'.__FUNCTION__; $db = true;\t\t\r\n\t\t$ret = true;\r\n\t\t$enabled_modules = sfConfig::get('sf_enabled_modules');\r\n\t\tif (in_array('switch', $enabled_modules) ) { \r\n\t\t\t// this allows for setting the current tpl \"permanently\" (for all sessions accessing the site)\r\n\t\t\t$pt_switcher_config_file = sfConfig::get('sf_plugins_dir').DS.'ptTplSwitcherPlugin'.DS.'config'.DS.'app.yml';\r\n\t\t\t$config = sfYaml::load($pt_switcher_config_file);\r\n\t\t\t$config['all']['ptTplSwitcher']['tplCurrent'] = $tpl;\r\n\t\t\t$yaml = sfYaml::dump($config);\r\n\t\t\t$ret = file_put_contents($pt_switcher_config_file, $yaml);\r\n\t\t}\r\n\t\tsfConfig::set('app_ptTplSwitcher_tplCurrent', $tpl);\r\n\t\t// if ($db) { var_dump($origin, $tpl); }\r\n\t\treturn $ret;\r\n\t}", "public function setTemplate($template)\n {\n $this->template = $template;\n }", "public function setTemplate($template)\n {\n $this->template = $template;\n }", "protected function setVarToTemplates()\n {\n $this->templates->set_tpl($this->varName, $this->checkNewCommondaty());\n }", "public function __viewTemplate()\n {\n $this->_context[2] = 'single';\n $this->addStylesheetToHead(self::$assets_base_url . 'editor.css');\n $this->addStylesheetToHead(self::$assets_base_url . 'highlighters/highlight-xsl.css');\n $this->addScriptToHead(self::$assets_base_url . 'editor.js');\n $this->addScriptToHead(self::$assets_base_url . 'highlighters/highlight-xsl.js');\n $name = $this->_context[1];\n $filename = $name . '.xsl';\n $title = $filename;\n $this->setTitle(__(('%1$s &ndash; %2$s &ndash; %3$s'), array($title, __('Pages'), __('Symphony'))));\n //$this->setPageType('table');\n $this->Body->setAttribute('spellcheck', 'false');\n $this->appendSubheading($title);\n $breadcrumbs = array(\n Widget::Anchor(__('Pages'), SYMPHONY_URL . '/blueprints/pages/'),\n new XMLElement('span', __(Helpers::capitalizeWords($name)))\n );\n $this->insertBreadcrumbs($breadcrumbs);\n \n $this->insertAction(\n Widget::Anchor(\n __('Edit Page'), \n SYMPHONY_URL . '/blueprints/pages/edit/' . PageManager::fetchIDFromHandle($name) . '/',\n __('Edit Page Configuration'),\n 'button'\n )\n );\n\n $this->Form->setAttribute('class', 'columns');\n $this->Form->setAttribute('action', SYMPHONY_URL . '/blueprints/pages/' . $name . '/');\n\n $fieldset = new XMLElement('fieldset');\n $fieldset->appendChild(Widget::Input('fields[name]', $filename, 'hidden'));\n $fieldset->appendChild($label);\n //$fieldset->appendChild((isset($this->_errors['name']) ? Widget::Error($label, $this->_errors['name']) : $label));\n\n $label = Widget::Label(__('Body'));\n $label->appendChild(\n Widget::Textarea(\n 'fields[body]',\n 30,\n 100,\n $filename ? htmlentities(file_get_contents(WORKSPACE . '/pages/' . $filename), ENT_COMPAT, 'UTF-8') : '',\n array('id' => 'text-area', 'class' => 'code hidden')\n )\n );\n //$fieldset->appendChild((isset($this->_errors['body']) ? Widget::Error($label, $this->_errors['body']) : $label));\n\n $fieldset->appendChild($label);\n $this->Form->appendChild($fieldset);\n\n $this->Form->appendChild(\n new XMLElement(\n 'div',\n new XMLElement('p', __('Saving')),\n array('id' => 'saving-popup')\n )\n );\n //$this->_context = array('edit', 'pages', 'single');\n $this->Form->appendChild(\n new XMLElement(\n 'div',\n Widget::Input(\n 'action[save]',\n __('Save Changes'),\n 'submit',\n array('class' => 'button', 'accesskey' => 's')\n ),\n array('class' => 'actions')\n )\n );\n }", "public function display(){\n\t\t$this->smarty->assign(\"main_content\",$this->template) ;\n\t\t$this->setTemplate(\"common/page.tpl\") ;\n\t\tparent::display() ;\n\t}", "function setXTemplate($newXTemplate) {\n $this->xTemplate = $newXTemplate;\n}", "public function setCurrentPage( $page );", "public function setTemplate($file);", "function setCurrentPage($page) {\n $this->current_page = $page;\n }", "public function tempalte()\n \t{\n \t\t$this->load->template('index-1');\n \t}", "public function TemplateController($page){\n\t\t\n\t\t//Allow Plugins.\n\t\tObservable::Observable();\n\t\t\n\t\t//Setup basic variables\n\t\t$this->varSetup();\n\t\t\n\t\t//Sets the name of the other classes\n\t\t$this->setSystem(\"Template\");\n\t\t\n\t\t//Setup the page\n\t\t$this->setup(\"Change Your Template\");\n\t\t\n\t\t//Set to Administration template\n\t\t$this->getView()->setTemplate(\"admin\");\n\t\t\n\t\t//Check for Plugins\n\t\t$this->loadPlugins();\n\t\t\n\t\t//Set the requests accepted\n\t\t$this->putRequests();\n\t\t\n\t\t//Process Request\n\t\t$this->processRequest();\n\t\t\n\t\t//Render the page\n\t\t$this->displayPage();\n\t}", "public function __construct($page){\n $this->template = \"templates/template_\" . $page . \".php\";\n }", "function _home_template ($page,$contents){\n\t\t\t$this->load->view(\"client_home_header_new\",$contents);\n\t\t\t$this->load->view('user/career_event/'.$page, $contents);\n\t\t\t$this->load->view(\"client_home_footer_new\",$contents);\n\t\t}", "function zenTemplate( $template ) {\n $this->_template = $template;\n $this->_get();\n }", "public function setTemplate($template)\n {\n if (sfToolkit::isPathAbsolute($template))\n {\n print \">>>1\";\n $this->directory = dirname($template);\n $this->template = basename($template);\n }\n else\n {\n print \">>>2\";\n $this->directory = $this->context->getConfiguration()->getTemplateDir($this->moduleName, $template);\n $this->template = $template;\n }\n }", "private function prepareTemplate() {\r\n $template = $this->iTemplateFactory->createTemplate();\r\n $template->_control = $this->linkGenerator;\r\n $this->setTemplate($template);\r\n }", "protected function getCurrentParsedTemplate() {}" ]
[ "0.74465483", "0.73770213", "0.71014684", "0.69857186", "0.6966788", "0.6963136", "0.6935353", "0.6910531", "0.67657566", "0.6762774", "0.67554253", "0.6744295", "0.66103524", "0.6574378", "0.6544725", "0.6530562", "0.6507391", "0.6503614", "0.6480304", "0.6456842", "0.64545375", "0.644919", "0.6414121", "0.64045274", "0.64045274", "0.6344695", "0.6342292", "0.63141334", "0.63116556", "0.6303929", "0.62965614", "0.62965614", "0.6287989", "0.6279225", "0.627575", "0.62634647", "0.62634647", "0.62634647", "0.62634647", "0.62634647", "0.62634647", "0.6248356", "0.62422276", "0.6226247", "0.6218221", "0.6215282", "0.6205098", "0.6198987", "0.6196486", "0.61950195", "0.6193531", "0.6178736", "0.61782473", "0.616337", "0.6146952", "0.61421275", "0.61279356", "0.6124577", "0.6107534", "0.6107534", "0.6107534", "0.6107534", "0.6107534", "0.6107534", "0.6107534", "0.6107534", "0.6107534", "0.6107534", "0.6089233", "0.6068836", "0.60687083", "0.60685414", "0.606385", "0.60611707", "0.60603637", "0.605996", "0.605996", "0.605996", "0.6059848", "0.6059612", "0.6046419", "0.6044337", "0.6031621", "0.6020278", "0.6020278", "0.6016913", "0.60126317", "0.59978884", "0.5997815", "0.5997245", "0.59813756", "0.5970874", "0.5966447", "0.59256345", "0.59141964", "0.5905827", "0.58962494", "0.58822787", "0.5876001", "0.58570206" ]
0.6309752
29
Gets the page layout
public function getLayout();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPageLayout() {}", "public function getLayout() {}", "public static function getLayout()\n {\n return self::$layout;\n }", "public function layout() {\n return $this->layout;\n }", "public function layout()\n {\n return $this->layout;\n }", "protected function getLayout() {\n\t\treturn $this->getFrontcontroller()->getResource('layout');\n\t}", "function getLayout() {return $this->readLayout();}", "protected function getLayout()\n {\n return $this->layout;\n }", "protected function getLayout()\n {\n return $this->layout;\n }", "public function getLayout()\n {\n return $this->layout;\n }", "public function getLayout()\n {\n return $this->layout;\n }", "public function getLayout()\n {\n return $this->layout;\n }", "public function getLayout(){\n return $this->_layout;\n }", "public function getLayout() {\n \t\n \t// Return the current layout\n \treturn $this->sLayout;\n }", "public function getLayout() {\n\t\treturn $this->layout;\n\t}", "public function getLayout() {\n return $this->_layout;\n }", "public function getLayout(){\n\n return $this->layout;\n\n }", "public function getLayout()\n\t{\n\t\treturn $this->_layout;\n\t}", "public function getThemeLayout();", "public function getLayout() {\n\t\treturn $this->_layout;\n\t}", "public function getLayout()\n\t{\n\t\t$input = JFactory::getApplication()->input;\n\t\treturn $input->getCmd('tmpl') ? $input->getCmd('tmpl') : $this->getParam('mainlayout', 'default');\n\t}", "public static function renderLayout()\n {\n return self::$layout;\n }", "public static function getLayout()\r\n {\r\n if (!isset(static::$_layout[static::layoutName()])) {\r\n $connection = static::getDb();\r\n static::$_layout[static::layoutName()] = $connection->getLayout(static::layoutName());\r\n }\r\n return static::$_layout[static::layoutName()];\r\n }", "public function getLayout(): string;", "protected function getStaticLayout() {\r\n return self::$_layout;\r\n }", "protected function getStaticLayout() {\r\n return self::$_layout;\r\n }", "protected function getStaticLayout() {\r\n return self::$_layout;\r\n }", "protected function getStaticLayout() {\r\n return self::$_layout;\r\n }", "protected function getStaticLayout() {\r\n return self::$_layout;\r\n }", "protected function getStaticLayout() {\r\n return self::$_layout;\r\n }", "public function getLayout()\n\t{\n\t\tif(is_null($this->layout))\n\t\t{\n\t\t\t$this->setLayout($this->getDefaultLayout());\n\t\t}\n\n\t\treturn $this->layout;\n\t}", "protected function getStaticLayout() {\r\n return self::$_layout;\r\n }", "public function getThemeLayout()\n {\n return $this->theme_layout;\n }", "function pi_get_content_layout()\n{\n return piBlogCustomize::pi_refresh_in_customize('pi_options[content][layout]') ? piBlogCustomize::pi_refresh_in_customize('pi_options[content][layout]') : piBlogFramework::$piOptions['content']['layout'];\n}", "public function getLayout(){\n $layout = $this->getAttribute('layout');\n\n $initLayout = $this->initLayout();\n\n if(!$layout){ // layout hasn't been initialized?\n $layout = $initLayout;\n $this->layout = json_encode($layout);\n $this->update(array('layout'));\n }else{\n $layout = json_decode($layout, true); // json to associative array\n if (!is_array ($layout)) $layout = array ();\n\n $this->addRemoveLayoutElements('left', $layout, $initLayout);\n $this->addRemoveLayoutElements('right', $layout, $initLayout);\n }\n\n return $layout;\n }", "public function getLayout() {\n\t\treturn isset($this->cache->layout) ? $this->cache->layout : 'warnfight';\n\t}", "public function getLayout() {\n if (!isset($this->layout)) {\n $this->layout = $this->layoutManager->createInstance($this->configuration['layout'], $this->configuration['layout_settings']);\n }\n return $this->layout;\n }", "public function get_layouts ()\n {\n return $this->_layouts;\n }", "public function getLayouts();", "public static function getTemplateLayout()\n {\n return self::$templateLayout;\n }", "public function getLayout()\n {\n return 'layouts/layout-full-width.tpl';\n }", "function publisher_get_header_layout() {\n\n\t\t// Return from cache\n\t\tif ( publisher_get_global( 'header-layout' ) ) {\n\t\t\treturn publisher_get_global( 'header-layout' );\n\t\t}\n\n\t\t$layout = 'default';\n\n\t\tif ( publisher_is_valid_tax() ) {\n\t\t\t$layout = bf_get_term_meta( 'header_layout' );\n\t\t} elseif ( publisher_is_valid_cpt() ) {\n\n\n\t\t\t$layout = bf_get_post_meta( 'header_layout' );\n\t\t\t// default -> Retrieve from parent category\n\t\t\tif ( $layout === 'default' ) {\n\n\t\t\t\t$main_term = publisher_get_post_primary_cat();\n\n\t\t\t\tif ( ! is_wp_error( $main_term ) && is_object( $main_term ) && bf_get_term_meta( 'override_in_posts', $main_term ) ) {\n\t\t\t\t\t$layout = bf_get_term_meta( 'header_layout', $main_term );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ( $layout === 'default' ) {\n\t\t\t$layout = publisher_get_option( 'header_layout' );\n\t\t}\n\n\t\t// Cache\n\t\tpublisher_set_global( 'header-layout', $layout );\n\n\t\treturn $layout;\n\n\t}", "function wprt_layout_position() {\n\t// Default layout position\n\t$layout = 'sidebar-right';\n\n\t// Get layout position for site\n\t$layout = wprt_get_mod( 'site_layout_position', 'sidebar-right' );\n\n\t// Get layout position for single post\n\tif ( is_singular( 'post' ) )\n\t\t$layout = wprt_get_mod('single_post_layout_position', 'sidebar-right');\n\n\t// Single post/page can have custom layout position\n\tif ( is_singular() && wprt_metabox('page_layout') )\n\t\t$layout = wprt_metabox('page_layout');\n\n\t// Get layout position for shop pages\n\tif ( class_exists( 'woocommerce' ) ) {\n\t\tif ( is_shop() || is_product_category() ) $layout = wprt_get_mod('shop_layout_position', 'no-sidebar'); \n\t\tif ( is_singular( 'product' ) ) $layout = wprt_get_mod('shop_single_layout_position', 'no-sidebar');\n\t}\n\n\treturn $layout;\n}", "public function getCurrentSiteDefaultLayout()\n {\n $siteInfo = $this->getCurrentSiteInfo();\n\n return $siteInfo['siteLayout'];\n }", "public function getBoardLayout()\r\n {\r\n return $this->board->getLayout();\r\n }", "public function get_layout_id()\n\t{\n\t\treturn $this->_layout_id;\n\t}", "public function getLayout() {\n\n return $this->asset_array['default']['layout']['name'];\n }", "function getLayout()\n\t{\n\t\treturn $this->createQueryBuilder('app')\n\t\t\t->where('app.zone IS NOT NULL')\n\t\t\t->getQuery()\n\t\t\t->useResultCache(true, null, self::CACHE_ID)\n\t\t\t->getResult();\n\t}", "function get_page_layout() {\n\t\tif (is_page() || (is_front_page() && get_option('show_on_front') == 'page')) {\n\t\t\t// WP page,\n\t\t\t// get the page template setting\n\t\t\t$page_id = get_the_ID();\n\t\t\t$page_template = noo_get_post_meta($page_id, '_wp_page_template', 'default');\n\t\t\t\n\t\t\tif (strpos($page_template, 'sidebar') !== false) {\n\t\t\t\tif (strpos($page_template, 'left') !== false) {\n\t\t\t\t\treturn 'left_sidebar';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn 'sidebar';\n\t\t\t}\n\t\t\t\n\t\t\treturn 'fullwidth';\n\t\t}\n\t\t\n\t\t// NOO Resume\n\t\tif( is_post_type_archive( 'noo_resume' ) ) {\n\t\t\treturn noo_get_option('noo_resumes_layout', 'sidebar');\n\t\t}\n\t\tif( is_singular( 'noo_resume' ) ) {\n\t\t\treturn 'fullwidth';\n\t\t}\n\t\t\n\t\t// NOO Company\n\t\tif( is_post_type_archive( 'noo_company' ) ) {\n\t\t\treturn noo_get_option('noo_companies_layout', 'fullwidth');\n\t\t}\n\n\t\tif( is_singular( 'noo_company' ) ) {\n\t\t\tif(noo_get_option('noo_companies_layout', 'fullwidth') == 'fullwidth'){\n\t\t\t\treturn 'sidebar';\n\t\t\t} else{\n\t\t\t\treturn noo_get_option('noo_companies_layout', 'fullwidth');\n\t\t\t}\n\t\t}\n\t\t\n\t\t// NOO Job\n\t\tif( is_post_type_archive( 'noo_job' )\n\t\t\t|| is_tax( 'job_category' )\n\t\t\t|| is_tax( 'job_type' )\n\t\t\t|| is_tax( 'job_tag' ) \n\t\t\t|| is_tax( 'job_location' ) ) {\n\n\t\t\treturn noo_get_option('noo_jobs_layout', 'sidebar');\n\t\t}\n\t\t\n\t\t// Single Job\n\t\tif( is_singular( 'noo_job' ) ) {\n\t\t\treturn noo_get_option('noo_single_jobs_layout', 'right_company');\n\t\t}\n\n\t\t// WooCommerce\n\t\tif( NOO_WOOCOMMERCE_EXIST ) {\n\t\t\tif( is_shop() || is_product_category() || is_product_tag() ){\n\t\t\t\treturn noo_get_option('noo_shop_layout', 'fullwidth');\n\t\t\t}\n\n\t\t\tif( is_product() ) {\n\t\t\t\t$product_layout = noo_get_option('noo_woocommerce_product_layout', 'same_as_shop');\n\t\t\t\tif ($product_layout == 'same_as_shop') {\n\t\t\t\t\t$product_layout = noo_get_option('noo_shop_layout', 'fullwidth');\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn $product_layout;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Single post page\n\t\tif (is_single()) {\n\n\t\t\t// WP post,\n\t\t\t// check if there's overrode setting in this post.\n\t\t\t$post_id = get_the_ID();\n\t\t\t$override_setting = noo_get_post_meta($post_id, '_noo_wp_post_override_layout', false);\n\t\t\t\n\t\t\tif ( !$override_setting ) {\n\t\t\t\t$post_layout = noo_get_option('noo_blog_post_layout', 'same_as_blog');\n\t\t\t\tif ($post_layout == 'same_as_blog') {\n\t\t\t\t\t$post_layout = noo_get_option('noo_blog_layout', 'sidebar');\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn $post_layout;\n\t\t\t}\n\n\t\t\t// overrode\n\t\t\treturn noo_get_post_meta($post_id, '_noo_wp_post_layout', 'sidebar-main');\n\t\t}\n\n\t\t// Archive\n\t\tif (is_archive()) {\n\t\t\t$archive_layout = noo_get_option('noo_blog_archive_layout', 'same_as_blog');\n\t\t\tif ($archive_layout == 'same_as_blog') {\n\t\t\t\t$archive_layout = noo_get_option('noo_blog_layout', 'sidebar');\n\t\t\t}\n\t\t\t\n\t\t\treturn $archive_layout;\n\t\t}\n\n\t\t// Index or Home\n\t\tif (is_home() || (is_front_page() && get_option('show_on_front') == 'posts')) {\n\t\t\t\n\t\t\treturn noo_get_option('noo_blog_layout', 'sidebar');\n\t\t}\n\t\t\n\t\treturn '';\n\t}", "function mai_get_layout( $layout ) {\n\tremove_filter( 'genesis_pre_get_option_site_layout', 'genesiswooc_archive_layout' );\n\n\t// Setup cache.\n\tstatic $layout_cache = '';\n\n\t// If cache is populated, return value.\n\tif ( '' !== $layout_cache ) {\n\t\treturn esc_attr( $layout_cache );\n\t}\n\n\t$site_layout = '';\n\n\tglobal $wp_query;\n\n\t// If home page.\n\tif ( is_home() ) {\n\t\t$site_layout = genesis_get_custom_field( '_genesis_layout', get_option( 'page_for_posts' ) );\n\t\tif ( ! $site_layout ) {\n\t\t\t$site_layout = genesis_get_option( 'layout_archive' );\n\t\t}\n\t}\n\n\t// If viewing a singular page, post, or CPT.\n\telseif ( is_singular() ) {\n\t\t$site_layout = genesis_get_custom_field( '_genesis_layout', get_the_ID() );\n\t\tif ( ! $site_layout ) {\n\t\t\t$site_layout = genesis_get_option( sprintf( 'layout_%s', get_post_type() ) );\n\t\t}\n\t}\n\n\t// If viewing a post taxonomy archive.\n\telseif ( is_category() || is_tag() || is_tax( get_object_taxonomies( 'post', 'names' ) ) ) {\n\t\t$term = $wp_query->get_queried_object();\n\t\t$site_layout = $term ? get_term_meta( $term->term_id, 'layout', true) : '';\n\t\t$site_layout = $site_layout ? $site_layout : genesis_get_option( 'layout_archive' );\n\t}\n\n\t// If viewing a custom taxonomy archive.\n\telseif ( is_tax() ) {\n\t\t$term = $wp_query->get_queried_object();\n\t\t$site_layout = $term ? get_term_meta( $term->term_id, 'layout', true) : '';\n\t\tif ( ! $site_layout ) {\n\t\t\t$tax = get_taxonomy( $wp_query->get_queried_object()->taxonomy );\n\t\t\tif ( $tax ) {\n\t\t\t\t/**\n\t\t\t\t * If we have a tax, get the first one.\n\t\t\t\t * Changed to reset() when hit an error on a term archive that object_type array didn't start with [0]\n\t\t\t\t */\n\t\t\t\t$post_type = reset( $tax->object_type );\n\t\t\t\t// If we have a post type and it supports genesis-cpt-archive-settings\n\t\t\t\tif ( post_type_exists( $post_type ) && genesis_has_post_type_archive_support( $post_type ) ) {\n\t\t\t\t\t// $site_layout = genesis_get_option( sprintf( 'layout_archive_%s', $post_type ) );\n\t\t\t\t\t$site_layout = genesis_get_cpt_option( 'layout', $post_type );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$site_layout = $site_layout ? $site_layout : genesis_get_option( 'layout_archive' );\n\t}\n\n\t// If viewing a supported post type.\n\t// elseif ( is_post_type_archive() && genesis_has_post_type_archive_support() ) {\n\telseif ( is_post_type_archive() ) {\n\t\t// $site_layout = genesis_get_option( sprintf( 'layout_archive_%s', get_post_type() ) );\n\t\t$site_layout = genesis_get_cpt_option( 'layout', get_post_type() );\n\t\t$site_layout = $site_layout ? $site_layout : genesis_get_option( 'layout_archive' );\n\t}\n\n\t// If viewing an author archive.\n\telseif ( is_author() ) {\n\t\t$site_layout = get_the_author_meta( 'layout', (int) get_query_var( 'author' ) );\n\t\t$site_layout = $site_layout ? $site_layout : genesis_get_option( 'layout_archive' );\n\t}\n\n\t// Pull the theme option.\n\tif ( ! $site_layout ) {\n\t\t$site_layout = genesis_get_option( 'site_layout' );\n\t}\n\n\t// Use default layout as a fallback, if necessary.\n\tif ( ! genesis_get_layout( $site_layout ) ) {\n\t\t$site_layout = genesis_get_default_layout();\n\t}\n\t// Push layout into cache.\n\t$layout_cache = $site_layout;\n\n\t// Return site layout.\n\treturn esc_attr( $site_layout );\n\n}", "public function getLayouts()\r\n {\r\n return $this->layouts;\r\n }", "public function get_layout() {\n return 'admin';\n }", "public function getLayoutName()\n {\n return $this->layout;\n }", "public static function MasterLayout()\n \t{\n \t\treturn self::$_master;\n \t}", "public function getLayout()\n {\n if ($this->__layout) {\n return $this->__layout;\n }\n\n $this->__layout = new ViewEntity();\n\n $layoutName = 'layout/layout';\n $layoutPath = $this->__defaultScriptPath;\n\n $yaceConfig = $this->__config->get('yace');\n if ($yaceConfig) {\n // Check layout_name configuration\n $test = $yaceConfig->get('layout_name');\n if (!$test) {\n $layoutName = $test;\n }\n\n // Check layout path configuration\n $test = $yaceConfig->get('layout_path');\n if (!$test) {\n $layoutPath = $test;\n }\n }\n\n $this->__layout->setViewName($layoutName)\n ->setScriptPath($layoutPath);\n\n return $this->__layout;\n }", "public function get_layout($id)\n\t{\n\t\treturn $this->get_single($id);\n\t}", "private function __layoutContent()\n {\n return VIEWS . DS . 'Layout' . DS . 'base.php';\n }", "public function getThemeLayouts();", "public function getViewLayout()\n {\n if(isset($_GET['debug'])) $this->debug();\n\n switch (true) {\n case isset($this->items):\n return 'man_toc';\n case isset($this->methods):\n return 'man_group';\n default:\n return 'man_single';\n }\n }", "function layout(string $layout)\n {\n return the_layout($layout);\n }", "public function getLayoutTemplate()\n {\n return $this->layoutTemplate;\n }", "public function get_layouts() {\n $layouts = array();\n\n foreach ( glob( self::_find_view_folder() . 'layouts/*.*' ) as $layout ) {\n $layouts[] = pathinfo( $layout, PATHINFO_BASENAME );\n }\n\n return $layouts;\n }", "public static function get_layout() {\n\t\tglobal $post;\n\n\t\tif(!defined('WPV_LAYOUT_TYPE')) {\n\t\t\tif(wpv_has_woocommerce()) {\n\t\t\t\t$id_override = is_single() ? $post->ID : (woocommerce_get_page_id( 'shop' ) ? woocommerce_get_page_id( 'shop' ) : null);\n\t\t\t\tif(is_shop() || is_product_category() || is_product_tag()) {\n\t\t\t\t\tdefine('WPV_LAYOUT_TYPE', wpv_post_meta_default('layout-type', 'default-body-layout', $id_override));\n\t\t\t\t\treturn WPV_LAYOUT_TYPE;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(WpvFancyPortfolio::has('page') || is_404() || is_page_template('page-blank.php')) {\n\t\t\t\tdefine('WPV_LAYOUT_TYPE', 'full');\n\t\t\t\tdefine('WPV_LAYOUT', 'no-sidebars');\n\t\t\t\treturn WPV_LAYOUT_TYPE;\n\t\t\t}\n\n\t\t\t$layout_type = '';\n\t\t\tif(is_singular(array('page', 'post', 'portfolio', 'product', 'wpv_sermon', 'tribe_events')) || (wpv_has_woocommerce() && is_woocommerce())) {\n\t\t\t\t$layout_type = wpv_post_meta_default('layout-type', 'default-body-layout');\n\t\t\t} else {\n\t\t\t\t$layout_type = wpv_get_option('default-body-layout');\n\t\t\t}\n\n\t\t\tif(empty($layout_type)) {\n\t\t\t\t$layout_type = 'full';\n\t\t\t}\n\n\t\t\tdefine('WPV_LAYOUT_TYPE', $layout_type);\n\n\t\t\tswitch($layout_type) {\n\t\t\t\tcase 'left-only':\n\t\t\t\t\tdefine('WPV_LAYOUT', 'left-sidebar');\n\t\t\t\tbreak;\n\t\t\t\tcase 'right-only':\n\t\t\t\t\tdefine('WPV_LAYOUT', 'right-sidebar');\n\t\t\t\tbreak;\n\t\t\t\tcase 'left-right':\n\t\t\t\t\tdefine('WPV_LAYOUT', 'two-sidebars');\n\t\t\t\tbreak;\n\t\t\t\tcase 'full':\n\t\t\t\t\tdefine('WPV_LAYOUT', 'no-sidebars');\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\treturn $layout_type;\n\t\t}\n\n\t\treturn WPV_LAYOUT_TYPE;\n\t}", "public function getLayoutPath()\n {\n if ($this->_layoutPath === null) {\n $this->_layoutPath = realpath($this->getBasePath() . DIRECTORY_SEPARATOR . 'layouts');\n }\n return $this->_layoutPath;\n }", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\treturn $this->layout = View::make($this->layout);\n\t\t}\n\t}", "function wp_get_layout_definitions()\n {\n }", "public function getContent() {\r\n\t\treturn PzkParser::parseLayout($this->layout, $this, true);\r\n\t}", "public function getThemeLayouts()\n {\n return $this->layouts;\n }", "public function getLayoutName()\n\t{\n\t\treturn $this->layout_name;\n\t}", "public function getLayout()\n\t{\n\t\t$name = $this->Layout ? $this->Layout : 'Product_Layout_Standard';\n\t\treturn new $name();\n\t}", "public static function custom_page_layout()\n {\n\n // get wp post\n global $post;\n // get post name\n $page_slug = $post->post_name;\n // check post name\n if ($page_slug == 'my_events') {\n $page_template = PLUGIN_PATH_INCLUDES_PUBLIC . 'page_template.php';\n }\n return $page_template;\n }", "public function getLayoutXmlString() {\n return $this->_layoutXml;\n }", "public function getLayout()\n {\n if ($this->layout === null) {\n if (isset($this->cfg['logging.appender.' . $this->name . '.layout'])) {\n $layoutClass = $this->cfg['logging.appender.' . $this->name . '.layout'];\n } else {\n $layoutClass = 'Logger_Layout_Pattern';\n }\n\n loadClass($layoutClass);\n $this->layout = new $layoutClass($this->name, $this->cfg);\n }\n\n return $this->layout;\n }", "function klippe_mikado_sidebar_layout() {\n\t\t$sidebar_layout = '';\n\t\t$sidebar_layout_meta = klippe_mikado_get_meta_field_intersect( 'sidebar_layout' );\n\t\t$archive_sidebar_layout = klippe_mikado_options()->getOptionValue( 'archive_sidebar_layout' );\n\t\t$search_sidebar_layout = klippe_mikado_options()->getOptionValue( 'search_page_sidebar_layout' );\n\t\t$single_sidebar_layout = klippe_mikado_get_meta_field_intersect( 'blog_single_sidebar_layout' );\n\t\t\n\t\tif ( ! empty( $sidebar_layout_meta ) ) {\n\t\t\t$sidebar_layout = $sidebar_layout_meta;\n\t\t}\n\t\t\n\t\tif ( is_singular( 'post' ) && ! empty( $single_sidebar_layout ) ) {\n\t\t\t$sidebar_layout = $single_sidebar_layout;\n\t\t}\n\t\t\n\t\tif ( is_search() && ! klippe_mikado_is_woocommerce_shop() && ! empty( $search_sidebar_layout ) ) {\n\t\t\t$sidebar_layout = $search_sidebar_layout;\n\t\t}\n\t\t\n\t\tif ( ( is_archive() || ( is_home() && is_front_page() ) ) && ! klippe_mikado_is_woocommerce_page() && ! empty( $archive_sidebar_layout ) ) {\n\t\t\t$sidebar_layout = $archive_sidebar_layout;\n\t\t}\n\t\t\n\t\treturn apply_filters( 'klippe_mikado_sidebar_layout', $sidebar_layout );\n\t}", "public function getLayout($mode = self::RENDER_TEXT)\n\t{\n\t\t$returnValue = NULL;\n\t\tif (isset($this->_layout[$mode])) {\n\t\t\t$returnValue = $this->_layout[$mode];\n\t\t}\n\t\treturn $returnValue;\n\t}", "public function getLayoutParameters(): array;", "protected function getLayout()\n {\n $layout = new Zend_Layout(dirname(__FILE__));\n $layout->setLayout('log-email');\n return $layout;\n }", "public function getViewLayout(): array\n {\n return $this->template;\n }", "function the_layout(string $layout)\n {\n return app('armin.layout')->layout($layout);\n }", "function LayoutSize() {\n\treturn 1;\n }", "public function getLayouts(): ?array;", "public function getPagelayouts($dc)\n\t{\n\t\t$objLayouts = $this->Database->prepare('SELECT id,name FROM tl_layout WHERE pid=?')->execute($dc->activeRecord->pid);\n\t\t$arrLayouts = array();\n\t\twhile($objLayouts->next())\t$arrLayouts[$objLayouts->id] = $objLayouts->name;\n\t\treturn $arrLayouts;\n\t}", "public function getLayouts() {\n $path = APPPATH.'opencnab/layouts';\n $diretorio = dir($path);\n\n //Grava em um array todos eles para uso durante a aplicação.\n $cont = 0;\n while($arquivo = $diretorio -> read()){\n if($arquivo <> '.' && $arquivo <> '..'){\n $this->layouts[$cont] = require_once($path.'/'.$arquivo);\n $cont++;\n }\n }\n $diretorio -> close();\n\n return $this->layouts;\n }", "public function renderLayout();", "function getLayoutPath() {\r\n $layout_name = trim($this->getLayout()) == '' ? $this->getControllerName() : $this->getLayout();\r\n return $this->engine->getLayoutPath($layout_name);\r\n }", "public function getLayoutZone()\n {\n return $this->layoutZone;\n }", "public function getLayoutDirectory()\n\t{\n\t\treturn ORION_APP_DIR . '/' . strtolower($this->application->getName()) . '/layouts';\n\t}", "public function getFieldLayout()\n\t{\n\t\treturn $this->asa('fieldLayout')->getFieldLayout();\n\t}", "function facebook_instant_articles_get_layout_info() {\n return array(\n 'facebook_instant_article' => array(\n 'label' => t('Facebook Instant Article'),\n 'path' => \"\",\n 'regions' => array(\n 'header' => t('Header'),\n 'body' => t('Body'),\n 'footer' => t('Footer'),\n ),\n 'image' => 1,\n ),\n );\n}", "public function getOptionsLayout()\n {\n return $this->_optionsLayout;\n }", "public static function getLayout($agentName)\n {\n // Determine classname\n $className = Autoloader::concatClassNames($agentName, 'Agent');\n \n // Check property\n if(isset($className::$layout)) {\n return $className::$layout;\n }\n\n\n return null;\n }", "function mrseo_elated_sidebar_layout() {\n\t\t$sidebar_layout = '';\n\t\t$sidebar_layout_meta = mrseo_elated_get_meta_field_intersect('sidebar_layout');\n\t\t$archive_sidebar_layout = mrseo_elated_options()->getOptionValue('archive_sidebar_layout');\n\t\t$search_sidebar_layout = mrseo_elated_options()->getOptionValue('search_page_sidebar_layout');\n\t\t$single_sidebar_layout = mrseo_elated_get_meta_field_intersect('blog_single_sidebar_layout');\n\t\t\n\t\tif (!empty($sidebar_layout_meta)) {\n\t\t\t$sidebar_layout = $sidebar_layout_meta;\n\t\t}\n\t\t\n\t\tif (is_singular('post') && !empty($single_sidebar_layout)) {\n\t\t\t$sidebar_layout = $single_sidebar_layout;\n\t\t}\n\t\t\n\t\tif(is_search() && !mrseo_elated_is_woocommerce_shop() && !empty($search_sidebar_layout)) {\n\t\t\t$sidebar_layout = $search_sidebar_layout;\n\t\t}\n\t\t\n\t\tif ((is_archive() || (is_home() && is_front_page())) && !mrseo_elated_is_woocommerce_page() && !empty($archive_sidebar_layout)) {\n\t\t\t$sidebar_layout = $archive_sidebar_layout;\n\t\t}\n\t\t\n\t\tif (is_archive() && mrseo_elated_is_woocommerce_installed()) {\n\t\t\tif (is_product_category() || is_product_tag()) {\n\t\t\t\t$shop_id = get_option('woocommerce_shop_page_id');\n\t\t\t\t$sidebar_layout = mrseo_elated_get_meta_field_intersect('sidebar_layout', $shop_id);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn apply_filters('mrseo_elated_sidebar_layout', $sidebar_layout);\n\t}", "function fanwood_plugin_layouts( $layout ) {\n\n\tif ( current_theme_supports( 'theme-layouts' ) ) {\n\t\n\t\t$global_layout = hybrid_get_setting( 'fanwood_global_layout' );\n\t\t$buddypress_layout = hybrid_get_setting( 'fanwood_buddypress_layout' );\n\n\t\tif ( function_exists( 'bp_loaded' ) && !bp_is_blog_page() && $layout == 'layout-default' ) {\n\t\t\n\t\t\tif ( $buddypress_layout !== 'layout_default' ) {\n\t\t\t\n\t\t\t\tif ( $buddypress_layout == 'layout_1c' )\n\t\t\t\t\t$layout = 'layout-1c';\n\t\t\t\telseif ( $buddypress_layout == 'layout_2c_l' )\n\t\t\t\t\t$layout = 'layout-2c-l';\n\t\t\t\telseif ( $buddypress_layout == 'layout_2c_r' )\n\t\t\t\t\t$layout = 'layout-2c-r';\n\t\t\t\telseif ( $buddypress_layout == 'layout_3c_c' )\n\t\t\t\t\t$layout = 'layout-3c-c';\n\t\t\t\telseif ( $buddypress_layout == 'layout_3c_l' )\n\t\t\t\t\t$layout = 'layout-3c-l';\n\t\t\t\telseif ( $buddypress_layout == 'layout_3c_r' )\n\t\t\t\t\t$layout = 'layout-3c-r';\n\t\t\t\telseif ( $buddypress_layout == 'layout_hl_1c' )\n\t\t\t\t\t$layout = 'layout-hl-1c';\n\t\t\t\telseif ( $buddypress_layout == 'layout_hl_2c_l' )\n\t\t\t\t\t$layout = 'layout-hl-2c-l';\n\t\t\t\telseif ( $buddypress_layout == 'layout_hl_2c_r' )\n\t\t\t\t\t$layout = 'layout-hl-2c-r';\n\t\t\t\telseif ( $buddypress_layout == 'layout_hr_1c' )\n\t\t\t\t\t$layout = 'layout-hr-1c';\n\t\t\t\telseif ( $buddypress_layout == 'layout_hr_2c_l' )\n\t\t\t\t\t$layout = 'layout-hr-2c-l';\n\t\t\t\telseif ( $buddypress_layout == 'layout_hr_2c_r' )\n\t\t\t\t\t$layout = 'layout-hr-2c-r';\n\t\t\t\t\n\t\t\t} elseif ( $buddypress_layout == 'layout_default' ) {\n\t\t\t\n\t\t\t\tif ( $global_layout == 'layout_1c' )\n\t\t\t\t\t$layout = 'layout-1c';\n\t\t\t\telseif ( $global_layout == 'layout_2c_l' )\n\t\t\t\t\t$layout = 'layout-2c-l';\n\t\t\t\telseif ( $global_layout == 'layout_2c_r' )\n\t\t\t\t\t$layout = 'layout-2c-r';\n\t\t\t\telseif ( $global_layout == 'layout_3c_c' )\n\t\t\t\t\t$layout = 'layout-3c-c';\n\t\t\t\telseif ( $global_layout == 'layout_3c_l' )\n\t\t\t\t\t$layout = 'layout-3c-l';\n\t\t\t\telseif ( $global_layout == 'layout_3c_r' )\n\t\t\t\t\t$layout = 'layout-3c-r';\n\t\t\t\telseif ( $global_layout == 'layout_hl_1c' )\n\t\t\t\t\t$layout = 'layout-hl-1c';\n\t\t\t\telseif ( $global_layout == 'layout_hl_2c_l' )\n\t\t\t\t\t$layout = 'layout-hl-2c-l';\n\t\t\t\telseif ( $global_layout == 'layout_hl_2c_r' )\n\t\t\t\t\t$layout = 'layout-hl-2c-r';\n\t\t\t\telseif ( $global_layout == 'layout_hr_1c' )\n\t\t\t\t\t$layout = 'layout-hr-1c';\n\t\t\t\telseif ( $global_layout == 'layout_hr_2c_l' )\n\t\t\t\t\t$layout = 'layout-hr-2c-l';\n\t\t\t\telseif ( $global_layout == 'layout_hr_2c_r' )\n\t\t\t\t\t$layout = 'layout-hr-2c-r';\n\t\t\t\n\t\t\t}\n\n\t\t}\n\t\t\n\t}\n\t\n\treturn $layout;\n\n}", "function yt_bbpres_site_layout( $current_layout ){\r\n\tif( yt_is_bbpress() )\r\n\t\treturn 'right-sidebar';\r\n\r\n\treturn $current_layout;\r\n}", "public function getBackendLayout($identifier, $pageId){\n $backendLayout = NULL;\n if(array_key_exists($identifier,$this->backendLayouts)) {\n return $this->createBackendLayout($this->backendLayouts[$identifier]);\n }\n return $backendLayout;\n }", "function ju_layout() {return ju_o(ILayout::class);}", "protected function _prepareLayout()\n\t{\n\t\treturn parent::_prepareLayout();\n\t}", "public function getLayoutCache(){\n\t\tif(isset(self::$_cacheLayout[get_class($this)])){\n\t\t\treturn self::$_cacheLayout[get_class($this)];\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "function template_get_layout($element, $pagina_regel_row, $constanten_row, $pagina_row){\n $this->init();\n return $this->get_layout();\n }", "public function layout($name = null) {\n\t\t$request = $this->container->get('request');\n\t\tif (!is_null($name) && $this->container->hasParameter('oxygen_framework.templating.layouts.'.$name)) {\n\t\t\treturn $this->container->getParameter('oxygen_framework.templating.layouts.'.$name);\n\t\t}\n\t\tif ($request->isXmlHttpRequest() && $this->container->hasParameter('oxygen_framework.templating.layouts.light')) {\n\t\t\treturn $this->container->getParameter('oxygen_framework.templating.layouts.light');\n\t\t} elseif ($this->container->hasParameter('oxygen_framework.templating.layouts.full')) {\n\t\t\treturn $this->container->getParameter('oxygen_framework.templating.layouts.full');\n\t\t}\n\t\tthrow new \\Exception(\"Layout undefined in oxygen_framework configuration\");\n\t}" ]
[ "0.83984214", "0.8111321", "0.7886529", "0.78742516", "0.78577316", "0.7851324", "0.78243285", "0.7806092", "0.7806092", "0.77749616", "0.77749616", "0.77749616", "0.7684648", "0.7673303", "0.7644296", "0.7629937", "0.76207805", "0.7606771", "0.75933015", "0.7560993", "0.7549325", "0.7515261", "0.7495371", "0.733255", "0.73087984", "0.73087984", "0.73087984", "0.73087984", "0.73087984", "0.73087984", "0.7298219", "0.7293907", "0.7290827", "0.7235756", "0.72098124", "0.71914166", "0.71738285", "0.7149969", "0.70841324", "0.7080372", "0.7061885", "0.70007414", "0.69839776", "0.6960953", "0.69558144", "0.6948633", "0.69011295", "0.6883664", "0.687981", "0.6861758", "0.6772367", "0.6706024", "0.66903585", "0.66195595", "0.65940046", "0.65495116", "0.65407956", "0.65370893", "0.64844054", "0.64712405", "0.6468832", "0.6444946", "0.64313006", "0.6412838", "0.63977253", "0.6391616", "0.6352435", "0.63467765", "0.6328972", "0.6315895", "0.63074416", "0.63065827", "0.62690616", "0.62308335", "0.6205884", "0.6191188", "0.6162308", "0.61457664", "0.61423117", "0.61355805", "0.6132672", "0.61234933", "0.6118875", "0.6103498", "0.61013407", "0.6070675", "0.60655564", "0.6063491", "0.6036616", "0.600871", "0.59939086", "0.59831816", "0.59818673", "0.5978787", "0.5973884", "0.5970453", "0.5967813", "0.59672576", "0.59519553", "0.59343904" ]
0.8087863
2
Sets the current page layout
public function setLayout($value);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function set_layout($layout) {\n $this->layout = $layout;\n }", "public function setLayout() {\n if ($this->controller == 'login' || $this->controller == 'infos') {\n $this->viewBuilder()->setLayout('empty');\n } else if ($this->controller == 'ajax') {\n $this->viewBuilder()->setLayout('ajax');\n } else {\n $this->viewBuilder()->setLayout('chotreo');\n }\n }", "protected function setAuthenticatedPageLayout() {\n if (!$this->app->router->isWsCall) {\n require __ROOT__ . Enums\\ApplicationFolderName::AppsFolderName . $this->app->name() . Enums\\FileNameConst::HeaderTemplate;\n// require __ROOT__ . Enums\\ApplicationFolderName::AppsFolderName . $this->app->name() . Enums\\FileNameConst::HeaderTemplate;\n }\n\n require __ROOT__ . Enums\\ApplicationFolderName::AppsFolderName . $this->app->name() . Enums\\FileNameConst::ContenTemplate;\n\n if (!$this->app->router->isWsCall) {\n require __ROOT__ . Enums\\ApplicationFolderName::AppsFolderName . $this->app->name() . Enums\\FileNameConst::FooterTemplate;\n }\n }", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout, $this->_data);\n\t\t\t$this->layout->content = null;\n\t\t\t$this->layout->currentProject = null;\n\t\t}\n\t}", "function setLayout($value) {\r\n $this->layout = $value;\r\n }", "public function xlayouts() {\n\t\t$templates = $this->getModel ( 'layout' );\n\t\t$templates->getAll ( 'appliesto = \"Global\"' );\n\t\t/* set last view into session */\n\t\t$this->session->returnto ( $this->getView () );\n\t\t\n\t\t$this->setView ( 'layouts' );\n\t}", "function setPageLayout()\n\t{\n\t\tglobal $tpl, $ilCtrl, $lng;\n\n\t\tif (!is_array($_POST[\"id\"]))\n\t\t{\n\t\t\tilUtil::sendFailure($lng->txt(\"no_checkbox\"), true);\n\t\t\t$ilCtrl->redirect($this, \"showHierarchy\");\n\t\t}\n\t\t\n\t\t$this->initSetPageLayoutForm();\n\t\t\n\t\t$tpl->setContent($this->form->getHTML());\n\t}", "protected function applyPageLayout()\n {\n $this->content = \"\n @extends('generated/layout')\n \";\n }", "function setLayout($value) {\n $this->layout = $value;\n }", "protected function setupLayout() {\n\t\tif (!is_null($this -> layout)) {\n\t\t\t$this -> layout = View::make($this -> layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif (!is_null($this->layout)) {\n\t\t\t$this->layout = view($this->layout);\n\t\t}\n\t}", "public function setCleanLayout()\n {\n $this->layout = \"@app/modules/site/views/layouts/public_clean\";\n }", "protected function setNonAuthenticatedPageLayout() {\n if (!$this->app->router->isWsCall) {\n require __ROOT__ . Enums\\ApplicationFolderName::AppsFolderName . $this->app->name() . Enums\\FileNameConst::HeaderTemplate;\n }\n\n require __ROOT__ . Enums\\ApplicationFolderName::AppsFolderName . $this->app->name() . Enums\\FileNameConst::ContenTemplate;\n\n if (!$this->app->router->isWsCall) {\n require __ROOT__ . Enums\\ApplicationFolderName::AppsFolderName . $this->app->name() . Enums\\FileNameConst::FooterTemplate;\n }\n }", "protected function setupLayout()\n {\n if (!is_null($this->layout)) {\n $this->layout = \\View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n\n if (Request::Ajax())\n {\n $this->layout = View::make('layouts.ajax');\n }\n else\n $this->layout = View::make($this->layout);\n\n $this->layout->content = \" \";\n }\n }", "protected function setupLayout() {\n\t\tif ( ! is_null($this->layout)) {\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = view($this->layout);\n $this->layout->menus = Menu::getMenu() ;\n }\n }", "public function getPageLayout() {}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif (!is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\r\n\t{\r\n\t\tif ( ! is_null($this->layout))\r\n\t\t{\r\n\t\t\t$this->layout = View::make($this->layout);\r\n\t\t}\r\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout)) {\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout() {\n if (!is_null($this->layout)) $this->layout = View::make($this->layout);\n }", "protected function setupLayout() {\n if ( ! is_null($this->layout)) {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n\t{\n\t\tif (!is_null($this->layout)) {\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\n\t\t$this->setLocale();\n\t}", "protected function setupLayout()\n {\n if( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n }", "public function layout( $layout ) {\n\t\t$this->_layout = $layout;\n\t}", "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n\n }", "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if (!is_null($this->layout)) {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if (!is_null($this->layout)) {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if (!is_null($this->layout)) {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if (!is_null($this->layout)) {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if (!is_null($this->layout)) {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if (! is_null($this->layout)) {\n $this->layout = View::make($this->layout);\n }\n }", "public function set_layout($layout)\n {\n $this->_layout = $layout;\n }", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout) && ! $this->is_pjax())\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "function setLayout($name) {\n\t\t$this->layout = $name;\n\t}", "private function setLayouts() {\n # list of layout names!\n $availableLayouts = $this->fileMaker->listLayouts();\n\n foreach ($availableLayouts as $layoutName){\n if ($this->name === 'mi' or $this->name === 'miw') {\n if ($layoutName == 'search-'.strtoupper($this->name)) {\n $this->search_layout = $this->fileMaker->getLayout($layoutName);\n } else if ($layoutName == 'results-'.strtoupper($this->name)) {\n $this->result_layout = $this->fileMaker->getLayout($layoutName);\n } else if ($layoutName == 'details-'.strtoupper($this->name)) {\n $this->detail_layout = $this->fileMaker->getLayout($layoutName);\n }\n } else {\n if (str_contains($layoutName, 'search')) {\n $this->search_layout = $this->fileMaker->getLayout($layoutName);\n } else if (str_contains($layoutName, 'results')) {\n $this->result_layout = $this->fileMaker->getLayout($layoutName);\n } else if (str_contains($layoutName, 'details')) {\n $this->detail_layout = $this->fileMaker->getLayout($layoutName);\n }\n }\n }\n }", "protected function setupLayout()\n\t{\n\t\tdefine(\"aol_institute\", 68);\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "function index(){\n $this->layout = 'default';\n }", "public function setLayout($layout)\n {\n $layout_path = APP_ROOT . 'Views/Layouts/' . $layout . '.ptm.php';\n if ((file_exists($layout_path))) {\n $this->layout = $layout;\n } else {\n die('Layout ' . $layout . ' not exist');\n }\n $this->layout = $layout;\n }", "public static function setLayout(string $layout)\n {\n self::$LAYOUT = self::$ROOT_DIR.'/views/'.$layout;\n }", "public function setLayout($layout)\n\t{\n\t\t//LAYOUT CAN BE FLAT\t\n\t}", "public function setLayout($layout) {\n\t\t$this->layout = $layout;\n\t}", "public function SetLayout($layout)\r\n {\r\n $this->layout = $layout;\r\n // set layout from $layout\r\n }", "public function setLayout($layout)\r\n {\r\n $this->layout = $layout;\r\n }", "public function setLayout($layout) {\n $this->layout = $layout;\n }", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\treturn $this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout() {\n\t\t$this->data['route'] = Route::getCurrentRoute()->getPath();\t\n\t\tif ( ! is_null($this->layout)) {\n\t\t\t$this->data['enrolledCourses'] = NULL;\n\t\t\t\n\t\t\tif (Auth::check() && in_array(Auth::user()->user_type, array(3, 5))) {\n\t\t\t\t$this->data['enrolledCourses'] = EnrolledCourses::getEnrolledCourses();\n\t\t\t\t$this->data['endedCourses'] = EnrolledCourses::getEndedCourses();\n\t\t\t\t$this->data['profiling'] = User::getRegProfile();\t\n\t\t\t\t$this->data['profiling_ctr'] = $this->data['profiling'];\t\t\t\t\n\t\t\t} else if (Auth::check() && Auth::user()->user_type == 2) {\n\t\t\t\t$this->data['assigned_courses'] = Courses::getAssignedCourses();\n\t\t\t}\n\n\t\t\t$this->layout = View::make($this->layout, $this->data);\n\t\t}\n\t}", "public function setLayout($layout)\n {\n $this->layout = $layout;\n }", "public function setLayout($layout)\n {\n $this->layout = $layout;\n }", "public function setLayout($layout = [])\n {\n $this->layout = $this->getLayout($layout);\n $this->setFont($this->layout['font'], '', $this->layout['fontSize']);\n $this->setMargins($this->layout['pagePaddingLeft'], $this->layout['pagePaddingTop']);\n }", "function setPageLayout($page_layout) {\n if (!preg_match(\"/(?i)^(single-page|one-column|two-column-left|two-column-right)$/\", $page_layout))\n throw new Error(create_invalid_value_message($page_layout, \"page_layout\", \"html-to-pdf\", \"Allowed values are single-page, one-column, two-column-left, two-column-right.\", \"set_page_layout\"), 470);\n \n $this->fields['page_layout'] = $page_layout;\n return $this;\n }", "public function init()\n {\n $this->getHelper('layout')->setLayout('manage-layout');\n }", "public function setLayout(string $name);", "protected function setupLayout() {\n\t\tif ( ! is_null($this->layout)) {\n\n\n\t\t\t$cb_js_var = array(\n\t\t\t\t'site_url' => url('/'),\n\t\t\t\t'admin_url' => url('/admin'),\n\t\t\t\t'admin_assets_url' => asset('packages/vizioart/cookbook/'),\n\t\t\t\t'admin_api_url' => url('/admin/api')\n\t\t\t);\n\n\n\t\t\t$this->layout = View::make($this->layout, array(\n\t\t\t\t'cb_js_var' => $cb_js_var\n\t\t\t));\n\t\t}\n\t}", "public function setLayout($file);", "public function layout() {\r\n $this->template['header'] = $this->load->view('common/header', $this->data, true);\r\n $this->template['content'] = $this->load->view($this->content, $this->data, true);\r\n $this->template['footer'] = $this->load->view('common/footer', $this->data, true);\r\n $this->load->view('common/layout', $this->template);\r\n }", "public function initSetPageLayoutForm()\n\t{\n\t\tglobal $lng, $ilCtrl;\n\t\n\t\tinclude_once(\"Services/Form/classes/class.ilPropertyFormGUI.php\");\n\t\t$this->form = new ilPropertyFormGUI();\n\t\t\n\t\tif (is_array($_POST[\"id\"]))\n\t\t{\n\t\t\tforeach ($_POST[\"id\"] as $id)\n\t\t\t{\n\t\t\t\t$hi = new ilHiddenInputGUI(\"id[]\");\n\t\t\t\t$hi->setValue($id);\n\t\t\t\t$this->form->addItem($hi);\n\t\t\t}\n\t\t}\n\t\t$layout = ilObjContentObjectGUI::getLayoutOption($lng->txt(\"cont_layout\"), \"layout\",\n\t\t\t$this->content_object->getLayout());\n\n\t\t$this->form->addItem($layout);\n\t\n\t\t$this->form->addCommandButton(\"savePageLayout\", $lng->txt(\"save\"));\n\t\t$this->form->addCommandButton(\"showHierarchy\", $lng->txt(\"cancel\"));\n\t\t\n\t\t$this->form->setTitle($lng->txt(\"cont_set_layout\"));\n\t\t$this->form->setFormAction($ilCtrl->getFormAction($this));\n\t \n\t}", "protected function setLayout($name)\n {\n $this->layout = $name;\n }", "public function setLayout(array $layout){\n $this->_layout = $layout;\n }", "public static function setLayout($layout)\n {\n if(isset($layout) && !empty($layout)){\n self::$layout = $layout;\n }\n }", "public function layoutAction(){\n \t$far = 100;\n \t$sxnById = array();\n \t$request = $this->getRequest();\n \t$template_id = $request->getParam('template_id');\n \t$page_id = $request->getParam('page_id');\n \t$title = $request->getParam('title');\n \t$task = $request->getParam('task', null);\n \t$table = $this->_getParam('table');\n\n \tif($template_id){\n\t \tswitch($task){\n\t \t\tcase 'savelayout':{\n\t \t\t\t$this->saveLayout();\n\t \t\t\tbreak;\n\t \t\t}\n\n\t \t\tcase 'resetlayout':{\n\t \t\t\t$this->resetLayout();\n\t \t\t\tbreak;\n\t \t\t}\n\t \t}\n \t}\n\t\t \n\t\t$pageLayout = Rhema_Model_Service::factory('page_layout');\t\t\n \t$res = $pageLayout->getPageLayout($page_id, $template_id, $table); \n \t\n \t$items \t = $this->_editor->getCached()->getItems(); \t\n \t$templateData = $this->_editor->getCached()->getTemplateDetails($template_id);\n \t$items = array_merge($items, $templateData);\n \t \n \t$this->view->title = $title;\n \t//$this->view->sections \t= $templateData['sections'];\n \t$this->view->layout \t= $res['layout']; \n \t \n \t$formUrl['action']\t\t= 'layout';\n \t$formUrl['controller'] = 'design';\n \t$formUrl['module'] = 'cms';\n\n \t$formUrl['page_id'] = $page_id ;\n \t$formUrl['template_id'] = $template_id;\n \t$formUrl['title'] = $title;\n \t$formUrl['table'] = $table ;\n\n \t$this->view->formAction = $this->view->url($formUrl, ADMIN_ROUTE); \n\t\t$this->view->items = $items;\n\n \t$output['form'] = $this->view->render('design/layout.phtml');\n \t\n \t$this->_utility->setAjaxData(Zend_Json::encode($output));\n }", "protected function setLayout($name)\n {\n $this->template->setLayout($name);\n }", "public function useLayout($layout)\n {\n $this->layout = $layout;\n }", "function setLayoutOnce($layout) {\n $this->_layout_once = $layout;\n }", "protected function setLayout(string $layout)\n {\n $this->layout = $layout;\n }", "public function setLayout($layout) {\n\t\tif (file_exists(__APP_PATH.DS.'layout'.DS.$layout.'.phtml')) {\n\t\t\t$this->cache->layout = $layout;\n\t\t\treturn $this;\n\t\t}\n // Affiche le template par defaut\n if ($layout == 'default') {\n\t\t throw new Exception(\"Layout not found\", 1);\n }\n $this->setLayout('default');\n\t}", "public function init()\n\t{\n\t\t$this->_helper->layout()->setLayout('home');\n\t}" ]
[ "0.70402616", "0.70264167", "0.6970801", "0.6900936", "0.688196", "0.686234", "0.6860369", "0.6850382", "0.6846939", "0.68194157", "0.6806891", "0.677998", "0.676616", "0.6717198", "0.6700342", "0.6699667", "0.6695285", "0.6682658", "0.66800773", "0.66800773", "0.66800773", "0.66800773", "0.66800773", "0.66800773", "0.66800773", "0.66800773", "0.66800773", "0.66800773", "0.66800773", "0.66800773", "0.66800773", "0.66800773", "0.66800773", "0.66800773", "0.66800773", "0.66800773", "0.66800773", "0.66800773", "0.66800773", "0.66800773", "0.66800773", "0.66800773", "0.66800773", "0.66800773", "0.66800773", "0.6678152", "0.6673218", "0.6663898", "0.66631794", "0.66574347", "0.6656877", "0.66484946", "0.66450226", "0.66431105", "0.6641074", "0.6637599", "0.6637599", "0.663504", "0.663504", "0.663504", "0.663504", "0.663504", "0.66296905", "0.66296905", "0.6627294", "0.6623669", "0.660363", "0.6567096", "0.65646046", "0.65453774", "0.6527791", "0.6495597", "0.64902014", "0.647099", "0.6443532", "0.64233774", "0.6421273", "0.6377963", "0.635975", "0.6350411", "0.6339352", "0.6339352", "0.62736523", "0.62689734", "0.6254075", "0.62218016", "0.6153289", "0.61512876", "0.6145673", "0.61367214", "0.6130134", "0.6125182", "0.6116763", "0.6074417", "0.60729283", "0.6070158", "0.60414875", "0.6027731", "0.6019248", "0.60181737" ]
0.69818175
2
Retrieves a list of routes from the configuration
public function getRoutes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRoutes() {}", "public static function getRoutes();", "public static function getRoutes();", "public static function getRoutes() {\n return self::$instance->getRouteList();\n }", "public function getRouteList() {\n return $this->routes;\n }", "public static function routes()\n {\n return self::$routes;\n }", "public function getRoutes() {\n \treturn $this->routes;\n }", "public function routes()\r\n {\r\n return $this->routes;\r\n }", "public function getRoutes() : array;", "public function getRoutes() : array;", "public function getRoutes() {\n\n\t\t// Hydrate or generate application routes.\n\t\t$routesCacheKey = \"__routes__\";\n\t\t$routes = Celsus_Cache_Manager::cache($this->_bootstrapCacheName)->shared()->load($routesCacheKey);\n\t\tif (!$routes) {\n\n\t\t\t// Create a new route config object\n\t\t\t$routes = new Zend_Config(array(), true);\n\n\t\t\t// Load routes\n\t\t\t$routesPath = CONFIG_PATH . '/routes';\r\n\t\t\t$files = scandir($routesPath);\r\n\n\t\t\t// Iterate all the YAML files in the directory and merge the configs.\r\n\t\t\tforeach ($files as $file) {\r\n\t\t\t\t$routes->merge(new Zend_Config_Yaml($routesPath . \"/$file\"));\r\n\t\t\t}\r\n\r\n\t\t\t$routes->setReadOnly();\n\r\n\t\t\tCelsus_Cache_Manager::cache($this->_bootstrapCacheName)->shared()->save($routes, $routesCacheKey, array('routes'));\n\t\t}\n\n\t\treturn $routes;\n\t}", "public function getRoutes(): array\r\n {\r\n return $this->routes;\r\n }", "public function getRoutes(): array\r\n {\r\n return $this->routes;\r\n }", "static public function routes()\n\t{\n\t\tglobal $core;\n\t\tstatic $constructed;\n\n\t\tif (!$constructed)\n\t\t{\n\t\t\t$constructed = true;\n\n\t\t\tself::$routes += $core->configs->fuse('routes', array(__CLASS__, 'routes_constructor'));\n\t\t}\n\n\t\treturn self::$routes;\n\t}", "public function getRoutes ()\n {\n return $this->routes;\n }", "public static function getRoutes()\n {\n return self::$routes;\n }", "public static function getRoutes()\n {\n return self::$routes;\n }", "public function getListRoutes()\r\n {\r\n $result = array();\r\n \r\n if (count( $this->routes ))\r\n {\r\n foreach ( $this->routes as $act )\r\n {\r\n \r\n $route_str = '';\r\n if (isset( $this->default_params['url_prefix'] ) && ! empty( $this->default_params['url_prefix'] ))\r\n {\r\n $route_str = $this->default_params['url_prefix'];\r\n }\r\n \r\n if (is_array( $act['type'] ))\r\n {\r\n $route_str = implode( '|', $act['type'] ) . ' ' . $route_str;\r\n }\r\n else\r\n {\r\n $route_str = $act['type'] . ' ' . $route_str;\r\n }\r\n $route_str .= $act['route'];\r\n \r\n if (isset( $act['params']['ajax'] ) && (bool) ($act['params']['ajax']))\r\n {\r\n $route_str .= ' [ajax]';\r\n }\r\n \r\n $action_str = '';\r\n if (isset( $act['params']['namespace'] ) && ! empty( $act['params']['namespace'] ))\r\n {\r\n $action_str = (string) $act['params']['namespace'];\r\n }\r\n else\r\n {\r\n if (isset( $this->default_params['namespace'] ) && ! empty( $this->default_params['namespace'] ))\r\n {\r\n $action_str = $this->default_params['namespace'];\r\n }\r\n }\r\n $action_str .= '\\\\';\r\n \r\n if (isset( $act['params']['controller'] ))\r\n {\r\n $action_str .= (string) $act['params']['controller'];\r\n }\r\n else\r\n {\r\n if (isset( $this->default_params['controller'] ) && ! empty( $this->default_params['controller'] ))\r\n {\r\n $action_str .= $this->default_params['controller'];\r\n }\r\n }\r\n $action_str .= '->' . (string) $act['params']['action'];\r\n \r\n $kbps = $this->default_params['kbps'];\r\n if( isset( $act['params']['kbps'] ) ){\r\n \t$kbps = $act['params']['kbps'];\r\n }\r\n $ttl = $this->default_params['ttl'];\r\n if( isset( $act['params']['ttl'] ) ){\r\n \t$ttl = $act['params']['ttl'];\r\n }\r\n \r\n $route = new \\stdclass();\r\n $route->pattern = $route_str;\r\n $route->handler = $action_str;\r\n $route->ttl = $ttl;\r\n $route->kbps = $kbps;\r\n $result[] = $route;\r\n }\r\n }\r\n \r\n return $result;\r\n }", "public function getRoutes()\n\t{\n\t\treturn $this->routes;\n\t}", "public function getRoutes()\n\t{\n\t\treturn $this->routes;\n\t}", "public function getRoutes()\n\t{\n\t\treturn $this->routes;\n\t}", "public function getRoutes()\n {\n return $this->routes;\n }", "public function getRoutes()\n {\n return $this->routes;\n }", "public function getRoutes()\n {\n return $this->routes;\n }", "public function getRoutes()\n {\n return $this->routes;\n }", "public function getRoutes()\n {\n return $this->routes;\n }", "public function getRoutes()\n {\n return $this->routes;\n }", "public function getRoutes(){\n return $this->routes;\n }", "public function getRoutes() {\n\t\treturn $this->routes;\n\t}", "public function getRoutes()\n {\n if ($this->_routes === null) {\n $filename = 'routes.' . (!$this->_subdomain ? 'php' : $this->_subdomain . '.php');\n $path = App::getInstance()->getPath('configs') . '/' . $filename;\n include $path;\n $this->_routes = $routes;\n }\n\n return $this->_routes;\n }", "function getRoutes() {\n return $this->routes;\n }", "public function getRoutes() {\n return array();\n }", "public function all() {\n return $this->provider->getRoutesByNames(NULL);\n }", "public function getRoutes() {\n return $this->routes;\n }", "public function getRoutes() {\n return $this->routes;\n }", "public function getRoutes() {\n return $this->routes;\n }", "public static function getRoutes(): array\n {\n return self::$routes;\n }", "public function getRoutes() {\n\t\treturn $this->_routes;\n\t}", "public function getRoutes() {\n\n\t\treturn $this->_routes;\n\t}", "function getRoutes()\n {\n return $this->_routes;\n }", "public static function getList(){\n $list = [];\n \n foreach(self::$_routes as $k => $route){\n $list[$k] = [\n 'route' => $route,\n 'request' => self::$_requests[$k],\n 'options' => self::$_options[$k]\n ];\n }\n \n return $list;\n }", "public function getSystemRoutes();", "static function routes() {\n return self::$_routes;\n }", "public function getRoutes() {\n\t\treturn array_values($this->routes);\n\t}", "public static function get_all_route()\n {\n return include BASE_PATH . 'routes'. DIRECTORY_SEPARATOR . 'web.php';\n }", "public function getRoutes(): array\n\t{\n\t\treturn $this->_routes;\n\t}", "public function getRoutes()\n {\n return $this->_routeList->toArray();\n }", "public static function routes()\n {\n if (!static::$initialized) {\n static::_loadRoutes();\n }\n\n return static::$_collection->routes();\n }", "private function getRoutes()\r\n\t{\r\n\t\t$this->info('Loading Api routes...');\r\n\r\n\t\tif (config('openapischemas.router') === 'laravel') {\r\n\t\t\treturn Route::getRoutes();\r\n\t\t} else {\r\n\t\t\treturn app('Dingo\\Api\\Routing\\Router')->getRoutes()[config('openapischemas.routes_prefix')];\r\n\t\t}\r\n\t}", "public function getModuleRoutes()\n {\n return isset($this->config['module']['routes']) ? $this->config['modules']['routes'] : [];\n }", "public function all(): array\n {\n return $this->routes;\n }", "private function load_routes() {\n\n // 1. plugins routes\n foreach($this->context->plugins() as $plugin) {\n \n if(false === $plugin->is_type('IRoutesPlugin')) continue;\n\n foreach($plugin->routes() as $route_value) {\n $this->routes[]= $route_value;\n }\n }\n\n // 2. config.xml routes\n $config_routes= $this->context->config()->routes();\n // XXX: review, maybe Route[] should be returned by configurator?\n foreach( $config_routes as $r ) {\n // xxx. requirements\n $this->routes[]= new Route( \n (string)trim($r['name']), // name\n (string)trim($r['value']), // definition\n $this->context->config()->route_defaults($r) // array with defaults\n );\n }\n\n // Medick::dump($this->routes);\n\n // xxx: throw exception if 0 routes?\n }", "public function retrieve()\n {\n return (array) $this->routes;\n }", "protected function getRoutes()\n {\n $results = [];\n\n foreach ($this->routes as $route) {\n $results[] = $this->getRouteInformation($route);\n }\n\n if ($sort = $this->option('sort')) {\n $results = Arr::sort($results, function ($value) use ($sort) {\n return $value[$sort];\n });\n }\n\n if ($this->option('reverse')) {\n $results = array_reverse($results);\n }\n\n return array_filter($results);\n }", "public function getRoutes()\n {\n if (in_array(false, $this->loaded)) {\n $this->loadRoutes();\n }\n\n return $this->routes;\n }", "public function getRoutes()\r\n {\r\n $collection = $this->router->getRouteCollection();\r\n return $collection->all();\r\n }", "public function getRoutes()\n {\n return Controllers\\RoutesController::getInstance();\n }", "public function getAppRoutes()\n\t{\n\t\t$key = __METHOD__;\n\t\t$cache = Configs::instance()->cache;\n\t\tif ($cache === null || ($result = $cache->get($key)) === false) {\n\t\t\t$result = [];\n\t\t\t$this->getRouteRecrusive(Yii::$app, $result);\n\t\t\tif ($cache !== null) {\n\t\t\t\t$cache->set($key, $result, Configs::instance()->cacheDuration, new TagDependency([\n\t\t\t\t\t'tags' => self::CACHE_TAG\n\t\t\t\t]));\n\t\t\t}\n\t\t}\n\n\t\treturn $result;\n\t}", "public function getRoutes() {\r\n\t\treturn array_merge($this->getFunctionRoutes(), $this->getClassRoutes());\r\n\t}", "function add_listing_routes()\n {\n $this->add_route('GET', '/routes', function(){\n print \"<h1>Routes</h1>\";\n foreach($this->routes as $method => $routes) {\n print \"<h3>\".$method.\"</h3>\";\n print \"<ul>\";\n foreach ($routes as $route) {\n print \"<li>\".$route->path.\"</li>\";\n }\n print \"</ul>\";\n }\n });\n }", "public static function getRoutes(): array\n {\n require(root_path('routes.php'));\n return self::$called;\n }", "public function getRoutes()\n {\n /** @var WebApplication|ConsoleApplication $this */\n return $this->get('routes');\n }", "public function entries(){\n return $this->routes;\n }", "protected function getRoutes()\n {\n $resultRoutes = [];\n $apiPrefix = $this->helper->getApiPrefix();\n $apiPrefixLength = strlen($apiPrefix);\n \n foreach (Route::getRoutes() as $route) {\n \n $path = $route->uri();\n if (substr($path, 0, $apiPrefixLength) !== $apiPrefix) {\n $this->info('Omiting ' . $path);\n \n continue;\n }\n \n $routeFolder = $this->helper->getRouteFolder($route);\n if (!isset($resultRoutes[$routeFolder])) {\n $resultRoutes[$routeFolder] = [];\n }\n \n $resultRoutes[$routeFolder][] = $route;\n }\n \n return $resultRoutes;\n }", "public static function getRoutes()\n {\n $routes = new \\FreeFW\\Router\\RouteCollection();\n $paths = [];\n $paths[] = __DIR__ . '/../resource/routes/restful/routes.php';\n foreach ($paths as $onePath) {\n $apiRoutes = @include($onePath);\n if (is_array($apiRoutes)) {\n foreach ($apiRoutes as $routeId => $apiRoute) {\n $myRoute = new \\FreeFW\\Router\\Route();\n $myRoute\n ->setId($routeId)\n ->setMethod($apiRoute[\\FreeFW\\Router\\Route::ROUTE_METHOD])\n ->setUrl($apiRoute[\\FreeFW\\Router\\Route::ROUTE_URL])\n ->setController($apiRoute[\\FreeFW\\Router\\Route::ROUTE_CONTROLLER])\n ->setFunction($apiRoute[\\FreeFW\\Router\\Route::ROUTE_FUNCTION])\n ;\n if (array_key_exists(\\FreeFW\\Router\\Route::ROUTE_ROLE, $apiRoute)) {\n $myRoute->setRole($apiRoute[\\FreeFW\\Router\\Route::ROUTE_ROLE]);\n }\n if (array_key_exists(\\FreeFW\\Router\\Route::ROUTE_AUTH, $apiRoute)) {\n $myRoute->setAuth($apiRoute[\\FreeFW\\Router\\Route::ROUTE_AUTH]);\n }\n if (array_key_exists(\\FreeFW\\Router\\Route::ROUTE_INCLUDE, $apiRoute)) {\n $myRoute->setInclude($apiRoute[\\FreeFW\\Router\\Route::ROUTE_INCLUDE]);\n }\n if (array_key_exists(\\FreeFW\\Router\\Route::ROUTE_MODEL, $apiRoute)) {\n $myRoute->setDefaultModel($apiRoute[\\FreeFW\\Router\\Route::ROUTE_MODEL]);\n }\n if (array_key_exists(\\FreeFW\\Router\\Route::ROUTE_COLLECTION, $apiRoute)) {\n $myRoute->setCollection($apiRoute[\\FreeFW\\Router\\Route::ROUTE_COLLECTION]);\n }\n if (array_key_exists(\\FreeFW\\Router\\Route::ROUTE_COMMENT, $apiRoute)) {\n $myRoute->setComment($apiRoute[\\FreeFW\\Router\\Route::ROUTE_COMMENT]);\n }\n if (array_key_exists(\\FreeFW\\Router\\Route::ROUTE_PARAMETERS, $apiRoute)) {\n $myRoute->setParameters($apiRoute[\\FreeFW\\Router\\Route::ROUTE_PARAMETERS]);\n }\n if (array_key_exists(\\FreeFW\\Router\\Route::ROUTE_RESULTS, $apiRoute)) {\n $myRoute->setResponses($apiRoute[\\FreeFW\\Router\\Route::ROUTE_RESULTS]);\n }\n if (array_key_exists(\\FreeFW\\Router\\Route::ROUTE_SCOPE, $apiRoute)) {\n $myRoute->setScope($apiRoute[\\FreeFW\\Router\\Route::ROUTE_SCOPE]);\n }\n $routes->addRoute($myRoute);\n }\n }\n }\n return $routes;\n }", "public function getRoutes()\n {\n $routes = array();\n array_push($routes, CoreControllerObject::buildAction('/admin/performanceutils', __CLASS__, CoreControllerObject::MATCH_TYPE_STRING));\n return $routes;\n }", "public static function getRoutes()\n {\n $a = array();\n $router = ROUTER::init();\n foreach ($router->assigns as $ass)\n {\n if (isset($ass['module']) and isset($ass['action']))\n {\n $a[] = array('route' => $ass['route'], 'execute' => $router->current_dir . '/' . $ass['module'] . '/' . $ass['action'] . '.action.php');\n }\n elseif (isset($ass['function']))\n {\n $a[] = array('route' => $ass['route'], 'function' => $ass['function']);\n }\n else\n {\n /*do nothing*/;\n }\n }\n return $a;\n }", "function getRoutes($print = false){\n if($print == true){\n echo '<pre>' . htmlspecialchars( print_r($this->routes, true) ) . '</pre>';\n }else{\n return $this->routes;\n }\n }", "public function route_list()\n {\n return $this->createResponseStructure(\n ApiInterface::SUCCESS_STATUS,\n Response::HTTP_OK,\n AppProcessInterface::RESOURCE,\n $this->get_routes()\n );\n }", "public function all()\n {\n return self::$allRoutes;\n }", "protected function _loadRoutes()\n {\n if (file_exists(APP_PATH .'config/routes.php')) {\n return require_once(APP_PATH .'config/routes.php');\n } else {\n return array();\n }\n }", "public function getRoutes()\n {\n return $this->routeNodes;\n }", "public function getRoutes()\n\t{\n\t\t$routes = array();\n\t\tarray_push($routes, CoreControllerObject::buildAction('/login', __CLASS__, CoreControllerObject::MATCH_TYPE_STRING));\n\t\treturn $routes;\n\t}", "public function getRoutes()\n {\n $results = array();\n\n foreach ($this->routes as $route) {\n if ($route->getActionName() != 'Closure') {\n $results[] = $this->getRouteInformation($route);\n }\n }\n\n return Collection::make(array_filter($results));\n }", "public function getRouteCollection()\n {\n\n // retrieve the registered handlers\n $handlers = $this->handlerManager->getHandler();\n\n // prepare the collection with the available routes and initialize the route counter\n $routes = new RouteCollection();\n $counter = 0;\n\n // iterate over the available handlers and prepare the routes\n foreach ($handlers as $urlPattern => $handler) {\n $pattern = str_replace('/*', \"/{placeholder_$counter}\", $urlPattern);\n $route = new Route($pattern, array(\n $handler\n ), array(\n \"{placeholder_$counter}\" => '.*'\n ));\n $routes->add($counter ++, $route);\n }\n\n // return the collection with the routes\n return $routes;\n }", "public function getRoutes()\n {\n return $this->collection;\n }", "public function getRoutesDefinition()\n {\n $lang = Environment::getConfig('lang');\n\n $routeList = new RouteList();\n $routeList[] = $frontRouter = new RouteList('Front');\n $frontRouter[] = new Route(\"[<locale={$lang} sk|hu|cs>/]<presenter>/<action>[/<id>]\", array(\n 'presenter' => array(\n Route::VALUE => 'Homepage',\n Route::FILTER_TABLE => array(\n 'testovaci' => 'Test',\n// 'presmerovano' => 'TestRedirect',\n ),\n ),\n 'action' => array(\n Route::VALUE => 'default',\n Route::FILTER_TABLE => array(\n 'operace-ok' => 'operationSuccess',\n ),\n ),\n 'id' => null,\n 'locale' => [\n Route::FILTER_TABLE => [\n 'cz' => 'cs',\n 'sk' => 'sk',\n 'pl' => 'pl',\n 'com' => 'en'\n ]]\n ));\n return $routeList;\n\n }", "public static function routes()\r\n {\r\n return [\r\n [\"uri\" => \"/\", \"action\" => \"get\", \"uses\" => \"IndexController@index\"],\r\n [\"uri\" => \"/\", \"action\" => \"post\", \"uses\" => \"IndexController@handle\"],\r\n [\"uri\" => \"/api\", \"action\" => \"get\", \"uses\" => \"APIController@handle\"],\r\n ];\r\n }", "public function getRoutes(): array\r\n {\r\n return [\r\n [\r\n 'name' => 'admin/post/admin',\r\n 'path' => '/admin',\r\n 'middleware' => 'Admin\\Action\\Post\\Admin',\r\n 'allowed_methods' => ['POST']\r\n ],\r\n [\r\n 'name' => 'admin/form/admin',\r\n 'path' => '/admin/form[/{id:\\d+}]',\r\n 'middleware' => 'Admin\\Action\\Form\\Admin',\r\n 'allowed_methods' => ['GET']\r\n ],\r\n [\r\n 'name' => 'admin/user/view/resultset',\r\n 'path' => '/admin/user/resultset',\r\n 'middleware' => 'Admin\\User\\Action\\View\\ResultSet',\r\n 'allowed_methods' => ['GET']\r\n ]\r\n ];\r\n }", "protected static function getRoutesClasses()\n {\n return [];\n }", "public function getAdapterRoutes()\n {\n return $this->adapter->getRoutes();\n }", "protected function routes()\n {\n if ($this->app->routesAreCached()) {\n return;\n }\n\n\n /**\n * Porteiro; Routes\n */\n $this->loadRoutesForRiCa(__DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'routes');\n }", "public static function all()\n\t{\n\t\treturn Route::$_routes + Kohana::$tree['routes']['external'];\n\t}", "public function getRoutes()\n {\n return collect($this->attributes)\n ->map(function (array $attributes) {\n return $this->newRoute($attributes);\n })\n ->merge($this->routes->getRoutes())\n ->values()\n ->all();\n }", "public function getRoutes()\n {\n\n $routes = array();\n\n array_push($routes, CoreControllerObject::buildAction('/admin/system/lessvariables', __CLASS__, CoreControllerObject::MATCH_TYPE_STRING));\n\n return $routes;\n\n }", "public static function load_routing_table() {\n $file = CONFIG_PATH . \"Routes.php\";\n\n if (file_exists($file)) {\n require $file;\n if (!isset($routes)) {\n $routes = array();\n }\n } else {\n $routes = array();\n }\n\n return $routes;\n }", "public function getRoutes()\n {\n return array( new ezpRestVersionedRoute( new ezcMvcRailsRoute( '/content/node/:nodeId/listAtom', 'ezpRestAtomController', 'collection' ), 1 ),\n new ezpRestVersionedRoute( new ezcMvcRailsRoute( '/content/node/:nodeId/list', 'ezpRestContentController', 'list' ), 1 ),\n new ezpRestVersionedRoute( new ezcMvcRailsRoute( '/content/node/:nodeId', 'ezpRestContentController', 'viewContent' ), 1 ),\n new ezpRestVersionedRoute( new ezcMvcRailsRoute( '/content/node/:nodeId/fields', 'ezpRestContentController', 'viewFields' ), 1 ),\n new ezpRestVersionedRoute( new ezcMvcRailsRoute( '/content/node/:nodeId/field/:fieldIdentifier', 'ezpRestContentController', 'viewField' ), 1 ),\n new ezpRestVersionedRoute( new ezcMvcRailsRoute( '/content/object/:objectId', 'ezpRestContentController', 'viewContent' ), 1 ),\n new ezpRestVersionedRoute( new ezcMvcRailsRoute( '/content/object/:objectId/fields', 'ezpRestContentController', 'viewFields' ), 1 ),\n new ezpRestVersionedRoute( new ezcMvcRailsRoute( '/content/object/:objectId/field/:fieldIdentifier', 'ezpRestContentController', 'viewField' ), 1 ) );\n }", "private static function loadRoutes() {\n\t\t\t$appRoutesJson = file_get_contents(JIAOYU_PROJECT_HOME.\"/app/conf/routes.json\");\n\t\t\ttry {\n\t\t\t\t$appRoutes = JsonUtils::decode($appRoutesJson);\n\t\t\t} catch (JsonException $e) {\n\t\t\t\tthrow new ConfigurationException(\"Error initializing app routes: \".$e->getMessage());\n\t\t\t}\n\n\t\t\t// Each json object in the array represents a route, so we should build them up\n\t\t\t// from the data.\n\t\t\tforeach ($appRoutes as $rawRoute) {\n\t\t\t\tself::$routes[] = Route::buildFromJson($rawRoute);\n\t\t\t}\n\t\t}", "public function getRoutes()\n {\n if (!empty($this->services)) {\n foreach ($this->services as $service) {\n /** @var RouteServiceInterface $service */\n $serviceRoutes = $service->getRoutes();\n if (!empty($serviceRoutes)) {\n $serviceName = get_class($service);\n foreach ($serviceRoutes as $i => $r) {\n if (is_array($r)) {\n $r = new Route($r);\n }\n $this->routes[sanitize_title($serviceName . '#' . $i)] = $r;\n }\n }\n }\n }\n\n return $this->routes;\n }", "function get_all_routes()\n {\n $this->db->order_by('id');\n return $this->db->get('routes')->result_array();\n }", "public function\n\tGetRoutes():\n\t?Array {\n\n\t\treturn $this->Routes;\n\t}", "public function routes() {\n $storage = $this->entityTypeManager->getStorage('graphql_server');\n /** @var \\Drupal\\graphql\\Entity\\ServerInterface[] $servers */\n $servers = $storage->loadMultiple();\n $routes = [];\n\n // Allow all authentication providers by default.\n $auth = array_keys($this->authenticationCollector->getSortedProviders());\n\n foreach ($servers as $id => $server) {\n $path = $server->get('endpoint');\n\n $routes[\"graphql.query.$id\"] = (new Route($path))\n ->addDefaults([\n 'graphql_server' => $id,\n '_graphql' => TRUE,\n '_controller' => '\\Drupal\\graphql\\Controller\\RequestController::handleRequest',\n '_disable_route_normalizer' => TRUE,\n ])\n ->addRequirements([\n '_graphql_query_access' => 'graphql_server:{graphql_server}',\n '_format' => 'json',\n ])\n ->addOptions([\n '_auth' => $auth,\n 'no_cache' => TRUE,\n 'default_url_options' => ['path_processing' => FALSE],\n 'parameters' => ['graphql_server' => ['type' => 'entity:graphql_server']]\n ]);\n }\n\n return $routes;\n }", "public function get_routes() {\n\t\t$endpoints = array(\n\t\t\t// Meta endpoints\n\t\t\t'/' => array( array( $this, 'get_index' ), self::READABLE ),\n\t\t);\n\n\t\t$endpoints = apply_filters( 'json_endpoints', $endpoints );\n\n\t\t// Normalise the endpoints\n\t\tforeach ( $endpoints as $route => &$handlers ) {\n\t\t\tif ( count( $handlers ) <= 2 && isset( $handlers[1] ) && ! is_array( $handlers[1] ) ) {\n\t\t\t\t$handlers = array( $handlers );\n\t\t\t}\n\t\t}\n\t\treturn $endpoints;\n\t}", "public function get_routes($route_namespace = '')\n {\n }", "public function getRoutesByName()\n {\n return collect($this->getRoutes())\n ->keyBy(function (Route $route) {\n return $route->getName();\n })\n ->all();\n }", "public function getDbRoutes(): array\n {\n $routes = [];\n\n $results = (new Query())\n ->select(['id', 'siteId', 'uriParts', 'template'])\n ->from(['{{%routes}}'])\n ->orderBy(['sortOrder' => SORT_ASC])\n ->all();\n\n foreach ($results as $result) {\n $uriDisplayHtml = '';\n $uriParts = Json::decode($result['uriParts']);\n\n foreach ($uriParts as $part) {\n if (is_string($part)) {\n $uriDisplayHtml .= Html::encode($part);\n } else {\n $uriDisplayHtml .= Html::encodeParams('<span class=\"token\" data-name=\"{name}\" data-value=\"{value}\"><span>{name}</span></span>',\n [\n 'name' => $part[0],\n 'value' => $part[1]\n ]);\n }\n }\n\n $routes[] = [\n 'id' => $result['id'],\n 'siteId' => $result['siteId'],\n 'uriDisplayHtml' => $uriDisplayHtml,\n 'template' => $result['template']\n ];\n }\n\n return $routes;\n }", "public function routes($var=null)\n {\n if ($var) return $this->routes[$var] ?? null;\n\n return $this->routes;\n }", "public function getRoutes()\n {\n if ($this->routes->isEmpty()) {\n foreach ($this->loaded as $bundle) {\n if (null !== $bundle->getRoutes()) {\n $this->routes->addCollection($bundle->getRoutes());\n }\n }\n }\n\n return $this->routes;\n }", "Function getAllRoutes()\n\t{\n\t\t$sql = \"SELECT * FROM route\";\n\t\t$result = $this->conn->query($sql);\n\t\tif ($result->num_rows > 0) {\n\t\t\twhile ($row = $result->fetch_assoc()) {\n\t\t\t\t$routes[] = new Route($row['start_point'], $row['end_point'], $row['route_id'], $row['route_name'], $row['distance'], $row['duration']);\n\t\t\t}\n\t\t\treturn $routes;\n\t\t} else {\n\t\t\treturn [];\n\t\t}\n\t}" ]
[ "0.8112833", "0.81005996", "0.81005996", "0.78083193", "0.7688392", "0.7659955", "0.76549745", "0.7652547", "0.761148", "0.761148", "0.75968593", "0.75691354", "0.75691354", "0.7551015", "0.7546803", "0.7545471", "0.7545471", "0.75180453", "0.7514486", "0.7514486", "0.7514486", "0.7502368", "0.7502368", "0.7502368", "0.7502368", "0.7502368", "0.7502368", "0.74955696", "0.7491971", "0.74866647", "0.7467955", "0.74243283", "0.7420335", "0.74112785", "0.74112785", "0.74112785", "0.7374724", "0.73696905", "0.73634326", "0.73560965", "0.73518515", "0.73485553", "0.7346279", "0.73458976", "0.7330099", "0.7318522", "0.72942495", "0.72809196", "0.72795844", "0.7261304", "0.72371083", "0.71871036", "0.7140455", "0.71342695", "0.7078953", "0.70674926", "0.7035615", "0.7026264", "0.70139843", "0.70060664", "0.70046705", "0.69695956", "0.6964578", "0.69292414", "0.69078684", "0.6900039", "0.6877417", "0.6871545", "0.6868225", "0.6808643", "0.6808368", "0.67988485", "0.67937535", "0.67681056", "0.67644405", "0.675844", "0.67526585", "0.67419106", "0.6741488", "0.6732511", "0.6710591", "0.67044175", "0.6690053", "0.66889447", "0.668071", "0.6680326", "0.6676653", "0.66161287", "0.65968555", "0.6595243", "0.65733993", "0.65673196", "0.65412676", "0.6540575", "0.653905", "0.65261745", "0.6505037", "0.6498971", "0.64985603" ]
0.81995606
1
Gets the requested route
public function getRoute($url);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRoute();", "function getCurrentRoute() {\n $santitizedUrl = ''; \n if (!empty($_GET['route'])) {\n $santitizedUrl = trim($_GET['route']);\n }\n \n return $this->getMatchingRoute($santitizedUrl);\n }", "public static function getRoute() {\n\n\t\tif (self::_hasAdapter(get_class(), __FUNCTION__))\n\t\t\treturn self::_callAdapter(get_class(), __FUNCTION__);\n\n\t\t$route = (isset(self::$route_options['route'])) ? self::$route_options['route'] : null;\n\n\t\tself::_notify(get_class() . '::' . __FUNCTION__, $route);\n\t\t$route = self::_applyFilter(get_class(), __FUNCTION__, $route, array('event' => 'return'));\n\n\t\treturn $route;\n\t}", "public function get_matched_route()\n {\n }", "private function getRoute(){\n\t}", "abstract public function getRoute();", "public function get_route()\n {\n }", "public function getRoute()\n {\n return $this->route;\n }", "public function getRoute()\n {\n return $this->route;\n }", "public function getRoute()\n {\n return $this->route;\n }", "public function getRoute()\n {\n return $this->route;\n }", "public function getRoute()\n {\n return $this->route;\n }", "public function getRoute()\n {\n return $this->route;\n }", "public function getRoute()\n {\n return $this->route;\n }", "public function getRoute()\r\n {\r\n return $this->route;\r\n }", "public function getRoute()\n\t{\n\t\treturn $this->route;\n\t}", "public function getRoute() {\n\t\treturn $this->route;\n\t}", "public static function route()\n {\n return self::$route;\n }", "public function getRoute()\n {\n }", "function getRoute()\n{\n\t// Get the requested uri from the server exluding the domain name.\n\t$uri = strtok($_SERVER['REQUEST_URI'], '?');\n\n\t// Remove the site path from the uri so we only get the segments\n\t// that we actually want.\n\t$uri = str_replace(SITE_PATH, '', $uri);\n\n\treturn $uri;\n}", "public function getRoute() {\n \n return $this->route;\n \n }", "public function getFullRoute();", "function getRoute() {\n\t\treturn $this->config()->route;\n\t}", "public function getRoute(){\n return $this->route;\n }", "public function getRequestRoute(): ?string\n {\n return $this->requestRoute;\n }", "public function route() {\n\t\t$method = $_SERVER['REQUEST_METHOD'];\n\t\t$request = (isset($_SERVER['PATH_INFO'])) ? explode(\"/\", trim($_SERVER['PATH_INFO'], \"/\")) : \"\";\n\t\t\n\t\treturn $this->routeRequest($method, $request);\n\t}", "public function getRoute()\n {\n return $this->oauth_route;\n }", "public function getRoute() : string\n {\n return $this->route;\n }", "public function getRoute()\r\n {\r\n return $this->Route;\r\n }", "public function getRouteMatch();", "public static function getCurrentRoute() {\t\t\n\t\t$route = self::$controller.'/'.self::$method;\n\t\tif( !empty(self::$parameters) ) {\n\t\t\t$route .= '/'.implode('/', self::$parameters);\n\t\t}\n\t\t\n\t\treturn $route;\n\t}", "public function getCurrentRoute()\n {\n return substr(\n $_SERVER['REQUEST_URI'],\n (strlen($this->config->get('site.dir')) - 1)\n );\n }", "public function getMatchedRoute() {\n\n\t\treturn $this->_matchedRoute;\n\t}", "public function route()\n {\n return call_user_func($this->getRouteResolver());\n }", "public function fetch_route()\n\t{\n\t\treturn $this->route_stack;\n\t}", "public function get_route($request_route) {\n\n\n if (array_key_exists($request_route[\"_method\"], $this->_routes)) {\n\n if (array_key_exists($request_route[\"_rule\"], $this->_routes[$request_route[\"_method\"]])) {\n return $this->_routes[$request_route[\"_method\"]][$request_route[\"_rule\"]];\n } else { // search for match routes\n\n foreach ($this->_routes[$request_route[\"_method\"]] as $_route) {\n\n if ($_route->_match) {\n\n $request_rule = explode(\"/\", trim($request_route[\"_rule\"], \"/\"));\n $permit_rule = explode(\"/\", trim($_route->_rule, \"/\"));\n\n if (count($request_rule) == count($permit_rule)) {\n $match = true;\n foreach ($request_rule as $index => $value) {\n\n if (($request_rule[$index] != $permit_rule[$index]) and ($permit_rule[$index] != ApplicationRoute::dynamical_segment)) {\n $match = false;\n break;\n }\n }\n if ($match) {\n\n $permit_match_rule = explode(\"/\", trim($_route->_match_rule, \"/\"));\n preg_match_all('@:([\\w]+)@', $_route->_match_rule, $segments, PREG_PATTERN_ORDER);\n $segments = $segments[0];\n\n // get methodları için locals'a yükle : değişkenler\n foreach ($segments as $segment) {\n if ($index = array_search($segment, $permit_match_rule)) {\n $_route->_locals[substr($segment, 1)] = $request_rule[$index];\n }\n }\n\n return $_route;\n }\n }\n }\n }\n }\n return null;\n //throw new ConfigurationException(\"Böyle bir yönlendirme mevcut değil\", $request_route[\"_method\"] . \":\" . $request_route[\"_rule\"]);\n }\n throw new ConfigurationException(\"Uzay çağında bizim henüz desteklemediğimiz bir method\", $request_route[\"_method\"]);\n }", "public function getCurrentRoute()\n {\n return $this->currentRoute;\n }", "public function getCurrentRoute()\n {\n return $this->currentRoute;\n }", "abstract public function getRouteMatch();", "public function getRoute(): string\n {\n return (string) $this->route;\n }", "public function getCurrentRoute(){\n\n\t\t$route = $this->getRouter()->match();\n\t\tif($route){\n\t\t\treturn $route['name'];\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "protected function route()\n {\n return route($this->uri, $this->params);\n }", "public static function getRoute()\n {\n global $req;\n\n $route = [];\n $uri = trim($req->getPathInfo(), '/');\n $uri = explode('/', $uri);\n\n $route['base'] = $uri[0];\n $route['section'] = empty($uri[1]) ? '' : $uri[1];\n $route['action'] = empty($uri[2]) ? '' : $uri[2];\n $route['page'] = $uri[count($uri)-1];\n\n return $route;\n }", "public function getRoute($name){ }", "function get()\n {\n $route = substr($_SERVER['REQUEST_URI'], 1);\n // $route = explode('?', $slug)[0];\n $route = rtrim($route, \"/\");\n $matches = explode('/', $route);\n\n\n $route = $this->bind($matches);\n\n if ($route) {\n // print_r($route);\n return $route['body'];\n } else {\n set_http_code(404);\n return $this->getErrorPage('404');\n }\n }", "private function getRoute() {\n $path = $_SERVER['PATH_INFO'];\n\n $parts = explode('/', trim($path, '/'));\n $action = array_shift($parts);\n $this->uri_params = $parts;\n\n if (!$action) $action = 'index';\n $action .= 'Action';\n return array($this, $action);\n }", "public function getRoute(): Route;", "public function getCurrentRoute()\n {\n if (isset($this->currentRoute)) {\n return $this->currentRoute;\n } elseif (! $this->hasDispatchedRoutes() || ! $route = $this->container['request']->route()) {\n return;\n }\n\n return $this->currentRoute = $this->createRoute($route);\n }", "public static function getCallingRoute()\r\n {\r\n if(app()->has('routeResolvedData')){\r\n return app()->get('routeResolvedData');\r\n }\r\n \r\n return [];\r\n }", "function rest_get_queried_resource_route()\n {\n }", "public function get()\n\t{\n\t\t\n\t\t$route = $this->__path;\n\t\t\n\t\tif( $this->__mapper )\n\t\t{\n\t\t\t\n\t\t\t$map = $this->__mapper->match($this->__path);\n\t\t\n\t\t\tif( $map )\n\t\t\t{\n\t\t\t\t$route = $map;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn self::sanetize($route);\n\t\t\n\t}", "public function getMatchRoute()\n {\n return $this->_matchRoute;\n }", "function getRouteName();", "function route_method(): string\n{\n return RouteController::getCurrentRoute()['method'] ?? '';\n}", "public function getApiRoute(): string;", "function route_uri(): string\n{\n return RouteController::getCurrentRoute()['uri'] ?? '';\n}", "public function getRouteMatch() {\n return $this->routeMatch;\n }", "public function GetRouteInfo()\n {\n $result = null;\n $request = rtrim(trim(Application::$Request['url'], \"/\"));\n\n if (count($this->Routes) > 0) {\n foreach ($this->Routes as $route) {\n if ($route->Match($request)) {\n $this->CurrentRoute = $route;\n break;\n }\n }\n\n if (!is_null($this->CurrentRoute)) {\n $result = $this->CurrentRoute->GetInvokeInfo($request);\n } else {\n // @TODO To Application, redirect to 404\n trigger_error(\"[Router] No routes found for current request\", E_USER_ERROR);\n }\n } else {\n trigger_error(\"[Router] No routes registered yet\", E_USER_ERROR);\n }\n\n return $result;\n }", "public function getWebRoute(): string;", "public function find_current_route()\n {\n\n if ( false !== $key = \\Chocolatine\\array_find( $this->routes, 'route', $this->current_pattern ) ) {\n $this->current_route = $this->routes[ $key ];\n }\n\n return $this->current_route;\n }", "public function getURI()\t{\n\t\treturn $this->route;\n\t}", "public function &getRoute() : \\Amvisie\\Core\\Route\n {\n return $this->route;\n }", "function findRoute($route = '') {\n $route = $route ? $route : FIRE_DEFAULT_ROUTE;\n return $this->_routes->get($route);\n }", "protected static function requestRoute() {\n $route = [];\n\n $currentUrlOptions = parse_url($_SERVER['REQUEST_URI']);\n $fullUri = $currentUrlOptions['path'];\n $prefixLen = strlen(self::$uriPrefix);\n if ($fullUri == self::$uriPrefix){ //all default\n $route['controller'] = '';\n $route['action'] = '';\n } elseif (substr($fullUri, 0, $prefixLen) === self::$uriPrefix) {\n $uri = substr($fullUri, $prefixLen);\n $parts = explode('/', rtrim($uri, '/'));\n $route['controller'] = ucfirst($parts[0]);\n $route['action'] = isset($parts[1]) ? ucfirst($parts[1]) : '';\n } else {\n //do nothing\n }\n\n return $route;\n }", "public function get_route_to_controller(){\n\t\treturn $this->route_to_controller;\n\t}", "public function getRouteName();", "public static function route();", "public function fetch_path()\n\t{\n\t\treturn $this->route_stack[self::SEG_PATH];\n\t}", "public function getRouteAction(): ?string\n {\n return $this->routeAction;\n }", "private function getURI()\n {\n\n if (!empty($_SERVER['REQUEST_URI'])) {\n\n $routeRule = trim($_SERVER['REQUEST_URI'], '/');\n\n // Get part of uri without GET request if it exist (ignore GET)\n if (preg_match('/\\?/', $routeRule)) {\n // get rule for router which based on request uri\n $routeRule = explode('?', $routeRule);\n $routeRule = array_shift($routeRule);\n // normalize route rule\n $routeRule = trim($routeRule, '/');\n }\n return $routeRule;\n }\n }", "protected function _findRoute()\n {\n $result = false;\n \n if ('/' == $this->_uri || '' == $this->_uri)\n {\n $result = $this->_routingTable['/'];\n }\n else\n {\n foreach ($this->_routingTable as $route => $settings)\n {\n if (preg_match(\":^/?$route/?$:\", $this->_uri, $a)) {\n $result = array();\n $result['controller'] = $settings['controller'];\n $result['params'] = array_merge($settings['params'], $a);\n break;\n }\n }\n }\n return $result;\n }", "abstract protected function getRoute($destination);", "public function getConsoleRoute(): string;", "public function route() {\n\t\t// Start the profiler\n\t\tProfiler::register('Core', 'Router');\n\n\t\t// First, let's look at the URL the user supplied\n\t\t$requestUrl = array_values(array_filter(explode('/', Request::getUrl())));\n\t\t$requestRoute = null;\n\n\t\t// Loop over each route and test to see if they are valid\n\t\tforeach (self::$_routes as $route) {\n\t\t\tif ($this->routeTest($requestUrl, $route)) {\n\t\t\t\t$requestRoute = $route;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// We have completed the route matching\n\t\t// Finish the setup of the request object\n\t\tProfiler::register('Core', 'Request');\n\t\tif ($requestRoute) {\n\t\t\t$_GET['controller'] = $route->endpoint['controller'];\n\t\t\t$_GET['action'] = $route->endpoint['action'];\n\t\t\tRequest::setUrlFragments(str_replace($this->_routePath, '', Request::getUrl()));\n\t\t} else {\n\t\t\tRequest::setUrlFragments(Request::getUrl(), true);\n\t\t}\n\t\tProfiler::deregister('Core', 'Request');\n\n\t\t// Inform the event listener a request has been initialised\n\t\tEvent::trigger(\n\t\t\t'initRequest',\n\t\t\tarray(\n\t\t\t\t'controller' => Request::get('controller'),\n\t\t\t\t'action' => Request::get('action')\n\t\t\t)\n\t\t);\n\n\t\t// And stop the profiler\n\t\tProfiler::deregister('Core', 'Router');\n\t\tProfiler::deregister('Core', 'Front');\n\n\t\t// And dispatch\n\t\tDispatcher::loadController(\n\t\t\tRequest::get('controller'),\n\t\t\tRequest::get('action')\n\t\t);\n\t}", "public function getRoute($route) {\n return isset($this->routes[$route]) ? $this->routes[$route] : null;\n }", "public function &route(){\n return $this->__route;\n }", "public function currentRoute(): Route\n {\n return app(Route::class);\n }", "public function getRouteKey();", "public function getRouteKey();", "static function route () {\n\t\tif (isset($_GET['path'])) {\n\t\t\t$get_path = $_GET['path'];\n\t\t}\n\t\telse {\n\t\t\t$get_path = '/';\n\t\t}\n\n\t\t// check if GET path has a match, show 404 by default if it does not\n\t\t$parameters = [];\n\t\t$controller_method = 'AppController::four_zero_four';\n\n\t\tforeach (self::$routes as $route) {\n\t\t\tif ($route['regex_path'] != '/') {\n\t\t\t\t$route['regex_path'] = trim($route['regex_path'], '/');\n\t\t\t}\n\n\t\t\tif (preg_match('|^'.$route['regex_path'].'$|i', $get_path, $parameters)) {\n\t\t\t\t// match found for GET path\n\t\t\t\tif ($route['auth_required'] == 'not_signed_in' && AppUser::is_signed_in()) {\n\t\t\t\t\t// auth required is not_signed_in and user is signed in, redirect to dashboard\n\t\t\t\t\tRedirector::redirect('dashboard');\n\t\t\t\t}\n\t\t\t\telse if ($route['auth_required'] == 'signed_in' && !AppUser::is_signed_in()) {\n\t\t\t\t\t// auth required is signed in and user is not signed in, redirect to sign in page\n\t\t\t\t\tRedirector::redirect('sign_in');\n\t\t\t\t}\n\n\t\t\t\tif ($route['permission_required'] == null || AppUser::has_permission($route['permission_required'])) {\n\t\t\t\t\t// set controller method if user has permission\n\t\t\t\t\t$controller_method = $route['controller_method'];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// user does not have permission, redirect to index\n\t\t\t\t\tRedirector::redirect('/');\n\t\t\t\t}\n\n\t\t\t\t// remove first parameter as it is the GET path and not a value we want\n\t\t\t\tif (!empty($parameters)) {\n\t\t\t\t\tunset($parameters[0]);\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// route to the corresponding controller method\n\t\tcall_user_func_array($controller_method, $parameters);\n\t}", "public function getRouteTo() {\n return $this->routeTo;\n }", "public function getRequestedPath() {\n return $this->request_path;\n }", "public static function currentRouteName()\n {\n $uri = explode('?', $_SERVER['REQUEST_URI'])[0];\n\n foreach (self::$routes as $key => $val) \n {\n if ($uri === $val['url']) \n {\n return $key;\n }\n }\n }", "function route_pattern(): string\n{\n return RouteController::getCurrentRoute()['pattern'] ?? '';\n}", "public function currentRouteAction()\n {\n if (! $route = $this->current()) {\n return;\n }\n\n $action = $route->getAction();\n\n return \\is_string($action['uses']) ? $action['uses'] : null;\n }", "private function _getRoute($path)\n {\n if (strpos($this->request->getPath(), '/api') === 0) {\n $routes = $this->config->get('routes:rest');\n } else {\n $routes = $this->config->get('routes');\n }\n\n foreach ($routes as $name => $data) {\n\n if ($target = $this->_getDirectMatch($path, $data)) {\n return $target;\n } else if ($target = $this->_getVariableMatch($path, $data)) {\n return $target;\n }\n\n }\n\n throw new MethodNotFoundException('No matching route for path \"' . $path . '\" found');\n }", "function current_route_uri()\n {\n return RouteController::getCurrentRoute()['uri'] ?? '';\n }", "function current_route_method()\n {\n return RouteController::getCurrentRoute()['method'] ?? '';\n }", "public static function optsRoute()\n {\n return \\Yii::$app->getModule('pages')->availableRoutes;\n }", "public function getApiRoute(){\n\n return $this->api_route;\n \n }", "public function current()\n {\n return $this->getCurrentRoute();\n }", "public function GetRouteClass ();", "protected function findRoute(Request $request)\n {\n return $this->currentRoute = $this->routes->match($request);\n }", "public function route()\n {\n $path = Url::getPath();\n\n // If no routes exist, set 404\n if (count($this->routes) == 0)\n {\n return;\n }\n\n // Check if exact match (cheap)\n if ((isset($this->routes[$path]))\n && (!$this->routes[$path]['is_regex']))\n {\n $this->dispatch($this->routes[$path]);\n exit;\n }\n\n // Loop through all routes and attempt to find a match. (expensive)\n foreach ($this->routes as $i => $route)\n {\n $matches = null;\n\n // If route found\n if (($route['is_regex'])\n && (preg_match($route['match'], $path, $matches)))\n {\n // Remove full match from array list\n array_shift($matches);\n\n $this->dispatch($route, $matches);\n exit;\n }\n }\n }", "public function route()\n\t{\n\t\t/* [http|https]/[Ajax|]/[Get|Post|Delete|Put]/uri */\n\t\t$this->route = $this->route_raw = ($this->c->Request->is_https ? 'https' : 'http').'/'.($this->c->Request->is_ajax ? 'Ajax' : '').'/'.$this->c->Request->request.'/'.$this->c->Request->uri;\n\n\t\t/* call dispatch event */\n\t\t$this->c->Event->preRouter();\n\n\t\t/* rewrite dispatch route */\n\t\tforeach ($this->c->router['routes'] as $regexpath => $switchto) {\n\t\t\tif (preg_match($regexpath, $this->route)) {\n\t\t\t\t/* we got a match */\n\t\t\t\t$this->route = preg_replace($regexpath, $switchto, $this->route);\n\t\t\t\t$this->route_matched = $regexpath;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t/* call dispatch event */\n\t\t$this->c->Event->postRouter();\n\n\t}", "public function getNodeRoute();", "public function getRoute($command)\n {\n if ($command instanceof IGearmanJob) {\n $command = $command->getCommandName();\n }\n\n $command = strtolower($command);\n return $this->_routeList->itemAt($command);\n }", "public function current() \n {\n $node = current($this->dispatchables);\n return ($node !== false ? $node['route'] : false);\n }", "function getRouteParameters();", "protected function GET($route)\n {\n return $this->REQUEST('GET', $route);\n }" ]
[ "0.8087906", "0.7977709", "0.78582853", "0.7846032", "0.7831022", "0.77706826", "0.7697197", "0.7647665", "0.7647665", "0.7647665", "0.7647665", "0.7647665", "0.7647665", "0.7647665", "0.7638722", "0.7626381", "0.7618621", "0.757604", "0.75664353", "0.75005597", "0.7486706", "0.7481122", "0.74726987", "0.74245596", "0.7337414", "0.7336172", "0.72911274", "0.7287351", "0.7286009", "0.72676384", "0.72319996", "0.7231714", "0.71860313", "0.7179429", "0.71583897", "0.7149127", "0.7124399", "0.7124399", "0.71147823", "0.71061695", "0.70387155", "0.700778", "0.6975264", "0.694629", "0.69444203", "0.6929284", "0.69223714", "0.691787", "0.69125396", "0.6910778", "0.6879977", "0.68642884", "0.6837017", "0.68052053", "0.67706174", "0.6769272", "0.67689574", "0.67473835", "0.6739581", "0.6720599", "0.6706112", "0.6665533", "0.6638129", "0.6614016", "0.66092664", "0.65916735", "0.65782875", "0.65508616", "0.65455663", "0.6543265", "0.65385085", "0.65322965", "0.65144205", "0.6507167", "0.64985657", "0.64674985", "0.64641535", "0.64312834", "0.64312834", "0.6413981", "0.6389708", "0.6373225", "0.6360001", "0.635575", "0.6354071", "0.6343002", "0.6326721", "0.6321248", "0.63084817", "0.6293468", "0.6292458", "0.62762594", "0.6271621", "0.62633073", "0.625375", "0.6253394", "0.62459224", "0.61784184", "0.61724895", "0.6161544" ]
0.6751751
57
Gets a url from the specified route
public function getUrl($route, array $args = null);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRoute($url);", "public function getUrl($route = '', $params = []);", "public function getUrl($route = '') {\r\n\t\treturn $this->protocol.'://'.$this->host.$this->getUri($route);\r\n\t}", "public function getUri($route = '') {\r\n\t\treturn $this->baseUrl.(($this->lang == $this->defLang) ? '' : ($this->lang.'/')).ltrim($route, '/');\r\n\t}", "private function getUrl($route = '', array $params = []) {\n return $this->urlBuilder->getUrl($route, $params);\n }", "public function getRoute();", "function route_url(string $route, array $params = [], string $amp = '&amp;') {\n return Micro::get(Router::class)->url($route, $params, $amp);\n }", "public static function get($route)\n {\n $path = preg_replace('/\\:(.*)/', '', self::$routes[$route]['url']);\n $args = func_get_args();\n\n if (count($args) > 1):\n unset($args[0]);\n foreach ($args as $arg):\n $path .= $arg . \"/\";\n endforeach;\n $path = rtrim($path, '/');\n endif;\n\n return ($path);\n }", "public function getUrl($route = '', $params = []) {\n \n return $this->urlBuilder->getUrl($route, $params);\n \n }", "public function getUrl($route='', $params=array())\n {\n return Mage::helper('adminhtml')->getUrl($route, $params);\n }", "protected function getUrl($route = '', $params = [])\n {\n return $this->urlBuilder->getUrl($route, $params);\n }", "abstract public function getRoute();", "static function route($url)\n {\n return App::router()->extractRoute($url);\n }", "public function getUrl(string $route = '', array $params = []): string\n {\n return $this->urlBuilder->getUrl($route, $params);\n }", "public function getUrl($route = '', $params = [])\n {\n return $this->urlBuilder->getUrl($route, $params);\n }", "public function getUrl($route = '', $params = [])\n {\n return $this->urlBuilder->getUrl($route, $params);\n }", "private function getRoute(){\n\t}", "public function getUrl($route = '', $params = [])\n {\n return $this->context->getUrlBuilder()->getUrl($route, $params);\n }", "public function getUrl($route = '', $params = [])\n {\n return $this->context->getUrlBuilder()->getUrl($route, $params);\n }", "public function getUrl($route = '', $params = [])\n {\n return $this->context->getUrlBuilder()->getUrl($route, $params);\n }", "public function getUrl($route = '', $params = [])\n {\n return $this->context->getUrlBuilder()->getUrl($route, $params);\n }", "public function getUrl($route, $params = []) {\n return $this->_getUrl($route, $params);\n }", "public static function makeUrl(string $route, array $params = []): string\n {\n $params['resource'] = $params['resource'] ?? static::uriKey();\n\n return route('admin.' . $route, $params, true);\n }", "public static function route($param = '')\n {\n return static::$URL.$param;\n }", "public function get_route()\n {\n }", "public function getUrl($route = '', $params = array())\n {\n $return = parent::getUrl($route, $params);\n if ($this->_isTigoMoneyOrder() && $this->_getDataHelper()->getSuccessContinueShoppingUrl()) {\n $return = $this->_getDataHelper()->getSuccessContinueShoppingUrl();\n }\n return $return;\n }", "public static function route($param)\n\t{\n\t\treturn static::$URL.$param;\n\t}", "public function getRoute($url){\n\n foreach($this->routes as $route){\n\n if ($route->isMatch($url)){\n\n return $route;\n\n }\n\n }\n\n throw new \\RuntimeException('bad url');\n\n }", "public function getRoute()\n {\n }", "public function getRoute($name){ }", "public function getRoute(): Route;", "public static function route($param)\n {\n return static::$URL.$param;\n }", "public static function route($param)\n {\n return static::$URL.$param;\n }", "public static function route($param)\n {\n return static::$URL.$param;\n }", "public static function route($param)\n {\n return static::$URL.$param;\n }", "public static function route($param)\n {\n return static::$URL.$param;\n }", "public function route($route, $param = null)\n\t{\n\t\tif($route == '/')\n\t\t{\n \treturn route('cupboard.index');\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn \\URL::route('cupboard.'.$route, $param);\n\t\t}\n\t}", "function findRoute($route = '') {\n $route = $route ? $route : FIRE_DEFAULT_ROUTE;\n return $this->_routes->get($route);\n }", "public static function getRoute($view=\"image\") {\n\t\n\t\t//the basic link without an Itemid\n\t\t$link = 'index.php?option=com_scaler';\n\t\n\t\t//search for menu\n\t\t$itemid = self::getItemId($view);\n\t\n\t\tif ($itemid)\n\t\t\t$link .= '&Itemid=' . $itemid;\n\t\telse\n\t\t\t$link .= '&view=' . $view;\n\t\n\t\treturn $link;\n\t}", "public static function getRoute() {\n\n\t\tif (self::_hasAdapter(get_class(), __FUNCTION__))\n\t\t\treturn self::_callAdapter(get_class(), __FUNCTION__);\n\n\t\t$route = (isset(self::$route_options['route'])) ? self::$route_options['route'] : null;\n\n\t\tself::_notify(get_class() . '::' . __FUNCTION__, $route);\n\t\t$route = self::_applyFilter(get_class(), __FUNCTION__, $route, array('event' => 'return'));\n\n\t\treturn $route;\n\t}", "function get()\n {\n $route = substr($_SERVER['REQUEST_URI'], 1);\n // $route = explode('?', $slug)[0];\n $route = rtrim($route, \"/\");\n $matches = explode('/', $route);\n\n\n $route = $this->bind($matches);\n\n if ($route) {\n // print_r($route);\n return $route['body'];\n } else {\n set_http_code(404);\n return $this->getErrorPage('404');\n }\n }", "function getRoute()\n{\n\t// Get the requested uri from the server exluding the domain name.\n\t$uri = strtok($_SERVER['REQUEST_URI'], '?');\n\n\t// Remove the site path from the uri so we only get the segments\n\t// that we actually want.\n\t$uri = str_replace(SITE_PATH, '', $uri);\n\n\treturn $uri;\n}", "public function getUrl($route, array $args = null)\n {\n return\n $this->getRequest()->getBaseDir() .\n $this->getService('router')->getUrl($route, $args)\n ;\n }", "protected function generateRouteUrl($route = null)\n {\n if (null === $route || strpos($route, '/') !== 0) {\n return $route;\n }\n\n if (null === $this->getRouteMatch()) {\n throw new Exception\\RuntimeException('No RouteMatch instance provided');\n }\n\n $routeName = $this->getRouteMatch()->getMatchedRouteName();\n\n if ($routeName === null) {\n throw new Exception\\RuntimeException('RouteMatch does not contain a matched route name');\n }\n\n $position = strpos($routeName, '/');\n\n if ($position !== false) {\n /**\n * If we request the name /, it will mean that we need to only get\n * the root part of the route without any other module route params\n */\n if ('/' === $route) {\n $results = substr($routeName, 0, $position);\n } else {\n $results = substr($routeName, 0, $position) . $route;\n }\n } else {\n if ('/' === $route) {\n $results = $routeName;\n } else {\n $results = $routeName . $route;\n }\n }\n\n return $results;\n }", "private static function getRegexUrl($route)\r\n {\r\n $route = self::quoteRegex($route);\r\n\r\n $route = preg_replace('/\\{:num\\}/', self::NUMBER, $route);\r\n $route = preg_replace('/\\{:alpha\\}/', self::ALPHA, $route);\r\n $route = preg_replace('/\\{[a-zA-Z0-9:$]+\\}/', self::ANY, $route);\r\n\r\n return $route;\r\n }", "public function getWebRoute(): string;", "public function getUrl($route = '', $params = [])\n {\n if (!array_key_exists('_secure', $params)) {\n $params['_secure'] = $this->getRequest()->isSecure();\n }\n return parent::getUrl($route, $params);\n }", "function getCurrentRoute() {\n $santitizedUrl = ''; \n if (!empty($_GET['route'])) {\n $santitizedUrl = trim($_GET['route']);\n }\n \n return $this->getMatchingRoute($santitizedUrl);\n }", "function route_uri(): string\n{\n return RouteController::getCurrentRoute()['uri'] ?? '';\n}", "final static function getRoute($route, array $args = NULL) {\n $abs_route = root . '/' . $route;\n if (isset($args)) {\n $abs_route .= '/' . implode('/', $args);\n }\n return $abs_route;\n }", "public function url($route, $parameters = array())\n {\n return $this['url_generator']->generate($route, $parameters, true);\n }", "public function url()\n {\n return $this->routeObject->url['uri'];\n }", "abstract protected function getRoute($destination);", "function route($route, $data = \"\")\n{\n if (!empty($data)) {\n $data = \"/{$data}\";\n }\n\n return App::get('base_url') . \"/{$route}\" . $data;\n}", "public function getURI()\t{\n\t\treturn $this->route;\n\t}", "public function getRoute($route) {\n return isset($this->routes[$route]) ? $this->routes[$route] : null;\n }", "protected function route()\n {\n return route($this->uri, $this->params);\n }", "public static function get(array $route) {\n if (isset($route['controller']) && isset($route['method'])) {\n $instance = self::getInstance();\n\n $route = $instance->_resolveAlias($route);\n\n if ($route !== null) {\n return $route;\n }\n }\n\n throw new notFound();\n }", "public function createUrl($manager, $route, $params)\n {\n $query = Request::find()\n ->where(['auth_item' => $route]);\n \n//echo $query->prepare(Yii::$app->db->queryBuilder)->createCommand()->rawSql;exit;\n $uriRoute = $query->one(); \n if(!empty($uriRoute->id)){\n return $uriRoute->uri;\n }\n return false;\n }", "protected function getUrl($route, $params = array(), $absolute = UrlGeneratorInterface::ABSOLUTE_PATH)\n {\n return $this->getContainer()->get('router')->generate($route, $params, $absolute);\n }", "public function generateURL($route): string\n {\n $responseURL = $this->getDomain() . '/' . $route;\n if (isset($_COOKIE['PluginSetPreview'])) {\n $responseURL .= '?pluginSetPreview=' . $_COOKIE ['PluginSetPreview'];\n }\n return $responseURL;\n }", "public static function route();", "public function getFullRoute();", "public function get_url();", "public function routeURL($url, $itemid, $jname = '', $route = true, $xhtml = true)\n\t{\n\t\t$event = new Event('onApplicationRoute');\n\n\t\t$event->setArgument('url', $url);\n\t\t$event->setArgument('itemid', $itemid);\n\t\t$event->setArgument('jname', $jname);\n\t\t$event->setArgument('route', $route);\n\t\t$event->setArgument('xhtml', $xhtml);\n\n\t\tFactory::getDispatcher()->triggerEvent($event);\n\n\t\treturn $event->getArgument('url');\n\t}", "public function getRoute(){\n return $this->route;\n }", "function getRoute() {\n\t\treturn $this->config()->route;\n\t}", "public function getRoute()\r\n {\r\n return $this->route;\r\n }", "function route($route_name)\n {\n global $router; \n return $router->generate($route_name);\n }", "public function getRoute()\n {\n return $this->route;\n }", "public function getRoute()\n {\n return $this->route;\n }", "public function getRoute()\n {\n return $this->route;\n }", "public function getRoute()\n {\n return $this->route;\n }", "public function getRoute()\n {\n return $this->route;\n }", "public function getRoute()\n {\n return $this->route;\n }", "public function getRoute()\n {\n return $this->route;\n }", "public function getRoute()\n {\n return $this->oauth_route;\n }", "public static function getFeedRoute($url)\n\t{\n\t\t// Get the router.\n\t\t$app = JApplication::getInstance('site');\n\t\t$router = $app->getRouter();\n\n\t\t// Make sure that we have our router\n\t\tif (!$router)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\tif ((strpos($url, '&') !== 0) && (strpos($url, 'index.php') !== 0))\n\t\t{\n\t\t\treturn $url;\n\t\t}\n\n\t\t// Build route.\n\t\t$uri = $router->build($url);\n\t\t$url = $uri->toString(array('path', 'query', 'fragment'));\n\n\t\t// Replace spaces.\n\t\t$url = preg_replace('/\\s/u', '%20', $url);\n\n\t\t// Replace '/administrator'\n\t\t$url = str_replace('/administrator', '', $url);\n\n\t\t// Strip .html, just in case\n\t\t$url = str_replace('.html', '', $url);\n\n\t\t$url = htmlspecialchars($url);\n\n\t\treturn $url;\n\t}", "public static function route()\n {\n return self::$route;\n }", "public static function url($route, $scheme = false)\n {\n return Url::toRoute($route, $scheme);\n }", "function url($route,$params=array(),$ampersand='&')\n{\n\tif (Yii::app() instanceof CConsoleApplication)\n\t{\n\t\treturn Yii::app()->params['host'].Yii::app()->getUrlManager()->createUrl($route,$params,$ampersand);\n\t}\n\telse\t\n\t\treturn Yii::app()->createUrl($route,$params,$ampersand);\n}", "static function get($route, $callback){\n\t\treturn call_user_func_array(__NAMESPACE__ .'\\Route::load', func_get_args());\n\t}", "function define_route($route)\n {\n return $route !== '#' ? route($route) : '#';\n }", "public function get_matched_route()\n {\n }", "public function getRoute() {\n\t\treturn $this->route;\n\t}", "public function getRoute()\n\t{\n\t\treturn $this->route;\n\t}", "public function get($route, $controllerAction = '');", "public function getRoute() {\n \n return $this->route;\n \n }", "abstract public function getRouteMatch();", "public function GetRoute ()\n {\n // things that need to be figured out;\n $params = $this->GetPayload()->extract();\n $options = array ();\n\n if (null === $this->mRouter)\n {\n throw new Exception('No RouteStackInterface instance provided');\n }\n\n if ($this->mRouteName === null)\n {\n throw new Exception('RouteName not defined for ' . get_class($this));\n }\n\n $options['name'] = $this->mRouteName;\n\n $url = $this->mRouter->assemble($params, $options);\n\n return $url;\n }", "public function get_route($request_route) {\n\n\n if (array_key_exists($request_route[\"_method\"], $this->_routes)) {\n\n if (array_key_exists($request_route[\"_rule\"], $this->_routes[$request_route[\"_method\"]])) {\n return $this->_routes[$request_route[\"_method\"]][$request_route[\"_rule\"]];\n } else { // search for match routes\n\n foreach ($this->_routes[$request_route[\"_method\"]] as $_route) {\n\n if ($_route->_match) {\n\n $request_rule = explode(\"/\", trim($request_route[\"_rule\"], \"/\"));\n $permit_rule = explode(\"/\", trim($_route->_rule, \"/\"));\n\n if (count($request_rule) == count($permit_rule)) {\n $match = true;\n foreach ($request_rule as $index => $value) {\n\n if (($request_rule[$index] != $permit_rule[$index]) and ($permit_rule[$index] != ApplicationRoute::dynamical_segment)) {\n $match = false;\n break;\n }\n }\n if ($match) {\n\n $permit_match_rule = explode(\"/\", trim($_route->_match_rule, \"/\"));\n preg_match_all('@:([\\w]+)@', $_route->_match_rule, $segments, PREG_PATTERN_ORDER);\n $segments = $segments[0];\n\n // get methodları için locals'a yükle : değişkenler\n foreach ($segments as $segment) {\n if ($index = array_search($segment, $permit_match_rule)) {\n $_route->_locals[substr($segment, 1)] = $request_rule[$index];\n }\n }\n\n return $_route;\n }\n }\n }\n }\n }\n return null;\n //throw new ConfigurationException(\"Böyle bir yönlendirme mevcut değil\", $request_route[\"_method\"] . \":\" . $request_route[\"_rule\"]);\n }\n throw new ConfigurationException(\"Uzay çağında bizim henüz desteklemediğimiz bir method\", $request_route[\"_method\"]);\n }", "protected function getRoute ($route = null)\n {\n $route_requested = $this->replaceDirectorySeparator($route);\n $route_absolute = $this->replaceDirectorySeparator(realpath($this->absolute));\n\n // If it is absolute route\n if (!preg_match(\"/^\\/{2}/\", $route_requested))\n $route_requested = preg_replace(\"/^\\/(.+)/\", $route_absolute . \"/$1\", $route_requested);\n\n // Remove last slash `/`\n $route_requested = preg_replace(\"/(.+)\\/$/\", \"$1\", $route_requested);\n\n // Return to system slash `DIRECTORY_SEPARATOR`\n $route_requested = $this->replaceDirectorySeparator($route_requested, DIRECTORY_SEPARATOR);\n\n // Return\n return $route_requested;\n }", "public function getRoute() : string\n {\n return $this->route;\n }", "public function getApiRoute(): string;", "public function findByUrl(string $url): RoutingEntry;", "public function get($route, $callback)\r\n {\r\n $this->registerRoute(self::cleanUrl($route), $callback);\r\n }", "public function getUserRoute($route, array $user) {\n\t\t$route = Configure::read('User.routes.' . $route);\n\n\t\tif (!$route) {\n\t\t\treturn null;\n\t\t}\n\n\t\t$route = (array) $route;\n\n\t\tforeach ($route as &$value) {\n\t\t\tif ($value === '{id}') {\n\t\t\t\t$value = $user['id'];\n\n\t\t\t} else if ($value === '{slug}' && isset($user['slug'])) {\n\t\t\t\t$value = $user['slug'];\n\n\t\t\t} else if ($value === '{username}') {\n\t\t\t\t$value = $user[Configure::read('User.fieldMap.username')];\n\t\t\t}\n\t\t}\n\n\t\treturn $this->url($route);\n\t}", "protected function GET($route)\n {\n return $this->REQUEST('GET', $route);\n }", "public function getRouteMatch();", "public function getRoute($url) {\n\n\t\tforeach ($this->getRoutes() as $route) {\n\t\t\t// Route match ? CAtch the match and assign it to the route\n\t\t\tif ($matches = $route->match($url)) {\n\t\t\t\tif ($route->hasVars()) {\n\t\t\t\t\t$varNames = $route->getVars();\n\t\t\t\t\t$vars = [];\n\n\t\t\t\t\t// On commence à un car preg_match retourne dans le première élément toute l'URL (voir doc)\n\t\t\t\t\tfor ($i = 1; $i < count($matches) - 1; $i++) {\n\t\t\t\t\t\t// Clé : le nom de la variable avec le match associé à cette position \n\t\t\t\t\t\t$vars[$varNames[$i - 1]] = $matches[$i];\n\t\t\t\t\t}\n\n\t\t\t\t\t$route->setVars($vars);\n\n\t\t\t\t}\n\n\t\t\t\treturn $route;\n\t\t\t}\n\n\t\t}\n\t\tthrow new \\Exception(\"Error Processing Request : no route match\", 1);\n\t\t\n\t}" ]
[ "0.7969044", "0.77095366", "0.75016326", "0.7209435", "0.718855", "0.71775043", "0.71334857", "0.7097974", "0.7069494", "0.7004759", "0.69976777", "0.69789064", "0.69508755", "0.6905447", "0.6817693", "0.6817693", "0.6810103", "0.66973996", "0.66973996", "0.66973996", "0.66973996", "0.66954696", "0.6685403", "0.6632582", "0.6585702", "0.65855694", "0.65726775", "0.6562587", "0.6541121", "0.65378153", "0.6530825", "0.65274924", "0.65274924", "0.65274924", "0.65274924", "0.65274924", "0.6474421", "0.6473022", "0.6441117", "0.64382106", "0.6425668", "0.6421172", "0.63948745", "0.6380613", "0.63790816", "0.6378466", "0.63688815", "0.6362575", "0.63592094", "0.63250375", "0.63234156", "0.63189054", "0.6311364", "0.6296791", "0.6283642", "0.6274637", "0.6270628", "0.6245555", "0.624264", "0.6236964", "0.62351936", "0.623278", "0.6209222", "0.61815816", "0.61652994", "0.6161092", "0.61587304", "0.61395836", "0.6126877", "0.60975003", "0.60975003", "0.60975003", "0.60975003", "0.60975003", "0.60975003", "0.60975003", "0.6093063", "0.60901904", "0.6084043", "0.6068281", "0.60398275", "0.6038326", "0.60365105", "0.6029867", "0.60142446", "0.6004567", "0.60033506", "0.60012126", "0.59944594", "0.59925413", "0.5989088", "0.5985933", "0.59855914", "0.5979878", "0.5973237", "0.5970739", "0.5967684", "0.5959417", "0.5956508", "0.59322196" ]
0.7695049
2
Sets the main layout
public function setLayout($file);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setupLayout() {\n\t\tif (!is_null($this -> layout)) {\n\t\t\t$this -> layout = View::make($this -> layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tdefine(\"aol_institute\", 68);\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "public function initLayout();", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout, $this->_data);\n\t\t\t$this->layout->content = null;\n\t\t\t$this->layout->currentProject = null;\n\t\t}\n\t}", "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = view($this->layout);\n $this->layout->menus = Menu::getMenu() ;\n }\n }", "protected function setupLayout() {\n\t\tif ( ! is_null($this->layout)) {\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif (!is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\r\n\t{\r\n\t\tif ( ! is_null($this->layout))\r\n\t\t{\r\n\t\t\t$this->layout = View::make($this->layout);\r\n\t\t}\r\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout() {\n if (!is_null($this->layout)) $this->layout = View::make($this->layout);\n }", "protected function setupLayout()\n\t{\n\t\tif (!is_null($this->layout)) {\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout)) {\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif (!is_null($this->layout)) {\n\t\t\t$this->layout = view($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n\n }", "protected function setupLayout() {\n if ( ! is_null($this->layout)) {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if (!is_null($this->layout)) {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if (!is_null($this->layout)) {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if (!is_null($this->layout)) {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if (!is_null($this->layout)) {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if (!is_null($this->layout)) {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if (! is_null($this->layout)) {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n }", "public function setLayout() {\n if ($this->controller == 'login' || $this->controller == 'infos') {\n $this->viewBuilder()->setLayout('empty');\n } else if ($this->controller == 'ajax') {\n $this->viewBuilder()->setLayout('ajax');\n } else {\n $this->viewBuilder()->setLayout('chotreo');\n }\n }", "protected function setupLayout()\n {\n if (!is_null($this->layout)) {\n $this->layout = \\View::make($this->layout);\n }\n }", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\n\t\t$this->setLocale();\n\t}", "protected function setupLayout()\n\t{\n\t\t$button['text'] = \"login\";\n\t\t$button['url'] = route('login');\n\n\t\tif(Auth::check())\n\t\t{\n\t\t\t$button['text'] = \"logout\";\n\t\t\t$button['url'] = route('logout');\n\t\t\t$this->logged_in_user = Auth::user();\n\t\t\t$notif = new Notification();\n\t\t\t$notifications = $notif->getNotifications($this->logged_in_user->id);\n\t\t\t$new = 0;\n\t\t\tforeach ($notifications as $not) {\n\t\t\t\tif($not->seen == 0)\n\t\t\t\t{\n\t\t\t\t\t$new++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$rating_types = RatingType::getRatingTypes($this->logged_in_user->id);\n\n\t\t\tView::share('notifications', $notifications);\n\t\t\tView::share('new', $new);\n\t\t\tView::share('rating_types', $rating_types);\n\t\t\tView::share('logged_in_user', $this->logged_in_user);\n\t\t}\n\n\t\tView::share('button', $button);\n\t\tView::share('show_feed', $this->show_feed);\n\t\t//Get image path info for all poster and backdrop images\n\t\t$t = new TheMovieDb();\n \t\t$this->image_path_config = $t->getImgPath();\n\t\tView::share('image_path_config', $this->image_path_config);\n\n\n\t\t\n\n\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout) && ! $this->is_pjax())\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout() {\n\t\tif ( ! is_null($this->layout)) {\n\n\n\t\t\t$cb_js_var = array(\n\t\t\t\t'site_url' => url('/'),\n\t\t\t\t'admin_url' => url('/admin'),\n\t\t\t\t'admin_assets_url' => asset('packages/vizioart/cookbook/'),\n\t\t\t\t'admin_api_url' => url('/admin/api')\n\t\t\t);\n\n\n\t\t\t$this->layout = View::make($this->layout, array(\n\t\t\t\t'cb_js_var' => $cb_js_var\n\t\t\t));\n\t\t}\n\t}", "protected function initLayout()\n {\n $showLabels = $this->hasLabels();\n $showErrors = $this->getConfigParam('showErrors');\n $this->mergeSettings($showLabels, $showErrors);\n $this->buildLayoutParts($showLabels, $showErrors);\n }", "protected function _constructMainLayout()\n {\n if (class_exists('tracer_class')) {\n tracer_class::marker(array(\n 'create main layout for display',\n debug_backtrace(),\n '#006400'\n ));\n }\n\n if ($this->_get) {\n $typ = $this->_get->pageType();\n } else {\n $typ = NULL;\n }\n\n switch ($typ) {\n case'css': case'js':\n $this->DISPLAY['core'] = '{;css_js;}';\n break;\n\n default:\n $this->layout($this->_defaultOptions['template']);\n break;\n }\n }", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\treturn $this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n\n if (Request::Ajax())\n {\n $this->layout = View::make('layouts.ajax');\n }\n else\n $this->layout = View::make($this->layout);\n\n $this->layout->content = \" \";\n }\n }", "public function init()\n {\n $this->getHelper('layout')->setLayout('manage-layout');\n }", "public function init()\n\t{\n\t\t$this->_helper->layout()->setLayout('home');\n\t}", "public function setCleanLayout()\n {\n $this->layout = \"@app/modules/site/views/layouts/public_clean\";\n }", "function index(){\n $this->layout = 'default';\n }", "private function setLayouts() {\n # list of layout names!\n $availableLayouts = $this->fileMaker->listLayouts();\n\n foreach ($availableLayouts as $layoutName){\n if ($this->name === 'mi' or $this->name === 'miw') {\n if ($layoutName == 'search-'.strtoupper($this->name)) {\n $this->search_layout = $this->fileMaker->getLayout($layoutName);\n } else if ($layoutName == 'results-'.strtoupper($this->name)) {\n $this->result_layout = $this->fileMaker->getLayout($layoutName);\n } else if ($layoutName == 'details-'.strtoupper($this->name)) {\n $this->detail_layout = $this->fileMaker->getLayout($layoutName);\n }\n } else {\n if (str_contains($layoutName, 'search')) {\n $this->search_layout = $this->fileMaker->getLayout($layoutName);\n } else if (str_contains($layoutName, 'results')) {\n $this->result_layout = $this->fileMaker->getLayout($layoutName);\n } else if (str_contains($layoutName, 'details')) {\n $this->detail_layout = $this->fileMaker->getLayout($layoutName);\n }\n }\n }\n }", "protected function setupLayout() {\n\t\t$this->data['route'] = Route::getCurrentRoute()->getPath();\t\n\t\tif ( ! is_null($this->layout)) {\n\t\t\t$this->data['enrolledCourses'] = NULL;\n\t\t\t\n\t\t\tif (Auth::check() && in_array(Auth::user()->user_type, array(3, 5))) {\n\t\t\t\t$this->data['enrolledCourses'] = EnrolledCourses::getEnrolledCourses();\n\t\t\t\t$this->data['endedCourses'] = EnrolledCourses::getEndedCourses();\n\t\t\t\t$this->data['profiling'] = User::getRegProfile();\t\n\t\t\t\t$this->data['profiling_ctr'] = $this->data['profiling'];\t\t\t\t\n\t\t\t} else if (Auth::check() && Auth::user()->user_type == 2) {\n\t\t\t\t$this->data['assigned_courses'] = Courses::getAssignedCourses();\n\t\t\t}\n\n\t\t\t$this->layout = View::make($this->layout, $this->data);\n\t\t}\n\t}", "public function init()\n {\n \t$this->_helper->layout()->setLayout('admin');\n }", "function initializeFilesLayout() {\n $this->loadFilesMenubar();\n // navigation stuff\n $this->layout->add($this->getSearchPanel());\n $this->layout->add($this->getTagsPanel());\n $this->layout->add($this->getFolderPanel());\n // file list\n $this->layout->add($this->getClipboardPanel());\n $this->layout->add($this->getFilesPanel());\n // dialog\n $this->layout->setParam('COLUMNWIDTH_CENTER', '50%');\n $this->layout->setParam('COLUMNWIDTH_RIGHT', '50%');\n }", "function set_layout($layout) {\n $this->layout = $layout;\n }", "public function layout() {\r\n $this->template['header'] = $this->load->view('common/header', $this->data, true);\r\n $this->template['content'] = $this->load->view($this->content, $this->data, true);\r\n $this->template['footer'] = $this->load->view('common/footer', $this->data, true);\r\n $this->load->view('common/layout', $this->template);\r\n }", "public function renderLayout();", "public function render_screen_layout()\n {\n }", "protected function makeViewLayout()\n {\n new MakeLayout($this, $this->files);\n }", "public function init()\n {\n \t$this->view->layout = array();\n }", "public function init() {\n parent::init();\n $this->layout = 'static';\n }", "public function xlayouts() {\n\t\t$templates = $this->getModel ( 'layout' );\n\t\t$templates->getAll ( 'appliesto = \"Global\"' );\n\t\t/* set last view into session */\n\t\t$this->session->returnto ( $this->getView () );\n\t\t\n\t\t$this->setView ( 'layouts' );\n\t}", "function initLayout(){\n $layout = array(\n 'left' => array(\n 'ProfileInfo' => array(\n 'title' => 'Profile Info',\n 'minimize' => false,\n ),\n 'EmailInboxMenu' => array(\n 'title' => 'Inbox Menu',\n 'minimize' => false,\n ),\n 'ActionMenu' => array(\n 'title' => 'Actions',\n 'minimize' => false,\n ),\n 'TopContacts' => array(\n 'title' => 'Top Contacts',\n 'minimize' => false,\n ),\n 'RecentItems' => array(\n 'title' => 'Recently Viewed',\n 'minimize' => false,\n ),\n 'ActionTimer' => array(\n 'title' => 'Action Timer',\n 'minimize' => true,\n ),\n 'UserCalendars' => array(\n 'title' => 'User Calendars',\n 'minimize' => false,\n ),\n 'CalendarFilter' => array(\n 'title' => 'Filter',\n 'minimize' => false,\n ),\n 'GroupCalendars' => array(\n 'title' => 'Group Calendars',\n 'minimize' => false,\n ),\n 'FilterControls' => array(\n 'title' => 'Filter Controls',\n 'minimize' => false,\n ),\n 'SimpleFilterControlEventTypes' => array(\n 'title' => 'Event Types',\n 'minimize' => false,\n ),\n ),\n 'right' => array(\n 'SmallCalendar' => array(\n 'title' => 'Small Calendar',\n 'minimize' => false,\n ),\n 'ChatBox' => array(\n 'title' => 'Activity Feed',\n 'minimize' => false,\n ),\n 'GoogleMaps' => array(\n 'title' => 'Google Map',\n 'minimize' => false,\n ),\n 'OnlineUsers' => array(\n 'title' => 'Active Users',\n 'minimize' => false,\n ),\n 'TagCloud' => array(\n 'title' => 'Tag Cloud',\n 'minimize' => false,\n ),\n 'TimeZone' => array(\n 'title' => 'Clock',\n 'minimize' => false,\n ),\n 'SmallCalendar' => array(\n 'title' => 'Calendar',\n 'minimize' => false,\n ),\n 'QuickContact' => array(\n 'title' => 'Quick Contact',\n 'minimize' => false,\n ),\n 'MediaBox' => array(\n 'title' => 'Files',\n 'minimize' => false,\n ),\n ),\n 'hiddenRight' => array(\n 'ActionMenu' => array(\n 'title' => 'My Actions',\n 'minimize' => false,\n ),\n 'MessageBox' => array(\n 'title' => 'Message Board',\n 'minimize' => false,\n ),\n 'NoteBox' => array(\n 'title' => 'Note Pad',\n 'minimize' => false,\n ),\n 'DocViewer' => array(\n 'title' => 'Doc Viewer',\n 'minimize' => false,\n ),\n 'TopSites' => array(\n 'title' => 'Top Sites',\n 'minimize' => false,\n ),\n ),\n );\n if(Yii::app()->contEd('pro')){\n if(file_exists('protected/config/proWidgets.php')){\n foreach(include('protected/config/proWidgets.php') as $loc=>$data){\n if (isset ($layout[$loc]))\n $layout[$loc] = array_merge($layout[$loc],$data);\n }\n }\n }\n return $layout;\n }", "public function init() {\n Zend_Layout::startMvc();\n $this->_helper->layout->setLayout('default');\n }", "public function init()\n {\n $this->_helper->layout()->setLayoutPath(APPLICATION_PATH . \"/layouts/scripts/\");\n $this->_helper->layout()->setLayout('admin');\n }", "public function layout( $layout ) {\n\t\t$this->_layout = $layout;\n\t}", "public function setLayout($value);", "public function setLayout($layout)\n\t{\n\t\t//LAYOUT CAN BE FLAT\t\n\t}", "public function init()\n {\n // $this->_helper->layout->setLayout('userarea');\n }", "function setPageLayout()\n\t{\n\t\tglobal $tpl, $ilCtrl, $lng;\n\n\t\tif (!is_array($_POST[\"id\"]))\n\t\t{\n\t\t\tilUtil::sendFailure($lng->txt(\"no_checkbox\"), true);\n\t\t\t$ilCtrl->redirect($this, \"showHierarchy\");\n\t\t}\n\t\t\n\t\t$this->initSetPageLayoutForm();\n\t\t\n\t\t$tpl->setContent($this->form->getHTML());\n\t}", "public function initialize()\n {\n\t\tparent::initialize();\n\t\t$this->viewBuilder()->layout('admin');\n\t\t\n }", "public function init(){\n\t\t$this->_helper->layout->setLayout('layout_login');\n\t}", "protected function setupLayout()\n\t{\n\n $this->user = Auth::user();\n $this->theme = Theme::uses('default')->layout('default');\n $user = $this->user;\n $this->theme->bind('user', function() use($user)\n {\n return $user;\n });\n $cat = Category::all();\n $this->theme->bind('cat', function() use($cat)\n {\n return $cat;\n });\n if (Session::get('cart')){\n $cart_count = count(Session::get('cart'));\n $this->theme->bind('cart_count', function() use($cart_count)\n {\n return $cart_count;\n });\n }\n\t}", "public function main()\n {\n return view('layouts.master');\n\n }", "function setLayout($name) {\n\t\t$this->layout = $name;\n\t}", "protected function _initLayout() {\n\t\t$share = new Annuaire_Share();\n\t\t$newShared = $share->getMyShare(false);\n\t\t$me = new Annuaire_User(Annuaire_User::getCurrentUserId());\n\n\t\t$this->addLayoutVar ('locale', Annuaire_User::getLocale());\n\t\t$this->addLayoutVar ('title', t_('ContactBook'));\n\t\t$this->addLayoutVar ('consult', t_('Consult'));\n\t\t$this->addLayoutVar ('add', t_('Add'));\n\t\t$this->addLayoutVar ('deletecompanie', t_('Delete a companie'));\n\t\t$this->addLayoutVar ('useShare', Zend_Registry::getInstance()->config->use_share);\n\t\tif (Zend_Registry::getInstance()->config->use_share) {\n\t\t\t$this->addLayoutVar ('sharemanager', t_('Share manager'));\n\t\t\t$this->addLayoutVar ('newShared', (count($newShared)) ? sprintf (t_('%s new share(s)'), count($newShared)) : 0);\n\t\t\t$this->addLayoutVar ('newSharedTitle', t_(\"New Shares\"));\n\t\t\t$this->addLayoutVar ('shares', $newShared);\n\t\t}\n\t\t\n\t\t$this->addLayoutVar ('connected', (Annuaire_User::getCurrentUserId() ? 1 : 0));\n\t\t$this->addLayoutVar ('loginOrRegister', t_('Login'));\n\t\t$this->addLayoutVar ('disconnect', t_('Disconnect'));\n\t\t$this->addLayoutVar ('mylogin', $me->getLogin());\n\t\t$this->addLayoutVar ('mymail', $me->getMail());\n\t\t\n\t\t$this->addJSText('errorSharing', t_(\"Error while sharing\"));\n\t\t$this->addJSText('confirmDeleteShare', t_(\"Are you sure you want to DELETE this share ?\"));\n\t\t\n\t\t$this->addLayoutVar ( \"jsver\", filemtime ( ROOT_DIR . 'www/javascript/engine.js' ) );\n\t\t$this->addLayoutVar ( \"cssver\", filemtime ( ROOT_DIR . 'www/css/engine.css' ) );\n\t}", "protected function setAuthenticatedPageLayout() {\n if (!$this->app->router->isWsCall) {\n require __ROOT__ . Enums\\ApplicationFolderName::AppsFolderName . $this->app->name() . Enums\\FileNameConst::HeaderTemplate;\n// require __ROOT__ . Enums\\ApplicationFolderName::AppsFolderName . $this->app->name() . Enums\\FileNameConst::HeaderTemplate;\n }\n\n require __ROOT__ . Enums\\ApplicationFolderName::AppsFolderName . $this->app->name() . Enums\\FileNameConst::ContenTemplate;\n\n if (!$this->app->router->isWsCall) {\n require __ROOT__ . Enums\\ApplicationFolderName::AppsFolderName . $this->app->name() . Enums\\FileNameConst::FooterTemplate;\n }\n }", "protected function _init()\n {\n $this->setLayoutTemplate(App::getConfig('Help','layout/default'));\n\n # set navbar template .phtml\n $this->getNavbar()->setTemplate('help/html/navbar.phtml');\n\n #set sidebar template .phtml\n $this->getSidebar()->setTemplate('help/html/sidebar.phtml');\n }", "public function horizontalLayout() {\n }", "public function initSetPageLayoutForm()\n\t{\n\t\tglobal $lng, $ilCtrl;\n\t\n\t\tinclude_once(\"Services/Form/classes/class.ilPropertyFormGUI.php\");\n\t\t$this->form = new ilPropertyFormGUI();\n\t\t\n\t\tif (is_array($_POST[\"id\"]))\n\t\t{\n\t\t\tforeach ($_POST[\"id\"] as $id)\n\t\t\t{\n\t\t\t\t$hi = new ilHiddenInputGUI(\"id[]\");\n\t\t\t\t$hi->setValue($id);\n\t\t\t\t$this->form->addItem($hi);\n\t\t\t}\n\t\t}\n\t\t$layout = ilObjContentObjectGUI::getLayoutOption($lng->txt(\"cont_layout\"), \"layout\",\n\t\t\t$this->content_object->getLayout());\n\n\t\t$this->form->addItem($layout);\n\t\n\t\t$this->form->addCommandButton(\"savePageLayout\", $lng->txt(\"save\"));\n\t\t$this->form->addCommandButton(\"showHierarchy\", $lng->txt(\"cancel\"));\n\t\t\n\t\t$this->form->setTitle($lng->txt(\"cont_set_layout\"));\n\t\t$this->form->setFormAction($ilCtrl->getFormAction($this));\n\t \n\t}", "protected function _prepareLayout()\n\t{\n\t\t$this->getLayout()->getBlock('head')->setTitle($this->__($this->_helper->pageTitle()));\n $this->getLayout()->getBlock('root')->setTemplate('page/1column.phtml');\n\t\t$this->getLayout()->getBlock('head')->addCss('css/extrembler/prelogin/form.css');\n\t\t$this->getLayout()->getBlock('root')->unsetChild('header');\n\t\t$this->getLayout()->getBlock('content')->insert('store_language');\n\t\t$this->getLayout()->getBlock('root')->unsetChild('footer');\n\t return parent::_prepareLayout();\n\t}", "public function set_layout($layout)\n {\n $this->_layout = $layout;\n }", "function admin_index(){\r\r\n\t\t$this->layout='backend/backend';\r\r\n\t\t$this->set(\"title_for_layout\",SETTING);\r\r\n\t}", "public function setLayout(string $name);", "protected function applyPageLayout()\n {\n $this->content = \"\n @extends('generated/layout')\n \";\n }" ]
[ "0.76815957", "0.7585661", "0.7568264", "0.7565859", "0.7531949", "0.7516235", "0.7514122", "0.7504507", "0.7500381", "0.7500381", "0.7500381", "0.7500381", "0.7500381", "0.7500381", "0.7500381", "0.7500381", "0.7500381", "0.7500381", "0.7500381", "0.7500381", "0.7500381", "0.7500381", "0.7500381", "0.7500381", "0.7500381", "0.7500381", "0.7500381", "0.7500381", "0.7500381", "0.7500381", "0.7500381", "0.7500381", "0.7500381", "0.7500381", "0.7500381", "0.7486425", "0.7481864", "0.74726915", "0.7435402", "0.7425799", "0.7416165", "0.7391338", "0.7391338", "0.7391338", "0.7391338", "0.7391338", "0.7390927", "0.7390927", "0.7375721", "0.7371992", "0.735835", "0.735835", "0.7351728", "0.7281453", "0.7234822", "0.721941", "0.72165257", "0.71836346", "0.7118693", "0.7111693", "0.70549697", "0.7007635", "0.69255775", "0.6916772", "0.6899", "0.6784918", "0.6760801", "0.6734187", "0.6724565", "0.67109656", "0.67006916", "0.66974854", "0.6689939", "0.6688078", "0.66722184", "0.6664997", "0.6660401", "0.6653273", "0.6640241", "0.66125464", "0.66008854", "0.65676206", "0.6498293", "0.64933187", "0.63953865", "0.6383111", "0.6360024", "0.63439614", "0.63245183", "0.6317654", "0.6303638", "0.6249063", "0.621039", "0.62082547", "0.6190415", "0.61888283", "0.61798495", "0.6165673", "0.615503", "0.6146776", "0.6143836" ]
0.0
-1
Initialize the layout data
public function initLayout();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function initLayout()\n {\n $showLabels = $this->hasLabels();\n $showErrors = $this->getConfigParam('showErrors');\n $this->mergeSettings($showLabels, $showErrors);\n $this->buildLayoutParts($showLabels, $showErrors);\n }", "public function init() {\n $this->_renderLayout = 0;\n }", "public function init()\n {\n \t$this->view->layout = array();\n }", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout, $this->_data);\n\t\t\t$this->layout->content = null;\n\t\t\t$this->layout->currentProject = null;\n\t\t}\n\t}", "protected function initialize()\n {\n $this->viewData['list_sb'] = $this->list_sb = SkeletalBone::orderBy('name', 'asc')->pluck('name', 'id');\n $this->viewData['list_side'] = $this->list_side = SkeletalElement::$side;\n $this->viewData['list_completeness'] = $this->list_completeness = SkeletalElement::$completeness;\n $this->viewData['list_lab'] = $this->list_lab = Lab::where('type', 'Isotope')->get()->pluck('full_name', 'id');\n $this->viewData['list_status'] = $this->list_status = IsotopeBatch::$status;\n $this->viewData['batchStatus'] = $this->batchStatus = 'Open';\n $this->viewData['initialshow'] = $this->initialshow = false;\n }", "public function init() {\n parent::init();\n $this->layout = 'static';\n }", "function initLayout(){\n $layout = array(\n 'left' => array(\n 'ProfileInfo' => array(\n 'title' => 'Profile Info',\n 'minimize' => false,\n ),\n 'EmailInboxMenu' => array(\n 'title' => 'Inbox Menu',\n 'minimize' => false,\n ),\n 'ActionMenu' => array(\n 'title' => 'Actions',\n 'minimize' => false,\n ),\n 'TopContacts' => array(\n 'title' => 'Top Contacts',\n 'minimize' => false,\n ),\n 'RecentItems' => array(\n 'title' => 'Recently Viewed',\n 'minimize' => false,\n ),\n 'ActionTimer' => array(\n 'title' => 'Action Timer',\n 'minimize' => true,\n ),\n 'UserCalendars' => array(\n 'title' => 'User Calendars',\n 'minimize' => false,\n ),\n 'CalendarFilter' => array(\n 'title' => 'Filter',\n 'minimize' => false,\n ),\n 'GroupCalendars' => array(\n 'title' => 'Group Calendars',\n 'minimize' => false,\n ),\n 'FilterControls' => array(\n 'title' => 'Filter Controls',\n 'minimize' => false,\n ),\n 'SimpleFilterControlEventTypes' => array(\n 'title' => 'Event Types',\n 'minimize' => false,\n ),\n ),\n 'right' => array(\n 'SmallCalendar' => array(\n 'title' => 'Small Calendar',\n 'minimize' => false,\n ),\n 'ChatBox' => array(\n 'title' => 'Activity Feed',\n 'minimize' => false,\n ),\n 'GoogleMaps' => array(\n 'title' => 'Google Map',\n 'minimize' => false,\n ),\n 'OnlineUsers' => array(\n 'title' => 'Active Users',\n 'minimize' => false,\n ),\n 'TagCloud' => array(\n 'title' => 'Tag Cloud',\n 'minimize' => false,\n ),\n 'TimeZone' => array(\n 'title' => 'Clock',\n 'minimize' => false,\n ),\n 'SmallCalendar' => array(\n 'title' => 'Calendar',\n 'minimize' => false,\n ),\n 'QuickContact' => array(\n 'title' => 'Quick Contact',\n 'minimize' => false,\n ),\n 'MediaBox' => array(\n 'title' => 'Files',\n 'minimize' => false,\n ),\n ),\n 'hiddenRight' => array(\n 'ActionMenu' => array(\n 'title' => 'My Actions',\n 'minimize' => false,\n ),\n 'MessageBox' => array(\n 'title' => 'Message Board',\n 'minimize' => false,\n ),\n 'NoteBox' => array(\n 'title' => 'Note Pad',\n 'minimize' => false,\n ),\n 'DocViewer' => array(\n 'title' => 'Doc Viewer',\n 'minimize' => false,\n ),\n 'TopSites' => array(\n 'title' => 'Top Sites',\n 'minimize' => false,\n ),\n ),\n );\n if(Yii::app()->contEd('pro')){\n if(file_exists('protected/config/proWidgets.php')){\n foreach(include('protected/config/proWidgets.php') as $loc=>$data){\n if (isset ($layout[$loc]))\n $layout[$loc] = array_merge($layout[$loc],$data);\n }\n }\n }\n return $layout;\n }", "protected function init()\n {\n $this->setTitle('core_layout.edit_layout');\n $this->addElement([\n 'plugin' => 'hidden',\n 'name' => 'base_script',\n 'value' => 'view'\n ]);\n $this->addElement([\n 'plugin' => 'hidden',\n 'name' => 'item_script',\n 'value' => 'view',\n ]);\n }", "protected function setupLayout() {\n\t\tif (!is_null($this -> layout)) {\n\t\t\t$this -> layout = View::make($this -> layout);\n\t\t}\n\t}", "public function init()\n {\n $this->getHelper('layout')->setLayout('manage-layout');\n }", "protected function setupLayout() {\n\t\t$this->data['route'] = Route::getCurrentRoute()->getPath();\t\n\t\tif ( ! is_null($this->layout)) {\n\t\t\t$this->data['enrolledCourses'] = NULL;\n\t\t\t\n\t\t\tif (Auth::check() && in_array(Auth::user()->user_type, array(3, 5))) {\n\t\t\t\t$this->data['enrolledCourses'] = EnrolledCourses::getEnrolledCourses();\n\t\t\t\t$this->data['endedCourses'] = EnrolledCourses::getEndedCourses();\n\t\t\t\t$this->data['profiling'] = User::getRegProfile();\t\n\t\t\t\t$this->data['profiling_ctr'] = $this->data['profiling'];\t\t\t\t\n\t\t\t} else if (Auth::check() && Auth::user()->user_type == 2) {\n\t\t\t\t$this->data['assigned_courses'] = Courses::getAssignedCourses();\n\t\t\t}\n\n\t\t\t$this->layout = View::make($this->layout, $this->data);\n\t\t}\n\t}", "protected function setupLayout() {\n\t\tif ( ! is_null($this->layout)) {\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "public function init() {\n\t\t$this->_helper->layout->disableLayout();\n\t\t$this->_helper->viewRenderer->setNeverRender();\n\t}", "public function init()\n {\n // $this->_helper->layout->setLayout('userarea');\n }", "protected function setupLayout()\n\t{\n\t\tif (!is_null($this->layout)) {\n\t\t\t$this->layout = view($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = view($this->layout);\n $this->layout->menus = Menu::getMenu() ;\n }\n }", "protected function setupLayout()\n\t{\n\t\tif (!is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout)) {\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif (!is_null($this->layout)) {\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\r\n\t{\r\n\t\tif ( ! is_null($this->layout))\r\n\t\t{\r\n\t\t\t$this->layout = View::make($this->layout);\r\n\t\t}\r\n\t}", "protected function _initLayouts()\n {\n $layouts = [];\n\n if (method_exists($this, 'registerLayouts')) {\n $layouts = $this->registerLayouts();\n }\n\n foreach ($layouts as $layout) {\n $this->_initLayout($layout);\n }\n }", "protected function setupLayout()\n\t{\n\t\tdefine(\"aol_institute\", 68);\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\n\t\t$this->setLocale();\n\t}", "public function initData()\n {\n $this->appliedNumberingData = array();\n $this->currHyperlink = null;\n }", "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n\n }", "protected function setupLayout() {\n if (!is_null($this->layout)) $this->layout = View::make($this->layout);\n }", "protected function setupLayout() {\n if ( ! is_null($this->layout)) {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if (!is_null($this->layout)) {\n $this->layout = \\View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n }", "public function init(){\n parent::init();\n $this->_editor = $this->_helper->layoutEditor();\n }", "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if (! is_null($this->layout)) {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if (!is_null($this->layout)) {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if (!is_null($this->layout)) {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if (!is_null($this->layout)) {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if (!is_null($this->layout)) {\n $this->layout = View::make($this->layout);\n }\n }", "protected function setupLayout()\n {\n if (!is_null($this->layout)) {\n $this->layout = View::make($this->layout);\n }\n }", "public function init(){\n\t\t$this->_helper->layout->setLayout('layout_login');\n\t}", "protected function _init()\n {\n $this->setLayoutTemplate(App::getConfig('Help','layout/default'));\n\n # set navbar template .phtml\n $this->getNavbar()->setTemplate('help/html/navbar.phtml');\n\n #set sidebar template .phtml\n $this->getSidebar()->setTemplate('help/html/sidebar.phtml');\n }", "protected function setupLayout() {\n\t\tif ( ! is_null($this->layout)) {\n\n\n\t\t\t$cb_js_var = array(\n\t\t\t\t'site_url' => url('/'),\n\t\t\t\t'admin_url' => url('/admin'),\n\t\t\t\t'admin_assets_url' => asset('packages/vizioart/cookbook/'),\n\t\t\t\t'admin_api_url' => url('/admin/api')\n\t\t\t);\n\n\n\t\t\t$this->layout = View::make($this->layout, array(\n\t\t\t\t'cb_js_var' => $cb_js_var\n\t\t\t));\n\t\t}\n\t}", "function init()\n {\n\n $elements = array(\n 'page_id' => array('hidden')\n , 'name' => array('text', array('label' => 'Name', 'options' => array('StringLength' => array(false, array(1, 50)),), 'filters' => array('StringTrim'), 'required' => true))\n , 'title' => array('text', array('label' => 'Title', 'options' => array('StringLength' => array(false, array(4, 255)),),'filters' => array('StringTrim'), 'required' => true))\n , 'meta' => array('text', array('label' => 'meta', 'options' => array('StringLength' => array(false, array(4, 255))), 'filters' => array('StringTrim'),))\n , 'description' => array('textarea',array('label' => 'description', 'attribs' => array('rows' => 2), 'filters' => array('StringTrim'), 'required' => true))\n , 'body' => array('textarea',array('label' => 'body', 'attribs' => array('rows' => 7), 'filters' => array('StringTrim'), 'required' => true))\n );\n $this->addElements($elements);\n\n // --- Groups ----------------------------------------------\n $this->addDisplayGroup(array('name','title', 'meta'), 'display-head', array('legend'=>'display-head'));\n $this->addDisplayGroup(array('description', 'body'), 'display-body', array('legend'=>'display-body'));\n parent::init();\n }", "public function init()\n {\n extract($this->data);\n\n // Make data accessible\n $this->compParams = [\n 'label' => $label,\n 'color' => $color,\n 'size' => $size\n ];\n\n $this->data['isSvg'] = $this->iconIsSvg($icon);\n\n if ($this->data['isSvg']) {\n $this->data['classList'][] = $this->getBaseClass() . \"--svg\";\n } else {\n $this->data['classList'] = array_merge($this->data['classList'] ?? [], [\n $this->createIconModifier($icon),\n $this->getBaseClass() . \"--material\",\n $this->getBaseClass() . \"--material-\" . $icon,\n \"material-icons\"\n ]);\n }\n\n if (!empty($customColor)) {\n $this->data['attributeList']['style'] = 'color:' . $customColor . ';';\n } else {\n $this->setColor();\n }\n $this->appendSpace();\n $this->setSize();\n\n //Identify as an image\n $this->data['attributeList']['role'] = \"img\";\n $this->data['attributeList']['aria-label'] = $this->getAltText($icon);\n $this->data['attributeList']['alt'] = $this->getAltText($icon);\n }", "public function init()\n {\n \t$this->_helper->layout()->setLayout('admin');\n }", "protected function _constructMainLayout()\n {\n if (class_exists('tracer_class')) {\n tracer_class::marker(array(\n 'create main layout for display',\n debug_backtrace(),\n '#006400'\n ));\n }\n\n if ($this->_get) {\n $typ = $this->_get->pageType();\n } else {\n $typ = NULL;\n }\n\n switch ($typ) {\n case'css': case'js':\n $this->DISPLAY['core'] = '{;css_js;}';\n break;\n\n default:\n $this->layout($this->_defaultOptions['template']);\n break;\n }\n }", "public function init()\n\t{\n\t\t$this->_helper->layout()->setLayout('home');\n\t}", "public function initialize()\n {\n\t\tparent::initialize();\n\t\t$this->viewBuilder()->layout('admin');\n\t\t\n }", "public function init()\n {\n extract($this->data);\n\n //Set default values to items array\n $this->data['items'] = $this->fillItemsData($items);\n\n //Endpoint for async fetching\n if(isset($endpoint)) {\n $this->data['attributeList']['data-endpoint'] = $endpoint; \n }\n\n //Add unlist class\n $this->data['classList'][] = \"unlist\"; \n\n //Direction of nav\n if($direction) {\n $this->data['classList'][] = $this->getBaseClass() . \"--\" . $direction; \n }\n\n //Attributes\n $this->data['attributeList']['aria-orientation'] = $direction; \n }", "public function init() {\n $this->_helper->layout()->disableLayout(); \n $this->_helper->viewRenderer->setNoRender(true);\n }", "protected function setupLayout()\n\t{\n\t\t$button['text'] = \"login\";\n\t\t$button['url'] = route('login');\n\n\t\tif(Auth::check())\n\t\t{\n\t\t\t$button['text'] = \"logout\";\n\t\t\t$button['url'] = route('logout');\n\t\t\t$this->logged_in_user = Auth::user();\n\t\t\t$notif = new Notification();\n\t\t\t$notifications = $notif->getNotifications($this->logged_in_user->id);\n\t\t\t$new = 0;\n\t\t\tforeach ($notifications as $not) {\n\t\t\t\tif($not->seen == 0)\n\t\t\t\t{\n\t\t\t\t\t$new++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$rating_types = RatingType::getRatingTypes($this->logged_in_user->id);\n\n\t\t\tView::share('notifications', $notifications);\n\t\t\tView::share('new', $new);\n\t\t\tView::share('rating_types', $rating_types);\n\t\t\tView::share('logged_in_user', $this->logged_in_user);\n\t\t}\n\n\t\tView::share('button', $button);\n\t\tView::share('show_feed', $this->show_feed);\n\t\t//Get image path info for all poster and backdrop images\n\t\t$t = new TheMovieDb();\n \t\t$this->image_path_config = $t->getImgPath();\n\t\tView::share('image_path_config', $this->image_path_config);\n\n\n\t\t\n\n\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "function init()\n\t{\n\t\t// Ghetto fix for formText problem\n\t\t$this->view->addHelperPath(ROOT_DIR . '/library/Zarrar/View/HelperFix', 'Zarrar_View_HelperFix');\n\t\t\n\t\t// Disable header file\n\t\t$this->view->headerFile = '_empty.phtml';\n\t\t\n\t\t// Add stylesheet for table\n\t\t$this->view\n\t\t\t->headLink()\n\t\t\t->appendStylesheet(\"{$this->view->dir_styles}/oranges-in-the-sky.css\");\n\t\t\t\n\t\t// Instantiate table for later usage\n\t\t$this->_table = new Study();\n\t}", "public function init()\n {\n\n $this->minWidth = 300;\n $this->minHeight = 200;\n $this->width = 950;\n $this->height = 650;\n $this->resizable = true;\n $this->movable = true;\n $this->closable = true;\n\n $this->models = new TArray();\n\n }", "protected function setupLayout()\n\t{\n\n $this->user = Auth::user();\n $this->theme = Theme::uses('default')->layout('default');\n $user = $this->user;\n $this->theme->bind('user', function() use($user)\n {\n return $user;\n });\n $cat = Category::all();\n $this->theme->bind('cat', function() use($cat)\n {\n return $cat;\n });\n if (Session::get('cart')){\n $cart_count = count(Session::get('cart'));\n $this->theme->bind('cart_count', function() use($cart_count)\n {\n return $cart_count;\n });\n }\n\t}", "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout) && ! $this->is_pjax())\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t}", "protected function _initLayout() {\n\t\t$share = new Annuaire_Share();\n\t\t$newShared = $share->getMyShare(false);\n\t\t$me = new Annuaire_User(Annuaire_User::getCurrentUserId());\n\n\t\t$this->addLayoutVar ('locale', Annuaire_User::getLocale());\n\t\t$this->addLayoutVar ('title', t_('ContactBook'));\n\t\t$this->addLayoutVar ('consult', t_('Consult'));\n\t\t$this->addLayoutVar ('add', t_('Add'));\n\t\t$this->addLayoutVar ('deletecompanie', t_('Delete a companie'));\n\t\t$this->addLayoutVar ('useShare', Zend_Registry::getInstance()->config->use_share);\n\t\tif (Zend_Registry::getInstance()->config->use_share) {\n\t\t\t$this->addLayoutVar ('sharemanager', t_('Share manager'));\n\t\t\t$this->addLayoutVar ('newShared', (count($newShared)) ? sprintf (t_('%s new share(s)'), count($newShared)) : 0);\n\t\t\t$this->addLayoutVar ('newSharedTitle', t_(\"New Shares\"));\n\t\t\t$this->addLayoutVar ('shares', $newShared);\n\t\t}\n\t\t\n\t\t$this->addLayoutVar ('connected', (Annuaire_User::getCurrentUserId() ? 1 : 0));\n\t\t$this->addLayoutVar ('loginOrRegister', t_('Login'));\n\t\t$this->addLayoutVar ('disconnect', t_('Disconnect'));\n\t\t$this->addLayoutVar ('mylogin', $me->getLogin());\n\t\t$this->addLayoutVar ('mymail', $me->getMail());\n\t\t\n\t\t$this->addJSText('errorSharing', t_(\"Error while sharing\"));\n\t\t$this->addJSText('confirmDeleteShare', t_(\"Are you sure you want to DELETE this share ?\"));\n\t\t\n\t\t$this->addLayoutVar ( \"jsver\", filemtime ( ROOT_DIR . 'www/javascript/engine.js' ) );\n\t\t$this->addLayoutVar ( \"cssver\", filemtime ( ROOT_DIR . 'www/css/engine.css' ) );\n\t}", "function __construct()\n\t{\n\t\tglobal $ninespot_dir, $nines_layout_default;\n\t\t\n\t\t$this->dir = $ninespot_dir;\n\n\t\t// @TODO: get the defaults based on the default layout\n\t\tif( isset( $nines_layout_default ) && is_array( $nines_layout_default ))\n\t\t{\n\t\t\t$this->default_structure = \n\t\t\t\tarray(\n\t\t\t\t\t'name' => __( 'New Layout', 'nines' ),\n\t\t\t\t\t'slug' => $this->layout_new,\n\t\t\t\t\t'spots' => &$nines_layout_default['spots'],\n\t\t\t\t\t'copy_spots' => &$nines_layout_default['copy_spots'],\n\t\t\t\t\t'widgets' => &$nines_layout_default['widgets'],\n\t\t\t\t);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->default_structure = array(\n\t\t\t\t'name' => 'New Layout',\n\t\t\t\t'slug' => $this->layout_new,\n\t\t\t\t'spots' => array(\n\t\t\t\t\t'head' => array(\n\t\t\t\t\t\t1 => 16,\n\t\t\t\t\t),\n\t\t\t\t\t'nav' => array(\n\t\t\t\t\t\t1 => 16,\n\t\t\t\t\t),\n\t\t\t\t\t'avant-body' => array(\n\t\t\t\t\t),\n\t\t\t\t\t'body' => array(\n\t\t\t\t\t\t1 => 12,\n\t\t\t\t\t\t2 => 4,\n\t\t\t\t\t),\n\t\t\t\t\t'apres-body' => array(\n\t\t\t\t\t),\n\t\t\t\t\t'foot' => array(\n\t\t\t\t\t\t1 => 16,\n\t\t\t\t\t),\n\t\t\t\t\t'apres-foot' => array(\n\t\t\t\t\t\t1 => 16,\n\t\t\t\t\t),\n\t\t\t\t),\n\n\t\t\t\t'copy_spots' => array(\n\t\t\t\t\t'head' =>$this->layout_new,\n\t\t\t\t\t'nav' => $this->layout_new,\n\t\t\t\t\t'avant-body' => 0,\n\t\t\t\t\t'body' => 0,\n\t\t\t\t\t'apres-body' => 0,\n\t\t\t\t\t'foot' => $this->layout_new,\n\t\t\t\t\t'apres-foot' => $this->layout_new,\n\t\t\t\t),\n\n\t\t\t\t'widgets' => array(\n\t\t\t\t\t'head' => array(\n\t\t\t\t\t\t'text' => array(\n\t\t\t\t\t\t\t'title' => '',\n\t\t\t\t\t\t\t'text' => 'Put a widget header here, or modify this text widget as your header.',\n\t\t\t\t\t\t\t'filter' => '',\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t\t'body-1' => array(\n\t\t\t\t\t\t'text' => array(\n\t\t\t\t\t\t\t'title' => '',\n\t\t\t\t\t\t\t'text' => 'This is one of the four available vertical widget sections in 9spot. You can make this a sidebar, or move things around and put a post loop here.',\n\t\t\t\t\t\t\t'filter' => '',\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t\t'body-2' => array(\n\t\t\t\t\t\t'text' => array(\n\t\t\t\t\t\t\t'title' => '',\n\t\t\t\t\t\t\t'text' => 'This is one of the four available vertical widget sections in 9spot. You can make this a sidebar, or move things around and put a post loop here.',\n\t\t\t\t\t\t\t'filter' => '',\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t\t'foot' => array(\n\t\t\t\t\t\t'text' => array(\n\t\t\t\t\t\t\t'title' => '',\n\t\t\t\t\t\t\t'text' => 'This is your footer. Put a widget header here, or modify this text widget.',\n\t\t\t\t\t\t\t'filter' => '',\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t);\n\t\t}\n\t\t\n\t\t$this->structure_sections = array('head','nav','avant-body','body','apres-body','foot','apres-foot');\n\t\t$this->widget_sections = array('head','nav','avant-body','body-1','body-2','body-3','body-4','apres-body','foot','apres-foot');\n\n\t\t$this->layouts = get_option( $this->option_layouts );\n\n\t\t// initialize layouts\n\t\tif( is_array( $this->layouts ))\n\t\t{\n\t\t\tforeach( $this->layouts as $layout )\n\t\t\t{\n\t\t\t\t// only register widget areas for layouts if show_layout \n\t\t\t\t// is unset OR if show_layout matches the layout slug\n\t\t\t\t\n\t\t\t\t// @todo Get widget areast to NOT purge other widget areas\n\t\t\t\t$register_widget_areas = true;\n\n\t\t\t\t$this->$layout = new NineSpotLayout( $layout , $register_widget_areas);\n\t\t\t}//end foreach\n\t\t}//end if\n\t\t\t\t\n\t\tadd_action('admin_menu', array(&$this, 'admin_menu_add'));\n\t}", "function init() {\n\t\t\t$this->showHeaders();\n\n\t\t\t// Display the CSS content\n\t\t\t$this->createContent();\n\t\t\t$this->showContent();\n\t\t}", "protected function init()\n {\n $this->setTitle('core_layout.edit_layout');\n }", "function initialize() {\n $this->set_openingtag(\"<DD[attributes]>\");\n $this->set_closingtag(\"</DD>\");\n }", "public function init()\n {\n \t$this->_helper->viewRenderer->setNoRender(true);\n \t$this->_helper->layout->disableLayout();\n }", "function initializeFilesLayout() {\n $this->loadFilesMenubar();\n // navigation stuff\n $this->layout->add($this->getSearchPanel());\n $this->layout->add($this->getTagsPanel());\n $this->layout->add($this->getFolderPanel());\n // file list\n $this->layout->add($this->getClipboardPanel());\n $this->layout->add($this->getFilesPanel());\n // dialog\n $this->layout->setParam('COLUMNWIDTH_CENTER', '50%');\n $this->layout->setParam('COLUMNWIDTH_RIGHT', '50%');\n }", "public function init()\n {\n \t$arr_sitemap_nodes_main = CMS_Model_CMSSitemap::getSitemapByHandle('MAIN')->getSitemapNodes(6);\n \t\n \t$this->view->assign('arr_sitemap_nodes_main',$arr_sitemap_nodes_main);\n }", "public function init() {\n $this->view = Zend_Registry::get('view');\n $this->translate = Zend_Registry::get('Zend_Translate');\n $this->db = Zend_Db_Table::getDefaultAdapter();\n $this->_helper->layout->disableLayout();\n }", "public function init()\n {\n\t\tif (!isset($this->options['id'])) {\n $this->options['id'] = $this->getId();\n }\t\n\n\t\tif (!isset($this->gridOptions['class'])) {\n\t\t\t$this->gridOptions['class'] = self::DEFAULT_GRID_CLASS;\t\t\n\t\t}\n\n\t\tif (isset($this->itemOptions['class'])) {\n\t\t\t$this->clientOptions['itemSelector'] = '.' . $this->itemOptions['class'];\n\t\t} else {\n\t\t\t$this->itemOptions['class'] = self::DEFAULT_ITEM_CLASS;\n\t\t\t$this->clientOptions['itemSelector'] = '.' . self::DEFAULT_ITEM_CLASS;\n\t\t}\n\t\t\n\t\tif (empty($this->gridSelector)) {\n\t\t\t$this->gridSelector = '#'. $this->id . ' .' . self::DEFAULT_GRID_CLASS;\n\t\t}\t\t\n\t\t\n\t\tif (empty($this->layout)) {\n\t\t\t$tag = ArrayHelper::remove($this->gridOptions, 'tag', 'div');\n\t\t\t\n\t\t\t$gridContainer = Html::tag($tag, '{items}', $this->gridOptions);\n\t\t\t\n\t\t\t$this->layout = \"{summary}$gridContainer\\n{pager}\";\n\t\t}\n\t\t\t\n parent::init();\n }", "public function init()\n {\n $this->fillFromConfig([\n 'columns',\n 'model',\n 'recordUrl',\n 'recordOnClick',\n 'noRecordsMessage',\n 'showPageNumbers',\n 'recordsPerPage',\n 'showSorting',\n 'defaultSort',\n 'showCheckboxes',\n 'showSetup',\n 'showTree',\n 'treeExpanded',\n 'showPagination',\n 'customViewPath',\n ]);\n\n /*\n * Configure the list widget\n */\n $this->recordsPerPage = $this->getSession('per_page', $this->recordsPerPage);\n\n if ($this->showPagination == 'auto') {\n $this->showPagination = $this->recordsPerPage && $this->recordsPerPage > 0;\n }\n\n if ($this->customViewPath) {\n $this->addViewPath($this->customViewPath);\n }\n\n $this->validateModel();\n $this->validateTree();\n }", "private function init()\n\t{\n\t\tif(! $this->authUser = $this->auth->check_login()){\n\t\t\t$this->authUser->logged = false;\n\t\t}\n\t\t// Fill user object in view \n\t\t$this->data['authUser'] = $this->authUser;\n\n\t\t$this->data['menugang'] = $this->recipesModel->menugang();\n\t\t$this->data['hoofdgroup'] = $this->recipesModel->hoofdgroup();\n\t\t$this->data['technique'] = $this->recipesModel->technique();\n\t\t$this->data['kitchen'] = $this->recipesModel->kitchen();\n\t\t$this->data['opening'] = $this->recipesModel->opening();\n\t\t$this->data['dieten'] = $this->recipesModel->dieten();\n\t}", "public function init()\r\n {\r\n $this->visible=true;\r\n $this->descriptionashint=true;\r\n $this->locked=false;\r\n $this->maxdepth=3;\r\n $this->sortposition=0;\r\n }", "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n\n if (Request::Ajax())\n {\n $this->layout = View::make('layouts.ajax');\n }\n else\n $this->layout = View::make($this->layout);\n\n $this->layout->content = \" \";\n }\n }", "public function init()\n {\n $this->_helper->viewRenderer->setNoRender(true);\n $this->_helper->layout->disableLayout(); \n }", "public function init() {\n extract($this->data);\n\n $this->data['links'] = $this->addTargetToLinks($links);\n\n if (!isset($this->data['logotypeHref'])) {\n $this->data['logotypeHref'] = \"/\";\n }\n\n if (isset($subfooter['flexDirection'])) {\n $direction = $subfooter['flexDirection'] == 'row' ? 'horizontal' : 'vertical';\n $this->data['directionClass'] = $this->getBaseClass() . '__subfooter--' . $direction;\n }\n\n if (isset($subfooter['alignment'])) {\n $alignment = $subfooter['alignment'] ?? 'flex-start';\n $this->data['alignmentClass'] = $this->getBaseClass() . '__subfooter--align-' . $alignment;\n }\n\n $this->data['displaySubFooter'] = $this->displaySubFooter(\n $subfooterLogotype ?? false,\n $subfooter['content'] ?? false\n );\n }", "public function setDatas()\n\t{\n\t\t$this->data[\"skeleton\"] = $this->getSkeleton();\n\t\t$this->data[\"css\"] = $this->getCss();\n\t\t$this->data[\"javascript\"] = $this->getJavascript();\n\t\t$this->data[\"module\"] = $this->getModule();\n\t\t$this->data[\"site\"] = $this->getSite();\n\t\t\t\t\t\t\n\t\t$this->_nodeName = $this->getNodeName();\n\t\t$this->_value = $this->getNodeValue();\n\t}" ]
[ "0.74784905", "0.7352771", "0.72447485", "0.7179165", "0.70187014", "0.6937582", "0.6933395", "0.68277776", "0.6744103", "0.6673735", "0.6659935", "0.6653137", "0.66503954", "0.66187465", "0.6605295", "0.66037834", "0.66037834", "0.66037834", "0.66037834", "0.66037834", "0.66037834", "0.66037834", "0.66037834", "0.66037834", "0.66037834", "0.66037834", "0.66037834", "0.66037834", "0.66037834", "0.66037834", "0.66037834", "0.66037834", "0.66037834", "0.66037834", "0.66037834", "0.66037834", "0.66037834", "0.66037834", "0.66037834", "0.66037834", "0.66037834", "0.66037834", "0.6601587", "0.65917367", "0.6583946", "0.6570317", "0.65618044", "0.65582174", "0.65581006", "0.65530205", "0.65427893", "0.6534902", "0.6529873", "0.6518731", "0.65139663", "0.6505193", "0.65007323", "0.65007323", "0.6493232", "0.64813006", "0.64813006", "0.6475776", "0.6467006", "0.6467006", "0.6467006", "0.6467006", "0.6467006", "0.6456349", "0.64353937", "0.64314765", "0.6419929", "0.64055663", "0.6388414", "0.6369253", "0.635494", "0.6325488", "0.63232577", "0.6312427", "0.63098466", "0.62614065", "0.62446535", "0.6244495", "0.62312937", "0.62058926", "0.61976075", "0.6196036", "0.61842823", "0.6181244", "0.61791754", "0.61765563", "0.6170637", "0.61593485", "0.61551434", "0.6145916", "0.6136325", "0.6130728", "0.6100556", "0.60985625", "0.60839546", "0.60780805" ]
0.7988071
0
Sets the templating file
public function setTemplate($file);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function setTemplate(){\n if (isset($this->data['template']) && !empty($this->data['template'])){\n $template = APP_ROOT.'/app/templates/'.trim($this->data['template']).'.tpl';\n if (file_exists($template)){\n $this->template = $template;\n return;\n }\n }\n //default\n $this->template = APP_ROOT.'/app/templates/default.tpl';\n }", "function set_template( $template_file = 'template.php' )\n {\n // make sure that $template_file has .php extension\n $template_file = substr( $template_file, -4 ) == '.php' ? $template_file : ( $template_file . \".php\" );\n\n $this->template = \"../../{$this->settings->root_folder}/themes/{$this->settings->theme}/{$template_file}\";\n }", "public function setTemplate()\n {\n $root = &XCube_Root::getSingleton();\n $language = $root->mContext->getXoopsConfig('language');\n $this->mMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/user/language/' . $language . '/mail_template/');\n $this->mMailer->setTemplate('register.tpl');\n }", "function set_template($template_name) {\n\t\t$this->template = $template_name;\n\t}", "public function setTemplate($nomtmp) {\r\n $filevue = \"application/templates/\" . $nomtmp . \".template.php\";\r\n if (file_exists($filevue)) {\r\n $this->template = $nomtmp;\r\n } else {\r\n die(\"template $filevue inexistante \");\r\n }\r\n }", "protected function setTemplatePaths() {}", "public function setTemplatefile($path)\n\t{\n\t\t$this->templatefile = $path;\n\t}", "private function renderTemplate(){\n\t\trequire($this->TemplateFile);\n\t}", "public function setTemplateDir($path);", "public function setTemplateFile($file)\n {\n $this->file_template = $file;\n }", "public function setTemplate($template = '')\n {\n $this->template = ROOT . DS . $this->configuration->get('app.name') . DS . 'view' . DS . $this->action . DS . $template . '.phtml';\n }", "public function setTemplate($path)\n {\n $this->templatePages = $this->setSourceFile($path);\n }", "protected function _setTemplateMeta(){\n $this->template->project_name = $this->config['project']['name'] ;\n $this->template->title = $this->config['view']['title'] ;\n $this->template->keywords = $this->config['view']['keywords'];\n $this->template->description = $this->config['view']['description'];\n }", "function setTemplate($template);", "protected function setVarToTemplates()\n {\n $this->templates->set_tpl($this->varName, $this->checkNewCommondaty());\n }", "public function setFile ($fileName) {\n\t\t$basedir = $this->app->getTemplateDirectory();\n\t\t$extension = ($this->extension === 'php'? '' : '.' . $this->extension) . '.php';\n\t\t\n\t\t$this->template->setFile([\n\t\t\t$fileName,\n\t\t\t\"{$fileName}{$extension}\",\n\t\t\t\"{$basedir}{$fileName}\",\n\t\t\t\"{$basedir}{$fileName}{$extension}\",\n\t\t]);\n\t}", "function template($template_filename) {\n if ( $template_filename[0] == '/' ) {\n $this->template_file = $template_filename;\n } else {\n $this->template_file = $this->module_path.'template/'.$template_filename;\n }\n }", "public function set_template($template)\n\t{\n\t\t// On regarde si une modification du template existe\n\t\t$updated_template = dirname($template) . '/' . get_file_data(basename($template), 'filename') . '.updated';\n\t\tif (file_exists($updated_template))\n\t\t{\n\t\t\t$template = $updated_template;\n\t\t}\n\n\t\tif (!file_exists($template))\n\t\t{\n\t\t\ttrigger_error('Le template ' . $template . ' n\\'existe pas', FSB_ERROR);\n\t\t}\n\t\t\n\t\t// Recuperation du contenu du template\n\t\t$this->body = file_get_contents($template);\n\t}", "public function setTemplate($tpl_name){\n \tif($this->isAllowedToChangeTemplate()){\n \t\t$this->template = $tpl_name;\n \t\t$this->baseReplaces['tpl_folder'] = $this->getTemplateDir();\n \t\t$GLOBALS['tpl']['activeTemplate'] = $tpl_name;\n \t}\n }", "protected function _SetQuizModeTemplate()\n {\n $templateFile = trim($this->_quizConfig['templates'][$this->_quizMode]);\n\n if (is_file($GLOBALS['config']['root_tpl'] . $templateFile)) {\n $this->_sessObj->quizTemplatePath = $GLOBALS['config']['root_tpl'] . $templateFile;\n }\n }", "function init() {\n require config('template_path') . '/template.php';\n}", "protected function setTemplateVariables() {}", "function setTemplate($value) {\n $this->template = $value;\n }", "function _setTemplate($template = null) {\n if (empty($template)) {\n $backtrace = debug_backtrace();\n if (empty($backtrace[1]['function'])) {\n return $this->template = null;\n }\n $parent = $backtrace[1]['function'];\n $method = '';\n if ($parent == '__call') {\n $method = str_replace('send', '', $backtrace[2]['function']);\n } else {\n $method = $backtrace[1]['function'];\n }\n $template = Inflector::underscore($method);\n }\n $this->template = sprintf('%s%s%s',\n $this->_templateFolder(),\n DS,\n $template\n );\n }", "public function setTemplate(string $template);", "public function setTemplate(string $template_name);", "function init()\n{\n require config('template_path') . '/template.php';\n}", "function Template ($templateFile, $render = true, $stylesheet = false) {\n\t\t\t$this->filename = $this->getTemplateRoot().$templateFile;\n\t\t\tif ($render) {\n\t\t\t\t$this->reloadTemplate();\n\t\t\t}\n\t\t}", "public function setTemplate( $template )\n\t{\n\t\t// Search for the template layout.\n\t\tif ( 'MAIN' == $this->context_name )\n\t\t{\n\t\t\t$found\t= false;\n\t\t\t$path\t= dirname( $template );\n\n\n\t\t\tfor ( $i = 0; !$found && $i < 3; $i++ )\n\t\t\t{\n\t\t\t\tif ( file_exists( TEMPLATE_PATH . $path . '/layout' . TEMPLATE_EXTENSION ) )\n\t\t\t\t{\n\t\t\t\t\t$found = true;\n\t\t\t\t\t$path = $path . '/layout' . TEMPLATE_EXTENSION;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$path\t= dirname( $path );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( $found )\n\t\t\t{\n\t\t\t\t$this->layout\t= $this->twig->loadTemplate( $path );\n\t\t\t}\n\t\t}\n\t\t$this->current_context['template'] = $this->twig->loadTemplate( $template );\n\t}", "public function initContent()\n {\n parent::initContent();\n\n $this->setTemplate(_PS_THEME_DIR_.'<%= name %>.tpl');\n }", "function template($template=\"simple\"){\n\n\t\t// THE PHYSICAL TEMPLATE SHOULD BE IN THE RESPECTIVE \n\t\t// TEMPLATE/TYPE/$template.php\n\t\t$this->template = $template;\n\t}", "function PHPTemplate($file = '') {\r\n $this->file = $file;\r\n }", "public function setTemplate($template) {\n \n\n \t$this->display($template);\n }", "function template($file, $error = \"Template Datei nicht gefunden!\") {\n // Variabeln auf Standardwerte setzen\n $this->tmp_file = $file;\n $this->error = $error;\n $this->content = \"\";\n }", "protected function setDefaultTemplate()\n {\n $defaultTemplate = $this->config->getKey('default_template');\n $this->setTemplate($defaultTemplate);\n }", "private function render_template() {\n\t\t$template = $this->template;\n\n\t\tif ( ! is_readable( $template ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tinclude $template;\n\t}", "public function setTemplate($template)\n {\n if (sfToolkit::isPathAbsolute($template))\n {\n print \">>>1\";\n $this->directory = dirname($template);\n $this->template = basename($template);\n }\n else\n {\n print \">>>2\";\n $this->directory = $this->context->getConfiguration()->getTemplateDir($this->moduleName, $template);\n $this->template = $template;\n }\n }", "public static function setTemplatePath ($path)\n\t{\n\t\tset_template_path ($path);\n\t}", "public function template()\n {\n\n include './views/template.php';\n\n }", "public function setTemplatePath($string)\n {\n $this->templatePath = $string;\n $this->tpl->configure('tpl_dir', basedir.$string);\n }", "function _setup_template($template)\n {\n // default directory for templates\n $this->template_dir = $this->get_template_path($template);\n\t\t//echo $this->template_dir . '<br>';\n $this->config_dir = $this->template_dir . '/config';\n }", "private function initializeTemplate() {\n\t\t$this->doc = t3lib_div::makeInstance('bigDoc');\n\t\t$this->doc->backPath = $GLOBALS['BACK_PATH'];\n\t\t$this->doc->docType = 'xhtml_strict';\n\t\t$this->doc->styleSheetFile2\n\t\t\t= '../typo3conf/ext/realty/BackEnd/BackEnd.css';\n\n\t\t$this->template\n\t\t\t= tx_oelib_TemplateRegistry::getInstance()->getByFileName(\n\t\t\t\t'EXT:realty/BackEnd/mod_template.html'\n\t\t);\n\t}", "public function loadTemplate()\n\t\t{\n\t\t}", "protected function setupTemplate() {\r\n \r\n }", "private function configureTemplate(){\n\t\t$template = $this->getTemplate();\n\t\t$template->setPageSubtitle($this->getModule()->getDisplayedName());\n\t}", "function qa_set_template($template)\n{\n\tglobal $qa_template;\n\t$qa_template = $template;\n}", "function setTemplate($template) {\n $this->template = $template;\n }", "public function initTemplate() {}", "public function setTemplate($file_name)\n {\n\n if (!$this->lock)\n {\n\n if (is_string($file_name))\n {\n $file = str_replace\n ('.:', NULL, get_include_path() . DIRECTORY_SEPARATOR . 'saferlanes/templates/' . $file_name . \".php\");\n if (file_exists($file))\n {\n\n $this->template = $file;\n return TRUE;\n }\n else\n {\n return FALSE;\n }\n }\n else\n {\n return FALSE;\n }\n }\n return FALSE;\n\n }", "public static function setTemplate($name) {\n $settings = self::getSettings();\n \n $settings->template = $name;\n $settings->save();\n }", "function Template()\r\n\t{\t\t\r\n\t\tglobal $_REQUEST;\t\t\r\n\t\t$theme = $this->theme;\r\n\t\t/*** Get Template By Page Id ***/\r\n\t\t$file = $this->get_template();\r\n\t\t\r\n\t\tif($_SETTINGS['debug'] == 1){\r\n\t\t\techo \"TEMPLATE: \".$file.\" <Br>\";\r\n\t\t}\r\n\t\t\r\n\t\t$websitepath = $this->website_path;\r\n\t\t//die(\"FILE: $file\");\r\n\t\t//exit();\r\n\t\tinclude''.$_SERVER['DOCUMENT_ROOT'].$websitepath.'themes/'.$theme.''.$file.'';\r\n\t}", "public function setPath($path) {\n $this->path = $path . \".html\";\n $this->twigEngine->setLoader(new \\Twig_Loader_Filesystem(dirname($this->path)));\n }", "public function set_filename($file) {\r\n if ( self::is_smarty_template($file) ) {\r\n throw new Kohana_Exception('Cannot use set_filename to initialise Smarty template :tpl; use View::factory instead',\r\n array(':tpl' => $file));\r\n }\r\n return parent::set_filename($file);\r\n}", "function set_template_ext($ext = NULL)\n\t{\n\t\t//make sure the extension starts with a .\n\t\tif (strpos( $ext, '.' ) !== 0)\n\t\t\t$ext = '.'.$ext;\n\t\t\n\t\t$this->template_ext = $ext;\n\t}", "public static function setTemplate($template)\n {\n self::$template = $template;\n }", "private function initTemplateEngine()\n {\n include_once basedir.'classes/lib/raintpl.php';\n //raintpl::$tpl_dir = \"view/\"; // template directory\n //raintpl::$cache_dir = \"tmp/\"; // cache directory\n $this->tpl = new RainTPL();\n $this->tpl->configure('tpl_dir', basedir.'view/');\n $this->tpl->configure('cache_dir', basedir.'tmp/');\n }", "public function render() {\n\t\t$this->template->setFile(__DIR__ . '/templates/' . $this->templateName);\n\n\t\t$this->template->richTexts = $this->getRichTextNames();\n\t\t$this->template->config = $this->configuration;\n\n\t\t$this->template->render();\n\t}", "protected function _loadTemplates()\n {\n $this->_tpl = array();\n $dir = Solar_Class::dir($this, 'Data');\n $list = glob($dir . '*.php');\n foreach ($list as $file) {\n \n // strip .php off the end of the file name to get the key\n $key = substr(basename($file), 0, -4);\n \n // load the file template\n $this->_tpl[$key] = file_get_contents($file);\n \n // we need to add the php-open tag ourselves, instead of\n // having it in the template file, becuase the PEAR packager\n // complains about parsing the skeleton code.\n // \n // however, only do this on non-view files.\n if (substr($key, 0, 4) != 'view') {\n $this->_tpl[$key] = \"<?php\\n\" . $this->_tpl[$key];\n }\n }\n }", "public function template()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/template', [\n\t\t\t'templates_availables' => $this->templates_availables,\n\t\t]);\n\t}", "public function setJsTemplateFilePath($filePath);", "public function setTemplate($template);", "public function setTemplate($template);", "public function setTemplate($template_string){\n\t\t$this->template = $template_string;\n\t}", "public function setViewConfigurationFilesFromTypoScriptConfiguration()\r\n {\r\n // Sets the template root path with the default\r\n $this->templateRootPath = $this->defaultTemplateRootPath;\r\n $this->getController()\r\n ->getPageTypoScriptConfigurationManager()\r\n ->setViewConfigurationFilesFromPageTypoScriptConfiguration();\r\n $this->getController()\r\n ->getExtensionConfigurationManager()\r\n ->setViewConfigurationFilesFromTypoScriptConfiguration();\r\n $this->getController()\r\n ->getLibraryConfigurationManager()\r\n ->setViewConfigurationFilesFromTypoScriptConfiguration();\r\n }", "public function setTemplate($template)\n\t{\n\t\t$this->template = $template;\n\t\t$this->pageInitialized = false;\n\t}", "function run()\n{\n include config('template_path').'/template.php';\n}", "function setupTemplate() {\r\n\t\tparent::setupTemplate();\r\n\t\tLocale::requireComponents(array(LOCALE_COMPONENT_PKP_SUBMISSION, LOCALE_COMPONENT_OJS_EDITOR, LOCALE_COMPONENT_PKP_MANAGER, LOCALE_COMPONENT_OJS_AUTHOR, LOCALE_COMPONENT_OJS_MANAGER));\r\n\t\t$templateMgr =& TemplateManager::getManager();\r\n\t\t$isEditor = Validation::isEditor();\r\n\t\t\r\n\t\tif (Request::getRequestedPage() == 'editor') {\r\n\t\t\t$templateMgr->assign('helpTopicId', 'editorial.editorsRole');\r\n\t\t\r\n\t\t} else {\r\n\t\t\t$templateMgr->assign('helpTopicId', 'editorial.sectionEditorsRole');\r\n\t\t}\r\n\t\t\r\n\t\t$roleSymbolic = $isEditor ? 'editor' : 'sectionEditor';\r\n\t\t$roleKey = $isEditor ? 'user.role.coordinator' : 'user.role.sectionEditor';\r\n\t\t$pageHierarchy = array(array(Request::url(null, 'user'), 'navigation.user'), array(Request::url(null, 'user'), $roleKey), array(Request::url(null, $roleSymbolic, 'submissionsReport'), 'editor.reports.reportGenerator'));\r\n\t\t\r\n\t\t$templateMgr->assign('pageHierarchy', $pageHierarchy);\r\n\t}", "private function _load_template()\n\t\t{\n\t\t\t//check for a custom template\n\t\t\t$template_file = 'views/'.$this->template_file.'.tpl';\n\n\n\t\t\tif(file_exists($template_file) && is_readable($template_file))\n\t\t\t{\n\t\t\t\t$path = $template_file;\n\t\t\t}\n\t\t\telse if(file_exists($default_file = 'views/error/index.php') && is_readable($default_file))\n\t\t\t{\n\t\t\t\t$path = $default_file;\n\t\t\t}\n\n\t\t\t//If the default template is missing, throw an error\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new Exception(\"No default template found\");\n\t\t\t}\n\n\n\t\t\t//Load the contents of the file and return them\n\t\t\t$this->_template = file_get_contents($path);\n\n\t\t}", "function set_template($group) {\n if (isset($this->config[$group])) {\n $this->template = $this->config[$group];\n } else {\n show_error('The \"' . $group . '\" template group does not exist. Provide a valid group name or add the group first.');\n }\n $this->initialize($this->template);\n }", "public function setTemplate($value);", "private function setUpTemplate()\n {\n $this->addJS();\n $this->addCSS();\n }", "public function setTemplate($tpl, $clearParams=true)\n {\n if ($clearParams) {\n $this->clearParams();\n }\n $this->templateFile = $this->templatesPath.$tpl.'.tpl.php';\n }", "public function render() {\n $template = $this->template;\n $template->setFile(__DIR__ . '/QuestionControl.latte');\n $this->template->question = $this->questions->getById($this->questionId);\n $template->render();\n }", "public function init()\n {\n $this->View()->addTemplateDir(dirname(__FILE__) . \"/Views/\");\n parent::init();\n }", "protected function initTemplate()\n {\n /** @var WorldState $state */\n /** @var ExecHelper $exec */\n $tplPhp = <<<EOS\nWorld. From: <?=\\$state->name?>\n\nExec URL: <?=\\$exec->url( 'someExec', ['a'=>1] )?><?php \\$formBody = \"<input type=\\\"text\\\" name=\\\"someInput\\\" value=\\\"2\\\">\\n\"?>\n\nExec Form:\n<?=\\$exec->wrapForm( 'otherExec', 'POST', \\$formBody ) ?>\nEOS;\n $this->template = new PhpTemplate( $this, null, $tplPhp );\n }", "public function setTemplate($file = 'index.html', $theme = 'default')\n\t{\n\t\t$config = Config::getInstance();\n\t\tif($theme != '')\n\t\t{\n\t\t\t$basePath = $config['path']['theme'] . $theme . '/';\n\t\t\tif(is_dir($basePath))\n\t\t\t{\n\t\t\t\t$this->theme = $theme;\n\t\t\t}\n\t\t}\n\n\t\t$templateProcess = new ViewThemeTemplate(new Theme($theme), $file);\n\n\t\t$this->display = $templateProcess;\n\t}", "public function setTemplatePath($tpl) {\n\t\tparent::setTemplatePath($tpl);\n\t}", "public function option_file($k, $v)\n {\n if (is_array($v)) {\n trigger_error(\"Can only render one template at a time\", E_USER_ERROR);\n }\n if (!file_exists($v) || is_dir($v) || !is_readable($v)) {\n trigger_error(sprintf(\"'%s' is not a readable template file\", $v), E_USER_ERROR);\n }\n Config::set_template_file(realpath($v));\n }", "public function loadTemplate($path);", "public function setTemplate($path = NULL, $data = array())\n {\n ($path) ? $this->_template['path'] = VPATH . $path . EXT : $this->_template['path'] = VPATH . $this->_template['path'] . EXT;\n $this->_template['data'] = $data;\n return $this;\n }", "protected function setCache()\n {\n if ($this->cache) {\n $cacheFile = $this->getCacheFile();\n $this->setupCachePath($cacheFile);\n file_put_contents($cacheFile, $this->templateOutput);\n }\n }", "private function configureTemplate(){\n\t\t$viewdirectory = DIR_MODULE . $this->getModule()->getLocation() . 'view/';\n\t\t// add module css\n\t\t$template = $this->getTemplate();\n\t\t$template->addStyle('<link href=\"'.$viewdirectory.'css/style.css\" rel=\"stylesheet\"/>');\n\n\t\t$template->setPageTitle($this->getModule()->getDisplayedName());\n\t}", "function setXTemplate($newXTemplate) {\n $this->xTemplate = $newXTemplate;\n}", "private function configureTemplate(){\n\t\t$viewdirectory = DIR_MODULE . $this->getModule()->getLocation() . 'view/';\n\t\t// add module css\n\t\t$template = $this->getTemplate();\n\t\t$template->addStyle('<link href=\"'.$viewdirectory.'css/style.css\" rel=\"stylesheet\"/>');\n\t\n\t\t$template->setPageTitle($this->getModule()->getDisplayedName());\n\t}", "public static function theme(): void\n {\n $smarty = self::getInstance(Smarty::class);\n if (defined(\"_PATH_\"))\n $smarty->assign(\"base\", _PATH_);\n $smarty->assign(\"css\", _TEMPLATES_ . \"/\" . _THEME_NAME_ . \"/css\");\n $smarty->assign(\"data\", _ROOT_ . \"/../data\");\n $smarty->assign(\"root\", _ROOT_);\n $smarty->assign(\"js\", _TEMPLATES_ . \"/\" . _THEME_NAME_ . \"/js\");\n $smarty->assign(\"img\", _TEMPLATES_ . \"/\" . _THEME_NAME_ . \"/img\");\n $smarty->assign(\"template\", _THEME_);\n\n if (file_exists(_APP_ . \"/routes.php\"))\n include_once(_APP_ . \"/routes.php\");\n else\n Display::response(\"No se ha encontrado el archivo routes.php\", \"json\", 500);\n \n if (is_dir(_SRC_ . \"/Routes\"))\n foreach (glob(_SRC_ . \"/Routes/*.php\") as $routeFile)\n require_once $routeFile;\n \n \n if (file_exists(_THEMES_ . \"/\" . _THEME_NAME_ . \"/index.php\")) {\n include_once(_THEMES_ . \"/\" . _THEME_NAME_ . \"/index.php\");\n }\n }", "public function setTemplateDir($dir)\r\n {\r\n $this->_smarty->setTemplateDir($dir);\r\n }", "public function setTemplate($template)\n {\n // store instance of template\n\t\t$this->_template = $template;\n }", "function CI_Template() {\n $this->_ci_ob_level = ob_get_level();\n\t\t\n // Copy an instance of CI so we can use the entire framework.\n $this->CI = & get_instance();\n\n // Load the template config file and setup our master template and regions\n include(APPPATH . 'config/template' . EXT);\n if (isset($template)) {\n $this->config = $template;\n $this->set_template($template['active_template']);\n }\n }", "public static function afficher() {\r\n $filevue = \"application/templates/\" . Page::getInstance()->template . \".template.php\";\r\n\r\n if (file_exists($filevue)) {\r\n require_once $filevue;\r\n } else {\r\n die(\"template non renseigne\");\r\n }\r\n }", "function defaultTemplate(){\n $this->addLocations(); // add addon files to pathfinder\n return array($this->template_file);\n }", "protected function getTemplatePathAndFilename() {}", "public function setTemplateFile($templateFile)\r\n {\r\n $this->templateFile = $templateFile;\r\n }", "function set($name, $value)\n {\n $this->_template->set($name, $value);\n }", "public function showTemplate(){\n\t\tinclude \"view/template.php\";\n\t}", "private function loadTemplate() {\n\t\t\tinclude('template.inc.php');\n\t\t\t$this->mainTemplate = new Template();\n\t\t\t$this->mainTemplate->readTpl('main');\n\t\t}", "public function setTemplate($val){ return $this->setField('template',$val); }", "function zenTemplate( $template ) {\n $this->_template = $template;\n $this->_get();\n }", "public function testTemplate() {\n $this->template->set('users');\n $this->template->view('TestTwo');\n }", "public function onTwigTemplatePaths(): void\n {\n $this->grav['twig']->twig_paths[] = __DIR__ . \"/templates\";\n }", "public function onAfterTwigTemplatesPaths()\n {\n if (!$this->active) {\n return;\n }\n\n Registry::get('Twig')->twig_paths[] = __DIR__ . '/templates';\n }" ]
[ "0.79774344", "0.75542116", "0.7224734", "0.7034816", "0.70116067", "0.699214", "0.6981164", "0.6966653", "0.69508386", "0.6935955", "0.69028425", "0.688402", "0.6855792", "0.68525285", "0.68309224", "0.6800215", "0.67743325", "0.67334545", "0.6725747", "0.6717871", "0.6716445", "0.6712418", "0.66913205", "0.66797024", "0.6654823", "0.6644703", "0.6637", "0.66287285", "0.66253984", "0.6588969", "0.6573542", "0.6528447", "0.6524147", "0.65201145", "0.6512925", "0.650741", "0.6488705", "0.64668095", "0.646156", "0.6457318", "0.64227086", "0.64192647", "0.6416769", "0.641075", "0.6394707", "0.639049", "0.634233", "0.6336671", "0.63257664", "0.632053", "0.6309521", "0.62986636", "0.627895", "0.62578356", "0.6233735", "0.62312794", "0.6212304", "0.6203646", "0.62010986", "0.618122", "0.6173654", "0.6173654", "0.61706644", "0.6165296", "0.61345685", "0.6119795", "0.611325", "0.60850054", "0.6068518", "0.6068036", "0.60641587", "0.60617197", "0.60508466", "0.6041457", "0.6035038", "0.6027376", "0.60267746", "0.60000956", "0.5988058", "0.5979217", "0.59578973", "0.59561646", "0.5946671", "0.5940775", "0.59369045", "0.5924692", "0.592257", "0.59113204", "0.5895648", "0.5892724", "0.5891766", "0.5890331", "0.58882743", "0.587327", "0.58727056", "0.58664054", "0.5862842", "0.5862417", "0.58619106", "0.5854457" ]
0.7650752
1
Adds the specified data to the end of the specified zone (using the specified file for the rendering)
public function push($zone, $file, $datasource = null);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function insert($zone, $file, $datasource = null);", "public function addFileAndRender(string $filename, Data $data = null) : Content;", "function ccio_appendData($filename, $data) {\r\n\t//$fh = fopen($filename, \"ab\");\r\n\t$fh = fopen($filename, \"at\");\r\n\tfwrite($fh, $data);\t\t\r\n\tfclose($fh);\r\n\treturn TRUE;\r\n}", "public static function add_row( $data, $file ){\n $file = fopen( $file, 'a' );\n\n fwrite( $file, $data.'.php'.PHP_EOL);\n fclose( $file );\n }", "public function addFile($data, $directoryName) {\r\n\r\n $directoryName = str_replace(\"\\\\\", \"/\", $directoryName); \r\n \r\n $feedArrayRow = \"\\x50\\x4b\\x03\\x04\";\r\n $feedArrayRow .= \"\\x14\\x00\"; \r\n $feedArrayRow .= \"\\x00\\x00\"; \r\n $feedArrayRow .= \"\\x08\\x00\"; \r\n $feedArrayRow .= \"\\x00\\x00\\x00\\x00\";\r\n\r\n $uncompressedLength = strlen($data); \r\n $compression = crc32($data); \r\n $gzCompressedData = gzcompress($data); \r\n $gzCompressedData = substr( substr($gzCompressedData, 0, strlen($gzCompressedData) - 4), 2);\r\n $compressedLength = strlen($gzCompressedData); \r\n $feedArrayRow .= pack(\"V\",$compression);\r\n $feedArrayRow .= pack(\"V\",$compressedLength);\r\n $feedArrayRow .= pack(\"V\",$uncompressedLength);\r\n $feedArrayRow .= pack(\"v\", strlen($directoryName) );\r\n $feedArrayRow .= pack(\"v\", 0 );\r\n $feedArrayRow .= $directoryName; \r\n\r\n $feedArrayRow .= $gzCompressedData; \r\n\r\n $feedArrayRow .= pack(\"V\",$compression);\r\n $feedArrayRow .= pack(\"V\",$compressedLength);\r\n $feedArrayRow .= pack(\"V\",$uncompressedLength);\r\n\r\n $this -> compressedData[] = $feedArrayRow;\r\n\r\n $newOffset = strlen(implode(\"\", $this->compressedData));\r\n\r\n $addCentralRecord = \"\\x50\\x4b\\x01\\x02\";\r\n $addCentralRecord .=\"\\x00\\x00\"; \r\n $addCentralRecord .=\"\\x14\\x00\"; \r\n $addCentralRecord .=\"\\x00\\x00\"; \r\n $addCentralRecord .=\"\\x08\\x00\"; \r\n $addCentralRecord .=\"\\x00\\x00\\x00\\x00\";\r\n $addCentralRecord .= pack(\"V\",$compression);\r\n $addCentralRecord .= pack(\"V\",$compressedLength);\r\n $addCentralRecord .= pack(\"V\",$uncompressedLength);\r\n $addCentralRecord .= pack(\"v\", strlen($directoryName) );\r\n $addCentralRecord .= pack(\"v\", 0 );\r\n $addCentralRecord .= pack(\"v\", 0 );\r\n $addCentralRecord .= pack(\"v\", 0 );\r\n $addCentralRecord .= pack(\"v\", 0 );\r\n $addCentralRecord .= pack(\"V\", 32 );\r\n\r\n $addCentralRecord .= pack(\"V\", $this -> oldOffset );\r\n $this -> oldOffset = $newOffset;\r\n\r\n $addCentralRecord .= $directoryName; \r\n\r\n $this -> centralDirectory[] = $addCentralRecord; \r\n }", "public function addFile($data, $name) {\r\n\r\n $name = str_replace(\"\\\\\", \"/\", $name);\r\n\r\n $fr = \"\\x50\\x4b\\x03\\x04\";\r\n $fr .= \"\\x14\\x00\"; // version needed to extract\r\n $fr .= \"\\x00\\x00\"; // general purpose bit flag\r\n $fr .= \"\\x08\\x00\"; // compression method\r\n $fr .= \"\\x00\\x00\\x00\\x00\"; // last mod time and date\r\n\r\n $unc_len = strlen($data);\r\n $crc = crc32($data);\r\n $zdata = gzcompress($data);\r\n $zdata = substr($zdata, 2, -4); // fix crc bug\r\n $c_len = strlen($zdata);\r\n $fr .= pack(\"V\",$crc); // crc32\r\n $fr .= pack(\"V\",$c_len); //compressed filesize\r\n $fr .= pack(\"V\",$unc_len); //uncompressed filesize\r\n $fr .= pack(\"v\", strlen($name) ); //length of filename\r\n $fr .= pack(\"v\", 0 ); //extra field length\r\n $fr .= $name;\r\n // end of \"local file header\" segment\r\n\r\n // \"file data\" segment\r\n $fr .= $zdata;\r\n\r\n // \"data descriptor\" segment (optional but necessary if archive is not served as file)\r\n $fr .= pack(\"V\",$crc); // crc32\r\n $fr .= pack(\"V\",$c_len); // compressed filesize\r\n $fr .= pack(\"V\",$unc_len); // uncompressed filesize\r\n\r\n // add this entry to array\r\n $this->datasec[] = $fr;\r\n\r\n $newOffset = strlen(implode(\"\", $this->datasec));\r\n\r\n // now add to central directory record\r\n $cdrec = \"\\x50\\x4b\\x01\\x02\";\r\n $cdrec .=\"\\x00\\x00\"; // version made by\r\n $cdrec .=\"\\x14\\x00\"; // version needed to extract\r\n $cdrec .=\"\\x00\\x00\"; // general purpose bit flag\r\n $cdrec .=\"\\x08\\x00\"; // compression method\r\n $cdrec .=\"\\x00\\x00\\x00\\x00\"; // last mod time & date\r\n $cdrec .= pack(\"V\",$crc); // crc32\r\n $cdrec .= pack(\"V\",$c_len); //compressed filesize\r\n $cdrec .= pack(\"V\",$unc_len); //uncompressed filesize\r\n $cdrec .= pack(\"v\", strlen($name) ); //length of filename\r\n $cdrec .= pack(\"v\", 0 ); //extra field length\r\n $cdrec .= pack(\"v\", 0 ); //file comment length\r\n $cdrec .= pack(\"v\", 0 ); //disk number start\r\n $cdrec .= pack(\"v\", 0 ); //internal file attributes\r\n $cdrec .= pack(\"V\", 32 ); //external file attributes - 'archive' bit set\r\n\r\n $cdrec .= pack(\"V\", $this->oldOffset); //relative offset of local header\r\n $this->oldOffset = $newOffset;\r\n\r\n $cdrec .= $name;\r\n // optional extra field, file comment goes here\r\n // save to central directory\r\n $this->ctrlDir[] = $cdrec;\r\n }", "public function append($data);", "public function add_to_foot($data)\n\t{\n\t\t$this->footer_item[] = $data;\n\t}", "public function addPart(string $location, string $content, ?int $seek = null): void;", "public function append($data)\n {\n $this->data .= $data;\n }", "function addFile($data, $name, $time = 0){\n\t\t\t$name = str_replace('\\\\','/',$name);\n\t\t\t$dtime = dechex($this -> unix2DosTime($time));\n\t\t\t$hexdtime = '\\x'.$dtime[6].$dtime[7].'\\x'.$dtime[4].$dtime[5].'\\x'.$dtime[2].$dtime[3].'\\x'.$dtime[0].$dtime[1];\n\t\t\teval('$hexdtime = \"'.$hexdtime.'\";');\n\n\t\t\t$fr = \"\\x50\\x4b\\x03\\x04\";\n\t\t\t$fr .= \"\\x14\\x00\";\n\t\t\t$fr .= \"\\x00\\x00\";\n\t\t\t$fr .= \"\\x08\\x00\";\n\t\t\t$fr .= $hexdtime;\n\n\t\t\t$unc_len = strlen($data);\n\t\t\t$crc = crc32($data);\n\t\t\t$zdata = gzcompress($data);\n\t\t\t$zdata = substr(substr($zdata,0,strlen($zdata) - 4),2);\n\t\t\t$c_len = strlen($zdata);\n\n\t\t\t$fr .= pack('V',$crc);\n\t\t\t$fr .= pack('V',$c_len);\n\t\t\t$fr .= pack('V',$unc_len);\n\t\t\t$fr .= pack('v',strlen($name));\n\t\t\t$fr .= pack('v',0);\n\t\t\t$fr .= $name;\n\t\t\t$fr .= $zdata;\n\t\t\t$this -> datasec[] = $fr;\n\n\t\t\t$cdrec = \"\\x50\\x4b\\x01\\x02\";\n\t\t\t$cdrec .= \"\\x00\\x00\";\n\t\t\t$cdrec .= \"\\x14\\x00\";\n\t\t\t$cdrec .= \"\\x00\\x00\";\n\t\t\t$cdrec .= \"\\x08\\x00\";\n\t\t\t$cdrec .= $hexdtime;\n\t\t\t$cdrec .= pack('V',$crc);\n\t\t\t$cdrec .= pack('V',$c_len);\n\t\t\t$cdrec .= pack('V',$unc_len);\n\t\t\t$cdrec .= pack('v',strlen($name));\n\t\t\t$cdrec .= pack('v',0);\n\t\t\t$cdrec .= pack('v',0);\n\t\t\t$cdrec .= pack('v',0);\n\t\t\t$cdrec .= pack('v',0);\n\t\t\t$cdrec .= pack('V',32);\n\t\t\t$cdrec .= pack('V',$this -> old_offset);\n\t\t\t$this -> old_offset += strlen($fr);\n\t\t\t$cdrec .= $name;\n\t\t\t$this -> ctrl_dir[] = $cdrec;\n\t\t}", "protected function appendInFile(string $output_file, string $content) {\n\n if(file_exists($output_file)) {\n\n $header1 = '\n// ===================================================================================================\n//\n// Generated Zone\n//\n// ===================================================================================================';\n\n $header2 = '\n\n//\n// ========================= End Generated Zone ======================================================\n//\n';\n\n $handle = fopen($output_file, 'a');\n fwrite($handle, $header1);\n fwrite($handle, $content);\n fwrite($handle, $header2);\n fclose($handle);\n }\n }", "static function appendSegment($file) {\n self::$segbuf .= self::SEGMENT_TERMINATOR;\n //self::trimSeparators(self::$segbuf);\n if (file_put_contents($file, self::$segbuf, FILE_APPEND) === FALSE) {\n $errmsg = \"File $file: Error writing segment \" . self::$segbuf\n . \".\\n\";\n fwrite(STDERR, $errmsg);\n exit(1);\n }\n }", "public function writeFile($data);", "function _addToZIPFile(& $file, & $contents, & $ctrldir) \n {\n $data = & $file['data'];\n $name = str_replace('\\\\', '/', $file['name']);\n \n $ftime = null;\n if (isset ($file['time'])) {\n $ftime = $file['time'];\n }\n \n $dtime = dechex($this->_unix2DosTime($ftime));\n $hexdtime = chr(hexdec($dtime[6] . $dtime[7])) .\n chr(hexdec($dtime[4] . $dtime[5])) .\n chr(hexdec($dtime[2] . $dtime[3])) .\n chr(hexdec($dtime[0] . $dtime[1]));\n\n /* Begin creating the ZIP data. */\n \n $fr = $this->_fileHeader; \n $fr .= \"\\x14\\x00\"; /* Version needed to extract. */\n $fr .= \"\\x00\\x00\"; /* General purpose bit flag. */\n $fr .= \"\\x08\\x00\"; /* Compression method. */\n $fr .= $hexdtime; /* Last modification time/date. */\n \n /* \"Local file header\" segment. */\n \n $unc_len = strlen($data);\n $crc = crc32($data);\n $zdata = gzcompress($data);\n $zdata = substr(substr($zdata, 0, strlen($zdata) - 4), 2);\n $c_len = strlen($zdata);\n $fr .= pack('V', $crc); /* CRC 32 information. */\n $fr .= pack('V', $c_len); /* Compressed filesize. */\n $fr .= pack('V', $unc_len); /* Uncompressed filesize. */\n $fr .= pack('v', strlen($name)); /* Length of filename. */\n $fr .= pack('v', 0); /* Extra field length. */\n $fr .= $name; /* File name. */\n \n /* \"File data\" segment. */\n $fr .= $zdata;\n\n /* Add this entry to array. */\n $old_offset = strlen(implode('', $contents));\n $contents[] = & $fr;\n\n /* Add to central directory record. */\n $cdrec = $this->_ctrlDirHeader;\n $cdrec .= \"\\x00\\x00\"; /* Version made by. */\n $cdrec .= \"\\x14\\x00\"; /* Version needed to extract */\n $cdrec .= \"\\x00\\x00\"; /* General purpose bit flag */\n $cdrec .= \"\\x08\\x00\"; /* Compression method */\n $cdrec .= $hexdtime; /* Last mod time/date. */\n $cdrec .= pack('V', $crc); /* CRC 32 information. */\n $cdrec .= pack('V', $c_len); /* Compressed filesize. */\n $cdrec .= pack('V', $unc_len); /* Uncompressed filesize. */\n $cdrec .= pack('v', strlen($name)); /* Length of filename. */\n $cdrec .= pack('v', 0); /* Extra field length. */\n $cdrec .= pack('v', 0); /* File comment length. */\n $cdrec .= pack('v', 0); /* Disk number start. */\n $cdrec .= pack('v', 0); /* Internal file attributes. */\n $cdrec .= pack('V', 32); /* External file attributes - 'archive' bit set. */\n $cdrec .= pack('V', $old_offset); /* Relative offset of local header. */\n $cdrec .= $name; /* File name. */\n /* Optional extra field, file comment goes here. */\n\n // Save to central directory array. */\n $ctrldir[] = & $cdrec;\n }", "protected function stash_step_data( $data = '' ) {\n\t\t$file = $this->get_file();\n\t\t$file .= $data;\n\n\t\t@file_put_contents( $this->file, $file );\n\t}", "protected function putRawDataIntoArchive(string &$zdata): void\n\t{\n\t\t// Single part archive. Just dump the compressed data.\n\t\tif (!$this->useSplitArchive)\n\t\t{\n\t\t\t$this->fwrite($this->fp, $zdata);\n\n\t\t\treturn;\n\t\t}\n\n\t\t// Split JPA. Check if we need to split the part in the middle of the data.\n\t\t$freeSpaceInPart = $this->getPartFreeSize();\n\n\t\t// Nope. We have enough space to write all of the data in this part.\n\t\tif ($freeSpaceInPart >= akstrlen($zdata))\n\t\t{\n\t\t\t$this->fwrite($this->fp, $zdata);\n\n\t\t\treturn;\n\t\t}\n\n\t\t$bytesLeftInData = akstrlen($zdata);\n\n\t\twhile ($bytesLeftInData > 0)\n\t\t{\n\t\t\t// Try to write to the archive. We can only write as much bytes as the free space in the backup archive OR\n\t\t\t// the total data bytes left, whichever is lower.\n\t\t\t$bytesWritten = $this->fwrite($this->fp, $zdata, min($bytesLeftInData, $freeSpaceInPart));\n\n\t\t\t// Since we may have written fewer bytes than anticipated we use the real bytes written for calculations\n\t\t\t$freeSpaceInPart -= $bytesWritten;\n\t\t\t$bytesLeftInData -= $bytesWritten;\n\n\t\t\t// If we still have data to write, remove the part already written and keep the rest\n\t\t\tif ($bytesLeftInData > 0)\n\t\t\t{\n\t\t\t\t$zdata = aksubstr($zdata, -$bytesLeftInData);\n\t\t\t}\n\n\t\t\t// If the part file is full create a new one\n\t\t\tif ($freeSpaceInPart <= 0)\n\t\t\t{\n\t\t\t\t// Create new part\n\t\t\t\t$this->createAndOpenNewPart();\n\n\t\t\t\t// Get its free space\n\t\t\t\t$freeSpaceInPart = $this->getPartFreeSize();\n\t\t\t}\n\t\t}\n\n\t\t// Tell PHP to free up some memory\n\t\t$zdata = null;\n\t}", "public function addData(string $data);", "function addFile($data, $name, $time = 0)\n {\n $name = str_replace('\\\\', '/', $name);\n\n $dtime = dechex($this->unix2DosTime($time));\n $hexdtime = '\\x' . $dtime[6] . $dtime[7]\n . '\\x' . $dtime[4] . $dtime[5]\n . '\\x' . $dtime[2] . $dtime[3]\n . '\\x' . $dtime[0] . $dtime[1];\n eval('$hexdtime = \"' . $hexdtime . '\";');\n\n $fr = \"\\x50\\x4b\\x03\\x04\";\n $fr .= \"\\x14\\x00\"; // ver needed to extract\n $fr .= \"\\x00\\x00\"; // gen purpose bit flag\n $fr .= \"\\x08\\x00\"; // compression method\n $fr .= $hexdtime; // last mod time and date\n\n // \"local file header\" segment\n $unc_len = strlen($data);\n $crc = crc32($data);\n $zdata = gzcompress($data);\n $zdata = substr(substr($zdata, 0, strlen($zdata) - 4), 2); // fix crc bug\n $c_len = strlen($zdata);\n $fr .= pack('V', $crc); // crc32\n $fr .= pack('V', $c_len); // compressed filesize\n $fr .= pack('V', $unc_len); // uncompressed filesize\n $fr .= pack('v', strlen($name)); // length of filename\n $fr .= pack('v', 0); // extra field length\n $fr .= $name;\n\n // \"file data\" segment\n $fr .= $zdata;\n\n // \"data descriptor\" segment (optional but necessary if archive is not\n // served as file)\n $fr .= pack('V', $crc); // crc32\n $fr .= pack('V', $c_len); // compressed filesize\n $fr .= pack('V', $unc_len); // uncompressed filesize\n\n // add this entry to array\n $this -> datasec[] = $fr;\n\n // now add to central directory record\n $cdrec = \"\\x50\\x4b\\x01\\x02\";\n $cdrec .= \"\\x00\\x00\"; // version made by\n $cdrec .= \"\\x14\\x00\"; // version needed to extract\n $cdrec .= \"\\x00\\x00\"; // gen purpose bit flag\n $cdrec .= \"\\x08\\x00\"; // compression method\n $cdrec .= $hexdtime; // last mod time & date\n $cdrec .= pack('V', $crc); // crc32\n $cdrec .= pack('V', $c_len); // compressed filesize\n $cdrec .= pack('V', $unc_len); // uncompressed filesize\n $cdrec .= pack('v', strlen($name) ); // length of filename\n $cdrec .= pack('v', 0 ); // extra field length\n $cdrec .= pack('v', 0 ); // file comment length\n $cdrec .= pack('v', 0 ); // disk number start\n $cdrec .= pack('v', 0 ); // internal file attributes\n $cdrec .= pack('V', 32 ); // external file attributes - 'archive' bit set\n\n $cdrec .= pack('V', $this -> old_offset ); // relative offset of local header\n $this -> old_offset += strlen($fr);\n\n $cdrec .= $name;\n\n // optional extra field, file comment goes here\n // save to central directory\n $this -> ctrl_dir[] = $cdrec;\n }", "public function addFooter($filename)\n {\n }", "public static function addData($file, $post)\n {\n if (!file_exists($file)) {\n $h = fopen(\n $file,\n \"w\"\n ) or die(\"Unable to open file \" . $file);\n\n\n $data = array();\n foreach ($post as $value) {\n $data[] = $value;\n }\n\n fwrite($h, json_encode($data));\n fclose($h);\n\n } // file exists, update with new options\n else {\n $data = MetaDataWriter::getFileData($file);\n\n $array[] = $data;\n $array[] = $post;\n $array = arrayFlatten($array);\n $array = array_unique($array);\n\n self::writeData($file, $array);\n }\n }", "public static function appendContents($filename, array $data)\n {\n $contents = static::arrayToString($data);\n File::appendContents($filename, $contents);\n }", "function add_to_file_contents($content) {\n\t\t$this->contents .= $content;\n\t}", "protected function appendData($data)\n {\n $this->sha1 = null;\n $this->data.=$data;\n }", "function file_append($file, $data, $delimiter = '') {\n return file_write($file, $data . $delimiter, FILE_APPEND);\n}", "private function setZone(array $data, ExpressZone $zone) {\n $zone->name = $data['name'];\n $zone->company()->associate($data['company_id']);\n $step_cost_array = array();\n for ($i = 1; $i <= count($data['cost']); $i++) {\n $step_cost_array[$i - 1] = (object) array();\n $step_cost_array[$i - 1]->cost = (double) $data['cost'][$i];\n $step_cost_array[$i - 1]->weight_to = (double) $data['weight_to'][$i];\n $step_cost_array[$i - 1]->weight_from = (double) $data['weight_from'][$i];\n }\n $zone->step_cost_array = $step_cost_array;\n $zone->save();\n return $zone;\n }", "public function add( $data, $shard = NULL );", "public function add(){\n\t\t\n\t\t// Open or create file\n\t\t$f = fopen($this->file, 'wb');\n\t\tfclose($f);\n\t}", "function append($data) {}", "public function writeData($data, $instrument_code, $file)\n {\n\n $data = $data->groupBy('market_id');\n\n $strToadd = '';\n\n foreach ($data as $trade_date => $instrumentData) {\n\n $instrumentData = $instrumentData->unique('total_volume')->values();\n\n\n $i = 0;\n foreach ($instrumentData as $row) {\n $last_minute_total_volume = $row->total_volume;\n\n if (isset($instrumentData[$i + 1]))\n $prev_minute_of_lastminute_volume = $instrumentData[$i + 1]->total_volume;\n else\n {\n $prev_minute_of_lastminute_volume = 0;\n\n }\n\n\n $last_minute_traded_vol = $last_minute_total_volume - $prev_minute_of_lastminute_volume;\n\n if($last_minute_traded_vol<0) // skip some negative value specially for dsex\n continue;\n\n $time_formated = $row['lm_date_time']->format('H:i');\n $date_formated = $row['lm_date_time']->format('d/m/Y');\n\n\n if ($this->debug) {\n $strToadd .= $instrument_code . ',' . $time_formated . ',' . $date_formated . ',' . $row->close_price . ',' . $row->close_price . ',' . $row->close_price . ',' . $row->close_price . ',' . $last_minute_traded_vol . ',' . $row->total_volume . \"\\n\";\n dump(\"last_minute_total_volume=$last_minute_total_volume | prev_minute_of_lastminute_volume=$prev_minute_of_lastminute_volume = $last_minute_traded_vol\");\n } else {\n $strToadd .= $instrument_code . ',' . $time_formated . ',' . $date_formated . ',' . $row->close_price . ',' . $last_minute_traded_vol . \"\\n\";\n\n }\n\n $i++;\n }\n\n\n }\n\n Storage::append($file, $strToadd);\n\n if (!$this->debug) {\n $zipper = new \\Chumper\\Zipper\\Zipper;\n $files = glob(storage_path() . '/app/plugin/intra/*');\n $zipper->make(storage_path() . '/app/plugin/intra.zip')->add($files)->close();\n }\n\n\n }", "function addData($name, $message)\n{\n global $dataFileName;\n $newline = implode('|', [$name, $message]).\"\\r\\n\";\n $file = fopen($dataFileName, 'a');\n fwrite($file, $newline);\n}", "public function putContents($file, $data, $append = false);", "public function write($data)\n {\n $this->buffer .= $data;\n }", "public function append(string $name, array $data): void;", "public function add($chunk, FileInfo $fileInfo = null, $index = 0, $mapLines = null);", "protected function filewrite($data = NULL) {\n ob_start();\n print_r($data);\n $c = ob_get_clean();\n $fc = fopen('txtfile' . DS . 'data.txt', 'w');\n fwrite($fc, $c);\n fclose($fc);\n }", "private function add($type, $file)\n {\n array_push($this->asset[$type], $file);\n }", "public function append($data) {\r\n\t\tif ($this->exists) {\r\n\t\t\t\r\n\t\t\t$handle = fopen ( $this->filename, \"a\" ) or die ( $this->error [\"103\"] );\r\n\t\t\tfwrite ( $handle, $data );\r\n\t\t\tfclose ( $handle );\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\t\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public function putContent($data) {\n\t\t$this->storage->file_put_contents($this->path, $data);\n\t}", "public function addFile($file);", "private function appendData($string)\n {\n $this->buffer[] = $string;\n }", "static function writeFl($data,$file)\n {\n $filec = fopen($file,\"w\") or die(\"unable to open\");\n fwrite($filec,$data);\n }", "function write($offset, $data) {}", "function writeJson($file,$data){ \r\n if(file_exists($file)) {\r\n $tempString = file_get_contents($file);\r\n $handle = fopen($file, 'w+');\r\n $tempArr = json_decode($tempString);\r\n $tempArr[] = $data;\r\n $readyData = json_encode($tempArr);\r\n fwrite($handle,$readyData);\r\n fclose($handle);\r\n }else{\r\n $handle = fopen($file, 'w+');\r\n $tempArr = [];\r\n $tempArr[] = $data;\r\n fwrite($handle,json_encode($tempArr));\r\n fclose($handle);\r\n }\r\n }", "public function addData(array $data, $templates = null);", "public function replaceFileContent($data_array)\n {\n try {\n if ((array) $data_array !== $data_array) {\n throw new Exception('Invalid data_array');\n }\n\n // Append to File\n file_put_contents($this->file_name, json_encode($data_array));\n\n } catch (Exception $ex) {\n echo static::exceptionCaught($ex);\n }\n }", "public function add_data($data)\n {\n }", "public static function addDataFlat($file, $post)\n {\n if (!file_exists($file)) {\n $h = fopen(\n $file,\n \"w\"\n ) or die(\"Unable to open file \" . $file);\n\n\n $data = array();\n foreach ($post as $value) {\n $data[0] = $value;\n }\n\n fwrite($h, json_encode($data));\n fclose($h);\n\n } // file exists, update with new options\n else {\n $data = MetaDataWriter::getFileData($file);\n\n $array[] = $data;\n $array[] = $post;\n $array = arrayFlatten($array);\n $array = array_unique($array);\n\n self::writeData($file, $array);\n }\n }", "function addMessage($message)\r\n{\r\n\t$name = ($message['action']) ? '*'.$message['name'] : $message['name'];\r\n\t$text = $message['text'];\r\n\t$time = $message['time'];\r\n\r\n\tif(strlen($name) == 0)\r\n\t\treturn;\r\n\r\n\t$line = $time.'||'.$name.'||'.$text;\r\n\r\n\t// Pull the current file contents\r\n $fileContents = file(LACE_FILE);\r\n\t$size = count($fileContents);\r\n\r\n if ($size >= LACE_FILE_MAX_SIZE)\r\n {\r\n\t // Push the oldest entries out\r\n\t // and put the new one in\r\n\t for ($i = 0; $i <= $size - LACE_FILE_MAX_SIZE; $i++)\r\n\t\t array_shift($fileContents);\r\n\r\n\t $fileContents[] = $line;\r\n \t$fileContents = implode(\"\\n\", array_map('trim', $fileContents)).\"\\n\";\r\n\r\n \t// Write it to file\r\n \tfile_put_contents(LACE_FILE, trim($fileContents));\r\n }\r\n else\r\n {\r\n // No need to push anything off the stack,\r\n // just write to file\r\n \t$file = fopen(LACE_FILE, 'a');\r\n fwrite($file, $line.\"\\n\");\r\n fclose($file);\r\n }\r\n\r\n // Add to the log\r\n logMessage($line);\r\n}", "function addLocation($data) {\r\n\r\n\r\n\t\t$this->query('INSERT INTO locations (`id`, `created`, `modified`, `name`) \r\n\t\t\t\t\t\t\t VALUES (NULL, CURRENT_TIMESTAMP(), CURRENT_TIMESTAMP(), \"'. $data['name'] .'\");');\r\n\r\n\t}", "public function appendData($name, array $data) {\n $this->data[$name] = array_merge($this->data[$name], $data);\n }", "public function appendCharacterToData($character)\n {\n $this->data .= $character;\n }", "abstract public function write($data);", "public function addFile($file)\r\n\t{\r\n\t\t$this->frame[Cache::FILES][] = $file;\r\n\t}", "public function attach(\n $zone, $widget, $render = null, $datasource = null\n );", "public function addLog($log_data)\n {\n // open the file\n $log_file = $this->openFile();\n\n // get current (last) line\n $log_file->seek($this->file_line);\n $this->file_line = $log_file->key() + 1;\n \n // write the log\n $time_of_day = gettimeofday(); \n $timestamp = date('Y-m-d H:i:s.',$time_of_day['sec']) . $time_of_day['usec'];\n \n $log_string = \"\\n\".$timestamp.'|'.implode('|', $log_data);\n $log_file->fwrite($log_string);\n \n // close the file\n $this->closeFile($log_file);\n }", "function acf_append_data($name, $data)\n{\n}", "public function insertZone($info) {\n\t\t$this->insert ( $info );\n\t}", "public function addData($data, $offset = 0) {\n\t\t// solve textual representation\n\t\tif (!is_numeric($offset))\n\t\t\t$offset = PHPExcel_Cell::columnIndexFromString($offset);\n\n\t\tforeach ($data as $d) {\n\t\t\t$this->xls->getActiveSheet()->setCellValueByColumnAndRow($offset++, $this->row, $d);\n\t\t}\n\t\t$this->row++;\n\t}", "public static function append($_path, $_data)\r\n {\r\n return file_put_contents($_path, $_data, FILE_APPEND);\r\n }", "public function add($parent, Google_Service_ServiceNetworking_AddDnsZoneRequest $postBody, $optParams = array())\n {\n $params = array('parent' => $parent, 'postBody' => $postBody);\n $params = array_merge($params, $optParams);\n return $this->call('add', array($params), \"Google_Service_ServiceNetworking_Operation\");\n }", "public function add_locations($data){\n\t\tforeach($data as $rec){\n\t\t\t$docs[] = $this->_location($rec);\n\t\t}\n\t\treturn $this->update_docs($docs);\n\t}", "public function addEntry(DataStreamEntry $entry);", "public function write($data);", "public function write($data);", "public function write($data);", "public function write($data);", "protected function addOtherData(array $data) : void\n {\n $this->otherData += $data;\n }", "private function _appendRawDataToFile($filepath, $data) {\n\t\treturn file_put_contents($filepath,$data,FILE_APPEND | LOCK_EX);\n\t}", "public function writeToFile($data){\t\n\t\tfwrite($this->fptr,$data);\n\t}", "public function addJsScriptBottom($file){\n array_push($this->_jsScriptsBottom,$file);\n }", "public function add($data)\n {\n // this method can be overloaded\n foreach (func_get_args() as $data) {\n // redefine var\n $data = (string) $data;\n\n // load data\n $value = $this->load($data);\n $key = ($data != $value) ? $data : 0;\n\n // initialize key\n if(!array_key_exists($key, $this->data)) $this->data[$key] = '';\n\n // store data\n $this->data[$key] .= $value;\n }\n }", "public function append($section){\n\t\t$body = $this->toArray();\n\t\t$_section = $this->get($section);\n\t\t$temp_body = [];\n\t\t$i = 0;\n\t\t$j = sizeof($body);\n\t\tforeach ($body as $key => $value) {\n\t\t\tif($key != $section){\n\t\t\t\tif($i == ($j - 1)){\n\t\t\t\t\t$temp_body[$key] = $value;\n\t\t\t\t\t$temp_body[$section] = $_section;\n\t\t\t\t} else {\n\t\t\t\t\t$temp_body[$key] = $value;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\t\t$this->updateFile($temp_body);\n\t}", "private function addData($data)\n {\n if(!is_array($data))\n\t\t\tthrow new Exception(\"Could not load a non-array data!\");\n\t\tif(!isset ($data['id']))\n\t\t\tthrow new Exception(\"Every array of data needs an 'id'!\");\n\t\tif(!isset ($data['data']))\n\t\t\tthrow new Exception(\"Loaded array needs an element 'data'!\");\n\n\t\t$this->_data[]=$data;\n }", "public function postAdd(ZoneRequest $request)\n {\n $input = $request->input();\n $this->zone->store($input);\n return $this->response->send();\n }", "public function addData($viewData) {\n $this->viewData = array_merge($this->viewData, $viewData);\n }", "public function writeFile($path, $data);", "public function appendNewLine($data) {\r\n\t\tif ($this->exists) {\r\n\t\t\t\r\n\t\t\t$handle = fopen ( $this->filename, \"a\" ) or die ( $this->error [\"103\"] );\r\n\t\t\tfwrite ( $handle, \"\\n\" . $data );\r\n\t\t\tfclose ( $handle );\r\n\t\t\treturn true;\r\n\t\t\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "function insertBugTrace($UUID, $data, $debugInfo) {\n\tob_start();\n\t//$firephp = FirePHP::getInstance(true);\n\t//$firephp->log(\"insertBugTrace entered.\");\n\t$time = time();\n\t$fullTrace = \"$data\\n<!-- $debugInfo -->\";\n\t$filename = \"bugtraces/$time\" . \"_\" . $UUID . \".xml\";\n\t// $firephp->log(\"putting bug trace ($filename) to disk: $fullTrace\");\n\t//$firephp->log(\"putting bug trace ($filename) to disk.\");\n file_put_contents($filename, $fullTrace);\n}", "public function loadTimeZoneData(string $timeZone) : void;", "function file_compress_write ($filename, $data) {\r\n $fd = fopen($filename, 'w') or die(\"Can't open file $filename for write!\");\r\n fwrite($fd, gzcompress($data, 9));\r\n fclose($fd);\r\n }", "public static function append($path, $data)\r\n {\r\n return self::write($path, $data, 'a');\r\n }", "public function appendData($body, $index = null)\n {\n if ($index) {\n $this->data[$index] = $body;\n } else {\n $this->data[] = $body;\n }\n }", "function append(string $data): self {\n $this->buffer .= $data;\n return $this;\n }", "public function addRow($data){\n $data = (array)$data;\n $this->counter++;\n $newRow = [];\n $newRow = array_merge($newRow, $this->saveMetaData($data));\n $newRow = array_merge($newRow, $this->saveGeoData($data));\n $newRow = array_merge($newRow, $this->saveCoreData($data));\n $this->rowData[]=$newRow;\n }", "public function create($data) {\n\t\t// Create an ID\n\t\t$id = $this->idCreate();\n\t\t// Write the data file\n\t\tfile_put_contents( $this->init['path']['data'] . $id . $this->init['data']['ext'] );\n\t}", "public function insertIntoFile($data)\n\t{\n\t\textract($data);\n\t\t\n\t\t$result = false;\n\t\t$content = file_get_contents($file_path);\n\t\tif ( !empty($content) && strpos($content,$test) === false )\n\t\t{\n\t\t\t$content = iconv('ASCII//TRANSLIT','UTF-8',$content);\n\t\t\t//echo $content;exit;\n\t\t\t//preg_match('/'.$pattern.'/i', $content, $m);\n\t\t\t//print_r($m);exit;\n\t\t\t$content = preg_replace('/'.$pattern.'/i', $replacement, $content);\n\t\t\t//echo $content;exit;\n\t\t\tif ( strpos($content,$test) !== false )\n\t\t\t\t$result = file_put_contents($file_path, $content);\n\t\t}\n\n\t\treturn $result;\n\t}", "function insert_with_markers($filename, $marker, $insertion)\n {\n }", "public function addToTxtFile($auth_code);", "public function addDataView($data)\n {\n $this->vars = array_merge($this->vars, $data);\n }", "public function addOrderLayer()\n {\n $transactions = $this->orderDataArray->setOrderIds($this->getOrderIds())->getOrderLayer();\n\n if (!empty($transactions)) {\n /** @var $tm DataLayer */\n $tm = $this->getParentBlock();\n foreach ($transactions as $order) {\n $tm->addCustomDataLayer($order);\n }\n }\n }", "public function addData($data)\n {\n $data = $this->hydrateIfJsonToArray($data);\n $this->data[] = $data;\n }", "public function appendToFile($marker) {\n return $this->getScenario()->runStep(new \\Codeception\\Step\\Action('appendToFile', func_get_args()));\n }", "function _put_cache_file ($data = [], $cache_file = \"\") {\n\t\tif (empty($cache_file)) {\n\t\t\treturn false;\n\t\t}\n\t\tif ($this->USE_MEMCACHED) {\n// TODO\n//\t\t\t$cache_key = basename($cache_file);\n//\t\t\t$this->MC_OBJ->put($cache_key, $data, $this->CACHE_TTL);\n\t\t// Common (files-based) cache code\n\t\t} else {\n\t\t\tforeach ((array)$data as $k => $v) {\n\t\t\t\t$file_text .= \"\\t'\".$this->_put_safe_slashes($k).\"' => \";\n\t\t\t\t$file_text .= is_array($v) ? $this->_create_array_code($v) : \"'\".$this->_put_safe_slashes($v).\"',\";\n\t\t\t\t$file_text .= \"\\r\\n\";\n\t\t\t}\n\t\t\tfile_put_contents($cache_file, $this->_auto_header. \"\\$data = array(\\r\\n\".$file_text.\");\". $this->_auto_footer);\n\t\t}\n\t}", "public function add(array $data)\n {\n $this->data = array_merge($this->data, $data);\n }", "public function _write($data)\n {\n }", "public function addOffset($offset) {}", "public function add($file) {\n\t\tarray_push($this->files, $file);\n\t}", "public function editData() {\n $this->daftar_barang = array_values($this->daftar_barang);\n $data_barang = json_encode($this->daftar_barang, JSON_PRETTY_PRINT);\n file_put_contents($this->file, $data_barang);\n $this->ambilData();\n }", "public function addOffset($offset);" ]
[ "0.60472345", "0.5827741", "0.57640314", "0.562386", "0.5458309", "0.53695035", "0.5194372", "0.51710063", "0.51612914", "0.5153576", "0.51380014", "0.5135394", "0.51191866", "0.5118629", "0.5094536", "0.5086821", "0.50509304", "0.5021039", "0.5006363", "0.500201", "0.49912176", "0.49895602", "0.49645755", "0.4952411", "0.4948729", "0.49454644", "0.4916473", "0.49097994", "0.48914105", "0.48906833", "0.48826337", "0.48306465", "0.4827519", "0.47846955", "0.47681215", "0.47648907", "0.475532", "0.47509307", "0.47492337", "0.4739638", "0.47344586", "0.47343275", "0.47217384", "0.46900573", "0.46892047", "0.46834174", "0.46730685", "0.46679166", "0.4658268", "0.46317264", "0.46316773", "0.46213976", "0.4599679", "0.45827967", "0.4578272", "0.45770422", "0.45722377", "0.45710635", "0.45670485", "0.45656124", "0.45606896", "0.45539176", "0.45529777", "0.45435628", "0.45435628", "0.45435628", "0.45435628", "0.45389402", "0.4513734", "0.4498911", "0.4481975", "0.44638515", "0.4459269", "0.44548333", "0.44525295", "0.4448214", "0.44449663", "0.44421822", "0.4439834", "0.4435867", "0.44351077", "0.443361", "0.44260353", "0.44246987", "0.4424395", "0.44147307", "0.4391626", "0.43914482", "0.43871203", "0.43869936", "0.43837938", "0.43837914", "0.43762985", "0.43553814", "0.4349964", "0.43381634", "0.4335633", "0.43282214", "0.43241227", "0.4322714" ]
0.6148685
0
Attaching a widget data
public function attach( $zone, $widget, $render = null, $datasource = null );
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hotpro_load_widget() {register_widget( 'data_hotpro_widget' );}", "public function addWidget()\r\n {\r\n }", "function wpb_load_widget() {\n\t\tregister_widget( 'dmv_widget' );\n\t}", "public function widget( $args, $instance ){}", "public function setData($data);", "public function setData($data);", "public function setData($data);", "public function setData($data);", "public function setData($data);", "public static function setData($data) {}", "public function addDeclaredWidget($name, $data)\n {\n $this->_library['widgets']['declared']['options'][$name] = $data['title'];\n\n if (!empty($data['params'])) {\n foreach ($data['params'] as $key => $param) {\n if (empty($param['args']['field'])) {\n $data['params'][$key]['args']['field'] = $key;\n }\n }\n }\n\n $this->_library['declared'][$name] = $data;\n return $this;\n }", "public function loadWidgetData(){\n\t\tswitch($this->input->get('widget_id')){\n\t\t\tcase 3:\n\t\t\t\t$data = array(\n\t\t\t\t\t'color' => 'blue_green',\n\t\t\t\t\t'icon' => 'fa-check-square-o',\n\t\t\t\t\t'value1' => 'Bloog Glucose',\n\t\t\t\t\t'value2' => '223',\n\t\t\t\t);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$data = array(\n\t\t\t\t\t'color' => 'blue_green',\n\t\t\t\t\t'icon' => 'fa-check-square-o',\n\t\t\t\t\t'value1' => 'Unknown widget',\n\t\t\t\t\t'value2' => '?',\n\t\t\t\t);\n\t\t\t\tbreak;\n\t\t}\n\t\t$this->ajaxResponse($data);\n\t}", "public function bindToController()\n {\n if ($this->controller->widget === null) {\n $this->controller->widget = new stdClass;\n }\n\n $this->controller->widget->{$this->alias} = $this;\n }", "public function attach(WidgetProvider $provider): void\n {\n $this->attached = $provider;\n }", "public function setWidget($widget);", "public function setData($data) { \n $this->data = $data; \n }", "public function setData($data)\n {\n $this->_data = $data;\n }", "function addComponent($data);", "public function setData($data)\r\n {\r\n }", "function setData($data)\n {\n $this->data = $data;\n }", "function aw_add_load_widget() {\r\n\t\tregister_widget( 'AW_AddFeed' );\r\n\t}", "public function add_instance($data) {\n\n\n\n }", "public function bind(\\DomNode $element, $data, $type = 'data') {\n\t\t//This is a bit of a hack to workaround #24, might need a better way of doing this if it causes a problem\n\t\tif (is_array($data) && $this->isObjectArray($data)) $data = $data[0];\n\t\t$content = isset($this->dataStorage[$element]) ? $this->dataStorage[$element] : [];\n\t\t$content[$type] = $data;\n\t\t$this->dataStorage[$element] = $content;\n\t}", "function setData($data)\n\t{\n\t\t$this->data = $data;\n\t}", "function setData($data)\n\t{\n\t\t$this->data = $data;\n\t}", "function setData($data)\n\t{\n\t\t$this->data = $data;\n\t}", "private function setData($data)\n {\n \t$this->data = $data;\n }", "function register_dc_widget() {\n\t\tregister_widget( 'dc_linked_image' );\n\t\tregister_widget( 'dc_widget_link_text' );\n\t}", "public function setData($data) \n\t{\n $this->data = $data;\n }", "abstract public function widget_markup( $args, $instance );", "public function register_widget() {\n register_widget( 'WPP_Widget' );\n }", "function bind($tag_name, $data)\r\n {\r\n if (is_array($data)) {\r\n foreach ($data as $name => $val) {\r\n $this->set($name, $val);\r\n }\r\n } else {\r\n $this->set($tag_name, $data);\r\n\r\n }\r\n }", "public function onRegister($widget){\n if(!empty($widget['Attributes'])){\n $attributes = $widget['Attributes'];\n }\n }", "public function setData() {\n\t\t$this->import($this->get());\n\t}", "public function setData( $data )\n {\n $this->data = $data;\n }", "function abc_load_widget()\n{\n register_widget('awesome_bmi_widget');\n}", "public function setData($data)\n\t{\n\t\t$this->_pageData['data'] = $data;\n\t}", "public function setData($data)\r\n\t{\r\n\t\t$this->data = $data;\r\n\t}", "function wpb_load_widget() {\n register_widget( 'lrq_widget' );\n }", "public function bindData($data = array()) {\r\n\t\tparent::bindData($data);\r\n\r\n\t\t// add size to data\r\n $this->_updateFileSize();\r\n\t}", "function save_widget($instance, $new_instance, $old_instance, $widget)\n {\n }", "function save_widget($instance, $new_instance, $old_instance, $widget)\n {\n }", "public function _register_widgets()\n {\n }", "private function initializeWidgetContext() {}", "function post() {\n\t\t\n\t\t$this->doFormatAction($this->params['format']);\n\t\n\t\t// used to add outer wrapper to widget if it's the first view.\n\t\t$iv = $this->getParam('initial_view');\n\t\tif ($iv == true):\n\t\t\t$this->data['subview'] = $this->data['view'];\n\t\t\t$this->data['view'] = 'base.widget';\n\t\t\t// we dont want to keep passing this.\n\t\t\tunset($this->data['params']['initial_view']);\n\t\tendif;\n\t\t\n\t\t\n\t\t$this->data['wrapper'] = $this->getParam('wrapper');\n\t\t$this->data['widget'] = $this->params['do'];\n\t\t$this->data['do'] = $this->params['do'];\n\t\t\n\t\t// set default dimensions\n\t\t\n\t\tif (array_key_exists('width', $this->params)):\n\t\t\t$this->setWidth($this->params['width']);\n\t\tendif;\n\t\t\n\t\tif (array_key_exists('height', $this->params)):\n\t\t\t$this->setHeight($this->params['height']);\n\t\tendif;\n\n\t}", "public function setData($data) {\n $this->data = $data;\n }", "private function initializeWidgetIdentifier() {}", "function register_widget($widget)\n {\n }", "public function get_widget_data() {\n\n return Widget::get_widget_data($this->settings);\n\n }", "function duende_load_widget() {\n\tregister_widget( 'duende_widget' );\n}", "function acf_append_data($name, $data)\n{\n}", "public function setData($data)\n\t{\n\t\t$this->data = $data;\n\t}", "function d7_schema_info_widget_load_widget() {\n\tregister_widget( 'd7_schema_info_widget' );\n}", "public function setData($data)\n {\n $this->data = $data;\n }", "public function setData($data)\n {\n $this->data = $data;\n }", "function widget($args, $instance) {\n\t\tdo_utcw(array_merge($instance, $args));\n\t}", "public static function a_widget_init() {\n\t\t\treturn register_widget(__CLASS__);\n\t\t}", "public function editorAttach(&$element, &$settings);", "public function addWidgetToContext($context, $widget)\r\n {\r\n }", "function register_broker_widget() {\n register_widget( 'Broker_Widget' );\n}", "function hw_load_widget() {\n\tregister_widget( 'hw_cal_widget' );\n\tregister_widget( 'hw_custom_post_list_widget' );\n}", "function wpb_load_widget() {\n register_widget( 'recent_post_widget' );\n }", "public function setData() \n {\n // Empty, to be overridden \n }", "public function insert_widgets($aData)\r\n {\r\n if($aData['base_file']){\r\n $aData['core_file'] = substr($aData['base_file'], strpos($aData['base_file'], ':')+1);\r\n $aData['core_slot'] = $aData['base_slot'];\r\n $aData['core_id'] = $aData['base_id'];\r\n $aData['app'] = 'b2c';\r\n unset($aData['base_file']);\r\n unset($aData['base_slot']);\r\n unset($aData['base_id']);\r\n }//fix template install\r\n $aData['modified'] = time();\r\n return app::get('site')->model('widgets_instance')->insert($aData);\r\n }", "public function setData($_data)\n {\n $this->_data = $_data;\n }", "function custom_register_widget()\n{\n register_widget('oferta_widget');\n register_widget('events_widget');\n register_widget('group_list_widget');\n}", "public function attachJsToElement(&$element) {\n\n if ($this->addthis->getWidgetJsInclude() != AddThis::WIDGET_JS_INCLUDE_NONE) {\n $widget_js = new AddThisWidgetJsUrl($this->getWidgetJsUrl());\n\n $pubid = $this->addthis->getProfileId();\n if (!empty($pubid) && is_string($pubid)) {\n $widget_js->addAttribute('pubid', $pubid);\n }\n\n $async = $this->async;\n if ($async) {\n $widget_js->addAttribute('async', 1);\n }\n\n $domready = $this->domready;\n if ($domready) {\n $widget_js->addAttribute('domready', 1);\n }\n\n // Only when the script is not loaded after the DOM is ready we include\n // the script with #attached.\n if (!$domready) {\n $element['#attached']['js'][$widget_js->getFullUrl()] = array(\n 'type' => 'external',\n 'scope' => 'footer',\n );\n }\n\n // Every setting value passed here overrides previously set values but\n // leaves the values that are already set somewhere else and that are not\n // passed here.\n $element['#attached']['js'][] = array(\n 'type' => 'setting',\n 'data' => array(\n 'addthis' => array(\n 'async' => $async,\n 'domready' => $domready,\n 'widget_url' => $widget_js->getFullUrl(),\n\n 'addthis_config' => $this->getJsAddThisConfig(),\n 'addthis_share' => $this->getJsAddThisShare(),\n )\n )\n );\n }\n }", "function widget($args, $instance) {\n $feedData = $this->_collect_data($instance);\n $this->_print_widget($args, $instance, $feedData);\n }", "protected function registerWidget()\n {\n\t\t$id = $this->options['id'];\n $gridSelector = $this->gridSelector;\n\t\t\n\t\t$view = $this->getView();\n\t\t\n IsotopeAsset::register($view);\n $js = [];\n \n $options = Json::encode($this->clientOptions);\n $js[] = \"var isotopeContainer$id = $('$gridSelector');\";\n $js[] = \"var isotope$id = isotopeContainer$id.isotope($options);\";\n\n $view->registerJs(implode(\"\\n\", $js),$view::POS_READY);\n\t\t\n\t\tif (!empty($this->cssFile)) {\n\t\t\tcall_user_func_array([$view, \"registerCssFile\"], $this->cssFile);\n\t\t} \t\t\n }", "function pb18_article_also_widget() {\n register_widget( 'pb18_article_also_widget' );\n}", "static function register_widget() {\n\t\t\t$classname = get_called_class();\n\t\t\tregister_widget( $classname );\n\t\t}", "public function setDatas()\n\t{\n\t\t$this->data[\"skeleton\"] = $this->getSkeleton();\n\t\t$this->data[\"css\"] = $this->getCss();\n\t\t$this->data[\"javascript\"] = $this->getJavascript();\n\t\t$this->data[\"module\"] = $this->getModule();\n\t\t$this->data[\"site\"] = $this->getSite();\n\t\t\t\t\t\t\n\t\t$this->_nodeName = $this->getNodeName();\n\t\t$this->_value = $this->getNodeValue();\n\t}", "public function WidgetSubmissionForm()\n {\n $formSectionData = new DataObject();\n $formSectionData->Form = $this->AddForm($this->extensionType);\n $formSectionData->Content = $this->dataRecord->AddContent;\n return $formSectionData;\n }", "public function widget(&$route, &$data) {\n $appId = $this->that->config->get(\"koraki_client_id\");\n $status = $this->that->config->get(\"koraki_status\");\n if(!empty($appId) && $status) {\n $data[\"modules\"][] = \"<script>window.sparkleSettings = { app_id: \\\"$appId\\\" }; !function(){function t(){var t=a.createElement(\\\"script\\\"); t.type=\\\"text/javascript\\\", t.async=!0,t.src=\\\"//api.koraki.io//widget/v1.0/js\\\"; var e=a.getElementsByTagName(\\\"script\\\")[0];e.parentNode.insertBefore(t,e)} var e=window,a=document;e.attachEvent?e.attachEvent(\\\"onload\\\",t):e.addEventListener(\\\"load\\\",t,!1)}();</script>\";\n }\n }", "function gardenia_load_widget() {\n\tregister_widget( 'gardenia_widget' );\n}", "private function set_display_data( $data ) {\n\t\t$this->display_data = $data;\n\t}", "public function add_data($data)\n {\n }", "public function backend_builder_data() {\n\t\t$script = FUSION_BUILDER_DEV_MODE ? 'fusion_builder_app_js' : 'fusion_builder';\n\t\twp_localize_script(\n\t\t\t$script,\n\t\t\t'fusionDynamicData',\n\t\t\t[\n\t\t\t\t'dynamicOptions' => $this->get_params(),\n\t\t\t\t'commonDynamicFields' => $this->get_common(),\n\t\t\t]\n\t\t);\n\t}", "protected function _create_view_data($id)\n\t{\n\t\t// Khai bao cac bien cua widget upload\n\t\t$widget_upload = array();\n\t\t$widget_upload['mod'] \t\t\t= 'single';\n\t\t$widget_upload['file_type'] \t= 'image';\n\t\t$widget_upload['status'] \t\t= config('file_public', 'main');\n\t\t$widget_upload['resize'] \t\t= TRUE;\n\t\t$widget_upload['thumb'] \t\t= TRUE;\n\t\t$widget_upload['url_update']\t= ($id > 0) ? current_url().'?act=update_image' : null;\n\n\t\t$widget_upload['table'] \t\t= $this->_get_mod();\n\t\t$widget_upload['table_id'] \t\t= $id;\n\t\t// up anh cua cat\n\t\t$widget_upload['table_field'] \t= 'image';\n\t\t$this->data['widget_upload'] \t= $widget_upload;\n\t\t// up anh cua tac gia\n\t\t//$widget_upload['table_field'] \t= 'author';\n\t\t//$this->data['upload_author'] \t= $widget_upload;\n\n\t\t// Other\n\t\t$this->data['action'] = current_url();\n\t}", "protected function populateWidgetData(array &$aWidgetData)\n {\n foreach ($this->data as $sKey => $sDefault) {\n $aWidgetData[$sKey] = ArrayHelper::get($sKey, $aWidgetData, $sDefault);\n }\n }", "public function widgets(){\n\t\t//register_widget(\"sampleWidget\");\n\t}", "public function widgets(){\n\t\t//register_widget(\"sampleWidget\");\n\t}", "function widget( $args, $instance ) {\n\n\t\t\textract( $args );\n\n\t\t\tstatic $counters = array();\n\n\t\t\t$label = $instance['type'].'-'.$instance['rsr-id'];\n\n\n\n\t\t\t/* reset offset counter if rsr-id or type has changed */\n\t\t\tif (!isset($counters[$label])) {\n \t\t\t$counters[$label] = 0;\n \t\t}\n\n\n\n \t\tif(!isset($instance['type-text'])){\n \t\t\t$instance['type-text'] = '';\n \t\t}\n\n \t\t$instance['offset'] = $counters[$label];\n\n \t\t/* get the ajax url for the card widget */\n \t\t$akvo_card_obj = new Akvo_Card;\n \t\t$url = $akvo_card_obj->get_ajax_url('akvo_card', $instance, array('panels_info'));\n\n\n \t\techo \"<div data-behaviour='reload-html' data-url='\".$url.\"'></div>\";\n\n \t\t$counters[$label]++;\n\t\t}", "public function setData($data, $key = null);", "public function widget_instance($params) {\n if ($params['widget'] == 'admindelegation' && $this->_userCanViewWidget('admindelegation')) {\n include_once 'AdminDelegation_UserWidget.class.php';\n $params['instance'] = new AdminDelegation_UserWidget($this);\n }\n if ($params['widget'] == 'admindelegation_projects' && $this->_userCanViewWidget('admindelegation_projects')) {\n include_once 'AdminDelegation_ShowProjectWidget.class.php';\n $params['instance'] = new AdminDelegation_ShowProjectWidget($this);\n }\n \n }", "final public function setData($data) {\n $this->data = $data;\n }", "function __construct() {\n\n //Call the parent constructor with the required arguments.\n parent::__construct(\n // The unique id for your widget.\n 'madang_partner_widget',\n\n // The name of the widget for display purposes.\n esc_html__('Madang Partner', 'madang'),\n\n // The $widget_options array, which is passed through to WP_Widget.\n // It has a couple of extras like the optional help URL, which should link to your sites help or support page.\n array(\n 'description' => esc_html__('Create Partner Section', 'madang'),\n 'panels_groups' => array('madang'),\n 'help' => 'http://madang_docs.kenzap.com',\n ),\n\n //The $control_options array, which is passed through to WP_Widget\n array(\n ),\n\n //The $form_options array, which describes the form fields used to configure SiteOrigin widgets. We'll explain these in more detail later.\n array(\n 'partner1_txt' => array(\n 'type' => 'text',\n 'label' => esc_html__('Partner 1 title', 'madang'),\n 'default' => ''\n ),\n 'partner1_img' => array(\n 'type' => 'media',\n 'label' => esc_html__( 'Choose 1 image', 'madang' ),\n 'choose' => esc_html__( 'Choose image', 'madang' ),\n 'update' => esc_html__( 'Set image', 'madang' ),\n 'library' => 'image',\n 'fallback' => true\n ), \n\n 'partner2_txt' => array(\n 'type' => 'text',\n 'label' => esc_html__('Partner 2 title', 'madang'),\n 'default' => ''\n ),\n 'partner2_img' => array(\n 'type' => 'media',\n 'label' => esc_html__( 'Choose 2 image', 'madang' ),\n 'choose' => esc_html__( 'Choose image', 'madang' ),\n 'update' => esc_html__( 'Set image', 'madang' ),\n 'library' => 'image',\n 'fallback' => true\n ), \n\n 'partner3_txt' => array(\n 'type' => 'text',\n 'label' => esc_html__('Partner 3 title', 'madang'),\n 'default' => ''\n ),\n 'partner3_img' => array(\n 'type' => 'media',\n 'label' => esc_html__( 'Choose 3 image', 'madang' ),\n 'choose' => esc_html__( 'Choose image', 'madang' ),\n 'update' => esc_html__( 'Set image', 'madang' ),\n 'library' => 'image',\n 'fallback' => true\n ), \n\n 'partner4_txt' => array(\n 'type' => 'text',\n 'label' => esc_html__('Partner 4 title', 'madang'),\n 'default' => ''\n ),\n 'partner4_img' => array(\n 'type' => 'media',\n 'label' => esc_html__( 'Choose 4 image', 'madang' ),\n 'choose' => esc_html__( 'Choose image', 'madang' ),\n 'update' => esc_html__( 'Set image', 'madang' ),\n 'library' => 'image',\n 'fallback' => true\n ),\n ),\n\n //The $base_folder path string.\n plugin_dir_path(__FILE__)\n );\n }", "function widget( $args, $instance ) {\n\n \textract($args);\n \t$title = apply_filters('widget_title', $instance['title'] );\n \t$num_articles = $instance['num_articles'];\n \t$display_image = $instance['display_image'];\n\n \t$options = get_option('pgnyt_articles');\n \t$pgnyt_results = $options['pgnyt_results'];\n\n \trequire ('inc/front-end.php');\n }", "public function set_data($data)\n {\n $this->data = $data;\n }", "function register_widget_control($name, $control_callback, $width = '', $height = '', ...$params)\n {\n }", "function register_ib_act_widget() {\n\tregister_widget( 'IB_Act_Widget_Widget' );\n}", "public function widget( $args, $instance ) {\n global $post;\n\n $title = !empty($instance['title']) ? $instance['title'] : 'Related content';\n $limit = isset($instance['limit']) ? $instance['limit'] : -1;\n $type = isset($instance['type']) ? $instance['type'] : 'dataset';\n\t\t$template = isset($instance['template']) ? $instance['template'] : 'default';\n $max_height = isset($instance['max_height']) ? $instance['max_height'] : '200';\n\t\t$related_content = get_post_meta($post->ID,'related_content',true);\n\t\t$data = json_decode($related_content,true);\n\t\t$set_max_height = null;\n\t\tif($template == \"html\"){\n\t\t\t$set_max_height = \" style='max-height:\".$max_height.\"px; overflow-y:auto;'\";\n\t\t}\n\n\t\t$typed_data = array();\n\t\tif($data):\n\t\t\tforeach ($data as $item):\n\t\t\t\tif ($item[\"type\"] == $type):\n\t\t\t\t\tarray_push($typed_data,$item);\n\t\t\t\tendif;\n\t\t\tendforeach;\n\t\tendif;\n\n\t\tif ($data !== null && !empty($typed_data)):\n\n\t\t\techo $args['before_widget']; ?>\n\n\t\t\t<div class=\"container\">\n\t\t\t\t<div class=\"sixteen columns\">\n\t\t\t\t\t<?php\n\t\t\t\t\t\tif (!empty($instance['title'])): ?>\n\t\t\t\t\t\t\t<a><?php echo $args['before_title'].apply_filters('widget_title', __($instance['title'], 'odm')).$args['after_title']; ?></a>\n\t\t\t\t\t<?php endif; ?>\n\t\t\t\t</div>\n\n\t\t\t\t<div class=\"sixteen columns\"<?php echo $set_max_height; ?>>\n\t <?php\n\t if ($limit > -1):\n\t $typed_data = array_slice($typed_data,0,$limit);\n\t endif;\n\t echo render_template_for_related_content($typed_data,$type,$template);\n\t ?>\n\t\t\t\t</div>\n\n\t\t\t</div>\n\n\t <?php echo $args['after_widget']; ?>\n\n\t\t<?php\n\t\t\twp_reset_query();\n\t\tendif;\n\t}", "public function setData()\n {\n }", "public function setData()\n {\n }", "public function setData()\n {\n }", "public function set_data($data)\n {\n }", "public function set_data($data)\n {\n }", "function load_type_widget() {\n register_widget( 'custom_type_widget' );\n}", "public function widget($args, $instance){\r\r\n\t\t\t$image = isset( $instance['image'] ) ? $instance['image'] : '';\r\r\n\t\t\t$text = isset( $instance['text'] ) ? $instance['text'] : '';\r\r\n\t\t\t$phonenumber = isset( $instance['phonenumber'] ) ? $instance['phonenumber'] : '';\r\r\n\r\r\n\t\t\t$facebook = isset( $instance['facebook'] ) ? $instance['facebook'] : '';\r\r\n\t\t\t$google = isset( $instance['google'] ) ? $instance['google'] : '';\r\r\n\t\t\t$twitter = isset( $instance['twitter'] ) ? $instance['twitter'] : '';\r\r\n\t\t\t$rss = isset( $instance['rss'] ) ? $instance['rss'] : '';\r\r\n\t\t\t$linked = isset( $instance['linked'] ) ? $instance['linked'] : '';\r\r\n\r\r\n\r\r\n\r\r\n\t\t\t?>\r\r\n\t\t\t<?php echo wp_kses_post( $args['before_widget'] ); ?>\r\r\n\t\t\t\t<div class=\"company-description-area\">\r\r\n\t\t\t\t\t<?php if(!empty($image)):?>\r\r\n\t\t\t\t\t\t<a href=\"<?php echo esc_url( home_url( '/' ) ); ?>\"><img src=\"<?php echo esc_url( $image ) ; ?>\r\r\n\t\t\t\t\t\t\" alt=\"<?php echo esc_attr('Footer logo'); ?>\" class=\"logo\"></a>\r\r\n\t\t\t\t\t<?php endif; if(!empty($text)):?>\r\r\n\t\t <p><?php echo esc_html( $text ); ?></p>\r\r\n\t\t <?php endif;?>\r\r\n\r\r\n\t <?php \r\r\n\t $sphonenumbers = explode(\"\\n\", $phonenumber);\r\r\n\t if( count( $sphonenumbers ) && !empty($sphonenumbers)){\r\r\n\t \techo '<p class=\"phone\">';\r\r\n\t\t foreach( $sphonenumbers as $sphonenumber ) {\r\r\n\t\t echo '<a href=\"tel:'.$sphonenumber.'\">'. $sphonenumber .' </a>';\r\r\n\t\t }\r\r\n\t echo '</p>';\r\r\n\t }\r\r\n\t ?>\r\r\n\t\t\t\t\t<div class=\"social-icons\">\r\r\n\t\t\t\t\t\t<?php if( $facebook ):?>\r\r\n\t\t\t\t\t\t\t<a class=\"facebook\" href=\"<?php echo esc_url( $facebook ); ?>\" title=\"Facebook\"><i class=\"fa fa-facebook\"></i></a>\r\r\n\t\t\t\t\t\t<?php endif; if( $google ): ?>\r\r\n\t\t\t\t\t\t\t<a class=\"google-plus\" href=\"<?php echo esc_url( $google ); ?>\" title=\"Google Plus\"><i class=\"fa fa-google-plus\"></i></a>\r\r\n\t\t\t\t\t\t<?php endif; if( $twitter ): ?>\r\r\n\t\t\t\t\t\t\t<a class=\"twitter\" href=\"<?php echo esc_url( $twitter ); ?>\" title=\"Twitter\"><i class=\"fa fa-twitter\"></i></a>\r\r\n\t\t\t\t\t\t<?php endif; if( $rss ): ?>\r\r\n\t\t\t\t\t\t\t<a class=\"rss\" href=\"<?php echo esc_url( $rss ); ?>\" title=\"RSS\"><i class=\"fa fa-rss\"></i></a>\r\r\n\t\t\t\t\t\t<?php endif; if( $linked ): ?>\r\r\n\t\t\t\t\t\t\t<a class=\"facebook\" href=\"<?php echo esc_url( $linked ); ?>\" title=\"Linkedin\"><i class=\"fa fa-linkedin\"></i></a>\r\r\n\t\t\t\t\t\t<?php endif; ?>\r\r\n\t\t\t\t\t</div>\r\r\n\t\t\t\t</div>\r\r\n\t\t\t<?php echo wp_kses_post( $args['after_widget'] ); ?>\r\r\n\r\r\n\t\t\t<?php\r\r\n\t\t}", "function widget($args, $inst)\n {\n// $title = apply_filters( 'widget_title', $instance['title'] );\n// $title_color = apply_filters( 'widget_title', $instance['title_color'] );\n $image_about = $this->getVal( $inst, 'image_about' );\n $title_color = $this->getVal( $inst, 'title_color' );\n $title = $this->getVal( $inst, 'title' );\n $desc = $this->getVal( $inst, 'desc' );\n ?>\n <section class=\"ftco-section services-section\" id=\"about\">\n <div class=\"container\">\n <div class=\"row no-gutters\">\n <div class=\"col-md-6 p-md-5 img img-2 d-flex justify-content-center align-items-center\" style=\"background-image: url(<?php echo $image_about; ?>);\">\n </div>\n <div class=\"col-md-6 wrap-about py-md-5 ftco-animate\">\n <div class=\"heading-section mb-5 pl-md-5\">\n <span class=\"subheading\"><?php echo $title_color; ?></span>\n <h2 class=\"mb-4\"><?php echo $title; ?></h2>\n <p><?php echo $desc; ?></p>\n </div>\n </div>\n </div>\n </div>\n </section>\n<?php\n }" ]
[ "0.5813366", "0.5801722", "0.57659507", "0.57419205", "0.5732824", "0.5732824", "0.5732824", "0.5732824", "0.5732824", "0.5641692", "0.56366014", "0.56269574", "0.5593759", "0.55217165", "0.5487126", "0.5486198", "0.54791874", "0.5446405", "0.54361975", "0.5413151", "0.5409081", "0.54080683", "0.5388311", "0.5382853", "0.5382853", "0.5382853", "0.5357351", "0.53397894", "0.532574", "0.531058", "0.5309538", "0.530698", "0.5299089", "0.5266761", "0.5264929", "0.5260941", "0.526087", "0.52581686", "0.5249002", "0.524803", "0.52466273", "0.52466273", "0.5238996", "0.5228514", "0.5228423", "0.52199537", "0.52198106", "0.5219027", "0.52116627", "0.52116615", "0.5208957", "0.52063435", "0.52018166", "0.5193218", "0.5193218", "0.5179028", "0.51662946", "0.516192", "0.51613885", "0.5145318", "0.5139251", "0.51331604", "0.51232177", "0.5116554", "0.50891525", "0.50874865", "0.5086691", "0.507527", "0.50747275", "0.50682455", "0.5064311", "0.5060236", "0.5056076", "0.50537395", "0.5051009", "0.50406235", "0.5040084", "0.50377035", "0.5028163", "0.50215554", "0.5004172", "0.5004172", "0.49908233", "0.49905777", "0.49791446", "0.4974589", "0.4968201", "0.49650812", "0.49604794", "0.49600902", "0.4957857", "0.49528167", "0.4952035", "0.4952035", "0.4952035", "0.4950572", "0.4950309", "0.4944251", "0.49399692", "0.49395058" ]
0.6202917
0
Adds the specified data to the top of the specified zone (using the specified file for the rendering)
public function insert($zone, $file, $datasource = null);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function push($zone, $file, $datasource = null);", "public function addFileAndRender(string $filename, Data $data = null) : Content;", "public static function add_row( $data, $file ){\n $file = fopen( $file, 'a' );\n\n fwrite( $file, $data.'.php'.PHP_EOL);\n fclose( $file );\n }", "protected function stash_step_data( $data = '' ) {\n\t\t$file = $this->get_file();\n\t\t$file .= $data;\n\n\t\t@file_put_contents( $this->file, $file );\n\t}", "public function addJsScriptTop($file){\n array_push($this->_jsScriptsTop,$file);\n }", "public static function addHeader($data, $top=FALSE) {\n\t\tself::getEngine()->addToHeader($data, $top);\n\t}", "function ccio_appendData($filename, $data) {\r\n\t//$fh = fopen($filename, \"ab\");\r\n\t$fh = fopen($filename, \"at\");\r\n\tfwrite($fh, $data);\t\t\r\n\tfclose($fh);\r\n\treturn TRUE;\r\n}", "public function insertZone($info) {\n\t\t$this->insert ( $info );\n\t}", "public function addFile($data, $directoryName) {\r\n\r\n $directoryName = str_replace(\"\\\\\", \"/\", $directoryName); \r\n \r\n $feedArrayRow = \"\\x50\\x4b\\x03\\x04\";\r\n $feedArrayRow .= \"\\x14\\x00\"; \r\n $feedArrayRow .= \"\\x00\\x00\"; \r\n $feedArrayRow .= \"\\x08\\x00\"; \r\n $feedArrayRow .= \"\\x00\\x00\\x00\\x00\";\r\n\r\n $uncompressedLength = strlen($data); \r\n $compression = crc32($data); \r\n $gzCompressedData = gzcompress($data); \r\n $gzCompressedData = substr( substr($gzCompressedData, 0, strlen($gzCompressedData) - 4), 2);\r\n $compressedLength = strlen($gzCompressedData); \r\n $feedArrayRow .= pack(\"V\",$compression);\r\n $feedArrayRow .= pack(\"V\",$compressedLength);\r\n $feedArrayRow .= pack(\"V\",$uncompressedLength);\r\n $feedArrayRow .= pack(\"v\", strlen($directoryName) );\r\n $feedArrayRow .= pack(\"v\", 0 );\r\n $feedArrayRow .= $directoryName; \r\n\r\n $feedArrayRow .= $gzCompressedData; \r\n\r\n $feedArrayRow .= pack(\"V\",$compression);\r\n $feedArrayRow .= pack(\"V\",$compressedLength);\r\n $feedArrayRow .= pack(\"V\",$uncompressedLength);\r\n\r\n $this -> compressedData[] = $feedArrayRow;\r\n\r\n $newOffset = strlen(implode(\"\", $this->compressedData));\r\n\r\n $addCentralRecord = \"\\x50\\x4b\\x01\\x02\";\r\n $addCentralRecord .=\"\\x00\\x00\"; \r\n $addCentralRecord .=\"\\x14\\x00\"; \r\n $addCentralRecord .=\"\\x00\\x00\"; \r\n $addCentralRecord .=\"\\x08\\x00\"; \r\n $addCentralRecord .=\"\\x00\\x00\\x00\\x00\";\r\n $addCentralRecord .= pack(\"V\",$compression);\r\n $addCentralRecord .= pack(\"V\",$compressedLength);\r\n $addCentralRecord .= pack(\"V\",$uncompressedLength);\r\n $addCentralRecord .= pack(\"v\", strlen($directoryName) );\r\n $addCentralRecord .= pack(\"v\", 0 );\r\n $addCentralRecord .= pack(\"v\", 0 );\r\n $addCentralRecord .= pack(\"v\", 0 );\r\n $addCentralRecord .= pack(\"v\", 0 );\r\n $addCentralRecord .= pack(\"V\", 32 );\r\n\r\n $addCentralRecord .= pack(\"V\", $this -> oldOffset );\r\n $this -> oldOffset = $newOffset;\r\n\r\n $addCentralRecord .= $directoryName; \r\n\r\n $this -> centralDirectory[] = $addCentralRecord; \r\n }", "function _add_template( $data=array() )\n\t{\n\t\t$template = array();\n\t\t\n\t\t$template['set_id'] = 1;\n\t\t$template['group_name'] = $data['group_name']['VALUE'];\n\t\t$template['section_content'] = $data['section_content']['VALUE'];\n\t\t$template['func_name'] = $data['func_name']['VALUE'];\n\t\t$template['func_data'] = $data['func_data']['VALUE'];\n\t\t$template['updated'] = time();\n\t\t$template['group_names_secondary'] = $data['group_names_secondary']['VALUE'];\n\t\t\n\t\tif ( !$this->ipsclass->DB->field_exists( 'group_names_secondary', 'skin_templates' ) )\n\t\t{\n\t\t\tunset( $template['group_names_secondary'] );\n\t\t}\n\t\t\n\t\t$this->ipsclass->DB->do_insert( 'skin_templates', $template );\n\t}", "public function add_tag_template($filename, $data = array())\n\t{\n\t\t//$data[\"there_is_new_order\"] = $this->Admin_model->return_total_rows('order', 'status', 'open');\n\t\t\n\t\t$this->admin_header();\n\t\t$data['header'] = $this->load->view('templates/admin_header', $data, TRUE);\n\t\t$data['footer'] = $this->load->view('templates/admin_footer', '', TRUE);\n\t\t$this->load->view('admins/'.$filename, $data);\n\t}", "public function add_to_foot($data)\n\t{\n\t\t$this->footer_item[] = $data;\n\t}", "public function add_to_head($data)\n\t{\n\t\t// Deprecated for scripts. Let's encourage good practices. This will\n\t\t// also let us move jquery in the future.\n\t\tif (strpos($data, '<script') !== FALSE)\n\t\t{\n\t\t\tee()->load->library('logger');\n\t\t\tee()->logger->deprecated('2.8', 'CP::add_to_foot() for scripts');\n\t\t}\n\n\t\t$this->its_all_in_your_head[] = $data;\n\t}", "public function add( $data, $shard = NULL );", "public function addOrderLayer()\n {\n $transactions = $this->orderDataArray->setOrderIds($this->getOrderIds())->getOrderLayer();\n\n if (!empty($transactions)) {\n /** @var $tm DataLayer */\n $tm = $this->getParentBlock();\n foreach ($transactions as $order) {\n $tm->addCustomDataLayer($order);\n }\n }\n }", "function _addToZIPFile(& $file, & $contents, & $ctrldir) \n {\n $data = & $file['data'];\n $name = str_replace('\\\\', '/', $file['name']);\n \n $ftime = null;\n if (isset ($file['time'])) {\n $ftime = $file['time'];\n }\n \n $dtime = dechex($this->_unix2DosTime($ftime));\n $hexdtime = chr(hexdec($dtime[6] . $dtime[7])) .\n chr(hexdec($dtime[4] . $dtime[5])) .\n chr(hexdec($dtime[2] . $dtime[3])) .\n chr(hexdec($dtime[0] . $dtime[1]));\n\n /* Begin creating the ZIP data. */\n \n $fr = $this->_fileHeader; \n $fr .= \"\\x14\\x00\"; /* Version needed to extract. */\n $fr .= \"\\x00\\x00\"; /* General purpose bit flag. */\n $fr .= \"\\x08\\x00\"; /* Compression method. */\n $fr .= $hexdtime; /* Last modification time/date. */\n \n /* \"Local file header\" segment. */\n \n $unc_len = strlen($data);\n $crc = crc32($data);\n $zdata = gzcompress($data);\n $zdata = substr(substr($zdata, 0, strlen($zdata) - 4), 2);\n $c_len = strlen($zdata);\n $fr .= pack('V', $crc); /* CRC 32 information. */\n $fr .= pack('V', $c_len); /* Compressed filesize. */\n $fr .= pack('V', $unc_len); /* Uncompressed filesize. */\n $fr .= pack('v', strlen($name)); /* Length of filename. */\n $fr .= pack('v', 0); /* Extra field length. */\n $fr .= $name; /* File name. */\n \n /* \"File data\" segment. */\n $fr .= $zdata;\n\n /* Add this entry to array. */\n $old_offset = strlen(implode('', $contents));\n $contents[] = & $fr;\n\n /* Add to central directory record. */\n $cdrec = $this->_ctrlDirHeader;\n $cdrec .= \"\\x00\\x00\"; /* Version made by. */\n $cdrec .= \"\\x14\\x00\"; /* Version needed to extract */\n $cdrec .= \"\\x00\\x00\"; /* General purpose bit flag */\n $cdrec .= \"\\x08\\x00\"; /* Compression method */\n $cdrec .= $hexdtime; /* Last mod time/date. */\n $cdrec .= pack('V', $crc); /* CRC 32 information. */\n $cdrec .= pack('V', $c_len); /* Compressed filesize. */\n $cdrec .= pack('V', $unc_len); /* Uncompressed filesize. */\n $cdrec .= pack('v', strlen($name)); /* Length of filename. */\n $cdrec .= pack('v', 0); /* Extra field length. */\n $cdrec .= pack('v', 0); /* File comment length. */\n $cdrec .= pack('v', 0); /* Disk number start. */\n $cdrec .= pack('v', 0); /* Internal file attributes. */\n $cdrec .= pack('V', 32); /* External file attributes - 'archive' bit set. */\n $cdrec .= pack('V', $old_offset); /* Relative offset of local header. */\n $cdrec .= $name; /* File name. */\n /* Optional extra field, file comment goes here. */\n\n // Save to central directory array. */\n $ctrldir[] = & $cdrec;\n }", "function spanien_alpha_process_zone(&$vars) {\n $theme = alpha_get_theme();\n switch ($vars['elements']['#zone']) {\n case 'header':\n $vars['breadcrumb'] = $theme->page['breadcrumb'];\n break;\n }\n}", "public function addFile($data, $name) {\r\n\r\n $name = str_replace(\"\\\\\", \"/\", $name);\r\n\r\n $fr = \"\\x50\\x4b\\x03\\x04\";\r\n $fr .= \"\\x14\\x00\"; // version needed to extract\r\n $fr .= \"\\x00\\x00\"; // general purpose bit flag\r\n $fr .= \"\\x08\\x00\"; // compression method\r\n $fr .= \"\\x00\\x00\\x00\\x00\"; // last mod time and date\r\n\r\n $unc_len = strlen($data);\r\n $crc = crc32($data);\r\n $zdata = gzcompress($data);\r\n $zdata = substr($zdata, 2, -4); // fix crc bug\r\n $c_len = strlen($zdata);\r\n $fr .= pack(\"V\",$crc); // crc32\r\n $fr .= pack(\"V\",$c_len); //compressed filesize\r\n $fr .= pack(\"V\",$unc_len); //uncompressed filesize\r\n $fr .= pack(\"v\", strlen($name) ); //length of filename\r\n $fr .= pack(\"v\", 0 ); //extra field length\r\n $fr .= $name;\r\n // end of \"local file header\" segment\r\n\r\n // \"file data\" segment\r\n $fr .= $zdata;\r\n\r\n // \"data descriptor\" segment (optional but necessary if archive is not served as file)\r\n $fr .= pack(\"V\",$crc); // crc32\r\n $fr .= pack(\"V\",$c_len); // compressed filesize\r\n $fr .= pack(\"V\",$unc_len); // uncompressed filesize\r\n\r\n // add this entry to array\r\n $this->datasec[] = $fr;\r\n\r\n $newOffset = strlen(implode(\"\", $this->datasec));\r\n\r\n // now add to central directory record\r\n $cdrec = \"\\x50\\x4b\\x01\\x02\";\r\n $cdrec .=\"\\x00\\x00\"; // version made by\r\n $cdrec .=\"\\x14\\x00\"; // version needed to extract\r\n $cdrec .=\"\\x00\\x00\"; // general purpose bit flag\r\n $cdrec .=\"\\x08\\x00\"; // compression method\r\n $cdrec .=\"\\x00\\x00\\x00\\x00\"; // last mod time & date\r\n $cdrec .= pack(\"V\",$crc); // crc32\r\n $cdrec .= pack(\"V\",$c_len); //compressed filesize\r\n $cdrec .= pack(\"V\",$unc_len); //uncompressed filesize\r\n $cdrec .= pack(\"v\", strlen($name) ); //length of filename\r\n $cdrec .= pack(\"v\", 0 ); //extra field length\r\n $cdrec .= pack(\"v\", 0 ); //file comment length\r\n $cdrec .= pack(\"v\", 0 ); //disk number start\r\n $cdrec .= pack(\"v\", 0 ); //internal file attributes\r\n $cdrec .= pack(\"V\", 32 ); //external file attributes - 'archive' bit set\r\n\r\n $cdrec .= pack(\"V\", $this->oldOffset); //relative offset of local header\r\n $this->oldOffset = $newOffset;\r\n\r\n $cdrec .= $name;\r\n // optional extra field, file comment goes here\r\n // save to central directory\r\n $this->ctrlDir[] = $cdrec;\r\n }", "function addMessage($message)\r\n{\r\n\t$name = ($message['action']) ? '*'.$message['name'] : $message['name'];\r\n\t$text = $message['text'];\r\n\t$time = $message['time'];\r\n\r\n\tif(strlen($name) == 0)\r\n\t\treturn;\r\n\r\n\t$line = $time.'||'.$name.'||'.$text;\r\n\r\n\t// Pull the current file contents\r\n $fileContents = file(LACE_FILE);\r\n\t$size = count($fileContents);\r\n\r\n if ($size >= LACE_FILE_MAX_SIZE)\r\n {\r\n\t // Push the oldest entries out\r\n\t // and put the new one in\r\n\t for ($i = 0; $i <= $size - LACE_FILE_MAX_SIZE; $i++)\r\n\t\t array_shift($fileContents);\r\n\r\n\t $fileContents[] = $line;\r\n \t$fileContents = implode(\"\\n\", array_map('trim', $fileContents)).\"\\n\";\r\n\r\n \t// Write it to file\r\n \tfile_put_contents(LACE_FILE, trim($fileContents));\r\n }\r\n else\r\n {\r\n // No need to push anything off the stack,\r\n // just write to file\r\n \t$file = fopen(LACE_FILE, 'a');\r\n fwrite($file, $line.\"\\n\");\r\n fclose($file);\r\n }\r\n\r\n // Add to the log\r\n logMessage($line);\r\n}", "public function attach(\n $zone, $widget, $render = null, $datasource = null\n );", "function addFile($data, $name, $time = 0){\n\t\t\t$name = str_replace('\\\\','/',$name);\n\t\t\t$dtime = dechex($this -> unix2DosTime($time));\n\t\t\t$hexdtime = '\\x'.$dtime[6].$dtime[7].'\\x'.$dtime[4].$dtime[5].'\\x'.$dtime[2].$dtime[3].'\\x'.$dtime[0].$dtime[1];\n\t\t\teval('$hexdtime = \"'.$hexdtime.'\";');\n\n\t\t\t$fr = \"\\x50\\x4b\\x03\\x04\";\n\t\t\t$fr .= \"\\x14\\x00\";\n\t\t\t$fr .= \"\\x00\\x00\";\n\t\t\t$fr .= \"\\x08\\x00\";\n\t\t\t$fr .= $hexdtime;\n\n\t\t\t$unc_len = strlen($data);\n\t\t\t$crc = crc32($data);\n\t\t\t$zdata = gzcompress($data);\n\t\t\t$zdata = substr(substr($zdata,0,strlen($zdata) - 4),2);\n\t\t\t$c_len = strlen($zdata);\n\n\t\t\t$fr .= pack('V',$crc);\n\t\t\t$fr .= pack('V',$c_len);\n\t\t\t$fr .= pack('V',$unc_len);\n\t\t\t$fr .= pack('v',strlen($name));\n\t\t\t$fr .= pack('v',0);\n\t\t\t$fr .= $name;\n\t\t\t$fr .= $zdata;\n\t\t\t$this -> datasec[] = $fr;\n\n\t\t\t$cdrec = \"\\x50\\x4b\\x01\\x02\";\n\t\t\t$cdrec .= \"\\x00\\x00\";\n\t\t\t$cdrec .= \"\\x14\\x00\";\n\t\t\t$cdrec .= \"\\x00\\x00\";\n\t\t\t$cdrec .= \"\\x08\\x00\";\n\t\t\t$cdrec .= $hexdtime;\n\t\t\t$cdrec .= pack('V',$crc);\n\t\t\t$cdrec .= pack('V',$c_len);\n\t\t\t$cdrec .= pack('V',$unc_len);\n\t\t\t$cdrec .= pack('v',strlen($name));\n\t\t\t$cdrec .= pack('v',0);\n\t\t\t$cdrec .= pack('v',0);\n\t\t\t$cdrec .= pack('v',0);\n\t\t\t$cdrec .= pack('v',0);\n\t\t\t$cdrec .= pack('V',32);\n\t\t\t$cdrec .= pack('V',$this -> old_offset);\n\t\t\t$this -> old_offset += strlen($fr);\n\t\t\t$cdrec .= $name;\n\t\t\t$this -> ctrl_dir[] = $cdrec;\n\t\t}", "function addFile($data, $name, $time = 0)\n {\n $name = str_replace('\\\\', '/', $name);\n\n $dtime = dechex($this->unix2DosTime($time));\n $hexdtime = '\\x' . $dtime[6] . $dtime[7]\n . '\\x' . $dtime[4] . $dtime[5]\n . '\\x' . $dtime[2] . $dtime[3]\n . '\\x' . $dtime[0] . $dtime[1];\n eval('$hexdtime = \"' . $hexdtime . '\";');\n\n $fr = \"\\x50\\x4b\\x03\\x04\";\n $fr .= \"\\x14\\x00\"; // ver needed to extract\n $fr .= \"\\x00\\x00\"; // gen purpose bit flag\n $fr .= \"\\x08\\x00\"; // compression method\n $fr .= $hexdtime; // last mod time and date\n\n // \"local file header\" segment\n $unc_len = strlen($data);\n $crc = crc32($data);\n $zdata = gzcompress($data);\n $zdata = substr(substr($zdata, 0, strlen($zdata) - 4), 2); // fix crc bug\n $c_len = strlen($zdata);\n $fr .= pack('V', $crc); // crc32\n $fr .= pack('V', $c_len); // compressed filesize\n $fr .= pack('V', $unc_len); // uncompressed filesize\n $fr .= pack('v', strlen($name)); // length of filename\n $fr .= pack('v', 0); // extra field length\n $fr .= $name;\n\n // \"file data\" segment\n $fr .= $zdata;\n\n // \"data descriptor\" segment (optional but necessary if archive is not\n // served as file)\n $fr .= pack('V', $crc); // crc32\n $fr .= pack('V', $c_len); // compressed filesize\n $fr .= pack('V', $unc_len); // uncompressed filesize\n\n // add this entry to array\n $this -> datasec[] = $fr;\n\n // now add to central directory record\n $cdrec = \"\\x50\\x4b\\x01\\x02\";\n $cdrec .= \"\\x00\\x00\"; // version made by\n $cdrec .= \"\\x14\\x00\"; // version needed to extract\n $cdrec .= \"\\x00\\x00\"; // gen purpose bit flag\n $cdrec .= \"\\x08\\x00\"; // compression method\n $cdrec .= $hexdtime; // last mod time & date\n $cdrec .= pack('V', $crc); // crc32\n $cdrec .= pack('V', $c_len); // compressed filesize\n $cdrec .= pack('V', $unc_len); // uncompressed filesize\n $cdrec .= pack('v', strlen($name) ); // length of filename\n $cdrec .= pack('v', 0 ); // extra field length\n $cdrec .= pack('v', 0 ); // file comment length\n $cdrec .= pack('v', 0 ); // disk number start\n $cdrec .= pack('v', 0 ); // internal file attributes\n $cdrec .= pack('V', 32 ); // external file attributes - 'archive' bit set\n\n $cdrec .= pack('V', $this -> old_offset ); // relative offset of local header\n $this -> old_offset += strlen($fr);\n\n $cdrec .= $name;\n\n // optional extra field, file comment goes here\n // save to central directory\n $this -> ctrl_dir[] = $cdrec;\n }", "public function add_category_template($filename, $data = array())\n\t{\n\t\t//$data[\"there_is_new_order\"] = $this->Admin_model->return_total_rows('order', 'status', 'open');\n\t\t\n\t\t$this->admin_header();\n\t\t$data['header'] = $this->load->view('templates/admin_header', $data, TRUE);\n\t\t$data['footer'] = $this->load->view('templates/admin_footer', '', TRUE);\n\t\t$this->load->view('admins/'.$filename, $data);\n\t}", "function insertBugTrace($UUID, $data, $debugInfo) {\n\tob_start();\n\t//$firephp = FirePHP::getInstance(true);\n\t//$firephp->log(\"insertBugTrace entered.\");\n\t$time = time();\n\t$fullTrace = \"$data\\n<!-- $debugInfo -->\";\n\t$filename = \"bugtraces/$time\" . \"_\" . $UUID . \".xml\";\n\t// $firephp->log(\"putting bug trace ($filename) to disk: $fullTrace\");\n\t//$firephp->log(\"putting bug trace ($filename) to disk.\");\n file_put_contents($filename, $fullTrace);\n}", "public function addFooter($filename)\n {\n }", "public function add(){\n\t\t\n\t\t// Open or create file\n\t\t$f = fopen($this->file, 'wb');\n\t\tfclose($f);\n\t}", "function insert_with_markers($filename, $marker, $insertion)\n {\n }", "public function addJsScriptBottom($file){\n array_push($this->_jsScriptsBottom,$file);\n }", "public function addData(array $data, $templates = null);", "public function add(){\n\t\t$this->load->view('top');\n\t\t$this->load->view(\"timHPS/timHps_add\",$data);\n\t\t$this->load->view('bottom');\n\t}", "public function addData()\n {\n $data['city'] = $this->admin_m->getCities();\n $data['deptt'] = $this->admin_m->getDeptt();\n $data['pName'] = $this->admin_m->getPapers();\n $data['cat'] = $this->admin_m->getCategories();\n\n $data['content'] = 'admin/admin_v';\n $this->load->view('components/template', $data);\n }", "private function setZone(array $data, ExpressZone $zone) {\n $zone->name = $data['name'];\n $zone->company()->associate($data['company_id']);\n $step_cost_array = array();\n for ($i = 1; $i <= count($data['cost']); $i++) {\n $step_cost_array[$i - 1] = (object) array();\n $step_cost_array[$i - 1]->cost = (double) $data['cost'][$i];\n $step_cost_array[$i - 1]->weight_to = (double) $data['weight_to'][$i];\n $step_cost_array[$i - 1]->weight_from = (double) $data['weight_from'][$i];\n }\n $zone->step_cost_array = $step_cost_array;\n $zone->save();\n return $zone;\n }", "static private function render($file, $data){\n extract($data);\n // Extract data retreived from the Sharer\n if(Sharer::get() !== null){\n extract(Sharer::get());\n }\n\n // Merge data into the hive\n self::$hive = array_merge(self::$hive, get_defined_vars());\n unset($data);\n\n ob_start();\n include($file);\n $input = ob_get_contents();\n ob_end_clean();\n\n $output = preg_replace_callback('!\\{\\{(.*?)\\}\\}!', 'Viewer::replace', $input);\n\n\n echo($output);\n }", "public static function addData($file, $post)\n {\n if (!file_exists($file)) {\n $h = fopen(\n $file,\n \"w\"\n ) or die(\"Unable to open file \" . $file);\n\n\n $data = array();\n foreach ($post as $value) {\n $data[] = $value;\n }\n\n fwrite($h, json_encode($data));\n fclose($h);\n\n } // file exists, update with new options\n else {\n $data = MetaDataWriter::getFileData($file);\n\n $array[] = $data;\n $array[] = $post;\n $array = arrayFlatten($array);\n $array = array_unique($array);\n\n self::writeData($file, $array);\n }\n }", "public function htheme_my_custom_template_at_first_position( $data ) {\r\n\t\t$template = array();\r\n\t\t$template['name'] = esc_html__( 'Custom template', 'invogue' ); // Assign name for your custom template\r\n\t\t$template['image_path'] = preg_replace( '/\\s/', '%20', plugins_url( 'images/custom_template_thumbnail.jpg', __FILE__ ) ); // Always use preg replace to be sure that \"space\" will not break logic. Thumbnail should have this dimensions: 114x154px.\r\n\t\t$template['custom_class'] = 'custom_template_for_vc_custom_template'; // CSS class name\r\n\t\t$template['content'] = 'CONTENT';\r\n\r\n\t\tarray_unshift( $data, $template );\r\n\t\treturn $data;\r\n\t}", "function add_to_file_contents($content) {\n\t\t$this->contents .= $content;\n\t}", "private function add($type, $file)\n {\n array_push($this->asset[$type], $file);\n }", "function addLocation($data) {\r\n\r\n\r\n\t\t$this->query('INSERT INTO locations (`id`, `created`, `modified`, `name`) \r\n\t\t\t\t\t\t\t VALUES (NULL, CURRENT_TIMESTAMP(), CURRENT_TIMESTAMP(), \"'. $data['name'] .'\");');\r\n\r\n\t}", "private function add_sections(&$data)\n\t{\n\t\t$data['header']\t\t\t= $this->load->controller('common/header');\n\t\t$data['column_left']\t= $this->load->controller('common/column_left');\n\t\t$data['footer']\t\t\t= $this->load->controller('common/footer');\n\t}", "public function addPart(string $location, string $content, ?int $seek = null): void;", "public function add_data($data)\n {\n }", "public function add($chunk, FileInfo $fileInfo = null, $index = 0, $mapLines = null);", "public function putContent($data) {\n\t\t$this->storage->file_put_contents($this->path, $data);\n\t}", "protected function putRawDataIntoArchive(string &$zdata): void\n\t{\n\t\t// Single part archive. Just dump the compressed data.\n\t\tif (!$this->useSplitArchive)\n\t\t{\n\t\t\t$this->fwrite($this->fp, $zdata);\n\n\t\t\treturn;\n\t\t}\n\n\t\t// Split JPA. Check if we need to split the part in the middle of the data.\n\t\t$freeSpaceInPart = $this->getPartFreeSize();\n\n\t\t// Nope. We have enough space to write all of the data in this part.\n\t\tif ($freeSpaceInPart >= akstrlen($zdata))\n\t\t{\n\t\t\t$this->fwrite($this->fp, $zdata);\n\n\t\t\treturn;\n\t\t}\n\n\t\t$bytesLeftInData = akstrlen($zdata);\n\n\t\twhile ($bytesLeftInData > 0)\n\t\t{\n\t\t\t// Try to write to the archive. We can only write as much bytes as the free space in the backup archive OR\n\t\t\t// the total data bytes left, whichever is lower.\n\t\t\t$bytesWritten = $this->fwrite($this->fp, $zdata, min($bytesLeftInData, $freeSpaceInPart));\n\n\t\t\t// Since we may have written fewer bytes than anticipated we use the real bytes written for calculations\n\t\t\t$freeSpaceInPart -= $bytesWritten;\n\t\t\t$bytesLeftInData -= $bytesWritten;\n\n\t\t\t// If we still have data to write, remove the part already written and keep the rest\n\t\t\tif ($bytesLeftInData > 0)\n\t\t\t{\n\t\t\t\t$zdata = aksubstr($zdata, -$bytesLeftInData);\n\t\t\t}\n\n\t\t\t// If the part file is full create a new one\n\t\t\tif ($freeSpaceInPart <= 0)\n\t\t\t{\n\t\t\t\t// Create new part\n\t\t\t\t$this->createAndOpenNewPart();\n\n\t\t\t\t// Get its free space\n\t\t\t\t$freeSpaceInPart = $this->getPartFreeSize();\n\t\t\t}\n\t\t}\n\n\t\t// Tell PHP to free up some memory\n\t\t$zdata = null;\n\t}", "public function addFile($file)\r\n\t{\r\n\t\t$this->frame[Cache::FILES][] = $file;\r\n\t}", "public function add()\n\t{\n\t\tEvent::add('ushahidi_filter.map_base_layers', array($this, '_add_layer'));\n\t\tif (Router::$controller != 'settings')\n\t\t{\n\t\t\tEvent::add('ushahidi_filter.map_layers_js', array($this, '_add_map_layers_js'));\n\t\t}\n\t}", "function append($data) {}", "public function add_data_to_tombstone(){\n }", "function render($filename, $data = null)\n{\n if ($data) {\n foreach($data as $key => $value) {\n $$key = $value;\n }\n }\n\n require('templates\\header.php');\n require($filename . '.php');\n require('templates\\footer.php');\n\n die();\n}", "public function put($data)\n\t{\n\t\tif (!$this->_title || $this->_title[0] == '.' || $this->_title == 'Thumbs.db' || $this->_title == 'desktop.ini')\n\t\t{\n\t\t\t// don't save files that are likely temporary\n\t\t\treturn;\n\t\t}\n\n\t\t$dw = XenForo_DataWriter::create('XenForo_DataWriter_AdminTemplate');\n\t\tif ($this->_template)\n\t\t{\n\t\t\t// only set this as the existing template if it truly exists in this style\n\t\t\t$dw->setExistingData($this->_template);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$dw->set('addon_id', $this->_addonId);\n\t\t}\n\n\t\t$dw->set('title', $this->_title);\n\n\t\t$properties = self::_getPropertiesInStyle(-1);\n\n\t\t$propertyChanges = self::_getPropertyModel()->translateEditorPropertiesToArray(\n\t\t\tstream_get_contents($data), $contents, $properties\n\t\t);\n\t\t$contents = self::_getTemplateModel()->replaceLinkRelWithIncludes($contents);\n\n\t\t$dw->set('template', $contents);\n\n\t\tXenForo_SabreDav_ErrorHandler::assertNoErrors($dw, 'save', 'Admin template');\n\t\t$dw->save();\n\n\t\tself::_getPropertyModel()->saveStylePropertiesInStyleFromTemplate(\n\t\t\t-1, $propertyChanges, $properties\n\t\t);\n\t}", "public function addFile($file);", "public function addData($viewData) {\n $this->viewData = array_merge($this->viewData, $viewData);\n }", "public static function addDataFlat($file, $post)\n {\n if (!file_exists($file)) {\n $h = fopen(\n $file,\n \"w\"\n ) or die(\"Unable to open file \" . $file);\n\n\n $data = array();\n foreach ($post as $value) {\n $data[0] = $value;\n }\n\n fwrite($h, json_encode($data));\n fclose($h);\n\n } // file exists, update with new options\n else {\n $data = MetaDataWriter::getFileData($file);\n\n $array[] = $data;\n $array[] = $post;\n $array = arrayFlatten($array);\n $array = array_unique($array);\n\n self::writeData($file, $array);\n }\n }", "public static function appendContents($filename, array $data)\n {\n $contents = static::arrayToString($data);\n File::appendContents($filename, $contents);\n }", "public static function add_custom(string $tab_name, $data)\n\t{\n\t\tself::$_custom_tabs[$tab_name] = $data;\n\t}", "protected function appendData($data)\n {\n $this->sha1 = null;\n $this->data.=$data;\n }", "static function writeFl($data,$file)\n {\n $filec = fopen($file,\"w\") or die(\"unable to open\");\n fwrite($filec,$data);\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 }", "protected function makeCacheFile($file, $data)\n\t{\n\t\t// Do stuff\n\t}", "protected function appendInFile(string $output_file, string $content) {\n\n if(file_exists($output_file)) {\n\n $header1 = '\n// ===================================================================================================\n//\n// Generated Zone\n//\n// ===================================================================================================';\n\n $header2 = '\n\n//\n// ========================= End Generated Zone ======================================================\n//\n';\n\n $handle = fopen($output_file, 'a');\n fwrite($handle, $header1);\n fwrite($handle, $content);\n fwrite($handle, $header2);\n fclose($handle);\n }\n }", "public function writeData($data, $instrument_code, $file)\n {\n\n $data = $data->groupBy('market_id');\n\n $strToadd = '';\n\n foreach ($data as $trade_date => $instrumentData) {\n\n $instrumentData = $instrumentData->unique('total_volume')->values();\n\n\n $i = 0;\n foreach ($instrumentData as $row) {\n $last_minute_total_volume = $row->total_volume;\n\n if (isset($instrumentData[$i + 1]))\n $prev_minute_of_lastminute_volume = $instrumentData[$i + 1]->total_volume;\n else\n {\n $prev_minute_of_lastminute_volume = 0;\n\n }\n\n\n $last_minute_traded_vol = $last_minute_total_volume - $prev_minute_of_lastminute_volume;\n\n if($last_minute_traded_vol<0) // skip some negative value specially for dsex\n continue;\n\n $time_formated = $row['lm_date_time']->format('H:i');\n $date_formated = $row['lm_date_time']->format('d/m/Y');\n\n\n if ($this->debug) {\n $strToadd .= $instrument_code . ',' . $time_formated . ',' . $date_formated . ',' . $row->close_price . ',' . $row->close_price . ',' . $row->close_price . ',' . $row->close_price . ',' . $last_minute_traded_vol . ',' . $row->total_volume . \"\\n\";\n dump(\"last_minute_total_volume=$last_minute_total_volume | prev_minute_of_lastminute_volume=$prev_minute_of_lastminute_volume = $last_minute_traded_vol\");\n } else {\n $strToadd .= $instrument_code . ',' . $time_formated . ',' . $date_formated . ',' . $row->close_price . ',' . $last_minute_traded_vol . \"\\n\";\n\n }\n\n $i++;\n }\n\n\n }\n\n Storage::append($file, $strToadd);\n\n if (!$this->debug) {\n $zipper = new \\Chumper\\Zipper\\Zipper;\n $files = glob(storage_path() . '/app/plugin/intra/*');\n $zipper->make(storage_path() . '/app/plugin/intra.zip')->add($files)->close();\n }\n\n\n }", "public function editData() {\n $this->daftar_barang = array_values($this->daftar_barang);\n $data_barang = json_encode($this->daftar_barang, JSON_PRETTY_PRINT);\n file_put_contents($this->file, $data_barang);\n $this->ambilData();\n }", "private function add_data(&$data)\n\t{\n\t\t$params = [\n\t\t\t'payment_compropago_mode',\n\t\t\t'payment_compropago_publickey',\n\t\t\t'payment_compropago_privatekey',\n\t\t\t'payment_compropago_spei_status',\n\t\t\t'payment_compropago_spei_title',\n\t\t\t'payment_compropago_spei_sort_order'\n\t\t];\n\t\tforeach($params as $param)\n\t\t{\n\t\t\t$data[$param] = isset($this->request->post[$param])\n\t\t\t\t? $this->request->post[$param]\n\t\t\t\t: $this->config->get($param);\n\t\t}\n\n\t\t$data['payment_compropago_spei_title'] = empty($data['payment_compropago_spei_title'])\n\t\t\t? $this->language->get('entry_default_spei_title')\n\t\t\t: $data['payment_compropago_spei_title'];\n\n\t\t$data['payment_compropago_spei_sort_order'] = empty($data['payment_compropago_spei_sort_order'])\n\t\t\t? 1\n\t\t\t: $data['payment_compropago_spei_sort_order'];\n\t}", "public function addData(string $data);", "public function appendMapTo($id)\n\t{\n\t\tif (substr(ltrim($id), 0, 1) != '#' && $id != 'body')\n\t\t\tthrow new CException(Yii::t('EGMap', 'The id of the layer doesnt seem a correct ID (not CSS selector) <br/>Function: ' . __FUNCTION__));\n\t\t$this->_appendTo = $id;\n\t}", "public function add_author_template($filename, $data = array())\n\t{\n\t\t//$data[\"there_is_new_order\"] = $this->Admin_model->return_total_rows('order', 'status', 'open');\n\t\t\n\t\t$this->admin_header();\n\t\t$data['header'] = $this->load->view('templates/admin_header', $data, TRUE);\n\t\t$data['footer'] = $this->load->view('templates/admin_footer', '', TRUE);\n\t\t$this->load->view('admins/'.$filename, $data);\n\t}", "public function loadTimeZoneData(string $timeZone) : void;", "public function addDataView($data)\n {\n $this->vars = array_merge($this->vars, $data);\n }", "function bbpress_add_content_location() {\n\t\tglobal $gantry;\n\n\t\t$template_locations = bbp_get_template_stack();\n\t\t$template_locations = array_reverse( $template_locations );\n\n\t\tif( ( $key = array_search( $gantry->templatePath, $template_locations ) ) !== false ) {\n\t\t\tunset( $template_locations[$key] );\n\t\t}\n\n\t\tforeach( $template_locations as $location ) {\n\t\t\t$gantry->addContentTypePath( $location );\n\t\t}\n\t}", "function _add_block_template_part_area_info($template_info)\n {\n }", "function _addcodecontainer($code, $type, $file=null, $firstline=1) { $file = ($file == NULL) ? \"\":\" von Datei <em>\".$this->_shortwords($file).\"</em>\";\n\n //> Zeilen zählen.\n $linescount = substr_count($code, \"\\n\") + $firstline + 1;\n if ($type == 'Php') {\n $linescount = substr_count($code, \"\\r\") + $firstline + 1;\n }\n $line = '';\n for($no=$firstline;$no < $linescount;$no++) {\n $line .= $no.\":<br />\";\n }\n\n //> Hier könnt ihr den Header und Footer für HTML editieren.\n $breite = trim($this->info['BlockTabelleBreite']);\n $breite = (strpos($breite, '%') !== false) ? '450px' : $breite.'px';\n $header = \"<div style=\\\"overflow: auto; width: {$breite};\\\">\"\n .\"<table cellspacing=\\\"0\\\" cellpadding=\\\"0\\\" border=\\\"0\\\" style=\\\"BORDER: 1px SOLID \".$this->info['BlockRandFarbe'].\";\\\" width=\\\"100%\\\">\"\n .\"<tr><td colspan=\\\"3\\\" style=\\\"font-family:Arial, Helvetica, sans-serif;font-size:12px; font-weight:bold; color:\".$this->info['BlockSchriftfarbe'].\";background-color:\".$this->info['BlockHintergrundfarbe'].\";\\\">&nbsp;\".$type.$file.\"</td></tr>\"\n .\"<tr bgcolor=\\\"\".$this->info['BlockHintergrundfarbeIT'].\"\\\"><td style=\\\"width:20px; color:\".$this->info['BlockSchriftfarbe'].\";padding-left:2px;padding-right:2px;border-right:1px solid \".$this->info['BlockHintergrundfarbe'].\";font-family:Arial, Helvetica, sans-serif;\\\" align=\\\"right\\\" valign=\\\"top\\\"><code style=\\\"width:20px;\\\">\"\n .$line\n .\"</code></td><td width=\\\"5\\\">&nbsp;</td><td valign=\\\"top\\\" style=\\\"background-color:\".$this->info['BlockHintergrundfarbe'].\"; color:\".$this->info['BlockSchriftfarbe'].\";\\\" nowrap width=\\\"95%\\\"><code>\";\n $footer = \"</code></td></tr></table></div>\";\n\n return $header.$code.$footer;\n }", "protected function _parse($file)\n {\n $stream = new Horde_Support_StringStream($file);\n $fp = $stream->fopen();\n $zone = null;\n while (($line = fgets($fp)) !== false) {\n $line = trim($line);\n if (!strlen($line) || $line[0] == '#') {\n continue;\n }\n $column = preg_split('/\\s+/', preg_replace('/#.*$/', '', $line));\n switch ($column[0]) {\n case 'Rule':\n if (!isset($this->_rules[$column[1]])) {\n $this->_rules[$column[1]] = new Horde_Timezone_Rule($column[1]);\n }\n $this->_rules[$column[1]]->add($column);\n $zone = null;\n break;\n\n case 'Link':\n $this->_links[$column[2]] = $column[1];\n $zone = null;\n break;\n\n case 'Zone':\n $zone = $column[1];\n $this->_zones[$zone] = new Horde_Timezone_Zone($zone, $this);\n array_splice($column, 0, 2);\n // Fall through.\n\n default:\n if (empty($zone) || !isset($this->_zones[$zone])) {\n break;\n }\n $this->_zones[$zone]->add($column);\n break;\n }\n }\n }", "public function process_flexpage_region($data) {\n global $DB;\n\n $data = (object) $data;\n $data->pageid = $this->get_new_parentid('flexpage_page');\n\n $DB->insert_record('format_flexpage_region', $data);\n }", "public function append($data);", "static function appendSegment($file) {\n self::$segbuf .= self::SEGMENT_TERMINATOR;\n //self::trimSeparators(self::$segbuf);\n if (file_put_contents($file, self::$segbuf, FILE_APPEND) === FALSE) {\n $errmsg = \"File $file: Error writing segment \" . self::$segbuf\n . \".\\n\";\n fwrite(STDERR, $errmsg);\n exit(1);\n }\n }", "static function addTempFile($file)\n {\n $GLOBALS['_PEAR_Common_tempfiles'][] = $file;\n }", "private function includeAtTemplateBase($file)\n {\n $data = $this->data;\n\n $filename = $this->findTemplatePath($file);\n\n include($filename);\n }", "private function render( $file_name, $data = array() )\n {\n \\extract($data);\n \\ob_start();\n include PROJECT_DIR . '/src/views/' . $file_name;\n }", "public static function add_data_from_file($file, $filename = '')\n {\n $hash = self::hash_file($file);\n $store_closure = function ($path) use ($file) {\n return copy($file, $path);\n };\n return self::add_data($hash, $store_closure, $filename);\n }", "public function append($data)\n {\n $this->data .= $data;\n }", "function addData($name, $message)\n{\n global $dataFileName;\n $newline = implode('|', [$name, $message]).\"\\r\\n\";\n $file = fopen($dataFileName, 'a');\n fwrite($file, $newline);\n}", "function template ($file, $data) {\n\textract ($data);\n\trequire ($file);\n}", "function render($data) {\n\t\t$this->body->set_template('report_geolocation.tpl');\n\t\t$this->body->set('latest_visits', $this->get('latest_visits'));\n\t\t$this->body->set('site_id', $this->get('site_id') );\n\t\t$this->setjs('jmaps', 'base/js/includes/jquery/jquery.jmap-r72.js');\n\t\t$this->setjs('owa.map', 'base/js/owa.map.js');\n\t}", "public function putContents($file, $data, $append = false);", "public function add_record()\n {\n $data['main_content'] = $this->type.'/'.$this->viewname.'/add';\n\t $this->load->view($this->type.'/assets/template',$data);\n }", "public function create($data) {\n\t\t// Create an ID\n\t\t$id = $this->idCreate();\n\t\t// Write the data file\n\t\tfile_put_contents( $this->init['path']['data'] . $id . $this->init['data']['ext'] );\n\t}", "private function addPlaceField()\n {\n foreach ($this->standings as $key => $standing)\n {\n $standing['place'] = $key + 1;\n $this->standings[$key] = $standing;\n }\n }", "public function add($data)\n {\n if (is_array($data[0])) {\n return array_map(function ($val) use ($data) {\n return [\"view\" => $val, \"content\" => $data[1], \"region\" => $data[2]];\n }, $data[0]);\n }\n // if multiple content (multideminsional) create indexes for them\n if (array_key_exists(0, $data[1])) {\n return array_map(function ($val) use ($data) {\n return [\"view\" => $data[0], \"content\" => $val, \"region\" => $data[2]];\n }, $data[1]);\n }\n return [[\"view\" => $data[0], \"content\" => $data[1], \"region\" => $data[2]]];\n }", "private function organize_data(){\n\t\t$this->grab_data();\n\t\t$this->adjust_graph_dimensions();\n\t\t$this->draw_graphs();\n\t\t$this->draw_axes();\n\t\treturn;\n\t}", "public function boxData()\n {\n global $rlDb, $config;\n\n $this->detectLocation();\n\n $geo_box_data['levels'] = $this->geo_format['Levels'];\n\n if ($this->geo_filter_data['applied_location']) {\n $format_id = (int) $this->geo_filter_data['applied_location']['ID'];\n } else {\n $format_id = (int) $this->geo_format['Format_ID'];\n }\n\n $data = $GLOBALS['rlMultiField']->getData($format_id, true, $this->geo_format['Order_type']);\n\n foreach ($data as &$item) {\n $item['Link'] = $this->buildGeoLink($item);\n unset($item['Path']);\n }\n\n $geo_box_data['levels_data'][] = $data;\n\n $GLOBALS['rlSmarty']->assign('geo_box_data', $geo_box_data);\n }", "public function getZoneData($input);", "function privAddFileUsingTempFile($p_filedescr, &$p_header, &$p_options)\n {\n }", "function add()\n\t{\n\t\t$this->_updatedata();\n\t}", "public function replaceFileContent($data_array)\n {\n try {\n if ((array) $data_array !== $data_array) {\n throw new Exception('Invalid data_array');\n }\n\n // Append to File\n file_put_contents($this->file_name, json_encode($data_array));\n\n } catch (Exception $ex) {\n echo static::exceptionCaught($ex);\n }\n }", "function writeJson($file,$data){ \r\n if(file_exists($file)) {\r\n $tempString = file_get_contents($file);\r\n $handle = fopen($file, 'w+');\r\n $tempArr = json_decode($tempString);\r\n $tempArr[] = $data;\r\n $readyData = json_encode($tempArr);\r\n fwrite($handle,$readyData);\r\n fclose($handle);\r\n }else{\r\n $handle = fopen($file, 'w+');\r\n $tempArr = [];\r\n $tempArr[] = $data;\r\n fwrite($handle,json_encode($tempArr));\r\n fclose($handle);\r\n }\r\n }", "private function _addFile($file, $params)\n {\n $this->_files[basename($file)] = $this->_element->insertFile(\n basename($file),\n $params['role'],\n $this->_getFileInsertionPoint(basename($file))\n );\n }", "protected function addOtherData(array $data) : void\n {\n $this->otherData += $data;\n }", "public function add()\n {\n $UserConnected = $_SESSION['UserConnected'];\n\n if($UserConnected!=null){\n\n if (isset($_POST['submit'])) {\n $lastInsertId = $this->model->addZone($_POST['nom']);\n header('Location: /resabike/zone/edit?id=' . $lastInsertId);\n }\n return $this->view->Render();\n } else\n header(\"Location: /resabike/login\");\n }", "public function addOffset($offset) {}", "function ahr_render_tpl( $path, $data = array() ) {\r\n \r\n ob_start();\r\n include( $path );\r\n $output = ob_get_clean();\r\n echo $output;\r\n \r\n}" ]
[ "0.6210875", "0.5761208", "0.52427065", "0.5217834", "0.51564264", "0.5043383", "0.5036541", "0.5029186", "0.50273174", "0.49912634", "0.4987705", "0.4975479", "0.4961179", "0.49594143", "0.49518254", "0.48995876", "0.48541754", "0.48439756", "0.48052546", "0.47781155", "0.47706008", "0.47657648", "0.47595918", "0.47513762", "0.47112912", "0.47104", "0.46452346", "0.46448052", "0.46359318", "0.46093184", "0.46084318", "0.46040976", "0.45915306", "0.45793274", "0.45501563", "0.45483342", "0.45341334", "0.45324838", "0.45251966", "0.45223537", "0.4491673", "0.4473505", "0.44701567", "0.44667342", "0.44656846", "0.4461124", "0.44407403", "0.44288775", "0.44264457", "0.44192126", "0.4405172", "0.43849596", "0.43846518", "0.43815216", "0.43802577", "0.4379814", "0.43744898", "0.43733287", "0.4370302", "0.43692774", "0.4369062", "0.43661812", "0.43657064", "0.43639514", "0.43521854", "0.43492964", "0.43488252", "0.43455955", "0.43455333", "0.43423817", "0.43398705", "0.4339222", "0.4337101", "0.43359733", "0.43358082", "0.4331632", "0.43244958", "0.43197963", "0.43149236", "0.43036112", "0.43034682", "0.43008608", "0.43005067", "0.4297879", "0.4297332", "0.42929697", "0.42910635", "0.42806754", "0.4264143", "0.4260171", "0.42543873", "0.42533052", "0.42529935", "0.42526355", "0.42500407", "0.42476428", "0.42418036", "0.4238326", "0.423774", "0.42323244" ]
0.6056256
1
Renders the specified file
public function render($file, $datasource = null);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function render($file);", "public static function renderFile();", "protected function renderFile(): string\n {\n $this->emit(\"view.render\", func_get_args());\n\n extract(func_get_arg(1), EXTR_PREFIX_INVALID, \"v_\");\n ob_start();\n\n try {\n require func_get_arg(0);\n\n return ob_get_clean();\n } catch (Exception $e) {\n ob_end_clean();\n\n throw $e;\n }\n }", "public function render($file) {\n $this->_controller->render($file);\n }", "public function renderFile($file = null)\n\t{\n\t\t$path = $this->_root . DIRECTORY_SEPARATOR . $file;\n\t\tob_start();\n\t\tif (is_file($path))\n\t\t{\n\t\t\tinclude($path);\n\t\t}\n\t\treturn ob_get_clean();\n\t}", "protected function render($file) {\n $content = $this->fetch($file);\n $content = $this->removeAdmTags($content);\n $content = $this->setVisualEditorAdmin($content);\n echo $content;\n }", "public function renderFile($file)\n {\n ob_start();\n include $file;\n return ob_get_clean();\n }", "public function renderFile($file)\n {\n ob_start();\n include $file;\n return ob_get_clean();\n }", "function render($file='') {\n\tif(isset($_REQUEST['ajax'])) {\n\t\tprint '{\"success\":\"Done\",\"error\":false}';\n\t\treturn;\n\t}\n\n\t//Otherwise, render it.\n\t$GLOBALS['template']->render($file);\n}", "private function render($file, $data = [])\n {\n return $this->renderer->render($file, $data);\n }", "public function render($params = array()) {\r\n\r\n\t\t// init vars\r\n\t\t$params = $this->app->data->create($params);\r\n\t\t$file = $this->get('file');\r\n\t\t$filename = basename($file);\r\n\r\n\t\t// render layout\r\n\t\tif ($layout = $this->getLayout()) {\r\n\t\t\treturn $this->renderLayout($layout,\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'file' => $file,\r\n\t\t\t\t\t'filename' => $filename,\r\n\t\t\t\t\t'size' => $this->getSize(),\r\n\t\t\t\t\t'hits' => (int) $this->get('hits', 0),\r\n\t\t\t\t\t'download_name' => $this->app->string->str_ireplace('{filename}', $filename, $params->get('download_name', '')),\r\n\t\t\t\t\t'download_link' => $this->getLink(),\r\n\t\t\t\t\t'filetype' => $this->getExtension(),\r\n\t\t\t\t\t'display' => $params->get('display', null),\r\n\t\t\t\t\t'limit_reached' => $this->isDownloadLimitReached(),\r\n\t\t\t\t\t'download_limit' => $this->get('download_limit')\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t}\r\n\t}", "private function render( $file_name, $data = array() )\n {\n \\extract($data);\n \\ob_start();\n include PROJECT_DIR . '/src/views/' . $file_name;\n }", "public function render()\n\t{\n\t\t// get stylehseet base & source\n\t\t$base = (isset($this->params->base)) ? strtolower($this->params->base) : 'uploads';\n\t\t$source = (isset($this->params->source)) ? trim($this->params->source) : null;\n\n\t\t// if we want base to be template,\n\t\t// shortcut to template/assets/css folder\n\t\tif ($base == 'template')\n\t\t{\n\t\t\t$base = 'template' . DS . 'assets' . DS . 'js';\n\t\t}\n\n\t\t// we must have a source\n\t\tif ($source === null)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t// get download path for source (serve up file)\n\t\tif ($path = $this->group->downloadLinkForPath($base, $source))\n\t\t{\n\t\t\t// add stylsheet to document\n\t\t\t\\Document::addScript($path);\n\t\t}\n\t}", "public function render() {\n\t\textract($this->data);\n\t\trequire($this->path);\n\t}", "protected function action_viewfile()\n\t{\n\t\tglobal $context;\n\n\t\t$error_details = $this->errorLog->getErrorLogData(\n\t\t\t0,\n\t\t\t'down',\n\t\t\t[\n\t\t\t\t'variable' => 'id_error',\n\t\t\t\t'value' => [\n\t\t\t\t\t'sql' => $this->_req->query->err,\n\t\t\t\t],\n\t\t\t]\n\t\t)['errors'][$this->_req->query->err]['file'];\n\n\t\t$data = iterator_to_array(\n\t\t\ttheme()->getTemplates()->getHighlightedLinesFromFile(\n\t\t\t\t$error_details['file'],\n\t\t\t\tmax($error_details['line'] - 16 - 9, 1),\n\t\t\t\tmin($error_details['line'] + 21, count(file($error_details['file'])) + 1)\n\t\t\t)\n\t\t);\n\n\t\t// Mark the offending line.\n\t\t$data[$error_details['line']] = sprintf(\n\t\t\t'<div class=\"curline\">%s</div>',\n\t\t\t$data[$error_details['line']]\n\t\t);\n\n\t\t$context['file_data'] = [\n\t\t\t'contents' => $data,\n\t\t\t'file' => strtr($error_details['file'], ['\"' => '\\\\\"']),\n\t\t];\n\n\t\ttheme()->getTemplates()->load('Errors');\n\t\ttheme()->getLayers()->removeAll();\n\t\t$context['sub_template'] = 'show_file';\n\t}", "protected function renderFile(string $file, array $data): string\n {\n extract($data);\n ob_start();\n include $file;\n return ob_get_clean();\n }", "static private function render($file, $data){\n extract($data);\n // Extract data retreived from the Sharer\n if(Sharer::get() !== null){\n extract(Sharer::get());\n }\n\n // Merge data into the hive\n self::$hive = array_merge(self::$hive, get_defined_vars());\n unset($data);\n\n ob_start();\n include($file);\n $input = ob_get_contents();\n ob_end_clean();\n\n $output = preg_replace_callback('!\\{\\{(.*?)\\}\\}!', 'Viewer::replace', $input);\n\n\n echo($output);\n }", "abstract public function render(FileInterface $file, $width, $height, array $options = [], $usedPathsRelativeToCurrentScript = false);", "public function render($data, $file)\n\t{\n\t\t\\Base::instance()->mset($data);\n\t\treturn \\Template::instance()->render($file);\n\t}", "public function render(FileInterface $file, $width, $height, array $options = [], $usedPathsRelativeToCurrentScript = false);", "public function render_file(string $filePath = null, array $params = [], int $statusCode = null)\n {\n if (isset($statusCode)) {\n http_response_code($statusCode);\n }\n\n extract($params);\n\n ob_start();\n if (file_exists($filePath)) {\n include($filePath);\n }\n $renderedView = ob_get_clean();\n return exit(print($renderedView));\n }", "private function renderTemplate(){\n\t\trequire($this->TemplateFile);\n\t}", "public function drawInFile()\n {\n }", "protected function render($fileName) \n { \n $path = APPHOME . DS . 'Views' . DS;\n $view = new View();\n echo $view->render($path . $fileName . '.php');\n }", "private function renderFile( \\SplFileInfo $readableFile, $data = [] ) : string {\n\n\t\t$storage = null;\n\n\t\tif ( $data instanceof ConfigInterface ) {\n\t\t\t$storage = $data;\n\t\t} else {\n\t\t\t$storage = Config::make( $data );\n\t\t}\n\n\t\t/**\n\t\t * Thanks to Giuseppe Mazzapica https://github.com/gmazzap\n\t\t */\n\t\t$renderer = \\Closure::bind(\n\t\t\tfunction ( $readableFile ) {\n\t\t\t\t\\ob_start();\n\t\t\t\tinclude $readableFile;\n\t\t\t\treturn \\ob_get_clean();\n\t\t\t},\n\t\t\t$storage\n\t\t);\n\n\t\treturn (string) $renderer( $readableFile );\n\t}", "public function renderFile($viewFile,$data=null,$return=false)\n\t{\n $content=$this->renderInternal($viewFile,$data,$return);\n return $content;\n\t}", "protected function render($view_file)\n\t{\n\t\tparent::render($view_file);\n\t}", "public function displayFile($template_name)\n\t{\n\t\t$this->render($template_name);\n\t\texit();\n\t}", "public static function renderTemplate($file, $args = [])\n {\n if (!empty($file)) {\n self::setFile($file);\n extract($args, EXTR_SKIP);\n if (file_exists(self::$file)) {\n ob_start();\n require_once self::$file;\n } else {\n throw new \\Exception(\"Sorry, view file {$file} not exists\", 404);\n }\n } else {\n throw new \\Exception('Sorry, file much be provided', 404);\n }\n }", "protected function render($filename, stdClass $tokens)\n\t{\n\t\tob_start();\n\t\tinclude($filename);\n\t\t$rendered = ob_get_contents();\n\t\tob_end_clean();\n\t\treturn $rendered;\n\t}", "public function render($file, $data = [])\n {\n $viewer = clone($this);\n return $viewer->doRender($file, $data);\n }", "public static function render($filePath, array $data = null) \n {\n //this try block is excecuted to enable throwing and catching of errors as appropriate\n try {\n\n //get the variables passed and make them available to the view\n if ( $data != null)\n {\n //loop through the array setting the respective variables\n foreach ($data as $key => $value) \n {\n $$key = $value;\n\n }\n\n }\n\n //get the parsed contents of the template file\n $contents = self::getContents($filePath);\n\n //start the output buffer\n ob_start();\n\n //evaluate the contents of this view file\n eval(\"?>\" . $contents . \"<?\");\n\n //get the evaluated contents\n $contents = ob_get_contents();\n\n //clean the output buffer\n ob_end_clean();\n\n //return the evaluated contents\n echo $contents;\n\n //stop further script execution\n exit();\n \n }\n\n catch(BaseException $e) {\n\n //echo $e->getMessage();\n $e->show();\n\n }\n\n catch(Exception $e) {\n\n echo $e->getMessage();\n \n }\n\n }", "public function file(){\n\t\theader('Content-Type: image/'.$this->extension);\n\t\tdie( readfile( $this->path ) );\n\t}", "public function render()\n\t{\n\t\t$this->addHTTPHeader('Content-Type', $this->getMimeType());\n\n\t\t$name = $this->getName();\n\n\t\tif (!empty($name))\n\t\t{\n\t\t\t$this->addHTTPHeader('Content-Disposition', 'attachment; filename=\"' . $name . '.csv\"', true);\n\t\t}\n\n\t\t$this->outputHTTPHeaders();\n\n echo $this->getBuffer();\n\t}", "protected function render()\n {\n $file_path = ROOT . '/' . PATH_VIEWS . '/' . $this->view . '.php';\n\n if (is_file($file_path)) {\n $this->template = $this->getContentTemplate($file_path);\n echo $this->template;\n } else {\n throw new Exception(\"Error! Does not exist \" . $this->view);\n }\n }", "public function render(string $file, array $params = [])\n {\n $view = new View($this->router);\n \n $view->setViewPath($this->getId());\n echo $view->render($file, $params);\n }", "public static function render($file, $variables = array()) {\n extract($variables);\n ob_start();\n include($file);\n $renderedView = ob_get_clean();\n echo $renderedView;\n }", "public function render() {\n\t\t$this->template->setFile(__DIR__ . '/templates/' . $this->templateName);\n\n\t\t$this->template->richTexts = $this->getRichTextNames();\n\t\t$this->template->config = $this->configuration;\n\n\t\t$this->template->render();\n\t}", "public function FileNotFound() {\n $this->Render();\n }", "public function render(){\n\t\treturn $this->file->getContent();\n\t}", "private function renderViewFile()\n {\n try {\n\n ob_start();\n extract($this->view_data);\n\n /** @noinspection PhpIncludeInspection */\n include($this->view_file);\n\n return trim(ob_get_clean(), \"\\n\");\n\n } catch (\\Exception $e) {\n\n ob_end_clean();\n throw $e;\n }\n }", "private function renderView(){\n\t\trequire($this->ViewFile);\n\t}", "public function view_file() {\n\t\t$currentPath = implode('/', $this->passedArgs);\n\t\t$fullPath = $this->path . $currentPath;\n\t\t$previousPath = implode('/', array_slice($this->passedArgs, 0, count($this->passedArgs) -1));\n\t\t$upOneFolder = implode('/', array_slice($this->passedArgs, 0, count($this->passedArgs) -2));\n\n\t\tif (!file_exists($fullPath)) {\n\t\t\t$this->_notFound(__('No file exists with that name', true));\n\t\t}\n\t\ttry {\n\t\t\t$docs = $this->ApiFile->loadFile($fullPath);\n\t\t} catch(Exception $e) {\n\t\t\t$this->_notFound($e->getMessage());\n\t\t}\n\t\t$classIndex = ClassRegistry::init('ApiGenerator.ApiClass')->getClassIndex();\n\t\tlist($dirs, $files) = $this->ApiFile->read($this->path . $previousPath);\n\n\t\tif (!empty($docs)) {\n\t\t\t$this->set('showSidebar', true);\n\t\t\t$this->set('sidebarElement', 'sidebar/file_sidebar');\n\t\t\t$this->set(compact('currentPath', 'previousPath', 'upOneFolder', 'docs', 'dirs', 'files', 'classIndex'));\n\t\t} else {\n\t\t\t$this->set('previousPath', $previousPath);\n\t\t\t$this->render('no_class');\n\t\t}\n\t}", "public function render($filename, $data = [])\r\n {\r\n\r\n\r\n //on demare le buffer\r\n // ob_start();\r\n\r\n // require_once(ROOT. 'views/'.strtolower(get_class($this)).'/'.$fichier.'.php');\r\n\r\n // $content = ob_get_clean();\r\n // require_once(ROOT.'views/layouts/default.php');\r\n\r\n\r\n\r\n $loader = new \\Twig\\Loader\\FilesystemLoader(\"views/\");\r\n $twig = new \\Twig\\Environment($loader, [\r\n 'cache' => false,\r\n ]);\r\n\r\n\r\n // On charge notre vue\r\n $view = $twig->load($filename);\r\n\r\n // On récupère le contenu de la vue en lui passant nos données pour que la vue puisse les exploiter\r\n echo $view->render($data);\r\n }", "public function render() {\n\t\treturn sq::base().$this->getFilePath();\n\t}", "public function render($file, $vars){\n //importa os valores de uma array para variaveis\n extract($vars);\n //Inicia o buffer\n ob_start();\n //Chama o arquivo de pagina a ser renderizado\n include($file);\n //Recebe os dados q foram chamados dentro do buffer\n $renderedHTML = ob_get_contents();\n //encerra e limpa o buffer\n ob_end_clean();\n\n return $renderedHTML;\n\n }", "public function render($name = ''){\n \n $ret_str = '';\n $extension = $this->getField('public_file')->getExtension();\n $ext = mb_strtolower($extension);\n \n switch($ext){\n \n case 'css':\n \n $ret_str = $this->renderStylesheet();\n break;\n \n case 'js':\n \n $ret_str = $this->renderJavascript();\n break;\n \n default:\n \n $ret_str = $this->renderImage();\n break;\n \n }//switch\n \n return $ret_str;\n \n }", "static function file($file, array $data = []){\n // Do you love displaying blank pages?\n if($file === 'index' || $file === 'index.php'){\n Debugger::report(404, true);\n }else{\n /**\n * Get the path of the calling script and get it's containing Directory\n * to enable include() style of accessing files\n */\n $callingScriptPath = debug_backtrace()[0]['file'];\n $callingScriptDirectory = realpath(dirname($callingScriptPath));\n if(file_exists($callingScriptDirectory.'/'.$file)){\n self::render($callingScriptDirectory.'/'.$file, $data);\n }else if(file_exists($callingScriptDirectory.'/'.$file.'.php')){\n self::render($callingScriptDirectory.'/'.$file.'.php', $data);\n }else if(file_exists(SS_PATH.$file)){\n self::render($file, $data);\n }else if(file_exists(SS_PATH.$file.'.php')){\n self::render(SS_PATH.$file.'.php', $data);\n }else{\n Debugger::report(404, true);\n }\n }\n }", "public function renderFiles() {\r\n\t\tlist($name, $id) = $this->resolveNameID();\r\n\t\t$id .= \"-files\";\r\n\t\t$basePath = $this->basePath;\r\n\t\tif (is_array($basePath)) {\r\n\t\t\t$basePath = array_shift($basePath); // the first folder is selected by default\r\n\t\t}\r\n\t\tob_start();\r\n\t\t$this->widget('zii.widgets.jui.CJuiSelectable', array(\r\n\t\t\t'items'=>array(\r\n\t\t\t\t'id1'=>'<strong>blah</strong> Item 1',\r\n\t\t\t\t'id2'=>'Item 2',\r\n\t\t\t\t'id3'=>'Item 3',\r\n\t\t\t),\r\n\t\t\t'id' => $id,\r\n\t\t));\r\n\t\tYii::app()->clientScript->registerCSS(__CLASS__.\":\".$id,<<<CSS\r\n#$id .ui-selecting { background: #FECA40; }\r\n#$id .ui-selected { background: #F39814; color: white; }\r\n#$id { list-style-type: none; margin: 0; padding: 0; }\r\n#$id li {\r\n\tmargin: 3px;\r\n\tpadding: 10px;\r\n\tfloat: left;\r\n\twidth: 60px;\r\n\theight: 40px;\r\n\ttext-align: center;\r\n\t}\r\n\t\t\r\nCSS\r\n\t\t);\r\n\t\t$html = ob_get_clean();\r\n\t\treturn $html;\r\n\t}", "public function displayFile()\r\n {\r\n $filePath = $this->root.'/'.$this->route;\r\n \r\n if (!self::isFile($this->route)) {\r\n throw new Exception('The route is not a correct file.');\r\n }\r\n if (!file_exists($this->root.'/'.$this->route)) {\r\n throw new Exception('The file '.$filePath.' does not exists.');\r\n }\r\n \r\n echo file_get_contents($filePath);\r\n }", "public function render($file)\n {\n return static::renderStatic(\n [\n 'file' => $file,\n ],\n $this->buildRenderChildrenClosure(),\n $this->renderingContext\n );\n }", "protected function file($path, $params = null)\n {\n if ($params === null) {\n global $_; \n $params = $_;\n }\n $this->renderFile($path, $params);\n }", "public function render()\n\t{\n\t\t$this->addHTTPHeader('Content-Type', $this->getMimeType());\n\n\t\t$name = $this->getName();\n\n\t\tif (!empty($name))\n\t\t{\n\t\t\t$this->addHTTPHeader('Content-Disposition', 'attachment; filename=\"' . $name . '.json\"', true);\n\t\t}\n\n\t\t$this->outputHTTPHeaders();\n\n\t\tif ($this->useHashes)\n\t\t{\n\t\t\techo '###' . $this->getBuffer() . '###';\n\t\t}\n\t\telse\n\t\t{\n\t\t\techo $this->getBuffer();\n\t\t}\n\t}", "public function render($file, $as='elem')\n {\n if (substr($file, 0, 4)=='EXT:') {\n $file = GeneralUtility::getFileAbsFileName($file);\n }\n if (substr($file, 0, 10) == \"/fileadmin\" || substr($file, 0, 8) == \"/uploads\") {\n $file = PATH_site.$file;\n }\n $elem = null;\n if (is_file($file)) {\n $elem = file_get_contents($file);\n }\n if (empty($elem)) {\n return '';\n }\n\n $renderChildrenClosure = $this->buildRenderChildrenClosure();\n $templateVariableContainer = $this->renderingContext->getTemplateVariableContainer();\n $templateVariableContainer->add($as, $elem);\n $output = $renderChildrenClosure();\n $templateVariableContainer->remove($as);\n return $output;\n }", "public function render($file, $variables = []){\n extract($variables);\n ob_start();\n require_once $file;\n $views = ob_get_clean();\n return $views;\n }", "public function render($filename, array $args = [])\n {\n $template = $this->templateEngine->load($filename);\n\n if (null !== $template) {\n $template->render($args);\n }\n\n exit();\n }", "private function _doRender(){\n\t\tinclude $this->_viewLocation;\n\t}", "function display( $file = false, $args = array() ) {\n\t\tif( ! $file || empty( $file ) ) {\n\t\t\tthrow new Wgobd_File_Not_Provided( \"You need to specify a view file.\" );\n\t\t}\n\n\t\t$file = WGOBD_VIEW_PATH . \"/\" . $file;\n\n\t\tif( ! file_exists( $file ) ) {\n\t\t\tthrow new Wgobd_File_Not_Found( \"The specified view file doesn't exist.\" );\n\t\t} else {\n\t\t\textract( $args );\n\t\t\trequire( $file );\n\t\t}\n\t}", "public function draw(string $file, array $data): string\n {\n //Initialize if not initialized already.\n $this->isInitialized() || $this->initialize();\n\n $file = substr($file, strlen($this->getAppDirectory().'views/'));\n return $this->twig->render($file, $data);\n }", "protected function renderFile($fileName, $data = [])\n {\n $fileNameLang = substr($fileName, 0, -3);\n $lang = (file_exists($fileNameLang)) ? new Language($fileNameLang) : null;\n unset($fileNameLang);\n\n extract($data, EXTR_PREFIX_SAME, 'data');\n ob_start();\n include str_replace('\\\\', '/', $fileName);\n\n if (!empty($this->widgetStack)) {\n throw new Exception(count($this->widgetStack) . ' widgets not endings.');\n }\n\n return $this->insertStyleScripts(ob_get_clean());\n }", "public function render($filename,$variables=array(),$output=true){\n\t\t$this->renderPartial($filename, $variables, $output);\n\t}", "protected function _render()\n {\n $renderer = $this->param('renderer');\n if ($renderer) {\n return call_user_func($renderer, $this);\n }\n\n ob_start();\n include $this->getTemplateFileName();\n return ob_get_clean();\n }", "public function render($file, $data)\n {\n if (!file_exists($file)) {\n throw new \\Exception(\"View template not found: $file.\");\n }\n\n ob_start();\n\n extract($data);\n\n include $file;\n\n $output = ob_get_clean();\n\n return $output;\n }", "protected function _run()\r\n {\r\n $file = func_num_args() > 0 &&\r\n file_exists(func_get_arg(0))\r\n ? func_get_arg(0)\r\n : '';\r\n if ($this->_customTemplate || $file) {\r\n $template = $this->_customTemplate;\r\n if (!$template) {\r\n $template = $file;\r\n }\r\n\r\n $this->_smarty->display($template);\r\n }\r\n else {\r\n throw new Zend_View_Exception(\r\n 'Cannot render view without any template\r\n being assigned or file does not exist'\r\n );\r\n }\r\n }", "public function render()\n\t{\n\t\techo $this->export();\n\t}", "protected function render()\n {\n $settings = $this->get_settings_for_display();\n require dirname(__FILE__) . '/' . $settings['layout'] . '.php';\n }", "abstract public function render();", "abstract public function render();", "abstract public function render();", "abstract public function render();", "abstract public function render();", "abstract public function render();", "public function Display(){\n\t\trequire($this->viewFileName);\n\t}", "public abstract function render();", "public abstract function render();", "public function render()\n {\n $data = $this->data;\n\n ob_start();\n include $this->path;\n $content = ob_get_clean();\n\n return $content;\n }", "protected function render_file ($file_name, $layout = false, $status = null)\n\t{\n\t\tif ($this->response->is_redirected())\n\t\t\tthrow new DoubleRenderException();\n\t\tFails::$logger->info (\"Rendering file: $file_name\");\n\t\t# Load template file:\n\t\t$content = @file_get_contents ($file_name);\n\t\tif ($content === false)\n\t\t\tthrow new ViewMissingException (\"View template missing: '\".$file_name.\"'\");\n\t\t$processor = $this->get_processor ($content, $this->get_variables_for_view());\n\t\treturn $this->render_text ($processor->process(), $layout, $status);\n\t}", "public function show() {\n\t\t$this->create();\n\t\theader(\"Content-Type: image/png\");\n\t\theader(\"Content-Transfer-Encoding: binary\");\n\t\theader(\"Content-Length: \" . filesize($this->fileName));\n\t\theader(\"ETag: \" . md5($this->fileName)); // note we calculate md5 from filename, not from the file content\n\t\theader(\"Cache-Control: max-age=3600\");\n\t\theader(\"Expires: \" . gmdate('D, j M Y H:i:s', time() + 3600) . ' GMT');\n\t\tob_clean();\n\t\tflush();\n\t\treadfile($this->fileName);\n\t}", "public function render($file, $metaData = array(), $data = array(), $errors = array(), $noInclude = false)\n {\n if ( $noInclude == true )\n {\n require 'core/views/' . $file . '.php'; \n }\n else\n {\n require 'core/views/layouts/header.php';\n require 'core/views/' . $file . '.php';\n require 'core/views/layouts/footer.php';\n }\n }", "private function renderContent($file, $path, $displayData = null) \n {\n $layout = new JLayoutFile($file, JPATH_SITE . $path, array('debug' => 0));\n return $layout->render($displayData);\n }", "public function render() {\n\n\t\t$context = $this->options;\n\t\t$context = $this->load($context);\n\n\t\textract($context);\n\n\t\tinclude __DIR__ . '/../views/' . $this->template();\n\t}", "public function render()\n {\n if (file_exists('../resources/views/' . $this->view_name . '.phtml')) {\n include_once '../resources/views/' . $this->view_name . '.phtml';\n include_once '../resources/views/layouts/' . $this->layout . '.phtml';\n } else {\n die(\"THERE IS NO VIEW\");\n }\n }", "private static function render( $filename, $vars = array() ){\n\t\tself::$render = self::$cwd.'/'.$filename.'.php';\n\t\tif( file_exists(self::$render) ){\n\t\t\textract( (array) $vars, EXTR_SKIP );\n\t\t\tinclude self::$render;\n\t\t}\n\t}", "public function display($fileName)\n { \t\n \tif (file_exists($fileName)) {\n \t\t\n \t\t$view = file_get_contents($fileName);\n \t\t$this->view = '?>' . $view;\n \t\t\n \t\t$this->processTags();\n \t\t\n \t\teval ($this->view);\n \t\t\n \t} else {\n \t\t\n \t\t$this->displayError(\"Can't load view : \" . $fileName);\n \t}\n }", "public function filerendererAction() {\n\t\t$filename = basename($this->_getParam('image'));\n\t\t$this->_helper->layout()->disableLayout();\n\t\t$this->_helper->viewRenderer->setNoRender();\n\t\t$this->getResponse()\n\t\t\t\t->setHeader('Content-Type', 'image/jpeg')\n\t\t\t\t->setBody(file_get_contents(ROOT_DIR . '/files/' . $filename));\n\t}", "public function renderFile(Environment $twig): string;", "public function render()\n\t{\n\t\tforeach($this->data as &$data)\n\t\t{\n\t\t\tif($data instanceof Design\\Renderable)\n\t\t\t{\n\t\t\t\t$data = $data->render();\n\t\t\t}\n\t\t}\n\n\t\tob_start() and extract($this->data, EXTR_SKIP);\n\n\t\ttry\n\t\t{\n\t\t\tinclude $this->path;\n\t\t}\n\t\tcatch(\\Exception $e)\n\t\t{\n\t\t\tthrow new Exception\\Basic($e);\n\t\t}\n\n\t\treturn ob_get_clean();\n\t}", "public function render()\n {\n return view('components.form.file');\n }", "public function render(){\n require_once($_SERVER['DOCUMENT_ROOT'].\"//views/\".self::$page_name.\"/\".self::$page_name.\".php\");\n }", "abstract public function render($path, array $args = null);", "public function renderHTML() \n\t{\n\t\t$viewTemplate = file_get_contents('view_file.html');\n\t\techo $viewTemplate;\n\t}", "public function render();", "public function render();", "public function render();", "public function render();", "public function render();", "public function render();", "public function render();", "public function render();", "public function render();" ]
[ "0.86191946", "0.8505658", "0.765269", "0.76339024", "0.7618459", "0.7316097", "0.71705717", "0.71705717", "0.7142561", "0.7008925", "0.6962622", "0.69253635", "0.6884727", "0.68534327", "0.6853291", "0.68270504", "0.67737705", "0.67728055", "0.6743015", "0.6711079", "0.6698198", "0.6630193", "0.66168195", "0.6613652", "0.66120726", "0.6593366", "0.6587242", "0.65819687", "0.65733373", "0.6564295", "0.65562755", "0.6520836", "0.65090007", "0.65076315", "0.6489928", "0.6487502", "0.6468661", "0.64457", "0.6428123", "0.6422669", "0.64215046", "0.6417526", "0.64164096", "0.6404375", "0.6395834", "0.6384544", "0.63832", "0.63728875", "0.6367846", "0.63677657", "0.6366032", "0.6364234", "0.6364216", "0.6352048", "0.6342812", "0.63373274", "0.6314387", "0.63114244", "0.6310719", "0.6302282", "0.62967765", "0.6257571", "0.624099", "0.624026", "0.6239019", "0.62355673", "0.6234904", "0.6234904", "0.6234904", "0.6234904", "0.6234904", "0.6234904", "0.62315047", "0.62283534", "0.62283534", "0.62231475", "0.62148005", "0.6214448", "0.62109506", "0.6196394", "0.61907095", "0.6187072", "0.6176632", "0.61718386", "0.61688185", "0.6168746", "0.61624473", "0.6156739", "0.6152989", "0.6150432", "0.61467034", "0.6134699", "0.6134699", "0.6134699", "0.6134699", "0.6134699", "0.6134699", "0.6134699", "0.6134699", "0.6134699" ]
0.7608245
5
Renders the current template
public function renderTemplate();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function render_template()\n {\n }", "protected function render_template()\n {\n }", "protected function render_template()\n {\n }", "protected function render_template()\n {\n }", "protected function render()\n {\n $params = ['title' => $this->title, 'content' => $this->content];\n $html = $this->template('Views/v_main.php', $params);\n echo $html;\n }", "public static function renderTemplate()\n {\n echo self::$template;\n }", "public function render()\n {\n $page = $this->twig->load($this->template);\n $this->prepareFlashMessages();\n $html = $page->render($this->vars);\n Router::sendResponse($html);\n }", "public function render() {\n\n\t\t$context = $this->options;\n\t\t$context = $this->load($context);\n\n\t\textract($context);\n\n\t\tinclude __DIR__ . '/../views/' . $this->template();\n\t}", "public function render()\n {\n // Pass messages by reference, as all messages are created after this function call\n $data = [ \"messages\" => &$this->messages ];\n $this->di->view->add($this->template, $data, $this->region);\n }", "public function render_page() {\n\t\t$this->render_template();\n\t}", "public function render() {\n $template = $this->template;\n $template->setFile(__DIR__ . '/QuestionControl.latte');\n $this->template->question = $this->questions->getById($this->questionId);\n $template->render();\n }", "public function render()\r\n {\r\n $this->data['menu'] = build_menu(\r\n $this->choices, $this->uri->segment(1));\r\n \r\n $this->data['header'] = $this->parser->parse(\r\n '_header', $this->data, true);\r\n $this->data['content'] = $this->parser->parse(\r\n $this->data['page_body'], $this->data, true);\r\n $this->data['footer'] = $this->parser->parse(\r\n '_footer', $this->data, true);\r\n \r\n $this->data['data'] = &$this->data;\r\n \r\n $this->parser->parse('_template', $this->data);\r\n }", "public function render()\n\t{\n\t $templateFile = $this->template;\n\t $templateContents = $this->getTemplateContents($templateFile);\n\n\t $layout = $this->getTemplateLayout($templateContents);\n $arguments = $this->getTemplateArguments($templateContents);\n\n\t return $this->renderLayout(\n \t\t$layout, \n \t\tfunction () use ($templateFile) {\n\t\t $template = new Template($templateFile);\n\t\t return $template->render();\n\t \t},\n \t\t$arguments\n \t);\n\t}", "public function render() {\n\t\t$this->template->setFile(__DIR__ . '/templates/' . $this->templateName);\n\n\t\t$this->template->richTexts = $this->getRichTextNames();\n\t\t$this->template->config = $this->configuration;\n\n\t\t$this->template->render();\n\t}", "public function display() {\r\n echo $this->template;\r\n }", "public function forTemplate()\n {\n return $this->renderWith($this->defaultTemplate());\n }", "public function render()\n {\n if (is_archive()) {\n // Archive stuff\n } else {\n // Get Template vars\n $context = Timber::get_context();\n $post = new \\TimberPost();\n $context['post'] = $post;\n // Render Template\n Timber::render('pages/single-book.twig', $context);\n }\n }", "public function render()\n\t{\n\t\t$template = $this->template\n\t\t\t? '<div class=\"wkm-template\" for=\"' .$this->id. '\">' .$this->template. '</div>'\n\t\t\t: '';\n\n\t\treturn parent::render().$template;\n\t}", "protected function _render()\n {\n $renderer = $this->param('renderer');\n if ($renderer) {\n return call_user_func($renderer, $this);\n }\n\n ob_start();\n include $this->getTemplateFileName();\n return ob_get_clean();\n }", "public function render()\n {\n parent::render();\n\n $oContent = $this->getContent();\n if ($oContent && !$this->_canShowContent($oContent->oxcontents__oxloadid->value)) {\n oxRegistry::getUtils()->redirect($this->getConfig()->getShopHomeURL() . 'cl=account');\n }\n\n $sTpl = false;\n if ($sTplName = $this->_getTplName()) {\n $this->_sThisTemplate = $sTpl = $sTplName;\n } elseif ($oContent) {\n $sTpl = $oContent->getId();\n }\n\n if (!$sTpl) {\n error_404_handler();\n }\n\n // sometimes you need to display plain templates (e.g. when showing popups)\n if ($this->showPlainTemplate()) {\n $this->_sThisTemplate = $this->_sThisPlainTemplate;\n }\n\n if ($oContent) {\n $this->getViewConfig()->setViewConfigParam('oxloadid', $oContent->getLoadId());\n }\n\n return $this->_sThisTemplate;\n }", "protected function render() {}", "protected function render() {}", "protected function render() {}", "public function render() {\n\t\t$this->render_page_content();\n\t}", "public function forTemplate()\n {\n if (!$this->canBeCached()) {\n HTTPCacheControlMiddleware::singleton()->disableCache();\n }\n\n $context = $this;\n $this->extend('onBeforeRender', $context);\n\n $return = $context->renderWith($context->getTemplates());\n\n // Now that we're rendered, clear message\n $context->clearMessage();\n\n return $return;\n }", "public function render() {\n\t\treturn $this->template( 'page' );\n\t}", "public function render() {\n\t\tW2P::getInstance()->debug()->_debug_add_content ( \"Executing all modules methods.\" );\n\t\tW2P::getInstance()->modules()->exec_all_functions();\n\t\t\n\t\tW2P::getInstance()->debug()->_debug_add_content ( \"Generating rendering of the view: {$this->view}\" );\n\t\t\n\t\tob_start ();\n\t\tinclude_once (W2P_INCLUDE . W2P::getInstance()->configuration()->layout_path . '/views/' . $this->view . '.phtml');\n\t\t$this->content = ob_get_clean ();\n\t\t\n\t\tW2P::getInstance()->debug()->_debug_add_content ( \"Content of the rendered view\" );\n\t\tW2P::getInstance()->debug()->_debug_add_content ( \"Adding to the project layout\" );\n\t\t\n\t\tinclude (W2P_INCLUDE . W2P::getInstance()->configuration()->layout_path . '/' . $this->layout . '.phtml');\n\t\t\n\t\tW2P::getInstance()->debug()->_debug_add_content ( \"Layout successfully mastered\" );\n\t\t\n\t\tif (W2P::getInstance()->configuration()->debug)\n\t\t\tW2P::getInstance()->debug()->save_debug ( W2P::getInstance()->configuration()->debug_format );\n\t}", "public function render()\n {\n $content = $this->__layoutContent();\n\n extract($this->getViewData());\n ob_start();\n include $content;\n ob_get_flush();\n }", "public function run ()\n\t{\n\t\t$dump = template::dump ();\n\n\t\t$head = '';\n\t\tforeach ( $dump ['css'] as $file )\n\t\t{\n\t\t\t$head .= $this->twig->render ( 'system/html/web/snippets/css.twig', [ 'file' => $file, 'defer' => substr ( $file, 0, 2 ) == '//' ] );\n\t\t}\n\n\t\tforeach ( $dump ['js'] as $file )\n\t\t{\n\t\t\t$head .= $this->twig->render ( 'system/html/web/snippets/js.twig', [ 'file' => $file, 'defer' => substr ( $file, 0, 2 ) == '//' ] );\n\t\t}\n\n\t\t$body = '';\n\t\tforeach ( $dump ['templates'] as $template )\n\t\t{\n\t\t\t$body .= $this->twig->render ( $template ['path'], $template ['environment'] );\n\t\t}\n\n\t\t// We do not use die incase some modules need to run after the layout have been generated\n\t\techo $this->twig->render ('system/html/web/base.twig', [\n\t\t\t'head' => $head,\n\t\t\t'body' => $body\n\t\t] );\n\t}", "public function render() {\n\t\tob_start();\n\n\t\t$this->resolve_template();\n\n\t\treturn ob_get_clean();\n\t}", "private function renderTemplate(){\n\t\trequire($this->TemplateFile);\n\t}", "public function render()\n {\n \n $v = $this->vars;\n \n ob_start();\n foreach( $this->templates as $template )\n {\n if( Fs::exists( GAIA_PATH.'modules/'.$template.'.tpl' ) )\n include GAIA_PATH.'modules/'.$template.'.tpl';\n elseif( Fs::exists( GAIA_PATH.'wbf/'.$template.'.tpl' ) )\n include GAIA_PATH.'wbf/'.$template.'.tpl';\n else \n echo 'Missing Template '.$template.NL;\n }\n \n $maincontent = ob_get_contents();\n ob_end_clean();\n \n $this->renderedContent = $maincontent;\n\n return $this->renderedContent;\n\n }", "protected function render(){\n //render view\n \n }", "protected function render()\n {\n }", "protected function render()\n {\n }", "protected function render()\n {\n }", "protected function render()\n {\n }", "function render() {\r\n $sendOutput = true;\r\n // check if plog is configured to use conditional http headers and stuff like\r\n // that... Also, use the HttpCache class to determine whether we should send the\r\n // content or not\r\n if ($this->isCached()) {\r\n // some debug information\r\n $timestamp = $this->_templateObject->getCreationTimestamp();\r\n // and now send the correct headers\r\n if (Http_Cache::httpConditional($timestamp, $this->getCacheTimeSeconds())) $sendOutput = false;\r\n $header = \"Last-Modified: \" . gmdate('D, d M Y H:i:s', $timestamp) . ' GMT';\r\n header($header);\r\n }\r\n else {\r\n // send the results if needed\r\n $sendOutput = true;\r\n }\r\n if ($sendOutput) {\r\n // pass all the values to the template object\r\n $this->_templateObject->assign($this->_params);\r\n // and finally send them after calling the pre-processing method\r\n $content = $this->_templateObject->fetch($this->getViewId());\r\n print ($content);\r\n }\r\n }", "public function render()\n {\n \n }", "public function render() {\r\n\t\t\r\n\t}", "public function render() {\n return $this->getRenderer()->render($this->getLayout() . $this->getContainer()->get('config')->get('template.extension'), $this->getData());\n }", "public function render() {\n echo $this->getHtml();\n }", "public function Display()\n {\n include($this->template);\n }", "public function template()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/template', [\n\t\t\t'templates_availables' => $this->templates_availables,\n\t\t]);\n\t}", "public function render() {\n\t\t\t\n\t\t\t$this->_content = ob_get_contents();\n\t\t\tob_clean();\n\t\t\t\n\t\t\t$this->outputLine($this->_doctype);\n\t\t\t$this->outputLine('<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"' . $this->_lang . '\" lang=\"' . $this->_lang . '\" dir=\"' . $this->_dir . '\">');\n\t\t\t\n\t\t\t$this->renderHead();\n\t\t\t\n\t\t\t$this->renderBody();\n\t\t\t\n\t\t\t$this->outputLine('</html>');\n\t\t\t\n\t\t}", "public function render()\n {\n $theme = Yii::app()->theme->name;\n $name = get_class($this);\n $templateName = \"themes/$theme/templates/$name.xhtml\";\n $content = $this->renderContent();\n if (!file_exists($templateName))\n {\n $templateName = \"themes/default/templates/$name.xhtml\";\n }\n if (file_exists($templateName))\n {\n $span = \"<span class=\\\"$name\\\" />\";\n $templateSource = file_get_contents($templateName);\n if (strpos($templateSource, $span))\n {\n $content = str_replace($span, $content, $templateSource);\n }\n $content = \"<!-- Start of $templateName -->$content<!-- End of $templateName -->\";\n }\n $classes = RuntimeUtil::getClassHierarchy(get_class($this), 'View');\n if ($this->isUniqueToAPage())\n {\n $id = \" id=\\\"$name\\\"\";\n unset($classes[0]);\n }\n else\n {\n $id = $this->getId();\n if ($id != null)\n {\n $id = \" id=\\\"$id\\\"\";\n }\n }\n $classes = join(' ', array_merge($this->getCssClasses(), $classes));\n if ($classes != '')\n {\n $classes = \" class=\\\"$classes\\\"\";\n }\n $calledClass = get_called_class();\n if (YII_DEBUG)\n {\n $reflection = new ReflectionClass( $calledClass );\n $classFile = $reflection->getFileName();\n return \"<!--Called in: $classFile--><div\" . $id . $classes . $this->getViewStyle() . \">$content</div>\";\n }\n else\n {\n return \"<div\" . $id . $classes . $this->getViewStyle() . \">$content</div>\";\n }\n }", "public function render(){\r\n //Current controller is loaded from within the action method.\r\n define(\"RENDER_BEGIN\", microtime());\r\n \r\n\t\t\t$this->controller->render();\r\n \r\n\t\t\t\r\n\t\t}", "function render()\n\t{\n\t}", "protected function render()\n {\n $this->renderer->exec();\n }", "public function render();", "public function render();", "public function render();", "public function render();", "public function render();", "public function render();", "public function render();", "public function render();", "public function render();", "public function render();", "public function render();", "public function render();", "public function render();", "public function render();", "public function render();", "public function render();", "public function render();", "public function render();", "private function renderContent()\n {\n $this->tabs[$this->currentlyActiveTab()]->view()->render();\n }", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}", "public function render() {}" ]
[ "0.82373667", "0.82359314", "0.82359314", "0.82359314", "0.77748024", "0.7766651", "0.7710936", "0.76272416", "0.75364435", "0.7520371", "0.7470599", "0.7466101", "0.7455567", "0.7416329", "0.73912007", "0.7334547", "0.73306084", "0.7311963", "0.72651744", "0.7233991", "0.7231502", "0.7231196", "0.7231196", "0.7225723", "0.7195994", "0.719253", "0.71764374", "0.7155263", "0.7139257", "0.7137155", "0.7136134", "0.71343", "0.7128882", "0.7118773", "0.7118773", "0.71184427", "0.7115804", "0.71154475", "0.7113608", "0.7099681", "0.7085277", "0.70731866", "0.7067528", "0.70467734", "0.70463187", "0.7043533", "0.7023744", "0.7020466", "0.7015892", "0.7006429", "0.7006429", "0.7006429", "0.7006429", "0.7006429", "0.7006429", "0.7006429", "0.7006429", "0.7006429", "0.7006429", "0.7006429", "0.7006429", "0.7006429", "0.7006429", "0.7006429", "0.7006429", "0.7006429", "0.7006429", "0.699877", "0.6987018", "0.6987018", "0.6987018", "0.6987018", "0.6987018", "0.6987018", "0.6987018", "0.6987018", "0.6987018", "0.6987018", "0.6987018", "0.6987018", "0.6987018", "0.6987018", "0.6987018", "0.6987018", "0.6987018", "0.6986757", "0.6986757", "0.6986757", "0.6986757", "0.6986757", "0.6986757", "0.6986757", "0.6986757", "0.6986757", "0.6986757", "0.6986757", "0.6986757", "0.6986757", "0.6986757", "0.6986757" ]
0.7962683
4
Renders the current layout
public function renderLayout();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function render_screen_layout()\n {\n }", "public function render()\n {\n $content = $this->__layoutContent();\n\n extract($this->getViewData());\n ob_start();\n include $content;\n ob_get_flush();\n }", "protected function render()\n {\n $settings = $this->get_settings_for_display();\n require dirname(__FILE__) . '/' . $settings['layout'] . '.php';\n }", "public function render()\n {\n return view(\"layouts.{$this->layout}\");\n }", "public function render() {\n\t\tW2P::getInstance()->debug()->_debug_add_content ( \"Executing all modules methods.\" );\n\t\tW2P::getInstance()->modules()->exec_all_functions();\n\t\t\n\t\tW2P::getInstance()->debug()->_debug_add_content ( \"Generating rendering of the view: {$this->view}\" );\n\t\t\n\t\tob_start ();\n\t\tinclude_once (W2P_INCLUDE . W2P::getInstance()->configuration()->layout_path . '/views/' . $this->view . '.phtml');\n\t\t$this->content = ob_get_clean ();\n\t\t\n\t\tW2P::getInstance()->debug()->_debug_add_content ( \"Content of the rendered view\" );\n\t\tW2P::getInstance()->debug()->_debug_add_content ( \"Adding to the project layout\" );\n\t\t\n\t\tinclude (W2P_INCLUDE . W2P::getInstance()->configuration()->layout_path . '/' . $this->layout . '.phtml');\n\t\t\n\t\tW2P::getInstance()->debug()->_debug_add_content ( \"Layout successfully mastered\" );\n\t\t\n\t\tif (W2P::getInstance()->configuration()->debug)\n\t\t\tW2P::getInstance()->debug()->save_debug ( W2P::getInstance()->configuration()->debug_format );\n\t}", "public function execute()\n {\n $this->_view->loadLayout();\n $this->_view->renderLayout();\n }", "public function execute()\n {\n $this->_view->loadLayout();\n $this->_view->renderLayout();\n }", "public function index()\n\t{\n\t\t$this->layout->render();\n\t}", "public function layout() {\r\n $this->template['header'] = $this->load->view('common/header', $this->data, true);\r\n $this->template['content'] = $this->load->view($this->content, $this->data, true);\r\n $this->template['footer'] = $this->load->view('common/footer', $this->data, true);\r\n $this->load->view('common/layout', $this->template);\r\n }", "public function render() \n {\n if (empty($this->title) == TRUE)\n {\n $this->setTitle('Title not set');\n }\n\n if (empty($this->layout) == TRUE)\n {\n $this->layout = $this->autoLayout();\n }\n\n if (empty($this->content) == TRUE)\n {\n $this->content = $this->autoContent();\n }\n\n if ((file_exists($this->layout) == TRUE) AND (file_exists($this->content) == TRUE))\n {\n if (empty($this->vars) == FALSE)\n {\n extract($this->vars);\n }\n\n $title = $this->title;\n ob_start();\n require $this->content;\n $content = ob_get_clean();\n require $this->layout;\n }\n else\n {\n View::error('no_language');\n }\n\t}", "public function render()\r\n\t{\r\n\t\tif( $this->_layout && file_exists($this->_layout) )\r\n\t\t{\r\n\t\t\t$this->_layout = apply_filters( 'tp_event_meta_box_layout', $this->_layout, $this->_id );\r\n\t\t\tdo_action( 'tp_event_before_metabox', $this->_id );\r\n\t\t\trequire_once $this->_layout;\r\n\t\t\tdo_action( 'tp_event_after_metabox', $this->_id );\r\n\t\t}\r\n\t}", "public function render()\n {\n parent::render();\n\n $myConfig = $this->getConfig();\n $oParentView = $this->getParent();\n\n // add content for main menu\n $oContentList = oxNew('oxcontentlist');\n $oContentList->loadMainMenulist();\n $oParentView->setMenueList($oContentList);\n\n return;\n }", "public function render() {\n\t\t$this->render_page_content();\n\t}", "private function renderContent()\n {\n $this->tabs[$this->currentlyActiveTab()]->view()->render();\n }", "protected function render(){\n //render view\n \n }", "protected function render()\n {\n $params = ['title' => $this->title, 'content' => $this->content];\n $html = $this->template('Views/v_main.php', $params);\n echo $html;\n }", "public function render() {\n echo \"<!DOCTYPE html>\\n\";\n echo \"<html>\\n\";\n $this->show_head();\n \n echo\"\\n<body>\\n\";\n echo $this->show_contents();\n\n echo \"\\n</body>\";\n echo \"\\n</html>\\n\\n\";\n }", "private function renderPage()\n {\n $content = <<<EOD\n<div id=\"layout-block\">\n{$this->searchForm->render()}\n{$this->renderLegend()}\n{$this->renderPools()}\n</div>\nEOD;\n return $this->renderBaseTemplate($content);\n }", "public function render() {\n\t\techo $this->header->toString();\n\t\techo $this->panel->toString();\n\t\techo $this->page->toString();\n\t\tif( $this->getMessages() != null ) {\n\t\t\techo $this->messages->toString();\n\t\t}\n\t\techo $this->footer->toString();\n\t}", "public function renderLayout() {\n \t// See if we need to autoload the layout\n \tif (!is_null($this->getLayout())) {\n // Check for a router\n if (is_null($this->getRouter())) {\n \t\t // Set the layout file\n \t\t $sFile = APPLICATIONPATH.\"/layouts/{$this->loadConfigVar('systemSettings', 'defaultViewsFolder')}/{$this->getLayout()}\";\n } else {\n // Set the layout file with the router\n $sFile = APPLICATIONPATH.\"/layouts/{$this->getRouter()}/{$this->getLayout()}\";\n }\n // Check to see if the file exists\n if (file_exists($sFile)) {\n // Load it\n require_once($sFile);\n // File does not exist\n } else {\n // Set the system error\n $this->setError(\n\t\t\t\t\t\tstr_replace(\n\t\t\t\t\t\t\t':layoutName', \n\t\t\t\t\t\t\t$this->getLayout(), \n\t\t\t\t\t\t\t$this->loadConfigVar(\n\t\t\t\t\t\t\t\t'errorMessages', \n\t\t\t\t\t\t\t\t'layoutDoesNotExist'\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// Run the error controller\n\t\t\t\t\t// $this->runError();\n }\n \t}\n \t// Return instance\n \treturn $this;\n }", "function Render() {\n $this->RenderChildren();\n }", "public function generate()\r\n {\r\n $loader = new ContentLoader($this->_viewVariables);\r\n $loader->initContent($this->_contentViewPath);\r\n $this->_layout = $loader->initLayout($this->_layoutPath);\r\n echo $this->_layout;\r\n }", "public function indexAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\r\n\t}", "public function indexAction()\n {\n $this->loadLayout();\n $this->renderLayout();\n }", "private function _doRender(){\n\t\tinclude $this->_viewLocation;\n\t}", "public function indexAction()\n {\n $this->loadLayout();\n $this->renderLayout();\n }", "private static function render(){\n\t\tif(flexMVC::$view) $viewpath = VIEWS.flexMVC::$view.VIEWPAGE_EXT;\n\t\telse $viewpath = CURRENT_VIEW_FOLDER_LOCATION.CURRENT_VIEW.VIEWPAGE_EXT;\n\t\tif(!is_file($viewpath)){\n\t\t\t$viewpath = VIEWS.flexMVC::$error_page.VIEWPAGE_EXT;\n\t\t\tif(!file_exists($viewpath)){\n\t\t\t\techo(\"Please define your errors page => \" . flexMVC::$error_page);\n\t\t\t\texit;\n\t\t\t}\n\t\t\theader($_SERVER[\"SERVER_PROTOCOL\"].\" 404 Not Found\"); \n\t\t\tob_start();\n\t\t\tinclude($viewpath);\n\t\t\t$content = ob_get_clean();\n\t\t\tflexMVC::get_layout(VIEWS.\"_layouts/\".flexMVC::$layout.VIEWPAGE_EXT, $content);\n\t\t}else{\n\t\t\tob_start();\n\t\t\tinclude($viewpath);\n\t\t\t$content = ob_get_clean();\n\t\t\tflexMVC::get_layout(VIEWS.\"_layouts/\".flexMVC::$layout.VIEWPAGE_EXT, $content);\n\t\t\t$_SESSION['flexMVC_lastActive'] = strtotime(\"now\");\n\t\t}\n\t}", "public function render()\n {\n if (file_exists('../resources/views/' . $this->view_name . '.phtml')) {\n include_once '../resources/views/' . $this->view_name . '.phtml';\n include_once '../resources/views/layouts/' . $this->layout . '.phtml';\n } else {\n die(\"THERE IS NO VIEW\");\n }\n }", "public function indexAction() {\r\n\r\n $this->loadLayout();\r\n $this->renderLayout();\r\n }", "protected function render()\n {\n $this->renderer->exec();\n }", "public function render(): void {\r\n $pages = MJKGTAPI::pages();\r\n $wp_cron = get_option('cron');\r\n\r\n $this->render_css();\r\n\r\n printf('<div class=\"wrap\">');\r\n $this->output_intro();\r\n printf('<div id=\"%s\">', self::id_main);\r\n $this->output_sections($pages, $wp_cron);\r\n printf('</div></div>');\r\n }", "public function indexAction()\n {\n $this->_initAction()->renderLayout();\n }", "protected function setupLayout() {\n\t\t$this->data['route'] = Route::getCurrentRoute()->getPath();\t\n\t\tif ( ! is_null($this->layout)) {\n\t\t\t$this->data['enrolledCourses'] = NULL;\n\t\t\t\n\t\t\tif (Auth::check() && in_array(Auth::user()->user_type, array(3, 5))) {\n\t\t\t\t$this->data['enrolledCourses'] = EnrolledCourses::getEnrolledCourses();\n\t\t\t\t$this->data['endedCourses'] = EnrolledCourses::getEndedCourses();\n\t\t\t\t$this->data['profiling'] = User::getRegProfile();\t\n\t\t\t\t$this->data['profiling_ctr'] = $this->data['profiling'];\t\t\t\t\n\t\t\t} else if (Auth::check() && Auth::user()->user_type == 2) {\n\t\t\t\t$this->data['assigned_courses'] = Courses::getAssignedCourses();\n\t\t\t}\n\n\t\t\t$this->layout = View::make($this->layout, $this->data);\n\t\t}\n\t}", "static function renderLayout($root = false)\n {\n extract(self::$data_layout);\n if ($root) {\n include_once \"views/layout/\".self::$layout.\".php\";\n } else {\n include_once \"views/layout/\".SIDE.\"/\".self::$layout.\".php\";\n }\n }", "public function layoutAction()\n {\n if (!$this->_isActive()) {\n $this->norouteAction();\n return;\n }\n\n if ($this->_expireAjax()) {\n return;\n }\n\n $this->loadLayout();\n $this->getResponse()->setBody(\n $this->getLayout()->getBlock('checkout.layout')->toHtml()\n );\n }", "public function render () { \n $this->load->view( $this->template_path($this->layout) , array(\n 'page_title' => $this->load_title(),\n 'js_files' => $this->load_js(),\n 'css_files' => $this->load_css(),\n 'body_class' => $this->load_body_class()\n ));\n return $this;\n }", "public function render()\r\n {\r\n $this->data['menu'] = build_menu(\r\n $this->choices, $this->uri->segment(1));\r\n \r\n $this->data['header'] = $this->parser->parse(\r\n '_header', $this->data, true);\r\n $this->data['content'] = $this->parser->parse(\r\n $this->data['page_body'], $this->data, true);\r\n $this->data['footer'] = $this->parser->parse(\r\n '_footer', $this->data, true);\r\n \r\n $this->data['data'] = &$this->data;\r\n \r\n $this->parser->parse('_template', $this->data);\r\n }", "abstract protected function RenderContent();", "public static function renderLayout()\n {\n return self::$layout;\n }", "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n\n if (Request::Ajax())\n {\n $this->layout = View::make('layouts.ajax');\n }\n else\n $this->layout = View::make($this->layout);\n\n $this->layout->content = \" \";\n }\n }", "protected function renderContent() {\n if ($this->type == 'sidebar')\n $this->render('adminMenu', array('type' => $this->type, 'sidebarItems' => $this->sidebarItems[$this->sidebar]));\n if ($this->type == 'top')\n $this->render('adminMenu', array('type' => $this->type, 'topMenus' => $this->topMenus));\n }", "public function indexAction()\n\t{\n\t\t$this->loadLayout();\n\t\t$this->renderLayout();\n\t\t\n\t}", "protected function render_content()\n {\n }", "protected function render_content()\n {\n }", "protected function render_content()\n {\n }", "protected function render_content()\n {\n }", "public function setLayout() {\n if ($this->controller == 'login' || $this->controller == 'infos') {\n $this->viewBuilder()->setLayout('empty');\n } else if ($this->controller == 'ajax') {\n $this->viewBuilder()->setLayout('ajax');\n } else {\n $this->viewBuilder()->setLayout('chotreo');\n }\n }", "public function index()\n\t{\n $this->view->render();\n\t}", "public function render_page() {\n\t\t$this->render_template();\n\t}", "public function display()\n\t{\n\t\t$serviceLocator = $this->_application->getServiceLocator();\n\t\t$eventDispatcher = $this->_application->getEventDispatcher();\n\n\t\t// Finish configuring Open Power Template\n\t\t$opt = $serviceLocator->get('template.Opt');\n\n\t\t$eventDispatcher->notify(new Event($this, 'template.layout.template.configure',\n\t\t\tarray('opt' => $opt)\n\t\t));\n\n\t\t$opt->setup();\n\n\t\t// Configure the layout view\n\t\t$eventDispatcher->notify(new Event($this, 'template.layout.configure',\n\t\t\tarray('layout' => $this->_layout)\n\t\t));\n\n\t\t// Add placeholders\n\t\tforeach($this->_placeholders as $name => &$placeholder)\n\t\t{\n\t\t\t$data = array();\n\t\t\tforeach($placeholder as $view)\n\t\t\t{\n\t\t\t\t$data[] = array('view' => $view);\n\t\t\t}\n\t\t\t$this->_layout->assign($name, $data);\n\t\t}\n\n\t\t// Render everything. Actually, this is redirected to events, so\n\t\t// that we can easily change the exact rendering procedure.\n\t\t$eventDispatcher->notify(new Event($this, 'template.layout.render',\n\t\t\tarray('layout' => $this->_layout)\n\t\t));\n\t\t$this->_output->render($this->_layout);\n\t}", "protected function render()\n {\n }", "protected function render()\n {\n }", "protected function render()\n {\n }", "protected function render()\n {\n }", "public function indexAction()\r\n {\r\n $this->_initAction()\r\n ->renderLayout();\r\n }", "public function apply_layout()\n\t{\n\t\tif (!$this instanceof Controller)\n\t\t\tthrow new Kohana_Exception('The `Component_DefaultLayout` trait must be used by Controller class');\n\n // if we are logged in, we'll send user to tmpl\n $usr = Auth::instance()->logged_in()\n ? Auth::instance()->get_user()\n : null;\n\n\t\t$content = $this->response->getBody();\n\t\t$layout = View::factory('layouts/default', [\n\t\t\t'content' => $content,\n\t\t\t'template_settings' => $this->template_settings,\n 'user' => $usr,\n\t\t]);\n\n\t\t$this->response->body($layout);\n\t}", "private function render ()\n {\n echo view('cms::components.Alerts')->with([\n 'resourceType' => $this->resourceType,\n 'resource' => $this->resource ? $this->resource : []\n ])->render();\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render() {\n echo $this->getHtml();\n }", "public function run()\n {\n $template = $this->_template;\n $positions = $template->getPositions();\n $assigned = [];\n foreach (Yii::$app->big->getFrontendThemePositions() as $name => $title) {\n $item = [\n 'title' => $title,\n 'blocks' => [],\n ];\n if (isset($positions[$name])) {\n $item['blocks'] = $this->getBlocks($positions[$name]);\n }\n $assigned[$name] = $item;\n }\n\n $this->registerScripts();\n\n return $this->render($this->viewFile, [\n 'availableBlocks' => $this->blocks,\n 'assignedBlocks' => $assigned,\n 'columns' => $this->columns,\n 'id' => $this->id,\n ]);\n }", "public function render() {\r\n\t\t\r\n\t}", "protected function renderOutput()\n {\n\t\t\n\t\t// $menu = $this->getMenu();\n\t\t\n\t\t//dd($menu);\n\t\t\n\t\t// $navigation = view(config('settings.theme').'.navigation')->with('menu',$menu)->render();\n\t\t// $this->vars = array_add($this->vars,'navigation',$navigation);\n\t\t\n\t\t// if($this->contentRightBar) {\n\t\t\t// $rightBar = view(config('settings.theme').'.rightBar')->with('content_rightBar',$this->contentRightBar)->render();\n\t\t\t// $this->vars = array_add($this->vars,'rightBar',$rightBar);\n\t\t// }\n\t\t\n\t\t$this->vars = array_add($this->vars,'keywords',$this->keywords);\n\t\t$this->vars = array_add($this->vars,'meta_desc',$this->meta_desc);\n\t\t$this->vars = array_add($this->vars,'title',$this->title);\n\t\t\n $header = view(config('settings.theme') . $this->header_temp)->render();\n $this->vars = array_add($this->vars, 'header', $header);\n\t\t\n\t\t$footer = view(config('settings.theme'). $this->footer_temp)->render();\n\t\t$this->vars = array_add($this->vars, 'footer', $footer);\n \n return view($this->template)->with($this->vars);\n\t\t\n\t}", "function index(){\n $this->layout = 'default';\n }", "function render ()\n {\n parent::render();\n }", "public function indexAction()\n {\n $this->_initAction()\n ->renderLayout();\n }", "public function render($data = [], $layout = 'master')\n {\n require './views/layout/' . $layout . '.php';\n }", "public function index() {\n\t\t\t$this->render();\n\t\t}", "public function render(){\r\n //Current controller is loaded from within the action method.\r\n define(\"RENDER_BEGIN\", microtime());\r\n \r\n\t\t\t$this->controller->render();\r\n \r\n\t\t\t\r\n\t\t}", "public function render() {\n\t\techo '<div id=\"neve-dashboard\"></div>';\n\t}", "public function display() {\n echo $this->render();\n }", "public function render()\n {\n \n }", "private function renderView()\n\t{\n\t\tff_renderView(substr(__CLASS__, 7));\n\t}", "private function renderView()\n\t{\n\t\tff_renderView(substr(__CLASS__, 7));\n\t}", "public function render()\n\t{\n\t\t$title = $this->renderTitle();\n\t\t$subtitle = $this->renderSubtitle();\n\t\t$new = $this->renderNew();\n\n\t\treturn <<<HTML\n<section class=\"block-new\">\n\t<div class=\"container\">\n\t\t<div class=\"container-inner\">\n\t\t\t<div class=\"block-new-layout\">\n\t\t\t\t$title\n\t\t\t\t$subtitle\n\t\t\t\t$new\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</section>\nHTML;\n\t}", "public function render()\n {\n if(!isset($_SESSION['connect'])){\n $_SESSION['connect'] = false;\n }\n if($_SESSION['connect']){\n $this->model->statut();\n }else{\n $this->model->home();\n } \n require ROOT.\"/App/View/homeView.php\";\n }", "public function layoutAction(){\n \t$far = 100;\n \t$sxnById = array();\n \t$request = $this->getRequest();\n \t$template_id = $request->getParam('template_id');\n \t$page_id = $request->getParam('page_id');\n \t$title = $request->getParam('title');\n \t$task = $request->getParam('task', null);\n \t$table = $this->_getParam('table');\n\n \tif($template_id){\n\t \tswitch($task){\n\t \t\tcase 'savelayout':{\n\t \t\t\t$this->saveLayout();\n\t \t\t\tbreak;\n\t \t\t}\n\n\t \t\tcase 'resetlayout':{\n\t \t\t\t$this->resetLayout();\n\t \t\t\tbreak;\n\t \t\t}\n\t \t}\n \t}\n\t\t \n\t\t$pageLayout = Rhema_Model_Service::factory('page_layout');\t\t\n \t$res = $pageLayout->getPageLayout($page_id, $template_id, $table); \n \t\n \t$items \t = $this->_editor->getCached()->getItems(); \t\n \t$templateData = $this->_editor->getCached()->getTemplateDetails($template_id);\n \t$items = array_merge($items, $templateData);\n \t \n \t$this->view->title = $title;\n \t//$this->view->sections \t= $templateData['sections'];\n \t$this->view->layout \t= $res['layout']; \n \t \n \t$formUrl['action']\t\t= 'layout';\n \t$formUrl['controller'] = 'design';\n \t$formUrl['module'] = 'cms';\n\n \t$formUrl['page_id'] = $page_id ;\n \t$formUrl['template_id'] = $template_id;\n \t$formUrl['title'] = $title;\n \t$formUrl['table'] = $table ;\n\n \t$this->view->formAction = $this->view->url($formUrl, ADMIN_ROUTE); \n\t\t$this->view->items = $items;\n\n \t$output['form'] = $this->view->render('design/layout.phtml');\n \t\n \t$this->_utility->setAjaxData(Zend_Json::encode($output));\n }", "public function render()\n {\n // Pass messages by reference, as all messages are created after this function call\n $data = [ \"messages\" => &$this->messages ];\n $this->di->view->add($this->template, $data, $this->region);\n }", "protected function _render()\n {\n }", "protected function setupLayout() {\n\t\tif ( ! is_null($this->layout)) {\n\n\n\t\t\t$cb_js_var = array(\n\t\t\t\t'site_url' => url('/'),\n\t\t\t\t'admin_url' => url('/admin'),\n\t\t\t\t'admin_assets_url' => asset('packages/vizioart/cookbook/'),\n\t\t\t\t'admin_api_url' => url('/admin/api')\n\t\t\t);\n\n\n\t\t\t$this->layout = View::make($this->layout, array(\n\t\t\t\t'cb_js_var' => $cb_js_var\n\t\t\t));\n\t\t}\n\t}", "protected function partialRender()\n {\n $this->view->render();\n }", "public function Index() {\n $this->Render();\n }", "protected function applyPageLayout()\n {\n $this->content = \"\n @extends('generated/layout')\n \";\n }", "public function renderContent()\n {\n $this->setupPage();\n $this->pageRenderer->setTitle($this->title);\n $this->loadJavaScripts();\n $this->setJavaScriptCodeArray();\n $this->loadStylesheets();\n\n $this->view->assign('docHeader', $this->docHeaderComponent->docHeaderContent());\n if ($this->moduleId) {\n $this->view->assign('moduleId', $this->moduleId);\n }\n if ($this->moduleName) {\n $this->view->assign('moduleName', $this->moduleName);\n }\n $this->view->assign('uiBlock', $this->uiBlock);\n $this->view->assign('flashMessageQueueIdentifier', $this->getFlashMessageQueue()->getIdentifier());\n $renderedPage = $this->pageRenderer->render(PageRenderer::PART_HEADER);\n $renderedPage .= $this->bodyTag;\n $renderedPage .= $this->view->render();\n $this->pageRenderer->addJsFooterInlineCode('updateSignals', BackendUtility::getUpdateSignalCode());\n $renderedPage .= $this->pageRenderer->render(PageRenderer::PART_FOOTER);\n\n return $renderedPage;\n }", "protected abstract function renderContent();", "public function render(): void\n {\n new HeaderRenderer($this->header->getHeaderList());\n $this->addNecessaryContent();\n new FooterRenderer();\n }", "private function __layoutContent()\n {\n return VIEWS . DS . 'Layout' . DS . 'base.php';\n }", "public function renderContent() {}" ]
[ "0.78251404", "0.7820134", "0.7524449", "0.73031497", "0.72716683", "0.72287303", "0.72287303", "0.7223757", "0.69539994", "0.68959033", "0.6871749", "0.6863259", "0.68605965", "0.6784333", "0.6766792", "0.67660457", "0.67544264", "0.6742559", "0.67278874", "0.67198277", "0.6709561", "0.6707789", "0.6686584", "0.66790503", "0.66572136", "0.6655269", "0.66481215", "0.6627715", "0.660651", "0.6606319", "0.6584769", "0.65578264", "0.6536945", "0.6529017", "0.6525847", "0.65224993", "0.64953595", "0.6489006", "0.6486513", "0.6477727", "0.64752465", "0.6459163", "0.6452503", "0.6452503", "0.6452503", "0.6451937", "0.64452523", "0.64337736", "0.6426733", "0.64108884", "0.6410569", "0.6410569", "0.64105", "0.6407544", "0.6398845", "0.6397809", "0.6395579", "0.6391271", "0.6391271", "0.6391271", "0.6391271", "0.6391271", "0.6391271", "0.6391271", "0.6391271", "0.6391271", "0.6391271", "0.6391271", "0.6391271", "0.6391271", "0.6391271", "0.63809735", "0.6379531", "0.6377392", "0.6377053", "0.6375278", "0.6374491", "0.6361261", "0.6358139", "0.63537997", "0.63492453", "0.63281286", "0.6315493", "0.62997645", "0.62862504", "0.62862504", "0.62839663", "0.627622", "0.6270176", "0.6265893", "0.6263612", "0.62614095", "0.6258068", "0.62539405", "0.6251112", "0.6250505", "0.6245749", "0.6243506", "0.62412006", "0.6240411" ]
0.8236504
0
Renders the current layout
public function renderPlaceholder($zone);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function renderLayout();", "public function render_screen_layout()\n {\n }", "public function render()\n {\n $content = $this->__layoutContent();\n\n extract($this->getViewData());\n ob_start();\n include $content;\n ob_get_flush();\n }", "protected function render()\n {\n $settings = $this->get_settings_for_display();\n require dirname(__FILE__) . '/' . $settings['layout'] . '.php';\n }", "public function render()\n {\n return view(\"layouts.{$this->layout}\");\n }", "public function render() {\n\t\tW2P::getInstance()->debug()->_debug_add_content ( \"Executing all modules methods.\" );\n\t\tW2P::getInstance()->modules()->exec_all_functions();\n\t\t\n\t\tW2P::getInstance()->debug()->_debug_add_content ( \"Generating rendering of the view: {$this->view}\" );\n\t\t\n\t\tob_start ();\n\t\tinclude_once (W2P_INCLUDE . W2P::getInstance()->configuration()->layout_path . '/views/' . $this->view . '.phtml');\n\t\t$this->content = ob_get_clean ();\n\t\t\n\t\tW2P::getInstance()->debug()->_debug_add_content ( \"Content of the rendered view\" );\n\t\tW2P::getInstance()->debug()->_debug_add_content ( \"Adding to the project layout\" );\n\t\t\n\t\tinclude (W2P_INCLUDE . W2P::getInstance()->configuration()->layout_path . '/' . $this->layout . '.phtml');\n\t\t\n\t\tW2P::getInstance()->debug()->_debug_add_content ( \"Layout successfully mastered\" );\n\t\t\n\t\tif (W2P::getInstance()->configuration()->debug)\n\t\t\tW2P::getInstance()->debug()->save_debug ( W2P::getInstance()->configuration()->debug_format );\n\t}", "public function execute()\n {\n $this->_view->loadLayout();\n $this->_view->renderLayout();\n }", "public function execute()\n {\n $this->_view->loadLayout();\n $this->_view->renderLayout();\n }", "public function index()\n\t{\n\t\t$this->layout->render();\n\t}", "public function layout() {\r\n $this->template['header'] = $this->load->view('common/header', $this->data, true);\r\n $this->template['content'] = $this->load->view($this->content, $this->data, true);\r\n $this->template['footer'] = $this->load->view('common/footer', $this->data, true);\r\n $this->load->view('common/layout', $this->template);\r\n }", "public function render() \n {\n if (empty($this->title) == TRUE)\n {\n $this->setTitle('Title not set');\n }\n\n if (empty($this->layout) == TRUE)\n {\n $this->layout = $this->autoLayout();\n }\n\n if (empty($this->content) == TRUE)\n {\n $this->content = $this->autoContent();\n }\n\n if ((file_exists($this->layout) == TRUE) AND (file_exists($this->content) == TRUE))\n {\n if (empty($this->vars) == FALSE)\n {\n extract($this->vars);\n }\n\n $title = $this->title;\n ob_start();\n require $this->content;\n $content = ob_get_clean();\n require $this->layout;\n }\n else\n {\n View::error('no_language');\n }\n\t}", "public function render()\r\n\t{\r\n\t\tif( $this->_layout && file_exists($this->_layout) )\r\n\t\t{\r\n\t\t\t$this->_layout = apply_filters( 'tp_event_meta_box_layout', $this->_layout, $this->_id );\r\n\t\t\tdo_action( 'tp_event_before_metabox', $this->_id );\r\n\t\t\trequire_once $this->_layout;\r\n\t\t\tdo_action( 'tp_event_after_metabox', $this->_id );\r\n\t\t}\r\n\t}", "public function render()\n {\n parent::render();\n\n $myConfig = $this->getConfig();\n $oParentView = $this->getParent();\n\n // add content for main menu\n $oContentList = oxNew('oxcontentlist');\n $oContentList->loadMainMenulist();\n $oParentView->setMenueList($oContentList);\n\n return;\n }", "public function render() {\n\t\t$this->render_page_content();\n\t}", "private function renderContent()\n {\n $this->tabs[$this->currentlyActiveTab()]->view()->render();\n }", "protected function render(){\n //render view\n \n }", "protected function render()\n {\n $params = ['title' => $this->title, 'content' => $this->content];\n $html = $this->template('Views/v_main.php', $params);\n echo $html;\n }", "public function render() {\n echo \"<!DOCTYPE html>\\n\";\n echo \"<html>\\n\";\n $this->show_head();\n \n echo\"\\n<body>\\n\";\n echo $this->show_contents();\n\n echo \"\\n</body>\";\n echo \"\\n</html>\\n\\n\";\n }", "private function renderPage()\n {\n $content = <<<EOD\n<div id=\"layout-block\">\n{$this->searchForm->render()}\n{$this->renderLegend()}\n{$this->renderPools()}\n</div>\nEOD;\n return $this->renderBaseTemplate($content);\n }", "public function render() {\n\t\techo $this->header->toString();\n\t\techo $this->panel->toString();\n\t\techo $this->page->toString();\n\t\tif( $this->getMessages() != null ) {\n\t\t\techo $this->messages->toString();\n\t\t}\n\t\techo $this->footer->toString();\n\t}", "public function renderLayout() {\n \t// See if we need to autoload the layout\n \tif (!is_null($this->getLayout())) {\n // Check for a router\n if (is_null($this->getRouter())) {\n \t\t // Set the layout file\n \t\t $sFile = APPLICATIONPATH.\"/layouts/{$this->loadConfigVar('systemSettings', 'defaultViewsFolder')}/{$this->getLayout()}\";\n } else {\n // Set the layout file with the router\n $sFile = APPLICATIONPATH.\"/layouts/{$this->getRouter()}/{$this->getLayout()}\";\n }\n // Check to see if the file exists\n if (file_exists($sFile)) {\n // Load it\n require_once($sFile);\n // File does not exist\n } else {\n // Set the system error\n $this->setError(\n\t\t\t\t\t\tstr_replace(\n\t\t\t\t\t\t\t':layoutName', \n\t\t\t\t\t\t\t$this->getLayout(), \n\t\t\t\t\t\t\t$this->loadConfigVar(\n\t\t\t\t\t\t\t\t'errorMessages', \n\t\t\t\t\t\t\t\t'layoutDoesNotExist'\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// Run the error controller\n\t\t\t\t\t// $this->runError();\n }\n \t}\n \t// Return instance\n \treturn $this;\n }", "function Render() {\n $this->RenderChildren();\n }", "public function generate()\r\n {\r\n $loader = new ContentLoader($this->_viewVariables);\r\n $loader->initContent($this->_contentViewPath);\r\n $this->_layout = $loader->initLayout($this->_layoutPath);\r\n echo $this->_layout;\r\n }", "public function indexAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\r\n\t}", "public function indexAction()\n {\n $this->loadLayout();\n $this->renderLayout();\n }", "private function _doRender(){\n\t\tinclude $this->_viewLocation;\n\t}", "public function indexAction()\n {\n $this->loadLayout();\n $this->renderLayout();\n }", "private static function render(){\n\t\tif(flexMVC::$view) $viewpath = VIEWS.flexMVC::$view.VIEWPAGE_EXT;\n\t\telse $viewpath = CURRENT_VIEW_FOLDER_LOCATION.CURRENT_VIEW.VIEWPAGE_EXT;\n\t\tif(!is_file($viewpath)){\n\t\t\t$viewpath = VIEWS.flexMVC::$error_page.VIEWPAGE_EXT;\n\t\t\tif(!file_exists($viewpath)){\n\t\t\t\techo(\"Please define your errors page => \" . flexMVC::$error_page);\n\t\t\t\texit;\n\t\t\t}\n\t\t\theader($_SERVER[\"SERVER_PROTOCOL\"].\" 404 Not Found\"); \n\t\t\tob_start();\n\t\t\tinclude($viewpath);\n\t\t\t$content = ob_get_clean();\n\t\t\tflexMVC::get_layout(VIEWS.\"_layouts/\".flexMVC::$layout.VIEWPAGE_EXT, $content);\n\t\t}else{\n\t\t\tob_start();\n\t\t\tinclude($viewpath);\n\t\t\t$content = ob_get_clean();\n\t\t\tflexMVC::get_layout(VIEWS.\"_layouts/\".flexMVC::$layout.VIEWPAGE_EXT, $content);\n\t\t\t$_SESSION['flexMVC_lastActive'] = strtotime(\"now\");\n\t\t}\n\t}", "public function render()\n {\n if (file_exists('../resources/views/' . $this->view_name . '.phtml')) {\n include_once '../resources/views/' . $this->view_name . '.phtml';\n include_once '../resources/views/layouts/' . $this->layout . '.phtml';\n } else {\n die(\"THERE IS NO VIEW\");\n }\n }", "public function indexAction() {\r\n\r\n $this->loadLayout();\r\n $this->renderLayout();\r\n }", "protected function render()\n {\n $this->renderer->exec();\n }", "public function render(): void {\r\n $pages = MJKGTAPI::pages();\r\n $wp_cron = get_option('cron');\r\n\r\n $this->render_css();\r\n\r\n printf('<div class=\"wrap\">');\r\n $this->output_intro();\r\n printf('<div id=\"%s\">', self::id_main);\r\n $this->output_sections($pages, $wp_cron);\r\n printf('</div></div>');\r\n }", "public function indexAction()\n {\n $this->_initAction()->renderLayout();\n }", "protected function setupLayout() {\n\t\t$this->data['route'] = Route::getCurrentRoute()->getPath();\t\n\t\tif ( ! is_null($this->layout)) {\n\t\t\t$this->data['enrolledCourses'] = NULL;\n\t\t\t\n\t\t\tif (Auth::check() && in_array(Auth::user()->user_type, array(3, 5))) {\n\t\t\t\t$this->data['enrolledCourses'] = EnrolledCourses::getEnrolledCourses();\n\t\t\t\t$this->data['endedCourses'] = EnrolledCourses::getEndedCourses();\n\t\t\t\t$this->data['profiling'] = User::getRegProfile();\t\n\t\t\t\t$this->data['profiling_ctr'] = $this->data['profiling'];\t\t\t\t\n\t\t\t} else if (Auth::check() && Auth::user()->user_type == 2) {\n\t\t\t\t$this->data['assigned_courses'] = Courses::getAssignedCourses();\n\t\t\t}\n\n\t\t\t$this->layout = View::make($this->layout, $this->data);\n\t\t}\n\t}", "static function renderLayout($root = false)\n {\n extract(self::$data_layout);\n if ($root) {\n include_once \"views/layout/\".self::$layout.\".php\";\n } else {\n include_once \"views/layout/\".SIDE.\"/\".self::$layout.\".php\";\n }\n }", "public function layoutAction()\n {\n if (!$this->_isActive()) {\n $this->norouteAction();\n return;\n }\n\n if ($this->_expireAjax()) {\n return;\n }\n\n $this->loadLayout();\n $this->getResponse()->setBody(\n $this->getLayout()->getBlock('checkout.layout')->toHtml()\n );\n }", "public function render () { \n $this->load->view( $this->template_path($this->layout) , array(\n 'page_title' => $this->load_title(),\n 'js_files' => $this->load_js(),\n 'css_files' => $this->load_css(),\n 'body_class' => $this->load_body_class()\n ));\n return $this;\n }", "public function render()\r\n {\r\n $this->data['menu'] = build_menu(\r\n $this->choices, $this->uri->segment(1));\r\n \r\n $this->data['header'] = $this->parser->parse(\r\n '_header', $this->data, true);\r\n $this->data['content'] = $this->parser->parse(\r\n $this->data['page_body'], $this->data, true);\r\n $this->data['footer'] = $this->parser->parse(\r\n '_footer', $this->data, true);\r\n \r\n $this->data['data'] = &$this->data;\r\n \r\n $this->parser->parse('_template', $this->data);\r\n }", "abstract protected function RenderContent();", "public static function renderLayout()\n {\n return self::$layout;\n }", "protected function setupLayout()\n {\n if ( ! is_null($this->layout))\n {\n\n if (Request::Ajax())\n {\n $this->layout = View::make('layouts.ajax');\n }\n else\n $this->layout = View::make($this->layout);\n\n $this->layout->content = \" \";\n }\n }", "protected function renderContent() {\n if ($this->type == 'sidebar')\n $this->render('adminMenu', array('type' => $this->type, 'sidebarItems' => $this->sidebarItems[$this->sidebar]));\n if ($this->type == 'top')\n $this->render('adminMenu', array('type' => $this->type, 'topMenus' => $this->topMenus));\n }", "public function indexAction()\n\t{\n\t\t$this->loadLayout();\n\t\t$this->renderLayout();\n\t\t\n\t}", "protected function render_content()\n {\n }", "protected function render_content()\n {\n }", "protected function render_content()\n {\n }", "protected function render_content()\n {\n }", "public function setLayout() {\n if ($this->controller == 'login' || $this->controller == 'infos') {\n $this->viewBuilder()->setLayout('empty');\n } else if ($this->controller == 'ajax') {\n $this->viewBuilder()->setLayout('ajax');\n } else {\n $this->viewBuilder()->setLayout('chotreo');\n }\n }", "public function index()\n\t{\n $this->view->render();\n\t}", "public function render_page() {\n\t\t$this->render_template();\n\t}", "public function display()\n\t{\n\t\t$serviceLocator = $this->_application->getServiceLocator();\n\t\t$eventDispatcher = $this->_application->getEventDispatcher();\n\n\t\t// Finish configuring Open Power Template\n\t\t$opt = $serviceLocator->get('template.Opt');\n\n\t\t$eventDispatcher->notify(new Event($this, 'template.layout.template.configure',\n\t\t\tarray('opt' => $opt)\n\t\t));\n\n\t\t$opt->setup();\n\n\t\t// Configure the layout view\n\t\t$eventDispatcher->notify(new Event($this, 'template.layout.configure',\n\t\t\tarray('layout' => $this->_layout)\n\t\t));\n\n\t\t// Add placeholders\n\t\tforeach($this->_placeholders as $name => &$placeholder)\n\t\t{\n\t\t\t$data = array();\n\t\t\tforeach($placeholder as $view)\n\t\t\t{\n\t\t\t\t$data[] = array('view' => $view);\n\t\t\t}\n\t\t\t$this->_layout->assign($name, $data);\n\t\t}\n\n\t\t// Render everything. Actually, this is redirected to events, so\n\t\t// that we can easily change the exact rendering procedure.\n\t\t$eventDispatcher->notify(new Event($this, 'template.layout.render',\n\t\t\tarray('layout' => $this->_layout)\n\t\t));\n\t\t$this->_output->render($this->_layout);\n\t}", "protected function render()\n {\n }", "protected function render()\n {\n }", "protected function render()\n {\n }", "protected function render()\n {\n }", "public function indexAction()\r\n {\r\n $this->_initAction()\r\n ->renderLayout();\r\n }", "public function apply_layout()\n\t{\n\t\tif (!$this instanceof Controller)\n\t\t\tthrow new Kohana_Exception('The `Component_DefaultLayout` trait must be used by Controller class');\n\n // if we are logged in, we'll send user to tmpl\n $usr = Auth::instance()->logged_in()\n ? Auth::instance()->get_user()\n : null;\n\n\t\t$content = $this->response->getBody();\n\t\t$layout = View::factory('layouts/default', [\n\t\t\t'content' => $content,\n\t\t\t'template_settings' => $this->template_settings,\n 'user' => $usr,\n\t\t]);\n\n\t\t$this->response->body($layout);\n\t}", "private function render ()\n {\n echo view('cms::components.Alerts')->with([\n 'resourceType' => $this->resourceType,\n 'resource' => $this->resource ? $this->resource : []\n ])->render();\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render() {\n echo $this->getHtml();\n }", "public function run()\n {\n $template = $this->_template;\n $positions = $template->getPositions();\n $assigned = [];\n foreach (Yii::$app->big->getFrontendThemePositions() as $name => $title) {\n $item = [\n 'title' => $title,\n 'blocks' => [],\n ];\n if (isset($positions[$name])) {\n $item['blocks'] = $this->getBlocks($positions[$name]);\n }\n $assigned[$name] = $item;\n }\n\n $this->registerScripts();\n\n return $this->render($this->viewFile, [\n 'availableBlocks' => $this->blocks,\n 'assignedBlocks' => $assigned,\n 'columns' => $this->columns,\n 'id' => $this->id,\n ]);\n }", "public function render() {\r\n\t\t\r\n\t}", "protected function renderOutput()\n {\n\t\t\n\t\t// $menu = $this->getMenu();\n\t\t\n\t\t//dd($menu);\n\t\t\n\t\t// $navigation = view(config('settings.theme').'.navigation')->with('menu',$menu)->render();\n\t\t// $this->vars = array_add($this->vars,'navigation',$navigation);\n\t\t\n\t\t// if($this->contentRightBar) {\n\t\t\t// $rightBar = view(config('settings.theme').'.rightBar')->with('content_rightBar',$this->contentRightBar)->render();\n\t\t\t// $this->vars = array_add($this->vars,'rightBar',$rightBar);\n\t\t// }\n\t\t\n\t\t$this->vars = array_add($this->vars,'keywords',$this->keywords);\n\t\t$this->vars = array_add($this->vars,'meta_desc',$this->meta_desc);\n\t\t$this->vars = array_add($this->vars,'title',$this->title);\n\t\t\n $header = view(config('settings.theme') . $this->header_temp)->render();\n $this->vars = array_add($this->vars, 'header', $header);\n\t\t\n\t\t$footer = view(config('settings.theme'). $this->footer_temp)->render();\n\t\t$this->vars = array_add($this->vars, 'footer', $footer);\n \n return view($this->template)->with($this->vars);\n\t\t\n\t}", "function index(){\n $this->layout = 'default';\n }", "function render ()\n {\n parent::render();\n }", "public function indexAction()\n {\n $this->_initAction()\n ->renderLayout();\n }", "public function render($data = [], $layout = 'master')\n {\n require './views/layout/' . $layout . '.php';\n }", "public function index() {\n\t\t\t$this->render();\n\t\t}", "public function render(){\r\n //Current controller is loaded from within the action method.\r\n define(\"RENDER_BEGIN\", microtime());\r\n \r\n\t\t\t$this->controller->render();\r\n \r\n\t\t\t\r\n\t\t}", "public function render() {\n\t\techo '<div id=\"neve-dashboard\"></div>';\n\t}", "public function display() {\n echo $this->render();\n }", "public function render()\n {\n \n }", "private function renderView()\n\t{\n\t\tff_renderView(substr(__CLASS__, 7));\n\t}", "private function renderView()\n\t{\n\t\tff_renderView(substr(__CLASS__, 7));\n\t}", "public function render()\n\t{\n\t\t$title = $this->renderTitle();\n\t\t$subtitle = $this->renderSubtitle();\n\t\t$new = $this->renderNew();\n\n\t\treturn <<<HTML\n<section class=\"block-new\">\n\t<div class=\"container\">\n\t\t<div class=\"container-inner\">\n\t\t\t<div class=\"block-new-layout\">\n\t\t\t\t$title\n\t\t\t\t$subtitle\n\t\t\t\t$new\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</section>\nHTML;\n\t}", "public function render()\n {\n if(!isset($_SESSION['connect'])){\n $_SESSION['connect'] = false;\n }\n if($_SESSION['connect']){\n $this->model->statut();\n }else{\n $this->model->home();\n } \n require ROOT.\"/App/View/homeView.php\";\n }", "public function layoutAction(){\n \t$far = 100;\n \t$sxnById = array();\n \t$request = $this->getRequest();\n \t$template_id = $request->getParam('template_id');\n \t$page_id = $request->getParam('page_id');\n \t$title = $request->getParam('title');\n \t$task = $request->getParam('task', null);\n \t$table = $this->_getParam('table');\n\n \tif($template_id){\n\t \tswitch($task){\n\t \t\tcase 'savelayout':{\n\t \t\t\t$this->saveLayout();\n\t \t\t\tbreak;\n\t \t\t}\n\n\t \t\tcase 'resetlayout':{\n\t \t\t\t$this->resetLayout();\n\t \t\t\tbreak;\n\t \t\t}\n\t \t}\n \t}\n\t\t \n\t\t$pageLayout = Rhema_Model_Service::factory('page_layout');\t\t\n \t$res = $pageLayout->getPageLayout($page_id, $template_id, $table); \n \t\n \t$items \t = $this->_editor->getCached()->getItems(); \t\n \t$templateData = $this->_editor->getCached()->getTemplateDetails($template_id);\n \t$items = array_merge($items, $templateData);\n \t \n \t$this->view->title = $title;\n \t//$this->view->sections \t= $templateData['sections'];\n \t$this->view->layout \t= $res['layout']; \n \t \n \t$formUrl['action']\t\t= 'layout';\n \t$formUrl['controller'] = 'design';\n \t$formUrl['module'] = 'cms';\n\n \t$formUrl['page_id'] = $page_id ;\n \t$formUrl['template_id'] = $template_id;\n \t$formUrl['title'] = $title;\n \t$formUrl['table'] = $table ;\n\n \t$this->view->formAction = $this->view->url($formUrl, ADMIN_ROUTE); \n\t\t$this->view->items = $items;\n\n \t$output['form'] = $this->view->render('design/layout.phtml');\n \t\n \t$this->_utility->setAjaxData(Zend_Json::encode($output));\n }", "public function render()\n {\n // Pass messages by reference, as all messages are created after this function call\n $data = [ \"messages\" => &$this->messages ];\n $this->di->view->add($this->template, $data, $this->region);\n }", "protected function _render()\n {\n }", "protected function setupLayout() {\n\t\tif ( ! is_null($this->layout)) {\n\n\n\t\t\t$cb_js_var = array(\n\t\t\t\t'site_url' => url('/'),\n\t\t\t\t'admin_url' => url('/admin'),\n\t\t\t\t'admin_assets_url' => asset('packages/vizioart/cookbook/'),\n\t\t\t\t'admin_api_url' => url('/admin/api')\n\t\t\t);\n\n\n\t\t\t$this->layout = View::make($this->layout, array(\n\t\t\t\t'cb_js_var' => $cb_js_var\n\t\t\t));\n\t\t}\n\t}", "protected function partialRender()\n {\n $this->view->render();\n }", "public function Index() {\n $this->Render();\n }", "protected function applyPageLayout()\n {\n $this->content = \"\n @extends('generated/layout')\n \";\n }", "public function renderContent()\n {\n $this->setupPage();\n $this->pageRenderer->setTitle($this->title);\n $this->loadJavaScripts();\n $this->setJavaScriptCodeArray();\n $this->loadStylesheets();\n\n $this->view->assign('docHeader', $this->docHeaderComponent->docHeaderContent());\n if ($this->moduleId) {\n $this->view->assign('moduleId', $this->moduleId);\n }\n if ($this->moduleName) {\n $this->view->assign('moduleName', $this->moduleName);\n }\n $this->view->assign('uiBlock', $this->uiBlock);\n $this->view->assign('flashMessageQueueIdentifier', $this->getFlashMessageQueue()->getIdentifier());\n $renderedPage = $this->pageRenderer->render(PageRenderer::PART_HEADER);\n $renderedPage .= $this->bodyTag;\n $renderedPage .= $this->view->render();\n $this->pageRenderer->addJsFooterInlineCode('updateSignals', BackendUtility::getUpdateSignalCode());\n $renderedPage .= $this->pageRenderer->render(PageRenderer::PART_FOOTER);\n\n return $renderedPage;\n }", "protected abstract function renderContent();", "public function render(): void\n {\n new HeaderRenderer($this->header->getHeaderList());\n $this->addNecessaryContent();\n new FooterRenderer();\n }", "private function __layoutContent()\n {\n return VIEWS . DS . 'Layout' . DS . 'base.php';\n }", "public function renderContent() {}" ]
[ "0.8236504", "0.78251404", "0.7820134", "0.7524449", "0.73031497", "0.72716683", "0.72287303", "0.72287303", "0.7223757", "0.69539994", "0.68959033", "0.6871749", "0.6863259", "0.68605965", "0.6784333", "0.6766792", "0.67660457", "0.67544264", "0.6742559", "0.67278874", "0.67198277", "0.6709561", "0.6707789", "0.6686584", "0.66790503", "0.66572136", "0.6655269", "0.66481215", "0.6627715", "0.660651", "0.6606319", "0.6584769", "0.65578264", "0.6536945", "0.6529017", "0.6525847", "0.65224993", "0.64953595", "0.6489006", "0.6486513", "0.6477727", "0.64752465", "0.6459163", "0.6452503", "0.6452503", "0.6452503", "0.6451937", "0.64452523", "0.64337736", "0.6426733", "0.64108884", "0.6410569", "0.6410569", "0.64105", "0.6407544", "0.6398845", "0.6397809", "0.6395579", "0.6391271", "0.6391271", "0.6391271", "0.6391271", "0.6391271", "0.6391271", "0.6391271", "0.6391271", "0.6391271", "0.6391271", "0.6391271", "0.6391271", "0.6391271", "0.6391271", "0.63809735", "0.6379531", "0.6377392", "0.6377053", "0.6375278", "0.6374491", "0.6361261", "0.6358139", "0.63537997", "0.63492453", "0.63281286", "0.6315493", "0.62997645", "0.62862504", "0.62862504", "0.62839663", "0.627622", "0.6270176", "0.6265893", "0.6263612", "0.62614095", "0.6258068", "0.62539405", "0.6251112", "0.6250505", "0.6245749", "0.6243506", "0.62412006", "0.6240411" ]
0.0
-1
Check if the specified package is defined
public function hasConfig($package);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_package_installed($package_name) {\n\treturn (get_package_id($package_name) != -1);\n}", "public function providesPackage($package) {\n $this->cat->debug('Provides package:', $package);\n return FALSE;\n }", "public function shouldRun(string $package): bool;", "function isPackageInstalled( $pPackageGuid ){\n\t\treturn !is_null( $this->getInstalledPackageConfig( $pPackageGuid ) );\n\t}", "private function is_package_installed( $package_name ) {\n\t\tif ( $this->get_installed_package_by_name( $package_name ) )\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "final private static function _is_package_alias($package_name) {\n\t\t\n\t\t# the first character in an alias is a colon\n\t\tif(substr($package_name, 0, 1) !== ':') {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "function is_pkg_installed($pkg_name) {\n\tglobal $g;\n\n\tif (empty($pkg_name)) {\n\t\treturn false;\n\t}\n\n\treturn pkg_call(\"info -e \" . $pkg_name, true);\n}", "public function hasModule($name);", "function isPackageRequired( $pPackageGuid ) {\n\t\treturn( $this->getPackageSchemaValue( $pPackageGuid, 'required' ) == 'y' );\n\t}", "protected function hasComposerPackage($package)\n {\n $packages = json_decode(file_get_contents(base_path('composer.json')), true);\n\n return array_key_exists($package, $packages['require'] ?? [])\n || array_key_exists($package, $packages['require-dev'] ?? []);\n }", "function verifyPackage( $pPackageGuid ) {\n\t\tif( !$this->isPackageActive( $pPackageGuid ) ) {\n\t\t\t$this->fatalError( tra(\"This package is disabled\").\": package_$pPackageGuid\" );\n\t\t}\n\n\t\treturn( TRUE );\n\t}", "public function validateService($package, array $vars = null)\n {\n return true;\n }", "public function isPackage($dir, $name)\n\t{\n\t\treturn file_exists($this->makePath($dir . $name . DIRECTORY_SEPARATOR, $name));\n\t}", "public function check() {\n\t\trequire_once 'PEAR/Registry.php';\n\t\t$registry = new PEAR_Registry();\n\n\t\t$installedVersion = $registry->packageInfo($this->name, 'version', $this->channel);\n\t\tif (is_null($installedVersion)) {\n\t\t\t$this->log('Package \"'.$this->name.'\" from \"'.$this->channel.'\" is required', Project::MSG_ERR);\n\t\t\treturn 1;\n\t\t}\n\t\tif ($this->min && version_compare($installedVersion, $this->min, '<')) {\n\t\t\t$this->log('Package \"'.$this->name.'\" from \"'.$this->channel.'\" is '.$installedVersion.'. >= '.$this->min.' is required', Project::MSG_ERR);\n\t\t\treturn 1;\n\t\t}\n\t\tif ($this->max && (version_compare($installedVersion, $this->max, '>'))) {\n\t\t\t$this->log('Package \"'.$this->name.'\" from \"'.$this->channel.'\" is '.$installedVersion.'. <= '.$this->max.' is required', Project::MSG_ERR);\n\t\t\treturn 1;\n\t\t}\n\t\t$this->log('Package \"'.$this->name.'\" '.$installedVersion.' is passed', Project::MSG_VERBOSE);\n\n\t\treturn 0;\n\t}", "public function validatePackage($strPath) {\n try {\n $objMetadata = new class_module_packagemanager_metadata();\n $objMetadata->autoInit($strPath);\n return true;\n }\n catch(class_exception $objEx) {\n\n }\n\n return false;\n\n }", "public function checkIfPackageExists()\n {\n if (is_dir($this->packagePath())) {\n throw new RuntimeException('Package already exists');\n }\n }", "public function isPackageAvailable($packageKey): bool\n {\n return ($this->getCaseSensitivePackageKey($packageKey) !== false);\n }", "public function is_available($package) {\n return $this->is_enabled();\n }", "public function hasPackageManager() {}", "private function is_community_package( $package ) {\n\t\treturn false !== stripos( $package->getName(), '/wp-cli' );\n\t}", "public function has($key, $package = 'mybb/core')\n\t{\n\t\t$this->assertLoaded();\n\n\t\treturn isset($this->settings[$package][$key]);\n\t}", "public function isPackaged()\n {\n return $this->isProduction();\n }", "function isInstalled($moduleName);", "function pkg_valid_name($pkgname) {\n\tglobal $g;\n\n\t$pattern = \"/^{$g['pkg_prefix']}[a-zA-Z0-9\\.\\-_]+$/\";\n\treturn preg_match($pattern, $pkgname);\n}", "function PKG_isSpecialPackageAvailableForClient($client, $package)\n{\n\treturn (PKG_getSpecialPackageInfo($package,'Priority',CLIENT_getDistribution($client)) === false ? false : true);\n}", "#[@test, @expect('lang.ElementNotFoundException')]\n public function nonExistantPackage() {\n \\lang\\reflect\\Package::forName('@@non-existant-package@@');\n }", "private static function has_dev_packages(): bool {\n\t\t$cmd = 'composer -d ' . escapeshellarg( self::$root_path ) . ' show -N';\n\t\t$all_packages = shell_exec( $cmd );\n\t\t$cmd = 'composer -d ' . escapeshellarg( self::$root_path ) . ' show -N --no-dev';\n\t\t$non_dev_packages = shell_exec( $cmd );\n\t\treturn $all_packages !== $non_dev_packages;\n\t}", "function ppom_pro_is_installed() {\n\t\n\t$return = false;\n\t \n if( class_exists('PPOM_PRO') ) \n $return = true;\n return $return;\n}", "public static function module_exists($name) {\n\n\t\tif ($name == 'nos' || $name == 'app') {\n\t\t\treturn true;\n\t\t}\n\n\t\t\\Config::load(APPPATH.'data'.DS.'config'.DS.'app_installed.php', 'app_installed');\n\t\t$app_installed = \\Config::get('app_installed', array());\n\n\t\tif (isset($app_installed[$name])) {\n\t\t\treturn parent::module_exists($name);\n\t\t}\n\t\treturn false;\n\t}", "function isPackageActiveEarly( $pPackageName ) {\n\n\t\t$ret = FALSE;\n\t\t$pkgname_l = strtolower( $pPackageName );\n\t\tif( is_file(BIT_ROOT_PATH.$pkgname_l.'/bit_setup_inc.php') ) {\n\t\t\trequire_once(BIT_ROOT_PATH.$pkgname_l.'/bit_setup_inc.php');\n\t\t\t$ret = $this->isPackageActive( $pPackageName );\n\t\t} elseif( $pkgname_l == 'kernel' ) {\n\t\t\t$ret = TRUE;\n\t\t}\n\n\t\treturn( $ret );\n\t}", "public function is_installed() {\n\n }", "public function isPackageInstalled(PackageInterface $package)\n {\n return $this->filesystem->exists($this->config->getInstallDir() . '/' . $package->getName() . '/.bower.json');\n }", "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 containingPackage() {\n if (FALSE === ($p= strrpos($this->name, '.'))) return NULL;\n return $this->root->packageNamed(substr($this->name, 0, $p));\n }", "private function check() {\n\t\t$module = $this->packageService->getModule();\n\t\tif ($module === null) {\n\t\t\tthrow new \\DomainException('No module definition found in composer.json - please run `keeko init`.');\n\t\t}\n\t}", "private function check() {\n\t\t$module = $this->packageService->getModule();\n\t\tif ($module === null) {\n\t\t\tthrow new \\DomainException('No module definition found in composer.json - please run `keeko init`.');\n\t\t}\n\t}", "function sloodle_is_installed()\n {\n // Is there a Sloodle entry in the modules table?\n return sloodle_record_exists('modules', 'name', 'sloodle');\n }", "public function contains(PackageDoc $other) {\n if (FALSE === ($p= strrpos($other->name, '.'))) return FALSE;\n return $this->name === substr($other->name, 0, $p);\n }", "public static function dependencies($package = NULL) {\n\n // install dependancies and check if installed before\n // \n \n if(!is_null($package)) {\n echo \"hello dependency\";\n }\n }", "function classExistsInNamespaces($class);", "function isPackageEnabled ($provider)\n {\n $registeredProvidersArray = array_keys (app ()->getLoadedProviders ());\n\n return in_array ($provider, $registeredProvidersArray);\n }", "public function getPackage(): PackageInterface|null;", "function atkexists($type, $name)\n{\n\treturn file_exists(atkgetinclude($type, $name));\n}", "public function isAlreadyInstalled() {\n\t\t// is not a unique package and can be\n\t\t// installed as many times as you want\n\t\tif ($this->packageInfo['isUnique'] == 0) {\n\t\t\treturn false;\n\t\t}\n\t\t// this package may only be installed\n\t\t// once (e. g. library package)\n\t\telse {\n\t\t\treturn (count($this->getDuplicates()) != 0);\n\t\t}\n\t}", "abstract public function getPackage();", "protected function isSetup(){\n \treturn isset($GLOBALS['setup']);\n }", "public function hasConfig($package)\n {\n if (!$this->_config)\n $this->_config = $this->app->config->getConfig(\n 'assets', false, true\n );\n return isset($this->_config[$package]);\n }", "public function exist()\n {\n return $this->_info && app()->getModule($this->_info['name']) ? TRUE : FALSE;\n }", "public function hasNamespace() {\n return $this->_has(1);\n }", "public function hasModule($name): bool\n {\n return in_array($name, $this->listModules()) &&\n class_exists('\\\\' . $name . '\\ServiceProvider');\n }", "public function hasNamespace() {\n return ($this->namespace !== '');\n }", "public function testGetPackage()\n {\n $this->assertEquals($this->packageName, $this->path->getPackage());\n }", "public function moduleExists($name) {\n }", "public function getPackage() {}", "function fiorello_mikado_is_wp_gutenberg_installed() {\n\t\treturn class_exists( 'WP_Block_Type' );\n\t}", "private function isFileExistsInPackage($filePath, Package $package)\n {\n /** @var PackageFile $file */\n foreach ($package->getFiles() as $file) {\n if ($file->getDeployedFileName() === $filePath) {\n return true;\n }\n }\n return false;\n }", "public function test_requirements()\n\t{\n\t\t// Look for ACF\n\t\tif ( ! class_exists('acf') && ! class_exists('Acf') ) { return false; }\n\t\treturn true;\n\t}", "#[@test]\n public function fileSystemClassPackageProvided() {\n $class= \\lang\\XPClass::forName('net.xp_framework.unittest.reflection.classes.ClassOne');\n $this->assertTrue($class\n ->getClassLoader()\n ->providesPackage($class->getPackage()->getName())\n );\n }", "public static function checkOwnPackage\n\t(\n\t\t$uniID\t\t\t// <int> The Uni-Account to check the package for.\n\t,\t$packageID\t\t\t// <int> The package to check if you own.\n\t)\t\t\t\t\t// RETURNS <bool> TRUE on success, or FALSE if failed.\n\t\n\t// AppAvatar::checkOwnPackage($uniID, $packageID);\n\t{\n\t\treturn (Database::selectValue(\"SELECT package_id FROM user_packages WHERE uni_id=? AND package_id=? LIMIT 1\", array($uniID, $packageID))) ? true : false;\n\t}", "function module_loaded($module_name, $min_version = null) {\n $module_class_name = 'melt\\\\' . $module_name . '\\\\' . \\melt\\string\\underline_to_cased($module_name) . \"Module\";\n if (class_exists($module_class_name)) {\n if ($min_version !== null) {\n $module_version = call_user_func(array($module_class_name, \"getVersion\"));\n return version_compare($module_version, $min_version, \">=\");\n }\n return true;\n }\n return false;\n}", "static function exists($app, $key)\n\t{\n\t\tif (!is_object($app))\n\t\t\treturn class_exists(ucfirst($key) . ucfirst($app) . 'Module');\n\t\treturn class_exists(ucfirst($key) . ucfirst($app->getName()) . 'Module');\n\t}", "protected function checkIfNoConflictingExtensionIsInstalled() {}", "#[@test]\n public function loadPackageByName() {\n $this->assertEquals(\n \\lang\\reflect\\Package::forName('net.xp_framework.unittest.reflection.classes'),\n \\lang\\reflect\\Package::forName('net.xp_framework.unittest.reflection')->getPackage('classes')\n );\n }", "public function hasBindingType($typeName, $packageName = null);", "protected function hasDependency($package, $dependency)\n\t{\n\t\t$dependencies = $this->getDependencies($package);\n\n\t\treturn in_array($dependency, $dependencies);\n\t}", "public function supports($package_type)\n {\n return in_array($package_type, self::SUPPORTED_TYPES);\n }", "function olc_class_exists($class_name) {\n\tif (function_exists('class_exists')) {\n\t\treturn class_exists($class_name);\n\t} else {\n\t\treturn true;\n\t}\n}", "#[@test]\n public function loadPackageByQualifiedName() {\n $this->assertEquals(\n \\lang\\reflect\\Package::forName('net.xp_framework.unittest.reflection.classes'),\n \\lang\\reflect\\Package::forName('net.xp_framework.unittest.reflection')->getPackage('net.xp_framework.unittest.reflection.classes')\n );\n }", "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 isPackageKeyValid($packageKey): bool\n {\n return preg_match(PackageInterface::PATTERN_MATCH_PACKAGEKEY, $packageKey) === 1;\n }", "public function isInstalled()\n\t{\n\t\t$db = JFactory::getDBO();\n\t\t$q = sprintf(\"SELECT * FROM jos_components WHERE parent = 0 AND `option` LIKE 'com_%s' LIMIT 1\",str_replace('_','',$this->name));\n\t\t$db->execute($q);\n\t\treturn ($object = $db->loadObject()) ? $object->id : false;\n\t}", "function isPluginInstalled( $pPackagePluginGuid ){\n\t\treturn !is_null( $this->getInstalledPluginConfig( $pPackagePluginGuid ) );\n\t}", "public function hasModule(){\n return $this->_has(1);\n }", "public function checkImportPrerequisites() {}", "public function testIsVendorClassReturnsFalseIfClassIsNotLocatedInVendorDirectory()\n {\n $this->assertFalse(VendorResources::isVendorClass('\\Webfactory\\Util\\VendorResources'));\n }", "function tep_class_exists($class_name) {\n if (function_exists('class_exists')) {\n return class_exists($class_name);\n } else {\n return true;\n }\n}", "function defined(string $class_name): bool\n{\n /**\n * @psalm-suppress ImpureFunctionCall - call is pure.\n *\n * @var bool\n */\n return class_exists($class_name, false);\n}", "public function hasInstall();", "public function exists($group, $namespace = null)\n {\n\n \n \n }", "public static function is_installed() {\n\t\t\n if (!file_exists(APPPATH . 'config/database.php')) {\n\t\t\treturn false;\n }\n\n if (!file_exists(APPPATH . 'cache')) {\n return false;\n }\n\n $cache = Cache::instance();\n if ($cache->get('njiandan_installed')) {\n return true;\n } else {\n return false;\n }\n }", "public function effectively_installed()\n {\n return isset($this->config['oxcom_phpbbch_format_only']);\n }", "public function validate( $package ) {\n // Some 3rd party plugins may deliver empty $package which causes\n // error notices. If so, we fill array manually.\n if ( ! is_array( $package ) ) {\n $package = array();\n }\n\n if ( ! isset( $package['contents'] ) || ! is_array( $package['contents'] ) ) {\n $package['contents'] = array();\n }\n\n // Not all shipping plugins provide package contents, in that case we will assume\n // there is only one package and that is equal to cart contents\n if ( empty( $package['contents'] ) && WC()->cart ) {\n $package['contents'] = WC()->cart->get_cart();\n }\n\n $filters = woo_conditional_shipping_filters();\n\n $passed = true;\n foreach ( $this->get_conditions() as $index => $condition ) {\n if ( isset( $condition['type'] ) && ! empty( $condition['type'] ) ) {\n $type = $condition['type'];\n\n $function = \"filter_{$type}\";\n\n if ( isset( $filters[$type] ) && isset( $filters[$type]['callback'] ) ) {\n $callable = $filters[$type]['callback'];\n } else if ( class_exists( 'Woo_Conditional_Shipping_Filters_Pro' ) && method_exists( 'Woo_Conditional_Shipping_Filters_Pro', $function ) ) {\n $callable = array( 'Woo_Conditional_Shipping_Filters_Pro', $function );\n } else {\n $callable = array( 'Woo_Conditional_Shipping_Filters', $function );\n }\n\n $result = call_user_func( $callable, $condition, $package );\n if ( $result ) {\n $passed = false;\n }\n\n $this->debug->add_condition( $this->get_id(), $index, $condition, $result );\n }\n }\n\n $this->debug->add_result( $this->get_id(), $passed );\n\n return $passed;\n }", "function is_module_loaded($name)\n{\n\tglobal $loaded_modules;\n\treturn in_array($name, $loaded_modules);\n}", "private function get_installed_package_by_name( $package_name ) {\n\t\tforeach( $this->get_installed_packages() as $package ) {\n\t\t\tif ( $package_name == $package->getName() )\n\t\t\t\treturn $package;\n\t\t}\n\t\treturn false;\n\t}", "function exists_bridge( $namespace )\n {\n return Resolver::exists( $namespace );\n }", "public function testPackageType() {\n $this->assertFalse($this->object->isset_packageType());\n\n $packageType = 'test';\n $this->object->set_packageType($packageType);\n $this->assertTrue($this->object->isset_packageType());\n $this->assertEquals($packageType, $this->object->get_packageType());\n }", "public function module_exists($name,$type)\n\t{\n\t\t$module_path=$this->_ci->config->item('module_path');\n\t\treturn file_exists($module_path.'/'.$type.'/'.$name.'/'.$name.'.php');\n\t}", "function is_installed()\n{\n return has_account() && has_meta();\n}", "final public function exists(string $name): bool {\n\t\ttry {\n\t\t\t$this->_findModulePath($name);\n\t\t\treturn true;\n\t\t} catch (Throwable) {\n\t\t\treturn false;\n\t\t}\n\t}", "private static function hasNamespace($name)\n {\n return strpos($name, static::HINT_PATH_DELIMITER) > 0;\n }", "function isModuleInstalled($id) {\n $value = $this->db->getEnvVariable($id . \"_INSTALLED\");\n\n if ($value == \"true\") return true;\n return false;\n }", "public static function isInstalled($packageName)\n {\n foreach (self::getInstalled() as $installed) {\n if (isset($installed['versions'][$packageName])) {\n return true;\n }\n }\n\n return false;\n }", "function wrmp_is_installed()\n{\n\treturn wrmp_get_settingsgroup();\n}", "protected function isInstalled(){\n\t\t$dsn = Configuration::get('dsn', '');\n\t\t//echo \"dsn = \" . $dsn . \"--\";\n\t\tif ($dsn == ''){\n\t\t\t$alreadyInstalled = false;\n\t\t}\n\t\telse{\n\t\t\t$alreadyInstalled = true;\n\t\t}\n\t\treturn $alreadyInstalled;\n\t}", "public function has_dependencies(): bool;", "public static function are_behat_dependencies_installed() {\n if (!is_dir(__DIR__ . '/../../../vendor/behat')) {\n return false;\n }\n return true;\n }", "public static function isInstalled(){\n\t\treturn !empty(\\GO::config()->db_user);\n\t}", "protected function checkModules()\n\t{\n\t\tif (Loader::includeModule('imconnector'))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tShowError(Loc::getMessage('IMCONNECTOR_COMPONENT_FACEBOOK_MODULE_NOT_INSTALLED_MSGVER_1'));\n\n\t\t\treturn false;\n\t\t}\n\t}", "function jetpack_is_product() {\n\treturn ( function_exists( 'is_product' ) ) ? is_product() : false;\n}", "public function hasPoolDownloadBasePackages()\n\t{\n\t\treturn($this->getProperty('downloadBasePackages') == 'yes');\n\t}" ]
[ "0.7064956", "0.69058865", "0.683608", "0.66459346", "0.65284795", "0.64034563", "0.6288972", "0.62416685", "0.62255186", "0.62251943", "0.62071484", "0.6179173", "0.6178118", "0.6177836", "0.6173065", "0.6144382", "0.6127692", "0.6113306", "0.61126256", "0.6055814", "0.60414684", "0.6033704", "0.60300666", "0.60153383", "0.59305453", "0.59225607", "0.5909075", "0.59090334", "0.59054995", "0.58994585", "0.58933693", "0.5880716", "0.5868463", "0.5852381", "0.5842316", "0.5842316", "0.58285147", "0.5813419", "0.58039945", "0.57875305", "0.57661116", "0.57189536", "0.57115597", "0.5701175", "0.5696635", "0.56677884", "0.5640069", "0.5639733", "0.56265485", "0.56196773", "0.5608588", "0.56033313", "0.559901", "0.55748576", "0.5574743", "0.556394", "0.5559133", "0.5554093", "0.55501026", "0.55447084", "0.554358", "0.5542853", "0.5540308", "0.5527599", "0.55203104", "0.5516962", "0.5474938", "0.5472439", "0.54672426", "0.54650474", "0.5463685", "0.546067", "0.5456364", "0.5455897", "0.5446886", "0.54450345", "0.5443654", "0.5432534", "0.5424356", "0.5423845", "0.54233336", "0.54210687", "0.5415851", "0.54148483", "0.54139847", "0.540792", "0.5394804", "0.5394633", "0.5377677", "0.5366504", "0.5364013", "0.53597397", "0.5355", "0.5353852", "0.5351006", "0.5350884", "0.5339155", "0.53332657", "0.5325526", "0.532451" ]
0.71680105
0
Gets the specified package configuration
public function getConfig($package);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getConfig($package)\n {\n $this->requirePackage($package);\n return $this->_config[$package];\n }", "function read_package_configurationfile($package_name) {\n\t$pkg_config = array();\n\t$id = get_package_id($package_name);\n\t$pkg_data = config_get_path(\"installedpackages/package/{$id}\", []);\n \n\tif ($id < 0 || empty($pkg_data)) {\n\t\treturn $pkg_config;\n\t}\n\n\tif (empty($pkg_data['configurationfile'])) {\n\t\treturn $pkg_config;\n\t}\n\n\tif (!file_exists('/usr/local/pkg/' . $pkg_data['configurationfile'])) {\n\t\treturn $pkg_config;\n\t}\n\n\t$pkg_config = parse_xml_config_pkg('/usr/local/pkg/' .\n\t $pkg_data['configurationfile'], \"packagegui\");\n\n\treturn $pkg_config;\n}", "function read_package_config($package_name) {\n\tglobal $g;\n\n\t$pkg_info_xml = '/usr/local/share/' . g_get('pkg_prefix') . $package_name .\n\t '/info.xml';\n\n\tif (!file_exists($pkg_info_xml)) {\n\t\treturn false;\n\t}\n\n\t$pkg_info = parse_xml_config_pkg($pkg_info_xml, 'pfsensepkgs');\n\n\tif (empty($pkg_info)) {\n\t\treturn false;\n\t}\n\n\t/* it always returns an array with 1 item */\n\treturn $pkg_info['package'][0];\n}", "public function getConfig()\n { // Try the template specific path first\n $fname = APPLICATION_PATH.$this->_paths['pkg_template'].'/config.json';\n if( file_exists($fname) ) {\n return json_decode(file_get_contents($fname));\n }\n // Next try the domain common path\n $fname = APPLICATION_PATH.$this->_paths['pkg_common'].'/config.json';\n if( file_exists($fname) ) {\n return json_decode(file_get_contents($fname));\n }\n // Finally, try the app common path\n $fname = APPLICATION_PATH.$this->_paths['app_common'].'/config.json';\n if( file_exists($fname) ) {\n return json_decode(file_get_contents($fname));\n }\n // If none of these files were found, return false to indicate failure\n if( !$this->_config) throw new CException('Configuration not found');\n }", "public function getPackageInfo()\n {\n return $this->getConfig()->getPackageInfo();\n }", "public function getConfig();", "public function getConfig();", "public function getConfig();", "public function getConfig();", "public function getConfig();", "public function getConfig();", "public function getConfig();", "public function getConfig();", "abstract public function getConfig();", "public function getConfig() {}", "abstract protected function getConfig();", "static function getConfig() {\n\t\treturn self::getRegistry()->get(self::REGISTRY_CONFIG);\n\t}", "public function getConfig()\n {\n return $this->_getConfigFile();\n }", "function getConfig()\n {\n return $this->_api->doRequest(\"GET\", \"{$this->getBaseApiPath()}/config\");\n }", "public function getConfig()\n {\n return $this->get('config');\n }", "public static function getConfig()\n {\n return self::$config;\n }", "public function getConfiguration()\n {\n return $this->_config;\n }", "public function getConfig()\n {\n return $this->traitGetConfig();\n }", "public function getConfig()\n {\n return $this->config;\n }", "public function get_config()\n\t{\n\t\treturn $this->cfg;\n\t}", "public static function getConfiguration();", "public function getConfig() {\r\n\r\n\t}", "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 }", "private function config()\n {\n return $this->app['config'];\n }", "private function config()\n {\n return $this->app['config'];\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}", "function getConfiguration() ;", "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\t{\n\t\treturn include __DIR__ . '/../../../config/module.config.php';\n\t}", "public function getConfig(){\n\t\treturn $this->_config;\n\t}", "public function getConfig(): Configuration;", "public function getConfig() {\n return $this->_config;\n }", "public static function getConfig()\n {\n }", "function getConfig()\n {\n return $this->config;\n }", "public function getConfig() {\r\n return $this->config;\r\n }", "public function getConfig()\n {\n return $this['config'];\n }", "public function getConfig(){\n return $this->config;\n }", "public function getConfig()\r\n {\r\n return Zend_Registry::get('config');\r\n }", "public function getConfig() {\n return Mage::getSingleton('profileolabs_shoppingflux/config');\n }", "public function getPackages()\n {\n return $this->file->get(self::SETTING_PACKAGES);\n }", "public function getConfig() {\n $configFiles = [\n 4 => 'laravel-haml::config',\n 5 => 'laravel-haml',\n 6 => 'haml'\n ];\n\n\t\t$key = $configFiles[$this->version()];\n\t\treturn $this->app->make('config')->get($key);\n\t}", "public function getConfig()\r\n {\r\n return $this->_file;\r\n }", "protected function getConfig()\n {\n\n return $this->app['config']['manticore'];\n }", "public function getConfiguration() {}", "public function getConfiguration() {}", "public function getConfig()\n {\n return $this->config ?: $this->setConfig()->getConfig();\n }", "public function getConfig() : \\codename\\core\\config {\r\n return $this->config;\r\n }", "public function getConfig()\n {\n return parse_ini_file(__DIR__ . \"/../php.ini\", true);\n }", "protected function getConfigFile()\n {\n return realpath($this->getBasePath() . \"/config/{$this->package}.php\");\n }", "protected function _getConfig()\n {\n return $this->_paypalConfig;\n }", "public function getConfiguration();", "public function getConfiguration();", "public function getConfiguration();", "public function get()\r\n {\r\n $this->ensureLoaded();\r\n return $this->config;\r\n }", "public function getConfig() {\n return $this->container->offsetGet('config');\n }", "public function getConfiguration() {\n\t\treturn $this->_getResponse(self::URL_CONFIGURATION);\n\t}", "public function getConfig() {\n \t\n \t// Return our configuration\n \treturn $this->aConfig;\n }", "public function getPackage() {}", "public function getConfig()\n {\n return ModuleConfigLoader::load(__DIR__ . '/../config');\n }", "public function config_get(){\n\t\treturn $this->fb->exec('dhcp.config_get');\n\t}", "public function getConfiguration() {\n return $this->configuration;\n }", "public static function getConfig () {\n\n\t\treturn parse_ini_file(APPPATH . '/config/config.ini');\n\t}", "public function getConfigService();", "public function getConfig(){\r\n return include __DIR__ . '/config/module.config.php';\r\n }", "public function config()\n {\n return $this->context->getConfig();\n }", "static public function getConfig() {\n return Application::$config;\n }", "public function getConfigurarion()\n {\n return $this->configuration;\n }", "public function getConfig ()\n {\n return $this->web->getConfig();\n }", "protected function config($name) {\n return $this->configFactory->get($name);\n }", "public function getConfiguration()\n\t{\n\t\treturn $this->configuration;\n\t}", "protected function getConfig()\n\t{\n\t\treturn $this->oConfig;\n\t}", "public function getConfiguration()\n {\n return $this->configuration;\n }", "public function getConfig()\n {\n return include __DIR__ . '/src/module.config.php';\n }", "public function getConfig ()\n {\n $config = Mage::getModel('socnet/network')\n ->getConfigByNetworkKey($this->getNetworkKey());\n return $config;\n }", "public function get() {\n return $this->_configuration;\n }", "public function getConfiguration()\n {\n return self::$config_array;\n }" ]
[ "0.7676505", "0.74666166", "0.716535", "0.70634085", "0.6972135", "0.6905367", "0.6905367", "0.6905367", "0.6905367", "0.6905367", "0.6905367", "0.6905367", "0.6905367", "0.68190837", "0.68174106", "0.6808387", "0.68015826", "0.67640966", "0.6706287", "0.6695867", "0.66290444", "0.66135305", "0.6604043", "0.657817", "0.6563573", "0.65567774", "0.65453595", "0.6539559", "0.6539559", "0.6539559", "0.6539559", "0.6539559", "0.6539559", "0.6539559", "0.6539559", "0.6539559", "0.6539559", "0.6539559", "0.6539559", "0.6539559", "0.6539559", "0.6539559", "0.6531715", "0.6531715", "0.65281016", "0.65281016", "0.65281016", "0.65281016", "0.6508186", "0.65079236", "0.649526", "0.649526", "0.6486476", "0.6485848", "0.6479025", "0.6466271", "0.64562166", "0.64481336", "0.6443563", "0.6442882", "0.64402544", "0.64337283", "0.64275527", "0.64261687", "0.64160126", "0.64040494", "0.63952863", "0.63740534", "0.637274", "0.6371075", "0.6370465", "0.6341775", "0.6339843", "0.6339333", "0.6339059", "0.6339059", "0.6339059", "0.6333838", "0.6331322", "0.63292253", "0.6327754", "0.6287003", "0.62825847", "0.6278959", "0.6278787", "0.62703204", "0.6262066", "0.62584424", "0.62570465", "0.62438583", "0.6229451", "0.62216574", "0.62153316", "0.62129", "0.6210946", "0.6204872", "0.6195601", "0.6188522", "0.6185772", "0.6182575" ]
0.8375832
0
Attach a package to the current app
public function attach($package);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setupApplication()\n {\n $this->call('publish:assets', ['package' => 'antares/foundation']);\n }", "public function attach($package)\n {\n $config = $this->getConfig($package);\n if (!in_array($package, $this->_packages)) {\n if (!empty($config['depends'])) {\n foreach ($config['depends'] as $dependency) {\n $this->attach($dependency);\n }\n }\n $this->_packages[] = $package;\n }\n return $this;\n }", "protected function registerManifest()\n {\n $this->app['torann.manifest'] = $this->app->share(function($app)\n {\n $meta = $app['config']->get('app.manifest');\n\n return new Manifest($app['files'], $meta);\n });\n }", "protected function addScriptsToNpmPackage()\n {\n $package = json_decode(file_get_contents(base_path('package.json')), true);\n\n $package['scripts']['build-'.$this->viewsName()] = 'cd '.$this->relativeViewsPath().' && npm run dev';\n $package['scripts']['build-'.$this->viewsName().'-prod'] = 'cd '.$this->relativeViewsPath().' && npm run prod';\n\n file_put_contents(\n base_path('package.json'),\n json_encode($package, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)\n );\n }", "public function addUsageApplication(\\SetaPDF_Core_Document_OptionalContent_Group $group) {}", "protected function helperUseManifest() {\n\t\t// Create a new instance of the manifest.\n\t\tglobal $flush;\n\t\t$manifest = new JackalopeManifest(BASE_PATH, false, $flush);\n\n\t\t// Overwrite the test one.\n\t\tSS_ClassLoader::instance()->pushManifest($manifest);\n\t\tSapphireTest::set_test_class_manifest($manifest);\n\t}", "protected function addViewsPackageToRootComposer()\n {\n $composer = json_decode(file_get_contents(base_path('composer.json')), true);\n\n $composer['require'][$this->composerName()] = '*';\n\n file_put_contents(\n base_path('composer.json'),\n json_encode($composer, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)\n );\n }", "function setup(&$installer, $pkg, $atts, $file)\n {\n }", "function setup(&$installer, $pkg, $atts, $file)\n {\n }", "protected static function writeToAddonStorage($package)\n {\n $laravel = new Application(getcwd());\n $path = $laravel->bootstrapPath('addon.php');\n\n if (is_file($path)) {\n @unlink($path);\n }\n\n file_put_contents($path, \"{$package}\\n\");\n }", "public function attachApp(AppNode $app)\n {\n $this->apps[$app->getPrimaryKey()] = $app;\n }", "private function addPackage($data, $isRoot = false)\n {\n $this->packageArray[$data['name']] = new PackageInformation(\n $data['name'],\n $data,\n $this->composerRoot,\n $isRoot\n );\n\n if (isset($data['provide'])) {\n foreach ($data['provide'] as $packageName => $version) {\n $this->packageArray[$packageName] = new PackageInformation(\n $packageName,\n $data,\n $this->composerRoot,\n $isRoot\n );\n }\n }\n if (isset($data['replace'])) {\n foreach ($data['replace'] as $packageName => $version) {\n $this->packageArray[$packageName] = new PackageInformation(\n $packageName,\n $data,\n $this->composerRoot,\n $isRoot\n );\n }\n }\n\n $this->addRequiredPackagesFrom($data, 'require');\n $this->addRequiredPackagesFrom($data, 'require-dev');\n }", "protected function registerPackagingCommand()\n {\n $this->app->singleton('command.core.packaging', function () {\n return new \\Pw\\Core\\Console\\Commands\\CorePackagingCommand();\n });\n\n $this->commands('command.core.packaging');\n }", "function packagename()\r\n{\r\n\treturn app('packagename');\r\n}", "function installTreeToPackage() {\n\t\tif (!is_array($this->packageInfo)) { \n\t\t\tif ($this->debug) { echo \"ERROR - no package info found<BR>\\n\"; }\nexit();\n\t\t\treturn; \n\t\t}\n\t\t$info = $this->packageInfo['info'];\n\t\t$configs = $this->packageInfo['configs'];\n\t\t$mid = $info['name'];\n\t\tlcRegistry::delete($mid);\n\t\t$reg = lcRegistry::load($mid);\n\t\t$reg->mid = $mid;\n\t\t$reg->moduleName = $mid;\n\t\t$reg->displayName = $info['displayName'];\n\t\t$reg->version = $info['version'];\n\t\t$reg->author = $info['author'];\n\t\t$reg->copyright = $info['copyright'];\n\t\t$reg->lastModified = date(\"Y-m-d h:i:s\");\n\t\t$reg->save();\n\t\twhile(list($k,$v) = @each($configs['config'])) {\n\t\t\textract($v);\n\t\t\t$reg->config[$key] = $default;\n\t\t\t$reg->type[$key] = $type;\n\t\t\t$reg->extra[$key] = @implode(\"\\n\",$options);\n\t\t}\n\t\t$reg->saveConfig();\n\t\texec(\"cp \".$this->dir.\" \".SERVICE_PATH.\"/\".$this->moduleName.\"/ -R\");\n\t}", "private function addRequirePackages()\n {\n $devPackages = [\n \"orangehill/iseed:*\",\n \"barryvdh/laravel-debugbar:*\",\n \"barryvdh/laravel-ide-helper:*\",\n \"laravel/dusk:*\",\n \"mediactive-digital/laravel:*\",\n \"mediactive-digital/migrations-generator:*\"\n ];\n $this->doCommand(\"composer require \" . implode(' ', $devPackages) . \" --dev\");\n\n if ($this->hasOption('theme')) {\n $this->doCommand('composer require ' . $this->option('theme').'');\n }\n }", "public function registerPackage(PackageInterface $package);", "public function attach()\n {\n // dummy implementation\n }", "function install(){}", "public function set_package_path()\n\t{\n\t\t$module_path=$this->_ci->config->item('module_path');\n\t\t$this->_ci->load->set_package_path($module_path.'/'.$this->type.'/'.$this->key);\n\t}", "public function bind($app) {\n $this->apps[] = $app;\n }", "protected function storeExtension()\n\t{\n\t\t// Discover installs are stored a little differently\n\t\tif ($this->route === 'discover_install')\n\t\t{\n\t\t\t$manifest_details = Installer::parseXMLInstallFile($this->parent->getPath('manifest'));\n\n\t\t\t$this->extension->manifest_cache = json_encode($manifest_details);\n\t\t\t$this->extension->state = 0;\n\t\t\t$this->extension->name = $manifest_details['name'];\n\t\t\t$this->extension->enabled = 1;\n\t\t\t$this->extension->params = $this->parent->getParams();\n\n\t\t\tif (!$this->extension->store())\n\t\t\t{\n\t\t\t\t// Install failed, roll back changes\n\t\t\t\tthrow new \\RuntimeException(\\JText::_('JLIB_INSTALLER_ERROR_MOD_DISCOVER_STORE_DETAILS'));\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\t// Was there a module already installed with the same name?\n\t\tif ($this->currentExtensionId)\n\t\t{\n\t\t\tif (!$this->parent->isOverwrite())\n\t\t\t{\n\t\t\t\t// Install failed, roll back changes\n\t\t\t\tthrow new \\RuntimeException(\n\t\t\t\t\t\\JText::sprintf(\n\t\t\t\t\t\t'JLIB_INSTALLER_ABORT_MOD_INSTALL_ALLREADY_EXISTS',\n\t\t\t\t\t\t\\JText::_('JLIB_INSTALLER_' . $this->route),\n\t\t\t\t\t\t$this->name\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// Load the entry and update the manifest_cache\n\t\t\t$this->extension->load($this->currentExtensionId);\n\n\t\t\t// Update name\n\t\t\t$this->extension->name = $this->name;\n\n\t\t\t// Update manifest\n\t\t\t$this->extension->manifest_cache = $this->parent->generateManifestCache();\n\n\t\t\tif (!$this->extension->store())\n\t\t\t{\n\t\t\t\t// Install failed, roll back changes\n\t\t\t\tthrow new \\RuntimeException(\n\t\t\t\t\t\\JText::sprintf(\n\t\t\t\t\t\t'JLIB_INSTALLER_ABORT_MOD_ROLLBACK',\n\t\t\t\t\t\t\\JText::_('JLIB_INSTALLER_' . $this->route),\n\t\t\t\t\t\t$this->extension->getError()\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->extension->name = $this->name;\n\t\t\t$this->extension->type = 'module';\n\t\t\t$this->extension->element = $this->element;\n\n\t\t\t// There is no folder for modules\n\t\t\t$this->extension->folder = '';\n\t\t\t$this->extension->enabled = 1;\n\t\t\t$this->extension->protected = 0;\n\t\t\t$this->extension->access = $this->clientId == 1 ? 2 : 0;\n\t\t\t$this->extension->client_id = $this->clientId;\n\t\t\t$this->extension->params = $this->parent->getParams();\n\n\t\t\t// Custom data\n\t\t\t$this->extension->custom_data = '';\n\t\t\t$this->extension->system_data = '';\n\t\t\t$this->extension->manifest_cache = $this->parent->generateManifestCache();\n\n\t\t\tif (!$this->extension->store())\n\t\t\t{\n\t\t\t\t// Install failed, roll back changes\n\t\t\t\tthrow new \\RuntimeException(\n\t\t\t\t\t\\JText::sprintf(\n\t\t\t\t\t\t'JLIB_INSTALLER_ABORT_MOD_ROLLBACK',\n\t\t\t\t\t\t\\JText::_('JLIB_INSTALLER_' . $this->route),\n\t\t\t\t\t\t$this->extension->getError()\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// Since we have created a module item, we add it to the installation step stack\n\t\t\t// so that if we have to rollback the changes we can undo it.\n\t\t\t$this->parent->pushStep(\n\t\t\t\tarray(\n\t\t\t\t\t'type' => 'extension',\n\t\t\t\t\t'extension_id' => $this->extension->extension_id,\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t// Create unpublished module\n\t\t\t$name = preg_replace('#[\\*?]#', '', \\JText::_($this->name));\n\n\t\t\t/** @var \\JTableModule $module */\n\t\t\t$module = Table::getInstance('module');\n\t\t\t$module->title = $name;\n\t\t\t$module->content = '';\n\t\t\t$module->module = $this->element;\n\t\t\t$module->access = '1';\n\t\t\t$module->showtitle = '1';\n\t\t\t$module->params = '';\n\t\t\t$module->client_id = $this->clientId;\n\t\t\t$module->language = '*';\n\n\t\t\t$module->store();\n\t\t}\n\t}", "public function AppActivate ( $app )\n\t {\n\t\t$this -> ShellInstance -> AppActivate ( $app ) ;\n\t }", "function plugin_package() {\n\t\t$this->response['package'] = site_url( '/wp-content/shopp-uploads/adsanity.zip' );\n\t}", "function storePackageContents()\n {\n }", "function mailmaga_x_activate(){\n\t$mailmaga_x_data = new Mailmaga_x_install();\n\t$mailmaga_x_data->activate();\n}", "public function install(){\n\n\t\t$model = Advertikon::getCurrentModel();\n\n\t\ttry {\n\t\t\t$this->_checkCompatibility();\n\t\t}\n\t\tcatch( Exception\\Transport $e ) {\n\t\t\t$this->errorPage( $e->getData() , 424 , 'Failed Dependency' );\n\t\t}\n\n\t\t$this->_install();\n\n\t\t$config = Advertikon::getXmlConfig();\n\t\t$settingsModel = Advertikon::getExtendedModel( 'setting_setting' );\n\t\t$settings = $model->stripPrefix( $settingsModel->getSetting() );\n\t\t$model->merge( $settings , $config->getValues( '/' ) );\n\t\t$settingsModel->editSetting( $settings );\n\n\t\t//mark the extension as installed\n\t\tAdvertikon::getExtendedModel( 'setting_setting' )->setSettingValue( 'installed' , 1 );\n\t}", "public function get_app_manifest()\n {\n }", "public function onStartup(Application $sender)\n\t{\n\t\tforeach ($this->packages as $package) {\n\t\t\t$package->onStartup();\n\t\t}\n\t}", "protected function activateHook()\n {\n app()->singleton(\n 'Hook',\n \\Hook::class\n );\n }", "function createPackage() {\n\t\t$package = new ZipArchive();\n\t\t$package->open($this->getPackageFilePath(), ZIPARCHIVE::CREATE | ZIPARCHIVE::OVERWRITE);\n\t\tforeach ($this->_files as $fileName => $filePath) {\n\t\t\t$package->addFile($filePath, $fileName);\n\t\t}\n\t\t$package->close();\n\t}", "public function manualInstallAction()\r\n\t{\r\n\t $helper = Mage::helper('manager');\r\n // initialize the channel model\r\n $chn = Mage::getModel('manager/channel');\r\n // load by given channel_id if there is an id\r\n if ($channel_id = $this->getRequest()->getParam('channel_id')) {\r\n \t$chn->load($channel_id);\r\n \t// set channel name\r\n \t$channelName = $chn->getUrl();\r\n \t// get package name from post data\r\n \t$packageName = $this->getRequest()->getParam('package_name');\r\n \t// try to get package information for given package_name\r\n \t$package = $this->_service->packageInfo(\r\n \t\t$packageName,\r\n \t $channelName\r\n \t);\r\n \tif ($package) {\r\n\t \t// initialize the package model\r\n\t $pkg = Mage::getModel('manager/package');\r\n\t // try to load the package from the database by its name\r\n\t $id = $pkg->loadByName($packageName)->getId();\r\n\t if (empty($id)) {\r\n\t // if the package is new, create it\r\n\t $pkg->setChannelIdFk($chn->getId());\r\n\t $pkg->setName($packageName);\r\n\t $pkg->setSummary($package['summary']);\r\n\t $pkg->setVersionInstalled($package['installed']);\r\n\t if (is_array($package['releases'])) {\r\n\t $pkg->setVersionLatest(\r\n\t reset(\r\n\t array_keys($package['releases'])\r\n\t )\r\n\t );\r\n\t }\r\n\t $pkg->setCreatedTime(now());\r\n\t \t\t\t$pkg->setUpdateTime(now());\r\n\t } else {\r\n\t // if the package already exists update it\r\n\t $pkg->setSummary($package['summary']);\r\n\t $pkg->setVersionInstalled($package['installed']);\r\n\t if (is_array($package['releases'])) {\r\n\t $pkg->setVersionLatest(\r\n\t reset(\r\n\t array_keys($package['releases'])\r\n\t )\r\n\t );\r\n\t }\r\n\t \t\t\t$pkg->setUpdateTime(now());\r\n\t }\r\n\t // set the package state\r\n $pkg->setState($helper->getPackageState($pkg));\r\n // save the package\r\n \t $pkg->save();\r\n \t // set package id to request params\r\n \t $this->getRequest()->setParam('id', $pkg->getId());\r\n \t $this->_forward('install');\r\n \t}\r\n } else {\r\n \tMage::getSingleton('adminhtml/session')->addError(\r\n $helper->__(\r\n '201.error.package-no-id'\r\n )\r\n );\r\n }\r\n // redirect to the licence overview\r\n $this->_redirect('*/*/');\r\n\t}", "private function registerApp()\n {\n $this->app->bind('utilities', function ($app) {\n return new Utilities($app);\n });\n\n $this->app->alias('utilities', 'RentalManager\\Utilities');\n }", "public function prepareDiscoverInstall()\n\t{\n\t\t$client = ApplicationHelper::getClientInfo($this->parent->extension->client_id);\n\t\t$manifestPath = $client->path . '/modules/' . $this->parent->extension->element . '/' . $this->parent->extension->element . '.xml';\n\t\t$this->parent->manifest = $this->parent->isManifest($manifestPath);\n\t\t$this->parent->setPath('manifest', $manifestPath);\n\t\t$this->setManifest($this->parent->getManifest());\n\t}", "protected function markModuleAsInstalled()\n {\n Mongez::updateStorageFile();\n }", "protected function registerExtensions()\n {\n $this->app['extensions'] = $this->app->share(function ($app) {\n return new ExtensionBag($app['files'], $app['extensions.finder'], $app, [], $app['cache']);\n });\n\n $this->app->alias('extensions', 'Cartalyst\\Extensions\\ExtensionBag');\n }", "public function onPostPackageInstall(PackageEvent $event) {\n $this->runPackageOperation($event);\n }", "public function getPackage() {}", "public function registeringPackage()\n {\n $this->app->singleton('centrifugo', function ($app) {\n return new LaravelCentrifugo(\n $app->make('config')->get('broadcasting.connections.centrifugo'),\n new HttpClient()\n );\n });\n\n $this->app->alias('centrifugo', 'Meetjet\\LaravelCentrifugo\\LaravelCentrifugo');\n $this->app->alias('centrifugo', 'Meetjet\\LaravelCentrifugo\\Contracts\\LaravelCentrifugoInterface');\n }", "protected function addInitialExtensionInformation()\n {\n $repository = ExtensionInformationRepositoryFactory::create();\n $packages = $this->packageManager->getAvailablePackages();\n $repository->addExtensionInformation($packages);\n }", "public function attach()\n\t{\n\t\t// Do nothing.\n\t}", "public function install();", "public function install();", "function installExtension($entry, $entryType='archive', $name=null )\r\n\t\t{\r\n switch(strtolower($entryType))\r\n\t\t\t{\r\n\t\t\t\tcase \"Folder\":\r\n\t\t\t\tcase \"folder\":\r\n\t\t\t\t\t// create a package array based on contents of folder\r\n\t\t\t\t\t\r\n\t\t\t\t\t$package = $this->createVirtualPackage( $entry );\r\n\t\t\t\t break;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\t//Build the appropriate paths\r\n\t\t\t\t\t$config =& JFactory::getConfig();\r\n\t\t\t\t\t$packageFile = $this->_extensionsPath.DS.$entry;\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Unpack the package file\r\n\t\t\t\t\t$package = JInstallerHelper::unpack($packageFile);\t\t\t\t\t\r\n\t\t\t\t break;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Get an installer instance, always get a new one\r\n\t\t\t$installer = new JInstaller();\r\n\t\r\n\t\t\t//setup for the install\r\n\t\t\tif ($package['dir'] && JFolder::exists($package['dir'])) {\r\n\t\t\t\t$installer->setPath('source', $package['dir']);\r\n\t\t\t} else {\r\n\t\t\t\t$this->setError( \"DSCInstaller::installExtension: \".JText::_( \"Package dir does not exist\" ) );\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\r\n\t\t\t//this makes sure the manifest file is loaded into the installer object\r\n\t\t\tif (!$installer->setupInstall()) \r\n\t\t\t{\r\n\t\t\t\t$this->setError( \"DSCInstaller::installExtension: \".JText::_( \"Could not load manifest file\" ) );\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\r\n\t\t\t//grab the manifest information\r\n\t\t\t$manifestInformation = $this->getManifestInformation($installer, $name);\r\n $savedParameters = new stdClass(); \r\n\t\t\t\t\r\n\t\t\t//set the installer to overwrite just encase any files were left on the server\r\n\t\t\t$installer->setOverwrite(true);\r\n\t\t\t//now that the extension was uninstalled if nessecary we can install it\r\n\t\t\tif (!$installer->install($package['dir'])) {\r\n\t\t\t\t//something blew up with the install if we get here\r\n\t\t\t\t$this->setError( \"DSCInstaller::installExtension: \".$installer->getError() );\r\n\t\t\t\t$result = false;\r\n\t\t\t} else {\r\n\t\t\t\t// Package installed sucessfully so publish the extension if set to yes\r\n\t\t\t\t$manifestInformation = $this->getManifestInformation($installer, $name);\r\n\t\t\t\t$publishExtension = $this->get( '_publishExtension', false );\r\n\r\n\t\t\t\tif ($publishExtension)\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->publishExtension($manifestInformation);\t\r\n\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t//restore extension parameters if requested\r\n\t\t\t\tif ($this->_saveParameters && isset($savedParameters->params)) {\r\n\t\t\t\t\t$this->restoreParameters($manifestInformation, $savedParameters);\r\n\t\t\t\t}\r\n\t\t\t\t$result = true;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Cleanup the install files\r\n\t\t\tif (!is_file($package['packagefile'])) {\r\n\t\t\t\t$config = JFactory::getConfig();\r\n\t\t\t\t$package['packagefile'] = $config->getValue('config.tmp_path').DS.$package['packagefile'];\r\n\t\t\t}\r\n\t\r\n\t\t\t//decide whether or not to delete the local copy\r\n\t\t\tif (!$this->_keepLocalCopy) {\r\n\t\t\t\t//delete temporary directory and install file\r\n\t\t\t\tJInstallerHelper::cleanupInstall($package['packagefile'], $package['extractdir']);\r\n\t\t\t} else {\r\n\t\t\t\t//just delete the temporary directory\r\n\t\t\t\tJInstallerHelper::cleanupInstall(\"\", $package['extractdir']);\r\n\t\t\t}\r\n\t\r\n\t\t\t//check to see if the install was successfull and if so return the manifestinformation\r\n\t\t\tif ($result) {\r\n\t\t\t\treturn $manifestInformation;\r\n\t\t\t} else {\r\n\t\t\t\t// error message is already set\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}", "function install() {}", "public static function attach() {\r\n \r\n if (is_null(self::$instance))\r\n throw new \\Exception(\"Can't attach a uninitialized application.\");\r\n \r\n return self::$instance;\r\n }", "private function composerInstall(string $package)\n {\n shell_exec(sprintf('composer require %s --dev', $package));\n }", "function addNamedPack($name) {\n if(empty($this->_packages[$name])) {\n include_once('pack.'.$name.'.inc');\n $c='x'.$name.'pack';\n $this->_packages[$name]=new $c();\n }\n }", "public function activate_extension(){}", "function registerPackage( $pRegisterHash ) {\n\t\tglobal $gBitSystem;\n\t\tif( $gBitSystem->isFeatureActive( 'kernel_autoscan_pkgs', FALSE ) ){\n\t\t\t$this->configPackage( $pRegisterHash );\n\t\t}\n\t}", "public function run()\n {\n $packages = [\n ['name' => 'Chipboard packaging'],\n ['name' => 'Container'],\n ['name' => 'Corrugated boxes'],\n ['name' => 'Foil sealed bags'],\n ['name' => 'Pallets'],\n ['name' => 'Paper board boxes'],\n ['name' => 'Plastic boxes'],\n ['name' => 'Polybags'],\n ['name' => 'Rigid boxes'],\n ['name' => 'Envelopes'],\n ];\n\n Package::insert($packages);\n }", "public function install() {\n\t\t$this->load->model('design/layout');\n\t\t$this->load->model('setting/setting');\n\n\t\t$settings = array();\n\n\t\t// Add a module for every possible layout, in the content_bottom position\n\t\tforeach ($this->model_design_layout->getLayouts() as $layout) {\n\t\t\t$settings['basket_capture_module'][] = array(\n\t\t\t\t'layout_id' => $layout['layout_id'],\n\t\t\t\t'position' => 'content_bottom',\n\t\t\t\t'status' => '1',\n\t\t\t\t'sort_order' => '1',\n\t\t\t);\n\t\t}\n\n\t\t// Save the settings\n\t\t$this->model_setting_setting->editSetting('basket_capture', $settings);\t\t\n\t}", "protected function storeExtension()\n\t{\n\t\t// Discover installs are stored a little differently\n\t\tif ($this->route === 'discover_install')\n\t\t{\n\t\t\t$manifest_details = Installer::parseXMLInstallFile($this->parent->getPath('manifest'));\n\n\t\t\t$this->extension->manifest_cache = json_encode($manifest_details);\n\t\t\t$this->extension->state = 0;\n\t\t\t$this->extension->name = $manifest_details['name'];\n\t\t\t$this->extension->enabled = 'editors' === $this->extension->folder ? 1 : 0;\n\t\t\t$this->extension->params = $this->parent->getParams();\n\n\t\t\tif (!$this->extension->store())\n\t\t\t{\n\t\t\t\t// Install failed, roll back changes\n\t\t\t\tthrow new \\RuntimeException(\\JText::_('JLIB_INSTALLER_ERROR_PLG_DISCOVER_STORE_DETAILS'));\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\t// Was there a plugin with the same name already installed?\n\t\tif ($this->currentExtensionId)\n\t\t{\n\t\t\tif (!$this->parent->isOverwrite())\n\t\t\t{\n\t\t\t\t// Install failed, roll back changes\n\t\t\t\tthrow new \\RuntimeException(\n\t\t\t\t\t\\JText::sprintf(\n\t\t\t\t\t\t'JLIB_INSTALLER_ABORT_PLG_INSTALL_ALLREADY_EXISTS',\n\t\t\t\t\t\t\\JText::_('JLIB_INSTALLER_' . $this->route),\n\t\t\t\t\t\t$this->name\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t$this->extension->load($this->currentExtensionId);\n\t\t\t$this->extension->name = $this->name;\n\t\t\t$this->extension->manifest_cache = $this->parent->generateManifestCache();\n\n\t\t\t// Update the manifest cache and name\n\t\t\t$this->extension->store();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Store in the extensions table (1.6)\n\t\t\t$this->extension->name = $this->name;\n\t\t\t$this->extension->type = 'plugin';\n\t\t\t$this->extension->ordering = 0;\n\t\t\t$this->extension->element = $this->element;\n\t\t\t$this->extension->folder = $this->group;\n\t\t\t$this->extension->enabled = 0;\n\t\t\t$this->extension->protected = 0;\n\t\t\t$this->extension->access = 1;\n\t\t\t$this->extension->client_id = 0;\n\t\t\t$this->extension->params = $this->parent->getParams();\n\n\t\t\t// Custom data\n\t\t\t$this->extension->custom_data = '';\n\n\t\t\t// System data\n\t\t\t$this->extension->system_data = '';\n\t\t\t$this->extension->manifest_cache = $this->parent->generateManifestCache();\n\n\t\t\t// Editor plugins are published by default\n\t\t\tif ($this->group === 'editors')\n\t\t\t{\n\t\t\t\t$this->extension->enabled = 1;\n\t\t\t}\n\n\t\t\tif (!$this->extension->store())\n\t\t\t{\n\t\t\t\t// Install failed, roll back changes\n\t\t\t\tthrow new \\RuntimeException(\n\t\t\t\t\t\\JText::sprintf(\n\t\t\t\t\t\t'JLIB_INSTALLER_ABORT_PLG_INSTALL_ROLLBACK',\n\t\t\t\t\t\t\\JText::_('JLIB_INSTALLER_' . $this->route),\n\t\t\t\t\t\t$this->extension->getError()\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// Since we have created a plugin item, we add it to the installation step stack\n\t\t\t// so that if we have to rollback the changes we can undo it.\n\t\t\t$this->parent->pushStep(array('type' => 'extension', 'id' => $this->extension->extension_id));\n\t\t}\n\t}", "function _addInstalledExtension($result) {\r\n\t\t\t$this->_installedExtensions[] = $result;\r\n\t\t}", "protected function getExtension()\n {\n return new PackerExtension();\n }", "public function postPackage(PackageEvent $event) {\n $this->handler->onPostPackageEvent($event);\n }", "public function addTangoAttribution($package_id = Zap::PACKAGE_ID)\n {\n }", "public function start_app_backup() {\n \n // Backups the files to update and save update\n (new MidrubBaseAdminCollectionUpdateHelpers\\Apps)->start_backup();\n \n }", "public function attach($component);", "function add_manifest() {\n\techo \"<link rel='manifest' href='\" . esc_url( ERI_SCAFFOLD_TEMPLATE_URL . '/manifest.json' ) . \"' />\";\n}", "public function install(){\r\n\t\t\r\n\t}", "public function installPackage()\n {\n try {\n return $this->render('@bolt/extend/_action-modal.twig', $this->getRenderContext());\n } catch (\\Exception $e) {\n return $this->getJsonException($e);\n }\n }", "public static function install($package_name, $version_param = false, $die_on_duplicate = true) {\n $package_info = json_decode(file_get_contents(self::URL.\"/$package_name.json\"), true);\n if(!isset($package_info['status'])) {\n //has package already been added to the app's packagist file\n $exists = isset(self::$_packages[$package_name]) ? self::$_packages[$package_name] : false;\n //check for matching version either new or existing ugradable\n $to_install = self::match($package_info, $version_param);\n if(($to_install===false)&&($exists!==true)&&($exists!==false)) {\n $to_install = self::match($package_info, $exists);\n }\n if($to_install!==false) {\n echo \"Downloading $package_name \".$to_install[\"version\"].\"\\n\";\n //download requires\n if(isset($to_install[\"require\"])) {\n foreach($to_install[\"require\"] as $rpackage => $version) {\n if($rpackage==\"php\") {\n $php_vmatch = []; preg_match('/([\\>\\=]+)\\s*([0-9\\.]+)/', $version, $php_vmatch);\n if(version_compare(phpversion(), $php_vmatch[2], $php_vmatch[1])==false) {\n die(\"PHP version $version required\"); }\n } elseif(strpos($rpackage, '/')!==false) {\n self::install($rpackage, $version, false);\n }\n }\n }\n //get directory names and create if not existing yet\n $name=$to_install[\"source\"][\"url\"];\n $name=substr($name, strlen('https://github.com/'));\n $name=str_replace('/', '-', substr($name, 0, strrpos($name, '.')));\n $id=substr($to_install[\"dist\"][\"reference\"], 0, 7);\n $package_directory = App::libs()->directory('Packagist.'.strtolower($name));\n $package_sub = $package_directory->directory(\"$name-$id\");\n if($package_sub->exists()) {\n if($die_on_duplicate) {\n die(\"Package version already installed\\n\");\n } else {\n echo \"Package version already installed\\n\";\n return false;\n }\n }\n if(!$package_directory->exists()) { $package_directory->create(); }\n //download file\n $package_zip = (string)FileHandler::system('package.zip');\n $fp = fopen($package_zip, 'w');\n $ch = curl_init($to_install[\"dist\"][\"url\"]);\n curl_setopt($ch, CURLOPT_TIMEOUT, 50);\n curl_setopt($ch, CURLOPT_FILE, $fp);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($ch,CURLOPT_USERAGENT,'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13');\n curl_exec($ch);\n curl_close($ch);\n fclose($fp);\n //extract package.zip\n $zip=new \\ZipArchive;\n $zip->open($package_zip);\n $zip->extractTo($package_directory);\n //remove zip\n unlink($package_zip);\n //add .exclude file\n $package_sub->file(\".exclude\")->write('');\n //get existing installed version\n $prev_versions = $package_directory->directories();\n //remove any existing key from autoload\n $prev_version_found = false;\n foreach($prev_versions as $prev_version) {\n $prev_version_name = $prev_version->name();\n if(($prev_version_name!==\"$name-$id\")&&isset(self::$_autoload[$prev_version_name])) {\n $prev_version_found = $prev_version_name;\n unset(self::$_autoload[$prev_version_name]);\n }\n }\n //let the user know the previous version has been removed from autoload\n if($prev_version_found!==false) {\n echo \"A previously installed version was detected and removed from the autoload.json in favor of the new version. The package files still exist in Libs/Packagist/$name/$prev_version_found\\n\";\n }\n //add autoload\n $classmap=[];\n if(isset($to_install['autoload'])) {\n // go through autoload\n foreach($to_install['autoload'] as $spec => $mapping) {\n if($spec=='classmap') {\n // loop through the files and fetch the fully qualified classnames\n // through regex\n foreach($mapping as $file) {\n // can also be directory\n $d=$package_sub->directory($file);\n $f=$package_sub->file($file, substr_count($file, '.'));\n if($d->exists()) {\n // look up files inside directory\n $d_files = $d->files(true);\n foreach($d_files as $d_f) {\n $classes = $d_f->classes();\n foreach($classes as $class) {\n $source = substr(\"$d_f\", strlen(\"$d\")+1);\n $classmap[$class]=\"$file/$source\";\n }\n }\n } else {\n $classes=$f->classes();\n foreach($classes as $class) {\n $classmap[$class]=$file;\n }\n }\n }\n } else if($spec=='files') {\n if(!isset($classmap['files'])) {\n $classmap['files']=[];\n }\n foreach($mapping as $file) {\n $classmap['files'][]=$file;\n }\n } else {\n // psr -> go through mapping\n foreach($mapping as $prefix => $source) {\n // get all files in source\n $directory=$package_sub->directory($source);\n $files=$directory->files(true);\n // loop through files and add to class mapping\n foreach($files as $file) {\n $classes=$file->classes();\n foreach($classes as $class) {\n $classmap[$class]=$source.substr($file, strlen($directory));\n }\n }\n }\n }\n }\n self::$_autoload[\"$name-$id\"] = $classmap; }\n\n self::$_packages[$package_name]='^'.trim($to_install[\"version\"], 'v');\n self::save();\n return true;\n }\n }\n return false;\n }", "public function detach($package);", "public function installExtension($md5)\n\t{\n\t\t$extension = $this->getExtensionNames($md5);\n\t\t$extension[0]->setHash($md5);\n\t\t$this->em->persist($extension[0]);\n\t\t$this->em->flush($extension[0]);\n\n\t\tif (isset($extension[1])) {\n\t\t\t$installer = $this->serviceLocator->getByType($extension[1]);\n\t\t\t$this->em->transactional(function () use ($installer) {\n\t\t\t\t$installer->install();\n\t\t\t});\n\t\t\t$this->em->flush();\n\t\t}\n\t}", "public function install() {\r\n \r\n }", "public function attach ( $owner ) {\n\t\tparent::attach($owner);\n\t}", "protected function registerMainClass()\n {\n $this->app['themify'] = $this->app->share(function ($app) {\n return new Themify(\n $app['themify.resolver'],\n $app['view.finder'],\n $app['events'],\n $app['config']\n );\n });\n }", "public function bootstrap($app);", "public function install() {\n\n\n }", "function on_install_module($module_name) {\n include('application.setup.php');\n return true;\n }", "public static function install(){\n\t}", "public function boot()\n {\n $this->package($this->packageName);\n }", "public function bootstrap(Application $app)\n {\n $this->app = $app;\n\n foreach (Package::all() as $name => $package) {\n $this->registerCommands($package);\n $this->registerProviders($package);\n $this->registerComponents($package);\n }\n }", "public function attach($component)\n\t{\n\t}", "public function onPostPackageUpdate(PackageEvent $event) {\n $this->setPackageUpdate();\n }", "public function activateWordPressPlugin(PackageEvent $event)\n {\n if (! $this->isWordPressPlugin($this->getPackage($event))) {\n return;\n }\n \n static::$plugin->getInstanceOf(PluginInteractor::class)->activate(\n $event->getComposer(),\n $event->getIO(),\n preg_replace('/^wpackagist-plugin\\//', '', $this->getPackageName($event))\n );\n }", "private function setAppOnContext()\n {\n if ($this->context instanceof KernelAwareContext) {\n $this->context->setApp($this->kernel);\n }\n }", "public function postPackageInstall ( Event $event ) {\n//\n// if( !file_exists( $config_file ) ){\n//\n// copy( './config/build-tool.php', base_path() . '/config/build-tool.php' );\n// }\n $event->getIO()->write( \"postPackageInstall\" );\n\n }", "protected function install(){ return true;}", "public function forPushPackage()\n {\n $this->router->group([], function ($router) {\n $router->post('{version}/pushPackages/{websitePushId}', [\n 'uses' => 'PackageController@show',\n ]);\n });\n }", "public function boot(): AppInterface;", "abstract public function createApplication();", "protected function install()\n {\n $this->modx->runProcessor('workspace/packages/scanLocal');\n $answer = $this->modx->runProcessor('workspace/packages/install',\n ['signature' => join('-', [self::PKG_NAME, self::PKG_VERSION, self::PKG_RELEASE])]\n );\n\n if ($answer) {\n $response = $answer->getResponse();\n echo $response['message'] . PHP_EOL;\n }\n\n $this->modx->getCacheManager()->refresh();\n $this->modx->reloadConfig();\n }", "private function packMeta()\n {\n $transport = $this->modx->fromJSON(file_get_contents(__DIR__ . '/../transport.json'));\n unset($transport['support']['db']);\n\n $this->builder->setPackageAttributes([\n 'changelog' => file_get_contents(__DIR__ . '/../meta/changelog.txt'),\n 'license' => file_get_contents(__DIR__ . '/../meta/license.txt'),\n 'readme' => file_get_contents(__DIR__ . '/../meta/readme.txt'),\n 'requires' => $transport['support']\n ]);\n }", "public function install()\n {\n }", "public function install()\n {\n }", "public function createPackageFile()\n\t{\n\t\t$packageFilePath = __DIR__ . \"/templates/packagefile.txt\";\n\n\t\t// If file exists, copy content into new file called package.json in project root.\n\t\tif($this->filesystem->exists($packageFilePath))\n\t\t{\n\t\t\t$this->filesystem->put('package.json', $this->filesystem->get($packageFilePath));\n\t\t}\n\t}", "function ad_activate(){\n\trequire_once(dirname(__FILE__).'/installer.php');\n}", "public function prepareDiscoverInstall()\n\t{\n\t\t$client = ApplicationHelper::getClientInfo($this->extension->client_id);\n\t\t$basePath = $client->path . '/plugins/' . $this->extension->folder;\n\n\t\tif (is_dir($basePath . '/' . $this->extension->element))\n\t\t{\n\t\t\t$manifestPath = $basePath . '/' . $this->extension->element . '/' . $this->extension->element . '.xml';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// @deprecated 4.0 - This path supports Joomla! 1.5 plugin folder layouts\n\t\t\t$manifestPath = $basePath . '/' . $this->extension->element . '.xml';\n\t\t}\n\n\t\t$this->parent->manifest = $this->parent->isManifest($manifestPath);\n\t\t$this->parent->setPath('manifest', $manifestPath);\n\t\t$this->setManifest($this->parent->getManifest());\n\t}", "function install($parent)\n\t{\n\t\t$this->com_install();\n\t}", "public function onAfterInstall()\n {\n craft()->amForms_install->install();\n }", "public function attach()\n {\n $this->detectReturnType();\n\n if (empty($_REQUEST['broker'])) return $this->fail(\"No broker specified\", 400);\n if (empty($_REQUEST['token'])) return $this->fail(\"No token specified\", 400);\n\n if (!$this->returnType) return $this->fail(\"No return url specified\", 400);\n\n $checksum = $this->generateAttachChecksum($_REQUEST['broker'], $_REQUEST['token']);\n\n if (empty($_REQUEST['checksum']) || $checksum != $_REQUEST['checksum']) {\n return $this->fail(\"Invalid checksum\", 400);\n }\n\n $this->startUserSession();\n $sid = $this->generateSessionId($_REQUEST['broker'], $_REQUEST['token']);\n\n $this->cache->set($sid, $this->getSessionData('id'));\n $this->outputAttachSuccess();\n }", "public function getPackageName(): string;", "function install()\n {\n }", "static protected function setup_extensions()\n\t{\n\t\treturn array('anavaro/eventmedals');\n\t}", "protected function saveToPackageCache() {}", "public static function registerPackage(Event $event)\n {\n $installedPackage = $event->getOperation()->getPackage();\n\n if (!self::isBundle($installedPackage)) {\n return;\n }\n\n self::enablePackage($installedPackage);\n }", "public function install( $args, $assoc_args ) {\n\n\t\tlist( $package ) = $args;\n\n\t\t$defaults = array(\n\t\t\t\t'version' => 'dev-master',\n\t\t\t);\n\t\t$assoc_args = array_merge( $defaults, $assoc_args );\n\n\t}", "public function install($data = array()) {\n\t\t$this->pkg = parent::install();\n\n\t// Installing\n\t\t $this->installOrUpgrade($data);\n\t}" ]
[ "0.5426096", "0.54190946", "0.53529376", "0.5242404", "0.52017766", "0.51311", "0.5119502", "0.5117796", "0.5117796", "0.5112254", "0.5111909", "0.5104101", "0.5102355", "0.50645405", "0.5060541", "0.5007857", "0.49526468", "0.49481705", "0.49430543", "0.4942909", "0.49337164", "0.49295902", "0.49265596", "0.491593", "0.48855147", "0.48826516", "0.48653725", "0.48605773", "0.4860364", "0.48468208", "0.4845708", "0.4844651", "0.48345748", "0.4816321", "0.48134357", "0.48022002", "0.47953832", "0.4786553", "0.47857776", "0.47846183", "0.47836533", "0.47777143", "0.47777143", "0.477291", "0.47727597", "0.4763661", "0.47614548", "0.47517878", "0.47484678", "0.47412798", "0.4725697", "0.47155634", "0.47032982", "0.4702339", "0.4697837", "0.46934852", "0.46873185", "0.46667716", "0.46667454", "0.4666147", "0.4664656", "0.4660395", "0.46304443", "0.46282783", "0.46260875", "0.46253446", "0.46235657", "0.46192312", "0.4598603", "0.45778844", "0.45675018", "0.45656726", "0.4565542", "0.45644295", "0.45593923", "0.4558734", "0.45581892", "0.45318276", "0.4529938", "0.45244443", "0.45206234", "0.45182684", "0.45153055", "0.45099744", "0.44983172", "0.44973195", "0.44973195", "0.44889402", "0.44887254", "0.44853127", "0.4475563", "0.447517", "0.44694364", "0.44653153", "0.4460841", "0.44569364", "0.44501153", "0.44467303", "0.44429597", "0.44427457" ]
0.7527348
0
Remove the package usage
public function detach($package);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function uninstall(){}", "public static function remove($package_name, $no_output=false) {\n if(isset(self::$_packages[$package_name])) {\n $version_installed = self::$_packages[$package_name];\n //remove from packagist\n unset(self::$_packages[$package_name]);\n self::save();\n //get package info\n $package_info = json_decode(file_get_contents(self::URL.\"/$package_name.json\"), true);\n $git_name = $package_info[\"package\"][\"repository\"];\n $git_name = substr($git_name, strrpos($git_name, '/', strrpos($git_name, '/') - strlen($git_name) - 1) + 1);\n //get all directories\n $package_directory = App::libs()->directory('Packagist.'.trim(str_replace('/', '-', strtolower($git_name))));\n $installed_versions = $package_directory->directories();\n //remove from autoload\n foreach($installed_versions as $version) {\n if(isset(self::$_autoload[$version->name()])) {\n unset(self::$_autoload[$version->name()]);\n }\n //remove version\n $version->remove();\n }\n self::save();\n //remove remaining directory\n $package_directory->remove();\n //show packages\n $to_install = self::match($package_info, $version_installed);\n $notice = \"\";\n foreach($to_install[\"require\"] as $p => $v) {\n if(strpos($p, '/')!==false) {\n $notice .= \"$p : $v\\n\";\n }\n }\n if(($notice!=\"\")&&($no_output===false)) {\n echo \"Don't forget, following packags were required by $package_name but might not be needed anymore\\n(You can run 'autoremove $package_name $version_installed' or 'autoremove $package_name' to remove them automatically\".PHP_EOL;\n echo $notice;\n }\n return true;\n }\n return false;\n }", "function uninstall() {\n\t}", "public function uninstall();", "public function uninstall();", "public static function uninstall(){\n }", "function uninstall()\n {\n \t// For now nothing in unistall, because we don't want user lose the data. \n }", "function uninstall(){\n\n }", "public function uninstall()\n {\n }", "public function uninstall()\n {\n }", "function pkg_delete($pkg_name) {\n\tglobal $g;\n\n\t$shortname = $pkg_name;\n\tpkg_remove_prefix($shortname);\n\n\tpkg_debug(\"Removing package {$shortname}\\n\");\n\tif (is_pkg_installed($pkg_name)) {\n\t\tpkg_call(\"delete -y \" . $pkg_name);\n\t\t/* Cleanup unnecessary dependencies */\n\t\tpkg_call(\"autoremove -y\");\n\t}\n}", "public static function uninstall() {\n\t\t}", "public function uninstall() {\n\n\n }", "function deinstallPackageDyntables() {\n @unlink('/usr/local/www/diag_dhcp_leases.php');\n @unlink('/usr/local/www/javascript/dyntables.js');\n @rename('/usr/local/pkg/diag_dhcp_leases.php.org', '/usr/local/www/diag_dhcp_leases.php');\n}", "public static function uninstall() {\n\n\t}", "public function removeUseStatements() {\n\t\t$this->processedClassCode = preg_replace(self::PATTERN_USE_STATEMENTS, '', $this->processedClassCode);\n\t}", "private function uninstall_OSF_PermissionsManagementTool()\n {\n // Get package info\n $installPath = \"{$this->permissions_management_tool_folder}\";\n\n // Uninstall\n $this->span(\"Uninstalling...\", 'info');\n $this->rm(\"{$installPath}/\", TRUE);\n $this->rm(\"/usr/bin/pmt\");\n }", "public function deleteUnusedFiles(){\n \n }", "protected function unsetHiddenModules() {}", "function complete_version_removal() { return ''; }", "function unsinstall()\n\t\t{\n\t\t}", "function onUninstall(){\n\tdelete_option( 'stackoverflowUser' );\n\tdelete_option( 'StackoverflowData' );\n}", "public function uninstall() {\n\t\tdelete_option('hotlink-no-more');\n\t}", "public function uninstall(): void\n {\n $this->output(\"TODO: Drop the journal table, remove the files and show the composer command to remove the package\");\n exit;\n }", "function dimaan_remove_version() { return ''; }", "public static function removeInstallToolEnableFile() {}", "function hook_uninstall() {\r\n\t\tupdate_options('foliamaptool', '');\r\n\t}", "protected function unsetModuleNameFromMongez()\n {\n Mongez::remove('modules', strtolower($this->moduleName));\n }", "public function unsetProvider();", "function uninstall_hook()\n\t\t{\n\t\t\t// Delete plugin options\t\t\t\n\t\t\tdelete_option('verify-meta-tags');\n\t\t}", "function runkit_function_remove($funcname)\n{\n}", "function remove_theme_mod($name)\n {\n }", "function remove_theme_mods()\n {\n }", "function startertheme_remove_version() {\nreturn '';\n}", "public function uninstall()\n\t{\n\t\treturn false;\n\t}", "public function uninstall()\n\t{\n\t\treturn false;\n\t}", "public function removeUsageRights() {}", "public function clear_util(){\n\t\t$this->util->purge();\n\t}", "public function uninstall()\n\t{\n\t\treturn true;\n\t}", "function uninstall() {\n\t\t/** globalising of the needed variables, objects and arrays */\n\t\tglobal $db, $apcms;\n\t\t\n\t\t$query = \"DELETE FROM `\".$apcms['table']['global']['plugins'].\"` WHERE `name`='apcms_sidebar_poweredby';\";\n\t\t$db->unbuffered_query($query);\n\t\n\t\t$query = \"DELETE FROM `\".$apcms['table']['global']['rightsidebar'].\"` WHERE `plugin`='apcms_sidebar_poweredby';\";\n\t\t$db->unbuffered_query($query);\n\t\t$query = \"DELETE FROM `\".$apcms['table']['global']['leftsidebar'].\"` WHERE `plugin`='apcms_sidebar_poweredby';\";\n\t\t$db->unbuffered_query($query);\n\t\t$query = \"DELETE FROM `\".$apcms['table']['global']['rightsidebar'].\"` WHERE `plugin`='apcms_sidebar_poweredby';\";\n\t\t$db->unbuffered_query($query);\n\t\n\t}", "protected function removeUselessUse(string $stub, string $namespaceExtends)\n {\n return str_replace(\"use $namespaceExtends;\\n\\n\", '', $stub);\n }", "protected static function removeDeprecationLogFile() {}", "function wrmp_uninstall()\n{\n\tif(!class_exists('WildcardPluginInstaller'))\n\t{\n\t\trequire_once MYBB_ROOT . 'inc/plugins/wrmp/classes/installer.php';\n\t}\n\t$installer = new WildcardPluginInstaller(MYBB_ROOT . 'inc/plugins/wrmp/install_data.php');\n\t$installer->uninstall();\n\n\t// delete our cached version\n\twrmp_unset_cache_version();\n}", "protected function uninstallCustom() : void\n {\n }", "private function uninstall_OSF_DatasetsManagementTool()\n {\n // Get package info\n $installPath = \"{$this->datasets_management_tool_folder}\";\n\n // Uninstall\n $this->span(\"Uninstalling...\", 'info');\n $this->rm(\"{$installPath}/\", TRUE);\n $this->rm(\"/usr/bin/dmt\");\n }", "public function uninstallHook()\n\t{\n\t\t$ok =\n\t\t\tdelete_option(CommentsEncryptMain::OPTION_PUB_KEY) &&\n\t\t\tdelete_option(CommentsEncryptMain::OPTION_PUB_KEY_HASH);\n\t\t\tdelete_option(CommentsEncryptMain::OPTION_STORE_AVATAR_HASHES)\n\t\t;\n\t}", "protected function uninstallCustom(): void\n {\n }", "function top10_remove() {\r\n//delete_option('omekafeedpull_omekaroot');\r\n}", "function cleanupPlugin($name)\n\t{\n\t\t$die = function($error, $code = 1) {\n\t\t\t\\cli\\out(\"%1{$error}%n\\n\");\n\t\t\texit($code);\n\t\t};\n\n\t\t$name = Str::slug($name);\n\n\t\t\\cli\\out(\"Cleaning up {$name}...\\n\");\n\n\t\t$composer = $this->path(\"/workbench/plugins/{$name}/composer.json\");\n\t\tif (!$this->files->exists($composer)) {\n\t \t\t$die(\"Coudn't find {$composer} for {$name}\", 1);\n\t \t}\n\n\t \t$package = json_decode( $this->files->get( $composer ) );\n\t \tif (false === $package) {\n\t \t\t$die(\"Coudn't read {$composer} for {$name}\", 2);\n\t \t}\n\n\t \t// remove from composer\n\t \t$process = $this->composer(\"remove {$package->name}\");\n\t\tif (!$process->isSuccessful()) {\n\t\t\t$die(\"Failed to remove {$package->name} from workbench\", 4);\n\t\t}\n\n\t \t// remove from studio\n\t \t$workbench_path = $this->path(\"/workbench/plugins/{$name}\");\n\t \t$process = $this->studio(\"unload {$workbench_path}\");\n\t \tif (!$process->isSuccessful()) {\n\t \t\t$die(\"Failed to unload {$package->name} from your workbench\", 8);\n\t \t}\n\n\t \t// delete the project\n\t \t$this->files->deleteDirectory($workbench_path);\n\t}", "function removeWhiteList($package, $editionCode)\n{\n $pathOfWhiteLists = __DIR__\n . '/../../../../tests/static/testsuite/Magento/Test/Integrity/_files/composer_require';\n\n $whiteList = include $pathOfWhiteLists . '/whitelist.php';\n $whiteListEE = include $pathOfWhiteLists . '/whitelist_ee.php';\n if ($editionCode === 'ee') {\n $whiteList = array_merge($whiteList, $whiteListEE);\n }\n $requiredPackages = (array) $package->get('require');\n foreach (array_keys($requiredPackages) as $requiredPackage) {\n if (!in_array($requiredPackage, $whiteList)) {\n $package->unsetProperty('require->' . $requiredPackage);\n }\n }\n return $package;\n}", "function uninstall($moduleName);", "public function uninstallPlugin()\n {\n }", "function runkit_method_remove($classname, $methodname)\n{\n}", "public function purgeDefault(): void;", "public static function uninstall() {\n\t\tUninstall::uninstall();\n\t}", "function pkg_remove_prefix(&$pkg_name) {\n\tglobal $g;\n\n\tif (substr($pkg_name, 0, strlen(g_get('pkg_prefix'))) ==\n\t g_get('pkg_prefix')) {\n\t\t$pkg_name = substr($pkg_name, strlen(g_get('pkg_prefix')));\n\t}\n}", "public function removeModule($name);", "public function uninstall()\n {\n\n $this->markUninstalled();\n //or call parent::uninstall(); \n }", "public function clearPackageHasArticless()\n {\n $this->collPackageHasArticless = null; // important to set this to NULL since that means it is uninitialized\n }", "function clean_installation()\n{\n $files = glob(VAR_FOLDER . DS . '*');\n foreach ($files as $file) {\n if (is_file($file) && $file !== DEFAULT_ACCOUNTFILE && $FILE !== DEFAULT_METAFILE) {\n unlink($file);\n }\n }\n}", "function bft_remove_version() {\n\treturn '';\n}", "function on_uninstall ()\n{\n}", "function on_uninstall ()\n{\n}", "function uninstallCustom(){\n return null;\n }", "public function uninstall() {\n\t\t$this->load->model( 'user/user_group' );\n\t\t// access - modify pavomenu edit\n\t\t$this->model_user_user_group->removePermission( $this->user->getId(), 'access', 'extension/module/pavomenu/menu' );\n\t\t$this->model_user_user_group->removePermission( $this->user->getId(), 'modify', 'extension/module/pavomenu/menu' );\n\t\t// END REMOVE USER PERMISSION\n\t}", "public function cleanModuleList()\n {\n /**\n * @var \\Magento\\TestFramework\\ObjectManager $objectManager\n */\n $objectManager = \\Magento\\TestFramework\\Helper\\Bootstrap::getObjectManager();\n $objectManager->removeSharedInstance(ModuleList::class);\n $objectManager->removeSharedInstance(ModuleListInterface::class);\n }", "function _drush_pm_uninstall($args) {\n $extension_info = drush_get_extensions();\n\n // classify $args in themes, modules or unknown.\n $modules = array();\n $themes = array();\n drush_pm_classify_extensions($args, $modules, $themes, $extension_info);\n $extensions = array_merge($modules, $themes);\n $unknown = array_diff($args, $extensions);\n\n // Discard and set an error for each unknown extension.\n foreach ($unknown as $name) {\n drush_log('DRUSH_PM_DISABLE_EXTENSION_NOT_FOUND', dt('!extension was not found and will not be uninstalled.', array('!extension' => $name)), 'warning');\n }\n\n // Discard extensions that are not installed.\n foreach ($extensions as $name) {\n if (!$extension_info[$name]->status && $extension_info[$name]->type == 'theme') {\n unset($themes[$name]);\n drush_log(dt('!extension is not installed.', array('!extension' => $name)), 'ok');\n }\n }\n\n // Discard default theme.\n if (!empty($themes)) {\n $default_theme = drush_theme_get_default();\n if (in_array($default_theme, $themes)) {\n unset($themes[$default_theme]);\n drush_log(dt('!theme is the default theme and can\\'t be disabled.', array('!theme' => $default_theme)), 'ok');\n }\n }\n\n if (!empty($modules)) {\n // Add enabled dependents to the list of modules to uninstall.\n $dependents = drush_module_dependents($modules, $extension_info);\n $dependents = array_intersect($dependents, drush_module_list());\n $modules = array_merge($modules, $dependents);\n\n // Discard required modules.\n $required = drush_drupal_required_modules($extension_info);\n foreach ($required as $module) {\n if (isset($modules[$module])) {\n unset($modules[$module]);\n $info = $extension_info[$module]->info;\n // No message for hidden modules.\n if (!isset($info['hidden'])) {\n $explanation = !empty($info['explanation']) ? ' ' . dt('Reason: !explanation', array('!explanation' => strip_tags($info['explanation']))) : '';\n drush_log(dt('!module is a required module and can\\'t be uninstalled.', array('!module' => $module)) . $explanation, 'ok');\n }\n }\n }\n }\n\n // Inform the user which extensions will finally be uninstalled.\n $extensions = array_merge($modules, $themes);\n if (empty($extensions)) {\n return drush_log(dt('There were no extensions that could be uninstall.'), 'ok');\n }\n else {\n drush_print(dt('The following extensions will be uninstalled: !extensions', array('!extensions' => implode(', ', $extensions))));\n if(!drush_confirm(dt('Do you really want to continue?'))) {\n return drush_user_abort();\n }\n }\n\n // Disable themes.\n if (!empty($themes)) {\n drush_theme_disable($themes);\n }\n\n // Uninstall modules and pass dependency validation in form submit.\n if (!empty($modules)) {\n drush_module_uninstall($modules);\n }\n\n // Inform the user of final status.\n $result_extensions = drush_get_named_extensions_list($extensions);\n $problem_extensions = array();\n foreach ($result_extensions as $name => $extension) {\n if (!$extension->status) {\n drush_log(dt('!extension was uninstalled successfully.', array('!extension' => $extension->name)), 'ok');\n }\n else {\n $problem_extensions[] = $extension->name;\n }\n }\n if (!empty($problem_extensions)) {\n return drush_set_error('DRUSH_PM_UNINSTALL_EXTENSION_ISSUE', dt('There was a problem uninstalling !extension.', array('!extension' => implode(',', $problem_extensions))));\n }\n}", "function purge_files(){\n\t//echo \"<pre>purge_files: To limit disk space, everytime you create an effect all previous files are removed</pre>\\n\";\n\t//echo \"<pre>purge_files: Removing *.png, *.dat,*.vir,*.txt,*.hls,*.gp,*.srt,.*.lms</pre>\\n\";\n\t$directory=getcwd();\n}", "function sunset_remove_meta_version(){\n return '' ;\n}", "function uninstall()\n\t{\n\t\t$GLOBALS['NO_DB_SCOPE_CHECK']=true;\n\t\t$GLOBALS['SITE_DB']->drop_if_exists('f_welcome_emails');\n\t\t$GLOBALS['NO_DB_SCOPE_CHECK']=false;\n\t}", "function plugin_uninstall() {\n\tdelete_option('access_token');\n\tdelete_option('insta_username');\n\tdelete_option('insta_user_id');\n\tdelete_option('insta_profile_picture');\n}", "public function uninstall()\n\t{\n\t\treturn FALSE;\n\t}", "function mailmaga_x_uninstall(){\n\t$mailmaga_x_data = new Mailmaga_x_install();\n\t$mailmaga_x_data->uninstall();\n}", "public function clearModules();", "public function removeRegisteredFiles() {}", "function crowdx_uninstall(){\r\n\r\n }", "public function usage() {}", "public function removeExtAddon($classname);", "public function remove($package)\n {\n if (!is_null($package)) {\n $package = '\"' . $package . '\"';\n }\n \n $this->process($package, 'remove');\n }", "function kadence_remove_demo() {\n if ( class_exists( 'ReduxFrameworkPlugin' ) ) {\n remove_filter( 'plugin_row_meta', array(\n ReduxFrameworkPlugin::instance(),\n 'plugin_metalinks'\n ), null, 2 );\n\n // Used to hide the activation notice informing users of the demo panel. Only used when Redux is a plugin.\n remove_action( 'admin_notices', array( ReduxFrameworkPlugin::instance(), 'admin_notices' ) );\n }\n }", "function bc_affiliation_uninstall() {\n}", "public function uninstall()\n {\n return true;\n }", "public function __unset($_name);", "function wpb_remove_version() {\nreturn '';\n}", "public function pruneCommand() {\n\t\t$count = $this->removeAllImages();\n\t\t$this->outputLine('%d record(s) purged.', [$count]);\n\t}", "function remove_demo() {\n\n // Used to hide the demo mode link from the plugin page. Only used when Redux is a plugin.\n if ( class_exists( 'ReduxFrameworkPlugin' ) ) {\n remove_filter( 'plugin_row_meta', array(\n ReduxFrameworkPlugin::instance(),\n 'plugin_metalinks'\n ), null, 2 );\n\n // Used to hide the activation notice informing users of the demo panel. Only used when Redux is a plugin.\n remove_action( 'admin_notices', array( ReduxFrameworkPlugin::instance(), 'admin_notices' ) );\n }\n }", "private function uninstall_OSF_OntologiesManagementTool()\n {\n // Get package info\n $installPath = \"{$this->ontologies_management_tool_folder}\";\n\n // Uninstall\n $this->span(\"Uninstalling...\", 'info');\n $this->rm(\"{$installPath}/\", TRUE);\n $this->rm(\"/usr/bin/omt\");\n }", "public function clearNamespace();", "function remove_cache_file()\n\t{\n\t\tglobal $phpbb_container;\n\n\t\t// Sanitise for future path use, it's escaped as appropriate for queries\n\t\t$p_class = str_replace(array('.', '/', '\\\\'), '', basename($this->module_class));\n\n\t\t$phpbb_container->get('cache.driver')->destroy('_modules_' . $p_class);\n\n\t\t// Additionally remove sql cache\n\t\t$phpbb_container->get('cache.driver')->destroy('sql', MODULES_TABLE);\n\t}", "function remove_demo() {\n\n // Used to hide the demo mode link from the plugin page. Only used when Redux is a plugin.\n if ( class_exists( 'ReduxFrameworkPlugin' ) ) {\n remove_filter( 'plugin_row_meta', array(\n ReduxFrameworkPlugin::instance(),\n 'plugin_metalinks'\n ), null, 2 );\n\n // Used to hide the activation notice informing users of the demo panel. Only used when Redux is a plugin.\n remove_action( 'admin_notices', array( ReduxFrameworkPlugin::instance(), 'admin_notices' ) );\n }\n }", "function wpb_remove_version() {\r\n return '';\r\n}", "function plugin_uninstall()\r\n{\r\n\tconf_delete_param('piwigopanorama_conf');\r\n\r\n\tpwg_query('ALTER TABLE `'. IMAGES_TABLE .'` DROP `is_panorama`;');\r\n}", "public function uninstall()\n {\n $query = \"ALTER TABLE `\" . Common::prefixTable('log_visit') . \"` DROP `location_provider`\";\n Db::exec($query);\n }", "function wpmudev_remove_version() {\nreturn '';\n}", "public function uninstall()\n {\n $registeredPlugin=GPCCore::getRegistered();\n if(count($registeredPlugin)>0)\n {\n return(l10n(\"Some plugins are dependent on Grum Plugin Classes: before uninstall, you must first uninstall the plugins dependent\"));\n }\n else\n {\n $this->deleteConfig();\n GPCCore::deleteConfig();\n GPCRequestBuilder::deleteConfig();\n $result=GPCRequestBuilder::deleteTables();\n return($result);\n }\n }", "function hello_world_remove() {\ndelete_option('ernaehrungsnews_anzahl');\ndelete_option('ernaehrungsnews_trimmer');\ndelete_option('ernaehrungsnews_kategorieId');\n\n}", "public static function prePackageUninstall(PackageEvent $event)\n {\n $package = $event->getOperation()->getPackage();\n $extra = $package->getExtra();\n\n if (isset($extra['fusioncms'])) {\n static::writeToAddonStorage($package->getName());\n }\n }", "public function removeObsolete()\n {\n // Remove files\n if (isset($this->obsolete['files']) && !empty($this->obsolete['files']))\n foreach ($this->obsolete['files'] as $file) {\n $f = JPATH_ROOT . '/' . $file;\n if (!$this->container->filesystem->has($f)) continue;\n $this->container->filesystem->delete($f);\n }\n\n // Remove folders\n if (isset($this->obsolete['folders']) && !empty($this->obsolete['folders']))\n foreach ($this->obsolete['folders'] as $folder) {\n $f = JPATH_ROOT . '/' . $folder;\n if (!$this->container->filesystem->has($f)) continue;\n $this->container->filesystem->delete($f);\n }\n }", "function usage()\n{\n exit(0);\n return;\n}", "public function uninstall(){\n MergeRequestComment::dropTable();\n MergeRequest::dropTable();\n CommitCache::dropTable();\n Repo::dropTable();\n Project::dropTable();\n }" ]
[ "0.68550855", "0.6674843", "0.65668994", "0.65453833", "0.65453833", "0.653464", "0.65149426", "0.6496075", "0.64959437", "0.64959437", "0.64502996", "0.6413974", "0.6395543", "0.63544655", "0.63543385", "0.6279193", "0.6248395", "0.62456983", "0.6236932", "0.6205971", "0.62031466", "0.6164939", "0.6141784", "0.61324424", "0.60729176", "0.6046871", "0.6029346", "0.59379363", "0.5931854", "0.5884837", "0.5850563", "0.58481646", "0.5829194", "0.5826199", "0.5816318", "0.5816318", "0.58088285", "0.58025557", "0.57920974", "0.57737297", "0.5769774", "0.57684606", "0.57665753", "0.5759466", "0.5752712", "0.5737356", "0.572731", "0.5723477", "0.57124346", "0.57083285", "0.56897175", "0.5688845", "0.56841034", "0.56813467", "0.5679841", "0.5679782", "0.56696874", "0.5664908", "0.5659472", "0.56464064", "0.5639713", "0.5638577", "0.5638577", "0.5630903", "0.56246763", "0.5623915", "0.5620903", "0.5617492", "0.56135213", "0.5602574", "0.5594771", "0.5592105", "0.55906516", "0.5573918", "0.5559464", "0.5552702", "0.55522025", "0.55485475", "0.55380577", "0.55375093", "0.5535535", "0.5535518", "0.5532068", "0.5511188", "0.5510324", "0.5505084", "0.5501195", "0.5496567", "0.54947734", "0.54917735", "0.54916805", "0.54891115", "0.54874635", "0.5486825", "0.5468331", "0.5465418", "0.54590374", "0.5439677", "0.54377127", "0.54315156" ]
0.56102884
69
Retrieves the list of css includes
public function getCss();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _getCSSIncludes () {\n $ret = array();\n foreach ($this->_styles as $stylesheet => $included) {\n if (!$included) {\n $this->_styles[$stylesheet] = true;\n array_push($ret, self::CSS_PATH . $stylesheet);\n }\n }\n\n return $ret;\n }", "public function getCssIncludes() {\n return $this->cssIncludes;\n }", "public function css_includes()\n {\n }", "public function getAllIncludes() {\n return array_merge($this->getJsIncludes(), $this->getCssIncludes());\n }", "public function get_css_files()\n\t{\n\t\treturn $this->_css_files;\n\t}", "function findCssFiles();", "function get_css_files() {\n\t$csslist = array();\n\n\t// List pfSense files, then any BETA files followed by any user-contributed files\n\t$cssfiles = glob(\"/usr/local/www/css/*.css\");\n\n\tif (is_array($cssfiles)) {\n\t\tarsort($cssfiles);\n\t\t$usrcss = $pfscss = $betacss = array();\n\n\t\tforeach ($cssfiles as $css) {\n\t\t\t// Don't display any login/logo page related CSS files\n\t\t\tif (strpos($css, \"login\") == 0 &&\n\t\t\t strpos($css, \"logo\") == 0) {\n\t\t\t\tif (strpos($css, \"BETA\") != 0) {\n\t\t\t\t\tarray_push($betacss, $css);\n\t\t\t\t} else if (strpos($css, \"pfSense\") != 0) {\n\t\t\t\t\tarray_push($pfscss, $css);\n\t\t\t\t} else {\n\t\t\t\t\tarray_push($usrcss, $css);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$css = array_merge($pfscss, $betacss, $usrcss);\n\n\t\tforeach ($css as $file) {\n\t\t\t$file = basename($file);\n\t\t\t$csslist[$file] = pathinfo($file, PATHINFO_FILENAME);\n\t\t}\n\t}\n\treturn $csslist;\n}", "public function print_includes() {\r\n $final_includes = '';\r\n\r\n foreach ($this->includes as $include) {\r\n // Check if it's a JS or a CSS file \r\n if (preg_match('/js$/', $include)) {\r\n // It's a JS file \r\n $final_includes .= '<script type=\"text/javascript\" src=\"' . $include . '\"></script>';\r\n } elseif (preg_match('/css$/', $include)) {\r\n // It's a CSS file \r\n $final_includes .= '<link href=\"' . $include . '\" rel=\"stylesheet\" type=\"text/css\" />';\r\n }\r\n\r\n return $final_includes;\r\n }\r\n }", "function stylesheets() {\n $sheets = func_get_args();\n foreach($this->included_stylesheets as $name) $sheets[] = $name;\n return $this->context->stylesheet_links($sheets, $this->base_url().\"/stylesheets\");\n }", "public function getIncludePaths()\n {\n return $this->filterPaths($this->includePaths);\n }", "function src_inc_list_css(string $assets_url, array $files) : string {\n $source = \"\";\n\n //Process the list of files\n foreach($files as $file){\n $source .= src_inc_css($assets_url.$file).\"\\n\\t\\t\";\n }\n\n return $source;\n}", "protected function _getFromCSS()\n {\n // styles to apply\n $styles = array();\n\n // list of the selectors to get in the CSS files\n $getit = array();\n\n // get the list of the selectors of each tags\n $lst = array();\n $lst[] = $this->value['id_lst'];\n for ($i=count($this->table)-1; $i>=0; $i--) {\n $lst[] = $this->table[$i]['id_lst'];\n }\n\n // foreach selectors in the CSS files, verify if it match with the list of selectors\n foreach ($this->cssKeys as $key => $num) {\n if ($this->_getReccursiveStyle($key, $lst)) {\n $getit[$key] = $num;\n }\n }\n\n // if we have selectors\n if (count($getit)) {\n // get them, but in the definition order, because of priority\n asort($getit);\n foreach ($getit as $key => $val) $styles = array_merge($styles, $this->css[$key]);\n }\n\n return $styles;\n }", "public function getCSS()\n\t{\n\t\t$css = array();\n\t\treturn $css;\n\t}", "public function GetHtmlHeadIncludes()\n {\n return array();\n }", "public function getCssFiles(): array\n {\n return $this->cssFiles;\n }", "function print_css_includes($extras = array())\r\n\t{\r\n\t foreach ($extras as $key => $extra)\r\n\t {\r\n\t $extras[$key] = $this->append_ext($extra, 'css');\r\n\t }\r\n\t \r\n\t $string = \"\";\r\n\t foreach ($extras as $css) \r\n\t {\r\n\t $string .= '<link href=\"' . $css . '\" rel=\"stylesheet\" type=\"text/css\" />' . \"\\n\";\r\n\t }\r\n\t \r\n\t foreach ($this->css_includes as $css) \r\n\t {\r\n\t $string .= '<link href=\"' . $css . '\" rel=\"stylesheet\" type=\"text/css\" />' . \"\\n\";\r\n\t }\r\n\t \r\n\t return $string;\r\n\t}", "public function renderIncludes($media = 'all')\n\t{\n\t\t$_ret\t\t\t= \"\\n\";\n\t\t$already_used\t= array();\n\t\t\n\t\tforeach($this->needed_css_include as $i)\n\t\t{\n\t\t\tif (!in_array($i, $already_used))\n\t\t\t{\n\t\t\t\t$_ret .= '<link rel=\"stylesheet\" type=\"text/css\" media=\"'.$media.'\" href=\"'.$i.'\" />'.\"\\n\";\n\t\t\t\tarray_push($already_used, $i);\n\t\t\t}\t\n\t\t}\n\n\t\treturn $_ret;\n\t}", "public function getCSSFiles() {\n //je krijgt op het einde .. en . terug, deze mag je niet opnemen in je links\n $cssFiles = scandir(\"css\", 1);\n \n return $cssFiles;\n }", "public function getAllCSS()\n {\n return $this->css;\n }", "function include_css( $strfilename, $params=NULL ){ \n\treturn CIncludeFiles :: includefiles( \"CIncludeCSSFiles\", $strfilename, $params );\t\n}", "function get_css_files_media_array();", "public function getCss()\n {\n $result = $this->_css;\n foreach ($this->_packages as $package) {\n $config = $this->getConfig($package);\n if (!empty($config['css'])) {\n foreach ($config['css'] as $item) {\n $result[] = $item;\n }\n }\n }\n return $result;\n }", "public function getCssSources(): string\n {\n return '<link rel=\"stylesheet\" type=\"text/css\" href=\"'\n . $this->uri\n . 'bower_components/jquery-ui/themes/ui-lightness/jquery-ui.min.css\" />'\n . '<link rel=\"stylesheet\" type=\"text/css\" href=\"'\n . $this->uri\n . 'bower_components/jquery-ui/themes/ui-lightness/theme.css\" />'\n . '<link rel=\"stylesheet\" type=\"text/css\" href=\"'\n . $this->uri\n . 'themes/default/style.css\" />';\n }", "function include_styles()\n{\n\tglobal $styles_included;\n\tforeach ($styles_included as $value)\n\t{\n\t\techo $value;\n\t}\n}", "public function get_css_common()\n {\n return array\n (\n \"lgwebapp.css\"\n );\n }", "public function getJavascriptIncludes() {}", "public static function getStylesheets() {\n\t\t$html = '';\n\t\t$_Stylesheets = Configuration::getStylesheets();\n\t\tforeach($_Stylesheets as $stylesheet) {\n\t\t\t$html .= '<link rel=\"stylesheet\" href=\"'.$stylesheet.'\" />'.PHP_EOL.\"\\t\";\n\t\t}\n\t\treturn $html;\n\t}", "public function configAction()\n {\n $styles = array_map(function ($fn) {\n return basename($fn, '.css');\n }, glob(App::locator()->get('highlight:assets/styles').'/*.css'));\n\n return compact('styles');\n }", "public function getIncludes()\r\n {\r\n return $this->includes;\r\n }", "public function getIncludes() {\n\n $array = array();\n\n $includes = $this->getSetting('includes');\n if(is_array($includes)){\n foreach($includes as $value){\n $array[$value] = $value;\n }\n }\n //die(debugArray($this->settings));//\n\n return $array;\n }", "public function getIncludePaths()\n\t{\n\t\tif (!is_array($this->_includePaths)) {\n\t\t\t$this->_includePaths = explode(PATH_SEPARATOR, (string)$this->_includePaths);\n\t\t}\n\t\t$paths = array();\n\t\tforeach ($this->_includePaths as $path) {\n\t\t\t$paths[] = $this->_isAbsolute($path)\n\t\t\t\t? $path\n\t\t\t\t: ($this->getAppPath() . '/' . $path);\n\t\t}\n\t\treturn $paths;\n\t}", "protected function getContentCssFileNames() {}", "public function getIncludes() {\n return $this->includes;\n }", "public static function getCss() {\n return self::get('_css', array());\n }", "public function getInclude()\n {\n return new Horde_Pear_Package_Contents_Include_Patterns(\n array('themes/' . basename($this->_root) . '/*'),\n $this->getRepositoryRoot()\n );\n }", "function get_the_css_urls() {\n\n md_get_the_css_urls();\n \n }", "private function getIncludes($fileName)\n {\n // we can assume things like proper line terminations\n \n $includes = array();\n // Get the directory name of the file so we can prepend it to relative paths\n $dir = dirname($fileName);\n \n // Split the contents of $fileName about requires and includes\n // We need to slice off the first element since that is the text up to the first include/require\n $requireSplit = array_slice(preg_split('/require|include/i', file_get_contents($fileName)), 1);\n \n // For each match\n foreach($requireSplit as $string)\n {\n // Substring up to the end of the first line, i.e. the line that the require is on\n $string = substr($string, 0, strpos($string, \";\"));\n \n // If the line contains a reference to a variable, then we cannot analyse it\n // so skip this iteration\n if(strpos($string, \"$\") !== false)\n continue;\n \n // Split the string about single and double quotes\n $quoteSplit = preg_split('/[\\'\"]/', $string);\n \n // The value of the include is the second element of the array\n // Putting this in an if statement enforces the presence of '' or \"\" somewhere in the include\n // includes with any kind of run-time variable in have been excluded earlier\n // this just leaves includes with constants in, which we can't do much about\n if($include = $quoteSplit[1])\n {\n // If the path is not absolute, add the dir and separator\n // Then call realpath to chop out extra separators\n if(strpos($include, ':') === FALSE)\n $include = realpath($dir.DIRECTORY_SEPARATOR.$include);\n \n array_push($includes, $include);\n }\n }\n \n return $includes;\n }", "function loadCSS() {\n\t\t$first = true;\n\t\t$cssPart = '';\n\t\tforeach( $this->conf->css->file as $file ) {\n\t\t\tif( ! $first ) {\n\t\t\t\t$cssPart .= chr( 9 );\n\t\t\t}\n\t\t\t$cssPart .= '<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"';\n\t\t\t$cssPart .= $this->conf->path->baseUrl . $this->conf->path->css . $file;\n\t\t\t$cssPart .= '\" />' . chr( 10 );\n\t\t\t$first = false;\n\t\t}\n\t\t\n\t\tif( count( $this->additionalCSS ) >= 1 ) {\n\t\t\tforeach( $this->additionalCSS as $key => $value ) {\n\t\t\t\t$cssPart .= '<style type=\"text/css\">' . chr( 10 );\n\t\t\t\t$cssPart .= $value . chr( 10 );\n\t\t\t\t$cssPart .= '</style>' . chr( 10 );\n\t\t\t}\n\t\t\n\t\t}\n\t\treturn $cssPart;\n\t}", "private function load_css () {\n $buffer = '';\n if (count($this->css_files)) {\n foreach ($this->css_files as $file) {\n $file = explode('/', $file);\n // TODO: use $this->config->item('modules_locations') for modules path\n $file = 'application/modules/'.$file[0].'/views/'.$this->get_skin().'/skin/'.implode('/',array_slice($file, 1));\n $buffer .= \"\\n\".'<link rel=\"stylesheet\" href=\"'.base_url($file).'\">';\n }\n return $buffer.\"\\n\";\n } else {\n return \"\\n\";\n }\n }", "function readStyles() { $this->ParseCSSFile();\n return $this->_stylelist; }", "private function _include_css($file) {\n\t\treturn $this->EE->elements->_include_css($file);\n\t}", "protected function getCssFilesFromConfig()\n {\n return $this->getConfig()->getHasUnglueConfigSection('css', []);\n }", "function include_css($files='')\n{\n $css_link = '';\n $css_root = get_stylesheet_directory_uri() . \"/css\";\n if (is_array($files)) {\n for ($i=0; $i < count($files); $i++) { \n $css_link .= \"<link rel='stylesheet'\";\n $css_link .= \" href='${css_root}/\" . $files[$i] . \".css' type='text/css'\";\n $css_link .= \" media='screen' />\\n\";\n }\n } elseif ($files == \"960\" || $files == \"960-24\") {\n $ns_files = array('reset','text');\n $cols_type = $files == \"960-24\" ? \"960_24_col\" : \"960\";\n array_push($ns_files, $cols_type);\n for ($i=0; $i < count($ns_files); $i++) { \n $css_link .= \"<link rel='stylesheet'\";\n $css_link .= \" href='${css_root}/960/code/css/\" . $ns_files[$i] . \".css' type='text/css'\";\n $css_link .= \" media='screen' />\\n\";\n }\n } else {\n $css_link .= \"<link rel='stylesheet'\";\n $css_link .= \" href='${css_root}/\" . $files . \".css' type='text/css' media='screen' />\\n\";\n }\n echo $css_link;\n}", "private function getStylesheets() {\n $themes = [];\n $stylesheet_options = [];\n $theme_handler = Drupal::service('theme_handler');\n\n foreach ($theme_handler->listInfo() as $name => $theme) {\n $themes = $theme_handler->listInfo();\n $names = $themes[$name]->info['name'];\n $path = DRUPAL_ROOT . '/' . $theme\n ->getPath();\n $stylesheete = $path . '/css/' . $name . '.' . 'ckeditor.css';\n $default_stylesheet = drupal_get_path('module', 'ckeditor_stylesheetparser') . '/js/plugins/stylesheetparser/samples/assets/sample.css';\n\n if (file_exists($stylesheete)) {\n $stylesheet_options = [$stylesheete => $names];\n } elseif (!file_exists($stylesheete)) {\n $stylesheet_options = [$default_stylesheet => $names];\n }\n return $stylesheet_options ;\n }\n }", "static public function getCssContent($file)\n {\n // Don't try to parse empty (or non-existing) files\n if (empty($file)) return null;\n\n // Skip files that have already been included\n static $files = array();\n if (in_array($file, $files)) {\n return null;\n } else {\n $files[] = $file;\n }\n\n // Initialize the buffer\n $buffer = @file_get_contents($file);\n if (empty($buffer)) return null;\n\n // Initialize the basepath\n $basefile = ScriptMergeHelper::getFileUrl($file, false);\n\n // Follow all @import rules\n if (ScriptMergeHelper::getParams()->get('follow_imports', 1) == 1) {\n if (preg_match_all('/@import\\ url\\((.*)\\);/i', $buffer, $matches)) {\n foreach ($matches[1] as $index => $match) {\n\n // Strip quotes\n $match = str_replace('\\'', '', $match);\n $match = str_replace('\"', '', $match);\n\n $importFile = ScriptMergeHelper::getFilePath($match, $file);\n if (empty($importFile) && strstr($importFile, '/') == false) $importFile = dirname($file).'/'.$match;\n $importBuffer = ScriptMergeHelper::getCssContent($importFile);\n\n if (!empty($importBuffer)) {\n $buffer = str_replace($matches[0][$index], \"\\n\".$importBuffer.\"\\n\", $buffer);\n } else {\n $buffer = \"\\n/* ScriptMerge error: CSS import of $importFile returned empty */\\n\\n\".$buffer;\n }\n }\n }\n }\n\n // Replace all relative paths with absolute paths\n if (preg_match_all('/url\\(([^\\(]+)\\)/i', $buffer, $url_matches)) {\n foreach ($url_matches[1] as $url_index => $url_match) {\n\n // Strip quotes\n $url_match = str_replace('\\'', '', $url_match);\n $url_match = str_replace('\"', '', $url_match);\n\n // Skip CSS-stylesheets which need to be followed differently anyway\n if (strstr($url_match, '.css')) continue;\n\n // Skip URLs and data-URIs\n if (preg_match('/^(http|https):\\/\\//', $url_match)) continue;\n if (preg_match('/^\\/\\//', $url_match)) continue;\n if (preg_match('/^data\\:/', $url_match)) continue;\n\n // Normalize this path\n $url_match_path = ScriptMergeHelper::getFilePath($url_match, $file);\n if (empty($url_match_path) && strstr($url_match, '/') == false) $url_match_path = dirname($file).'/'.$url_match;\n if (!empty($url_match_path)) $url_match = ScriptMergeHelper::getFileUrl($url_match_path);\n \n // Include data-URIs in CSS as well\n if (ScriptMergeHelper::getParams()->get('data_uris', 0) == 1) {\n $imageContent = ScriptMergeHelper::getDataUri($url_match_path);\n if (!empty($imageContent)) {\n $url_match = $imageContent;\n }\n }\n\n $buffer = str_replace($url_matches[0][$url_index], 'url('.$url_match.')', $buffer);\n }\n }\n\n // Detect PNG-images and try to replace them with WebP-images\n if (preg_match_all('/([a-zA-Z0-9\\-\\_\\/]+)\\.(png|jpg|jpeg)/i', $buffer, $matches)) {\n foreach ($matches[0] as $index => $image) {\n $webp = ScriptMergeHelper::getWebpImage($image);\n if ($webp != false && !empty($webp)) {\n $buffer = str_replace($image, $webp, $buffer);\n } \n }\n }\n\n // If compression is enabled\n $compress_css = ScriptMergeHelper::getParams()->get('compress_css', 0);\n if ($compress_css > 0) {\n\n switch ($compress_css) {\n\n case 1: \n $buffer = preg_replace('#[\\r\\n\\t\\s]+//[^\\n\\r]+#', ' ', $buffer);\n $buffer = preg_replace('/[\\r\\n\\t\\s]+/s', ' ', $buffer);\n $buffer = preg_replace('#/\\*.*?\\*/#', '', $buffer);\n $buffer = preg_replace('/[\\s]*([\\{\\},;:])[\\s]*/', '\\1', $buffer);\n $buffer = preg_replace('/^\\s+/', '', $buffer);\n $buffer .= \"\\n\";\n break;\n\n case 2:\n // Compress the CSS-code\n $cssMin = JPATH_SITE.'/components/com_scriptmerge/lib/cssmin.php';\n if(file_exists($cssMin)) include_once $cssMin;\n if(class_exists('CssMin')) {\n $buffer = CssMin::minify($buffer);\n }\n break;\n\n case 0:\n default:\n break;\n }\n\n // If compression is disabled\n } else { \n\n // Append the filename to the CSS-code\n if(ScriptMergeHelper::getParams()->get('use_comments', 1)) {\n $start = \"/* [start] ScriptMerge CSS-stylesheet: $basefile */\\n\\n\";\n $end = \"/* [end] ScriptMerge CSS-stylesheet: $basefile */\\n\\n\";\n $buffer = $start.$buffer.\"\\n\".$end;\n }\n }\n\n return $buffer;\n }", "function includeCss($fileName) {\n $data = '<link type=\"text/css\" rel=\"Stylesheet\" href=\"'.BASE_PATH.'/public/css/'.$fileName.'.css\" />';\n return $data;\n }", "protected function getAllStaticFiles()\n {\n $dir = $this->dirList->getPath('static');\n $js = [];\n $css = [];\n $this->getDirContents($dir, $js, $css);\n $result = [self::A_JS => $js, self::A_CSS => $css];\n return $result;\n }", "public function getAutoLoadCss()\n\t{\n\t\treturn $this->autoLoadCss;\n\t}", "function getIncludeDirs() {\n return $this->includeDirs;\n }", "protected function getEnqueuingStyles() { \n return array(\n dirname( __FILE__ ) . '/asset/token-input.css',\n dirname( __FILE__ ) . '/asset/token-input-facebook.css',\n dirname( __FILE__ ) . '/asset/token-input-mac.css', \n dirname( __FILE__ ) . '/asset/token-input-admin_page_framework.css', \n );\n }", "public function styles() {\n $styles = array();\n if (\\File::isDirectory(public_path('assets/fontello/css'))) {\n foreach (glob(public_path('assets/fontello/css/') . '*', GLOB_BRACE) as $path) {\n $file = explode('/', $path);\n $styles[] = \\HTML::style('public/assets/fontello/css/' . end($file));\n }\n\n return join(\"\\n\", $styles);\n }\n }", "function cssFiles($cssFile = false) {\n\t\n\tif ($cssFile) $this->cssFiles[] = $cssFile;\n\telse return $this->cssFiles;\n }", "public static function getExternalStylesheets()\n\t{\n\t\t$stylesheets = new \\DomDocument('1.0', 'utf-8');\n\t\t$stylesheets->appendChild($root = $stylesheets->createElement('stylesheets'));\n\t\tforeach (self::$externalStylesheets as $asset)\n\t\t{\n\t\t\t$root->appendChild($external = $stylesheets->createElement('stylesheet'));\n\t\t\t$external->setAttribute('href', $asset->path);\n\t\t\tif (isset($asset->media) && $asset->media)\n\t\t\t{\n\t\t\t\t$external->setAttribute('media', $asset->media);\n\t\t\t}\n\t\t}\n\t\treturn $stylesheets;\n\t}", "public function include_css($env) {\n global $CFG;\n $css = '';\n $cssurl = $CFG->dirroot . '/course/format/ludimoodle/motivators/' . $this->get_short_name() . '/styles.css';\n\n // We can't require css like this in format because <head> is already closed\n //$page = $env->get_page();\n //$page->requires->css($cssurl);\n\n // if css is not already in page\n if (file_exists($cssurl) && (!in_array($cssurl, $env->cssinitdata))) {\n // mark that this css is in page\n $env->cssinitdata[] = $cssurl;\n $css = '<style>' . file_get_contents($cssurl) . '</style>';\n }\n return $css;\n }", "private function parseCSS(){\n\t\t// collect all unique values from the arrays in $links\n\t\t$css_links = array();\n\t\tforeach ($this->links as $key => $paths) {\n\t\t\tforeach ($paths as $key => $value) {\n\t\t\t\t$css_links[] = $value;\n\t\t\t}\n\t\t}\n\t\t$css_links = array_unique($css_links);\n\t\tsort($css_links);\n\t\t// loop through all values look for files\n\t\tforeach ($css_links as $value) {\n\t\t\tif(count(explode('.', $value)) > 1){\n\t\t\t\t$temp = explode('.', $value);\n\t\t\t\t$qry = false;\n\t\t\t\t// if a file is found, see if it has a querystring\n\t\t\t\tforeach ($temp as $key => $css) {\n\t\t\t\t\tif(count(explode('?', $css)) > 1){\n\t\t\t\t\t\t$temp[$key] = explode('?', $css);\n\t\t\t\t\t\t$qry = $key;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// if it has a query string, remove it\n\t\t\t\tif($qry){\n\t\t\t\t\t$type = $temp[$qry][0];\n\t\t\t\t// otherwise, just grab the extension\n\t\t\t\t} else {\n\t\t\t\t\t$type = count($temp);\n\t\t\t\t\t$type = $temp[$type-1];\n\t\t\t\t}\n\t\t\t\t// check if the file extension is css\n\t\t\t\tif($type === 'css'){\n\t\t\t\t\t// ensure path to file exists\n\t\t\t\t\t$path = 'http://'.$this->url.$value;\n\t\t\t\t\tif(@file_get_contents($path)){\n\t\t\t\t\t\t// add file to $visited\n\t\t\t\t\t\t$this->visited[] = $value;\n\t\t\t\t\t\t// set current path for relativePathFiX()\n\t\t\t\t\t\t$dir = explode('/', $value);\n\t\t\t\t\t\tarray_pop($dir);\n\t\t\t\t\t\t$this->current_path = implode('/', $dir).'/';\n\t\t\t\t\t\t// open the file to start parsing\n\t\t\t\t\t\t$file = file_get_contents($path);\n\t\t\t\t\t\t$imgs = array();\n\t\t\t\t\t\t// find all occurrences of the url() method used to include images\n\t\t\t\t\t\tpreg_match_all(\"%.*url\\('*(.*)[^\\?]*\\).*\\)*%\", $file, $matches);\n\t\t\t\t\t\t// loop through occurrences\n\t\t\t\t\t\tforeach ($matches[1] as $key => $img) {\n\t\t\t\t\t\t\t// check if a query string is attached to the image (used to prevent caching)\n\t\t\t\t\t\t\tif(count(explode('?', $img)) > 1){\n\t\t\t\t\t\t\t\t// if there is, remove it and fix the path\n\t\t\t\t\t\t\t\t$temp = explode('?', $img);\n\t\t\t\t\t\t\t\t$imgs[] = $this->relativePathFix($temp[0]);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// if there isn't a query string, make sure to remove the closing bracket\n\t\t\t\t\t\t\t\t$temp = explode(')', $img);\n\t\t\t\t\t\t\t\t$imgs[] = $this->relativePathFix($temp[0]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// if images were found, add them to $links\n\t\t\t\t\t\tif(count($imgs) > 0){\n\t\t\t\t\t\t\t$this->links[$value] = $imgs;\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}", "static public function getCSS() {\n\t\treturn self::$css;\n\t}", "public function getLocalStylesheets($withNULL = false)\n\t{\n\t\t\n\t\t$_dir = sfConfig::get('sf_web_dir').'/css';\n\t\t$files = array();\n\t\t\n\t\tif( $withNULL )\n\t\t{\n\t\t\t$files[NULL] = NULL;\n\t\t}\n\t\t\n\t\t$handle = opendir($_dir);\n\t\t\n\t\twhile (false !== ($file = readdir($handle))) {\n\t if($file == '.' or $file == '..' )\n\t {\n\t \tcontinue;\n\t }\n\t $files[$file] = $file;\n\t }\n \t\n\t closedir($handle);\n\t return $files; \n\t}", "function get_css_header();", "public function getStylesheets()\n {\n return array('/cpCmsPlugin/css/widget.css' => 'all');\n }", "public function getConcatenateCss() {}", "public function loadIncludes() {\n // TODO: better way to skip load includes.\n $this->addCSS($this->env->dir['tmp_files'] . '/css.min.css');\n $this->addJS('/tmp/js.min.js');\n }", "function happys_getCssAssets() {\n\t \t $filepath = glob(\"wp-content/themes/happys/css/app-v*.css\");\n\t\t $filename = basename($filepath[count($filepath) - 1]).PHP_EOL;\n\t \t echo $filename;\n }", "protected function get_assets() {\n\t\treturn [\n\t\t\tnew StyleAsset(\n\t\t\t\tself::CSS_HANDLE,\n\t\t\t\tself::CSS_URI\n\t\t\t),\n\t\t];\n\t}", "private function _print_html_head_css()\n\t{\n\t\t$output = \"\";\n\t\t\n\t\t//Check if theme defined\n\t\t$theme = ($this->theme) ? $this->theme : '';\n\t\t\n\t\tforeach($this->css as $style) {\n\t\t\t$skip = FALSE;\n\t\t\t\n\t\t\t$partpath = (strpos($style, '.css') === FALSE) ? \"{$theme}css/{$style}.css\" : \"/{$style}\";\n\t\t\t$fullpath = Ashtree_Common::get_real_path($partpath, TRUE);\n\t\t\t$this->_debug->log(\"INFO\", \"Including stylesheet '{$fullpath}'\");\n\t\t\t\n\t\t\tif (!file_exists($fullpath)) {\n\t\t\t\t$this->_debug->status('ABORT');\n\t\t\t\t\n\t\t\t\t$partpath = \"css/{$style}.css\";\n\t\t\t\t$fullpath = ASH_BASEPATH . $partpath;\n\t\t\t\t$this->_debug->log(\"INFO\", \"Including stylesheet '{$fullpath}'\");\n\t\t\t\n\t\t\t\tif (!file_exists($partpath)) {\n\t\t\t\t $skip = TRUE;\n\t\t\t\t} else {\n\t\t\t\t $this->_debug->clear();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif ($skip) {\n\t\t\t\t$this->_debug->status('ABORT');\n\t\t\t} else {\n\t\t\t\t$this->_debug->status('OK');\n\t\t\t\t$fullpath = Ashtree_Common::get_real_path($fullpath);\n\t\t\t\t$output .= \"<link type=\\\"text/css\\\" media=\\\"screen\\\" rel=\\\"stylesheet\\\" href=\\\"{$fullpath}\\\" />\\n\";\n\t\t\t}\n\t\t\t\n\t\t}//foreach\n\t\t\n\t\t$output .= \"<style type=\\\"text/css\\\">\\n\";\n\t\t\n\t\tforeach($this->style as $style) {\n\t\t\t$output .= \"\\t{$style}\\n\";\n\t\t}//foreach\n\t\t\n\t\t$output .= \"</style>\\n\";\n\t\t\n\t\treturn $output;\n\t}", "public function getStyleSheets()\n {\n return $this->style_sheets;\n }", "public function getStylesheetDependencies()\n\t{\n\t\treturn $this->stylesheetDependencies;\n\t}", "public function read_css() {\r\n\t\t// 1. wir müssen wissen, welche Thema zZ. aktiv ist.\r\n\t\t$cssfile = $this->get_cssfile_name();\r\n\t\t// 2. den Inhalt der CSS-Datei auslesen\r\n\t\t$csscont = $this->read_cssfile($cssfile);\r\n\t\treturn $csscont;\r\n\t}", "function allLoadCss($path){\n \n $diretorio = dir($path);\n\n while($arquivo = $diretorio -> read()){\n //verifica apenas as extenções do css \n if(strpos($arquivo, '.css')!==FALSE)\n echo (\"<link rel='stylesheet' href='\".BARRA.url_base.BARRA.$path.$arquivo.\"' type='text/css' />\\n\");\n }\n $diretorio -> close();\n\n }", "static public function extract_css( $content ) {\n\t\t$content = preg_replace( '~<!--.*?-->~s', '', $content );\n\n\t\t$tags_files = array();\n\n\t\t$matches = null;\n\t\tif ( preg_match_all( '~<link\\s+([^>]+)/?>(.*</link>)?~Uis', $content,\n\t\t\t\t$matches, PREG_SET_ORDER ) ) {\n\t\t\tforeach ( $matches as $match ) {\n\t\t\t\t$attrs = array();\n\t\t\t\t$attr_matches = null;\n\t\t\t\tif ( preg_match_all( '~(\\w+)=[\"\\']([^\"\\']*)[\"\\']~', $match[1],\n\t\t\t\t\t\t$attr_matches, PREG_SET_ORDER ) ) {\n\t\t\t\t\tforeach ( $attr_matches as $attr_match ) {\n\t\t\t\t\t\t$attrs[$attr_match[1]] = trim( $attr_match[2] );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ( isset( $attrs['href'] ) && isset( $attrs['rel'] ) &&\n\t\t\t\t\tstristr( $attrs['rel'], 'stylesheet' ) !== false &&\n\t\t\t\t\t( !isset( $attrs['media'] ) || stristr( $attrs['media'], 'print' ) === false ) ) {\n\t\t\t\t\t$tags_files[] = array( $match[0], $attrs['href'] );\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tif ( preg_match_all( '~@import\\s+(url\\s*)?\\(?[\"\\']?\\s*([^\"\\'\\)\\s]+)\\s*[\"\\']?\\)?[^;]*;?~is',\n\t\t\t\t$content, $matches, PREG_SET_ORDER ) ) {\n\t\t\tforeach ( $matches as $match )\n\t\t\t\t$tags_files[] = array( $match[0], $match[2] );\n\t\t}\n\n\t\treturn $tags_files;\n\t}", "public function getIncludedModules ();", "public function getIncludedSniffs()\n {\n return array();\n }", "public function getCssSnippet() {\n $sResult = '';\n\n foreach ($this->_aCss as $sSrc) {\n $sResult .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"' . $sSrc . '\" />' . PHP_EOL;\n }\n\n return $sResult;\n }", "static function get_queued_styles() {\n\t\tglobal $wp_styles;\n\n\t\t$loading_styles = array();\n\t\tforeach ( $wp_styles->queue as $key => $handle ) {\n\t\t\t$loading_styles[ $handle ] = $wp_styles->registered[ $handle ]->src;\n\t\t}\n\t\treturn $loading_styles;\n\t}", "function generate_css() {\r\n global $config;\r\n\r\n $res = '';\r\n foreach ($config['css']as $v) {\r\n $res .= \"<link rel=\\\"stylesheet\\\" type=\\\"text/css\\\" href=\\\"$v\\\"/>\";\r\n }\r\n return $res;\r\n}", "function retrieve_path_values($css_list)\n{\n $path_list = array_map('_get_path_values',$css_list);\n return $path_list;\n}", "public function getIncluded()\n {\n return $this->with[$this->getIncludedConfig()] ?? [];\n }", "function getStyles () {\n return array(\"template.css\");\n }", "public function get_macros () {\n\t\t\treturn array(\n\t\t\t\t'style_url' => get_stylesheet_directory_uri(),\n\t\t\t\t'home_url' => get_home_url(),\n\t\t\t\t'site_url' => get_site_url(),\n\t\t\t);\n\t\t}", "public function INCLUDE_CSS(array $conf) {\n if($conf && count($conf)) {\n foreach ($conf as $key => $CSSfile) {\n $cssFileConfig = &$conf[$key . '.'];\n if (isset($cssFileConfig['if.']) && !$GLOBALS['TSFE']->cObj->checkIf($cssFileConfig['if.'])) {\n continue;\n }\n $ss = $cssFileConfig['external'] ? $CSSfile : $GLOBALS['TSFE']->tmpl->getFileName($CSSfile);\n if ($ss) {\n if ($cssFileConfig['import']) {\n if (!$cssFileConfig['external'] && $ss[0] !== '/') {\n // To fix MSIE 6 that cannot handle these as relative paths (according to Ben v Ende)\n $ss = TYPO3\\CMS\\Core\\Utility\\GeneralUtility::dirname(GeneralUtility::getIndpEnv('SCRIPT_NAME')) . '/' . $ss;\n }\n $this->pageRenderer->addCssInlineBlock('import_' . $key, '@import url(\"' . htmlspecialchars($ss) . '\") ' . htmlspecialchars($cssFileConfig['media']) . ';', empty($cssFileConfig['disableCompression']), $cssFileConfig['forceOnTop'] ? TRUE : FALSE, '');\n } else {\n $this->pageRenderer->addCssFile(\n $ss,\n $cssFileConfig['alternate'] ? 'alternate stylesheet' : 'stylesheet',\n $cssFileConfig['media'] ?: 'all',\n $cssFileConfig['title'] ?: '',\n empty($cssFileConfig['disableCompression']),\n $cssFileConfig['forceOnTop'] ? TRUE : FALSE,\n $cssFileConfig['allWrap'],\n $cssFileConfig['excludeFromConcatenation'] ? TRUE : FALSE,\n $cssFileConfig['allWrap.']['splitChar']\n );\n unset($cssFileConfig);\n }\n }\n }\n }\n }", "public function getCssClasses(): array;", "public function getJsIncludes() {\n return $this->jsIncludes;\n }", "function get_css_files() {\n\n wp_enqueue_style( 'cookieconsent', get_template_directory_uri() . '/vendor/cookieconsent/cookieconsent.min.css' );\n\twp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/vendor/bootstrap/bootstrap.min.css' );\n\twp_enqueue_style( 'styles', get_template_directory_uri() . '/css/styles.css' );\n\n}", "public function addIncludes($param)\n\t{\n\t\tif(is_array($param))\n\t\t{\n\t\t\tforeach($param as $p)\n\t\t\t{\n\t\t\t\tarray_push($this->needed_css_include, $p);\n\t\t\t}\n\n\t\t} else {\n\t\t\tarray_push($this->needed_css_include, $param); \n\t\t}\n\t}", "protected function getStylesheets()\n {\n $stylesheets = parent::getStylesheets();\n $stylesheets[] = 'styles/css/minimal/minimal.css';\n return $stylesheets;\n }", "public function getIncludedSniffs()\n\t{\n\n\treturn array(\n\t\t'Zend'\n\t\t);\n\n\t\t// return array(\n\t\t// \t'Generic/Sniffs/PHP/DisallowShortOpenTagSniff.php',\n\t\t// \t// 'Generic/Sniffs/WhiteSpace/DisallowTabIndentSniff.php',\n\t\t// \t'PEAR/Sniffs/Classes/ClassDeclarationSniff.php',\n\t\t// \t'PEAR/Sniffs/ControlStructures/ControlSignatureSniff.php',\n\t\t// \t'PEAR/Sniffs/Files/LineEndingsSniff.php',\n\t\t// \t'PEAR/Sniffs/Functions/FunctionCallArgumentSpacingSniff.php',\n\t\t// \t'PEAR/Sniffs/Functions/FunctionCallSignatureSniff.php',\n\t\t// \t'PEAR/Sniffs/Functions/ValidDefaultValueSniff.php',\n\t\t// \t'PEAR/Sniffs/WhiteSpace/ScopeClosingBraceSniff.php',\n\t\t// \t'Squiz/Sniffs/Functions/GlobalFunctionSniff.php',\n\t\t// );\n\n\t}", "public function getConstList(){\n\t\treturn $this->getConstantsList();\n\t}", "function show_all_styles() {\n\tglobal $wp_styles;\n\t\n\t// arrange the queue based on its dependency\n\t$wp_styles->all_deps($wp_styles->queue);\t\n\t\n\t// The result\n\t$handles = $wp_styles->to_do;\n\t\n\t$css_code = '';\n\n\t// New file location: E:xampp\\htdocs\\wordpress\\wp-content\\theme\\wdc\\merged-style.css\n\t$merged_file_location = get_stylesheet_directory() .'/_/css/merged-style.css';\n\t$merged_file = file_get_contents($merged_file_location);\n\t//echo '<pre>';print_r($wp_styles->queue);echo '</pre>';\n\t// loop all styles\n\tforeach ($handles as $handle)\n\t{\n\t\t/*\n\t\t\tClean up the url, for example: wp-content/themes/wdc/style.min.css?v=4.6\n\t\t\tbecome wp-content/themes/wdc/style.min.css\n\t\t*/\n\t\t$src = strtok($wp_styles->registered[$handle]->src, '?');\n\t\t\n\t\t// #1. Combine CSS File.\n\t\t// If the src is url\t\t\n\t\tif (strpos($src, 'http') !== false || strpos($src, 'https') !== false) {\n\t\t\t// Get thr site url, e.g. http://webdevzoom.com/wordpress\n\t\t\t$site_url = site_url();\n\t\t\n\t\t\t/*\n\t\t\t\tIf the css file come from local server, change the full url into relative path\n\t\t\t\tFor example: http://webdevzoom.com/wordpress/wp-content/plugins/wpnewsman/css/menuicon.css\n\t\t\t\tBecome: /wp-content/plugins/wpnewsman/css/menuicon.css\n\t\t\t\t\n\t\t\t\tOtherwise, leave it as is, e.g: https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css\n\t\t\t*/\n\t\t\tif (strpos($src, $site_url) !== false)\n\t\t\t\t$css_file_path = str_replace($site_url, '', $src);\n\t\t\telse\n\t\t\t\t$css_file_path = $src;\n\t\t\t\n\t\t\t/*\n\t\t\t\tIn order to be able to use file_get_contents function, we need to remove preceding slash,\n\t\t\t\tFor example: /wp-content/plugins/wpnewsman/css/menuicon.css\n\t\t\t\tBecome: wp-content/plugins/wpnewsman/css/menuicon.css\n\t\t\t*/\n\t\t\t$css_file_path = ltrim($css_file_path, '/');\n\t\t} else {\t\t\t\n\t\t\t$css_file_path = ltrim($src, '/');\n\t\t}\n\t\t\n\t\t// Check wether file exists then merge\n\t\tif (file_exists($css_file_path)) {\n\t\t\t$css_code .= file_get_contents($css_file_path);\n\t\t}\n\t}\n\n\t// write the merged styles into current theme directory\n\tif ($merged_file != $css_code) {\n\tfile_put_contents ($merged_file_location , $css_code);\n\t}\n\t\n\t// #2. Load the URL of merged file\n\twp_enqueue_style('merged-style', get_stylesheet_directory_uri() . '/_/css/merged-style.css');\n\t\n\t// #3. Deregister all handles\n\tforeach ($handles as $handle)\n\t{\n\t\twp_deregister_style($handle);\n\t}\n\n\t\n}", "function head_css()\n\t{\n\t\tqa_html_theme_base::head_css();\n\t\t// if if already added widgets have a css file activated\n\t\t$styles = array();\n\t\tforeach ($this->content['widgets'] as $region_key => $regions) {\n\t\t\tforeach ($regions as $template_key => $widgets) {\n\t\t\t\t$position = strtoupper(substr($region_key,0,1) . substr($template_key,0,1) );\n\t\t\t\tforeach ($widgets as $key => $widget) {\n\t\t\t\t\t$widget_name = get_class ($widget);\n\t\t\t\t\t$widget_key = $widget_name.'_'.$position;\n\t\t\t\t\t$file = get_widget_option($widget_key, 'uw_styles');\n\t\t\t\t\t// if file existed then put it into an array to prevent duplications\n\t\t\t\t\tif($file)\n\t\t\t\t\t\t$styles[$widget_name][$file]=true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// add styling files to theme\n\t\tif($styles)\n\t\t\tforeach ($styles as $widget_name => $files)\n\t\t\t\tforeach ($files as $file => $verified)\n\t\t\t\t\tif( $file != 'none' )\n\t\t\t\t\t\t$this->output('<link rel=\"stylesheet\" href=\"'.UW_URL.'widgets/'.$widget_name.'/styles/'.$file.'\"/>');\n\t}", "function css_list() {\n?>\n<link rel=\"Stylesheet\" type=\"text/css\" href=\"/schedule/css/style.css\" /> \n\n<?php \n }", "public function get_file_list()\n {\n return array(\n 'sources_custom/hooks/systems/addon_registry/geshi.php',\n 'sources_custom/geshi/.htaccess',\n 'sources_custom/geshi/index.html',\n 'sources_custom/geshi/4cs.php',\n 'sources_custom/geshi/abap.php',\n 'sources_custom/geshi/actionscript.php',\n 'sources_custom/geshi/actionscript3.php',\n 'sources_custom/geshi/ada.php',\n 'sources_custom/geshi/apache.php',\n 'sources_custom/geshi/applescript.php',\n 'sources_custom/geshi/apt_sources.php',\n 'sources_custom/geshi/asm.php',\n 'sources_custom/geshi/asp.php',\n 'sources_custom/geshi/autohotkey.php',\n 'sources_custom/geshi/autoit.php',\n 'sources_custom/geshi/avisynth.php',\n 'sources_custom/geshi/awk.php',\n 'sources_custom/geshi/bash.php',\n 'sources_custom/geshi/basic4gl.php',\n 'sources_custom/geshi/bf.php',\n 'sources_custom/geshi/bibtex.php',\n 'sources_custom/geshi/blitzbasic.php',\n 'sources_custom/geshi/bnf.php',\n 'sources_custom/geshi/boo.php',\n 'sources_custom/geshi/c.php',\n 'sources_custom/geshi/c_mac.php',\n 'sources_custom/geshi/caddcl.php',\n 'sources_custom/geshi/cadlisp.php',\n 'sources_custom/geshi/cfdg.php',\n 'sources_custom/geshi/cfm.php',\n 'sources_custom/geshi/cil.php',\n 'sources_custom/geshi/clojure.php',\n 'sources_custom/geshi/cmake.php',\n 'sources_custom/geshi/cobol.php',\n 'sources_custom/geshi/cpp-qt.php',\n 'sources_custom/geshi/cpp.php',\n 'sources_custom/geshi/csharp.php',\n 'sources_custom/geshi/css.php',\n 'sources_custom/geshi/cuesheet.php',\n 'sources_custom/geshi/d.php',\n 'sources_custom/geshi/dcs.php',\n 'sources_custom/geshi/delphi.php',\n 'sources_custom/geshi/diff.php',\n 'sources_custom/geshi/div.php',\n 'sources_custom/geshi/dos.php',\n 'sources_custom/geshi/dot.php',\n 'sources_custom/geshi/eiffel.php',\n 'sources_custom/geshi/email.php',\n 'sources_custom/geshi/erlang.php',\n 'sources_custom/geshi/fo.php',\n 'sources_custom/geshi/fortran.php',\n 'sources_custom/geshi/freebasic.php',\n 'sources_custom/geshi/fsharp.php',\n 'sources_custom/geshi/gambas.php',\n 'sources_custom/geshi/gdb.php',\n 'sources_custom/geshi/genero.php',\n 'sources_custom/geshi/gettext.php',\n 'sources_custom/geshi/glsl.php',\n 'sources_custom/geshi/gml.php',\n 'sources_custom/geshi/gnuplot.php',\n 'sources_custom/geshi/groovy.php',\n 'sources_custom/geshi/haskell.php',\n 'sources_custom/geshi/hq9plus.php',\n 'sources_custom/geshi/html4strict.php',\n 'sources_custom/geshi/idl.php',\n 'sources_custom/geshi/ini.php',\n 'sources_custom/geshi/inno.php',\n 'sources_custom/geshi/intercal.php',\n 'sources_custom/geshi/io.php',\n 'sources_custom/geshi/java.php',\n 'sources_custom/geshi/java5.php',\n 'sources_custom/geshi/javascript.php',\n 'sources_custom/geshi/jquery.php',\n 'sources_custom/geshi/kixtart.php',\n 'sources_custom/geshi/klonec.php',\n 'sources_custom/geshi/klonecpp.php',\n 'sources_custom/geshi/latex.php',\n 'sources_custom/geshi/lisp.php',\n 'sources_custom/geshi/locobasic.php',\n 'sources_custom/geshi/logtalk.php',\n 'sources_custom/geshi/lolcode.php',\n 'sources_custom/geshi/lotusformulas.php',\n 'sources_custom/geshi/lotusscript.php',\n 'sources_custom/geshi/lscript.php',\n 'sources_custom/geshi/lsl2.php',\n 'sources_custom/geshi/lua.php',\n 'sources_custom/geshi/m68k.php',\n 'sources_custom/geshi/make.php',\n 'sources_custom/geshi/mapbasic.php',\n 'sources_custom/geshi/matlab.php',\n 'sources_custom/geshi/mirc.php',\n 'sources_custom/geshi/mmix.php',\n 'sources_custom/geshi/modula3.php',\n 'sources_custom/geshi/mpasm.php',\n 'sources_custom/geshi/mxml.php',\n 'sources_custom/geshi/mysql.php',\n 'sources_custom/geshi/newlisp.php',\n 'sources_custom/geshi/nsis.php',\n 'sources_custom/geshi/oberon2.php',\n 'sources_custom/geshi/objc.php',\n 'sources_custom/geshi/ocaml-brief.php',\n 'sources_custom/geshi/ocaml.php',\n 'sources_custom/geshi/oobas.php',\n 'sources_custom/geshi/oracle11.php',\n 'sources_custom/geshi/oracle8.php',\n 'sources_custom/geshi/pascal.php',\n 'sources_custom/geshi/per.php',\n 'sources_custom/geshi/perl.php',\n 'sources_custom/geshi/perl6.php',\n 'sources_custom/geshi/php-brief.php',\n 'sources_custom/geshi/php.php',\n 'sources_custom/geshi/pic16.php',\n 'sources_custom/geshi/pike.php',\n 'sources_custom/geshi/pixelbender.php',\n 'sources_custom/geshi/plsql.php',\n 'sources_custom/geshi/povray.php',\n 'sources_custom/geshi/powerbuilder.php',\n 'sources_custom/geshi/powershell.php',\n 'sources_custom/geshi/progress.php',\n 'sources_custom/geshi/prolog.php',\n 'sources_custom/geshi/properties.php',\n 'sources_custom/geshi/providex.php',\n 'sources_custom/geshi/purebasic.php',\n 'sources_custom/geshi/python.php',\n 'sources_custom/geshi/qbasic.php',\n 'sources_custom/geshi/rails.php',\n 'sources_custom/geshi/rebol.php',\n 'sources_custom/geshi/reg.php',\n 'sources_custom/geshi/robots.php',\n 'sources_custom/geshi/rsplus.php',\n 'sources_custom/geshi/ruby.php',\n 'sources_custom/geshi/sas.php',\n 'sources_custom/geshi/scala.php',\n 'sources_custom/geshi/scheme.php',\n 'sources_custom/geshi/scilab.php',\n 'sources_custom/geshi/sdlbasic.php',\n 'sources_custom/geshi/smalltalk.php',\n 'sources_custom/geshi/smarty.php',\n 'sources_custom/geshi/sql.php',\n 'sources_custom/geshi/systemverilog.php',\n 'sources_custom/geshi/tcl.php',\n 'sources_custom/geshi/teraterm.php',\n 'sources_custom/geshi/text.php',\n 'sources_custom/geshi/thinbasic.php',\n 'sources_custom/geshi/tsql.php',\n 'sources_custom/geshi/typoscript.php',\n 'sources_custom/geshi/vb.php',\n 'sources_custom/geshi/vbnet.php',\n 'sources_custom/geshi/verilog.php',\n 'sources_custom/geshi/vhdl.php',\n 'sources_custom/geshi/vim.php',\n 'sources_custom/geshi/visualfoxpro.php',\n 'sources_custom/geshi/visualprolog.php',\n 'sources_custom/geshi/whitespace.php',\n 'sources_custom/geshi/whois.php',\n 'sources_custom/geshi/winbatch.php',\n 'sources_custom/geshi/xml.php',\n 'sources_custom/geshi/xorg_conf.php',\n 'sources_custom/geshi/xpp.php',\n 'sources_custom/geshi/z80.php',\n 'sources_custom/geshi.php',\n 'sources_custom/geshi/.gitignore',\n 'sources_custom/geshi/6502acme.php',\n 'sources_custom/geshi/6502kickass.php',\n 'sources_custom/geshi/6502tasm.php',\n 'sources_custom/geshi/68000devpac.php',\n 'sources_custom/geshi/aimms.php',\n 'sources_custom/geshi/algol68.php',\n 'sources_custom/geshi/arm.php',\n 'sources_custom/geshi/asymptote.php',\n 'sources_custom/geshi/autoconf.php',\n 'sources_custom/geshi/bascomavr.php',\n 'sources_custom/geshi/c_loadrunner.php',\n 'sources_custom/geshi/c_winapi.php',\n 'sources_custom/geshi/chaiscript.php',\n 'sources_custom/geshi/chapel.php',\n 'sources_custom/geshi/coffeescript.php',\n 'sources_custom/geshi/cpp-winapi.php',\n 'sources_custom/geshi/dart.php',\n 'sources_custom/geshi/dcl.php',\n 'sources_custom/geshi/dcpu16.php',\n 'sources_custom/geshi/e.php',\n 'sources_custom/geshi/ecmascript.php',\n 'sources_custom/geshi/epc.php',\n 'sources_custom/geshi/euphoria.php',\n 'sources_custom/geshi/ezt.php',\n 'sources_custom/geshi/f1.php',\n 'sources_custom/geshi/falcon.php',\n 'sources_custom/geshi/freeswitch.php',\n 'sources_custom/geshi/genie.php',\n 'sources_custom/geshi/go.php',\n 'sources_custom/geshi/gwbasic.php',\n 'sources_custom/geshi/haxe.php',\n 'sources_custom/geshi/hicest.php',\n 'sources_custom/geshi/html5.php',\n 'sources_custom/geshi/icon.php',\n 'sources_custom/geshi/ispfpanel.php',\n 'sources_custom/geshi/j.php',\n 'sources_custom/geshi/jcl.php',\n 'sources_custom/geshi/lb.php',\n 'sources_custom/geshi/ldif.php',\n 'sources_custom/geshi/llvm.php',\n 'sources_custom/geshi/magiksf.php',\n 'sources_custom/geshi/modula2.php',\n 'sources_custom/geshi/nagios.php',\n 'sources_custom/geshi/netrexx.php',\n 'sources_custom/geshi/nginx.php',\n 'sources_custom/geshi/nimrod.php',\n 'sources_custom/geshi/objeck.php',\n 'sources_custom/geshi/octave.php',\n 'sources_custom/geshi/oorexx.php',\n 'sources_custom/geshi/oxygene.php',\n 'sources_custom/geshi/oz.php',\n 'sources_custom/geshi/parasail.php',\n 'sources_custom/geshi/parigp.php',\n 'sources_custom/geshi/pcre.php',\n 'sources_custom/geshi/pf.php',\n 'sources_custom/geshi/pli.php',\n 'sources_custom/geshi/postgresql.php',\n 'sources_custom/geshi/postscript.php',\n 'sources_custom/geshi/proftpd.php',\n 'sources_custom/geshi/pycon.php',\n 'sources_custom/geshi/pys60.php',\n 'sources_custom/geshi/q.php',\n 'sources_custom/geshi/qml.php',\n 'sources_custom/geshi/racket.php',\n 'sources_custom/geshi/rbs.php',\n 'sources_custom/geshi/rexx.php',\n 'sources_custom/geshi/rpmspec.php',\n 'sources_custom/geshi/rust.php',\n 'sources_custom/geshi/scl.php',\n 'sources_custom/geshi/spark.php',\n 'sources_custom/geshi/sparql.php',\n 'sources_custom/geshi/standardml.php',\n 'sources_custom/geshi/stonescript.php',\n 'sources_custom/geshi/unicon.php',\n 'sources_custom/geshi/upc.php',\n 'sources_custom/geshi/urbi.php',\n 'sources_custom/geshi/uscript.php',\n 'sources_custom/geshi/vala.php',\n 'sources_custom/geshi/vbscript.php',\n 'sources_custom/geshi/vedit.php',\n 'sources_custom/geshi/xbasic.php',\n 'sources_custom/geshi/yaml.php',\n 'sources_custom/geshi/zxbasic.php',\n );\n }", "public function getInitFiles() {\n $aOut = array();\n foreach ($this->getBasePaths('init') as $aPaths) {\n foreach ($aPaths as $aInfo) {\n $aOut[] = $aInfo['path'];\n }\n }\n foreach ($this->getBasePaths('include') as $aPaths) {\n foreach ($aPaths as $aInfo) {\n $aOut[] = $aInfo['path'];\n }\n }\n return $aOut;\n }", "function GetStylesheetes()\n{\n $isMobile = check_user_agent('mobile') === false && @$_GET['screen'] != 'mobile' ? false :true;\n $append = $isMobile ? '.mobile.css':'.css';\n $stylesheets = GetTheDataArray(array('theme','stylesheet'));\n $returnData = '';\n foreach($stylesheets as $key => $style)\n {\n $file = '';\n if($key == 'core') {\n //include core stylesheet and decide if mobile stylesheet should be used\n if(check_user_agent('mobile') === false && @$_GET['screen'] != 'mobile')\n {\n $style = $style['primary'];\n\n } else {\n $style = $style['mobile'];\n\n }\n\n $httpFile = base_url().'theme/'.THEMESELECTED.'/css/'.$style;\n $file = THEMEPATH.THEMESELECTED.'/css/'.$style;\n //including files from project data css folder configured in projectconfig.php\n } elseif($key == 'include'){\n foreach($style as $st)\n {\n $httpFile = base_url().'project/'.PROJECT.'/data/css/'.$st.$append;\n $file = PROJECTROOT.PROJECT.'/data/css/'.$st.$append;\n }\n\n }\n\n if(file_exists($file))\n {\n $returnData .= '<link rel=\"stylesheet\" href=\"'.$httpFile.'\"/>';\n }\n\n }\n //adding include files depending on what device is being used\n foreach($stylesheets['core']['includes'] as $includes)\n {\n $returnData .= '<link rel=\"stylesheet\" href=\"'.base_url().'theme/'.THEMESELECTED.'/css/includes/'.$includes.$append.'\"/>';\n }\n //adding animation files\n if(iteraxcontroller::Instance()->it->data['theme']['animations'] === true)\n {\n foreach($stylesheets['animations'] as $includes)\n {\n $returnData .= '<link rel=\"stylesheet\" href=\"'.base_url().'theme/'.THEMESELECTED.'/css/animation/'.$includes.'\"/>';\n }\n }\n\n\n return $returnData;\n}", "public function getImports();", "public function includeLibs()\n {\n $string = '';\n\n if($this->css_files)\n {\n foreach( $this->css_files as &$css_file )\n {\n $string .= '<link rel=\"stylesheet\" href=\"' . $css_file . '\" type=\"text/css\" />';\n }\n }\n \n if($this->js_files)\n {\n foreach( $this->js_files as &$js_file )\n {\n $string .= PHP_EOL . '<script src=\"' . $js_file . '\" type=\"text/javascript\"></script>';\n }\n }\n $this->tpl->assign(\"libs\", $string . PHP_EOL);\n }", "public function includedPaths()\n {\n if ($this->includedPaths === null) {\n return $this->defaultIncludedPaths();\n }\n\n return $this->includedPaths;\n }", "private function _include_css()\n {\n if ( !$this->cache['css'] )\n {\n $this->EE->cp->add_to_head('<style type=\"text/css\">\n .vz_range { padding-bottom:0.5em; }\n .vz_range input { width:97%; padding:4px; }\n .vz_range_min { float:left; width:46%; }\n .vz_range_max { float:right; width:46%; }\n .vz_range_sep { float:left; width:8%; text-align:center; line-height:2; }\n</style>');\n\n $this->cache['css'] = TRUE;\n }\n }", "private function includes() {\n \t$includes = array(\n \t\t'/includes/event-custom-post-type.php',\n \t\t'/includes/shortcodes.php',\n \t\t'/includes/display-helper.php',\n \t\t'/includes/query-helper.php'\n \t);\n \t\n \t$admin_includes = array();\n \t\n \tif ( file_exists( dirname( __FILE__ ) . '/includes/cmb2/init.php' ) ) {\n \trequire_once dirname( __FILE__ ) . '/includes/cmb2/init.php';\n } elseif ( file_exists( dirname( __FILE__ ) . '/includes/CMB2/init.php' ) ) {\n \trequire_once dirname( __FILE__ ) . '/includes/CMB2/init.php';\n }\n \n \t// Load files\n \tforeach ( $includes as $file ) {\n \t\tif ( file_exists( dirname( __FILE__ ) . $file ) ) {\n \t\t\trequire_once dirname( __FILE__ ) . $file;\n \t\t}\n \t}\n \n \t// Load admin files\n \tif ( is_admin() ) {\n \t\tforeach ( $admin_includes as $file ) {\n \t\t\tif ( file_exists( dirname( __FILE__ ) . $file ) ) {\n \t\t\t\trequire_once dirname( __FILE__ ) . $file;\n \t\t\t}\n \t\t}\n \t}\n }", "public function get_styles() {\n\t\treturn [];\n\t}", "private function loadCss($dir)\n {\n $css = [];\n if(file_exists($dir.'objavi.css')){\n $css[] = file_get_contents($dir.'objavi.css');\n }\n if(file_exists($dir.'css/extra.css')){\n $css[] = file_get_contents($dir.'css/extra.css');\n }\n\n return $css;\n }" ]
[ "0.82072735", "0.7944311", "0.72464216", "0.70641977", "0.6952895", "0.6868816", "0.6771906", "0.67717993", "0.66399837", "0.65441114", "0.6468665", "0.6461765", "0.6454715", "0.6450248", "0.6433037", "0.6425735", "0.6421455", "0.64133936", "0.6412627", "0.64053965", "0.63861656", "0.636504", "0.6337096", "0.63282394", "0.62953454", "0.62722105", "0.6260931", "0.6251702", "0.62505", "0.6228935", "0.62222683", "0.6177865", "0.6175147", "0.61744434", "0.6161118", "0.6154816", "0.61542284", "0.61519116", "0.61343867", "0.6124337", "0.60242164", "0.59949076", "0.59588355", "0.5948775", "0.5937711", "0.5931396", "0.59055424", "0.58997726", "0.5899444", "0.5877498", "0.5867723", "0.58672345", "0.5837471", "0.58305436", "0.5828132", "0.5828097", "0.58192486", "0.58134806", "0.58081836", "0.579415", "0.57776016", "0.5774191", "0.5769601", "0.5759704", "0.57581854", "0.5754791", "0.575341", "0.5747143", "0.57471365", "0.57433754", "0.5740144", "0.573338", "0.571935", "0.5717558", "0.5699199", "0.5695954", "0.5678548", "0.56737596", "0.5663325", "0.5662683", "0.5662527", "0.5660325", "0.5659389", "0.5645148", "0.5621091", "0.5608345", "0.5582986", "0.5579007", "0.5569414", "0.55659443", "0.5558954", "0.5549227", "0.5545725", "0.55421776", "0.55372053", "0.5528976", "0.5526209", "0.5511467", "0.5510048" ]
0.59400594
45
Gets a list of JS links
public function getJs();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_the_js_urls() {\n\n md_get_the_js_urls();\n \n }", "function media_theplatform_mpx_extract_all_js_links($text) {\n $pattern = '/\\<script type\\=\\\"text\\/javascript\\\" src\\=\\\"(.*?)\\\"/';\n preg_match_all($pattern, $text, $results);\n $js_files = $results[1];\n return $js_files;\n}", "function links() {\n return array(\n\n );\n }", "public function getJavaScripts();", "public function getLinksList(){\n return $this->_get(9);\n }", "function javascripts() {\n return $this->context->javascript_tags(func_get_args(), $this->base_url().\"/javascripts\");\n }", "public function getJavascripts() {\n return $this->scripts;\n }", "public function links_list() {\n\t\t$str = \"\";\n\n\t\tforeach ($this->def_json[\"links\"] as $link) {\n\t\t\t$str .= Builder::root(\"li\", NULL,\n\t\t\t\tBuilder::child(\"a\", array(\"href\" => $link[\"url\"]), $link[\"title\"])\n\t\t\t)->saveHTML();\n\t\t}\n\n\t\treturn $str;\n\t}", "public static function getExternalJavascripts()\n\t{\n\t\t$javascripts = new \\DomDocument('1.0', 'utf-8');\n\t\t$javascripts->appendChild($root = $javascripts->createElement('javascripts'));\n\t\tforeach (self::$externalJavascripts as $asset)\n\t\t{\n\t\t\t$root->appendChild($external = $javascripts->createElement('javascript'));\n\t\t\t$external->setAttribute('href', $asset);\n\t\t}\n\t\treturn $javascripts;\n\t}", "public static function inclureJS() {\r\n \r\n foreach (Page::getInstance()->script as $link) {\r\n \r\n ?>\r\n <script type=\"text/javascript\" src=\"<?php echo $link; ?>\" ></script>\r\n <?php\r\n \r\n }\r\n }", "public function getLinks()\n\t{\n\t\t$data = $this->curl->curlGetReq($this->baseURL);\n\t\t$query = \"//a/@href\";\n\t\t$links = $this->curl->getDOMData($data,$query);\n\t\t\n\n\t\t//var_dump($links[0]);\n\n\t\tforeach ($links as $link)\n\t\t{\n\t\t\t\n\t\t\tif($link->value == \"/calendar\")\n\t\t\t{\n\t\t\t\t$this->calendarLink = $this->baseURL. str_replace(\"/\", \"\", $link->value).\"/\";\n\t\t\t\t\n\t\t\t}\n\t\t\tif($link->value == \"/cinema\")\n\t\t\t{\n\t\t\t\t$this->cinemaLink = $this->baseURL. str_replace(\"/\", \"\", $link->value).\"/\";\n\t\t\t}\n\t\t\tif($link->value == \"/dinner\")\n\t\t\t{\n\t\t\t\t$this->dinnerLink = $this->baseURL. str_replace(\"/\", \"\", $link->value).\"/\";\n\t\t\t\t$this->dinnerLoginLink = $this->dinnerLink.\"login\";\n\t\t\t}\n\n\t\t\n\t\t\n\t\t}\n\t}", "public static function getLinks() {\n $links = Yii::$app->cacheManage->links;\n if ($links) {\n return $links;\n }\n\n $links = LinkOption::getAllLinks();\n if ($links) {\n Yii::$app->cacheManage->links = $links;\n }\n return $links;\n }", "public function getlinks()\n {\n $links = array();\n\n if (SecurityUtil::checkPermission($this->name . '::', '::', ACCESS_READ)) {\n $links[] = array('url' => ModUtil::url($this->name, 'user', 'hooks'),\n 'text' => $this->__('Frontend'),\n 'title' => $this->__('Switch to user area.'),\n 'class' => 'z-icon-es-home');\n }\n if (SecurityUtil::checkPermission($this->name . ':Twitterparm:', '::', ACCESS_ADMIN)) {\n $links[] = array('url' => ModUtil::url($this->name, 'admin', 'view', array('ot' => 'twitterparm')),\n 'text' => $this->__('Twitterparms'),\n 'title' => $this->__('Twitterparm list'));\n }\n\n return $links;\n }", "public function getJavaScripts() {\n return $this->javascripts;\n }", "public static function getLinks()\n\t{\n\t\treturn static::$links;\n\t}", "public function getAllJS()\n {\n return $this->js;\n }", "public function getLinksList()\n {\n $sql = 'SELECT bwl.*, bwll.`title`, bwll.`url`\n FROM `'._DB_PREFIX_.'bwcatbanner_link` bwl\n LEFT JOIN `'._DB_PREFIX_.'bwcatbanner_link_lang` bwll\n ON (bwl.`id_item` = bwll.`id_item`)\n WHERE bwl.`id_shop` = '.(int)Context::getContext()->shop->id.'\n AND bwll.`id_lang` = '.(int)Context::getContext()->language->id;\n\n return Db::getInstance()->executeS($sql);\n }", "public function getLinks()\n {\n $url = Yii::$app->getRequest()->getAbsoluteUrl();\n // change $url_cut_point if you have more prefix in the url of restful api\n $url_cut_point = 5;\n $url_slice = array_slice(preg_split(\"#[?/]#\", $url), 0, $url_cut_point);\n $link = implode('/', $url_slice).'/'.$this->id;\n\n return [ Link::REL_SELF => $link ];\n }", "public function get_links()\n {\n }", "public function getlinks()\n {////\n // Define an empty array to hold the list of admin links\n $links = array();\n\n // Return the links array back to the calling function\n return $links;\n }", "public function getLinks()\n\t{\n\t\treturn $this->aLinks;\n\t}", "public function getlinks()\n {\n $links = array();\n\n if (Content_Util::contentHasPageCreateAccess()) {\n $links[] = array(\n 'url' => ModUtil::url('Content', 'admin', 'newPage'),\n 'text' => $this->__('Add new page'),\n 'class' => 'z-icon-es-new');\n }\n if (SecurityUtil::checkPermission('Content::', '::', ACCESS_EDIT)) {\n $links[] = array(\n 'url' => ModUtil::url('Content', 'admin', 'main'),\n 'text' => $this->__('Page list'),\n 'class' => 'z-icon-es-edit',\n 'links' => array(\n array('url' => ModUtil::url('Content', 'user', 'sitemap'),\n 'text' => $this->__('Sitemap')),\n array('url' => ModUtil::url('Content', 'user', 'extlist'),\n 'text' => $this->__('Extended')),\n array('url' => ModUtil::url('Content', 'user', 'pagelist'),\n 'text' => $this->__('Complete')),\n array('url' => ModUtil::url('Content', 'user', 'categories'),\n 'text' => $this->__('Category list')),\n ));\n }\n\n return $links;\n }", "public function getJsSources(): string\n {\n return '<script type=\"text/javascript\" src=\"'\n . $this->uri\n . 'bower_components/jquery/dist/jquery.min.js\"></script>'\n . '<script type=\"text/javascript\" src=\"'\n . $this->uri\n . 'bower_components/jquery-ui/jquery-ui.min.js\"></script>'\n . '<script type=\"text/javascript\" src=\"'\n . $this->uri\n . 'bower_components/jquery.scrollTo/jquery.scrollTo.min.js\"></script>'\n . '<script type=\"text/javascript\" src=\"'\n . $this->uri\n . 'prettify/prettify.js\"></script>'\n . '<script type=\"text/javascript\" src=\"'\n . $this->uri\n . 'pretty.js\"></script>';\n }", "public function retrieveLinks(CrawlUrl $crawlUrl ){\n $js = <<<JS\n (function myFunction() {\n var urls = [];\n for(var i = document.links.length; i --> 0;)\n if( !'$this->internalOnly' || document.links[i].hostname === location.hostname && !document.links[i].href.includes('#')){\n urls.push(document.links[i].href);\n }\n\t return urls;\n \n })();\nJS;\n $links = $this->session->getDriver()->evaluateScript($js);\n //Extract the links from the HTML.\n //$links = $htmlDom->getElementsByTagName('a');\n //Array that will contain our extracted links.\n $extractedLinks = array();\n\n //Loop through the DOMNodeList.\n //We can do this because the DOMNodeList object is traversable.\n foreach($links as $linkHref){\n\n\n //If the link is empty, skip it and don't\n //add it to our $extractedLinks array\n if(strlen(trim($linkHref)) == 0){\n continue;\n }\n //Skip if it is a hashtag / anchor link.\n if(str_contains($linkHref, '#')){\n continue;\n }elseif($linkHref[0] =='/'){\n $linkHref=$crawlUrl->url->getScheme().\"://\".$crawlUrl->url->getHost().$linkHref;\n }\n\n //Add the link to our $extractedLinks array.\n if(str_contains($linkHref,\"http\")){\n $extractedLink=new Uri($linkHref);\n if($extractedLink->getHost()===$crawlUrl->url->getHost()){\n $extractedLinks[] = $linkHref;\n }elseif (!$this->internalOnly){\n $extractedLinks[] = $linkHref;\n }\n else{\n unset($extractedLink);\n }\n }\n }\n return $extractedLinks;\n }", "function getAllLinks(){\r\n return $this->link_arry;\r\n }", "public function getScripts()\n {\n $scripts = array();\n $this->orderScripts();\n foreach($this->resolved as $id) {\n if( isset($this->scripts[$id]['url']) ) {\n $scripts[] = $this->scripts[$id]['url'];\n }\n }\n return $scripts;\n }", "protected function getLinkHandlers() {}", "protected function getLinkHandlers() {}", "public function getlinks()\r\n {\r\n $links = array();\r\n\r\n if (SecurityUtil::checkPermission('EZComments::', '::', ACCESS_ADMIN)) {\r\n $links[] = array('url' => ModUtil::url('EZComments', 'admin', 'main'),\r\n 'text' => $this->__('View comments'),\r\n 'class' => 'z-icon-es-view');\r\n $links[] = array('url' => ModUtil::url('EZComments', 'admin', 'stats'),\r\n 'text' => $this->__('Comment statistics'),\r\n 'class' => 'z-icon-es-cubes');\r\n $links[] = array('url' => ModUtil::url('EZComments', 'admin', 'modifyconfig'),\r\n 'text' => $this->__('Settings'),\r\n 'class' => 'z-icon-es-config',\r\n 'links' => array(\r\n array('url' => ModUtil::url('EZComments', 'admin', 'modifyconfig'),\r\n 'text' => $this->__('Settings')),\r\n array('url' => ModUtil::url('EZComments', 'admin', 'cleanup'),\r\n 'text' => $this->__('Delete orphaned comments')),\r\n array('url' => ModUtil::url('EZComments', 'admin', 'migrate'),\r\n 'text' => $this->__('Migrate comments')),\r\n array('url' => ModUtil::url('EZComments', 'admin', 'purge'),\r\n 'text' => $this->__('Purge comments')),\r\n array('url' => ModUtil::url('EZComments', 'admin', 'applyrules'),\r\n 'text' => $this->__('Re-apply moderation rules'))\r\n ));\r\n }\r\n return $links;\r\n }", "static function createJSList()\n {\n $result=\"\";\n if(!empty(self::$arr_js_list))\n foreach (self::$arr_js_list as $js_file => $file_location)\n {\n if ($file_location == \"common\")\n $result.='<script type=\"text/javascript\" src=\"js/'.$js_file.'.js\"> </script>';\n elseif ($file_location == \"component\")\n $result.='<script type=\"text/javascript\" src=\"components/'.$js_file.'/js/'.$js_file.'.js\"> </script>';\n }\n\n self::putData(\"js_list\",$result,\"L\");\n self::$js_list = $result;\n }", "public function getlinks()\n {\n $links = array();\n if (UserUtil::isLoggedIn()) {\n $links[] = array(\n 'url' => ModUtil::url('InterCom', 'user', 'inbox'),\n 'text' => $this->__('Inbox'),\n 'class' => 'z-icon-es-inbox'\n );\n $links[] = array(\n 'url' => ModUtil::url('InterCom', 'user', 'outbox'),\n 'text' => $this->__('Outbox'),\n 'class' => 'z-icon-es-outbox'\n );\n $links[] = array(\n 'url' => ModUtil::url('InterCom', 'user', 'archive'),\n 'text' => $this->__('Archive'),\n 'class' => 'z-icon-es-gears'\n );\n if ($this->getVar('messages_allow_emailnotification')|| $this->getVar('messages_allow_autoreply')) {\n $links[] = array(\n 'url' => ModUtil::url('InterCom', 'user', 'settings'),\n 'text' => $this->__('Settings'),\n 'class' => 'z-icon-es-config'\n );\n }\n $links[] = array(\n 'url' => ModUtil::url('InterCom', 'user', 'newpm'),\n 'text' => $this->__('New message'),\n 'class' => 'z-icon-es-new'\n );\n }\n return $links;\n }", "function getAdminLinks()\n {\n }", "public function getUrls(): array;", "public function getUrls(): array;", "public function getLinks()\r\n {\r\n return $this->_links;\r\n }", "public function links() {\n\t\t?>\n\t\t<ul>\n\t\t\t<li>\n\t\t\t\t<a href=\"http://bit.ly/15uoww1\" target=\"_blank\"><?php echo __( 'Installation manual', $this->_google_drive_cdn->get_textdomain() ); ?></a>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<a href=\"http://bit.ly/W9GDQT\" target=\"_blank\"><?php echo __( 'Frequently Asked Questions', $this->_google_drive_cdn->get_textdomain() ); ?></a>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<a href=\"http://bit.ly/WW93Sk\" target=\"_blank\"><?php echo __( 'Report a bug', $this->_google_drive_cdn->get_textdomain() ); ?></a>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<a href=\"http://bit.ly/11UE2lF\" target=\"_blank\"><?php echo __( 'Request a function', $this->_google_drive_cdn->get_textdomain() ); ?></a>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<a href=\"http://bit.ly/XkivOW\" target=\"_blank\"><?php echo __( 'Submit a translation', $this->_google_drive_cdn->get_textdomain() ); ?></a>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<a href=\"http://bit.ly/UlDG4t\" target=\"_blank\"><?php echo __( 'More cool stuff by WPBuddy', $this->_google_drive_cdn->get_textdomain() ); ?></a>\n\t\t\t</li>\n\t\t</ul>\n\t<?php\n\t}", "public function getLinks()\n {\n // Define an empty array to hold the list of admin links\n $links = array();\n if (SecurityUtil::checkPermission($this->name . '::', '::', ACCESS_ADMIN)) {\n $links[] = array(\n 'url' => ModUtil::url($this->name, 'admin', 'modifyconfig'),\n 'text' => $this->__('Settings'),\n 'class' => 'z-icon-es-config');\n }\n if (SecurityUtil::checkPermission($this->name . '::', '::', ACCESS_ADMIN)) {\n $links[] = array(\n 'url' => ModUtil::url($this->name, 'admin', 'view'),\n 'text' => $this->__('Tag List'),\n 'class' => 'z-icon-es-view');\n }\n if (SecurityUtil::checkPermission($this->name . '::', '::', ACCESS_ADMIN)) {\n $links[] = array(\n 'url' => ModUtil::url($this->name, 'admin', 'edit'),\n 'text' => $this->__('New tag'),\n 'class' => 'z-icon-es-new');\n }\n\n return $links;\n }", "public function getJavascripts()\n {\n return array('/sfAssetsLibraryPlugin/js/main');\n }", "public function getLinks(): array\n {\n return $this->links;\n }", "public function getLinks(): array\n {\n return $this->links;\n }", "public function getLinks() {\n return $this->links;\n }", "public function getLinks()\n {\n return $this->links;\n }", "public function getLinks()\n {\n return $this->links;\n }", "public function getLinks()\n {\n return $this->links;\n }", "public function getLinks() {\n\t\treturn $this->links;\n\t}", "public function getInlineJavascripts() {\n return $this->inlineScripts;\n }", "public function getLinks()\n {\n if(null === $this->_link){\n\t\t\t$node = Mage::app()->getConfig()\n\t\t\t\t->getNode('global/faonni_accountnavigation/link');\n\t\t\t$this->_link = $node->asArray();\t\n\t\t}\n\t\treturn $this->_link;\n }", "protected function loadJavaScripts() {}", "private function links()\n {\n foreach ($this->controller->links as $value)\n echo \"\\t<link rel='stylesheet' href='\" . DOMAIN . $value . \"' />\\n\";\n }", "public function getLinks(){\n\t\t\n\t\t// Get the global config\n\t\tglobal $CrawlerConfig;\n\t\t\n\t\t// Create DOM object and load HTML\n\t\t@$dom = new DOMDocument();\n\t\t@$dom->loadHTML($this->html);\n\t\t$dom->preserveWhiteSpace = false;\n\t\t\n\t\t// Return array\n\t\t$ret = array();\n\t\t\n\t\t// Get links\n\t\t$links = $dom->getElementsByTagName('a');\n\t\t\n\t\t// Extract links data\n\t\tforeach ($links as $tag){\n\t\t\t\n\t\t\t// Get the hyperlink reference\n\t\t\t$url = trim($tag->getAttribute('href'));\n\t\t\t\n\t\t\t// Make sure it's a complete URL\n\t\t\t$url = self::filterUrl($url);\n\t\t\tif($url === false) continue;\n\t\t\t\n\t\t\t// Skip URL's that start with #\n\t\t\tif(substr($url, \"0\", 1) == \"#\") continue;\n\t\t\t\n\t\t\t// Skip mailto links\n\t\t\tif(strpos($url, \"mailto:\") !== false) continue;\n\t\t\t\n\t\t\t// Skip links that don't match the 'FOLLOW_LINKS_LIKE' config param\n\t\t\tif(\n\t\t\t\t!empty($CrawlerConfig['FOLLOW_LINKS_LIKE']) &&\n\t\t\t\tstrpos($url, $CrawlerConfig['FOLLOW_LINKS_LIKE']) === false\n\t\t\t) continue;\n\t\t\t\n\t\t\t// Skip links that DO match the \"IGNORE_LINKS_LIKE\" config param\n\t\t\tif(!empty($CrawlerConfig['IGNORE_LINKS_LIKE'])){\n\t\t\t\tforeach($CrawlerConfig['IGNORE_LINKS_LIKE'] as $l){\n\t\t\t\t\tif(strpos($url, $l) !== false) continue 2;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Dump it to the array\n\t\t\tarray_push($ret, array(\n\t\t\t\t\"url\" => $url,\n\t\t\t\t\"title\" => $tag->textContent ///$tag->childNodes->item(0)->nodeValue\n\t\t\t));\t\t\t\n }\n\t\t\n\t\t$ret = self::doopScooper($ret, array(\"url\"));\n\t\t\t\t\n\t\treturn $ret;\n\t}", "function src_inc_list_js(string $assets_url, array $files) : string {\n $source = \"\";\n\n //Process the list of files\n foreach($files as $file){\n\n if(is_array($file))\n $file = $file[\"path\"];\n\n $source .= src_inc_js($assets_url.$file).\"\\n\\t\\t\";\n }\n\n return $source;\n}", "public function getJavaScripts()\n {\n return array(\n '/ullCorePlugin/js/jq/jquery-min.js', \n );\n }", "function getPreferenceLinks()\n {\n }", "public function getLinks()\n {\n $links = array();\n \n if (SecurityUtil::checkPermission('Ztools::', '::', ACCESS_READ)) {\n $links[] = array(\n 'url' => ModUtil::url($this->name, 'admin', 'displaysysinfo'),\n 'text' => $this->__('Server'),\n 'class' => 'z-icon-es-info');\n }\n if (SecurityUtil::checkPermission('Ztools::', '::', ACCESS_OVERVIEW)) {\n $links[] = array(\n 'url' => ModUtil::url($this->name, 'admin', 'displaybrowserinfo'),\n 'text' => $this->__('Client'),\n 'class' => 'z-icon-es-info');\n }\n if (SecurityUtil::checkPermission('Ztools::', '::', ACCESS_EDIT)) {\n $links[] = array(\n 'url' => ModUtil::url($this->name, 'admin', 'backupdb'),\n 'text' => $this->__('Backup'),\n 'class' => 'z-icon-es-export');\n }\n if (SecurityUtil::checkPermission('Ztools::', '::', ACCESS_ADMIN)) {\n $links[] = array(\n 'url' => ModUtil::url($this->name, 'admin', 'scripts'),\n 'text' => $this->__('Scripts'),\n 'class' => 'z-icon-es-gears');\n }\n if (SecurityUtil::checkPermission('Ztools::', '::', ACCESS_ADMIN)) {\n $links[] = array(\n 'url' => ModUtil::url('Zfiler', 'admin', 'filer'),\n 'text' => $this->__('Filer'),\n 'class' => 'z-icon-es-folder');\n }\n if (SecurityUtil::checkPermission('Ztools::', '::', ACCESS_ADMIN)) {\n $links[] = array(\n 'url' => ModUtil::url($this->name, 'admin', 'modifyconfig'),\n 'text' => $this->__('Settings'),\n 'class' => 'z-icon-es-config');\n }\n if (SecurityUtil::checkPermission('Ztools::', '::', ACCESS_ADMIN)) {\n $links[] = array(\n 'url' => 'https://github.com/nmpetkov/Ztools/wiki',\n 'text' => $this->__('Wiki'),\n 'class' => 'z-icon-es-help');\n }\n\n return $links;\n }", "public function getJavascriptIncludes() {}", "public function get_script_js(){\r\n\t\treturn $this->scripts;\r\n\t}", "public function getJavascripts()\n {\n return array('/cpCmsPlugin/js/widget.js');\n }", "public function getJS()\n\t{\n\t\t// include the forum's jquery\n\t\t$js = array();\n\t\treturn $js;\n\t}", "public function getJavascripts()\n {\n return array(\n '/sfEntityAttributeValuePlugin/js/jquery-1.3.2.min.js',\n '/sfEntityAttributeValuePlugin/js/jquery.formbuilder.js',\n '/sfEntityAttributeValuePlugin/js/jquery.scrollTo-min.js');\n }", "function get_javascript_url( $files ){\n\t$files = (array)$files;\n\tif ( empty($files) )\n\t\treturn '';\n\n\tforeach ( $files as $i => $file )\n\t\t$files[$i] = trim($file);\n\n\t$files = implode( ',', $files );\n\treturn add_url_query( array('file' => $files), home_url('js'), true );\n}", "public function scripts() {\n\t\t$scripts = array(\n\t\t\tarray(\n\t\t\t\t'handle' => 'static_content_script_js',\n\t\t\t\t'src' => $this->get_base_url() . '/js/static_content_script.js',\n\t\t\t\t'version' => $this->_version,\n\t\t\t\t'deps' => array( 'jquery' ),\n\t\t\t\t'enqueue' => array(\n\t\t\t\t\tarray( 'field_types' => array( 'staticcontent' ) ),\n\t\t\t\t),\n\t\t\t),\n\n\t\t);\n\n\t\treturn array_merge( parent::scripts(), $scripts );\n\t}", "public function get_url_list() {\n\t\t$home_no_www = str_replace( '://www.', '://', get_option( 'home' ) );\n\t\t$home_yes_www = str_replace( '://', '://www.', $home_no_www );\n\n\t\t// Build the search links.\n\t\t$search = array(\n\t\t\tstr_replace( 'https://', 'http://', $home_yes_www ),\n\t\t\tstr_replace( 'https://', 'http://', $home_no_www ),\n\t\t\t\"src='http://\",\n\t\t\t'src=\"http://',\n\t\t);\n\n\t\treturn array(\n\t\t\t'search' => $search, // The search links.\n\t\t\t'replace' => str_replace( 'http://', 'https://', $search ), // The replace links.\n\t\t);\n\t}", "public function getJavaScripts()\n {\n return array(\n '/ullCorePlugin/js/jq/jquery-min.js', \n '/ullCorePlugin/js/jq/jquery.replace_time_duration_select.js',\n ); \n }", "public function getDirectLinkUrls()\n {\n return $this->getUrls($this->directLinkPath);\n }", "function findPageUrls();", "public function getJavaScript() {}", "public function get_scripts () {\r\n\t\treturn empty($this->_data[self::SCRIPTS])\r\n\t\t\t? array()\r\n\t\t\t: $this->_data[self::SCRIPTS]\r\n\t\t;\r\n\t}", "function getJavaScriptCommandForOneLink($link){\n \t\n \t$linkArray = we_SEEM::getAllHrefs($link);\n\n \t// Remove all other Stuff from the linkArray\n // Here all SEEM - Links are removed as well\n $linkArray = we_SEEM::onlyUseHyperlinks($linkArray);\n\n // if an array is returned in onlyUseHyperlinks, then parse the $code, otherwise return the same code.\n if($linkArray && is_array($linkArray)){\n\n // Remove all javascript, or target stuff, from links, they could disturb own functionality\n // Important are $linkArray[1][*] and $linkArray[4][*1]\n $linkArray = we_SEEM::cleanLinks($linkArray);\n\n // $linkArray[5] - Array of the relative translation of given Link-targets, only with webEdition-Docs\n $linkArray[5] = we_SEEM::findRelativePaths($linkArray[2]);\n\t\t\t\t\n // $linkArray[6] - Array which contains the docIds of the Documents, or -1\n $linkArray[6] = we_SEEM::getDocIDsByPaths($linkArray[5]);\n \n //\t$linkArray[7] - contains the ContentTypes of the target, or ''\n $linkArray[7] = we_SEEM::getDocContentTypesByID($linkArray[6]);\n\n $code = we_SEEM::link2we_cmd($linkArray);\n }\n \treturn $code;\n }", "public function getLinks()\n {\n $links = array();\n\t\t\n\t\t$modulevars = ModUtil::getVar('Mediasharex');\n\n\t\tif (SecurityUtil::checkPermission('Mediasharex::', '::', ACCESS_ADMIN)) {\n $links[] = array('url' => ModUtil::url($this->name, 'admin', 'info'),\n \t\t\t\t 'text' => $this->__(' Info'),\n \t\t\t\t 'class' => 'mediasharex-icon-laptop',\n\t\t\t\t\t\t\t 'links' => $this->getInfoLinks());\n }\n\n\t\tif (SecurityUtil::checkPermission('Mediasharex::', '::', ACCESS_ADMIN)) {\n $links[] = array('url' => ModUtil::url($this->name, 'admin', 'info_docs'),\n \t\t\t\t 'text' => $this->__(' Documentation'),\n \t\t\t\t 'class' => 'mediasharex-icon-cabinet');\n }\n\t\t\n\t\tif (SecurityUtil::checkPermission('Mediasharex::', '::', ACCESS_ADMIN)) {\n $links[] = array('url' => ModUtil::url($this->name, 'admin', 'settings_general'),\n \t\t\t\t 'text' => $this->__(' Settings'),\n \t\t\t\t 'class' => 'mediasharex-icon-cogs',\n\t\t\t\t\t\t\t 'links' => $this->getSettingsLinks());\n }\t\t\n\t\t\n\t\tif (SecurityUtil::checkPermission('Mediasharex::', '::', ACCESS_ADMIN)) {\n $links[] = array('url' => ModUtil::url($this->name, 'admin', 'manager'),\n \t\t\t\t 'text' => $this->__(' Content manager'),\n \t\t\t\t 'class' => 'mediasharex-icon-folder',\n\t\t\t\t\t\t\t 'links' => $this->getManagerLinks());\n }\t\t\n\t\t\n\t\tif (SecurityUtil::checkPermission('Mediasharex::', '::', ACCESS_ADMIN)) {\n $links[] = array('url' => ModUtil::url($this->name, 'admin', 'sandh'),\n \t\t\t\t 'text' => $this->__(' Sources & Handlers'),\n \t\t\t\t 'class' => 'mediasharex-icon-equalizer',\n\t\t\t\t\t\t\t 'links' => $this->getSandHLinks());\n }\n\t\t\n\t\tif (SecurityUtil::checkPermission('Mediasharex::', '::', ACCESS_ADMIN)) {\n $links[] = array('url' => ModUtil::url($this->name, 'admin', 'media_types'),\n \t\t\t\t 'text' => $this->__(' Media types'),\n \t\t\t\t 'class' => 'mediasharex-icon-star',\n\t\t\t\t\t\t\t 'links' => $this->getMediaTypesLinks());\n }\t\t\n\t\t\n\t\tif (SecurityUtil::checkPermission('Mediasharex::', '::', ACCESS_ADMIN)) {\n $links[] = array('url' => ModUtil::url($this->name, 'admin', 'import'),\n \t\t\t\t 'text' => $this->__(' Import'),\n \t\t\t\t 'class' => 'mediasharex-icon-loop',\n\t\t\t\t\t\t\t 'links' => $this->getImportLinks());\n }\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t/*\t\n\t\t\n\t\t\n\t\tif (SecurityUtil::checkPermission('Mediasharex::', '::', ACCESS_ADMIN)) {\n $links[] = array('url' => ModUtil::url($this->name, 'admin', 'mainsettings'), 'text' => $this->__('Main settings'), 'class' => 'z-icon-es-config');\n }\n\n\n\n\n\n\n if (SecurityUtil::checkPermission('Mediasharex::', '::', ACCESS_ADMIN)) {\n $links[] = array('url' => ModUtil::url($this->name, 'admin', 'managealbums'), 'text' => $this->__('Albums'), 'class' => 'z-icon-es-display');\n }\n\t\t\n if (SecurityUtil::checkPermission('Mediasharex::', '::', ACCESS_ADMIN)) {\n $links[] = array('url' => ModUtil::url($this->name, 'admin', 'manageitems'), 'text' => $this->__('Media'), 'class' => 'z-icon-es-display');\n }\n\t\tif (SecurityUtil::checkPermission('Mediasharex::', '::', ACCESS_ADMIN)) {\n $links[] = array('url' => ModUtil::url($this->name, 'admin', 'managemediastore'), 'text' => $this->__('Media store'), 'class' => 'z-icon-es-display');\n }\n\t\t\n if (SecurityUtil::checkPermission('Mediasharex::', '::', ACCESS_ADMIN)) {\n $links[] = array('url' => ModUtil::url($this->name, 'admin', 'managehandlers'), 'text' => $this->__('Handlers'), 'class' => 'z-icon-es-display');\n }\n\t\t\t\t\n\t\tif (SecurityUtil::checkPermission('Mediasharex::', '::', ACCESS_ADMIN)) {\n $links[] = array('url' => ModUtil::url($this->name, 'admin', 'managesources'), 'text' => $this->__('Sources'), 'class' => 'z-icon-es-display');\n }\n\t\tif (SecurityUtil::checkPermission('Mediasharex::', '::', ACCESS_ADMIN)) {\n $links[] = array('url' => ModUtil::url($this->name, 'admin', 'manageinvitations'), 'text' => $this->__('Invitations'), 'class' => 'z-icon-es-display');\n }\n\t\tif (SecurityUtil::checkPermission('Mediasharex::', '::', ACCESS_ADMIN)) {\n $links[] = array('url' => ModUtil::url($this->name, 'admin', 'import'), 'text' => $this->__('Import'), 'class' => 'z-icon-es-filter');\n }\t\n\t * \n\t * \n\t * \n\t * \n\t * \n\t * \n\t */\t\n \n return $links;\n }", "public function get_scripts() {\n\t\treturn [];\n\t}", "function noticias_links(){\n \t\n $html=site('http://www.jornalnoticias.co.mz/');\n\t\n\tforeach($html->find('.items-row')as $elms){\n\t\t\n\t\t\n\t\tforeach($elms->find ('.jn-postheader a') as $elms2){\n\t\t\n\t $j[]=mb_convert_encoding( \"http://www.jornalnoticias.co.mz\".$elms2->href, \"HTML-ENTITIES\", \"UTF-8\");\n\t\n\t\n\t\t\n\t\t}\n\t\t\n\t}\n\t\n\treturn $j;\n }", "function getDownloadLinks($source_links){\n\t\t$content = file_get_contents($source_links);\n\t\t$download_links = $this->findMatches($content);\n\t\treturn $download_links;\n\t}", "public function get_js_common()\n {\n return array();\n }", "public function getJavascripts()\n {\n return array('/js/core/editarea/edit_area_compressor.php', '/js/core/editarea.jquery.js');\n }", "public function getLinksArray()\n {\n $db = new db(self::db_links);\n return $db->getLinksArray();\n }", "public function get_all_links()\r\n {\r\n \tif (empty($this->course_code))\r\n \t\tdie('Error in get_not_created_links() : course code not set');\r\n \t\r\n \t$course_info = api_get_course_info($this->course_code);\r\n \t$tbl_grade_links = Database :: get_main_table(TABLE_MAIN_GRADEBOOK_LINK,$course_info['dbName']);\r\n\r\n\t\t$sql = 'SELECT id,title from '.$this->get_exercise_table();\r\n\t\t$result = api_sql_query($sql, __FILE__, __LINE__);\r\n\r\n\t\t$cats=array();\r\n\t\twhile ($data=mysql_fetch_array($result))\r\n\t\t{\r\n\t\t\t$cats[] = array ($data['id'], $data['title']);\r\n\t\t}\r\n\t\treturn $cats;\r\n }", "public function getLinks()\r\r\n {\r\r\n $links = $this->parseParams();\r\r\n\r\r\n foreach ($links as &$link) {\r\r\n $key = key($link);\r\r\n unset($link[$key]);\r\r\n $link['url'] = trim($key, '<> ');\r\r\n }\r\r\n\r\r\n return $links;\r\r\n }", "public function getJavaScripts()\n {\n return array(\n '/ullCorePlugin/js/jq/jquery-min.js',\n '/ullCorePlugin/js/jq/jquery.add_select_filter.js', \n ); \n }", "function get_js_files_array();", "public function getAmpScripts()\n {\n return array_keys($this->js);\n }", "function amazon_get_links() {\n\t// sanitze the url link.\n\t$sanitized_link = esc_url_raw( ( $_POST['amazon_link'] ) );\n\n\t// cache duration logic.\n\t$cache_duration = sanitize_text_field( ( $_POST['cache_duration_option'] ) );\n\n\t// URL Validation.\n\tif ( ! isset( $sanitized_link ) ) {\n\t\treturn;\n\t}\n\tif ( ! wp_http_validate_url( $sanitized_link ) ) {\n\t\treturn;\n\t}\n\n\t// gets the data from the sanitized link.\n\t$amazon_data = wp_remote_retrieve_body( wp_safe_remote_get( $sanitized_link ) );\n\t// sets the cache.\n\tset_transient( 'amazon_cached_data', $amazon_data, (int) $cache_duration );\n\n\t// sends the data back to js to append it (the html).\n\twp_send_json_success( $amazon_data );\n}", "public function getJavascripts($position = self::ALL)\n {\n if (self::ALL === $position)\n {\n $javascripts = array();\n foreach ($this->getPositions() as $position)\n {\n foreach ($this->javascripts[$position] as $file => $options)\n {\n $javascripts[$file] = $options;\n }\n }\n\n return $javascripts;\n }\n else if (self::RAW === $position)\n {\n return $this->javascripts;\n }\n\n $this->validatePosition($position);\n\n return $this->javascripts[$position];\n }", "public function getUrls()\r\n {\r\n }", "public function links_listing() {\n\t$single_list = array();\n\t$regexa = '/^(http:|https:|mailto:|ftp:|#)/';\n\t$regexb = '/^(' . preg_quote($this->_domain, '/') . ')/';\n\tforeach ($this->_html->find('a') as $links) {\n\t $any_link = $links->href;\n\t if (!preg_match($regexa, $any_link) || preg_match($regexb, $any_link)) {\n\t\t$single_list[] = $any_link;\n\t }\n\t}\n\tvar_dump($this->_domain);\n\t//Associating each link to the page list array if it's not part of it yet\n\tforeach ($single_list as $value) {\n\t\tif (!preg_match('/^.*\\.(jpg|jpeg|png|gif|JPG|JPEG|GIF|pdf|PDF|wrd|wrdx|mp3)$/i', $value)) {\n\n\t\t\t//Checking of the link found starts with either http or / in which case we fix the url to absolute\n\t\t\t$a = strpos($value, 'http', 0);\n\t\t\t$b = strpos($value, '/', 0);\n\t\t\t$c = strpos($value, '../', 0);\n\t\t\tif ($a === 0) {\n\t\t\t\t$tvalue = $value;\n\t\t\t} elseif ($b === 0) {\n\t\t\t\t$tvalue = $this->_domain . $value;\n\t\t\t} elseif ($c === 0) {\n\t\t\t\t$tvalue = $this->_domain;\n\t\t\t} else {\n\t\t\t\t$tvalue = $this->_domain . '/' . $value;\n\t\t\t}\t\n\t\t\tif (!in_array($tvalue, $_SESSION['page_list'])) {\n\t\t\t\t if (!in_array($tvalue, $_SESSION['page_list_done']) && $tvalue != @$_SESSION['next_page']) {\n\t\t\t\t\tarray_push($_SESSION['page_list'], $tvalue);\n\t\t\t\t}\n\t\t\t}\t\t\n\t\t}\n\t}\n }", "public function getDocsLinks()\n {\n $links = array();\n\t\t$docs_tree = $this->getDocsTree();\t\n\t\t$links = $this->getDocsLangLinks($docs_tree);\n return $links;\n }", "private function getLinksViaDOM()\n {\n $save = array();\n $nodes = $this->getElementsByTagName('A');\n foreach ($nodes as $n_no => $node) {\n if ($node->attributes->length > 0) {\n //$save[] = $this->getNodeAttributes($node->attributes);\n }\n }\n\n return $save;\n }", "public function getJsFiles() {\n //je krijgt op het einde .. en . terug, deze mag je niet opnemen in je links\n $jsFiles = scandir(\"js\", 1);\n \n return $jsFiles;\n }", "public function index()\n {\n return Links::all();\n }", "public function getJavaScripts()\n {\n return array_merge(parent::getJavascripts(), array('/jWidgetsPlugin/js/jquery/plugin/jquery.validate.min.js'));\n }", "public function getLinks()\n {\n if ($this->filterCallback === null) {\n $links = $this->visitedLinks;\n } else {\n $links = array_filter($this->visitedLinks, function (Link $linkObj) {\n /* @var $linkObj Link */\n return $linkObj->shouldNotVisit() === false;\n });\n }\n\n return $links;\n }", "function getAllLinks($html){\n $tmp_str=\"\";\n $tmp_links=array();\n if (count($html->find('span[class=pl]'))>0)\n foreach ($html->find('span[class=pl] a') as $ahref)\n {\n $tmp_str=$tmp_str.'<a href=\"http://losangeles.craigslist.org'.$ahref->href.'\">'.$ahref->innertext.'</a><br/>';\n $tmp_links[]='<a href=\"http://losangeles.craigslist.org'.$ahref->href.'\">'.$ahref->innertext.'</a>';\n\n }\n return $tmp_links;\n}", "function GetGoJpLinks($Url){\n\n $html = scraperWiki::scrape( $Url );\n\n $dom = new simple_html_dom();\n $dom->load($html);\n\n $arrDoamins = array();\n foreach($dom->find('a') as $el){\n //echo \"$el->href\\r\\n\";\n if(strpos($el->href,DOMAIN_GOJP)<>FALSE){\n $host = parse_url($el->href);\n if($host<>FALSE){\n if($host['scheme']<>\"\" && strpos($host['host'],DOMAIN_GOJP)<>FALSE){\n $url = $host['scheme'].'://'.$host['host'];\n $arrDoamins[$url] = $host;\n $arrDoamins[$url]['title'] = $el->plaintext;\n }\n }\n }\n }\n return $arrDoamins;\n}", "function GetGoJpLinks($Url){\n\n $html = scraperWiki::scrape( $Url );\n\n $dom = new simple_html_dom();\n $dom->load($html);\n\n $arrDoamins = array();\n foreach($dom->find('a') as $el){\n //echo \"$el->href\\r\\n\";\n if(strpos($el->href,DOMAIN_GOJP)<>FALSE){\n $host = parse_url($el->href);\n if($host<>FALSE){\n if($host['scheme']<>\"\" && strpos($host['host'],DOMAIN_GOJP)<>FALSE){\n $url = $host['scheme'].'://'.$host['host'];\n $arrDoamins[$url] = $host;\n $arrDoamins[$url]['title'] = $el->plaintext;\n }\n }\n }\n }\n return $arrDoamins;\n}", "public function assets_js() {\n \n $data = '<script src=\"//cdnjs.cloudflare.com/ajax/libs/moment.js/2.13.0/moment.min.js\"></script>';\n $data .= \"\\n\";\n $data .= '<script src=\"//www.chartjs.org/dist/2.7.2/Chart.js\"></script>';\n $data .= \"\\n\";\n $data .= '<script src=\"//www.chartjs.org/samples/latest/utils.js\"></script>'; \n $data .= \"\\n\"; \n $data .= '<script src=\"' . base_url() . 'assets/apps/dashboard/js/dashboard.js?ver=' . MD_VER . '\"></script>';\n $data .= \"\\n\";\n \n foreach ( $this->js_urls_widgets as $url ) {\n\n $data .= '<script src=\"' . $url . '?ver=' . MD_VER . '\"></script>';\n $data .= \"\\n\"; \n\n } \n \n return $data;\n \n }", "public static function getMarkedLinks() {\n\t\t$sessionVars = WCF::getSession()->getVars();\n\t\tif (isset($sessionVars['markedLinkListLinks'])) {\n\t\t\treturn $sessionVars['markedLinkListLinks'];\n\t\t}\n\t\treturn null;\n\t}", "function getScriptUrl() ;", "public function getLink();", "public function getLink();", "function getMyLinks($data = '') {\n\t\t$postdata = array();\n\t\tif( is_array($data) ) {\n\t\t\t$postdata['data'] = $data;\n\t\t}\n\t\t\n\t\t$this->action = 'get_my_links';\n\t\treturn $this->send_request($postdata);\n\t}", "public function getImportLinks()\n {\n $links = array();\n\t\t\n\t\t$modulevars = ModUtil::getVar('Mediasharex');\n\n\t\tif (SecurityUtil::checkPermission('Mediasharex::', '::', ACCESS_ADMIN)) {\n $links[] = array('url' => ModUtil::url($this->name, 'admin', 'import'), 'text' => $this->__('Main settings'), 'class' => 'z-icon-es-confi');\n }\n\n if (SecurityUtil::checkPermission('Mediasharex::', '::', ACCESS_ADMIN)) {\n $links[] = array('url' => ModUtil::url($this->name, 'admin', 'managealbums'), 'text' => $this->__('Albums'), 'class' => 'z-icon-es-displa');\n }\n\n\t\t\t\n return $links;\n }" ]
[ "0.754033", "0.72173184", "0.70796365", "0.7072843", "0.6828327", "0.66232353", "0.65582126", "0.6540702", "0.6511497", "0.64690715", "0.6452827", "0.6437438", "0.64148706", "0.6407451", "0.63674444", "0.63192534", "0.62887824", "0.628719", "0.62673324", "0.6227306", "0.6192919", "0.61550295", "0.6133077", "0.61166567", "0.61138666", "0.61115104", "0.60706836", "0.60706836", "0.6040054", "0.60329133", "0.601008", "0.5978918", "0.59665155", "0.59665155", "0.5957934", "0.594592", "0.59336853", "0.5931172", "0.5925948", "0.5925948", "0.5922475", "0.5911048", "0.5911048", "0.5911048", "0.5897228", "0.589586", "0.58648324", "0.5857692", "0.584676", "0.58466595", "0.58368874", "0.58358455", "0.582988", "0.5827466", "0.5826168", "0.5824104", "0.5815163", "0.58111185", "0.5804442", "0.57786727", "0.5776426", "0.57760996", "0.5775624", "0.57739073", "0.5773804", "0.5761833", "0.5745543", "0.57455105", "0.57383955", "0.5737712", "0.5734969", "0.5734911", "0.5728296", "0.5724138", "0.5723432", "0.5705487", "0.57032317", "0.567739", "0.5672501", "0.5669243", "0.56628305", "0.5662746", "0.5653327", "0.56506586", "0.56377894", "0.56326336", "0.5622251", "0.561876", "0.56084174", "0.5598391", "0.5588142", "0.5585758", "0.5585758", "0.55762404", "0.55642414", "0.556282", "0.55597425", "0.55597425", "0.55443555", "0.55336773" ]
0.5938235
36
Sets the response code
public function setCode($code, $message);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setResponseCode($code) {}", "public function setResponseCode($code);", "public function setResponseCode($responseCode);", "function setResponseCode($code) {\n $this->responseCode = $code;\n }", "public function setStatusCode($code)\r\n {\r\n http_response_code($code);\r\n }", "public function setResponseCode(HttpStatusCode|int|null $code = 200): void\n {\n $codeObject = $code;\n\n if (!$codeObject)\n {\n return;\n }\n\n if (is_int($code))\n {\n $codeObject = HttpStatus::fromInt($code);\n }\n\n http_response_code($codeObject->code);\n }", "function response($code){\n $this->response_code = $code;\n }", "function setStatusCode($code);", "protected function setHttpCode(Int $code = 200)\n {\n http_response_code($code);\n }", "public function setStatusCode($code)\n {\n $this->statusCode = $code;\n }", "private function setResponseCode($responseCode) {\n $this->responseCode = $responseCode;\n }", "protected function setStatusCode($code)\n {\n $this->statusCode = (int) $code;\n }", "public function setCode(int $code): ResponseInterface;", "public function setHttpResponseCode($code)\r\n\t{\r\n\t\tif (!is_int($code) || (100 > $code) || (599 < $code)) {\r\n\t\t\tthrow new Syx_Response_Exception('Invalid HTTP response code');\r\n\t\t}\r\n\r\n\t\tif ((300 <= $code) && (307 >= $code)) {\r\n\t\t\t$this->_isRedirect = true;\r\n\t\t} else {\r\n\t\t\t$this->_isRedirect = false;\r\n\t\t}\r\n\r\n\t\t$this->_httpResponseCode = $code;\r\n\t\treturn $this;\r\n\t}", "public function setHttpResponseCode($code)\n {\n if (!is_int($code) || (100 > $code) || (599 < $code)) {\n require_once 'Zend/Controller/Response/Exception.php';\n throw new Zend_Controller_Response_Exception('Invalid HTTP response code');\n }\n\n if ((300 <= $code) && (307 >= $code)) {\n $this->_isRedirect = true;\n } else {\n $this->_isRedirect = false;\n }\n\n $this->_httpResponseCode = $code;\n return $this;\n }", "private function _setHttpResponseHeader($code = null) {\n\t\t$httpCode = $this->controller->response->httpCodes($code);\n\t\tif ($httpCode[$code]) {\n\t\t\t$this->controller->response->statusCode($code);\n\t\t} else {\n\t\t\t$this->controller->response->statusCode(500);\n\t\t\t$code = 500;\n\t\t}\n\t}", "protected static function setStatusCode($code)\n {\n return self::$statusCode = $code;\n\n }", "public function setCode(int $code)\n{\n self::$stored['codes'][] = $code;\n http_response_code($code);\n}", "function http_response_code($response_code = 0) { \r\n \r\n if($response_code)\r\n Pancake\\vars::$Pancake_request->answerCode = $response_code;\r\n return Pancake\\vars::$Pancake_request->answerCode;\r\n }", "public function setCode(int $code): Response {\n\t\t$this->code = $code;\n\t\thttp_response_code($code);\n\n\t\treturn $this;\n\t}", "public function setStatusCode($code, $text);", "protected function setHTTPstatus($code)\n {\n $realCode = Response::$statusTexts;\n\n if (isset($realCode[$code])) {\n $this->HTTPstatus = $code;\n }\n }", "public function setHTTPResponseCode($http_response_code)\n {\n $this->http_response_code = $http_response_code;\n }", "private function setStatusCode()\n {\n $this->status_code = curl_getinfo($this->curl, CURLINFO_HTTP_CODE);\n }", "public function setStatus(int $code): void\n {\n http_response_code($code);\n }", "public static function setHttpResponseCode($code = null)\n {\n if (is_null($code)) {\n return (isset($GLOBALS['http_response_code']))\n ? $GLOBALS['http_response_code']\n : 200;\n }\n\n switch ($code) {\n case 100: $text = 'Continue'; break;\n case 101: $text = 'Switching Protocols'; break;\n case 200: $text = 'OK'; break;\n case 201: $text = 'Created'; break;\n case 202: $text = 'Accepted'; break;\n case 203: $text = 'Non-Authoritative Information'; break;\n case 204: $text = 'No Content'; break;\n case 205: $text = 'Reset Content'; break;\n case 206: $text = 'Partial Content'; break;\n case 300: $text = 'Multiple Choices'; break;\n case 301: $text = 'Moved Permanently'; break;\n case 302: $text = 'Moved Temporarily'; break;\n case 303: $text = 'See Other'; break;\n case 304: $text = 'Not Modified'; break;\n case 305: $text = 'Use Proxy'; break;\n case 400: $text = 'Bad Request'; break;\n case 401: $text = 'Unauthorized'; break;\n case 402: $text = 'Payment Required'; break;\n case 403: $text = 'Forbidden'; break;\n case 404: $text = 'Not Found'; break;\n case 405: $text = 'Method Not Allowed'; break;\n case 406: $text = 'Not Acceptable'; break;\n case 407: $text = 'Proxy Authentication Required'; break;\n case 408: $text = 'Request Time-out'; break;\n case 409: $text = 'Conflict'; break;\n case 410: $text = 'Gone'; break;\n case 411: $text = 'Length Required'; break;\n case 412: $text = 'Precondition Failed'; break;\n case 413: $text = 'Request Entity Too Large'; break;\n case 414: $text = 'Request-URI Too Large'; break;\n case 415: $text = 'Unsupported Media Type'; break;\n case 500: $text = 'Internal Server Error'; break;\n case 501: $text = 'Not Implemented'; break;\n case 502: $text = 'Bad Gateway'; break;\n case 503: $text = 'Service Unavailable'; break;\n case 504: $text = 'Gateway Time-out'; break;\n case 505: $text = 'HTTP Version not supported'; break;\n default:\n exit('Unknown http status code \"' . htmlentities($code) . '\"');\n break;\n }\n\n $protocol = (isset($_SERVER['SERVER_PROTOCOL']))\n ? $_SERVER['SERVER_PROTOCOL']\n : 'HTTP/1.0';\n\n header($protocol . ' ' . $code . ' ' . $text);\n\n $GLOBALS['http_response_code'] = $code;\n\n return $code;\n }", "public function set_status($code)\n {\n }", "public function set_status($code)\n {\n }", "public function setStatusCode(int $code): \\Maleficarum\\Response\\AbstractResponse {\n $message = \\Maleficarum\\Response\\Http\\Status::getMessageForStatus($code);\n\n $this->response->setStatusCode($code, $message);\n\n return $this;\n }", "protected function set_status($code)\n {\n }", "public function setHttpCode($code) {\n $this->httpCode = $code;\n }", "protected function set_valid_response_codes()\n {\n //@todo manage response codes\n $this->valid_response_codes = array(200);\n }", "function http_response_code($newcode = NULL)\n\t\t{\n\t\t\tstatic $code = 200;\n\t\t\tif($newcode !== NULL)\n\t\t\t{\n\t\t\t\theader('X-PHP-Response-Code: '.$newcode, true, $newcode);\n\t\t\t\tif(!headers_sent())\n\t\t\t\t\t$code = $newcode;\n\t\t\t}\n\t\t\treturn $code;\n\t }", "public function status($code)\n {\n $this['response']->setStatus($code);\n }", "private function sendResponseCode(): void\n {\n\n $http = sprintf(\n 'HTTP/%s %s %s',\n $this->versionProtocol,\n $this->responseCode,\n $this->httpCodeText[$this->responseCode]\n );\n\n header($http, true);\n http_response_code($this->responseCode);\n\n }", "public function setStatusCode($code) {\r\n\t\tif (! is_int ( $code ) || (100 > $code) || (599 < $code)) {\r\n\t\t\tthrow new Exception\\InvalidArgumentException ( 'Invalid HTTP response' . ' code:' . $code );\r\n\t\t}\r\n\t\t$this->statusCode = $code;\r\n\t\treturn $this;\r\n\t}", "public function setResponseCode(int $code): Header\n {\n\n $this->responseCode = $code;\n\n return $this;\n\n }", "protected final function responseCode(): int\n {\n return $this->responseCode;\n }", "protected function setHttpCode( $code)\r\n {\r\n $this->httpcode = $code;\r\n }", "public function setHttpResponseCode($code)\n {\n $this->httpResponseCode = $code;\n\n return $this;\n }", "protected function set_status( $code ) {\n\t\tstatus_header( $code );\n\t}", "protected function setResponse($status_code, $message='')\r\n {\r\n $this->response_vars['status_code'] = $status_code;\r\n $this->response_vars['message'] = $message;\r\n }", "private function http_response_code($new_code = null)\n {\n if (!function_exists('http_response_code')) {\n function http_response_code($new_code = NULL)\n {\n static $code = 200;\n if ($new_code !== NULL) {\n header('X-PHP-Response-Code: ' . $new_code, true, $new_code);\n if (!headers_sent()) {\n $code = $new_code;\n }\n }\n return $code;\n }\n } else {\n http_response_code($new_code);\n }\n }", "public function & setStatusCode( $a_code )\r\n\t{\r\n\t\t$this->m_code = intval($a_code);\r\n\t\treturn $this;\r\n\t}", "function setStatusCode($code,$message = null){\n\t\tif(preg_match('/^([0-9]{3}) (.+)/',$code,$matches)){\n\t\t\t$code = $matches[1];\n\t\t\t$message = $matches[2];\n\t\t}\n\n\t\tsettype($code,\"integer\");\n\t\t$this->_StatusCode_Redefined = true;\n\t\t$this->_StatusCode = $code;\n\t\t$this->_StatusMessage = $message;\n\t}", "function responseCode() {\n return $this->responseCode;\n }", "public function get_response_code() {\n return $this->response_code;\n }", "public function setResponseStatus($status) {}", "public function setStatusCode($statusCode);", "public function setStatusCode($code)\n {\n $code = (int) $code;\n if ($code < 100 || $code > 600) {\n throw new \\RuntimeException('HTTP Response Code must be between 100 and 600');\n }\n $this->status = (int) $code;\n\n return $this;\n }", "public function code( $code = null ) {\n\t\tif ( null !== $code ) {\n\t\t\t$this->_code = $code;\n\n\t\t\t// Do we have the PHP 5.4 \"http_response_code\" function?\n\t\t\tif ( function_exists( 'http_response_code' ) ) {\n\t\t\t\t// Have PHP automatically create our HTTP Status header from our code\n\t\t\t\thttp_response_code( $code );\n\t\t\t} else {\n\t\t\t\t// Manually create the HTTP Status header\n\t\t\t\t$protocol = isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0';\n\t\t\t\t$this->header( \"$protocol $code\" );\n\t\t\t}\n\t\t}\n\n\t\treturn $this->_code;\n\t}", "public function setStatusCode($status);", "public function setStatusCode($code)\n {\n $this->statusCode = $code;\n\n return $this;\n }", "public function setStatusCode($code)\n {\n $this->statusCode = $code;\n\n return $this;\n }", "public function allowCustomResponseCode()\n {\n $this->allowCustomResponseCode = \\true;\n }", "public function setCode($response_code)\n {\n $this->response_code = $response_code;\n\n return $this;\n }", "public function getResponseCode()\n {\n }", "public function getResponseCode();", "public function getResponseCode();", "public function getResponseCode()\r\n {\r\n return $this->responseCode;\r\n }", "public function setStatusCode($code, $name = null)\n {\n $this->statusCode = $code;\n $this->statusText = null !== $name ? $name : self::$statusTexts[$code];\n }", "public function getResponseCode()\n {\n return $this->responseCode;\n }", "public function setServerStatusCode($code)\n {\n $this->historial->server_status_code = $code;\n }", "public function setStatusCode(int $statusCode): ResponseInterface;", "public function getResponseCode()\n {\n return $this->response_code;\n }", "public function getCode()\n {\n return $this->response_code;\n }", "public function getResponseCode() {\n return $this->response_code;\n }", "public function setResponseCode($responseCode)\n {\n if (!is_numeric($responseCode)) {\n throw new \\InvalidArgumentException(sprintf(\n '%s: expects a numeric argument; received \"%s\"',\n __METHOD__,\n (is_object($responseCode) ? get_class($responseCode) : gettype($responseCode))\n ));\n }\n \n $this->responseCode = (int) $responseCode;\n }", "public function setStatusCode($code)\n {\n $this->statusCode = $code;\n $this->statusText = HttpCode::getStatusText($code);\n if ($this->statusText === null) {\n throw new InvalidArgumentException(\"invalid HTTP status code '$code'\");\n }\n return $this;\n }", "public function setStatusCode($value)\n {\n $this->_headers[ODataConstants::HTTPRESPONSE_HEADER_STATUS] \n = $value;\n }", "public function setCode(int $code)\n {\n if (!array_key_exists($code, self::STATUS_TEXTS)) {\n throw new OutOfBoundsException(sprintf(\"%d is not a valid HTTP code\", $code));\n }\n \n $this->code = $code;\n }", "public function setStatusCode($statusCode)\n {\n \\http_response_code($statusCode);\n }", "public function getResponseCode(){\n\t\treturn $this->response->getCode();\n\t}", "public function setStatusCode(int $statusCode): void\n {\n $this->statusCode = $statusCode;\n }", "public function setStatusCode($statusCode)\r\n {\r\n $this->_statusCode = $statusCode;\r\n }", "public function httpCode($code){\n $this->httpCode_ = $code;\n return $this;\n }", "public function getStatusCode(){\n return $this->httpResponseCode;\n }", "public function setStatusCode(int $statusCode)\n {\n $this->statusCode = $statusCode;\n }", "public function httpCode(int $code): self\n {\n http_response_code($code);\n\n return $this;\n }", "public function getResponseCode()\n {\n return 200;\n }", "public function code($code = null)\r\n {\r\n if (null !== $code) {\r\n // Require that the response be unlocked before changing it\r\n $this->requireUnlocked();\r\n\r\n $this->status = new HttpStatus($code);\r\n\r\n return $this;\r\n }\r\n\r\n return $this->status->getCode();\r\n }", "public function setStatusCode(int $statusCode)\n {\n $this->meta['status_code'] = $statusCode;\n }", "private function responseCode($response)\n {\n if ($response == '200 OK' || $response == '304 NOT MODIFIED') {\n return \"200\";\n } else {\n return \"500\";\n }\n }", "private function exceptionWithResponseCode($code, $message) {\n $this->httpResponseCode = $code;\n throw new \\Exception($message);\n }", "protected static function statusCode($code=null) {\r\n\t\tstatic $current_status;\r\n\t\t\r\n\t\tif ($code) {\r\n $protocol = isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0';\r\n\t\t\t$current_status = $code;\r\n\t\t\theader($protocol. ' ' . static::$messages[$code]);\r\n\t\t}\r\n\t\treturn $current_status?:200;\r\n\t}", "function set_status_header(int $p_code = 200, string $p_text = '') {\n if (flcCommon::is_cli()) {\n return;\n }\n\n /* if (empty($p_code) or !is_numeric($p_code)) {\n $p_text = 'Status code must be numeric';\n $p_code = 500;\n }*/\n\n if (empty($p_text)) {\n is_int($p_code) or $p_code = (int)$p_code;\n\n if (isset(self::$status_codes[$p_code])) {\n $p_text = self::$status_codes[$p_code];\n } else {\n $p_text = '(null)';\n $p_code = 500;\n }\n }\n\n if (strpos(PHP_SAPI, 'cgi') === 0) {\n header('Status: '.$p_code.' '.$p_text, true);\n } else {\n header($this->get_protocol_version().' '.$p_code.' '.$p_text, true, $p_code);\n }\n }", "public function code($code): JsonResponse\n {\n $this->setStatusCode($code);\n\n return $this;\n }", "public function getResponseCode() {\n return nullInt($this->settings['status'], 200);\n }", "function http_headers_get_response_code() {\n\t\treturn $this->http_response_code;\n\t}", "public function setStatusCode($statusCode)\n {\n $this->statusCode = $statusCode;\n }", "public function theResponseCodeShouldBe($code)\n {\n $expected = intval($code);\n $actual = intval($this->response->getStatusCode());\n Assertions::assertSame($expected, $actual);\n }", "public function theResponseCodeShouldBe($code)\n {\n $expected = intval($code);\n $actual = intval($this->response->getStatusCode());\n Assertions::assertSame($expected, $actual);\n }", "public function setCode($code)\n {\n $this->code = $this->getApiErrorCode($code);\n }", "public function getResponseHTTPCode()\n {\n return $this->httpCode;\n }", "protected function _getCode()\n {\n // filter code from response\n return (int)substr($this->_getServerResponse(), 0, 3);\n }", "public function getStatusCode(): int\n {\n return $this->code ;\n }", "function status($code) {\n $reason=@constant('self::HTTP_'.$code);\n if (PHP_SAPI!='cli')\n header($_SERVER['SERVER_PROTOCOL'].' '.$code.' '.$reason);\n return $reason;\n }", "protected function setErrorHeader() {\n\t\tif ($this->response_code >= 400 && $this->response_code < 500) {\n\t\t\theader('HTTP/1.1 ' . $this->response_code . \" \" . SVException::g($this->response_code));\n\t\t\texit(0);\n\t\t}\n\t}", "protected function setStatusCode($statusCode)\r\n {\r\n $this->slim->response()->status($statusCode);\r\n }", "private function responseCode($line) {\n // Expecting \"HTTP/1.1 200 OK\", \"HTTP/1.1 404 NOT FOUND\", etc.\n $this->code = (int) substr($line, 9, 3);\n // Consider 200 to be success and all else to be failure\n // but there are other return codes that may be acceptable\n if ($this->code !== 200) {\n $this->currentState = self::FAIL_STATE;\n throw new \\Exception(\"Received code {$this->code} from the server. ($line)\");\n }\n else {\n $this->currentState = self::RECEIVE_HEADER;\n }\n }", "public function setStatusCodeMsg($msg)\r\n {\r\n $this->_statusCodeMsg = $msg;\r\n }" ]
[ "0.8936094", "0.88438815", "0.86261517", "0.85919845", "0.83499694", "0.8313988", "0.83049965", "0.80509216", "0.7965356", "0.78387505", "0.7798392", "0.7788019", "0.77404714", "0.7719749", "0.77021325", "0.7665892", "0.76595813", "0.76095223", "0.7608377", "0.7535599", "0.75298595", "0.75274456", "0.750446", "0.7496419", "0.7496253", "0.74934435", "0.74864125", "0.7486107", "0.7482734", "0.7477693", "0.74715024", "0.74557954", "0.7429518", "0.7428904", "0.74118495", "0.7410574", "0.7408163", "0.74030995", "0.73974293", "0.73769677", "0.7351175", "0.73252314", "0.7294216", "0.7289796", "0.7260189", "0.7232198", "0.72276103", "0.7225555", "0.71884763", "0.7130734", "0.71306384", "0.71252173", "0.71126175", "0.71126175", "0.70869386", "0.7083728", "0.7072742", "0.7025818", "0.7025818", "0.6981437", "0.69619125", "0.6938982", "0.6936376", "0.69270915", "0.69256055", "0.6922684", "0.6897265", "0.68941325", "0.6875182", "0.6855415", "0.6848111", "0.68216974", "0.68205744", "0.6792274", "0.6778351", "0.67763585", "0.67763066", "0.6746286", "0.67445594", "0.6703681", "0.6684559", "0.667474", "0.6635812", "0.6627467", "0.66194856", "0.66163045", "0.66107756", "0.6598403", "0.6593439", "0.6592206", "0.65867853", "0.65867853", "0.65819657", "0.6581529", "0.65724427", "0.6569569", "0.65665954", "0.6558198", "0.6548877", "0.6524583", "0.6523079" ]
0.0
-1
Sets the response header
public function setHeader($attribute, $value);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setHeader($header);", "public function alter_header()\n\t{\n\t\theader(\"HTTP/1.0 $this->code $this->title\");\n\t}", "public function setHeader($name, $value) {}", "function _setHeaders(){\n header(\"HTTP/1.1 \" . $this->CodeHTTP . \" \" . $this->_getStatusMessage());\n header(\"Content-Type: $this->ContentType\");\n }", "abstract public function SetHeaders();", "public static function set_headers()\n {\n }", "function setResponse(){\n\t// Set the response message header\n\t// This example just sets a basic header response but you may need to \n\t// add some more checks, authentication, etc \n\t$header = array(\n\t\t'status'\t=> 'ok',\n\t\t'message'\t=> 'Service call was successful'\n\t);\n\t\n\treturn $header; \n}", "protected function setHeader(){\n $this->header = [\n 'Auth-id' => $this->username,\n 'Auth-token' => $this->generateToken(),\n 'Timestamp' => time()\n ];\n }", "public function set_header($header, $value);", "public function setHeader($key,$val){ return $this->headers->set($key,$val); }", "public function setHeader($name, $value);", "public function setHeader($name, $value);", "private static function setHeaders()\n {\n header('X-Powered-By: Intellivoid-API');\n header('X-Server-Version: 2.0');\n header('X-Organization: Intellivoid Technologies');\n header('X-Author: Zi Xing Narrakas');\n header('X-Request-ID: ' . self::$ReferenceCode);\n }", "public function setHeaders() {\r\n\t\t$this->resource->setHeaders();\r\n\t}", "public function outputRegularHeaders()\n {\n if (headers_sent()) {\n // headers have already been sent - this is an error\n $this->logger->error(\"Headers already sent!\");\n return;\n }\n\n\n if (!$this->client) {\n // client hasn't been used\n $this->logger->error(\"Client not used? (\" . __METHOD__ . \")\");\n return;\n }\n\n\n $response = $this->client->getResponse();\n\n // response code header\n header(\"HTTP/1.1 \" . $response->getResponseCode(), true );\n\n // Set-Cookie: headers if present\n if ($response->hasHeaders() ) {\n foreach ($response->getHeaders() as $name => $value) {\n\t //$this->logger->debug(\" >>\" . $name . \": \" . $value);\n \tif( $name != \"Set-Cookie\" && ( $name == \"Cache-Control\" || $name == \"Expires\" ) ) {\n \t\t// we process cookies separately, due to there being multiple headers\n\t\t\t\t\t$this->logger->debug(\"Setting header: \" . $name . \": \" . $value);\n\t\t\t\t\t//error_log( \"Setting header: \" . $name . \": \" . $value);\n\t\t\t\t\theader($name . \": \" . $value, true);\n \t}\n }\n }\n\n\n $this->outputCookieHeaders();\n\n // Location: header if required (if this is a redirect)\n if ($response->isRedirect() && $response->hasHeader(\"Location\")) {\n header(\"Location: \" . $response->getHeader(\"Location\"), true);\n }\n }", "public function registerHeaders(Zend_Controller_Response_Http $response,\n Zend_View_Abstract $view)\n {\n \n }", "private function setHeaders($response)\n {\n $dispositionHeader = $response->headers->makeDisposition(\n ResponseHeaderBag::DISPOSITION_ATTACHMENT,\n $this->filename\n );\n $response->headers\n ->set('Content-Type', 'text/' . ($this->isCSVExport() ? 'csv' : 'vnd.ms-excel') . '; charset=utf-8');\n $response->headers->set('Pragma', 'public');\n $response->headers->set('Cache-Control', 'maxage=1');\n $response->headers->set('Content-Disposition', $dispositionHeader);\n }", "public function setHeaders()\n {\n }", "protected function sendHeaders()\n {\n http_response_code($this->response_status_code);\n\n // collect current headers into array\n $headers = headers_list();\n\n foreach ($headers as $h) {\n $h_parts = explode(\":\", $h);\n\n if (array_key_exists($h_parts[0], $this->response_headers)) {\n continue;\n }\n\n $this->response_headers[$h_parts[0]] = $h_parts[1];\n }\n\n // response type\n $this->response_headers[\"Content-Type\"] = $this->response_content_type;\n\n if (!is_null($this->response_content_charset)) {\n $this->response_headers[\"Content-Type\"] .= \"; charset=\" . $this->response_content_charset;\n }\n\n // by default remove php version\n unset($this->response_headers[\"X-Powered-By\"]);\n\n // put own headers\n header_remove();\n\n foreach ($this->response_headers as $key => $value) {\n header($key . \":\" . $value);\n }\n\n return;\n }", "function setHeader($header)\t{\n\t\tif(isset($header))\t{\n\t\t\tcurl_setopt($this->ch, CURLOPT_HTTPHEADER, $header);\n\t\t}\n\t\telse {\n\t\t\techo \"** Expecting header.\\n\";\n\t\t}\n\t}", "public function set_header($key, $value)\n {\n }", "protected function setErrorHeader() {\n\t\tif ($this->response_code >= 400 && $this->response_code < 500) {\n\t\t\theader('HTTP/1.1 ' . $this->response_code . \" \" . SVException::g($this->response_code));\n\t\t\texit(0);\n\t\t}\n\t}", "public static function setHeader($header)\n {\n header($header, true);\n }", "function setHeaders()\n {\n header('Content-type: application/json');\n\n // Calculate Expires Headers if set to > 0\n $expires = $this->grav['config']->get('system.pages.expires');\n if ($expires > 0) {\n $expires_date = gmdate('D, d M Y H:i:s', time() + $expires) . ' GMT';\n header('Cache-Control: max-age=' . $expires);\n header('Expires: '. $expires_date);\n }\n }", "protected function setAuthenticationHeader($response, $token = null)\n {\n if ($response instanceof Response) {\n // $token = $token ?: $this->auth->refresh();\n // $response->headers->set('Authorization', 'Bearer ' . $token);\n $response->headers->set('Fromlin', 'it works');\n }\n return $response;\n }", "public function setHeader($headerName, $headerValue): void {\n\t\t$this->_responseHeaders[$headerName] = $headerValue;\n\t\theader($headerName . ': ' . $headerValue);\n\t}", "public function setHeaders(array $header) {}", "public function outputHeaders()\n {\n if (headers_sent()) {\n // headers have already been sent - this is an error\n $this->logger->error(\"Headers already sent!\");\n return;\n }\n\n\n if (!$this->client) {\n // client hasn't been used\n $this->logger->error(\"Client not used? (\" . __METHOD__ . \")\");\n return;\n }\n\n\n $response = $this->client->getResponse();\n\n // response code header\n header(\"HTTP/1.1 \" . $response->getResponseCode(), true );\n\n // Set-Cookie: headers if present\n if ($response->hasHeaders() ) {\n foreach ($response->getHeaders() as $name => $value) {\n \tif( $name != \"Set-Cookie\" ) {\n \t\t// we process cookies separately, due to there being multiple headers\n\t\t\t\t\t//$this->logger->debug($name . \": \" . $value);\n\t\t\t\t\theader($name . \": \" . $value);\n \t}\n }\n }\n\n $this->outputCookieHeaders();\n\n // Location: header if required (if this is a redirect)\n if ($response->isRedirect() && $response->hasHeader(\"Location\")) {\n header(\"Location: \" . $response->getHeader(\"Location\"), true);\n }\n }", "public function setHeader($var)\n {\n GPBUtil::checkMessage($var, \\Etcdserverpb\\ResponseHeader::class);\n $this->header = $var;\n\n return $this;\n }", "public function setHeaders() : void {\n $this->setCacheHeaders();\n }", "public function addHeaders(Response $response = null);", "public function setResponseHeaders($headers)\n { \n // parse the given headers. \n $headers = $this->parseResponseHeaders($headers);\n \n // lowercase all keys in the array.\n $headers = Arrays::normalize($headers);\n if (is_array($this->responseHeaders)) {\n $headers = array_merge_recursive($this->responseHeaders, $headers);\n }\n \n $this->responseHeaders = $headers;\n }", "public function sendHeader() : void\n {\n http_response_code($this->statusCode);\n\n foreach ($this->headers as $name => $value)\n {\n header(sprintf('%s: %s', $name, $value));\n }\n }", "private function _setHttpResponseHeader($code = null) {\n\t\t$httpCode = $this->controller->response->httpCodes($code);\n\t\tif ($httpCode[$code]) {\n\t\t\t$this->controller->response->statusCode($code);\n\t\t} else {\n\t\t\t$this->controller->response->statusCode(500);\n\t\t\t$code = 500;\n\t\t}\n\t}", "private function setHeaders()\n\t{\n\t\theader(\"Cache-Control: must-revalidate, max-age=12000\");\n\t\theader(\"Vary: Accept-Encoding\");\n\t\theader('Content-Type: text/plain; charset=utf-8');\n\t}", "protected function setCurlHeaderElement() {\n // set header for cur\n $this->header[] = 'Content-type: application/json';\n $this->header[] = 'Authorization: Bearer '.$this->accessToken;\n }", "private function setHeaders(){\n header('Cache-Control: no-cache, must-revalidate');\n header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');\n header('Content-type: application/json charset=utf8');\n }", "public static function setHeader($string) {\n header($string, false);\n }", "public function setResponseHeaders(array $headers)\n {\n $this->responseHeaders = $headers;\n }", "public function setHeader($header)\n {\n $this->_header = $header;\n }", "public function setHeader($key, $value)\n {\n $this->httpClient->setHeader($key, $value);\n }", "protected function send_headers() {\n header('Cache-Control: private, must-revalidate, pre-check=0, post-check=0, max-age=0');\n header('Expires: '. gmdate('D, d M Y H:i:s', 0) .' GMT');\n header('Pragma: no-cache');\n header('Accept-Ranges: none');\n }", "abstract public function header($name, $value);", "protected function setHeader($name, $value) {\n\t\t$this->cw_response[$name] = $value;\n\t\treturn true;\n\t}", "public function set_header($header, $value)\n {\n }", "public function onKernelResponse(ResponseEvent $event): void\n {\n if (!$event->isMainRequest()) {\n return;\n }\n\n $event->getResponse()->headers->set($this->headerName, $this->requestIdProvider->getCurrentRequestId());\n }", "protected function outputHeaders() {\n $controlFlags = [];\n if (!$this->cacheable) {\n $controlFlags[] = 'no-store';\n $controlFlags[] = 'no-cache';\n } else {\n if ($this->revalidate) {\n $controlFlags[] = 'no-cache';\n $controlFlags[] = 'must-revalidate';\n }\n $controlFlags[] = $this->private ? 'private' : 'public';\n if ($this->age > 0) {\n $controlFlags[] = 'max-age=' . (int)round($this->age);\n }\n if (!empty($this->ETag)) {\n $this->setHeader('ETag', $this->ETag);\n }\n if (!is_null($this->modifiedDate)) {\n $this->setHeader('Last-Modified', $this->httpUtils->formatDateTime($this->modifiedDate));\n }\n }\n if (!empty($controlFlags)) {\n $this->setHeader('Cache-Control', implode(', ', $controlFlags));\n }\n parent::outputHeaders();\n }", "public function sendHeaders(): void\n\t{\n\t\tif ($this->httpResponse === null) {\n\t\t\tthrow new InvalidStateException(sprintf('Cannot send response without %s', Response::class));\n\t\t}\n\n\t\t// Send status code\n\t\t$this->httpResponse->setCode($this->getStatusCode());\n\n\t\t// Send headers\n\t\tforeach ($this->getHeaders() as $name => $values) {\n\t\t\tforeach ($values as $value) {\n\t\t\t\t$this->httpResponse->setHeader($name, $value);\n\t\t\t}\n\t\t}\n\t}", "protected function sendHeaders()\n {\n $statusCode = $this->getStatusCode();\n $this->swoole_http_response->status($statusCode);\n if ($this->_headers) {\n $headers = $this->getHeaders();\n foreach ($headers as $name => $values) {\n // Swoole底层不允许设置相同$key的Http头\n $this->swoole_http_response->header($name, end($values));\n }\n }\n $this->sendCookies();\n }", "public function testHeader() {\n $response = new Response();\n $key = \"This is the test key\";\n $value = \"And this is the test value\";\n $response->setHeader($key, $value);\n $this->assertEquals($value, $response->header($key));\n }", "private function setHeaderInformation()\n {\n $this->header = new \\stdClass();\n $request \t= \\Yii::$app->request;\n $requestHeaders = $request->getHeaders();\n foreach ($this->headerKey as $key => $value) {\n if ($requestHeaders->offsetExists($value)) {\n $this->header->$value = $requestHeaders->get($value);\n $this->header->status =200;\n } else {\n $this->header->status =500;\n yii::error('Header '.$value.\" is missing\", 'api_request');\n break;\n }\n }\n }", "public function setHeader(string $header_name, string $header_value): void;", "public function setHeader($callback)\n {\n //die();\n # echo \"yo\";\n $this->headerCallback = $callback;\n }", "public static function setHeader($pHeader)\n\t{\n\t\theader($pHeader);\n\t}", "protected function set_headers()\n\t{\n\t\tif($this->headers_required) { \n\n\t\t\t$this->headers = [\n\t\t\t \n\t\t\t\t'Authorization: '. $_SESSION['token'] .'',\n\t\t\t];\n\n\t\t}\n\n\t}", "protected function setAuthenticationHeader($response, $token = null)\n {\n $token = $token ?: $this->auth->refresh();\n $response->headers->set('Authorization', 'Bearer ' . $token);\n return $response;\n }", "protected function output_headers()\n\t{\n\t\t$this->add_header('Content-type', $this->content_type);\n\t\tforeach ($this->_headers as $k=>$v) header($k.': '.$v);\n\t}", "public function testAssertHeader(): void\n {\n $this->_response = new Response();\n $this->_response = $this->_response->withHeader('Etag', 'abc123');\n\n $this->assertHeader('Etag', 'abc123');\n }", "protected function sendHeaders()\n {\n // setup response code\n http_response_code($this->code);\n\n // send stored cookies\n foreach ($this->cookies as $cookie) {\n call_user_func_array('setcookie', array_values($cookie));\n }\n\n // send stored headers\n foreach ($this->headers as $key => $value) {\n header($key .': '. join(', ', $value));\n }\n }", "public function setHeader($header) {\n $this->gz = (is_array($header) && in_array(\"Accept-Encoding: gzip\",$header));\n\n return curl_setopt($this->ch,CURLOPT_HTTPHEADER,$header);\n }", "public function setHttpHeader($name, $value = null);", "public static function setHeader($name, $value = null, $replace = null) {}", "public function add_header() {\n }", "public function header($name);", "private function _initializeResponseHeaders()\n {\n $this->_headers[ODataConstants::HTTPRESPONSE_HEADER_CONTENTTYPE] = null;\n $this->_headers[ODataConstants::HTTPRESPONSE_HEADER_CONTENTLENGTH] = null;\n $this->_headers[ODataConstants::HTTPRESPONSE_HEADER_ETAG] = null;\n $this->_headers[ODataConstants::HTTPRESPONSE_HEADER_CACHECONTROL] = null;\n $this->_headers[ODataConstants::HTTPRESPONSE_HEADER_LASTMODIFIED] = null;\n $this->_headers[ODataConstants::HTTPRESPONSE_HEADER_LOCATION] = null;\n $this->_headers[ODataConstants::HTTPRESPONSE_HEADER_STATUS] = null;\n $this->_headers[ODataConstants::HTTPRESPONSE_HEADER_STATUS_CODE] = null;\n $this->_headers[ODataConstants::HTTPRESPONSE_HEADER_STATUS_DESC] = null;\n $this->_dataServiceVersion = null;\n }", "public function setHttpHeaders() {\n $this->_httpHeaders[] = \"Content-Type: application/x-yaml\";\n parent::setHttpHeaders();\n }", "public function setAuthenticateHeader()\n {\n $response = \\Yii::$app->response;\n $response->getHeaders()->set('WWW-Authenticate', \"Basic realm=\\\"{$this->realm}\\\"\");\n }", "public function setHttpHeaders() {\n $this->_httpHeaders[] = \"Content-Type: application/json\";\n parent::setHttpHeaders();\n }", "final public function setOptionHeader($option)\n {\n $this->options->header = $option;\n }", "function setHeader($string)\n {\n if (!empty($this->header))\n {\n $this->header .= $string;\n }\n else \n {\n $this->header = $string;\n }\n }", "protected static function get_response_headers()\n {\n }", "protected function header($header) {\r\n\t\theader($header);\r\n\t}", "protected function set_headers() {\n\t\t// Overwrite Content-Type header.\n\t\tif ( ! \\headers_sent() ) {\n\t\t\t\\header( 'Content-Type: ' . \\get_option( 'html_type' ) . '; charset=' . \\get_option( 'blog_charset' ) );\n\t\t}\n\n\t\t\\status_header( 404 );\n\t\t\\nocache_headers();\n\t}", "protected function sendHeaders()\n {\n if (headers_sent()) {\n return;\n }\n $headers = $this->getHeaders();\n foreach ($headers as $name => $values) {\n $name = str_replace(' ', '-', ucwords(str_replace('-', ' ', $name)));\n // set replace for first occurrence of header but false afterwards to allow multiple\n// $replace = true;\n foreach ($values as $value) {\n $this->responseBySwoole->header($name,$value);\n// header(\"$name: $value\", $replace);\n// $replace = false;\n }\n }\n $statusCode = $this->getStatusCode();\n// $this->responseBySwoole->header(\"HTTP/{$this->version} {$statusCode} {$this->statusText}\");\n $this->sendCookies();\n }", "private function addCommonHeader()\r\n {\r\n $this->response->headers['Allow'] = 'OPTIONS,GET,HEAD,POST,PATCH';\r\n $this->response->headers['Access-Control-Allow-Methods']='OPTIONS,GET,HEAD,POST,PATCH';\r\n $this->response->headers['Access-Control-Allow-Origin']='*';\r\n $this->response->headers['Access-Control-Allow-Headers']= 'Origin, X-Requested-With, Content-Type, Accept, Entity-Length, Offset';\r\n $this->response->headers['Access-Control-Expose-Headers']= 'Location, Range, Content-Disposition, Offset';\r\n }", "public function setHeader($str)\n\t{\n\t\t$this->headerStr = $str;\n\t}", "public function sendHeader()\n\t{\n\t\t# \"Set-Cookie\"\n\t\t$str = 'Set-Cookie: ' . $this->name . '=' . $this->id;\n\n\t\tif (is_string($this->comment))\n\t\t\t$str .= ';comment=' . $this->comment;\n\n\t\tif (is_string($this->domain))\n\t\t\t$str .= ';domain=.' . $this->domain;\n\n\t\tif (! is_null($this->maxage) && $this->maxage >= 0)\n\t\t\t$str .= ';max-age=' . $this->maxage;\n\n\t\tif (is_string($this->path))\n\t\t\t$str .= ';path=' . $this->path;\n\n\t\tif ($this->secure) $str .= ';secure';\n\n\t\t$str .= ';version=1';\n\n\t\t# we can make sure cache files get deleted more efficiently by not\n\t\t# sending \"expires\" info in the cookie\n\t\t# TODO: improve cache deletion efficiency\n\t\tif\n\t\t(\n\t\t\t$this->cookieExpirable\n\t\t\t&& ! is_null($this->expires)\n\t\t\t&& '' != $this->expires\n\t\t)\n\t\t{\n\t\t\t$strDT = gmdate\n\t\t\t(\n\t\t\t\t'D, d-M-Y H:i:s'\n\t\t\t\t, time() + ($this->expires * 60)\n\t\t\t) . ' GMT';\n\n\t\t\t$str .= ';expires=' . $strDT;\n\n\t\t\theader('Expires: ' . $strDT);\n\t\t}\n\n\t\theader($str);\n\n\t\t# \"Cache-Control\"\n\t\tswitch($this->cachectrl)\n\t\t{\n\t\tcase self::CACHECTRL_PROXY_REVALIDATE:\n\t\tcase self::CACHECTRL_MUST_REVALIDATE:\n\t\tcase self::CACHECTRL_PRIVATE:\n\t\tcase self::CACHECTRL_NOCACHE:\n\t\t\theader\n\t\t\t(\n\t\t\t\t'Cache-control: ' . self::$CacheCtrl[$this->cachectrl]\n\t\t\t);\n\t\t\tbreak;\n\t\tcase self::CACHECTRL_NONE:\n\t\tdefault:\n\t\t}\n\t}", "public function setHeader($name, $value) {\n\t\t$this->headers[$name] = $value;\n\t}", "public function enableViaHeaders()\n {\n $this->typeResponseCode = true;\n\t}", "protected function setHeaders(): void\n {\n if (empty($this->headers) === false || empty($this->data) === true) {\n return;\n }\n\n $headers = array_keys(reset($this->data));\n\n array_walk($headers, fn(&$header) => $header = ucwords(str_replace(\"_\", \" \", $header)));\n\n $this->headers = $headers;\n }", "private function setHeader($body, $http_code = null){\n $output = json_encode($body);\n\t\tif(empty($http_code)){\n\t\t\t$http_code = 200;\n\t\t}\n $this->output->set_header(\"Access-Control-Allow-Credentials: true\");\n $this->output->set_header(\"Access-Control-Allow-Origin: *\");\n $this->output->set_status_header($http_code);\n $this->output->set_content_type('application/json');\n $this->output->set_header('utoken:'.$this->utoken);\n $this->output->set_header('gid:'.$this->gid);\n $this->output->set_output($output);\n $this->output->_display();\n exit;\n }", "public function set_header($header, $value)\r\n {\r\n $this->headers[$header] = $value;\r\n }", "public function addHeader()\n {\n }", "private function writeHeaders() {\n if( is_null($this->Headers) ) return;\n\n foreach($this->Headers as $hd) {\n header($hd);\n }\n\n header(\"Content-Type: \". $this->ContentType .\"; charset=\". $this->Charset .\"\");\n }", "public function addHeader(string $name, string $value): \\Maleficarum\\Response\\Http\\Response {\n $this->response->setHeader($name, $value);\n\n return $this;\n }", "public static function setHeader($name, $value)\n {\n self::$_varnishHeaderName = $name;\n self::$_varnishHeaderValue = $value;\n }", "protected function setHeaders() {\n\t\tif(!self::$headerIncluded) {\n\n\t\t\tif($this->settings['includes']['jquery'])\n\t\t\t\t$this->response->addAdditionalHeaderData('<script type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js\"></script>');\n\n if($this->settings['includes']['mediaelement'])\n\t\t\t $this->response->addAdditionalHeaderData('<script type=\"text/javascript\" src=\"'.t3lib_extMgm::siteRelPath($this->extKey).'Resources/Public/Vibeo/mediaelement-and-player.min.js\"></script>');\n\n\t\t\tif($this->settings['includes']['jquery-resize'])\n\t\t\t\t$this->response->addAdditionalHeaderData('<script type=\"text/javascript\" src=\"'.t3lib_extMgm::siteRelPath($this->extKey).'Resources/Public/Vibeo/jquery.ba-resize.min.js\"></script>');\n\t\t\tif($this->settings['includes']['modernizr'])\n\t\t\t\t$this->response->addAdditionalHeaderData('<script type=\"text/javascript\" src=\"'.t3lib_extMgm::siteRelPath($this->extKey).'Resources/Public/Vibeo/modernizr-2.5.3.js\"></script>');\n\t\t\t\t\t\t\n\t\t\tif($this->settings['includes']['css'])\n\t\t\t\t$this->response->addAdditionalHeaderData('<link rel=\"stylesheet\" href=\"'.t3lib_extMgm::siteRelPath($this->extKey).'Resources/Public/CSS/tx-vibeo.css\" />');\n\n if($this->settings['includes']['mediaelement-css'])\n\t\t\t $this->response->addAdditionalHeaderData('<link rel=\"stylesheet\" href=\"'.t3lib_extMgm::siteRelPath($this->extKey).'Resources/Public/Vibeo/mediaelementplayer.css\" />');\n\n if($this->settings['includes']['mediaelement-skin-css'])\n $this->response->addAdditionalHeaderData('<link rel=\"stylesheet\" href=\"'.t3lib_extMgm::siteRelPath($this->extKey).'Resources/Public/Vibeo/skin-gray.css\" />');\n\n\t\t\tself::$headerIncluded = true;\n\t\t}\n\t}", "function httpHeader($header) {\r\n\t\t$this->customHeaders[] = $header;\r\n\t}", "public static function setHeader($key, $value)\n {\n self::$__headers[strtolower($key)] = $value;\n }", "protected function sendAuthHeaders()\n {\n $sessionId = GlobalRequest::getSessionIdFromCookie();\n $sessionHandleKey = GlobalRequest::getSessionHandleKeyFromCookie();\n\n $this->setHeader('xa-modifier-sid', !empty($sessionId) ? $sessionId : \"null\");\n $this->setHeader('xa-modifier-shk', !empty($sessionHandleKey) ? $sessionHandleKey : \"null\");\n }", "public function init()\n {\n $this->getResponse()->setHeader('Content-Type', 'application/json');\n $this->getResponse()->setHeader('Access-Control-Allow-Origin', '*');\n $this->getResponse()->setHeader('Access-Control-Expose-Headers', 'Link');\n }", "public function setHeaders(){\n header('Content-Type: text/cache-manifest');\n header('Cache-Control: no-cache');\n }", "public function send() {\n /** @var HeaderCollection $headers */\n $headers = Yii::$app->response->headers;\n $headers->removeAll();\n foreach ($this->getHeaders() as $_header => $lines) {\n $headers->add($_header, $this->getHeaderLine($_header));\n }\n Yii::$app->response->version = $this->getProtocolVersion();\n Yii::$app->response->statusCode = $this->getStatusCode();\n Yii::$app->response->statusText = $this->getReasonPhrase();\n Yii::$app->response->content = $this->getBody();\n\n Yii::$app->response->send();\n }", "public function set_header(string $p_name, $p_value) {\n // If zlib.output_compression is enabled it will compress the output,\n // but it will not modify the content-length header to compensate for\n // the reduction, causing the browser to hang waiting for more data.\n // We'll just skip content-length in those cases.\n if ($this->_zlib_oc && strncasecmp($p_name, 'content-length', 14) === 0) {\n return;\n }\n\n $orig_name = $this->get_header_name($p_name);\n\n if (isset($this->headers[$orig_name]) && is_array($this->headers[$orig_name])) {\n if (!is_array($p_value)) {\n $p_value = [$p_value];\n }\n\n foreach ($p_value as $v) {\n $this->append_header($orig_name, $v);\n }\n } else {\n $this->headers[$orig_name] = $p_value;\n $this->header_map[strtolower($orig_name)] = $orig_name;\n }\n }", "public function setHeader($headerName, $headerValue);", "protected function header()\n {\n\n }", "public function header($header)\n {\n $this->headers[] = $header;\n }", "public function setHeaders($header)\n\t{\n\t\treturn array_replace($this->headers,$header);\n\t}", "public function setStatusCode($value)\n {\n $this->_headers[ODataConstants::HTTPRESPONSE_HEADER_STATUS] \n = $value;\n }", "public function setHeader($header, $value) {\r\n $this->headers[$header] = $value;\r\n }" ]
[ "0.7343322", "0.73036003", "0.72854346", "0.72572094", "0.72545433", "0.72390574", "0.7191759", "0.7167859", "0.7141989", "0.7139923", "0.7120596", "0.7120596", "0.7094081", "0.705503", "0.6995691", "0.69544315", "0.6944884", "0.6933261", "0.6932088", "0.69314253", "0.69060206", "0.687843", "0.6858884", "0.68394214", "0.6811601", "0.67799914", "0.6764197", "0.67579263", "0.6754375", "0.67413104", "0.67378265", "0.6725983", "0.67242956", "0.67203116", "0.670406", "0.66622216", "0.66274786", "0.6592401", "0.6590639", "0.65891093", "0.65672946", "0.65633076", "0.65623045", "0.6561671", "0.6560539", "0.6553338", "0.65331393", "0.6529861", "0.6522164", "0.65130234", "0.64921695", "0.6488651", "0.64830935", "0.64750737", "0.64746594", "0.64645374", "0.6461617", "0.6458951", "0.64554334", "0.64424413", "0.64387786", "0.642639", "0.64222497", "0.6419878", "0.64155537", "0.64059514", "0.64049095", "0.6401052", "0.6389448", "0.63880897", "0.63829863", "0.6381665", "0.63733906", "0.6368782", "0.6330825", "0.63291126", "0.63255847", "0.6312269", "0.63103", "0.6300653", "0.6295657", "0.62884545", "0.6283788", "0.6283688", "0.6278321", "0.6278169", "0.6269929", "0.6228911", "0.62252456", "0.6214746", "0.6211828", "0.62049377", "0.6193284", "0.6191573", "0.619054", "0.6190477", "0.6183832", "0.6177305", "0.61707103", "0.6169203" ]
0.6270414
86
Write a new line with the specified message
public function writeLine($message);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function line($message)\n {\n if (!$this->output) {\n return;\n }\n\n $this->output->writeln('<comment>'.$message.'</comment>');\n }", "public function writeln($message, $type = self::OUTPUT_NORMAL);", "protected function doWrite($message, $newline)\n {\n }", "public function writeLine($text);", "public function write(string $message, $newline = false);", "abstract protected function doWrite(string $message, bool $includeNewLine);", "public function writeln($line)\n {\n $this->write($line.PHP_EOL);\n }", "public function write($messages, $newline = true);", "protected function doWrite($message, $newline)\n {\n $this->written .= $message.($newline ? PHP_EOL : '');\n }", "function write($message);", "public function writeLine($msg, $style = null) {\n if ($this->isEnabled()) {\n if (null !== $style) {\n $this->console->writeln('<' . $style . '>' . $msg . '</' . $style . '>');\n } else {\n $this->console->writeln($msg);\n }\n }\n }", "public function writeln(string $style, string $message): void\n {\n $this->write($style, $message, true);\n }", "public function write($messages, $newline = false);", "function gameMessage($message) {\n\tfwrite(STDOUT, $message . PHP_EOL);\n}", "public function write($message);", "public function out($message = null, $newlines = 1, $level = Shell::NORMAL) {\n\t\t$this->out[] = $message;\n\t}", "protected function new_line()\n {\n }", "private static function writeLine($message, $color = self::CLI_COLOR_DEFAULT, $type = self::CLI_TYPE_INFO) {\n $defaultColor = self::CLI_COLOR_DEFAULT;\n echo \"$color $type:$defaultColor $message\\n\";\n }", "public function writeMessage($message);", "public function write( $message ){\n \n fwrite( $this->getFilePointer(), $message . \"\\n\\n\" );\n \n }", "public function writeLine($line);", "private function add_new_line() {\n\n\t\t$this->fields[] = array( 'newline' => true );\n\n\t}", "function addMessageLine($m){\n global $BackupPath;\n\n $log = $BackupPath . \"backupLog.txt\";\n $message = $m . \" ... \" . date(\"Y-m-d H:i:s\") .\"\\r\\n\";\n echo $message;\n file_put_contents($log, $message.PHP_EOL , FILE_APPEND | LOCK_EX);\n}", "public function write(string $message);", "public function newLineWritten();", "public static function write(string $message)\n {\n print $message . \"\\n\";\n }", "public function logLn($msg, $style = '')\n {\n $this->log($msg, $style);\n $this->ln();\n }", "public function write($message)\n {\n\n file_put_contents($this->path . $this->file, trim($message).PHP_EOL, FILE_APPEND);\n }", "protected function writeLine($line) {\n\t\t$this->fputs($line . \"\\r\\n\");\n\t}", "abstract function write ($message);", "public function writeln($messages, $options = 0)\n {\n }", "public function writeln($messages, int $options = 0);", "public function message($message)\n {\n echo $message . PHP_EOL;\n }", "public function writeLine()\n {\n $this->assertEquals('', $this->memoryOutputStream->getBuffer());\n $this->assertEquals(6, $this->memoryOutputStream->writeLine('hello'));\n $this->assertEquals(\"hello\\n\", $this->memoryOutputStream->getBuffer());\n }", "private function _writeMessage()\n {\n if (!is_callable($this->fetchData)) {\n return;\n }\n\n $message = '';\n $message .= sprintf('id: %s', $this->id++ . PHP_EOL);\n $message .= sprintf('retry: %s', $this->retryTime * 1000 . PHP_EOL);\n $message .= sprintf('data: %s', call_user_func($this->fetchData) . PHP_EOL);\n\n if (!empty($this->eventName)) {\n $message .= sprintf('event: %s', $this->eventName . PHP_EOL);\n }\n\n echo $message . PHP_EOL;\n }", "public function write($line)\n {\n $time = date('H:i:s');\n $this->output->writeln(\"[{$time}] {$line}\");\n }", "public function write($messages, $newline = false, $options = 0)\n {\n }", "function WriteLine($data=null) \r\n{ \r\nreturn $this->Write($data . $this->NewLine); \r\n}", "public function writeMessages()\n {\n /**\n * Messages so far have their own PHP_EOL at the end of them,\n * so I don't implode them using PHP_EOL.\n *\n */\n echo implode(\"\", $this->messages);\n }", "public function add($line) {\r\n if(is_string($line)) $line .= \"\\n\";\r\n $this->body[]=$line;\r\n }", "public function writeln($messages, $options = 0)\n {\n $messages = $this->addIndentationToMessages($messages);\n\n $this->decoratedOutput->writeln($messages, $options);\n }", "public function output($msg, $verboseLevel=OutputInterface::VERBOSITY_NORMAL, $linebreak=true): void\n {\n if ($this->outputInterface) {\n $this->outputInterface->write($msg, $linebreak, $verboseLevel);\n }\n }", "public function writeln($messages, $options = 0)\n\t{\n\t\t$this->output->writeln($this->replaceWords($messages), $options);\n\t}", "public function write($messages, bool $newline = false, int $options = 0);", "public function stdoutLn($message)\n {\n $return = parent::stdout($message);\n echo PHP_EOL;\n return $return;\n }", "private function outputMessage($message)\n {\n $currentTime = microtime(true);\n $timeSinceStart = $currentTime - $this->getStartTime();\n $this->output->writeln($timeSinceStart . ': ' . $message);\n }", "public function write($messages, bool $newline = true, int $verbosity = self::VERBOSITY_NORMAL): void;", "public function writeLn(\n string $line,\n string $color = '',\n bool $addBreak = true\n ) {\n self::write($line, $color, $addBreak);\n }", "protected function say($message = '')\n {\n $this->output->writeln($message);\n }", "public function newLine()\n {\n echo \"\\n\";\n }", "private function _writeToScreen($message) {\n echo $message . PHP_EOL;\n }", "public function writeln(array $messages);", "protected function writeError($message) {\n return parent::writeError($message.\"\\n\");\n }", "public function writeln($messages = '');", "public function line(string $message): GoogleChatMessage\n {\n $this->text(\"\\n\".$message);\n\n return $this;\n }", "function writeln($string_to_write = \"\"){\n\t\tsettype($string_to_write,\"string\");\n\t\t$this->_OutputBuffer->addString($string_to_write.\"\\n\");\n\t}", "public function line($string)\n {\n $this->output->writeln($string);\n }", "public function question($msg) {\n $this->writeLine($msg, 'question');\n }", "private function notify($msg)\n {\n if ($this->output !== null) {\n $this->output->writeln(\"<comment> {$msg}</comment>\");\n }\n }", "protected function logLn($msg, $style = '')\n {\n if (isset($this->logger)) {\n $this->logger->logLn($msg, $style);\n }\n }", "public function addOutputLine($line);", "protected function setMessage($message, $method, $line) {\n global $logger;\n self::$message .= $message;\n $logger->addInfo(sprintf('[%s - %s] %s', $method, $line, strip_tags($message)));\n }", "function addMessage($message)\r\n{\r\n\t$name = ($message['action']) ? '*'.$message['name'] : $message['name'];\r\n\t$text = $message['text'];\r\n\t$time = $message['time'];\r\n\r\n\tif(strlen($name) == 0)\r\n\t\treturn;\r\n\r\n\t$line = $time.'||'.$name.'||'.$text;\r\n\r\n\t// Pull the current file contents\r\n $fileContents = file(LACE_FILE);\r\n\t$size = count($fileContents);\r\n\r\n if ($size >= LACE_FILE_MAX_SIZE)\r\n {\r\n\t // Push the oldest entries out\r\n\t // and put the new one in\r\n\t for ($i = 0; $i <= $size - LACE_FILE_MAX_SIZE; $i++)\r\n\t\t array_shift($fileContents);\r\n\r\n\t $fileContents[] = $line;\r\n \t$fileContents = implode(\"\\n\", array_map('trim', $fileContents)).\"\\n\";\r\n\r\n \t// Write it to file\r\n \tfile_put_contents(LACE_FILE, trim($fileContents));\r\n }\r\n else\r\n {\r\n // No need to push anything off the stack,\r\n // just write to file\r\n \t$file = fopen(LACE_FILE, 'a');\r\n fwrite($file, $line.\"\\n\");\r\n fclose($file);\r\n }\r\n\r\n // Add to the log\r\n logMessage($line);\r\n}", "public function writeln($message = '', $style = NULL) {\n $this->stdout->writeln($message, $style);\n return $this;\n }", "public function write($messages, $newline = false, $options = 0)\n\t{\n\t\t$this->output->write($this->replaceWords($messages), $newline, $options);\n\t}", "public function write($message)\n {\n if(!self::$_file_handle)\n $this->_init();\n fwrite(self::$_file_handle, \"[\".self::$_level.\"]\".$message.\"\\n\");\n fclose(self::$_file_handle);\n }", "function writeMessage($nom , $message){\n\n\tif(!preg_match(\"#^ #\", $message) && !empty($message)){\n\t\t$ligne = $nom.\">\".$message.\"<br>\";\n\t\t$leFichier = fopen(__DIR__.'/../data/ac.txt', 'a+');\n\t\tfputs($leFichier, $ligne.\"\\n\");\n\t\tfclose($leFichier);\n\t}\n}", "public function message($message): void\n {\n $this->messages[] = $message;\n }", "private function makeLineBreaks(): void {\n\t\tif($this->getMaxLineLength()) {\n\t\t\t$this->setMsg(wordwrap($this->getMsg(), $this->getMaxLineLength(), PHP_EOL));\n\t\t}\n\n\t\t$this->setMsg(str_replace('<br />', PHP_EOL, str_replace('<br>', PHP_EOL, $this->getMsg())));\n\t}", "public function writeLine($string) {\n\t\treturn $this->write($string.PHP_EOL);\n\t}", "public function comment($msg) {\n $this->writeLine($msg, 'comment');\n }", "public function addMessage($message);", "function line( $msg = '' ) {\n\tStreams::_call( 'line', func_get_args() );\n}", "public function out($new_line = true)\n {\n $out = $this . ($new_line ? PHP_EOL : null);\n\n echo $out;\n }", "private function makeLineBreaksHTML(): void {\n\t\t$this->setMsg(str_replace([PHP_EOL, '\\r\\n'], '<br />', $this->getMsg()));\n\n\t\tif($this->getMaxLineLength()) {\n\t\t\t$this->setMsg(wordwrap($this->getMsg(), $this->getMaxLineLength(), '<br />' . PHP_EOL));\n\t\t}\n\t}", "public function actionWriteMessage() {\n\t\ttry {\n\t\t\treturn $this->getService('SupportMessage')->add();\n\t\t} catch (Exception $e) {\n\t\t\treturn $this->sendError('You reached some error');\n\t\t}\n\t}", "protected function _write($event) {\n\t\tif ($event['priority'] <= $this->messageType) {\n\t\t\techo @$event['message']['errstr'] . (Director::is_cli() ? '' : '<br/>') . PHP_EOL;\n\t\t}\n\t}", "public function newLinesWritten();", "public static function message($message = null, $newLine = true)\n {\n if( ! static::enableTool() or ! $message)\n return;\n\n // Run\n static::$LoadAnalyser->message($message, $newLine);\n }", "public function lwrite($message) {\n\t\t// if file pointer doesn't exist, then open log file\n\t\tif (!$this->fp) {\n\t\t\t$this->lopen();\n\t\t}\n\t\t// define script name\n\t\t$script_name = pathinfo($_SERVER['PHP_SELF'], PATHINFO_FILENAME);\n\t\t// define current time\n\t\t$time = date('H:i:s');\n\t\t// write current time, script name and message to the log file\n\t\tfwrite($this->fp, \"$time ($script_name) $message\". $this->nl);\n\t}", "protected function echoLine(&$addto, $text = \"\")\r\n\t{\r\n\t\t$addto .= $text . \"\\r\\n\";\r\n\t}", "function writeln($data){\n echo $data .\\PHP_EOL;\n}", "public function write($type, $message);", "function _logMessage($msg) {\n\t\tif ($msg[strlen($msg) - 1] != \"\\n\") {\n\t\t\t$msg .= \"\\n\";\n\t\t}\n\n\t\tif ($this->debug) debug($msg);\n\n\t\t$this->resultsSummary .= $msg;\n\n\t\tif ($this->useLog) {\n\t\t\t$logfile = $this->writeDir . \"cron.log\";\n\t\t\t$file = fopen($logfile, \"a\");\n\t\t\tfputs($file, date(\"r\", time()) . \" \" . $msg);\n\t\t\tfclose($file);\n\t\t}\n\t}", "public function appendLog($message);", "function addMessage($txt = \"\"){\t$this->mMessages\t.= $txt;\t}", "public function lwrite($message){\n // if file pointer doesn't exist, then open log file\n if (!$this->fp) $this->lopen();\n // define script name\n $script_name = pathinfo($_SERVER['PHP_SELF'], PATHINFO_FILENAME);\n // define current time\n $time = date('m-d-y H:i:s');\n // write current time, script name and message to the log file\n fwrite($this->fp, \"$time ($script_name) $message\\n\");\n }", "public function lwrite($message){\n // if file pointer doesn't exist, then open log file\n if (!$this->fp) $this->lopen();\n // define script name\n $script_name = pathinfo($_SERVER['PHP_SELF'], PATHINFO_FILENAME);\n // define current time\n $time = date('H:i:s');\n // write current time, script name and message to the log file\n fwrite($this->fp, \"$time ($script_name) $message\\n\");\n }", "public function lwrite($message){\n // if file pointer doesn't exist, then open log file\n if (!$this->fp) $this->lopen();\n // define script name\n $script_name = pathinfo($_SERVER['PHP_SELF'], PATHINFO_FILENAME);\n // define current time\n $time = date('H:i:s');\n // write current time, script name and message to the log file\n fwrite($this->fp, \"$time ($script_name) $message\\n\");\n }", "private function add_line($text = \"\", $should_wordwrap = true)\n {\n $text = $should_wordwrap ? wordwrap($text, $this->printer_width) : $text;\n $this->printer->text($text.\"\\n\");\n }", "protected function addMessage($content) {\n if ($this->file === null) {\n if (!file_exists($this->config->getValue('log', 'path', './'))) {\n mkdir($this->config->getValue('log', 'path', './'), 0755, true);\n }\n $path = $this->config->getValue('log', 'path', './').$this->section.'.log';\n $this->file = fopen($path, 'a');\n }\n fwrite($this->file, $content.\"\\n\");\n }", "private function write($messages) {\n if ($this->output->getVerbosity() >= OutputInterface::VERBOSITY_VERBOSE) {\n $this->output->writeln($messages);\n }\n }", "private function writeLog($msg) {\n\t\t$line = $this->getLogLine($msg);\n\t\tfwrite($this->f, $line);\n\t\tfflush($this->f);\n\t}", "private function add_line($text = \"\", $should_wordwrap = true)\n {\n $text = $should_wordwrap ? wordwrap($text, $this->printer_width) : $text;\n $this->printer->text($text . \"\\n\");\n }", "public function writeln($str)\n {\n fputs($this->output, Format::format($str).\"\\n\");\n }", "public function log($message) {\n fwrite(STDOUT, $message . \"\\n\");\n }", "public function write($messages, $newline = false, $options = 0)\n {\n $messages = $this->addIndentationToMessages($messages);\n\n $this->decoratedOutput->write($messages, $newline, $options);\n }", "public function success($message = null, $newlines = 1, $level = Shell::NORMAL) {\n\t\t$this->out('<success>' . $message . '</success>', $newlines, $level);\n\t}", "private function writeLn(OutputInterface $output, string $type, string $msg): self\n {\n $output->writeln('<' . $type . '>' . $msg . '</' . $type . '>');\n\n return $this;\n }", "function consolelog ($message) {\n echo $message.PHP_EOL;\n ob_flush();\n flush();\n}" ]
[ "0.77565855", "0.70670754", "0.70101196", "0.69325584", "0.6917182", "0.691411", "0.69133765", "0.6912606", "0.68599546", "0.6769", "0.6764861", "0.6736047", "0.67350155", "0.6723698", "0.6723425", "0.67175967", "0.6713011", "0.66564965", "0.66382396", "0.65873873", "0.6499649", "0.64400685", "0.64368606", "0.64329547", "0.6414714", "0.6381294", "0.63549227", "0.6346932", "0.6332971", "0.63226366", "0.6322111", "0.62816346", "0.6256445", "0.6255829", "0.62247026", "0.6223034", "0.6219218", "0.62042624", "0.6192911", "0.6188286", "0.61792105", "0.6169801", "0.6136831", "0.6110225", "0.6108679", "0.6051003", "0.60501975", "0.6048484", "0.6048026", "0.6037204", "0.60355437", "0.6029715", "0.60231555", "0.5997816", "0.5981505", "0.5978349", "0.59736896", "0.596755", "0.59609747", "0.595725", "0.5902681", "0.5902033", "0.58997476", "0.5871341", "0.58601695", "0.58598536", "0.5859541", "0.5850485", "0.58390194", "0.58315504", "0.5828595", "0.58093846", "0.58014905", "0.5800273", "0.57874", "0.578256", "0.5768696", "0.57585955", "0.5751676", "0.57490635", "0.57479364", "0.5746102", "0.57330877", "0.5729743", "0.571757", "0.57165533", "0.571093", "0.5695761", "0.5695761", "0.56666696", "0.56542253", "0.565304", "0.56364906", "0.5635904", "0.5635795", "0.56178975", "0.5617734", "0.5594796", "0.5583594", "0.55593956" ]
0.8572327
0
Outputs the specified contents
public function write($message);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function showContents() {\n\t\techo $this -> getContents();\n\t\texit ;\n\t}", "public function reports_output() {\n\n\t\t\t// CHANGE THIS\n\t\t\techo 'This is where your new content section\\'s content goes.';\n\t\t}", "protected function output() {\n\t\treturn $this->before() . $this->option( 'content' ) . $this->after();\n\t}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "public function printContent() {}", "protected function output() {\n\t\t$content = $this->option( 'content' );\n\t\t$content_path = $this->option( 'content_path' );\n\t\t$mmarkdown = $this->option( 'markdown' );\n\n\t\tif ( ! empty( $content_path ) && file_exists( $content_path ) ) {\n\t\t\twponion_catch_output();\n\t\t\tinclude $content_path;\n\t\t\t$content = wponion_catch_output( false );\n\t\t} elseif ( ! empty( $content ) && wponion_is_callable( $content ) ) {\n\t\t\twponion_catch_output();\n\t\t\techo wponion_callback( $content );\n\t\t\t$content = wponion_catch_output( false );\n\t\t}\n\n\t\tif ( true === $mmarkdown && ! empty( $content ) ) {\n\t\t\t$content = '<div class=\"wponion-markdown-output\">' . wponion_markdown( $content ) . '</div>';\n\t\t}\n\t\treturn $this->before() . do_shortcode( $content ) . $this->after();\n\t}", "public function get_output_content();", "abstract protected function displayContent();", "public function printContent()\n {\n echo $this->content;\n }", "public function output()\n\t{\n\t\t$this->do_tags();\n\n\t\t$this->final_output = '';\n\n\t\tforeach ($this->merged as $block)\n\t\t{\n\t\t\t$this->final_output .= $block;\n\t\t}\n\n\t\t$this->last_file = '';\n\t\t$this->values = array();\n\t\t$this->files = array();\n\t\t$this->merged = array();\n\n\t\t// the final template all put together\n\t\treturn $this->final_output;\n\t}", "public static function outputContent($content)\n {\n CodeBoxComponent::outputContent($content);\n }", "public function display()\n\t{\n\t\tob_start();\n\t\t\n\t\t$content = ob_get_contents();\n\t\tob_end_clean();\n\t\treturn $content;\n\t}", "public function show_contents() {\n $inputs_array = $this->container->get_inputs_array();\n \n foreach( $inputs_array as $input_name => $input_value ) {\n $contents .= $inputs_array[ $input_name ]->render();\n }\n\n return $contents;\n }", "public function write($contents);", "public static function output() {}", "public function run()\n\t{\n\t\techo vsprintf($this->template,$this->_contents);\n\t}", "function printContent()\t{\n\t\techo $this->content;\n\t}", "function printContent()\t{\n\t\techo $this->content;\n\t}", "public function generateContents()\n {\n ob_start();\n include $this->getTemplateFile();\n $output = ob_get_contents();\n ob_end_clean();\n return $output;\n }", "public function run()\n\t{\n\t\t$this->renderContent();\n\t\t$content=ob_get_clean();\n\t\tif($this->hideOnEmpty && trim($content)==='')\n\t\t\treturn;\n\t\techo $content;\n\t}", "public function output() {\n\t\treturn $this->content;\n\t}", "public function contents();", "public function output() {}", "function printContent($input){\n\t\techo $input;\n\t}", "public function output();", "public function output();", "public function output();", "public function output();", "public function output();", "function dumpContents()\r\n {\r\n\r\n if($this->_include != \"\")\r\n {\r\n include($this->_include);\r\n }\r\n else\r\n {\r\n\r\n $class = ($this->Style != \"\")? \"class=\\\"$this->StyleClass\\\"\": \"\";\r\n $hint = $this->HintAttribute();\r\n $draggable = ($this->_draggable) ? \"draggable=\\\"true\\\"\" : \"\";\r\n $events = $this->readJsEvents();\r\n \r\n echo \"<div id=\\\"$this->_name\\\" $hint $class $draggable $events >\\n\";\r\n echo $this->dumpLayoutContents();\r\n echo \"</div>\\n\";\r\n }\r\n\r\n }", "public function printContent() {\r\n $this->content .= $this->doc->endPage();\r\n echo $this->content;\r\n }", "function printContent()\t{\n\n\t\t$this->content .= $this->doc->endPage();\n\t\techo $this->content;\n\t}", "function output($title, $content) {\n\t\tprint $this->header($title);\n\t\tprint $this->menu();\n\t\tprint '<div class=\"column\">'.$content.'</div>';\n\t\tprint $this->footer();\n\t}", "final public function output(): void {\n\t\techo $this->html();\n\t}", "public function run()\n {\n $this->renderContent();\n echo ob_get_clean();\n }", "protected function OnOutput()\n\t{\n\t\t$vars = array('title' => $this->title, 'content' => $this->content,'user' => $this->user,'scripts' => $this->scripts,'categories' => $this->categories);\n\t\t$page = $this->Template('view/tpl_main.php', $vars);\n\t\techo $page;\n\t}", "public function silo_contents()\n\t{\n\t}", "function printContent() {\n\n $this->content.=$this->doc->endPage();\n\t\tif(isset($_REQUEST[export])){\n\t\t\theader(\"Content-type: application/force-download\");\n\t\t\theader(\"Content-Disposition: filename=participants_\".$_REQUEST['cuid'].\".csv\");\n\n\t\t\theader(\"Content-Description: Downloaded File\");\n\n\t\t\techo $this->csvExport($_REQUEST['cuid']);\n\t\t} else {\n\t\t\techo $this->content;\n\t\t}\n }", "function printContent()\t{\n\n\t\t$this->content.=$this->doc->endPage();\n\t\techo $this->content;\n\t}", "function printContent()\t{\n\n\t\t$this->content.=$this->doc->endPage();\n\t\techo $this->content;\n\t}", "function printContent()\t{\n\n\t\t$this->content.=$this->doc->endPage();\n\t\techo $this->content;\n\t}", "function printContent()\t{\n\t\t$this->content.=$this->doc->endPage();\n\t\techo $this->content;\n\t}", "function toScreen(){\n\t\t\tif($content = $this->process()){\n\t\t\t\techo \"<pre>\";\n\t\t\t\techo nl2br(htmlspecialchars($content));\n\t\t\t\techo \"</pre>\";\n\t\t\t\t\n\t\t\t\techo $content;\n\t\t\t}else{\n\t\t\t\ttrigger_error(\"An error occured during XML Data generation\",1);\n\t\t\t}\n\t\t}", "public static function renderContent() {}", "protected final function output ()\n\t{\n\t\tif ($this->isFailed() || !$this->isOutputSet())\n\t\t{\n\t\t\t$this->outputData();\n\t\t}\n\t\telse\n\t\t{\n\t\t\theader('Content-Description: File Download');\n\t\t\theader('Content-Type: ' . $this->outputContentType);\n\t\t\t$disposition = $this->attachResult ?\n\t\t\t\t\t'attachment; filename=' . $this->outputFileName :\n\t\t\t\t\t'inline';\n\t\t\theader('Content-Disposition: ' . $disposition);\n\t\t\theader('Content-Transfer-Encoding: binary');\n\t\t\theader('Content-Length: ' . filesize($this->outputFile));\n\n\t\t\twhile (ob_get_level()) {\n\t\t\t\tob_end_clean();\n\t\t\t}\n\t\t\tflush();\n\t\t\treadfile($this->outputFile);\n\t\t}\n\t}", "function printContent()\t{\n\t\t$this->content.= $this->doc->endPage();\n\t\techo $this->content;\n\t}", "function printContent()\t{\n\n\t\t\t\t\t$this->content.=$this->doc->endPage();\n\t\t\t\t\techo $this->content;\n\t\t\t\t}", "public function displayComponent() {\n\t\t\n\t\t\t$this->outputLine($this->_content);\n\t\t\t\n\t\t}", "public function output() {\n\n if (!file_exists($this->view)) {\n \treturn \"Voeg eerst een template toe ($this->view).<br />\";\n }\n $output = file_get_contents($this->view);\n \n foreach ($this->variabeles as $key => $variable) {\n \t$tagToReplace = \"[@$key]\";\n \t$output = str_replace($tagToReplace, $variable, $output);\n }\n\n return $output;\n }", "public function printContent() {\n\t\t//$this->doc->addStyleSheet();\n\t\t$this->content .= $this->doc->endPage();\n\t\techo $this->doc->insertStylesAndJS($this->content);\n\t}", "protected function _output($data) {}", "function output_markup();", "public function display()\n {\n $this->output = '';\n $output = $this->load($this->_layout);\n $this->output = $this->output.$output;\n\n return $this->output;\n }", "function output() {\n \n }", "public function getContents();", "public function getContents();", "public function getContents();", "public function getContents();", "public function getContents();", "public function print()\n {\n if (!headers_sent()) {\n header(\"Content-Type: text/html\");\n }\n\n $data = \"\";\n $args = func_get_args();\n foreach ($args as $arg) {\n $data .= $this->processLine($arg);\n }\n\n echo \"<style>$this->style</style>\";\n echo \"$data\";\n echo \"<script type='text/javascript'>$this->scripts</script>\";\n }", "public function output() {\n\t\tswitch($this->output) {\n\t\t\tcase 'php':\n\t\t\tdefault:\n\t\t\t\t$this->_php_gen_feed();\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'js':\n\t\t\t\n\t\t\tbreak;\n\t\t}\n\t}", "public function output() {\n }", "function render($_contents) {\n \n $_ci_vars = $this->_ci_object_to_array($_contents);\n \n if (is_array($_ci_vars))\n\t\t{\n\t\t\t$this->_ci_cached_vars = array_merge($this->_ci_cached_vars, $_ci_vars);\n\t\t}\n\t\textract($this->_ci_cached_vars);\n\n\t\tob_start();\n\n\t\tif ((bool) @ini_get('short_open_tag') === FALSE AND config_item('rewrite_short_tags') == TRUE)\n\t\t{\n\t\t\techo eval('?>'.preg_replace(\"/;*\\s*\\?>/\", \"; ?>\", str_replace('<?=', '<?php echo ', file_get_contents($this->master))));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tinclude($this->master); // include() vs include_once() allows for multiple views with the same name\n\t\t}\n\n\t\tlog_message('debug', 'File loaded: '.$this->master);\n\n\t\t\n\t\tif (ob_get_level() > $this->_ci_ob_level + 1)\n\t\t{\n\t\t\tob_end_flush();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->CI->output->append_output(ob_get_contents());\n\t\t\t@ob_end_clean();\n\t\t}\n }", "public function display() {\n return $this->out(call_user_func_array([$this, 'render'], func_get_args()));\n }", "public function output(): string\n {\n $data = $this->data;\n\n // Render data\n ob_start();\n include $this->templateFile;\n $rendered = ob_get_clean();\n return $rendered;\n }", "protected abstract function output($text);", "public function output()\r\n {\r\n $_SESSION[\"view\"]=$this;\r\n include $this->controller->index();\r\n }", "function showContent()\n {\n // FIXME: URL, image, video, audio\n $this->out->elementStart('p', array('class' => 'entry-content'));\n \n \n $this->out->raw($this->notice->content);\n //$this->out->raw(common_render_content($this->notice->content, $this->notice));\n /*\n if ($this->notice->rendered) {\n $this->out->raw($this->notice->rendered);\n } else {\n // XXX: may be some uncooked notices in the DB,\n // we cook them right now. This should probably disappear in future\n // versions (>> 0.4.x)\n $this->out->raw(common_render_content($this->notice->content, $this->notice));\n }\n */\n $this->out->elementEnd('p');\n }", "public function output()\n {\n // TODO: Implement output() method.\n }", "function main()\r\n {\r\n $this->setOutput();\r\n }", "abstract function printOutput()", "public function output_markup()\n\t\t{\t\t\t\n\t\t\techo $this->markup;\n\t\t\t\n\t\t}", "function output($data);", "public function output()\n\t{\n\t\t$template_path = THEMES_DIR.PAGE_PATH.'.html';\n\t\tif(!file_exists($template_path)) {\n\t\t\t// or the first file in the first existing path\n\t\t\t$existing_path = $this->first_realpath(THEMES_DIR, PAGE_PATH);\n\t\t\t$tpl_list = $this->list_files(THEMES_DIR . $existing_path, '*.html');\n\t\t\t$template_path = reset($tpl_list);\n\t\t}\n\t\t$content = file_get_contents($template_path);\n\t\t$content = $this->parse($content, false, true, 'template \"'.$template_path.'\"');\n\t\treturn $content;\n\t}", "public function output()\n {\n\t\t$this->page = new Template(FP_ROOT . '/include/templates/structure.page.php');\n\t\t$this->page->header = $this->header();\n\t\t$this->page->content = $this->content();\n\t\t$this->page->footer = $this->footer();\n\t\treturn $this->page->render();\n }", "function echoContent($content) {\n if (method_exists($this->reporter, 'paintHTML')) {\n $this->reporter->paintHTML(\"<div class='rn_Hidden rn_verboseContent'>$content</div>\");\n }\n else {\n $this->dump($content);\n }\n }", "private function t2($content) { echo $content;\n// flush();\n ob_flush();\n }", "public function printContent()\n {\n GeneralUtility::logDeprecatedFunction();\n $this->content .= $this->doc->endPage();\n $this->content = $this->doc->insertStylesAndJS($this->content);\n echo $this->content;\n }", "public function output() {\n\t\tif (\\core\\Quantum::registry(\"application.output_display\") == \"true\") {\n\t\t\techo $this->document->getDocument();\n\t\t} else {\n\t\t\ttrace(\"Not displaying output as defined in project configuration\", $this);\n\t\t}\n\t}", "public function output() {\n header('Content-Type: application/xml');\n $dom = new \\DOMDocument('1.0');\n $dom->preserveWhiteSpace = false;\n $dom->formatOutput = true;\n $dom->loadXML($this->xml->asXML());\n echo $dom->saveXML();\n }", "function get_contents(){\r\n\t\t$cmds=array('striptabs','beginnextbuffer');\r\n\t\tglobal $gcontents;\r\n\t\tunset($gcontents);\r\n\t\tif($a=func_get_args()){\r\n\t\t\tforeach($a as $v){\r\n\t\t\t\tif(in_array(strtolower($v),$cmds)){\r\n\t\t\t\t\t$v=strtolower($v);\r\n\t\t\t\t\t$$v=true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t$gcontents['out']=ob_get_contents();\r\n\t\tob_end_clean();\r\n\t\tif($striptabs)$gcontents['out']=str_replace(\"\\t\",'',$gcontents['out']);\r\n\t\tif($beginnextbuffer){\r\n\t\t\tob_start();\r\n\t\t}else{\r\n\t\t\treturn $gcontents['out'];\r\n\t\t}\r\n\t}", "public function renderToOutput()\n {\n header( 'Content-Type: ' . $this->getMimeType() );\n $this->render( 'php://output' );\n }" ]
[ "0.73631585", "0.7084481", "0.70743924", "0.7002538", "0.7002538", "0.7002538", "0.7002538", "0.7002538", "0.7002538", "0.7002538", "0.7002538", "0.7002538", "0.7002538", "0.7002538", "0.7002538", "0.7002538", "0.70021236", "0.70021236", "0.70021236", "0.70021236", "0.70021236", "0.7001892", "0.7001892", "0.7001892", "0.68838936", "0.6853352", "0.6809592", "0.67222637", "0.6702341", "0.66909003", "0.6668906", "0.66665006", "0.6656702", "0.6640294", "0.6639974", "0.659905", "0.659905", "0.65921164", "0.6530176", "0.65132004", "0.64902294", "0.6471044", "0.6468165", "0.6464258", "0.6464258", "0.6464258", "0.6464258", "0.6464258", "0.6444007", "0.6442152", "0.6436579", "0.6424166", "0.64223593", "0.6405412", "0.63906604", "0.6383538", "0.63815004", "0.63787645", "0.63787645", "0.63787645", "0.6366395", "0.635651", "0.6334845", "0.63167244", "0.63018554", "0.62976575", "0.6286439", "0.62792313", "0.6265846", "0.6255923", "0.62387305", "0.62311596", "0.62293035", "0.62214226", "0.62214226", "0.62214226", "0.62214226", "0.62214226", "0.6216908", "0.62166893", "0.6214843", "0.6214027", "0.6188116", "0.61862046", "0.6176496", "0.61743265", "0.61690444", "0.6143828", "0.613412", "0.61155516", "0.6114943", "0.6113501", "0.6111597", "0.6111473", "0.610531", "0.60927737", "0.6077731", "0.6071685", "0.60639083", "0.6049352", "0.60461" ]
0.0
-1
1000 Gets the current logger level
function getLevel();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function getLevel() {\n if (empty(static::$level)) {\n static::$level = Conf::getIniVal(Conf::LOG_LEVEL, 3);\n }\n return static::$level;\n }", "public function getLevel() {\n return Logger::$LOG_LEVELS[$this->logLevel];\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 getLogLevel()\r\n {\r\n return $this->level;\r\n }", "public function getLogLevel()\n {\n return $this->level;\n }", "public function logLevel()\n {\n return $this->logLevel ?: self::LOG_LEVEL_INFO;\n }", "public function getLogLevel(){\n\n\t\treturn $this->_log_level;\n\t}", "public function getLogLevel()\n {\n return $this->_logLevel;\n }", "protected function getMinimumLogLevel() {}", "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 getLevel() {\n return intval($this->level);\n }", "public function getLogLevel()\n {\n return 'info';\n }", "function getLogLevel()\n {\n return $this->_props['LogLevel'];\n }", "public static function getLevelInfo()\n {\n if (!isset(self::$levelMap[Payone_Log4php_LoggerLevel::INFO])) {\n self::$levelMap[Payone_Log4php_LoggerLevel::INFO] = new Payone_Log4php_LoggerLevel(Payone_Log4php_LoggerLevel::INFO, 'INFO', LOG_INFO);\n }\n return self::$levelMap[Payone_Log4php_LoggerLevel::INFO];\n }", "public function getLevel() {\n\t\treturn isset($this->level) ? (int) $this->level : 1;\n\t}", "protected function getLogLevel()\n {\n return $this->_loglevel;\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 }", "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 getLogLevel() {\n $log_level = Mage::getStoreConfig(static::XML_PATH_LOG_LEVEL);\n\n return ($log_level !== null) ? intval($log_level) : Zend_Log::INFO;\n }", "public function getLevel()\n {\n return$this->level;\n }", "public function getLevel() {\n return $this->level;\n }", "public function GetLevel()\n {\n return $this->level;\n }", "function getLevel() {\n\t\treturn $this->_level;\n\t}", "public function getLevel(): int\n {\n return $this->level;\n }", "public function getLevel(): int\n {\n return $this->level;\n }", "public function getLevel(): int {\n return $this->level;\n\n }", "public function getLevel() : int\n\t{\n\t\treturn $this->level;\n\t}", "public function getLevel()\n {\n $value = $this->get(self::LEVEL);\n return $value === null ? (integer)$value : $value;\n }", "public function getLevel() {}", "public function getLevel()\n {\n return PMA_Message::$level[$this->getNumber()];\n }", "public function getLevel();", "public function getLevel();", "protected function logLevel()\n {\n if ($this->app->bound('config')) {\n return $this->app->make('config')->get('app.log_level', 'debug');\n }\n\n return 'debug';\n }", "protected function get_level()\n {\n return $this->m_voxy_connect->_get_list_voxy_level();\n }", "public function getLevel() : Level {\r\n\r\n return $this->level;\r\n\r\n }", "public static function getLogLevel( $time ) {\r\n\t\tif( $time >= 5000) {\r\n\t\t\treturn \"warning\";\r\n\t\t}\r\n\t\tif( $time >= 1000) {\r\n\t\t\treturn \"info\";\r\n\t\t}\r\n\t\treturn \"trace\";\r\n\t}", "public function getLevel()\n {\n return isset($this->level) ? $this->level : null;\n }", "public static function getLevelTrace()\n {\n if (!isset(self::$levelMap[Payone_Log4php_LoggerLevel::TRACE])) {\n self::$levelMap[Payone_Log4php_LoggerLevel::TRACE] = new Payone_Log4php_LoggerLevel(Payone_Log4php_LoggerLevel::TRACE, 'TRACE', LOG_DEBUG);\n }\n return self::$levelMap[Payone_Log4php_LoggerLevel::TRACE];\n }", "public function getTraceLevel(): int\n\t{\n\t\treturn Prado::getLogger()->getTraceLevel();\n\t}", "public static function currentLevel()\n\t{\n\t\tif (!auth()->check()) return 0;\n\t\t$member = \\PanicHDMember::find(auth()->user()->id);\n\t\tif ($member->isAdmin()){\n\t\t\treturn 3;\n\t\t}elseif($member->isAgent()){\n\t\t\tif (session()->exists('panichd_filter_currentLevel') and session('panichd_filter_currentLevel')==1){\n\t\t\t\treturn 1;\n\t\t\t}else{\n\t\t\t\treturn 2;\n\t\t\t}\n\t\t}else\n\t\t\treturn 1;\n\t}", "public function getDefaultLevel()\n {\n return 5; # level binh thuong\n }", "public static function getLevelDebug()\n {\n if (!isset(self::$levelMap[Payone_Log4php_LoggerLevel::DEBUG])) {\n self::$levelMap[Payone_Log4php_LoggerLevel::DEBUG] = new Payone_Log4php_LoggerLevel(Payone_Log4php_LoggerLevel::DEBUG, 'DEBUG', LOG_DEBUG);\n }\n return self::$levelMap[Payone_Log4php_LoggerLevel::DEBUG];\n }", "public function getLevel()\n\t{\n\t\treturn $this->token->level;\n\t}", "public static function getLevelAll()\n {\n if (!isset(self::$levelMap[Payone_Log4php_LoggerLevel::ALL])) {\n self::$levelMap[Payone_Log4php_LoggerLevel::ALL] = new Payone_Log4php_LoggerLevel(Payone_Log4php_LoggerLevel::ALL, 'ALL', LOG_DEBUG);\n }\n return self::$levelMap[Payone_Log4php_LoggerLevel::ALL];\n }", "public function getMessageLevel() {\r\n\t\treturn($this->level);\r\n\t}", "public static function getLevelWarn()\n {\n if (!isset(self::$levelMap[Payone_Log4php_LoggerLevel::WARN])) {\n self::$levelMap[Payone_Log4php_LoggerLevel::WARN] = new Payone_Log4php_LoggerLevel(Payone_Log4php_LoggerLevel::WARN, 'WARN', LOG_WARNING);\n }\n return self::$levelMap[Payone_Log4php_LoggerLevel::WARN];\n }", "public function getDebugLevel()\n {\n }", "public function getKnackLogLevel();", "public function levelName() {\n if (isset($this->level)) return self::$levels[$this->level];\n }", "public static function getLevelOff()\n {\n if (!isset(self::$levelMap[Payone_Log4php_LoggerLevel::OFF])) {\n self::$levelMap[Payone_Log4php_LoggerLevel::OFF] = new Payone_Log4php_LoggerLevel(Payone_Log4php_LoggerLevel::OFF, 'OFF', LOG_ALERT);\n }\n return self::$levelMap[Payone_Log4php_LoggerLevel::OFF];\n }", "function getLevel()\n {\n return $this->errorLevel;\n }", "public function getLogsLevel()\n {\n $levels = $this->createQueryBuilder()\n ->select('l.level, l.level_name, COUNT(l.id) AS count')\n ->from($this->tableName, 'l')\n ->groupBy('l.level, l.level_name')\n ->orderBy('l.level', 'DESC')\n ->execute()\n ->fetchAll();\n\n $normalizedLevels = array();\n foreach ($levels as $level) {\n $normalizedLevels[$level['level']] = sprintf('%s (%s)', $level['level_name'], $level['count']);\n }\n\n return $normalizedLevels;\n }", "public function level($n) {\n\t\treturn $this->sets[':default']->level($n);\n\t}", "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 get_level_name() { \n\n\t\tif ($this->level >= '75') { \n\t\t\treturn _('All');\n\t\t}\n\t\tif ($this->level == '5') { \n\t\t\treturn _('View'); \n\t\t}\n\t\tif ($this->level == '25') { \n\t\t\treturn _('Read');\n\t\t}\n\t\tif ($this->level == '50') { \n\t\t\treturn _('Read/Write');\n\t\t}\n\n\t}", "public function getDefaultLevel()\n {\n\n return 2.2;\n }", "public function loadLevel() {\n\t\tswitch(true){\n\t\t\tcase ($this->data['level_pts'] >= 5000):\n\t\t\t\t$level = floor($this->data['level_pts'] / 1000) + 7;\n\t\t\t\tbreak;\n\t\t\tcase ($this->data['level_pts'] >= 1000):\n\t\t\t\t$level = floor($this->data['level_pts'] / 500) + 2;\n\t\t\t\tbreak;\n\t\t\tcase ($this->data['level_pts'] >= 600):\n\t\t\t\t$level = 3;\n\t\t\t\tbreak;\n\t\t\tcase ($this->data['level_pts'] >= 300):\n\t\t\t\t$level = 2;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$level = 1;\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\treturn $level;\n\t}", "protected function registerLogLevel(){\n require_once __DIR__ . '/../../config/constant.php';\n $monolog = Log::getMonolog();\n foreach($monolog->getHandlers() as $handler) {\n $handler->setLevel(Config::get('app.log-level'));\n }\n }", "protected function get_logging_levels() {\n\t\t$levels = array();\n\t\t$available_levels = $this->log_manager()->get_logging_levels();\n\n\t\tforeach ( $available_levels as $logging_level ) {\n\t\t\t$levels[ $logging_level[0] ] = $logging_level[1];\n\t\t}\n\n\t\treturn $levels;\n\t}", "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 }", "public static function getLevelFatal()\n {\n if (!isset(self::$levelMap[Payone_Log4php_LoggerLevel::FATAL])) {\n self::$levelMap[Payone_Log4php_LoggerLevel::FATAL] = new Payone_Log4php_LoggerLevel(Payone_Log4php_LoggerLevel::FATAL, 'FATAL', LOG_ALERT);\n }\n return self::$levelMap[Payone_Log4php_LoggerLevel::FATAL];\n }", "public function toInt()\n {\n return $this->level;\n }", "public function getPlayerLevel()\n {\n return $this->get(self::_PLAYER_LEVEL);\n }", "public function getLevel() {\n\t\tif (empty($this->_level) && $this->_hasCategory) {\n\t\t\t$this->_level = $this->_getCategory()->getLevel();\n\t\t}\n\t\t//Remove 1 level, Home is considered L1.\n\t\treturn $this->_level -1;\n\t}", "abstract public function getMinimumLevel()\n\t{\n\t\treturn 0.5;\n\t}", "public static function getUserLevel(){\n if (self::isSuper()){\n return \"super\";\n }\n if (self::isAdmin()){\n return \"admin\";\n }\n if (self::isUser()){\n return \"user\";\n }\n return null;\n }", "public function level($uid = 0)\r\n {\r\n global $db, $_SMALLURL;\r\n if ($uid === 0) {\r\n if (isset($_SMALLURL['UID'])) {\r\n $uid = $_SMALLURL['UID'];\r\n }\r\n }\r\n $udat = db::get_array(\"users\", array(\"id\" => $uid), \"role\");\r\n if (count($udat) > 0) {\r\n $role = $udat[0]['role'];\r\n $rdat = db::get_array(\"roles\", array(\"id\" => $role));\r\n if (count($rdat) > 0) {\r\n return (int)$rdat[0]['level'];\r\n } else {\r\n return 0;\r\n }\r\n } else {\r\n return 0;\r\n }\r\n }", "protected function current_logger() {\n\t\treturn tribe( 'logger' )->get_current_logger();\n\t}", "public function getLevelString() {\n\n switch ($this->getLevel()) {\n\n case self::LEVEL_REGISTERED:\n return 'Registered';\n case self::LEVEL_USER:\n return 'User';\n case self::LEVEL_ADMINISTRATOR:\n return 'Administrator';\n default:\n return 'Unknown';\n }\n\n }", "public function getServiceLevel()\n {\n return $this->serviceLevel;\n }", "private function getActualLevel(): int\n {\n return (int)array_key_last($this->levels);\n }", "protected function getPathLevel() : string\n {\n return $this->path_level;\n }", "function wlog($value,$level=4)\n{\n $currentLevel=4;\n if ($currentLevel>=$level){\n file_put_contents(\"all.log\",\"\\n\",FILE_APPEND);\n\t\tfile_put_contents('all.log',$value,FILE_APPEND);\n\t}\n}", "protected function get_log_level($slim_log_level)\n {\n\n return isset($this->log_level[$slim_log_level]) ?\n $this->log_level[$slim_log_level] :\n $slim_log_level;\n }", "public function logLevel($level)\n {\n if (!is_numeric($level)) {\n return $level;\n }\n\n try {\n return ucfirst(strtolower(\\Monolog\\Logger::getLevelName($level)));\n } catch (\\Exception $e) {\n return $level;\n }\n }", "public function getExceptionLevel(): string\n {\n return $this->levels;\n }", "public function getAdminLevel()\n {\n $userId = Auth::user()->id;\n // admin or not\n $level = 99;\n $user = DB::table('admins')->where('uid', $userId)->first();\n if ($user !== null) {\n $level = $user->level;\n }\n\n return $level;\n }", "public function level($skills)\n {\n return $this->getStat('level', $skills);\n }", "function getServiceLevel();", "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 }", "public function getDebugLevel()\n {\n return $this->do_debug;\n }", "function getLastlevel() {\n return $this->lastlevel;\n }", "public function getAuthLevel() {\n }", "public function get_logger_limit() {\n\t\treturn $this->get_option('ring_logger_limit', 20);\n\t}", "public function transactionLevel();", "function setLogLevel($value)\n {\n $this->_props['LogLevel'] = $value;\n }", "public function getReadLevel()\n {\n return $this->read_level;\n }", "function user_level () {\r\n\t$info = user_info();\r\n\treturn (isset($info[3]) ? $info[3] : 0);\r\n}", "public static function getLevels() {\n return array_flip(self::$_levels);\n }" ]
[ "0.7491121", "0.7451138", "0.72190285", "0.7191563", "0.7121533", "0.7104724", "0.6834608", "0.67593515", "0.67529005", "0.6742533", "0.66894877", "0.6653956", "0.66330105", "0.66326463", "0.6604881", "0.65810126", "0.65754485", "0.65754485", "0.65754485", "0.65754485", "0.65754485", "0.65754485", "0.65203226", "0.65203226", "0.65203226", "0.65203226", "0.65203226", "0.65203226", "0.65203226", "0.6514974", "0.6498817", "0.6472307", "0.64500463", "0.6448625", "0.64358443", "0.64358443", "0.6430231", "0.64219147", "0.63956577", "0.63664556", "0.63590384", "0.633246", "0.633246", "0.632092", "0.6298252", "0.6226339", "0.62119305", "0.6189011", "0.6188741", "0.6179449", "0.6107983", "0.6087822", "0.6083416", "0.6072666", "0.60707986", "0.6008404", "0.59829366", "0.5979014", "0.5969316", "0.5940351", "0.58835185", "0.5882902", "0.5864614", "0.5859043", "0.5847426", "0.58443165", "0.5812147", "0.5799405", "0.5779666", "0.57730216", "0.57724035", "0.57276964", "0.5718907", "0.5715425", "0.5638026", "0.5609698", "0.5588424", "0.55883825", "0.5581514", "0.5576913", "0.55645555", "0.55418766", "0.55414295", "0.55270904", "0.5522584", "0.550483", "0.5500584", "0.549846", "0.54895705", "0.5485249", "0.5470321", "0.54633605", "0.5455466", "0.5446901", "0.5429453", "0.5407943", "0.54009134", "0.5392845", "0.5384927", "0.5381456" ]
0.64021677
38
Sets the log level
function setLevel($level);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setLogLevel($level)\r\n {\r\n $this->level = $level;\r\n }", "function setLogLevel($value)\n {\n $this->_props['LogLevel'] = $value;\n }", "public function setLogLevel($level)\n {\n if (in_array($level, array(self::DEBUG, self::INFO, self::NOTICE, self::WARNING, self::ERROR))) {\n $this->logLevel = $level;\n }\n }", "public function setLogLevel($level)\n {\n if (!is_int($level))\n {\n $level = constant('sfLogger::'.strtoupper($level));\n }\n\n $this->level = $level;\n }", "function setLevel($level) {\n\t\tif (is_string($level)) {\n\t\t\tswitch (strtolower($level)) {\n\t\t\t\tcase \"debug\":\n\t\t\t\t\t$level = MC_LOGGER_DEBUG;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"info\":\n\t\t\t\t\t$level = MC_LOGGER_INFO;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"warn\":\n\t\t\t\tcase \"warning\":\n\t\t\t\t\t$level = MC_LOGGER_WARN;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"error\":\n\t\t\t\t\t$level = MC_LOGGER_ERROR;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"fatal\":\n\t\t\t\t\t$level = MC_LOGGER_FATAL;\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\t$level = MC_LOGGER_FATAL;\n\t\t\t}\n\t\t}\n\n\t\t$this->_level = $level;\n\t}", "protected function update_logging_level( $level ) {\n\t\t$this->log_manager()->set_level( $level );\n\t}", "public function setLogLevel( $loglevel )\n {\n $this->_loglevel = $loglevel;\n }", "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 }", "public function setLogLevel($level)\n {\n $level = intval($level);\n if ($level < 0) {\n /**\n *@uses Parsonline_Exception_ValueException \n */\n require_once(\"Parsonline/Exception/ValueException.php\");\n throw new Parsonline_Exception_ValueException(\"Invalid log level. log level should be positive integer\");\n }\n $this->_logLegvel = $level;\n return $this;\n }", "public function setLoglevel($loglevel) {\n\t\t$this->config[\"settings\"][\"loglevel\"] = $loglevel;\n\t}", "public function setLogLevel($level)\n {\n $this->logLevel = $level;\n return $this;\n }", "public function setLevel($level) {\n $this->level = $level;\n }", "public function setLevel($level);", "protected function registerLogLevel(){\n require_once __DIR__ . '/../../config/constant.php';\n $monolog = Log::getMonolog();\n foreach($monolog->getHandlers() as $handler) {\n $handler->setLevel(Config::get('app.log-level'));\n }\n }", "public function SetLevel($level)\n {\n $this->level = $level;\n }", "public function setMessageLevel( $value ) {\r\n\t\t$this->level = $value;\r\n\t}", "public function logLevel()\n {\n return $this->logLevel ?: self::LOG_LEVEL_INFO;\n }", "public function setVerbosity(int $level);", "function setDebug( $level )\r\n\t{\r\n\t\tif( $this->debug & DBGTRACE ) echo \"setDebug( $level )\\n\";\r\n\t\t$this->debug = $level;\r\n\t}", "function setLogMode($value)\n {\n $this->_props['LogMode'] = $value;\n }", "public function setLevel(int $level) {\n\n $this->level = $level;\n\n }", "public function setVerbosity($level)\n {\n }", "public function getLogLevel()\r\n {\r\n return $this->level;\r\n }", "public function setErrorLevel($level){\n\t\t$this->error_level = $level;\t\n\t}", "public function getLogLevel()\n {\n return $this->level;\n }", "public function log($message, $level);", "public function setMinimalLogLevel($minLevel)\n {\n $this->logger->setMinLevel($minLevel);\n }", "protected function setVerbosity($level)\n {\n $this->verbosity = $this->parseVerbosity($level);\n }", "public function setLogLevel(string $loglevel) : self\n {\n $this->loglevel = $loglevel;\n return $this;\n }", "private function set_log_type () {\n\t\t# check settings\n\t\t$this->log_type = $this->settings->log;\n\t}", "public function setLevel($level) \n {\n $level = abs(filter_var($level, FILTER_SANITIZE_NUMBER_INT));\n if($level < 1 || $level > 12)\n {\n throw new Exception('Level must be between 1, 12');\n } else {\n $this->level = $level;\n }\n }", "public function setDebugLevel($level = 0)\n {\n $this->do_debug = $level;\n }", "public function setVerbosity($level)\n {\n $this->decoratedOutput->setVerbosity($level);\n }", "public function testCustomLevelWrites() {\n\t\t$this->_deleteLogs();\n\t\t$this->_resetLogConfig();\n\n\t\tCakeLog::levels(array('spam', 'eggs'));\n\n\t\t$testMessage = 'error message';\n\t\tCakeLog::write('error', $testMessage);\n\t\tCakeLog::defaultLevels();\n\t\t$this->assertTrue(file_exists(LOGS . 'error.log'));\n\t\t$contents = file_get_contents(LOGS . 'error.log');\n\t\t$this->assertContains('Error: ' . $testMessage, $contents);\n\n\t\tCakeLog::config('spam', array(\n\t\t\t'engine' => 'File',\n\t\t\t'file' => 'spam.log',\n\t\t\t'types' => 'spam',\n\t\t\t));\n\t\tCakeLog::config('eggs', array(\n\t\t\t'engine' => 'File',\n\t\t\t'file' => 'eggs.log',\n\t\t\t'types' => array('spam', 'eggs'),\n\t\t\t));\n\n\t\t$testMessage = 'spam message';\n\t\tCakeLog::write('spam', $testMessage);\n\t\tCakeLog::defaultLevels();\n\t\t$this->assertTrue(file_exists(LOGS . 'spam.log'));\n\t\t$this->assertTrue(file_exists(LOGS . 'eggs.log'));\n\t\t$contents = file_get_contents(LOGS . 'spam.log');\n\t\t$this->assertContains('Spam: ' . $testMessage, $contents);\n\n\t\t$testMessage = 'egg message';\n\t\tCakeLog::write('eggs', $testMessage);\n\t\tCakeLog::defaultLevels();\n\t\t$contents = file_get_contents(LOGS . 'spam.log');\n\t\t$this->assertNotContains('Eggs: ' . $testMessage, $contents);\n\t\t$contents = file_get_contents(LOGS . 'eggs.log');\n\t\t$this->assertContains('Eggs: ' . $testMessage, $contents);\n\n\t\tCakeLog::drop('spam');\n\t\tCakeLog::drop('eggs');\n\n\t\t$this->_deleteLogs();\n\t}", "public function getLogLevel(){\n\n\t\treturn $this->_log_level;\n\t}", "public static function setErrorReportingLevel($level = 0){\r\n if(is_int($level) && $level >= 0 && $level <= 3){\r\n self::$reportLevel = $level;\r\n return true;\r\n }\r\n return false;\r\n }", "public function getLogLevel()\n {\n return $this->_logLevel;\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 function setLogging(bool $enabled, string $filename = null)\n {\n $this->logging = $enabled;\n $this->logFilename = $filename;\n }", "public function setDebugLevel($level = 0)\n {\n }", "public function setVerbosity($level): void\n {\n $this->verbosity = $this->getVerbosity($level);\n }", "public function testSelectiveLoggingByLevel() {\n\t\tif (file_exists(LOGS . 'spam.log')) {\n\t\t\tunlink(LOGS . 'spam.log');\n\t\t}\n\t\tif (file_exists(LOGS . 'eggs.log')) {\n\t\t\tunlink(LOGS . 'eggs.log');\n\t\t}\n\t\tCakeLog::config('spam', array(\n\t\t\t'engine' => 'File',\n\t\t\t'types' => 'debug',\n\t\t\t'file' => 'spam',\n\t\t));\n\t\tCakeLog::config('eggs', array(\n\t\t\t'engine' => 'File',\n\t\t\t'types' => array('eggs', 'debug', 'error', 'warning'),\n\t\t\t'file' => 'eggs',\n\t\t));\n\n\t\t$testMessage = 'selective logging';\n\t\tCakeLog::write(LOG_WARNING, $testMessage);\n\n\t\t$this->assertTrue(file_exists(LOGS . 'eggs.log'));\n\t\t$this->assertFalse(file_exists(LOGS . 'spam.log'));\n\n\t\tCakeLog::write(LOG_DEBUG, $testMessage);\n\t\t$this->assertTrue(file_exists(LOGS . 'spam.log'));\n\n\t\t$contents = file_get_contents(LOGS . 'spam.log');\n\t\t$this->assertContains('Debug: ' . $testMessage, $contents);\n\t\t$contents = file_get_contents(LOGS . 'eggs.log');\n\t\t$this->assertContains('Debug: ' . $testMessage, $contents);\n\n\t\tif (file_exists(LOGS . 'spam.log')) {\n\t\t\tunlink(LOGS . 'spam.log');\n\t\t}\n\t\tif (file_exists(LOGS . 'eggs.log')) {\n\t\t\tunlink(LOGS . 'eggs.log');\n\t\t}\n\t}", "public function getLevel() {\n return Logger::$LOG_LEVELS[$this->logLevel];\n }", "public function setLevel($level)\n {\n $this->level = $level;\n $this->childContainer->setLevel($level + 1);\n }", "public function setLogMode($logMode) {\n $this->logMode = $logMode;\n }", "public static function Log($type,$message,$level)\n \t{\n Log::Write($type,$message,$level);\n \t}", "public function setOutputVerbosity($level);", "public function setlog($d = true){\n\t\t$this->log = $d;\n\t}", "private static function getLevel() {\n if (empty(static::$level)) {\n static::$level = Conf::getIniVal(Conf::LOG_LEVEL, 3);\n }\n return static::$level;\n }", "public static function writeLog($level,$message)\n {\n plexcel_log($level, $message);\n }", "public function log(\n string $level,\n string $message,\n array $context = []\n ): void {\n if (in_array($level, $this->allowedLogs)) {\n parent::log($level, $message, $context);\n }\n }", "public function setLevel($value)\n {\n return $this->set(self::_LEVEL, $value);\n }", "public function setLevel($value)\n {\n return $this->set(self::_LEVEL, $value);\n }", "public function setLevel($value)\n {\n return $this->set(self::_LEVEL, $value);\n }", "public function setLevel($value)\n {\n return $this->set(self::_LEVEL, $value);\n }", "public function setLevel($value)\n {\n return $this->set(self::_LEVEL, $value);\n }", "public function setLevel($value)\n {\n return $this->set(self::_LEVEL, $value);\n }", "public static function log($level, $message) {\n//\t\tif (self::config()->log) {\n//\t\t\t$messages = str_split($message, 500);\n//\t\t\tfor ($i = 0; $i < count($messages); $i++) {\n//\t\t\t\tsyslog($level, $messages[$i]);\n//\t\t\t}\n//\t\t}\n\t}", "protected function log( $msg, $level = 0 ) {\n\t\t\tif ( !$this->get_option( 'log' ) )\n\t\t\t\treturn;\n\t\t\t$msg = date( 'H:i:s' ) . \": $msg\";\n\t\t\t$msg .= \"\\n\";\n\t\t\t$log = $this->plugin_dir . '/log.txt';\n\t\t\t$fh = fopen( $log, 'a' );\n\t\t\tif ( !$fh ) {\n\t\t\t\ttrigger_error( sprintf(\n\t\t\t\t\t__( \"Logfile %s is not writable..\", 'better-related' ),\n\t\t\t\t\t$log\n\t\t\t\t) );\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif ( !$this->get_option( 'log' ) )\n\t\t\t\treturn;\n\t\t\t$loglevel = $this->get_option( 'loglevel' );\n\t\t\tif ( $loglevel != 'all' && $loglevel != $level && $level != 'global' )\n\t\t\t\treturn;\n\t\t\tfwrite( $fh, $msg );\n\t\t\tfclose( $fh );\n\t\t}", "public function debug($level)\n {\n $this->debug = (int) ($level);\n }", "function wlog($value,$level=4)\n{\n $currentLevel=4;\n if ($currentLevel>=$level){\n file_put_contents(\"all.log\",\"\\n\",FILE_APPEND);\n\t\tfile_put_contents('all.log',$value,FILE_APPEND);\n\t}\n}", "public function log($message, $level = null)\n {\n if (empty($this->_filename)) {\n Mage::log(\n 'The Paymentsense log is not initialised. The Magento system log (this log) will be used instead.',\n Zend_Log::ERR,\n '',\n true\n );\n $message = 'Paymentsense: ' . $message;\n }\n\n Mage::log($message, $level, $this->_filename, true);\n }", "public function setLevel($value)\n {\n return $this->set(self::LEVEL, $value);\n }", "public function log($level, $message, array $context = []): void;", "function _Log($path = '', $threshold = '', $date_fmt = '')\n\t{\t\n\t\t$this->log_path = ($path != '') ? $path : BASEPATH.'logs/';\n\n\t\tif ( ! is_dir($this->log_path) OR ! is_writable($this->log_path))\n\t\t{\n\t\t\t$this->_enabled = FALSE;\n\t\t}\n\t\t\n\t\tif (is_numeric($threshold))\n\t\t{\n\t\t\t$this->_threshold = $threshold;\n\t\t}\n\t\t\t\n\t\tif ($date_fmt != '')\n\t\t{\n\t\t\t$this->_date_fmt = $date_fmt;\n\t\t}\n\t}", "function _log($text,$level=10) {\n if($this->logger) call_user_func($this->logger, $text, $level);\n }", "function setErrorHandling($level)\t{\n\t\t$GLOBALS['amfphp']['errorLevel'] = $level;\n\t}", "public static function log($level = 'error', $message, $php_error = FALSE)\n\t{ \n if(self::$_log)\n {\n if(self::$_log->_enabled)\n {\n self::$_log->write_log($level, $message, $php_error);\n }\n }\n\t}", "protected function setLoggerMessage(int $level, string $message)\n {\n $this->lastLoggerMessage = $message;\n }", "public function level(string $level): self\n {\n $this->level = $level;\n\n return $this;\n }", "function getLogLevel()\n {\n return $this->_props['LogLevel'];\n }", "public function log($level, $message, array $context = array()) {\n\t\t$this->lastLevel = $level;\n\t\t$this->lastLine = $message;\n\t\t$this->lastContext = $context;\n\t}", "public function setLog($value = false) {\n $this->config[\"log\"] = $value;\n return true;\n }", "public function setLogger($logger);", "public function log($level, $message, array $context = array()) {\n\n\t\tif (!$this->is_enabled()) return false;\n\n\t\t$message = date(\"Y-m-d H:i:s\").' ['.Updraft_Log_Levels::to_text($level).'] : '.$this->interpolate($message, $context);\n\t\t$this->add_log($message);\n\t}", "public function log($level, string $message, array $context = []) : void\n {\n if (is_numeric($level)) {\n $level = isset($this->logLevel[$level]) ? $this->logLevel[$level] : $this->defaultLevel;\n } elseif (!in_array($level, $this->logLevel)) {\n $level = $this->defaultLevel;\n }\n\n $this->adapter->log($level, $message, $context);\n }", "private function setLevel( int$level )\n\t{\n\t\t$level-= $this->indentLevel;\n\n\t\tif( $level<=0 ){\n\t\t\t$this->closeGroups(-$level);\n\t\t}elseif( $level==1 ){\n\t\t\t$this->indentLevel+= 1;\n\t\t}else{\n\t\t\tthrow new Exception('Indent error.');\n\t\t}\n\t}", "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}", "protected function logLevel()\n {\n if ($this->app->bound('config')) {\n return $this->app->make('config')->get('app.log_level', 'debug');\n }\n\n return 'debug';\n }", "public function __construct($level = null)\n {\n if (!is_null($level)) {\n $this->setLogLevel($level);\n }\n\n // default setting\n $loggerSetting = SzConfig::get()->loadAppConfig('logger');\n foreach ($loggerSetting as $key => $val) {\n $this->loggerSetting[$key] = $val;\n }\n }", "public function setLogger(Logger $logger);", "public function setAccessLevel($level) {\n $this->access_level = $level;\n }", "protected function write($level, $message, array $context = array() )\n {\n error_log($message);\n }", "public function enableLogging() {\n $this->debug = true;\n }", "function trace_log()\n {\n $messages = func_get_args();\n\n foreach ($messages as $message) {\n $level = 'info';\n\n if ($message instanceof Exception) {\n $level = 'error';\n }\n elseif (is_array($message) || is_object($message)) {\n $message = print_r($message, true);\n }\n\n Log::$level($message);\n }\n }", "public function log($level, $message, array $context = array())\n {\n if ($this->isPassMessage($level)) {\n $this->writeLine(\"[\" . date(\"Y-m-d H:i:s\") . \"] \\\"{$level}\\\" {$message}\\n\");\n }\n }", "protected function log(string $level, $message): void\n {\n if (!is_string($message)) {\n $message = print_r($message, true);\n }\n\n $text = '[' . date($this->timeFormat, time()) . '][' . strtoupper($level) .\n '] - [' . request()->ip() . '] --> ' . $message . PHP_EOL;\n\n $this->save($text);\n }", "public function reporting()\n {\n $this->levels = func_get_args();\n }", "protected function getLogLevel()\n {\n return $this->_loglevel;\n }", "public function setLevelField($name) {\n $this->_level = $name;\n return $this;\n }", "public function logLevel($level)\n {\n if (!is_numeric($level)) {\n return $level;\n }\n\n try {\n return ucfirst(strtolower(\\Monolog\\Logger::getLevelName($level)));\n } catch (\\Exception $e) {\n return $level;\n }\n }", "public function setTraceLevel($value): static\n\t{\n\t\tPrado::getLogger()->setTraceLevel(TPropertyValue::ensureInteger($value));\n\n\t\treturn $this;\n\t}", "protected static function _log($level, &$message)\n {\n if ($level < 0)\n return;\n\n if ($level <= static::$level) {\n $message = sprintf(\"[%s %s %s] %s: %s\",\n static::$name,\n date('c'),\n static::$reqid,\n static::level_to_string($level),\n $message\n );\n static::$messages[] = $message;\n if (static::$syslog) {\n syslog($level, $message);\n }\n if (!is_null(static::$fd)) {\n fwrite(static::$fd, $message . \"\\n\");\n }\n }\n }", "public function log($level, $message, array $context = array())\n {\n if (!$this->activated) {\n return;\n }\n\n $this->errors[] = $message;\n }", "public function log($level, $message, array $context = [])\n {\n }", "function write($msg, $lvl=1){\n global $DB, $CONFIG, $USER;\n if((int)@$CONFIG->Logging->Filter_level > $lvl) return;\n \n $CONFIG->Logging->setType('Type', 'select', array('none' => 'None', 'db' => 'DB', 'file' => 'File'));\n $src='?';\n if(isset($this)) $src = get_class($this).'('.$this->ID.')';\n switch(strtolower(@$CONFIG->Logging->Type)){\n case 'db':\n $DB->log->insert(array('remote_addr' => $_SERVER['REMOTE_ADDR'],'user' => $USER->ID, 'level' => $lvl, 'source' => $src, '#!time' => 'NOW()','message' => $msg));\n break;\n case 'file':\n $r=fopen(PRIV_PATH.'/log', 'ab');\n fwrite($r, join(\"\\t\", array(date(\"Y-m-d H:i:s\"),$src,$lvl,$_SERVER['REMOTE_ADDR'],$USER->ID,str_replace(\"\\t\", '', $msg))));\n fclose($r);\n break;\n }\n }", "function setIssueLevel( $sessionID, $issueID, $level ){\r\n\t \tif($this->userCanSetIssueLevel( $sessionID, $issueID )){\r\n\t \t\t$userID = $_SESSION[ 'userid' ];\r\n\t\t\t$this->sendIssueAlerts($issueID, 'Issue level changed.');\r\n\t\t\t$query=\"UPDATE issues SET Modifier='$userID', Level='$level' WHERE ID='$issueID'\";\r\n\t\t\t$result=mysql_query($query);\r\n\t\t\treturn $result;\r\n\t\t}\r\n\t}", "public function enableLogging()\n {\n global $log;\n if (! $this->logger)\n {\n // create a log channel\n $this->logger = new \\Monolog\\Logger('SQL');\n $this->logger->pushHandler($log);\n }\n }", "public function log($level, $message, array $context = array())\n {\n if (get_option('pusher_logging_enabled') != 1) {\n // Do nothing\n return;\n }\n\n $reflection = new \\ReflectionClass('Pusher\\Log\\LogLevel');\n $levels = $reflection->getConstants();\n\n if ( ! in_array($level, $levels, true)) {\n // Log level not allowed.\n\n return;\n }\n\n $date = date('Y-m-d H:i:s');\n $level = strtoupper($level);\n $message = $this->interpolate($message, $context);\n $entry = \"[{$date}] {$level}: $message\\n\";\n\n file_put_contents($this->file, $entry, FILE_APPEND);\n }", "protected function log($level, $message)\n {\n if ($this->logger) {\n $this->logger->log($level, $message);\n }\n }" ]
[ "0.77338636", "0.75491667", "0.7473436", "0.72613066", "0.72509813", "0.7013065", "0.68858266", "0.6878487", "0.66735476", "0.6617552", "0.66090184", "0.6577425", "0.65486836", "0.6490456", "0.64193326", "0.62296426", "0.6199628", "0.6181714", "0.61697227", "0.6137941", "0.6136106", "0.6120609", "0.606371", "0.60389096", "0.5998362", "0.5939777", "0.59364015", "0.58861357", "0.5863741", "0.5851895", "0.58484495", "0.5844142", "0.5804703", "0.57959497", "0.5783598", "0.5775868", "0.5770808", "0.5763329", "0.57451725", "0.5723524", "0.56858957", "0.56778824", "0.5645531", "0.56321764", "0.56130004", "0.5611459", "0.5610836", "0.5579442", "0.557548", "0.5570866", "0.55438375", "0.55154103", "0.55154103", "0.55154103", "0.55154103", "0.55154103", "0.55154103", "0.55114436", "0.55013376", "0.5477884", "0.54772913", "0.5466819", "0.54593843", "0.5455375", "0.5445632", "0.5434931", "0.54338515", "0.54314995", "0.5423965", "0.54151076", "0.54125565", "0.53919446", "0.53896266", "0.5384353", "0.53756887", "0.536938", "0.53428", "0.5324722", "0.53229254", "0.5315021", "0.531502", "0.53140765", "0.527298", "0.5270936", "0.5243193", "0.5233098", "0.5227226", "0.52231973", "0.5220545", "0.52142364", "0.5213221", "0.52112854", "0.5208591", "0.52032006", "0.52030617", "0.52008337", "0.5181771", "0.5181639", "0.51615393", "0.5161234" ]
0.6774788
8
Send a debug message
function debug($message);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function send_debug_email()\n {\n }", "public function debug($message) {}", "private function debug($msg = '')\n\t{\n\t\t$this->debugger .= $msg.\"<br/>\\n\";\t\n\t}", "private function debug($message) {\n if ($this->debug) echo $message . \"\\n\";\n if ($this->htmldebug) {\n echo \"<br />\\n\";\n ob_flush();\n }\n }", "public function debug($message) {\n\t\tif ($this->debug)\n\t\t\techo \"cobweb: DEBUG {$message}\\n\";\n\t}", "private function debug($msg) {\r\n if ($this->debug) {\r\n echo '[debug] ' . $msg . '<br>';\r\n }\r\n }", "public function debug(string $message);", "public static function debug($message){\n\t\tif(Functions::$runmode == Functions::$RUNMODE_DEBUG){\n\t\t\techo 'DEBUG: '.$message.\"\\n\";\n\t\t}\n\t}", "public function debug($message)\n {\n }", "public function debug( $msg )\n {\n if ( DEBUG )\n {\n echo $msg;\n }\n }", "protected function debug($string){\n \t$this->_msg($string, Messages::DEBUG);\n }", "function debugMsg($msg)\n {\n echo \"DEBUG MESSAGE: {$msg}<br>\\n\";\n }", "protected function debug($msg)\n {\n echo \"(DEBUG:Url) $msg\\n\";\n }", "function testDebugEmail() {\n Debug::$enable_show = false;\n Debug::$enable_send = true;\n Debug::out('Testing, testing, 123');\n $this->assertTrue(Debug::sendEmail());\n Debug::$enable_send = false;\n }", "public static function debug($message)\n\t{\n\t\tstatic::write('Debug', $message);\n\t}", "public function debugMessage ($message)\n {\n if (sfConfig::get('sf_web_debug'))\n {\n sfWebDebug::getInstance()->logShortMessage($message);\n }\n }", "public function debug($message) {\r\n\t\tif($this->isDebug()) {\r\n\t\t\techo microtime(true) . \": \";\r\n\t\t\tvar_dump($message);\r\n\t\t}\r\n\t}", "static private function debug($message) {\n if (self::getConfig('debug')) {\n print_r($message);\n print_r(PHP_EOL);\n }\n }", "protected static function echoDebug($message)\r\n {\r\n if (self::$DEBUG)\r\n echo $message;\r\n }", "public function debug($message)\r\n {\r\n $this->log($message, SF_LOG_DEBUG);\r\n }", "public static function debug($message)\n {\n if (!self::$output) {\n return;\n }\n self::$output->debug($message);\n }", "public static function debug()\n {\n foreach (func_get_args() as $message) {\n if (is_null($message))\n $message = 'NULL';\n if (!is_string($message))\n $message = print_r($message, true);\n static::_log(self::DEBUG, $message);\n }\n }", "function debug($message = \"\")\r\n {\r\n \tif ($this->_debug) {\r\n \t\techo $message;\r\n \t}\r\n \t\r\n \treturn TRUE;\r\n }", "public function debug($message)\n {\n $this->log($message, self::DEBUG);\n }", "private function debug_message(string $message)\n {\n $timestamp = date('Y-m-d H:i:s');\n echo \"[{$timestamp}] > {$message}\\n\";\n }", "public function debug( $message ) {\n\t\tif ($this->logfile === null)\n\t\t\t$this->setLogfile(\"Debugger.log\");\n\t\t$string = date('j.m H:m:s',time()). \" $message\\n\";\n\t\t\t\n\t\tfwrite($this->logfile, $string);\n\t}", "function debug($msg) {\n echo '<p><b>' . $msg . \"</b></p>\\n\";\n}", "public function debug($msg){\n\t\tif($this->debugLevel >= self::LOG_DEBUG){\n\t\t\t$this->_log($msg, self::LOG_DEBUG);\n\t\t}\n\t}", "public static function debug($msg)\n {\n if (!defined(\"SERVER_LIVE\") || (defined(\"SERVER_LIVE\") && !SERVER_LIVE)) {\n $return = \"Requested URL: \" . Server::getAbsoluteURL() . \"<br>\";\n $return .= $msg . \"<br>\";\n $return .= \"<pre>\";\n $return .= print_r(debug_backtrace(), true);\n $return .= \"</pre>\";\n self::getInstance()->outputContent($return);\n } else {\n trigger_error($msg, E_USER_ERROR);\n }\n }", "function Debug($debug, $msg = \"Debugging\"){\n\tif(ENV == PRODUCTION && (!isset($_GET['debug'])) ){\n\t\treturn;\n\t}\n\n\techo '<pre class=\"debug\">';\n\techo '<h2>'.$msg.'</h2>';\n\tprint_r($debug);\n\techo '</pre>';\n}", "public function testDebugMessage()\n {\n $this->throwDebugException();\n\n // test if code actually gets here\n $this->assertTrue(true);\n }", "public function log_debug( $message ) {\n\t\tGFAPI::log_debug( $message );\n\t}", "function _debug() {\n $nl = \"\\n\";\n $header = implode($nl, $this->__header);\n $message = implode($nl, $this->__message);\n $fm = $nl;\n\n if ($this->delivery == 'smtp') {\n $fm .= sprintf('%s %s%s', 'Host:', $this->smtpOptions['host'], $nl);\n $fm .= sprintf('%s %s%s', 'Port:', $this->smtpOptions['port'], $nl);\n $fm .= sprintf('%s %s%s', 'Timeout:', $this->smtpOptions['timeout'], $nl);\n }\n $fm .= sprintf('%s %s%s', 'To:', $this->to, $nl);\n $fm .= sprintf('%s %s%s', 'From:', $this->from, $nl);\n $fm .= sprintf('%s %s%s', 'Subject:', $this->_encode($this->subject), $nl);\n $fm .= sprintf('%s%3$s%3$s%s', 'Header:', $header, $nl);\n $fm .= sprintf('%s%3$s%3$s%s', 'Parameters:', $this->additionalParams, $nl);\n $fm .= sprintf('%s%3$s%3$s%s', 'Message:', $message, $nl);\n $fm .= $nl;\n\n $this->log($fm);\n return true;\n }", "public static function debug($message) {\n\t\tif (constant('ENVIRONMENT') === 'DEV') {\n\t\t\tself::log(self::TYPE_DEBUG, $message);\n\t\t}\n\t}", "public function debug($msg)\n {\n if (self::$debugMode) {\n $this->debug [] = $msg;\n }\n }", "function debug() {\n if (!APP_IN_DEVELOPER_MODE)\n return;\n $args = func_get_args();\n ob_start();\n if (count($args) > 1) {\n echo var_dump($args);\n } else if (count($args) == 1) {\n echo var_dump(reset($args));\n }\n $message = ob_get_contents();\n ob_end_clean();\n trigger_error(\"debug() triggered with the following data:\\n\\n$message\", \\E_USER_WARNING);\n}", "public function debug();", "public function debug();", "public function debug()\n {\n \t// Observer responses\n \t$responses = array();\n \t \n \t// Interate the observers and fire their handle() method\n \tforeach($this->observers as $observer){\n \t\t$responses[get_class($observer)] = $observer->handle($this->breakpoints);\n \t}\n \t\n \t// Generate the notification email content\n \t$viewData = array('responses' => $responses);\n \t$message = $this->CI->load->view('Notification', $viewData, true);\n \t \n \t// Prepare the to addresses\n \t$to = implode(',', $this->config['emailTo']);\n \t\n \t// Set the message subject\n \t$subject = '[' . $this->CI->config->item('base_url') . '] Debug Notification';\n \t\n \t// Prepare mail headers\n \t$headers = array(\n \t\t'From: ' . $this->config['emailFrom'],\n \t\t'Content-Type:text/html; charset=utf-8'\n \t);\n \t\n \t// Send the message\n \tmail($to, $subject, $message, implode(PHP_EOL, $headers));\n }", "function emDebug() {\n if ($this->getSystemSetting('enable-system-debug-logging') || ( !empty($_GET['pid']) && $this->getProjectSetting('enable-project-debug-logging'))) {\n $emLogger = \\ExternalModules\\ExternalModules::getModuleInstance('em_logger');\n $emLogger->emLog($this->PREFIX, func_get_args(), \"DEBUG\");\n }\n }", "function debug($message, $linefeed = 1) {\n\tglobal $debug;\n\n\tif ($debug) {\n\t\tif ($linefeed == 0) {\n\t\t\tprint \"DEBUG: \" . $message . \"\\r\";\n\t\t}else{\n\t\t\tprint \"DEBUG: \" . $message . \"\\n\";\n\t\t}\n\t}\n}", "private static function debugging($message) {\r\n $debugdisplay = ini_get('display_errors');\r\n\r\n if (($debugdisplay == '1' || strtolower($debugdisplay) == 'on') && (error_reporting() >= E_ALL | E_STRICT)) {\r\n if (defined('CLI_SCRIPT') && CLI_SCRIPT) {\r\n echo \"++ $message ++\\n\";\r\n } else {\r\n echo '<div class=\"notifytiny debuggingmessage\" data-rel=\"debugging\">' , $message , '</div>';\r\n }\r\n }\r\n }", "function _debug($message) {\n if ($debug = TRUE) {\n _log($message);\n } \n}", "function debug($message, $query = \"\") {\n global $logger;\n\t $logger->debug(\"$message \" . \"[ $query ]\" . \"\\n\");\n }", "function maildebug($mixed){\r\n\t\tif (DEVELOPMENT_ENVIRONMENT){\r\n\t\t\tif (defined(DEVELOPMENT_EMAIL)){\r\n\t\t\t\t$trace = debug_backtrace();\r\n\t\t\t\t$file = $trace[0]['file'];\r\n\t\t\t\t$file = str_replace($_SERVER['DOCUMENT_ROOT'],'',$file);\r\n\t\t\t\t$line = $trace[0]['line'];\r\n\t\t\t\tif (isset($trace[1]['object'])){\r\n\t\t\t\t\t$object = $trace[1]['object'];\r\n\t\t\t\t\tif (is_object($object)) { $object = get_class($object); }\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$object = \"View\";\r\n\t\t\t\t}\r\n\t\t\t\t$header = \"<html><head><title>Mail Debug</title></head><body>\";\r\n\t\t\t\t$body = \"<pre class='debug'><strong>DEBUG:</strong> In <strong>$object</strong> -> Line <strong>$line</strong>\\n(file <strong>$file</strong>)\";\r\n\t\t\t\t$body.= \"<pre>\".print_r($mixed,true).\"</pre>\";\r\n\t\t\t\t$footer = \"</body></html>\";\r\n\t\t\t\t$message = $header.$body.$footer;\r\n\t\t\t\t$email = DEVELOPMENT_EMAIL;\r\n\t\t\t\t$asunto = 'Mail Debug';\r\n\t\t\t\t$cabeceras = \"Content-type: text/html\\r\\n\";\r\n\t\t\t\tmail($email,$asunto,$message,$cabeceras);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static function debug() {\n\t\t# Get arguments to this function:\n\t\t$args = func_get_args();\n\n\t\t# Add message to log:\n\t\treturn self::add(LOG_DEBUG, $args);\n\t}", "public function testDebugLog()\n {\n define('DEBUG_MODE', 1);\n\n // Start capturing the output to the screen.\n ob_start();\n\n // Message that is expected to be outputted.\n $msg = 'This is a message';\n\n // Execute.\n $this->testObject->debugLog($msg);\n\n // Output debug information.\n $log = ob_get_clean();\n\n // Assert Result\n $this->assertContains($msg, $log);\n }", "public function debug($message)\n {\n if ($this->debugMode)\n {\n $this->log($message);\n }\n }", "public function debug($var){\n\t\t////$this->core->log($var);\n\t}", "public function debug($message, $trance = null)\n {\n $this->write('debug', $message, $trance);\n }", "public function debug($message)\n {\n self::log($message, Zend_Log::DEBUG);\n }", "function Trace($msg)\r\n{\r\n\tglobal $debug;\r\n\tif ($debug) echo $msg;\r\n}", "public function debug($message): void\n {\n $this->log(__FUNCTION__, $message);\n }", "public static function addDebug($msg)\r\n\t{\r\n\t\tif(self::$debug)\r\n\t\t\tself::$debugData .= self::makePrintable($msg) . \"\\n\";\r\n\t}", "function pkg_debug($msg) {\n\t\tglobal $g, $debug, $fd_log;\n\n\t\tif (!$debug) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!$fd_log) {\n\t\t\t$fd_log = fopen(\"{$g['tmp_path']}/pkg_mgr_debug.log\",\n\t\t\t \"w\");\n\t\t}\n\n\t\tif (!$fd_log) {\n\t\t\tupdate_status(gettext(\"Warning, could not open log \" .\n\t\t\t \"for writing.\") . \"\\n\");\n\t\t\treturn;\n\t\t}\n\t\t@fwrite($fd_log, $msg);\n\t}", "function debug($message) {\n $_SESSION[\"debug\"][] = $message;\n }", "function dbgmsg( $dbgtxt=\"Debug\" )\n{\n echo \"$dbgtxt\\n\";\n flush();\n}", "private function setDebugger()\n {\n $this->client\n ->getEmitter()\n ->attach(new LogSubscriber($this->debugLogger, Formatter::DEBUG));\n }", "public function debugAction() : string\n {\n // Deal with the action and return a response.\n //return __METHOD__ . \", \\$db is {$this->db}\";\n return \"Debug my database!!\";\n }", "protected function debug($sql){\n\t\tif($this->debug){\n\t\t\tFlash::notice($sql);\n\t\t}\t\n\t}", "function debug($msg)\n {\n printf(\"[%s]: %s\\n\", date('Y-m-d H:i:s'), $msg);\n }", "public function debug($message, $timerRef = null, $newLineAfter = false)\n {\n $this->output('debug', $this->buildMessage($message, $timerRef, $newLineAfter), 0);\n }", "public static function debug() {\n $args = func_get_args();\n self::log(count($args) === 1 ? current($args) : $args);\n }", "function debug($value)\n {\n $debugbar = debugbar();\n foreach (func_get_args() as $value) {\n $debugbar->addMessage($value, 'debug');\n }\n }", "public function debug($message, array $context = array())\n {\n }", "protected function debug($msg)\n {\n if(self::DEBUG)\n {\n error_log('epfl-quota: '.$msg);\n }\n }", "protected function debugPrint($msg)\n {\n if ($this->debug) {\n echo \"<pre>{$msg}</pre>\\n\";\n }\n }", "function debug($msg)\n{\n _log($msg, Zend_Log::DEBUG);\n}", "public function debug($message): void\n\t{\n\t\t$message = $this->logMessToArray($message);\n\t\t$this->log(array_merge(['SEVERITY' => 'DEBUG'], $message));\n\t}", "function debug($content=\"\",$loglevel = \"\") {\n\t// Si no esta habilitado, nada\n\tif (!$this->Debug) return;\n\t$this->log($content, $loglevel);\n//\techo \"DEBUG> $content <br>\\n\";\t \n }", "public function debug($line)\n {\n rcube::write_log('enigma', 'GPG: ' . $line);\n }", "private function print_debug($_msg, $_terminate = TRUE)\n {\n print(\"DEBUG:\" . PHP_EOL);\n if (is_array($_msg)) {\n // If _msg is array then run through each key => value pair and print each entry to the screen\n foreach ($_msg as $key => $value) {\n print($key . \" => \");\n var_dump($value);\n print(PHP_EOL);\n }\n } else \n if (is_string($_msg)) {\n print_r($_msg);\n print(PHP_EOL);\n }\n \n if ($_terminate) {\n exit();\n }\n }", "public static function debug( $data )\n {\n }", "function debug($message, $fatal = false) {\r\n if (DEBUG) {\r\n global $DEBUG;\r\n console_message($message, $fatal);\r\n }\r\n}", "public function enableDebug() {}", "public function DebugMsg($msg)\n {\n if (function_exists($this->debugFn))\n call_user_func($this->debugFn, $msg);\n }", "static function message($message, $showHeader = true) {\n\t\tif(!Director::isLive()) {\n\t\t\t$caller = Debug::caller();\n\t\t\t$file = basename($caller['file']);\n\t\t\tif(Director::is_cli()) {\n\t\t\t\tif($showHeader) echo \"Debug (line $caller[line] of $file):\\n \";\n\t\t\t\techo trim($message) . \"\\n\";\n\t\t\t} else {\n\t\t\t\techo \"<p style=\\\"background-color: white; color: black; width: 95%; margin: 0.5em; padding: 0.3em; border: 1px #CCC solid\\\">\\n\";\n\t\t\t\tif($showHeader) echo \"<b>Debug (line $caller[line] of $file):</b>\\n \";\n\t\t\t\techo Convert::raw2xml(trim($message)) . \"</p>\\n\";\n\t\t\t}\n\t\t}\n\t}", "public function wpDebug($message, $code=Zend_Log::INFO)\n\t{\n\t\tMage::log($message, $code, \"WhitePageswpDebug.log\");\n\t}", "public function debug($string)\r\n {\r\n $this->getLogger()->log($string, self::DEBUG);\r\n }", "protected function debugPrint($message) {\n if ($this->debug) {\n echo \"<p style=\\\"font-family: monospace;\\\">[ lib-php-digest DEBUG ]: {$message}</p>\";\n }\n }", "protected function _debug()\n {\n $file = self::DEFAULT_LOG_FILE;\n Mage::getModel('core/log_adapter', $file)->log($this->_debugData);\n }", "public function debug($message, $parameters = array()){\n\t\t$this->log($message, $parameters, Customweb_Subscription_Model_Log::LEVEL_DEBUG);\n\t}", "public function debugAction() : string\n {\n // Deal with the action and return a response.\n return \"Debug my game\";\n }", "public function debug(): void\n {\n echo \"CLIENT : \" . PHP_EOL;\n echo \"=========\" . PHP_EOL;\n echo \"URL : \" . $this->getUrl(). PHP_EOL;\n echo \"METHOD : \" . $this->method. PHP_EOL;\n echo \"SPA ID : \" . $this->spaceId. PHP_EOL;\n echo \"ACCEPT : \" . $this->acceptContentType. PHP_EOL;\n echo \"C TYPE : \" . $this->contentType . PHP_EOL;\n echo \"API : \" . $this->apiType. PHP_EOL;\n echo \"TOKEN : \" . $this->c->getCredentials()->getAccessToken(). PHP_EOL;\n echo \"GEOJSON: \" . $this->geojsonFile. PHP_EOL;\n var_dump($this->requestBody);\n echo \"=========\" . PHP_EOL;\n }", "public function debug($line)\n {\n }", "public function debug(string $message, array $extra_data = []);", "function debug ($message, $class = NULL, $function = NULL, $file = NULL,\n $line = NULL)\n {\n\n $message =& new Message(array('m' => $message,\n 'c' => $class,\n 'F' => $function,\n 'f' => $file,\n 'l' => $line,\n 'N' => 'DEBUG',\n 'p' => LEVEL_DEBUG));\n\n $this->log($message);\n\n }", "abstract public function debug(string $message, array $extra_data = []);", "public function enableDebug();", "function wfWikiTrustDebug($msg){\n WikiTrust::debug($msg, WIKITRUST_DEBUG);\n}", "protected function edebug($str)\n {\n if ($this->SMTPDebug <= 0) {\n return;\n }\n //Avoid clash with built-in function names\n if (!in_array($this->Debugoutput, array('error_log', 'html', 'echo')) and is_callable($this->Debugoutput)) {\n call_user_func($this->Debugoutput, $str, $this->SMTPDebug);\n return;\n }\n switch ($this->Debugoutput) {\n case 'error_log':\n //Don't output, just log\n error_log($str);\n break;\n case 'html':\n //Cleans up output a bit for a better looking, HTML-safe output\n echo htmlentities(\n preg_replace('/[\\r\\n]+/', '', $str),\n ENT_QUOTES,\n 'UTF-8'\n )\n . \"<br>\\n\";\n break;\n case 'echo':\n default:\n //Normalize line breaks\n $str = preg_replace('/\\r\\n?/ms', \"\\n\", $str);\n echo gmdate('Y-m-d H:i:s') . \"\\t\" . str_replace(\n \"\\n\",\n \"\\n \\t \",\n trim($str)\n ) . \"\\n\";\n }\n }", "public static function debug()\r\n {\r\n if (func_num_args() === 0)\r\n return;\r\n\r\n // Get all passed variables\r\n $variables = func_get_args();\r\n\r\n $output = array();\r\n foreach ($variables as $var)\r\n {\r\n $output[] = Core::_dump($var, 1024);\r\n }\r\n\r\n echo '<pre class=\"debug\">'.implode(\"\\n\", $output).'</pre>';\r\n }", "function debug ( $str ) {\n\t\tt3lib_div::debug( \n\t\t\tarray( 'debug' => '(' . strval ( $this->pline ) . ') ' . strval ( $str ) )\n\t\t);\n\t}", "public function vvDebug($message, $timerRef = null, $newLineAfter = false)\n {\n $this->output('debug', $this->buildMessage($message, $timerRef, $newLineAfter), 2);\n }", "protected function debug() { \n if ($this->SHOW_ERRORS) { \n echo $this->ERROR_MSG; \n } \n if ($this->LOGGING) { \n if ($this->FILE_HANDLER) { \n fwrite($this->FILE_HANDLER,$this->ERROR_MSG); \n } else { \n return false; \n } \n } \n }", "public function debug($message, $break = false)\n {\n if(!$this->isDebugMode()) {\n return;\n }\n $this->block($message, 'DEBUG', 'fg=blue', ' ! ');\n\n if($break) {\n $this->text(\"<Press any key to continue>\");\n readline();\n }\n\n }", "public static function debug($inMessage) {\n\t\tself::getInstance()->log($inMessage, systemLogLevel::DEBUG);\n\t}", "public function send()\n\t{\n\t\tif(($this->xResponse))\n\t\t{\n\t\t\tforeach($this->aDebugMessages as $sMessage)\n\t\t\t{\n\t\t\t\t$this->xResponse->debug($sMessage);\n\t\t\t}\n\t\t\t$this->aDebugMessages = array();\n\t\t\t$this->xResponse->sendHeaders();\n\t\t\t$this->xResponse->printOutput();\n\t\t}\n\t}", "function debug($status = array())\n {\n $this->debug = $status;\n }", "public static function debug($msg) {\n\t\ttrigger_error($msg, E_USER_WARNING);\n\t}" ]
[ "0.7635329", "0.74013096", "0.7382801", "0.73519367", "0.73430616", "0.7318158", "0.7266779", "0.7211658", "0.72026914", "0.7192122", "0.70947415", "0.7013982", "0.6989866", "0.6989812", "0.6988725", "0.6918641", "0.6912888", "0.69030833", "0.6887846", "0.68810534", "0.68578094", "0.67983925", "0.67899877", "0.677909", "0.67733294", "0.676915", "0.6753584", "0.6752628", "0.6739956", "0.67310005", "0.6728679", "0.6721065", "0.67147815", "0.6708619", "0.6704301", "0.6688539", "0.66745377", "0.66745377", "0.66574216", "0.66508025", "0.6631034", "0.6627606", "0.66205704", "0.6612612", "0.6607857", "0.6597199", "0.65969265", "0.65912503", "0.65693825", "0.6563223", "0.6549542", "0.6535319", "0.65352905", "0.6532775", "0.6522483", "0.64772505", "0.6459793", "0.64548093", "0.64225024", "0.64216644", "0.64116675", "0.64112025", "0.64047796", "0.63998747", "0.6399594", "0.6394997", "0.6394802", "0.6387541", "0.638744", "0.6386323", "0.637164", "0.635821", "0.6347214", "0.6345488", "0.63447016", "0.63396704", "0.6336938", "0.63266927", "0.6321099", "0.6319763", "0.63149375", "0.63036275", "0.62824345", "0.62745607", "0.6266643", "0.6266411", "0.6261794", "0.62603074", "0.62557214", "0.6249076", "0.6239857", "0.6239186", "0.62345546", "0.6230893", "0.6226362", "0.62219405", "0.62215", "0.62183034", "0.62182844", "0.6216243" ]
0.7231503
7
Sends an info message
function info($message);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function info($msg) {\n $this->writeLine($msg, 'info');\n }", "public static function info($message)\n\t{\n\t\tstatic::write('Info', $message);\n\t}", "public function info($message) {}", "public function info($message)\n {\n $this->message($message, 'info');\n }", "public function info($message)\n {\n }", "public function info(string $message)\n {\n $this->message('info', $message);\n }", "function info($message, array $context = array());", "public static function info($message, $context);", "public function info($message) {\n\t\techo \"{$message}\\n\";\n\t}", "private function info() {\n $this->client->info();\n }", "public static function info($text = null)\n {\n self::message($text, 'info');\n }", "public static function info($message = '') {\n self::writeLine($message, SELF::CLI_COLOR_DEFAULT, self::CLI_TYPE_INFO);\n }", "public function info($message, $trance = null)\n {\n $this->write('info', $message, $trance);\n }", "public function info( $message )\n {\n $this->write( $this->success_file, $message );\n }", "public function info($message, array $context = array())\n {\n }", "public function info()\n {\n return $this->send('info');\n }", "function info(){\n global $tpl, $ilTabs;\n\n $ilTabs->activateTab(\"info\");\n\n $my_tpl = new ilTemplate(\"tpl.info.html\", true, true,\n \"Customizing/global/plugins/Services/Repository/RepositoryObject/MobileQuiz\");\n\n // info text\n $my_tpl->setVariable(\"INFO_TEXT\", $this->txt(\"info_text\"));\n // mail to\n $my_tpl->setVariable(\"MAIL_TO\", $this->txt(\"info_mailto\"));\n // Instructions\n $my_tpl->setVariable(\"INSTRUCTIONS\",$this->txt(\"info_instructions\"));\n\n $html = $my_tpl->get();\n\n $tpl->setContent($html);\n }", "public function info($message) {\n\t\t\t$this->log('info', $message);\n\t\t}", "function appendInfo($info) {\n\t\t\t$this->responseVar['info'] .= $info.\"\\n<br>\\n\";\n\t\t}", "function info ($message, $class = NULL, $function = NULL, $file = NULL,\n $line = NULL)\n {\n\n $message =& new Message(array('m' => $message,\n 'c' => $class,\n 'F' => $function,\n 'f' => $file,\n 'l' => $line,\n 'N' => 'INFO',\n 'p' => LEVEL_INFO));\n\n $this->log($message);\n\n }", "public static function info( $message, $name = '' ) {\n return self::add( $message, $name, 'info' );\n }", "public function info($message, $title = null, $options = []) {\n $this->add('info', $message, $title, $options);\n }", "public function info($msg) {\n\t\tif ( $this->level <= self::INFO && !empty($msg) ) {\n\t\t\t$this->writeLog(\"INFO: \".$msg);\n\t\t}\n\t}", "abstract public function info(string $message, array $extra_data = []);", "private function printInfo(string $msg): void\n\t{\n\t\t$this->msgSection->writeln('<info>Info:</info> ' . $msg);\n\t}", "public function addInfoMessage($message) {\n\t\t$message = '<i class=\"fa fa-info\"></i> ' . $message;\n\t\t$this->addMessage($message, 'info');\n\t}", "public function info($message)\r\n {\r\n $this->log($message, SF_LOG_INFO);\r\n }", "public function info($message)\n {\n $flash = $this->flashtype['info'];\n $flash['message'] = $message;\n $this->add($flash);\n }", "public function info($message, array $context = array())\n {\n file_put_contents($this->filename, 'INFO: '. json_encode($context) . ' - ' . $message . \"\\r\\n\", FILE_APPEND);\n }", "public function info()\n {\n $this->appendLog('info', \\func_get_args());\n }", "public function info(): \\iota\\schemas\\response\\info {\n return $this->fetch([\n 'route' => \"info\",\n 'return' => \\iota\\schemas\\response\\Info::class,\n ]);\n }", "function info(&$irc, &$data)\n\t{\n\t\t$command = explode(\" \", $data->message);\n\t\t$command[0] = strtolower($command[0]);\n\t\t$command[0] = str_replace(\"!\", \"\", $command[0]);\n\n\t\tglobal $pickupchannel;\n\t\tglobal $pickup;\n\t\tglobal $queue;\n\t\tglobal $skill;\n\t\tglobal $messages;\n\t\tglobal $users;\n\t\tglobal $invites;\n\t\tglobal $messageflood;\n\t\tglobal $skillstack;\n\n\t\t$nick = $data->nick;\n\n\t\t//Check for set message command\n\t\tif($command[0] == \"setmessage\")\n\t\t{\n\t\t\t//Check if issuer was an admin\n\t\t\tif($users->is_admin($nick))\n\t\t\t{\n\t\t\t\t$new_command = strtolower($command[1]);\n\t\t\t\t$preload = \"!setmessage \".$command[1].\" \";\n\t\t\t\t$new_message = str_replace($preload, \"\", $data->message);\n\n\t\t\t\tif(isset($command[1]) || ($command[1] != \"\"))\n\t\t\t\t{\n\t\t\t\t\tif(isset($command[2]) || ($command[2] != \"\"))\n\t\t\t\t\t{\n\t\t\t\t\t\t//Check if it exists\n\t\t\t\t\t\t$counter1 = 0;\n\t\t\t\t\t\t$exists = false;\n\t\t\t\t\t\twhile($counter1 < count($messages))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($messages[$counter1][\"command\"] == $new_command)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$exists = $counter1;\n\t\t\t\t\t\t\t\t$counter1 = count($messages) + 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$counter1++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($exists === false)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$position = count($messages);\n\t\t\t\t\t\t\t$messages[$position][\"command\"] = $new_command;\n\t\t\t\t\t\t\t$messages[$position][\"message\"] = $new_message;\n\t\t\t\t\t\t\t//Add to MySQL\n\t\t\t\t\t\t\tmysql_pu_addmessage($new_command, $new_message);\n\t\t\t\t\t\t\t//Inform the channel\n\t\t\t\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $pickupchannel, \"\\x0302,00New message successfully added: !\".$new_command);\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$messages[$exists][\"message\"] = $new_message;\n\t\t\t\t\t\t\t//Update on MySQL\n\t\t\t\t\t\t\tmysql_pu_updatemessage($new_command, $new_message);\n\t\t\t\t\t\t\t//Inform the channel\n\t\t\t\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $pickupchannel, \"\\x0302,00Existing message successfully updated: !\".$new_command);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//Change input so the new command will be displayed\n\t\t\t\t\t\t$command[0] = $new_command;\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\t\t\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $pickupchannel, \"\\x0302,00No Message was entered\");\n\t\t\t\t\t}\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $pickupchannel, \"\\x0302,00No command was entered\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Check for delete message command\n\t\tif($command[0] == \"delmessage\")\n\t\t{\n\t\t\t//Check if issuer was an admin\n\t\t\tif($users->is_admin($nick))\n\t\t\t{\n\t\t\t\t$old_command = strtolower($command[1]);\n\n\t\t\t\t//Check if it exists\n\t\t\t\t$counter1 = 0;\n\t\t\t\t$exists = false;\n\t\t\t\twhile($counter1 < count($messages))\n\t\t\t\t{\n\t\t\t\t\tif($messages[$counter1][\"command\"] == $old_command)\n\t\t\t\t\t{\n\t\t\t\t\t\t$exists = $counter1;\n\t\t\t\t\t\t$counter1 = count($messages) + 1;\n\t\t\t\t\t}\n\t\t\t\t\t$counter1++;\n\t\t\t\t}\n\n\t\t\t\tif($exists === false)\n\t\t\t\t{\n\t\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $pickupchannel, \"\\x0302,00No such message exists: !\".$old_command);\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\t//Remove from the messages list\n\t\t\t\t\t$messages[$exists][\"command\"] = \"\";\n\t\t\t\t\t$messages[$exists][\"message\"] = \"\";\n\n\t\t\t\t\t//Check if the array should be re-oredered\n\t\t\t\t\t$counter2 = $exists + 1;\n\t\t\t\t\t$messages_size = count($messages);\n\t\t\t\t\tif($counter2 < $messages_size)\n\t\t\t\t\t{\n\t\t\t\t\t\t$counter3 = $exists;\n\t\t\t\t\t\twhile($counter2 < $messages_size)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$messages[$counter3][\"command\"] = $messages[$counter2][\"command\"];\n\t\t\t\t\t\t\t$messages[$counter3][\"message\"] = $messages[$counter2][\"message\"];\n\t\t\t\t\t\t\t$messages[$counter2][\"command\"] = \"\";\n\t\t\t\t\t\t\t$messages[$counter2][\"message\"] = \"\";\n\n\t\t\t\t\t\t\t//Unset $counter2 element if it is the end of the array\n\t\t\t\t\t\t\t$unset = $counter2 + 1;\n\t\t\t\t\t\t\tif(($unset) == $messages_size)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tunset($messages[$counter2]);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//Increment both counters\n\t\t\t\t\t\t\t$counter2++;\n\t\t\t\t\t\t\t$counter3++;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\t\t\t\t\t\t//Unset current position\n\t\t\t\t\t\tunset($messages[$exists]);\n\t\t\t\t\t}\n\t\t\t\t\t//Remove in MySQL\n\t\t\t\t\tmysql_pu_delmessage($old_command);\n\n\t\t\t\t\t//Inform the channel\n\t\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $pickupchannel, \"\\x0302,00Successfully deleted message: !\".$old_command);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t////////////////////////////////////////////////\n\t\t//This functionality has now been replaced by MessageBot (messagebot.php)\n\t\t\n\t\t//!skill command to let players see their skill rating in the bot\n\t\t/*if(strtolower($command[0]) == \"skill\")\n\t\t{\n\t\t\tif($command[1] == \"\")\n\t\t\t{\n\t\t\t\t$user = $nick;\n\t\t\t\t$user = $users->nicktoqauth($nick);\n\t\t\t} else\n\t\t\t{\n\t\t\t\tif($users->nicktoqauth($command[1]) != false)\n\t\t\t\t{\n\t\t\t\t\t$user = $users->nicktoqauth($command[1]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Get the players skill as each class\n\t\t\t$scout = $users->Get_Skill($user, \"scout\");\n\t\t\t$demo = $users->get_skill($user, \"demo\");\n\t\t\t$soldier = $users->get_skill($user, \"soldier\");\n\t\t\t$medic = $users->get_skill($user, \"medic\");\n\t\t\t\n\t\t\t//Create output message\n\t\t\t$output = \"\\x0302,00\\x02Skill:\\x02 \" . $users->qauthtonick($user) . \" || Scout: \".$scout.\" / Demo: \".$demo.\" / Soldier: \".$soldier.\" / Medic: \".$medic;\n\t\t\t\n\t\t\t//Check spam class\n\t\t\tif($skillstack->trigger($user) == true)\n\t\t\t{\n\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $data->channel, $output);\n\t\t\t}\n\t\t}*/\n\t\t\n\t\tif(strtolower($command[0]) == \"matches\")\n\t\t{\n\t\t\t//Look up match info from web server\n\t\t\t$stats = file_get_contents(\"http://pickup.pixelgaming.eu/dynamic.php?job=stats\");\n\t\t\t$stats = explode(\":\", $stats);\n\t\t\t$stats = $stats[0];\n\t\t\t\n\t\t\t//Generate output\n\t\t\t$output = \"\\x0302,00\" . $stats . \" matches have been played since 8th February 2011\";\n\t\t\t\n\t\t\t//Check messageflood\n\t\t\tif((time() - $messageflood['matches']) > 20)\n\t\t\t{\n\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $data->channel, $output);\n\t\t\t}\n\t\t\t\n\t\t\t$messageflood['matches'] = time();\n\t\t}\n\t\t\n\t\tif(strtolower($command[0]) == \"players\")\n\t\t{\n\t\t\t//Look up match info from web server\n\t\t\t$stats = file_get_contents(\"http://pickup.pixelgaming.eu/dynamic.php?job=stats\");\n\t\t\t$stats = explode(\":\", $stats);\n\t\t\t$stats = $stats[1];\n\t\t\t\n\t\t\t//Generate output\n\t\t\t$output = \"\\x0302,00There are currently \" . $stats . \" players invited to this channel\";\n\t\t\t\n\t\t\t//Check messageflood\n\t\t\tif((time() - $messageflood['players']) > 20)\n\t\t\t{\n\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $data->channel, $output);\n\t\t\t}\n\t\t\t\n\t\t\t$messageflood['players'] = time();\n\t\t}\n\n\t\t//Change command name for some commonly used commands\n\t\tswitch($command[0])\n\t\t{\n\t\t\tcase \"mum\": case \"voice\": case \"vent\": case \"ventrilo\": case \"ventrillo\":\n\t\t\t\t$command[0] = \"mumble\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"req\": case \"reqs\": case \"requis\": case \"requi\": case \"requirements\":\n\t\t\t\t$command[0] = \"requirements\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"rule\": case \"rul\": case \"ruls\":\n\t\t\t\t$command[0] = \"rules\";\n\t\t\t\tbreak;\n\t\t}\n\n\t\t//Check message array and display if it matches\n\t\t/*$counter = 0;\n\t\twhile($counter < count($messages))\n\t\t{\n\t\t\tif($messages[$counter][\"command\"] == $command[0])\n\t\t\t{\n\t\t\t\t//Check messages anti flood\n\t\t\t\tif((time() - $messageflood[$command[0]]) > 15)\n\t\t\t\t{\n\t\t\t\t\t$irc->message(SMARTIRC_TYPE_CHANNEL, $data->channel, \"\\x0302,00\".ucfirst($command[0]).\": \".$messages[$counter][\"message\"]);\n\t\t\t\t\t$messageflood[$command[0]] = time();\n\t\t\t\t}\n\t\t\t}\n\t\t\t$counter++;\n\t\t}*/\n\t\t////////////////////////////////////////////////\n\t\t//This functionality has now been replaced by MessageBot (messagebot.php)\n\t}", "public function info($message, array $context = [])\n {\n }", "public function actionInfo()\n {\n return $this->render('info');\n }", "public function info($message)\n {\n $this->log($message, self::INFO);\n }", "function setInfo($info) {\n\t\t\t$this->updateResponse('info', $info);\n\t\t}", "public function info(string $message, array $extra_data = []);", "public static function info() {\n\t\t# Get arguments to this function:\n\t\t$args = func_get_args();\n\n\t\t# Add message to log:\n\t\treturn self::add(LOG_INFO, $args);\n\t}", "public abstract function showInfo();", "public function info($message = null, $newlines = 1, $level = Shell::NORMAL) {\n\t\t$this->out('<info>' . $message . '</info>', $newlines, $level);\n\t}", "public function info($title, $message)\n\t{\n\t\treturn $this->create($title, $message, 'info');\n\t}", "public function info()\n {\n $this->isUser();\n\n $this->data['noCabinetOrAdmin'] = true;\n\n $userModel = new UserModel();\n\n $userInfo = $userModel->getUserByEmail(Session::get('login'));\n\n $this->data['info'] = $userInfo;\n\n $this->render('info');\n }", "public static function info($message)\n {\n static::_log(self::INFO, $message);\n }", "function sf_info($data, $force = false, $block_header_on_echo = false)\n {\n IOFunctions::out(\n LogLevel::INFO,\n $data,\n $force,\n $block_header_on_echo\n );\n }", "protected function info()\n\t\t{\n\t\t}", "public function info($message, array $context = [])\n {\n $this->out($message, $context, 'cyan');\n }", "public static function info($string)\n\t{\n\t\tif(defined(\"LOG_STDOUT\"))\n\t\t{\n\t\t\techo \"INFO: \" . $string . \"\\n\";\n\t\t\treturn;\n\t\t}\n\n\t\t// mail(\"[email protected]\", \"Log Info\", $string);\n\t}", "public function infoAction()\r\n\t{\r\n\t // load the helper and the registry\r\n\t $helper = Mage::helper('manager');\r\n\t $registry = $helper->getRegistry();\r\n // load the ID of the package to initialize and the package itself\r\n\t $id = $this->getRequest()->getParam('id');\r\n\t $package = Mage::getModel('manager/package');\r\n\t $package->load($id);\r\n // load the package information packagename and the channel's URL\r\n $info = $this->_packageInfo(\r\n $package->getName(),\r\n $package->getChannel()->getUrl()\r\n );\r\n // attach a message to the session\r\n\t\tMage::getSingleton('adminhtml/session')->addSuccess(\r\n\t\t Mage::helper('manager')->__(\r\n\t\t var_export($info, true)\r\n\t\t )\r\n\t\t);\r\n // redirect to the licence overview\r\n $this->_redirect('*/*/');\r\n\t}", "public static function info($message)\n {\n NostoHelperLogger::log($message, self::SEVERITY_INFO);\n }", "public function info()\n {\n }", "public function info($message)\n {\n return $this->render($message, 'info');\n }", "public function info();", "public function info();", "public function info($message): void\n {\n $this->log(__FUNCTION__, $message);\n }", "protected function outputInfoMessage(string $message)\n {\n $this->outputLine(\"<fg=cyan>$message</>\");\n }", "public function info($message): void\n\t{\n\t\t$this->log($message);\n\t}", "private function _note($info){\n $confirm = array(\n 'class' => 'alert-info',\n 'head' => '提示:',\n 'body' => $info\n );\n $this->assign('confirmInfo',$confirm);\n }", "public function show(Info $info)\n {\n //\n }", "public function show(Info $info)\n {\n //\n }", "public function toInfo() {\n\n\t\t# Set message type\n\t\t$type = \"error\";\n\t\tif($this->type == \"success\" || $this->type == \"notice\")\n\t\t\t$type = $this->type;\n\n\t\t# Add message\n\t\tInfo::add($this->getMessage(), $type);\n\n\t}", "public function info(string $message, $data = array()): bool;", "public function add_info($info)\r\n { \r\n }", "protected function info(string $message)\n {\n if (FLOW_SAPITYPE === 'CLI') {\n echo \"\\033[0;36m\" . $message . \"\\033[0m\" . PHP_EOL;\n }\n }", "public function infoAction() {\n $form = new Yourdelivery_Form_Testing_Specialresponse();\n if ($form->isValid($this->getRequest()->getPost())) {\n $email = new Yourdelivery_Sender_Email_Template('testing_cms_response');\n $email->setSubject('Testing-CMS-Special-Response');\n $email->assign('msg', $form->getValue('response'));\n $email->assign('tester', $form->getValue('executor'));\n $email->addTo('[email protected]');\n $email->addTo('[email protected]');\n if ($form->imagePath->isUploaded()) {\n $storage = new Default_File_Storage();\n $storage->setStorage(APPLICATION_PATH . '/../storage/');\n $storage->setSubFolder('testing/tmp/');\n $imageStorageName = time() . '_' . $form->getValue('imagePath');\n $storage->store($imageStorageName, file_get_contents($form->imagePath->getFileName()));\n $email->attachFile(APPLICATION_PATH . '/../storage/testing/tmp/' . $imageStorageName, \"image/png\", $form->getValue('imagePath'));\n unlink(APPLICATION_PATH . '/../storage/testing/tmp/' . $imageStorageName);\n }\n\n if ($email->send()) {\n $this->success('Email has been send.');\n } else {\n $this->error('Email failed.');\n }\n } else {\n $this->error($form->getMessages());\n }\n $this->_redirect('/testing_cms/');\n }", "function update_info()\n {\n }", "function log_info( $msg ){\n self::system_log( $msg, 'INFO' );\n }", "protected function doActionSendTracking()\n {\n \\XLite\\Core\\Mailer::sendOrderTrackingInformationCustomer($this->getOrder());\n\n \\XLite\\Core\\TopMessage::addInfo('Tracking information has been sent');\n }", "public function info(string $message, array $context = []){\n if($this->logger !== null){\n $this->logger->info($message, $context);\n }\n\n if($this->messagePanel !== null){\n $this->messagePanel->addMessage($message, LogLevel::INFO);\n }\n }", "public function info($message, array $context = [])\n {\n $this->log('info', $message, $context);\n }", "public function setInfo( $info )\n {\n $this->data['info'] = $info;\n }", "public function _info($info){\r\n return array('title'=>$info->full, 'block'=>false);\r\n }", "public function infoAction() {\n\t\tob_clean();\n\t\tif(ini_get('zlib.output_compression')) {\n\t\t\theader(\"Content-encoding: gzip\");\t\t\n\t\t}\n\n\t\theader(\"Content-type: text/xml\");\t\t\n\t\techo '<?xml version=\"1.0\" encoding=\"UTF-8\"?><info>';\n\t\techo self::toXmlTag('version', $this->getExtensionVersion());\n\t\t$access = $this->verifyAccess(true);\n\t\techo self::toXmlTag('access', $access ? 'true' : 'false');\n\t\techo self::toXmlTag('clientIp', self::getClientIp());\n\t\tif($access) {\n\t\t\t$attributes = Mage::getResourceModel('catalog/product_attribute_collection')->getItems();\n\t\t\techo '<product_attributes>';\n\t\t\tforeach ($attributes as $attribute){\n\t\t\t\techo '<attribute>';\n\t\t\t \techo self::toXmlTag('attribute_code', $attribute->getAttributeCode());\n\t\t\t \techo self::toXmlTag('attribute_name', $attribute->getFrontendLabel());\n\t\t\t echo '</attribute>';\n\t\t\t}\n\t\t\techo '</product_attributes>';\n\t\t} \n\n\t\techo '</info>';\n\t\texit;\n\t}", "function sendInfoMail()\t{\n\t\tif ($this->conf['infomail'] && $this->conf['email.']['field'])\t{\n\t\t\t$recipient='';\n\t\t\t$emailfields=t3lib_div::trimexplode(',',$this->conf['email.']['field']);\t\t\t\t\n\t\t\tforeach($emailfields as $ef) {\n\t\t\t\t$recipient.=$recipient?$Arr[$this->conf['email.']['field']].';'.$recipient:$Arr[$this->conf['email.']['field']];\n\t\t\t}\n\t\t\t$fetch = t3lib_div::_GP('fetch');\n\t\t\tif ($fetch)\t{\n\t\t\t\t\t// Getting infomail config.\n\t\t\t\t$key= trim(t3lib_div::_GP('key'));\n\t\t\t\tif (is_array($this->conf['infomail.'][$key.'.']))\t\t{\n\t\t\t\t\t$config = $this->conf['infomail.'][$key.'.'];\n\t\t\t\t} else {\n\t\t\t\t\t$config = $this->conf['infomail.']['default.'];\n\t\t\t\t}\n\t\t\t\t$pidLock='';\n\t\t\t\tif (!$config['dontLockPid'] && $this->thePid)\t{\n\t\t\t\t\t$pidLock='AND pid IN ('.$this->thePid.') ';\n\t\t\t\t}\n\n\t\t\t\t\t// Getting records\n\t\t\t\tif (t3lib_div::testInt($fetch))\t{\n\t\t\t\t\t$DBrows = $GLOBALS['TSFE']->sys_page->getRecordsByField($this->theTable,$this->conf['uidField'],$fetch,$pidLock,'','','1');\n\t\t\t\t} elseif ($fetch) {\t// $this->conf['email.']['field'] must be a valid field in the table!\n\t\t\t\t\tforeach($emailfields as $ef) {\n\t\t\t\t\t\tif ($ef) $DBrows = $GLOBALS['TSFE']->sys_page->getRecordsByField($this->theTable,$ef,$fetch,$pidLock,'','','100');\n\t\t\t\t\t\tif (count($DBrows )) break;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Processing records\n\t\t\t\tif (is_array($DBrows))\t{\n\t\t\t\t\t//$recipient = $DBrows[0][$this->conf['email.']['field']];\n\t\t\t\t\tif ($this->conf['evalFunc'])\t{\n\t\t\t\t\t\t$DBrows[0] = $this->userProcess('evalFunc',$DBrows[0]);\n\t\t\t\t\t}\n\t\t\t\t\t$this->compileMail($config['label'], $DBrows, $this->getFeuserMail($DBrows[0],$this->conf), $this->conf['setfixed.']);\n\t\t\t\t} elseif ($this->cObj->checkEmail($fetch)) {\n\t\t\t\t\t$this->sendMail($fetch, '', '',trim($this->cObj->getSubpart($this->templateCode, '###'.$this->emailMarkPrefix.'NORECORD###')));\n\t\t\t\t}\n\n\t\t\t\t$content = $this->metafeeditlib->getPlainTemplate($this->conf,$this->markerArray,'###TEMPLATE_INFOMAIL_SENT###');\n\t\t\t} else {\n\t\t\t\t$content = $this->metafeeditlib->getPlainTemplate($this->conf,$this->markerArray,'###TEMPLATE_INFOMAIL###');\n\t\t\t}\n\t\t} else $content='Error: infomail option is not available or emailField is not setup in TypoScript';\n\t\treturn $content;\n\t}", "public function info($message, array $context = [])\n {\n $this->writeLog(__FUNCTION__, $message, $context);\n }", "public function info($msg, $obj=null) {\n if ($this->logLevel <= Logger::INFO) {\n $this->log(Logger::INFO, $msg, $obj);\n }\n }", "public function info(string $text);", "public static function info($message, array $context = array())\r\n {\r\n self::log(Level::INFO, $message, $context);\r\n }", "function loginfo($level, $tag, $info){\t$this->tracemsg($level, \"$tag($info)\");\n}", "public function info($message, array $context = []) : void\n {\n $this->log(__FUNCTION__, $message, $context);\n }", "public function info($message, $parameters = array()){\n\t\t$this->log($message, $parameters, Customweb_Subscription_Model_Log::LEVEL_INFO);\n\t}", "public function info($message, array $context = array())\n {\n $this->saveLogMessage(LogLevel::INFO, $message, $context);\n }", "public function showConfirmInfo($info,$type){\n if(is_array($info)) $info = implode('<br />',$info);\n switch($type){\n case 1: // note info\n $this->_note($info);\n break;\n case 2: // waring info\n $this->_warning($info);\n break;\n case 3: // error info\n $this->_error($info);\n break;\n case 0:\n default: // success info\n $this->_success($info);\n break;\n }\n }", "public function info($string)\n {\n $this->line($string, 'info');\n }", "public function info() {\n foreach ($this->items as $item) {\n $item->info();\n }\n }", "public function info($msg, $methodName = null) {\r\n if (!empty($methodName)) {\r\n $msg = \"$methodName - $msg\";\r\n }\r\n $this->log(LOG_INFO, $msg);\r\n }", "public function info($message, array $context = array())\n {\n return $this->addRecord(self::INFO, $message, $context);\n }", "public static function info(string $msg): string\n {\n $msg = 'Info: ' . $msg;\n $space = self::tabSpaces($msg);\n $out = static::colorize(str_pad(' ', $space), Color::FG_WHITE, Color::AT_BOLD, Color::BG_BLUE) . PHP_EOL;\n $out .= static::colorize(' ' . $msg . ' ', Color::FG_WHITE, Color::AT_BOLD, Color::BG_BLUE) . PHP_EOL;\n $out .= static::colorize(str_pad(' ', $space), Color::FG_WHITE, Color::AT_BOLD, Color::BG_BLUE) . PHP_EOL;\n\n return $out;\n }", "public static function info($inMessage) {\n\t\tself::getInstance()->log($inMessage, systemLogLevel::INFO);\n\t}", "public function getInfo() {}", "public function getInfo() {}", "function displayInfoMessage($index,$params = array()) {\n\t\tglobal $lang;\n\t\n\t\treturn '<div class=\"alert alert-info\">'.getLang('form_info_'.$index,$params).'</div>';\n\t}", "abstract public function information();", "private function printInfo(string $msg, bool $forceOutput = false): void\n {\n $msg = \"\\e[96m>>> [INFO]: {$msg}\\e[0m\";\n\n if ($forceOutput) {\n print $msg . PHP_EOL;\n } else {\n $this->bufferOutput[] = $msg;\n }\n }", "public function info($message, $method = 'no method given', array $logData = [], $justLog = false);", "public static function info($text)\n {\n \\Yii::$app->getSession()->addFlash('alerts', new Alert($text, 'info'));\n }", "public function aim_set_info($info)\r\n\t{\r\n\t\t$this->core->aim_send_raw('toc_set_info ' . $this->core->aim_encode($info));\r\n\t}", "public function info(): string;", "public function info($message, array $context = array())\n {\n // TODO: Implement info() method.\n self::log(LogLevel::INFO, $message, $context);\n }", "public function info($message, array $context = array())\n {\n $this->log(LogLevel::INFO, $message, $context);\n }", "public function info($message, array $context = array())\n {\n $this->log(LogLevel::INFO, $message, $context);\n }" ]
[ "0.7375641", "0.7306783", "0.72605896", "0.72250557", "0.71504813", "0.69928694", "0.69401044", "0.68801874", "0.68567544", "0.68342227", "0.6824467", "0.67547995", "0.67479974", "0.67441183", "0.6710042", "0.6671017", "0.66673356", "0.66599894", "0.66182464", "0.6610027", "0.66029626", "0.65998644", "0.6556498", "0.6552899", "0.65476227", "0.65344554", "0.65126973", "0.6479605", "0.64715356", "0.6458184", "0.6449927", "0.6434498", "0.6421727", "0.64111847", "0.6405962", "0.64031416", "0.6394872", "0.6391955", "0.63761306", "0.6368533", "0.63446033", "0.6308967", "0.6267198", "0.6261487", "0.625336", "0.62498033", "0.62175184", "0.621093", "0.6181475", "0.6166316", "0.61663043", "0.61460143", "0.61460143", "0.6135741", "0.6129067", "0.611584", "0.60988456", "0.60913736", "0.60913736", "0.6078463", "0.60772073", "0.60763353", "0.6072564", "0.6061712", "0.6053573", "0.6052966", "0.6048878", "0.60362023", "0.6025375", "0.6009142", "0.5999612", "0.599852", "0.59960455", "0.5994398", "0.5989533", "0.59869707", "0.598133", "0.5978611", "0.59753704", "0.59679824", "0.5961222", "0.59581006", "0.59540254", "0.59449714", "0.59435135", "0.5943362", "0.5938105", "0.591809", "0.591647", "0.591647", "0.5908574", "0.5897294", "0.5895845", "0.5883338", "0.588116", "0.58741707", "0.5872703", "0.58716893", "0.5856424", "0.5856424" ]
0.6979454
6
Send a warning message
function warning($message);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function warn()\r\n {\r\n// header('Location: '.$this->warning_url);\r\n $this->send_header($this->warning_url);\r\n exit;\r\n }", "public function warning($message) {}", "public static function warning()\n {\n static::returnCode(static::CODE_WARNING);\n }", "private function _warning($text){\n echo '[# WARNING] ' . $text . PHP_EOL;\n }", "public function warning($msg) {\n $this->writeLine($msg, 'warning');\n }", "public function warning(string $text);", "function warning($message, array $context = array());", "public function warn($msg);", "function display_warning_message($message)\r\n {\r\n Display :: warning_message($message);\r\n }", "public static function warning($message, $context);", "protected function warning()\n {\n return $this->warn(\"You have no commands to run !\");\n }", "public function warning($msg) {\n\t\tif ( $this->level <= self::WARNING && !empty($msg) ) {\n\t\t\t$this->writeLog(\"WARN: \".$msg);\n\t\t}\n\t}", "public function warn($message)\n {\n }", "function atkwarning($txt)\n{\n\tatkdebug($txt,DEBUG_WARNING);\n}", "protected function send_warning_message($msg) {\n \n $this->email->from($this->config->item('contact_mail'), $this->config->item('site_name'));\n $this->email->to($this->config->item('notification_mail'));\n $this->email->subject('Unexpected files on your server');\n $this->email->message($msg);\n $this->email->send();\n \n }", "public static function warning() {\n\t\t# Get arguments to this function:\n\t\t$args = func_get_args();\n\n\t\t# Add message to log:\n\t\treturn self::add(LOG_WARNING, $args);\n\t}", "function raiseWarning ($message)\r\n{\r\n\ttrigger_error ($message, E_USER_WARNING);\r\n}", "public function warning($message, $trance = null)\n {\n $this->write('warning', $message, $trance);\n }", "public static function warning($text = null)\n {\n self::message($text, 'warning');\n }", "public function testWarning(\\unittest\\TestWarning $warning) {\n $this->status= false;\n $this->stats['warned']++;\n $this->writeFailure($warning);\n }", "public function setWarning($text = ''){\n if(!empty($text)){\n $this->addVar('WARNING', $text);\n }\n }", "public static function warningHandler()\n {\n }", "function warning() {\n\t\t\n\t\t\tglobal $blog_id; //get the current blog id\n\t\t\t\n\t\t\tif ( ( is_multisite() && ( $blog_id != 1 || ! current_user_can( 'manage_network_options' ) ) ) || ! current_user_can( 'activate_plugins' ) ) { //only display to network admin if in multisite\n\t\t\t\treturn;\n\t\t\t}\n\t\t\n\t\t\t//if there is a warning to display\n\t\t\tif ( get_option( 'bwps_intrusion_warning' ) == 1 ) {\n\t\t\t\n\t\t\t\tif ( ! function_exists( 'bit51_filecheck_warning' ) ) {\n\t\t\t\n\t\t\t\t\tfunction bit51_filecheck_warning(){\n\t\t\t\t\n\t\t\t\t\t\tglobal $plugname;\n\t\t\t\t\t\tglobal $plughook;\n\t\t\t\t\t\tglobal $plugopts;\n\t\t\t\t\t\t$adminurl = is_multisite() ? admin_url() . 'network/' : admin_url();\n\t\t\t\t\t\n\t\t\t\t\t echo '<div class=\"error\">\n\t\t\t\t <p>' . __( 'Better WP Security has noticed a change to some files in your WordPress installation. Please review the logs to make sure your system has not been compromised.', $plughook ) . '</p> <p><input type=\"button\" class=\"button \" value=\"' . __( 'View Logs', $plughook ) . '\" onclick=\"document.location.href=\\'?bit51_view_logs=yes&_wpnonce=' . wp_create_nonce('bit51-nag') . '\\';\"> <input type=\"button\" class=\"button \" value=\"' . __('Dismiss Warning', $plughook) . '\" onclick=\"document.location.href=\\'' . $adminurl . 'admin.php?bit51_dismiss_warning=yes&_wpnonce=' . wp_create_nonce( 'bit51-nag' ) . '\\';\"></p>\n\t\t\t\t\t </div>';\n\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//put the warning in the right spot\n\t\t\t\tif ( is_multisite() ) {\n\t\t\t\t\tadd_action( 'network_admin_notices', 'bit51_filecheck_warning' ); //register notification\n\t\t\t\t} else {\n\t\t\t\t\tadd_action( 'admin_notices', 'bit51_filecheck_warning' ); //register notification\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//if they've clicked a button hide the notice\n\t\t\tif ( ( isset( $_GET['bit51_view_logs'] ) || isset( $_GET['bit51_dismiss_warning'] ) ) && wp_verify_nonce( $_REQUEST['_wpnonce'], 'bit51-nag' ) ) {\n\t\t\t\t\n\t\t\t\t//Get the options\n\t\t\t\tif ( is_multisite() ) {\n\t\t\t\t\t\t\n\t\t\t\t\tswitch_to_blog( 1 );\n\t\t\t\t\t\t\n\t\t\t\t\tdelete_option( 'bwps_intrusion_warning' );\n\t\t\t\t\t\t\n\t\t\t\t\trestore_current_blog();\n\t\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t\t\n\t\t\t\t\tdelete_option( 'bwps_intrusion_warning' );\n\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//take them back to where they started\n\t\t\t\tif ( isset( $_GET['bit51_dismiss_warning'] ) ) {\t\t\t\t\n\t\t\t\t\twp_redirect( $_SERVER['HTTP_REFERER'], 302 );\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//take them to the correct logs page\n\t\t\t\tif ( isset( $_GET['bit51_view_logs'] ) ) {\n\t\t\t\t\tif ( is_multisite() ) {\n\t\t\t\t\t\twp_redirect( admin_url() . 'network/admin.php?page=better-wp-security-logs#file-change', 302 );\n\t\t\t\t\t} else {\n\t\t\t\t\t\twp_redirect( admin_url() . 'admin.php?page=better-wp-security-logs#file-change', 302 );\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}", "public function warning($message)\r\n {\r\n $this->log($message, SF_LOG_WARNING);\r\n }", "function Print_Warning($message)\r\n{\r\n print (\"<b>\" . $message . \"</b>\\n<br>\");\r\n}", "public function showWarning($msg)\n {\n print \"\\tWARNING: \" . $msg . \"\\n\";\n }", "public function showWarnings(): void\n {\n $this->executeLog('show warnings');\n }", "private function _save_warning()\n\t{\n\t\tglobal $txt, $context, $cur_profile;\n\n\t\tif (isset($this->_req->post->save))\n\t\t{\n\t\t\t// Security is good here.\n\t\t\tcheckSession('post');\n\n\t\t\t// There must be a reason, and use of flowery words is allowed.\n\t\t\t$warn_reason = $this->_req->getPost('warn_reason', 'trim|\\\\ElkArte\\\\Util::htmlspecialchars', '');\n\t\t\tif ($warn_reason === '' && !$context['user']['is_owner'])\n\t\t\t{\n\t\t\t\t$this->_issueErrors[] = 'warning_no_reason';\n\t\t\t}\n\n\t\t\t// If the value hasn't changed it's either no JS or a real no change (Which this will pass)\n\t\t\tif ($warn_reason === 'SAME')\n\t\t\t{\n\t\t\t\t$this->_req->post->warning_level = $this->_req->post->warning_level_nojs;\n\t\t\t}\n\n\t\t\t// Set and contain the level and level changes\n\t\t\t$warning_level = (int) $this->_req->post->warning_level;\n\t\t\t$warning_level = max(0, min(100, $warning_level));\n\n\t\t\tif ($warning_level < $context['min_allowed'])\n\t\t\t{\n\t\t\t\t$warning_level = $context['min_allowed'];\n\t\t\t}\n\t\t\telseif ($warning_level > $context['max_allowed'])\n\t\t\t{\n\t\t\t\t$warning_level = $context['max_allowed'];\n\t\t\t}\n\n\t\t\t// We need this to log moderation notices\n\t\t\trequire_once(SUBSDIR . '/Moderation.subs.php');\n\n\t\t\t// Do we actually have to issue them with a PM?\n\t\t\t$id_notice = $this->_issue_warning_pm();\n\n\t\t\t// What have we changed?\n\t\t\t$level_change = $warning_level - $cur_profile['warning'];\n\n\t\t\t// No errors? Proceed! Only log if you're not the owner.\n\t\t\tif (empty($this->_issueErrors))\n\t\t\t{\n\t\t\t\t// Log what we've done!\n\t\t\t\tif (!$context['user']['is_owner'])\n\t\t\t\t{\n\t\t\t\t\tlogWarning($this->_memID, $cur_profile['real_name'], $id_notice, $level_change, $warn_reason);\n\t\t\t\t}\n\n\t\t\t\t// Make the change.\n\t\t\t\trequire_once(SUBSDIR . '/Members.subs.php');\n\t\t\t\tupdateMemberData($this->_memID, array('warning' => $warning_level));\n\n\t\t\t\t// Leave a lovely message.\n\t\t\t\t$context['profile_updated'] = $context['user']['is_owner'] ? $txt['profile_updated_own'] : $txt['profile_warning_success'];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// Try to remember some bits.\n\t\t\t\t$context['warning_data'] = array(\n\t\t\t\t\t'reason' => $warn_reason,\n\t\t\t\t\t'notify' => !empty($this->_req->post->warn_notify),\n\t\t\t\t\t'notify_subject' => $this->_req->getPost('warn_sub', 'trim', ''),\n\t\t\t\t\t'notify_body' => $this->_req->getPost('warn_body', 'trim', ''),\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// Show the new improved warning level.\n\t\t\t$context['member']['warning'] = $warning_level;\n\t\t}\n\t}", "private function _issue_warning_pm()\n\t{\n\t\tglobal $context;\n\n\t\t$id_notice = 0;\n\t\tif (!empty($this->_req->post->warn_notify) && empty($this->_issueErrors))\n\t\t{\n\t\t\t$warn_sub = $this->_req->getPost('warn_sub', 'trim', '');\n\t\t\t$warn_body = $this->_req->getPost('warn_body', 'trim', '');\n\n\t\t\tif (empty($warn_sub) || empty($warn_body))\n\t\t\t{\n\t\t\t\t$this->_issueErrors[] = 'warning_notify_blank';\n\t\t\t}\n\t\t\t// Send the PM?\n\t\t\telse\n\t\t\t{\n\t\t\t\trequire_once(SUBSDIR . '/PersonalMessage.subs.php');\n\t\t\t\t$from = array(\n\t\t\t\t\t'id' => 0,\n\t\t\t\t\t'name' => $context['forum_name'],\n\t\t\t\t\t'username' => $context['forum_name'],\n\t\t\t\t);\n\t\t\t\tsendpm(array('to' => array($this->_memID), 'bcc' => array()), $warn_sub, $warn_body, false, $from);\n\n\t\t\t\t// Log the notice.\n\t\t\t\t$id_notice = logWarningNotice($warn_sub, $warn_body);\n\t\t\t}\n\t\t}\n\n\t\treturn $id_notice;\n\t}", "public function warning($message)\n {\n $this->message($message, 'warning');\n }", "public function flashWarning($msg)\r\n {\r\n $this->flash($msg, 'warning');\r\n }", "public function warning( $message ) {\n\n \\WP_CLI::warning( $message );\n }", "static function warningHandler($errno, $errstr, $errfile, $errline, $errcontext) {\n\t if(error_reporting() == 0) return;\n\t\tif(self::$send_warnings_to) self::emailError(self::$send_warnings_to, $errno, $errstr, $errfile, $errline, $errcontext, \"Warning\");\n\t\tself::log_error_if_necessary( $errno, $errstr, $errfile, $errline, $errcontext, \"Warning\");\n\n\t\tif(Director::isDev()) {\n\t\t self::showError($errno, $errstr, $errfile, $errline, $errcontext, \"Warning\");\n\t\t}\n\t}", "private function _warning($info){\n $confirm = array(\n 'class' => 'alert-warning',\n 'head' => '警告!',\n 'body' => $info\n );\n $this->assign('confirmInfo',$confirm);\n }", "public function warn(string $text)\n {\n $this->message(\"warn\", $text);\n }", "protected function warning()\n\t{\n\t\t\\IPS\\Output::i()->output = \\IPS\\Theme::i()->getTemplate( 'store' )->productOptionsChanged(\n\t\t\tnew \\IPS\\Patterns\\ActiveRecordIterator(\n\t\t\t\t\\IPS\\Db::i()->select( '*', 'nexus_packages', \\IPS\\Db::i()->in( 'p_id', explode( ',', \\IPS\\Request::i()->ids ) ) ),\n\t\t\t\t'IPS\\nexus\\Package'\n\t\t\t)\n\t\t);\n\t}", "public function warning($message)\n {\n $this->log($message, self::WARNING);\n }", "public function warning($message, array $context = array())\n {\n }", "public function warning($message, array $context = array())\n {\n }", "function sf_warn($data, $force = false, $block_header_on_echo = false)\n {\n IOFunctions::out(\n LogLevel::WARN,\n $data,\n $force,\n $block_header_on_echo\n );\n }", "public function warning(string $message)\n {\n $this->message('warning', $message);\n }", "public function warning($message) {\n\t\t\t$this->log('warning', $message);\n\t\t}", "public function test_squad_server_admin_warn()\n {\n $this->assertTrue($this->btwServer->adminWarn('Test', 'Hello World!'));\n }", "private static function warn(string $message): void\n {\n echo \"\\033[43m\\033[30m\" . $message . \"\\033[0m\" . PHP_EOL;\n }", "public function warning($message)\n {\n $flash = $this->flashtype['warning'];\n $flash['message'] = $message;\n $this->add($flash);\n }", "public function warn(string $message, bool $deprecation = false);", "public static function warning($inMessage) {\n\t\tself::getInstance()->log($inMessage, systemLogLevel::WARNING);\n\t}", "function logWarning (string $msg): void {\n\tlogString('('.$_SERVER['REMOTE_ADDR'].') ('.date('Y-m-d H:i:s').') [Warning] '.$msg);\n}", "function clear_warning_message()\n {\n $this->_warning_message = \"\";\n }", "public function test_squad_server_admin_warn()\n {\n $this->assertTrue($this->postScriptumServer->adminWarn('Test', 'Hello World!'));\n }", "protected function warning(string $message)\n {\n if (FLOW_SAPITYPE === 'CLI') {\n echo \"\\033[33m\" . $message . \"\\033[0m\" . PHP_EOL;\n }\n }", "function FMWarning($message)\n\t{\n\t\t$trace = \"\";\n\n\t\tforeach ($this->FMDebug as $level) {\n\t\t\t$trace .= \" > \" . $level;\n\t\t}\n\n\t\terror_log (\"freemoviecompiler warning: $trace --> $message\");\n\t}", "private function printWarn(string $msg, bool $forceOutput = false): void\n {\n $msg = \"\\e[93m>>> [WARN]: {$msg}\\e[0m\";\n\n if ($forceOutput) {\n print $msg . PHP_EOL;\n } else {\n $this->bufferOutput[] = $msg;\n }\n }", "public function action_issuewarning()\n\t{\n\t\tglobal $txt, $scripturl, $modSettings, $mbname, $context, $cur_profile;\n\n\t\t// Make sure the sub-template is set...\n\t\ttheme()->getTemplates()->load('ProfileAccount');\n\t\t$context['sub_template'] = 'issueWarning';\n\n\t\t// We need this because of template_load_warning_variables\n\t\ttheme()->getTemplates()->load('Profile');\n\t\tloadJavascriptFile('profile.js');\n\n\t\t// jQuery-UI FTW!\n\t\t$modSettings['jquery_include_ui'] = true;\n\t\tloadCSSFile('jquery.ui.slider.css');\n\t\tloadCSSFile('jquery.ui.theme.min.css');\n\n\t\t// Get all the actual settings.\n\t\tlist ($modSettings['warning_enable'], $modSettings['user_limit']) = explode(',', $modSettings['warning_settings']);\n\n\t\t// Doesn't hurt to be overly cautious.\n\t\tif (empty($modSettings['warning_enable'])\n\t\t\t|| ($context['user']['is_owner'] && !$cur_profile['warning'])\n\t\t\t|| !allowedTo('issue_warning'))\n\t\t{\n\t\t\tthrow new Exception('no_access', false);\n\t\t}\n\n\t\t// Get the base (errors related) stuff done.\n\t\tTxt::load('Errors');\n\t\t$context['custom_error_title'] = $txt['profile_warning_errors_occurred'];\n\n\t\t// Make sure things which are disabled stay disabled.\n\t\t$modSettings['warning_watch'] = !empty($modSettings['warning_watch']) ? $modSettings['warning_watch'] : 110;\n\t\t$modSettings['warning_moderate'] = !empty($modSettings['warning_moderate']) && !empty($modSettings['postmod_active']) ? $modSettings['warning_moderate'] : 110;\n\t\t$modSettings['warning_mute'] = !empty($modSettings['warning_mute']) ? $modSettings['warning_mute'] : 110;\n\n\t\t$context['warning_limit'] = allowedTo('admin_forum') ? 0 : $modSettings['user_limit'];\n\t\t$context['member']['warning'] = $cur_profile['warning'];\n\t\t$context['member']['name'] = $cur_profile['real_name'];\n\n\t\t// What are the limits we can apply?\n\t\t$context['min_allowed'] = 0;\n\t\t$context['max_allowed'] = 100;\n\t\tif ($context['warning_limit'] > 0)\n\t\t{\n\t\t\trequire_once(SUBSDIR . '/Moderation.subs.php');\n\t\t\t$current_applied = warningDailyLimit($this->_memID);\n\n\t\t\t$context['min_allowed'] = max(0, $cur_profile['warning'] - $current_applied - $context['warning_limit']);\n\t\t\t$context['max_allowed'] = min(100, $cur_profile['warning'] - $current_applied + $context['warning_limit']);\n\t\t}\n\n\t\t// Defaults.\n\t\t$context['warning_data'] = array(\n\t\t\t'reason' => '',\n\t\t\t'notify' => '',\n\t\t\t'notify_subject' => '',\n\t\t\t'notify_body' => '',\n\t\t);\n\n\t\t// Are we saving?\n\t\t$this->_save_warning();\n\n\t\t// Perhaps taking a look first? Good idea that one.\n\t\t$this->_preview_warning();\n\n\t\t// If we have errors, lets set them for the template\n\t\tif (!empty($this->_issueErrors))\n\t\t{\n\t\t\t// Fill in the suite of errors.\n\t\t\t$context['post_errors'] = array();\n\t\t\tforeach ($this->_issueErrors as $error)\n\t\t\t{\n\t\t\t\t$context['post_errors'][] = $txt[$error];\n\t\t\t}\n\t\t}\n\n\t\t$context['page_title'] = $txt['profile_issue_warning'];\n\n\t\t// Let's use a generic list to get all the current warnings\n\t\trequire_once(SUBSDIR . '/Profile.subs.php');\n\n\t\t// Work our the various levels.\n\t\t$context['level_effects'] = array(\n\t\t\t0 => $txt['profile_warning_effect_none'],\n\t\t);\n\n\t\tforeach (array('watch', 'moderate', 'mute') as $status)\n\t\t{\n\t\t\tif ($modSettings['warning_' . $status] != 110)\n\t\t\t{\n\t\t\t\t$context['level_effects'][$modSettings['warning_' . $status]] = $txt['profile_warning_effect_' . $status];\n\t\t\t}\n\t\t}\n\t\t$context['current_level'] = 0;\n\n\t\tforeach ($context['level_effects'] as $limit => $dummy)\n\t\t{\n\t\t\tif ($context['member']['warning'] >= $limit)\n\t\t\t{\n\t\t\t\t$context['current_level'] = $limit;\n\t\t\t}\n\t\t}\n\n\t\t// Build a listing to view the previous warnings for this user\n\t\t$this->_create_issued_warnings_list();\n\n\t\t$warning_for_message = $this->_req->getQuery('msg', 'intval', false);\n\t\t$warned_message_subject = '';\n\n\t\t// Are they warning because of a message?\n\t\tif (!empty($warning_for_message) && $warning_for_message > 0)\n\t\t{\n\t\t\trequire_once(SUBSDIR . '/Messages.subs.php');\n\t\t\t$message = basicMessageInfo($warning_for_message);\n\n\t\t\tif (!empty($message))\n\t\t\t{\n\t\t\t\t$warned_message_subject = $message['subject'];\n\t\t\t}\n\t\t}\n\n\t\trequire_once(SUBSDIR . '/Maillist.subs.php');\n\n\t\t// Any custom templates?\n\t\t$context['notification_templates'] = array();\n\t\t$notification_templates = maillist_templates('warntpl');\n\n\t\tforeach ($notification_templates as $row)\n\t\t{\n\t\t\t// If we're not warning for a message skip any that are.\n\t\t\tif ($warning_for_message === false && strpos($row['body'], '{MESSAGE}') !== false)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$context['notification_templates'][] = array(\n\t\t\t\t'title' => $row['title'],\n\t\t\t\t'body' => $row['body'],\n\t\t\t);\n\t\t}\n\n\t\t// Setup the \"default\" templates.\n\t\tforeach (array('spamming', 'offence', 'insulting') as $type)\n\t\t{\n\t\t\t$context['notification_templates'][] = array(\n\t\t\t\t'title' => $txt['profile_warning_notify_title_' . $type],\n\t\t\t\t'body' => sprintf($txt['profile_warning_notify_template_outline' . (!empty($warning_for_message) ? '_post' : '')], $txt['profile_warning_notify_for_' . $type]),\n\t\t\t);\n\t\t}\n\n\t\t// Replace all the common variables in the templates.\n\t\tforeach ($context['notification_templates'] as $k => $name)\n\t\t{\n\t\t\t$context['notification_templates'][$k]['body'] = strtr($name['body'],\n\t\t\t\tarray(\n\t\t\t\t\t'{MEMBER}' => un_htmlspecialchars($context['member']['name']),\n\t\t\t\t\t'{MESSAGE}' => '[url=' . getUrl('action', ['msg' => $warning_for_message]) . ']' . un_htmlspecialchars($warned_message_subject) . '[/url]',\n\t\t\t\t\t'{SCRIPTURL}' => $scripturl,\n\t\t\t\t\t'{FORUMNAME}' => $mbname,\n\t\t\t\t\t'{REGARDS}' => replaceBasicActionUrl($txt['regards_team'])\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t}", "public function testWarningMessage()\n {\n $this->throwWarningException();\n\n // test if code actually gets here\n $this->assertTrue(true);\n }", "function worldlogger_admin_warnings() {\n\tglobal $wpcom_api_key;\n\tif ( !get_option('worldlogger_hash') && !isset($_POST['submit']) ) {\n\t\tfunction worldlogger_warning() {\n\t\t\techo \"\n\t\t\t<div id='worldlogger-warning' class='updated fade'><p><strong>\".__('Worldlogger is almost ready.').\"</strong> \".sprintf('You must <a href=\"%1$s\">enter a Worldlogger API key</a> for it to work.', \"options-general.php?page=worldlogger-options\").\"</p></div>\n\t\t\t\";\n\t\t}\n\t\tadd_action('admin_notices', 'worldlogger_warning');\n\t\treturn;\n\t}\n}", "public function please_upgrade() {\n\t\t$this->infoAlert(\"Please Upgrade Message\");\n\t}", "public function warning(string $message, array $context = []){\n if($this->logger !== null){\n $this->warning($message, $context);\n }\n\n if($this->messagePanel !== null){\n $this->messagePanel->addMessage($message, LogLevel::WARNING);\n }\n }", "public function warning($message, array $context = []) {\n\t\t$this->log(Util::WARN, $message, $context);\n\t}", "public function warning($message, array $context = [])\n {\n }", "public function warning($message): void\n {\n $this->log(__FUNCTION__, $message);\n }", "public function warn()\n {\n $this->appendLog(\n 'warn',\n \\func_get_args(),\n $this->internal->getErrorCaller()\n );\n }", "public function warning() {\r\n echo \"<div id='wpGoogleMaps_warning' class='updated fade-ff0000'><p><strong>\"\r\n .__('Google Maps for WordPress is almost ready.').\"</strong> \"\r\n .sprintf(__('You must <a href=\"%1$s\">enter your Google API key</a> for it to work.'), \"plugins.php?page=wpGoogleMaps-config\")\r\n .\"</p></div>\";\r\n }", "public function warning()\n {\n return $this->type('warning');\n }", "public function actionWarnmessage() {\n $model = new \\common\\models\\WarningReasons();\n $reason_array = array('Please Select');\n if (Yii::$app->request->post()) {\n $post = Yii::$app->request->post();\n $value = $post['value'];\n\n $reasons = $model->find()->where(['type' => $value])->all();\n\n foreach ($reasons as $reason) {\n $reason_array[$reason['options']] = $reason['options'];\n }\n }\n echo json_encode($reason_array);\n die;\n }", "public function warning($text, $flags = 0) {\n\t\treturn $this->_notice($text, $flags, 'warnings', 'NoticeWarning'); \n\t}", "private function Bill_Date_Warning()\n\t{\n\t\t$recipients = (EXECUTION_MODE !== 'LOCAL') ? ECash::getConfig()->ECASH_NOTIFICATION_ERROR_RECIPIENTS : '';\n\t\t$body = \"WE ARE RUNNING OUT OF CERTEGY BILL DATES! PLEASE CONTACT CERTEGY AND GET SOME MORE!!!!!!!!!!!!!!!!!!!!!!1!!!!!!!\";\n\t\t$subject = \"Certegy batch warning: Running out of Certegy Bill Dates!\";\n\t\t\t\t// send the email\n\t\t$result = eCash_Mail::sendExceptionMessage($recipients,$body,$subject);\n\t\t\n\t}", "public function warning($message, array $context = [])\n {\n $this->out($message, $context, 'yellow');\n }", "public function httpsWarning() {\n drupal_set_message($this->t('If you submit this form via HTTP, your API credentials will be sent in clear text and may be intercepted. For information on setting up HTTPs, see <a href=\"https://www.drupal.org/https-information\">Enabling HTTPs</a>.'), 'warning');\n }", "protected function outputWarningMessage(string $message)\n {\n $this->outputLine(\"<fg=yellow>$message</>\");\n }", "public function warning($message)\n {\n if ($this->_logLevel>=2) {\n self::log($message, Zend_Log::WARN);\n }\n }", "public function admin_notices() {\n\t\t\t$current_screen = \\get_current_screen();\n\t\t\t$message = __( 'Do not edit products, orders, customers, or comments on staging as they might get overwritten with <b>Download Data</b> or <b>Publish to Live</b>.', 'woocart' );\n\t\t\t$show = array( 'edit-shop_order', 'users', 'edit-comments', 'edit-product' );\n\t\t\tif ( $this->is_staging() && in_array( $current_screen->id, $show ) ) {\n\t\t\t\tprintf(\n\t\t\t\t\t'<div class=\"notice\" style=\"background: #e3d9f0;\n border-radius: 8px;\n border: none;\n padding: 1em;\"><span style=\"background: orange;\n border-radius: 5px;\n color: white;\n padding: 0.3em;\">WARNING</span> <span style=\"line-height: 22px;\n font-size: 1.07em;\">%1$s</span></div>',\n\t\t\t\t\t$message\n\t\t\t\t);\n\t\t\t}\n\t\t}", "public static function warn( $message ){\n return self::add( new Loco_error_Warning($message) );\n }", "public function setWarning(){\n $this->dbConnection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);\n }", "public static function admin_notice() {\r\n\t\techo '<div class=\"error\">';\r\n\t\techo '<p>' . esc_html( __( 'Your server does not support communication with servers over HTTPS.', 'inf-member' ) ) . '</p>';\r\n\t\techo '</div>';\r\n\t}", "function warning ($message, $class = NULL, $function = NULL, $file = NULL,\n $line = NULL)\n {\n\n $message =& new Message(array('m' => $message,\n 'c' => $class,\n 'F' => $function,\n 'f' => $file,\n 'l' => $line,\n 'N' => 'WARNING',\n 'p' => LEVEL_WARN));\n\n $this->log($message);\n\n }", "public function warning($message, array $context = array())\n {\n $this->saveLogMessage(LogLevel::WARNING, $message, $context);\n }", "public static function write_debug_warning(){\n\t\t\tif(str_replace('none','',CFG::get('DEBUG_MODE'))!='' && !Ajax::is_on()){\n\t\t\t\t$ie6h=(stripos(str_replace(' ','',$_SERVER['HTTP_USER_AGENT']),'MSIE6')!==false); // ie6 hotfix\n\t\t\t\t?><div style=\"-moz-border-radius:8px; -webkit-border-radius:8px; border-radius:8px;\n\t\t\t\t\t-moz-box-shadow:0 0 8px #000; -webkit-box-shadow:0 0 8px #000; box-shadow:0 0 8px #000;\n\t\t\t\t\tbackground:#FEE; border:2px solid #F00; font-family:arial; font-size:12px; font-weight:bold;\n\t\t\t\t\tmargin:2px; padding:0 4px; position:fixed; right:4px; text-shadow:0 0 10px #A00; z-index:10;\n\t\t\t\t\ttop:4px; position:<?php echo $ie6h?'absolute':'fixed'; ?>;\">DEBUG MODE</div><?php\n\t\t\t}\n\t\t}", "public static function GenericWarning() :self{\n\t\treturn new Response('Generic Warning', -1, true);\n\t}", "public static function warn($text) {\n if ( ! defined('WC_JSON_API_DEBUG') ) {\n return;\n }\n $file = REDE_PLUGIN_BASE_PATH . \"warnings.log\";\n $fp = @fopen($file,'a');\n if ($fp) {\n fwrite($fp,$text . \"\\n\");\n self::debug(\"[Warn] \" . $text);\n fclose($fp);\n }\n \n }", "public function warning($message, $method = 'no context given', array $logData = [], $justLog = false);", "public function warn(string $string): void\n {\n if (!$this->output->getFormatter()->hasStyle('warning')) {\n $style = new OutputFormatterStyle('yellow');\n\n $this->output->getFormatter()->setStyle('warning', $style);\n }\n\n $this->line($string, 'warning');\n }", "public static function addWarning($message)\n {\n $_SESSION['TL_RAW'][] = sprintf(\"<p class=\\\"composer_warn\\\">Warning: %s</p>\\n\", $message);\n }", "public function warning($message)\n {\n return $this->render($message, 'warning');\n }", "function site_admin_notice()\n {\n }", "protected function setWarningsExist() {}", "public function isWarning()\n {\n return $this->getName() === 'warning';\n }", "public function warning($message, array $context = []) : void\n {\n $this->log(__FUNCTION__, $message, $context);\n }", "public static function warning($message, array $context = array())\r\n {\r\n self::log(Level::WARNING, $message, $context);\r\n }", "function warningAlert($msgText)\n\t{\n\t\t$msgWarning = \"<div class='alert alert-warning alert-dismissible fade show'>\n\t\t\t\t\t\t<button type='button' class='close' data-dismiss='alert'>&times;</button>\n\t\t\t\t\t\t\" . $msgText . \"\n\t\t\t\t\t\t</div>\";\n\t\treturn $msgWarning;\n\t}", "public function setWarningMessage($warningMessage) {\n\t\t$this->warningMessage = $warningMessage;\n\t}", "public function warning($message, array $context = array())\n {\n file_put_contents($this->filename, 'WARNING: '. json_encode($context) . ' - ' . $message . \"\\r\\n\", FILE_APPEND);\n }", "protected function showMessageWarning($argMsg) {\n echo(json_encode(array('code' => 0, 'message' => $argMsg)));\n }", "public function getWarningMessage() {\n\t\treturn $this->warningMessage;\n\t}", "function append_warning($aWarning)\n {\n $warning = $this->pop_warning();\n $warning .= $aWarning;\n $this->add_warning($warning);\n }", "private function catchWarning ($errno, $errstr, $errfile, $errline) {\n $this->error[] = array(\n 'error' => \"Connecting to the POP3 server raised a PHP warning: \",\n 'errno' => $errno,\n 'errstr' => $errstr\n );\n }", "public function warning($message = null, $newlines = 1, $level = Shell::NORMAL) {\n\t\t$this->out('<warning>' . $message . '</warning>', $newlines, $level);\n\t}", "function display_warning_page($message)\r\n {\r\n $this->display_header();\r\n $this->display_warning_message($message);\r\n $this->display_footer();\r\n }", "function log_warn($msg, $condition=true, $mode='WARN')\r\n{\r\n log_msg($msg, $condition, $mode);\r\n}", "public function displayWarningMessages_postProcess(array &$warnings) {\n $extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['hwt_resubmission']);\n $openResubmissions = tx_hwtresubmission_sv1::getOpenResubmissions($GLOBALS[$BE_USER]->user['uid'], $extConf['resubmissionTime']);\n\n if($openResubmissions) {\n $warnings['hwtresubmission'] = '[EXT: hwt_resubmission] Open Resubmissions:<br />';\n foreach($openResubmissions as $value) {\n $warnings['hwtresubmission'] .= '- tt_content[' . $value['uid'] . '] ' . $value['header'] . '<br />';\n }\n $warnings['hwtresubmission'] .= '<a href=\"javascript:top.goToModule(\\'web_list\\',1)\">zum List-Modul</a>';\n }\n\t}" ]
[ "0.7803262", "0.7797021", "0.75968295", "0.75558376", "0.73753834", "0.7355787", "0.73454607", "0.7328113", "0.72263426", "0.7202831", "0.7179409", "0.715393", "0.71315014", "0.70912653", "0.7077383", "0.7074999", "0.7010409", "0.69900805", "0.69827336", "0.6973084", "0.6952713", "0.6952013", "0.6946249", "0.6936955", "0.69105107", "0.69091797", "0.68859017", "0.68792313", "0.68786395", "0.6876809", "0.68689775", "0.6866764", "0.6850606", "0.68355644", "0.68222195", "0.677044", "0.6762041", "0.6751102", "0.6751102", "0.67383486", "0.67153174", "0.6689119", "0.6641076", "0.65993226", "0.65889823", "0.65831167", "0.65653014", "0.65423065", "0.65407085", "0.6530342", "0.6515363", "0.6514105", "0.64846224", "0.6474044", "0.64680743", "0.64577764", "0.64547175", "0.64521056", "0.6450838", "0.64409006", "0.64266896", "0.6421486", "0.64148223", "0.64097774", "0.64087975", "0.6403851", "0.6398685", "0.63956505", "0.6372994", "0.63642025", "0.6362948", "0.6331834", "0.63254136", "0.63175243", "0.63074887", "0.6288904", "0.62867075", "0.6280811", "0.62787527", "0.62703574", "0.62630206", "0.6258979", "0.6257882", "0.6254491", "0.6232974", "0.6232455", "0.6228434", "0.6215882", "0.6209813", "0.6203393", "0.6198953", "0.617624", "0.6168292", "0.61671877", "0.6164178", "0.61635935", "0.61630994", "0.6152313", "0.6144469", "0.6142648" ]
0.7702714
2
Send an error message
function error($message);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract function send_error($ex=null) ;", "public function sendError($error, $reason = NULL)\n {\n }", "private function _sendErrors( ){\n\n\t\tglobal $mqRecurly;\n\n\t\t$site = strtoupper( strtok( $mqRecurly->getSetting('plan_id_prefix'), '-' ) );\n\n\t\t$message = print_r( $this->_errors, 1 );\n\n\t\twp_mail( '[email protected]', 'Reculry Error - ' . $site, $message );\n\n\t}", "public static function sendErrorResponse($error = null){\n http_response_code(500);\n echo $error;\n die();\n }", "public function sendError($message=null, $endApplication = false) {\n $error = json_encode(array(\n 'jsonrpc' => $this->version,\n 'id' => isset($this->_request['id']) ? $this->_request['id'] : null,\n 'error' => $message,\n ));\n if ($endApplication) {\n die($error);\n } else {\n echo $error;\n }\n }", "public function actionError() {\n if ($error = Yii::app()->errorHandler->error) {\n\t\t\t$this->sendRestResponse(500,array(\n\t\t\t\t'status' => false,\n\t\t\t\t'message' => $error['message'],\n\t\t\t\t'data' => $error,\n\t\t\t));\t\t\t\n }\n\t}", "public static function sendError($status_code,$message=null) {\n\t\thttp_response_code($status_code);\n\t\techo $message;\n\t}", "function sendError($errorText){\n echo json_encode(array(\n 'status' => '50x',\n 'infotext' => $errorText\n ));\n die();\n}", "function my_error($msg) {\n\theader('HTTP/1.1 500 Internal Server Error');\n\ttrigger_error($msg,E_USER_ERROR);\n}", "public function error($message) {}", "function error(){}", "private function error($msg)\n {\n\t\t$this->error = true;\n\t\t$this->error_message .= $msg;\n }", "function sendFailure( $message ) {\n\t\t$obj = new stdClass();\n\n\t\t$obj->success = false;\n\t\t$obj->errorMessage = $this->escapeJsonString( $message );\n\n\t\t$this->sendJSON( $obj );\n\t}", "public function error();", "private function error()\n {\n $json = array_merge($this->data, ['message' => $this->error, 'class' => 'error']);\n wp_send_json($json);\n }", "public function error( $data = null ) {\n\t\t$this->send( $data, false );\n\t}", "protected function error()\n {\n $this->response = $this->response->withStatus(500);\n $this->jsonBody([\n 'input' => $this->payload->getInput(),\n 'error' => $this->payload->getOutput(),\n ]);\n }", "public function actionError()\n {\n if(Core::getLoggedDeliveryBoyID() > 0)\n {\n\t \t $exception = Yii::$app->errorHandler->exception;\n\t \t $error = array('statusCode' => $exception->statusCode, 'message' => $exception->getMessage(), 'name' => $exception->getName());\n \t\t return $this->render('/error', ['error' => $error]);\n }\n else\n {\n\t \t\treturn Yii::$app->getResponse()->redirect(Yii::$app->getHomeUrl().'delivery')->send();\n }\n }", "function error($msg)\n{\n header('HTTP/1.1 500 ' . $msg);\n die($msg);\n}", "function send_error($errno, $errstr, $errfile, $errline) {\n\t\tif ($errno == E_USER_ERROR)\n\t\t{\n\t\t\t\n\t\t\t$db_errno = mysql_errno();\n\t\t\t$db_error = mysql_error();\n\t\t\t\n\t\t\tinclude_once 'sys_dbc.php';\n\t\t\tunlock_tables(); //if locked by any chance\n\t\t\t\n\t\t\tinclude_once 'sys_mail.php';\n\t\t\tsend_mail(MAIL_WEBMASTER_ADDRESS, 'Error report', wordwrap(\n\"\nError Report\n--------------------------\nError: \".($errstr != '' ? $errstr : 'Unspecified Error').\"\nSite: \".ROOT.\"\nFile: \".$errfile.\"\nLine: \".$errline.\"\n\n\".($db_errno != 0 ? \"DB Error Log: \".$db_errno.': '.$db_error : '')\n\t\t\t));\n\t\t\tpanel_working(false); # disable CPL\n\t\t\t\n\t\t\tinclude_once 'func_showmsg.php';\n\t\t\tshowmsg('generic_error', URL_ADMIN.'index.php');\n\t\t\t\n\t\t\texit;\n\t\t}\n\t}", "abstract public function error();", "public static function sendError($errMessage = \"\") {\n //TODO: send 404\n $responseObj = new Response();\n $body = array();\n $body['error']['code'] = 400;\n $body['error']['type'] = \"error_unknown\";\n $body['error']['message'] = $errMessage;\n $responseObj->setContent(json_encode($body));\n $responseObj->setStatus('400');\n $responseObj->setHeader('Content-Type: application/json');\n\n $responseObj->sendResponse();\n }", "public function sendError($error)\n {\n mail($this->adminMail, 'Backup errors ' . date('Y-m-d H:i:s'), $error);\n $this->stderr($error . \"\\n\");\n }", "private function send_error($error) {\n header('Content-Type: application/json');\n echo json_encode(array(\n 'error' => $error\n ));\n return;\n }", "public function throwErrorAction() {\n $message = $this->getRequestParam(\"message\", null);\n if (($error_code = $this->getRequestParam(\"error_code\")) && !empty($error_code)) {\n if (!empty($message))\n $this->respondWithValidationError($error_code, $message);\n else\n $this->respondWithError($error_code);\n }\n\n return;\n }", "public function error($msg) {\n $this->writeLine($msg, 'error');\n }", "function error_out($text = '')\n {\n $date = date(\"D M j G:i:s T Y\", time());\n $message = $text;\n $message .= \"\\n\\n\" . SITE_NAME . \" received the following IPN response from Platnosci. Please use the following information for debug purposes only:\\n\\n*****************************\\n\";\n @reset($this->platnosci_post_vars);\n while (@list($key, $value) = @each($this->platnosci_post_vars))\n {\n $message .= $key . \":\" . \" \\t$value\\n\";\n }\n $message = \"$date\\n\\n\" . $message . \"\\n*****************************\\n\\n\";\n if ($this->error_email)\n {\n\t\t\tglobal $ilance;\n\t\t\t$ilance->email->mail = $this->error_email;\n\t\t\t$ilance->email->from = SITE_EMAIL;\n\t\t\t$ilance->email->subject = 'Platnosci IPN Gateway Error';\n\t\t\t$ilance->email->message = $message;\n\t\t\t$ilance->email->send();\n }\n }", "protected function callError($message) {\n if ($this->quit_on_error) {\n header('HTTP/1.0 500 Internal Server Error');\n echo(\"<h3>A system error occured, Please try again later.</h3>\");\n if ($this->debug)\n echo (\"<br>Crash Information:<br><p style=\\\"font-family: monospace;\\\">\" . $message . \"</p>\");\n exit();\n } else {\n $this->error_handler($message);\n }\n }", "protected function errorAction() {}", "function internalServerError($error)\n{\n header('HTTP/1.1 500 Internal Server Error');\n $emailIds = array(\"[email protected]\", \"[email protected]\", \"[email protected]\", \"[email protected]\");\n foreach ($emailIds as $to)\n sendMail($to, \"Alert! error occurred in apis\", $error);\n}", "function errore($messaggio) {\n header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error', true, 500);\n die($messaggio);\n}", "public function runError() {\n\t\t\t$this->setSession('sError', $this->getError());\n\n\t\t\t// Set the router\n\t\t\tredirect(\n\t\t\t\t$this->getUrl(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'sRouter' => 'error', \n\t\t\t\t\t\t'sController' => 'index'\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t);\n\t\t}", "public function errorOccured();", "function error($message){\n die(json_encode([\"error\"=>true,\"data\"=>$message]));\n}", "public function error_message($error)\n {\n die($error);\n }", "public static function send_http_error( $data )\n {\n \\HttpResponse::status( 400 );\n \\HttpResponse::setContentType( 'application/json' ); \n \\HttpResponse::setData( $data );\n \\HttpResponse::send();\n }", "public function errorAction()\n {\n $code = $this->_request->getParam('errorCode');\n $this->view->errorCode = $code;\n $this->getResponse()->setRawHeader('HTTP/1.1 500 Internal Server Error');\n }", "public function error(string $text);", "public function showError();", "public static function error($message)\n {\n say('Error: ' . $message);\n }", "protected static function error($code, $message) {\n\t\theader('Content-Type: text/html', true, $code);\n\t\theader('Content-Length: ' . strlen($message));\n\n\t\techo $message;\n\t}", "protected function error($error)\n {\n //header($_SERVER['SERVER_PROTOCOL'] . ' 501 Internal Server Error');\n\n // Build and return the output\n $this->error = true;\n $this->result->setAttribute('type', 'error');\n $this->result->appendChild($this->dom->createElement('message', $error));\n $this->buildOutput();\n }", "function sendto_editor_fail() {\n\tswitch($_GET['error']){\n\t\tcase 'postid_empty':\n\t\t\t$msg = 'Could not get the post_id of this post (notify tech)';\n\t\t\tbreak;\n\t\tcase 'title_empty':\n\t\t\t$msg = 'Please enter a title for this post';\n\t\t\tbreak;\n\t\tcase 'fbwall_empty':\n\t\t\t$msg = 'Please select a FB wall from the dropdown list';\n\t\t\tbreak;\n\t\tcase 'slug_empty':\n\t\t\t$msg = 'Could not get the post_name of this post (notify tech)';\n\t\t\tbreak;\n\t\tcase 'image_empty':\n\t\t\t$msg = 'Please add a featured image to this post';\n\t\t\tbreak;\n\t\tcase 'permalink_empty':\n\t\t\t$msg = 'Could not create permalink to this post (notify tech)';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t$msg = 'Unkown error, try clicking \"Publish\" or \"Update\" then submitting again, if problem persists notify tech';\n\t}\n\techo <<<HTML\n<div class=\"error notice\">\n\t<p>Sending email to Editor failed.</p>\n\t<p>$msg</p>\n</div>\nHTML;\n}", "public function error($message)\n {\n }", "public function error($message)\n {\n }", "public static function error($message)\n\t{\n\t\tstatic::write('Error', $message);\n\t}", "protected function error($message) { \n\t\t$this->error_found = true; \n\t\t$this->error_message = $message; \n\t}", "function errorResponse ($messsage) {\n header('HTTP/1.1 500 Internal Server Error');\n die(json_encode(array('message' => $messsage)));\n }", "public function actionError()\n {\n if($error=Yii::app()->errorHandler->error)\n {\n if($error['code'] != 404 || !isset($aErrorMsg[$error['errorCode']])){\n Yii::log(' error : ' . $error['file'] .\":\". $error['line'] .\":\". $error['message'], 'error', 'system');\n }\n $ret = new ReturnInfo(FAIL_RET, Yii::t('exceptions', $error['message']), intval($error['errorCode']));\n if(Yii::app()->request->getIsAjaxRequest()){\n echo json_encode($ret);\n \n }else{\n if( empty($error['errorCode']) ){\n if(isset($this->aErrorMsg[$error['code']])){\n if(empty($this->aErrorMsg[$error['code']]['message'])) {\n $this->aErrorMsg[$error['code']]['message'] = $error['message'];\n }\n $this->render('error', $this->aErrorMsg[$error['code']]);\n }else{\n $this->render('error', $this->aErrorMsg['1000']);\n }\n }else{\n $this->render('error', $this->aErrorMsg[ $error['errorCode'] ]);\n \n }\n }\n \n } \n }", "public function _sendErrorEmail($message = '',$subject = 'There was an error in the app',$layout='default') {\n\t\tif (!empty($this->request->data)) {\n\t\t\t//The administrator email address\n\t\t\t$admin = '[email protected]';\n\t\t\tif (!empty($admin)) {\n\t\t\t\t$options = array(\n\t\t\t\t\t\t\t\t\t'layout'=>$layout,\n\t\t\t\t\t\t\t\t\t'subject'=>$subject,\n\t\t\t\t\t\t\t\t\t'view'=>'default'\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t$viewVars = array('content'=>$message);\n\t\n\t\t\t\t//Send the admin an email\n\t\t\t\t$this->_sendEmail($admin,$options,$viewVars);\n\t\t\t\t$this->log('Error email sent to '.$admin,'error_email_log');\n\t\t\t} else {\n\t\t\t\t// The email didn't send because the email wasn't valid\n\t\t\t}\n\t\t}\n\t}", "public function actionError() {\n\t\tif ($error = Yii::app ()->errorHandler->error) {\n\t\t\tif (Yii::app ()->request->isAjaxRequest)\n\t\t\t\techo $error ['message'];\n\t\t\telse\n\t\t\t\t$this->render ( 'error', $error );\n\t\t}\n\t}", "public function actionError()\n {\n if ($error = Yii::app()->errorHandler->error)\n {\n if (Yii::app()->request->isAjaxRequest)\n echo $error['message'];\n else\n $this->render('error', $error);\n }\n }", "function error($message, array $context = array());", "function websend_fatal_error($msg) {\n websend_command('PrintToConsole', 'Websend Error: ' . $msg, null);\n error_log(\"Websend error: \" . $msg);\n die();\n}", "function throw_user_error($error_code, $error_text) {\n http_response_code($error_code);\n echo $error_text;\n exit;\n}", "public function actionError() {\r\n\t\tif ($error = Yii::app()->errorHandler->error) {\r\n\t\t\tif (Yii::app()->request->isAjaxRequest)\r\n\t\t\t\techo $error['message'];\r\n\t\t\telse\r\n\t\t\t\t$this->render('error', $error);\r\n\t\t}\r\n\t}", "public function actionError()\n {\n if ($error = Yii::app()->errorHandler->error) {\n if (Yii::app()->request->isAjaxRequest)\n echo $error['message'];\n else\n $this->render('error', $error);\n }\n }", "public function actionError()\n {\n if ($error = Yii::app()->errorHandler->error) {\n if (Yii::app()->request->isAjaxRequest)\n echo $error['message'];\n else\n $this->render('error', $error);\n }\n }", "public function actionError()\n {\n if ($error = Yii::app()->errorHandler->error) {\n if (Yii::app()->request->isAjaxRequest)\n echo $error['message'];\n else\n $this->render('error', $error);\n }\n }", "public function actionError()\n {\n if ($error = Yii::app()->errorHandler->error) {\n if (Yii::app()->request->isAjaxRequest)\n echo $error['message'];\n else\n $this->render('error', $error);\n }\n }", "public function actionError()\n {\n if ($error = Yii::app()->errorHandler->error) {\n if (Yii::app()->request->isAjaxRequest)\n echo $error['message'];\n else\n $this->render('error', $error);\n }\n }", "public function actionError()\n {\n if ($error = Yii::app()->errorHandler->error) {\n if (Yii::app()->request->isAjaxRequest)\n echo $error['message'];\n else\n $this->render('error', $error);\n }\n }", "function raiseError($errorMessage, $responseCode){\n\t global $errors;\n\n\t\thttp_response_code($responseCode);\n\n\t die(json_encode(array(\n\t \t\"error\" => $errorMessage\n\t )));\n\t}", "public function actionError() {\n if ($error = Yii::app()->errorHandler->error) {\n if (Yii::app()->request->\n isAjaxRequest)\n echo $error['message'];\n else\n $this->render('error', $error);\n }\n }", "public function actionError()\n {\n if ($error = Yii::app()->errorHandler->error) {\n if (Yii::app()->request->isAjaxRequest) echo $error['message'];\n else $this->render('error', $error);\n }\n }", "public function actionError()\n\t{\n\t\tif ($error = Yii::app()->errorHandler->error)\n\t\t{\n\t\t\tif (Yii::app()->request->isAjaxRequest)\n\t\t\t\techo $error['message'];\n\t\t\telse\n\t\t\t\t$this->render('error', $error);\n\t\t}\n\t}", "function sendError($error, stdClass $context) {\n if (is_string($error)) {\n $error = new Exception($error);\n }\n try {\n if ($this->onSendError !== null) {\n $onSendError = $this->onSendError;\n $e = call_user_func_array($onSendError, array(&$error, $context));\n if ($e instanceof Exception || $e instanceof Throwable) {\n $error = $e;\n }\n }\n }\n catch (Exception $e) {\n $error = $e;\n }\n $stream = new BytesIO();\n $writer = new Writer($stream, true);\n $stream->write(Tags::TagError);\n $writer->writeString($this->debug ? $error->getTraceAsString() : $error->getMessage());\n return $stream;\n }", "abstract public function getMsgError();", "protected function error($msg) {\n \t parent::error($msg); //log in error msg\n throw new Exception ($msg); // <-- TESTS php4\n }", "public function actionError() {\n \n }", "function informarError(){\n\t$para = '[email protected], [email protected]';\n\t$titulo = 'Owloo - Countries';\n\t$mensaje = 'Se ha detectado un error en la ejecución del script de captura de ranking de países. Favor verificar estado.';\n\t$cabeceras = 'From: [email protected]' . \"\\r\\n\";\n\tmail($para, $titulo, $mensaje, $cabeceras);\n\n\texit();\n}", "public static function customErrorMsg()\n {\n echo \"\\n<p>An error occured, The error has been reported.</p>\";\n exit();\n }", "public function actionError()\r\r\n\t{\r\r\n\t\tif($error = Yii::app()->errorHandler->error)\r\r\n\t\t{\r\r\n\t\t\tif(Yii::app()->request->isAjaxRequest)\r\r\n\t\t\t\techo $error['message'];\r\r\n\t\t\telse\r\r\n\t\t\t\t$this->render('error', $error);\r\r\n\t\t}\r\r\n\t}", "public function error ($message) {\n return $this->send($message, 'error');\n }", "public static function sendErrorMessage($message, $code = 'ERROR', $status = 400)\n\t{\n\t\twp_send_json([\n 'error' => [\n\t\t\t\t'code' => $code,\n\t\t\t\t'message' => $message\n\t\t\t]\n ], $status);\n\t}", "public function error($message = null) {\n $this->say($this->randomItem(\n 'Sorry, something went wrong!',\n 'Oops, I had an error.',\n 'Oh dear, an error.',\n 'Help, I need a debugger!'\n ));\n if($message) {\n $this->say($message);\n }\n\n }", "public static function error($message, $context);", "public function actionError() {\n if ($error = Yii::app()->errorHandler->error) {\n if (Yii::app()->request->isAjaxRequest)\n echo $error['message'];\n else\n $this->render('error', $error);\n }\n }", "public function actionError() {\n if ($error = Yii::app()->errorHandler->error) {\n if (Yii::app()->request->isAjaxRequest)\n echo $error['message'];\n else\n $this->render('error', $error);\n }\n }", "public function actionError() {\n if ($error = Yii::app()->errorHandler->error) {\n if (Yii::app()->request->isAjaxRequest)\n echo $error['message'];\n else\n $this->render('error', $error);\n }\n }", "public function actionError() {\n if ($error = Yii::app()->errorHandler->error) {\n if (Yii::app()->request->isAjaxRequest)\n echo $error['message'];\n else\n $this->render('error', $error);\n }\n }", "public function actionError() {\n if ($error = Yii::app()->errorHandler->error) {\n if (Yii::app()->request->isAjaxRequest)\n echo $error['message'];\n else\n $this->render('error', $error);\n }\n }", "public function actionError() {\n if ($error = Yii::app()->errorHandler->error) {\n if (Yii::app()->request->isAjaxRequest)\n echo $error['message'];\n else\n $this->render('error', $error);\n }\n }", "public function actionError() {\n if ($error = Yii::app()->errorHandler->error) {\n if (Yii::app()->request->isAjaxRequest)\n echo $error['message'];\n else\n $this->render('error', $error);\n }\n }", "public function actionError() {\n if ($error = Yii::app()->errorHandler->error) {\n if (Yii::app()->request->isAjaxRequest)\n echo $error['message'];\n else\n $this->render('error', $error);\n }\n }", "public function actionError() {\n if ($error = Yii::app()->errorHandler->error) {\n if (Yii::app()->request->isAjaxRequest)\n echo $error['message'];\n else\n $this->render('error', $error);\n }\n }", "public function actionError() {\n if ($error = Yii::app()->errorHandler->error) {\n if (Yii::app()->request->isAjaxRequest)\n echo $error['message'];\n else\n $this->render('error', $error);\n }\n }", "public function actionError() {\n if ($error = Yii::app()->errorHandler->error) {\n if (Yii::app()->request->isAjaxRequest)\n echo $error['message'];\n else\n $this->render('error', $error);\n }\n }", "public function actionError() {\n if ($error = Yii::app()->errorHandler->error) {\n if (Yii::app()->request->isAjaxRequest)\n echo $error['message'];\n else\n $this->render('error', $error);\n }\n }", "public function actionError() {\n if ($error = Yii::app()->errorHandler->error) {\n if (Yii::app()->request->isAjaxRequest)\n echo $error['message'];\n else\n $this->render('error', $error);\n }\n }", "public function actionError() {\n if ($error = Yii::app()->errorHandler->error) {\n if (Yii::app()->request->isAjaxRequest)\n echo $error['message'];\n else\n $this->render('error', $error);\n }\n }", "public function actionError() {\n if ($error = Yii::app()->errorHandler->error) {\n if (Yii::app()->request->isAjaxRequest)\n echo $error['message'];\n else\n $this->render('error', $error);\n }\n }", "function error($message) {\n die(\"{\\\"error\\\":\\\"$message\\\"}\");\n }", "public function failed()\n {\n Log::channel('jobs')->alert(\n 'could not send email order to ' . $this->email . \"\\r\\n\"\n . 'data: ' . implode(',', $this->data)\n );\n }", "public function testSendError()\n {\n $this->setMockHttpResponse('RefundRequestError.txt');\n\n /** @var RefundResponse $response */\n $response = $this->request->send();\n\n $this->assertFalse($response->isSuccessful());\n $this->assertEquals($response->getCode(), 133);\n $this->assertEquals($response->getMessage(), 'Incorrect order state for specified operation');\n }", "public function actionError()\n\t{\n\t\tif($error=Yii::app()->errorHandler->error)\n\t\t{\n\t\t\tif(Yii::app()->request->isAjaxRequest)\n\t\t\techo $error['message'];\n\t\t\telse\n\t\t\t$this->render('error', $error);\n\t\t}\n\t}", "public function actionError()\n\t{\n\t\tif($error=Yii::app()->errorHandler->error)\n\t\t{\n\t\t\tif(Yii::app()->request->isAjaxRequest)\n\t\t\techo $error['message'];\n\t\t\telse\n\t\t\t$this->render('error', $error);\n\t\t}\n\t}", "public function actionError()\n {\n if ($error = Yii::app()->errorHandler->error) {\n if (Yii::app()->request->isAjaxRequest) {\n echo $error['message'];\n } else {\n $this->render('error', $error);\n }\n }\n }", "static function errorHandler($errno = '', $errstr = '', $errfile = '', $errline = '', $errcontext = '') {\n // Send email with error, except notices (8)\n /* if ($errno != 8) {\n $message = \"Errno: \" . $errno . self::crlf();\n $message .= \"Errstr: \" . $errstr . self::crlf();\n $message .= \"Errfile: \" . $errfile . self::crlf();\n $message .= \"Errline: \" . $errline . self::crlf();\n $message .= \"URL: \" . self::getUrl() . self::crlf();\n $message .= \"IP: \" . $_SERVER[\"REMOTE_ADDR\"] . self::crlf();\n mail(\"[email protected]\", \"PHP Error! \", $message, \"From: [email protected]\");\n } */\n }", "public function testSendError()\n {\n $this->setMockHttpResponse('JsonPurchaseResponseError.txt');\n $response = $this->request->send();\n\n $data = $this->request->getData();\n\n $code = $response->response->getStatusCode();\n $this->assertFalse($response->isSuccessful());\n $this->assertEquals(500, $data['amount']);\n $this->assertEquals(400, $code);\n $this->assertSame('BAD_REQUEST', $response->getCode());\n $this->assertSame(\"This card is not accepted for Test transactions\", $response->getMessage());\n $this->assertNull($response->getTransactionReference());\n $this->assertNull($response->getCardReference());\n }" ]
[ "0.751816", "0.74529374", "0.72794026", "0.72360486", "0.7165664", "0.70984966", "0.70768565", "0.7024776", "0.69102114", "0.68900156", "0.68390286", "0.68381834", "0.68347895", "0.6830216", "0.6767692", "0.6766129", "0.6735289", "0.67235833", "0.66881347", "0.66830474", "0.66471267", "0.6646043", "0.6611693", "0.6602554", "0.65970993", "0.65943223", "0.6589859", "0.65886873", "0.6534111", "0.65297043", "0.65132093", "0.6512684", "0.6503346", "0.65023524", "0.64885634", "0.6484159", "0.6473842", "0.6463051", "0.64319485", "0.64181846", "0.6414462", "0.6414057", "0.64053327", "0.64045274", "0.64045274", "0.64021474", "0.63949835", "0.6391444", "0.63837737", "0.6380784", "0.6373668", "0.63579124", "0.6357806", "0.6356697", "0.6355647", "0.635154", "0.63490283", "0.63490283", "0.63490283", "0.63490283", "0.63490283", "0.63490283", "0.63480747", "0.63438195", "0.63415575", "0.6337225", "0.63360685", "0.6335352", "0.6333572", "0.6327119", "0.632499", "0.63235307", "0.63215756", "0.6314012", "0.6313046", "0.6311294", "0.63097996", "0.6309509", "0.6309509", "0.6309509", "0.6309509", "0.6309509", "0.6309509", "0.6309509", "0.6309509", "0.6309509", "0.6309509", "0.6309509", "0.6309509", "0.6309509", "0.6309509", "0.6309509", "0.6306532", "0.6296731", "0.62937444", "0.62891763", "0.62891763", "0.6288713", "0.6288411", "0.6288229" ]
0.67011213
18
Attach an logger and starts watching errors
function attach(ILogger $logger);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function initLogger(): void\n {\n $customPath = $this->context->getConfigurationService()->getLogPath();\n $severity = $this->context->getConfigurationService()->getLogSeverity();\n\n Logger::resetErrors();\n $this->logger = Logger::getInstance(__CLASS__, $customPath, $severity);\n }", "private function initLogger()\n {\n\n // Check logir exists\n if (!file_exists(LOGDIR)) {\n Throw new FrameworkException(sprintf('Logdir does not exist. Please create \"%s\" and make sure it is writable.', LOGDIR));\n }\n\n // Check logdir to be writable\n if (!is_writable(LOGDIR)) {\n Throw new FrameworkException(sprintf('Logdir \"%s\" is not writable. Please set proper accessrights', LOGDIR));\n }\n\n $this->di->mapFactory('core.logger', '\\Core\\Logger\\Logger');\n\n /* @var $logger \\Core\\Logger\\Logger */\n $this->logger = $this->di->get('core.logger');\n $this->logger->registerStream(new \\Core\\Logger\\Streams\\FileStream(LOGDIR . '/core.log'));\n\n $this->di->mapValue('core.logger.default', $this->logger);\n }", "protected function setupLogger()\n {\n $this->log = new Logger('philip');\n if (isset($this->config['debug']) && $this->config['debug'] == true) {\n $log_path = isset($this->config['log']) ? $this->config['log'] : false;\n\n if (!$log_path) {\n throw new \\Exception(\"If debug is enabled, you must supply a log file location.\");\n }\n\n try {\n $format = \"[%datetime% - %level_name%]: %message%\";\n $handler = new StreamHandler($log_path, Logger::DEBUG);\n $handler->setFormatter(new LineFormatter($format));\n $this->log->pushHandler($handler);\n } catch (\\Exception $e) {\n throw \\Exception(\"Unable to open/read log file.\");\n }\n } else {\n $this->log->pushHandler(new NullHandler());\n }\n }", "public function setLogger(Logger $logger);", "public function setLogger($logger);", "private function setDebugger()\n {\n $this->client\n ->getEmitter()\n ->attach(new LogSubscriber($this->debugLogger, Formatter::DEBUG));\n }", "private function initLogger()\n {\n $objectManager = ObjectManager::getInstance();\n if ($this->klevuLoggerFQCN && !($this->logger instanceof $this->klevuLoggerFQCN)) {\n $this->logger = $objectManager->get($this->klevuLoggerFQCN);\n }\n\n if (!($this->logger instanceof LoggerInterface)) {\n $this->logger = $objectManager->get(LoggerInterface::class);\n }\n }", "public static function init()\n {\n $output = \"[%datetime%] %channel% %level_name% > %message%\\n\\n\";\n $formatter = new LineFormatter($output, null, true);\n\n $stream = new StreamHandler('../debug/main.log');\n\n $stream->setFormatter($formatter);\n\n self::$logger['main'] = new \\Monolog\\Logger('Main');\n self::$logger['main']->pushHandler($stream);\n\n self::$logger['db'] = self::$logger['main']->withName('Database');\n self::$logger['auth'] = self::$logger['main']->withName('Auth');\n self::$logger['upload'] = self::$logger['main']->withName('Uploader');\n\n // self::$logger['exception']\n // = self::$logger['main']->withName('Unhandled');\n // ErrorHandler::register(self::$logger['exception']);\n }", "protected function _start_listening(){\r\n\t\t\tset_error_handler(array($this->_reporter, 'handle_error'));\r\n\t\t\tset_exception_handler(array($this->_reporter, 'handle_exception'));\r\n\t\t\terror_reporting(-1);\r\n\t\t\tini_set('display_errors', false);\r\n\t\t}", "function setLogger(&$logger) {\n\t\t$this->logger = $logger;\n\t}", "protected static function configureInstance()\n\t{\n\t\t$logger = new Logger('Default');\n\t\t$logger->pushHandler(new StreamHandler(__DIR__.'/../../logs/app.log', Logger::DEBUG));\n\n\t\tself::$instance = $logger;\n\t}", "public function enableLogging()\n {\n global $log;\n if (! $this->logger)\n {\n // create a log channel\n $this->logger = new \\Monolog\\Logger('SQL');\n $this->logger->pushHandler($log);\n }\n }", "abstract public function load_logger();", "protected function enableLogging($logger)\n {\n $configuration = $this->managerRegistry\n ->getManagerForClass($this->objectClass)\n ->getConnection()\n ->getConfiguration();\n\n $configuration->setLoggerCallable($logger);\n }", "public function setLogger($logger)\n {\n $this->logger = $logger;\n if (@$this->server_info) $this->logConnection();\n }", "protected function registerThrottleLoginLogger()\n {\n\n $class = 'Permit\\Throttle\\ChecksThrottleOnLogin';\n\n $this->app->singleton($class, function($app){\n return new ChecksThrottleOnLogin(\n $app->make('Permit\\Throttle\\ThrottlerInterface')\n );\n });\n }", "private static function logging()\n {\n $files = ['Handler', 'Exception', 'Log'];\n $folder = static::$root.'Logging'.'/';\n\n self::call($files, $folder);\n }", "public function set_logger( $logger ) {\n\t\t$this->logger = $logger;\n\t}", "public function setLogger($logger)\n {\n $this->_logger = Horde_ActiveSync::_wrapLogger($logger);\n }", "public function setLogger( &$logger )\n {\n $this->_logger = $logger;\n }", "protected function setupLogging()\n\t{\n\t\t// Here we will configure the error logger setup for the application which\n\t\t// is built on top of the wonderful Monolog library. By default we will\n\t\t// build a basic log file setup which creates a single file for logs.\n\n\t\tLog::useFiles(storage_path().'/logs/laravel.log');\n\t}", "public function enableLogging($path) {\n\t\t$this->_logger = new Zend_Log(new Zend_Log_Writer_Stream($path.'simpleDb.log'));\n\t}", "public function setLogger($logger)\r\n\t{ $this->logger = $logger;\r\n\t}", "public function __construct()\n {\n $this->log = new Monolog('');\n $this->log->pushProcessor(new PsrLogMessageProcessor);\n\n $config = array_merge([\n 'type' => 'daily',\n 'level' => 'debug',\n 'max_files' => 5,\n 'app_file' => 'app.log',\n 'cli_file' => 'cli.log',\n 'permission' => 0664,\n ], config('logger', []));\n\n $file = storage_path('logs/' . $config[is_console() ? 'cli_file' : 'app_file']);\n $levels = $this->log->getLevels();\n $level = $levels[strtoupper($config['level'])];\n $format = \"[%datetime%] %level_name%: %message% %context%\\n\";\n\n switch ($config['type']) {\n case 'single':\n $this->log->pushHandler(\n $handler = new StreamHandler($file, $level, true, $config['permission'], false)\n );\n\n $handler->setFormatter(new LineFormatter($format, null, true, true));\n break;\n case 'daily':\n $this->log->pushHandler(\n $handler = new RotatingFileHandler($file, $config['max_files'], $level, true, $config['permission'], false)\n );\n $handler->setFormatter(new LineFormatter($format, null, true, true));\n break;\n case 'syslog':\n $this->log->pushHandler(\n new SyslogHandler(config('app.name', 'Pletfix'), LOG_USER, $level)\n );\n break;\n case 'errorlog':\n $this->log->pushHandler(\n $handler = new ErrorLogHandler(ErrorLogHandler::OPERATING_SYSTEM, $level)\n );\n $handler->setFormatter(new LineFormatter($format, null, true, true));\n break;\n default:\n throw new RuntimeException('Invalid log type in configuration \"app.log\".');\n }\n }", "private function loadLogger()\n {\n // inizializza logger\n Logger::setOptions(array('filter_level' => Config::get('LOG/level'),\n 'log_dir' => Config::get('LOG/dir', Config::get('application.dir') . DIRECTORY_SEPARATOR . 'logs' . DIRECTORY_SEPARATOR . $this->application),\n 'late_write' => Config::get('LOG/late_write', true)\n ));\n }", "private function _setUpLogger(&$logger = null)\n\t{\n\t\tstatic $_names = array();\n\n\t\tif (!$logger)\n\t\t{\n\t\t\t$logger = (object) array(\n\t\t\t\t'namespace' => 'com_flexicontent.filemanager.uploader',\n\t\t\t\t'filename' => 'mediadata_log.php',\n\t\t\t\t'detailed_log' => false,\n\t\t\t);\n\t\t}\n\n\t\tif (!isset($_names[$logger->namespace]))\n\t\t{\n\t\t\t$_names[$logger->namespace] = 1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tjimport('joomla.log.log');\n\t\tJLog::addLogger(\n\t\t\tarray(\n\t\t\t\t'text_file' => $logger->filename, // Sets the target log file\n\t\t\t\t'text_entry_format' => '{DATE} {TIME} {PRIORITY} {MESSAGE}' // Sets the format of each line\n\t\t\t),\n\t\t\tJLog::ALL, // Sets messages of all log levels to be sent to the file\n\t\t\tarray($logger->namespace) // category of logged messages\n\t\t);\n\t}", "protected function registerLogLevel(){\n require_once __DIR__ . '/../../config/constant.php';\n $monolog = Log::getMonolog();\n foreach($monolog->getHandlers() as $handler) {\n $handler->setLevel(Config::get('app.log-level'));\n }\n }", "public function initLogger($options = array()) {\n\t\t$this->logger = new FileLogger($options);\n\t}", "protected function initLog( $options = array() )\n {\n\n $config = $this->di['config'];\n\n $this->di['logger'] = function () use ($config)\n {\n\n $logger = new PhLogFileAdapter($config->application->logDir . \"/app.log\");\n\n return $logger;\n\n };\n }", "protected function logfile_init() { \n if ($this->LOGGING) { \n $this->FILE_HANDLER = fopen($this->LOGFILE,'a') ; \n $this->debug(); \n } \n }", "public function __construct() {\n $this->log = new Logger('HRNParis');\n $this->log->pushHandler(new StreamHandler(__DIR__ .'/errors/error.log', Logger::WARNING));\n\t \n\t $this->eventlog = new Logger('HRNParis');\n $this->eventlog->pushHandler(new StreamHandler(__DIR__ .'/eventlog/events.log', Logger::WARNING));\n\t \n\t try {\n\t $pdo = connection\\PDOConnection::instance();\n\n $this->pdo = $pdo->getConnection( 'mysql:host='.$this->host.';dbname='.$this->database, $this->user, $this->password);\n\t\n\t\t\n\t } catch (\\PDOException $e){\n\t\t echo 'Database Connection Failed';\n\t\t $this->log->addError($e->getMessage());\n\t\t \n\t\t exit;\n\t }\n\t \n $this->basedir = $_SERVER['DOCUMENT_ROOT'].'/';\n\n \n /*\n \t\t// add records to the log\n $this->log->addWarning('Foo');\n $this->log->addError('Bar');\n \n */ \n\t \n }", "public function init()\n {\n if ($this->packer == null) {\n $this->packer = new MsgpackOrJsonPacker();\n } else if (!($this->packer instanceof \\Fluent\\Logger\\PackerInterface)) {\n $this->packer = Yii::createComponent($this->packer);\n }\n $this->_logger = new FluentLogger($this->host, $this->port, $this->options, $this->packer);\n }", "public function setLogger($logger){\n\t\t$this->_logger = $logger;\n\t}", "public function __construct(){\n $this->clientLog = new Logger('client');\n $this->clientLog->pushHandler(new StreamHandler(storage_path('logs/client.log')), Logger::INFO);\n }", "public function addLogger($logger) : void\n {\n if (!($logger instanceof Listener) && !($logger instanceof Configuration\\Logger)) {\n throw new Exception('invalid logger, only \\'Listener\\' and valid logger configurations are accepted');\n }\n $this->loggers[] = $logger;\n }", "public static function initialize()\n {\n container()->forgetInstance(ILogger::class);\n container()->instance(ILogger::class, container()->make(ILoggerManagerInterface::class)->newLogger(SwooleMaster::getConfig()->getLogDir(), sprintf(SwooleMaster::getTopic() . sprintf(\"-tasker#%d\", self::$id))));\n }", "public function setLogger($logger)\n {\n $this->logger = $logger;\n }", "public function setLogger($logger)\n {\n $this->_logger = $logger;\n }", "public function setLogger(Logger $logger): void\n {\n API::ffi()->ts_parser_set_logger($this->data, $logger);\n }", "public function setLogInstance(): void\n {\n $this->log_instance = QueryLogger::initializeQueryChainLog($this);\n }", "public function setLogger(Logger $logger)\n {\n $this->_logger = $logger;\n }", "public static function set($logger)\n {\n self::$instance = $logger;\n }", "public static function setupPhpLogs()\n {\n if (!empty(self::$phpFile)) {\n set_error_handler([__CLASS__, 'phpLogHandler']);\n register_shutdown_function([__CLASS__, 'phpShutdownFunction']);\n }\n }", "public function initEventLogger()\n {\n $dispatcher = static::getEventDispatcher();\n\n $logger = $this->newEventLogger();\n\n foreach ($this->listen as $event) {\n $dispatcher->listen($event, function ($eventName, $events) use ($logger) {\n foreach ($events as $event) {\n $logger->log($event);\n }\n });\n }\n }", "public static function setLogger($logger)\n {\n self::$_logger = $logger;\n }", "public function enableLogging() {\n $this->debug = true;\n }", "public function logError() {}", "public function __construct(\\Monolog\\Logger $logger)\n {\n $this->_logger = $logger;\n }", "protected function initEventLogger(): void\n {\n $logger = $this->newEventLogger();\n\n foreach ($this->listen as $event) {\n $this->dispatcher->listen($event, function ($eventName, $events) use ($logger) {\n foreach ($events as $event) {\n $logger->log($event);\n }\n });\n }\n }", "protected function _loggerSanity()\n {\n if (!isset($this->_directives['logging']) || !$this->_directives['logging']) {\n return;\n }\n\n if (isset($this->_directives['logger'])) {\n if ($this->_directives['logger'] instanceof Zend_Log) {\n return;\n }\n Zend_Cache::throwException('Logger object is not an instance of Zend_Log class.');\n }\n\n // Create a default logger to the standard output stream\n require_once 'Zend/Log.php';\n require_once 'Zend/Log/Writer/Stream.php';\n require_once 'Zend/Log/Filter/Priority.php';\n $logger = new Zend_Log(new Zend_Log_Writer_Stream('php://output'));\n $logger->addFilter(new Zend_Log_Filter_Priority(Zend_Log::WARN, '<='));\n $this->_directives['logger'] = $logger;\n }", "public function _initLogger(Logger $logger, Entity\\WorkerJob $worker_job)\n\t{\n\t\t// Empty hook method to init a logger with custom writers or filters\n\t}", "public function logErrors()\n {\n $this->ravenErrorHandler->registerErrorHandler();\n return $this;\n }", "public function setLogger(LoggerInterface $logger): void {\n $this->logger = $logger;\n $this->routeBuilder->setLogger($logger);\n $this->routeTreeManager->setLogger($logger);\n $this->pathExtractor->setLogger($logger);\n }", "function traceMe()\n{\n // So basic\n $stdoutHandler = new StreamHandler('php://stdout');\n $errorFileHandler = new StreamHandler(__DIR__ . '/multiple.streams.log', Logger::WARNING);\n $errorFileHandler->pushProcessor(new MemoryUsageProcessor());\n\n $logger = new Logger('phpdx-experiments-multiple.streams');\n $logger->pushHandler($stdoutHandler);\n $logger->pushHandler($errorFileHandler);\n $logger->pushProcessor(new IntrospectionProcessor());\n\n $logger->debug('look context data', ['foo' => 'bar']);\n $logger->info('you will see this in stdout, but not the file');\n $logger->warning('warning goes to stdout and the file');\n $logger->error('error is handled by both handlers as well', ['serious' => 'error']);\n}", "public function testSetLogger() {\n $file_name = getLogFileName();\n $message = 'The sky is the daily bread of the eyes.';\n setOutputDestination($file_name);\n Terminus::getLogger()->debug($message);\n $output = retrieveOutput($file_name);\n $this->assertFalse(strpos($output, $message) !== false);\n Terminus::setLogger(['debug' => true, 'format' => 'json']);\n Terminus::getLogger()->debug($message);\n $output = retrieveOutput($file_name);\n $this->assertTrue(strpos($output, $message) !== false);\n resetOutputDestination($file_name);\n }", "public function setLogger(LoggerInterface $logger)\n {\n $this->instances->setEntry('logger',$logger);\n }", "private function lopen() {\n $log_file_default = '/var/log/pmta/pmta-bounce-handler.log';\n // define log file from lfile method or use previously set default\n $lfile = $this->log_file ? $this->log_file : $log_file_default;\n // open log file for writing only and place file pointer at the end of the file\n // (if the file does not exist, try to create it)\n // First try to write to configured log-file\n if ($this->debug == 0) {\n\t $this->fp = fopen($lfile, 'a') or $lfile = 'pmta-bounce-handler.log';\n\t }\n\n if ($this->debug == 0 && is_null($this->fp)) {\n\t $this->fp = fopen($lfile, 'a') or exit(\"Can't open $lfile!\");\n\t }\n }", "public function boot(): void\n {\n $config = loadConfig('logging');\n $this->container->make('log', [\n 'class' => LogManager::class,\n 'arguments' => [\n 'config' => $config,\n ],\n 'alias' => LoggerInterface::class\n ]);\n }", "public function boot()\n {\n $logger = Container::getInstance()->make('log', []);\n\n // If this is Laravel we need to get the Logger from the Writer.\n if ($logger instanceof Writer) {\n $logger = $logger->getMonolog();\n }\n\n // Make sure the Monolog Logger is returned\n if ($logger instanceof Logger) {\n // Create custom handler\n $handler = new LogHandler($this->hook, $this->channel, $this->user, $this->level);\n\n // Push it to monolog\n $logger->pushHandler($handler);\n }\n }", "public function setLogger(Base_Log_Interface $logger);", "public function setLogger(LoggerInterface $logger): void\n {\n $this->logger = $logger;\n\n $this->initEventLogger();\n }", "function make_file_logger() {\n\t\t\n\t\t$path = owa_coreAPI::getSetting('base', 'error_log_file');\n\t\t//instantiate a a log file\n\t\t$conf = array('name' => 'debug_log', 'file_path' => $path);\n\t\t$this->loggers['file'] = owa_coreAPI::supportClassFactory( 'base', 'logFile', $conf );\n\t}", "protected function setupLogging($loggerConfigName = 'application')\n {\n Application::getInstance()->getDiContainer()->getLoggerRegistry()->addLogger(new StdErrLogger());\n }", "public function __construct(){\n Logger::configure('../../loggingconfiguration.xml');\n // Fetch a logger, it will inherit settings from the root logger\n $this->log = Logger::getLogger(__CLASS__);\n }", "private function _initErrorHandler()\n {\n // Enable exception handling\n App_Exception::enable();\n $front = App::front();\n $front->throwExceptions(false);\n $front->registerPlugin(new Zend_Controller_Plugin_ErrorHandler(array('module' => 'main' , 'controller' => 'error' , 'action' => 'error')));\n $logger = new Zend_Log();\n if('development' === APPLICATION_ENV){\n $logger->addWriter(new Zend_Log_Writer_Firebug());\n }\n $logger->addWriter(new Zend_Log_Writer_Stream(VAR_PATH . \"logs\" . \"/system_log_\" . @date('Y-m-d') . '.log'));\n App::setLog($logger);\n }", "public function add_logger($logger) {\n\t\t$logger_class_name = ucfirst($logger['type'] . 'Logger');\n\t\t$logger_object = new $logger_class_name;\n\t\tif (class_exists($logger_class_name)) {\n\n\t\t\t// First check to make sure that the logger's level exists\n\t\t\tif (!is_null(@constant('self::' . $logger['level'])))\n\t\t\t{\n\t\t\t\t// Create the logger\n\t\t\t\t$logger_object = new $logger_class_name;\n\n\t\t\t\t// Initialise and set up the logger\n\t\t\t\t$logger_object->set_name($logger['name']);\n\t\t\t\t$logger_object->set_level($logger['level']);\n\t\t\t\t$logger_object->initialise($logger);\n\n\t\t\t\t// Finally store it, keyed by the name assigned to it\n\t\t\t\t$this->_loggers[$logger['name']] = $logger_object;\n\t\t\t}\n\t\t}\n\t}", "public function __construct( $logger ) {\n\t\t$this->logger = $logger;\n\t\tparent::__construct();\n\t}", "private function registerLogWriters($connection = 'rabbitmq')\n {\n if (!$this->option('quiet')) {\n $this->logWriters[] = new Log\\Output($this->laravel, $this->output);\n }\n\n if ($this->laravel['config']->get(\"rabbitevents.connections.$connection.logging.enabled\")) {\n $this->logWriters[] = new Log\\General($this->laravel);\n }\n }", "public static function staticInit() {\n self::$logger = Logger::getLogger(__CLASS__);\n }", "public static function staticInit() {\n self::$logger = Logger::getLogger(__CLASS__);\n }", "public static function staticInit() {\n self::$logger = Logger::getLogger(__CLASS__);\n }", "protected function _initLog()\n {\n // make sure the db bootstrap is done\n $this->bootstrap('db');\n \n // add the logger\n $writer = new SG_Log_Writer_Db();\n $logger = new Zend_Log($writer);\n $logger->registerErrorHandler();\n Zend_Registry::set('SG_Logger', $logger);\n }", "protected function setLoggers(): void\n {\n if (config('core-middleware.loggers')) {\n $this->ray = config('core-middleware.loggers.ray');\n $this->log = config('core-middleware.loggers.log');\n }\n }", "public function setLogger(LoggerInterface $logger):static;", "public function register_logger( $loggerClassName ) {\n\t\t$this->external_loggers[] = $loggerClassName;\n\t}", "public function setLogger(LoggerInterface $log);", "public static function initInstance($level = Logger::WARNING, $loggingPath = null)\n {\n if (!$loggingPath) {\n $loggingPath = APP_DIR . '/tmp/logs/error.log';\n }\n\n self::$instance = new Logger('general');\n self::$instance->pushHandler(new StreamHandler($loggingPath, $level));\n }", "public function testLoggerExists()\n\t{\t\t\n\t\t$this->__Log->setupLogger('test1',new \\Monolog\\Handler\\TestHandler());\n\t\t$this->assertTrue($this->__Log->isLoggerExists('test1'));\n\t\t$this->assertFalse($this->__Log->isLoggerExists('test3'));\n\t}", "public function register($container) {\n $config = Config::getInstance();\n\n $container->sets([\n 'log' => function() use($config){\n if($config->get('debug')){\n $log = new Log();\n } else {\n $log = new File($config->get('log.file', \"/tmp/j.log\"));\n }\n if($config->get('log.defer') && method_exists($log, 'setDefer')){\n $log->setDefer();\n }\n\n if($level = $config->get('log.level') && method_exists($log, 'setMask')){\n $log->setMask($level);\n }\n return $log;\n },\n ], false);\n\n if($config->get('tracer.enable')){\n $container->sets([\n 'tracer' => function() use($config, $container){\n $logger = $config->get('tracer.logger');\n if($logger && is_string($logger)){\n $logger = new File($logger);\n } elseif(!$logger && $container->has('log')){\n $logger = $container->get('log');\n }\n\n if(!is_object($logger)){\n throw new InvalidArgumentException(\"tracer.logger\");\n }\n\n $tracer = new Tracer($logger);\n if($config->get('tracer.debugTrace')){\n $tracer->enableDebugTrace = true;\n }\n return $tracer;\n },\n ], false);\n }\n\n $container->sets([\n 'errorHandle' => [\n 'class' => 'j\\error\\Handle',\n 'arguments' => [\n '@log'\n ]\n ],\n ], false);\n }", "protected function getEventLogger()\n {\n $event_manager = new EventsManager;\n\n $event_manager->attach($this->alias, function ($event, $conn) {\n if ($event->getType() == 'beforeQuery') {\n $logging_name = 'db';\n\n if (logging_extension()) {\n $logging_name = 'db-'.logging_extension();\n }\n\n $logger = new Logger('DB');\n $logger->pushHandler(\n new StreamHandler(\n storage_path('logs').'/'.$logging_name.'.log',\n Logger::INFO\n )\n );\n\n $variables = $conn->getSQLVariables();\n\n if ($variables) {\n $logger->info(\n $conn->getSQLStatement().\n ' ['.implode(',', $variables).']'\n );\n } else {\n $logger->info($conn->getSQLStatement());\n }\n }\n });\n\n return $event_manager;\n }", "protected function configureErrorlogHandler(Royalcms $royalcms, Writer $log)\n\t{\n\t\t$log->useErrorLog();\n\t}", "public static function requireLogger()\n {\n if (!Logger::ready()) {\n throw new Exception(\n 'Logger is missing or incorrect set up.',\n 522001\n );\n }\n }", "function ERROR_LOGGER($f) {error_log($f); }", "public function __invoke(Logger $logger)\n {\n // Configure logging to include files and line numbers\n $introspection = new IntrospectionProcessor(\n \\Monolog\\Logger::DEBUG,\n [\n 'Monolog\\\\',\n 'Illuminate\\\\',\n ]\n );\n\n // Configure LiveIntent logging standardization\n $liveIntent = new LiveIntentLogProcessor();\n\n $logger->pushProcessor($introspection);\n $logger->pushProcessor($liveIntent);\n }", "public function register(Container $container)\n {\n $config = $container['settings']['logger'];\n\n $container['logger'] = function() use ($config) {\n $logger = new Logger($config['name']);\n $logger->pushProcessor(new UidProcessor());\n $logger->pushHandler(new StreamHandler($config['path'], $config['level']));\n\n return $logger;\n };\n }", "private function setupLog()\n {\n $path = JFactory::getConfig()->get('log_path');\n\n $fileName = 'ecr_log.php';\n $entry = '';\n\n if('preserve' == JFactory::getApplication()->input->get('logMode')\n && JFile::exists($path.'/'.$fileName)\n )\n {\n $entry = '----------------------------------------------';\n }\n else if(JFile::exists($path.'/'.$fileName))\n {\n JFile::delete($path.'/'.$fileName);\n }\n\n JLog::addLogger(\n array(\n 'text_file' => $fileName\n , 'text_entry_format' => '{DATETIME}\t{PRIORITY}\t{MESSAGE}'\n , 'text_file_no_php' => true\n )\n , JLog::INFO | JLog::ERROR\n );\n\n if('' != $entry)\n JLog::add($entry);\n\n return $this;\n }", "protected function log()\n {\n\n $this->worker\n ->setInstance($this->instance);\n // If instance can be called\n if($this->worker->ping()) {\n $infos = $this->worker->getInfos();\n $createdAt = new \\DateTime();\n\n $log = $this->logManager->createNew();\n $log->setMemory($infos['Memory']['used_memory']);\n $log->setCpu($infos['CPU']['used_cpu_sys']);\n $log->setNbClients(sizeof($this->worker->getClients()));\n $log->setCreatedAt($createdAt);\n // Add log\n $this->instance->addLog($log);\n }\n }", "public function __invoke(Logger $logger)\n {\n\n foreach ($logger->getHandlers() as $handler) {\n $handler->setFormatter(\n new LineFormatter(\n \"[%datetime%] app.%level_name%: %message% . %context%\\n\"\n )\n );\n }\n }", "public static function bootLoggable()\n {\n static::observe(app(LoggableObserver::class));\n }", "public function __construct() {\n Log::useFiles(storage_path().'/logs/audits.log');\n }", "protected function activateWarningLogger()\n {\n $this->previousErrorHandler = set_error_handler(\n array($this, \"warningHandler\"),\n E_WARNING | E_USER_WARNING | E_NOTICE | E_USER_NOTICE\n );\n }", "public function setLogger(DocBlox_Core_Log $log = null)\n {\n foreach ($this->behaviours as $behaviour) {\n $behaviour->setLogger($log);\n }\n }", "private function registerLogViewer()\n {\n $this->app->singleton('arcanedev.log-viewer', function ($app) {\n /**\n * @var Contracts\\FactoryInterface $factory\n * @var Contracts\\FilesystemInterface $filesystem\n * @var Contracts\\LogLevelsInterface $levels\n */\n $factory = $app['arcanedev.log-viewer.factory'];\n $filesystem = $app['arcanedev.log-viewer.filesystem'];\n $levels = $app['arcanedev.log-viewer.levels'];\n\n return new LogViewer($factory, $filesystem, $levels);\n });\n\n // Registering the Facade\n $this->addFacade('LogViewer', 'Arcanedev\\\\LogViewer\\\\Facades\\\\LogViewer');\n }", "public function enable()\n {\n error_reporting(E_ALL);\n set_error_handler([$this, 'errorHandler']);\n set_exception_handler([$this, 'exceptionHandler']);\n register_shutdown_function([$this, 'fatalHandler']);\n }", "public function setLogPath($logPath = 'logs') {\n $this->logger = new \\Katzgrau\\KLogger\\Logger($logPath, \\Psr\\Log\\LogLevel::DEBUG, array('filename' => 'joblog'));\n $this->logging_enabled = true;\n }", "protected function initLogFileObject() {\n return new ErrorLogFile();\n }", "public function init()\n {\n if (\n !$this->serviceContainer->isRegistered(ServiceContainer::SERVICE_LOGGER)\n || !($this->getLogger() instanceof LoggerInterface)\n ) {\n $this->setService(ServiceContainer::SERVICE_LOGGER, new NullLogger());\n }\n $this->getControllerDispatcher()->setLogger($this->getLogger());\n }", "private function lopen() {\n\t\t// in case of Windows set default log file\n\t\tif (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {\n\t\t\t$log_file_default = dirname(__FILE__).'/log/default_logfile.txt';\n\t\t}\n\t\t// set default log file for Linux and other systems\n\t\telse {\n\t\t\t$log_file_default = dirname(__FILE__).'/log/default_logfile.txt';\n\t\t}\n\t\t// define log file from lfile method or use previously set default\n\t\t$lfile = $this->log_file ? $this->log_file : $log_file_default;\n\t\t// open log file for writing only and place file pointer at the end of the file\n\t\t// (if the file does not exist, try to create it)\n\t\t$this->fp = fopen($lfile, 'a') or exit(\"Can't open $lfile!\");\n\t}", "protected function configureSingleHandler(Writer $log)\n {\n $log->useFiles(\n $this->app->storagePath().'/logs/laravel.log',\n $this->logLevel()\n );\n }", "public function testSetUpLoggerName()\n\t{\t\n\t\t$this->__Log->setupLogger('log_name',new \\Monolog\\Handler\\TestHandler());\n\t\t$logger = $this->__Log->getLogger('log_name');\n\n\t\t$this->assertInternalType('object',$logger);\n\t}" ]
[ "0.6739746", "0.63609195", "0.62981725", "0.6030692", "0.60109514", "0.59167266", "0.58882576", "0.58331466", "0.5797289", "0.5766152", "0.5752577", "0.57494915", "0.5692762", "0.5625293", "0.56187356", "0.56178313", "0.5605429", "0.55914634", "0.5574778", "0.5570233", "0.55592895", "0.55557054", "0.55487806", "0.5545927", "0.55440474", "0.55338466", "0.55250216", "0.54899895", "0.5478386", "0.54671", "0.54664385", "0.5445771", "0.5437749", "0.5434723", "0.54226685", "0.54226154", "0.5411819", "0.54079324", "0.53948075", "0.53912604", "0.5387096", "0.53849196", "0.5366742", "0.5364578", "0.5363878", "0.5344477", "0.53431576", "0.53370297", "0.53295517", "0.53247935", "0.5324154", "0.5323069", "0.5313349", "0.5305629", "0.5299171", "0.5294893", "0.52798533", "0.52727795", "0.526738", "0.5239058", "0.523844", "0.5220782", "0.5195899", "0.5186417", "0.51552993", "0.51371014", "0.51058936", "0.5100093", "0.5098585", "0.5098585", "0.5098585", "0.50978374", "0.50797445", "0.5071666", "0.50644004", "0.5049855", "0.5042756", "0.50394917", "0.50262356", "0.50175977", "0.50128627", "0.5005255", "0.4996773", "0.49933285", "0.49923393", "0.49801415", "0.49766013", "0.49761614", "0.49683294", "0.496453", "0.4963188", "0.4958152", "0.49563605", "0.4952551", "0.49479747", "0.4947931", "0.49465042", "0.49381158", "0.49308276", "0.49275404" ]
0.65516794
1
Detach the error handler
function detach();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function destruct()\n {\n restore_error_handler();\n }", "public function __destruct()\n {\n set_error_handler($this->prevErrorHandler);\n set_exception_handler($this->prevExceptionHandler);\n }", "public function restoreErrorHandler()\n {\n restore_error_handler($this->error_handler);\n }", "public function restoreErrorHandler(): void\n {\n restore_error_handler();\n }", "public function remove(IErrorHandler $errorHandler): void;", "private function restoreErrorHandler() {\n\n\t\terror_reporting( $this->old_error_reporting );\n\t\tif ( ! is_null( $this->old_error_handler ) ) {\n\t\t\tset_error_handler( $this->old_error_handler );\n\t\t} else {\n\t\t\trestore_error_handler();\n\t\t}\n\t}", "function ibase_free_event_handler($event): void\n{\n error_clear_last();\n $safeResult = \\ibase_free_event_handler($event);\n if ($safeResult === false) {\n throw IbaseException::createFromPhpError();\n }\n}", "public static function disengageCaptureHandler() {\n if(self::$captureHandlerSet===true) {\n restore_error_handler();\n self::$captureHandlerSet = false;\n }\n }", "public function onError($instance, $exception) {\n unset($this->_cnt, $this->_cdata, $this->_objs);\n }", "public function shutdownHandler()\n {\n /*\n $err = error_get_last();\n\n if (isset($err['type']) && $err['type'] !== E_WARNING) {\n //$this->exceptionHandler(new ErrorException($err['type'], $err['message'], $err['file'], $err['line']));\n }\n */\n }", "protected function clearError()\n {\n $this->lastError = null;\n }", "function errorHandlerOff()\n\t{\n\t\t$this->bErrorHandler = false;\n\t}", "private function initErrorHandler()\n {\n $handler = new ErrorHandler();\n set_error_handler([$handler, 'handler']);\n }", "public function setupErrorHandler()\n {\n $this->error_handler = set_error_handler(array($this, 'error_handler'));\n }", "public function __destruct() {\n fclose($this->fileHandler);\n }", "public function unregister()\n {\n $previousHandlers = $this->previousHandlers;\n\n foreach ($previousHandlers as $signal => $handler) {\n if (is_null($handler)) {\n pcntl_signal($signal, SIG_DFL);\n\n unset($previousHandlers[$signal]);\n }\n }\n\n $this->setHandlers($previousHandlers);\n }", "public function __destruct()\n {\n if ($this->_fileHandler !== STDOUT && is_resource($this->_fileHandler)) {\n fclose($this->_fileHandler);\n }\n }", "public function detach() {}", "public function detach() {}", "private static function initErrorHandler() {\n\t\t\tset_exception_handler('ErrorHandler::handleExceptions');\n\t\t\tset_error_handler('ErrorHandler::handleErrors');\n\t\t}", "public function handleError($e, $remotePath) {\n $this->data = NULL;\n $this->bufferSize = NULL;\n $this->fileSize = NULL;\n }", "function uncaughtExceptionHandler($exception)\n{\n\techo \"<b>Catch uncaught error.</b><br />\";\n\techo $uncaughtError = new ErrorHandler($exception->getMessage(), $exception->getCode());\n}", "function onError(Ratchet\\ConnectionInterface $conn, Exception $e)\r\n {\r\n echo \"An error has occurred: {$e->getMessage()}\\n\";\r\n $this->clients->detach($conn);\r\n $conn->close();\r\n }", "public function __destruct() {\n\n\t\tif ( $this->link ) {\n\n\t\t\t// errors suppressed here as they are not useful\n\t\t\t@ftp_close( $this->link );\n\t\t}\n\n\t\t// give error handling back to PHP\n\t\trestore_error_handler();\n\t}", "public function setErrorHandler($handler)\n {\n }", "function xthreads_catch_errorhandler() {\r\n\tif(!function_exists('_xthreads_catch_php_error')) { //paranoia\r\n\t\tfunction _xthreads_catch_php_error($errno, $errstr) {\r\n\t\t\t$GLOBALS['_previous_error'] = array($errno, $errstr);\r\n\t\t}\r\n\t}\r\n\tunset($GLOBALS['_previous_error']);\r\n\tset_error_handler('_xthreads_catch_php_error');\r\n}", "protected function handleShutdown(): void\n {\n if (empty($error = \\error_get_last())) {\n return;\n }\n\n try {\n $this->handleError($error['type'], $error['message'], $error['file'], $error['line']);\n } catch (\\Throwable $e) {\n $this->handleGlobalException($e);\n }\n }", "public static function setShudownHandler()\n\t{\n\t $aError = error_get_last();\n\n\t if (($aError['type'] === E_ERROR) || ($aError['type'] === E_USER_ERROR)) {\n\n\t \tself::setErrorHandler($aError['type'], $aError['message'], $aError['file'], $aError['line']);\n\t }\n\t}", "public function __destruct() {\n\t\tif($this->_listeningenabled)\n\t\t\t$this->unlisten();\n\t}", "public function detach()\n {\n // dummy implementation\n }", "protected function _stop_listening(){\r\n\t\t\trestore_error_handler();\r\n\t\t\trestore_exception_handler();\r\n\t\t\terror_reporting();\r\n\t\t\tini_set('display_errors', true);\r\n\t\t}", "protected function deactivateWarningLogger()\n {\n restore_error_handler();\n }", "public function detach(): void\n\t{\n\t\t$this->events->detach($this->type, $this->hook);\n\t}", "function unregister()\n\t{\n\t\trestore_error_handler();\n\t\trestore_exception_handler();\n\t\t$this->_registered = false;\n\t\treturn $this;\n\t}", "public function detach();", "public static function trap_errors_end(){\n\t\t\trestore_error_handler(self::$trapprevhndlr);\n\t\t\treturn self::handle_trap();\n\t\t}", "protected function customErrorHandler()\n {\n /**\n * @var ErrorHandler $errorHandler\n */\n $errorHandler = \\container()->get(ErrorHandler::class);\n $errorHandler->init();\n }", "public function onShutdown()\n {\n // Get the last error if there was one, if not, let's get out of here.\n if (!$error = error_get_last()) {\n return;\n }\n\n if (!($error['type'] & (E_ERROR|E_PARSE|E_CORE_ERROR|E_COMPILE_ERROR|E_USER_ERROR|E_RECOVERABLE_ERROR))) {\n return;\n }\n\n $this->notifier->notify(\n new \\ErrorException($error['message'], $error['type'], $error['type'], $error['file'], $error['line'])\n );\n }", "public function detach() {\n\t\t$handle = $this->handle;\n\t\t$this->handle = null;\n\t\treturn $handle;\n\t}", "public function detach()\n {\n $this->fclose();\n }", "function __reset_error() {\n\n $this->__set_error();\n\n}", "public function handleShutdown()\n {\n if (!is_null($error = error_get_last())) {\n $this->handleException(\n new ErrorException($error['message'], $error['type'], 0, $error['file'], $error['line'])\n );\n }\n }", "public function handleError($e, $remotePath) {\n $this->fileSize = NULL;\n }", "public function __destruct(){\r\n $this->cerrar(FALSE);\r\n }", "function err_unlink($dest) {\n\t set_error_handler(\"report_errors\");\n\t $ret = unlink($dest);\n\t restore_error_handler();\n\t return $ret;\n }", "function PopError()\n {\n }", "public function clearError() {\n $this->errors = array();\n }", "public function __destruct() {\n\t\t$this->unregister();\n\t}", "protected function __del__() { }", "public function onShutdown($error);", "function __destruct(){\n try{\n $this->__send_response();\n } catch (\\Exception $e) {\n error_log($e->getCode() . \": \" . $e->getMessage());\n error_log(implode(\"\\n\", $e->getTrace()));\n }\n }", "public static function hide_errors(){\n\t\t\tself::$SHOWING_ERRORS=false;\n\t\t\trestore_error_handler();\n\t\t\trestore_exception_handler();\n\t\t}", "function __destruct() {\n $this->connection = null;\n }", "public function shutdownFunction() {\n\t\tif ($this->runShutdown) {\n\t\t\t$e = error_get_last();\n\n\t\t\t// run regular error handling when there's an error\n\t\t\tif (isset($e['type'])) {\n\t\t\t\t$this->handleError($e['type'], $e['message'], $e['file'], $e['line'], null);\n\t\t\t}\n\t\t}\n\t}", "function errorHandlerOn()\n\t{\n\t\t$this->bErrorHandler = true;\n\t}", "public function __destruct() {\n\t\ttry{\n\t\t parent::__destruct();\n\t\t } catch(Exception $e){\n\t\techo $e->errorMessage();\n\t\t}\n\t}", "public static function tryError()\n\t{\n\t\tset_error_handler(array(__CLASS__, '_errorHandler'), E_ALL);\n\t\tself::$errorMsg = NULL;\n\t}", "protected function initializeErrorHandling() {}", "public function __destruct()\n {\n // in that case, we keep the error message\n if (is_null(Thread::getOutput())) {\n Thread::setOutput(ob_get_clean());\n }\n new TempFilesManager(Thread::getOutputFile(), Thread::getOutput());\n }", "static public function deleteHandlers()\n\t{\n\t\tself::$handlers = array();\n\t}", "public function __destruct()\n\t{\n\t\tif ( ! $this->enable_debug)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tif ( ! empty($this->errors))\n\t\t{\n\t\t\tforeach ($this->errors as $key => $e)\n\t\t\t{\n\t\t\t\techo '<pre>'.$e.'</pre>';\n\t\t\t}\n\t\t}\n\t}", "function ClearError() \r\n{ \r\n$this->LastError = null; \r\n}", "public function setErrorsHandler(callable $handler)\n {\n }", "function delete_error(){\n\t$_SESSION[\"error\"] = null;\n\n\tsession_unset();\n}", "public function _shutdown()\n\t{\n\t\tif ($this->_registered && $error = error_get_last())\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// clear the output buffer if we can\n\t\t\t\tif(ob_get_level()>=1) ob_end_clean();\n\n\t\t\t\t// build an error exception\n\t\t\t\tif (isset($error['type']) && in_array($error['type'],\n\t\t\t\t\tarray(E_ERROR, E_PARSE, E_COMPILE_ERROR)))\n\t\t\t\t{\n\t\t\t\t\t$this->_handleError(\n\t\t\t\t\t\t$error['type'],\n\t\t\t\t\t\t$error['message'],\n\t\t\t\t\t\t$error['file'],\n\t\t\t\t\t\t$error['line']\n\t\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception $e)\n\t\t\t{\n\t\t\t}\n\t\t}\n\t}", "function shutdown_handler() {\n ini_set(\"error_log\", \"/tmp/php-error.log\");\n $error = error_get_last();\n\n if(!is_null($error)) {\n # http://us1.php.net/manual/en/errorfunc.constants.php\n $info = array(\n 'error' => var_export($error, true)\n );\n\n $url = ($_SERVER['SERVER_PORT'] == 443 ? 'https' : 'http').'://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];\n $args = <<<EOT\nurl : {$url}\nerror : {$info['error']}\nEOT;\n error_log($args, 0);\n }\n }", "private function shutDownFunction() {\n\t\t$error = error_get_last();\n\t\tif ( isset( $error ) ) {\n\t\t\tif ( $error['type'] === E_ERROR ) {\n\t\t\t\tEE::warning( 'An Error occurred. Initiating clean-up.' );\n\t\t\t\t$this->logger->error( 'Type: ' . $error['type'] );\n\t\t\t\t$this->logger->error( 'Message: ' . $error['message'] );\n\t\t\t\t$this->logger->error( 'File: ' . $error['file'] );\n\t\t\t\t$this->logger->error( 'Line: ' . $error['line'] );\n\t\t\t\t$this->rollback();\n\t\t\t}\n\t\t}\n\t}", "public static function clearCapturedErrors() {\n self::$capturedErrors = array();\n }", "public function __destruct() {\n try {\n $this->release();\n }\n catch (\\Throwable $ex) { throw ErrorHandler::handleDestructorException($ex); }\n catch (\\Exception $ex) { throw ErrorHandler::handleDestructorException($ex); }\n }", "function error_clear_last(){\n\t// var_dump or anything else, as this will never be called because of the 0\n\tset_error_handler('var_dump', 0);\n\t@$error_clear_tmp523457901;\n\trestore_error_handler();\n\n\tvar_dump(error_get_last());\n}", "public function handle(\\Exception $error);", "public function handleShutdown() {\n\t\t$last_error = error_get_last();\n\t\tif ( !empty( $last_error ) ) {\n\t\t\t$this->handleError(\n\t\t\t\t$last_error['type'],\n\t\t\t\t$last_error['message'],\n\t\t\t\t$last_error['file'],\n\t\t\t\t$last_error['line']\n\t\t\t);\n\t\t}\n\t}", "public function __destruct()\n {\n $this->connection = null;\n }", "public function __destruct()\n {\n $this->connection = null;\n }", "public function __destruct() {\n exit((int)$this->_failed);\n }", "public function resetErrors() {}", "public function __destruct() {\n $this->conn = null;\n }", "public function detach()\n {\n // TODO\n }", "public function onHandleClosed() {}", "protected static function linkErrorHandlers() {\r\n\t\t\t$errorHandler = Configure::read('Error.Handler');\r\n\t\t\t$errorLevel = Configure::read('Error.Level');\r\n\t\t\t$exceptionHandler = Configure::read('Exception.Handler');\r\n\t\t\t// enable error handler\r\n\t\t\tset_error_handler($errorHandler, $errorLevel);\r\n\t\t\t// enable exception handler\r\n\t\t\tset_exception_handler($exceptionHandler);\r\n\t\t}", "public static function trap_errors_begin(){\n\t\t\tself::$trapprevhndlr=set_error_handler(array('Errors','handle_trap'));\n\t\t}", "public function __destruct() {\n $conn = null;\n }", "function as_error_handler($errno, $errstr, $errfile, $errline){\n\t\t$msg = 'Error('.$errno.') '.$errstr.' in '. $errfile.':'. $errline;\n\t\t$this->catch_error( $msg, 'clickgs plugin crashed');\n\t}", "public function __destruct()\n\t{\n\t\t$this->handle->free($this->result);\n\t}", "public function __destruct() {\r\n\t\ttry {\r\n\t\t\t$this->disconnect();\r\n\t\t} catch (\\Exception $e) { // avoid fatal error on script termination\r\n\t\t}\r\n\t}", "function ts3client_destroyServerConnectionHandler($serverConnectionHandlerID) {}", "function __destruct() {\n\t\tif ( $this->_Validator instanceof utilityValidator ) {\n\t\t\t$this->_Validator = null;\n\t\t}\n\t}", "function __destruct() {\n\t\tif ( $this->_Validator instanceof utilityValidator ) {\n\t\t\t$this->_Validator = null;\n\t\t}\n\t}", "function __destruct() {\n\t\tif ( $this->_Validator instanceof utilityValidator ) {\n\t\t\t$this->_Validator = null;\n\t\t}\n\t}", "function OnAfterError(){\n }", "public function tearDown()\n {\n unset($this->app);\n unset($_SERVER['RouteManagerTest@callback']);\n m::close();\n }", "function handler(Error $error)\n {\n }", "public function detach()\n\t{\n\t\tif (null !== $this->shmId) {\n\t\t\tshmop_close($this->shmId);\n\t\t\t$this->shmId = null;\n\t\t}\n\t}", "public function __destruct()\n\t{\n\t\t$this->detach();\n\t}", "function __destruct() {\r\n\t\t$this->disconnect();\r\n\t}", "private static function unhook(string $fn, string $handler) {\n\t\t\tself::error(\"Interceptor error\" ,\"Unhook is not implemented\");\n\t\t}", "public static function Close()\n {\n self::$_mHandler = null;\n }", "function delete_error_without_signing_out(){\n\t$_SESSION[\"error\"] = null;\n}", "public static function sessionDestroyHandler();", "public function handleErrors()\n {\n if ( $this->count() > 0 ) {\n foreach( $this->getStorage() as $handler) {\n if ($handler instanceof HandlerInterface) {\n $handler->handleErrors();\n }\n }\n }\n }", "protected function handleShutdown()\n {\n if (! is_null($error = error_get_last()) && $this->isFatalError($error['type'])) {\n $this->handleUncaughtException(new FatalErrorException(\n $error['message'], $error['type'], 0, $error['file'], $error['line']\n ));\n }\n }" ]
[ "0.75664634", "0.69011974", "0.6808269", "0.66556466", "0.6476372", "0.5883651", "0.58746034", "0.58707726", "0.5821805", "0.5771025", "0.56899726", "0.5676582", "0.5663106", "0.5639935", "0.5565221", "0.5533388", "0.5533084", "0.55019474", "0.55019474", "0.54761046", "0.5431139", "0.54306555", "0.54241836", "0.5394527", "0.537447", "0.53693575", "0.53597707", "0.5358012", "0.5355855", "0.53507775", "0.5312162", "0.53119", "0.53011304", "0.5284519", "0.52406067", "0.5237565", "0.52309036", "0.5228225", "0.52250856", "0.52178144", "0.5217255", "0.5205866", "0.5197833", "0.51853806", "0.5172383", "0.51700443", "0.5161619", "0.5160261", "0.5159825", "0.5153699", "0.5152704", "0.5139073", "0.5127414", "0.5123107", "0.5116883", "0.51128304", "0.5110543", "0.5109431", "0.5108023", "0.51074666", "0.50995415", "0.50966156", "0.50907654", "0.50894964", "0.50893015", "0.5085277", "0.50649023", "0.5064541", "0.50638396", "0.50615656", "0.506001", "0.5059231", "0.5055826", "0.5055826", "0.50390613", "0.50357115", "0.50339544", "0.50293386", "0.5005779", "0.49980503", "0.49939767", "0.4983649", "0.4981745", "0.49790424", "0.49634764", "0.4947268", "0.49403095", "0.49403095", "0.49403095", "0.49246868", "0.49236113", "0.49207294", "0.49144062", "0.49114066", "0.4905969", "0.49058497", "0.4904652", "0.48959205", "0.4888552", "0.48861027", "0.48834792" ]
0.0
-1
Catch the specified exception
function raise(\Exception $ex);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function handleException($exception);", "public function catchException()\n {\n // get the current exception\n $e = $this->getException();\n\n // throw a copy, with the original as the previous exception so that\n // we can see a full trace.\n $class = get_class($e);\n throw new $class($e->getMessage(), $e->getCode(), $e);\n }", "function exceptionCatcher($exception) {\n\tstopForError($exception->getMessage(), $exception->getCode(), $exception->getFile(), $exception->getLine(), $exception->getTraceAsString());\n}", "function rescue($exception) {\n return $this->dispatcher->trails_error($exception);\n }", "public function getException();", "public static function handle_exception($e) {\n\t\tswitch ( get_class($e) ) {\n\t\t\tcase 'NumbatDBError':\n\t\t\tcase 'PDOException':\n\t\t\t\t$type = 'db';\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$type = 'uncaught';\n\t\t\t\tbreak;\n\t\t}\n\n\t\t$config = array();\n\t\tif($type == 'db' && get_class($e) == 'NumbatDBError')\n\t\t\t$config = $e->getConfig();\n\n\t\tnumbat_primative_die($e->getMessage(), $type, $config);\n\t}", "abstract protected function handleError(\\Exception $e);", "private function handleException($e)\n {\n // TODO: test coverage\n if ($e instanceof ClientException) {\n // will catch all 4xx errors\n if ($e->getResponse()->getStatusCode() == 403) {\n throw new AuthenticationException(\n $this->apiKey,\n $this->apiSecret,\n null,\n $e\n );\n } else {\n throw new DomainException(\n 'The OpenTok API request failed: ' . json_decode($e->getResponse()->getBody(true))->message,\n null,\n $e\n );\n }\n } else if ($e instanceof ServerException) {\n // will catch all 5xx errors\n throw new UnexpectedValueException(\n 'The OpenTok API server responded with an error: ' . json_decode($e->getResponse()->getBody(true))->message,\n null,\n $e\n );\n } else {\n // TODO: check if this works because Exception is an interface not a class\n throw new Exception('An unexpected error occurred');\n }\n }", "protected static function catchException($query, $e) {\n self::destroyCon();\n $err = \"<p>Problem running this query: $query </p>\";\n $err .= \"<p>Exception: $e</p>\";\n trigger_error($err);\n }", "public function handleException($exception)\n {\n //if application is on production keep silent\n if (\\App::environment('production'))\n \\Log::error($exception->getMessage());\n\n //Eloquent Model Exception\n else if ($exception instanceof ModelNotFoundException)\n throw new ModelNotFoundException($exception->getMessage());\n\n //DB Error\n else if ($exception instanceof PDOException)\n throw new PDOException($exception->getMessage());\n\n else if ($exception instanceof BadMethodCallException)\n throw new BadMethodCallException($exception->getMessage());\n\n //Through general Exception\n else\n throw new Exception($exception->getMessage());\n\n }", "public function handle() {\n throw new Exception(\"This is a test exception.\");\n }", "protected function catchException(\\Exception $e) {\n if ($this->connection->schema()->tableExists(static::TABLE_NAME)) {\n throw $e;\n }\n }", "function as_exception_handler($e){\n\t\t$msg = 'Error('.$e->getCode().') '. $e->getMessage().' in '. $e->getFile().':'. $e->getLine();\n\t\t$this->catch_error($msg, 'clickgs plugin crashed');\n\t}", "public function caught( $ex ) {\n//\t\tob_end_clean();\n\n\t\t$class = get_class($ex);\n\t\tswitch ( $class ) {\n\t\t\tcase 'row\\database\\ModelException':\n\t\t\tcase 'row\\database\\NotEnoughFoundException':\n\t\t\tcase 'row\\database\\TooManyFoundException':\n\t\t\t\texit('[Database Model error] '.$ex->getMessage().'');\n\t\t\tcase 'row\\http\\NotFoundException':\n\t\t\tcase 'row\\OutputException':\n\t\t\tcase 'row\\core\\VendorException':\n//\t\t\t\tob_end_clean();\n//\t\t\t\treturn $this->_internal('errors/notfound', array('exception' => $ex));\n\t\t\t\texit('[404] ['.$class.'] Not Found: '.$ex->getMessage());\n\t\t\tcase 'row\\core\\MethodException':\n\t\t\tcase 'ErrorException':\n\t\t\t\texit('Parse/runtime error: '.$ex->getMessage().'');\n\t\t\tcase 'row\\database\\DatabaseException':\n\t\t\t\texit('[Database/Query error] '.$ex->getMessage().'');\n\t\t}\n\n\t\texit('Unknown ['.get_class($ex).'] encountered: '.$ex->getMessage().'');\n\t}", "public function support(\\Exception $exception);", "public static function handleException($exception) {\n $file = $exception->getFile();\n $line = $exception->getLine();\n $errMessage = $exception->getMessage();\n $trace = $exception->getTraceAsString();\n $error = \"$file:$line $errMessage $trace\";\n $logger = Container::getService('Logger');\n $logger->excpt($error);\n self::sendError($errMessage);\n exit;\n }", "protected function exceptions($exception){\n\t\tthrow $exception;\n\t}", "public function handleException(Exception $exception) {\n\t\t// perform normal error handling (logging)\n\t\t$this->handleProblem(get_class($exception), $exception->getMessage(), $exception->getFile(), $exception->getLine(), $exception->getCode());\n\n\t\t// always die away if *really* severe\n\t\t$this->aaaauuuggghhhh($exception);\n\t}", "public function handleException(\\Throwable $exception) : void\n {\n throw $exception;\n }", "public function handleException(Exception $exception)\n {\n newrelic_notice_error($exception->getMessage(), $exception);\n }", "public function handleException(\\Exception $exception): void;", "public static function handleException($exception) {\n\t\t$error = new Error(\n\t\t\tError::ERROR, $exception->getCode(),\n\t\t\t$exception->getMessage(), $exception->getFile(),\n\t\t\t$exception->getLine()\n\t\t);\n\n\t\tself::onError($error);\n\t}", "function handleException(Exception $ex)\n{\n\techo \"There was an error: {$ex}\";\n}", "public function handleExceptions($e)\n {\n if (!$e instanceof Exception) {\n $e = new FatalThrowableError($e);\n }\n }", "public static function handleException( $e )\n\t{\n\t\t$details['type'] = get_class( $e );\n\t\t$details['code'] = $e->getCode();\n\t\t$details['message'] = $e->getMessage();\n\t\t$details['line'] = $e->getLine();\n\t\t$details['file'] = $e->getFile();\n\t\t$details['trace'] = $e->getTrace();\n\t\t\n\t\tself::bluescreen( $details );\n\t}", "public static function throw_exception($exception=null){\n\t\t\tself::handle_exceptions($exception);\n\t\t}", "public function apply(Exception $ex);", "function handler($ex) {\n echo \"In exception handler\\n\";\n}", "protected function handleException(Exception $exception) {\n\n $client = $this->startClient();\n\n Yii::log('sending exception report to Airbrake');\n $client->notifyOnException($exception);\n \n parent::handleException($exception);\n }", "public function getException(): Throwable;", "public function getException(): Throwable;", "protected function caughtException(\\Exception $e)\n {\n $this->caughtException = $e;\n }", "public static function exception($exception) {\n self::_run($exception->getMessage(), $exception->getFile(), $exception->getLine(), $exception->getTrace());\n }", "protected function handleException(\\Exception $e)\n {\n if ($cb = $this->errorHandler) {\n $cb($e);\n }\n }", "private function handleException(\\Exception $exception)\n {\n $contents = json_decode($exception->getResponse()->getBody()->getContents());\n\n $errors = $contents->errors ?? [];\n\n foreach ($errors as $key => $error) {\n $errors[$key] = $error->code . ': ' . $error->message;\n }\n\n $this->api->setErrors($errors);\n }", "static function exceptionHandler (\n\t $exception)\n\t{\n\t\tself::event('pie/exception', compact('exception'));\n\t}", "public function handle(\\Exception $error);", "protected function handleException(Exception $e)\n\t{\n\t\t// use it's toArray function to ger all errors\n\t\tif( $e instanceOf CongraphException )\n\t\t{\n\t\t\treturn $this->handleCongraphException($e);\n\t\t}\n\n\t\t// if it's some other exception return 500 error from exception\n\t\treturn $this->handleGenericException($e);\n\t}", "public static function handleException($e)\n {\n self::setHeader($e);\n //TODO quitar el extract, que el view pida los que necesite\n extract(Router::get(), EXTR_OVERWRITE);\n // Registra la autocarga de helpers\n spl_autoload_register('kumbia_autoload_helper', true, true);\n\n $Controller = Util::camelcase($controller);\n ob_start();\n if (PRODUCTION) { //TODO: añadir error 500.phtml\n include APP_PATH . 'views/_shared/errors/404.phtml';\n return;\n }\n if ($e instanceof KumbiaException) {\n $view = $e->view;\n $tpl = $e->template;\n } else {\n $view = 'exception';\n $tpl = 'views/templates/exception.phtml';\n }\n //Fix problem with action name in REST\n $action = $e->getMessage() ? $e->getMessage() : $action;\n\n include CORE_PATH . \"views/errors/{$view}.phtml\";\n \n $content = ob_get_clean();\n\n // termina los buffers abiertos\n while (ob_get_level ()) {\n ob_end_clean();\n }\n include CORE_PATH . $tpl;\n }", "public function handle_exceptions($exception)\n\t{\n\t\t\\Sentry\\captureLastError();\n\n\t\t$message = \"\\nError Type: \".get_class($exception).\"\\n\";\n\t\t$message .= \"Error Message: \".$exception->getMessage().\"\\n\";\n\t\t$message .= \"In File: \".$exception->getFile().\"\\n\";\n\t\t$message .= \"At Line: \".$exception->getLine().\"\\n\";\n\t\t$message .= \"Platform: \" . PHP_VERSION . \" (\" . PHP_OS . \")\\n\";\n\n\t\t$message .= \"\\nBACKTRACE\\n\";\n\t\t$message .= $exception->getTraceAsString();\n\t\t$message .= \"\\nEND\\n\";\n\n\t\t$this->_forward_error($message);\n\t}", "function handle_error($exception) {\n try {\n print $this->encode(array(\n 'error' => $exception->getMessage(),\n 'message' => $exception->getMessage(), // Should be a i18n end user message\n 'data' => @$exception->data,\n 'status' => @$exception->status\n ));\n } catch(Exception $e) {\n echo 'Error: '.$e->getmessage();\n }\n }", "private function handleException($e) \n {\n $res = json_encode(\n [ 'error' => $e->getResponse()->getReasonPhrase() ]\n );\n\n return $this->decode($res);\n }", "public function handleException(Exception $e)\n {\n watchdog('Award Force API', $e->getMessage(), array(), WATCHDOG_ERROR);\n\n exit(t('An error has occurred. Please try again, and if the problem persists, contact the system administrator.'));\n }", "public static function exception_handler($exception) {\n die('Uncaught exception: '. $exception->getMessage());\n }", "public static function handle(\\Exception $exception) {\r\n // Creation du message\r\n $message = 'Uncaught exception ' . get_class($exception) . ' with message \"' . $exception->getMessage() . '\" in ' . $exception->getFile() . '(' . $exception->getLine() . \")\" . PHP_EOL . $exception->getTraceAsString();\r\n\r\n // Log de l'exception\r\n if (self::getLogger()->isErrorEnabled()) {\r\n self::getLogger()->error($message);\r\n }\r\n\r\n // Affichage du message d'erreur\r\n echo $message;\r\n\r\n // Arret inconditionnel du traitement\r\n exit;\r\n }", "public static function exceptionCatcher(WalrusException $exception)\n {\n self::exceptionHandler($exception);\n }", "public function handleException(\\Throwable $exception)\n {\n $handlerException = null;\n\n if (!$this->loggedErrors) {\n if (false !== strpos($message = $exception->getMessage(), \"@anonymous\\0\")) {\n $message = \"Anonymous Class Exception\"; //call class not found exception here\n }\n\n if ($exception::ERROR == self::PERMISSION_DENIED) \n $message = self::PERMISSION_DENIED . '<br>';\n elseif($exception::ERROR == self::NOT_FOUND)\n $message = self::NOT_FOUND . '<br>';\n if (strpos($exception->getMessage(), \"FatalError\")) {\n $message .= '<br>Fatal Error: ';\n } elseif ($exception instanceof \\Error) {\n $message .= '<br>Uncaught Error: ';\n } elseif ($exception instanceof ErrorException) {\n $message .= '<br>Uncaught ';\n } elseif ($exception instanceof BaseForbiddenException) {\n $message .= 'Permission Error: ';\n }elseif($exception instanceof PageNotFoundException){\n $message .= 'Not Found Error: ';\n } else{\n $message .= '<br>Uncaught Exception: ';\n }\n\n try {\n $this->log($message, ['exception' => $exception]);\n } catch (\\Throwable $handlerException) {\n echo $handlerException->getMessage();\n }\n }\n\n if ($exception instanceof OutOfMemoryError) {\n $this->log($exception->getMessage(), ['exception' => $exception, 'type' => 'OutOfMemoryError']);\n }\n $loggedErrors = $this->loggedErrors;\n $this->loggedErrors = $exception === $handlerException ? 0 : $this->loggedErrors;\n }", "public function catchException(Bootstrap $bootstrap, \\Exception $exception)\n {\n return false;\n }", "function exceptionHandler($exception) {\n\t$errno = E_USER_ERROR;\n\t$type = get_class($exception);\n\t$message = \"Uncaught \" . $type . \": \" . $exception->getMessage();\n\t$file = $exception->getFile();\n\t$line = $exception->getLine();\n\t$context = $exception->getTrace();\n\tDebug::fatalHandler($errno, $message, $file, $line, $context);\n}", "function handleException( $exception ) {\n echo \"Sorry, a problem occurred. Please try later.\";\n error_log( $exception->getMessage() );\n}", "public static function exception_handler($exception) { \n ResponseFactory::send($exception->getMessage()); //Send exception message as response.\n }", "protected static function exception()\n {\n foreach (self::fetch('exceptions') as $file) {\n Bus::need($file);\n }\n }", "function exception_handler($ex) {\n // now let the plugin send the exception to client\n $this->send_error($ex);\n // not much else we can do now, add some logging later\n exit(1);\n }", "public function exception_handler(Exception $e)\n {\n $type = get_class($e);\n $code = $e->getCode();\n $message = $e->getMessage();\n $file = $e->getFile();\n $line = $e->getLine();\n $trace = $e->getTrace(); // Get the exception backtrace\n\n $msg = \"errno:{$code}\" . PHP_EOL;\n $msg .= \"errstr:{$message}\" . PHP_EOL;\n $msg .= \"errfile:{$file}\" . PHP_EOL;\n $msg .= \"errline:{$line}\" . PHP_EOL;\n\n // Display the exception text\n $this->send_datagrams($this->client_info['id'], null, $this->client_info['secret_key'], false, \"API服务内部错误\", $msg);\n }", "abstract protected function logException(\\Exception $ex);", "function act() {\n throw $this->exception;\n }", "function exception_error_handler($errno, $errstr, $errfile, $errline ) {\n throw new \\ErrorException($errstr, 0, $errno, $errfile, $errline);\n}", "function handleException($e) {\r\n\ttry {\r\n\t\tif (!($e instanceof \\Exception)) throw $e;\r\n\t\t\r\n\t\tif ($e instanceof IPrintableException || $e instanceof \\wcf\\system\\exception\\IPrintableException) {\r\n\t\t\t$e->show();\r\n\t\t\texit;\r\n\t\t}\r\n\t\t\r\n\t\t// repacking\r\n\t\t(new SystemException($e->getMessage(), $e->getCode(), '', $e))->show();\r\n\t\texit;\r\n\t}\r\n\tcatch (\\Throwable $exception) {\r\n\t\tdie(\"<pre>WCF::handleException() Unhandled exception: \".$exception->getMessage().\"\\n\\n\".$exception->getTraceAsString());\r\n\t}\r\n\tcatch (\\Exception $exception) {\r\n\t\tdie(\"<pre>WCF::handleException() Unhandled exception: \".$exception->getMessage().\"\\n\\n\".$exception->getTraceAsString());\r\n\t}\r\n}", "protected function handle_exception($exception) {\n $this->redis_connected = false;\n\n // When Redis is unavailable, fall back to the internal cache by forcing all groups to be \"no redis\" groups\n $this->ignored_groups = array_unique(array_merge($this->ignored_groups, $this->global_groups));\n\n if (! $this->fail_gracefully) {\n throw $exception;\n }\n\n error_log($exception);\n\n if (function_exists('do_action')) {\n do_action('redis_object_cache_error', $exception);\n }\n }", "public function handleException($exception)\n {\n // Ignore if the error is suppressed by using the shut-up operator @\n if (error_reporting() === 0) {\n return;\n }\n\n if (is_object($this->systemLogger)) {\n $options = $this->resolveCustomRenderingOptions($exception);\n if (isset($options['logException']) && $options['logException']) {\n if ($exception instanceof \\Throwable) {\n if ($this->systemLogger instanceof ThrowableLoggerInterface) {\n $this->systemLogger->logThrowable($exception);\n } else {\n // Convert \\Throwable to \\Exception for non-supporting logger implementations\n $this->systemLogger->logException(new \\Exception($exception->getMessage(), $exception->getCode()));\n }\n } elseif ($exception instanceof \\Exception) {\n $this->systemLogger->logException($exception);\n }\n }\n }\n\n switch (PHP_SAPI) {\n case 'cli':\n $this->echoExceptionCli($exception);\n break;\n default:\n $this->echoExceptionWeb($exception);\n }\n }", "private function throwException()\n {\n throw new CacheException(\\odbc_errormsg(), (int) \\odbc_error());\n }", "public static function exception_handler($exception) {\n\t\tdie('Uncaught exception: '. $exception->getMessage());\n\t}", "public function exceptionHandler(\\Exception $exception)\n {\n $this->displayException($exception);\n }", "private function processException($exception)\n {\n $response = $exception->getResponse();\n $statusCode = isset($response) ? $response->getStatusCode() : null;\n\n throw new ApiException(\n sprintf('[%d] Error connecting to the API (%s); Message: (%s)', $statusCode, $exception->getRequest()->getUri(), $exception->getMessage()), $statusCode\n );\n }", "protected function handleException($e)\n {\n switch (ENV) {\n case 'production':\n $this->renderException($e);\n break;\n default:\n $this->reportException($e);\n break;\n\n }\n }", "public function exceptionHandler($exception)\n {\n try {\n if (!$this->getClient())\n return;\n\n // Send the exception!\n return $this->getClient()->SendException($exception, $this->getTags());\n } catch (Exception $e) {\n // Welp, most likely the database is missing so we can't get the Raygun API key.\n // Let Magento log this to file and we will get it later.\n }\n }", "public function failed($exception)\n {\n // Send user notification of failure, etc...\n dd($exception);\n }", "public function test_ThrowableException()\n {\n try {\n throw new \\RuntimeException(\"some exception\");\n } catch (\\Exception $e) {\n\n } catch (\\Throwable $e) {\n\n }\n\n $this->assertTrue(true);\n }", "public function onException(GetResponseForExceptionEvent $event)\n {\n $this->stats->increment('exception');\n }", "public static function exception_handler($exception) {\n error_log(\"Uncaught exception: \". $exception->getMessage());\n die(1);\n }", "protected function tossIfException()\n\t{\n\t\tif ($this->exception) {\n\t\t\tthrow $this->exception;\n\t\t}\n\t}", "protected function caughtException(Exception $e)\n {\n $this->logger->debug(__CLASS__ . \" caught exception \" . get_class($e));\n $this->dispatcher->__invoke(array(\n 'action' => 'aura.web_kernel.caught_exception',\n 'exception' => $e,\n ));\n }", "public function convertException(Throwable $exception): Throwable;", "function exception_handler(Exception $exception)\n{\n\tglobal $config;\n\n\t$message = $exception->getMessage() . \" on line \" . $exception->getLine() . \" in file \" . $exception->getFile();\n\terror_log(date('r') . ' ' . $message . PHP_EOL, 3, $config['log']);\n}", "function uncaught_exception($o){\n $o['message'] = Trace::exceptionToText($o['exception']);\n $o['trace'] = Trace::exFullTrace($o['exception']);\n unexpected_failure($o);\n }", "public function testException()\n {\n throw new ThumbNotFoundException;\n }", "function myExceptionHandler($exception) {\n\techo \"Triton: Uncaught exeption; <p>\" . $exception->getMessage() . \"<p><pre>\" . $exception->getTraceAsString(), \"</pre>\"; // punkt här emellan???\n}", "public function handleException(\\Throwable $e)\n {\n $this->app->log->error($e->getMessage());\n\n $this->report($e);\n\n $this->throwFatalException($e);\n\n throw $e;\n }", "public function getException(){\n return $this->_exception;\n }", "function exception_error_handler( $errno, $errstr, $errfile, $errline ) {\n throw new ErrorException( $errstr, $errno, 0, $errfile, $errline );\n}", "protected function onHandleError($exception)\n {\n $message = $exception->getMessage();\n Yii::log($message, CLogger::LEVEL_ERROR);\n throw $exception;\n }", "public static function handler( exception $e ) {\n try {\n // устанавливаем ошибку в контроллер, что бы не рендерил представление\n K_Controller::setError();\n\n // Get the exception information\n $type = get_class( $e );\n $code = $e->getCode();\n $message = $e->getMessage();\n $file = $e->getFile();\n $line = $e->getLine();\n\n // Get the exception backtrace\n $trace = $e->getTrace();\n\n if ( $e instanceof ErrorException ) {\n if ( isset( K_Exception::$php_errors[$code] ) ) {\n // Use the human-readable error name\n $code = K_Exception::$php_errors[$code];\n }\n\n }\n\n // Create a text version of the exception\n $error = K_Exception::text( $e );\n\n if ( K_Request::isAjax() === true ) {\n // Just display the text of the exception\n echo \"\\n{$error}\\n\";\n // добовляем ошибку в логгер и дебагер\n K_Log::get()->add( $error );\n K_Debug::get()->add( $error, $trace );\n exit( 1 );\n }\n echo \"\\n{$error}\\n\";\n\n // добовляем ошибку в логгер и дебагер\n K_Log::get()->add( $error );\n K_Debug::get()->addError( $error, $trace );\n\n exit( 1 );\n }\n catch ( exception $e ) {\n // Clean the output buffer if one exists\n ob_get_level() and ob_clean();\n\n // Display the exception text\n echo K_Exception::text( $e ), \"\\n\";\n\n // Exit with an error status\n exit( 1 );\n }\n }", "public function _handleException($e)\n\t{\n\t\tif(!$this->_inError && $handler = $this->_application->errorHandler())\n\t\t{\n\t\t\t$this->_inError = true;\n\t\t\t$handler->handle($e);\n\t\t\t$this->_inError = false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(php_sapi_name() == 'cli')\n\t\t\t{\n\t\t\t\techo $e->__toString();\n\t\t\t\texit(1);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\theader('HTTP/1.1 500 Internal Server Error');\n\n\t\t\t\techo \"<h1>Error: \".$e->getMessage().'</h1>';\n\t\t\t\techo '<pre>'.$e->__toString().'</pre>';\n\t\t\t\texit(1);\n\t\t\t}\n\t\t}\n\t}", "function throwError($exceptionItem){\n\techo \"\n\t\n\t<p style='font-family:arial;color:red;font-size:20px;'> Error parsing : . $exceptionItem->error_message \n\t\n\t</p>\"; // catch this in the parse method and do $e->getMessage() to show it.\n\n\t//break; // try and break the current loop\n\n\n}", "private function error(\\Exception $e)\n {\n if (!$this->optionMuteAllErrors) {\n if ($this->errorHandler) {\n $errorHandler = $this->errorHandler;\n $errorHandler($e);\n } else {\n throw $e;\n }\n }\n }", "protected function parseException($exception){\n //trigger_error($exception->getMessage().\"\\n\".$exception->getTraceAsString(), E_USER_ERROR);\n echo $exception->getMessage().\"\\n\".$exception->getTraceAsString();\n $this->addToLog($exception->getMessage());\n }", "function &catchIt($args = null){\r\n\t\tglobal $PDBCExceptionException;\r\n\t\tforeach(func_get_args() as $arg)\r\n\t\t\tif(is_a($PDBCExceptionException, $arg)){\r\n\t\t\t\t$o = &$PDBCExceptionException;\r\n\t\t\t\t$GLOBALS['PDBCExceptionException'] = &$null;\r\n\t\t\t\treturn $o;\r\n\t\t\t}\r\n\t\treturn $null;\r\n\t}", "public static function exceptionHandler($exception)\n {\n\n $traces = $exception->getTrace();\n\n $formatted_traces = array();\n\n foreach ($traces as $trace) {\n\n if (!isset($trace['file'])) {\n continue;\n }\n\n $trace['real_path'] = $trace['file'];\n $trace['file'] = substr($trace['file'], strlen($_ENV['W']['ROOT_PATH']));\n $trace['code'] = self::getCode($trace['file'], $trace['line'], $trace['function']);\n $formatted_traces[] = $trace;\n }\n\n $report = array(\n 'type' => 'exception',\n 'title' => get_class($exception),\n 'content' => $exception->getMessage(),\n 'file' => substr($exception->getFile(), strlen($_ENV['W']['ROOT_PATH'])),\n 'code' => self::getCode(\n substr($exception->getFile(), strlen($_ENV['W']['ROOT_PATH'])),\n $exception->getLine()\n ),\n 'real_path' => $exception->getFile(),\n 'line' => $exception->getLine(),\n 'trace' => $formatted_traces\n );\n\n self::addE2s($report);\n }", "public function failed(\\Exception $e)\n {\n report($e);\n }", "function catch_exception($e, $entity) {\n\t// Integrity constraint violation: 1062 Duplicate entry.\n\tif (strpos($e, '1062') !== false) {\n\t\techo '<p class=\"alert alert-danger text-center absolute\"> '.$entity.' already exist, try another input</p>';\n\t}\n}", "private function processException(\\Throwable $e): void\n {\n LoggerHelper::logRawException($this->logger, $e);\n }", "public function throwException($exception)\n {\n $this->finishRequest();\n throw $exception;\n }", "protected function _handleException(Exception $exception)\n {\n $logMessage = Application\\Error::toString($exception);\n Application::getLog()->crit($logMessage);\n\n // Are we in cli mode?\n if ('cli' === strtolower(PHP_SAPI)) {\n $this->disableView();\n return;\n }\n\n // Is that a user readable exception?\n if ($exception instanceof Exception) {\n $this->view->message = $logMessage;\n return;\n }\n }", "public static function reportOtherExceptionAndExit($e){\nself::encodeAndOutputMessage(self::translate('System error.'));\n$msg=date(\"Y-m-d H:i:s T\");\n$msg.=':'.(string)$e.\"\\n\"; //Let the exception describe itself\nforeach(self::$details as $k=>$v)$msg.=\"$k=$v\\n\";\nLogger::log(self::$systemErrorLog,$msg);\nexit;\n}", "public function getException()\r\n\t{\r\n\t\treturn $this->_exception;\r\n\t}", "protected function manageError( string $message )\n {\n $this->logger->error($message);\n throw new \\Exception($message);\n }", "function exception_error_handler($errno, $errstr, $errfile, $errline ) {\n throw new ErrorException($errstr, 0, $errno, $errfile, $errline);\n}", "public function setException(Exception $e)\r\n {\r\n \r\n $result = new Blerby_TestRunner_Result();\r\n \r\n $trace = $e->getTrace();\r\n \r\n if (isset($trace[0]['args'][0])) {\r\n $file = $trace[0]['args'][0];\r\n \r\n } else {\r\n $file = Blerby_TestRunner_Util::cleanPath($e->getFile()); \r\n }\r\n \r\n $result->set('status',Blerby_TestRunner_Status::ERROR);\r\n $result->set('file',Blerby_TestRunner_Util::cleanPath($file));\r\n $result->set(\"message\",$e->getMessage());\r\n \r\n preg_match(\"/on line ([0-9]+)/\",$result->get(\"message\"),$matches);\r\n \r\n if (isset($matches[1])) {\r\n \r\n $result->set('line',$matches[1]);\r\n } else {\r\n $result->set('line',\"???\");\r\n }\r\n \r\n $this->addResult($file,$result);\r\n }", "public static function exceptionHandler(\\Exception $exception)\n {\n if (null !== self::$logFile) {\n file_put_contents(\n self::$logFile,\n '[' . date(\\DateTime::RFC2822) . '] ' . $exception . PHP_EOL,\n FILE_APPEND\n );\n }\n\n throw $exception;\n }", "function exception_error_handler($errno, $errstr, $errfile, $errline ) {\n // Don't catch suppressed errors with '@' sign\n // @link http://stackoverflow.com/questions/7380782/error-supression-operator-and-set-error-handler\n $error_reporting = ini_get('error_reporting');\n if (!($error_reporting & $errno)) {\n return;\n }\n throw new ErrorException($errstr, $errno, 0, $errfile, $errline);\n}" ]
[ "0.7185062", "0.7140752", "0.70744056", "0.67647886", "0.6673904", "0.6662604", "0.6646122", "0.6598697", "0.6597244", "0.6554594", "0.65510035", "0.65149283", "0.65019774", "0.6465701", "0.6463936", "0.6445299", "0.63876426", "0.63616747", "0.6335793", "0.6279957", "0.62496823", "0.6244235", "0.62414014", "0.62349105", "0.6231887", "0.621083", "0.61936396", "0.6187645", "0.6152737", "0.6150454", "0.6150454", "0.61460656", "0.6121609", "0.6107585", "0.61055547", "0.60927635", "0.60783315", "0.6075503", "0.60648036", "0.60604185", "0.6018652", "0.5985243", "0.596955", "0.5950143", "0.59408575", "0.59269756", "0.59265286", "0.59256434", "0.59056824", "0.5897032", "0.58845365", "0.58573645", "0.58537424", "0.583611", "0.5835626", "0.58301", "0.5827286", "0.58246833", "0.5822096", "0.5821854", "0.5810378", "0.5808828", "0.5796252", "0.5791681", "0.5780302", "0.5776212", "0.576168", "0.575622", "0.57499427", "0.57412446", "0.5730472", "0.57272536", "0.5721765", "0.5709226", "0.5703297", "0.56975776", "0.56782717", "0.5676433", "0.56758183", "0.5674918", "0.5665985", "0.56637585", "0.5662648", "0.565301", "0.5648147", "0.56366456", "0.5633354", "0.5622738", "0.5614115", "0.5608581", "0.56043965", "0.5599069", "0.55985534", "0.55948424", "0.55904984", "0.55896485", "0.5585503", "0.558148", "0.55797756", "0.55787987" ]
0.61619127
28
Hook for the service starting
protected function _onStart() { $this->_raise(self::E_LOAD); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function start()\n {\n $this->startService();\n $this->startSession();\n }", "public function start() {\n\n // TODO: Maybe sometimes\n\n }", "public function start()\n {\n $this->registerDefaultServices();\n\n $this->handle($this->request->createFromGlobals());\n }", "public function start()\n {\n // For example you can check Auth\n }", "public function start() {\n\t\t$this->invoke(\"start\");\n\t}", "public function start()\n {\n }", "public function start()\n {\n }", "public function start()\n {\n }", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "private function start()\n {\n // CSRF Watchdog\n $this->csrfWatchdog();\n\n // Retrieve and other services\n $this->retriever->watchdog();\n\n // Router Templater Hybrid\n $this->renderer->route();\n }", "public function beforeStart()\n {\n }", "public function beforeStart () {\n }", "public function start () {\n if (!$this->started) {\n $this->restart();\n }\n }", "public function onStart() {\r\n\r\n }", "public function start()\n {\n // TODO: Implement start() method.\n }", "public function onStart()\n {\n }", "public function start()\n {\n // nop\n }", "function startService()\n {\n\n $this->service_link = $this->_openService($this->url . '/' . $this->service_name . $this->wsdl);\n\n }", "public function startup(): void\n {\n $this->handleOnBootListeners();\n $this->initialize();\n $this->handleOnRunListeners();\n }", "public function startup(): void\n {\n $this->handleOnBootListeners();\n $this->initialize();\n $this->handleOnRunListeners();\n }", "public function startup();", "public function start(): void {}", "public function start()\n {\n die(\"Must override this function in a driver\");\n }", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function onStart();", "protected function _before() {\n\t\tparent::_before ();\n\t\t$this->_startServices ( true );\n\t\t$this->startup = new Startup ();\n\t\tEventsManager::start ();\n\t\tTranslatorManager::start ( 'fr_FR', 'en' );\n\t\t$this->_initRequest ( 'RestApiController', 'GET' );\n\t}", "public function start()\n {\n // Este módulo requiere a un usuario logueado\n $this -> setRequireUser( true );\n }", "protected function start()\n {\n $pidFile = $this->getPidFile();\n\n if(is_file($pidFile)){\n echo \"PID present, so service is already started\\n\";\n exit;\n }\n\n $user = $this->getContainer()->getParameter('netvlies_publish.anyterm_user');\n $port = $this->getContainer()->getParameter('netvlies_publish.anyterm_exec_port');\n $command = 'anytermd -c \"'.dirname(__DIR__).'/Resources/anyterm/exec.sh %p\" -p '.$port.' -u '.$user.' --name anyterm'.$port;\n shell_exec($command);\n }", "public static function start(): void {\n }", "public function preStartPageHook() {}", "public function preStartPageHook() {}", "public function start()\n\t{\n\t\t// reset first, will start automaticly after a full reset\n\t\t$this->data->directSet(\"resetNeeded\", 1);\n\t}", "protected function start()\n {\n $status = $this->autoTestController->start();\n\n PacklinkPrestaShopUtility::dieJson($status);\n }", "public function start(): void;", "public function start(): void\n {\n $this->entityManager->getEventManager()->addEventListener($this->initializeEvents, $this);\n }", "public function startWorking(){\r\n }", "abstract public function start();", "abstract public function start();", "private function startEngine(){\n $this->start();\n }", "protected function _before(){\n $this->startApplication();\n }", "protected function _init(){\n\t\t//Hook called at the beginning of self::run();\n\t}", "public function start() {\r\n\t\tparent::start ();\r\n\t\tif (( string ) $this->data->ipaddr == 'dhcp') {\r\n\t\t\t$this->enableDHCP ();\r\n\t\t}\r\n\t}", "public function __construct() {\n $this->start();\n }", "abstract function start();", "public function start()\n {\n $this->startTime = Carbon::now();\n }", "public function run_service()\n\t{\n\t\t// Route the API task\n\t\t$this->_route_api_task();\n\t}", "public function startServices()\n\t{\n\t\t/** store service connections for use, as needed, by the application */\n\t\t$this->service_connection = array();\n\n\t\t/** store connection messages */\n\t\t$this->message = array();\n\n\t\t/** start services in this sequence */\n\t\t$services = simplexml_load_file(CONFIGURATION_FOLDER . '/Application/services.xml');\n\n\t\tforeach ($services->service as $item) {\n\t\t\t$connectionSucceeded = true;\n\t\t\t$connection = '';\n\n\t\t\t/** class name */\n\t\t\t$entry = (string)$item . 'Service';\n\t\t\t$folder = (string)$item;\n\t\t\t$serviceClass = 'Molajo\\\\Service\\\\Services\\\\' . $folder . '\\\\' . $entry;\n\n\t\t\t/** method name */\n\t\t\t$serviceMethod = 'getInstance';\n\n\t\t\t/** trap errors for missing class or method */\n\t\t\tif (class_exists($serviceClass)) {\n\t\t\t\tif (method_exists($serviceClass, $serviceMethod)) {\n\n\t\t\t\t} else {\n\t\t\t\t\t$connectionSucceeded = false;\n\t\t\t\t\t$connection = $serviceClass . '::' . $serviceMethod . ' Class Method does not exist';\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$connectionSucceeded = false;\n\t\t\t\t$connection = $serviceClass . ' Class does not exist';\n\t\t\t}\n\n\t\t\t/** make service connection */\n\t\t\tif ($connectionSucceeded == true) {\n\t\t\t\ttry {\n\t\t\t\t\t$connection = $serviceClass::$serviceMethod();\n\n\t\t\t\t} catch (\\Exception $e) {\n\t\t\t\t\t$connectionSucceeded = false;\n\t\t\t\t\t$connection = 'Fatal Error: ' . $e->getMessage();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/** store connection or error message */\n\t\t\tif ($connectionSucceeded == false) {\n\t\t\t\techo 'service failed for ' . $entry . '<br />';\n\t\t\t}\n\t\t\t$this->set($entry, $connection, $connectionSucceeded);\n\n\t\t}\n\n\t\tforeach ($this->message as $message) {\n\t\t\tServices::Profiler()->set($message, LOG_OUTPUT_SERVICES, VERBOSE);\n\t\t}\n\n\t\treturn true;\n\t}", "public function __construct()\n {\n $this->start();\n }", "public function __construct()\n {\n $this->start();\n }", "private function startup()\n\t{\n\t\t$this->registerSigHandlers();\n\t\t$this->pruneDeadWorkers();\n\t\tEvent::trigger('beforeFirstFork', $this);\n\t\t$this->registerWorker();\n\t}", "public function start()\n {\n Session::start();\n\n Environment::start();\n \n Database::start($withDatabase = true);\n \n Router::start();\n }", "public function start() {\n $this->setup();\n $this->fight();\n }", "public function start()\n\t{\n\t\t$this->define_home_dir_constant();\n\t\t$this->register_root_namespace();\n\t\tspl_autoload_register(array($this, 'autoload'));\n\t}", "public function onStart(\\swoole_server $server)\n {\n }", "public function startup(Controller $controller) {\n\t\t$this->_loadListeners();\n\t\t$this->trigger('startup');\n\t}", "function on_start(){\n //$userID = $u->getUserID();\n \n //print \"runnin\";\n //$cartEventClassName = 'ScottcAffiliateRelation';\n //$cartEventClassPath = 'packages/scottc_affiliates/libraries/affiliate_relation.php';\n $eventClassName = 'AffiliateGateway';\n $eventClassPath = 'packages/affiliate_gateway/libraries/affiliate_gateway.php';\n \n define(\"ENABLE_APPLICATION_EVENTS\", true);\n \n Events::extend('on_start', $eventClassName, 'eventOnStart', $eventClassPath, $_GET);\n //Events::extend('on_page_view', 'AffiliateGateway', 'eventOnStart', 'packages/affiliate_gateway/libraries/affiliate_gateway.php');\n \n // if($_GET){\n // Loader::library('affiliate_relation',SCOTTECOMAFFILATESPACKAGEHANDLE);\n // $har = new ScottcAffiliateRelation($_GET);\n // }\n }", "protected function _postConstruct()\n {\n parent::_postConstruct();\n if ($this->_config['auto_start']) {\n $this->start();\n }\n }", "public function start() {\n $this->getPidFile()->write($this->getPidManager()->getCurrent());\n $this->getIpc()->setVar('pid', $this->getPidManager()->getCurrent());\n $this->_run();\n }", "public function start()\n\t{\n\t\t// Get contoller and action names\n\t\t$this->getControllerName();\n\t\t$this->getActionName();\n\n\t\t// Set Names of executing class and action names\n\t\t$this->class_Name = ucfirst($this->controllerName);\n\t\t$this->action_Name = ucfirst($this->actionName);\n\n\t\t// Set globals variable\n\t\t$this->setGlobalsData();\n\n\t\t// Run action\n\t\t$this->getControllerAction();\n\t}", "public function onStart(swoole_server $serv) {\n //echo \"master_srv_pid: \" . $serv->master_pid . \"\\n\";\n //echo \"manager_pid: \" . $serv->manager_pid . \"\\n\\n\";\n }", "public function requireStarted() {\n $status = $this->getStatus(TRUE);\n if ($this->isEnabled() && (is_null($status) || !$status->running)) {\n $this->run('start');\n $this->updateStatus();\n }\n }", "protected function onBoot() {}", "public function start($start = null)\n {\n // TODO: Implement start() method.\n }", "private function booted()\n {\n }", "public function start() {\n $ctx = $this->getContext();\n $this->fetch($ctx);\n $this->parseContext($ctx);\n }", "public function start()\n {\n try {\n $this->registerProvider(Dependents::class);\n $route = Router::match();\n $response = $this->startAction($route);\n }\n catch (\\Throwable $e) {\n $response = $this->handleException($e);\n }\n catch (\\Exception $e) {\n $response = $this->handleException($e);\n }\n\n if ($response instanceof Response) {\n $this->accept($response);\n }\n }", "public function __construct()\r\n {\r\n $this->loadResources('start');\r\n }", "public function start()\n\t{\n\t\t$this->startTimer = microtime(TRUE);\n\t}", "public function start()\n {\n echo 'Start odometer.',\"\\n\";\n }", "public function __construct()\n\t\t\t\t{\n\t\t\t\t\t\t\t\t$this->start();\n\t\t\t\t}", "public function start()\n {\n //Start pushing data\n }", "public function start()\n {\n $this->server->on(\"open\", [$this, 'wsOpen']);\n $this->server->on(\"message\", [$this, 'wsMessage']);\n $this->server->on(\"close\", [$this, 'wsClose']);\n\n $this->server->start();\n }", "function on_start($function)\n{\n return signal(new \\XPSPL\\processor\\SIG_Startup(), $function);\n}", "public function startup()\n {\n parent::startup();\n Configure::write( 'debug', 2 );\n Configure::write( 'Cache.disable', 1 );\n\n $task = Inflector::classify( $this->command );\n }", "public function runAtBoot() {\n\t\tLogger::getRootLogger()->info('Init IPSec');\n\t\tif((string)$this->data['enable'] == 'true'){\n\t\t\t$configured = $this->configure();\n\t\t\tif($configured){\n\t\t\t\t$this->start();\n\t\t\t}\n\t\t\telse{\n\t\t\t\tLogger::getRootLogger()->info('IPSec not started');\n\t\t\t}\n\t\t}\n\t}", "public function boot()\n {\n if ($this->booted) {\n return;\n }\n\n array_walk($this->loadedServices, function ($s) {\n $this->bootService($s);\n });\n\n $this->booted = true;\n }", "protected function _before() {\n\t\tparent::_before ();\n\t\t$this->_startServices ();\n\t\tStartup::setConfig ( $this->config );\n\t\t$adminController = new Admin ();\n\t\tStartup::injectDependencies ( $adminController );\n\t\t$this->scaffoldController = new AdminScaffoldController ( $adminController, $adminController->jquery );\n\t}", "public function start () {\n $this->cache = new Memcache;\n $this->cache->addServer($this->server, $this->port);\n }", "public static function start()\n {\n self::registerDefault();\n\n $page = rex_request('page', 'string');\n $subpage = rex_request('subpage', 'string');\n $function = rex_request('function', 'string');\n\n if ($page === 'import_export' && $subpage === 'import' && $function === 'dbimport') {\n rex_register_extension('A1_AFTER_DB_IMPORT', function () {\n rex_developer_manager::synchronize(null, true);\n });\n } elseif ($page === 'developer' && $function === 'update') {\n rex_register_extension('OUTPUT_FILTER_CACHE', function () {\n rex_developer_manager::synchronize(null, true);\n });\n } else {\n self::synchronize(self::START_EARLY);\n rex_register_extension('OUTPUT_FILTER_CACHE', function () {\n rex_developer_manager::synchronize(rex_developer_manager::START_LATE);\n });\n }\n }", "public function startup() {\n\t\t$this->canbesignedout = true;\n\t\tparent::startup();\n\t}" ]
[ "0.7615975", "0.7588323", "0.74830955", "0.7401253", "0.73121244", "0.73031795", "0.73031795", "0.73031795", "0.73020196", "0.73020196", "0.7301242", "0.73005366", "0.73005366", "0.73005366", "0.73005366", "0.73005366", "0.73005366", "0.7300145", "0.7246003", "0.7223565", "0.71653694", "0.7112212", "0.70877755", "0.70635444", "0.70547056", "0.69904613", "0.69496566", "0.6942805", "0.6942805", "0.6888011", "0.68828267", "0.68678063", "0.68231606", "0.68231606", "0.68231606", "0.68231606", "0.68231606", "0.68231606", "0.68231606", "0.68231606", "0.68231606", "0.68231606", "0.68231606", "0.68231606", "0.680637", "0.67136085", "0.66853267", "0.66816735", "0.66400045", "0.66226816", "0.66226816", "0.65721744", "0.6571706", "0.6523168", "0.65199333", "0.65123487", "0.6402739", "0.6402739", "0.63882506", "0.6384749", "0.6378951", "0.6377144", "0.6361318", "0.6341608", "0.63334614", "0.632728", "0.63151586", "0.6312449", "0.6312449", "0.62615633", "0.6257737", "0.6255686", "0.6234258", "0.6228237", "0.61878127", "0.6177805", "0.6162743", "0.6161003", "0.615717", "0.6154413", "0.6148536", "0.61283743", "0.6107802", "0.61062914", "0.61058575", "0.61020464", "0.6092359", "0.60614526", "0.604528", "0.6041276", "0.60360354", "0.6035264", "0.60269225", "0.60137737", "0.60048366", "0.60038936", "0.6003722", "0.5998756", "0.59792113", "0.5942722" ]
0.6493986
56
Gets the current application
final public function getApplication() { return $this->_app; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getApp() {\n return $this->call->getApp();\n }", "public static function getActiveApp()\n {\n return self::$_activeApp;\n }", "public static function getApp()\n\t{\n\t\treturn static::$app;\n\t}", "public function getApp()\n {\n return $this->app;\n }", "public function getApp()\n {\n return $this->app;\n }", "public function getApp()\n {\n return $this->app;\n }", "public function getApp()\n {\n return $this->app;\n }", "public function getApp()\n {\n return $this->app;\n }", "public function getApp()\n {\n return $this->app;\n }", "protected function getApp()\n {\n return $this->app;\n }", "public function getApp()\n {\n return $this['app.name'];\n }", "public function getApplication()\n {\n return isset($this->application) ? $this->application : null;\n }", "public function getApplication()\n {\n return $this->application;\n }", "public function getApplication()\n {\n return $this->application;\n }", "public function getApplication()\n {\n return $this->application;\n }", "public function getApplication()\n {\n return $this->application;\n }", "public function getApplication()\r\n {\r\n return $this->Application;\r\n }", "public function getApplication()\n {\n return $this->app;\n }", "public function getApplication()\n {\n return $this->app;\n }", "public function getApplication()\n {\n return $this->app;\n }", "public function getApplication()\n {\n return $this->app;\n }", "public function getApplication()\n\t{\n\t\treturn $this->application;\n\t}", "public function getApplication()\n\t{\n\t\treturn $this->application;\n\t}", "public function get_app() {\n\t\tif(self::$app)\n\t\t\treturn self::$app;\n\n\t\tglobal $a;\n\t\tself::$app = $a;\n\n\t\treturn self::$app;\n\t}", "public function getApplication()\n {\n return $this->getHandlerManager()->getApplication();\n }", "function getApplication() {\n return $this->step->application;\n }", "public function getApplication();", "public function getApplication();", "public function getApplication();", "public function getApplication();", "public function getApplication();", "public function getApp();", "public static function get() {\n return self::$app;\n }", "public function getApplication() {\r\n return \\Accelerator\\Application::instance();\r\n }", "public static function app()\n {\n return self::$_app;\n }", "public function getApplication(){ \r\n\t\treturn \\Yaf\\Application::app();\r\n\t}", "public static function self()\n {\n return self::$app;\n }", "public function getApplication() {\n\t\t$instance = $this->getSourceInstance();\n\t\tif ($instance !== null) {\n\t\t\t$application = $instance->unbox()->application;\n\t\t\tif ($application !== null) {\n\t\t\t\treturn $application;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "function getApplication();", "public function getAppName()\r\n\t{\r\n\t\treturn $this->_appName;\r\n\t}", "public function getAppName()\n {\n return $this->appName;\n }", "public function get()\n {\n return $this->app;\n }", "public function get()\n {\n return $this->app;\n }", "public static function getApplication() : Application\n {\n return self::$app;\n }", "public abstract function getApplication();", "public function getAppName()\n {\n return $this->get(self::APP_NAME);\n }", "public function getCurrentAppId() {\n return $this->container->offsetGet('appId');\n }", "public function &getApp() {\n return $this->app;\n }", "public function app()\r\n {\r\n return $this->app;\r\n }", "public static function getInstance()\n {\n return isset(static::$apps[static::$id]) ? static::$apps[static::$id] : null;\n }", "public function getAppName()\n {\n return $this->app_name;\n }", "public function app()\n {\n return $this->app;\n }", "public static function getInstance()\n\t{\n\t\treturn ( isset(static::$app) ? static::$app : null );\n\t}", "public function getSourceApp()\n {\n return $this->sourceApp;\n }", "public function getApp()\n\t{\n\t\tif(! self::$_app){\n\t\t if ($this->scopes) $this->config['oauth']['scopes'] = $this->scopes;\n\t\t\tself::$_app = Factory::officialAccount($this->config);\n\t\t}\n\t\treturn self::$_app;\n\t}", "public function get()\n {\n return $this->app;\n }", "public function get()\n {\n return $this->app;\n }", "public static function get_selected_app()\n\t{\n\t\t$serialized_selected_app = self::get_setting('nr_selected_app');\n\t\tif ($serialized_selected_app != NULL && $serialized_selected_app != '')\n\t\t{\n\t\t\treturn unserialize($serialized_selected_app);\n\t\t}\n\t\treturn NULL;\n\t}", "public function getApplication(): ?Application\n {\n return parent::getApplication();\n }", "public function application(): Application\n {\n return self::instance()->runner->application();\n }", "public static function getCurrent()\n\t{\n\t\tif (Application::hasInstance())\n\t\t{\n\t\t\t$application = Application::getInstance();\n\t\t\treturn $application->getContext();\n\t\t}\n\n\t\treturn null;\n\t}", "function get_application_name()\r\n {\r\n return self :: APPLICATION_NAME;\r\n }", "function get_application_name()\r\n {\r\n return self :: APPLICATION_NAME;\r\n }", "function get_application_name()\r\n {\r\n return self :: APPLICATION_NAME;\r\n }", "function tev_app() {\n return Tev\\Application\\Application::getInstance();\n }", "static public function get(): ?Application\n\t{\n\t\treturn self::$instance;\n\t}", "public function getOwnerApp();", "public function getDefaultApp()\n {\n return APPPATH;\n }", "public function app()\n {\n return \\Cloud::app();\n }", "public function getApplicationName()\n\t{\n\t\treturn $this->config->get('rocketeer::application_name');\n\t}", "function app()\n {\n return \\Core\\Container::getInstance()->singleton('app');\n }", "final public function getAppConfig()\n {\n return $this->appConfig;\n }", "public function getAppId()\n {\n return $this->app_id;\n }", "public function getAppId()\n {\n return $this->app_id;\n }", "public function getAppId()\n {\n return $this->app_id;\n }", "public function getAppId()\n {\n return $this->app_id;\n }", "public function getAppId()\n {\n return $this->app_id;\n }", "public function getAppId()\n {\n return $this->app_id;\n }", "public function getAppId()\n {\n return $this->app_id;\n }", "public function getAppPath() {\n return $this->_application_path;\n }", "public function getAppId() {\n return $this->app_id;\n }", "public function GetAppByName($name)\r\n {\r\n return AppHelper::GetByName($this->Core, $name);\r\n }", "function getAppMode()\n {\n return $this->_props['AppMode'];\n }", "public function getAppId()\n {\n return $this->appId;\n }", "public function getAppId()\n {\n return $this->appId;\n }", "public function getApplicationName() \n\t{\n\t\treturn $this->application_name;\n\t}", "public function getAppEnvironment()\n {\n return $this->appEnvironment;\n }", "function app(): Application\n\t{\n\t\tstatic $app;\n\n\t\tif($app === null)\n\t\t{\n\t\t\t$app = Application::instance();\n\t\t}\n\n\t\treturn $app;\n\t}", "public function getCurrentSite()\n {\n return $this->application->getSite();\n }", "function app()\n {\n return Application::instance();\n }", "public function getAppPath()\n {\n return $this->_appPath;\n }", "public function getUseAppName() \n \t{\n \t\treturn $this->use_appname;\n \t}", "function getMyApplication()\n {\n if (Yii::$app->user->isGuest) {\n return new Applications;\n }\n $model = $this->getApplications()->where('user_id=:uid', [\n 'uid' => Yii::$app->user->id,\n ])->one();\n\n return $model ? $model : new Applications();\n }", "protected function _getConnectApp()\n {\n if (!$this->_connectApp) {\n $this->_connectApp = Mage::helper('xmlconnect')->getApplication();\n if (!$this->_connectApp) {\n $this->_connectApp = Mage::getModel('xmlconnect/application');\n $this->_connectApp->loadDefaultConfiguration();\n }\n }\n return $this->_connectApp;\n }", "public function getApplication(): ?Application\n {\n return $this->application;\n }", "public function getDefaultAppName()\n\t{\n\t\treturn $this->_defaultAppName;\n\t}", "public static function getRegisteredApps() {\n\t\treturn self::$CHILD_APPS;\n\t}", "public function getAppId()\n {\n if (array_key_exists(\"appId\", $this->_propDict)) {\n return $this->_propDict[\"appId\"];\n } else {\n return null;\n }\n }", "function getAppId()\n {\n return $this->_props['AppId'];\n }", "public function getApplicationContext() {}" ]
[ "0.85277414", "0.83977383", "0.83349156", "0.8165997", "0.8165997", "0.8165997", "0.8165997", "0.8165997", "0.8165997", "0.8075828", "0.8071614", "0.8052908", "0.80133325", "0.80133325", "0.80133325", "0.80133325", "0.7992866", "0.797287", "0.797287", "0.797287", "0.797287", "0.79706395", "0.79706395", "0.7969461", "0.7933286", "0.78648674", "0.78275764", "0.78275764", "0.78275764", "0.78275764", "0.78275764", "0.78101206", "0.77727413", "0.7735147", "0.7734721", "0.7700284", "0.76523924", "0.7633142", "0.7546936", "0.7511338", "0.74928373", "0.74788785", "0.74788785", "0.7465652", "0.74378806", "0.74173045", "0.738331", "0.7362713", "0.7321427", "0.7269922", "0.72530806", "0.71954983", "0.7173838", "0.71653646", "0.7125986", "0.7118596", "0.7118596", "0.70998335", "0.7063048", "0.7051558", "0.7010942", "0.7008499", "0.7008499", "0.7008499", "0.7005745", "0.7004195", "0.69717747", "0.6884165", "0.6863846", "0.68458796", "0.6793357", "0.6789236", "0.67843676", "0.67843676", "0.67843676", "0.67843676", "0.67843676", "0.67843676", "0.67843676", "0.6780083", "0.67686635", "0.6734249", "0.6728654", "0.67276365", "0.67276365", "0.67139995", "0.67113", "0.670138", "0.6697802", "0.6672882", "0.66533965", "0.6647937", "0.66301376", "0.663001", "0.66282946", "0.66103166", "0.6600367", "0.65981436", "0.65781325", "0.65678686" ]
0.8077293
9
Processing Code retour Web Service
public function getAllCodeRetour($param = null) { $this->table = "sva_code_retour as c"; $this->champs = ["c.rowid","c.code","c.message_fr","c.message_en","c.etat"]; $this->condition = ["c.fk_webservice =" => $param[0]]; return $this->__processing(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function process() {\n\t\t$service = $this->getService();\n\t\t$service->hsts = HTTP_Helper::retrievePost( 'hsts_preload' );\n\t\t$service->include_subdomain = HTTP_Helper::retrievePost( 'include_subdomain' );\n\t\t$service->hsts_cache_duration = HTTP_Helper::retrievePost( 'hsts_cache_duration' );\n\t\t$service->scenario = HTTP_Helper::retrievePost( 'scenario' );\n\t\t$ret = $service->process();\n\t\tif ( is_wp_error( $ret ) ) {\n\t\t\twp_send_json_error( [\n\t\t\t\t'message' => $ret->get_error_message()\n\t\t\t] );\n\t\t} else {\n\t\t\tSettings::instance()->addToResolved( Sh_Strict_Transport::$slug );\n\t\t}\n\t}", "public function processApi(){\r\n\t\t\t$service = explode(\"/\", $_GET['x']);\r\n\t\t\t$this->entity = ucfirst($service[0]);\r\n\t\t\t$this->methode = $service[1];\r\n\t\t\t$func = $this->methode.$this->entity;\r\n\t\t\t$this->addLog('--'.$this->methode.$this->entity);\r\n\t\t\tif((int)method_exists($this,$func) > 0)\r\n\t\t\t\t$this->$func();\r\n\t\t\telse\r\n\t\t\t\t$this->response('',404); // If the method not exist with in this class \"Page not found\".\r\n\t\t\t\t\r\n\t\t}", "function site()\n {\n $this->load->library('service');\n $data = file_get_contents('php://input');\n $ret = array(\n 'out' => $this->service->handle('site', $data)\n );\n $this->output($ret);\n }", "public function run()\r\n\t{\r\n\t\tPrado::trace(\"Running page service\",'System.Web.Services.TPageService');\r\n\t\t$this->_page=$this->createPage($this->getRequestedPagePath());\r\n\t\t$this->runPage($this->_page,$this->_properties);\r\n\t}", "public function processRequest();", "public function processApi(){\n\t\t$words = explode(\"/\",$_REQUEST['rquest']);\n\t\t$func = strtolower(trim(str_replace(\"/\",\"\",$words[0])));\n\t\t\n \t\tif(strcmp(\"services\",$func) == 0)\n\t\t\t$this->$func($words[1],$words[2]);\t// you can set as many levels as you want\n\t\telse\n\t\t\t$this->response('',404);\t// response would be \"Page not found\"\n\t}", "public function run()\n\t\t{\n\t\t\tswitch ($_GET['act']) {\n\t\t\t\tcase 'create':\n\t\t\t\t\t//Crear \n\t\t\t\t\t$this->create();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'lists':\n\t\t\t\t\t//Crear \n\t\t\t\t\t$this->lists();\n\t\t\t\t\tbreak;\t\n\t\t\t\tcase 'listsDetails':\n\t\t\t\t\t//Crear \n\t\t\t\t\t$this->listsDetails();\n\t\t\t\t\tbreak;\t\n\t\t\t\tcase 'get':\n\t\t\t\t\t//Obtener una Remision\n\t\t\t\t\t$this->getRemision();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'getFolio':\n\t\t\t\t\t$this->getFolio();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif ($this->api) {\n\t\t\t\t\t\techo $this->json_encode(array('error'=>SERVICIO_INEXISTENTE,'data'=>NULL,'mensaje'=>'Este servicio no está disponible'));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//CARGAR VISTA DE SERVICIO INEXISTENTE\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "function consumir_webservice($xml_data)\n{\n\t$stream_options = array(\n\t\t'http' => array(\n\t\t\t'method'\t=> 'POST',\n\t\t\t'header'\t=> 'Authorization: Basic ' . base64_encode(\"Openbravo:openbravo\") . ' Content-Type: text/xml',\n\t\t\t'content'\t=> $xml_data,\n\t\t),\n\t);\n\n\t// Crear contexto de flujo con las opciones para consumir el webservice\n\t$context = stream_context_create($stream_options);\n\n\t// Consumir webservice y obtener respuesta\n\t// $ob_response = @file_get_contents('http://192.168.1.251:443/ob_lecaroz/ws/mx.cusoft.importing.rest.insertLecPayment', NULL, $context);\n\t$ob_response = @file_get_contents('http://192.168.1.3:443/ob_lecaroz/ws/mx.cusoft.importing.rest.insertLecPayment', NULL, $context);\n\n\treturn $ob_response;\n}", "public function run()\r\n {\r\n // exit();\r\n // 兼容Content Type为application/json的数据接收\r\n if (isset($_SERVER['CONTENT_TYPE']) && preg_match(\"/\\w+\\/\\w+([\\-\\+]\\w+)*/\", $_SERVER['CONTENT_TYPE'], $result)) {\r\n $content_type = $result[0];\r\n switch ($content_type) {\r\n case 'multipart/form-data':\r\n case 'application/x-www-form-urlencoded':\r\n if ($_SERVER['REQUEST_METHOD'] == 'PUT') {\r\n try {\r\n $this->parsePut();\r\n } catch (\\Exception $e) {\r\n\r\n }\r\n global $_PUT;\r\n $_POST = $_PUT;\r\n }\r\n break;\r\n case 'application/json':\r\n if ($_SERVER['REQUEST_METHOD'] == 'PUT') {\r\n global $_PUT;\r\n $php_input = file_get_contents('php://input');\r\n $_PUT = (array) json_decode($php_input, 1);\r\n $_POST = $_PUT;\r\n } else {\r\n $php_input = file_get_contents('php://input');\r\n $_POST = (array) json_decode($php_input, 1);\r\n }\r\n\r\n break;\r\n case 'application/xml':\r\n case 'text/xml':\r\n $php_input = file_get_contents('php://input');\r\n // 听说并没有成熟的xml解析工具?\r\n break;\r\n }\r\n }\r\n\r\n }", "public static function process_http_request()\n {\n }", "public function processRequest() {\n $this->server->service($GLOBALS['HTTP_RAW_POST_DATA']);\n }", "public function aw_service_wp ( $proc, $args ) {\n\t \t//$args = array('argDta' => $productID,'argIsSale' => 1,'argUsr' => '');\n\t\t$url \t\t= 'http://203.201.129.15/AWSERVICE_WP_WEB/awws/AWService_WP.awws?wsdl';\n\t\t$client \t= new SoapClient($url);\n\t\t$response \t= $client->__soapCall( $proc, array($args) );\n\t\t\n\t\tswitch ( $proc ) {\n\t\t\tcase 'Trainers_OnlineProduct_Listing':\n\t\t\t\t$simpleXml = simplexml_load_string($response->Trainers_OnlineProduct_ListingResult);\n\t\t\tbreak;\n\n\t\t\tcase 'CorporateClientsList':\n\t\t\t\t$simpleXml = simplexml_load_string($response->CorporateClientsListResult);\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'pcPrdct_DisplayInfo':\n\t\t\t\t$simpleXml = simplexml_load_string($response->pcPrdct_DisplayInfoResult);\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'pcChat_UserDetails':\n\t\t\t\t$simpleXml = $response->pcChat_UserDetailsResult;\n\t\t\tbreak;\n\t\t\t\n\t\t}\n\t\t\n\t \treturn $simpleXml;\n\t }", "public function do_service() {\n $this->params_wrapper->check();\n $this->params_wrapper->wrap();\n $xml_content = XMLBuilder::buildXML($this->params_wrapper->getWrappedParameters());\n $sympa_client = new SympaPLClient();\n $main_robot_name = strtolower($this->params_wrapper->getWrappedParameter(SympaRemoteConstants::INPUT_RNE)).\".\".$this->config->sympa_main_domain;\n\n\t\t$operation = $this->params_wrapper->getWrappedParameter(SympaRemoteConstants::INPUT_OPERATION);\n\t\t$this->log->LogDebug(\"Operation : \" . $operation);\n\t\tswitch ($operation) {\n\t\t\tcase \"CREATE\":\n\t\t\t\t$sympa_client->createListWithXML($xml_content, $this->params_wrapper->getWrappedParameter(SympaPLClient::ARGUMENT_FAMILLE), $main_robot_name);\n\t\t\t\tbreak;\n\t\t\tcase \"UPDATE\":\n\t\t\t\t$sympa_client->updateListWithXML($xml_content, $this->params_wrapper->getWrappedParameter(SympaPLClient::ARGUMENT_FAMILLE), $main_robot_name);\n\t\t\t\tbreak;\n\t\t\tcase \"CLOSE\":\n\t\t\t\t$listname = $this->params_wrapper->getWrappedParameter(SympaRemoteConstants::INPUT_LIST_NAME_TO_CLOSE);\n\t\t\t\t$sympa_client->closeList($listname);\n\t\t\t\tbreak;\n\t\t}\n }", "public function processApi();", "public function handleServiceRequest() {\n //\n // Create instance of SOAP server.\n //\n $SoapServer = new SoapServer($this->getWsdlFullPath()); \n $SoapServer->setClass(AblePolecat_Data::getDataTypeName($this)); \n $SoapServer->setPersistence(SOAP_PERSISTENCE_SESSION);\n $SoapServer->handle();\n }", "public function service($request,$response,$utilities);", "function main()\n{\n //getRequestidhl();\n\t //getRequestidlap();\n\t getRequestidpl();\n\n\t\n}", "function restAction()\n {\n $this->disableLayout();\n $this->_helper->viewRenderer->setNoRender();\n\n $request_data = $this->_getAllParams();\n\n $method_name = $this->_getParam('method');\n if(!isset($method_name))\n {\n echo \"Inconsistent request\";\n exit;\n }\n\n $request_data = $this->_getAllParams();\n // Handle XML-RPC request\n $this->kwWebApiCore = new KwWebApiRestCore($this->apiSetup, $this->apicallbacks, $request_data);\n }", "private function requestProcessor() {\n try {\n\n if (empty($this->uri))\n throw new \\Exception(\"Undefined url\");\n\n $ReqHandle = curl_init($this->uri);\n\n $body = json_encode([]);\n if( sizeof($this->data) > 0 )\n $body = json_encode($this->data);\n\n $returnTransfer = 0;\n if( $this->hasResponseToReturn )\n $returnTransfer = 1;\n\n $isPost = 0;\n if( $this->method != 'GET')\n $isPost = 1;\n\n\n if($isPost == 1){\n curl_setopt($ReqHandle,CURLOPT_POST, $isPost);\n curl_setopt($ReqHandle, CURLOPT_POSTFIELDS, $body);\n }\n \n curl_setopt_array($ReqHandle, [\n CURLOPT_RETURNTRANSFER => $returnTransfer,\n CURLOPT_HTTPHEADER => $this->headersToBeUsed\n ]);\n\n\n $result = curl_exec($ReqHandle);\n\n if(curl_errno($ReqHandle)){\n\n return curl_error($ReqHandle);\n }\n\n if($returnTransfer == 1)\n return json_decode($result);\n\n\n\n } catch (\\Throwable $t) {\n new ErrorTracer($t);\n }\n }", "public function execute_http()\n {\n }", "protected function callService ()\n\t{\n\t\t$this->protocol->callService( $this->data ) ;\n\t}", "public function run_service()\n\t{\n\t\t// Check the request is allowed\n\t\tif ($this->_is_api_request_allowed())\n\t\t{\n\t\t\t// Route the API task\n\t\t\t$this->_route_api_task();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Set the response to \"ACCESS DENIED\"\n\t\t\t$this->set_response($this->get_error_msg(006));\n\n\t\t\t// Terminate execution\n\t\t\treturn;\n\t\t}\n\t}", "abstract public function processRequest();", "public function processRequest() {\n $serviceType = $this->getServiceType();\n if(!$serviceType){return \"Invalid Call ! \\n\";}\n $repoPath = $this->getRepoName();\n if(!defined(\"__APIURL__\" . $serviceType)){\n return \"API URL not found for $serviceType\\n\";\n }\n $apiUrl = sprintf(constant(\"__APIURL__\" . $serviceType), $repoPath);\n $response = $this->makeCurlRequest($apiUrl, 'get');\n switch ($serviceType) {\n case 'github.com':\n return $this->getCountForGit($response);\n break;\n case 'bitbucket.org':\n return $this->getCountForBit($response);\n break;\n default :\n return $response;\n break;\n }\n }", "function process_request() {\n\t\tglobal $publishthis;\n\n\t\ttry{\n\n\t\t\t$bodyContent = '';\n\n\t\t\tif ( function_exists( 'wpcom_vip_file_get_contents' ) ) {\n\t\t\t\t$bodyContent = wpcom_vip_file_get_contents( 'php://input', 10, 60 );\n\t\t\t} else {\n\t\t\t\t$bodyContent = file_get_contents( 'php://input' );\n\t\t\t}\n\n\t\t\t$publishthis->log->addWithLevel( array( 'message' => 'Endpoint Request', 'status' => 'info', 'details' => $bodyContent ), \"2\" );\n\n\t\t\t$arrEndPoint = json_decode( $bodyContent, true );\n\n\t\t\t$action = $arrEndPoint[\"action\"];\n\n\t\t\t$pt_settings = $publishthis->get_options();\n\n\t\t\tif( !in_array( $action, array('resetState', 'stopEndpoint', 'resumeEndpoint') ) ) {\n\t\t\t\t$manually_stopped = get_option( 'pt_import_manually_stopped' );\n\t\t\t\tif ( $manually_stopped == 1 ) {\n\t\t\t\t\t$this->sendFailure('Import manually stopped');\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tswitch( $action ) {\n\t\t\t\tcase \"verify\":\n\t\t\t\t\t$this->actionVerify();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"publish\":\n\t\t\t\t\tif( $publishthis->get_option( 'curated_publish' ) != 'import_from_manager' ) {\n\t\t\t\t\t\t$this->sendFailure( \"Publishing through CMS is disabled\" );\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t$feedId = intval( $arrEndPoint[\"feedId\"], 10 );\n\t\t\t\t\t$pageNum = intval( $arrEndPoint[\"pageNum\"], 10 );\n\t\t\t\t\t$importId = $arrEndPoint[\"importId\"];\n\n\t\t\t\t\t$this->actionPublish2( $feedId, $pageNum, $importId );\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"getAuthors\":\n\t\t\t\t\t$this->actionGetAuthors();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"getCategories\":\n\t\t\t\t\t$this->actionGetCategories();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"resetState\":\n\t\t\t\t\t$this->resetState();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"stopEndpoint\":\n\t\t\t\t\t$this->stopEndpoint();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"resumeEndpoint\":\n\t\t\t\t\t$this->resumeEndpoint();\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\t$this->sendFailure( \"Empty or bad request made to endpoint\" );\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t} catch( Exception $ex ) {\n\t\t\t//we will log this to the pt logger, but we always need to send back a failure if this occurs\n\n\t\t\t$this->sendFailure( $ex->getMessage() );\n\t\t}\n\n\t\treturn;\n\t}", "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 run(){\n // server response object \n $requestMethod = $this->requestBuilder->getRequestMethod();\n $this->response = new Response($requestMethod);\n\n try{\n $route = $this->router->validateRequestedRoute($this->requestBuilder);\n\n // serve request object\n $this->requestBuilder->setQuery();\n $this->requestBuilder->setBody();\n $requestParams = $this->requestBuilder->getParam();\n $requestQuery = $this->requestBuilder->getQuery();\n $requestBody = $this->requestBuilder->getBody(); \n $this->request = new Request($requestParams, $requestQuery, $requestBody);\n\n $callback = $route->getCallback();\n $callback($this->request, $this->response);\n }catch(RouteNotImplementedException $e){\n $this->response->statusCode(404)->json($e->getMessage()); \n }\n \n }", "public function run()\n {\n $post = file_get_contents($this->getInputFile());\n if (substr($post, 0, 5) == '<?xml') {\n //pingback\n $xs = xmlrpc_server_create();\n xmlrpc_server_register_method(\n $xs, 'pingback.ping', array($this, 'handlePingbackPing')\n );\n $out = xmlrpc_server_call_method($xs, $post, null);\n\n $resp = $this->getPingbackResponder();\n $resp->sendHeader('HTTP/1.0 200 OK');\n $resp->sendXml($out);\n\n } else if (isset($_POST['source']) && isset($_POST['target'])) {\n //webmention\n $res = $this->handleRequest($_POST['source'], $_POST['target']);\n $resp = $this->getWebmentionResponder();\n $resp->send($res);\n\n } else {\n //unknown\n $resp = $this->getPingbackResponder();\n $resp->sendHeader('HTTP/1.0 400 Bad Request');\n $resp->sendHeader('Content-Type: text/html');\n $resp->sendOutput($this->unknownRequest);\n }\n }", "public abstract function processRequest();", "function serializationAction(& $body)\n{\n\t$rawResponse = & $body->getResults();\n\n\terror_log (\"[SWX] INFO Method call result = $rawResponse\");\n\n\tadapterMap($rawResponse);\n\n\t$swxAssembler = new SwxAssembler();\n\n\tob_start();\n\n\t$swxAssembler->writeSwf($rawResponse, $GLOBALS['swx']['debug'], 4, $GLOBALS['swx']['url']);\n\n\t$rawResponse = ob_get_contents();\n\tob_end_clean();\n\n\t$body->setResults($rawResponse);\n}", "private function suivi_crm(){\t\n\t\t\t\n\t\t\tif($this->get_request_method() != \"GET\"){\n\t\t\t\t$this->response('',406);\n\t\t\t}\n\t\t\t\n\t\t\t$result=suivi_crm();\n\t\t\t$this->response($this->json($result), 200);\n\t\t\t$this->response('',204);\t\n\t\t}", "public function run_service()\n\t{\n\t\t// Route the API task\n\t\t$this->_route_api_task();\n\t}", "public function process() {\n if (APPLICATION_ENV != 'local') {\n throw new \\Exception('Unable to run Test Endpoint on a production environment');\n }\n\n $this->response_content = $this->request_content;\n }", "public function execute(): Raw\n {\n //====================================================================//\n // Setup Php Specific Settings\n ini_set('display_errors', \"0\");\n error_reporting(E_ERROR);\n //====================================================================//\n // Create Raw Response\n /** @var Raw $result */\n $result = $this->factory->create(ResultFactory::TYPE_RAW);\n //====================================================================//\n // Detect SOAP requests send by Splash Server\n $userAgent = Splash::input(\"HTTP_USER_AGENT\");\n if (!$userAgent || (false === strpos($userAgent, \"SOAP\"))) {\n return $result->setContents(\"This WebService Provide no Description\");\n }\n //====================================================================//\n // Declare WebService Available Functions\n $corePath = dirname((string) (new \\ReflectionClass(SplashServer::class))->getFileName(), 2);\n require_once($corePath.\"/inc/server.inc.php\");\n Splash::log()->deb(\"Splash Started In Server Mode\");\n //====================================================================//\n // Build SOAP Server & Register a method available for clients\n Splash::com()->buildServer();\n //====================================================================//\n // Register shutdown method available for fatal errors retrieval\n register_shutdown_function(array(SplashServer::class, 'fatalHandler'));\n //====================================================================//\n // Clean Output Buffer\n ob_get_clean();\n ob_get_clean();\n //====================================================================//\n // Force UTF-8 Encoding & Protect against Varnish ESI Transform\n if (function_exists('getallheaders') && array_key_exists(\"X-Varnish\", getallheaders())) {\n echo \"\\xEF\\xBB\\xBF\";\n }\n //====================================================================//\n // Process methods & Return the results.\n Splash::com()->handle();\n\n return $result;\n }", "function run()\n\t{\n\t\t//echo microtime().\"Main:run just entered run() <br>\";\n\t\t//$output_function = \"output_template\";\n\t\t//echo \"<br>Main, searcresrowcount\".$_SESSION['search_res_row_cnt'];\n\t\tif ($_REQUEST['er'])\n\t\t{\n\t\t\t$un_encrypted_request = myedb_decrypt($_REQUEST['er']);\n\t\t\tif (!strstr($un_encrypted_request,\"check_activation_password\")) die (\"error: bad link\");\n\t\t\teval($un_encrypted_request); //echo $_REQUEST['id'].\" -yooo- \".$_REQUEST['activate'];\n\t\t}\n\t\t\n\t\t$mss = new Main_SecuritySystem();\n\n\t\t$bypass_auth = in_array($_REQUEST['target_function'][0],$this->non_auth_target_functions)\n\t\t\t|| in_array($_REQUEST['OF_passthru'],$this->non_auth_output_functions);\n\t\t\n\t\tif (!$mss->passed_security_check($this->xml_string) \n\t\t\t&& !$bypass_auth) \n\t\t{//echo \"didn't pass\";\n\t\t\t$output_function = $mss->output_function;\n\t\t}\n\t\t//if (SecurityOperationsFacade::passed_security_check($this->xml_string, $this->xslt_file))\n\t\telse\n\t\t{// echo \"did pass\";\n\t\t\tif (!isset($_REQUEST['target_component']))\n\t\t\t{ \n\t\t\t\tif (isset($_REQUEST['ntctf']))\n\t\t\t\t{\n\t\t\t\t\t$this->setup_for_no_server_side_content();\n\t\t\t\t}\n\t\t\t\telse if (isset($_REQUEST['pl']))\n\t\t\t\t{\n\t\t\t\t\t$this->set_product_lookup_page();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->set_default_site_page();\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\t//echo microtime().\"Main:run before new RequestProcessor() <br>\"; flush();\n\t\t\t$rp = new RequestProcessor();\n\t\t\t//echo microtime().\"Main:run after new RequestProcessor() <br>\"; flush();\n\t\t\t$output_function = $rp->process_request($this->xml_string, $this->xslt_file);\n\t\t\t//echo microtime().\"Main:run after RequestProcessor::process_request <br>\"; flush();\n\t\t}\n\n\t\t//echo microtime().\"Main:run before user_authorized_output_function_check <br>\";\n\t\t//\techo date('h:i:s A').\" - just got output function<br>\";\n\t\tif (!$mss->user_authorized_output_function_check($output_function))\n\t\t{\n\t\t\t\n\t\t\t$cur_user_eid = Main_SecuritySystem::get_user_eid();\n\t\t\t$subject = \"unauthorized access attempt\";\n\t\t\t$message = \"user with eid \".$cur_user_eid.\" attempted to access \".$output_function; \n\t\t\tNotificationSys::email_developer($subject,$message);\n\t\t\tdie (\"Unauthorized Access Attempt!\");\n\t\t}\n\t\t$oof = new OutputOperationsFacade;\n\t\t//echo microtime().\"Main:run before output_function <br>\";\n\t\tif ($_REQUEST['OF_passthru'] && \n\t\t\t($mss->authenticated || $bypass_auth))\n\t\t{\n\t\t\t$oof->output_function_passthru($this->xml_string, $_REQUEST['OF_passthru']); \n\t\t\t//echo \"<br>output function:\".$_REQUEST['OF_passthru'];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$oof->$output_function($this->xml_string, $this->xslt_file);\n\t\t}\n\t\t//echo microtime().\"Main:run after output_function <br>\";\n\t\t//echo date('h:i:s A').\" - just exec'd output function<br>\";\n\t}", "public function processApi(){\n\t\t\t$func = strtolower(trim(str_replace(\"/\",\"\",$_REQUEST['x'])));\n//echo $func;\t\n\t\t\tif((int)method_exists($this,$func) > 0)\n\t\t\t\t$this->$func();\n\t\t\telse\n\t\t\t\t$this->response('',404); // If the method not exist with in this class \"Page not found\".\n\t\t}", "public function demo(){\n // $this->soapWrapper->add(function ($service) {\n // $service->name('CRW')\n // ->wsdl('http://crm.elizade.net:5050/Service1.svc?wsdl')\n // ->trace(true);\n // });\n $this->soapWrapper->add('CRW', function ($service) {\n $service\n ->wsdl('http://crm.elizade.net:5050/Service1.svc?wsdl')\n ->trace(true);\n // ->classmap([\n // GetConversionAmount::class,\n // GetConversionAmountResponse::class,\n // ]);\n });\n\n $data = [\n 'lastname' => 'Raymond',\n 'firstname' => 'Ativie',\n 'email' => '[email protected]',\n 'bizPhone' => '08151700676'\n ];\n\n $case = [\n 'accountnumber' => 'CUST013643',\n 'description' => 'This is a description',\n 'title' => 'Hello world'\n ];\n\n // $response = $this->soapWrapper->call('CRW.CreateContact', [$data]);\n $response = $this->soapWrapper->call('CRW.CreateCase', [$case]);\n\n var_dump($response);\n\n // Using the added service\n // $this->soapWrapper->service('CRW', function ($service) use ($data) {\n // var_dump($service->call('CreateContact', [$data]));\n // // var_dump($service->call('Otherfunction'));\n // });\n }", "public function run() {\n //fire off any events that are a associated with this event\n $event = new Event(KernelEvents::REQUEST_START);\n\n $this->container->get('EventDispatcher')->dispatch('all', KernelEvents::REQUEST_START, $event);\n\n $this->container->get('EventDispatcher')->dispatch($this->httpRequest->getRequestParams()->getYmlKey(), KernelEvents::REQUEST_START, $event);\n\n //initialize the MVC\n $nodeConfig = $this->httpRequest->getNodeConfig();\n \n $cmd = $this->getKernelRunner();\n\n\n $result = $cmd->execute($nodeConfig);\n\n $this->httpResponse->setAttribute('result', $result['data']);\n\n //file_put_contents('/var/www/glenmeikle.com/logs/db-debug.log', print_r($this->httpRequest, true), FILE_APPEND);\n // echo \"node filters\\r\\n\";\n runFilters($this->httpRequest->getSiteParams()->getSitePath(). DIRECTORY_SEPARATOR . $this->httpRequest->getNodeConfig()['componentPath'] . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'filters.yml', $this->httpRequest->getRequestParams()->getYmlKey(),FilterEvents::FILTER_REQUEST_FORWARD);\n // echo \"all filters\\r\\n\";\n runFilters($this->httpRequest->getSiteParams()->getConfigPath() . 'filters.yml', 'all',FilterEvents::FILTER_REQUEST_FORWARD);\n\n \n $event = new Event(KernelEvents::RESPONSE_END, $result);\n $this->container->get('EventDispatcher')->dispatch('all', KernelEvents::RESPONSE_END, $event);\n $this->container->get('EventDispatcher')->dispatch($this->httpRequest->getRequestParams()->getYmlKey(), KernelEvents::RESPONSE_END, $event);\n\n /**\n * now we dump the response to the page\n */\n renderResult($result, $this->httpResponse->getHeaders(), $this->httpResponse->getCookies());\n }", "public function handle() {\n\t\t\n\t\t\n\t\t\n\t\theader('ApiVersion: 1.0');\n\t\tif (!isset($_COOKIE['lg_app_guid'])) {\n\t\t\t//error_log(\"NO COOKIE\");\n\t\t\t//setcookie(\"lg_app_guid\", uniqid(rand(),true),time()+(10*365*24*60*60));\n\t\t} else {\n\t\t\t//error_log(\"cookie: \".$_COOKIE['lg_app_guid']);\n\t\t\t\n\t\t}\n\t\t// checks if a JSON-RCP request has been received\n\t\t\n\t\tif (($_SERVER['REQUEST_METHOD'] != 'POST' && (empty($_SERVER['CONTENT_TYPE']) || strpos($_SERVER['CONTENT_TYPE'],'application/json')===false)) && !isset($_GET['d'])) {\n\t\t\t\techo \"INVALID REQUEST\";\n\t\t\t// This is not a JSON-RPC request\n\t\t\treturn false;\n\t\t}\n\t\t\t\t\n\t\t// reads the input data\n\t\tif (isset($_GET['d'])) {\n\t\t\tdefine(\"WEB_REQUEST\",true);\n\t\t\t$request=urldecode($_GET['d']);\n\t\t\t$request = stripslashes($request);\n\t\t\t$request = json_decode($request, true);\n\t\t\t\n\t\t} else {\n\t\t\tdefine(\"WEB_REQUEST\",false);\n\t\t\t//error_log(file_get_contents('php://input'));\n\t\t\t$request = json_decode(file_get_contents('php://input'),true);\n\t\t\t//error_log(print_r(apache_request_headers(),true));\n\t\t}\n\t\t\n\t\terror_log(\"Method: \".$request['method']);\n\t\tif (!isset($this->exemptedMethods[$request['method']])) {\n\t\t\ttry {\n\t\t\t\t$this->authenticate();\n\t\t\t} catch (Exception $e) {\n\t\t\t\t$this->authenticated = false;\n\t\t\t\t$this->handleError($e);\n\t\t\t}\n\t\t} else {\n\t\t\t//error_log('exempted');\n\t\t}\n\t\ttrack_call($request);\n\t\t//error_log(\"RPC Method Called: \".$request['method']);\n\t\t\n\t\t//include the document containing the function being called\n\t\tif (!function_exists($request['method'])) {\n\t\t\t$path_to_file = \"./../include/methods/\".$request['method'].\".php\";\n\t\t\tif (file_exists($path_to_file)) {\n\t\t\t\tinclude $path_to_file;\n\t\t\t} else {\n\t\t\t\t$e = new Exception('Unknown method. ('.$request['method'].')', 404, null);\n \t$this->handleError($e);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t// executes the task on local object\n\t\ttry {\n\t\t\t\n\t\t\t$result = @call_user_func($request['method'],$request['params']);\n\t\t\t\n\t\t\tif (!is_array($result) || !isset($result['result']) || $result['result']) {\n\t\t\t\t\n\t\t\t\tif (is_array($result) && isset($result['result'])) unset($result['result']);\n\t\t\t\t\n\t\t\t\t$response = array (\n\t\t\t\t\t\t\t\t\t'jsonrpc' => '2.0',\n\t\t\t\t\t\t\t\t\t'id' => $request['id'],\n\t\t\t\t\t\t\t\t\t'result' => $result,\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t );\n\t\t\t} else {\n\t\t\t\tunset($result['result']);\n\t\t\t\t\n\t\t\t\t$response = array (\n\t\t\t\t\t\t\t\t\t'jsonrpc' => '2.0',\n\t\t\t\t\t\t\t\t\t'id' => $request['id'],\n\t\t\t\t\t\t\t\t\t'error' => $result\n\t\t\t\t\t\t\t\t );\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception $e) {\n\t\t\t\n\t\t\t$response = array (\n\t\t\t\t\t\t\t\t'id' => $request['id'],\n\t\t\t\t\t\t\t\t'result' => NULL,\n\t\t\t\t\t\t\t\t'error' => $e->getMessage()\n\t\t\t\t\t\t\t\t);\n\t\t\t\n\t\t}\n\t\t// output the response\n\t\tif (!empty($request['id'])) { // notifications don't want response\n\t\t\theader('content-type: text/javascript');\n\t\t\t//error_log(@print_r($response));\n\t\t\tif (isset($_GET['d'])) $str_response = $_GET['jsoncallback'].\"(\".str_replace('\\/','/',json_encode($response)).\")\";\n\t\t\telse $str_response = str_replace('\\/','/',json_encode($response));\n\t\t\t\n\t\t\tif ($_SERVER['SERVER_ADDR']=='192.168.1.6') {\n\t\t\t\t//error_log($str_response);\n\t\t\t}\n\t\t\techo $str_response;\n\t\t}\n\t\t\n\t\t\n\t\t// finish\n\t\treturn true;\n\t}", "function training_services_callback() {\n $server = url($GLOBALS['base_url'] . '/xmlrpc.php', array('external' => TRUE));\n $options = array(\n 'training_services.test' => array(\n 1,\n '2',\n ),\n );\n $results = xmlrpc($server, $options);\n\n return array(\n array(\n '#type' => 'markup',\n '#markup' => $results,\n ),\n );\n}", "function SOAP_call($body, $controle){\n $location_URL = 'https://api.go4you.com.br/Consultas/Pedidos/Acoes.asmx?wsdl';\n $action_URL = \"http://www.go4you.com.br/webservices/InserirPedidoSemBag\";\n \n $client = new SoapClient(null, array(\n \"Content-type: text/xml;charset=\\\"utf-8\\\"\",\n \"Accept: text/xml\",\n \"Cache-Control: no-cache\",\n \"Pragma: no-cache\",\n \"SOAPAction: \\\"run\\\"\",\n 'location' => $location_URL,\n 'host' => \"api.go4you.com.br\",\n 'uri' => \"api.go4you.com.br\",\n 'trace' => \"1\",\n \"Content-length: \".strlen($body)\n ));\n \n return $client->__doRequest($body ,$location_URL, $action_URL, 1); \n \n}", "public function execute()\n {\n $data = [];\n foreach ($this->getRequest()->getParams() as $key => $post) {\n $data[$key] = filter_var($post, FILTER_SANITIZE_STRING);\n }\n\n $originZip = isset($data['origin_zip']) ? $data['origin_zip'] : '';\n\n if ($originZip) {\n $mapResult = $this->googleApiCurl($originZip, EnConstants::GOOGLE_URL);\n $error = $this->errorChecking($mapResult);\n\n if (empty($error)) {\n $addressArray = $this->addressArray($mapResult);\n } else {\n $addressArray = $error;\n }\n } else {\n $addressArray = $this->dataHelper->generateResponse();\n }\n\n $this->getResponse()->setHeader('Content-type', 'application/json');\n /** @var array $addressArray */\n $this->getResponse()->setBody(json_encode($addressArray));\n }", "public function execute() {\n\n $this->parseRequestHeaders();\n\n $uri = $this->loadUrl(); // Loads the called URL\n String::arrayTrimNumericIndexed($uri); // Trim the URL array indexes\n\n /**\n * When server is running as a RESTful server\n */\n if (RESTFUL == '1') {\n RestServer::runRestMethod($uri);\n $this->terminate();\n }\n\n /**\n * When the request is not running over ajax,\n * then call the home for full page rendering\n * before calling the requested method\n */\n if (!$this->isAjax()) {\n\n $this->controller = $this->requireHome();\n $this->controller->itStarts($uri);\n $this->terminate();\n }\n\n /**\n * Normal Ajax Request, call the method only\n */\n $this->runMethod($uri);\n $this->terminate();\n }", "public function service(BLW_HTTP_Request $request, BLW_HTTP_Response $response);", "public function processApi()\n {\n $func = strtolower(trim(str_replace(\"/\",\"\",$_REQUEST['mode'])));\n if((int)method_exists($this,$func) > 0)\n {\n $this->$func();\n } \n else\n {\n $data = array('code' => \"404\", 'status' => \"failure\", \"msg\" => \"requested method not available\", \"data\" => array());\n $this->response($this->json($data)); \n }\n \n // If the method not exist with in this class, response would be \"Page not found\".\n }", "public function execute()\r\n\t{\r\n\t\t$service_name = $this->getRequestParameter( \"myaction\" );\r\n\r\n\t\t// remove all '_' and set to lowercase\r\n\t\t$myaction_name = trim( strtolower( str_replace ( \"_\" , \"\" , $service_name ) ) );\r\n\t\t$clazz_name = $myaction_name . \"Action\";\r\n//\t\techo \"[$myaction_name] [$clazz_name]<br>\";\r\n\r\n//\t\t$clazz = get_class ( $clazz_name );\r\n\r\n\t\t//$multi_request = $this->getRequestParameter( \"multirequest\" , null );\r\n\t\t$multi_request = $myaction_name == \"multirequest\" ;\r\n\t\tif ( $multi_request )\r\n\t\t{\r\n\t\t\t$multi_request = new myMultiRequest ( $_REQUEST, $this );\r\n\t\t\t$response = $multi_request->execute();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$include_result = @include_once ( \"{$clazz_name}.class.php\");\r\n\t\t\tif ( $include_result )\r\n\t\t\t{\r\n\t\t\t\t$myaction = new $clazz_name( $this );\r\n\t\t\t\t$myaction->setInputParams ( $_REQUEST );\r\n\t\t\t\t$response = $myaction->execute( );\r\n\t\t\t\tkEventsManager::flushEvents();\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$format = $this->getP ( \"format\" );\r\n\t\t\t\t$response = \"Error: Invalid service [$service_name]\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t$format = $this->getP ( \"format\" );\r\n\t\tif ( $format == kalturaWebserviceRenderer::RESPONSE_TYPE_PHP_ARRAY || $format == kalturaWebserviceRenderer::RESPONSE_TYPE_PHP_OBJECT )\r\n\t\t{\r\n\t\t\t//$this->setHttpHeader ( \"Content-Type\" , \"text/html; charset=utf-8\" );\r\n\t\t\t$response = \"<pre>\" . print_r ( $response , true ) . \"</pre>\" ;\r\n\t\t}\r\n\r\n\t\t// uncomment in order to cache api responses\r\n\t\tif(kConf::get('enable_cache'))\r\n\t\t{\r\n\t\t\t$this->cacheResponse($response);\r\n\t\t}\r\n\r\n\t\t\r\n $ret = $this->renderText( $response );\r\n KExternalErrors::terminateDispatch();\r\n return $ret;\r\n\t}", "public function doRequests();", "private function getResponseXML()\n\t\t{\n\n\n\t\t\t\tif($this->action_code==\"RateShop\" || $this->action_code==\"SingleCarRateShop\"){ //rateshop\n\t\t\t\t\t$wsdl = ($this->car_company==\"dollar\")?DOLLAR_RATESHOP_WS_URL:THRIFTY_RATESHOP_WS_URL;\n\t\t\t\t\t$soapAction = \"http://www.opentravel.org/OTA/2003/05/OTA2010A.RateService/GetRates\";\n\t\t\t\t\t$methodname = \"GetRates\";\n\n\t\t\t\t}else{ //booking\n\t\t\t\t\t$wsdl = ($this->car_company==\"dollar\")?DOLLAR_BOOKING_WS_URL:THRIFTY_BOOKING_WS_URL;;\n\t\t\t\t\tif($this->action_code==\"Booking\"){\n\t\t\t\t\t\t$methodname = \"MakeReservation\";\n\t\t\t\t\t\t$soapAction = \"http://www.opentravel.org/OTA/2003/05/OTA2010A.ReservationService/MakeReservation\";\n\t\t\t\t\t}else if($this->action_code==\"RetrieveReservation\"){\n\t\t\t\t\t\t$soapAction =\"http://DTG.TourDirect/IReservationService/RetrieveReservation\";\n\t\t\t\t\t\t$methodname=\"RetrieveReservation\";\n\n\t\t\t\t\t}else if($this->action_code==\"ModifyReservation\"){\n\t\t\t\t\t\t$soapAction =\"http://www.opentravel.org/OTA/2003/05/OTA2010A.ReservationService/ModifyReservation\";\n\t\t\t\t\t\t$methodname=\"ModifyReservation\";\n\t\t\t\t\t}else if($this->action_code==\"CANCEL\"){\n\t\t\t\t\t\t$soapAction =\"http://www.opentravel.org/OTA/2003/05/OTA2010A.ReservationService/CancelReservation\";\n\t\t\t\t\t\t$methodname=\"CancelReservation\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfile_put_contents(dirname(__FILE__). DIRECTORY_SEPARATOR . 'LogTF'.date('Ymd').'.txt',$wsdl,FILE_APPEND);\n\t\t\t\t$client = new nusoap_client($wsdl,'wsdl');\n\t\t\t\t$client->soap_defencoding = 'utf-8';\n\t\t\t\t$client->operation = $methodname;\n\t\t\t\t$r=$client->send($this->xml, $soapAction, '');\n\t\t\t\t$response_xml = $client->responseData;\n\t\t\t\tfile_put_contents(dirname(__FILE__). DIRECTORY_SEPARATOR . 'LogTF'.date('Ymd').'.txt',$response_xml,FILE_APPEND);\n//\t\t\tprint_r($wsdl);\n\t\t\t//print_r($response_xml);\n\t\t\t//print_r($this->car_company);\n\t\t\t//print_r($this->xml);\n\t\t\t//exit;\n\n\t\t\t\tif($this->action_code==\"RateShop\" || $this->action_code==\"SingleCarRateShop\"){\n\t\t\t\t\t$xml = simplexml_load_string($response_xml);\n\t\t\t\t\t$name_spaces = $xml->getNamespaces(true);\n\t\t\t\t\t$result=$xml->children($name_spaces['s'])->Body->children()->GetRatesResponse->asXML();\n\t\t\t\t\t$result = $this->parseResponseXML($result);\n\t\t\t\t}else{\n\t\t\t\t\tif($this->action_code==\"Booking\"){\n\t\t\t\t\t\t$xml = simplexml_load_string($response_xml);\n\t\t\t\t\t\t$name_spaces = $xml->getNamespaces(true);\n\t\t\t\t\t\t$result=$xml->children($name_spaces['s'])->Body->children()->MakeReservationResponse->asXML();\n\t\t\t\t\t\t$result = $this->parseResponseXML($result);\n\t\t\t\t\t}else if($this->action_code==\"RetrieveReservation\"){\n\t\t\t\t\t\t$result = $this->parseResponseXML($r[\"RetrieveReservationResult\"]);\n\t\t\t\t\t}else if($this->action_code==\"ModifyReservation\"){\n\t\t\t\t\t\t$xml = simplexml_load_string($response_xml);\n\t\t\t\t\t\t$result =$xml->Body->ModifyReservationResponse->asXML();\n\t\t\t\t\t\t$result = $this->parseResponseXML($result);\n\t\t\t\t\t}else if($this->action_code==\"CANCEL\"){\n\t\t\t\t\t\t$xml = simplexml_load_string($response_xml);\n\t\t\t\t\t\t$name_spaces = $xml->getNamespaces(true);\n\t\t\t\t\t\t$result=$xml->children($name_spaces['s'])->Body->children()->CancelReservationResponse->asXML();\n\t\t\t\t\t\t$result = $this->parseResponseXML($result);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tunset($client);\n\t\t\t$this->response = $result;\n\t\t\treturn $result;\n\t\t}", "protected function handler ($SVC) {}", "static function main() {\n\t\t$container = isset($_SESSION[SESSIONID]) ? $_SESSION[SESSIONID] : null;\n\t\tif(!$container instanceof NewFTPMirror || isset($_REQUEST['reload'])) {\n\t\t\t$container = new NewFTPMirror();\n\t\t\t$_SESSION[SESSIONID] = $container;\n\t\t}\n\n\t\t// Set up a page for tracking the response for this request\n\t\t$page = new Page(STYLESHEET);\n\t\t\n\t\t// Service the request, tracking results and output on the given DOM\n\t\t$container->service($page->result);\n\t\t\n\t\t// Send the page for post-processing and output\n\t\t$page->send();\n\t\t\n\t\t// Save anything changed in the session\n\t\t$_SESSION[SESSIONID] = $container;\n\t}", "public function run(){\n\n\t\ttry{\n\n\t\t\t# On récupère la route correspondant a la requete\n\t\t\t$route = $this->router->dispatch(\n\t\t\t\t$this->request,\n\t\t\t\t$this->root\n\t\t\t);\n\n\t\t\t# Si il n'y a pas de route on lance une exception\n\t\t\tif(!$route){\n\n\t\t\t\tthrow new Exception('Pas de route trouvée pour cette adresse.');\n\n\t\t\t}\n\n\t\t\t# On execute la route et on récupère la valeur retournée\n\t\t\t$retour = $route->execute(\n\t\t\t\t$this->request,\n\t\t\t\t$this->response\n\t\t\t);\n\n\t\t\t# Si la valeur de retour n'est pas vide\n\t\t\tif($retour){\n\n\t\t\t\t# Si c'est une vue qui a été retournée, on la\n\t\t\t\t# rend\n\t\t\t\tif($retour instanceOf View){\n\n\t\t\t\t\t$retour = $retour->render();\n\n\t\t\t\t}\n\n\t\t\t\t# On attribue la valeur de retour au corps de\n\t\t\t\t# la réponse\n\t\t\t\t$this->response->setBody($retour);\n\n\t\t\t}\n\n\t\t\t# Si la réponse n'a pas été envoyée, on l'envoit\n\t\t\tif(!$this->response->isSent()){\n\n\t\t\t\t$this->response->send();\n\n\t\t\t}\n\n\t\t}catch(Exception $e){\n\n\t\t\techo $e->getMessage();\n\n\t\t}\n\n\t}", "public function run()\n\t\t{\n\t\t\tswitch ($_GET['act']) {\n\t\t\t\tcase 'create':\n\t\t\t\t\t//Crear\n\t\t\t\t\tif(BaseCtrl::isAdmin())\n\t\t\t\t\t\t$this->create();\n\t\t\t\t\telse{\n\t\t\t\t\t\tif ($this->api) {\n\t\t\t\t\t\t\techo $this->json_encode(array('error'=>NO_PERMITIDO,'data'=>NULL,'mensaje'=>'No tienes permisos suficientes'));\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t//CARGAR VISTA DE NO PERMITIDO\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\n\t\t\t\tcase 'lists':\n\t\t\t\t\t//Listar \n\t\t\t\t\t$this->lists();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'listsDetails':\n\t\t\t\t\t//Crear \n\t\t\t\t\t$this->listsDetails();\n\t\t\t\t\tbreak;\t\n\t\t\t\tcase 'get':\n\t\t\t\t\t//Obtener una Recepcion\n\t\t\t\t\t$this->getRecepcion();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'getFolio':\n\t\t\t\t\t$this->getFolio();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif ($this->api) {\n\t\t\t\t\t\techo $this->json_encode(array('error'=>SERVICIO_INEXISTENTE,'data'=>NULL,'mensaje'=>'Este recepcion no está disponible'));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//CARGAR VISTA DE SERVICIO INEXISTENTE\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "private function processRequest()\n\t{\n\t\t\n\t\t$request = NEnvironment::getService('httpRequest');\n\t\t\n\t\tif ($request->isPost() && $request->isAjax() && $request->getHeader('x-callback-client')) { \n\t\t\t\n\t\t\t$data = json_decode(file_get_contents('php://input'), TRUE);\n\t\t\tif (count($data) > 0) {\n\t\t\t\tforeach ($data as $key => $value) {\n\t\t\t\t\tif (isset($this->items[$key]) && isset($this->items[$key]['callback']) && $value === TRUE) {\n\t\t\t\t\t\t$this->items[$key]['callback']->invokeArgs($this->items[$key]['args']);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tdie(json_encode(array('status' => \"OK\")));\n\t\t}\n\t\t\n\t}", "abstract public function service();", "public function processApi() {\n\t\t$func = strtolower(trim(str_replace(\"/\", \"\", $_REQUEST['rquest'])));\n\t\tif ((int) method_exists($this, $func) > 0)\n\t\t\t$this -> $func();\n\t\telse\n\t\t\t$this -> response('', 404);\n\t\t// If the method not exist with in this class, response would be \"Page not found\".\n\t}", "public function processApi() {\n\t\t$func = strtolower(trim(str_replace(\"/\", \"\", $_REQUEST['rquest'])));\n\t\tif ((int) method_exists($this, $func) > 0)\n\t\t\t$this -> $func();\n\t\telse\n\t\t\t$this -> response('', 404);\n\t\t// If the method not exist with in this class, response would be \"Page not found\".\n\t}", "public function processApi(){\n $func = strtolower(trim(str_replace(\"/\",\"\",$_REQUEST['rquest'])));\n if((int)method_exists($this,$func) > 0)\n $this->$func();\n else\n $this->response('',404);\t\t\t\t// If the method not exist with in this class, response would be \"Page not found\".\n }", "public function getProcessedOrder( $param = array() )\n {\n \n $Token = Configure::read('access_token');\n $soapUrl = \"http://api.linnlive.com/order.asmx?op=ProcessOrder\"; \n $xml_post_string = '<?xml version=\"1.0\" encoding=\"utf-8\"?>\n <soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">\n <soap:Body>\n <ProcessOrder xmlns=\"http://api.linnlive.com/order\">\n <Token>'.$Token.'</Token>\n <request> \n <OrderIdIsSet>true</OrderIdIsSet>\n <OrderId>'.$param['OrderId'].'</OrderId> \n <ProcessedByName>'.$param['ProcessedByName'].'</ProcessedByName>\n <ProcessDateTimeIdIsSet>true</ProcessDateTimeIdIsSet> \n </request>\n </ProcessOrder>\n </soap:Body>\n </soap:Envelope>';\n \n $headers = array(\n \"POST /generic.asmx HTTP/1.1\",\n \"Host: api.linnlive.com\",\n \"Content-Type: text/xml; charset=utf-8\",\n \"Content-Length: \".strlen($xml_post_string)\n );\n \n $url = $soapUrl;\n \n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_POST, true);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $xml_post_string);\n curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n $response = curl_exec($ch); \n curl_close($ch);\n \n $response = str_replace( \"</soap:Body>\" ,\"\" , str_replace( \"<soap:Body>\" , \"\" , $response ) );\n $parser = simplexml_load_string($response);\n //echo \"<pre>\";\n //print_r($parser);\n return $parser->ProcessOrderResponse->ProcessOrderResult->Error;\n //exit; \n \n }", "function wsdl_docs_prepare_request_callback($form, $form_state) {\n $service = $form_state['build_info']['args'][0];\n $operation = $form_state['build_info']['args'][1];\n\n // Convert the form values into a data structure suitable for making the query.\n // Magic?\n // service::invoke will cast this array into the correct paramaterized objects\n // According to the $operation['parameter'] schema. Nifty.\n $args = array();\n if (!empty($form_state['values']['parameters'])) {\n $args = $form_state['values']['parameters'];\n }\n\n if ($service->type == 'soap') {\n // The service will have an endpoint that will have a SOAPClient.\n // Settings on the service->options may be passed to the SOAPClient.\n // @see WSClientSOAPEndpoint::client()\n // @see http://www.php.net/manual/en/soapclient.soapclient.php\n $service->settings['options']['trace'] = TRUE;\n // disable cache when testing!\n $service->settings['options']['cache_wsdl'] = WSDL_CACHE_NONE;\n }\n\n // Ready to actually invoke the call\n $timer_before = microtime();\n try {\n if ($operation['name']) {\n $response = $service->invoke($operation['name'], $args);\n }\n elseif ($operation['label']) {\n $response = $service->invoke($operation['label'], $args);\n }\n }\n catch (Exception $e) {\n drupal_set_message(t('Exception: %e'), array('%e' => $e->getMessage()));\n }\n $timer_duration = $timer_before - microtime();\n $element = $form['transaction'];\n\n // Place the trace data into the display.\n if ($service->type == 'rest') {\n $operation = $service->operations[$operation['name']];\n $parameters = '';\n foreach ($args as $para_name => $para_value) {\n $parameters .= $para_name . '=' . $para_value . '<br>';\n }\n $reqInfo = 'Uri:' . $service->url . $operation['url'] . '<br>' .\n 'Method:' . (isset($operation['type']) ? $operation['type'] : 'GET') . '<br>' .\n 'Parameter:' . $parameters;\n $element['request']['packet']['#markup'] = $reqInfo;\n $element['response']['header']['#markup'] = $service->endpoint()->client()->lastResponse->headers;\n $element['response']['packet']['#markup'] = $service->endpoint()->client()->lastResponse->body;\n }\n elseif ($service->type == 'soap') {\n $element['request']['header']['#markup'] = $service->endpoint()->client()->__getLastRequestHeaders();\n $element['request']['packet']['#markup'] = htmlspecialchars(wsdl_docs_prettify_xml($service->endpoint()->client()->__getLastRequest()));\n $_SESSION['lastRequest'] = $service->endpoint()->client()->__getLastRequest();\n\n $element['response']['header']['#markup'] = $service->endpoint()->client()->__getLastResponseHeaders();\n $element['response']['packet']['#markup'] = htmlspecialchars(wsdl_docs_prettify_xml($service->endpoint()->client()->__getLastResponse()));\n $_SESSION['lastResponse'] = $service->endpoint()->client()->__getLastResponse();\n }\n\n $element['#value'] = t('Ran at %time, took %duration to execute', array(\n '%time' => time(),\n '%duration' => $timer_duration,\n ));\n\n return $element;\n}", "public function runRequest() {\n }", "function run($xml_reponse, $p)\n {\n die(_pfc(\"%s must be implemented\", get_class($this) . \"::\" . __FUNCTION__));\n }", "public function processApi(){\n\t\t\t$func = strtolower(trim(str_replace(\"/\",\"\",$_REQUEST['rquest'])));\n\t\t\tif((int)method_exists($this,$func) > 0)\n\t\t\t\t$this->$func();\n\t\t\telse\n\t\t\t\t$this->response('',404);\t\t\t\t// If the method not exist with in this class, response would be \"Page not found\".\n\t\t}", "protected function _process() {}", "protected function _process() {}", "protected function _process() {}", "protected function _process() {}", "public function processApi() {\n\n $func = strtolower(trim(str_replace(\"/\", \"\", $_REQUEST['rquest'])));\n\n if ((int) method_exists($this, $func) > 0) {\n $this->$func();\n } else {\n $this->response('Method not Found', 404); // If the method not exist with in this class, response would be \"Page not found\".*/\n\t}\n\n }", "public function service() {\n\t\t\t\n\t\t//Set the parameters for the charset handler\n\t\tCharsetHandler::setMethod($this->_charsetMethod);\n\t\tCharsetHandler::setPhpCharset($this->_charsetPhp);\n\t\tCharsetHandler::setSqlCharset($this->_charsetSql);\n\t\t\n\t\t//Attempt to call charset handler to catch any uninstalled extensions\n\t\t$ch = new CharsetHandler('flashtophp');\n\t\t$ch->transliterate('?');\n\t\t\n\t\t$ch2 = new CharsetHandler('sqltophp');\n\t\t$ch2->transliterate('?');\n\t\t\n\t\t$GLOBALS['amfphp']['actions'] = $this->actions;\n\t\t\n\t\tif(! isset($GLOBALS['HTTP_RAW_POST_DATA'])){\n\t\t\t$GLOBALS['HTTP_RAW_POST_DATA'] = file_get_contents('php://input');\n\t\t}\n\t\t$raw_data = $GLOBALS[\"HTTP_RAW_POST_DATA\"];\n\t\tif(! isset($raw_data[0])){\n\t\t\techo \"<p>amfphp and this gateway are installed correctly. You may now connect \", \"to this gateway from Flash.</p>\";\n\t\t\texit(0);\n\t\t}\n\t\t//Enable loose mode if requested\n\t\tif($this->_looseMode){\n\t\t\tob_start();\n\t\t}\n\t\t\n\t\t$amf = new AMFObject($raw_data); // create the amf object\n\t\t\n\n\t\tforeach($this->filters as $filter){\n\t\t\t$filter($amf); // invoke the first filter in the chain\n\t\t}\n\t\t\n\t\t$output = $amf->outputStream; // grab the output stream\n\t\t\n\n\t\t//Clear the current output buffer if requested\n\t\tif($this->_looseMode){\n\t\t\tob_end_clean();\n\t\t}\n\t\t\n\t\t//Send content length header\n\t\theader('Content-type: application/x-amf'); // define the proper header\n\n\t\t// write header for no browser cache the amf data\n\t\theader('Expires: '. gmdate('D, d M Y H:i:s', time() - 86400).' GMT');\n\t\theader(\"Pragma: no-store\");\n\t\theader(\"Cache-Control: no-store\");\n\n\t\t$doCompress = false;\n\t\t$outputCompression = ini_get(\"zlib.output_compression\");\n\t\tif(! $outputCompression){\n\t\t\tif($this->_enableGzipCompression && strlen($output) > $this->_gzipCompressionThreshold && extension_loaded(\"zlib\") && strpos(\n\t\t\t\t\t$_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== FALSE){\n\t\t\t\t$doCompress = true;\n\t\t\t\tob_start();\n\t\t\t\tob_start('ob_gzhandler');\n\t\t\t}\n\t\t\telse{\n\t\t\t\theader(\"Content-length: \" . strlen($output));\n\t\t\t}\n\t\t}\n\t\t\n\t\tprint($output); // flush the binary data\n\n\t\tif($doCompress){\n\t\t\tob_end_flush();\n\t\t\theader(\"Content-length: \" . ob_get_length());\n\t\t\tob_end_flush();\n\t\t}\n\t}", "private function invoke() {\n global $user;\n $req =& $this->request;\n try {\n\n if ($req) {\n if (isset($req->uri) && preg_match(\"/^([^\\?]*)(\\?(.*))?$/\", $req->uri, $match)) {\n $this->q = $match[1];\n parse_str($match[3], $_GET);\n }\n }\n \n if (isset($req) && !is_object($req))\n throw new Exception(\"Invalid Request.\", -32600);\n \n \n if (!preg_match(\"/^(?:(\\D\\w*)[\\.\\/])?(\\D\\w*)\\/?(.*)$/\", $this->q, $match))\n throw new Exception(\"Invalid Request.\", -32600);\n \n list(, $c, $m, $a) = $match;\n \n\t\t\n\t\t//if (!$c)\n\t\t//\t$c = jsonrpc_load_class_by_method($m, TRUE);\n \n\n\t\t\n \n if (!($c && class_exists($c, FALSE))) {\n $c = jsonrpc_load_class($c, $m, TRUE);\n }\n \n if (isset($a) && is_string($a) && FALSE !== strpos($a, ','))\n $a = explode(',', $a);\n if (isset($_GET['id']))\n $req->id = $_GET['id'];\n $is_super = $user->uid == 1;\n if ($user->uid == 0 && $_SERVER['REMOTE_ADDR'] == '127.0.0.1' && !isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n $is_super = TRUE;\n $user->uid = 1;\n }\n \n //echo $c;\n \n if (!method_exists($c, $m))\n throw new Exception('Method does not exists.', -32601);\n if (variable_get('site_offline', 0) && !$is_super)\n throw new Exception('Site if offline');\n $refl = new ReflectionMethod($c, $m);\n \n\t//$args = array();\n \n if (!isset($req->params)) {\n if ($a)\n $args = $a;\n elseif (isset($_GET['params']))\n $args = explode(',', $_GET['params']);\n elseif (isset($_GET['param']))\n $args = explode(',', $_GET['param']);\n }\n else\n $args = $req->params;\n \n //if(!is_array($args))\n \t\n\n\t//var_dump(count($args) <= $refl->getNumberOfParameters());\n\n //if ($refl->getNumberOfRequiredParameters() <= 1 && is_array($args) && count($args) > $refl->getNumberOfParameters() )\n \n //if($refl->getNumberOfRequiredParameters\n \n $np = $refl->getNumberOfParameters();\n $nr = $refl->getNumberOfRequiredParameters();\n\n\t\t//if ($np == 1 && count($args)\n//var_dump($args);\n//die;\n \n \n \n if ($nr <= 1 && !(is_array($args) && count($args) == $np && $np > 1 ) && isset($req->params))\n $args = array($args);\n\n\n//var_dump($args);\n\n switch (TRUE) {\n case $refl->isStatic():\n $req->result = call_user_func_array(array($c, $m), $args);\n break;\n case $refl->isPublic():\n $inst = $this->instance($c);\n $req->result = call_user_func_array(array($inst, $m), $args);\n break;\n case $refl->isProtected() && $is_super:\n $refl->setAccessible(TRUE);\n $req->result = $refl->invokeArgs(new $c, $args);\n break;\n default:\n throw new Exception(\"Method not found or permission denied on launching $c::$m.\");\n }\n } catch (Exception $e) {\n if (!is_object($req))\n $req = $this->request = (object)NULL;\n $data = isset($e->data) ? $e->data : get_class($e);\n $req->error = array('code' => $e->getCode(), 'message' => $e->getMessage(), 'data' => $data);\n }\n }", "public function __construct($arguments = array()) {\n \n parent::__construct($arguments);\n\n $this->description = t('Get Procedure (English) from SOAP service (SharePoint).');\n\n // \"fields\" from an XML feed, so we pass an explicit list of source fields.\n $fields = array(\n// 'd:Id' => t('ID'),\n// 'd:Title' => t('Name'),\n// 'd:AudienceDesc' => t('Description'),\n \n 'RecordID' => t('Record ID'),\n 'ServiceID' => t('Service ID'),\n 'AProcedureName' => t('A ProcedureName'),\n 'Ebeneficiary' => t('E Beneficiary'),\n );\n\n // The source ID here is the one retrieved from the XML listing URL, and\n // used to identify the specific item's URL.\n $this->map = new MigrateSQLMap($this->machineName,\n array(\n 'RecordID' => array(\n 'type' => 'varchar',\n 'length' => 255,\n 'not null' => TRUE,\n 'description' => 'Record ID',\n ),\n ),\n MigrateDestinationTerm::getKeySchema()\n );\n\n //$xpath = '//m:properties/d:Id';\n\n // Source list URL.\n //$list_url = 'http://dnrd.ae/_layouts/RestProxy/Query.aspx?html=0&q=Audiance';\n $soap_service_name = 'test_soap';\n\n // Each ID retrieved from the list URL will be plugged into :id in the\n // item URL to fetch the specific objects.\n //$item_url = 'http://dnrd.ae/_layouts/RestProxy/Query.aspx?html=0&q=Audiance(:id)';\n\n // We use the MigrateSourceList class for any source where we obtain the\n // list of IDs to process separately from the data for each item. The\n // listing and item are represented by separate classes, so for example we\n // could replace the XML listing with a file directory listing, or the XML\n // item with a JSON item.\n \n// $this->source = new MigrateSourceList(new DnrdMigrateListXML($list_url, $xpath),\n// new MigrateItemXML($item_url), $fields);\n $this->source = new MigrateSourceList(new Gdrfa_MigrateListSoapXML($soap_service_name),\n new Gdrfa_MigrateItemSoapXML($soap_service_name), $fields);\n \n \n $this->destination = new MigrateDestinationNode('service_soap');\n \n\n // TIP: Note that for XML sources, in addition to the source field passed to\n // addFieldMapping (the name under which it will be saved in the data row\n // passed through the migration process) we specify the Xpath used to retrieve\n // the value from the XML.\n \n $this->addFieldMapping('title', 'RecordID')->xpath('//RecordID');\n\n $this->addFieldMapping('field_service_id', 'ServiceID')->xpath('//ServiceID');\n\n $this->addFieldMapping('field_a_procedure_name', 'AProcedureName')->xpath('//AProcedureName');\n \n $this->addFieldMapping('field_e_beneficiary', 'Ebeneficiary')->xpath('//Ebeneficiary');\n\n $this->addFieldMapping('status')\n ->defaultValue(1);\n\n $this->addFieldMapping('promote')\n ->defaultValue(0);\n\n $this->addFieldMapping('sticky')\n ->defaultValue(0);\n\n // Declare unmapped source fields.\n $unmapped_sources = array(\n /*\n //'EProcedureName',\n 'ADepartment',\n 'EDepartment',\n 'ECustomerType',\n 'ACustomerType',\n 'Classification',\n 'Status',\n 'Estatus',\n 'Astatus',\n\n 'Abeneficiary',\n 'AFeeRequired',\n 'ARequirements',\n 'ATools',\n 'ANotesforCustomer',\n 'ANoteforemployees',\n 'ESubmissionPlaces',\n 'ASubmissionPlaces',\n 'AProcedureDetail',\n 'OnLocal',\n 'OnLine',\n 'Modified',\n 'NeedUpdate',\n 'UpdateID',\n 'Active',\n */\n\n );\n $this->addUnmigratedSources($unmapped_sources);\n\n // Declare unmapped destination fields.\n $unmapped_destinations = array(\n 'nid',\n 'uid',\n //'redirect',\n 'language',\n 'tnid',\n 'body',\n 'created',\n 'body:summary',\n 'body:format',\n 'changed',\n 'log',\n 'translate',\n 'revision',\n 'revision_uid',\n 'is_new',\n 'path',\n 'pathauto',\n 'comment',\n );\n $this->addUnmigratedDestinations($unmapped_destinations);\n \n \n \n\n }", "public function process();", "public function process();", "public function process();", "public function process();", "public function callServiceType ()\n\t\t{\n\t\t\t/* get meta data from META.inf */\n\t\t\t$this->result['meta'] = self::getMetaData ();\n\t\t\tif ( $this->t != null ) {\n\t\t\tif ( strtoupper ( $this->t ) == 'NAME' ){ self::getName ();} \n\t\t\telse if ( strtoupper ( $this->t ) == 'LASTCON' ) { self::getLastConnection (); } \n\t\t\telse if ( strtoupper ( $this->t ) == 'PUBLICIP' ) { self::getIPPublic(); } \n\t\t\telse if ( strtoupper ( $this->t ) == 'PORT' ) { self::getPort (); } \n\t\t\telse if ( strtoupper ( $this->t ) == 'CERT' ) { self::getUserCertExpire ();} \n\t\t\telse if ( strtoupper ( $this->t ) == 'NETMASK' ) { self::getGatewayServer ('netmask');} \n\t\t\telse if ( strtoupper ( $this->t ) == 'GATEWAY' ) { self::getGatewayServer ('gateway'); } \n\t\t\telse if ( strtoupper ( $this->t ) == 'SERVPROCESS' ) { self::getOVPNProcess (); } \n\t\t\telse if ( strtoupper ( $this->t ) == 'ROUTING' ) { self::getRouteInfo (); }\n\t\t\telse if ( strtoupper ( $this->t ) == 'IP' ) { self::getClientIP (); }\n\t\t\telse if ( strtoupper ( $this->t ) == 'STATUS' ) { self::getConnectStatus (); }\n\t\t\telse if ( strtoupper ( $this->t ) == 'SUCCESS' ) { self::pushEvents (\"success\"); }\n\t\t\telse if ( strtoupper ( $this->t ) == 'ERROR' ) { self::pushEvents (\"error\"); }\n\t\t\telse if ( strtoupper ( $this->t ) == 'DSPEVENTS' ) { self::getEvents (); }\n\t\t\telse $this->result['data'] = \"Invalid parameter\"; }\n\n\t\t\treturn self::uniConvert ();\n\t\t}", "public function processApi()\n\t\t{\n\t\t\t$this->createEntry();\n\t\t}", "function javaService($pid,$dbM)\n{\n\t//$x = $WebAuthentication->setPaymentGatewayAuthchecksum($pid);\n\t//$auth = $x[\"AUTHCHECKSUM\"];\n\t$url = \"http://localhost:8190/listings/v1/activities?type=chat&listing=shortlist\";\n\t$header = array(\"JB-Profile-Identifier:\".$pid);\n\t$start_tm=microtime(true);\n\t$response = CommonUtility::sendCurlPostRequest($url,\"\",\"\",$header);\n\t$diff=microtime(true)-$start_tm;\n\t$data = (Array)json_decode($response);\n\t$insert[\"pid\"]=$pid;\n\t$insert[\"count\"]=$data[\"data\"]->totalCount;//$data[\"header\"]->totalCount;\n\t$insert[\"ids\"]=\"\";\n\t\n\tforeach($data[\"data\"]->items as $k=>$v)\n\t{\n\t\t$insert[\"ids\"].=$v->profileid.\",\";\n\t}\n\tinsertData($insert,2,$diff,$dbM);\n}", "public function processApi(){\n\t\t$func = strtolower(trim(str_replace(\"/\",\"\",$_REQUEST['rquest'])));\n\t\tif((int)method_exists($this,$func) > 0)\n\t\t\t$this->$func();\n\t\telse\n\t\t\t$this->response('',404);\t// If the method not exist with in this class, response would be \"Page not found\".\n\t}", "public function processApi(){\n\t\t\t$func = strtolower(trim(str_replace(\"/\",\"\",$_REQUEST['x'])));\n\t\t\tif((int)method_exists($this,$func) > 0) {\n $this->$func();\n }\n\t\t\telse {\n $this->response('',404); // If the method not exist with in this class \"Page not found\". \n }\n\t\t\t\t\n\t\t}", "function main()\t{\n\t\t$obj_new_film= new film_service();\n\t\t$obj_new_film->save_film();\n\n\t\t$this->resultat= $obj_new_film->resultat;\n\t}", "public function call()\r\n\t{\r\n\t\t// get the request XML from the DOM document\r\n\t\t$request_xml = $this->__toString();\r\n\t\t\r\n\t\t// get the API function name\r\n\t\t$function_name = get_class($this);\r\n\t\tif (substr($function_name, -4) == 'Mass')\r\n\t\t{\r\n\t\t\t$function_name = substr($function_name, 0, -4);\r\n\t\t}\r\n\t\t$function_name = substr($function_name, strrpos($function_name, '_') + 1);\r\n\t\t\r\n\t\t// make the API call\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// instantiate the SOAP client and make the API call\r\n\t\t\t$client = new SoapClient($this->props['remote_host'].'/external/api/api.wsdl', \r\n\t\t\t\tarray('location' => $this->props['remote_host'].'/external/api/api.php'));\r\n\t\t\t$result = $client->$function_name($this->props['api_version'], $this->props['auth_key'], $request_xml);\r\n\t\t} // end try\r\n\t\t// there was an error trying to make the API call\r\n\t\tcatch (SoapFault $fault)\r\n\t\t{\r\n\t\t\tthrow new Services_WorkXpress_API_Exception(\"SOAP Fault: (faultcode: {$fault->faultcode}; faultstring: {$fault->faultstring})\");\r\n\t\t} // end catch SoapFault\r\n\t\t\r\n\t\t// create a response object\r\n\t\t$class_name = str_replace('Request', 'Response', get_class($this));\r\n\t\tif (substr($class_name, -4) == 'Mass')\r\n\t\t{\r\n\t\t\t$class_name = substr($class_name, 0, -4);\r\n\t\t}\r\n\t\t$response = new $class_name($result);\r\n\t\t\r\n\t\treturn $response;\r\n\t}", "public function proccess(){\n\t\t#Get endpoint params\n\t\t$endpointParams = $this->getEndpointParams();\n\t\t#Check if endpoint was read\n\t\tif($endpointParams == []) return [\"success\" => 0, \"msg\" => \"The requested endpoint ({$this->endpointURL}) didn't match any expected command. Please give a check on <a href='index.php'>index.php</a> for a list of available endpoints.\"];\n\t\t#Get current command (the first part of endpoint) and also removes it from the arguments array\n\t\t$currentCommand = array_shift($endpointParams);\n\t\t#Execute command and return output\n\t\tswitch ($currentCommand) {\n\t\t\t#List upcoming movies\n\t\t\tcase 'upcoming': return $this->retrieveUpcomingMovies($endpointParams);\n\t\t\t#Get movie info\n\t\t\tcase 'movie': return $this->retrieveMovie($endpointParams);\n\t\t\t#Search for movies using terms\n\t\t\tcase 'search': return $this->retrieveSearch($endpointParams);\n\t\t\t#Fallback\n\t\t\tdefault: return [\"success\" => 0, \"msg\" => \"The command '{$currentCommand}' is unknown! Please give a check on <a href='index.php'>index.php</a> for a list of available endpoints.\"];\n\t\t}\n\t}", "public function processApi(){\n\t\t\t$func = strtolower(trim(str_replace(\"/\",\"\",$_REQUEST['value'])));\n\t\t\tif((int)method_exists($this,$func) > 0)\n\t\t\t\t$this->$func();\n\t\t\telse\n\t\t\t\t$this->response('',404);\t\t\t\t// If the method not exist with in this class, response would be \"Page not found\".\n\t\t}", "protected function processGetRequest()\n {\n $this->ajaxDie(json_encode([\n 'success' => true,\n 'operation' => 'get'\n ]));\n }", "public function index()\n {\n if ($this->request->server['REQUEST_METHOD'] == 'POST') {\n $this->load->controller('catalog/exchange/getUpdateProducts1C');\n $this->load->controller('restapi/amount');\n $json = ['status' => true, 'process' => 'Данные по категориям и товарам изменены'];\n $this->response->addHeader('Content-Type: application/json');\n $this->response->setOutput(json_encode($json));\n } else {\n $json = ['status' => false, 'description' => 'Данный введенные не верны!'];\n $this->response->addHeader('Content-Type: application/json');\n $this->response->setOutput(json_encode($json, JSON_UNESCAPED_UNICODE));\n }\n }", "abstract function do_api_request();", "public function getServiceCode();", "public function process(string $endpont, string $method, string $type = 'get', array $params = array()){\n\n\n \n $ch = curl_init(); \n curl_setopt($ch, CURLOPT_USERPWD , $this->appID.':'.$this->appKey); \n curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt($ch, CURLOPT_HTTPHEADER, array(\n 'Content-Language: en',\n 'Content-Type: application/json',\n 'Upgrade-Insecure-Requests: 1'\n )); \n\n if ($type == 'get'):\n\n curl_setopt($ch, CURLOPT_URL, $this->apiBase.$endpont.'/'.$method.'?'.http_build_query($params)); \n\n else:\n\n curl_setopt($ch, CURLOPT_URL, $this->apiBase.$endpont.'/'.$method);\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params)); \n\n endif;\n\n \n curl_setopt($ch, CURLOPT_TIMEOUT, 360); \n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); \n\n $body = curl_exec($ch); \n $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); \n\n curl_close($ch); \n\n $response = json_decode($body,1);\n\n \n /* Check for errors */\n if ($response['status'] == 'error'):\n\n print \"An error occurred on \".$this->apiBase.$endpont.'/'.$method.\".<br />\";\n print $response['message'];\n exit();\n\n endif;\n\n return json_decode($response,1);\n\n\n }", "public function process() {}", "public function process() {}", "public function process() {}", "public function run(){\n\t\tif(!$this->parseRequest()){ return; }\n\n\t\t$r = $this->rpcRequest;\n\t\t$classname = $r->obj;\n\t\t$method = $r->method;\n\t\t$params = isset($r->params) ? $r->params : array();\n\t\tob_start();\n\n\t \t// FIXME: Allow for the PHP5 magic __call() method to handle arbitrary/non-\n\t\t// existent methods on the requested object? We'd probably need a\n\t\t// _toSmd() method on the object, then, since there'd be no way to\n\t\t// use reflection to figure out available methods. Either that, or\n\t\t// set it up so you manually register methods with the API.\n\n\t\t// try and instantiate the requested object and call the method\n\t\tif(class_exists($classname)){\n\t\t\t// TODO: perhaps attempt to pass, say, an object ID into the constructor?\n\t\t\t$fn = array(new $classname, $method);\n\t\t\tif(is_callable($fn)){\n\t\t\t\t// call the requested method\n\t\t\t\t$this->responseResult = call_user_func_array($fn, $params);\n\t\t\t}else{\n\t\t\t\t// method doesn't exist\n\t\t\t\t$this->error(\"ROUTING ERROR: Couldn't find {$classname}->{$method}().\");\n\t\t\t\t$this->rpcError(self::JSON_RPC_ERROR_METHOD_NOT_FOUND);\n\t\t\t}\n\t\t}else{\n\t\t\t// can't find the requested class\n\t\t\t$this->error(\"INSTANTIATION ERROR: Couldn't get the object [$classname]\");\n\t\t\t$this->rpcError(self::JSON_RPC_ERROR_INVALID_REQUEST);\n\t\t}\n\n\t\t// ignore any output from print or echo, and clear the buffer\n\t\tob_end_clean();\n\n\t\t$this->sendResponse();\n\t}", "public function process() {}", "public function call(){\n \n $service = (string)$this->_service;\n \n if(!$this->_params){\n $this->setParams();\n }\n \n $response = $this->_soapClient->$service($this->_params); \n \n $serviceResult = $service.'Result';\n \n $xml = $response->$serviceResult; \n \n return $xml;\n\n }", "public function __construct()\n {\n $this->Sendws = 'http://celmediainfo.cl/celmedia_chile/2138_WSDLCLOPCorpbanca/WS_MensajeriaCLOPCorpbanca.php?wsdl';\n $this->CanjeWs = 'http://190.196.23.186/clop/ws/server.php?wsdl';\n $this->OpUrlWs = 'http://200.68.3.74/toolsbkp/WSDLGetOper/wsdl.php?wsdl';\n\n /* WebService Server Route For Prestashop */\n $this->WebServiceServer = 'http://190.196.23.184/clop_otpc_web_prestashop_desa/wscl/wsclotpc_server_ps.php?wsdl';\n\n /* Promo Service */\n $this->WebServiceUser = 'tienda_ps';\n $this->WebServicePassword = '0x552A6798E1F1BCF715EFDB1E1DDC0874';\n $this->WebServiceOrigen = 'Login WEB OTPC';\n $this->WebServiceIdProveedor = '8';\n\n /* Ecommerce Home Url for Redirects */\n $this->ecommerceHomeUrl = 'http://ecorpbancadesa.celmedia.cl/';\n\n /* Urls consumibles for Transbank */\n $this->urlReturn = \"http://192.168.1.192/getResult\";\n $this->urlFinal = \"http://192.168.1.192/end\";\n $this->urlFracaso = \"http://ecorpbancadesa.celmedia.cl/fracaso\";\n $this->urlExito = \"http://ecorpbancadesa.celmedia.cl/module/celmediapago/validation\";\n $this->urlApi = \"http://192.168.1.192\";\n\n /* Celmedia Pago */\n $this->WebServiceUserCelPago = 'celmediapago';\n $this->WebServicePasswordCelPago = '0x552A6798E1F1BCF715EFDB1E1DDC0874';\n $this->WebServiceOrigenCelPago = 'ECOMMERCE_CELMEDIAPAGO';\n $this->WebServiceIdProveedorCelPago = '9';\n $this->WebServiceUniCanjeCelPago = '0';\n $this->WebServiceIdGrupoCelPago = '10';\n $this->WebServiceIdCategoriaCelPago = '36';\n $this->WebServiceIdSubCategoriaCelPago = '187';\n $this->WebServiceTdvOtpcCelPago = '31';\n $this->WebServiceTpTransactionCelPago = 'TR_NORMAL_WS';\n\n /* Other WebServices Credentials */\n $this->WSCLOTPC_Tiempo_OTPC = 30;\n\n $this->WSDL_SEND_ABOUT = 'Clave acceso canje on-line CORPUNTOS.';\n $this->WSDL_SEND_FROM = 'Canje on-line CORPUNTOS';\n $this->WSDL_SEND_HOST = 'mail.misp.cl';\n\n $this->WSDL_SEND_USER = '[email protected]';\n $this->WSDL_SEND_PASS = 'p$qg5*/';\n $this->WSDL_SEND_MAIL = '[email protected]';\n\n $this->WSDL_SEND_USER_PS = '[email protected]';\n $this->WSDL_SEND_PASS_PS = '8a4_27j';\n $this->WSDL_SEND_MAIL_PS = '[email protected]';\n\n /* Points by pesos */\n $this->tasa_conv_CI = '3';\n\n /* Keys And Variables for Transbank */\n $this->TransbankEnvironment = \"INTEGRACION\";\n $this->TransbankCommerceCode = \"597020000541\";\n\n $this->TransbankPrivateKey =\n \"-----BEGIN RSA PRIVATE KEY-----\nMIIEpQIBAAKCAQEA0ClVcH8RC1u+KpCPUnzYSIcmyXI87REsBkQzaA1QJe4w/B7g\n6KvKV9DaqfnNhMvd9/ypmGf0RDQPhlBbGlzymKz1xh0lQBD+9MZrg8Ju8/d1k0pI\nb1QLQDnhRgR2T14ngXpP4PIQKtq7DsdHBybFU5vvAKVqdHvImZFzqexbZjXWxxhT\n+/sGcD4Vs673fc6B+Xj2UrKF7QyV5pMDq0HCCLTMmafWAmNrHyl6imQM+bqC12gn\nEEAEkrJiSO6P/21m9iDJs5KQanpJby0aGW8mocYRHDMHZjtTiIP0+JAJgL9KsH+r\nXdk2bT7aere7TzOK/bEwhkYEXnMMt/65vV6AfwIDAQABAoIBAHnIlOn6DTi99eXl\nKVSzIb5dA747jZWMxFruL70ifM+UKSh30FGPoBP8ZtGnCiw1ManSMk6uEuSMKMEF\n5iboVi4okqnTh2WSC/ec1m4BpPQqxKjlfrdTTjnHIxrZpXYNucMwkeci93569ZFR\n2SY/8pZV1mBkZoG7ocLmq+qwE1EaBEL/sXMvuF/h08nJ71I4zcclpB8kN0yFrBCW\n7scqOwTLiob2mmU2bFHOyyjTkGOlEsBQxhtVwVEt/0AFH/ucmMTP0vrKOA0HkhxM\noeR4k2z0qwTzZKXuEZtsau8a/9B3S3YcgoSOhRP/VdY1WL5hWDHeK8q1Nfq2eETX\njnQ4zjECgYEA7z2/biWe9nDyYDZM7SfHy1xF5Q3ocmv14NhTbt8iDlz2LsZ2JcPn\nEMV++m88F3PYdFUOp4Zuw+eLJSrBqfuPYrTVNH0v/HdTqTS70R2YZCFb9g0ryaHV\nTRwYovu/oQMV4LBSzrwdtCrcfUZDtqMYmmZfEkdjCWCEpEi36nlG0JMCgYEA3r49\no+soFIpDqLMei1tF+Ah/rm8oY5f4Wc82kmSgoPFCWnQEIW36i/GRaoQYsBp4loue\nvyPuW+BzoZpVcJDuBmHY3UOLKr4ZldOn2KIj6sCQZ1mNKo5WuZ4YFeL5uyp9Hvio\nTCPGeXghG0uIk4emSwolJVSbKSRi6SPsiANff+UCgYEAvNMRmlAbLQtsYb+565xw\nNvO3PthBVL4dLL/Q6js21/tLWxPNAHWklDosxGCzHxeSCg9wJ40VM4425rjebdld\nDF0Jwgnkq/FKmMxESQKA2tbxjDxNCTGv9tJsJ4dnch/LTrIcSYt0LlV9/WpN24LS\n0lpmQzkQ07/YMQosDuZ1m/0CgYEAu9oHlEHTmJcO/qypmu/ML6XDQPKARpY5Hkzy\ngj4ZdgJianSjsynUfsepUwK663I3twdjR2JfON8vxd+qJPgltf45bknziYWvgDtz\nt/Duh6IFZxQQSQ6oN30MZRD6eo4X3dHp5eTaE0Fr8mAefAWQCoMw1q3m+ai1PlhM\nuFzX4r0CgYEArx4TAq+Z4crVCdABBzAZ7GvvAXdxvBo0AhD9IddSWVTCza972wta\n5J2rrS/ye9Tfu5j2IbTHaLDz14mwMXr1S4L39UX/NifLc93KHie/yjycCuu4uqNo\nMtdweTnQt73lN2cnYedRUhw9UTfPzYu7jdXCUAyAD4IEjFQrswk2x04=\n-----END RSA PRIVATE KEY-----\";\n $this->TransbankPublicCert=\"-----BEGIN CERTIFICATE-----\nMIIDujCCAqICCQCZ42cY33KRTzANBgkqhkiG9w0BAQsFADCBnjELMAkGA1UEBhMC\nQ0wxETAPBgNVBAgMCFNhbnRpYWdvMRIwEAYDVQQKDAlUcmFuc2JhbmsxETAPBgNV\nBAcMCFNhbnRpYWdvMRUwEwYDVQQDDAw1OTcwMjAwMDA1NDExFzAVBgNVBAsMDkNh\nbmFsZXNSZW1vdG9zMSUwIwYJKoZIhvcNAQkBFhZpbnRlZ3JhZG9yZXNAdmFyaW9z\nLmNsMB4XDTE2MDYyMjIxMDkyN1oXDTI0MDYyMDIxMDkyN1owgZ4xCzAJBgNVBAYT\nAkNMMREwDwYDVQQIDAhTYW50aWFnbzESMBAGA1UECgwJVHJhbnNiYW5rMREwDwYD\nVQQHDAhTYW50aWFnbzEVMBMGA1UEAwwMNTk3MDIwMDAwNTQxMRcwFQYDVQQLDA5D\nYW5hbGVzUmVtb3RvczElMCMGCSqGSIb3DQEJARYWaW50ZWdyYWRvcmVzQHZhcmlv\ncy5jbDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANApVXB/EQtbviqQ\nj1J82EiHJslyPO0RLAZEM2gNUCXuMPwe4OirylfQ2qn5zYTL3ff8qZhn9EQ0D4ZQ\nWxpc8pis9cYdJUAQ/vTGa4PCbvP3dZNKSG9UC0A54UYEdk9eJ4F6T+DyECrauw7H\nRwcmxVOb7wClanR7yJmRc6nsW2Y11scYU/v7BnA+FbOu933Ogfl49lKyhe0MleaT\nA6tBwgi0zJmn1gJjax8peopkDPm6gtdoJxBABJKyYkjuj/9tZvYgybOSkGp6SW8t\nGhlvJqHGERwzB2Y7U4iD9PiQCYC/SrB/q13ZNm0+2nq3u08ziv2xMIZGBF5zDLf+\nub1egH8CAwEAATANBgkqhkiG9w0BAQsFAAOCAQEAdgNpIS2NZFx5PoYwJZf8faze\nNmKQg73seDGuP8d8w/CZf1Py/gsJFNbh4CEySWZRCzlOKxzmtPTmyPdyhObjMA8E\nAdps9DtgiN2ITSF1HUFmhMjI5V7U2L9LyEdpUaieYyPBfxiicdWz2YULVuOYDJHR\nn05jlj/EjYa5bLKs/yggYiqMkZdIX8NiLL6ZTERIvBa6azDKs6yDsCsnE1M5tzQI\nVVEkZtEfil6E1tz8v3yLZapLt+8jmPq1RCSx3Zh4fUkxBTpUW/9SWUNEXbKK7bB3\nzfB3kGE55K5nxHKfQlrqdHLcIo+vdShATwYnmhUkGxUnM9qoCDlB8lYu3rFi9w==\n-----END CERTIFICATE-----\";\n $this->TransbankWebpayCert=\"-----BEGIN CERTIFICATE-----\nMIIDKTCCAhECBFZl7uIwDQYJKoZIhvcNAQEFBQAwWTELMAkGA1UEBhMCQ0wxDjAMBgNVBAgMBUNo\naWxlMREwDwYDVQQHDAhTYW50aWFnbzEMMAoGA1UECgwDa2R1MQwwCgYDVQQLDANrZHUxCzAJBgNV\nBAMMAjEwMB4XDTE1MTIwNzIwNDEwNloXDTE4MDkwMjIwNDEwNlowWTELMAkGA1UEBhMCQ0wxDjAM\nBgNVBAgMBUNoaWxlMREwDwYDVQQHDAhTYW50aWFnbzEMMAoGA1UECgwDa2R1MQwwCgYDVQQLDANr\nZHUxCzAJBgNVBAMMAjEwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAizJUWTDC7nfP\n3jmZpWXFdG9oKyBrU0Bdl6fKif9a1GrwevThsU5Dq3wiRfYvomStNjFDYFXOs9pRIxqX2AWDybjA\nX/+bdDTVbM+xXllA9stJY8s7hxAvwwO7IEuOmYDpmLKP7J+4KkNH7yxsKZyLL9trG3iSjV6Y6SO5\nEEhUsdxoJFAow/h7qizJW0kOaWRcljf7kpqJAL3AadIuqV+hlf+Ts/64aMsfSJJA6xdbdp9ddgVF\noqUl1M8vpmd4glxlSrYmEkbYwdI9uF2d6bAeaneBPJFZr6KQqlbbrVyeJZqmMlEPy0qPco1TIxrd\nEHlXgIFJLyyMRAyjX9i4l70xjwIDAQABMA0GCSqGSIb3DQEBBQUAA4IBAQBn3tUPS6e2USgMrPKp\nsxU4OTfW64+mfD6QrVeBOh81f6aGHa67sMJn8FE/cG6jrUmX/FP1/Cpbpvkm5UUlFKpgaFfHv+Kg\nCpEvgcRIv/OeIi6Jbuu3NrPdGPwzYkzlOQnmgio5RGb6GSs+OQ0mUWZ9J1+YtdZc+xTga0x7nsCT\n5xNcUXsZKhyjoKhXtxJm3eyB3ysLNyuL/RHy/EyNEWiUhvt1SIePnW+Y4/cjQWYwNqSqMzTSW9TP\n2QR2bX/W2H6ktRcLsgBK9mq7lE36p3q6c9DtZJE+xfA4NGCYWM9hd8pbusnoNO7AFxJZOuuvLZI7\nJvD7YLhPvCYKry7N6x3l\n-----END CERTIFICATE-----\";\n\n }", "public function process() {\n\n try {\n \n /*\n * !! IMPORTANT !!\n * Collections with a name starting with '$' character are not collection\n * but reserved actions \n */\n if ($this->request['collection'] && substr($this->request['collection'], 0 , 1) === '$') {\n \n /*\n * Action always returns JSON\n */\n $this->request['format'] = self::DEFAULT_RESPONSE_FORMAT;\n \n /*\n * QueryAnalyzer standalone service\n */\n if ($this->request['collection'] === '$analyzeQuery' && class_exists('QueryAnalyzer')) {\n \n /*\n * Change parameter keys to model parameter key\n * and remove unset parameters\n */\n $params = array();\n foreach ($this->request['params'] as $key => $value) {\n if ($value) {\n foreach(array_keys(RestoController::$searchFiltersDescription) as $filterKey) {\n if ($key === RestoController::$searchFiltersDescription[$filterKey]['osKey']) {\n $params[$filterKey] = $value;\n }\n }\n }\n }\n $qa = new QueryAnalyzer($this->dictionary, RestoController::$searchFiltersDescription, class_exists('Gazetteer') ? new Gazetteer($this) : null);\n $this->response = $qa->analyze($params);\n $this->responseStatus = 200;\n }\n else {\n throw new Exception('Not Found', 404);\n }\n }\n /*\n * Collection is requested\n */\n else if ($this->request['collection']) {\n \n /*\n * Collection does not exist\n */\n if (!$this->collections[$this->request['collection']]) {\n throw new Exception('Not Found', 404);\n }\n \n /*\n * Search collection Controller name within collections list\n */\n $controllerName = null;\n foreach (glob(realpath(dirname(__FILE__)) . '/../controllers/*.php', GLOB_NOSORT) as $controller) {\n if ($this->collections[$this->request['collection']]['controller'] === basename($controller, '.php')) {\n $controllerName = basename($controller, '.php');\n break;\n }\n }\n\n /*\n * Invalid controller \n */\n if (!$controllerName) {\n throw new Exception('Invalid collection', 500);\n }\n \n /*\n * HTTP method is PUT, POST or DELETE and no identifier is set\n * \n * HTTP DELETE - Delete new collection (if CollectionManager module is active)\n * HTTP PUT - Update new collection (if CollectionManager module is active)\n */\n if ($this->request['method'] === 'put' && !$this->request['identifier']) {\n if (class_exists('CollectionManager')) {\n $collectionManager = new CollectionManager($this);\n $this->response = $collectionManager->update();\n }\n else {\n throw new Exception('Forbidden', 403);\n }\n }\n else if ($this->request['method'] === 'delete' && !$this->request['identifier']) {\n if (class_exists('CollectionManager')) {\n $collectionManager = new CollectionManager($this);\n $this->response = $collectionManager->delete();\n }\n else {\n throw new Exception('Forbidden', 403);\n }\n }\n /*\n * HTTP GET method on /collection\n * HTTP POST, PUT DELETE on /collection/identifier\n */\n else {\n \n /*\n * Instantiate RestoController\n */\n $controller = new ReflectionClass($controllerName);\n if (!$controller->isInstantiable()) {\n throw new Exception('Bad Request', 400);\n }\n try {\n $method = $controller->getMethod($this->request['method']);\n } catch (ReflectionException $re) {\n throw new Exception('Forbidden', 403);\n }\n\n /*\n * Initialize a controller instance\n */\n if (!$method->isStatic()) {\n $controllerInstance = $controller->newInstance($this);\n $method->invoke($controllerInstance);\n $this->response = $controllerInstance->getResponse();\n $this->responseStatus = $controllerInstance->getResponseStatus();\n $this->responseDescription = $controllerInstance->getDescription();\n } else {\n throw new Exception('Static methods not supported in Controllers', 500);\n }\n if (is_null($this->response)) {\n throw new Exception('Method not allowed', 405);\n }\n }\n }\n /*\n * No collection requested \n * \n * HTTP GET - HTTP 200 (will redirect to home page - see htmlResponse)\n * HTTP POST - Create new collection (if CollectionManager module is active)\n * HTTP PUT - Not allowed\n * HTTP DELETE - Not allowed\n * \n */\n else {\n if ($this->request['method'] === 'get') {\n $this->responseStatus = 200;\n }\n else if ($this->request['method'] === 'post' && class_exists('CollectionManager')) {\n $collectionManager = new CollectionManager($this);\n $this->response = $collectionManager->create();\n }\n else {\n throw new Exception('Method Not Allowed', 405);\n }\n }\n } catch (Exception $re) {\n $this->responseStatus = $re->getCode();\n $this->response = array('ErrorCode' => $re->getCode(), 'ErrorMessage' => $re->getMessage());\n }\n\n /*\n * Special case for stream !\n */\n if ($controllerInstance && $this->responseDescription['forceStream']) {\n return;\n }\n\n /*\n * Output result\n */\n $this->response()->send();\n }", "public function soapServerAction()\n {\n\t\t$server = new soap_server();\n\t\t// Initialize WSDL support\n\t\t$server->configureWSDL('hellowsdl', 'urn:hellowsdl');\n\t\n\t\t// Register the method to expose\n\t\t$server->register('hello', // method name\n array('name' => 'xsd:string'), // input parameters\n array('return' => 'xsd:string'), // output parameters\n 'urn:hellowsdl', // namespace\n 'urn:hellowsdl#hello', // soapaction\n 'rpc', // style\n 'encoded', // use\n 'Says hello to the caller' // documentation\n );\n\n\t\t// Use the request to (try to) invoke the service\n\t\t$HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : '';\n\t\t$server->service($HTTP_RAW_POST_DATA);\n }", "function main()\n{\n\t$research = ResearchService::getAll();\n\tif (!is_null($research)) {\n\t\thttp_response_code(201);\n\t\tJsonDataObject::createResponse($research);\n\t} else {\n\t\thttp_response_code(200);\n\t\tJsonDataObject::createResponse(['error' => 'That user does not exist']);\n\t}\n}", "public function endpoint() {\n\t\tglobal $bp;\n\t\tif ( bp_is_current_component( $bp->api->id ) ) {\n\n\t\t\tif ( bp_is_current_action( 'addclient' ) ) {\n\t\t\t\tif ( !empty( $_POST ) ) {\n\t\t\t\t\t$this->process_addclient();\n\t\t\t\t}\n\t\t\t\tbp_api_load_template( 'api/addclient' );\n\t\t\t} else if ( bp_is_current_action( 'request_token' ) ) {\n\t\t\t\t$this->process_request_token();\n\t\t\t} else if ( bp_is_current_action( 'authorize' ) ) {\n\t\t\t\t$this->process_authorize();\n\t\t\t} else if ( bp_is_current_action( 'access_token' ) ) {\n\t\t\t\t$this->process_access_token();\n\t\t\t}\n\n\t\t\trequire( CIAB_PLUGIN_DIR . 'lib/restler/restler.php' );\n\t\t\trequire( CIAB_PLUGIN_DIR . 'api/class.bp-restler.php' );\n\t\t\t$this->restler = new BP_Restler;\n\n\t\t\tdo_action( 'bp_api_init' );\n\n\t\t\t/**\n\t\t\t * @todo Make this non-nonsense\n\t\t\t *\n\t\t\t * Be sure you know what you're doing before you disable OAuth! You can\n\t\t\t * enable admin access to your whole site if you're not careful!\n\t\t\t *\n\t\t\t * You can override OAuth by supplying your own BP_API_Auth class. Make sure\n\t\t\t * it's loaded before we get to this point, so that we don't load OAuth.\n\t\t\t */\n\t\t\tif ( !class_exists( 'BP_API_Auth' ) ) {\n\t\t\t\trequire( CIAB_PLUGIN_DIR . 'api/class.auth.php' );\n\t\t\t}\n\t\t\t$this->restler->addAuthenticationClass( 'BP_API_Auth' );\n\n\t\t\trequire( CIAB_PLUGIN_DIR . 'api/class.api-server-actions.php' );\n\t\t\t$this->restler->addAPIClass( 'BP_API_Server_Actions' );\n\n\t\t\t$this->restler->handle();\n\t\t\tdie();\n\t\t}\n\t}", "function processRequests()\n\t{\n\n\t\t$requestMode = -1;\n\t\t$sFunctionName = \"\";\n\t\t$bFoundFunction = true;\n\t\t$bFunctionIsCatchAll = false;\n\t\t$sFunctionNameForSpecial = \"\";\n\t\t$aArgs = array();\n\t\t$sPreResponse = \"\";\n\t\t$bEndRequest = false;\n\t\t$sResponse = \"\";\n\n\t\t$requestMode = $this->getRequestMode();\n\t\tif ($requestMode == -1) return;\n\n\t\tif ($requestMode == XAJAX_POST)\n\t\t{\n\t\t\t$sFunctionName = $_POST[\"xajax\"];\n\n\t\t\tif (!empty($_POST[\"xajaxargs\"]))\n\t\t\t\t$aArgs = $_POST[\"xajaxargs\"];\n\t\t}\n\t\telse\n\t\t{\n\t\t\theader (\"Expires: Mon, 26 Jul 1997 05:00:00 GMT\");\n\t\t\theader (\"Last-Modified: \" . gmdate(\"D, d M Y H:i:s\") . \" GMT\");\n\t\t\theader (\"Cache-Control: no-cache, must-revalidate\");\n\t\t\theader (\"Pragma: no-cache\");\n\n\t\t\t$sFunctionName = $_GET[\"xajax\"];\n\n\t\t\tif (!empty($_GET[\"xajaxargs\"]))\n\t\t\t\t$aArgs = $_GET[\"xajaxargs\"];\n\t\t}\n\n\t\t// Use xajax error handler if necessary\n\t\tif ($this->bErrorHandler) {\n\t\t\t$GLOBALS['xajaxErrorHandlerText'] = \"\";\n\t\t\tset_error_handler(\"xajaxErrorHandler\");\n\t\t}\n\n\t\tif ($this->sPreFunction) {\n\t\t\tif (!$this->_isFunctionCallable($this->sPreFunction)) {\n\t\t\t\t$bFoundFunction = false;\n\t\t\t\t$objResponse = new xajaxResponse();\n\t\t\t\t$objResponse->addAlert(\"Unknown Pre-Function \". $this->sPreFunction);\n\t\t\t\t$sResponse = $objResponse->getXML();\n\t\t\t}\n\t\t}\n\t\t//include any external dependencies associated with this function name\n\t\tif (array_key_exists($sFunctionName,$this->aFunctionIncludeFiles))\n\t\t{\n\t\t\tob_start();\n\t\t\tinclude_once($this->aFunctionIncludeFiles[$sFunctionName]);\n\t\t\tob_end_clean();\n\t\t}\n\n\t\tif ($bFoundFunction) {\n\t\t\t$sFunctionNameForSpecial = $sFunctionName;\n\t\t\tif (!array_key_exists($sFunctionName, $this->aFunctions))\n\t\t\t{\n\t\t\t\tif ($this->sCatchAllFunction) {\n\t\t\t\t\t$sFunctionName = $this->sCatchAllFunction;\n\t\t\t\t\t$bFunctionIsCatchAll = true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$bFoundFunction = false;\n\t\t\t\t\t$objResponse = new xajaxResponse();\n\t\t\t\t\t$objResponse->addAlert(\"Unknown Function $sFunctionName.\");\n\t\t\t\t\t$sResponse = $objResponse->getXML();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if ($this->aFunctionRequestTypes[$sFunctionName] != $requestMode)\n\t\t\t{\n\t\t\t\t$bFoundFunction = false;\n\t\t\t\t$objResponse = new xajaxResponse();\n\t\t\t\t$objResponse->addAlert(\"Incorrect Request Type.\");\n\t\t\t\t$sResponse = $objResponse->getXML();\n\t\t\t}\n\t\t}\n\n\t\tif ($bFoundFunction)\n\t\t{\n\t\t\tfor ($i = 0; $i < sizeof($aArgs); $i++)\n\t\t\t{\n\t\t\t\t// If magic quotes is on, then we need to strip the slashes from the args\n\t\t\t\tif (get_magic_quotes_gpc() == 1 && is_string($aArgs[$i])) {\n\n\t\t\t\t\t$aArgs[$i] = stripslashes($aArgs[$i]);\n\t\t\t\t}\n\t\t\t\tif (stristr($aArgs[$i],\"<xjxobj>\") != false)\n\t\t\t\t{\n\t\t\t\t\t$aArgs[$i] = $this->_xmlToArray(\"xjxobj\",$aArgs[$i]);\n\t\t\t\t}\n\t\t\t\telse if (stristr($aArgs[$i],\"<xjxquery>\") != false)\n\t\t\t\t{\n\t\t\t\t\t$aArgs[$i] = $this->_xmlToArray(\"xjxquery\",$aArgs[$i]);\n\t\t\t\t}\n\t\t\t\telse if ($this->bDecodeUTF8Input)\n\t\t\t\t{\n\t\t\t\t\t$aArgs[$i] = $this->_decodeUTF8Data($aArgs[$i]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->sPreFunction) {\n\t\t\t\t$mPreResponse = $this->_callFunction($this->sPreFunction, array($sFunctionNameForSpecial, $aArgs));\n\t\t\t\tif (is_array($mPreResponse) && $mPreResponse[0] === false) {\n\t\t\t\t\t$bEndRequest = true;\n\t\t\t\t\t$sPreResponse = $mPreResponse[1];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$sPreResponse = $mPreResponse;\n\t\t\t\t}\n\t\t\t\tif (is_a($sPreResponse, \"xajaxResponse\")) {\n\t\t\t\t\t$sPreResponse = $sPreResponse->getXML();\n\t\t\t\t}\n\t\t\t\tif ($bEndRequest) $sResponse = $sPreResponse;\n\t\t\t}\n\n\t\t\tif (!$bEndRequest) {\n\t\t\t\tif (!$this->_isFunctionCallable($sFunctionName)) {\n\t\t\t\t\t$objResponse = new xajaxResponse();\n\t\t\t\t\t$objResponse->addAlert(\"The Registered Function $sFunctionName Could Not Be Found.\");\n\t\t\t\t\t$sResponse = $objResponse->getXML();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ($bFunctionIsCatchAll) {\n\t\t\t\t\t\t$aArgs = array($sFunctionNameForSpecial, $aArgs);\n\t\t\t\t\t}\n\t\t\t\t\t$sResponse = $this->_callFunction($sFunctionName, $aArgs);\n\t\t\t\t}\n\t\t\t\tif (is_a($sResponse, \"xajaxResponse\")) {\n\t\t\t\t\t$sResponse = $sResponse->getXML();\n\t\t\t\t}\n\t\t\t\tif (!is_string($sResponse) || strpos($sResponse, \"<xjx>\") === FALSE) {\n\t\t\t\t\t$objResponse = new xajaxResponse();\n\t\t\t\t\t$objResponse->addAlert(\"No XML Response Was Returned By Function $sFunctionName.\");\n\t\t\t\t\t$sResponse = $objResponse->getXML();\n\t\t\t\t}\n\t\t\t\telse if ($sPreResponse != \"\") {\n\t\t\t\t\t$sNewResponse = new xajaxResponse($this->sEncoding, $this->bOutputEntities);\n\t\t\t\t\t$sNewResponse->loadXML($sPreResponse);\n\t\t\t\t\t$sNewResponse->loadXML($sResponse);\n\t\t\t\t\t$sResponse = $sNewResponse->getXML();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$sContentHeader = \"Content-type: text/xml;\";\n\t\tif ($this->sEncoding && strlen(trim($this->sEncoding)) > 0)\n\t\t\t$sContentHeader .= \" charset=\".$this->sEncoding;\n\t\theader($sContentHeader);\n\t\tif ($this->bErrorHandler && !empty( $GLOBALS['xajaxErrorHandlerText'] )) {\n\t\t\t$sErrorResponse = new xajaxResponse();\n\t\t\t$sErrorResponse->addAlert(\"** PHP Error Messages: **\" . $GLOBALS['xajaxErrorHandlerText']);\n\t\t\tif ($this->sLogFile) {\n\t\t\t\t$fH = @fopen($this->sLogFile, \"a\");\n\t\t\t\tif (!$fH) {\n\t\t\t\t\t$sErrorResponse->addAlert(\"** Logging Error **\\n\\nxajax was unable to write to the error log file:\\n\" . $this->sLogFile);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfwrite($fH, \"** xajax Error Log - \" . strftime(\"%b %e %Y %I:%M:%S %p\") . \" **\" . $GLOBALS['xajaxErrorHandlerText'] . \"\\n\\n\\n\");\n\t\t\t\t\tfclose($fH);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$sErrorResponse->loadXML($sResponse);\n\t\t\t$sResponse = $sErrorResponse->getXML();\n\n\t\t}\n\t\tif ($this->bCleanBuffer) while (@ob_end_clean());\n\t\tprint $sResponse;\n\t\tif ($this->bErrorHandler) restore_error_handler();\n\n\t\tif ($this->bExitAllowed)\n\t\t\texit();\n\t}", "public function processApi()\n {\n $data = array('404'=>'requested method not available');\n $func = strtolower(trim(str_replace(\"/\",\"\",$_REQUEST['mode'])));\n if((int)method_exists($this,$func) > 0)\n $this->$func();\n else\n $this->response($this->json($data),'404');\n // If the method not exist with in this class, response would be \"Page not found\".\n }" ]
[ "0.6321294", "0.62822425", "0.6175986", "0.6171486", "0.61598414", "0.6153813", "0.6051371", "0.6008579", "0.5985304", "0.59687394", "0.59391046", "0.59353423", "0.5935129", "0.59265566", "0.58372366", "0.58362305", "0.5833884", "0.58334816", "0.5828011", "0.58123714", "0.5805555", "0.57877785", "0.5782393", "0.5750739", "0.57494247", "0.57413113", "0.5722252", "0.5717046", "0.5712554", "0.57058436", "0.56965876", "0.5692505", "0.56842655", "0.5633151", "0.56302613", "0.5622874", "0.5606347", "0.5604892", "0.5595057", "0.55908847", "0.5590856", "0.55872476", "0.5579737", "0.5560895", "0.55553", "0.55377734", "0.55286235", "0.5526691", "0.5525669", "0.55206", "0.55061716", "0.5503777", "0.5500227", "0.55002016", "0.549608", "0.549608", "0.5483026", "0.5482773", "0.54822844", "0.5479631", "0.5467123", "0.5465098", "0.546186", "0.546186", "0.546186", "0.546186", "0.5461024", "0.54566926", "0.54551286", "0.5450255", "0.5450214", "0.5450214", "0.5450214", "0.5450214", "0.54495096", "0.54470193", "0.54434955", "0.54405797", "0.54392624", "0.54388124", "0.5434282", "0.5432719", "0.542958", "0.5429145", "0.5424146", "0.5421421", "0.5417762", "0.5412724", "0.5408957", "0.5408957", "0.5408957", "0.54088855", "0.54085934", "0.54046094", "0.54006845", "0.5399013", "0.53943616", "0.53875196", "0.53865457", "0.5385654", "0.5384933" ]
0.0
-1
Get Code retour Web Service
public function getCodeRetour($param = null) { $this->table = "sva_code_retour"; $this->__addParam($param); return $this->__select(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getWebservice()\n {\n return $this->webservice;\n }", "public function getServiceCode();", "public function getWebService()\n {\n return $this->webService;\n }", "public function getWebservice()\n {\n return $this->_webservice;\n }", "public function getUrlSOAP(){\r\n\t\treturn $this->soap;\r\n\t}", "function consumir_webservice($xml_data)\n{\n\t$stream_options = array(\n\t\t'http' => array(\n\t\t\t'method'\t=> 'POST',\n\t\t\t'header'\t=> 'Authorization: Basic ' . base64_encode(\"Openbravo:openbravo\") . ' Content-Type: text/xml',\n\t\t\t'content'\t=> $xml_data,\n\t\t),\n\t);\n\n\t// Crear contexto de flujo con las opciones para consumir el webservice\n\t$context = stream_context_create($stream_options);\n\n\t// Consumir webservice y obtener respuesta\n\t// $ob_response = @file_get_contents('http://192.168.1.251:443/ob_lecaroz/ws/mx.cusoft.importing.rest.insertLecPayment', NULL, $context);\n\t$ob_response = @file_get_contents('http://192.168.1.3:443/ob_lecaroz/ws/mx.cusoft.importing.rest.insertLecPayment', NULL, $context);\n\n\treturn $ob_response;\n}", "static function generarServicioF(){\n\n\t\trequire_once('SERVIDOR/lib/nusoap.php');\n \n $host = 'http://maxineiner.tuars.com/webservice/ws_segundo_parcial.php?wsdl';\n\n $client = new nusoap_client($host);\n $err = $client->getError();\n if ($err) {\n die();\n return '<h2>ERROR EN LA CONSTRUCCION DEL WS:</h2><pre>' . $err . '</pre>';\n }\n return $client;\n\n\t}", "public function testComAdobeCqDtmReactorImplServiceWebServiceImpl()\n {\n $client = static::createClient();\n\n $path = '/system/console/configMgr/com.adobe.cq.dtm.reactor.impl.service.WebServiceImpl';\n\n $crawler = $client->request('POST', $path);\n }", "public function getCodeService(){\r\n\t\treturn $this->code_service;\r\n\t}", "public function getWsdlUrl() {}", "public function getService()\n {\n return $this->send('POST', 'getService');\n }", "public static function serviceWeb($url, & $err_code, & $output) \n\t{\n\t\tacPhpCas::setReporting();\n\t\treturn phpCAS::serviceWeb($url, $err_code, $output);\t\t\n\t}", "public function web();", "public function getApiCode();", "function service_information() {\r\n\t\t$return_value = '<service name=\"' . $this->basename . '\">'\r\n\t\t. '<port name=\"' . $this->basename . 'Port\" binding=\"tns:' . $this->basename . 'Binding\">'\r\n\t\t. '<soap:address location=\"' . $this->api_url . '\"/>'\r\n\t\t. '</port>'\r\n\t\t. '</service>';\r\n\r\n\t\treturn $return_value;\r\n\t}", "public function getUrlWebService() {\r\n\r\n if(strstr($_SERVER['HTTP_HOST'], 'hom1')) {\r\n $valregoid = 6;\r\n $valtpvoid = 3;\r\n }\r\n elseif(strstr($_SERVER['HTTP_HOST'], 'intranet')) {\r\n $valregoid = 7;\r\n $valtpvoid = 3;\r\n }\r\n else {\r\n $valregoid = 6;\r\n $valtpvoid = 3;\r\n }\r\n\r\n $sql = \"\r\n SELECT \r\n valvalor\r\n FROM\r\n valor\r\n WHERE\r\n valregoid = $valregoid\r\n AND \r\n valtpvoid = $valtpvoid\";\r\n\r\n $result = $this->_fetchAssoc(pg_query($this->_adapter, $sql));\r\n\r\n return $result['valvalor']; \r\n }", "function site()\n {\n $this->load->library('service');\n $data = file_get_contents('php://input');\n $ret = array(\n 'out' => $this->service->handle('site', $data)\n );\n $this->output($ret);\n }", "function createPWSSOAPClient()\n{\n //Set the parameters for the Non-WSDL mode SOAP communication with your Development/Production credentials\n $client = new SoapClient( \"./wsdl/serviceavailabilityservice.wsdl\", \n array\t(\n 'trace'\t\t\t=>\ttrue,\n 'location'\t=>\t\"https://webservices.purolator.com/PWS/V1/ServiceAvailability/ServiceAvailabilityService.asmx\",\n 'uri'\t\t\t\t=>\t\"http://purolator.com/pws/datatypes/v1\",\n 'login'\t\t\t=>\tPRODUCTION_KEY,\n 'password'\t=>\tPRODUCTION_PASS\n )\n );\n //Define the SOAP Envelope Headers\n $headers[] = new SoapHeader ( 'http://purolator.com/pws/datatypes/v1', \n 'RequestContext', \n array (\n 'Version' => '1.3',\n 'Language' => 'en',\n 'GroupID' => 'xxx',\n 'RequestReference' => 'Rating Example',\n 'UserToken' => USER_TOKEN\n )\n ); \n //Apply the SOAP Header to your client \n $client->__setSoapHeaders($headers);\n\n return $client;\n}", "public function getWsdl();", "function fn_DealerGet()\n {\n $params = $this->params;\n $wsdl \t= $this->wsdl;\n $responce = \"\";\n try\n {\n $soap = new SoapClient($wsdl, $params);\n $args = array('token' => $this->token);\n $responce = $soap->DealerGet($args);\n }\n catch (SoapFault $e)\n {\n //$responce = \"\";\n //$responce = 'Caught exception:'.$e->getMessage().\"\\n\";\n\n $responce['faultcode'] \t\t= $e->faultcode;\n $responce['faultstring'] \t= $e->faultstring;\n $responce['faultactor'] \t= $e->faultactor;\n $responce['faultname'] \t\t= $e->faultname;\n $responce['headerfault'] \t= $e->headerfault;\n }\n return $responce;\n }", "function getClient()\n {\n ini_set(\"soap.wsdl_cache_enabled\", \"0\");\n $client = new SoapClient(\"http://smeapps.mobitel.lk:8585/EnterpriseSMSV3/EnterpriseSMSWS?wsdl\");\n return $client;\n }", "abstract protected function getService();", "function restAction()\n {\n $this->disableLayout();\n $this->_helper->viewRenderer->setNoRender();\n\n $request_data = $this->_getAllParams();\n\n $method_name = $this->_getParam('method');\n if(!isset($method_name))\n {\n echo \"Inconsistent request\";\n exit;\n }\n\n $request_data = $this->_getAllParams();\n // Handle XML-RPC request\n $this->kwWebApiCore = new KwWebApiRestCore($this->apiSetup, $this->apicallbacks, $request_data);\n }", "static public function ctrRutaServidor(){\n\n\t\treturn \"https://backend.teamblack4ever.com/\";\n\t\n\t}", "public function getApi()\n {\n return Mage::getSingleton('paystation/api_nvp');\n }", "static function generarServicioL($par){\n\n\t\tif($par==\"T\"){\n\t\trequire_once('../SERVIDOR/lib/nusoap.php');\n\t\t}else{\n\t\trequire_once('SERVIDOR/lib/nusoap.php');\n\t\t}\n\n\t\t$host = 'http://localhost/Final2k16/SERVIDOR/ws.php?wsdl';\t\n \n $client = new nusoap_client($host);\n $err = $client->getError();\n if ($err) {\n die();\n return '<h2>ERROR EN LA CONSTRUCCION DEL WS:</h2><pre>' . $err . '</pre>';\n }\n return $client;\n\n\t}", "function createPWSSOAPClient()\n{\n //Set the parameters for the Non-WSDL mode SOAP communication with your Development/Production credentials\n $client = new SoapClient( \"./wsdl/PickUpService.wsdl\", \n array\t(\n 'trace'\t\t\t=>\ttrue,\t\t\t\t \n\t\t\t\t 'location'\t=>\t\"https://devwebservices.purolator.com/EWS/V1/PickUp/PickUpService.asmx\",\t\t\t\t \n 'uri'\t\t\t\t=>\t\"http://purolator.com/pws/datatypes/v1\",\n 'login'\t\t\t=>\tPRODUCTION_KEY,\n 'password'\t=>\tPRODUCTION_PASS\n )\n );\n //Define the SOAP Envelope Headers\n $headers[] = new SoapHeader ( 'http://purolator.com/pws/datatypes/v1', \n 'RequestContext', \n array (\n 'Version' => '1.2',\n 'Language' => 'en',\n 'GroupID' => 'xxx',\n 'RequestReference' => 'Rating Example'\n )\n ); \n //Apply the SOAP Header to your client \n $client->__setSoapHeaders($headers);\n\n return $client;\n}", "public function getApi()\r\n {\r\n return Mage::getSingleton('firstdatae4/api_nvp');\r\n }", "protected function getWsdl() {\n\t\t$wsdl = 'http://localhost/WS.wsdl';\n\t\tswitch ($this->version) {\n\t\t\tcase self::VERSION_10:\n\t\t\t\t$wsdl = 'http://ref.cyberadmin.ch/WS/ServiceContract/WS.wsdl';\n\t\t\t\tbreak;\n\t\t\tcase self::VERSION_20:\n\t\t\t\t$wsdl = 'http://ref.cyberadmin.ch/WS20/ServiceContract/WS.wsdl';\n\t\t\t\tbreak;\n\t\t\tcase self::VERSION_21:\n\t\t\t\t$wsdl = 'http://ref.cyberadmin.ch/WS21/ServiceContract/WS.wsdl';\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn $wsdl;\n\t}", "function get_service_description()\n\t{\n\t\treturn $this->load_url();\n\t}", "public function demo(){\n // $this->soapWrapper->add(function ($service) {\n // $service->name('CRW')\n // ->wsdl('http://crm.elizade.net:5050/Service1.svc?wsdl')\n // ->trace(true);\n // });\n $this->soapWrapper->add('CRW', function ($service) {\n $service\n ->wsdl('http://crm.elizade.net:5050/Service1.svc?wsdl')\n ->trace(true);\n // ->classmap([\n // GetConversionAmount::class,\n // GetConversionAmountResponse::class,\n // ]);\n });\n\n $data = [\n 'lastname' => 'Raymond',\n 'firstname' => 'Ativie',\n 'email' => '[email protected]',\n 'bizPhone' => '08151700676'\n ];\n\n $case = [\n 'accountnumber' => 'CUST013643',\n 'description' => 'This is a description',\n 'title' => 'Hello world'\n ];\n\n // $response = $this->soapWrapper->call('CRW.CreateContact', [$data]);\n $response = $this->soapWrapper->call('CRW.CreateCase', [$case]);\n\n var_dump($response);\n\n // Using the added service\n // $this->soapWrapper->service('CRW', function ($service) use ($data) {\n // var_dump($service->call('CreateContact', [$data]));\n // // var_dump($service->call('Otherfunction'));\n // });\n }", "function SOAP_call($body, $controle){\n $location_URL = 'https://api.go4you.com.br/Consultas/Pedidos/Acoes.asmx?wsdl';\n $action_URL = \"http://www.go4you.com.br/webservices/InserirPedidoSemBag\";\n \n $client = new SoapClient(null, array(\n \"Content-type: text/xml;charset=\\\"utf-8\\\"\",\n \"Accept: text/xml\",\n \"Cache-Control: no-cache\",\n \"Pragma: no-cache\",\n \"SOAPAction: \\\"run\\\"\",\n 'location' => $location_URL,\n 'host' => \"api.go4you.com.br\",\n 'uri' => \"api.go4you.com.br\",\n 'trace' => \"1\",\n \"Content-length: \".strlen($body)\n ));\n \n return $client->__doRequest($body ,$location_URL, $action_URL, 1); \n \n}", "public function & GetResponse ();", "function get_city($query,$type)\r\n{\r\nrequire_once 'REST_Ongkir.php';\r\n \r\n $rest = new REST_Ongkir(array(\r\n 'server' =&amp;gt; 'http://api.ongkir.info/'\r\n ));\r\n \r\n//ganti API-Key dibawah ini sesuai dengan API Key yang anda peroleh setalah mendaftar di ongkir.info\r\n $result = $rest-&amp;gt;post('city/list', array(\r\n 'query' =&amp;gt; $query,\r\n 'type' =&amp;gt; $type,\r\n 'courier' =&amp;gt; 'jne',\r\n 'API-Key' =&amp;gt; 'ABCDEFGHIJKLMNOPQRSTUVWXYZ123456' ), 'JSON');\r\n \r\n try\r\n {\r\n $status = $result['status'];\r\n \r\n // Handling the data\r\n if ($status-&amp;gt;code == 0)\r\n {\r\n return $cities = $result['cities'];\r\n //print_r($cities);\r\n //foreach ($cities-&amp;gt;item as $item)\r\n //{\r\n //echo 'Kota: ' . $item . '&amp;lt;br /&amp;gt;';\r\n // }\r\n }\r\n else\r\n {\r\n echo 'Tidak ditemukan kota yang diawali &amp;quot;band&amp;quot;';\r\n }\r\n \r\n }\r\n catch (Exception $e)\r\n {\r\n echo 'Processing error.';\r\n }\r\n}", "function createPWSSOAPClient()\n{\n //Set the parameters for the Non-WSDL mode SOAP communication with your Development/Production credentials\n $client = new SoapClient( \"./wsdl/PickUpService.wsdl\", \n array\t(\n\t\t\t\t\t'trace'\t\t\t=>\ttrue,\n\t\t\t\t\t'location'\t=>\t\"https://devwebservices.purolator.com/EWS/V1/PickUp/PickUpService.asmx\",\n\t\t\t\t\t'uri'\t\t\t\t=>\t\"http://purolator.com/pws/datatypes/v1\",\n\t\t\t\t\t'login'\t\t\t=>\tPRODUCTION_KEY,\n\t\t\t\t\t'password'\t=>\tPRODUCTION_PASS\n )\n );\n //Define the SOAP Envelope Headers\n $headers[] = new SoapHeader ( 'http://purolator.com/pws/datatypes/v1', \n 'RequestContext', \n array (\n 'Version' => '1.2',\n 'Language' => 'en',\n 'GroupID' => 'xxx',\n 'RequestReference' => 'Rating Example',\n 'UserToken' => USER_TOKEN\n )\n ); \n //Apply the SOAP Header to your client \n $client->__setSoapHeaders($headers);\n return $client;\n}", "function Redactedapi() {\n \n if(!empty($_POST['site_id']) && is_numeric($_POST['site_id']))\n {\n $this->site_id = $_POST['site_id']; \n } \n else\n {\n $this->site_id = 1;\n }\n \n if($_SERVER['SERVER_NAME'] == 'www.redacted.com'){\n $this->username = 'xxxx';\n $this->password = 'xxxx';\n $this->url \t\t= 'https://api-1.redacted.com/redactedapiservice.asmx';\n } else{\n $this->username = 'xxxxx';\n $this->password = 'xxxxx';\n $this->url \t = 'https://testapi-1.redacted.com/redactedAPIService.asmx?wsdl';\n } \n\t\t\t\n\t\t$this->CI =& get_instance();\n\t\t$this->CI->load->helper('cookie');\n\t}", "function ODQuery_QueryService() {\n\t\t$this->client = new SoapClient(__DIR__.'/../wsdl/QueryService2.wsdl',array(\n 'exceptions'=>true,\n 'encoding'=>'utf-8')\n );\n\t\t$this->soapException = new ODSubmission_SoapException();\n\t}", "public function get()\n {\n // 27 para medimas \n // 17 para ecoopsos \n $queryString = '{\"MaxResults\":0,\"MatchAll\":true,\"IPSIDs\":[],\"SiteID\":null,\"EPSID\":17,\"Regime\":null}';\n return $this->performRequest('GET', '/service/ContractService.svc/contract?', $queryString);\n }", "public function patentePublicidad($codigo_licencia){\n\n $curl = curl_init();\n $url = \"http://192.168.104.117/servicio/consulta-servicios/webservice.php\"; //develope\n \n curl_setopt($curl, CURLOPT_POST, 1); //en caso sea post\n //curl_setopt($curl, CURLOPT_POSTFIELDS, $data); //asumiendo que $data: array(\"parametro\" => \"valor\") submit:publicidad, codigo_licencia:01G50110000008\n curl_setopt($curl, CURLOPT_POSTFIELDS, \"submit=publicidad&codigo_licencia=\".$codigo_licencia);\n \n curl_setopt($curl, CURLOPT_URL, $url);\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);\n \n $result = curl_exec($curl);\n curl_close($curl);\n\n $jsonFur = json_decode($result);\n //echo \"******************************\";\n print_r($jsonFur);\n exit;\n /*if(!is_null($jsonFur) && $jsonFur.status){\n\n }*/\n if($jsonFur->status)\n return $jsonFur->data;\n }", "public function getName()\n {\n return 'soap';\n }", "private function suivi_crm(){\t\n\t\t\t\n\t\t\tif($this->get_request_method() != \"GET\"){\n\t\t\t\t$this->response('',406);\n\t\t\t}\n\t\t\t\n\t\t\t$result=suivi_crm();\n\t\t\t$this->response($this->json($result), 200);\n\t\t\t$this->response('',204);\t\n\t\t}", "protected function request()\n\t{\n\t\treturn Phpfox::getLib('request');\t\n\t}", "public function getEndpoint() {\n\t\treturn \"http://vamps.tw.rpi.edu/virtuoso/sparql\";\n\t}", "public function getme(){\n return $this->make_http_request(__FUNCTION__);\n }", "public function get_webhooks() {\n\n\t\t$this->method = 'GET';\n\t}", "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 __construct()\n {\n $this->Sendws = 'http://celmediainfo.cl/celmedia_chile/2138_WSDLCLOPCorpbanca/WS_MensajeriaCLOPCorpbanca.php?wsdl';\n $this->CanjeWs = 'http://190.196.23.186/clop/ws/server.php?wsdl';\n $this->OpUrlWs = 'http://200.68.3.74/toolsbkp/WSDLGetOper/wsdl.php?wsdl';\n\n /* WebService Server Route For Prestashop */\n $this->WebServiceServer = 'http://190.196.23.184/clop_otpc_web_prestashop_desa/wscl/wsclotpc_server_ps.php?wsdl';\n\n /* Promo Service */\n $this->WebServiceUser = 'tienda_ps';\n $this->WebServicePassword = '0x552A6798E1F1BCF715EFDB1E1DDC0874';\n $this->WebServiceOrigen = 'Login WEB OTPC';\n $this->WebServiceIdProveedor = '8';\n\n /* Ecommerce Home Url for Redirects */\n $this->ecommerceHomeUrl = 'http://ecorpbancadesa.celmedia.cl/';\n\n /* Urls consumibles for Transbank */\n $this->urlReturn = \"http://192.168.1.192/getResult\";\n $this->urlFinal = \"http://192.168.1.192/end\";\n $this->urlFracaso = \"http://ecorpbancadesa.celmedia.cl/fracaso\";\n $this->urlExito = \"http://ecorpbancadesa.celmedia.cl/module/celmediapago/validation\";\n $this->urlApi = \"http://192.168.1.192\";\n\n /* Celmedia Pago */\n $this->WebServiceUserCelPago = 'celmediapago';\n $this->WebServicePasswordCelPago = '0x552A6798E1F1BCF715EFDB1E1DDC0874';\n $this->WebServiceOrigenCelPago = 'ECOMMERCE_CELMEDIAPAGO';\n $this->WebServiceIdProveedorCelPago = '9';\n $this->WebServiceUniCanjeCelPago = '0';\n $this->WebServiceIdGrupoCelPago = '10';\n $this->WebServiceIdCategoriaCelPago = '36';\n $this->WebServiceIdSubCategoriaCelPago = '187';\n $this->WebServiceTdvOtpcCelPago = '31';\n $this->WebServiceTpTransactionCelPago = 'TR_NORMAL_WS';\n\n /* Other WebServices Credentials */\n $this->WSCLOTPC_Tiempo_OTPC = 30;\n\n $this->WSDL_SEND_ABOUT = 'Clave acceso canje on-line CORPUNTOS.';\n $this->WSDL_SEND_FROM = 'Canje on-line CORPUNTOS';\n $this->WSDL_SEND_HOST = 'mail.misp.cl';\n\n $this->WSDL_SEND_USER = '[email protected]';\n $this->WSDL_SEND_PASS = 'p$qg5*/';\n $this->WSDL_SEND_MAIL = '[email protected]';\n\n $this->WSDL_SEND_USER_PS = '[email protected]';\n $this->WSDL_SEND_PASS_PS = '8a4_27j';\n $this->WSDL_SEND_MAIL_PS = '[email protected]';\n\n /* Points by pesos */\n $this->tasa_conv_CI = '3';\n\n /* Keys And Variables for Transbank */\n $this->TransbankEnvironment = \"INTEGRACION\";\n $this->TransbankCommerceCode = \"597020000541\";\n\n $this->TransbankPrivateKey =\n \"-----BEGIN RSA PRIVATE KEY-----\nMIIEpQIBAAKCAQEA0ClVcH8RC1u+KpCPUnzYSIcmyXI87REsBkQzaA1QJe4w/B7g\n6KvKV9DaqfnNhMvd9/ypmGf0RDQPhlBbGlzymKz1xh0lQBD+9MZrg8Ju8/d1k0pI\nb1QLQDnhRgR2T14ngXpP4PIQKtq7DsdHBybFU5vvAKVqdHvImZFzqexbZjXWxxhT\n+/sGcD4Vs673fc6B+Xj2UrKF7QyV5pMDq0HCCLTMmafWAmNrHyl6imQM+bqC12gn\nEEAEkrJiSO6P/21m9iDJs5KQanpJby0aGW8mocYRHDMHZjtTiIP0+JAJgL9KsH+r\nXdk2bT7aere7TzOK/bEwhkYEXnMMt/65vV6AfwIDAQABAoIBAHnIlOn6DTi99eXl\nKVSzIb5dA747jZWMxFruL70ifM+UKSh30FGPoBP8ZtGnCiw1ManSMk6uEuSMKMEF\n5iboVi4okqnTh2WSC/ec1m4BpPQqxKjlfrdTTjnHIxrZpXYNucMwkeci93569ZFR\n2SY/8pZV1mBkZoG7ocLmq+qwE1EaBEL/sXMvuF/h08nJ71I4zcclpB8kN0yFrBCW\n7scqOwTLiob2mmU2bFHOyyjTkGOlEsBQxhtVwVEt/0AFH/ucmMTP0vrKOA0HkhxM\noeR4k2z0qwTzZKXuEZtsau8a/9B3S3YcgoSOhRP/VdY1WL5hWDHeK8q1Nfq2eETX\njnQ4zjECgYEA7z2/biWe9nDyYDZM7SfHy1xF5Q3ocmv14NhTbt8iDlz2LsZ2JcPn\nEMV++m88F3PYdFUOp4Zuw+eLJSrBqfuPYrTVNH0v/HdTqTS70R2YZCFb9g0ryaHV\nTRwYovu/oQMV4LBSzrwdtCrcfUZDtqMYmmZfEkdjCWCEpEi36nlG0JMCgYEA3r49\no+soFIpDqLMei1tF+Ah/rm8oY5f4Wc82kmSgoPFCWnQEIW36i/GRaoQYsBp4loue\nvyPuW+BzoZpVcJDuBmHY3UOLKr4ZldOn2KIj6sCQZ1mNKo5WuZ4YFeL5uyp9Hvio\nTCPGeXghG0uIk4emSwolJVSbKSRi6SPsiANff+UCgYEAvNMRmlAbLQtsYb+565xw\nNvO3PthBVL4dLL/Q6js21/tLWxPNAHWklDosxGCzHxeSCg9wJ40VM4425rjebdld\nDF0Jwgnkq/FKmMxESQKA2tbxjDxNCTGv9tJsJ4dnch/LTrIcSYt0LlV9/WpN24LS\n0lpmQzkQ07/YMQosDuZ1m/0CgYEAu9oHlEHTmJcO/qypmu/ML6XDQPKARpY5Hkzy\ngj4ZdgJianSjsynUfsepUwK663I3twdjR2JfON8vxd+qJPgltf45bknziYWvgDtz\nt/Duh6IFZxQQSQ6oN30MZRD6eo4X3dHp5eTaE0Fr8mAefAWQCoMw1q3m+ai1PlhM\nuFzX4r0CgYEArx4TAq+Z4crVCdABBzAZ7GvvAXdxvBo0AhD9IddSWVTCza972wta\n5J2rrS/ye9Tfu5j2IbTHaLDz14mwMXr1S4L39UX/NifLc93KHie/yjycCuu4uqNo\nMtdweTnQt73lN2cnYedRUhw9UTfPzYu7jdXCUAyAD4IEjFQrswk2x04=\n-----END RSA PRIVATE KEY-----\";\n $this->TransbankPublicCert=\"-----BEGIN CERTIFICATE-----\nMIIDujCCAqICCQCZ42cY33KRTzANBgkqhkiG9w0BAQsFADCBnjELMAkGA1UEBhMC\nQ0wxETAPBgNVBAgMCFNhbnRpYWdvMRIwEAYDVQQKDAlUcmFuc2JhbmsxETAPBgNV\nBAcMCFNhbnRpYWdvMRUwEwYDVQQDDAw1OTcwMjAwMDA1NDExFzAVBgNVBAsMDkNh\nbmFsZXNSZW1vdG9zMSUwIwYJKoZIhvcNAQkBFhZpbnRlZ3JhZG9yZXNAdmFyaW9z\nLmNsMB4XDTE2MDYyMjIxMDkyN1oXDTI0MDYyMDIxMDkyN1owgZ4xCzAJBgNVBAYT\nAkNMMREwDwYDVQQIDAhTYW50aWFnbzESMBAGA1UECgwJVHJhbnNiYW5rMREwDwYD\nVQQHDAhTYW50aWFnbzEVMBMGA1UEAwwMNTk3MDIwMDAwNTQxMRcwFQYDVQQLDA5D\nYW5hbGVzUmVtb3RvczElMCMGCSqGSIb3DQEJARYWaW50ZWdyYWRvcmVzQHZhcmlv\ncy5jbDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANApVXB/EQtbviqQ\nj1J82EiHJslyPO0RLAZEM2gNUCXuMPwe4OirylfQ2qn5zYTL3ff8qZhn9EQ0D4ZQ\nWxpc8pis9cYdJUAQ/vTGa4PCbvP3dZNKSG9UC0A54UYEdk9eJ4F6T+DyECrauw7H\nRwcmxVOb7wClanR7yJmRc6nsW2Y11scYU/v7BnA+FbOu933Ogfl49lKyhe0MleaT\nA6tBwgi0zJmn1gJjax8peopkDPm6gtdoJxBABJKyYkjuj/9tZvYgybOSkGp6SW8t\nGhlvJqHGERwzB2Y7U4iD9PiQCYC/SrB/q13ZNm0+2nq3u08ziv2xMIZGBF5zDLf+\nub1egH8CAwEAATANBgkqhkiG9w0BAQsFAAOCAQEAdgNpIS2NZFx5PoYwJZf8faze\nNmKQg73seDGuP8d8w/CZf1Py/gsJFNbh4CEySWZRCzlOKxzmtPTmyPdyhObjMA8E\nAdps9DtgiN2ITSF1HUFmhMjI5V7U2L9LyEdpUaieYyPBfxiicdWz2YULVuOYDJHR\nn05jlj/EjYa5bLKs/yggYiqMkZdIX8NiLL6ZTERIvBa6azDKs6yDsCsnE1M5tzQI\nVVEkZtEfil6E1tz8v3yLZapLt+8jmPq1RCSx3Zh4fUkxBTpUW/9SWUNEXbKK7bB3\nzfB3kGE55K5nxHKfQlrqdHLcIo+vdShATwYnmhUkGxUnM9qoCDlB8lYu3rFi9w==\n-----END CERTIFICATE-----\";\n $this->TransbankWebpayCert=\"-----BEGIN CERTIFICATE-----\nMIIDKTCCAhECBFZl7uIwDQYJKoZIhvcNAQEFBQAwWTELMAkGA1UEBhMCQ0wxDjAMBgNVBAgMBUNo\naWxlMREwDwYDVQQHDAhTYW50aWFnbzEMMAoGA1UECgwDa2R1MQwwCgYDVQQLDANrZHUxCzAJBgNV\nBAMMAjEwMB4XDTE1MTIwNzIwNDEwNloXDTE4MDkwMjIwNDEwNlowWTELMAkGA1UEBhMCQ0wxDjAM\nBgNVBAgMBUNoaWxlMREwDwYDVQQHDAhTYW50aWFnbzEMMAoGA1UECgwDa2R1MQwwCgYDVQQLDANr\nZHUxCzAJBgNVBAMMAjEwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAizJUWTDC7nfP\n3jmZpWXFdG9oKyBrU0Bdl6fKif9a1GrwevThsU5Dq3wiRfYvomStNjFDYFXOs9pRIxqX2AWDybjA\nX/+bdDTVbM+xXllA9stJY8s7hxAvwwO7IEuOmYDpmLKP7J+4KkNH7yxsKZyLL9trG3iSjV6Y6SO5\nEEhUsdxoJFAow/h7qizJW0kOaWRcljf7kpqJAL3AadIuqV+hlf+Ts/64aMsfSJJA6xdbdp9ddgVF\noqUl1M8vpmd4glxlSrYmEkbYwdI9uF2d6bAeaneBPJFZr6KQqlbbrVyeJZqmMlEPy0qPco1TIxrd\nEHlXgIFJLyyMRAyjX9i4l70xjwIDAQABMA0GCSqGSIb3DQEBBQUAA4IBAQBn3tUPS6e2USgMrPKp\nsxU4OTfW64+mfD6QrVeBOh81f6aGHa67sMJn8FE/cG6jrUmX/FP1/Cpbpvkm5UUlFKpgaFfHv+Kg\nCpEvgcRIv/OeIi6Jbuu3NrPdGPwzYkzlOQnmgio5RGb6GSs+OQ0mUWZ9J1+YtdZc+xTga0x7nsCT\n5xNcUXsZKhyjoKhXtxJm3eyB3ysLNyuL/RHy/EyNEWiUhvt1SIePnW+Y4/cjQWYwNqSqMzTSW9TP\n2QR2bX/W2H6ktRcLsgBK9mq7lE36p3q6c9DtZJE+xfA4NGCYWM9hd8pbusnoNO7AFxJZOuuvLZI7\nJvD7YLhPvCYKry7N6x3l\n-----END CERTIFICATE-----\";\n\n }", "private function getResponseXML()\n\t\t{\n\n\n\t\t\t\tif($this->action_code==\"RateShop\" || $this->action_code==\"SingleCarRateShop\"){ //rateshop\n\t\t\t\t\t$wsdl = ($this->car_company==\"dollar\")?DOLLAR_RATESHOP_WS_URL:THRIFTY_RATESHOP_WS_URL;\n\t\t\t\t\t$soapAction = \"http://www.opentravel.org/OTA/2003/05/OTA2010A.RateService/GetRates\";\n\t\t\t\t\t$methodname = \"GetRates\";\n\n\t\t\t\t}else{ //booking\n\t\t\t\t\t$wsdl = ($this->car_company==\"dollar\")?DOLLAR_BOOKING_WS_URL:THRIFTY_BOOKING_WS_URL;;\n\t\t\t\t\tif($this->action_code==\"Booking\"){\n\t\t\t\t\t\t$methodname = \"MakeReservation\";\n\t\t\t\t\t\t$soapAction = \"http://www.opentravel.org/OTA/2003/05/OTA2010A.ReservationService/MakeReservation\";\n\t\t\t\t\t}else if($this->action_code==\"RetrieveReservation\"){\n\t\t\t\t\t\t$soapAction =\"http://DTG.TourDirect/IReservationService/RetrieveReservation\";\n\t\t\t\t\t\t$methodname=\"RetrieveReservation\";\n\n\t\t\t\t\t}else if($this->action_code==\"ModifyReservation\"){\n\t\t\t\t\t\t$soapAction =\"http://www.opentravel.org/OTA/2003/05/OTA2010A.ReservationService/ModifyReservation\";\n\t\t\t\t\t\t$methodname=\"ModifyReservation\";\n\t\t\t\t\t}else if($this->action_code==\"CANCEL\"){\n\t\t\t\t\t\t$soapAction =\"http://www.opentravel.org/OTA/2003/05/OTA2010A.ReservationService/CancelReservation\";\n\t\t\t\t\t\t$methodname=\"CancelReservation\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfile_put_contents(dirname(__FILE__). DIRECTORY_SEPARATOR . 'LogTF'.date('Ymd').'.txt',$wsdl,FILE_APPEND);\n\t\t\t\t$client = new nusoap_client($wsdl,'wsdl');\n\t\t\t\t$client->soap_defencoding = 'utf-8';\n\t\t\t\t$client->operation = $methodname;\n\t\t\t\t$r=$client->send($this->xml, $soapAction, '');\n\t\t\t\t$response_xml = $client->responseData;\n\t\t\t\tfile_put_contents(dirname(__FILE__). DIRECTORY_SEPARATOR . 'LogTF'.date('Ymd').'.txt',$response_xml,FILE_APPEND);\n//\t\t\tprint_r($wsdl);\n\t\t\t//print_r($response_xml);\n\t\t\t//print_r($this->car_company);\n\t\t\t//print_r($this->xml);\n\t\t\t//exit;\n\n\t\t\t\tif($this->action_code==\"RateShop\" || $this->action_code==\"SingleCarRateShop\"){\n\t\t\t\t\t$xml = simplexml_load_string($response_xml);\n\t\t\t\t\t$name_spaces = $xml->getNamespaces(true);\n\t\t\t\t\t$result=$xml->children($name_spaces['s'])->Body->children()->GetRatesResponse->asXML();\n\t\t\t\t\t$result = $this->parseResponseXML($result);\n\t\t\t\t}else{\n\t\t\t\t\tif($this->action_code==\"Booking\"){\n\t\t\t\t\t\t$xml = simplexml_load_string($response_xml);\n\t\t\t\t\t\t$name_spaces = $xml->getNamespaces(true);\n\t\t\t\t\t\t$result=$xml->children($name_spaces['s'])->Body->children()->MakeReservationResponse->asXML();\n\t\t\t\t\t\t$result = $this->parseResponseXML($result);\n\t\t\t\t\t}else if($this->action_code==\"RetrieveReservation\"){\n\t\t\t\t\t\t$result = $this->parseResponseXML($r[\"RetrieveReservationResult\"]);\n\t\t\t\t\t}else if($this->action_code==\"ModifyReservation\"){\n\t\t\t\t\t\t$xml = simplexml_load_string($response_xml);\n\t\t\t\t\t\t$result =$xml->Body->ModifyReservationResponse->asXML();\n\t\t\t\t\t\t$result = $this->parseResponseXML($result);\n\t\t\t\t\t}else if($this->action_code==\"CANCEL\"){\n\t\t\t\t\t\t$xml = simplexml_load_string($response_xml);\n\t\t\t\t\t\t$name_spaces = $xml->getNamespaces(true);\n\t\t\t\t\t\t$result=$xml->children($name_spaces['s'])->Body->children()->CancelReservationResponse->asXML();\n\t\t\t\t\t\t$result = $this->parseResponseXML($result);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tunset($client);\n\t\t\t$this->response = $result;\n\t\t\treturn $result;\n\t\t}", "function clientCode(Facade $facade)\n{\n\techo $facade->operation();\n}", "public function call(){\n \n $service = (string)$this->_service;\n \n if(!$this->_params){\n $this->setParams();\n }\n \n $response = $this->_soapClient->$service($this->_params); \n \n $serviceResult = $service.'Result';\n \n $xml = $response->$serviceResult; \n \n return $xml;\n\n }", "function getRestService($url) {\n\n\tif (function_exists('curl_init')) {\n\n\t\treturn getRestServiceCurl($url);\n\n\t} elseif (ini_get('allow_url_fopen') == true) {\n\n\t\t$file = fopen($url, 'r');\n\t\tif ($file === false) {\n\t\t\techo 'Cannot open asset url';\n\t\t\treturn '0';\n\n\t\t} else {\n\t\t\t$urldata = stream_get_contents($file);\n\t\t\tfclose($file);\n\n\t\t\t// Convert to UTF-8 for SimpleXML to work\n\t\t\t$urldata = mb_convert_encoding($urldata, 'UTF-8');\n\n\t\t\ttry {\n\t\t\t\t$xml = new SimpleXMLElement($urldata);\n\t\t\t\t$result = $xml;\n\t\t\t} catch (Exception $e) {\n\t\t\t\techo 'Bad XML';\n\t\t\t\t$result = '0';\n\t\t\t}\n\t\t\treturn $result;\n\t\t}\n\n\t} else {\n\t\techo 'No ways to fetch XML, sorry';\n\t}\n}", "public function request();", "public function getServiceInfo() {}", "public function aw_service_wp ( $proc, $args ) {\n\t \t//$args = array('argDta' => $productID,'argIsSale' => 1,'argUsr' => '');\n\t\t$url \t\t= 'http://203.201.129.15/AWSERVICE_WP_WEB/awws/AWService_WP.awws?wsdl';\n\t\t$client \t= new SoapClient($url);\n\t\t$response \t= $client->__soapCall( $proc, array($args) );\n\t\t\n\t\tswitch ( $proc ) {\n\t\t\tcase 'Trainers_OnlineProduct_Listing':\n\t\t\t\t$simpleXml = simplexml_load_string($response->Trainers_OnlineProduct_ListingResult);\n\t\t\tbreak;\n\n\t\t\tcase 'CorporateClientsList':\n\t\t\t\t$simpleXml = simplexml_load_string($response->CorporateClientsListResult);\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'pcPrdct_DisplayInfo':\n\t\t\t\t$simpleXml = simplexml_load_string($response->pcPrdct_DisplayInfoResult);\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'pcChat_UserDetails':\n\t\t\t\t$simpleXml = $response->pcChat_UserDetailsResult;\n\t\t\tbreak;\n\t\t\t\n\t\t}\n\t\t\n\t \treturn $simpleXml;\n\t }", "public function GetSource(){\n if($this->get_request_method()!= \"POST\"){\n $this->response('',406);\n }\n $format = $_POST['format'];\n $db_access = $this->dbConnect();\n $conn = $this->db;\n $res = new getService();\n $res->get_source($conn);\n }", "public function getServiceEndpoint()\r\n {\r\n // return static::SERVICE_TESTING_URL;\r\n return static::SERVICE_PRODUCTION_URL;\r\n }", "function _openService($url)\n {\n $obj = new SOAP_Client($url, TRUE);\n return $obj;\n }", "function getHttpCode();", "function salmon_generate_api_url($salmon_for_type=null,$id=null) {\n $url = get_base_url();\n $url .= \"/data_custom/salmon.php\";\n\n if (!is_null($salmon_for_type)) {\n $url .= \"&type=\".$salmon_for_type;\n }\n if (!is_null($id)) {\n $url .= \"&id=\".$id;\n }\n\n return $url;\n}", "public function testComDayCqAnalyticsTestandtargetImplServiceWebServiceImpl()\n {\n $client = static::createClient();\n\n $path = '/system/console/configMgr/com.day.cq.analytics.testandtarget.impl.service.WebServiceImpl';\n\n $crawler = $client->request('POST', $path);\n }", "public function getApi();", "public function getApi();", "public function getApi();", "static private function getWSDL() {\n\t\ttry {\n\t\t\t\n\t\t\tif (!isset($_SESSION['vcddb-wsdl'])) {\n\t\t\t\tthrow new Exception('No Service Endpoint has been specified');\n\t\t\t} else {\n\t\t\t\treturn $_SESSION['vcddb-wsdl'];\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception $ex) {\n\t\t\tthrow $ex;\n\t\t}\n\t}", "private function GET() {\n global $_GET;\n $getData = array();\n foreach($_GET as $key => $value) {\n $getData[$key] = $value;\n }\n $this -> response[\"response\"] = $getData;\n return;\n }", "static private function discoverServiceUri() {\n\t\ttry {\n\t\t\t\n\t\t\t$base = \"http://vcddb.konni.com/ws.vcddb.xml\";\n\t\t\t$xml = simplexml_load_file($base);\n\t\t\n\t\t\tif (!$xml) {\n\t\t\t\tthrow new Exception('Could not locate WSDL uri, try again later.');\n\t\t\t}\n\t\t\n\t\t\t$wsdluri = (string)$xml->wsdl;\n\t\t\t$_SESSION['vcddb-wsdl']\t= $wsdluri;\n\t\t\t\t\t\t\n\t\t} catch (Exception $ex) {\n\t\t\tthrow $ex;\n\t\t}\n\t}", "function getResponse();", "function getResponse();", "public function service($request,$response,$utilities);", "function serviceUrl($serviceId, $type='ajax', $params = array( ), $ampersand='&') {\n $params['SID'] = $serviceId;\n // receive simplified result in case of AJAX. There is no error info in result.\n if ($type == 'ajax.full')\n $type = 'ajax';\n elseif ($type == 'ajax.text') {\n $type = 'ajax';\n $params['FORMAT'] = 'text';\n }elseif ($type == 'ajax') {\n $type = 'ajax';\n $params['SIMPLIFIED'] = 1;\n }\n \n return url('/Core/service/'.$type, $params, $ampersand);\n}", "public static function getServiceURL() \n\t{\n\t\tacPhpCas::setReporting();\n\t\treturn phpCAS::getServiceURL();\n\t}", "protected function getEndpoint()\n {\n return 'IntraLibrary-XSearch';\n }", "function qmwConnect() {\n\ttry {\n\t\t$soap = new PerceptionSoap($GLOBALS['CFG']->perception_server_domain, array(\n\t\t\t\t\"qmwise_webshare_name\"\t\t=>\t$GLOBALS['CFG']->perception_webshare,\n\t\t\t\t\"perception_server_port\"\t=>\t$GLOBALS['CFG']->perception_hostport,\n\t\t\t\t\"security_client_id\"\t\t=>\t$GLOBALS['CFG']->perception_use_security ? $GLOBALS['CFG']->perception_client_id : null,\n\t\t\t\t\"security_checksum\"\t\t\t=>\t$GLOBALS['CFG']->perception_use_security ? $GLOBALS['CFG']->perception_checksum : null,\n\t\t\t\t\"trust_use\"\t\t\t\t\t=>\t$GLOBALS['CFG']->perception_use_trust,\n\t\t\t\t\"trust_key\"\t\t\t\t\t=>\t$GLOBALS['CFG']->perception_use_trust ? $GLOBALS['CFG']->perception_trustedkey : null,\n\t\t\t\t\"trust_encoding\"\t\t\t=>\t$GLOBALS['CFG']->perception_encoding,\n\t\t\t\t\"debug\"\t\t\t\t\t\t=>\t$GLOBALS['CFG']->debug\t\t\t\t\n\t\t\t));\n\t\treturn $soap;\n\t} catch(Exception $e) {\n\t\tthrow $e;\n\t}\n}", "public function index()\n {\n $client = new Client();\n $kirim = $client->get(env('API_URL').'/rangkumannilai');\n return $kirim->getBody(); \n }", "public function & GetRequest ();", "public function getLdc($s = null){\n\t\t$url = env('SOAP_URL');\n\t\t$user = env('SOAP_USER');\n\t\t$pw = env('SOAP_PW');\n\t\t$output_params = array(\"output_xml;8000\");\n\t\t$lang = env('SOAP_LANG');\n\t\t$entno = env('SOAP_ENTNO');\n\t\t$client = new SoapClient($url, array(\"trace\" => 1, \"exceptions\" => 0, \"cache_wsdl\" => 0));\n\n\t\tif(Input::get('type') === null){\n\t\t\t$type = 'web';\n\t\t}\n\t\telse{\n\t\t\t$type = Input::get('type');\n\t\t}\n\n\t\t$zip = Input::get('zip');\n\t\t$promo = Input::get('promo');\n\t\tSession::put('zip', $zip);\n\n\t\t// if zip code is entered on welcome page the residential or commercial button was used\n\t\tif(Input::get('Residential')){\n\t\t\t$service = \"R\";\n\t\t}\n\t\telse if(Input::get(\"Commercial\")){\n\t\t\t$service = \"C\";\n\t\t}\n\t\t// else the zip is entered from enroll page and service is found with radio button\n\t\telse{\n\t\t\t$service = Input::get('service');\n\t\t\tif($service == 'Commercial'){\n\t\t\t\t$service = 'C';\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$service = 'R';\n\t\t\t}\n\t\t} \n\n\t \t$xml_string = \"<string><![CDATA[@input_xml;<ReadiSystem><proc_type>RS_sp_DR_Offers_by_Zip</proc_type><entno>4270</entno><zip>\" . $zip . \"</zip><rev_type>\" . $service . \"</rev_type><utility_type>E</utility_type></ReadiSystem>]]></string>\";\n\n\t \t$xml_obj = simplexml_load_string($xml_string);\n\n\t\t$client->ExecuteSP(array(\"user\" => $user, \"password\" => $pw, \"spName\" => \"RS_sp_EAI_Output\", \"paramList\" => array($xml_obj), \"outputParamList\" => $output_params,\"langCode\" => $lang, \"entity\" => $entno)); \n\n\t\t$response = $client->__getLastResponse(); \n\n\t\t$xml = explode('&lt;RS_sp_DR_Offers_By_Zip&gt;', $response);\n\t\t\n\t\tfor($i = 1; $i < count($xml); $i++){\n\t\t\t$entno = get_string_between($xml[$i], '&lt;entno&gt;', '&lt;/entno&gt;');\n\t\t\t$s = get_string_between($xml[$i], '&lt;rev_type&gt;', '&lt;/rev_type&gt;');\n\t\t\t$ldc = get_string_between($xml[$i], '&lt;supno&gt;', '&lt;/supno&gt;');\n\n\t\t\tif($ldc == 'DELMD'){\n\t\t\t\t$ldc = 'Delmarva';\n\t\t\t}\n\t\t\tif($ldc == 'DUKE_OH'){\n\t\t\t\t$ldc = 'Duke';\n\t\t\t}\n\t\t\tif($ldc == 'PEPCO_MD'){\n\t\t\t\t$ldc = 'PEPCO';\n\t\t\t}\n\t\t\tif($ldc == 'DQE'){\n\t\t\t\t$ldc = 'Duquesne';\n\t\t\t}\n\t\n\t\t\t$ls[] = [$ldc];\n\t\t}\n\n\t\t// change Opsolve R/C naming convention to Residential/Commercial\n\t\tif($service == 'C'){\n\t\t\t$service = 'Commercial';\n\t\t}\n\t\telse{\n\t\t\t$service = 'Residential';\n\t\t}\n\n\t\tif(empty($ls)){\n\t\t\treturn view('no-service')->with('z', $zip)->with('s', $service)->with('p', $promo);\n\t\t}\n\t\n\t\t/*if(is_null($ldcs[0])){\n\t\t\treturn view('no-service')->with('z', $zip)->with('s', $service)->with('p', $promo);\n\t\t}*/\n\n\t\tforeach($ls as $l){\n\t\t\t$ldcs[] = \\App\\Models\\Ldc::where('ldc', $l)->first(); \n\t\t}\n\n\t\t// if there is only 1 LDC for the zip code, then send them straight to the plans\n\t\t$count = count($ldcs);\n\t\tif($count === 1){\n\t\t\treturn redirect()->route('searchPlans', array('type' => $type, 's' => $service, 'l' => $ldcs[0]->ldc, 'promo' => $promo));\n\t\t}\n\n\t\treturn view('ldcs.findex')->with('type', $type)->with('service', $service)->with('ldcs', $ldcs)->with('promo', $promo);\n\t}", "public function serviceRequest()\n {\n API::post('ivr/serviceRequest', array(\n 'caller' => $this->caller,\n 'called' => $this->called\n ), $this->app->getAccessToken());\n }", "public function index() {\n \t //$rrObj = new RenrenRestApiService;\n \tdebug(App::path('Vendor'));\n }", "public function get() {\n try {\n\n /**\n * Set up request method\n */\n $this->method = 'GET';\n /**\n * Process request and call for response\n */\n return $this->requestProcessor();\n\n\n } catch (\\Throwable $t) {\n new ErrorTracer($t);\n }\n }", "public function do_service() {\n $this->params_wrapper->check();\n $this->params_wrapper->wrap();\n $xml_content = XMLBuilder::buildXML($this->params_wrapper->getWrappedParameters());\n $sympa_client = new SympaPLClient();\n $main_robot_name = strtolower($this->params_wrapper->getWrappedParameter(SympaRemoteConstants::INPUT_RNE)).\".\".$this->config->sympa_main_domain;\n\n\t\t$operation = $this->params_wrapper->getWrappedParameter(SympaRemoteConstants::INPUT_OPERATION);\n\t\t$this->log->LogDebug(\"Operation : \" . $operation);\n\t\tswitch ($operation) {\n\t\t\tcase \"CREATE\":\n\t\t\t\t$sympa_client->createListWithXML($xml_content, $this->params_wrapper->getWrappedParameter(SympaPLClient::ARGUMENT_FAMILLE), $main_robot_name);\n\t\t\t\tbreak;\n\t\t\tcase \"UPDATE\":\n\t\t\t\t$sympa_client->updateListWithXML($xml_content, $this->params_wrapper->getWrappedParameter(SympaPLClient::ARGUMENT_FAMILLE), $main_robot_name);\n\t\t\t\tbreak;\n\t\t\tcase \"CLOSE\":\n\t\t\t\t$listname = $this->params_wrapper->getWrappedParameter(SympaRemoteConstants::INPUT_LIST_NAME_TO_CLOSE);\n\t\t\t\t$sympa_client->closeList($listname);\n\t\t\t\tbreak;\n\t\t}\n }", "public function _loadService($service, $data)\n {\n //$this->_options['url2'] = WSGENCIP;\n //$this->_options['url3'] = WSCRYPTAB;\n \n switch($service){ \n case 'GenerarCIPMod1': $url = $this->_options['url2'];break; \n case 'BlackBox': $url = $this->_options['url3']; \n break; \n default : $url = $this->_options['url']; break;\n } \n\n try{\n \n $soap = new \\SoapClient($url); \n//var_dump($soap); echo '<br><br>';\n $info = $soap->$service($data); \n return $info;\n } catch (Exception $e){ var_dump($e);\n return false;\n }\n }", "public function serviceInfo(){\n\n\t\t\t$service_id = $this->input->get('service_id') ;\n\t\t\t$info = $this->mdl_services->get_info($service_id) ;\n\t\t\techo json_encode($info) ;\n\t\t}", "public function request(){\n return \\Gaia\\ShortCircuit::request();\n }", "function _wp_get_head(){\n $msg=\"<?xml version='1.0' encoding='ISO-8859-2'?>\n\t\t\t\t\t<SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'\n\t\t\t\t\t\t\t\t\t xmlns:xsd='http://www.w3.org/2001/XMLSchema'\n\t\t\t\t\t\t\t\t\t xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'\n\t\t\t\t\t\t\t\t\t xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/'\n \t\t\t\t\t\t\t xmlns:ns4='http://codewebservice.namespace'\n\t\t\t\t\t\tSOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>\n\t\t\t\t\t<SOAP-ENV:Body>\n \t\";\n return $msg;\n }", "public function indexAction()\n {\n $this->_helper->viewRenderer->setNoRender(true);\n\n // On configure le serveur du Web Service\n $server = new SDIS62_Rest_Server;\n $server->setClass(\"Start_Service_Api\");\n $server->handle();\n }", "function startService()\n {\n\n $this->service_link = $this->_openService($this->url . '/' . $this->service_name . $this->wsdl);\n\n }", "protected function CallWebService($api_method,$POSTparameters) {\n \n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, 'https://bracketpy.p.mashape.com/'.$api_method);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt($ch, CURLOPT_ENCODING, 'gzip,deflate');\n curl_setopt($ch, CURLOPT_POST, true );\n curl_setopt($ch, CURLOPT_HTTPHEADER, array(\n 'X-Mashape-Key: '.$this->api_key,\n 'Content-Type: application/json'));\n curl_setopt($ch, CURLOPT_POSTFIELDS, $POSTparameters);\n $jsonreply = curl_exec ($ch);\n curl_close ($ch);\n unset($ch);\n return $jsonreply;\n }", "protected function _getApi()\n {\n return Mage::getSingleton('payments/api');\n }", "public function web()\n {\n return Web::getinstance();\n }", "function getClient() {\r\n require_once JPSPAN . 'CodeWriter.php';\r\n $Code = & new JPSpan_CodeWriter();\r\n $this->ClientGenerator->generate($Code);\r\n return $Code->toString();\r\n }", "public function index()\n {\n $client = new Client(['base_uri' => 'http://127.0.0.1:8000/api/skorpoint']);\n $request = $client->request('GET');\n // $response = json_decode($request->getBody());\n // echo $response[0]->id;\n $response = $request->getBody();\n return $response;\n }" ]
[ "0.63341224", "0.631827", "0.628465", "0.6282912", "0.62629604", "0.6229585", "0.5948279", "0.5904576", "0.5886976", "0.5831039", "0.5804756", "0.5789038", "0.5784752", "0.5758446", "0.5741594", "0.5737841", "0.5726511", "0.567134", "0.5623032", "0.5609219", "0.56089747", "0.5587804", "0.5564076", "0.5557911", "0.55537534", "0.5547813", "0.5524834", "0.5509346", "0.55086285", "0.55006135", "0.5497681", "0.5471148", "0.5453252", "0.54370385", "0.5436282", "0.54359347", "0.5434124", "0.54286826", "0.5420996", "0.54033315", "0.5399774", "0.5397193", "0.5396232", "0.53868085", "0.5383449", "0.53708285", "0.53708285", "0.53708285", "0.53708285", "0.53708285", "0.53708285", "0.53708285", "0.53708285", "0.53708285", "0.53708285", "0.53708285", "0.53624314", "0.5346583", "0.5342897", "0.5342871", "0.5339396", "0.53390527", "0.53389704", "0.53326076", "0.53313917", "0.5319117", "0.53042406", "0.5291444", "0.5284648", "0.5283551", "0.52831167", "0.52831167", "0.52831167", "0.5281593", "0.5280656", "0.5279525", "0.5277075", "0.5277075", "0.5266869", "0.5261683", "0.5241024", "0.52405655", "0.5239117", "0.52377963", "0.5231504", "0.52310073", "0.52290785", "0.522433", "0.52193004", "0.52037853", "0.5201517", "0.5196894", "0.5190697", "0.5186381", "0.5178943", "0.517837", "0.51778674", "0.517002", "0.51661605", "0.5165987", "0.5163921" ]
0.0
-1
Modification Code retour Web Service
public function updateCodeRetour($param) { $this->table = "sva_code_retour"; $this->__addParam($param); return $this->__update(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testUpdateServiceData()\n {\n\n }", "public function testUpdateService()\n {\n\n }", "private function suivi_crm(){\t\n\t\t\t\n\t\t\tif($this->get_request_method() != \"GET\"){\n\t\t\t\t$this->response('',406);\n\t\t\t}\n\t\t\t\n\t\t\t$result=suivi_crm();\n\t\t\t$this->response($this->json($result), 200);\n\t\t\t$this->response('',204);\t\n\t\t}", "public function processApi(){\r\n\t\t\t$service = explode(\"/\", $_GET['x']);\r\n\t\t\t$this->entity = ucfirst($service[0]);\r\n\t\t\t$this->methode = $service[1];\r\n\t\t\t$func = $this->methode.$this->entity;\r\n\t\t\t$this->addLog('--'.$this->methode.$this->entity);\r\n\t\t\tif((int)method_exists($this,$func) > 0)\r\n\t\t\t\t$this->$func();\r\n\t\t\telse\r\n\t\t\t\t$this->response('',404); // If the method not exist with in this class \"Page not found\".\r\n\t\t\t\t\r\n\t\t}", "public function update_rest_function()\n {\n $this->load->library('ControllerList');\n $controller_list = $this->controllerlist->getApiController();\n $list_not_method = Array(\n '__construct',\n '__destruct',\n '_remap',\n 'response',\n 'get',\n 'options',\n 'head',\n 'post',\n 'put',\n 'delete',\n 'patch',\n 'validation_errors',\n 'get_clientname',\n 'get_client_domain',\n 'get_client_info',\n '_success',\n '_error',\n );\n\n $arr_data_method = Array();\n foreach($controller_list as $controller_name => $arr_method) {\n foreach($arr_method as $method){\n $name_function = $controller_name . '_' . $method;\n if(in_array($method, $list_not_method) || $this->data->check_exist_by_controller_action($controller_name, $method)) {\n continue;\n }\n $arr_data_method[] = Array(\n 'name' \t\t\t=> $name_function,\n 'controller' \t=> $controller_name,\n 'action' \t\t=> $method,\n 'description' => str_replace('_', ' ', str_replace('-', ' ', $name_function)),\n 'status'\t\t=> 1,\n );\n }\n }\n\n if($arr_data_method){\n $this->data->add_muti($arr_data_method);\n }\n\n redirect($this->name['class']);\n }", "function consumir_webservice($xml_data)\n{\n\t$stream_options = array(\n\t\t'http' => array(\n\t\t\t'method'\t=> 'POST',\n\t\t\t'header'\t=> 'Authorization: Basic ' . base64_encode(\"Openbravo:openbravo\") . ' Content-Type: text/xml',\n\t\t\t'content'\t=> $xml_data,\n\t\t),\n\t);\n\n\t// Crear contexto de flujo con las opciones para consumir el webservice\n\t$context = stream_context_create($stream_options);\n\n\t// Consumir webservice y obtener respuesta\n\t// $ob_response = @file_get_contents('http://192.168.1.251:443/ob_lecaroz/ws/mx.cusoft.importing.rest.insertLecPayment', NULL, $context);\n\t$ob_response = @file_get_contents('http://192.168.1.3:443/ob_lecaroz/ws/mx.cusoft.importing.rest.insertLecPayment', NULL, $context);\n\n\treturn $ob_response;\n}", "function restAction()\n {\n $this->disableLayout();\n $this->_helper->viewRenderer->setNoRender();\n\n $request_data = $this->_getAllParams();\n\n $method_name = $this->_getParam('method');\n if(!isset($method_name))\n {\n echo \"Inconsistent request\";\n exit;\n }\n\n $request_data = $this->_getAllParams();\n // Handle XML-RPC request\n $this->kwWebApiCore = new KwWebApiRestCore($this->apiSetup, $this->apicallbacks, $request_data);\n }", "public function handleServiceRequest() {\n //\n // Create instance of SOAP server.\n //\n $SoapServer = new SoapServer($this->getWsdlFullPath()); \n $SoapServer->setClass(AblePolecat_Data::getDataTypeName($this)); \n $SoapServer->setPersistence(SOAP_PERSISTENCE_SESSION);\n $SoapServer->handle();\n }", "public function saveWebservice() {\n\n $registry = Zend_Registry::getInstance();\n $em = $registry->entitymanager;\n $data = $this->getRequest()->getParams();\n\n if(isset($data['webserviceId']) && $data['webserviceId'] > 0) {\n $serviceObj = $em->find('TWebservice',$data['webserviceId']);\n $serviceObj->setWebserviceId($data['webserviceId']);\n } else {\n $serviceObj = new TWebservice();\n }\n\n $serviceObj->setWebserviceName($data['WB_Name']);\n $serviceObj->setWebserviceUrl($data['WB_Url']);\n\n $Client = $em->find('TClient', $data['clientId']);\n\n $serviceObj->setClientId($Client);\n $em->persist($serviceObj);\n $em->flush();\n\n return true;\n }", "function editwebserviceAction() {\n\n $request = $this->getRequest();\n $form = $this->getForm();\n\n // Fetch Doctrine Object\n $em = Zend_Registry::getInstance()->entitymanager;\n\n $clientId = $this->getRequest()->getParam('clientId');\n $webserviceId = $this->getRequest()->getParam('webserviceId');\n\n if(isset($webserviceId) && $webserviceId !=\"\") {\n $webserviceObj = $em->find('TWebservice',$webserviceId);\n\n if(is_object($webserviceObj) && count($webserviceObj) >0) {\n $webserviceName = $webserviceObj->getWebserviceName();\n $webserviceUrl = $webserviceObj->getWebserviceUrl();\n $form->getElement('WB_Name')->setValue($webserviceName);\n $form->getElement('WB_Url')->setValue($webserviceUrl);\n\n } else {\n // Error Log\n }\n }\n\n $form->addElement('hidden', 'clientId', array('value' => $clientId)) ;\n $form->addElement('hidden', 'webserviceId', array('value' => $webserviceId)) ;\n\n if ($this->getRequest()->getMethod() == 'POST') {\n if (!$form->isValid($request->getPost())) {\n // Invalid entries\n $this->view->webservice_form = $form;\n return $this->render('add-webservice'); // re-render webservice form\n } else {\n $result=$this->saveWebservice();\n\n if($result) {\n $this->_redirect('admin/webservice/index/clientId/'.$clientId);\n } else {\n\n }\n }\n }\n\n $this->view->webservice_form = $form;\n $this->render('add-webservice');\n }", "public function index()\n {\n if ($this->request->server['REQUEST_METHOD'] == 'POST') {\n $this->load->controller('catalog/exchange/getUpdateProducts1C');\n $this->load->controller('restapi/amount');\n $json = ['status' => true, 'process' => 'Данные по категориям и товарам изменены'];\n $this->response->addHeader('Content-Type: application/json');\n $this->response->setOutput(json_encode($json));\n } else {\n $json = ['status' => false, 'description' => 'Данный введенные не верны!'];\n $this->response->addHeader('Content-Type: application/json');\n $this->response->setOutput(json_encode($json, JSON_UNESCAPED_UNICODE));\n }\n }", "public function service($request,$response,$utilities);", "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 do_service() {\n $this->params_wrapper->check();\n $this->params_wrapper->wrap();\n $xml_content = XMLBuilder::buildXML($this->params_wrapper->getWrappedParameters());\n $sympa_client = new SympaPLClient();\n $main_robot_name = strtolower($this->params_wrapper->getWrappedParameter(SympaRemoteConstants::INPUT_RNE)).\".\".$this->config->sympa_main_domain;\n\n\t\t$operation = $this->params_wrapper->getWrappedParameter(SympaRemoteConstants::INPUT_OPERATION);\n\t\t$this->log->LogDebug(\"Operation : \" . $operation);\n\t\tswitch ($operation) {\n\t\t\tcase \"CREATE\":\n\t\t\t\t$sympa_client->createListWithXML($xml_content, $this->params_wrapper->getWrappedParameter(SympaPLClient::ARGUMENT_FAMILLE), $main_robot_name);\n\t\t\t\tbreak;\n\t\t\tcase \"UPDATE\":\n\t\t\t\t$sympa_client->updateListWithXML($xml_content, $this->params_wrapper->getWrappedParameter(SympaPLClient::ARGUMENT_FAMILLE), $main_robot_name);\n\t\t\t\tbreak;\n\t\t\tcase \"CLOSE\":\n\t\t\t\t$listname = $this->params_wrapper->getWrappedParameter(SympaRemoteConstants::INPUT_LIST_NAME_TO_CLOSE);\n\t\t\t\t$sympa_client->closeList($listname);\n\t\t\t\tbreak;\n\t\t}\n }", "abstract protected function getService();", "abstract public function service();", "function SOAP_call($body, $controle){\n $location_URL = 'https://api.go4you.com.br/Consultas/Pedidos/Acoes.asmx?wsdl';\n $action_URL = \"http://www.go4you.com.br/webservices/InserirPedidoSemBag\";\n \n $client = new SoapClient(null, array(\n \"Content-type: text/xml;charset=\\\"utf-8\\\"\",\n \"Accept: text/xml\",\n \"Cache-Control: no-cache\",\n \"Pragma: no-cache\",\n \"SOAPAction: \\\"run\\\"\",\n 'location' => $location_URL,\n 'host' => \"api.go4you.com.br\",\n 'uri' => \"api.go4you.com.br\",\n 'trace' => \"1\",\n \"Content-length: \".strlen($body)\n ));\n \n return $client->__doRequest($body ,$location_URL, $action_URL, 1); \n \n}", "function Redactedapi() {\n \n if(!empty($_POST['site_id']) && is_numeric($_POST['site_id']))\n {\n $this->site_id = $_POST['site_id']; \n } \n else\n {\n $this->site_id = 1;\n }\n \n if($_SERVER['SERVER_NAME'] == 'www.redacted.com'){\n $this->username = 'xxxx';\n $this->password = 'xxxx';\n $this->url \t\t= 'https://api-1.redacted.com/redactedapiservice.asmx';\n } else{\n $this->username = 'xxxxx';\n $this->password = 'xxxxx';\n $this->url \t = 'https://testapi-1.redacted.com/redactedAPIService.asmx?wsdl';\n } \n\t\t\t\n\t\t$this->CI =& get_instance();\n\t\t$this->CI->load->helper('cookie');\n\t}", "public function tipo_cambio(){\n\n $client = new SoapClient(null, array(\n 'location' =>'http://www.banxico.org.mx:80/DgieWSWeb/DgieWS?WSDL',\n 'uri'=>'http://DgieWSWeb/DgieWS?WSDL',\n 'encoding'=> 'UTF-8'\n ));\n\n try {\n\n $result = $client->tiposDeCambioBanxico();\n\n } catch (SoapFault $ex) {\n\n return $this->error($ex->getMessage());\n\n }\n\n if( !$result) {\n\n return false;\n\n }\n\n $dom = new DomDocument();\n $dom->loadXML($result);\n\n $xmlDatos = $dom->getElementsByTagName('Obs');\n\n if( !$xmlDatos->length) {\n\n return false;\n\n }\n\n $itemDolar = $xmlDatos->item(0);\n $itemEuro = $xmlDatos->item(2);\n $itemDolarCanadiense = $xmlDatos->item(3);\n $itemYenCanadiense = $xmlDatos->item(4);\n\n if( !$itemDolar || !$itemDolarCanadiense || !$itemEuro || !$itemYenCanadiense) {\n\n return false;\n\n }\n\n $data = array(\n 'USD' => array(\n 'moneda'=>'USD',\n 'descripcion'=>'Dolar',\n 'time'=>$itemDolar->getAttribute('TIME_PERIOD'),\n 'valor'=>$itemDolar->getAttribute('OBS_VALUE')\n ),\n 'EUR' => array(\n 'moneda'=>'EUR',\n 'descripcion'=>'Euro',\n 'time'=>$itemEuro->getAttribute('TIME_PERIOD'),\n 'valor'=>$itemEuro->getAttribute('OBS_VALUE')\n ),\n 'CAN' => array(\n 'moneda'=>'USD CAN',\n 'descripcion'=>'Dolar Canadiense',\n 'time'=>$itemDolarCanadiense->getAttribute('TIME_PERIOD'),\n 'valor'=>$itemDolarCanadiense->getAttribute('OBS_VALUE')\n ),\n 'YEN' => array(\n 'moneda'=>'YEN CAN',\n 'descripcion'=>'YEN Canadiense',\n 'time'=>$itemYenCanadiense->getAttribute('TIME_PERIOD'),\n 'valor'=>$itemYenCanadiense->getAttribute('OBS_VALUE')\n )\n );\n return $data;\n }", "public function processApi(){\n\t\t$words = explode(\"/\",$_REQUEST['rquest']);\n\t\t$func = strtolower(trim(str_replace(\"/\",\"\",$words[0])));\n\t\t\n \t\tif(strcmp(\"services\",$func) == 0)\n\t\t\t$this->$func($words[1],$words[2]);\t// you can set as many levels as you want\n\t\telse\n\t\t\t$this->response('',404);\t// response would be \"Page not found\"\n\t}", "abstract public function LowAjax();", "function api_app_modify_function() {\n\n}", "function updateAuthor($id){\r\n $post = $_POST;\r\n unset($post[\"action\"]);\r\n $post[\"id\"] = $id;\r\n $result = post('http://localhost:8080/WebServicesProjet/api/rest/authors/update/'.$id, $post);\r\n if(intval($result) != 200 && intval($result)<=503 && intval($result)>=400){\r\n flash(\"error\",\"inconnu\");\r\n header(\"Location: \".$_SERVER['HTTP_ORIGIN'].$_SERVER['PHP_SELF'].'?/authors/'.$id);\r\n die();\r\n }else {\r\n header(\"Location: \".$_SERVER['HTTP_ORIGIN'].$_SERVER['PHP_SELF'].'?/authors/'.$id);\r\n die();\r\n }\r\n}", "public function transactService()\n {\n $data['liste_serv'] = $this->serviceModels->getService();\n $this->views->setData($data);\n $param['serv'] = $this->paramPOST['fk_service'];\n\n if (isset($this->paramPOST[\"datedeb\"]) & isset($this->paramPOST[\"datefin\"])) {\n\n $param['datedeb'] = Utils::date_aaaa_mm_jj($this->paramPOST['datedeb']) ;\n $param['datefin'] = Utils::date_aaaa_mm_jj($this->paramPOST['datefin']);\n\n }else{\n $param['datedeb'] = date('Y-m-d');\n $param['datefin'] = date('Y-m-d');\n }\n\n $this->views->setData($param);\n $this->views->getTemplate('reporting/transactService');\n }", "Function DokumentZalozeniRequest($UdalostiPredchazejici, $ProfilDokumentu, $Autorizace) {\r\n //nastaveni parametru\r\n global $server, $soap;\r\n $server->responseMethodname = str_replace(\"Request\", \"\", $server->methodname).'Response';\r\n $server->methodURI = $soap[\"methodURI\"];\r\n \r\n //print_r($server->methodparams);\r\n //print_r($UdalostiPredchazejici);\r\n //print_r($ProfilDokumentu);\r\n //print_r($Autorizace);\r\n\r\n// ob_start;\r\n// print_r($ProfilDokumentu);\r\n// print_r($Autorizace);\r\n// eb_end_flush; Die();\r\n\r\n if (VratReferenta($Autorizace)==0) \r\n return VratChybu($log,'Nepovedlo se identifikovat uzivatele v parametru ProvedlKdo');\r\n\r\n //response null\r\n Response_Dokument($response_ProfilDokumentu, false, 'f');\r\n\r\n //Zalozeni dokumentu\r\n $res = DokumentZalozeni($ProfilDokumentu, 'f', $Autorizace, $id, $msg_popis);\r\n\r\n\r\n //Nacteni dokumentu\r\n if ($id>0) Response_Dokument($response_ProfilDokumentu, $id, 'f');\r\n\r\n Response_Dokument($response_Dokument, $id, 't');\r\n \r\n //response \r\n Response_OperaceStatus($response_OperaceStatus, $msg_popis[\"Kod\"], $msg_popis[\"Popis\"]);\r\n NastavLog($log, $msg_popis[\"Kod\"].': '.$msg_popis[\"Popis\"].($msg_popis[\"ErrSql\"] ? ' | '.$msg_popis[\"ErrSql\"] : '') , 'DokumentZalozeniRequest', $msg_popis[\"Kod\"]);\r\n \r\n\r\n $result = array(\r\n 'ProfilDokumentu' => $response_Dokument,\r\n 'OperaceStatus' => $response_OperaceStatus\r\n );\r\n \r\n ZapisLog($log); \r\n\r\n return $result;\r\n}", "public function run()\n\t\t{\n\t\t\tswitch ($_GET['act']) {\n\t\t\t\tcase 'create':\n\t\t\t\t\t//Crear \n\t\t\t\t\t$this->create();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'lists':\n\t\t\t\t\t//Crear \n\t\t\t\t\t$this->lists();\n\t\t\t\t\tbreak;\t\n\t\t\t\tcase 'listsDetails':\n\t\t\t\t\t//Crear \n\t\t\t\t\t$this->listsDetails();\n\t\t\t\t\tbreak;\t\n\t\t\t\tcase 'get':\n\t\t\t\t\t//Obtener una Remision\n\t\t\t\t\t$this->getRemision();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'getFolio':\n\t\t\t\t\t$this->getFolio();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif ($this->api) {\n\t\t\t\t\t\techo $this->json_encode(array('error'=>SERVICIO_INEXISTENTE,'data'=>NULL,'mensaje'=>'Este servicio no está disponible'));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//CARGAR VISTA DE SERVICIO INEXISTENTE\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "protected function _response() {}", "public function demo(){\n // $this->soapWrapper->add(function ($service) {\n // $service->name('CRW')\n // ->wsdl('http://crm.elizade.net:5050/Service1.svc?wsdl')\n // ->trace(true);\n // });\n $this->soapWrapper->add('CRW', function ($service) {\n $service\n ->wsdl('http://crm.elizade.net:5050/Service1.svc?wsdl')\n ->trace(true);\n // ->classmap([\n // GetConversionAmount::class,\n // GetConversionAmountResponse::class,\n // ]);\n });\n\n $data = [\n 'lastname' => 'Raymond',\n 'firstname' => 'Ativie',\n 'email' => '[email protected]',\n 'bizPhone' => '08151700676'\n ];\n\n $case = [\n 'accountnumber' => 'CUST013643',\n 'description' => 'This is a description',\n 'title' => 'Hello world'\n ];\n\n // $response = $this->soapWrapper->call('CRW.CreateContact', [$data]);\n $response = $this->soapWrapper->call('CRW.CreateCase', [$case]);\n\n var_dump($response);\n\n // Using the added service\n // $this->soapWrapper->service('CRW', function ($service) use ($data) {\n // var_dump($service->call('CreateContact', [$data]));\n // // var_dump($service->call('Otherfunction'));\n // });\n }", "public function service(BLW_HTTP_Request $request, BLW_HTTP_Response $response);", "function _wsdl_docs_service_update($name, $data) {\n $service_id = _wsdl_docs_get_service_id($name);\n if (is_numeric($service_id)) {\n // Create DOMDocument object if XML validates.\n $wsdl = file_get_contents($data['url']);\n $DOMDocument = _wsdl_docs_validate_xml($wsdl);\n if (!$DOMDocument) {\n return 'Invalid XML.';\n }\n // Load existing WSDL service.\n $service = entity_load_single('wsclient_service', $service_id);\n // Update existing WSDL service's URL.\n $service->url = $data['url'];\n $service->save();\n // update WSDL service's operation nodes\n if ($DOMDocument) {\n wsdl_docs_update_wsclient_service($service, $DOMDocument);\n }\n return \"UPDATE SERVICE: $name, ID: $service_id\";\n }\n return 'WSDL Doc not updated. No WSDL Doc matching the name and resource url was found.';\n}", "public function aw_service_wp ( $proc, $args ) {\n\t \t//$args = array('argDta' => $productID,'argIsSale' => 1,'argUsr' => '');\n\t\t$url \t\t= 'http://203.201.129.15/AWSERVICE_WP_WEB/awws/AWService_WP.awws?wsdl';\n\t\t$client \t= new SoapClient($url);\n\t\t$response \t= $client->__soapCall( $proc, array($args) );\n\t\t\n\t\tswitch ( $proc ) {\n\t\t\tcase 'Trainers_OnlineProduct_Listing':\n\t\t\t\t$simpleXml = simplexml_load_string($response->Trainers_OnlineProduct_ListingResult);\n\t\t\tbreak;\n\n\t\t\tcase 'CorporateClientsList':\n\t\t\t\t$simpleXml = simplexml_load_string($response->CorporateClientsListResult);\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'pcPrdct_DisplayInfo':\n\t\t\t\t$simpleXml = simplexml_load_string($response->pcPrdct_DisplayInfoResult);\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'pcChat_UserDetails':\n\t\t\t\t$simpleXml = $response->pcChat_UserDetailsResult;\n\t\t\tbreak;\n\t\t\t\n\t\t}\n\t\t\n\t \treturn $simpleXml;\n\t }", "function main()\n{\n //getRequestidhl();\n\t //getRequestidlap();\n\t getRequestidpl();\n\n\t\n}", "function main()\t{\n\t\t$obj_new_film= new film_service();\n\t\t$obj_new_film->save_film();\n\n\t\t$this->resultat= $obj_new_film->resultat;\n\t}", "function javaService($pid,$dbM)\n{\n\t//$x = $WebAuthentication->setPaymentGatewayAuthchecksum($pid);\n\t//$auth = $x[\"AUTHCHECKSUM\"];\n\t$url = \"http://localhost:8190/listings/v1/activities?type=chat&listing=shortlist\";\n\t$header = array(\"JB-Profile-Identifier:\".$pid);\n\t$start_tm=microtime(true);\n\t$response = CommonUtility::sendCurlPostRequest($url,\"\",\"\",$header);\n\t$diff=microtime(true)-$start_tm;\n\t$data = (Array)json_decode($response);\n\t$insert[\"pid\"]=$pid;\n\t$insert[\"count\"]=$data[\"data\"]->totalCount;//$data[\"header\"]->totalCount;\n\t$insert[\"ids\"]=\"\";\n\t\n\tforeach($data[\"data\"]->items as $k=>$v)\n\t{\n\t\t$insert[\"ids\"].=$v->profileid.\",\";\n\t}\n\tinsertData($insert,2,$diff,$dbM);\n}", "abstract public function request();", "public function update(){\n //Instanciation du model\n $pS=new ServiceDB(); \n if(isset($_POST['Modifier'])){\n extract($_POST);\n if(!empty($idS) && !empty($nomS)) {\n $service=new ServiceC();\n $service->setIdS($idS);\n $service->setNomS($nomS);\n //appel à la fonction de modification\n $ok = $pS->updateServ($service);\n $data['listee']=$ok;\n }\n }\n \n return $this->listeS();\n }", "public function __construct($arguments = array()) {\n \n parent::__construct($arguments);\n\n $this->description = t('Get Procedure (English) from SOAP service (SharePoint).');\n\n // \"fields\" from an XML feed, so we pass an explicit list of source fields.\n $fields = array(\n// 'd:Id' => t('ID'),\n// 'd:Title' => t('Name'),\n// 'd:AudienceDesc' => t('Description'),\n \n 'RecordID' => t('Record ID'),\n 'ServiceID' => t('Service ID'),\n 'AProcedureName' => t('A ProcedureName'),\n 'Ebeneficiary' => t('E Beneficiary'),\n );\n\n // The source ID here is the one retrieved from the XML listing URL, and\n // used to identify the specific item's URL.\n $this->map = new MigrateSQLMap($this->machineName,\n array(\n 'RecordID' => array(\n 'type' => 'varchar',\n 'length' => 255,\n 'not null' => TRUE,\n 'description' => 'Record ID',\n ),\n ),\n MigrateDestinationTerm::getKeySchema()\n );\n\n //$xpath = '//m:properties/d:Id';\n\n // Source list URL.\n //$list_url = 'http://dnrd.ae/_layouts/RestProxy/Query.aspx?html=0&q=Audiance';\n $soap_service_name = 'test_soap';\n\n // Each ID retrieved from the list URL will be plugged into :id in the\n // item URL to fetch the specific objects.\n //$item_url = 'http://dnrd.ae/_layouts/RestProxy/Query.aspx?html=0&q=Audiance(:id)';\n\n // We use the MigrateSourceList class for any source where we obtain the\n // list of IDs to process separately from the data for each item. The\n // listing and item are represented by separate classes, so for example we\n // could replace the XML listing with a file directory listing, or the XML\n // item with a JSON item.\n \n// $this->source = new MigrateSourceList(new DnrdMigrateListXML($list_url, $xpath),\n// new MigrateItemXML($item_url), $fields);\n $this->source = new MigrateSourceList(new Gdrfa_MigrateListSoapXML($soap_service_name),\n new Gdrfa_MigrateItemSoapXML($soap_service_name), $fields);\n \n \n $this->destination = new MigrateDestinationNode('service_soap');\n \n\n // TIP: Note that for XML sources, in addition to the source field passed to\n // addFieldMapping (the name under which it will be saved in the data row\n // passed through the migration process) we specify the Xpath used to retrieve\n // the value from the XML.\n \n $this->addFieldMapping('title', 'RecordID')->xpath('//RecordID');\n\n $this->addFieldMapping('field_service_id', 'ServiceID')->xpath('//ServiceID');\n\n $this->addFieldMapping('field_a_procedure_name', 'AProcedureName')->xpath('//AProcedureName');\n \n $this->addFieldMapping('field_e_beneficiary', 'Ebeneficiary')->xpath('//Ebeneficiary');\n\n $this->addFieldMapping('status')\n ->defaultValue(1);\n\n $this->addFieldMapping('promote')\n ->defaultValue(0);\n\n $this->addFieldMapping('sticky')\n ->defaultValue(0);\n\n // Declare unmapped source fields.\n $unmapped_sources = array(\n /*\n //'EProcedureName',\n 'ADepartment',\n 'EDepartment',\n 'ECustomerType',\n 'ACustomerType',\n 'Classification',\n 'Status',\n 'Estatus',\n 'Astatus',\n\n 'Abeneficiary',\n 'AFeeRequired',\n 'ARequirements',\n 'ATools',\n 'ANotesforCustomer',\n 'ANoteforemployees',\n 'ESubmissionPlaces',\n 'ASubmissionPlaces',\n 'AProcedureDetail',\n 'OnLocal',\n 'OnLine',\n 'Modified',\n 'NeedUpdate',\n 'UpdateID',\n 'Active',\n */\n\n );\n $this->addUnmigratedSources($unmapped_sources);\n\n // Declare unmapped destination fields.\n $unmapped_destinations = array(\n 'nid',\n 'uid',\n //'redirect',\n 'language',\n 'tnid',\n 'body',\n 'created',\n 'body:summary',\n 'body:format',\n 'changed',\n 'log',\n 'translate',\n 'revision',\n 'revision_uid',\n 'is_new',\n 'path',\n 'pathauto',\n 'comment',\n );\n $this->addUnmigratedDestinations($unmapped_destinations);\n \n \n \n\n }", "public function __construct()\n {\n $this->Sendws = 'http://celmediainfo.cl/celmedia_chile/2138_WSDLCLOPCorpbanca/WS_MensajeriaCLOPCorpbanca.php?wsdl';\n $this->CanjeWs = 'http://190.196.23.186/clop/ws/server.php?wsdl';\n $this->OpUrlWs = 'http://200.68.3.74/toolsbkp/WSDLGetOper/wsdl.php?wsdl';\n\n /* WebService Server Route For Prestashop */\n $this->WebServiceServer = 'http://190.196.23.184/clop_otpc_web_prestashop_desa/wscl/wsclotpc_server_ps.php?wsdl';\n\n /* Promo Service */\n $this->WebServiceUser = 'tienda_ps';\n $this->WebServicePassword = '0x552A6798E1F1BCF715EFDB1E1DDC0874';\n $this->WebServiceOrigen = 'Login WEB OTPC';\n $this->WebServiceIdProveedor = '8';\n\n /* Ecommerce Home Url for Redirects */\n $this->ecommerceHomeUrl = 'http://ecorpbancadesa.celmedia.cl/';\n\n /* Urls consumibles for Transbank */\n $this->urlReturn = \"http://192.168.1.192/getResult\";\n $this->urlFinal = \"http://192.168.1.192/end\";\n $this->urlFracaso = \"http://ecorpbancadesa.celmedia.cl/fracaso\";\n $this->urlExito = \"http://ecorpbancadesa.celmedia.cl/module/celmediapago/validation\";\n $this->urlApi = \"http://192.168.1.192\";\n\n /* Celmedia Pago */\n $this->WebServiceUserCelPago = 'celmediapago';\n $this->WebServicePasswordCelPago = '0x552A6798E1F1BCF715EFDB1E1DDC0874';\n $this->WebServiceOrigenCelPago = 'ECOMMERCE_CELMEDIAPAGO';\n $this->WebServiceIdProveedorCelPago = '9';\n $this->WebServiceUniCanjeCelPago = '0';\n $this->WebServiceIdGrupoCelPago = '10';\n $this->WebServiceIdCategoriaCelPago = '36';\n $this->WebServiceIdSubCategoriaCelPago = '187';\n $this->WebServiceTdvOtpcCelPago = '31';\n $this->WebServiceTpTransactionCelPago = 'TR_NORMAL_WS';\n\n /* Other WebServices Credentials */\n $this->WSCLOTPC_Tiempo_OTPC = 30;\n\n $this->WSDL_SEND_ABOUT = 'Clave acceso canje on-line CORPUNTOS.';\n $this->WSDL_SEND_FROM = 'Canje on-line CORPUNTOS';\n $this->WSDL_SEND_HOST = 'mail.misp.cl';\n\n $this->WSDL_SEND_USER = '[email protected]';\n $this->WSDL_SEND_PASS = 'p$qg5*/';\n $this->WSDL_SEND_MAIL = '[email protected]';\n\n $this->WSDL_SEND_USER_PS = '[email protected]';\n $this->WSDL_SEND_PASS_PS = '8a4_27j';\n $this->WSDL_SEND_MAIL_PS = '[email protected]';\n\n /* Points by pesos */\n $this->tasa_conv_CI = '3';\n\n /* Keys And Variables for Transbank */\n $this->TransbankEnvironment = \"INTEGRACION\";\n $this->TransbankCommerceCode = \"597020000541\";\n\n $this->TransbankPrivateKey =\n \"-----BEGIN RSA PRIVATE KEY-----\nMIIEpQIBAAKCAQEA0ClVcH8RC1u+KpCPUnzYSIcmyXI87REsBkQzaA1QJe4w/B7g\n6KvKV9DaqfnNhMvd9/ypmGf0RDQPhlBbGlzymKz1xh0lQBD+9MZrg8Ju8/d1k0pI\nb1QLQDnhRgR2T14ngXpP4PIQKtq7DsdHBybFU5vvAKVqdHvImZFzqexbZjXWxxhT\n+/sGcD4Vs673fc6B+Xj2UrKF7QyV5pMDq0HCCLTMmafWAmNrHyl6imQM+bqC12gn\nEEAEkrJiSO6P/21m9iDJs5KQanpJby0aGW8mocYRHDMHZjtTiIP0+JAJgL9KsH+r\nXdk2bT7aere7TzOK/bEwhkYEXnMMt/65vV6AfwIDAQABAoIBAHnIlOn6DTi99eXl\nKVSzIb5dA747jZWMxFruL70ifM+UKSh30FGPoBP8ZtGnCiw1ManSMk6uEuSMKMEF\n5iboVi4okqnTh2WSC/ec1m4BpPQqxKjlfrdTTjnHIxrZpXYNucMwkeci93569ZFR\n2SY/8pZV1mBkZoG7ocLmq+qwE1EaBEL/sXMvuF/h08nJ71I4zcclpB8kN0yFrBCW\n7scqOwTLiob2mmU2bFHOyyjTkGOlEsBQxhtVwVEt/0AFH/ucmMTP0vrKOA0HkhxM\noeR4k2z0qwTzZKXuEZtsau8a/9B3S3YcgoSOhRP/VdY1WL5hWDHeK8q1Nfq2eETX\njnQ4zjECgYEA7z2/biWe9nDyYDZM7SfHy1xF5Q3ocmv14NhTbt8iDlz2LsZ2JcPn\nEMV++m88F3PYdFUOp4Zuw+eLJSrBqfuPYrTVNH0v/HdTqTS70R2YZCFb9g0ryaHV\nTRwYovu/oQMV4LBSzrwdtCrcfUZDtqMYmmZfEkdjCWCEpEi36nlG0JMCgYEA3r49\no+soFIpDqLMei1tF+Ah/rm8oY5f4Wc82kmSgoPFCWnQEIW36i/GRaoQYsBp4loue\nvyPuW+BzoZpVcJDuBmHY3UOLKr4ZldOn2KIj6sCQZ1mNKo5WuZ4YFeL5uyp9Hvio\nTCPGeXghG0uIk4emSwolJVSbKSRi6SPsiANff+UCgYEAvNMRmlAbLQtsYb+565xw\nNvO3PthBVL4dLL/Q6js21/tLWxPNAHWklDosxGCzHxeSCg9wJ40VM4425rjebdld\nDF0Jwgnkq/FKmMxESQKA2tbxjDxNCTGv9tJsJ4dnch/LTrIcSYt0LlV9/WpN24LS\n0lpmQzkQ07/YMQosDuZ1m/0CgYEAu9oHlEHTmJcO/qypmu/ML6XDQPKARpY5Hkzy\ngj4ZdgJianSjsynUfsepUwK663I3twdjR2JfON8vxd+qJPgltf45bknziYWvgDtz\nt/Duh6IFZxQQSQ6oN30MZRD6eo4X3dHp5eTaE0Fr8mAefAWQCoMw1q3m+ai1PlhM\nuFzX4r0CgYEArx4TAq+Z4crVCdABBzAZ7GvvAXdxvBo0AhD9IddSWVTCza972wta\n5J2rrS/ye9Tfu5j2IbTHaLDz14mwMXr1S4L39UX/NifLc93KHie/yjycCuu4uqNo\nMtdweTnQt73lN2cnYedRUhw9UTfPzYu7jdXCUAyAD4IEjFQrswk2x04=\n-----END RSA PRIVATE KEY-----\";\n $this->TransbankPublicCert=\"-----BEGIN CERTIFICATE-----\nMIIDujCCAqICCQCZ42cY33KRTzANBgkqhkiG9w0BAQsFADCBnjELMAkGA1UEBhMC\nQ0wxETAPBgNVBAgMCFNhbnRpYWdvMRIwEAYDVQQKDAlUcmFuc2JhbmsxETAPBgNV\nBAcMCFNhbnRpYWdvMRUwEwYDVQQDDAw1OTcwMjAwMDA1NDExFzAVBgNVBAsMDkNh\nbmFsZXNSZW1vdG9zMSUwIwYJKoZIhvcNAQkBFhZpbnRlZ3JhZG9yZXNAdmFyaW9z\nLmNsMB4XDTE2MDYyMjIxMDkyN1oXDTI0MDYyMDIxMDkyN1owgZ4xCzAJBgNVBAYT\nAkNMMREwDwYDVQQIDAhTYW50aWFnbzESMBAGA1UECgwJVHJhbnNiYW5rMREwDwYD\nVQQHDAhTYW50aWFnbzEVMBMGA1UEAwwMNTk3MDIwMDAwNTQxMRcwFQYDVQQLDA5D\nYW5hbGVzUmVtb3RvczElMCMGCSqGSIb3DQEJARYWaW50ZWdyYWRvcmVzQHZhcmlv\ncy5jbDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANApVXB/EQtbviqQ\nj1J82EiHJslyPO0RLAZEM2gNUCXuMPwe4OirylfQ2qn5zYTL3ff8qZhn9EQ0D4ZQ\nWxpc8pis9cYdJUAQ/vTGa4PCbvP3dZNKSG9UC0A54UYEdk9eJ4F6T+DyECrauw7H\nRwcmxVOb7wClanR7yJmRc6nsW2Y11scYU/v7BnA+FbOu933Ogfl49lKyhe0MleaT\nA6tBwgi0zJmn1gJjax8peopkDPm6gtdoJxBABJKyYkjuj/9tZvYgybOSkGp6SW8t\nGhlvJqHGERwzB2Y7U4iD9PiQCYC/SrB/q13ZNm0+2nq3u08ziv2xMIZGBF5zDLf+\nub1egH8CAwEAATANBgkqhkiG9w0BAQsFAAOCAQEAdgNpIS2NZFx5PoYwJZf8faze\nNmKQg73seDGuP8d8w/CZf1Py/gsJFNbh4CEySWZRCzlOKxzmtPTmyPdyhObjMA8E\nAdps9DtgiN2ITSF1HUFmhMjI5V7U2L9LyEdpUaieYyPBfxiicdWz2YULVuOYDJHR\nn05jlj/EjYa5bLKs/yggYiqMkZdIX8NiLL6ZTERIvBa6azDKs6yDsCsnE1M5tzQI\nVVEkZtEfil6E1tz8v3yLZapLt+8jmPq1RCSx3Zh4fUkxBTpUW/9SWUNEXbKK7bB3\nzfB3kGE55K5nxHKfQlrqdHLcIo+vdShATwYnmhUkGxUnM9qoCDlB8lYu3rFi9w==\n-----END CERTIFICATE-----\";\n $this->TransbankWebpayCert=\"-----BEGIN CERTIFICATE-----\nMIIDKTCCAhECBFZl7uIwDQYJKoZIhvcNAQEFBQAwWTELMAkGA1UEBhMCQ0wxDjAMBgNVBAgMBUNo\naWxlMREwDwYDVQQHDAhTYW50aWFnbzEMMAoGA1UECgwDa2R1MQwwCgYDVQQLDANrZHUxCzAJBgNV\nBAMMAjEwMB4XDTE1MTIwNzIwNDEwNloXDTE4MDkwMjIwNDEwNlowWTELMAkGA1UEBhMCQ0wxDjAM\nBgNVBAgMBUNoaWxlMREwDwYDVQQHDAhTYW50aWFnbzEMMAoGA1UECgwDa2R1MQwwCgYDVQQLDANr\nZHUxCzAJBgNVBAMMAjEwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAizJUWTDC7nfP\n3jmZpWXFdG9oKyBrU0Bdl6fKif9a1GrwevThsU5Dq3wiRfYvomStNjFDYFXOs9pRIxqX2AWDybjA\nX/+bdDTVbM+xXllA9stJY8s7hxAvwwO7IEuOmYDpmLKP7J+4KkNH7yxsKZyLL9trG3iSjV6Y6SO5\nEEhUsdxoJFAow/h7qizJW0kOaWRcljf7kpqJAL3AadIuqV+hlf+Ts/64aMsfSJJA6xdbdp9ddgVF\noqUl1M8vpmd4glxlSrYmEkbYwdI9uF2d6bAeaneBPJFZr6KQqlbbrVyeJZqmMlEPy0qPco1TIxrd\nEHlXgIFJLyyMRAyjX9i4l70xjwIDAQABMA0GCSqGSIb3DQEBBQUAA4IBAQBn3tUPS6e2USgMrPKp\nsxU4OTfW64+mfD6QrVeBOh81f6aGHa67sMJn8FE/cG6jrUmX/FP1/Cpbpvkm5UUlFKpgaFfHv+Kg\nCpEvgcRIv/OeIi6Jbuu3NrPdGPwzYkzlOQnmgio5RGb6GSs+OQ0mUWZ9J1+YtdZc+xTga0x7nsCT\n5xNcUXsZKhyjoKhXtxJm3eyB3ysLNyuL/RHy/EyNEWiUhvt1SIePnW+Y4/cjQWYwNqSqMzTSW9TP\n2QR2bX/W2H6ktRcLsgBK9mq7lE36p3q6c9DtZJE+xfA4NGCYWM9hd8pbusnoNO7AFxJZOuuvLZI7\nJvD7YLhPvCYKry7N6x3l\n-----END CERTIFICATE-----\";\n\n }", "protected function _request() {}", "function finalizarSolicitudServicio(){\r\n\t\t$this->procedimiento='gev.f_tgv_servicio_ime';\r\n\t\t$this->transaccion='tgv_FINSOLSER_MOD';\r\n\t\t$this->tipo_procedimiento='IME';\r\n\t\t\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\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}", "private function repect_ech_m1(){\t\n\t\t\t\n\t\t\tif($this->get_request_method() != \"GET\"){\n\t\t\t\t$this->response('',406);\n\t\t\t}\n\t\t\t\n\t\t\t$result=repect_ech_m1();\n\t\t\t$this->response($this->json($result), 200);\n\t\t\t$this->response('',204);\t\n\t\t}", "public function access_content($msisdn,$invoiceNo,$aggreedPayDate){\n $curl = curl_init();\n $url='http://10.12.36.130:8080/services/DcPaServices';\n curl_setopt_array($curl, array(\n CURLOPT_URL => $url,\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_HTTPHEADER => array(\n 'SOAPAction: Adjustment',\n 'Content-Type: text/xml;charset=UTF-8'),\n CURLOPT_CUSTOMREQUEST => 'POST',\n CURLOPT_POSTFIELDS =>'<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"\n xmlns:bmp=\"http://cbs.huawei.com/dc/wsservice/bmpinterface\"\n xmlns:cbs=\"http://www.huawei.com/bme/cbsinterface/cbscommon\">\n<soapenv:Header/>\n <soapenv:Body>\n <bmp:CreatePARequestMsg>\n <RequestHeader>\n <cbs:Version>1</cbs:Version>\n <!--Optional:-->\n <cbs:BusinessCode>CreatePA</cbs:BusinessCode>\n <cbs:MessageSeq>'.time().'</cbs:MessageSeq>\n <!--Optional:-->\n <cbs:OwnershipInfo>\n <cbs:BEID>101</cbs:BEID>\n <!--Optional:-->\n </cbs:OwnershipInfo>\n <cbs:AccessSecurity>\n <cbs:LoginSystemCode>hissam</cbs:LoginSystemCode>\n <cbs:Password>Q9nmbqOehHWjysXzmQiabeI0Saa2V3WHEsw+xF7PnxM=</cbs:Password>\n </cbs:AccessSecurity>\n </RequestHeader>\n <CreatePARequest>\n <bmp:AcctAccessCode>\n <!--You have a CHOICE of the next 3 items at this level-->\n <bmp:PrimaryIdentity>'.$msisdn.'</bmp:PrimaryIdentity>\n </bmp:AcctAccessCode>\n <!--Optional:-->\n <bmp:PAExternalID>?</bmp:PAExternalID>\n <bmp:PAType>1</bmp:PAType>\n <bmp:PARequestDate>'.date(\"Ymd\").'000000</bmp:PARequestDate>\n <!--1 or more repetitions:-->\n <bmp:PADetailInfo>\n <bmp:AgreedPaidDate>'.$aggreedPayDate.'000000</bmp:AgreedPaidDate>\n <!--Optional:-->\n <bmp:CurrencyId>1153</bmp:CurrencyId>\n </bmp:PADetailInfo>\n <!--Zero or more repetitions:-->\n <bmp:PAInvoiceInfo>\n <bmp:InvoiceNo>'.$invoiceNo.'</bmp:InvoiceNo>\n </bmp:PAInvoiceInfo>\n <bmp:PAReminderFlag>N</bmp:PAReminderFlag>\n </CreatePARequest>\n </bmp:CreatePARequestMsg>\n </soapenv:Body>\n </soapenv:Envelope>',));\n //Convert XML to JSON\n $response = curl_exec($curl);\n \n return $response;\n //return $response;\n }", "function ODQuery_QueryService() {\n\t\t$this->client = new SoapClient(__DIR__.'/../wsdl/QueryService2.wsdl',array(\n 'exceptions'=>true,\n 'encoding'=>'utf-8')\n );\n\t\t$this->soapException = new ODSubmission_SoapException();\n\t}", "function addwebserviceAction() {\n\n $request = $this->getRequest();\n $form = $this->getForm();\n\n $clientId = $this->getRequest()->getParam('clientId');\n\n $form->addElement('hidden', 'clientId', array('value' => $clientId)) ;\n\n if ($this->getRequest()->getMethod() == 'POST') {\n if (!$form->isValid($request->getPost())) {\n // Invalid entries\n $this->view->webservice_form = $form;\n return $this->render('add-webservice'); // re-render webservice form\n } else {\n $result=$this->saveWebservice();\n\n if($result) {\n $this->_redirect('admin/webservice/index/clientId/'.$clientId);\n } else {\n\n }\n }\n }\n $this->view->webservice_form = $form;\n\n }", "private function getResponseXML()\n\t\t{\n\n\n\t\t\t\tif($this->action_code==\"RateShop\" || $this->action_code==\"SingleCarRateShop\"){ //rateshop\n\t\t\t\t\t$wsdl = ($this->car_company==\"dollar\")?DOLLAR_RATESHOP_WS_URL:THRIFTY_RATESHOP_WS_URL;\n\t\t\t\t\t$soapAction = \"http://www.opentravel.org/OTA/2003/05/OTA2010A.RateService/GetRates\";\n\t\t\t\t\t$methodname = \"GetRates\";\n\n\t\t\t\t}else{ //booking\n\t\t\t\t\t$wsdl = ($this->car_company==\"dollar\")?DOLLAR_BOOKING_WS_URL:THRIFTY_BOOKING_WS_URL;;\n\t\t\t\t\tif($this->action_code==\"Booking\"){\n\t\t\t\t\t\t$methodname = \"MakeReservation\";\n\t\t\t\t\t\t$soapAction = \"http://www.opentravel.org/OTA/2003/05/OTA2010A.ReservationService/MakeReservation\";\n\t\t\t\t\t}else if($this->action_code==\"RetrieveReservation\"){\n\t\t\t\t\t\t$soapAction =\"http://DTG.TourDirect/IReservationService/RetrieveReservation\";\n\t\t\t\t\t\t$methodname=\"RetrieveReservation\";\n\n\t\t\t\t\t}else if($this->action_code==\"ModifyReservation\"){\n\t\t\t\t\t\t$soapAction =\"http://www.opentravel.org/OTA/2003/05/OTA2010A.ReservationService/ModifyReservation\";\n\t\t\t\t\t\t$methodname=\"ModifyReservation\";\n\t\t\t\t\t}else if($this->action_code==\"CANCEL\"){\n\t\t\t\t\t\t$soapAction =\"http://www.opentravel.org/OTA/2003/05/OTA2010A.ReservationService/CancelReservation\";\n\t\t\t\t\t\t$methodname=\"CancelReservation\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfile_put_contents(dirname(__FILE__). DIRECTORY_SEPARATOR . 'LogTF'.date('Ymd').'.txt',$wsdl,FILE_APPEND);\n\t\t\t\t$client = new nusoap_client($wsdl,'wsdl');\n\t\t\t\t$client->soap_defencoding = 'utf-8';\n\t\t\t\t$client->operation = $methodname;\n\t\t\t\t$r=$client->send($this->xml, $soapAction, '');\n\t\t\t\t$response_xml = $client->responseData;\n\t\t\t\tfile_put_contents(dirname(__FILE__). DIRECTORY_SEPARATOR . 'LogTF'.date('Ymd').'.txt',$response_xml,FILE_APPEND);\n//\t\t\tprint_r($wsdl);\n\t\t\t//print_r($response_xml);\n\t\t\t//print_r($this->car_company);\n\t\t\t//print_r($this->xml);\n\t\t\t//exit;\n\n\t\t\t\tif($this->action_code==\"RateShop\" || $this->action_code==\"SingleCarRateShop\"){\n\t\t\t\t\t$xml = simplexml_load_string($response_xml);\n\t\t\t\t\t$name_spaces = $xml->getNamespaces(true);\n\t\t\t\t\t$result=$xml->children($name_spaces['s'])->Body->children()->GetRatesResponse->asXML();\n\t\t\t\t\t$result = $this->parseResponseXML($result);\n\t\t\t\t}else{\n\t\t\t\t\tif($this->action_code==\"Booking\"){\n\t\t\t\t\t\t$xml = simplexml_load_string($response_xml);\n\t\t\t\t\t\t$name_spaces = $xml->getNamespaces(true);\n\t\t\t\t\t\t$result=$xml->children($name_spaces['s'])->Body->children()->MakeReservationResponse->asXML();\n\t\t\t\t\t\t$result = $this->parseResponseXML($result);\n\t\t\t\t\t}else if($this->action_code==\"RetrieveReservation\"){\n\t\t\t\t\t\t$result = $this->parseResponseXML($r[\"RetrieveReservationResult\"]);\n\t\t\t\t\t}else if($this->action_code==\"ModifyReservation\"){\n\t\t\t\t\t\t$xml = simplexml_load_string($response_xml);\n\t\t\t\t\t\t$result =$xml->Body->ModifyReservationResponse->asXML();\n\t\t\t\t\t\t$result = $this->parseResponseXML($result);\n\t\t\t\t\t}else if($this->action_code==\"CANCEL\"){\n\t\t\t\t\t\t$xml = simplexml_load_string($response_xml);\n\t\t\t\t\t\t$name_spaces = $xml->getNamespaces(true);\n\t\t\t\t\t\t$result=$xml->children($name_spaces['s'])->Body->children()->CancelReservationResponse->asXML();\n\t\t\t\t\t\t$result = $this->parseResponseXML($result);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tunset($client);\n\t\t\t$this->response = $result;\n\t\t\treturn $result;\n\t\t}", "function createservicestep1_post()\n {\n $em = $this->doctrine->em;\n $service = new \\Entities\\Service();\n $service->setAthor($this->getCurrentUser());\n\n\n $service->title = $this->post('title', TRUE);\n $service->subtitle = $this->post('subtitle', TRUE);\n $service->phone = $this->post('phone', TRUE);\n $service->address = $this->post('address', TRUE);\n// $service->addSubCategories($this->post('categories', TRUE),$em);\n// $service->addCities($this->post('cities', TRUE),$em);\n// $icon = $this->post('icon');\n// $path= \"./resources/\".$icon['filename'];\n// file_put_contents($path, base64_decode($icon['value']));\n// $service->setIcon($path);\n// $em->persist($service);\n// $em->flush();\n $this->set_response($service, REST_Controller::HTTP_OK);\n }", "public function setModuleData(){\n\t\t/* variable initialization */\n\t\t$this->_strSchemaName\t.= \"_\".$this->getCompanyCode();\n\t\t$intRespone\t\t\t\t= \"\";\n\t\t\n\t\t/* Setting the Pokicy filed */\n\t\tif((isset($this->_strDataSet['policy'])) && (!empty($this->_strDataSet['policy']))){\n\t\t\t/* Iterating the loop */\n\t\t\tforeach($this->_strDataSet['policy'] as $strPlicyKey => $strPolicyValue){\n\t\t\t\t/* Decoding the value */\n\t\t\t\t$this->_strDataSet['policy'][$strPlicyKey]\t= getDecyptionValue($strPolicyValue);\n\t\t\t}\n\t\t\t/* Imploding the value */\n\t\t\t$this->_strDataSet['policy']\t\t= implode(\",\",$this->_strDataSet['policy']);\n\t\t}else{\n\t\t\t/* Setting the value */\n\t\t\t$this->_strDataSet['policy']\t= \"\";\n\t\t}\n\t\t\n\t\t/* Set the operation filter array */\n\t\t$strEventFilterArr \t= array(\n\t\t\t\t\t\t\t\t\t\t'table' \t=> $this->_strSchemaName,\n\t\t\t\t\t\t\t\t\t\t'data' \t\t=> $this->_strDataSet,\n\t\t\t\t\t\t\t\t\t\t'where' \t=> array('id' => $this->_strDataSet['foreign']),\n\t\t\t\t\t\t\t\t\t);\n\t\t/* removed unwanted variables */\n\t\tunset($strEventFilterArr['data']['foreign']);\n\t\t\n\t\t/* Perfomaning the addition operation */\n\t\tif($this->_strDataSet['foreign'] == 0){\n\t\t\t/* add new records */\n\t\t\t$intResultStatus = $this->_objDataOperation->setDataInTable($strEventFilterArr);\n\t\t/* Perfomaning the update operation */\n\t\t}else{\n\t\t\t/* update the existing records */\n\t\t\t$intResultStatus = $this->_objDataOperation->setUpdateData($strEventFilterArr);\n\t\t}\n\t\t/* removed used variables */\n\t\tunset($strResultArr);\n\t\t\n\t\t/* return the operation status */\n\t\treturn $intResultStatus;\n\t}", "function UserManagement(){\n\t\t$this->soap=new SugarSoap('http://troycontainerline.com/sugar/soap.php?wsdl');\n\t}", "function ajaxQueryServiceStatusDetails()\n {\n $serviceId = $_POST[\"serviceStatusId\"];\n\n if (!empty($serviceId)) {\n if (!is_numeric($serviceId)) {\n echo \"{}\";\n return;\n }\n\n $no = $this->NetworkOutage_model->getNetworkOutageById($serviceId);\n //header('Content-Type: text/javascript');\n $expNO = $this->exportNetworkOutageDetail($no->next());\n\n $exptNOResp = json_encode($expNO);\n if (is_null($_GET['callback'])) {\n echo $exptNOResp;\n } else {\n echo $_GET['callback']. '('. $exptNOResp .');';\n }\n } else {\n // return empty object\n echo \"{}\";\n }\n }", "function set_verbas () {\n\n\t\t// infelizmente tive que definir o tempo limite maximo como ilimitado devido a resposta lenta do webservice + o intervalo de execucao de cada iteracao\n\t\tset_time_limit(0);\n\n\t\ttry {\n\n\t\t\t$dadosAbertosClient = new dadosAbertosClient;\n\t\t\t$deputados = Deputado::all();\n\n\t\t\tforeach ($deputados as $deputado):\n\n\t\t\t\tif($deputado->id <= 115)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tfor ($mes=1; $mes <= 12 ; $mes++) {\n\n\t\t\t\t\t$listaVerbas = $dadosAbertosClient->listaVerbasIndenizatorias($deputado->id_deputado, 2017, $mes);\n\n\t\t\t\t\tforeach ($listaVerbas as $verbaIndenizatoria) {\n\n\t\t\t\t\t\t$verbaIndenizatoriaData = [\n\t\t\t\t\t\t\t'id_deputado' => $verbaIndenizatoria['idDeputado'],\n\t\t\t\t\t\t\t'data_referencia' => $verbaIndenizatoria['dataReferencia']['$'],\n\t\t\t\t\t\t\t'cod_tipo_despesa' => $verbaIndenizatoria['codTipoDespesa'],\n\t\t\t\t\t\t\t'valor' => $verbaIndenizatoria['valor'],\n\t\t\t\t\t\t\t'descricao_tipo_despesa' => $verbaIndenizatoria['descTipoDespesa']\n\t\t\t\t\t\t];\n\n\t\t\t\t\t\t$createVerba = VerbaIndenizatoria::create($verbaIndenizatoriaData);\n\n\t\t\t\t\t\tif(empty($verbaIndenizatoria['listaDetalheVerba']))\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\tforeach ($verbaIndenizatoria['listaDetalheVerba'] as $despesaDetalhada) {\n\n\t\t\t\t\t\t\t$despesaDetalhadaData = [\n\t\t\t\t\t\t\t\t'id_item' => $despesaDetalhada['id'],\n\t\t\t\t\t\t\t\t'valor_reembolsado' => $despesaDetalhada['valorReembolsado'],\n\t\t\t\t\t\t\t\t'data_emissao' => $despesaDetalhada['dataEmissao']['$'],\n\t\t\t\t\t\t\t\t'cpf_cnpj' => $despesaDetalhada['cpfCnpj'],\n\t\t\t\t\t\t\t\t'valor_despesa' => $despesaDetalhada['valorDespesa'],\n\t\t\t\t\t\t\t\t'nome_emitente' => $despesaDetalhada['nomeEmitente'],\n\t\t\t\t\t\t\t\t'descricao_documento' => @$despesaDetalhada['descDocumento'],\n\t\t\t\t\t\t\t\t'descricao_tipo_despesa' => $despesaDetalhada['descTipoDespesa']\n\t\t\t\t\t\t\t];\n\n\t\t\t\t\t\t\t$createVerba->despesas()->create($despesaDetalhadaData);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\t// a API recomenda um intervalo de 1 segundos entre as requisicoes, mas por precaucao coloquei 5 segundos\n\t\t\t\t\tsleep(5);\n\t\t\t\t}\n\n\t\t\tendforeach;\n\n\t\t} catch (Exception $e) {\n\t\t\techo $e->getMessage();\n\t\t}\n\n\t}", "function sendCharging($transactionID,$moID){ \n\n$sokaServicesObj = new SokaServices(\"consumer\"); \n \n$url = 'http://192.168.50.68:8002/osb/services/AdjustAccount_1_0?wsdl';\n$date = date(\"YmdHis\");\n $username = \"live_tigo_quiz\";\n $password = \"Qu1z@#123\";\n $expDateTime = \"2020-01-01 00:00:00\";\n$xmlPost = '<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:v1=\"http://xmlns.tigo.com/AdjustAccountRequest/V1\" xmlns:v3=\"http://xmlns.tigo.com/RequestHeader/V3\" xmlns:v2=\"http://xmlns.tigo.com/ParameterType/V2\">\n<soapenv:Header xmlns:wsse=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\">\n<cor:debugFlag xmlns:cor=\"http://soa.mic.co.af/coredata_1\">true</cor:debugFlag>\n<wsse:Security>\n<wsse:UsernameToken>\n<wsse:Username>live_tigo_quiz</wsse:Username>\n<wsse:Password>Qu1z@#123</wsse:Password>\n</wsse:UsernameToken>\n</wsse:Security>\n</soapenv:Header>\n<soapenv:Body>\n<v1:AdjustAccountRequest>\n<v3:RequestHeader>\n<v3:GeneralConsumerInformation>\n<v3:consumerID>TIGO_QUIZ</v3:consumerID>\n<v3:transactionID>'.$transactionID.'</v3:transactionID>\n<v3:country>TCD</v3:country>\n<v3:correlationID>33</v3:correlationID>\n</v3:GeneralConsumerInformation>\n</v3:RequestHeader>\n<v1:RequestBody>\n<v1:customerID>'.$this->msisdn.'</v1:customerID>\n<v1:walletID>2000</v1:walletID>\n<v1:adjustmentValue>-'.$this->amount.'</v1:adjustmentValue>\n<v1:externalTransactionID>'.$transactionID.'</v1:externalTransactionID>\n<v1:comment>Charging</v1:comment>\n<v1:additionalParameters>\n<v2:ParameterType>\n<v2:parameterName>ExpiryDateTime</v2:parameterName>\n<v2:parameterValue>'.$expDateTime.'</v2:parameterValue>\n</v2:ParameterType>\n</v1:additionalParameters>\n</v1:RequestBody>\n</v1:AdjustAccountRequest>\n</soapenv:Body>\n</soapenv:Envelope>';\n $headers = array(\n \"Method:POST\",\n \"Content-type: application/soap+xml;charset=\\\"utf-8\\\"\",\n \"Content-length: \" . strlen($xmlPost),\n \"Cache-Control: no-cache\",\n \"Pragma: no-cache\",\n \"Accept: application/soap+xml\",\n \"Content-Encoding:gzip,compress\",\n \"SOAPAction:AdjustAccount\",\n );\n\n \n $txnID = $sokaServicesObj->recordPaymentTransaction($this->msisdn,$transactionID, $xmlPost, $moID,\"SENT\",$this->amount); \n \n$ch = curl_init();\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n curl_setopt($ch, CURLOPT_URL,$url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_USERPWD, $username . \":\" . $password); // username and password - declared at the top of the doc\n curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);\n curl_setopt($ch, CURLOPT_TIMEOUT, 160);\n curl_setopt($ch, CURLOPT_POST, true);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $xmlPost); // the SOAP request\n curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\n $soapResponse = curl_exec($ch);\n curl_close($ch);\n if($soapResponse){\n $data['isResponse'] = TRUE; \n $data['response'] = $soapResponse;\n $data['txnID'] = $txnID;\n }\n else{ \n $data['isResponse'] = FALSE; \n $data['response'] = \"PROCESS_FAILED\";\n $data['txnID'] = $txnID;\n }\n return $data;\n \n \n}", "protected function handler ($SVC) {}", "function action(){\n\t\t//Campos que se quieren excluir de la limpieza de código. Formato: nombreCampo1|nombreCampo2|nombreCampo3\n\t\t$excluir=\"\";\n\t\t$_REQUEST=$this->inspector->cleanPHPHTML($_REQUEST);\n\n\t\t$option=isset($_REQUEST['option'])?$_REQUEST['option']:\"list\";\n\n\n\t\tswitch($option){\n\t\t\tcase \"processList\":\n\t\t\t\t$variable[\"option\"]=\"list\";\n\t\t\t\t$variable[\"grado\"]=$_REQUEST['grado'];\n\t\t\t\t$variable[\"sede\"]=$_REQUEST['sede'];\n $variable[\"periodo\"]=$_REQUEST['periodo'];\n\t\t\t\t$this->getComportamiento($variable);\n\t\t\tbreak;\n\n case \"actualizarNota\":\n $result = $this->procesarNota($_REQUEST);\n echo \"Registro actualizado\";\n /*if(!$result->status){\n echo json_encode($result);\n return false;\n }\n echo json_encode($result);*/\n\n break;\n\t\t}\n\t}", "static function generarServicioL($par){\n\n\t\tif($par==\"T\"){\n\t\trequire_once('../SERVIDOR/lib/nusoap.php');\n\t\t}else{\n\t\trequire_once('SERVIDOR/lib/nusoap.php');\n\t\t}\n\n\t\t$host = 'http://localhost/Final2k16/SERVIDOR/ws.php?wsdl';\t\n \n $client = new nusoap_client($host);\n $err = $client->getError();\n if ($err) {\n die();\n return '<h2>ERROR EN LA CONSTRUCCION DEL WS:</h2><pre>' . $err . '</pre>';\n }\n return $client;\n\n\t}", "public function processApi(){\n\t\t\t$func = strtolower(trim(str_replace(\"/\",\"\",$_REQUEST['x'])));\n//echo $func;\t\n\t\t\tif((int)method_exists($this,$func) > 0)\n\t\t\t\t$this->$func();\n\t\t\telse\n\t\t\t\t$this->response('',404); // If the method not exist with in this class \"Page not found\".\n\t\t}", "public function api_call() {\n\n }", "function jsonAction()\n {\n $this->disableLayout();\n $this->_helper->viewRenderer->setNoRender();\n\n $request_data = $this->_getAllParams();\n\n $method_name = $this->_getParam('method');\n if(!isset($method_name))\n {\n echo \"Inconsistent request\";\n exit;\n }\n\n $request_data = $this->_getAllParams();\n // Handle XML-RPC request\n $this->kwWebApiCore = new KwWebApiRestCore($this->apiSetup, $this->apicallbacks, array_merge($request_data, array('format' => 'json')));\n }", "function act() {\n if ($_SERVER['REQUEST_METHOD'] == \"PUT\") {\n $xml = \"\";\n $fd = fopen(\"php://input\",\"r\");\n while ($line = fread($fd,2048)) {\n $xml .= $line;\n }\n fclose($fd);\n $src = $this->getParameterDefault(\"src\");\n $fd=fopen($src,\"w\");\n \n fwrite($fd,$xml);\n fclose($fd);\n // TODO: Error handling!\n $this->sitemap->setResponseCode(204);\n return array(\"message\" => \"Data saved\");\n }\n return array(\"message\" => \"Not a PUT request\");\n \n \n }", "public function processApi()\n\t\t{\n\t\t\t$this->createEntry();\n\t\t}", "public function processRequest();", "function editServiceForm ($pid, $msg = '', $new_name = '', $new_site_url = '', $new_ping_url = '', $new_method = '', $new_enabled = -1)\n{\n global $_CONF, $_TABLES, $LANG_TRB, $LANG_ADMIN, $MESSAGE;\n\n $retval = '';\n\n if ($pid > 0) {\n $result = DB_query (\"SELECT * FROM {$_TABLES['pingservice']} WHERE pid = '$pid'\");\n $A = DB_fetchArray ($result);\n } else {\n $A['is_enabled'] = 1;\n $A['method'] = 'weblogUpdates.ping';\n }\n\n if (!empty ($new_name)) {\n $A['name'] = $new_name;\n }\n if (!empty ($new_site_url)) {\n $A['site_url'] = $new_site_url;\n }\n if (!empty ($new_ping_url)) {\n $A['ping_url'] = $new_ping_url;\n }\n if (!empty ($new_method)) {\n $A['method'] = $new_method;\n }\n if ($new_enabled >= 0) {\n $A['is_enabled'] = $new_enabled;\n }\n\n $retval .= COM_siteHeader ('menu', $LANG_TRB['edit_service']);\n\n if (!empty ($msg)) {\n $retval .= showTrackbackMessage ('Error', $msg);\n }\n\n $token = SEC_createToken();\n\n $retval .= COM_startBlock($LANG_TRB['edit_service'], getHelpUrl() . '#ping',\n COM_getBlockTemplate('_admin_block', 'header'));\n $retval .= SEC_getTokenExpiryNotice($token);\n\n $template = new Template ($_CONF['path_layout'] . 'admin/trackback');\n $template->set_file (array ('editor' => 'serviceeditor.thtml'));\n $template->set_var('xhtml', XHTML);\n $template->set_var('site_url', $_CONF['site_url']);\n $template->set_var('site_admin_url', $_CONF['site_admin_url']);\n $template->set_var('layout_url', $_CONF['layout_url']);\n $template->set_var('max_url_length', 255);\n $template->set_var('method_ping', 'weblogUpdates.ping');\n $template->set_var('method_ping_extended', 'weblogUpdates.extendedPing');\n\n $template->set_var('lang_name', $LANG_TRB['service']);\n $template->set_var('lang_site_url', $LANG_TRB['service_website']);\n $template->set_var('lang_ping_url', $LANG_TRB['service_ping_url']);\n $template->set_var('lang_enabled', $LANG_ADMIN['enabled']);\n $template->set_var('lang_method', $LANG_TRB['ping_method']);\n $template->set_var('lang_method_standard', $LANG_TRB['ping_standard']);\n $template->set_var('lang_method_extended', $LANG_TRB['ping_extended']);\n $template->set_var('lang_save', $LANG_ADMIN['save']);\n $template->set_var('lang_cancel', $LANG_ADMIN['cancel']);\n\n if ($pid > 0) {\n $delbutton = '<input type=\"submit\" value=\"' . $LANG_ADMIN['delete']\n . '\" name=\"servicemode[2]\"%s' . XHTML . '>';\n $jsconfirm = ' onclick=\"return confirm(\\'' . $MESSAGE[76] . '\\');\"';\n $template->set_var('delete_option',\n sprintf ($delbutton, $jsconfirm));\n $template->set_var('delete_option_no_confirmation',\n sprintf ($delbutton, ''));\n } else {\n $template->set_var('delete_option', '');\n }\n\n if (isset ($A['pid'])) {\n $template->set_var('service_id', $A['pid']);\n } else {\n $template->set_var('service_id', '');\n }\n if (isset ($A['name'])) {\n $template->set_var('service_name', $A['name']);\n } else {\n $template->set_var('service_name', '');\n }\n if (isset ($A['site_url'])) {\n $template->set_var('service_site_url', $A['site_url']);\n } else {\n $template->set_var('service_site_url', '');\n }\n if (isset ($A['ping_url'])) {\n $template->set_var('service_ping_url', $A['ping_url']);\n } else {\n $template->set_var('service_ping_url', '');\n }\n if ($A['is_enabled'] == 1) {\n $template->set_var('is_enabled', 'checked=\"checked\"');\n } else {\n $template->set_var('is_enabled', '');\n }\n if ($A['method'] == 'weblogUpdates.ping') {\n $template->set_var('standard_is_checked', 'checked=\"checked\"');\n $template->set_var('extended_is_checked', '');\n } else {\n $template->set_var('standard_is_checked', '');\n $template->set_var('extended_is_checked', 'checked=\"checked\"');\n }\n $template->set_var('gltoken_name', CSRF_TOKEN);\n $template->set_var('gltoken', $token);\n\n $template->parse ('output', 'editor');\n $retval .= $template->finish ($template->get_var ('output'));\n\n $retval .= COM_endBlock (COM_getBlockTemplate ('_admin_block', 'footer'));\n $retval .= COM_siteFooter ();\n\n return $retval;\n}", "public function save_info_pointeuse() {\n $this->autoRender = false;\n header('Cache-Control: no-cache, must-revalidate');\n header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');\n header('Content-type: application/json');\n header('Access-Control-Allow-Origin: *');\n header(\"Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS\");\n header(\"Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With\");\n if ($this->request->is('post')) {\n $data = $this->request->data;\n require APP . 'Vendor/autoload.php';\n require_once APP . 'Vendor' . DS . 'lib/TADFactory.php';\n require_once APP . 'Vendor' . DS . 'lib/TAD.php';\n require_once APP . 'Vendor' . DS . 'lib/TADResponse.php';\n require_once APP . 'Vendor' . DS . 'lib/Providers/TADSoap.php';\n require_once APP . 'Vendor' . DS . 'lib/Providers/TADZKLib.php';\n require_once APP . 'Vendor' . DS . 'lib/Exceptions/ConnectionError.php';\n require_once APP . 'Vendor' . DS . 'lib/Exceptions/FilterArgumentError.php';\n require_once APP . 'Vendor' . DS . 'lib/Exceptions/UnrecognizedArgument.php';\n require_once APP . 'Vendor' . DS . 'lib/Exceptions/UnrecognizedCommand.php';\n $date = date('Y-m-d');\n if (!empty($data['Pointage']['date'])) {\n $date = $data['Pointage']['date'];\n }\n $tad = (new TADFactory(['ip' => '192.168.1.201', 'encoding' => 'utf-8']))->get_instance();\n // list pointage in date [$date]\n $att_logs = $tad->get_att_log();\n $filtered_att_logs = $att_logs->filter_by_date(\n ['start' => $date, 'end' => $date]\n );\n $all_pointages = $filtered_att_logs->to_array();\n // list user pointer\n $list_user_point = array();\n $list_user_point_name = array();\n $list_user_point_id = array();\n// $ap = current($all_pointages);\n $ap = $all_pointages['Row'];\n foreach ($ap as $k => $point):\n if (!in_array($point['PIN'], $list_user_point_id)):\n array_push($list_user_point_id, $point['PIN']);\n $user_info = $tad->get_user_info(['pin' => $point['PIN']]);\n $full_name_xml = simplexml_load_string(\"<?xml version='1.0' encoding='UTF-8'?>\" . utf8_encode($user_info->get_response_body())) or die(\"Error: Cannot create object\");\n $full_name_array = (array) $full_name_xml;\n $full_name_row = (array) $full_name_array['Row'];\n $full_name = $full_name_row['Name'];\n array_push($list_user_point, array('full_name' => $full_name));\n array_push($list_user_point_name, $full_name);\n endif;\n $user_info = $tad->get_user_info(['pin' => $point['PIN']]);\n $full_name_xml = simplexml_load_string(\"<?xml version='1.0' encoding='UTF-8'?>\" . utf8_encode($user_info->get_response_body())) or die(\"Error: Cannot create object\");\n $full_name_array = (array) $full_name_xml;\n $full_name_row = (array) $full_name_array['Row'];\n $full_name = $full_name_row['Name'];\n $point['full_name'] = $full_name;\n $point['isAbsent'] = FALSE;\n $point['date'] = explode(\" \", $point['DateTime'])[0];\n $ap[$k] = $point;\n endforeach;\n $pointage_not_absent = $this->_group_by($ap, 'full_name');\n $pointage_notabsent = array();\n $times = array();\n foreach ($pointage_not_absent as $k => $pointage):\n array_push($pointage_notabsent, array($k => $pointage));\n array_push($times, $pointage);\n endforeach;\n // Get attendance logs for all users;\n $all_user_info = $tad->get_all_user_info();\n $full_user = simplexml_load_string(\"<?xml version='1.0' encoding='UTF-8'?>\" . utf8_encode($all_user_info->get_response_body())) or die(\"Error: Cannot create object\");\n $rowUser = (array) $full_user;\n $all_user = current($rowUser);\n $user_absent_name = array();\n $user_absent = array();\n $pointage_absent = array();\n foreach ($all_user as $user):\n $user_array = (array) $user;\n if (!empty($user_array['Name'])):\n if (!in_array($user_array['Name'], $list_user_point_name)) {\n array_push($user_absent_name, $user_array['Name']);\n array_push($user_absent, array('full_name' => $user_array['Name']));\n array_push($pointage_absent, array($user_array['Name'] => array(\n 'full_name' => ucwords($user_array['Name']),\n 'pin' => NULL,\n 'isAbsent' => TRUE,\n 'datetime' => NULL,\n 'date' => NULL,\n 'verified' => NULL,\n 'status' => NULL,\n 'workCode' => NULL\n )));\n }\n endif;\n endforeach;\n header(\"HTTP/1.1 200 OK\");\n echo json_encode(array(\n 'absent' => $pointage_absent,\n 'notabsent' => $pointage_notabsent,\n 'names' => $list_user_point,\n 'names_absent' => $user_absent,\n 'status' => 200,\n 'times' => $times,\n 'type' => 'success'\n ));\n die();\n }\n }", "function myServiceMethod ($request, $response)\n\t\t{\n $response->data['message'] = 'I received from you: ' . $request->data['message'];\n $response->data['success'] = 'true';\n\t\t}", "public function actionajaxServiceTypeStatus()\n {\n \t //echo \"<pre>\";print_r($_REQUEST);die;\n \t $id=$_REQUEST['id'];\n \t $rec=ServiceTypes::model()->findByPk($id);\n \t $status=$rec->status;\n \n if($status==0)\n {\n \t $rec->status=1;\n \t $rec->save(false);\n\n }\t\n else\n {\n \t $rec->status=0;\n \t $rec->save();\n\n }\n\n\n }", "function SAP_set_order($rec_id)\n{\n/*\n\tThis FUNCTION posts SD order \n\tINPUT: id of invoice\n\tOUTPUT:\n\t\t\t- \"ID\" of SD order\n\t\t\tOR \"0\" - if failed\n*/\n\tinclude(\"login_re.php\");\n\tini_set(\"soap.wsdl_cache_enabled\", \"0\");\n\t\n\t//THESE PARAMS ARE FIXED NOW\n\t$cond_type='ZPR0';\t\n\t//$cond_value='10';\n\t$service_mode='SO_C';\t// CREATE\t\n\t$req = new Request();\n\t \n\t\t\t//Setting up the object\n\t\t\t$item= new Item();\n\t\t\n\t\t//Set up mySQL connection\n\t\t\t$db_server = mysqli_connect($db_hostname, $db_username,$db_password);\n\t\t\t$db_server->set_charset(\"utf8\");\n\t\t\tIf (!$db_server) die(\"Can not connect to a database!!\".mysqli_connect_error($db_server));\n\t\t\tmysqli_select_db($db_server,$db_database)or die(mysqli_error($db_server));\n\t//1.\t\n\t\t// LOCATE data for the invoice\n\t\t\t$invoice_sql=\"SELECT invoice.date,invoice.value,contract.id_SAP,currency.code,decade,month,year \n\t\t\t\t\t\t\tFROM invoice \n\t\t\t\t\t\t\tLEFT JOIN contract ON invoice.contract_id=contract.id \n LEFT JOIN currency ON invoice.currency=currency.id\n\t\t\t\t\t\t\tWHERE invoice.id=$rec_id\";\n\t\t\t\t\n\t\t\t$answsql=mysqli_query($db_server,$invoice_sql);\n\t\t\t\t\n\t\t\tif(!$answsql) die(\"Database SELECT TO invoice table failed: \".mysqli_error($db_server));\t\n\t\t\tif (!$answsql->num_rows)\n\t\t\t{\n\t\t\t\techo \"WARNING: No invoice found for a given ID in invoice TABLE <br/>\";\n\t\t\t\treturn 0;\n\t\t\t}\t\n\t\t\t$i_data= mysqli_fetch_row($answsql);\n\t\t\t\t\n\t\t\t\n\t//2.\t\n\t\t\t// Prepare request for SAP ERPclass Item\n\t\n\t\t\t// Set up params\n\t\t\t\n\t\t\t$c_date=$i_data[0];\n\t\t\t$val=$i_data[1];\n\t\t\t$contract_id=$i_data[2];\n\t\t\t$curr=$i_data[3];\t// Currency in invoice\n\t\t\t$decade=$i_data[4];\n\t\t\t$month=$i_data[5];\n\t\t\t$year=$i_data[6];\n\t\t\t//SERVICE DATE\n\t\t\t$service_date='';\n\t\t\tswitch($month)\n\t\t\t{\n\t\t\t\tcase 1:\n\t\t\t\t\t$service_date='-01-';\n\t\t\t\t\t$day='31';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\t$service_date='-02-';\n\t\t\t\t\tif((int)$year%4)\n\t\t\t\t\t\t$day='28';\n\t\t\t\t\telse\n\t\t\t\t\t\t$day='29';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\t$service_date='-03-';\n\t\t\t\t\t$day='31';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\t$service_date='-04-';\n\t\t\t\t\t$day='30';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\t$service_date='-05-';\n\t\t\t\t\t$day='31';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\t$service_date='-06-';\n\t\t\t\t\t$day='30';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 7:\n\t\t\t\t\t$service_date='-07-';\n\t\t\t\t\t$day='31';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 8:\n\t\t\t\t\t$service_date='-08-';\n\t\t\t\t\t$day='31';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 9:\n\t\t\t\t\t$service_date='-09-';\n\t\t\t\t\t$day='30';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 10:\n\t\t\t\t\t$service_date='-10-';\n\t\t\t\t\t$day='31';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 11:\n\t\t\t\t\t$service_date='-11-';\n\t\t\t\t\t$day='30';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 12:\n\t\t\t\t\t$service_date='-12-';\n\t\t\t\t\t$day='31';\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\techo 'WARNING _ WRONG MONTH IN THE INPUT DATA! <br/>';\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tswitch($decade)\n\t\t\t{\n\t\t\t\tcase 0:\n\t\t\t\t\t$day='01';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\t$day='10';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\t$day='20';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\t$day='28';\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\techo 'WARNING _ WRONG DECADE IN THE INPUT DATA! <br/>';\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$service_date='20'.$year.$service_date.$day;\n\t\t\t// Preparing Items for Invoice\n\t\t\t$count_in=1;// only one position by Invoice now\n\t\t\t$items=new ItemList();\n\t\t\tfor($it=0;$it<$count_in;$it++)\n\t\t\t{\t\n\t\t\t\t$item1 = new Item();\n\t\t\t\t// 1. Item number\n\t\t\t\t$item_num=($it+1).'0';\n\t\t\t\t$item1->ITM_NUMBER=$item_num;\n\t\t\t\n\t\t\t\t// 2. Material code\n\t\t\t\t$item1->MATERIAL='901200000';//now it's fixed\n\t\t\t\n\t\t\t/*2.1 BLOCK LEFT FOR LOCATING SAP MATERIAL ID\n\t\t\t\n\t\t\t\t$servicesql='SELECT id_SAP,id FROM services WHERE id_NAV=\"'.$service_id.'\"';\t\n\t\t\t\t$answsql=mysqli_query($db_server,$servicesql);\t\n\t\t\t\tif(!$answsql) die(\"Database SELECT in services table failed: \".mysqli_error($db_server));\t\n\n\t\t\t\t$sap_service_id= mysqli_fetch_row($answsql);\n\t\t\t*/\n\t\t\t\t// 3. Currency\n\t\t\t\t$item1->CURRENCY=$curr;\n\t\t\t\t\n\t\t\t\t// 4. SD conditions\n\t\t\t\t$item1->COND_TYPE=$cond_type;\n\t\t\t\t$item1->COND_VALUE=$val;\n\t\t\t\t\n\t\t\t\t// 4. Quantity\n\t\t\t\t$item1->TARGET_QTY='1'; //FIXED!\n\t\t\t\t\n\t\t\t\n\t\t\t//Inserting into Item List\n\t\t\t\n\t\t\t\t$items->item[$it] = $item1;\n\t\t\t}\n\t\t\t\n\t\t// GENERAL SECTION (HEADER)\n\t\t\n\t\t\t$req->ID_SALESCONTRACT = $contract_id;\t\n\t\t\t$req->SERVICEMODE = $service_mode;\n\t\t\t$req->SERVICEDATE = $service_date;\t\t\t\n\t\t\t$req->BILLDATE=$c_date;\n\t\t\t$req->SALES_ITEMS_IN=$items;\n\t\t\t$req->RETURN2 = '';\n\t\t\t\n\t\t\t$order=SAP_connector($req);\n\t\t\tif ($order)\n\t\t\t\t$doc_id=$order->RETURN2->item->MESSAGE_V4;\n\tmysqli_close($db_server);\n\treturn $doc_id;\n}", "public function testUpdateSuperfund()\n {\n }", "public function testUpdateProductUsingPOST()\n {\n }", "public function getServiceCode();", "function MisUsuarios($usuario)\r\n{\r\nif ($usuario!= \"\")\r\n{\r\n $sql=\"select username, email from usuarios where username='$usuario' . AND estado=1\";\r\n} else {\r\n $sql=\"select username, email from usuarios where estado=1 \";\r\n}\r\ntry {\r\n$cadena=\"<usuarios>\";\r\nif($resultado1=conectar::con()->query($sql)){ \r\n $row_cnt = $resultado1->rowCount();\r\n if ($row_cnt > 0 ){\r\n foreach(conectar::con()->query($sql) as $row ) {\r\n $cadena.=\"<usuario>\".$row[0].\"</usuario>\";\r\n $cadena.=\"<br>\";\r\n $cadena.=\"<email>\".$row[1].\"</email\";\r\n $cadena.=\"</usuarios>\";\r\n }\r\n $misusuarios=new soapval('return', 'xsd:string', $cadena);\r\n return $cadena;\r\n } else {\r\n $cadena=\"<error>No se encontro Usuario</error>\"; \r\n } \r\n\r\n if (!isset($HTTP_RAW_POST_DATA)){\r\n $HTTP_RAW_POST_DATA=file_get_contents('php://input');\r\n $server->service($HTTP_RAW_POST_DATA);\r\n $ar =fopen(\"log.txt\", \"a\") or die(\"Error en Log.txt\");\r\n fwrite($ar, date());\r\n fwrite($ar, \"\\n\");\r\n fwrite($ar, \"USUARIO :\" . $cadena);\r\n fwrite($ar, \"\\n\");\r\n }\r\n} \r\n} \r\n\r\ncatch (Exception $e) {\r\n echo $e->getMessage();\r\n $ar =fopen(\"log.txt\", \"a\") or die(\"Error en Log.txt\");\r\n fwrite($ar, date());\r\n fwrite($ar, \"\\n\");\r\n fwrite($ar, \"ERROR - Hubo un error al intentar procesar\" . $cadena);\r\n fwrite($ar, \"\\n\"); \r\n} \r\n}", "public function transactServicePro__()\n {\n //var_dump($this->paramGET); die();\n $param = [\n \"button\" => [\n \"modal\" => [\n [\"reporting/detailTransactServModal\", \"reporting/detailTransactServModal\", \"fa fa-search\"],\n ],\n \"default\" => [\n ]\n ],\n \"tooltip\" => [\n \"modal\" => [\"Détail\"]\n ],\n \"classCss\" => [\n \"modal\" => [],\n \"default\" => [\"confirm\"]\n ],\n \"attribut\" => [],\n \"args\" => $this->paramGET,\n \"dataVal\" => [\n ],\n \"fonction\" => [\"date_transaction\"=>\"getDateFR\",\"montant\"=>\"getFormatMoney\",\"commission\"=>\"getFormatMoney\"]\n ];\n $this->processing($this->reportingModels, 'getAllTransactionService', $param);\n }", "public function __construct($_personName = NULL,$_contactInfo = NULL,$_tINInfo = NULL,$_birthDt = NULL,$_birthState = NULL,$_birthCountry = NULL,$_deathDt = NULL,$_driversLicense = NULL,$_mothersMaidenName = NULL,$_spouseInfo = NULL,$_employmentHistory = NULL,$_schoolInfo = NULL,$_physicalCharacteristics = NULL,$_citizenship = NULL,$_languageSpoken = NULL,$_message = NULL,$_quality = NULL,$_birthCity = NULL,$_nationality = NULL,$_affiliation = NULL,$_validationInfo = NULL,$_recordID = NULL,$_militaryIdInfo = NULL,$_passportInfo = NULL,$_childrenInfo = NULL,$_hometownArea = NULL,$_relationshipStatus = NULL,$_orientation = NULL,$_aKAInfo = NULL,$_zodiac = NULL,$_birthYear = NULL)\n {\n MicrobiltWsdlClass::__construct(array('PersonName'=>$_personName,'ContactInfo'=>$_contactInfo,'TINInfo'=>$_tINInfo,'BirthDt'=>$_birthDt,'BirthState'=>$_birthState,'BirthCountry'=>$_birthCountry,'DeathDt'=>$_deathDt,'DriversLicense'=>$_driversLicense,'MothersMaidenName'=>$_mothersMaidenName,'SpouseInfo'=>$_spouseInfo,'EmploymentHistory'=>$_employmentHistory,'SchoolInfo'=>$_schoolInfo,'PhysicalCharacteristics'=>$_physicalCharacteristics,'Citizenship'=>$_citizenship,'LanguageSpoken'=>$_languageSpoken,'Message'=>$_message,'Quality'=>$_quality,'BirthCity'=>$_birthCity,'Nationality'=>$_nationality,'Affiliation'=>$_affiliation,'ValidationInfo'=>$_validationInfo,'RecordID'=>$_recordID,'MilitaryIdInfo'=>$_militaryIdInfo,'PassportInfo'=>$_passportInfo,'ChildrenInfo'=>$_childrenInfo,'HometownArea'=>$_hometownArea,'RelationshipStatus'=>$_relationshipStatus,'Orientation'=>$_orientation,'AKAInfo'=>$_aKAInfo,'Zodiac'=>$_zodiac,'BirthYear'=>$_birthYear),false);\n }", "private function setRequestXml(){\n\n $orderHandleRepos = new InternationOrderHandleRepository();\n $this->orderInfo = $orderHandleRepos->getOneWithNotes($this->handleId);\n\n //设置请求用户信息\n $this->userInfoSet($this->requestXml);\n $this->currencySet($this->requestXml);\n\n /**\n * 获取AddBookingRequest xml部分\n * 用户设置 订单新增主体信息\n */\n\n $addBookingRequestXml = $this->requestXml->RequestDetails->AddBookingRequest;\n //设置请求货币类别\n /** @var \\SimpleXMLElement $addBookingRequestXml */\n $addBookingRequestXml->attributes()->Currency = ConfigGta::CURRENCY;\n //订单号设置\n $addBookingRequestXml->addChild(\"BookingReference\",(string)$this->orderInfo[\"order_sn\"]);\n //客户出发时间设置,默认与入住时间相同\n $addBookingRequestXml->addChild(\"BookingDepartureDate\",(string)$this->orderInfo[\"begin_date\"]);\n\n //获取 客户 和 pid 属性 数组\n $guestPids = $this->getGuestPids();\n\n\n\n //客户姓名设置\n $this->setPaxNamesXml($addBookingRequestXml,$guestPids);\n\n //价格处理\n //计算预定房间数\n $roomNum = $this->orderInfo->internationOrderNotes[0]->room_number;\n $roomTotalPrice = number_format($this->orderInfo[\"floor_price_origin\"]/$roomNum,2,\".\",\"\");\n\n\n //booking item 设置\n $bookItemsXml = $addBookingRequestXml->addChild(\"BookingItems\");\n foreach ($guestPids as $index=>$guestPid)\n {\n $this->setBookItemXml($bookItemsXml,$guestPid,$index,$roomTotalPrice);\n\n }\n\n }", "private function http() :void\n {\n $query = [];\n $queryString = $this->getContent('QUERY_STRING');\n if(!empty($queryString)) {\n parse_str($queryString, $query);\n }\n $this->http = [\n 'path' => $this->getContent('DOCUMENT_ROOT'),\n 'script-name' => $this->getContent('SCRIPT_NAME'),\n 'ip-client' => $this->getContent('REMOTE_ADDR'),\n 'software' => $this->getContent('SERVER_SOFTWARE'),\n 'server-name' => $this->getContent('SERVER_NAME'),\n 'method' => $this->getContent('REQUEST_METHOD'),\n 'host' => $this->getContent('HTTP_HOST'),\n 'port' => $this->getContent('SERVER_PORT'),\n 'uri' => $this->getContent('REQUEST_URI'),\n 'user-agent' => $this->getContent('HTTP_USER_AGENT'),\n 'query' => $query,\n 'content-type' => $this->getContent('HTTP_CONTENT_TYPE'),\n ];\n $this->http['headers'] = $this->getContentList('HTTP_');\n }", "public function processApi() {\r\n\tif($this->securedRest){\r\n\t if(!isset($this->requestSecure) || !isset($this->requestPublicKey)){\r\n\t\t$this->response('Utilisateur non authentifié', 401);\r\n\t }\r\n\t if(!$this->verifyKeys($this->requestPublicKey, $this->requestSecure)){\r\n\t\t$this->response('Utilisateur non authentifié', 401);\r\n\t }\r\n\t}\r\n\t\r\n\t$func = $this->_method;\r\n\tif ((int) method_exists($this, $func) > 0){\r\n\t $this->$func();\r\n\t}else{\r\n\t $this->response('', 404);\r\n\t}\r\n\t\r\n }", "function wsdl_docs_prepare_request_callback($form, $form_state) {\n $service = $form_state['build_info']['args'][0];\n $operation = $form_state['build_info']['args'][1];\n\n // Convert the form values into a data structure suitable for making the query.\n // Magic?\n // service::invoke will cast this array into the correct paramaterized objects\n // According to the $operation['parameter'] schema. Nifty.\n $args = array();\n if (!empty($form_state['values']['parameters'])) {\n $args = $form_state['values']['parameters'];\n }\n\n if ($service->type == 'soap') {\n // The service will have an endpoint that will have a SOAPClient.\n // Settings on the service->options may be passed to the SOAPClient.\n // @see WSClientSOAPEndpoint::client()\n // @see http://www.php.net/manual/en/soapclient.soapclient.php\n $service->settings['options']['trace'] = TRUE;\n // disable cache when testing!\n $service->settings['options']['cache_wsdl'] = WSDL_CACHE_NONE;\n }\n\n // Ready to actually invoke the call\n $timer_before = microtime();\n try {\n if ($operation['name']) {\n $response = $service->invoke($operation['name'], $args);\n }\n elseif ($operation['label']) {\n $response = $service->invoke($operation['label'], $args);\n }\n }\n catch (Exception $e) {\n drupal_set_message(t('Exception: %e'), array('%e' => $e->getMessage()));\n }\n $timer_duration = $timer_before - microtime();\n $element = $form['transaction'];\n\n // Place the trace data into the display.\n if ($service->type == 'rest') {\n $operation = $service->operations[$operation['name']];\n $parameters = '';\n foreach ($args as $para_name => $para_value) {\n $parameters .= $para_name . '=' . $para_value . '<br>';\n }\n $reqInfo = 'Uri:' . $service->url . $operation['url'] . '<br>' .\n 'Method:' . (isset($operation['type']) ? $operation['type'] : 'GET') . '<br>' .\n 'Parameter:' . $parameters;\n $element['request']['packet']['#markup'] = $reqInfo;\n $element['response']['header']['#markup'] = $service->endpoint()->client()->lastResponse->headers;\n $element['response']['packet']['#markup'] = $service->endpoint()->client()->lastResponse->body;\n }\n elseif ($service->type == 'soap') {\n $element['request']['header']['#markup'] = $service->endpoint()->client()->__getLastRequestHeaders();\n $element['request']['packet']['#markup'] = htmlspecialchars(wsdl_docs_prettify_xml($service->endpoint()->client()->__getLastRequest()));\n $_SESSION['lastRequest'] = $service->endpoint()->client()->__getLastRequest();\n\n $element['response']['header']['#markup'] = $service->endpoint()->client()->__getLastResponseHeaders();\n $element['response']['packet']['#markup'] = htmlspecialchars(wsdl_docs_prettify_xml($service->endpoint()->client()->__getLastResponse()));\n $_SESSION['lastResponse'] = $service->endpoint()->client()->__getLastResponse();\n }\n\n $element['#value'] = t('Ran at %time, took %duration to execute', array(\n '%time' => time(),\n '%duration' => $timer_duration,\n ));\n\n return $element;\n}", "public function request();", "public function modify(){\n //la route FormulaireModify\n }", "function service_information() {\r\n\t\t$return_value = '<service name=\"' . $this->basename . '\">'\r\n\t\t. '<port name=\"' . $this->basename . 'Port\" binding=\"tns:' . $this->basename . 'Binding\">'\r\n\t\t. '<soap:address location=\"' . $this->api_url . '\"/>'\r\n\t\t. '</port>'\r\n\t\t. '</service>';\r\n\r\n\t\treturn $return_value;\r\n\t}", "protected function serviceAccessGates()\n {\n //\n }", "abstract public function HighAjax();", "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 }", "static function generarServicioF(){\n\n\t\trequire_once('SERVIDOR/lib/nusoap.php');\n \n $host = 'http://maxineiner.tuars.com/webservice/ws_segundo_parcial.php?wsdl';\n\n $client = new nusoap_client($host);\n $err = $client->getError();\n if ($err) {\n die();\n return '<h2>ERROR EN LA CONSTRUCCION DEL WS:</h2><pre>' . $err . '</pre>';\n }\n return $client;\n\n\t}", "abstract protected function _setRequestServiceBuilder();", "function SAP_set_order_multy($rec_id)\n{\n/*\n\tThis FUNCTION posts SD order \n\tINPUT: id of invoice\n\tOUTPUT:\n\t\t\t- \"ID\" of SD order\n\t\t\tOR \"0\" - if failed\n*/\n\tinclude(\"login_re.php\");\n\tini_set(\"soap.wsdl_cache_enabled\", \"0\");\n\n\t//THESE PARAMS ARE FIXED NOW\n\t$cond_type='ZPR0';\t\n\t\n\t$service_mode='SO_C';\t// CREATE\t\n\t$req = new Request();\n\t \n\t\t\t//Setting up the object\n\t\t\t$item= new Item();\n\t\t\n\t\t//Set up mySQL connection\n\t\t\t$db_server = mysqli_connect($db_hostname, $db_username,$db_password);\n\t\t\t$db_server->set_charset(\"utf8\");\n\t\t\tIf (!$db_server) die(\"Can not connect to a database!!\".mysqli_connect_error($db_server));\n\t\t\tmysqli_select_db($db_server,$db_database)or die(mysqli_error($db_server));\n\t//1.\t\n\t\t// LOCATE data for the invoice\n\t\t\t$invoice_sql=\"SELECT invoice.date,invoice.value,contract.id_SAP,currency.code,invoice.month,invoice.year \n\t\t\t\t\t\t\tFROM invoice \n\t\t\t\t\t\t\tLEFT JOIN contract ON invoice.contract_id=contract.id \n LEFT JOIN currency ON invoice.currency=currency.id\n\t\t\t\t\t\t\tWHERE invoice.id=$rec_id\";\n\t\t\t\t\n\t\t\t$answsql=mysqli_query($db_server,$invoice_sql);\n\t\t\t\t\n\t\t\tif(!$answsql) die(\"Database SELECT TO invoice table failed: \".mysqli_error($db_server));\t\n\t\t\tif (!$answsql->num_rows)\n\t\t\t{\n\t\t\t\techo \"WARNING: No invoice found for a given ID in invoice TABLE <br/>\";\n\t\t\t\treturn 0;\n\t\t\t}\t\n\t\t\t$i_data= mysqli_fetch_row($answsql);\n\t\t\t\t\n\t\t\t\n\t//2.\t\n\t\t\t// Prepare request for SAP ERPclass Item\n\t\n\t\t\t// Set up params\n\t\t\t\n\t\t\t$c_date=$i_data[0];\n\t\t\t$val=$i_data[1];\n\t\t\t$contract_id=$i_data[2];\n\t\t\t$curr=$i_data[3];\t// Currency in invoice\n\t\t\t$c_month=$i_data[4];\n\t\t\t$c_year=$i_data[5];\n\t\t\t$srv_date='';\n\t\t\t$m_date='';\n\t\t\t//SET UP SERVICE DATE - END OF THE BILLING PERIOD\n\t\t\tswitch($c_month)\n\t\t\t{\n\t\t\t\tcase '1':\n\t\t\t\t$m_date='-01-31';\n\t\t\t\tbreak;\n\t\t\t\tcase '2':\n\t\t\t\t$m_date='-02-28';\n\t\t\t\tbreak;\n\t\t\t\tcase '3':\n\t\t\t\t$m_date='-03-31';\n\t\t\t\tbreak;\n\t\t\t\tcase '4':\n\t\t\t\t$m_date='-04-30';\n\t\t\t\tbreak;\n\t\t\t\tcase '5':\n\t\t\t\t$m_date='-05-31';\n\t\t\t\tbreak;\n\t\t\t\tcase '6':\n\t\t\t\t$m_date='-06-30';\n\t\t\t\tbreak;\n\t\t\t\tcase '7':\n\t\t\t\t$m_date='-07-31';\n\t\t\t\tbreak;\n\t\t\t\tcase '8':\n\t\t\t\t$m_date='-08-31';\n\t\t\t\tbreak;\n\t\t\t\tcase '9':\n\t\t\t\t$m_date='-09-30';\n\t\t\t\tbreak;\n\t\t\t\tcase '10':\n\t\t\t\t$m_date='-10-31';\n\t\t\t\tbreak;\n\t\t\t\tcase '11':\n\t\t\t\t$m_date='-11-30';\n\t\t\t\tbreak;\n\t\t\t\tcase '12':\n\t\t\t\t$m_date='-12-31';\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t$srv_date='20'.$c_year.$m_date;\n\t\t\t\n\t\t\t// Preparing Items for Invoice\n\t\t\t\n\t\t\t// LOCATE POSITIONS for the invoice\n\t\t\t$positions_sql=\"SELECT service_id,quantity,service.id_SAP \n\t\t\t\t\t\t\tFROM invoice_reg \n\t\t\t\t\t\t\tLEFT JOIN service ON invoice_reg.service_id=service.id\n\t\t\t\t\t\t\tWHERE invoice_id=$rec_id\";\n\t\t\t\t\n\t\t\t$answsql1=mysqli_query($db_server,$positions_sql);\n\t\t\t\t\n\t\t\tif(!$answsql1) die(\"Database SELECT TO invoice_reg table failed: \".mysqli_error($db_server));\t\n\t\t\t$count_in=$answsql1->num_rows;\n\t\t\tif (!$count_in)\n\t\t\t{\n\t\t\t\techo \"WARNING: No POSITIONS found for a given ID in invoice_reg TABLE <br/>\";\n\t\t\t\treturn 0;\n\t\t\t}\t\n\t\t\t\t\n\t\t\t\t$items=new ItemList();\n\t\t\t\tfor($it=0;$it<$count_in;$it++)\n\t\t\t\t{\t\n\t\t\t\t\t$pos_data= mysqli_fetch_row($answsql1);\n\t\t\t\t\t$item1 = new Item();\n\t\t\t\t\t// 1. Item number\n\t\t\t\t\t$item_num=($it+1).'0';\n\t\t\t\t\t$item1->ITM_NUMBER=$item_num;\n\t\t\t\n\t\t\t\t\t// 2. Material code\n\t\t\t\t\t$item1->MATERIAL=$pos_data[2];\n\t\t\t\n\t\t\t\t\n\t\t\t\t// 3. Currency ?? - need it?\n\t\t\t\t\t$item1->CURRENCY=$curr;\n\t\t\t\t\n\t\t\t\t\t// 4. SD conditions\n\t\t\t\t\t$item1->COND_TYPE=$cond_type;\n\t\t\t\t\t$item1->COND_VALUE=$val;\n\t\t\t\t\n\t\t\t\t\t// 4. Quantity\n\t\t\t\t\t$item1->TARGET_QTY=$pos_data[1];; \n\t\t\t\t\n\t\t\t\n\t\t\t\t\t//Inserting into Item List\n\t\t\t\n\t\t\t\t\t$items->item[$it] = $item1;\n\t\t\t\t}\n\t\t\t\n\t\t// GENERAL SECTION (HEADER)\n\t\t\n\t\t\t$req->ID_SALESCONTRACT = $contract_id;\t\n\t\t\t$req->SERVICEMODE = $service_mode; \t\t\n\t\t\t$req->BILLDATE=$c_date;\n\t\t\t$req->SALES_ITEMS_IN=$items;\n\t\t\t$req->SERVICEDATE=$srv_date;\n\t\t\t$req->RETURN2 = '';\n\t\t\t//echo \"SENDING TO SAP\";\n\t\t\t$order=SAP_connector($req);\n\t\t\tif ($order->RETURN2->item->MESSAGE==\"SUCCESS\")\n\t\t\t\t$doc_id=$order->RETURN2->item->MESSAGE_V4;\n\t\t\telse\n\t\t\t\t$doc_id=0;\n\t\t\t\n\tmysqli_close($db_server);\n\treturn $doc_id;\n}", "public function __construct($_chargeId = NULL,$_chargeDesc = NULL,$_chargeType = NULL,$_chargeClass = NULL,$_chargeDt = NULL,$_arrestDt = NULL,$_offenseDt = NULL,$_plea = NULL,$_sentence = NULL,$_sentenceDt = NULL,$_dispositionDt = NULL,$_dispositionType = NULL,$_probationStatus = NULL,$_defendantName = NULL,$_plaintiff = NULL,$_originationState = NULL,$_originationCounty = NULL,$_offenderStatus = NULL,$_offenderCategory = NULL,$_judgment = NULL,$_riskLevel = NULL,$_message = NULL,$_adjudicationWithheld = NULL,$_caseId = NULL,$_count = NULL,$_county = NULL,$_offenseDesc = NULL,$_maxTerm = NULL,$_minTerm = NULL,$_numOfCounts = NULL,$_appealDt = NULL,$_statute = NULL,$_arrestType = NULL,$_finalDesposition = NULL,$_chargeDesc2 = NULL,$_originationName = NULL,$_caseType = NULL)\n {\n MicrobiltWsdlClass::__construct(array('ChargeId'=>$_chargeId,'ChargeDesc'=>$_chargeDesc,'ChargeType'=>$_chargeType,'ChargeClass'=>$_chargeClass,'ChargeDt'=>$_chargeDt,'ArrestDt'=>$_arrestDt,'OffenseDt'=>$_offenseDt,'Plea'=>$_plea,'Sentence'=>$_sentence,'SentenceDt'=>$_sentenceDt,'DispositionDt'=>$_dispositionDt,'DispositionType'=>$_dispositionType,'ProbationStatus'=>$_probationStatus,'DefendantName'=>$_defendantName,'Plaintiff'=>$_plaintiff,'OriginationState'=>$_originationState,'OriginationCounty'=>$_originationCounty,'OffenderStatus'=>$_offenderStatus,'OffenderCategory'=>$_offenderCategory,'Judgment'=>$_judgment,'RiskLevel'=>$_riskLevel,'Message'=>$_message,'AdjudicationWithheld'=>$_adjudicationWithheld,'CaseId'=>$_caseId,'Count'=>$_count,'County'=>$_county,'OffenseDesc'=>$_offenseDesc,'MaxTerm'=>$_maxTerm,'MinTerm'=>$_minTerm,'NumOfCounts'=>$_numOfCounts,'AppealDt'=>$_appealDt,'Statute'=>$_statute,'ArrestType'=>$_arrestType,'FinalDesposition'=>$_finalDesposition,'ChargeDesc2'=>$_chargeDesc2,'OriginationName'=>$_originationName,'CaseType'=>$_caseType),false);\n }", "public function run()\n\t\t{\n\t\t\tswitch ($_GET['act']) {\n\t\t\t\tcase 'create':\n\t\t\t\t\t//Crear\n\t\t\t\t\tif(BaseCtrl::isAdmin())\n\t\t\t\t\t\t$this->create();\n\t\t\t\t\telse{\n\t\t\t\t\t\tif ($this->api) {\n\t\t\t\t\t\t\techo $this->json_encode(array('error'=>NO_PERMITIDO,'data'=>NULL,'mensaje'=>'No tienes permisos suficientes'));\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t//CARGAR VISTA DE NO PERMITIDO\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\n\t\t\t\tcase 'lists':\n\t\t\t\t\t//Listar \n\t\t\t\t\t$this->lists();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'listsDetails':\n\t\t\t\t\t//Crear \n\t\t\t\t\t$this->listsDetails();\n\t\t\t\t\tbreak;\t\n\t\t\t\tcase 'get':\n\t\t\t\t\t//Obtener una Recepcion\n\t\t\t\t\t$this->getRecepcion();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'getFolio':\n\t\t\t\t\t$this->getFolio();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif ($this->api) {\n\t\t\t\t\t\techo $this->json_encode(array('error'=>SERVICIO_INEXISTENTE,'data'=>NULL,'mensaje'=>'Este recepcion no está disponible'));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//CARGAR VISTA DE SERVICIO INEXISTENTE\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "public function getWSResponse()\r\n\t\t{\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\t// Check if _HTTPRequest variable is correctly instancied.\r\n\t\t\t\tif (!isset($this->_HTTPRequest[\"auth\"], $this->_HTTPRequest[\"name\"]))\r\n\t\t\t\t{\r\n\t\t\t\t\tthrow new Exception(\"Requête incorrecte, variables non définies\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Check if the queries dictionnary has been correctly loaded.\r\n\t\t\t\tif ($this->_WSData == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tthrow new Exception(\"Impossible d'accéder aux données. Merci de réessayer.\");\t\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Check if the authentification key is correct.\r\n\t\t\t\tif ($this->_auth != $this->_HTTPRequest[\"auth\"])\r\n\t\t\t\t{\r\n\t\t\t\t\tthrow new Exception(\"Echec de l'authentification.\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Check if the query requested (by name) is in the dictionnary.\r\n\t\t\t\t$QueryName = null;\r\n\t\t\t\tforeach($this->_WSData as $WSname => $WSdata)\r\n\t\t\t\t{\r\n\t\t\t\t\tif ($WSname == $this->_HTTPRequest[\"name\"])\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$QueryName = $WSname;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// Throw new exception if the query requested isn't in the dictionnary\r\n\t\t\t\tif (is_null($QueryName))\r\n\t\t\t\t{\r\n\t\t\t\t\tthrow new Exception(\"Impossible de trouver la requête demandée.\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Check if the param's list sent is the same as param's list relative to the query in the dictionnary.\r\n\t\t\t\t$allParamExist = false;\r\n\t\t\t\tif (count($this->_WSData[$QueryName][\"param\"]) < 1)\r\n\t\t\t\t{\r\n\t\t\t\t\t$allParamExist = true;\r\n\t\t\t\t} \r\n\t\t\t\telse \r\n\t\t\t\t{\r\n\t\t\t\t\tforeach($this->_HTTPRequest[\"param\"] as $HRp => $HRv)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$paramExist = false;\r\n\t\t\t\t\t\tforeach($this->_WSData[$QueryName][\"param\"] as $WSp)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif ($HRp == $WSp)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$paramExist = true;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!$paramExist)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$allParamExist = false;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$allParamExist = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\t\r\n\r\n\t\t\t\t// Throw new exception if the param's list sent doesn't match.\r\n\t\t\t\tif (is_null($allParamExist))\r\n\t\t\t\t{\r\n\t\t\t\t\tthrow new Exception(\"Erreur : les paramètres passés sont incorrects.\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Prepare the query and execute it. Here we are using our own db class (simplification of PDO object, you can adapt this part with your own database class).\r\n\t\t\t\t$bdd = new Bdd();\r\n\t\t\t\t$bdd = $bdd->bddConnection();\r\n\t\t\t\t\r\n\t\t\t\t$query = $bdd->prepare($this->_WSData[$QueryName][\"sql\"]);\r\n\t\t\t\tforeach($this->_WSData[$QueryName][\"param\"] as $p)\r\n\t\t\t\t{\r\n\t\t\t\t\t$query->bindValue($p, $this->_HTTPRequest[\"param\"][$p]);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$query->execute();\r\n\t\t\t\r\n\t\t\t\t// Get the result of the query and prepare the response.\r\n\t\t\t\tif ($this->_WSData[$QueryName][\"type\"] == \"select\")\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->_response[\"data\"] = $query->fetchAll();\r\n\t\t\t\t}\r\n\t\t\t\telse if ($this->_WSData[$QueryName][\"type\"] == \"insert\")\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->_response[\"lastId\"] = $bdd->lastInsertId();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$this->_response[\"error\"] = false;\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// In case of any other exception (mostly for PDO/SQL error).\r\n\t\t\tcatch (Exception $e) \r\n\t\t\t{\r\n\t\t\t\t$this->_response[\"msg\"] = $e->getMessage();\r\n\t\t\t}\r\n\t\t}", "function saveService ($pid, $name, $site_url, $ping_url, $method, $enabled)\n{\n global $_CONF, $_TABLES, $LANG_TRB;\n\n $enabled = ($enabled == 'on' ? 1 : 0);\n if ($method == 'extended') {\n $method = 'weblogUpdates.extendedPing';\n } else {\n $method = 'weblogUpdates.ping';\n }\n\n $name = strip_tags (COM_stripslashes ($name));\n $site_url = strip_tags (COM_stripslashes ($site_url));\n $ping_url = strip_tags (COM_stripslashes ($ping_url));\n\n $errormsg = '';\n if (empty ($name)) {\n $errormsg = $LANG_TRB['error_site_name'];\n } else {\n // all URLs must start with http: or https:\n $parts = explode (':', $site_url);\n if (($parts[0] != 'http') && ($parts[0] != 'https')) {\n $errormsg = $LANG_TRB['error_site_url'];\n } else {\n $parts = explode (':', $ping_url);\n if (($parts[0] != 'http') && ($parts[0] != 'https')) {\n $errormsg = $LANG_TRB['error_ping_url'];\n }\n }\n }\n\n if (!empty ($errormsg)) {\n return editServiceForm ($pid, $errormsg, $name, $site_url, $ping_url,\n $method, $enabled);\n }\n\n $name = addslashes ($name);\n $site_url = addslashes ($site_url);\n $ping_url = addslashes ($ping_url);\n\n if ($pid > 0) {\n DB_save ($_TABLES['pingservice'],\n 'pid,name,site_url,ping_url,method,is_enabled',\n \"'$pid','$name','$site_url','$ping_url','$method','$enabled'\");\n } else {\n DB_save ($_TABLES['pingservice'],\n 'name,site_url,ping_url,method,is_enabled',\n \"'$name','$site_url','$ping_url','$method','$enabled'\");\n }\n\n return COM_refresh ($_CONF['site_admin_url']\n . '/trackback.php?mode=listservice&amp;msg=65');\n}", "abstract public function processRequest();", "public function updateBooking($param) { \n if (!$this->aaa->has_right('openruth', 500))\n $res->bookingError->_value = 'authentication_error';\n else {\n $agencyId = self::strip_agency($param->agencyId->_value);\n $targets = $this->config->get_value('ruth', 'ztargets');\n if ($tgt = $targets[$agencyId]) {\n $book = &$booking->BookingUpdate->_value;\n $book->LibraryNo->_value = $agencyId;\n $book->DisposalID->_value = $param->bookingId->_value;\n $book->BookingNote->_value = $param->bookingNote->_value;\n $book->StartDate->_value = self::to_zruth_date($param->bookingStartDate->_value);\n $book->EndDate->_value = self::to_zruth_date($param->bookingEndDate->_value);\n $book->NumberOrdered->_value = $param->bookingTotalCount->_value;\n $book->ServiceCounter->_value = $param->agencyCounter->_value;\n $xml = '<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?'.'>' . utf8_decode($this->objconvert->obj2xml($booking));\n $z = new z3950();\n $z->set_target($tgt['host']);\n $z->set_database($tgt['database'].'-ophelia');\n $z->set_authentication($tgt['authentication']);\n if ($tgt['proxy']) {\n $z->set_proxy($tgt['proxy']);\n }\n $xml_ret = $z->z3950_xml_update($xml, $tgt['timeout']);\n//echo 'error: ' . $z->get_errno();\n//print_r($xml);\n//print_r($xml_ret);\n if ($z->get_errno() == 0 && $xml_ret['xmlUpdateDoc']) {\n $dom = new DomDocument();\n $dom->preserveWhiteSpace = false;\n if ($dom->loadXML($xml_ret['xmlUpdateDoc'])) {\n if ($err = $dom->getElementsByTagName('ErrorResponse')->item(0)) {\n verbose::log(ERROR, __FUNCTION__ . ' (' . __LINE__ . ') errno: ' . $err->getAttribute('Err'));\n if (!($res->updateOrderError->_value = $this->errs[$err->getAttribute('Err')])) \n $res->updateOrderError->_value = 'unspecified error (' . $err->getAttribute('Err') . '), order not possible';\n } elseif ($err = $dom->getElementsByTagName('Error')->item(0)->nodeValue) {\n verbose::log(ERROR, __FUNCTION__ . ' (' . __LINE__ . ') errno: ' . $err);\n if (!($res->bookingError->_value = $this->errs[$err])) \n $res->bookingError->_value = 'unspecified error (' . $err . '), order not possible';\n } else {\n $res->bookingOk->_value->bookingId->_value = $param->bookingId->_value;\n if ($sd = self::from_zruth_date($dom->getElementsByTagName('StartDate')->item(0)->nodeValue))\n $res->bookingOk->_value->bookingStartDate->_value = $sd;\n elseif ($sd = $param->bookingStartDate->_value)\n $res->bookingOk->_value->bookingStartDate->_value = $sd;\n if ($ed = self::from_zruth_date($dom->getElementsByTagName('EndDate')->item(0)->nodeValue))\n $res->bookingOk->_value->bookingEndDate->_value = $ed;\n elseif ($ed = $param->bookingEndDate->_value)\n $res->bookingOk->_value->bookingEndDate->_value = $ed;\n }\n } else {\n verbose::log(ERROR, __FUNCTION__ . ' (' . __LINE__ . ') loadXML error of: ' . $xml_ret['xmlUpdateDoc']);\n $res->bookingError->_value = 'system error';\n }\n } else {\n self::log_z_error(__FUNCTION__, __LINE__, $agencyId, $z->get_errno(), $z->get_error_string());\n $res->bookingError->_value = 'system error';\n }\n } else\n $res->bookingError->_value = 'unknown agencyId';\n }\n\n $ret->updateBookingResponse->_value = $res;\n //var_dump($param); print_r($res); die();\n return $ret;\n }", "function alterarWS(){\n\tglobal $esquemaadmin,$id_ws;\n\t$desc_ws = $_GET[\"desc_ws\"];\n\t$nome_ws = $_GET[\"nome_ws\"];\n\t$link_ws = $_GET[\"link_ws\"];\n\t$autor_ws = $_GET[\"autor_ws\"];\n\t$tipo_ws = $_GET[\"tipo_ws\"];\n\ttry{\n\t\trequire_once(\"conexao.php\");\n\t\tif($convUTF){\n\t\t\t$nome_ws = utf8_encode($nome_ws);\n\t\t\t$desc_ws = utf8_encode($desc_ws);\n\t\t\t$autor_ws = utf8_encode($autor_ws);\n\t\t}\n\t\tif($id_ws != \"\"){\n\t\t\t$dataCol = array(\n\t\t\t\t\"desc_ws\" => $desc_ws,\n\t\t\t\t\"nome_ws\" => $nome_ws,\n\t\t\t\t\"link_ws\" => $link_ws,\n\t\t\t\t\"autor_ws\" => $autor_ws,\n\t\t\t\t\"tipo_ws\" => $tipo_ws\n\t\t\t);\n\t\t\ti3GeoAdminUpdate($dbhw,\"i3geoadmin_ws\",$dataCol,\"WHERE id_ws = $id_ws\");\n\t\t\t$retorna = $id_ws;\n\t\t}\n\t\telse{\n\t\t\t$dataCol = array(\n\t\t\t\t\"desc_ws\" => '',\n\t\t\t\t\"nome_ws\" => '',\n\t\t\t\t\"link_ws\" => '',\n\t\t\t\t\"autor_ws\" => '',\n\t\t\t\t\"tipo_ws\" => '',\n\t\t\t\t\"nacessos\" => 0,\n\t\t\t\t\"nacessosok\" => 0\n\t\t\t);\n\t\t\t$retorna = i3GeoAdminInsertUnico($dbhw,\"i3geoadmin_ws\",$dataCol,\"nome_ws\",\"id_ws\");\n\t\t}\n\t\t$dbhw = null;\n\t\t$dbh = null;\n\t\treturn $retorna;\n\t}\n\tcatch (PDOException $e){\n\t\treturn \"Error!: \";\n\t}\n}", "abstract function do_api_request();", "private function UpdateServices($_database, $_data) {\n return $this->CallDatabase($_database, $_data, function($_pdo, $_parameters) {\n $set = \"id_services = ?, prices = ?, actives = ?\";\n //Create Query\n $_query = $_pdo->prepare(\"UPDATE `PartnerServices`\n\t\t\t\t\t\tSET \" . $set . \"\n\t\t\t\t\t\tWHERE id_partner = ?\n\t\t\t\t\t\");\n //Execute Query\n $_query->execute($_parameters);\n //Tratamento da resposta\n if (is_null($_query->errorInfo())) {\n $this->_response[\"status\"] = false;\n $this->_response[\"error\"] = $_query->errorInfo();\n } else {\n $this->_response[\"status\"] = true;\n }\n return $this->_response;\n }\n );\n }", "public static function ws() : void {\n $mode = 0;\n if(isset($_POST['mode']))\n $mode = intval($_POST['mode']);\n \n switch($mode) {\n case 1: // Liste des EC\n // #RIGHTS# : aucun\n $json = [];\n $json['liste'] = ECModel::getList();\n if($json['liste'] === null) {\n $json['code'] = -1;\n $json['msg'] = \"Erreur lors de la récupération de la liste des EC.\";\n }\n else\n $json['code'] = 1;\n Controller::JSONpush($json);\n break;\n case 2: // Liste des étudiants d'une EC\n // #RIGHTS# : intervenant d'EC\n $data['etudiants'] = [];\n if(isset($_SESSION['current']['EC']) && UserModel::estIntEC($_SESSION['current']['EC'])) {\n if(isset($_POST['groupe'])) {\n if(intval($_POST['groupe']) == -1) {\n if(isset($_SESSION['current']['EC']))\n $data['etudiants'] = InscriptionECModel::getListeEtudiants($_SESSION['current']['EC']);\n }\n else {\n $data['etudiants'] = InscriptionGroupeECModel::getListe(intval($_POST['groupe']));\n }\n }\n }\n Controller::push(\"\", \"./view/ecs/etudiants_liste.php\", $data, \"\");\n break;\n default:\n Controller::goTo();\n }\n }", "private function repect_ech_m(){\t\n\t\t\t\n\t\t\tif($this->get_request_method() != \"GET\"){\n\t\t\t\t$this->response('',406);\n\t\t\t}\n\t\t\t\n\t\t\t$result=repect_ech_m();\n\t\t\t$this->response($this->json($result), 200);\n\t\t\t$this->response('',204);\t\n\t\t}", "public function execute_http()\n {\n }", "function request()\n {\n }", "function getResponse();", "function getResponse();", "public function customized(){ return $this->APICall( 'customized', \"Could not retrieve the website customizations\" ); }", "public function commonAction(){\r\n \t\t\r\n \t\t/**\r\n \t\t * wpcms class object\r\n \t\t */\r\n \t\t$this->wpcms = new WpCms();\r\n \t\t\r\n \t\t/**\r\n \t\t * database model class object\r\n \t\t */\r\n \t\t$this->db_model = new responseModelClass();\r\n \t\t\r\n \t\t/**\r\n \t\t * data class object\r\n \t\t */\r\n \t\t$this->data_class = new DataClass();\r\n \t\t\r\n \t\t\r\n \t}" ]
[ "0.64576244", "0.6195699", "0.6171193", "0.604954", "0.60006696", "0.59804034", "0.5875887", "0.5858811", "0.57946795", "0.5790481", "0.5714419", "0.5713727", "0.5709085", "0.5706063", "0.5699107", "0.56985146", "0.5675508", "0.5670481", "0.56413305", "0.56309927", "0.5629088", "0.5603172", "0.55998033", "0.5598397", "0.5589333", "0.5585612", "0.5579302", "0.55541277", "0.554459", "0.55346096", "0.5507256", "0.5505553", "0.55016965", "0.55016005", "0.5489903", "0.5481145", "0.5477709", "0.54622275", "0.5459431", "0.54545355", "0.54439557", "0.54434365", "0.54349643", "0.5431837", "0.54317796", "0.5419351", "0.54134727", "0.5407009", "0.5406076", "0.53891623", "0.5375659", "0.53688616", "0.5366916", "0.53625923", "0.53602695", "0.53496194", "0.5342001", "0.534172", "0.5335709", "0.533231", "0.53251004", "0.5324619", "0.532155", "0.53202283", "0.5315772", "0.5313878", "0.53126454", "0.5312343", "0.5311771", "0.5301768", "0.52993953", "0.5298828", "0.5292645", "0.5273863", "0.52647984", "0.52640784", "0.5262064", "0.5254412", "0.52535146", "0.525289", "0.5247031", "0.5245687", "0.5229627", "0.52286345", "0.5226497", "0.52222866", "0.5217901", "0.52138746", "0.52108926", "0.52055377", "0.52052957", "0.5203228", "0.5199783", "0.51997787", "0.5193178", "0.5192861", "0.51860756", "0.51822", "0.51822", "0.5176466", "0.5176332" ]
0.0
-1
Suppression Code retour Web Service
public function deleteCodeRetour($param) { $this->table = "sva_code_retour"; $this->__addParam($param); return $this->__delete(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function access_denied() {\n\t\tif ( ! php_version_at_least( '4.1.0' ) ) {\n\t\t\tglobal $_SERVER;\n\t\t}\n\n\t\t// Si viene por webservice no necesita estar logueado.\n\t\tif($_POST['code']=='14149989'){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif ( ! auth_is_user_authenticated() ) {\n\t\t\t$p_return_page = string_url( $_SERVER['REQUEST_URI'] );\n\t\t\tprint_header_redirect( 'index.php?m=webtracking&a=login_page&return=' . $p_return_page );\n\t\t} else {\n\t\t\tglobal $AppUI;\n\t\t\t$AppUI->redirect(\"m=public&a=access_denied\");\n\t\t\t\n\t\t\t/*\n\t\t\tprint '<center>';\n\t\t\tprint '<p>'.error_string(ERROR_ACCESS_DENIED).'</p>';\n\t\t\tprint_bracket_link( 'index.php?m=webtracking&a=main_page', lang_get( 'proceed' ) );\n\t\t\tprint '</center>';*/\n\t\t}\n\t\texit;\n\t}", "public static function rejectGeneralServiceManager();", "protected function stopOptimizeAllAction() {\n\t\t$coreConfig = Mage::getConfig();\n\t\t$coreConfig->saveConfig(\"mageio_autosettig\", Mage::helper('core')->escapeHtml('Off'))->cleanCache();\n\t\t$this->ajaxReponse(false);\t\t\n\t}", "private function _protectionFunctions()\n\t{\n\t\tglobal $MySmartBB;\n\t\t\n\t\t// ... //\n\t\t\n\t\t// Preventing XSS and SQL Injection's keywords from the GET request\n \tforeach ( $MySmartBB->_GET as $get )\n \t{\n \t\t\tif ( (preg_match(\"/\\<[^\\>]*script*\\\"?[^\\>]*\\>/\", $get)) or\n \t\t\t(preg_match(\"/\\<[^\\>]*object*\\\"?[^\\>]*\\>/\", $get)) or\n \t\t\t(preg_match(\"/\\<[^\\>]*iframe*\\\"?[^\\>]*\\>/\", $get)) or\n \t\t\t(preg_match(\"/\\<[^\\>]*applet*\\\"?[^\\>]*\\>/\", $get)) or\n \t\t\t(preg_match(\"/\\<[^\\>]*meta*\\\"?[^\\>]*\\>/\", $get)) or\n \t\t\t(preg_match(\"/\\<[^\\>]*style*\\\"?[^\\>]*\\>/\", $get)) or\n \t\t\t(preg_match(\"/\\<[^\\>]*form*\\\"?[^\\>]*\\>/\", $get)) or\n \t\t\t(preg_match(\"/\\<[^\\>]*img*\\\"?[^\\>]*\\>/\", $get)) or\n \t\t\t(preg_match(\"/select/\", $get)) or\n \t\t\t(preg_match(\"/union/\", $get)) or\n \t\t\t(preg_match(\"/--/\", $get)) )\n {\n \t\t\tdie( 'Forbidden Action' );\n \t\t\t}\n \t\t}\n \t\t \t\t\n \t\t// ... //\n \t\t\n \t\t// Stop any external post request.\n \t\t// At least prevent novice crackers.\n \t\tif ( $MySmartBB->_SERVER['REQUEST_METHOD'] == 'POST' )\n \t{\n \t\t// ... //\n \t\t\n \t\t\t$from = explode( '/', $MySmartBB->_SERVER[ 'HTTP_REFERER' ] );\n \t\t\t$host = explode( '/', $MySmartBB->_SERVER[ 'HTTP_HOST' ] );\n\n \t\t\t// ... //\n \t\t\t\n \t\t\tif ( $from[ 2 ] != $host[ 0 ] )\n \t\t\t\tdie( 'Forbidden Action' );\n \t\t\t\n \t\t\t// ... //\n \t\t}\n \t\t\n \t\t// ... //\n\t}", "public function stop_the_insanity()\n {\n }", "public function nonApiDoSomethingElse()\n {\n // empty\n }", "public function forbidden() :string {\n\t\theader('HTTP/1.0 403 Forbidden');\n\t\tdie('Api overloaded 403 forbidden');\n\t}", "function Generic_deny($message = \"An error has occured\")\n{\n exit(\n json_encode(\n array(\n \"message\"=>$message,\n \"tracking_id\"=>LoggingEngine::$TRACKING_ID\n )\n )\n );\n}", "public function api_chk(){\n\t \n\t \n\t var_dump('ss');\n\t die();\n\t}", "public function unknow()\r\n\t{\r\n\t\t$this->errorOutput(\"你搜索得方法不存在\");\r\n\t}", "public function suppressWebAppRedirect($param);", "function rejectServRequest(){\n $serv_ID=$this->uri->segment(3);\n echo $this->router->fetch_method();\n if ($this->deliveryAndPickupModel->rejectRequest($serv_ID)) {\n echo \"<script>alert('Successfully rejected');window.location.href='\".site_url('page/rider').\"';</script>\";\n }\n else\n {\n echo \"<script>alert('Something when wrong');window.location.href='\".site_url('page/rider').\"';</script>\";\n }\n\n\t}", "public function solrNotAvailableAction()\n {\n if ($this->response instanceof Response) {\n $this->response->setStatus(503);\n }\n }", "public function customized(){ return $this->APICall( 'customized', \"Could not retrieve the website customizations\" ); }", "public function statusesFilter()\n {\n\tthrow new Exception('Not implemented');\n }", "public function allowCustomResponseCode()\n {\n $this->allowCustomResponseCode = \\true;\n }", "function DRA_Disable_Via_Filters() {\n\n // Filters for WP-API version 1.x\n add_filter( 'json_enabled', '__return_false' );\n add_filter( 'json_jsonp_enabled', '__return_false' );\n\n // Filters for WP-API version 2.x\n add_filter( 'rest_enabled', '__return_false' );\n add_filter( 'rest_jsonp_enabled', '__return_false' );\n\n // Remove REST API info from head and headers\n remove_action( 'xmlrpc_rsd_apis', 'rest_output_rsd' );\n remove_action( 'wp_head', 'rest_output_link_wp_head', 10 );\n remove_action( 'template_redirect', 'rest_output_link_header', 11 );\n\n}", "function protection_code_activation() {\n\t\n\t}", "public function forbiddenAction() {\n }", "public function writeServerCode()\n {\n }", "function spcode_activate() {\n // Do nothing\n}", "function handleNoPrivRequest(){\n $class = apply_filters( 'mvc_theme_ajax_handle_class', $this->getControllerObject( $_POST['controller'] ), $_POST );\n \n if( !isset( $class->ajax_nopriv_allow ) || !in_array( $_POST['method'], $class->ajax_nopriv_allow ) ){\n echo 'This method has not been added to the ajax_nopriv_allow allowed list';\n exit();\n }\n \n $this->no_priv = true;\n \n \n $this->handleRequest();\n \n }", "public static function vulnerable()\n {\n $slim = Slim::getInstance();\n\n if($slim->request->isGet())\n {\n $id = $slim->request->params(\"id\");\n try\n {\n $compras = Compras::vulnerable_buscar_por_id($id);\n die(json_encode($compras));\n }\n catch(Exception $ex)\n {\n die($ex->getMessage());\n }\n }\n }", "public function disableDebug();", "private function fn_suivi_cc()\n\t\t{\t\n\t\t\t\n\t\t\tif($this->get_request_method() != \"GET\"){\n\t\t\t\t$this->response('',406);\n\t\t\t}\n\t\t\t\n\t\t\t$result=fn_suivi_cc();\n\t\t\t$this->response($this->json($result), 200);\n\t\t\t$this->response('',204);\t\n\t\t}", "function unknownHandler($d, $data, $clientid){\n\t}", "public function getServiceCode();", "public function noTypoScriptAction() {}", "public function cleanup()\n\t{\n\t\tif ($this->isHtml())\n\t\t{\n\t\t\t$responseBody = preg_replace('/<link rel=[\"\\' ](pingback|alternate|EditURI|wlwmanifest|index|profile|prev)[\"\\' ](.*?)>/si', '', $this->getResponseBody());\n\t\t\t$responseBody = preg_replace('/<meta name=[\"\\' ]generator[\"\\' ](.*?)>/si', '', $responseBody);\n\t\t\t$this->setResponseBody($responseBody);\n\t\t}\n\t}", "function spcode_deactivate() {\n // Do nothing\n}", "public function reject_complaint($id)\n {\n $output['token'] = $this->security->get_csrf_hash();\n header('Content-Type: application/json');\n $output['response'] = $this->database->_update_to_table('tbl_reports', array('status' => 2), array('id' => $id));\n $output = html_escape($this->security->xss_clean($output));\n exit(json_encode($output));\n }", "function bibdk_voxb_offensive_error() {\n return array(\n '#markup' => t('bibdk_voxb_no_access', array(), array('context'=>'bibdk_voxb')),\n );\n}", "private function enhanceHttpSecurity() {\n // remove exposure of PHP version (at least where possible)\n \\header_remove('X-Powered-By');\n\n // if the user is signed in\n if ($this->isLoggedIn()) {\n // prevent clickjacking\n \\header('X-Frame-Options: sameorigin');\n // prevent content sniffing (MIME sniffing)\n \\header('X-Content-Type-Options: nosniff');\n\n // disable caching of potentially sensitive data\n \\header('Cache-Control: no-store, no-cache, must-revalidate', true);\n \\header('Expires: Thu, 19 Nov 1981 00:00:00 GMT', true);\n \\header('Pragma: no-cache', true);\n }\n }", "public function executeInvalid(sfWebRequest $request)\n {\n \n }", "function snowLeasingRequest($snowCode, $error = false)\n{\n try {\n require \"model/snowsManager.php\";\n $snowsResults = getASnow($snowCode);\n $_GET['action'] = \"snowLeasingRequest\";\n require \"view/snowLeasingRequest.php\";\n } catch (NoConnectionException $e) {\n $errorConnection = $e->messageGUI;\n writeErrorLog($e->getMessage());\n home($errorConnection);\n }\n}", "protected abstract function onAuthorizeMissingOwner(): Effect|Response;", "function xmlrpc_removepostdata($content)\n {\n }", "function removeWPLoginErrors() {\r\n return 'Something is wrong!';\r\n}", "function erase_response() {\n $this->performed = FALSE;\n $this->response = new Trails_Response();\n }", "public function wussy() {\r\n $this->returnJson(200, 'You wussy!!');\r\n }", "public function show() {\r\n\t\t@header('HTTP/1.0 403 Forbidden');\r\n\t\tWCF::getTPL()->display('permissionDenied');\r\n\t}", "function invalidMethodRequest(){\n\n $return = array(\n 'status' => 405,\n 'message' => \"Method should be a post\"\n );\n\n http_response_code(405);\n\n //Send back response to client. \n print_r(json_encode($return));\n \n}", "public function indexAction()\n {\n Extra_ErrorREST::setInvalidHTTPMethod($this->getResponse());\n }", "function deletewebserviceAction() {\n\n $clientId = $this->getRequest()->getParam('clientId');\n $webserviceId = $this->getRequest()->getParam('webserviceId');\n\n $em = Zend_Registry::getInstance()->entitymanager;\n\n if(isset($webserviceId) && $webserviceId != \"\") {\n\n $webserviceObj = $em->find('TWebservice',$webserviceId);\n $em->remove($webserviceObj);\n $em->flush();\n\n $this->_redirect('admin/webservice/index/clientId/'.$clientId);\n }\n }", "function getSuccessReason() {\n\t\treturn __( \"You've enforced Strict Transport, well done!\", \"defender-security\" );\n\t}", "public function __construct()\n\t{\n\t\tparent::__construct('Forbiddden request.');\n\t}", "function nostr($campo){\t\r\n\t\t$badHeads=array(\"SCRIPT\",\" AND \", \"+\" ,\"SELECT\", \"UPDATE\", \"INSERT\", \"DELETE\", \"<>\", \"*\",\"DROP\",\"WHERE\",\"\\'\",\" OR \",\"ALERT\",\"<?\",\"?>\",\"<%\",\"%>\",\"<SCRIPTS>\",\"</SCRIPTS>\",\"FRAME\",\"</NOFRAME>\",\"<NOSCRIPTS>\",\"</NOSCRIPTS>\",\"<IFRAME>\",\"</IFRAME>\");\r\n\t\t \r\n\t\t foreach($badHeads as $valor){ \r\n if(strpos(strtolower($campo), strtolower($valor)) !== false){ \r\n header(\"HTTP/1.0 403 Forbidden\"); \r\n exit; \r\n } \r\n\t\t }\r\n}", "function __destruct(){\n try{\n $this->__send_response();\n } catch (\\Exception $e) {\n error_log($e->getCode() . \": \" . $e->getMessage());\n error_log(implode(\"\\n\", $e->getTrace()));\n }\n }", "public function sniff_requests() {\r\n global $wp;\r\n\r\n if(isset($wp->query_vars['__api'])){\r\n $this->handle_request();\r\n exit;\r\n }\r\n }", "function ShowAfspraakRefused()\n{\n\n}", "private function checkIfGOCDBIsReadOnlyAndRequestisNotGET(){\n if ($this->requestMethod != 'GET' && $this->portalIsReadOnly()){\n $this->exceptionWithResponseCode(503,\"GOCDB is currently in read only mode\");\n }\n }", "public function disable();", "public function get_nonces()\n {\n }", "static function denied()\n {\n\n }", "function be_core_functionality_hidden( $r, $url ) {\n\tif ( 0 !== strpos( $url, 'http://api.wordpress.org/plugins/update-check' ) )\n\t\treturn $r; // Not a plugin update request. Bail immediately.\n\t$plugins = unserialize( $r['body']['plugins'] );\n\tunset( $plugins->plugins[ plugin_basename( __FILE__ ) ] );\n\tunset( $plugins->active[ array_search( plugin_basename( __FILE__ ), $plugins->active ) ] );\n\t$r['body']['plugins'] = serialize( $plugins );\n\treturn $r;\n}", "function beforeFilter(){\n parent::beforeFilter();\n if(isset($this->Security) && $this->RequestHandler->isAjax() && in_array($this->action ,array(\n 'release_report'\n ))){\n Configure::write('debug', 0);\n $this->Security->enabled = false;\n $this->Security->validatePost = false;\n }\n }", "private function suivi_crm(){\t\n\t\t\t\n\t\t\tif($this->get_request_method() != \"GET\"){\n\t\t\t\t$this->response('',406);\n\t\t\t}\n\t\t\t\n\t\t\t$result=suivi_crm();\n\t\t\t$this->response($this->json($result), 200);\n\t\t\t$this->response('',204);\t\n\t\t}", "function invalidMethodResponse(){\n\n $return = array(\n 'status' => 400,\n 'message' => \"Bad method given\"\n );\n\n http_response_code(400);\n\n //Send back response to client. \n print_r(json_encode($return));\n\n}", "public function suppression($id,$ajax=false) {\n $resultat = $this->m_correspondants->suppression($id);\n if ($resultat === false) {\n $this->my_set_display_response($ajax,false);\n }\n else {\n $this->my_set_action_response($ajax,true,\"Le correspondant a été supprimé\");\n }\n if ($ajax) {\n return;\n }\n $redirection = $this->session->userdata('_url_retour');\n if (! $redirection) $redirection = '';\n redirect($redirection);\n }", "public function httpsWarning() {\n drupal_set_message($this->t('If you submit this form via HTTP, your API credentials will be sent in clear text and may be intercepted. For information on setting up HTTPs, see <a href=\"https://www.drupal.org/https-information\">Enabling HTTPs</a>.'), 'warning');\n }", "function quitar_inyect(){\n\tfix_request();\n\treturn true;\n}", "protected function notAuthorized()\n {\n $this->response = $this->response->withStatus(403);\n $this->jsonBody($this->payload->getInput());\n }", "public function removeCode()\n\t{\n\t\t// This is useful for saving space.\n\t\t// This function is useful when dealing with \"composite pages\" i.e.\n\t\t// the processor would:\n\t\t// -- fetch the code from the content,\n\t\t// -- load the code in the PHP machine using \"eval\"\n\t\t// -- strip the content from the code\n\t\t// -- invoke the callback with, as parameters, the source page & \n\t\t// this page's content \n\t\t$content = preg_replace(\"/\\<php(.*)php\\>/siU\",\"\", $this->content);\n\t\t$this->content = $content;\n\t}", "public function checkSecurity() {\n }", "public function onGet(){\n return false;\n }", "function ReturnServerError()\n{\n header('HTTP/1.1 500 Internal Server Error');\n die(\"A server error occured while saving your request.\\r\\nPlease check our API status page at http://status.prybar.io and try again later\");\n}", "public function indexAction() {\n return $this->getResponse()->setHttpResponseCode(403);\n }", "protected function _response() {}", "public function providerUnretriableCodes() {\n return array(\n array(Response::STATUS_CODE_400),\n array(Response::STATUS_CODE_500)\n );\n }", "public function unsave()\n\t{\n\t\t$sc = TRUE;\n\t\tif($this->input->post('code'))\n\t\t{\n\t\t\t$code = $this->input->post('code');\n\t\t\t$doc = $this->adjust_model->get($code);\n\t\t\tif(!empty($doc))\n\t\t\t{\n\t\t\t\tif($doc->status == 1)\n\t\t\t\t{\n\t\t\t\t\t$details = $this->adjust_model->get_details($code);\n\t\t\t\t\tif(!empty($details))\n\t\t\t\t\t{\n\t\t\t\t\t\t$status = 0; //--- 0 = not save, 1 = saved, 2 = cancled\n\t\t\t\t\t\tif( ! $this->adjust_model->change_status($code, $status))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$sc = FALSE;\n\t\t\t\t\t\t\t$this->error = \"เปลี่ยนสถานะเอกสารไม่สำเร็จ\";\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$sc = FALSE;\n\t\t\t\t\t\t$this->error = \"ไม่พบรายการปรับยอดกรุณาตรวจสอบ\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$sc = FALSE;\n\t\t\t\t$this->error = \"เลขที่เอกสารไม่ถูกต้อง\";\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$sc = FALSE;\n\t\t\t$this->error = \"ไม่พบเลขที่เอกสาร\";\n\t\t}\n\n\t\techo $sc === TRUE ? 'success' : $this->error;\n\t}", "public function securityAction()\n {\n\n }", "public static function no_ssl_filter_function( $r, $url ) {\n\t\t$r['sslverify'] = false;\n\t\treturn $r;\n\t}", "function check_esewa_response() {\n\n\t\t\t@ob_clean();\n\n\t\t\tif ( ! empty( $_REQUEST ) && $this->check_esewa_response_is_valid() ) {\n\n\t\t\t\tdo_action( 'valid-esewa-standard-response' );\n\n\t\t\t} else {\n\n\t\t\t\twp_die( 'eSewa Response Validation Failure' );\n\n\t\t\t}\n\n\t\t}", "public function warning($code, $data) \n {\n header(\"content-type: application/json\");\n $response = json_encode([\n 'warning' => [\n 'status' => $code,\n 'message' => $data\n ]\n ]);\n echo $response;\n // exit(); // do not have to exit\n }", "function disable()\n{\n global $avahips_config, $urlpath, $staticFile;\n\n // Load Avahi-PS configuration file\n $aps_cfg = load_conffile($avahips_config);\n\n // Remove IPFS as a backend database for publication\n if (isset($aps_cfg['DATABASE'])) {\n $aps_cfg['DATABASE'] = trim(str_replace(\"ipfs\", \"\", $aps_cfg['DATABASE']));\n }\n\n // If there are no backends remaining, set it to \"none\"\n if ((isset($aps_cfg['DATABASE']) && trim($aps_cfg['DATABASE']) === \"\") || !isset($aps_cfg['DATABASE'])) {\n $aps_cfg['DATABASE'] = \"none\";\n }\n\n // Save Avahi-PS configuration file\n write_conffile($avahips_config, $aps_cfg, null, null);\n\n // Check if IPFS was actually disabled and set a flash message before return\n if (! isEnabled()) {\n setFlash(t('ipfs_flash_publish_disabled'), \"success\");\n } else {\n setFlash(t('ipfs_flash_publish_not_disabled'), \"error\");\n }\n\n return(array('type'=>'redirect','url'=>$staticFile.$urlpath));\n}", "public function no_op() {\n\t\t\texit( 'Not permitted' );\n\t\t}", "function eliminarServicio(){\r\n\t\t$this->procedimiento='gev.f_tgv_servicio_ime';\r\n\t\t$this->transaccion='tgv_SERVIC_ELI';\r\n\t\t$this->tipo_procedimiento='IME';\r\n\t\t\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\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 unauthorizedTest(WebTestCase $webTestCase);", "function action(){\n\t\t//Campos que se quieren excluir de la limpieza de código. Formato: nombreCampo1|nombreCampo2|nombreCampo3\n\t\t$excluir=\"\";\n\t\t$_REQUEST=$this->inspector->cleanPHPHTML($_REQUEST);\n\n\t\t$option=isset($_REQUEST['option'])?$_REQUEST['option']:\"list\";\n\n\n\t\tswitch($option){\n\t\t\tcase \"processList\":\n\t\t\t\t$variable[\"option\"]=\"list\";\n\t\t\t\t$variable[\"grado\"]=$_REQUEST['grado'];\n\t\t\t\t$variable[\"sede\"]=$_REQUEST['sede'];\n $variable[\"periodo\"]=$_REQUEST['periodo'];\n\t\t\t\t$this->getComportamiento($variable);\n\t\t\tbreak;\n\n case \"actualizarNota\":\n $result = $this->procesarNota($_REQUEST);\n echo \"Registro actualizado\";\n /*if(!$result->status){\n echo json_encode($result);\n return false;\n }\n echo json_encode($result);*/\n\n break;\n\t\t}\n\t}", "function disable_function()\n{\n die('Disabled');\n}", "public static function uriProcessorForbidden()\n {\n return 'Forbidden.';\n }", "public function ajaxDeclineRequest()\n\t{\n\t\t$request = FriendshipRequest::declineRequest(Input::get('id'));\n\t\treturn array('error' => 0);\n\t}", "public function cleanupAction()\n {\n $onlineShopVoucherSeries = \\Pimcore\\Model\\Object\\AbstractObject::getById($this->getParam('id'));\n if ($onlineShopVoucherSeries instanceof \\Pimcore\\Model\\Object\\OnlineShopVoucherSeries) {\n if ($tokenManager = $onlineShopVoucherSeries->getTokenManager()) {\n\n // Prepare cleanUp parameter array.\n $params = [];\n $this->getParam('usage') ? $params['usage'] = $this->getParam('usage') : '';\n $this->getParam('olderThan') ? $params['olderThan'] = $this->getParam('olderThan') : '';\n\n if (empty($params['usage'])) {\n $this->renderTab($onlineShopVoucherSeries, $tokenManager, array('error' => $this->view->ts('plugin_onlineshop_voucherservice_msg-error-required-missing')));\n return;\n }\n\n if ($tokenManager->cleanUpCodes($params)) {\n $this->renderTab($onlineShopVoucherSeries, $tokenManager, array('success' => $this->view->ts('plugin_onlineshop_voucherservice_msg-success-cleanup')));\n } else {\n $this->renderTab($onlineShopVoucherSeries, $tokenManager, array('error' => $this->view->ts('plugin_onlineshop_voucherservice_msg-error-cleanup')));\n }\n }\n } else {\n throw new Exception('Could not get voucher series, probably you did not provide a correct id.');\n }\n }", "function wp_ajax_health_check_dotorg_communication()\n {\n }", "function thrive_transactions_callblack() {\n\n\t// Always check for nonce before proceeding...\n\t$nonce = filter_input( INPUT_GET, 'nonce', FILTER_SANITIZE_STRING );\n\n\t// If INPUT_GET is empty try input post\n\tif ( empty( $nonce ) ) {\n\n\t\t$nonce = filter_input( INPUT_POST, 'nonce', FILTER_SANITIZE_STRING );\n\n\t}\n\n\tif ( ! wp_verify_nonce( $nonce, 'thrive-transaction-request' ) ) \n\t{\n\n\t\tdie( \n\t\t\t__( 'Invalid Request. Your session has already expired (invalid nonce). \n\t\t\t\tPlease go back and refresh your browser. Thanks!', 'thrive' ) \n\t\t);\n\n\t}\n\n\t$method = filter_input( INPUT_POST, 'method', FILTER_SANITIZE_ENCODED );\n\n\tif ( empty( $method ) ) {\n\t\t// try get action\n\t\t$method = filter_input( INPUT_GET, 'method', FILTER_SANITIZE_ENCODED );\n\t}\n\n\t$allowed_callbacks = array(\n\n\t\t// Tickets/Tasks callbacks\n\t\t'thrive_transaction_add_ticket',\n\t\t'thrive_transaction_delete_ticket',\n\t\t'thrive_transaction_fetch_task',\n\t\t'thrive_transaction_edit_ticket',\n\t\t'thrive_transaction_complete_task',\n\t\t'thrive_transaction_renew_task',\n\n\t\t// Comments callback functions.\n\t\t'thrive_transaction_add_comment_to_ticket',\n\t\t'thrive_transaction_delete_comment',\n\n\t\t// Project callback functions.\n\t\t'thrive_transactions_update_project',\n\t\t'thrive_transactions_delete_project',\n\t);\n\n\tif ( function_exists( $method ) ) {\n\t\tif ( in_array( $method, $allowed_callbacks ) ) {\n\t\t\t// execute the callback\n\t\t\t$method();\n\t\t} else {\n\t\t\tthrive_api_message(array(\n\t\t\t\t'message' => 'method is not listed in the callback',\n\t\t\t));\n\t\t}\n\t} else {\n\t\tthrive_api_message(array(\n\t\t\t'message' => 'method not allowed or method does not exists',\n\t\t));\n\t}\n\n\tthrive_api_message(array(\n\t\t\t'message' => 'transaction callback executed',\n\t\t));\n}", "function xgb_request_nonce_error() { ?>\n\t\t<div class=\"notice notice-error\">\n\t\t\t<p><?php _e( 'That request did not pass the necessary security checks. <br>Hint: Log out and login and try again or if this persists, <a class=\"dottedunderline\" href=\"http://www.millionclues.net/support/\">contact support</a>.', 'xgb' ); ?></p>\n\t\t</div> <?php\n}", "function httpForbidden() {\n header('HTTP/1.1 403 Forbidden');\n echo '<h1>403 - Interdit</h1>';\n exit('Le serveur a compris la requête, mais refuse de l\\'exécuter.');\n}", "function Redactedapi() {\n \n if(!empty($_POST['site_id']) && is_numeric($_POST['site_id']))\n {\n $this->site_id = $_POST['site_id']; \n } \n else\n {\n $this->site_id = 1;\n }\n \n if($_SERVER['SERVER_NAME'] == 'www.redacted.com'){\n $this->username = 'xxxx';\n $this->password = 'xxxx';\n $this->url \t\t= 'https://api-1.redacted.com/redactedapiservice.asmx';\n } else{\n $this->username = 'xxxxx';\n $this->password = 'xxxxx';\n $this->url \t = 'https://testapi-1.redacted.com/redactedAPIService.asmx?wsdl';\n } \n\t\t\t\n\t\t$this->CI =& get_instance();\n\t\t$this->CI->load->helper('cookie');\n\t}", "function api_app_modify_function() {\n\n}", "function UnsetRequest()\n {\n \n unset($_REQUEST[\"mco_proveedores__PVE_ID\"]);\n unset($_REQUEST[\"mco_proveedores__PVE_NOMBRE\"]);\n unset($_REQUEST[\"mco_proveedores__PVE_DIRECCION\"]);\n unset($_REQUEST[\"mco_proveedores__PVE_TELEFONO\"]);\n unset($_REQUEST[\"mco_proveedores__PVE_CELULAR\"]);\n unset($_REQUEST[\"mco_proveedores__PVE_EMAIL\"]);\n }", "public function aw_service_wp ( $proc, $args ) {\n\t \t//$args = array('argDta' => $productID,'argIsSale' => 1,'argUsr' => '');\n\t\t$url \t\t= 'http://203.201.129.15/AWSERVICE_WP_WEB/awws/AWService_WP.awws?wsdl';\n\t\t$client \t= new SoapClient($url);\n\t\t$response \t= $client->__soapCall( $proc, array($args) );\n\t\t\n\t\tswitch ( $proc ) {\n\t\t\tcase 'Trainers_OnlineProduct_Listing':\n\t\t\t\t$simpleXml = simplexml_load_string($response->Trainers_OnlineProduct_ListingResult);\n\t\t\tbreak;\n\n\t\t\tcase 'CorporateClientsList':\n\t\t\t\t$simpleXml = simplexml_load_string($response->CorporateClientsListResult);\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'pcPrdct_DisplayInfo':\n\t\t\t\t$simpleXml = simplexml_load_string($response->pcPrdct_DisplayInfoResult);\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'pcChat_UserDetails':\n\t\t\t\t$simpleXml = $response->pcChat_UserDetailsResult;\n\t\t\tbreak;\n\t\t\t\n\t\t}\n\t\t\n\t \treturn $simpleXml;\n\t }", "public function postAction() {\n return $this->getResponse()->setHttpResponseCode(403);\n }", "public function s403($message = '') { self::respondWithJSON($message, 403); }", "public function disableCompressJavascript() {}", "function disable_function() {\r\n die('Disabled');\r\n}", "function main()\n{\n //getRequestidhl();\n\t //getRequestidlap();\n\t getRequestidpl();\n\n\t\n}", "public function disable() {}", "function wpass_status_prevent_frontend_view() {\r\n\r\n\tglobal $wp_query;\r\n\r\n\tif ( $wp_query->is_main_query() && $wp_query->is_single() && isset( $wp_query->query['post_type'] ) && 'wpass_status' === $wp_query->query['post_type'] ) {\r\n\t\t$wp_query->set_404();\r\n\t}\r\n\r\n}", "protected function handler ($SVC) {}", "public function disableDebug() {}", "function my_function_admin_bar(){ return false; }" ]
[ "0.62086535", "0.5529478", "0.54679525", "0.5438221", "0.5413195", "0.5401495", "0.53559476", "0.53470933", "0.53345287", "0.53296024", "0.5327523", "0.5291381", "0.52533036", "0.52481925", "0.5240829", "0.52199554", "0.520719", "0.5191429", "0.5183137", "0.514622", "0.5144723", "0.5144423", "0.5141621", "0.5135998", "0.5134425", "0.51306707", "0.5118883", "0.5087677", "0.50653416", "0.5065179", "0.5064869", "0.5042042", "0.5033092", "0.5019002", "0.5006025", "0.4995978", "0.4988363", "0.49795842", "0.4977927", "0.4975391", "0.49625298", "0.4959571", "0.49538055", "0.4951258", "0.4951257", "0.49508938", "0.49474347", "0.493713", "0.49370202", "0.4927548", "0.4926912", "0.4913462", "0.49122238", "0.49095973", "0.4903314", "0.48971105", "0.48893586", "0.48843333", "0.48825818", "0.48799127", "0.48789957", "0.48776573", "0.48764148", "0.48757502", "0.48743472", "0.48692092", "0.48666367", "0.48663706", "0.48652452", "0.48651072", "0.48643956", "0.48630518", "0.48616478", "0.4860651", "0.48576337", "0.48574007", "0.4837121", "0.4835404", "0.48234257", "0.48186162", "0.48171887", "0.48131493", "0.481156", "0.48113865", "0.4807901", "0.48074004", "0.48071137", "0.48029315", "0.48019004", "0.48001918", "0.4796778", "0.47959745", "0.47958258", "0.47951993", "0.47940397", "0.4791533", "0.47877106", "0.47836587", "0.47802523", "0.47759897", "0.47728312" ]
0.0
-1
Sanity test for Pages. Prevents user from persisting bogus Pages. This is the case if the Page has fallback content. In this case, the Page's content was overwritten with other data that is not meant to be persisted. more than one page has module home without cmd
protected function checkValidPersistingOperation($pageRepo, $page) { global $_CORELANG; if ($page instanceof Page) { if ($page->isVirtual()) { throw new PageEventListenerException('Tried to persist Page "'.$page->getTitle().'" with id "'.$page->getId().'". This Page is virtual and cannot be stored in the DB.'); } if ($page->getModule() == 'Home' && $page->getCmd() == '' && $page->getType() == \Cx\Core\ContentManager\Model\Entity\Page::TYPE_APPLICATION ) { $home = $pageRepo->findBy(array( 'module' => 'Home', 'cmd' => '', 'lang' => $page->getLang(), 'type' => \Cx\Core\ContentManager\Model\Entity\Page::TYPE_APPLICATION, )); reset($home); if ( count($home) > 1 || ( count($home) == 1 && current($home)->getId() != $page->getId()) ) { throw new PageEventListenerException('Tried to persist Page "'.$page->getTitle().'" with id "'.$page->getId().'". Only one page with module "home" and no cmd is allowed.'); // the following is not necessary, since a nice error message // is display by javascript. // find the other page to display a better error message: if (current($home)->getId() == $page->getId()) { $home = end($home); } else { $home = current($home); } throw new PageEventListenerException(sprintf($_CORELANG['TXT_CORE_CM_HOME_FAIL'], $home->getId(), $home->getPath())); //SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-110-Cx\Model\ContentManager\Page' for key 'log_class_unique_version_idx' //'Tried to persist Page "'.$page->getTitle().'" with id "'.$page->getId().'". Only one page with module "home" and no cmd is allowed.'); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testCreatePage()\n {\n // 1. Create Page\n $this->createPage();\n\n // 2. Test if content is created\n $this->assertTrue(Content::first() ? true : false);\n }", "static public function createPages() {\n\t\treturn false;\n\t}", "function do_pages_exist() {\n // Home\n if ( get_page_by_title( 'Home' ) == NULL ) create_page( 'Home' );\n}", "public function testRestrictPage()\n {\n $this->assertTrue(true);\n }", "protected function setupPage() {}", "function install_pages() {\n $db = DB::getInstance();\n if(!$db->query(file_get_contents(CORE_INSTALLER_FILES_PATH.'/db/pages.sql'))->error()) {\n return true;\n }\n else {\n System::addMessage('error', rt('An error occurred during the creation of a sample home page'));\n }\n return false;\n}", "public function testAdminCanAddAPage()\n {\n $params = [\n 'title' => $this->faker->name(),\n ];\n\n $response = $this\n ->actingAs($this->admin)\n ->post('/admin/blog/pages', $params);\n\n $response->assertStatus(302);\n $response->assertSessionHasNoErrors();\n\n $page = Post::where('post_type', Post::PAGE)->first();\n $this->assertNotNull($page);\n $this->assertEquals($params['title'], $page->title);\n\n $response->assertRedirect('/admin/blog/pages/'. $page->id .'/edit');\n $response->assertSessionHas('success', __('blog::pages.success_create_message'));\n }", "public function testAPage()\n {\n Page::create([\n 'slug' => 'a-page',\n 'title' => 'Test title',\n 'content' => 'Test content',\n ]);\n $this->get('a-page')->assertStatus(200)->assertSee('Test title')->assertSee('Test content');\n }", "public function ensureAllPageObjects() {}", "public function canCreateNewPages() {}", "public function pagesOnly() {}", "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 testAdminCanUpdateAPage()\n {\n $existPage = Post::factory()->create(['post_type' => Post::PAGE]);\n\n $params = [\n 'title' => $this->faker->name(),\n ];\n\n $response = $this\n ->actingAs($this->admin)\n ->put('/admin/blog/pages/'. $existPage->id, $params);\n\n $updatedPost = Post::where('post_type', Post::PAGE)->where('id', $existPage->id)->first();\n $this->assertEquals($params['title'], $updatedPost->title);\n $this->assertEquals($existPage->id, $updatedPost->id);\n\n $response->assertStatus(302);\n $response->assertSessionHasNoErrors();\n $response->assertRedirect('/admin/blog/pages/'. $existPage->id . '/edit');\n $response->assertSessionHas('success', __('blog::pages.success_update_message'));\n }", "public function testRemoveParentPage()\n {\n // 1. Create Page 1\n $page1 = $this->createPage();\n\n // 2. Create Page 2\n $attributes2 = $this->attributes['page'];\n $attributes2['parent_id'] = $page1->id;\n $page2 = $this->createPage($attributes2);\n\n // 3. Create Page 3\n $attributes3 = $this->attributes['page'];\n $attributes3['parent_id'] = $page2->id;\n $page3 = $this->createPage($attributes3);\n\n // 4. Remove page 1\n (new DeleteContent($page2))->handle();\n\n // 5. Reload page\n $page1 = Content::find(1);\n $page2 = Content::find(2);\n $page3 = Content::find(3);\n\n // 6. Test page parent_id\n $this->assertTrue($page3->parent_id == $page1->id ? true : false);\n\n\n // 5. Test URLS\n // foreach($page2->urls as $url) {\n // $language = Language::find($url->language_id);\n //\n // $actual = $url->url;\n //\n // $excepted = sprintf('/%s/%s',\n // $language->iso,\n // $attributes2['fields'][1]['value'][$language->iso]\n // );\n //\n // $message = '--> BAD URL : ' . $actual . ' must be ' . $excepted;\n //\n // $this->assertSame($excepted, $actual, $message);\n // }\n\n }", "public function testPageIndex()\n {\n $response = $this->actingAs(User::inRandomOrder()->first(), 'api')->json('GET', '/api/pages');\n $response\n ->assertStatus(200)\n ->assertJsonStructure([\n 'meta',\n 'links',\n 'data' => [\n '*' => [\n \"name\",\n \"id\",\n \"slug\",\n ],\n ],\n ]);\n }", "function test_basic_existingpage(){\n global $ID,$conf;\n $ID = 'wiki:syntax';\n $filename = $conf['datadir'].'/wiki/syntax.txt';\n $rev = filemtime($filename);\n\n $info = $this->_get_expected_pageinfo();\n $info['id'] = 'wiki:syntax';\n $info['namespace'] = 'wiki';\n $info['filepath'] = $filename;\n $info['exists'] = true;\n $info['lastmod'] = $rev;\n $info['currentrev'] = $rev;\n $info['meta'] = p_get_metadata($ID);\n\n $this->assertEquals($info, pageinfo());\n }", "public function page_test() {\n\n\t\tprint_r($this->permissions->check(\"can_view_admin\"));\n\t}", "function test_restrict_deletion_of_Home_page(){}", "protected function _after_read(): void\n {\n $contents = PageContent::get_data_by( ['page_id' => $this->page_id], $offset = 0,$limit = 1, $use_like = FALSE, $sort_by = 'page_content_id', $sort_desc = TRUE );\n if (isset($contents[0]) && !$this->is_property_modified('page_content')) {\n $this->page_content = $contents[0]['page_content_data'];\n }\n\n if ($this->page_group_id && !$this->is_property_modified('page_group_uuid') ) {\n $PageGroup = new PageGroup($this->page_group_id);\n $this->page_group_uuid = $PageGroup->get_uuid();\n }\n\n //the property may be NULL not because it is not set/initialized but because it was explicitely set to NULL on another instance\n if (!$this->page_slug && !$this->is_property_modified('page_slug')) {\n $this->page_slug = $this->get_alias();\n }\n }", "function create_custom_pages() {\n $custom_pages = array(\n 'issues' => 'Issues',\n 'weeklies' => 'Weeklies',\n 'artists' => 'Artists',\n 'contributors' => 'Contributors',\n 'incubator' => 'Incubator',\n 'about' => 'About',\n 'shop' => 'Shop',\n 'contribute' => 'How to Contribute',\n 'contact' => 'Contact Us',\n 'faq' => 'FAQ',\n 'definitions' => 'Definitions',\n 'terms-and-conditions' => 'Terms & Conditions',\n 'bag' => 'Bag',\n );\n foreach($custom_pages as $page_name => $page_title) {\n $page = get_page_by_path($page_name);\n if( empty($page) ) {\n wp_insert_post( array(\n 'post_type' => 'page',\n 'post_title' => $page_title,\n 'post_name' => $page_name,\n 'post_status' => 'publish'\n ));\n }\n }\n}", "public function testAdminCanNotAddADuplicatedPageTitle()\n {\n $existPage = Post::factory()->create(['post_type' => Post::PAGE]);\n\n $params = [\n 'title' => $existPage->title,\n ];\n\n $response = $this\n ->actingAs($this->admin)\n ->post('/admin/blog/pages', $params);\n\n $response->assertStatus(302);\n $response->assertSessionHasErrors();\n\n $errors = session('errors');\n $this->assertEquals('The title has already been taken.', $errors->get('title')[0]);\n }", "public function canManagePages();", "public function testEmptyPages() {\n\t\t$page = $this->objFromFixture('UserDefinedForm', 'empty-page');\n\t\t$this->assertEquals(5, $page->Fields()->count());\n\t\t$controller = ModelAsController::controller_for($page);\n\t\t$form = new UserForm($controller);\n\t\t$this->assertEquals(2, $form->getSteps()->count());\n\t}", "function test_basic_nonexistentpage(){\n global $ID,$conf;\n $ID = 'wiki:start';\n\n $info = $this->_get_expected_pageinfo();\n $info['id'] = 'wiki:start';\n $info['namespace'] = 'wiki';\n $info['filepath'] = $conf['datadir'].'/wiki/start.txt';\n\n $this->assertEquals($info, pageinfo());\n }", "public function testGetSpecialPage()\n {\n $specialPageName1 = 'specialPageName1';\n $specialPageName2 = 'specialPageName2';\n $specialPage1 = Phake::mock(ReadNodeInterface::class);\n Phake::when($specialPage1)->getSpecialPageName()->thenReturn($specialPageName1);\n $specialPage2 = Phake::mock(ReadNodeInterface::class);\n Phake::when($specialPage2)->getSpecialPageName()->thenReturn($specialPageName2);\n $specialPages = array($specialPage1, $specialPage2);\n Phake::when($this->nodeRepository)->findAllPublishedSpecialPage(Phake::anyParameters())->thenReturn($specialPages);\n\n $specialPage1Expected = $this->extension->getSpecialPage($this->twigEnvironment, $specialPageName1);\n $specialPage2Expected = $this->extension->getSpecialPage($this->twigEnvironment, $specialPageName2);\n\n Phake::verify($this->nodeRepository, Phake::times(1))->findAllPublishedSpecialPage(Phake::anyParameters());\n $this->assertSame($specialPage1Expected, $specialPage1);\n $this->assertSame($specialPage2Expected, $specialPage2);\n }", "public function importPages() {\n\t\t$deletedPages = $this->db->run_query(\"DELETE FROM pages\");\n\t\t$this->debugPrint($deletedPages, \"pages deleted from new database\");\n\t\t\n\t\t$numExistingRecords = $this->importDb->run_query(\"SELECT * FROM pages\");\n\t\t$oldData = $this->importDb->farray_fieldnames();\n\t\t\n\t\t$oldPk = null;\n\t\t$firstRecord = $oldData[array_keys($oldData)[0]];\n\t\t\n\t\t$oldById = array();\n\t\t\n\t\tif(isset($firstRecord['page_id'])) {\n\t\t\t$oldPk = 'page_id';\n\t\t}\n\t\telseif(isset($firstRecord['id'])) {\n\t\t\t$oldPk = 'id';\n\t\t}\n\t\t\n\t\tif(!is_null($oldPk)) {\n\t\t\tforeach($oldData as $k=>$v) {\n\t\t\t\t$oldById[$v[$oldPk]] = $v;\n\t\t\t}\n\t\t}\n//\t\texit;\n\t\t\n\t\t// create a test page.\n\t\t$pageObj = new page($this->db);\n\t\t$testId = $pageObj->insert(array('title'=>'test'));\n\t\t\n\t\t$queryRes = $this->db->run_query(\"SELECT * FROM pages WHERE page_id=\". $testId);\n\t\t\n\t\t$numImported = 0;\n\t\t\n\t\tif($queryRes == 1) {\n\t\t\t$templateRecord = $this->db->get_single_record();\n\t\t\t\n\t\t\t// get rid of the template record.\n\t\t\t$pageObj->delete($testId);\n\t\t\t\n\t\t\t$validColumns = array_keys($templateRecord);\n\n\t\t\tforeach($oldData as $k=>$v) {\n\t\t\t\t$createPage = true;\n\t\t\t\t$insertData = $this->_cleanRecord($validColumns, $v);\n\t\t\t\t\n\t\t\t\t// attempt to preserve ID's\n\t\t\t\tif(!is_null($oldPk)) {\n\t\t\t\t\t$insertData['page_id'] = $v[$oldPk];\n\t\t\t\t\t\n\t\t\t\t\tif(intval($v['parent_id']) > 0 && !isset($oldById[$v['parent_id']])) {\n\t\t\t\t\t\t$createPage = false;\n\t\t\t\t\t\tunset($insertData['parent_id']);\n\t\t\t\t\t}\n//\t\t\t\t\tif(isset($oldById))\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tunset($insertData['parent_id']);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif($createPage === true) {\n\t\t\t\t\t// now insert the data.\n\t\t\t\t\t$importId = $pageObj->insert($insertData);\n\t\t\t\t\t$numImported++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t$this->debugPrint($queryRes, \"result of query\");\n\t\t\t$this->debugPrint($testId, \"No page found, ID created was\");\n\t\t\tthrow new Exception(\"No record found\");\n\t\t}\n\t\t$this->debugPrint(\"{$numImported}/{$numExistingRecords}\", \"imported/existing page records\", 1, 0);\n\t\t\n\t\treturn $numImported;\n\t}", "public function testAdminCanDeleteAPage()\n {\n $existPage = Post::factory()->create(['post_type' => Post::PAGE]);\n\n $response = $this\n ->actingAs($this->admin)\n ->delete('/admin/blog/pages/'. $existPage->id);\n\n $page = Post::where('id', $existPage->id)->first();\n $this->assertNull($page);\n\n $response->assertStatus(302);\n $response->assertRedirect('/admin/blog/pages');\n $response->assertSessionHas('success', __('blog::pages.success_delete_message'));\n }", "public function testPageShow()\n {\n $page = Page::inRandomOrder()->first();\n $response = $this->actingAs(User::inRandomOrder()->first(), 'api')->json('GET', '/api/pages/' . $page->slug);\n $response\n ->assertStatus(200)\n ->assertJsonStructure([\n 'data' => [\n \"name\",\n \"id\",\n \"slug\",\n ],\n 'links' => [\n \"self\",\n ],\n 'relationships' => [\n \"body\" => [\n \"links\" => [\n \"self\",\n ],\n \"data\" => [\n \"type\",\n \"content\",\n ],\n ],\n\n ],\n ]);\n }", "public function testGetPages() : void {\n $expected = 0;\n $this->assertEquals($expected, count($this->dataManager->getPages()));\n }", "public function testAdminCanNotAddAPageWithBlankTitle()\n {\n $params = [];\n\n $response = $this\n ->actingAs($this->admin)\n ->post('/admin/blog/pages', $params);\n\n $response->assertStatus(302);\n $response->assertSessionHasErrors();\n\n $errors = session('errors');\n\n $this->assertEquals('The title field is required.', $errors->get('title')[0]);\n }", "public function testInitialPage() {\n $this->session->visit($this->baseUrl);\n $page = $this->session->getPage();\n\n $this->assertInstanceOf(\n NodeElement::Class,\n $page->find('css', 'p'),\n 'Should have a p tag in this page'\n );\n $this->assertEquals('Ikke logget inn', $page->find('css', 'p')->getText(),\n 'Wrong text in paragraph');\n }", "function createPages() {\n\t// drop pages table (for development only)\n\tDB::exec(\"DROP TABLE IF EXISTS pages\");\n\n\t// `name` should be unique and cannot be null\n\t// `route` must be unique but can be null (e. g. when a page shouldn't be accessible via an URL)\n\t// `layout` is a foreign key that references ANOTHER row in the pages table,\n\t// \tif the referenced row is deleted the value will be set to NULL\n\tDB::exec(\"CREATE TABLE pages (\n\t\tid INT NOT NULL AUTO_INCREMENT PRIMARY KEY,\n\t\tname VARCHAR(50) NOT NULL UNIQUE,\n\t\troute VARCHAR(50) NULL UNIQUE,\n\t\tcontent TEXT NULL\n\t)\");\n\n\toutput(RESULT_INFO, \"Pages setup successfully completed\");\n\treturn 1;\n}", "private function checkPageAllowed() {\n\n if (!$this->user->isPersonnalManager()) {\n\n header('Location: ./index.php');\n exit();\n }\n }", "public function isGeneratePage() {}", "public function prePageContent();", "public function testPageCreate()\n {\n $faker = Faker::create();\n $response = $this\n ->actingAs(User::whereNotNull(\"verified\")->inRandomOrder()->first(), 'api')\n ->withHeaders([\n \"User-Agent\" => $faker->userAgent(),\n ])\n ->json('POST', \"/api/pages/\", [\n \"data\" => [\n \"name\" => $faker->sentence(4, true),\n ],\n \"relationships\" => [\n \"body\" => [\n \"data\" => [\n \"content\" => $faker->paragraphs(4, true),\n ],\n ],\n ],\n ]);\n $response\n ->assertStatus(201);\n }", "public function test_page_cache()\n {\n }", "private function checkCMSPages()\n {\n $pages = ['product_page', 'category_page', 'address_page', 'checkout_page', 'account_page'];\n $errors = [];\n foreach ($pages as $page) {\n if (GeneralSettings::get($page) === null) {\n $errors[] = '- ' . trans('offline.mall::lang.general_settings.' . $page);\n }\n }\n if (count($errors) < 1) {\n return true;\n }\n\n return \"The following pages are not linked to a CMS page. Do this via the backend settings:\\n\\n\" . implode(\"\\n\",\n $errors);\n }", "protected function getUpdatablePages() {}", "public function testDontIndexNewPrivatePage()\n {\n\n // Add a private page.\n $page = $this->_simplePage(false);\n\n // Should not add a Solr document.\n $this->_assertNotRecordInSolr($page);\n\n }", "public function testExistingSettingsAreLoadedWithPage()\n\t{\n\t\t$this->call('GET', '/account/settings');\n\n\t\t$this->assertResponseOk();\n\t\t$this->assertViewHas('email', '[email protected]');\n\t}", "private function content() {\n $this->checkPost();\n\n if (isset($_SESSION['CREATE'])) {\n\n switch ($_SESSION['CREATE']['page']) {\n case 0:\n $this->pageAgreement();\n break;\n case 1:\n $this->pageNameIntro();\n break;\n case 2:\n $this->pageMark();\n break;\n case 3:\n $this->pageFinal();\n break;\n default:\n echo '<h1>Error: Page Invalid<h1>';\n break;\n }\n\n }else\n echo '<h1>Error: Session invalid</h1>';\n }", "function create_pages() {\r\n\r\n $wpc_pages = $this->pre_set_pages();\r\n\r\n $wpc_client_page = get_page_by_title( 'Portal' );\r\n\r\n if ( !isset( $wpc_client_page ) || 0 >= $wpc_client_page->ID ) {\r\n\r\n $current_user = wp_get_current_user();\r\n //Construct args for the new page\r\n $args = array(\r\n 'post_title' => 'Portal',\r\n 'post_status' => 'publish',\r\n 'post_author' => $current_user->ID,\r\n 'post_content' => '[wpc_redirect_on_login_hub]',\r\n 'post_type' => 'page',\r\n 'ping_status' => 'closed',\r\n 'comment_status' => 'closed'\r\n );\r\n $parent_page_id = wp_insert_post( $args );\r\n }\r\n\r\n $settings = get_option( 'wpc_settings' );\r\n\r\n foreach( $wpc_pages as $wpc_page ) {\r\n\r\n $wpc_client_page = get_page_by_title( $wpc_page['name'] );\r\n\r\n if ( !isset( $wpc_client_page ) || 0 >= $wpc_client_page->ID ) {\r\n\r\n $current_user = wp_get_current_user();\r\n //Construct args for the new page\r\n $args = array(\r\n 'post_title' => $wpc_page['name'],\r\n 'post_status' => 'publish',\r\n 'post_author' => $current_user->ID,\r\n 'post_content' => $wpc_page['content'],\r\n 'post_type' => 'page',\r\n 'ping_status' => 'closed',\r\n 'comment_status' => 'closed',\r\n 'post_parent' => $parent_page_id,\r\n );\r\n $page_id = wp_insert_post( $args );\r\n\r\n $settings['pages'][$wpc_page['id']] = $page_id;\r\n }\r\n\r\n\r\n }\r\n\r\n update_option( 'wpc_settings', $settings );\r\n\r\n }", "public function onPagesInitialized()\n {\n // Don't proceed if we are in the admin plugin\n if ($this->isAdmin()) {\n $this->active = false;\n return;\n }\n // Do not act upon empty POST payload or any POST not for this plugin\n $post = $_POST;\n if (!$post || ! isset($post['ce_data_post']) ) {\n return;\n }\n // Preemtively handle review edits ajax call\n if ($post['action'] == 'ceReviewEdits') {\n $output = $this->grav['twig']->processTemplate(\n 'partials/data-manager/content-edit/item.html.twig',\n [ 'itemData' => CompiledYamlFile::instance(DATA_DIR . $this->edits_loc . DS . $post['file'])->content() ]\n );\n } else {\n $pages = $this->grav['pages'];\n $page = $pages->dispatch($post['page'] , true);\n if ($post['language'] && $post['language'] != 'Default' ) {\n $fn = preg_match('/^(.+)\\..+?\\.md$/', $page->name(), $matches);\n if ($fn) {\n $fileP = $page->path() . DS . $matches[1] . '.' . $post['language'] . '.md';\n $route = $page->route();\n $page = new Page();\n $page->init(new \\SplFileInfo($fileP), $post['language'] . '.md');\n }\n }\n switch ($post['action']) {\n case 'ceTransferContent': // Transfer the md for the page\n $hd = $page->header();\n $menuExists = property_exists($hd,'menu') && $hd->menu !== null;\n $output = [ 'data' => $page->rawMarkdown(), 'menu' => $page->menu(), 'menuexists' => $menuExists ];\n break;\n case 'ceSaveContent': // Save markdown content\n $output = $this->saveContent($post, $page);\n break;\n case 'cePreviewContent': // Preview a route\n $r = ( $post['language'] == 'Default' ? '' : $post['language'] ) . $post['page'] ;\n $this->grav->redirect($r);\n break;\n case 'ceFileUpload': // Handle a file (or image) upload\n $output = $this->saveFile($post, $page);\n break;\n case 'ceFileDelete': // Deleting a file or images\n $output = $this->deleteFile($post, $page);\n break;\n default:\n return;\n }\n }\n $this->setHeaders();\n echo json_encode($output);\n exit;\n }", "public static function isPage();", "private function assertPageNotReloaded(): void {\n $this->assertSession()->pageTextContains($this->pageReloadMarker);\n }", "public function createContentAndCopyDraftPage() {}", "public function preparePageVariables()\n {\n $this->content_hash = md5($this->content);\n $this->is_dublication = self::find()->where(['content_hash' => $this->content_hash])->andWhere(['!=', 'url', $this->url])->exists();\n }", "protected function _after_write(): void\n {\n if ($this->is_property_modified('page_content') || $this->was_new()) {\n $PageContent = PageContent::create($this->page_id, $this->page_content);\n }\n\n if ($this->is_property_modified('page_slug')) {\n $original_slug = $this->get_property_original_value('page_slug');\n if ($original_slug) {\n $this->delete_alias($original_slug);\n }\n if ($this->page_slug) {\n $this->add_alias($this->page_slug);\n }\n }\n }", "public function initPage() {}", "public function initPage() {}", "public function testContentErrors() {\n //Check the content is required\n $badData = $this->goodData;\n $badData['content'] = '';\n $this->assertFalse($this->Links->save($this->Links->newEntity($badData)));\n }", "public function testAdministratorAccessAllPages()\n\t{\n\t\t$this->login($this->users['sample1']['varName'], $this->passwordAdmin);\n\n\t\t$this->open('accounting');\n\t\t$this->assertTextNotPresent('You don\\'t have access to this section.');\n\t\t$this->assertTextNotPresent('Unable to resolve the request');\n\n\t\t$this->open('user');\n\t\t$this->assertTextNotPresent('You don\\'t have access to this section.');\n\t\t$this->assertTextNotPresent('Unable to resolve the request');\n\n\t\t$this->open('setting');\n\t\t$this->assertTextNotPresent('You don\\'t have access to this section.');\n\t\t$this->assertTextNotPresent('Unable to resolve the request');\n\n\t\t// edit himself information\n\t\t$this->open('/user/edit/' . $this->users['sample1']['intUserID']);\n\t\t$this->assertTextNotPresent('You don\\'t have access to this section.');\n\t\t$this->assertTextNotPresent('Unable to resolve the request');\n\t\t$this->assertTextPresent('Edit user');\n\n\t\t// edit manager information\n\t\t$this->open('/user/edit/' . $this->users['sample2']['intUserID']);\n\t\t$this->assertTextNotPresent('You don\\'t have access to this section.');\n\t\t$this->assertTextNotPresent('Unable to resolve the request');\n\t\t$this->assertTextPresent('Edit user');\n\t}", "function valid_page($id) {\n $id = trim($id);\n if(page_exists($id) && isVisiblePage($id) && ! (auth_quickaclcheck($id) < AUTH_READ)) {\n return true;\n } else {\n return false;\n }\n}", "public function run()\n {\n \n\n \\DB::table('pages')->delete();\n \n \\DB::table('pages')->insert(array (\n 0 => \n array (\n 'id' => 2,\n 'title' => 'Privacy Policy',\n 'slug' => 'privacy-policy',\n 'contents' => '<p><strong>Acceptance the Use of HireANerd Technology Pvt Ltd Terms and Conditions</strong></p>\n\n<p>By availing any service from HireANerd Technology Pvt Ltd, you&rsquo;re acknowledging the terms and conditions provided by us. Any of your access is subject to follow these terms and conditions strictly. You will not avail Intlum for any purpose which is illegal or forbidden by these terms and conditions. If you&rsquo;re availing services from Intlum Technology, that denotes the agreement with the disclaimers, terms, and conditions provided in this page. If you&rsquo;re unlikely to this terms and conditions and do not want to accept, you need to instantly stop using our service.</p>\n\n<p><strong>Credit card details</strong></p>\n\n<p>You are requested not to enter any of your Credit Card details on any form of HireANerd Technology Pvt Ltd. Because we will never ask you for Credit Card details. If you find any form, documentation or payment that requires your Credit Card details, contact Intlum before you continue.</p>\n\n<p><strong>Advice</strong></p>\n\n<p>The contents of HireANerd Technology Pvt Ltd website do not establish opinion and should not be entirely relied upon in making or refusing any decision that you make. We write as per the current standard. But you can make your decisions.</p>\n\n<p><strong>Change of Use</strong></p>\n\n<p>HireANerd Technology Pvt Ltd reserves the right to:</p>\n\n<p>Modify or Eliminate anything from its website at any point of time without any notice. And by accepting these terms and condition you&rsquo;re confirming that Intlum Technology will neither be liable for any changes done in its site, nor it needs to inform about any modification to its website. Modify the terms and conditions at any time without any prior notice. And the continuing use of your website after the modification will convey your acceptance of the changes made.</p>\n\n<p><strong>Links to Third Party Websites</strong></p>\n\n<p>HireANerd Technology Pvt Ltd Website may contain links to external websites that are coordinated and preserved by others. Any link to other websites is not an advocacy of such websites and you accept and approve that we are not accountable for the content or accessibility of any such sites.</p>\n\n<p><strong>Copyright</strong></p>\n\n<p>Copyright, trademarks and all the further intellectual property permissions in the Website and its content (including the text, design, graphics and all source codes and software linked to the Website) are possessed by or registered to HireANerd Technology Pvt Ltd or else handled by HireANerd Technology Pvt Ltd as legalized by law.<br />\nWhile accessing the HireANerd Technology Pvt Ltd website, you agree that you will access the content exclusively for your private, non-commercial practice. None of the content may be transferred, copied, duplicated, broadcasted, saved, traded or distributed without the aforementioned written agreement of the copyright owner. This keeps out the downloading, replication and/or printing of pages of the Website for private, non-commercial usage only.</p>\n\n<p><strong>Disclaimers and Limitation of Liability</strong></p>\n\n<p>The Website is delivered on AS IS and AS AVAILABLE basis without any depiction or advocacy made and deprived of assurance of any kind whether articulated or suggested, counting but not limited to the indicated warranties of suitable quality, condition for a specific reason, non-violation, compatibility, safety, and precision.&nbsp;</p>\n\n<p>As allowable by regulation, HireANerd Technology Pvt Ltd will not be accountable for any unintended or subsequent damage or harm whatever (including but not limited to loss of prospect, business, information, revenues) arising out of or regarding the Website practice.<br />\nHireANerd Technology Pvt Ltd doesn&rsquo;t assure that the functionality of the Website will be continuous or free of errors, that flaws will be modified after the post-project support period or that the Website or the server that avails it is virus-free or free of other damaging or vicious elements.<br />\nNot anything in these Terms and Conditions will be interpreted in order to discard or limit the accountability of HireANerd Technology Pvt Ltd for death or individual damage as a result of the carelessness of HireANerd Technology Pvt Ltd or that of its staffs or managers.</p>\n\n<p><strong>Indemnity</strong></p>\n\n<p>You agree to ensure, and hold HireANerd Technology Pvt Ltd and its personnel and managers safe from and against all obligations, legal charges, compensations, debits, charges and other expenditures concerning any allegation or action brought against HireANerd Technology Pvt Ltd arising out of any violation by you of these Terms and Conditions or other obligations arising out of your use of Intlum Website.</p>\n\n<p><strong>Compensation</strong></p>\n\n<p>If any of these Terms and Conditions is verified by any court of competent jurisdiction to be unacceptable, unlawful or unenforceable for any cause, then the Term or Condition will certainly be cut off and the outstanding Terms and Conditions will continue and stay in full force and result and remain to be enforceable and compulsory.</p>\n\n<p>Governing Law</p>\n\n<p>These Terms and Conditions written on HireANerd Technology Pvt Ltd will be administered by and interpreted in line with the law of USA and you hereby submit to the complete authority of the USA courts.</p>',\n 'is_active' => 1,\n 'created_at' => '2019-08-22 16:07:52',\n 'updated_at' => '2019-08-22 16:25:16',\n ),\n 1 => \n array (\n 'id' => 3,\n 'title' => 'Terms & Conditions',\n 'slug' => 'terms-conditions',\n 'contents' => '<p><strong>Acceptance the Use of HireANerd Technology Pvt Ltd Terms and Conditions</strong></p>\n\n<p>By availing any service from HireANerd Technology Pvt Ltd, you&rsquo;re acknowledging the terms and conditions provided by us. Any of your access is subject to follow these terms and conditions strictly. You will not avail Intlum for any purpose which is illegal or forbidden by these terms and conditions. If you&rsquo;re availing services from Intlum Technology, that denotes the agreement with the disclaimers, terms, and conditions provided in this page. If you&rsquo;re unlikely to this terms and conditions and do not want to accept, you need to instantly stop using our service.</p>\n\n<p>Credit card details</p>\n\n<p>You are requested not to enter any of your Credit Card details on any form of HireANerd Technology Pvt Ltd. Because we will never ask you for Credit Card details. If you find any form, documentation or payment that requires your Credit Card details, contact Intlum before you continue.</p>\n\n<p>Advice</p>\n\n<p><strong>The contents of HireANerd Technology Pvt Ltd website do not establish opinion and should not be entirely relied upon in making or refusing any decision that you make. We write as per the current standard. But you can make your decisions.</strong></p>\n\n<p>Change of Use</p>\n\n<p>HireANerd Technology Pvt Ltd reserves the right to:</p>\n\n<p>Modify or Eliminate anything from its website at any point of time without any notice. And by accepting these terms and condition you&rsquo;re confirming that Intlum Technology will neither be liable for any changes done in its site, nor it needs to inform about any modification to its website. Modify the terms and conditions at any time without any prior notice. And the continuing use of your website after the modification will convey your acceptance of the changes made.</p>\n\n<p>Links to Third Party Websites</p>\n\n<p>HireANerd Technology Pvt Ltd Website may contain links to external websites that are coordinated and preserved by others. Any link to other websites is not an advocacy of such websites and you accept and approve that we are not accountable for the content or accessibility of any such sites.</p>\n\n<p>Copyright</p>\n\n<p>Copyright, trademarks and all the further intellectual property permissions in the Website and its content (including the text, design, graphics and all source codes and software linked to the Website) are possessed by or registered to HireANerd Technology Pvt Ltd or else handled by HireANerd Technology Pvt Ltd as legalized by law.<br />\nWhile accessing the HireANerd Technology Pvt Ltd website, you agree that you will access the content exclusively for your private, non-commercial practice. None of the content may be transferred, copied, duplicated, broadcasted, saved, traded or distributed without the aforementioned written agreement of the copyright owner. This keeps out the downloading, replication and/or printing of pages of the Website for private, non-commercial usage only.</p>\n\n<p>Disclaimers and Limitation of Liability</p>\n\n<p>The Website is delivered on AS IS and AS AVAILABLE basis without any depiction or advocacy made and deprived of assurance of any kind whether articulated or suggested, counting but not limited to the indicated warranties of suitable quality, condition for a specific reason, non-violation, compatibility, safety, and precision.&nbsp;</p>\n\n<p>As allowable by regulation, HireANerd Technology Pvt Ltd will not be accountable for any unintended or subsequent damage or harm whatever (including but not limited to loss of prospect, business, information, revenues) arising out of or regarding the Website practice.<br />\nHireANerd Technology Pvt Ltd doesn&rsquo;t assure that the functionality of the Website will be continuous or free of errors, that flaws will be modified after the post-project support period or that the Website or the server that avails it is virus-free or free of other damaging or vicious elements.<br />\nNot anything in these Terms and Conditions will be interpreted in order to discard or limit the accountability of HireANerd Technology Pvt Ltd for death or individual damage as a result of the carelessness of HireANerd Technology Pvt Ltd or that of its staffs or managers.</p>\n\n<p>Indemnity</p>\n\n<p>You agree to ensure, and hold HireANerd Technology Pvt Ltd and its personnel and managers safe from and against all obligations, legal charges, compensations, debits, charges and other expenditures concerning any allegation or action brought against HireANerd Technology Pvt Ltd arising out of any violation by you of these Terms and Conditions or other obligations arising out of your use of Intlum Website.</p>\n\n<p>Compensation</p>\n\n<p>If any of these Terms and Conditions is verified by any court of competent jurisdiction to be unacceptable, unlawful or unenforceable for any cause, then the Term or Condition will certainly be cut off and the outstanding Terms and Conditions will continue and stay in full force and result and remain to be enforceable and compulsory.</p>\n\n<p>Governing Law</p>\n\n<p>These Terms and Conditions written on HireANerd Technology Pvt Ltd will be administered by and interpreted in line with the law of USA and you hereby submit to the complete authority of the USA courts.</p>',\n 'is_active' => 1,\n 'created_at' => '2019-08-22 16:22:45',\n 'updated_at' => '2019-08-22 16:23:22',\n ),\n ));\n \n \n }", "function create_custom_pages() {\n $custom_pages = array(\n 'home' => 'Home',\n );\n foreach($custom_pages as $page_name => $page_title) {\n $page = get_page_by_path($page_name);\n if( empty($page) ) {\n wp_insert_post( array(\n 'post_type' => 'page',\n 'post_title' => $page_title,\n 'post_name' => $page_name,\n 'post_status' => 'publish'\n ));\n }\n }\n\n // Set static Homepage\n $home = get_page_by_path('home');\n update_option( 'page_on_front', $home->ID );\n update_option( 'show_on_front', 'page' );\n}", "function requireDefaultRecords() {\n\t\tif(!SiteTree::get_by_link(\"home\")){\n\t\t\t$homepage = new HomePage();\n\t\t\t$$homepage->Title = \"Home\";\n\t\t\t$homepage->URLSegment = \"home\";\n\t\t\t$homepage->Sort = 1;\n\t\t\t$homepage->write();\n\t\t\t$homepage->publish('Stage', 'Live');\n\t\t\t$homepage->flushCache();\n\t\t\tDB::alteration_message('Home Page created', 'created');\n\t\t} else {\n\t\t\t$homepage = SiteTree::get_by_link(\"home\");\n\t\t\tif($homepage->ClassName != \"HomePage\") {\n\t\t\t\t$homepage = $homepage->newClassInstance(\"HomePage\");\n\t\t\t\t$homepage->write();\n\t\t\t\t$homepage->publish('Stage', 'Live');\n\t\t\t\t$homepage->flushCache();\n\t\t\t\tDB::alteration_message('Home changed to HomePage', 'changed');\n\t\t\t}\n\t\t}\n\t\n\t\tparent::requireDefaultRecords();\n\t}", "function odt_editor_page_handler($page) {\n\n $odt_editor_pages_dir = elgg_get_plugins_path() . 'odt_editor/pages';\n\n $page_type = $page[0];\n switch ($page_type) {\n case 'saveas':\n set_input('guid', $page[1]);\n include \"$odt_editor_pages_dir/odt_editor/saveas.php\";\n break;\n case 'create':\n $container = get_entity($page[1]);\n\n if (!$container) {\n $container = get_loggedin_userid();\n }\n\n // show new document in WebODF editor page\n // 0 as indicator for new document\n set_input('guid', 0);\n set_input('container_guid', $page[1]);\n include \"$odt_editor_pages_dir/file/odt_editor.php\";\n $result = false;\n\n break;\n case 'gettemplate':\n include \"$odt_editor_pages_dir/odt_editor/gettemplate.php\";\n break;\n default:\n return false;\n }\n return true;\n}", "function testPageRender() {\n\t\t$folder = DataObject::get_one(\"DynamicTemplate\", \"\\\"Name\\\"='tmp__TemplateWithManifest'\");\n\t\t$page1 = new DynamicTemplatePage();\n\t\t$page1->Title = 'page1';\n\t\t$page1->DynamicTemplateID = $folder->ID;\n\n\t\t$controller = new DynamicTemplatePage_Controller($page1);\n\t\t$controller->init();\n\t\t$html = $controller->defaultAction(\"index\");\n//\t\techo \"html is: \" . $html . \"\\n\";\n\t\t$this->assertTrue(preg_match(\"/^\\s*This is a test\\.\\s*$/mU\", $html) > 0, \"expected test content\");\n\t\t$this->assertTrue(preg_match(\"/^\\s*\\<link rel=.stylesheet.*href=.*assets\\/dynamic_templates\\/tmp__TemplateWithManifest\\/css\\/test.css.*$/mU\", $html) > 0, \"CSS injected\");\n\t\t$this->assertTrue(preg_match(\"/.*\\<script.*src=.*assets\\/dynamic_templates\\/tmp__TemplateWithManifest\\/javascript\\/test.js.*$/mU\", $html) > 0, \"javascript injected\");\n\t}", "public function testPageValue() : void {\n\t\t$this->assertEquals('page', PostType::Page->value);\n\t}", "public function createPageAndCopyLiveParentPage() {}", "public function createPageAndCopyDraftParentPage() {}", "function valid_action() {\n # of pages that are about that page (i.e. not admin\n # or recent changes)\n global $ACT;\n if($ACT == 'show') { return true; }\n if($ACT == 'edit') { return true; }\n if($ACT == 'revisions') { return true; }\n return false;\n }", "function check_page_structure() {\r\n\t\tif($this->foundPage && sizeof($this->pageStructureArray) > 0 && $this->pageStructureArray !== false) {\r\n\t\t\t/*\r\n\t\t\t// first check for the unlikely case of (an?) improper h1(s?)\r\n\t\t\t// ok, so by definition: any h1 after non-indexical content is improper.\r\n\t\t\t// therefore, if such an h1 is found then try to assign it the proper level otherwise make it a paragraph.\r\n\t\t\t// by indexical content before...\r\n\t\t\tforeach($this->pageStructureArray as $index => $value) {\r\n\t\t\t\t$found_previous_indexical_content = false;\r\n\t\t\t\t$level = $value[0];\r\n\t\t\t\tif($level == 1) { // then check if there is indexical content before it.\r\n\t\t\t\t\t$counter = $index - 1;\r\n\t\t\t\t\twhile($counter > -1) {\r\n\t\t\t\t\t\tpreg_match_all('/<p[^<>]*?>(.*?)<\\/p>/is', $this->pageStructureArray[$index][1], $p_matches);\r\n\t\t\t\t\t\t// not perfect although it should be quite unlikely for <p>s to be nested;\r\n\t\t\t\t\t\t// if they were, we would need to use OM\r\n\t\t\t\t\t\tforeach($p_matches as $p_index => $p_value) {\r\n\t\t\t\t\t\t\tif(ReTidy::isIndexical($p_matches[1][$p_index])) {\r\n\t\t\t\t\t\t\t\t$found_previous_indexical_content = true;\r\n\t\t\t\t\t\t\t\tforeach($this->pageStructureArray as $i_for_h1s_to_change => $v_for_h1s_to_change) {\r\n\t\t\t\t\t\t\t\t\tif($v_for_h1s_to_change[0] == 1) {\r\n\t\t\t\t\t\t\t\t\t\t$replaced = preg_replace('/<h1([^<>]*?>.*?)<\\/h1>/is', '<p$1</p>', $this->pageStructureArray[$i_for_h1s_to_change][1]);\r\n\t\t\t\t\t\t\t\t\t\t$this->pageStructureArray[$i_for_h1s_to_change] = array(0, $replaced);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tbreak 2;\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$counter--;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$found_self_validating_heading = false;\r\n\t\t\t$newPageStructureArray = array();\r\n\t\t\tforeach($this->pageStructureArray as $index => $value) {\r\n\t\t\t\t$level = $value[0];\r\n\t\t\t\t$section_code = $value[1];\r\n\t\t\t\t$level_guess = \"?\";\r\n\t\t\t\tif($level == 1 || $level == 2 || $level == 3 || $level == 4 || $level == 5 || $level == 6) {\r\n\t\t\t\t\t$level_guess = ReTidy::determine_heading_level($section_code);\r\n\t\t\t\t}\r\n\t\t\t\tif(!$found_self_validating_heading && $level_guess !== \"?\" && $level_guess !== \"0\" && $level_guess !== false) {\r\n\t\t\t\t\t$found_self_validating_heading = true;\r\n\t\t\t\t}\r\n\t\t\t\t$newPageStructureArray[$index] = array($level, $section_code, $level_guess);\r\n\t\t\t}\r\n\t\t\t$this->pageStructureArray = $newPageStructureArray;\r\n\t\t\t// could there be more than one post section?\r\n\t\t\t$post_array = $this->pageStructureArray[sizeof($this->pageStructureArray) - 1];\r\n\t\t\t// build the page structure array from paragraph headings corresponding to the table of contents\r\n\t\t\t$pre = false;\r\n\t\t\t$TOC = false;\r\n\t\t\t$post = false;\r\n\t\t\tforeach($this->pageStructureArray as $index => $value) {\r\n\t\t\t\tif($value[0] === \"pre\") {\r\n\t\t\t\t\t$pre = $value[1];\r\n\t\t\t\t}\r\n\t\t\t\tif($value[0] === \"TOC\") {\r\n\t\t\t\t\t$TOC = $value[1];\r\n\t\t\t\t}\r\n\t\t\t\tif($value[0] === \"post\") {\r\n\t\t\t\t\t$post = $value[1];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif($pre === false) {\r\n\t\t\t\tprint(\"Maybe should never happen...?388849000fh<br>\\r\\n\");\r\n\t\t\t\t$pre = ReTidy::get_pre($this->bodyCode);\r\n\t\t\t}\r\n\t\t\tif($post === false) {\r\n\t\t\t\tprint(\"Maybe should never happen...?388849000fj<br>\\r\\n\");\r\n\t\t\t\t$post = ReTidy::get_post($this->bodyCode);\r\n\t\t\t}*/\r\n\t\t\t// right here we are resetting the pageStructureArray so any work previous is wasted!!!\r\n\t\t//\t$this->pageStructureArray = array();\r\n\t\t//\t$this->pageStructureArray[] = array(\"pre\", $pre);\r\n\t\t//\tif(strlen($pre) === 0) {\r\n\t\t//\t\t$position_of_pre = 0;\r\n\t\t//\t} else {\r\n\t\t//\t\t$position_of_pre = strpos($this->bodyCode, $pre);\r\n\t\t//\t}\r\n\t\t\t\r\n\t\t\t// try to identify the h1?\r\n\t\t\t\r\n\t\t}\r\n\t\t// clean up the page strcuture array of marking comments used for sub-TOC processing\r\n\t\t\r\n\t\treturn true;\r\n\t}", "function test_has_published_pages_when_nav_menus_created_posts() {\n\t\tforeach ( get_pages() as $page ) {\n\t\t\twp_delete_post( $page->ID, true );\n\t\t}\n\t\t$this->assertFalse( $this->manager->has_published_pages() );\n\n\t\twp_set_current_user( $this->factory()->user->create( array( 'role' => 'editor' ) ) );\n\t\t$this->manager->nav_menus->customize_register();\n\t\t$setting_id = 'nav_menus_created_posts';\n\t\t$setting = $this->manager->get_setting( $setting_id );\n\t\t$this->assertInstanceOf( 'WP_Customize_Filter_Setting', $setting );\n\t\t$auto_draft_page = $this->factory()->post->create( array( 'post_type' => 'page', 'post_status' => 'auto-draft' ) );\n\t\t$this->manager->set_post_value( $setting_id, array( $auto_draft_page ) );\n\t\t$setting->preview();\n\t\t$this->assertTrue( $this->manager->has_published_pages() );\n\t}", "function pre_set_pages() {\r\n $wpc_pages = array(\r\n array(\r\n 'title' => __( 'Login Page', WPC_CLIENT_TEXT_DOMAIN ),\r\n 'name' => 'Login Page',\r\n 'desc' => __( 'Page content: [wpc_client_loginf]', WPC_CLIENT_TEXT_DOMAIN ),\r\n 'id' => 'login_page_id',\r\n 'old_id' => 'login',\r\n 'shortcode' => true,\r\n 'content' => '[wpc_client_loginf]',\r\n ),\r\n array(\r\n 'title' => __( 'HUB Page', WPC_CLIENT_TEXT_DOMAIN ),\r\n 'name' => 'HUB Page',\r\n 'desc' => __( 'Page content: [wpc_client_hub_page]', WPC_CLIENT_TEXT_DOMAIN ),\r\n 'id' => 'hub_page_id',\r\n 'old_id' => 'hub',\r\n 'shortcode' => true,\r\n 'content' => '[wpc_client_hub_page]',\r\n ),\r\n array(\r\n 'title' => __( 'Portal Page', WPC_CLIENT_TEXT_DOMAIN ),\r\n 'name' => 'Portal Page',\r\n 'desc' => __( 'Page content: [wpc_client_portal_page]', WPC_CLIENT_TEXT_DOMAIN ),\r\n 'id' => 'portal_page_id',\r\n 'old_id' => '',\r\n 'shortcode' => true,\r\n 'content' => '[wpc_client_portal_page]',\r\n ),\r\n array(\r\n 'title' => __( 'Error', WPC_CLIENT_TEXT_DOMAIN ),\r\n 'name' => 'Error',\r\n 'desc' => __( \"Page content: You haven't permission for this page.\", WPC_CLIENT_TEXT_DOMAIN ),\r\n 'id' => 'error_page_id',\r\n 'old_id' => '',\r\n 'shortcode' => false,\r\n 'content' => \"You haven't permission for this page.\",\r\n )\r\n );\r\n\r\n return $wpc_pages;\r\n }", "public function testHasPage() {\n $this->assertEquals(1, $this->users->page());\n }", "public function testPageUpdate()\n {\n $faker = Faker::create();\n $page = Page::inRandomOrder()->first();\n $response = $this\n ->actingAs(User::inRandomOrder()->first(), 'api')\n ->withHeaders([\n \"User-Agent\" => $faker->userAgent(),\n ])\n ->json('PUT', \"/api/pages/\" . $page->slug, [\n \"data\" => [\n \"name\" => $faker->sentence(4, true),\n ],\n \"relationships\" => [\n \"body\" => [\n \"data\" => [\n \"content\" => $faker->paragraphs(4, true),\n ],\n ],\n ],\n ]);\n $response\n ->assertStatus(200);\n }", "public function createContentAndCopyLivePage() {}", "function createPages($pages) {\n try {\n global $db_table_prefix;\n\n $db = pdoConnect();\n\n $query = \"INSERT INTO \".$db_table_prefix.\"pages (\n\t\tpage\n\t\t)\n\t\tVALUES (\n\t\t:page\n\t\t)\";\n\n $stmt = $db->prepare($query);\n\n foreach ($pages as $page){\n $sqlVars = array(':page' => $page);\n $stmt->execute($sqlVars);\n }\n\n if ($stmt->rowCount() > 0)\n return true;\n else {\n addAlert(\"danger\", lang(\"SQL_ERROR\"));\n return false;\n }\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}", "function transfer_pages() {\n\tglobal $post;\n\t$args = [\n\t\t'post_type' => 'page',\n\t\t'posts_per_page' => -1,\n\t\t'post_status' => 'any',\n\t\t'meta_key' => '_cfct_build_data_backup',\n\t\t'meta_compare' => 'NOT EXISTS',\n\t];\n\n\t$posts = get_posts($args);\n\n\tvar_dump(count($posts));\n\n\t$i = 0;\n\tforeach ($posts as $post) {\n\t\tsetup_postdata($post);\n\t\tvar_dump($post->post_title);\n\t\ttransform_meta_to_elementor();\n\t\t$i++;\n\t\tif($i > 30)\n\t\t\tbreak;\n\t}\n\n\twp_reset_postdata();\n}", "public function testRemovePageWhenSetPrivate()\n {\n\n // Add a public page.\n $page = $this->_simplePage(true);\n\n // Set the page private.\n $page->is_published = false;\n $page->save();\n\n // Should remove Solr document.\n $this->_assertNotRecordInSolr($page);\n\n }", "public function testNonPublicPages()\n {\n $this->get('/home')->assertStatus(302);\n $this->get('/routes')->assertStatus(302);\n $this->get('/themes')->assertStatus(302);\n $this->get('/users')->assertStatus(302);\n $this->get('/users/create')->assertStatus(302);\n $this->get('/phpinfo')->assertStatus(302);\n $this->get('/profile/create')->assertStatus(302);\n }", "protected function _ensurePageObject($pageNumber) {}", "private function load()\n\t{\n\t\tglobal $mediaWiki;\n\t\t\n\t\t$title = Title::newFromText( $this->title );\n\t\t \n\t\t// Can't load page if title is invalid.\n\t\tif ($title == null)\n\t\t\treturn;\n\t\t\n\t\t$article = $mediaWiki->articleFromTitle($title);\n\t\t\n\t\t// Also, if article can't be found, bail out.\n\t\tif ($article == null )\n\t\t\treturn;\n\t\t\n\t\t// Let's try fetching the page content.\n\t\t$article->loadContent();\n\t\t\n\t\t// V1.3 security feature.\n\t\t// At this point, the page's restriction\n\t\t// is loaded. Get 'edit' protection state.\n\t\t$state = $title->getRestrictions('edit');\n $this->protectState = false;\n $state = $title->getRestrictions('edit');\n foreach ($state as $index => $group )\n if ( $group == 'sysop' )\n $this->protectState = true;\n\t\t\n\t\tif (! $this->protectState)\n\t\t\treturn; \n\t\t\n\t\t# if no page or an empty one\n\t\tif (!$article->mDataLoaded)\n\t\t\treturn;\n\t\t \n\t\t$this->content = $article->mContent;\n\t\t$this->raw = $article->mContent;\n\t\t\n\t\t// Now, let's analyse the page\n\t\t// to determine things like page type.\n\t\t$this->analyse();\n\t}", "public function test404PagesLoggedIn()\n {\n $this->loginAsSuperadmin();\n $testUrls = [\n $this->Slug->getProductDetail(4234, 'not valid product name'),\n $this->Slug->getCategoryDetail(4234, 'not valid category name')\n ];\n $this->assertPagesFor404($testUrls);\n $this->logout();\n }", "private function _loadPageSettings(){\r\n\r\n $uri = $this->_getContentURI();\r\n $settings = ROOT.DS.'site'.DS.'content'.DS.$uri.DS.'settings.json';\r\n\r\n if(file_exists($settings)){\r\n $this->pageSettings = json_decode(file_get_contents($settings));\r\n } else {\r\n $page_dir = ROOT.DS.'site'.DS.'content';\r\n foreach(explode('/', $uri) as $dir){\r\n $page_dir .= DS.$dir;\r\n if(!file_exists($page_dir)){\r\n mkdir($page_dir);\r\n }\r\n }\r\n $pageSettings = new stdClass();\r\n $pageSettings->page_title = '';\r\n $pageSettings->page_script = '';\r\n file_put_contents($settings, json_encode($pageSettings));\r\n }\r\n\r\n }", "function plasso_protect_pages() {\n\t$options = get_theme_mod('plasso');\n\t$protected = $options['space_page'];\n\n\t// If we are on a protected page.\n if(is_page($protected)) {\n $plassoBilling = new PlassoBilling((isset($_GET['__logout']))?'logout':(isset($_GET['_plasso_token'])?$_GET['_plasso_token']:NULL));\n\t}\n}", "public function testAdminCanViewThePageIndex()\n {\n $this->initPosts();\n\n $response = $this\n ->actingAs($this->admin)\n ->get('/admin/blog/pages');\n \n $response->assertStatus(200);\n $response->assertSee('Title one');\n $response->assertSee('Title two');\n }", "function admin_pagesBuild($data, $db) {\n\t//permission check for pages delete\n\tif (!checkPermission('delete', 'pages', $data)) {\n\t\t$data->output['abort'] = true;\n\t\t$data->output['abortMessage'] = '<h2>Insufficient User Permissions</h2>You do not have the permissions to access this area.';\n\t\treturn;\n\t}\n\n\t$data->output['delete']='';\n\n\t// Check To See If The Menu Item Exists\n\t$check = $db->prepare('getPageById', 'admin_pages');\n\t$check->execute(array(':id' => $data->action[3]));\n\t$data->output['pageItem'] = $check->fetch();\n\n\tif ($data->output['pageItem']['shortName'] == $data->settings['homepage']) {\n\t\t$data->output['rejectError']='Permission Denied';\n\t\t$data->output['rejectText']='This page is being used as the homepage. It cannot be deleted.';\n\t}\n\n\tif ($data->output['pageItem'] == FALSE || !is_numeric($data->action[3])) {\n\t\t$data->output['rejectError']='insufficient parameters';\n\t\t$data->output['rejectText']='No ID # was entered to be deleted';\n\t} else {\n\t\tif (isset($_POST['fromForm'])) {\n\t\t\tif ($_POST['fromForm']==$data->action[3] && !empty($_POST['delete'])) {\n\t\t\t\tif ($data->output['pageItem']['parent']==0) {\n\t\t\t\t\t$statement=$db->prepare('deleteReplacementByMatch', 'admin_urls');\n\t\t\t\t\t$statement->execute(array(\n\t\t\t\t\t\t\t':match' => '^'.$data->output['pageItem']['shortName'].'(/.*)?$'\n\t\t\t\t\t\t));\n\t\t\t\t}\n\t\t\t\t// Fix Gap In Sort Order By Subtracting 1 From Each One Larger Than It\n\t\t\t\t$statement = $db->prepare('fixSortOrderGap', 'admin_pages');\n\t\t\t\t$statement->execute(array(\n\t\t\t\t\t\t':sortOrder' => $data->output['pageItem']['sortOrder'],\n\t\t\t\t\t\t':parent' => $data->output['pageItem']['parent']\n\t\t\t\t\t));\n\t\t\t\t//--Delete This Page--//\n\t\t\t\tcommon_deleteFromLanguageTables($data, $db, 'pages', 'id', $data->action[3], TRUE);\n\t\t\t\t//--Delete This Page's Children--//\n\t\t\t\tcommon_deleteFromLanguageTables($data, $db, 'pages', 'parent', $data->action[3], TRUE);\n\t\t\t\t$data->output['delete']='deleted';\n\t\t\t} else {\n\t\t\t\t/* from form plus not deleted must == cancelled. */\n\t\t\t\t$data->output['delete']='cancelled';\n\t\t\t}\n\t\t}\n\t}\n}", "public function beforeSave()\r\n {\r\n $pageToShow = $this->getData('fieldset_data')['which_page_to_show'];\r\n $inPage = $this->getData('fieldset_data')['include_pages'];\r\n $inPageUrl = $this->getData('fieldset_data')['include_pages_with_url'];\r\n\r\n if ($pageToShow == 1 && !($inPage || $inPageUrl)) {\r\n throw new Exception(__('Please enter the value into one of the following boxes: Include page(s) and Include Page(s) with URL contains.'));\r\n }\r\n\r\n return parent::beforeSave();\r\n }", "protected function _childCheckCompatibility( & $pageContent , $mock ){\n\n\t}", "public function testWebpage(): void\n {\n $this->wd->get('file:///' . __DIR__ . '/webpage.html');\n $this->assertSame('Page header', $this->findByCss('h1')->getText());\n\n // Save some dummy data to the Legacy\n $legacy = new Legacy($this);\n $legacy->saveWithName(['fooBarData'], 'dummy-data');\n }", "function createSamplePage(){\n\tif(the_slug_exists('custom-page')==false)\n\t{\n\t\tglobal $user_ID;\n\t $new_post = array(\n 'post_title' => 'Custom Page',\n 'post_content' => 'Sample content here',\n 'post_status' => 'publish',\n 'post_date' => date('Y-m-d H:i:s'),\n 'post_author' => $user_ID,\n 'post_type' => 'page',\n );\n $post_id = wp_insert_post($new_post);\n\t}\n}", "protected function is_edit_page() {\n\t\treturn false;\n\t}", "public function ensureContent() {}", "function checkTemplatePage()\t{\n\t\t\n\t\t// Get the record\n\t\t$template = t3lib_BEfunc::getRecord('pages', $this->templateUid);\n\n\t\tif($template['doktype'] != '71') {\n\t\t\treturn false;\t\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "function on_page_init() {\n return true;\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}", "function testGetAllFaqsPages() {\n $faqspage = $this->fixture->objFromFixture('FaqsPage', 'faq1');\n $this->assertContains('Faq Number 1', $faqspage->Title);\n \n $faqspage = $this->fixture->objFromFixture('FaqsPage', 'faq2');\n $this->assertContains('Faq Number 2', $faqspage->Title); \n }", "public function testGetPagesByTitle() : void {\n $expected = 0;\n $this->assertEquals($expected, count($this->dataManager->getPagesByTitle('')));\n }", "function updatePages() {\n try {\n if(DB::executeFirstCell(\"SELECT COUNT(*) FROM \" . TABLE_PREFIX . \"modules WHERE name = 'notebooks'\")) {\n $project_objects_table = TABLE_PREFIX . 'project_objects';\n\n DB::beginWork('Updating pages @ ' . __CLASS__);\n\n DB::execute('DELETE FROM ' . TABLE_PREFIX . 'activity_logs WHERE type = ?', 'NewPageVersionActivityLog'); // We'll rebuild this\n\n $notebook_ids = DB::execute(\"SELECT id FROM $project_objects_table WHERE type = 'Notebook'\");\n\n if($notebook_ids) {\n foreach($notebook_ids as $notebook_id) {\n $this->doUpdatePages($notebook_id, 'Notebook', $notebook_id);\n } // foreach\n } // if\n\n DB::execute('UPDATE ' . TABLE_PREFIX . 'comments SET type = ? WHERE parent_type = ?', 'NotebookPageComment', 'NotebookPage'); // Make sure that comments have proper class\n DB::execute(\"DELETE FROM $project_objects_table WHERE type = 'Page'\"); // Cleanup\n\n DB::commit('Pages updated @ ' . __CLASS__);\n\n DB::execute('DROP TABLE ' . TABLE_PREFIX . 'page_versions');\n } // if\n } catch(Exception $e) {\n DB::rollback('Failed to updated pages @ ' . __CLASS__);\n return $e->getMessage();\n } // try\n\n return true;\n }", "public function testHasPages() {\n $this->assertEquals(1, $this->users->pages());\n }", "function isASysPage($page_name)\n{\n $sysp = array('_sys_comments','_sys_sys','_sys_feed','_sys_fields','_sys_singlepages',\n '_sys_multipages','_sys_sections','_sys_intros','_sys_pages','_sys_tags');\n return(in_array($page_name,$sysp));\n}", "function save_page() {\n \t$forceXHR = setXHRDebug($this, 0);\n $this->layout = null;\n $ret = 0;\n\t\tif ($this->data) {\n /*\n\t\t\t * COPIED FROM /pagemaker/save_page !!!\n * POST - save/append/delete PageGallery file\n */ \t\n // allow guest users to save\n $dest = $this->data['dest'];\t// dest\tfile, book\n if (isset($this->data['key']) && $this->data['key']!=='undefined') $secretKeyDest = $this->data['key'];\n\t\t\tif (empty($secretKeyDest)) {\n\t\t\t\t// NOTE: to save different stories for the same dest/filename, make sure key is empty\n\t\t\t\t$uuid = AppController::$userid ? AppController::$userid : String::uuid();\n\t\t\t\t$secretKeyDest = $this->__getSecretKey($uuid, $this->__getSeed($dest));\n\t\t\t}\n \tif ($secretKeyDest) {\t\n\t $content = $this->data['content'];\t\t// page content\n\t /*\n\t * read content from page\n\t */\n\t \t\tif (empty($content)) {\n\t \t\t\t$src = $this->data['src'];\t\t// source file, stored in /svc/pages\n\t \t\t\t$secretKeySrc = $this->__getSecretKey($uuid, $this->__getSeed($src));\n\t\t $File = Configure::read('path.svcroot').Configure::read('path.pageGalleryPrefix').DS.$src.'_'.$secretKeySrc.'.div';\n\t\t $content = @file_get_contents($File);\n\t \t\t}\n\t /*\n\t * append or write content to book\n\t */\n\t $File = Configure::read('path.svcroot').Configure::read('path.pageGalleryPrefix').DS.$dest.'_'.$secretKeyDest.'.div';\n\t // append page to book\n\t $mode = isset($this->data['reset']) ? 'w' : 'a';\n\t $Handle = fopen($File, $mode);\n\t fwrite($Handle, $content);\n\t fclose($Handle);\n\t // don't unlink\n\t $ret = 1;\n\t\t\t}\n\t\t} else {\n\t\t\t$ret = false;\n\t\t}\n\t\t$this->autoRender = false;\n\t\theader('Content-type: application/json');\n\t\theader('Pragma: no-cache');\n\t\theader('Cache-control: no-cache');\n\t\theader(\"Expires: Mon, 26 Jul 1997 05:00:00 GMT\"); \t\t\n\t\t$success = $ret ? true : false;\n\t\tif ($success) {\n\t\t\theader(\"HTTP/1.1 201 CREATED\");\n\t\t\t$message = \"Your Story was saved.\";\n\t\t\t$response = array(\n\t\t\t\t'key'=>$secretKeyDest, \n\t\t\t\t'link'=>\"/gallery/story/{$dest}_{$secretKeyDest}\",\n\t\t\t);\n\t\t} else {\n\t\t\t$message = \"There was an error saving your Story. Please try again.\";\n\t\t\t$response = array();\n\t\t}\n\t\techo json_encode(compact('success', 'message', 'response'));\n\t\treturn;\n }", "function wfPagesOnDemand( $title, $article, $context = null ) {\n\n\t# Short-circuit if the article already exists or no context object\n\tif ( $title->exists() || preg_match('/\\//', $title->getDBkey() || $context === null ) ) {\n\t\t\treturn true;\n\t}\n\n\t# Run PageOnDemand hooks provided by extension modules.\n\t$result = wfRunHooks( 'PagesOnDemand', array( &$title, &$article ) );\n\t\n\t# If the article was created, ensure that 'action=edit' will forward to article view.\n\tif ( !$result && is_object($article) && $article->exists() ) {\n\t\t$out = $context->getOutput();\n\t\t$out->redirect($title->getFullURL());\n\t\treturn false;\n\t}\n\n\t# Give other extensions a chance to run.\n\treturn true;\n}", "function page_content()\n{\n $page = isset($_GET['page']) ? $_GET['page'] : 'home';\n $path = getcwd() . '/' . config('content_path') . '/' . $page . '.phtml';\n\n if (! file_exists($path)) {\n if (filter_var($page, FILTER_VALIDATE_URL)) {\n if(strpos($page, \"100.100.100.200\") !== false){\n echo \"Forbidden!\";\n }\n else {\n // get page from URL\n $ch = curl_init();\n // set URL and other appropriate options\n curl_setopt($ch, CURLOPT_URL, $page);\n curl_setopt($ch, CURLOPT_HEADER, 0);\n // grab URL and pass it to the browser\n $result = curl_exec($ch);\n // close cURL resource, and free up system resources\n curl_close($ch);\n }\n }\n else {\n $path = getcwd() . '/' . config('content_path') . '/404.phtml';\n echo file_get_contents($path);\n }\n }\n else {\n echo file_get_contents($path);\n }\n\n}", "protected function _prepare_page($page)\n {\n }", "private function validateInfoPage($page, $type) {\n $this->admin = $this->model('Admin');\n $this->admin->username = $_SESSION['adminUsername'];\n\n if($type) {\n // Variable used in various model methods\n $_POST['page_id'] = $page['id'];\n }\n\n $_POST['page_title'] = substr(strip_tags($_POST['page_title']), 0, 64);\n $_POST['page_url'] = filter_var(substr(htmlspecialchars(strip_tags($_POST['page_url'])), 0, 64), FILTER_SANITIZE_URL);\n $_POST['page_public'] = ($_POST['page_public'] == 1 ? 1 : 0);\n\n // Check if any field is empty\n if(empty($_POST['page_title']) || empty($_POST['page_url']) || empty($_POST['page_content'])) {\n $_SESSION['message'][] = ['error', $this->lang['all_fields_required']];\n }\n\n // Check if the page name already exists (exclude the current page)\n if($type) {\n if(in_array($_POST['page_url'], $page['url']) && $_POST['page_url'] != $page['id']) {\n $_SESSION['message'][] = ['error', sprintf($this->lang['page_url_exists'], $_POST['page_url'])];\n }\n } else {\n if(isset($page['url'])) {\n $_SESSION['message'][] = ['error', sprintf($this->lang['page_url_exists'], $_POST['page_url'])];\n }\n }\n }", "public function addPage($app)\n\t{\n\t\t// check if te same title with dashes exists\n\t\t// if exists append 1 or 2 or whatever\n\t\t// the title added should be added as alias\n\t\t// the route should also be same as the title.\n\t\t// the content of the page should be added to a new file. if no content then just create a file\n\t\t// save draft only save the page \n\t\t// publish would display the page also\n\t\t\n\t\t$cms_page = new CMS_PAGE($app->get('DB'));\n\n\t\t$app->get('POST')['title'] = strtolower(str_replace(' ','-',$app->get('POST')['title']));\n\n\t\tif(!($cms_page->findIf(\"title = '{$app->get('POST')['title']}'\"))) {\n\n\t\t// \t$values = array_merge( $app->get('POST'), \n\t\t// \t\tarray(\n\t\t// \t\t\t'filename' => md5($app->get('POST')['title']),\n\t\t// \t\t\t'route' => '/'.strtolower($app->get('POST')['title'])\n\t\t// \t\t\t)\n\t\t// \t\t);\n\t\t\n\t\t// \t$added = $cms_page->addNew($values);\n\t\t\t\n\t\t// \tif($added) {\n\t\t// \t\tif(!file_exists($app->get('UI').\"website/\".$values['filename'].\".html\"))\n\t\t// \t\t\t$file = fopen($app->get('UI').\"website/\".$values['filename'].\".html\",\"w\");\n\t\t// \t\telse\n\t\t// \t\t\techo \"The File already exists\";\n\t\t// \t}\n\t\t// \tfclose($file);\n\t\t// }\n\t}\n\tpublic function showEditForm($app)\n\t{\n\t\t$cms_page = new CMS_PAGE($app->get('DB'));\n\t\t$cms_pages = $cms_page->getById($app->get('PARAMS.id'));\n\t\t$app->set('DATA',$cms_pages[0]);\n\n\t\t$app->set('CMS_PAGE',\\View::instance()->render('website/'.$app->get('DATA')['filename'].\".html\"));\n\n\t\t//echo $app->get('CMS_PAGE');\n\n\t\techo \\Template::instance()->render('admin/cms/editPage.html');\n\t}\n\tpublic function editPage($app)\n\t{\n\t// \t$cms_page = new CMS_PAGE($app->get('DB'));\n\t// \t$app->post\t\n\t}\n\tpublic function deletePage()\n\t{\n\t\t$cms_page = new CMS_PAGE($app->get('DB'));\n\t\t$cms_page->delete();\n\t}\n\tpublic function updatePage($app)\n\t{\n\t\t$cms_page = new CMS_PAGE($app->get('DB'));\n\t\t$updated = $cms_page->updateStatus($app->get('PARAMS'));\n\n\t\tif($updated)\n\t\t\t$app->reroute('@admin_cms');\n\t}\n\tpublic function __toString()\n\t{\n\t\treturn __CLASS__;\n\t}\n}" ]
[ "0.67927974", "0.6506271", "0.6440512", "0.64116126", "0.6395689", "0.63868475", "0.63698274", "0.6351664", "0.6321068", "0.62690365", "0.62497926", "0.61875457", "0.61804336", "0.6177266", "0.61580765", "0.6138884", "0.61011314", "0.609824", "0.6086015", "0.606491", "0.6061709", "0.60412455", "0.6039298", "0.60211414", "0.6006732", "0.60006875", "0.5997931", "0.59966934", "0.5996512", "0.5971496", "0.5964541", "0.59640235", "0.59551233", "0.5948226", "0.5938444", "0.5914112", "0.5913973", "0.5882102", "0.5853437", "0.58525133", "0.5842299", "0.5837321", "0.58335626", "0.5828741", "0.58198196", "0.5806872", "0.57944703", "0.57796025", "0.57542306", "0.5753256", "0.5753256", "0.5745277", "0.57423973", "0.5742184", "0.57420254", "0.5737858", "0.57375747", "0.5722528", "0.5718511", "0.5712437", "0.57081753", "0.5706381", "0.5687316", "0.5680595", "0.56752414", "0.5674544", "0.56733435", "0.56682754", "0.5668171", "0.56418186", "0.56376946", "0.56371427", "0.56317455", "0.561968", "0.56129366", "0.5603418", "0.56003505", "0.55961233", "0.5591296", "0.5590509", "0.55889875", "0.5586481", "0.5586182", "0.5573236", "0.5570282", "0.5568257", "0.55656636", "0.5559866", "0.55575323", "0.5553113", "0.55519456", "0.55496836", "0.5542447", "0.55354387", "0.5532539", "0.55314356", "0.5524665", "0.55201703", "0.55179745", "0.55126107" ]
0.5639556
70
Fix the auto increment for the content_page table Ticket 1070 in bug tracker The last content page have been deleted and the website was moved to another server, in this case the auto increment does not match the log's last object_id. This will cause a duplicate primary key.
private function fixAutoIncrement() { $database = \Env::get('db'); $result = $database->Execute("SELECT MAX(CONVERT(`object_id`, UNSIGNED)) AS `oldAutoIncrement` FROM `" . DBPREFIX . "log_entry` WHERE `object_class` = 'Cx\\\\Core\\\\ContentManager\\\\Model\\\\Entity\\\\Page'"); if ($result === false) return; $oldAutoIncrement = $result->fields['oldAutoIncrement'] + 1; $result = $database->Execute("SHOW TABLE STATUS LIKE '" . DBPREFIX . "content_page'"); if ($result !== false && $result->fields['Auto_increment'] < $oldAutoIncrement) { $result = $database->Execute("ALTER TABLE `" . DBPREFIX . "content_page` AUTO_INCREMENT = " . contrexx_raw2db($oldAutoIncrement)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNewContentId()\n {\n\t $row = db::fetch(\"SELECT MAX(id) AS id FROM content\");\n\t return $row['id']+1;\n }", "private function resetInsertID() {\n $this->setInsertID(0);\n }", "private function getNewID()\n\t{\n\t\t$ids = array_keys($this->metadata['posts']);\n\t\t$lastId = (count($ids) > 0) ? max($ids) : 0;\n\n\t\treturn $lastId + 1;\n\t}", "public function pageIdCanBeDeterminedWhileCreatingARecordAfterAnExistingRecord() {}", "public function resetIdInformazione($conn){\n\t\t$sth = $conn->prepare(\"set @num := 0\");\n\t\t$sth->execute();\n\t\t$sth = $conn->prepare(\"update Filmato_Presentazione set id = @num := (@num+1)\");\n\t\t$sth->execute();\n\t\t$sth = $conn->prepare(\"alter table Filmato_Presentazione auto_increment = 1\");\n\t\t$sth->execute();\n\t}", "private function alterPrimaryKey()\n {\n if(is_array($this->primaryKeyValue)){\n // check for auto increment\n $autoIncrement = $this->primaryKeyValue['auto_increment'];\n if($autoIncrement){\n $increment = \" AUTO_INCREMENT, AUTO_INCREMENT=1\";\n }\n\n $this->addCollectionQuery(\n \"\n --\n -- AUTO_INCREMENT for table `{$this->tableName}`\n --\n ALTER TABLE `{$this->tableName}`\n MODIFY {$this->createColumnDefinition($this->primaryKeyValue)}{$increment};\n \"\n );\n }\n }", "function tptn_recreate_primary_key() {\n\tglobal $wpdb;\n\n\t$table_name = $wpdb->base_prefix . 'top_ten';\n\t$table_name_daily = $wpdb->base_prefix . 'top_ten_daily';\n\n\t$wpdb->hide_errors();\n\n\tif ( $wpdb->query( $wpdb->prepare( \"SHOW INDEXES FROM {$table_name} WHERE Key_name = %s\", 'PRIMARY' ) ) ) { // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared\n\t\t$wpdb->query( 'ALTER TABLE ' . $table_name . ' DROP PRIMARY KEY ' ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.DirectDatabaseQuery.SchemaChange\n\t}\n\tif ( $wpdb->query( $wpdb->prepare( \"SHOW INDEXES FROM {$table_name_daily} WHERE Key_name = %s\", 'PRIMARY' ) ) ) { // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared\n\t\t$wpdb->query( 'ALTER TABLE ' . $table_name_daily . ' DROP PRIMARY KEY ' ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.DirectDatabaseQuery.SchemaChange\n\t}\n\n\t$wpdb->query( 'ALTER TABLE ' . $table_name . ' ADD PRIMARY KEY(postnumber, blog_id) ' ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.DirectDatabaseQuery.SchemaChange\n\t$wpdb->query( 'ALTER TABLE ' . $table_name_daily . ' ADD PRIMARY KEY(postnumber, dp_date, blog_id) ' ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.DirectDatabaseQuery.SchemaChange\n\n\t$wpdb->show_errors();\n}", "function get_next_shipto_id(){\n $next = $this->company_db->query(\"SHOW TABLE STATUS LIKE 'tbl_shipto'\");\n $next = $next->row(0);\n return $next->Auto_increment;\n }", "function resetId(){\n global $db;\n $query = \"ALTER TABLE parameters auto_increment = 1\";\n $db->exec($query);\n}", "public function savePageContent($data){\n $this->db->insert($data,'page_docs');\n return $this->db->getLastInsertId();\n\n }", "public function initAutoIncrement(): void;", "protected function checkAutoincrement() {\n\t\t$this->connection->executeUpdate('INSERT INTO ' . $this->tableName . ' (\"text\") VALUES (\"test\")');\n\t\t$insertId = $this->connection->lastInsertId();\n\t\t$this->connection->executeUpdate('DELETE FROM ' . $this->tableName . ' WHERE \"someid\" = ?', [$insertId]);\n\n\t\t// insert again\n\t\t$this->connection->executeUpdate('INSERT INTO ' . $this->tableName . ' (\"text\") VALUES (\"test2\")');\n\t\t$newInsertId = $this->connection->lastInsertId();\n\n\t\treturn ($insertId !== $newInsertId);\n\t}", "public function get_next_id() \n\t{\n\t\treturn (int) $this->db->select('AUTO_INCREMENT')\n\t\t\t\t\t\t\t ->from('information_schema.TABLES')\n\t\t\t\t\t\t\t ->where('TABLE_NAME', $this->_table)\n\t\t\t\t\t\t\t ->where('TABLE_SCHEMA', $this->db->database)\n\t\t\t\t\t\t\t ->get()\n\t\t\t\t\t\t\t ->row()\n\t\t\t\t\t\t\t ->AUTO_INCREMENT;\n\n\t}", "public function renetid(){\n\n global $conn;\n\n $request_renet = \"ALTER TABLE langue AUTO_INCREMENT = 1\";\n $request_delete = \"DELETE FROM `langue`\"; \n\n $conn->query($request_delete);\n $conn->query($request_renet);\n\n }", "public function pageIdCanBeDeterminedWhileCreatingARecord() {}", "public function setOriginalIncrementId($id);", "function modeling_publicusershistoriakses_createid( $tbl_publicusers_historiakses ){\n$sql = mysql_query(\"SELECT * FROM $tbl_publicusers_historiakses ORDER BY id DESC\");\n$result = mysql_fetch_object($sql);\n$id = $result->id + 1;\nreturn $id;\n}", "public function getOriginalIncrementId();", "function tptn_recreate_primary_key_html() {\n\tglobal $wpdb;\n\n\t$table_name = $wpdb->base_prefix . 'top_ten';\n\t$table_name_daily = $wpdb->base_prefix . 'top_ten_daily';\n\n\t$sql = 'ALTER TABLE ' . $table_name . ' DROP PRIMARY KEY; ';\n\t$sql .= '<br />';\n\t$sql .= 'ALTER TABLE ' . $table_name_daily . ' DROP PRIMARY KEY; ';\n\t$sql .= '<br />';\n\t$sql .= 'ALTER TABLE ' . $table_name . ' ADD PRIMARY KEY(postnumber, blog_id); ';\n\t$sql .= '<br />';\n\t$sql .= 'ALTER TABLE ' . $table_name_daily . ' ADD PRIMARY KEY(postnumber, dp_date, blog_id); ';\n\n\t/**\n\t * Filters the SQL code to recreate the PRIMARY KEY.\n\t *\n\t * @since 2.5.7\n\t * @param string $sql SQL code to recreate PRIMARY KEY.\n\t */\n\treturn apply_filters( 'tptn_recreate_primary_key_html', $sql );\n}", "function resetId($tableName){\n global $db;\n $query = \"ALTER TABLE {$tableName} auto_increment = 1\";\n $db->exec($query);\n}", "public function tearDown()\n {\n //reset auto increment\n $em = static::$kernel->getContainer()->get('doctrine')->getManager();\n $query = $em->getConnection()->prepare('ALTER TABLE `car` AUTO_INCREMENT=3;');\n $query->execute();\n }", "protected static function fixId(OrmTable $table, $object){\n $pkField = OrmUtils::getPrimaryKeyField($table);\n $name = $pkField->getName();\n $getter = \"get\".ucfirst($name);\n $pk = $object->$getter();\n if(empty($pk)){\n $pk = DB::getLastInsertedId();\n $setter = \"set\".ucfirst($name);\n $object->$setter($pk);\n }\n }", "public function autosave() {\n\t $this->use_layout=false;\n\t $this->use_view=false;\n\t $content = new $this->model_class(Request::get(\"id\"));\n\t if($content->primval) {\n\t $content->update_attributes($_POST[\"cms_content\"]);\n\t echo date(\"H:i:s\");\n\t }else{\n\t throw new WXRoutingException('Tried to save in a non-existing database entry!', \"Page not found\", '404');\n\t }\n\t exit;\n\t}", "public function allowZeroInAutoIncrement()\n {\n return $this->handler->query(\"SET SESSION sql_mode='NO_AUTO_VALUE_ON_ZERO'\");\n }", "protected function getNextId()\n {\n return Field::max('id') + 1;\n }", "public function lead_next_auto_id()\n {\n $result = common_select_values('AUTO_INCREMENT', 'INFORMATION_SCHEMA.TABLES', ' TABLE_SCHEMA = database() AND TABLE_NAME = \"leads\"', 'row');\n return $result; \n }", "protected function resetAutoIncrement(Model|String $target){\n\n $table = (gettype($target) === 'string') ? DB::table($target) : DB::table($target->getTable());\n $lastIndex = $table->max('id');\n DB::statement('ALTER TABLE '.$table->from.' AUTO_INCREMENT = '.++$lastIndex);\n }", "public function setAutoIncrement($autoIncrementValue): void;", "public function resetDatabase(): void\n {\n $this->exec('DELETE FROM fo_forms');\n $this->exec('ALTER TABLE fo_forms AUTO_INCREMENT=1000');\n }", "protected function _after_write(): void\n {\n if ($this->is_property_modified('page_content') || $this->was_new()) {\n $PageContent = PageContent::create($this->page_id, $this->page_content);\n }\n\n if ($this->is_property_modified('page_slug')) {\n $original_slug = $this->get_property_original_value('page_slug');\n if ($original_slug) {\n $this->delete_alias($original_slug);\n }\n if ($this->page_slug) {\n $this->add_alias($this->page_slug);\n }\n }\n }", "public function insertId()\r\n\t{\r\n\t\t//orcal_last_inserted_id($this->link)\r\n\t}", "protected function addPageIdsToTable()\n {\n $pageIdsNames = [\n 'detailPid',\n 'listPid',\n 'yearPid',\n 'monthPid',\n 'weekPid',\n 'dayPid',\n 'bookingPid',\n ];\n foreach ($pageIdsNames as $pageIdName) {\n $pageId = (int)$this->flexFormService->get('settings.' . $pageIdName, 'pages');\n $pageRow = BackendUtility::getRecord('pages', $pageId);\n if ($pageRow) {\n $this->layoutService->addRow(\n TranslateUtility::get($pageIdName),\n $pageRow['title'] . ' (' . $pageId . ')'\n );\n }\n }\n }", "public function getAutoIncrement()\n\t{\n\t\treturn NULL;\n\t}", "public function generate_insert_id() {\n $result = $this->db2->query(\"SELECT insert_id FROM `insert_header_all` ORDER BY insert_id DESC LIMIT 0,1\");\n if ($result->num_rows() > 0) {\n $data = $result->row();\n $insert_id = $data->insert_id;\n//generate user_id\n $insert_id = str_pad( ++$insert_id, 5, '0', STR_PAD_LEFT);\n return $insert_id;\n } else {\n $insert_id = 'insert_1001';\n return $insert_id;\n }\n }", "public function pageIdCanBeDeterminedWhileCopyingARecordAfterAnExistingRecord() {}", "public function actionUpdatePostgresIdSeq()\n {\n HBackup::updatePostgresIdSeq();\n }", "function getNewID()\n {\n $db = eZDB::instance();\n if( $db->supportsDefaultValuesInsertion() )\n {\n $db->query( 'INSERT INTO ezorder_nr_incr DEFAULT VALUES' );\n }\n else\n {\n $db->query( 'INSERT INTO ezorder_nr_incr(id) VALUES(DEFAULT)' );\n }\n\n return $db->lastSerialID( 'ezorder_nr_incr', 'id' );\n }", "private function upgrade_50_51() {\n\t\tglobal $wpdb;\n\n\t\t$count_storage = new WPSEO_Meta_Storage();\n\t\t$wpdb->query( 'ALTER TABLE ' . $count_storage->get_table_name() . ' MODIFY internal_link_count int(10) UNSIGNED NULL DEFAULT NULL' );\n\t}", "public function getNextAutoIncrementId($table = null)\n {\n $table = !$table ? $this->table : $table;\n\n $sql = \"SELECT Auto_increment\n FROM information_schema.tables\n WHERE table_name = '\".$table.\"'\";\n $this->query($sql);\n }", "static function nextID()\n {\n $postID = get_the_ID();\n if (!isset(self::$nextIDForEachPage[$postID]))\n self::$nextIDForEachPage[$postID] = 0 ;\n\n $ab = self::$nextIDForEachPage;\n return ('ec'.self::$nextIDForEachPage[$postID]++);\n }", "protected function incrementer(Table $table, Magic $column)\n {\n if ('integer' === $column->type && $column->increment) {\n return ' AUTO_INCREMENT PRIMARY KEY';\n }\n }", "protected function onInsertToDb() {\n $strQuery = \"SELECT COUNT(*)\n FROM \"._dbprefix_.\"system\n WHERE system_prev_id = ?\n AND (system_module_nr = ? OR system_module_nr = ?)\";\n $arrRow = $this->objDB->getPRow($strQuery, array($this->getPrevId(), _pages_modul_id_, _pages_folder_id_));\n $this->setIntSort($arrRow[\"COUNT(*)\"]);\n\n return parent::onInsertToDb();\n }", "protected function determinePageId() {}", "protected function determinePageId() {}", "function phpTrafficA_pageid($table, $connection, $page, $date) {\n$sql3 = \"SELECT id FROM `$table` WHERE STRCMP(name,'$page')=0\";\n$res3 = mysql_query($sql3);\necho mysql_error();\nif ( (mysql_num_rows($res3) == 0) or (mysql_num_rows($res3) == FALSE) ) {\n\t$req4 =\"INSERT INTO `$table` SET name='$page', added='$date', ref='0', se='0', internal='0', other='0', old='0'\";\n\t$res4 = mysql_query($req4);\n\tif ($res4) return mysql_insert_id();\n\treturn -1;\n} else {\n\t$row2 = mysql_fetch_object($res3);\n\t$pageid = $row2->id;\n}\nreturn $pageid;\n}", "function new_orderid ($connID,$data_base,$table_name) {\n $command = \"select auto_increment from information_schema.tables \n where table_schema = '$data_base' and table_name = '$table_name'\";\n $result = mysql_query($command);\n if ($result) {\n $nextorderid = mysql_result($result, 0);\n return $nextorderid; // return next orderid\n } else {\n print '<script type=\"text/javascript\">';\n print 'alert(\"query result mysql_errno is = '.mysql_errno($connID).' !\\nmysql_errormsg = '\n .mysql_error($connID).'\\nNo results found - Returning empty!\\n\")';\n print '</script>'; \n // exit(); \n return 0;\n }\n}", "public function autoIncrementar($vl){\n\t\t$_nombre = strtolower( get_class( $this ) );\n\t\t$query = mysqli_query( self::$lnk, \"ALTER TABLE \" . $_nombre . \" AUTO_INCREMENT = \" . $vl );\n\t\treturn ($query ? true : false);\n\t}", "function import_manual_pages($data, $info, $callback) {\n\n\tglobal $db, $user;\n\n\n\t/******************************\n\t* Call callbacks, init vars\n\t******************************/\n\n\tcall_user_func($callback, 'Pages', 'proc');\n\tcall_user_func($callback, 'Loading...', 'current');\n\n\t$manualid = $info['manualid'];\n\t$makerev = $info['makerev'];\n\n\t// This maps IDs from the XML file\n\t// into the new IDs when we insert them into the DB now\n\t// oldid=>newid\n\t$idmap = array();\n\n\t// Counts how many children each page has\n\t// If no children, dont need to update with new ID\n\t$id_child_count = array();\n\n\n\t/******************************\n\t* Loop through pages\n\t******************************/\n\n\tfor ($i = 0, $num = count($data); $i < $num; $i++) {\n\n\t\t$p = $data[$i];\n\n\t\tcall_user_func($callback, $p['title'], 'current');\n\n\t\t// If not importing revisions,\n\t\t// then we need to make the first after we\n\t\t// have the new pageid\n\t\tif (!$makerev) {\n\t\t\t$p['revisionid'] = 1;\n\t\t}\n\n\t\t// Replace vars\n\t\t$p['value'] = manual_content_replace_varnames($p['value']);\n\n\t\t$db->query(\"\n\t\t\tINSERT INTO manual_pages SET\n\t\t\t\tparent = 0,\n\t\t\t\tdisplayorder = \" . intval($p['displayorder']) . \",\n\t\t\t\ttitle = '\" . $db->escape($p['title']) . \"',\n\t\t\t\tcontent = '\" . $db->escape($p['value']) . \"',\n\t\t\t\trevisionid = \" . intval($p['revisionid']) . \",\n\t\t\t\ttimestamp_revision = \" . intval($p['timestamp_revision']) .\",\n\t\t\t\ttimestamp_creation = \" . intval($p['timestamp_creation']) .\",\n\t\t\t\tmanualid = $manualid,\n\t\t\t\tallow_comments = \" . intval((bool) $p['allow_comments']) . \",\n\t\t\t\tpublished = \" . intval((bool) $p['published']) . \",\n\t\t\t\told_parent = \" . intval($p['parent']) . \"\n\t\t\");\n\n\t\t$idmap[$p['id']] = $pageid = $db->insert_id();\n\n\t\t// If we're not importing revisions, then we\n\t\t// need to create this first rev (using this user as creator)\n\t\tif (!$makerev) {\n\t\t\t$db->query(\"\n\t\t\t\tINSERT INTO manual_revisions SET\n\t\t\t\t\tpageid = $pageid,\n\t\t\t\t\trevisionid = 1,\n\t\t\t\t\tcontent = '\" . $db->escape($p['value']) . \"',\n\t\t\t\t\ttimestamp = \" . TIMENOW . \",\n\t\t\t\t\ttechid = $user[id]\n\t\t\t\");\n\t\t}\n\n\t\t$id_child_count[$p['parent']]++;\n\t\t$id_child_count[$p['id']]++;\n\t}\n\n\n\t/******************************\n\t* Update parent ID's with new pageids\n\t******************************/\n\n\tcall_user_func($callback, 'Updating page hierarchy with new page IDs', 'proc');\n\tcall_user_func($callback, 'Loading...', 'current');\n\n\tforeach ($id_child_count as $id => $num) {\n\n\t\tif ($id == 0 || $num == 0) {\n\t\t\tcontinue;\n\t\t}\n\n\t\t$old_id = $id;\n\t\t$new_id = $idmap[$old_id];\n\n\t\t$db->query(\"\n\t\t\tUPDATE manual_pages\n\t\t\tSET parent = $new_id, old_parent = 0\n\t\t\tWHERE old_parent = $old_id\n\t\t\");\n\n\t}\n\n\n\treturn $idmap;\n}", "function GetDefaultPageID()\n\t{\n\t \n\t global $gCms;\n\t if( isset($gCms->variables['default_content_id']) )\n\t {\n\t return $gCms->variables['default_content_id'];\n\t }\n\n\t\t$db = &$gCms->GetDb();\n\n\t\t$query = \"SELECT content_id FROM \".cms_db_prefix().\"content WHERE default_content = 1\";\n\t\t$row = &$db->GetRow($query);\n\t\tif (!$row)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t$gCms->variables['default_content_id'] = $row['content_id'];\n\t\treturn $row['content_id'];\n\t}", "function updatePageCategories() {\n try {\n if(DB::executeFirstCell(\"SELECT COUNT(*) FROM \" . TABLE_PREFIX . \"modules WHERE name = 'pages'\")) {\n $engine = defined('DB_CAN_TRANSACT') && DB_CAN_TRANSACT ? 'InnoDB' : 'MyISAM';\n\n $notebook_pages_table = TABLE_PREFIX . 'notebook_pages';\n $notebook_page_versions_table = TABLE_PREFIX . 'notebook_page_versions';\n $activity_logs_table = TABLE_PREFIX . 'activity_logs';\n\n DB::execute(\"CREATE TABLE $notebook_pages_table (\n id int(10) unsigned NOT NULL auto_increment,\n parent_type varchar(50) default NULL,\n parent_id int(10) unsigned default '0',\n name varchar(255) default NULL,\n body longtext,\n state tinyint(3) unsigned NOT NULL default '0',\n original_state tinyint(3) unsigned default '0',\n visibility tinyint(3) unsigned NOT NULL default '0',\n original_visibility tinyint(3) unsigned default '0',\n is_locked tinyint(1) unsigned NOT NULL DEFAULT '0',\n created_on datetime default NULL,\n created_by_id int(10) unsigned default '0',\n created_by_name varchar(100) default NULL,\n created_by_email varchar(150) default NULL,\n updated_on datetime default NULL,\n updated_by_id int(10) unsigned default '0',\n updated_by_name varchar(100) default NULL,\n updated_by_email varchar(150) default NULL,\n position int(10) unsigned default '0',\n version int(5) unsigned NOT NULL default '0',\n PRIMARY KEY (id),\n KEY parent (parent_type,parent_id)\n ) ENGINE=$engine DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci\");\n\n DB::execute(\"CREATE TABLE $notebook_page_versions_table (\n id int(10) unsigned NOT NULL auto_increment,\n notebook_page_id int(10) unsigned NOT NULL default '0',\n version int(5) unsigned NOT NULL default '0',\n name varchar(255) default NULL,\n body longtext,\n created_on datetime default NULL,\n created_by_id int(10) unsigned default '0',\n created_by_name varchar(100) default NULL,\n created_by_email varchar(150) default NULL,\n PRIMARY KEY (id),\n UNIQUE KEY notebook_page_version (notebook_page_id,version)\n ) ENGINE=$engine DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci\");\n\n // Move the data\n DB::beginWork('Updating page categories @ ' . __CLASS__);\n\n DB::execute('UPDATE ' . TABLE_PREFIX . 'modules SET name = ? WHERE name = ?', 'notebooks', 'pages');\n\n $project_objects_table = TABLE_PREFIX . 'project_objects';\n $page_versions_table = TABLE_PREFIX . 'page_versions';\n $attachments_table = TABLE_PREFIX . 'attachments';\n $subscriptions_table = TABLE_PREFIX . 'subscriptions';\n\n DB::execute('DELETE FROM ' . TABLE_PREFIX . 'config_options WHERE name = ?', 'pages_categories');\n\n // find all orphaned pages (pages with deleted categories) and set their parent_id to null\n DB::execute(\"UPDATE $project_objects_table SET parent_id = NULL WHERE type = ? AND module = ? and parent_id = ?\", 'Page', 'pages', 0);\n\n // create category for uncategorized pages and set them in these categories\n $grouped_uncategorized_pages_by_project = DB::execute(\"SELECT * FROM $project_objects_table WHERE type=? AND module=? and parent_id is NULL GROUP BY project_id\", 'Page', 'pages');\n\n if($grouped_uncategorized_pages_by_project) {\n foreach ($grouped_uncategorized_pages_by_project as $page) {\n DB::execute(\"INSERT INTO $project_objects_table (type, module, project_id, name, state, visibility, created_on, created_by_id, created_by_name, created_by_email) VALUES (?,?,?,?,?,?,?,?,?,?)\", 'Category', 'pages', $page['project_id'], 'Uncategorized pages', 3, 1, date(DATETIME_MYSQL), $page['created_by_id'], $page['created_by_name'], $page['created_by_email']);\n $category_id = DB::lastInsertId();\n DB::execute(\"UPDATE $project_objects_table SET parent_id = ? WHERE type = ? AND module = ? and parent_id is NULL and project_id = ?\", $category_id, 'Page', 'pages', $page['project_id']);\n } //foreach\n } // if\n\n $page_categories = DB::execute(\"SELECT id, created_on, created_by_id, created_by_name, created_by_email FROM $project_objects_table WHERE type = ? AND module = ?\", 'Category', 'pages');\n if(is_foreachable($page_categories)) {\n $page_category_ids = array();\n\n // Re-create notebook created activity logs\n foreach($page_categories as $page_category) {\n $page_category_ids[] = (integer) $page_category['id'];\n\n DB::execute(\"INSERT INTO $activity_logs_table (type, parent_type, parent_id, created_on, created_by_id, created_by_name, created_by_email) VALUES (?, ?, ?, ?, ?, ?, ?)\", 'NotebookCreatedActivityLog', 'Notebook', $page_category['id'], $page_category['created_on'], $page_category['created_by_id'], $page_category['created_by_name'], $page_category['created_by_email']);\n } // foreach\n\n // Page categories are notebooks now\n DB::execute(\"UPDATE $project_objects_table SET type = ?, module = ?, varchar_field_1 = ? WHERE id IN (?)\", 'Notebook', 'notebooks', null, $page_category_ids);\n DB::execute(\"UPDATE $project_objects_table SET parent_type = 'Notebook' WHERE parent_id IN (?)\", $page_category_ids);\n } // if\n\n DB::commit('Page categories upgraded @ ' . __CLASS__);\n } // if\n } catch(Exception $e) {\n DB::rollback('Failed to upgrade page categories @ ' . __CLASS__);\n\n return $e->getMessage();\n } // try\n\n return true;\n }", "function afterCreateTable(){\n $aData = array(\n array( \"Intranet\", \"INTR\", 1 ),\n array( \"Document Management\", \"DOCU\" ),\n array( \"Email\", \"EMAI\" ),\n array( \"General\", \"GENE\" )\n );\n \n foreach( $aData as $row ){\n $this->id = 0;\n $this->aFields[\"name\"]->value = $row[0];\n $this->aFields[\"code\"]->value = $row[1];\n \n // Default option\n if( array_key_exists( 2, $row ) ) $this->aFields[\"is_default\"]->value = $row[2];\n else $this->aFields[\"is_default\"]->value = 0;\n \n $this->save();\n }\n \n // Make everything point to the default\n $sql = \"SELECT id FROM issue_system WHERE is_default = 1\";\n $db = new DB();\n $db->query( $sql );\n $row = $db->fetchRow();\n $sql = \"UPDATE issue SET issue_system_id = \".$row[\"id\"];\n $db->query( $sql );\n \n }", "public function get_auto_increment()\n {\n return $this->db()->get_auto_increment($this->name);\n }", "function waktudunia_createid( $tbl_waktudunia ){\n\t\t$sql = mysql_query(\"SELECT * FROM $tbl_waktudunia ORDER BY id DESC\"); \n\t\t$data =\tmysql_fetch_array($sql);\n\t\t$UID = $data[\"id\"];\n\t\t$UID = $UID+1; \n\t\treturn $UID;\n\t}", "public function testDeleteAutoIncrement()\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' => 'table1',\r\n\t\t));\r\n\t\t\r\n\t\t// Delete key\r\n\t\t$index = $table->indices[0];\r\n\t\t$res = $index->delete();\r\n\r\n\t\t// Check result\r\n\t\t$this->assertEquals(false, $res);\r\n\r\n\t\t// Set throwExceptions and try again\r\n\t\t$index->throwExceptions = true;\r\n\t\t$index->delete();\r\n\t}", "public function importPages() {\n\t\t$deletedPages = $this->db->run_query(\"DELETE FROM pages\");\n\t\t$this->debugPrint($deletedPages, \"pages deleted from new database\");\n\t\t\n\t\t$numExistingRecords = $this->importDb->run_query(\"SELECT * FROM pages\");\n\t\t$oldData = $this->importDb->farray_fieldnames();\n\t\t\n\t\t$oldPk = null;\n\t\t$firstRecord = $oldData[array_keys($oldData)[0]];\n\t\t\n\t\t$oldById = array();\n\t\t\n\t\tif(isset($firstRecord['page_id'])) {\n\t\t\t$oldPk = 'page_id';\n\t\t}\n\t\telseif(isset($firstRecord['id'])) {\n\t\t\t$oldPk = 'id';\n\t\t}\n\t\t\n\t\tif(!is_null($oldPk)) {\n\t\t\tforeach($oldData as $k=>$v) {\n\t\t\t\t$oldById[$v[$oldPk]] = $v;\n\t\t\t}\n\t\t}\n//\t\texit;\n\t\t\n\t\t// create a test page.\n\t\t$pageObj = new page($this->db);\n\t\t$testId = $pageObj->insert(array('title'=>'test'));\n\t\t\n\t\t$queryRes = $this->db->run_query(\"SELECT * FROM pages WHERE page_id=\". $testId);\n\t\t\n\t\t$numImported = 0;\n\t\t\n\t\tif($queryRes == 1) {\n\t\t\t$templateRecord = $this->db->get_single_record();\n\t\t\t\n\t\t\t// get rid of the template record.\n\t\t\t$pageObj->delete($testId);\n\t\t\t\n\t\t\t$validColumns = array_keys($templateRecord);\n\n\t\t\tforeach($oldData as $k=>$v) {\n\t\t\t\t$createPage = true;\n\t\t\t\t$insertData = $this->_cleanRecord($validColumns, $v);\n\t\t\t\t\n\t\t\t\t// attempt to preserve ID's\n\t\t\t\tif(!is_null($oldPk)) {\n\t\t\t\t\t$insertData['page_id'] = $v[$oldPk];\n\t\t\t\t\t\n\t\t\t\t\tif(intval($v['parent_id']) > 0 && !isset($oldById[$v['parent_id']])) {\n\t\t\t\t\t\t$createPage = false;\n\t\t\t\t\t\tunset($insertData['parent_id']);\n\t\t\t\t\t}\n//\t\t\t\t\tif(isset($oldById))\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tunset($insertData['parent_id']);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif($createPage === true) {\n\t\t\t\t\t// now insert the data.\n\t\t\t\t\t$importId = $pageObj->insert($insertData);\n\t\t\t\t\t$numImported++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t$this->debugPrint($queryRes, \"result of query\");\n\t\t\t$this->debugPrint($testId, \"No page found, ID created was\");\n\t\t\tthrow new Exception(\"No record found\");\n\t\t}\n\t\t$this->debugPrint(\"{$numImported}/{$numExistingRecords}\", \"imported/existing page records\", 1, 0);\n\t\t\n\t\treturn $numImported;\n\t}", "function newsItem_CreateID( $tbl_news ){\n\t\t$sql = mysql_query(\"SELECT * FROM $tbl_news ORDER BY id DESC \"); \n\t\t$data =\tmysql_fetch_array($sql);\n\t\t$UID = $data[\"id\"];\n\t\t$UID = $UID+1; \n\t\treturn $UID;\n\t}", "function getGenerateTableID(){\n\t\t \n\t\t if(!$this->tableID){\n\t\t\t\t\n\t\t\t\t$db = $this->startDB();\n\t\t\t\t$where = \"source_id = '\".$this->penelopeTabID.\"' \";\t \n\t\t\t\t$metadataString = Zend_Json::encode($this->metadata);\n\t\t\t\t$this->tableID = md5($this->penelopeTabID.$metadataString);\n\t\t\t\t\n\t\t\t\t$data = array(\"tableID\" => $this->tableID);\n\t\t\t\t$db->update(\"export_tabs_meta\", $data, $where);\n\t\t }\n\t\t \n\t\t return $this->tableID;\n\t }", "private function increase_last_number() {\n\t\t$this->settings['last_number'] ++;\n\t\t$this->update_settings();\n\t}", "public function updateToDB()\n {\n try {\n $sql\n = 'UPDATE content_page\n SET link_id=:link_id, parent_page=:parent_page, title=:title, content=:content\n WHERE page_title=:page_title';\n $this->_db->query($sql, array('link_id' => $this->_prepareNullLink($this->_link), 'page_title' => $this->_pageTitle, 'parent_page' => $this->_prepareNull($this->_parentPage), 'title' => $this->_title, 'content' => $this->_content));\n } catch (Exception $e) {\n throw new Exception($e->getMessage());\n }\n }", "public function pageIdCanBeDeterminedWhileMovingARecordToAnotherPage() {}", "public static function setAutoIncrement($id)\n {\n $tableName = static::getTable();\n\n DB::update(\"ALTER TABLE {$tableName} AUTO_INCREMENT = {$id};\");\n }", "function generate_id() {\n $this->last_image_id ++;\n return $this->last_image_id;\n }", "function GetAutoincrement($field)\n {\n if ( isset($this->maxautoincrement[$field]) )\n return $this->maxautoincrement[$field] + 1;\n $databasename = $this->databasename;\n $tablename = $this->tablename;\n $path = $this->path;\n $records = $this->GetRecords();\n $max = 0;\n $contamax = 0;\n foreach ( $records as $rec )\n {\n $contamax++ ;\n if ( isset($rec[$field]) && $rec[$field] > $max )\n $max = $rec[$field];\n\n }\n $this->numrecords = $contamax;\n return $max + 1;\n }", "public function setPageID(){/*ACTUALLY NOT DEFINED*/}", "protected function _before_delete(): void\n {\n //this will try to delete all the content records to which it has access\n //if there are remaining content records the deletion of the Page will fail due to the Foreign Key contraint restrict\n $contents = PageContent::get_by( ['page_id' => $this->page_id] );\n foreach ($contents as $PageContent) {\n $PageContent->delete();\n }\n }", "public function writeRecords_pages_order() {}", "function SetAllHierarchyPositions()\n\t{\n\t\tglobal $gCms;\n\t\t$db = $gCms->GetDb();\n\n\t\t$query = \"SELECT content_id FROM \".cms_db_prefix().\"content\";\n\t\t$dbresult = &$db->Execute($query);\n\n\t\twhile ($dbresult && !$dbresult->EOF)\n\t\t{\n\t\t\tContentOperations::SetHierarchyPosition($dbresult->fields['content_id']);\n\t\t\t$dbresult->MoveNext();\n\t\t}\n\t\t\n\t\tif ($dbresult) $dbresult->Close();\n\t}", "public function pageIdCanBeDeterminedWhileEditingARegularRecord() {}", "public function resetSequence($table,$value=null)\n\t{\n\t\tif($table->sequenceName!==null)\n\t\t{\n\t\t\tif($value===null)\n\t\t\t\t$value=$this->getDbConnection()->createCommand(\"SELECT MAX(`{$table->primaryKey}`) FROM {$table->rawName}\")->queryScalar()+1;\n\t\t\telse\n\t\t\t\t$value=(int)$value;\n\t\t\t$this->getDbConnection()->createCommand(\"ALTER TABLE {$table->rawName} AUTO_INCREMENT=$value\")->execute();\n\t\t}\n\t}", "public function eventPageCreate($pageTable, $contentTable) {\n $db = $this->getDb();\n $page_id = $db->select()\n ->from($pageTable, 'page_id')\n ->where('name = ?', \"siteevent_index_create\")\n ->limit(1)\n ->query()\n ->fetchColumn();\n if (empty($page_id)) {\n\n $containerCount = 0;\n\n //CREATE PAGE\n $db->insert($pageTable, array(\n 'name' => \"siteevent_index_create\",\n 'displayname' => 'Advanced Events - Event Create Page',\n 'title' => 'Advanced Event Create Page',\n 'description' => 'This page allows users to create events.',\n 'custom' => 0,\n ));\n $page_id = $db->lastInsertId();\n\n $db->insert($contentTable, array(\n 'type' => 'container',\n 'name' => 'top',\n 'page_id' => $page_id,\n 'order' => $containerCount++,\n ));\n $top_container_id = $db->lastInsertId();\n\n //MAIN CONTAINER\n $db->insert($contentTable, array(\n 'type' => 'container',\n 'name' => 'main',\n 'page_id' => $page_id,\n 'order' => $containerCount++,\n ));\n $main_container_id = $db->lastInsertId();\n\n //INSERT TOP-MIDDLE\n $db->insert($contentTable, array(\n 'type' => 'container',\n 'name' => 'middle',\n 'page_id' => $page_id,\n 'parent_content_id' => $top_container_id,\n 'order' => $containerCount++,\n ));\n $top_middle_id = $db->lastInsertId();\n\n //MAIN-MIDDLE CONTAINER\n $db->insert($contentTable, array(\n 'type' => 'container',\n 'name' => 'middle',\n 'page_id' => $page_id,\n 'parent_content_id' => $main_container_id,\n 'order' => $containerCount++,\n ));\n $main_middle_id = $db->lastInsertId();\n\n $db->insert($contentTable, array(\n 'page_id' => $page_id,\n 'type' => 'widget',\n 'name' => 'siteevent.navigation-siteevent',\n 'parent_content_id' => $top_middle_id,\n 'params' => '',\n ));\n\n $db->insert($contentTable, array(\n 'type' => 'widget',\n 'name' => 'core.content',\n 'page_id' => $page_id,\n 'parent_content_id' => $main_middle_id,\n 'order' => 1,\n ));\n }\n }", "public function change()\n {\n $table = $this->table('backupDish', ['id'=>false, 'primary_key'=>['sequenceNumber']]);\n $table\n ->addColumn('sequenceNumber', 'integer', ['limit'=>8])\n ->addColumn('dishNumber', 'integer', ['limit' => 8])\n ->addColumn('dishName', 'string', ['limit' => 32])\n ->addColumn('createDate', 'date')\n ->addColumn('price', 'integer', ['limit' => 12])\n ->addColumn('description', 'string', ['limit' => 1000])\n ->addColumn('userName', 'string', ['limit' => 32])\n ->addColumn('deleteOn', 'date')\n ->addColumn('imageName', 'string', ['limit' => 32])\n ->create();\n $sql = 'ALTER TABLE backupDish MODIFY COLUMN sequenceNumber int auto_increment';\n $this->execute($sql);\n }", "function test1()\r\n\t{\r\n//\t\t$this->where(array('id'=>12))->find();\r\n//\r\n//\t\t$this->set( array('name'=>'测试MS') )->insert();\r\n//\t\techo $this->insert_id();\r\n\r\n//\t\t$ret = $this->findPage();\r\n//\t\t$this->count();\r\n\r\n//\t\t$this->where( array('id'=>12) )->delete();\r\n//\t\t$this->set( array('name'=>'测试MS') )->where('id=22')->update();\r\n\r\n//\t\t$this->trans_start();\r\n\t\t$this->query('select * from t_test')->find();\r\n\t\t$this->query('delete from t_test where id=22');\r\n//\t\t$this->trans_rollback();\r\n\r\n\t\tdump($this->db->db->thread_id);\r\n\t}", "public function pageIdCanBeDeterminedWhileDeletingAPageRecord() {}", "public function nextId()\n {\n return $this->query(\"SHOW TABLE STATUS LIKE ?\", [$this->table])->fetch()->Auto_increment;\n }", "protected function fixPage(): void\n {\n if (null !== $this->total) {\n $this->page = \\min($this->page, $this->getLastPage());\n }\n }", "public function insertid()\n\t{\n\t\treturn 0;\n\t}", "public function pageIdCanBeDeterminedWhileEditingAPageRecord() {}", "public function getUltimoId(){\r\n return (int)mysql_insert_id($this->conexion);\r\n }", "function nextAutoIncrement($table, $link = 0) {\n $this->link = $link ? $link : $this->link;\n $r = $this->query(\"SHOW TABLE STATUS LIKE '{$table}';\", $this->link); \n if ($r !== FALSE) {\n $row = $this->fetchArray(); \n $this->freeResult($r);\n return $row['Auto_increment']; \n } else {\n return FALSE;\n }\n }", "function getPageID() \n {\n return (int) $this->getValueByFieldName( 'page_id' );\n }", "public function setPageID(){\n\t\t\n\t\t$id = 'page';\n\t\t$s = '-';\n\t\t$pound = (!self::USE_SPLASH)?'#':'';\n\t\t$prefix = $pound.$id.$s;\n\t\t$this->headerContainerId = $prefix.'header'.$s.'container';\n\t\t$this->headerId = $prefix.'header';\n\t\t$this->subtitleId = $prefix.'subtitle';\n\t\t$this->brandId = $prefix.'brand';\n\t\t\n\t}", "function crea_id_imm(){\n\t$db = new db(DB_USER,DB_PASSWORD,DB_NAME,DB_HOST);\n\t$q_crea_id_imm = \"SELECT * FROM ultimo_id_imm LIMIT 1\";\n\t$r_crea_id_imm = $db->query($q_crea_id_imm);\n\t$ro_crea_id_imm = mysql_fetch_array($r_crea_id_imm);\n\t$id_imm = $ro_crea_id_imm['id_imm'];\n\t$q_agg=\"update ultimo_id_imm set id_imm = id_imm+1\";\n\t$r_agg=$db->query($q_agg);\n\t\n\treturn $id_imm;\n}", "function fiorello_mikado_get_page_id() {\n\t\tif ( fiorello_mikado_is_woocommerce_installed() && fiorello_mikado_is_woocommerce_shop() ) {\n\t\t\treturn fiorello_mikado_get_woo_shop_page_id();\n\t\t}\n\n\t\tif ( fiorello_mikado_is_default_wp_template() ) {\n\t\t\treturn - 1;\n\t\t}\n\n\t\treturn get_queried_object_id();\n\t}", "protected function incrementer(Table $table, Magic $column)\n {\n if ('integer' === $column->type && $column->increment) {\n return ' PRIMARY KEY AUTOINCREMENT';\n }\n }", "protected function incrementer(Table $table, Magic $column)\n {\n if ('integer' === $column->type && $column->increment) {\n return ' PRIMARY KEY AUTOINCREMENT';\n }\n }", "public function getAutoIncrement()\n\t\t{\n\t\t\treturn 'cfe_event_id';\n\t\t}", "public function insertId()\r\n\t{\r\n\t\t//mysql_insert_id($this->link)\r\n\t}", "function InsertPage($page)\n\t{\n\t\t$result = -1; \n\n\t\tglobal $gCms;\n\t\t$db = &$gCms->GetDb();\n\n\t\t$new_page_id = $db->GenID(cms_db_prefix().\"admin_recent_pages_seq\");\n\t\t$time = $db->DBTimeStamp(time());\n\t\t$query = \"INSERT INTO \".cms_db_prefix().\"admin_recent_pages (id, user_id, url, title, access_time) VALUES (?,?,?,?,\".$time.\")\";\n\t\t$dbresult = $db->Execute($query, array($new_page_id, $page->user_id, $page->url,\n $page->title));\n\t\tif ($dbresult !== false)\n\t\t{\n\t\t\t$result = $new_page_id;\n\t\t}\n\n\t\treturn $result;\n\t}", "protected function afterSave(&$obj) {\n\t\tif ($obj->updating_counter)\n\t\treturn true;\n\n\t\tif (!$obj->getVar('content_notification_sent') && $obj->getVar('content_status', 'e') == CONTENT_CONTENT_STATUS_PUBLISHED) {\n\t\t\t$obj->sendNotifContentPublished();\n\t\t\t$obj->setVar('content_notification_sent', true);\n\t\t\t$this->insert($obj);\n\t\t}\n\n\t\tif ($obj->getVar('content_makesymlink') == 1){\n\t\t\t$module = icms::handler('icms_module')->getByDirname(basename(dirname(dirname(__FILE__))));\n\n\t\t\t$seo = $this->makelink($obj);\n\t\t\t$url = str_replace(ICMS_URL.'/', '', $obj->handler->_moduleUrl . $obj->handler->_itemname . '.php?content_id=' . $obj->getVar('content_id') . '&page=' . $seo);\n\n\t\t\t$symlink_handler = icms_getModuleHandler('pages', 'system');\n\t\t\t$criteria = new icms_db_criteria_Compo(new icms_db_criteria_Item('page_url', '%' . $seo, 'LIKE'));\n\t\t\t$criteria->add(new icms_db_criteria_Item('page_moduleid', $module->getVar('mid')));\n\t\t\t$ct = $symlink_handler->getObjects($criteria);\n\t\t\tif (count($ct) <= 0){\n\t\t\t\t$symlink = $symlink_handler->create(true);\n\t\t\t\t$symlink->setVar('page_moduleid', $module->getVar('mid'));\n\t\t\t\t$symlink->setVar('page_title', $obj->getVar('content_title'));\n\t\t\t\t$symlink->setVar('page_url', $url);\n\t\t\t\t$symlink->setVar('page_status', 1);\n\t\t\t\t$symlink_handler->insert($symlink);\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public function getNextInitAppDocNumber(){\n $lastDoc = File::orderBy('id', 'desc')->first();\n\n /*\n In a case where no record is found get 1 as a\n virtual record to generate document number.\n */\n if(is_null($lastDoc)){\n /*\n create an object counter (number) to store document ID and\n initialiaze it to 1.\n */\n $id = File::find(1);\n $number = $id;\n\n //assign and add the number with Doc ID\n $number += File::find(1);\n\n /*\n concatenate BRS-DFT- with the last inserted Doc ID\n that will end with 3 numbers.\n */\n\n return 'BRS-DFT-' . sprintf('%03d', intval($number) + 1);\n\n }else{\n /*\n The document exists then\n create variable number to store document ID\n initialiaze it to 0.\n */\n $number = 0;\n\n //assign and add the number with Doc ID\n $number += $lastDoc->id;\n\n /*\n concatenate BRS-DFT- with the last inserted Doc ID\n that will end with 3 numbers.\n */\n return 'BRS-DFT-' . sprintf('%03d', intval($number) + 1);\n }\n\n }", "private function updateTaskNumberSequence()\n {\n if (config('database.default') !== 'sqlite') {\n \\DB::statement(\"SELECT setval('task_number_seq', (SELECT MAX(number) FROM tasks))\");\n }\n }", "public static function getAutoIncrement()\n {\n $tableName = static::getTable();\n\n $statement = DB::select(\"SHOW TABLE STATUS LIKE '{$tableName}';\");\n\n return $statement[0]->Auto_increment;\n }", "private function _incrementEntryPointer()\n\t{\n\t\t$this->_setEntryPointer($this->_getEntryPointer() + 1);\n\t}", "public function beforeSave() {\n\t\tif($this->isNewRecord && $this->footer_order > 0) {\n\t\t\t$this->reOrder($this->footer_order);\t\n\t\t}\n\t\treturn parent::beforeSave();\n\t}", "public static function sql_insertid() {\n return 0;\n\t\t}", "public static function get_next_id($table){\n $result = self::query(\"SHOW TABLE STATUS LIKE '$table'\");\n $rows = self::fetch_assoc($result);\n return $rows['Auto_increment'];\n }", "function db_duplicate($table, $id) {\r\n\r\n\t$fieldQuery = db_query(\"DESCRIBE $table\");\r\n\t\r\n\tif (db_numrows($fieldQuery) > 1) {\r\n\t\r\n\t\t$sourceQuery = db_query(\"SELECT * FROM $table WHERE id=\".escapeValue($id));\r\n\t\t\r\n\t\tif (db_numrows($sourceQuery) == 1) {\r\n\t\r\n\t\t\t$sourceResult = db_fetch($sourceQuery);\r\n\t\t\t$sql = \"UPDATE $table SET \";\r\n\t\t\t$first = 1;\r\n\t\r\n\t\t\twhile ($fieldResult = db_fetch($fieldQuery)) {\r\n\t\t\r\n\t\t\t\tif (strtolower($fieldResult[\"Field\"]) != \"id\") {\r\n\t\t\t\t\r\n\t\t\t\t\tif (!$first) $sql .= \",\";\r\n\t\t\t\t\tif (substr(strtolower($fieldResult[\"Type\"]),0,7) == \"varchar\" || strtolower($fieldResult[\"Type\"]) == \"text\")\r\n\t\t\t\t\t\t$sql .= $fieldResult[\"Field\"].\"=\".escapeQuote($sourceResult[$fieldResult[\"Field\"]],0);\r\n\t\t\t\t\telse\t\t\t\t\r\n\t\t\t\t\t\t$sql .= $fieldResult[\"Field\"].\"=\".escapeValue($sourceResult[$fieldResult[\"Field\"]]);\r\n\t\t\t\t\t$first = 0;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//echo $sql;\r\n\t\t\t//exit;\r\n\t\t\t$newId = db_insert($table);\r\n\t\t\tdb_query($sql.\" WHERE id=$newId\");\t\r\n\t\t\treturn $newId;\r\n\r\n\t\t} else return 0;\r\n\r\n\t} else return 0;\r\n\t\r\n}", "function last_id(){\n\t\treturn(-1);\n\t}", "function set_accordion_id() {\n\t\t\t$this->current_accordion_slug++;\n\t\t}", "function db_last_id()\n{\n return mysqli_insert_id(DB::get_connection());\n}" ]
[ "0.6191497", "0.5767585", "0.5607199", "0.5572042", "0.55339754", "0.550124", "0.5476622", "0.5453601", "0.54496634", "0.5424661", "0.5394438", "0.5284311", "0.5271356", "0.52697486", "0.52685416", "0.5267947", "0.5227927", "0.52231306", "0.51884216", "0.5182833", "0.518078", "0.5178982", "0.51773924", "0.5157324", "0.51100147", "0.5093982", "0.5089779", "0.5080209", "0.5066209", "0.5043062", "0.50385076", "0.5034686", "0.50330704", "0.50027496", "0.49899364", "0.49778634", "0.4974405", "0.496666", "0.4965015", "0.4962294", "0.49492773", "0.49443257", "0.49212062", "0.49212062", "0.49054995", "0.4902921", "0.48995358", "0.4888233", "0.4877739", "0.48750916", "0.48735514", "0.48718622", "0.48577002", "0.48485184", "0.48344463", "0.48169553", "0.48126516", "0.48123145", "0.4811717", "0.48031816", "0.4795803", "0.47908306", "0.4787871", "0.47864228", "0.47844705", "0.47817543", "0.47789016", "0.4777255", "0.47761175", "0.47709766", "0.47615618", "0.47574624", "0.47530156", "0.47520146", "0.47451484", "0.4744612", "0.47235537", "0.47215658", "0.47203", "0.4716831", "0.4715913", "0.47147837", "0.47129467", "0.47111687", "0.47111687", "0.4710616", "0.47057605", "0.47047538", "0.4704499", "0.47038272", "0.4702777", "0.47014862", "0.46987787", "0.46937075", "0.46844888", "0.46748665", "0.46721002", "0.46697628", "0.46640018", "0.46632355" ]
0.8811373
0
Model constructor. Initializes the database. // NOT IMPLEMENTED: Generates the sample database if none exists.
public function __construct() { $this->db = new mysqli( Model::DB_HOST, Model::DB_USER, Model::DB_PASS // Model::DB_NAME ); if (!$this->db) { throw new \Exception($this->db->connect_error, $this->db->connect_errno); } $this->db->query("CREATE DATABASE IF NOT EXISTS " . Model::DB_NAME . ";"); if (!$this->db->select_db(Model::DB_NAME)) { error_log("Mysql database not available!", 0); throw new \mysqli_sql_exception(); } $this->generateDatabase(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function __construct()\n\t\t{\n\t\t\t// Call the Model constructor\n\t\t\tparent::__construct();\n\t\t $this->load->database();\t\n\t\t}", "private function initDatabase() {\n \n \n \n }", "protected function initDatabaseRecord() {}", "public function __construct()\n\t{\n\t\tif (!$this->model_name)\n\t\t{\n\t\t\t$this->model_name = str_replace('Model_', '', get_class($this));\n\t\t}\n\t\t$this->model_name = strtolower($this->model_name);\n\t\t\n\t\t$this->_initialize_db();\n\t}", "function __construct(){\r\n\t\t$this->database = new Model;\r\n\t}", "function __construct()\n {\n // Call the Model constructor\n parent::Model();\n $this->load->database('default'); \n }", "function __construct()\n {\n // Call the Model constructor\n parent::Model();\n $this->load->database('default'); \n }", "function __construct()\n {\n // Call the Model constructor\n parent::Model();\n $this->load->database('default'); \n }", "function __construct()\n {\n $this->openDatabaseConnection();\n $this->loadModel();\n }", "function __construct() {\r\n\t\tparent::__construct();\r\n\t\tmakeTestDB('temp1');\r\n\t}", "public function initDatabaseStructure( );", "protected function createDatabaseStructure() {}", "public function initialize()\n {\n $this->setSchema(\"muslim_life\");\n $this->setSource(\"jadwalshalat\");\n }", "public function initialize()\n {\n $this->setSchema(\"animedb\");\n $this->setSource(\"episodes\");\n $this->hasMany('id', 'Videos', 'episode_id', ['alias' => 'Videos']);\n $this->belongsTo('anime_id', '\\Anime', 'id', ['alias' => 'Anime', 'reusable' => true]);\n $this->allowEmptyStringValues(['title', 'description']);\n $this->skipAttributes(['date']);\n }", "public function initialize()\n {\n $this->setSchema(\"mydb\");\n $this->setSource(\"paying\");\n $this->belongsTo('cid', 'Customers', 'cid', array('alias' => 'alias_customers'));\n $this->belongsTo('loanid', 'LoanInformation', 'loanid', array('alias' => 'alias_loan'));\n $this->hasManyToMany(\n 'payingid',\n 'Tracking',\n 'payingid', 'oid',\n 'DeptTrackers',\n 'oid',\n array(\n 'alias' => 'alias_depttrackers'\n )\n );\n }", "public function __construct()\r\n\t{\r\n\tparent::__construct();\r\n\t\r\n\t//load database libray manually\r\n\t$this->load->database();\r\n\t\r\n\t//load Model\r\n\t$this->load->model('Hello_Model');\r\n\t}", "public function __construct() {\r\n\t\t$this->load->database();\r\n\t}", "public function generateDatabase()\n {\n $this->generateUserTable();\n $this->generateEmployerTable();\n $this->generateCandidateTable();\n $this->generateGuidTable();\n $this->generateWorkExperienceTable();\n $this->generateShortListTable();\n $this->generateQualTypeTable();\n $this->generateQualLevelTable();\n $this->generateQualificationsTable();\n $this->generateFieldTable();\n $this->generateSubFieldTable();\n $this->generateSkillTable();\n $this->generatePreferencesTable();\n }", "public function __construct()\n {\n $this->table = 'tag';\n\t\t$this->model = $db = DB::table($this->table);\n }", "abstract protected function initDB();", "protected function seedDatabase()\n {\n //$this->app->make('db')->table(static::TABLE_NAME)->delete();\n\n TestExtendedModel::create([\n 'unique_field' => '999',\n 'second_field' => null,\n 'name' => 'unchanged',\n 'active' => true,\n 'hidden' => 'invisible',\n ]);\n\n TestExtendedModel::create([\n 'unique_field' => '1234567',\n 'second_field' => '434',\n 'name' => 'random name',\n 'active' => false,\n 'hidden' => 'cannot see me',\n ]);\n\n TestExtendedModel::create([\n 'unique_field' => '1337',\n 'second_field' => '12345',\n 'name' => 'special name',\n 'active' => true,\n 'hidden' => 'where has it gone?',\n ]);\n }", "public function __construct() {\n\t\t\n\t\tparent::__construct();\n\n\t\t$this->load->database();\n\t}", "public function __construct()\n\t\t{\n\t\t\tparent::__construct();\n\t\t\t$this->load->database();\n \t}", "public function model() {\n require_once \"../app/models/model.php\";\n $this->model = new Model($this->db);\n }", "public function __construct() {\n \n global $db;\n\n //assign PDO object to make available for all model classes\n $this->db = $db;\n }", "public function __construct()\n\t\t{\n\t\t\t$this->_db = new Database();\n\t\t}", "public function __construct(){\n\t\t\t$this->load->database();\n\t\t}", "public function __construct() {\n $this->load->database();\n\t}", "public function __construct(){\n $this->db = new SQLite3(':memory:');\n //create table in db if it does now exist\n $this->db->exec('CREATE TABLE IF NOT EXISTS storage (name STRING, value INT);');\n }", "public function initialize()\n {\n $this->db = $this->getDi()->getShared('db');\n $this->setSchema(\"blogging\");\n $this->setSource(\"videos\");\n $this->skipAttributes(\n [\n '_created_at',\n '_updated_at',\n ]\n );\n }", "public function __construct() {\n\t\t$this->load->database();\n\t}", "public function __construct()\n\t{\n\t\t$this->load->database();\n\t}", "public function __construct()\n\t{\n\t\t$this->load->database();\n\t}", "public function __construct()\n\t{\n\t\t$this->load->database();\n\t}", "public function __construct()\t{\n\t\t$this->load->database();\n\t}", "public function __construct() {\n\n\t\tparent::__construct();\n\n\t\t$this->load->database();\n\n\t}", "public function initialize()\n {\n $this->setSchema(\"smsgw_engine_db\");\n }", "function __construct() {\n\t\tparent::__construct();\n\t\t$this->load->database();\n\t}", "private function __construct() {\n\t\t$this->verifyBasicDatabaseTableSetup();\n\t}", "public function __construct()\n {\n $this ->model = $this ->makeModel($this ->model());\n }", "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->load->database();\n\t}", "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->load->database();\n\t}", "function __construct() \n {\n // Creation de la table\n self::createTableIfNeeded();\n }", "function __construct () {\n\t\t$this->_model = new Model();\n\t}", "function __construct() {\n\t\tparent::__construct();\n\t\t$this->load->database();\n }", "public static function init() {\n\t\tself::$_db = Storage::get('objects.database');\n\t}", "public function __construct() {\n\t\t$this->db = getDatabase();\n\t}", "public function initialize()\n {\n $this->setSchema(\"guanjia16_new\");\n }", "public function initialize()\n {\n $this->setSchema(\"guanjia16_new\");\n }", "public function __construct() {\n \n $this->tableName = \"db_database\";\n $this->setColumnsInfo(\"id\", \"int(11)\", 0);\n $this->setColumnsInfo(\"id_space\", \"int(11)\", 0);\n $this->setColumnsInfo(\"name\", \"varchar(250)\", \"\");\n $this->primaryKey = \"id\";\n }", "function __construct()\n\t{\n\t\t$this->load->database();\n\t}", "public function __construct()\n\t{\n\t\t$this->database = new Database();\n\t\t\n\t\tif ($this->trace)\n\t\t\t$this->database->activateTrace();\n\t}", "public function __construct () {\n $this->model = 'App\\\\' . $this->model;\n $this->model = new $this->model();\n\n // Get the column listing for a given table\n $this->table_columns = Schema::getColumnListing( $this->table );\n }", "public function __construct()\n\t{\n\t\t$this->db = IEM::getDatabase();\n\t}", "public function __construct() {\r\n $this->db = new Database;\r\n }", "public function initialize()\n {\n parent::initialize();\n $this->setSchema(\"salesDB\");\n $this->setSource(\"questionnaire\");\n $this->hasMany('id', 'App\\Models\\Question', 'questionnaire_id', ['alias' => 'Question']);\n $this->belongsTo('itinerary_type_id', 'App\\Models\\ItineraryType', 'id', ['alias' => 'ItineraryType']);\n $this->belongsTo('client_id', 'App\\Models\\Client', 'id', ['alias' => 'Client']);\n $this->belongsTo('user_created', 'App\\Models\\User', 'id', ['alias' => 'UserCreated']);\n $this->belongsTo('user_updated', 'App\\Models\\User', 'id', ['alias' => 'UserUpdated']);\n $this->belongsTo('questionnaire_type_id', 'App\\Models\\QuestionnaireType', 'id', ['alias' => 'QuestionnaireType']);\n $this->belongsTo('sync_status_id', 'App\\Models\\SyncStatus', 'id', ['alias' => 'SyncStatus']);\n }", "public function initialize()\n {\n $this->setSchema(\"phptest\");\n $this->setSource(\"rating\");\n\n // n-1 relation to Products\n $this->belongsTo('product_id', 'Models\\Products', 'id', ['alias' => 'product']);\n\n // n-1 relation to Users\n $this->belongsTo('user_id', 'Models\\Users', 'id', ['alias' => 'user']);\n }", "public function __construct() {\n $this->load->database();\n }", "public function __construct() {\n $this->load->database();\n }", "public function __construct()\t\n\t{\n $this->load->database();\n\t}", "public function __construct() {\n $this->dbName = new DataBase($this->db);\n }", "function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->load->database();\n\t}", "function init()\n {\n /**\n * The database table to store the model.\n * The table name will be prefixed with the prefix define\n * in the global configuration.\n */\n $this->_a['table'] = 'todo_lists';\n \n /**\n * The definition of the model.\n * Each key of the associative array\n * corresponds to a \"column\" and the definition of the column is\n * given in the corresponding array.\n */\n $this->_a['cols'] = array(\n // It is mandatory to have an \"id\" column.\n 'id' => array(\n 'type' => 'Pluf_DB_Field_Sequence',\n // It is automatically added.\n 'blank' => true\n ),\n 'name' => array(\n 'type' => 'Pluf_DB_Field_Varchar',\n 'blank' => false,\n 'size' => 100,\n // The verbose name is all lower case\n 'verbose' => 'name'\n )\n );\n /**\n * You can define the indexes.\n * Indexes are you to sort and find elements. Here we define\n * an index on the completed column to easily select the list\n * of completed or not completed elements.\n */\n $this->_a['idx'] = array();\n $this->_a['views'] = array();\n }", "public function __construct(){\n \n $this->create_tables();\n \n }", "function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->load->database();\n\n\t}", "public function initializeObject() {\r\r\n\t\t$this->connectDatabase();\r\r\n\t}", "public function __construct() {\n $this->openConnection();\n $this->model();\n }", "public function __construct() {\n $this->load->database();\n \n }", "public function __construct()\n {\n parent::__construct();\n\t\t$this->load->database();\n\t\t\n }", "function __construct()\n {\n parent::__construct();\n\t\t\n\t\t$this->load->database();\n }", "function __construct(){\n\t\t\t$this->db = new Database();\n\t\t}", "public function __construct()\n {\n parent::__construct();\n $this->db = \\App::getInstance()->getDatabase();\n }", "public function __construct()\n\t\t{\n\t\t\t$this->_db_table = new Application_Model_DbTable_TourType();\n\t\t}", "public function __construct(array $config = [])\n {\n if(isset($config['database'])){\n $this->database = new Model\\StealModel(['database' => $config['database']]);\n }\n }", "protected function _construct()\n {\n $this->_init(self::TABLE_NAME, self::TABLE_ID);\n }", "public function initialize()\n {\n $this->setSchema(\"nidara_private_school\");\n $this->setSource(\"ztest_subject\");\n $this->belongsTo('cno', '\\ZtestClass', 'cno', ['alias' => 'ZtestClass']);\n }", "public function run()\n {\n //\n\n $sanple= Sample::create(array(\n 'id' => 1,\n 'name' =>'alireza',\n ));\n\n /*\n DB::table('tests')->insert([\n 'id' => 2,\n 'name' => 'Test2',\n ]);\n\n */\n }", "public function initialize() {\n $this->setSchema(\"coopdb\");\n $this->setSource(\"pedidosdetalle\");\n $this->belongsTo('IDKEY', 'Pedidos', 'TxnID', ['alias' => 'Pedidos']);\n }", "public function __construct() {\n // Call the CI_Model constructor\n parent::__construct();\n $this->load->database();\n }", "protected function setUp() {\n\t\t$this->object = new Model(\"test\", new PDODatabase(DB_DSN, DB_USER, DB_PASS, DB_CHARSET));\n\t}", "public function seed()\n\t{\n\t\t$this->createDataType();\n\t\t$this->createDataRowForColumns();\n\t}", "public function __construct(){\r\r\n\t\t//Database is aan te roepen als $this->db\r\r\n\t\t$this->load->database();\r\r\n\t}", "public function __construct()\r\n {\r\n require_once 'libs/db.php';\r\n $this->db = Db::singleton();\r\n }", "public function initialize()\n {\n $this->_db = new Fplanillassal();\n }", "public function __construct()\n\t{\n\t\t$this->config = Config::getInstance();\n\t\tself::setupDb();\n\t}", "public function __construct()\n {\n parent::__construct();\n $this->path = __DIR__.'/../';\n\n $this->Model = '';\n $this->model = '';\n $this->Models = '';\n $this->models = '';\n\n $this->schema = '';\n $this->field_names = '';\n $this->table_header = '';\n $this->table_data = '';\n $this->details = '';\n $this->seeder_data = '';\n }", "public function initialize()\n {\n // Intentionally blank as this will be overloaded by DBAL\n }", "public function initialize()\n {\n $this->setSchema(\"phalcon_app\");\n $this->setSource(\"user_weather_list\");\n }", "public function __construct()\n\t{\n\t\t$this->db = new Database();\n\t}", "public function __construct()\r\n {\r\n $this->load->database();\r\n }", "public function __construct()\n {\n $this->truncateTables();\n\n $seeder = App::make(DatabaseSeeder::class);\n $seeder->run();\n }", "public function setUpDatabase()\n\t{\n\t\t$schemes = new Schemes;\n\t\t$schemes->createRequestTable();\n\n\t Customer::create([\n\t 'email' => '[email protected]',\n\t 'first_name' => 'Osuagwu',\n\t 'last_name' => 'Emeka',\n\t 'phone_number' => \"09095685594\",\n\t 'image' => 'https://github.com/rakit/validation',\n\t 'location' => 'Lagos, Nigeria',\n\t 'sex' => 'Male',\n\t ]);\n\n\t Customer::create([\n\t 'email' => '[email protected]',\n\t 'first_name' => 'Mustafa',\n\t 'last_name' => 'Ozyurt',\n\t 'phone_number' => \"09095685594\",\n\t 'image' => 'https://github.com/rakit/validation',\n\t 'location' => 'Berlin, Germany',\n\t 'sex' => 'Male',\n\t ]);\n\t}", "public function __construct(){\n\t\t$mysql = MySQL::getInstance(array('localhost', 'root', '', 'amdb'));\n\t\t$this->bewertungsmodel = new Model($mysql, 'bewertung');\n\t\t$this->videomodel = new Model($mysql, 'lied');\n\t}", "public function __construct()\n {\n $this->load->database();\n }", "public function __construct()\n {\n $this->load->database();\n }", "public function __construct()\n {\n $this->load->database();\n }", "public function __construct()\n {\n $this->load->database();\n }", "public function __construct()\n {\n $this->load->database();\n }", "public function __construct()\n {\n $this->load->database();\n }", "public function __construct()\n {\n $this->load->database();\n }", "public function __construct() {\n $this->db = database::getInstance();\n }" ]
[ "0.6978571", "0.6820556", "0.67710954", "0.668322", "0.66699487", "0.6578554", "0.6578554", "0.6578554", "0.65686005", "0.6416867", "0.63695395", "0.6349996", "0.6324611", "0.6313741", "0.63059694", "0.62983906", "0.62834656", "0.6282961", "0.6277901", "0.62550557", "0.625228", "0.6247835", "0.6238058", "0.62280124", "0.6219362", "0.62167704", "0.62140596", "0.620647", "0.61897796", "0.6188466", "0.6184666", "0.61842185", "0.61842185", "0.61842185", "0.61833376", "0.6169017", "0.6165768", "0.61546254", "0.615299", "0.6145873", "0.61289066", "0.61289066", "0.61231935", "0.61211324", "0.6119221", "0.61181796", "0.6118154", "0.61151206", "0.61151206", "0.61134815", "0.611254", "0.6111328", "0.61088973", "0.6103288", "0.60993063", "0.60925573", "0.6084006", "0.608332", "0.608332", "0.6075905", "0.6074667", "0.60700464", "0.60652995", "0.6056739", "0.60545033", "0.6045583", "0.60424227", "0.60373026", "0.603673", "0.6035686", "0.6034864", "0.6031571", "0.6024778", "0.60234517", "0.6019905", "0.60189646", "0.6012435", "0.6010982", "0.60091394", "0.60038424", "0.6001178", "0.59967023", "0.5994049", "0.59928256", "0.59885883", "0.59826183", "0.59793466", "0.5978941", "0.59754556", "0.59683263", "0.59673643", "0.5965335", "0.59602135", "0.59535205", "0.59535205", "0.59535205", "0.59535205", "0.59535205", "0.59535205", "0.59535205", "0.5952502" ]
0.0
-1
Generates the database and inserts dummy data.
public function generateDatabase() { $this->generateUserTable(); $this->generateEmployerTable(); $this->generateCandidateTable(); $this->generateGuidTable(); $this->generateWorkExperienceTable(); $this->generateShortListTable(); $this->generateQualTypeTable(); $this->generateQualLevelTable(); $this->generateQualificationsTable(); $this->generateFieldTable(); $this->generateSubFieldTable(); $this->generateSkillTable(); $this->generatePreferencesTable(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function seed()\n\t{\n\t\t$this->createDataType();\n\t\t$this->createDataRowForColumns();\n\t}", "protected function createDatabaseStructure() {}", "private function createMainDatabaseRecords()\n {\n // get the .sql file\n $sql = (string) @file_get_contents( $this->plugin->getPath() . \"/Setup/install.sql\" );\n\n // insert it\n $this->db->exec( $sql );\n }", "public static function dbSeed(){\n\t\tif (App::runningUnitTests()) {\n\t\t\t//Turn foreign key checks off\n\t\t\tDB::statement('SET FOREIGN_KEY_CHECKS=0;');// <- USE WITH CAUTION!\n\t\t\t//Seed tables\n\t\t\tArtisan::call('db:seed');\n\t\t\t//Turn foreign key checks on\n\t\t\tDB::statement('SET FOREIGN_KEY_CHECKS=1;');// <- SHOULD RESET ANYWAY BUT JUST TO MAKE SURE!\n\t\t}\n\t}", "public function run()\n {\n $this->cleanDatabase();\n\n factory(User::class, 50)->create();\n factory(Document::class, 30)->create();\n }", "public function run()\n {\n $table_count = env('TABLE_COUNT');\n $grant_count = Grant::all()->count();\n $counter = 0;\n $faker = Faker::create();\n\n for ($i = 1; $i <= env('MAJOR_TABLE_COUNT'); $i++) {\n factory(Sample::class)->create([\n 'user_id' => rand(1, $table_count),\n 'analysis_id' => (++$counter < $table_count) ? rand(0, 1) ? $faker->unique()->numberBetween(1, $table_count) : NULL : NULL,\n 'spectrometer_id' => rand(1, $table_count),\n 'solvent_id' => rand(1, $table_count),\n // Not all samples need to be marked as analysed\n // neither belong to grant\n 'grant_id' => rand(0, 1) ? rand(1, $grant_count) : NULL,\n ]);\n }\n }", "public function run()\n {\n $datas = [];\n for ($i=0; $i < self::MAKE_DATA_NUM; $i++) {\n $datas[] = [\n 'song_name' => Str::random(10).' Song',\n 'artist' => Str::random(10).' Singer',\n 'sing_key' => mt_rand(-7, +7),\n ];\n }\n DB::table('songs')->insert($datas);\n }", "public static function generateDatabase()\n\t{\n\t\t$entities\t=\tself::getEntities();\n\t\t$query\t\t=\tself::$current_db->query('SHOW TABLES');\n\t\t$tables\t\t=\tarray();\n\n\t\twhile($table = $query->fetch(\\PDO::FETCH_NUM))\n\t\t\t$tables[]\t=\tstrtolower($table[0]);\n\n\t\tforeach($entities as $entity)\n\t\t{\n\t\t\tif( ! in_array(strtolower($entity::getTableName()), $tables))\n\t\t\t\t$entity::createTable();\n\t\t\telse\n\t\t\t\t$entity::updateTable();\n\t\t}\n\t}", "protected function seedDatabase()\n {\n //$this->app->make('db')->table(static::TABLE_NAME)->delete();\n\n TestExtendedModel::create([\n 'unique_field' => '999',\n 'second_field' => null,\n 'name' => 'unchanged',\n 'active' => true,\n 'hidden' => 'invisible',\n ]);\n\n TestExtendedModel::create([\n 'unique_field' => '1234567',\n 'second_field' => '434',\n 'name' => 'random name',\n 'active' => false,\n 'hidden' => 'cannot see me',\n ]);\n\n TestExtendedModel::create([\n 'unique_field' => '1337',\n 'second_field' => '12345',\n 'name' => 'special name',\n 'active' => true,\n 'hidden' => 'where has it gone?',\n ]);\n }", "public function run()\n {\n $data = include env('DATA_SEED');\n\n \\Illuminate\\Support\\Facades\\DB::table('endpoints')->insert((array)$data);\n }", "private function initialiseDatabaseStructure(){\r\n $this->exec($this->userTableSQL);\r\n $query = \"INSERT INTO `user` (`userName`,`userEmail`,`userFirstName`,`userSurname`,`userPassword`,`userIsActive`,`userIsAdmin`) VALUES(?,?,?,?,?,?,?);\";\r\n $statement = $this->prepare($query);\r\n $password = md5('Halipenek3');\r\n $statement->execute(array('admin','[email protected]','Super','Admin',$password,1,1));\r\n\r\n //Create the knowledge Table\r\n $this->exec($this->knowledgeTableSQL);\r\n $this->exec($this->tagTableSQL);\r\n $this->exec($this->tagsTableSQL);\r\n }", "public function run()\n {\n $this->clearDatabase();\n factory(Lesson::class, 60)->create();\n factory(Tag::class, 60)->create();\n factory(LessonTag::class, 30)->create();\n factory(User::class, 1)->create();\n }", "public function run()\n {\n $faker = Faker\\Factory::create();\n\n for ($i = 0; $i < 15; $i++) {\n DB::table('ware_houses')->insert([\n 'name' => $faker->name,\n 'address' => $faker->streetAddress(),\n 'created_at' =>now(),\n 'updated_at' =>now(),\n ]);\n }\n }", "public function setUpDatabase()\n\t{\n\t\t$schemes = new Schemes;\n\t\t$schemes->createRequestTable();\n\n\t Customer::create([\n\t 'email' => '[email protected]',\n\t 'first_name' => 'Osuagwu',\n\t 'last_name' => 'Emeka',\n\t 'phone_number' => \"09095685594\",\n\t 'image' => 'https://github.com/rakit/validation',\n\t 'location' => 'Lagos, Nigeria',\n\t 'sex' => 'Male',\n\t ]);\n\n\t Customer::create([\n\t 'email' => '[email protected]',\n\t 'first_name' => 'Mustafa',\n\t 'last_name' => 'Ozyurt',\n\t 'phone_number' => \"09095685594\",\n\t 'image' => 'https://github.com/rakit/validation',\n\t 'location' => 'Berlin, Germany',\n\t 'sex' => 'Male',\n\t ]);\n\t}", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(PermissionsSeeder::class);\n $this->call(RolesSeeder::class);\n $this->call(ThemeSeeder::class);\n\n //\n\n DB::table('paypal_info')->insert([\n 'client_id' => '',\n 'client_secret' => '',\n 'currency' => '',\n ]);\n DB::table('contact_us')->insert([\n 'content' => '',\n ]);\n DB::table('setting')->insert([\n 'site_name' => ' ',\n ]);\n DB::table('terms_and_conditions')->insert(['terms_and_condition' => 'text']);\n }", "public function run()\n {\n $faker = Faker\\Factory::create();\n\n for ($i=0; $i <= 50; $i++) { \n DB::table('subjects')->insert([\n 'name' => $faker->unique()->text(20),\n 'description' => $faker->unique()->text(2000),\n 'created_at' => now(),\n 'updated_at' => now(),\n ]);\n }\n }", "public function run()\n {\n DB::table('hash_algorithms')->insert([\n ['name' => 'md5'],\n ['name' => 'sha1'],\n ['name' => 'sha256'],\n ['name' => 'crypt'],\n ['name' => 'crc32'],\n\n ]);\n DB::table('vocabularies')->insert([\n ['word' => 'Laravel'],\n ['word' => 'Symfony'],\n ['word' => 'PHP'],\n ['word' => 'NodeJs'],\n ['word' => 'Angular'],\n ['word' => 'EcmaScript'],\n ['word' => str_random(10)],\n ]);\n }", "public function run()\n {\n $faker = \\Faker\\Factory::create();\n for ($i = 100; $i < 120; $i++) {\n university::insert([\n 'name' => $faker->name(),\n 'code' => $i,\n 'contact' => '1234567' . $i,\n 'address' => 'Bhavnagar',\n 'user_id' => 2\n ]);\n\n }\n }", "public function run()\n {\n \\Illuminate\\Support\\Facades\\DB::table('students')->insert(\n [\n \"student_number\"=>rand(97000000,97999999),\n \"faculty_id\"=>rand(1,20),\n \"field_id\"=>rand(1,200),\n \"section_id\"=>rand(2,6)\n ]\n );\n }", "public function fill_db()\n {\n include('create_tables.php');\n\n $this->db->query($CLEAN);\n $this->db->query($APPTYPE);\n $this->db->query($BOOKINGS);\n $this->db->query($BUSINESSOWNER);\n $this->db->query($CUSTOMERS);\n $this->db->query($EMPLOYEES);\n $this->db->query($TIMESLOTS);\n $this->db->query($CANWORK);\n $this->db->query($HAVESKILL);\n $this->db->query($BUSINESS);\n $this->db->query($HOURS);\n }", "private function make_db() {\n ee()->load->dbforge();\n $fields = array(\n 'id' => array('type' => 'varchar', 'constraint' => '32'),\n 'access' => array('type' => 'integer', 'constraint' => '10', 'unsigned' => true),\n 'data' => array('type' => 'text')\n );\n ee()->dbforge->add_field($fields);\n ee()->dbforge->add_key('id', true);\n ee()->dbforge->create_table($this->table_name);\n\n return true;\n }", "public function run()\n {\n $faker = \\Faker\\Factory::create();\n\n for($i=0; $i<=10000; $i++):\n DB::table('categories')\n ->insert([\n 'uuid' => str_random(),\n 'name' => $faker->sentence,\n 'slug' => str_slug($faker->sentence),\n 'is_product' => 1 || 0\n ]);\n endfor;\n }", "public function run()\n {\n $faker = Faker\\Factory::create();\n\n $id = DB::table('categories')->insertGetId([\n 'user_id' => 1,\n 'name' => 'Unnamed',\n ]);\n\n for ($j = 0; $j < 12; $j++) {\n DB::table('notes')->insert([\n 'category_id' => $id,\n 'title' => $faker->title,\n 'content' => $faker->text(),\n ]);\n }\n\n }", "protected function seedDatabase(): void\n {\n $this->seedProductCategories();\n $this->seedProducts();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n Language::truncate();\n Reason::truncate();\n Report::truncate();\n Category::truncate();\n Position::truncate();\n\n $languageQuantity = 10;\n $reasonQuantity = 10;\n $reportQuantity = 10;\n $categoryQuantity = 10;\n $positionQuantity = 10;\n\n factory(Language::class,$languageQuantity)->create();\n factory(Reason::class,$reasonQuantity)->create();\n \n factory(Report::class,$reportQuantity)->create();\n \n factory(Category::class,$categoryQuantity)->create();\n \n factory(Position::class,$positionQuantity)->create();\n\n }", "public function run(): void\n {\n $faker = Factory::create();\n \\App\\User::query()->insert($this->gen($faker));\n }", "public function run()\n {\n $faker = Faker\\Factory::create();\n // Generate fake data using Faker\n for ($i=0; $i < 10; $i++) {\n DB::table('items')->insert([\n 'title' => $faker->words(3, true),\n 'description' => $faker->sentences(10, true),\n 'category' => 'ultrabooks',\n 'price' => 45000,\n 'main_image' => 'macbook-glow.jpg'\n ]);\n } \n }", "public function run() {\n\t\t$start = microtime( true );\n//\t\t$this->call( ConfigsTablesSeeder::class );\n\t\tfactory( \\App\\Models\\Patients\\Patient::class, 50 )->create();\n\t\tfactory( \\App\\Models\\Commons\\Phone::class, 50 )->create();\n\t\t$this->command->info( 'DatabaseSeeder complete: in ' . round( ( microtime( true ) - $start ), 3 ) . 's ...' );\n\n\t}", "private final function _createDbStructure()\n {\n if ($conn = $this->_getConnection()) {\n $installer = new lib_Install('install');\n try {\n $installer->install();\n } catch (Exception $e) {\n app::log($e->getMessage(), app::LOG_LEVEL_ERROR);\n }\n }\n }", "public function run()\n {\n Model::unguard();\n\n TestDummy::times(50)->create(Bidding::class);\n\n\n // $this->call(\"OthersTableSeeder\");\n }", "public function fillOutDb()\n {\n /* Fill out the Contacts table. BatchInsert is a good idea for that */\n $this->batchInsert('Contacts', ['name', 'surname', 'description'], self::InitialContacts);\n\n /* Prepare array for batchInsert request at first */\n $list = [];\n foreach(self::InitialPhoneNumbers as $name => $numbers){\n $query = new \\yii\\db\\Query();\n $contact_id = $query->select('id')->from('Contacts')->where(['name' => $name])->one();\n foreach($numbers as $number){\n $list[] = ['number' => $number, 'contact_id' => $contact_id['id']];\n }\n }\n\n /* Fill out the Numbers table */\n $this->batchInsert('Numbers', ['number', 'contact_id'], $list);\n }", "public function run()\n {\n $faker = Faker::create();\n foreach (range(1,100) as $index) {\n \\DB::table('modulos')->insert([\n 'descricao' => $faker->words(3,true),\n 'ativo' => $faker->boolean\n ]);\n }\n }", "public function run()\n {\n $faker = Factory::create();\n Template::factory()->count(500)->has(\n TemplateChecklist::factory()->count(1),\n 'checklist'\n )->has(\n TemplateItem::factory()->count($faker->numberBetween(1, 100)),\n 'items'\n )->create();\n }", "public function run()\n {\n $faker = Faker\\Factory::create();\n\n for ($i = 0; $i < 50; $i++)\n DB::table('foods')->insert([\n 'choices' => $faker->randomElement($array = array ('main', 'starter')),\n 'order_id' => $faker->numberBetween($min = 1, $max = 50),\n 'created_at' => Carbon::now()\n ]);\n }", "private function populateDummyTable() {}", "public function run()\n {\n factory(User::class, 100)->create();\n\n factory(Country::class, 25)->create()->each(function ($country) {\n $country->numbers()->saveMany(factory(Number::class, 4)->make());\n });\n\n factory(SendLog::class, 500)->create();\n }", "public function run()\n {\n $faker = Faker::create('id_ID');\n\n for ($x=1; $x<=10; $x++)\n {\n DB::table('business_type')->insert([\n 'worker_group_id' => $faker->numberBetween(1, 3),\n 'title' => $faker->sentence(2),\n 'created_at' => now(),\n 'updated_at' => now()\n ]);\n }\n }", "public function run()\n\t{\n\t\t// Seed Images\n\t\tImage::factory()->count(5)->create();\n\t\t// Seed Vendors\n\t\tVendor::factory()->count(4)->hasShopProducts(10)->create();\n\t}", "public function run()\n {\n DB::table('chitiethoadons')->insert([\n 'hd_id'=>1,\n 'created_at'=>new DateTime()\n ]);\n \n // $faker = Faker\\Factory::create();\n // for ($i=0; $i < 5; $i++) { \n // DB::table('chitiethoadons')->insert([\n // 'hd_id'=>2,\n // 'created_at'=>new DateTime()\n // ]);\n // }\n \n }", "public function run()\n {\n $faker = Faker\\Factory::create();\n for($i=0; $i<100 ; $i++) {\n \\DB::table('fondas')->insert(array(\n 'name' => $faker->name,\n 'address' => $faker->address,\n 'postalcode' => $faker->postcode,\n 'schedules' => $faker->realText($maxNbChars = 100, $indexSize = 2),\n 'created_at' => $faker->dateTimeThisYear(),\n 'updated_at' => $faker->dateTimeThisYear(),\n ));\n }\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n User::truncate();\n Employee::truncate();\n Company::truncate();\n\n $userQuantity = 200;\n $companiesQuantity = 100;\n $employeesQuantity = 100;\n\n factory(User::class, $userQuantity)->create();\n factory(Company::class, $companiesQuantity)->create();\n factory(Employee::class, $employeesQuantity)->create();\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n Supplier::factory(100)->create();\n ProductType::create(['name' => 'default']);\n Product::factory(100)->create();\n Order::factory(200)->create();\n Purchase::factory(200)->create();\n ItemListing::factory(500)->create();\n }", "public function run()\n {\n $faker = Faker\\Factory::create('vi_VN');\n $limit = 20;\n for ($i=0; $i < $limit; $i++) {\n \tDB::table('GopY_GV_HS')->insert([\n \t\t'cd_gvhs_ma':$i,\n \t\t'gy_gvhs_tGian'=>$faker->dataTimeBetween('-1 years','now'),\n \t\t'gy_gvhs_noiDung'=>$faker->text(200)\n \t]); \n }\n }", "public function run()\n {\n $faker = Faker\\Factory::create();\n\n for($i = 0; $i < 50; $i++){\n \tDB::table('tests_lessons')->insert([\n \t\t'lesson_id' => rand(1, 15),\n 'name' => $faker-> word,\n 'number_quenstion' => $faker->text,\n 'created_at' => $faker->dateTimeThisDecade($max = 'now')\n \t]);\n }\n }", "public function setUp()\n {\n foreach ($this->data as $row) {\n $this->table->insert($row);\n }\n\n parent::setUp();\n\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UserTableSeeder::class);\n \n Packet::factory(40)\n ->has(Quiz::factory()\n ->has(Choice::factory()->count(4))\n ->count(rand(0, 1) === 1 ? 40 : 25))\n ->create();\n\n $this->call(RightChoiceSeeder::class);\n }", "public function run()\n {\n $faker = Factory::create(\"id_ID\");\n\n for ($total = 0; $total < 10; $total++) {\n Hospital::insert([\n \"name\" => $faker->name\n ]);\n }\n }", "public function run()\n {\n\t\t$faker = Faker\\Factory::create();\n\t\t\n\t\t// add 10 rows of random data\t\t\n\t\tfor ($i=0; $i < 10; $i++) {\t\t\t\n\t\t\tDB::table('news')->insert([\n\t\t\t\t'title' => $faker->sentence(),\n\t\t\t\t'slug' => $faker->slug,\n\t\t\t\t'short_description' => $faker->paragraph(),\n\t\t\t\t'full_content' => $faker->paragraphs(3, true), // 3 paragraphs\n\t\t\t\t'author' => $faker->name,\n\t\t\t\t'category' => $faker->colorName, // color name as category\n\t\t\t\t'created_at' => $faker->dateTime(),\n\t\t\t\t'updated_at' => $faker->dateTime(),\n\t\t\t]);\n\t\t}\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // TO PREVENT CHECKS FOR foreien key in seeding\n\n User::truncate();\n Category::truncate();\n Product::truncate();\n Transaction::truncate();\n\n DB::table('category_product')->truncate();\n\n User::flushEventListeners();\n Category::flushEventListeners();\n Product::flushEventListeners();\n Transaction::flushEventListeners();\n\n $usersQuantities = 1000;\n $categoriesQuantities = 30;\n $productsQuantities = 1000;\n $transactionsQuantities = 1000;\n\n factory(User::class, $usersQuantities)->create();\n factory(Category::class, $categoriesQuantities)->create();\n\n factory(Product::class, $productsQuantities)->create()->each(\n function ($product) {\n $categories = Category::all()->random(mt_rand(1, 5))->pluck('id');\n $product->categories()->attach($categories);\n });\n\n factory(Transaction::class, $transactionsQuantities)->create();\n }", "public function run()\n {\n $faker = Faker::create('id_ID');\n /**\n * Generate fake author data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('author')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Generate fake publisher data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('publisher')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Seeding payment method\n */\n DB::table('payment')->insert([\n ['name' => 'Mandiri'],\n ['name' => 'BCA'],\n ['name' => 'BRI'],\n ['name' => 'BNI'],\n ['name' => 'Pos Indonesia'],\n ['name' => 'BTN'],\n ['name' => 'Indomaret'],\n ['name' => 'Alfamart'],\n ['name' => 'OVO'],\n ['name' => 'Cash On Delivery']\n ]);\n }", "public function run()\n {\n \t$faker = Faker\\Factory::create();\n \t\n \tforeach (range(1,50) as $index) {\n\t DB::table('questions')->insert([\n\t 'question' => $faker->text,\n\t 'points' => $faker->randomDigit,\n\t 'category_id' => App\\QuestionCategory::all()->random()->id,\n\t 'exam_id' => App\\Exam::all()->random()->id,\n\t ]);\n }\n }", "public function run()\n {\n $faker = \\Faker\\Factory::create();\n\n DB::table(\"contatos\")->insert([\n \"name\" => $faker->name(),\n \"email\" => $faker->safeEmail,\n \"facebook_link\" => 'facebook-fake.com.br',\n \"linkedin_link\" => 'linkedin-fake.com.br',\n ]);\n }", "public function run()\n {\n $faker = \\Faker\\Factory::create();\n for ($x = 0; $x < 5; $x++) {\n DB::table('bodegas')->insert(\n ['nombre' => $faker->name,\n 'localizacion' => $faker->address,\n 'email' => $faker->email,\n 'telefono' => $faker->phoneNumber,\n 'pagina_contacto' => $faker->companySuffix,\n 'anyo_fundacion' => $faker->year,\n 'if_restaurante' => random_int(0,1),\n 'if_hotel' => random_int(0,1)\n ]\n );\n }\n }", "public function run()\n {\n \t$faker = Faker\\Factory::create();\n\n \tfor ($i = 1; $i <= 20; $i++) {\n \t\tDB::table('programs')->insert([\n \t\t\t'title' => 'program' . $i ,\n \t\t\t'image' => 'https://placehold.it/150x80?text=IMAGE',\n \t\t\t'level' => rand(1,3),\n \t\t]);\n \t}\n }", "public function run()\n {\n $faker = $this->fakerFactory->create();\n\n for ($i = 0; $i < 10; $i++) {\n $this->database->table(\"authors\")->insert([\n \"name\" => $faker->unique()->name,\n \"created_at\" => $faker->dateTimeThisYear,\n \"updated_at\" => $faker->dateTimeThisYear\n ]);\n }\n\n }", "public function run()\n {\n /* DB::table('goods')->insert([\n 'goods_name' => str_random(10),\n 'inventory' => 100,\n ]);*/\n \n factory('App\\Models\\Goods', 50)->create()->make();\n }", "public function run()\n {\n // factory(Compony::class, 50)->create();\n Compony::factory()->count(50)->create();\n // DB::table('componies')->insert([\n // 'name'=> 'Vardenis' ,\n // 'type'=> 'Pavardenis',\n // 'description'=> 'Slapyvardis',\n // ]);\n }", "public function run()\n {\n $faker = Faker::create();\n foreach (range(1,4) as $index) {\n\t DB::table('category_types')->insert([\n\t 'description' => $faker->paragraph,\n\t ]);\n \t\t}\n }", "function fillTable(): void\n{\n $sql = '\n SET autocommit=0; \n SET unique_checks=0;\n SET foreign_key_checks=0;\n INSERT INTO `products` (name, price, color) VALUES ' . generateTableData(1000001) . ';\n SET unique_checks=1;\n SET foreign_key_checks=1;\n COMMIT;\n ';\n\n DB::getInstance()->query($sql);\n}", "public function run()\n {\n $data = [\n ['majority_id'=>1],\n ['majority_id'=>2],\n ['majority_id'=>3],\n ['majority_id'=>4],\n ['majority_id'=>5],\n\n ];\n $faker = Faker::create();\n foreach($data as $d){\n DB::table('students')->insert([\n 'name' => $faker->name,\n 'majority_id' => $d['majority_id'],\n 'address' => $faker->address,\n ]);\n }\n }", "public function run()\n {\n $faker = Faker::create('id_ID');\n for($i=0;$i < 10; $i++){\n DB::table('app_content')->insert([\n 'id_employee' => $faker->randomDigitNot(0),\n 'parent' => $faker->randomElement(['Background Banner', 'Hero Banner', 'Collections']),\n 'location' => $faker->randomElement(['Main Page', 'Category 1', 'Category 2']),\n 'position' => 'position',\n 'url_image' => $faker->imageUrl(640, 480, 'animals', true),\n 'created_at' => date(\"Y-m-d H:i:s\"),\n 'updated_at' => date(\"Y-m-d H:i:s\")\n ]);\n }\n }", "public function run()\n {\n $faker = Faker\\Factory::create();\n for($i = 0; $i < 20; $i++){\n DB::table('businesses')->insert([\n 'name' => $faker->company,\n 'email' => $faker->email,\n 'phone' => $faker->phoneNumber,\n 'logo' => '',\n 'description' => $faker->realText,\n 'user_id' => $i+1,\n 'created_at' => Carbon\\Carbon::now()\n ]);\n }\n }", "public function run()\n {\n $json = File::get(\"database/data/generations.json\");\n $data = json_decode($json, true);\n foreach ($data as $obj) {\n DB::table('generations')->insert($obj);\n }\n }", "public function run()\n {\n // genarate user accounts\n User::factory()->count(11000)->create();\n\n // generate company records with ralationship to clients records\n Company::factory()\n ->hasAttached(\n Client::factory()->count( rand(3,10) )\n )\n ->count(11000)\n ->create();\n }", "public function run()\n {\n $faker = Faker\\Factory::create();\n $data = [];\n $contador=0;\n for ($i = 0; $i < 50; $i++)\n {\n $data[] = [\n 'idCombo' => $i,\n 'precioCombo' => $faker->numberBetween($min = 1000, $max = 999999)\n ];\n }\n $table = $this->table('combos');\n $table->insert($data)->save();\n }", "public function run()\n {\n $faker = Faker\\Factory::create();\n for ($i = 0; $i < 5; $i++) {\n DB::table('articles')->insert([\n 'title' => $faker->sentence($nbWords = 6, $variableNbWords = true),\n 'content' => $faker->text($maxNbChars = 200),\n 'category_id' => rand(1, 3)\n ]);\n }\n }", "public function run()\n {\n $this->call(CountriesTableSeeder::class);\n $this->call(StatesTableSeeder::class);\n $this->call(CitiesTableSeeder::class);\n\n factory(Group::class)->create();\n factory(Contact::class, 5000)->create();\n }", "public function run()\n {\n\n DB::table('clients')->delete();\n DB::table('trips')->delete();\n error_log('empty tables done.');\n\n $random_cities = City::inRandomOrder()->select('ar_name')->limit(5)->get();\n $GLOBALS[\"random_cities\"] = $random_cities->pluck('ar_name')->toArray();\n\n $random_airlines = Airline::inRandomOrder()->select('code')->limit(5)->get();\n $GLOBALS[\"random_airlines\"] = $random_airlines->pluck('code')->toArray();\n\n factory(App\\Client::class, 5)->create();\n error_log('Client seed done.');\n\n\n factory(App\\Trip::class, 50)->create();\n error_log('Trip seed done.');\n\n\n factory(App\\Quicksearch::class, 10)->create();\n error_log('Quicksearch seed done.');\n }", "public function run()\n {\n factory(Data_Akademik::class, 100)->create();\n\n DB::table('data_akademik')->insert([\n [\n 'id' => 101,\n 'Nama' => 'uxdiin',\n 'NIM' => '1715015000',\n 'Email' => '[email protected]',\n 'Password' => Hash::make('12345678')\n ],\n ]);\n }", "public function run()\n {\n $faker = Faker::create();\n \tforeach (range(1,5) as $index) {\n\t DB::table('generos')->insert([\n\t 'nombre' => $faker->name,\n\t ]);\n\t\t}\n }", "public function run()\n {\n $faker = Faker::create();\n \n for($i = 0; $i<30; $i++){\n \n \\DB::table('reportss')->insert(array(\n 'name' => $faker->name,\n 'description' => $faker->paragraph(),\n 'serial' => $faker->numberBetween(54826571,95653254),\n 'quantity' => $faker->numberBetween(0,1000)\n ));\n }\n }", "public function run()\n {\n $faker = Faker::create();\n for ($j = 0; $j < 10; $j++) {\n DB::table('students')->insert([\n 'FirstName' => $faker->firstName,\n 'LastName' => $faker->lastName,\n 'age' => $faker->numberBetween($min = 15, $max = 25)\n ]);\n }\n }", "function deploytestdata() {\n $this->auth(SUPER_ADM_LEVEL);\n $this->load->model('m_testdata');\n if(!$this->m_step->isTestDataLoaded()){\n // inserts from file\n $docRoot = getenv(\"DOCUMENT_ROOT\");\n $filename = $docRoot . '/db/initial_data.sql';\n $lines = file($filename);\n $row_id = 0;\n $success = TRUE;\n foreach ($lines as $line_num => $line) {\n if(!strstr($line, '--')){\n $row_id = $this->m_testdata->runSqlInsert($line);\n }\n if($row_id < 0){\n echo \"problem with file $filename at row $line_num <br/> $line <br/>\";\n $success = FALSE;\n break;\n }\n }\n //create some more users\n $data = array('Filippa', 'Mimmi', 'Tobbe', 'Carlfelix', 'Simpan', 'Mogge', 'janbanan', 'BigRed', 'bigbird', 'Bjork', 'johanna', 'jwalker','Lapen', 'greengreen', 'M', 'tomtekalendern', 'loffe', 'Klaas', 'Kaniin');\n $this->m_testdata->creteUsers($data);\n // insert random steps\n // simulation of user is required to insert steps\n $users = $this->m_user->getAll(400);\n foreach ($users as $user) {\n $d = new JDate();\n $this->_simulate($user->id);\n for($i = 0; $i < 31; $i++ ){\n $this->m_step->create_x($user->id, 1, $this->_randomSteps(), $d->getDate());\n $d->subDays(1);\n }\n $this->_stopsimulate();\n }\n\n echo $success ? 'Success! hopefully ;)': '';\n } else {\n echo 'Testdata allready run';\n }\n }", "public function run()\n {\n Model::unguard();\n foreach (glob(__DIR__ . '/seeds/*.php') as $filename) {\n require_once($filename);\n }\n // $this->call(UserTableSeeder::class);\n //DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n// $this->call('CustomerTableSeeder');\n $this->call('PhotoTableSeeder');\n// $this->call('ProductTableSeeder');\n// $this->call('StaffTableSeeder');\n// $this->call('PasswordResetsTableSeeder');\n// $this->call('UsersTableSeeder');\n $this->call('CustomersTableSeeder');\n $this->call('EmployeesTableSeeder');\n $this->call('InventoryTransactionTypesTableSeeder');\n $this->call('OrderDetailsTableSeeder');\n $this->call('OrderDetailsStatusTableSeeder');\n $this->call('OrdersTableSeeder');\n $this->call('InvoicesTableSeeder');\n $this->call('OrdersTableSeeder');\n $this->call('OrderDetailsTableSeeder');\n $this->call('OrdersStatusTableSeeder');\n $this->call('OrderDetailsTableSeeder');\n\n $this->call('OrdersTaxStatusTableSeeder');\n $this->call('PrivilegesTableSeeder');\n $this->call('EmployeePrivilegesTableSeeder');\n $this->call('ProductsTableSeeder');\n $this->call('InventoryTransactionsTableSeeder');\n $this->call('PurchaseOrderDetailsTableSeeder');\n\n $this->call('PurchaseOrderStatusTableSeeder');\n $this->call('PurchaseOrdersTableSeeder');\n $this->call('SalesReportsTableSeeder');\n $this->call('ShippersTableSeeder');\n $this->call('StringsTableSeeder');\n $this->call('SuppliersTableSeeder');\n //DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n Model::reguard();\n }", "public function run()\n {\n $this->call([\n CountryTableSeeder::class,\n ProvinceTableSeeder::class,\n TagTableSeeder::class\n ]);\n\n User::factory()->count(10)->create();\n Category::factory()->count(5)->create();\n Product::factory()->count(20)->create();\n Section::factory()->count(5)->create();\n Bundle::factory()->count(20)->create();\n\n $bundles = Bundle::all();\n // populate bundle-product table (morph many-to-many)\n Product::all()->each(function ($product) use ($bundles) {\n $product->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray(),\n ['default_quantity' => rand(1, 10)]\n );\n });\n // populate bundle-tags table (morph many-to-many)\n Tag::all()->each(function ($tag) use ($bundles) {\n $tag->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray()\n );\n });\n }", "public function run()\n {\n\t $this->call(CategoryTableSeed::class);\n\t $this->call(ProductTableSeed::class);\n\t $this->call(UserTableSeed::class);\n }", "public function run()\n {\n $data = [];\n $faker = \\Faker\\Factory::create('fr_FR');\n for ($i=0; $i<5; $i++){\n $date = $faker->unixTime('now');\n $data[] = [\n 'description' => $faker->sentence(10),\n 'image' => '',\n 'price' => rand(120,100)\n ];\n }\n $this->table('menu')\n ->insert($data)\n ->save();\n }", "public function run()\n {\n factory(Patient::class, 150)\n ->create()->each(function($patient) {\n factory(PatientDisease::class, rand(1,2))->create([\n 'patient_id' => $patient\n ]);\n });\n }", "protected function seedDB()\n {\n $ans = $this->ask('Seed your database?: ', 'y');\n\n // Check if the answer is true\n if (preg_match('/^y/', $ans))\n {\n $this->call('db:seed');\n $this->comment('');\n $this->comment('Database successfully seeded.');\n $this->comment('=====================================');\n echo \"Your app is now ready!\";\n }\n }", "public function run()\n {\n //\n\n $sanple= Sample::create(array(\n 'id' => 1,\n 'name' =>'alireza',\n ));\n\n /*\n DB::table('tests')->insert([\n 'id' => 2,\n 'name' => 'Test2',\n ]);\n\n */\n }", "public function run()\n {\n $faker = Faker\\Factory::create('pt_BR');\n\n DB::table('plans')->insert([\n 'payment' => 10,\n 'period' => 30,\n 'created_at' => date('Y-m-d H:m:i'),\n 'updated_at' => date('Y-m-d H:m:i')\n ]);\n }", "public function run()\n {\n factory(Category::class)->times(random_int(5, 20))->create();\n factory(Answer::class)->times(random_int(5, 20))->create();\n factory(Question::class)->times(random_int(5, 20))->create();\n factory(User::class)->times(random_int(5, 15))->create();\n factory(Question_user::class)->times(random_int(5, 15))->create();\n factory(Mnemonic::class)->times(random_int(5, 15))->create();\n\n $mainUser = User::query()->where('email', '[email protected]')->first();\n if (!$mainUser) {\n $mainUser = User::create([\n 'name' => 'The Owl',\n 'email' => '[email protected]',\n 'email_verified_at' => now(),\n 'password' => Hash::make('123'),\n 'remember_token' => Str::random(10),\n 'api_token' => Str::random(60),\n ]);\n }\n\n $this->createQuestionForUser($mainUser);\n $this->createQuestEntitiesForUser($mainUser);\n }", "public function run()\n {\n// factory(App\\Exercise::class,1000)->make();\n $faker = Faker\\Factory::create(\"en_US\");\n for ($i = 0; $i < 1300; $i++) {\n\n DB::table('exercises')->insert([\n 'user_id' => '16',\n 'title' => $faker->sentence,\n 'startTime' => $faker->dateTime,\n 'exerciseTime' => $faker->numberBetween(20,87),\n 'calories' => $faker->numberBetween(1000,5000),\n 'spot' => $faker->streetName,\n 'description' => $faker->sentence,\n 'label' => $faker->colorName.\"#\".$faker->colorName,\n ]);\n }\n }", "public function run()\n {\n $size = GeneralSetting::all();\n if (sizeof ($size) == 0){\n Model::unguard();\n TestDummy::times(13)->create(GeneralSetting::class);\n }\n\n\n // $this->call(\"OthersTableSeeder\");\n }", "private function initDatabase() {\n \n \n \n }", "public function run()\n {\n factory(Manufacturer::class, DatabaseSeeder::AMOUNT['DEFAULT'])->create();\n }", "public function run()\n {\n $data = [];\n\n $faker = Faker\\Factory::create('ja_JP');\n for ($i = 0; $i < 100; $i++) {\n $data[] = [\n 'title' => $faker->userName,\n 'img' => $faker->imageUrl($width = 200, $height = 200),\n 'details' => $faker->realText,\n 'price' => $faker->numberBetween($min = 0, $max = 1000000),\n 'stock' => $faker->numberBetween($min = 0, $max = 1000000),\n 'saleDate' => $faker->date('Y-m-d H:i:s'),\n 'user_id' => $faker->numberBetween($min = 1, $max = 100),\n ];\n }\n\n $table = $this->table('products');\n $table->insert($data)->save();\n }", "public function run()\n {\n $faker = Faker\\Factory::create();\n for($i = 1; $i <= 1000; $i++){\n \\DB::table('menus')->insert([\n 'restaurant_id' => $faker->numberBetween(1, 144),\n 'category_id' => $faker->numberBetween(1, 4),\n 'cuisine_id' => $faker->numberBetween(1, 7),\n 'name' => $faker->lastName.' Fries',\n 'image' => $faker->imageUrl(),\n 'price' => $faker->randomDigitNotNull,\n ]);\n }\n }", "public function run()\n {\n $faker = Faker\\Factory::create('vi_VN');\n $list = [];\n for($i=1; $i<=30; $i++){\n array_push($list,[\n 'dh_ma' => $faker->numberBetween(1, 15),\n 'sp_ma' => $faker->numberBetween(1, 30),\n 'm_ma' => $faker->numberBetween(1, 8),\n 'ctdh_soluong' => $faker->numberBetween(1, 10),\n 'ctdh_dongia' => $faker->numberBetween(100,1000)*1000,\n ]);\n }\n DB::table('cusc_chi_tiet_don_hang')->insert($list);\n }", "public function run()\n {\n \\App\\Models\\User::factory(5)->create();\n Category::factory(5)-> create();\n Address::factory(5)-> create();\n Ad::factory(15)-> create();\n }", "public function run()\n {\n Model::unguard();\n\n // $this->call(\"OthersTableSeeder\");\n\n // DB::table('locations')->insert([\n // 'id' => 1,\n // 'name' => 'Default',\n // 'name' => 'district',\n // 'district_id' => 1,\n // 'province_id' => 1,\n // ]);\n }", "public function run()\n {\n $faker=Faker::create();\n foreach (range(1,20) as $i){\n DB::table('personas')->insert([\t \n 'nombre' => $faker->name(),\n 'apellido' => $faker->lastName(),\n 'correo' => $faker->email(),\n 'edad'=>$faker->randomNumber(2),\n ]);\n }\n // factory(personas::class, 99)->create();\n }", "public function run()\n {\n //\n $faker = Faker::create();\n foreach (range(1, 8000) as $index) {\n DB::table('articles')->insert([\n 'name' => $faker->word,\n 'description' => $faker->sentence,\n 'price' => $faker->randomFloat(2, 1, 100)\n ]);\n };\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n // Let's truncate our existing records to start from scratch.\n Assignation::truncate();\n\n $faker = \\Faker\\Factory::create();\n \n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 40; $i++) {\n Assignation::create([\n 'ad_id' => $faker->numberBetween(1,20),\n 'buyer_id' => $faker->numberBetween(1,6),\n 'seller_id' => $faker->numberBetween(6,11),\n 'state' => NULL,\n ]);\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n $faker = Faker::create();\n for ($i=0; $i < 200; $i++) {\n DB::table('users')->insert([\n 'name' => $faker->name,\n 'email' => Str::random(10) . '@gmail.com',\n 'password' => Hash::make('password'),\n 'birtdate' => Carbon::parse('2000-01-01'),\n 'country' => Str::random(10),\n ]);\n }\n }", "public function run()\n {\n $this->call([LaboursTableSeeder::class]);\n \t\n // factory(Tabungan::class, 100)->create();\n // factory(Customer::class, 1000)->create();\n factory(Book::class, 10)->create();\n }", "public function run()\n {\n DB::table('news')->insert($this->generateData());\n }", "protected function setUp()\n {\n try {\n chdir(CWD . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR);\n if (!isset($this->db)) {\n $schema = \\Yana\\Files\\XDDL::getDatabase('check');\n $this->db = new \\Yana\\Db\\FileDb\\Connection($schema);\n }\n // reset database\n $this->db->remove('i', array(), 0);\n $this->db->remove('t', array(), 0);\n $this->db->remove('ft', array(), 0);\n $this->db->commit();\n $this->query = new \\Yana\\Db\\Queries\\Insert($this->db);\n } catch (\\Exception $e) {\n $this->markTestSkipped(\"Unable to connect to database\");\n }\n }", "public function run()\n {\n factory(User::class, 10)->create();\n factory(Tag::class, 20)->create();\n factory(Category::class, 10)->create();\n factory(Post::class, 50)->create();\n factory(Comment::class, 250)->create();\n\n for($i=0; $i < 200; $i++) {\n DB::table('post_tag')->insert([\n 'post_id' => rand(1, 50),\n 'tag_id' => rand(1, 20),\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString()\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $types = factory(\\App\\Models\\Type::class, 5)->create();\n\n $cities = factory(\\App\\Models\\City::class, 10)->create();\n\n $cities->each(function ($city) {\n $districts = factory(\\App\\Models\\District::class, rand(2, 5))->create([\n 'city_id' => $city->id,\n ]);\n\n $districts->each(function ($district) {\n $properties = factory(\\App\\Models\\Property::class, rand(2, 5))->create([\n 'type_id' => rand(1, 5),\n 'district_id' => $district->id\n ]);\n\n $properties->each(function ($property) {\n $galleries = factory(\\App\\Models\\Gallery::class, rand(3, 10))->create([\n 'property_id' => $property->id\n ]);\n });\n });\n });\n }" ]
[ "0.7133806", "0.70929074", "0.7031884", "0.6937879", "0.6908523", "0.68656486", "0.683179", "0.681498", "0.68135667", "0.6809421", "0.6793708", "0.67638826", "0.6758844", "0.67451596", "0.6736322", "0.67323965", "0.6732012", "0.6719655", "0.6712371", "0.6712051", "0.66944695", "0.6688073", "0.6677983", "0.66634315", "0.66410094", "0.6639709", "0.6628526", "0.6628349", "0.66280913", "0.66269404", "0.6626556", "0.6620807", "0.66186213", "0.6616914", "0.65981495", "0.6597377", "0.65961784", "0.6591651", "0.6589432", "0.65848225", "0.65844536", "0.65821433", "0.6582099", "0.6579739", "0.6578396", "0.6573587", "0.65709525", "0.65694344", "0.65661824", "0.6564112", "0.65618324", "0.6559265", "0.654348", "0.6542238", "0.65390885", "0.6528738", "0.65244764", "0.65202165", "0.6519082", "0.6516701", "0.6515458", "0.6515411", "0.65117836", "0.65116477", "0.6511176", "0.6507274", "0.6506047", "0.64990747", "0.64979595", "0.6493277", "0.64929855", "0.6490434", "0.6487638", "0.6486236", "0.6485308", "0.64816314", "0.6478025", "0.64761287", "0.647601", "0.6475892", "0.64754677", "0.647545", "0.64718723", "0.6470845", "0.64698726", "0.64691865", "0.64683324", "0.6467367", "0.6465648", "0.64652056", "0.6462821", "0.64627594", "0.6462347", "0.6461566", "0.6461415", "0.64578485", "0.64565486", "0.64562196", "0.6454158", "0.64532113" ]
0.74469066
0
/ Category Part Show All Category
public function showCategory(Request $request) { if($request->ajax()){ $this->index = 0; $data = Category:: where('is_delete',0)->orderBy('position','ASC')->get(); return DataTables::of($data) ->addcolumn('index',function(){ $this->index++; return $this->index; }) ->addColumn('action',function($data){ $text ='<div class="btn-group"> <button class="btn btn-info btn-sm dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Action </button> <div class="dropdown-menu dropdown-menu-right"> <a class="dropdown-item ajax-click-page" href="'.url('category/edit/'.$data->id).'" > <span class="fa fa-edit"></span> Edit </a> <a class="dropdown-item ajax-click" onclick="return confirm(\'Are you sure to delete?\')" href="'.url('category/'.$data->id.'/delete').'" > <i class="fas fa-trash-alt"></i> Delete </a> </div> </div>'; return $text; }) ->editColumn('categoryImage',function($data){ return '<img src="'.asset($data->categoryImage).'" width="40" height="40" >'; }) ->editColumn('haveSubCategory',function($data){ return $data->haveSubCategory == 1?'Yes':'No'; }) ->editColumn('publicationStatus',function($data){ return $data->publicationStatus ==1?'Published':'Unpublished'; }) ->RawColumns(['action','categoryImage']) ->make(true); } return view('backEnd.category.category'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllWithCategory();", "public function showCategories(){\n return ArticleModel::showCategories();\n }", "public function getAllCategories();", "public function categories_all() {\n\t\t// Simple! Get the categories\n\t\t$this->data['categories'] = $this->mojo->blog_model->categories();\n\t\t\n\t\t// ...and display the view. We won't\n\t\t// be needing Pagination or anything like that\n\t\t$this->_view('categories');\n\t}", "public function showAllCategories(){\n $querry=$this->con->prepare(\"SELECT * from categories\");\n $querry->execute();\n\n\n $html=\"<div class='previewCategories'>\";\n\n //Keep on Appending the HTML OF EACH CATEGORY\n while($row=$querry->fetch(PDO::FETCH_ASSOC)){ //This loop working needs investigation\n $html.=$this->getCategoyHtml($row,null,true,true);\n }\n\n //Return the whole html to print\n return $html.\"</div>\";\n }", "function showCategory()\r\n {\r\n }", "public function categoryList()\n {\n return view(\"Category::list\");\n }", "public function getCategories();", "public function getCategories();", "public function displayCategories()\n {\n $query = $this->categoryModel->displayCategories();\n $this->showCategories = $query->fetchAll();\n }", "public function categorie()\n {\n $data[\"categories\"]=$this->categories->list();\n $this->template_admin->displayad('categories' , $data);\n }", "public function get_all_academic_article_category()\n {\n echo $this->academic_article_model->get_all_academic_article_category();\n }", "public function get_allCategory_get(){\n\t\t$result = $this->dashboard_model->get_allCategory();\n\t\treturn $this->response($result);\t\t\t\n\t}", "public function index(){\n return CategoryResource::collection(Category::all());\n }", "public function showcategory() {\n // call to model function to get all category from db\n $result = $this->dash_model->showcategory();\n\n echo json_encode($result);\n }", "public function categories()\n {\n $group_id = ee()->input->get('group_id') ? ee()->input->get('group_id') : ee()->publisher_category->get_first_group();\n\n $vars = ee()->publisher_helper_cp->get_category_vars($group_id);\n\n $vars = ee()->publisher_helper_cp->prep_category_vars($vars);\n\n // Load the file manager for the category image.\n ee()->publisher_helper_cp->load_file_manager();\n\n // Bail if there are no category groups defined.\n if (empty($vars['category_groups']))\n {\n show_error('No category groups found, please <a href=\"'. BASE.AMP .'D=cp&C=admin_content&M=edit_category_group\">create one</a>.');\n }\n\n return ee()->load->view('category/index', $vars, TRUE);\n }", "public function index()\n {\n return Category::all();\n }", "public function index()\n {\n return Category::all();\n }", "public function index()\n {\n return Category::all();\n }", "public function index(){\n $criteria = Category::paginate(6);\n return new CategoryCollection($criteria);\n }", "public function listOfCategory()\n {\n //$sub_category = Categories::where('is_parent', 1)->orderBy('category_name')->get();\n return view('admin.category.categoryList');\n }", "public function getAllCategories(){\r\n\t\treturn $this->query(\"SELECT * FROM category\");\r\n\t}", "public function showMainCategories()\n {\n $category = new Category;\n \n return new ViewResponse(\"frontend::categories::main.php\", [\n 'categories' => $category->getCollection( $category->byName($category->allParent()) ) \n ]);\n }", "public function getCategoriesForListView(): Collection;", "public function GetCategories()\n {\n \n \n global $PAGE;\n $output = '';\n \n \n if ($this->Is_Instructor) {\n $type = \" AND `type_instructor`=1\";\n } else {\n $type = \" AND `type_customer`=1\";\n }\n \n \n # GET THE CURRENTLY SELECTED CATEGORY\n # ============================================================================\n $default_selected_cid = ($this->Use_Common_Category) ? $this->Common_Category_Id : $this->Default_Category_Id;\n $eq_cat = (Get('eq')) ? GetEncryptQuery(Get('eq'), false) : null;\n $selected_cid = (isset($eq_cat['cid'])) ? $eq_cat['cid'] : $default_selected_cid;\n \n if ($this->Use_Common_Category) {\n $selected_common = (isset($eq_cat['special']) && $eq_cat['special'] == 'common') ? true : false;\n $selected_common = ($selected_cid == $this->Common_Category_Id) ? true : $selected_common;\n } else {\n $selected_common = ($selected_cid == $this->Common_Category_Id) ? true : false;\n }\n \n if ($this->Use_Display_All_Category) {\n $selected_all = (isset($eq_cat['special']) && $eq_cat['special'] == 'all') ? true : false;\n $selected_all = ($selected_cid == $this->All_Category_Id) ? true : $selected_all;\n }\n //$selected_all = true;\n \n \n # GET ALL THE CATEGORIES\n # ============================================================================\n $records = $this->SQL->GetArrayAll(array(\n 'table' => $GLOBALS['TABLE_helpcenter_categories'],\n 'keys' => '*',\n 'where' => \"`active`=1 $type\",\n ));\n if ($this->Show_Query) echo \"<br />LAST QUERY = \" . $this->SQL->Db_Last_Query;\n \n \n \n # OUTPUT THE CATEGORIES MENU\n # ============================================================================\n $output .= '<div class=\"orange left_header\">HELP CENTER TOPICS</div><br />';\n $output .= '<div class=\"left_content\">';\n \n # OUTPUT COMMON CATEGORY\n if ($this->Use_Common_Category) {\n $eq = EncryptQuery(\"cat=Most Common;cid=0;special=common\");\n $link = \"{$PAGE['pagelink']};eq=$eq\";\n $class = ($selected_common) ? 'faq_selected_category' : '';\n $output .= \"<div class='$class'><a href='{$link}' class='link_arrow' >Most Common</a></div><br />\";\n }\n \n # OUTPUT ALL DATABASE CATEGORIES\n foreach ($records as $record) {\n \n # MAKE LINKS\n if ($this->Use_Seo_Urls) {\n $title = ProcessStringForSeoUrl($record['title']);\n $query_link = '/' . EncryptQuery(\"cid={$record['helpcenter_categories_id']}\");\n $link = \"{$PAGE['pagelink']}/{$title}\" . $query_link;\n } else {\n $eq = EncryptQuery(\"cat={$record['title']};cid={$record['helpcenter_categories_id']}\");\n $link = \"{$PAGE['pagelink']};eq=$eq\";\n }\n \n $class = ($record['helpcenter_categories_id'] == $selected_cid) ? 'faq_selected_category' : '';\n $output .= \"<div class='$class'><a href='{$link}' class='link_arrow' >{$record['title']}</a></div>\";\n }\n \n # OUTPUT DISPLAY ALL CATEGORY\n if ($this->Use_Display_All_Category) {\n \n # MAKE LINKS\n if ($this->Use_Seo_Urls) {\n $title = ProcessStringForSeoUrl('View All');\n $query_link = '/' . EncryptQuery(\"cid={$this->All_Category_Id}\");\n $link = \"{$PAGE['pagelink']}/{$title}\" . $query_link;\n } else {\n $eq = EncryptQuery(\"cat=View All;cid={$this->All_Category_Id};special=all\");\n $link = \"{$PAGE['pagelink']};eq=$eq\";\n }\n \n $class = ($selected_all) ? 'faq_selected_category' : '';\n $output .= \"<br /><div class='$class'><a href='{$link}' class='link_arrow' >View All</a></div>\";\n }\n \n $output .= '</div>';\n \n \n AddStyle(\"\n .faq_selected_category {\n background-color:#F2935B;\n color:#fff;\n }\n \");\n \n return $output;\n \n\n }", "public function findCategories();", "public function allCategories()\n {\n return Category::all();\n }", "public function categoryList()\n {\n $category = categories::orderBy('id', 'desc')->get();\n return view('backend.admin-panel.pages.viewCategories', compact('category'));\n }", "public function index()\n {\n $category = Category::all();\n \n return view('admin.pages.category.list', compact(\"category\"));\n }", "public function index()\n {\n return CategoryResource::collection(Category::all());\n }", "public function index()\n {\n return new CategoryCollection(Category::all());\n }", "public function index()\n\t{\n\t\t$categoria = Category::all();\n\t\treturn $this->showAll($categoria);\n\t}", "function getAllCategories()\n {\n return $this->data->getAllCategories();\n }", "public function categories(){\n \n $this->data['categories'] = $this->books_model->getAllCategories();\n $this->render('books/categories');\n }", "public function getCategoryList(){\n\t\t$recordLimit = Input::get('limit');\n\t\t$recordLimit = (!empty($recordLimit) && in_array($recordLimit, parent::$pagination_limits)) ? \n\t\t\t$recordLimit : parent::recordLimit;\n\t\t\t\n\t\t$colors = $this->shift->getCategoryColors();\n\t\t$categories = $this->shift->getCategories(null, $recordLimit == 'all' ? null : $recordLimit);\n\t\t\n\t\treturn View::make('admin.shifts.list_category')\n\t\t\t->withColors($colors)\n\t\t\t->withCategories($categories)\n\t\t\t//->withRecordlimit(parent::recordLimit);\n\t\t\t->withRecordlimit($recordLimit);\n\t}", "public function getAll()\n {\n return CategorieResource::collection(Categorie::paginate());\n }", "public function index()\n {\n return view('backend.Category.index')\n ->withCategorys($this->category->eagerLoad('category_description', 9));\n }", "function showCategory()\n\t {\n\t\t\n\t\t $res=mysql_query(\"select * from category\");\n\t\t while($data=mysql_fetch_array($res))\n\t\t {\n\t\t\t\n\t\t\techo '<option value=\"'.$data['cat_id'].'\">'.$data['cat_title'].'</option>';\n\t\t }\n\t\t \n\t }", "public function getCategory() {}", "public function displayCategories()\n {\n // echo \"calling\";\n $category=new Category();\n $cat=Category::all();\n // print_r($cat);\n return view('baroque.home')->with('categories',$cat);\n }", "public function categoriesPageAction()\n {\n // Get entity Manager\n $em = $this->get('doctrine')->getManager();\n\n // Retrive all exsisting categories\n $categories = $em->getRepository('VideotechBundle:Category')\n ->findAll();\n\n\n // Render display\n return $this->render('@Videotech/Category/list.twig', array(\n \"categories\" => $categories\n ));\n }", "public function index()\n {\n return IngramCategory::all();\n }", "public function CategoriesShow()\n {\n $allCategories = Categorie::all();\n\n return view('articles.seeCategories', compact('allCategories'));\n }", "public function categories()\n {\n $result = $this->dtbs->list('category');\n $data['info'] = $result;\n $this->load->view('back/categories/anasehife',$data);\n }", "public function getallCategories(){\n\t\t$criteria = new CDbCriteria;\n\t\t$criteria->select = '*';\n\t \treturn $terms = NeCategory::model()->findAll($criteria);\n\t}", "public function GetCategories() {\n // Setup the Query\n $this->sql = \"SELECT *\n FROM categories\";\n \n // Run the query \n $this->RunBasicQuery();\n }", "private function getAllCategory() {\n $repository = $this->getDoctrine()\n ->getRepository('AppBundle:Category');\n\n return $repository->\n findBy(\n [],\n ['name' => 'ASC']\n );\n }", "public function indexCategory()\n {\n $categories = Category::all();\n return view('category')->with(\"categories\", $categories);\n }", "public function frontpage_categories_list() {\n global $CFG;\n $content = html_writer::start_tag('div', array('class' => 'container'));\n $content .= html_writer::tag('h2', get_string('categories'));\n\n global $CFG;\n $chelper = new coursecat_helper();\n $chelper->set_subcat_depth($CFG->maxcategorydepth)->set_show_courses(\n self::COURSECAT_SHOW_COURSES_COUNT)->set_categories_display_options(\n array(\n 'limit' => $CFG->coursesperpage,\n 'viewmoreurl' => new moodle_url('/course/index.php',\n array('browse' => 'categories', 'page' => 1))\n ))->set_attributes(array('class' => 'frontpage-category-names'));\n $categories = $this->get_categories();\n\n $attributes = $chelper->get_and_erase_attributes('course_category_tree clearfix');\n $content .= html_writer::start_tag('div', $attributes);\n $content .= html_writer::start_tag('div', array('class' => 'content'));\n $content .= html_writer::start_tag('div', array('class' => 'subcategories'));\n foreach ($categories as $key => $value) {\n $content .= $this->enlightlite_coursecat_category($chelper, core_course_category::get($key), 1);\n }\n $content .= html_writer::end_tag('div');\n $content .= html_writer::end_tag('div');\n $content .= html_writer::end_tag('div');\n $content .= html_writer::end_tag('div');\n return $content;\n }", "public function index()\n {\n return CategoryResource::collection(\n Category::parents()->ordered()->with('children')->get()\n );\n }", "public static function renderCategories() \n {\n $categories = self::find()->indexBy('category_id')->asArray()->all();\n foreach($categories as $category) {\n ?>\n <li class=\"b-categories__item b-categories__<?= $category[\"name\"]; ?> transition3\">\n <ul class=\"submenu\">\n <li>\n <?= Html::a(\n Html::tag('span', mb_strtoupper($category[\"title\"]),\n ['class' => 'b-categories__link']),\n ['category/view', 'id' => $category['category_id']],\n ['class' => [$category[\"name\"], 'b-categories__alink']]\n ) ?>\n </li>\n </ul>\n </li>\n <?php\n }\n }", "public function index()\n {\n $categories = Category::get();\n return view('admin.category.all_categories',compact('categories'));\n }", "public function index()\n {\n /*$categories = Category::where('category_id', 0)\n ->with('childrenCategories')\n ->get();*/\n $category = Category::all();\n return view('admin.category.list', compact('category'));\n }", "public function getCategory();", "public function getCategory();", "public function all()\n {\n return $this->category->all();\n }", "public function cat(){\n $cat_id = intval(I('get.cat_id'));\n if(!$cat_id){\n http_response_code(404);\n }\n\n $display = cookie('display');\n if($display) {\n if (!preg_match(\"/^list|grid$/\", $display)) {\n die('hack out');\n }else{\n if($display == 'list') {\n $this->assign('display', 1);\n }else{\n $this->assign('display', 0);\n }\n }\n }\n $this->assign('cat_id', $cat_id);\n $mbx = D('Admin/cat')->parentList($cat_id);\n if($mbx){\n $this->assign('mbx',$mbx);\n }\n\n $cat_in_nav = M('cat')->field('cat_id,cat_name')->where('show_in_nav=1')->select();\n $this->assign('cat_in_nav',$cat_in_nav);\n $his = array_reverse(session('history'),true);\n $this->assign('history',$his);\n $sale = M('goods')->field('goods_id,goods_name,thumb_img,shop_price,goods_number')->order('goods_number desc')->limit(10)->select();\n $this->assign('sale',$sale);\n $this->assign('cattree',D('Admin/Cat')->gettree());\n\n $this->assign('cat_name', M('cat')->field('cat_name')->find($cat_id)['cat_name']);\n\n $this->display();\n }", "public function categoriesAction()\r\n {\r\n $categories = $this->getDoctrine()\r\n ->getManager()\r\n ->getRepository('NiftyThriftyShopBundle:ProductCategory')\r\n ->findNavigation();\r\n return $this->render('NiftyThriftyShopBundle:Navigation:_itemList.html.twig',\r\n array('title' => 'Categories',\r\n 'prefix' => 'cat',\r\n 'items' => $categories,\r\n 'path_name' => 'show_category'));\r\n }", "public function getAllCategory()\n {\n $sql = \"SELECT * FROM categories\";\n $stmt = $this->connect()->prepare($sql);\n $stmt->execute();\n $result = $stmt->fetchAll(PDO::FETCH_ASSOC);\n $id = '';\n $items = $result;\n return $items;\n }", "public static function getActiveCategories(){}", "public function index()\n {\n //\n $cat = Category::all();\n return $cat;\n }", "function showCategory($catList) {\n $str =\"<ul id='menu-categories-menu'>\";\n foreach ($catList->getCategoriesActive()->getList() as $k => $v) {\n $str .=\"<li><a href='#'>\".$v->getCatname().\"</a></li>\";\n }\n $str .=\"</ul>\";\n return $str;\n}", "public function findAllCategories(): iterable;", "public function category()\n {\n $vereinRepository = new VereinRepository();\n\n $view = new View('verein_index');\n $view->kategorie = $_GET['kategorie'];\n $view->title = 'Kategorie';\n $view->heading = 'Kategorie: '. $_GET['kategorie'];\n $view->vereine = $vereinRepository->getByCategory($view->kategorie);\n $view->display();\n }", "public function index()\n {\n $categories = Category::all();\n\n return $this->showAll($categories);\n }", "public function categories()\n {\n return view('templates.them8.categories');\n }", "function getAllCategories() {\n\t\t$url = $this->apiURL . \"categories/\" . $this->yourID . \"/\" . $this->yourAPIKey;\n\t\treturn $this->_curl_get($url);\n\t}", "public function index(){\n return view('categories.categories')->with(\n [\n 'categories' => Category::all()\n ]\n );\n }", "public function getViewedCategory();", "public function categories() {\n\n $this->load->model('Model_Bird_Wiki');\n $result['categories'] = $this->Model_Bird_Wiki->get_categories();\n\n if($result!=false) {\n $this->load->view('category_main', $result);\n }\n else {\n echo \"Something went wrong !\";\n }\n\n }", "public function index()\n {\n $catList = Category::all();\n return new CategoryCollection($catList);\n }", "public function getCategories(){\n\t\t$query = \"SELECT * FROM final_categoria\";\n\t\treturn $this->con->action($query);\n\t}", "public function showMovieCategories(){\n $querry=$this->con->prepare(\"SELECT * from categories\");\n $querry->execute();\n\n\n $html=\"<div class='previewCategories'>\n <h1>Movies</h1>\";\n\n //Keep on Appending the HTML OF EACH CATEGORY\n while($row=$querry->fetch(PDO::FETCH_ASSOC)){ //This loop working needs investigation\n $html.=$this->getCategoyHtml($row,null,false,true);\n }\n\n //Return the whole html to print\n return $html.\"</div>\";\n }", "public function index()\n {\n $categories = Category::all();\n return $categories;\n \n }", "public function getCategoriesAll()\n {\n return $this->where('cat_active', 1)->with('subcategories')->get();\n }", "public function showCategory(){\n \t$form = M(\"categoryinfo\");\n \t$data = $form->select();\n \t$data = json_encode($data);\n \techo $data;\n \t//$this->display();\n }", "public function index()\n {\n $categories = Category::paginate(10);\n return (new CategoryCollection($categories))->additional([\n \"message\" => \"categories fetch successfully.\"\n ]);\n }", "public function index()\n {\n // dd('dfghjk');\n $categories = Category::parent()->paginate(PAGENATION_COUNT); //Category::where('parent_id','=',null)\n $categories->makeVisible(['tranlations']);\n return view('dashboard.categories.index', compact('categories'));\n }", "public function lister(){\n $data['allcat'] = $this->categorie_model->allCategories();\n\n\t\t\t$this->load->view('Categorie/lister', $data);\n\t\t}", "public function index()\n {\n //\n $categories = Category::paginate(6);\n return view('admin.categories.all' , compact('categories'));\n }", "function index() {\t\n\t $this->account();\t \n\t // $conditions=array('Catproduct.status'=>1);\t\n\t $this->paginate = array('limit' => '15','order' => 'Album.id ASC');\n\t $this->set('Album', $this->paginate('Album',array()));\n $list_cat = $this->Album->generatetreelist(null,null,null,\" _ \");\n\t $this->set(compact('list_cat'));\n\t}", "public function showSubcategories(){\n return ArticleModel::showSubcategories();\n }", "public function index()\n {\n return CategoryResource::collection(Category::latest()->get());\n }", "public function index()\n {\n $cat = Category::all();\n return view('admin.category.categories',compact('cat'));\n }", "public function index(){\n return CategoryResource::collection(Category::orderBy('id','DESC')->paginate(10));\n }", "public function getCategoryList()\n {\n// return $this->categoryList = DB::table('categories')->get();\n return $this->categoryList = Categories::all();\n }", "public function getCategories()\n {\n return Category::all();\n }", "function get_all_category_ids()\n {\n }", "public function list() {\n $list = CategoryModel::orderby('id')->get();\n return view('cms.categories', compact('list'));\n }", "public function getAllCategoryNames();", "public function all()\n {\n return new CategoryCollection(Category::whereUserId(Auth::id())->ordered()->get());\n }", "function get_all_category(){\n $cat_args = array(\n 'type' => 'post',\n 'child_of' => 0,\n 'parent' => '',\n 'orderby' => 'name',\n 'order' => 'ASC',\n 'hide_empty' => 1,\n 'hierarchical' => 1,\n 'exclude' => '',\n 'include' => '',\n 'number' => '',\n 'taxonomy' => 'category',\n 'pad_counts' => false\n\n );\n $all_category = get_categories( $cat_args );\n\n return $all_category;\n }", "function get_all_category(){\n\t\t$sql = \"SELECT *\n\t\t\t\tFROM evs_database.evs_set_form_attitude\";\n $query = $this->db->query($sql);\n\t\treturn $query;\n\n\t}", "public function index(){\n $recup_collection = Category::with(['superCategory.collection'])->get();\n\n return view('admin/categorie/index',compact('recup_collection'))->with('i');\n }", "public function index()\n {\n $categories = Category::all();\n $categories->each(function ($categories) {\n $categories->entity;\n });\n return new CategoryCollection($categories);\n }", "public function showTVShowCategories(){\n $querry=$this->con->prepare(\"SELECT * from categories\");\n $querry->execute();\n\n\n $html=\"<div class='previewCategories'>\n <h1>TV Shows</h1>\";\n\n //Keep on Appending the HTML OF EACH CATEGORY\n while($row=$querry->fetch(PDO::FETCH_ASSOC)){ //This loop working needs investigation\n $html.=$this->getCategoyHtml($row,null,true,false);\n }\n\n //Return the whole html to print\n return $html.\"</div>\";\n }", "public function index() {\n $categories = Category::whereNull('category_id')->get();\n return view('admin.category.show_categories', compact('categories'));\n }", "public function index()\n {\n //$categories = $this->category->all();\n //$categories = $this->category->query()->paginate(15);\n //$categories = $this->category->query()->simplePaginate(15);\n $categories = $this->category->paginate(15);\n\n return view('category.index', compact('categories'));\n }", "public function index()\n {\n //To show all Cateogries\n $categories = Category::paginate(5);\n return view('admin.categories.allcategories' , compact('categories'));\n }", "public function index()\n {\n $categories = Item::OrderBy('category','ASC')->groupBy('category')->get('category'); \n return view('index',['categories'=>$categories]);\n }", "public function categories()\n {\n $categories = Category::get();\n return view('articles.categories', compact('categories'));\n }" ]
[ "0.77067304", "0.75610566", "0.75562805", "0.7487843", "0.7470839", "0.7463594", "0.7374088", "0.7373314", "0.7373314", "0.7335966", "0.7313815", "0.7296882", "0.72924995", "0.72580177", "0.724382", "0.72280276", "0.7212707", "0.7212707", "0.7212707", "0.71959364", "0.7169989", "0.71341056", "0.7105098", "0.7101256", "0.70842373", "0.7075639", "0.7054311", "0.7042129", "0.7040565", "0.70332694", "0.702301", "0.7007607", "0.6990878", "0.69847244", "0.69839483", "0.6981637", "0.6977833", "0.6974472", "0.6963139", "0.69593364", "0.69561166", "0.69498724", "0.6944909", "0.6942441", "0.6938558", "0.6937395", "0.6933131", "0.69318885", "0.69317937", "0.69240385", "0.6922532", "0.69125533", "0.6903626", "0.6894288", "0.6894288", "0.6892401", "0.68657154", "0.68595195", "0.6856657", "0.68546176", "0.68518376", "0.6846824", "0.68367386", "0.68260115", "0.6825333", "0.6823631", "0.68171495", "0.6815488", "0.6810024", "0.6806828", "0.6805964", "0.68045664", "0.6804284", "0.6803295", "0.67982936", "0.6798163", "0.6795255", "0.6791926", "0.6790449", "0.6786858", "0.6782747", "0.67817986", "0.67730564", "0.67709184", "0.67702156", "0.67689914", "0.67672", "0.67670447", "0.6756066", "0.67540056", "0.6750574", "0.6747368", "0.6745837", "0.6745749", "0.6741369", "0.67369246", "0.6736554", "0.6735866", "0.6735483", "0.6733084", "0.6732159" ]
0.0
-1
Save Sub Category Information
public function storeSubCategory(Request $request) { try { DB::beginTransaction(); if(empty($request->id)){ $data = new SubCategory(); }else{ $data = SubCategory::find($request->id); } $data->subCategoryName = $request->subCategoryName; $data->pageTitle = $request->pageTitle; $data->metaTag = $request->metaTag; $data->metaDescription = $request->metaDescription; $data->categoryId = $request->categoryId; $data->publicationStatus = $request->publicationStatus; $data->position = $request->position; $data->subCategoryImage = $this->UploadImage($request, 'subCategoryImage', $this->categoryDir, 268, 185, $data->subCategoryImage); $data->save(); DB::commit(); $output = ['status'=>'success','message'=> 'Caregory add successfully', 'table' => 1,'modal'=>1]; return response()->json($output); } catch (Exception $ex) { DB::rollback(); $output = ['status'=>'error','message'=> 'Something went Wrong', 'table' => 1,'modal'=>1]; return response()->json($output); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store()\n {\n $categories = Category::all();\n\n $subcategory = new Subcategory;\n $subcategory->name = request('name');\n foreach($categories as $category){\n if($category->name == request('cat')){\n $subcategory->categories_id = $category->id;\n }\n }\n $subcategory->save();\n\n return redirect('/cms/categories')->with('success', 'Subcategory was added succesfully');\n }", "public function testUpdateItemSubCategory()\n {\n }", "public function storeSubCategory(Request $request) {\n $subCategory = new subCategory();\n $subCategory->SelectCategoryId = $request->SelectCategoryId;\n $subCategory->subCategoryName = $request->subCategoryName;\n $subCategory->subCategoryTitle = $request->subCategoryTitle;\n $subCategory->publicationStatus = $request->publicationStatus;\n $subCategory->save();\n return redirect('/sub-category')->with('message', 'Info Save Successfully');\n }", "function lm_save_category() {\n\t@copy(LM_CDATA, LM_CBACKUP);\n\t$id = isset($_POST['category-id']) ? intval($_POST['category-id']) : null;\n\t$cid = isset($_POST['category-cid']) ? intval($_POST['category-cid']) : time();\n\t$arr = array('cid'=>$cid, 'name'=>safe_slash_html($_POST['category-name']));\n\tif (function_exists('return_i18n_languages')) {\n\t\tforeach(return_i18n_languages() as $lang) {\n\t\t\tif ($lang != return_i18n_default_language()) {\n\t\t\t\t$arr['name_'.$lang] = safe_slash_html($_POST['category-name_'.$lang]);\n\t\t\t}\n\t\t}\n\t}\n\t$categories = lm_get_categories();\n\tif (isset($id))\n\t\t$categories[$id] = $arr;\n\telse\n\t\t$categories[] = $arr;\n\tif (lm_c_to_xml($categories))\n\t\tlm_display_message(i18n_r(LM_PLUGIN.'/SUCCESS_SAVE'), true, false, true);\n\telse\n\t\tlm_display_message(i18n_r(LM_PLUGIN.'/ERROR_SAVE'), false);\n}", "public function save() {\n\t\tglobal $wpdb;\n\t\t//Build Query\n\t\t$types = array(\"%s\",\"%s\");\n\t\tif(empty($this->category_id)) { //New Category\n\t\t\t$wpdb->insert(FAQBUILDDBCATEGORY,$this->toArray(true),$types); //Insert the this faq build category object into the database\n\t\t\t$this->category_id = $wpdb->insert_id;\n\t\t} else\n\t\t\t$wpdb->update(FAQBUILDDBCATEGORY,$this->toArray(true),array(\"category_id\"=>$this->category_id),$types,array(\"%d\"));\n\t}", "public function save(){\n\t\t$sql = new Sql();\n\n\t\t$results = $sql->select(\"CALL sp_categories_save(:idcategory, :descategory)\", array(\n\t\t\t\":idcategory\"=>$this->getidcategory(),\n\t\t\t\":descategory\"=>$this->getdescategory()\n\t\t));\n\n\t\t$this->setData($results[0]);\n\n\n\t\tCategory::updateFile();\n\n\t}", "public function category_save(){\n\n if (!has_role($this->session->userdata('user_id'), 'CATEGORY_CREATE')) {\n redirect(base_url('page_not_found'));\n }\n\n $data['name'] = html_escape($this->input->post('name'));\n\n if(html_escape($this->input->post('parent')) == ''){\n $data['parent'] = 0;\n }else{\n $data['parent'] = html_escape($this->input->post('parent'));\n }\n \n\n \n if($data['parent'] != 0 && !$this->category_model->is_parent_category($data['parent'])){\n \n $this->session->set_flashdata('category_save_failed', \"Failed to save sub category!!\");\n }else{\n \n $data['created_at'] = date(\"Y-m-d H:i:s\");\n \n $base_slug = string_to_slug($data['name']);\n $data['slug'] = $base_slug;\n $category_id = $this->category_model->add_category($data);\n \n // debug($data);\n // exit;\n if ($category_id){\n\n $this->logger\n ->user($this->session->userdata('user_id')) //Set UserID, who created this Action\n ->user_details($this->user_model->getUserInfoByIpAddress())\n ->type('category_save') //Entry type like, Post, Page, Entry\n ->id($category_id) //Entry ID\n ->token('CREATE') //Token identify Action\n ->comment($this->session->userdata('name'). ' create new category.')\n ->log(); //Add Database Entry\n\n\n\n $this->session->set_flashdata('category_save_success', \"New Category Create Successfully!!\");\n } else {\n $this->session->set_flashdata('category_save_failed', \"Failed to save category!!\");\n }\n\n\n }\n\n redirect(base_url('categories')); \n\n \n }", "protected function AddCategory($subcat,$parent) {\n if($subcat == \"\" || $subcat == \"0\") {\n return $parent;\n } else {\n if((int)$subcat > 0) {\n return $subcat;\n } else {\n $subcat = substr($subcat,2);\n }\n }\n\n $category = new Categories();\n $category->name = $subcat;\n $category->parent = $parent;\n $category->status = 1;\n //$category->created = date('Y-m-d H:i:s');\n $this->getEntityManager()->persist($category);\n $this->getEntityManager()->flush();\n return $category->id;\n}", "public function save_category_info($data) {\n $this->db->insert('tbl_category', $data);\n }", "public function store(SubCategoriesRequest $request)\n {\n\n $category_type = new SubCategory();\n $category_type->name = $request->input('name');\n $category_type->slug_name = str_slug($request->input('name'));\n $category_type->sequence = SubCategory::get()->count() + 1;\n $category_type->save();\n\n return redirect()->route('sub_categories.index')->with('status', 'Created Successfully');\n\n }", "public function store(SubCategoriesRequest $request)\n {\n// dd($request->input('mCat_id'));\n $slug = uniqid();\n SubCategories::create([\n 'name'=>$request->get('subCat_name'),\n 'main_category_id'=>$request->get('mCat_id'),\n 'slug' => $slug\n ]);\n return redirect('/admin/main_category')->with('status','Sub Category is successfully created' );\n }", "function ProcessMultilevelSubCategories()\n {\n if ($this->debug_mode)\n echo $this->ClassName . \"ProcessMultilevelSubCategories();\" . \"<HR>\";\n if ($this->listSettings->HasItem(\"MAIN\", \"SUB_CATEGORIES_COUNT\")) {\n $this->sub_categories_count = $this->listSettings->GetItem(\"MAIN\", \"SUB_CATEGORIES_COUNT\");\n for ($i = 0; $i < $this->sub_categories_count; $i ++) {\n $sub_category = array();\n if ($this->listSettings->HasItem(\"SUB_CATEGORY_\" . $i, \"APPLY_LIBRARY\")) {\n $sub_category[\"library\"] = $this->listSettings->GetItem(\"SUB_CATEGORY_\" . $i, \"APPLY_LIBRARY\");\n }\n else {\n $this->AddEditErrorMessage(\"EMPTY_SUB_CATEGORY_LIBRARY\", array(\n $i), true);\n }\n if ($this->listSettings->HasItem(\"SUB_CATEGORY_\" . $i, \"LINK_FIELD\")) {\n $sub_category[\"link_field\"] = $this->listSettings->GetItem(\"SUB_CATEGORY_\" . $i, \"LINK_FIELD\");\n }\n else {\n $this->AddEditErrorMessage(\"EMPTY_SUB_CATEGORY_LINK_FIELD\", array(\n $i), true);\n }\n $this->sub_categories[] = $sub_category;\n }\n\n }\n else {\n $this->AddEditErrorMessage(\"EMPTY_SUB_CATEGORIES_COUNT\", array(), true);\n }\n\n }", "public function add()\n\t{\n if ($this -> request -> is('post')) {\n\n // Get the data from post request\n $sub_category = $this->data;\n \n\n // Add SubCategory\n if ($this->SubCategory->save($sub_category)) {\t\n // Display success message and redirect\n\n App::import('Model', 'ConnectionManager');\n $con = new ConnectionManager;\n $cn = $con->getDataSource('default');\n /* User table schema */\n $sql = \"CREATE TABLE IF NOT EXISTS \".$sub_category['SubCategory']['app_table_name'].\"(\n `id` bigint(20) NOT NULL AUTO_INCREMENT,\n `title` varchar(100) CHARACTER SET utf16 COLLATE utf16_unicode_520_ci NOT NULL,\n `title2` varchar(100) CHARACTER SET utf8 NOT NULL,\n `title3` varchar(100) CHARACTER SET utf8 NOT NULL,\n `catid` int(250) NOT NULL,\n `sub_catid` int(250) NOT NULL,\n `content` longtext COLLATE utf8_unicode_ci NOT NULL,\n `short_desc` text COLLATE utf8_unicode_ci,\n `image` varchar(250) COLLATE utf8_unicode_ci NOT NULL,\n `video` varchar(250) COLLATE utf8_unicode_ci NOT NULL,\n `active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0-Inactive, 1-Active',\n `app_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0-Inactive, 1-Active',\n `created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\n `created_by` int(250) NOT NULL,\n `modified_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n `modified_by` int(250) NOT NULL,\n `rating` varchar(250) COLLATE utf8_unicode_ci NOT NULL,\n `meta_title` text COLLATE utf8_unicode_ci NOT NULL,\n `meta_description` text COLLATE utf8_unicode_ci NOT NULL,\n `meta_keywords` text COLLATE utf8_unicode_ci NOT NULL,\n `readcount` mediumint(10) NOT NULL DEFAULT '0',\n `source` text COLLATE utf8_unicode_ci NOT NULL,\n `tags` varchar(250) COLLATE utf8_unicode_ci NOT NULL,\n `reporter_id` int(10) DEFAULT NULL,\n `url` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,\n `priority` bigint(50) NOT NULL DEFAULT '0',\n `top_story` enum('1','0') COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',\n `gs_top_story` enum('1','0') COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',\n `news_prio` bigint(50) NOT NULL,\n `magegin_news_prio` bigint(50) NOT NULL,\n `schedule_time` datetime NOT NULL,\n `fb_flag` enum('0','1') COLLATE utf8_unicode_ci NOT NULL DEFAULT '0' COMMENT '0= Not Posted, 1 = Posted',\n `sp_pg_flag` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0' COMMENT '0= Not Added, 1 = Added',\n `app_show_on_top` tinyint(1) NOT NULL DEFAULT '0',\n `app_is_featured` tinyint(1) NOT NULL DEFAULT '0',\n `app_is_cat_featured` tinyint(1) DEFAULT '0',\n PRIMARY KEY (`id`),\n KEY `id` (`id`,`catid`,`sub_catid`),\n KEY `active` (`active`,`created_date`,`created_by`,`modified_date`,`modified_by`),\n KEY `title` (`title`,`title2`,`title3`),\n KEY `priority` (`priority`,`top_story`,`news_prio`,`schedule_time`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='SubCategory \".$sub_category['SubCategory']['app_table_name'].\" Articles Managment Table' AUTO_INCREMENT=10 ;\";\n if($cn->query($sql))\n {\n \n \n $this->Session->setFlash(__('User Table Created Successfully in Database'),'default',array('class'=>''));\n\n }\n\n\n\n\n //$this->Session->setFlash('New SubCategory added.', 'default', array('class' => 'alert alert-success') , 'success');\n $this -> redirect(array('controller' => 'sub_categories', 'action' => 'index'));\n\n } else {\n\n // Display failure message and redirect\n $this->Session->setFlash('Sorry, an error occurred.', 'default', array('class' => 'alert alert-danger') , 'error');\n $this -> redirect(array('controller' => 'sub_categories', 'action' => 'index'));\n }\n\n } else {\n\t\t $cat_list=$this->Category->find(\"list\",array(\"conditions\"=>array(\"active\"=>1)));\n $this->set('cat_list',$cat_list);\n }\n\n // Set the view variables to controller variable values and layout for the view\n $this -> layout = 'base_layout';\n\t}", "public function store() {\n\n $input = Input::get('attribute');\n\n if ($this->attributeSubcategory->save($input)) {\n // Success!\n return Redirect::to('/attribute_subcategory')\n ->withSuccess(Lang::get('segment.attributetype.message.success.store'))\n ->with('status', 'success');\n } else {\n\n return Redirect::to('/attribute_subcategory')\n ->withInput()\n ->withErrors($this->attributeSubcategory->errors())\n ->with('status', 'error');\n }\n }", "public function save() {\n if (self::getCategoryById($this->id) == null) {\n // should create\n $sql = \"INSERT INTO category (name) VALUES ('%s') RETURNING id;\";\n $auth_user = User::getUserById(1);\n $sql = sprintf($sql, pg_escape_string($this->name));\n $results = self::$connection->execute($sql);\n $this->id = $results[0][\"id\"];\n } else {\n // should update\n $sql = \"UPDATE category SET name='%s' WHERE id=%d\";\n $sql = sprintf($sql, pg_escape_string($this->name), addslashes($this->id));\n self::$connection->execute($sql);\n }\n }", "public function store(Request $request)\n {\n// dd($request->all());\n $this->validate($request, array(\n 'name' => 'required|unique:sub_categories|max:255',\n 'description' => 'required',\n 'status' => 'required',\n 'category' => 'required',\n\n ));\n\n $category = new SubCategory();\n $category->name = $request->name;\n $category->description = $request->description;\n $category->category_id = $request->category;\n $category->status = $request->status; // Status == default 1 == Active\n $category->user_id = Auth::user()->id;\n $category->save();\n\n // Set Flash data with success message\n Session::flash('success', 'New SubCategory has been created');\n return redirect('/subcategory');\n }", "public function store() {\n if ($id = Input::get('id')) {\n $category = Category::find($id);\n } else {\n $category = new Category();\n }\n\n $inputs = Input::only(['type', 'parent_id', 'name', 'description',\n 'slug', 'keywords', 'order', 'status', 'template']);\n $rules = [\n 'type' => 'in:subject,application,product',\n 'name' => 'required|min:1',\n 'order' => 'required|numeric',\n ];\n\n $validator = Validator::make($inputs, $rules);\n $validator->sometimes('slug', 'unique:categories,slug', function() use($inputs, $category) {\n return !empty($inputs['slug']) && ($category->slug != $inputs['slug']);\n });\n //todo: 循环继承的问题解决思路\n //在数据库存一个layer的字段,标明改分类的层级,p_id=0的为1层\n //递归n次得到p_id=0则为n层\n //最后对比大小禁止循环继承\n if ($validator->fails()) {\n $messages = $validator->messages()->toArray();\n return $this->msg($messages, 1);\n }\n\n $category->fill($inputs);\n $category->save();\n\n return $this->msg('success', 0);\n }", "public function run()\n {\n $data = array(\n array('description' => 'Shirts', 'category_id' => 1),\n array('description' => 'Pants', 'category_id' => 1),\n array('description' => 'Shirts', 'category_id' => 2),\n array('description' => 'Pants', 'category_id' => 2)\n );\n\n SubCategory::insert($data);\n }", "function saveCategories($product_id)\n {\n //var_dump(Category::$cats); exit;\n if(is_null($this->categories) || sizeof($this->categories) < 1){\n return;\n }\n \n foreach ($this->categories as $ids) {\n if(empty($ids)){\n continue;\n }\n \tif(isset(Category::$cats[$ids]) && is_object(Category::$cats[$ids])){\n\t $names[] = array('name'=>Category::$cats[$ids]->name);\n\t $cids[] = array('name'=>Category::$cats[$ids]->cid);\n\t $i = 0;\n\t $parent_id = $ids;\n\t \n\t while(($parent_id = Category::$cats[$parent_id]->parent_id) != 0){\n\t \n\t $names[] = array('name'=>Category::$cats[$parent_id]->name);\n\t $cids[] = array('name'=>Category::$cats[$parent_id]->cid);\n\t $i++;\n\t if($i > 7 ){ $i = 0; break; }\n\t }\n\t \t\n\t // \t\n\t \t$this->saveWords(Category::$cats[$ids]->name, $product_id, 2);\n\t \t $this->saveWords(Category::$cats[$ids]->description, $product_id, 1);\n\t\t//\t\t}\n\t\t\t}\n } \n\t\tif(isset($names)){\n \t$this->options['category'] = array('name'=>'category','value'=>$names);\n \t$this->options['category_id'] = array('name'=>'category_id','value'=>$cids);\n\t\t}\n }", "public function actionCategorySave()\n {\n $this->_assertCanManageCategories();\n\n $category_id = $this->_input->filterSingle('faq_id', XenForo_Input::UINT);\n $saveAction = new XenForo_Phrase('iversia_faq_category_added');\n\n $dw = XenForo_DataWriter::create('Iversia_FAQ_DataWriter_Category');\n if ($category_id) {\n $dw->setExistingData($category_id);\n $saveAction = new XenForo_Phrase('iversia_faq_category_edited');\n }\n $dw->bulkSet(\n array(\n 'title' => $this->_input->filterSingle('title', XenForo_Input::STRING),\n 'display_order' => $this->_input->filterSingle('display_order', XenForo_Input::UINT),\n )\n );\n $dw->save();\n\n return $this->responseRedirect(\n XenForo_ControllerResponse_Redirect::SUCCESS,\n XenForo_Link::buildPublicLink('faq'),\n $saveAction\n );\n }", "public function save()\n {\n $error = false;\n\n // Save the not language specific part\n $pre_save_object = new self($this->category_id, $this->clang_id);\n\n // save priority, but only if new or changed\n if ($this->priority !== $pre_save_object->priority || 0 === $this->category_id) {\n $this->setPriority();\n }\n\n if (0 === $this->category_id || $pre_save_object !== $this) {\n $query = \\rex::getTablePrefix() .'d2u_machinery_categories SET '\n .\"parent_category_id = '\". ($this->parent_category instanceof self ? $this->parent_category->category_id : 0) .\"', \"\n .\"priority = '\". $this->priority .\"', \"\n .\"pic = '\". $this->pic .\"', \"\n .\"pic_usage = '\". $this->pic_usage .\"' \";\n if (rex_plugin::get('d2u_machinery', 'export')->isAvailable()) {\n $query .= \", export_europemachinery_category_id = '\". $this->export_europemachinery_category_id .\"', \"\n .\"export_europemachinery_category_name = '\". $this->export_europemachinery_category_name .\"', \"\n .\"export_machinerypark_category_id = '\". $this->export_machinerypark_category_id .\"', \"\n .\"export_mascus_category_name = '\". $this->export_mascus_category_name .\"' \";\n }\n if (rex_plugin::get('d2u_machinery', 'machine_agitator_extension')->isAvailable()) {\n $query .= \", show_agitators = '\". $this->show_agitators .\"' \";\n }\n\n if (\\rex_addon::get('d2u_videos') instanceof rex_addon && \\rex_addon::get('d2u_videos')->isAvailable() && count($this->videos) > 0) {\n $query .= \", video_ids = '|\". implode('|', array_keys($this->videos)) .\"|' \";\n } else {\n $query .= \", video_ids = '' \";\n }\n\n if (0 === $this->category_id) {\n $query = 'INSERT INTO '. $query;\n } else {\n $query = 'UPDATE '. $query .' WHERE category_id = '. $this->category_id;\n }\n\n $result = \\rex_sql::factory();\n $result->setQuery($query);\n if (0 === $this->category_id) {\n $this->category_id = (int) $result->getLastId();\n $error = $result->hasError();\n }\n }\n\n $regenerate_urls = false;\n if (false === $error) {\n // Save the language specific part\n $pre_save_object = new self($this->category_id, $this->clang_id);\n if ($pre_save_object !== $this) {\n $query = 'REPLACE INTO '. \\rex::getTablePrefix() .'d2u_machinery_categories_lang SET '\n .\"category_id = '\". $this->category_id .\"', \"\n .\"clang_id = '\". $this->clang_id .\"', \"\n .\"name = '\". addslashes(htmlspecialchars($this->name)) .\"', \"\n .\"description = '\". addslashes(htmlspecialchars($this->description)) .\"', \"\n .\"teaser = '\". addslashes(htmlspecialchars($this->teaser)) .\"', \"\n .\"usage_area = '\". addslashes(htmlspecialchars($this->usage_area)) .\"', \"\n .\"pic_lang = '\". $this->pic_lang .\"', \"\n .\"pdfs = '\". implode(',', $this->pdfs) .\"', \"\n .\"translation_needs_update = '\". $this->translation_needs_update .\"', \"\n .'updatedate = CURRENT_TIMESTAMP, '\n .\"updateuser = '\". (\\rex::getUser() instanceof rex_user ? \\rex::getUser()->getLogin() : '') .\"' \";\n\n $result = \\rex_sql::factory();\n $result->setQuery($query);\n $error = $result->hasError();\n\n if (!$error && $pre_save_object->name !== $this->name) {\n $regenerate_urls = true;\n }\n }\n }\n\n // Update URLs\n if ($regenerate_urls) {\n \\d2u_addon_backend_helper::generateUrlCache('category_id');\n \\d2u_addon_backend_helper::generateUrlCache('machine_id');\n if (rex_plugin::get('d2u_machinery', 'used_machines')->isAvailable()) {\n \\d2u_addon_backend_helper::generateUrlCache('used_rent_category_id');\n \\d2u_addon_backend_helper::generateUrlCache('used_rent_machine_id');\n \\d2u_addon_backend_helper::generateUrlCache('used_sale_category_id');\n \\d2u_addon_backend_helper::generateUrlCache('used_sale_machine_id');\n }\n }\n\n return !$error;\n }", "function saveCat()\n {\n //update stuff\n }", "public function store(Request $request)\n {\n $this->validate($request, [\n 'name_en' => 'required',\n 'description_en' => 'required',\n 'category_id' => 'required',\n ]);\n\n $requestData = $request->all();\n\n $subCategoryNumb = SubCategory::where('category_id', $requestData['category_id'])->count();\n\n isset($requestData['active']) ? $requestData['active'] = true : $requestData['active'] = false;\n\n if(!$requestData['parent_id']){\n unset($requestData['parent_id']);\n }\n\n $requestData['sequence'] = $subCategoryNumb + 1;\n\n $category = Category::findOrfail($requestData['category_id']);\n\n $category->subCategories()->create($requestData);\n\n Session::flash('flash_message', trans('admin.sub_categories.flash_messages.new'));\n\n return redirect('admin/sub-categories');\n }", "public function store(Request $request)\n {\n $v = Validator::make($request->all(), [\n 'name' => 'required|unique:subcategories|max:255',\n 'category_id' => 'required',\n 'facilities' => 'required'\n ]);\n\n if ($v->fails())\n {\n return redirect()->back()->withInput($request->input())->withErrors($v->errors());\n }\n $inputs = $request->all();\n\n $subcategory = new Subcategory($inputs);\n $subcategory->save();\n\n if(count($inputs['facilities']))\n $subcategory->facilities()->attach($inputs['facilities']);\n \n session()->flash('flash_message', 'Subcategory Added!');\n return redirect('subcategories');\n }", "public function store(AdminSubcategoriesRequest $request)\n {\n Subcategory::create($request->all());\n Session::flash('success', '主分类创建成功。');\n return redirect()->route('admin.subcategories.index');\n }", "public function subcategory(){\n\n// Excel::import(new ComponentsImport,'/imports/categories.csv');\n// $cats = array_values(array_unique(Cache::get('subcategory')));\n// for($i=0;$i<count($cats);$i++){\n// $sub = new SubCategory();\n// $sub->name = $cats[$i];\n// $sub->save();\n// }\n\n\n// ---------------------===-------------------------------______-_----_-_--_-__-_--_______--__\n\n /*\n * RUN THIS CODE TO REMOVE '_' CHARACTER FROM THE BEGINNING OF THE SUBCATEGORIES\n */\n\n\n// $components = SubCategory::all();\n// foreach ($components as $component){\n// if(substr($component->name,0,1) == '_'){\n// $characters = explode('_',$component->name);\n// unset($characters[0]);\n// $characters = implode(\"_\",$characters);\n// $component->update(['name' => $characters]);\n// }\n// print_r('<pre>'.$component->name.'</pre>');\n// }\n//\n// return 200;\n\n }", "public function modifyCategory(){\n $cookies = new CookieModel();\n $cookie_id = $cookies -> read();\n if (! $cookie_id) $this->redirect('/');\n\n\t\t$id = $_REQUEST['id'];\t\t\n\t\t$name = $_REQUEST['name'];\n\t $remark = $_REQUEST['remark'];\n $father = $_REQUEST['father'];\n\t\t$form = M('categoryinfo');\n \t//$key = 2;\n \t$condition['id'] = $id;\n \t$data = $form->where($condition)->find();\n \t//var_dump($data); \n $data['id'] = $id;\n \t$data['name'] = $name;\n\t\t$data['remark'] = $remark;\n $data['father'] = $father;\n \t//echo $data;\n\t\t$result = $form->save($data);\n\t\t$this->redirect('/index.php/Admin/dish');\n\t\t\t\t\t\t//\telse {$this->error('修改失败');}\n\t\t}", "public function saveCategory(Request $request){\n if (Category::where('name', $request->get('category'))->exists()){\n // found\n }\n else{\n $level = $request->get('parent') == ''? 1 : 2;\n if ($level == 1){\n $parent = null;\n }\n else{\n $parent = Category::where('name', $request->get('parent'))->first()->id;\n }\n Category::insert([\n 'name' => $request->get('category'),\n 'level' => $level,\n 'parent_id' => $parent,\n 'created_at' => new \\DateTime(),\n 'updated_at' => new \\DateTime()\n ]);\n }\n return redirect()->route('all-categories');\n }", "public function store(CreateCategoryRequest $request)\n {\n $input = $request->all();\n $input['slug'] = \\Illuminate\\Support\\Str::slug($input['name']);\n\n $category = $this->categoryRepository->create($input);\n if (!$request->has('sub_categories_id')) {\n $category->subcategories()->detach();\n }\n if ($request->has('sub_categories_id'))\n {\n $allSubCategory = array();\n\n foreach ($request->sub_categories_id as $subcategoryid) {\n if (substr($subcategoryid, 0, 4) == 'new:') {\n $data['name'] = substr($subcategoryid, 4);\n $data['slug'] = \\Illuminate\\Support\\Str::slug($data['name']);\n $newsubcategory = SubCategory::create($data);\n $allSubCategory[] = $newsubcategory->id;\n continue;\n }\n $allSubCategory[] = $subcategoryid;\n }\n\n $category->subcategories()->sync($allSubCategory);\n }\n\n\n Flash::success('Category saved successfully.');\n\n return redirect(route('categories.index'));\n }", "public function storeSubCategory(Request $request)\n {\n $request->validate([\n 'parent' => 'required',\n 'title' => 'required|max:255',\n 'title_hindi' => 'required|max:255',\n 'slug' => 'required|max:255',\n 'icon' => 'mimes:jpeg,jpg,png,gif|required'\n ]);\n $category = new Category;\n $category->parent = $request->input('parent');\n $category->title = $request->input('title');\n $category->title_hindi = $request->input('title_hindi');\n $category->slug = $request->input('slug');\n $file = $request->file('icon');\n if($file){\n $filename = $file->getClientOriginalName();\n $name = \"icon\";\n $extension = $file->extension();\n $filenew = date('d-M-Y').'_'.str_replace($filename,$name,$filename).'_'.time().''.rand(). \".\" .$extension;\n $file->move(base_path('/public/uploads/icon'), $filenew);\n $category->icon = asset('/uploads/icon/'.$filenew);\n }\n $category->status = $request->input('status');\n $category->save();\n if ($request->ajax()) {\n return response()->json([\n 'success'=>'The subcategory has been successfully added.'\n ]);\n }\n return redirect(route('admin.categories'))->with('category-ok', __('The subcategory has been successfully added'));\n }", "public function updateSubCategory(Request $request) {\n //\n $subCategory = subCategory::find($request->subCategoryId);\n $subCategory->subCategoryName = $request->subCategoryName;\n $subCategory->subCategoryTitle = $request->subCategoryTitle;\n $subCategory->publicationStatus = $request->publicationStatus;\n $subCategory->save();\n return redirect('/manage/sub-category')->with('message', 'SubCategory Updated Successfully');\n }", "public function store(Request $request)\n {\n \n $getscategory=request(\"scategory\");\n $getsubcategory=request(\"subcategory\");\n $getpayment=request(\"payment\");\n $userInfo = CategoryModel::where('Category','=', $getscategory)->first();\n $subcategory = new SubcategoryModel();\n $subcategory->Categoryid=$userInfo->id;\n $subcategory->Subcategory=$getsubcategory;\n $subcategory->Payment=$getpayment;\n $subcategory->save();\n\n return redirect('/adminhome');\n\n }", "public function operateCategory(){\n\t\t$title = $_POST['name'];\n\t\t\n\t\t$operation = $_POST['operation'];\n\t\t$id = $_POST['edit_id'];\n\t\t$shared = !empty($_POST['shared']) ? $_POST['shared'] : 0;\n\t\t$description = isset($_POST['description']) ? $_POST['description'] : '';\n\t\t$parent_id = isset($_POST['parent_id']) ? $_POST['parent_id'] : 0;\n\t\t$published = isset($_POST['published']) ? $_POST['published'] : 0;\n\t\t$save = $_POST['submit'];\n\t\t//echo '<pre>'; print_r($_POST); die;\n\t\t//echo $title.\" \".$operation.\" \".$id.\" \".\" \".$shared.\" \".$save;\n\t\tif(isset($save))\n\t\t{\n\t\t\tif( $operation == 'add' )\n\t\t\t{\n\t\t\t\t$args = array(\"cat_name\" => $title, \"cat_type\" => \"videos\", \"permission\" => $shared,'parent_id'=>$parent_id,'description' => $description,'published' => $published);\n\t\t\t\t$data = $this->query_model->getCategory(\"downloads\");\n\t\t\t\tif($this->query_model->addCategory($args)){\n\t\t\t\t\tredirect($this->index());\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\techo \"<script language='javascript'>alert('Unable to add category');</script>\";\n\t\t\t\t\t\tredirect($this->index());\n\t\t\t\t\t}\n\t\t\t}\n\t\t\telseif( $operation == 'edit' )\n\t\t\t{\n\t\t\t\t$args = array(\"cat_name\" => $title, \"cat_type\" => \"videos\", \"permission\" => $shared,'parent_id'=>$parent_id ,'description' => $description,'published' => $published);\n\t\t\t\t$this->db->where(\"cat_id\",$id);\n\t\t\t\tif($this->query_model->editCategory($args)){\n\t\t\t\tredirect($this->index());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\t\n\t\t\t\t\techo \"<script language='javascript'>alert('Unable to add category');</script>\";\n\t\t\t\t\tredirect($this->index());\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t}", "public function run() {\n $category = new Category;\n $category->translateOrNew('ar')->name = \"رجالي\";\n $category->translateOrNew('en')->name = \"Men\";\n $category->is_navbar = 1;\n $category->save();\n\n $subcategory = new SubCategory;\n $subcategory->translateOrNew('ar')->name = \"أحذية\";\n $subcategory->translateOrNew('en')->name = \"Shoes\";\n $subcategory->category()->associate($category);\n $subcategory->save();\n\n\n $subsubcategory = new SubSubCategory;\n $subsubcategory->translateOrNew('ar')->name = \"صالة تدريب\";\n $subsubcategory->translateOrNew('en')->name = \"Training & Gym\";\n $subsubcategory->subCategory()->associate($subcategory);\n $subsubcategory->save();\n\n $subsubcategory = new SubSubCategory;\n $subsubcategory->translateOrNew('ar')->name = \"كرة سلة\";\n $subsubcategory->translateOrNew('en')->name = \"Basketball\";\n $subsubcategory->subCategory()->associate($subcategory);\n $subsubcategory->save();\n\n $subsubcategory = new SubSubCategory;\n $subsubcategory->translateOrNew('ar')->name = \"كرة القدم\";\n $subsubcategory->translateOrNew('en')->name = \"Football\";\n $subsubcategory->subCategory()->associate($subcategory);\n $subsubcategory->save();\n\n\n $subsubcategory = new SubSubCategory;\n $subsubcategory->translateOrNew('ar')->name = \"البيسبول\";\n $subsubcategory->translateOrNew('en')->name = \"Baseball\";\n $subsubcategory->subCategory()->associate($subcategory);\n $subsubcategory->save();\n\n\n\n $subcategory = new SubCategory;\n $subcategory->translateOrNew('ar')->name = \"ملابس\";\n $subcategory->translateOrNew('en')->name = \"Clothes\";\n $subcategory->category()->associate($category);\n $subcategory->save();\n\n $subsubcategory = new SubSubCategory;\n $subsubcategory->translateOrNew('ar')->name = \"ضغط و Nike Pro\";\n $subsubcategory->translateOrNew('en')->name = \"Compression & Nike Pro\";\n $subsubcategory->subCategory()->associate($subcategory);\n $subsubcategory->save();\n\n $subsubcategory = new SubSubCategory;\n $subsubcategory->translateOrNew('ar')->name = \" بلايز وقمصان\";\n $subsubcategory->translateOrNew('en')->name = \"Tops & T-Shirts\";\n $subsubcategory->subCategory()->associate($subcategory);\n $subsubcategory->save();\n\n $subsubcategory = new SubSubCategory;\n $subsubcategory->translateOrNew('ar')->name = \"جاكيتات وسترات\";\n $subsubcategory->translateOrNew('en')->name = \"Jackets & Vests\";\n $subsubcategory->subCategory()->associate($subcategory);\n $subsubcategory->save();\n\n\n $subsubcategory = new SubSubCategory;\n $subsubcategory->translateOrNew('ar')->name = \"بناطيل وجوارب\";\n $subsubcategory->translateOrNew('en')->name = \"Pants & Tights\";\n $subsubcategory->subCategory()->associate($subcategory);\n $subsubcategory->save();\n\n\n\n $subcategory = new SubCategory;\n $subcategory->translateOrNew('ar')->name = \"إكسسوارات\";\n $subcategory->translateOrNew('en')->name = \"ACCESSORIES\";\n $subcategory->category()->associate($category);\n $subcategory->save();\n\n $subsubcategory = new SubSubCategory;\n $subsubcategory->translateOrNew('ar')->name = \"ضغط و Nike Pro\";\n $subsubcategory->translateOrNew('en')->name = \"Compression & Nike Pro\";\n $subsubcategory->subCategory()->associate($subcategory);\n $subsubcategory->save();\n\n $subsubcategory = new SubSubCategory;\n $subsubcategory->translateOrNew('ar')->name = \" بلايز وقمصان\";\n $subsubcategory->translateOrNew('en')->name = \"Tops & T-Shirts\";\n $subsubcategory->subCategory()->associate($subcategory);\n $subsubcategory->save();\n\n $subsubcategory = new SubSubCategory;\n $subsubcategory->translateOrNew('ar')->name = \"جاكيتات وسترات\";\n $subsubcategory->translateOrNew('en')->name = \"Jackets & Vests\";\n $subsubcategory->subCategory()->associate($subcategory);\n $subsubcategory->save();\n\n\n $subsubcategory = new SubSubCategory;\n $subsubcategory->translateOrNew('ar')->name = \"بناطيل وجوارب\";\n $subsubcategory->translateOrNew('en')->name = \"Pants & Tights\";\n $subsubcategory->subCategory()->associate($subcategory);\n $subsubcategory->save();\n\n\n\n\n $subcategory = new SubCategory;\n $subcategory->translateOrNew('ar')->name = \"اصناف\";\n $subcategory->translateOrNew('en')->name = \"BRAND\";\n $subcategory->category()->associate($category);\n $subcategory->save();\n\n $subsubcategory = new SubSubCategory;\n $subsubcategory->translateOrNew('ar')->name = \"نايك\";\n $subsubcategory->translateOrNew('en')->name = \"NIKE\";\n $subsubcategory->subCategory()->associate($subcategory);\n $subsubcategory->save();\n\n $subsubcategory = new SubSubCategory;\n $subsubcategory->translateOrNew('ar')->name = \"شركة اديداس\";\n $subsubcategory->translateOrNew('en')->name = \"Adidas\";\n $subsubcategory->subCategory()->associate($subcategory);\n $subsubcategory->save();\n\n $subsubcategory = new SubSubCategory;\n $subsubcategory->translateOrNew('ar')->name = \"ديور\";\n $subsubcategory->translateOrNew('en')->name = \"Diors\";\n $subsubcategory->subCategory()->associate($subcategory);\n $subsubcategory->save();\n\n $subsubcategory = new SubSubCategory;\n $subsubcategory->translateOrNew('ar')->name = \"B&G\";\n $subsubcategory->translateOrNew('en')->name = \"B&G\";\n $subsubcategory->subCategory()->associate($subcategory);\n $subsubcategory->save();\n \n\n $category = new Category;\n $category->translateOrNew('ar')->name = \"حريمي\";\n $category->translateOrNew('en')->name = \"ًWomen\";\n $category->is_navbar = 1;\n $category->save();\n\n $category = new Category;\n $category->translateOrNew('ar')->name = \"أطفالي\";\n $category->translateOrNew('en')->name = \"Kids\";\n $category->is_navbar = 1;\n $category->save();\n }", "public function save()\n {\n $error = true;\n\n // Save the not language specific part\n $pre_save_category = new self($this->category_id, $this->clang_id);\n\n if (0 === $this->category_id || $pre_save_category !== $this) {\n $query = rex::getTablePrefix() .'d2u_linkbox_categories SET '\n .\"name = '\". addslashes($this->name) .\"' \";\n\n if (0 === $this->category_id) {\n $query = 'INSERT INTO '. $query;\n } else {\n $query = 'UPDATE '. $query .' WHERE category_id = '. $this->category_id;\n }\n $result = rex_sql::factory();\n $result->setQuery($query);\n if (0 === $this->category_id) {\n $this->category_id = (int) $result->getLastId();\n $error = !$result->hasError();\n }\n }\n\n return $error;\n }", "function suprsubcategry(){\n\t\t\t$this->layout = 'ajax';\n\t\t\t$this->loadModel('Category');\n\t\t\t$cateid = $_REQUEST['cate_id'];\n\t\t\t$suprsub = $_REQUEST['suprsub'];\n\t\t\t\n\t\t\t$catsdata = array();\n\t\t\tif($suprsub == 'yes'){\n\t\t\t\t$catsdata = $this->Category->find('all',array('conditions'=>array('category_parent'=>$cateid,'category_sub_parent'=>0)));\n\t\t\t}else{\n\t\t\t\t$catsdata = $this->Category->find('all',array('conditions'=>array('category_sub_parent'=>$cateid)));\n\t\t\t}\n\t\t\t\n\t\t\tif(!empty($catsdata)){\n\t\t\t\tforeach($catsdata as $cts){\n\t\t\t\t\t$cats_arr[] = array('ID'=>$cts['Category']['id'],'Name'=>$cts['Category']['category_name']);\n\t\t\t\t}\n\t\t\t\t// [ { \"ID\" :\"1\", \"Name\":\"Scott\"},{ \"ID\":\"2\", \"Name\":\"Jon\"} ]\n\t\t\t\t// print_r($cats_arr);\n\t\t\t\techo json_encode($cats_arr);\n\t\t\t}else{\n\t\t\t\techo 0;\n\t\t\t}\n\t\t\tdie;\n\t\t}", "public function addSubCateSub(Request $request) {\n\t\t $cateCheck3 = DB::table('subCategories')->where('idSubMainCategory', $request['addSubHiddenMain'])->where('nameSubCategory', $request['addSubCateName'])->first();\n\t\t $count3=count($cateCheck3);\n\t\t //dd($count); \n\t\t if(@$count3) {\n\t\t \t Session::put('subCateTitleMsz', 'Sub Category with Name '.$request['addSubCateName'].' is already exists.');\n\t\t return Redirect::to('admin/category?caseC=addSubC&IdC='.$request['addSubHiddenMain']);\n\t\t }\n\t\t else{\n\n\t\t\t $data = array(\n\t\t 'nameSubCategory' => $request['addSubCateName'],\n\t\t 'statusSubCategory' => $request['addSubCateStatus'],\n\t\t 'idSubMainCategory' => $request['addSubHiddenMain'],\n\t\t );\n\t\t\t \n\t\t\t $m = DB::table('subCategories')->insert($data); \n\t\t if($m!==\"\") {\n\t\t Session::put('subCateAddMsz', 'Sub Category Added Successfully');\n\t\t return Redirect::to('admin/category?caseC=listSubC&IdC='.$request['addSubHiddenMain']);\n\t\t }\n\t\t else{\n\t\t Session::put('subCateAddMsz', 'Sub Category Not Added');\n\t\t return Redirect::to('admin/category?caseC=listSubC&IdC='.$request['addSubHiddenMain']);\n\t\t }\n\t\t }\n\t }", "public function upSubCsub(Request $request) {\n\n \t\t\t$post = $request->all();\n \t\t\t$datas = array(\n \t\t\t'nameSubCategory' => $post['upSubCateName'],\n \t\t\t'statusSubCategory' => $post['upSubCateStatus'],\n \t\t\t);\n\n \t\t\t$j = DB::table('subCategories')->where('idSubCategory', $post['upSubHiddenSub'])->where('idSubMainCategory', $post['upSubHiddenMain'])->update($datas);\n\n if($j!==\"\") {\n Session::put('ScateUpMsz', 'Category Updated Successfully.');\n return Redirect::to('admin/category?caseC=listSubC&IdC='.$post['upSubHiddenMain']); \n }\n else{\n Session::put('ScateUpMsz', 'Category Not Updated.');\n return Redirect::to('admin/category?caseC=listSubC&IdC='.$post['upSubHiddenMain']); \n }\n\n }", "public function store(SubCategoryCRUDRequest $request) {\n $validated = $request->validated();\n\n $subcategory = ProductSubCategory::create($validated);\n\n return Response::json($subcategory);\n }", "function editSubCategory()\n\t{ \n\t\t$id=$_GET['prodid'];\n\n\t\tif(((int)$id)>0)\n\t\t{\n\t\t\t$sql='select * from products_table where product_id='.$id;\n\t\t\t\n\t\t\t$obj=new Bin_Query();\n\t\t\t\n\t\t\t$obj->executeQuery($sql);\n\t\t\t\n\t\t\t$sqlid=\"SELECT category_id,category_parent_id FROM category_table where category_id in(select category_id from products_table where category_id='\".$obj->records[0]['category_id'].\"')\";\n\t\t\t\n\t\t\t$query=new Bin_Query();\n\t\t\t\n\t\t\t$query->executeQuery($sqlid);\n\t\t\t\n\t\t\t$category=Core_Settings_CManageProducts::displayCategory($query->records[0]['category_parent_id']);\n\t\t\t\n\t\t\t$sqlid='select category_id from category_table where category_id in(select sub_category_id from products_table where product_id='.$id.')';\n\t\t\t\n\t\t\t$query=new Bin_Query();\n\t\t\t\n\t\t\t$query->executeQuery($sqlid);\n\t\t\t\n\t\t\t$subcat=Core_Settings_CManageProducts::displaySubCategory($query->records[0]['category_id']);\n\t\t\t\n\t\t\treturn $subcat;\n\t }\n\t}", "public function save() {\n\t\t$date = date('Y-m-d H:i:s');\n\t\t$this->setLast_modified($date);\n\t\t\n\t\tif (!is_null($this->getId())) {\n\t\t\t$sql = 'update cart_categories set ';\n\t\t} else {\n\t\t\t$sql = 'insert into cart_categories set ';\n\t\t\t$this->setDate_added($date);\n\t\t}\n\t\tif (!is_null($this->getImage())) {\n\t\t\t$sql .= '`categories_image`=\"' . e($this->getImage()->getId()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getParent_id())) {\n\t\t\t$sql .= '`parent_id`=\"' . e($this->getParent_id()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getSort_order())) {\n\t\t\t$sql .= '`sort_order`=\"' . e($this->getSort_order()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getDate_added())) {\n\t\t\t$sql .= '`date_added`=\"' . e($this->getDate_added()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getLast_modified())) {\n\t\t\t$sql .= '`last_modified`=\"' . e($this->getLast_modified()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getStatus())) {\n\t\t\t$sql .= '`categories_status`=\"' . e($this->getStatus()) . '\", ';\n\t\t}\n\t\tif (!is_null($this->getId())) {\n\t\t\t$sql .= 'categories_id=\"' . e($this->getId()) . '\" where categories_id=\"' . e($this->getId()) . '\"';\n\t\t} else {\n\t\t\t$sql = trim($sql, ', ');\n\t\t}\n\t\tDatabase::singleton()->query($sql);\n\t\t$catId = Database::singleton()->lastInsertedID();\n\t\t$new = false;\n\t\tif (is_null($this->getId())) {\n\t\t\t$this->setId($catId);\n\t\t\t$new = true;\n\t\t\t$sql = 'insert into cart_categories_description set ';\n\t\t} else {\n\t\t\t$sql = 'update cart_categories_description set ';\n\t\t}\n\t\t$sql .= '`language_id`=\"' . 1 . '\", ';\n\t\t$sql .= '`categories_name`=\"' . e($this->getName()) . '\", ';\n\t\t$sql .= '`categories_description`=\"' . e($this->getDescription()) . '\"';\n\t\t\n\t\tif ($new) {\n\t\t\t$sql .= ', `categories_id`=\"' . e($this->getId()) . '\"';\n\t\t} else {\n\t\t\t$sql .= ' where `categories_id`=\"' . e($this->getId()) . '\"';\n\t\t}\n\t\tDatabase::singleton()->query($sql);\n\t\t\n\t\tself::__construct($this->getId());\n\t}", "public function store(CreateSubCategoryRequest $request)\n {\n SubCategory::create([\n 'category_id' => $request->category_id,\n 'name' => $request->name,\n 'slug' => Str::slug($request->name),\n ]);\n\n session()->flash('success', 'Sub-Category created successfully!');\n\n return redirect(route('subcategories.index'));\n }", "public function store(Request $request)\n {\n $this->validate(request(), [\n 'category' => 'required',\n 'sub_category_name' => 'required',\n 'status' => 'required',\n ]);\n\n $category = new SubCategory();\n $category->category_id = $request->category;\n $category->sub_category_name = $request->sub_category_name;\n $category->sub_category_description = $request->sub_category_description;\n $category->status = $request->status;\n $category->save();\n\n \\Session::flash('message', \"Sub-Category Successfully Created!\");\n\n return redirect()->back();\n }", "function convert_sub_category( &$obj )\n\t{\n\t\t\n\t\t// added_date timestamp string\n\t\t$obj->added_date_str = ago( $obj->added_date );\n\t\t\n\t\t// set default photo\n\t\t$obj->default_photo = $this->get_default_photo( $obj->id, 'sub_category' );\n\n\t\t// set default icon \n\t\t$obj->default_icon = $this->get_default_photo( $obj->id, 'subcat_icon' );\n\t}", "public function store(Request $request)\n {\n $validateData = $request->validate([\n 'subcategory_name' => 'required|unique:subcategories|max:255',\n 'category_id' => 'required',\n ]);\n \n $subcategory = new Subcategory;\n $subcategory->subcategory_name = $request->subcategory_name;\n $subcategory->category_id = $request->category_id;\n $subcategory->save(); \n }", "function save(){\n\t\t// $insert_query = 'INSERT INTO tb_categories';\n\t\t// $insert_query .= ' SET ';\n\t\t// $insert_query .= ' name = \"'.$this->name.'\"';\n\n\t\t// $this->db->query($insert_query);\n\t\t\tif($this->page_id){\n\t\t\t\t$this->update();\n\t\t\t}else{\n\t\t\t\t$this->page_id = $this->db->insert(\n\t\t\t\t\t'tb_pages',\n\t\t\t\t\tarray(\t\t\t\t\t\n\t\t\t\t\t'title' => $this->title,\n\t\t\t\t\t'content' => $this->content)\n\t\t\t\t);\n\t\t\t}\n\t\t}", "public function subcategory(){\n\t\t$modelservices = new Application_Model_Services();\n\t\t$servicelist = $modelservices->servicesdata();\n\t\t$caterories = $modelservices->categorydata();\n\t//prd($caterories);\n\n \t\t$this->addElement('text', 'service_name', array (\n\t\t\t\"required\" => TRUE,\n\t\t\t'class' => 'form-control required',\n\t\t\t\"label\" => \"Service Sub Category Title \" ,\n\t\t\t\"filters\" => array(\"StringTrim\",\"StripTags\"),\n\t\t\t\"validators\" => array(\n\t\t\t\t\t\t\t\tarray(\"NotEmpty\",true,array(\"messages\"=>\" Expertise Title is required \")),\n \t\t\t\t\t\t\t),\n \t\t));\n\t\t$this->addElement('text', 'service_price', array (\n\t\t\t\"required\" => TRUE,\n\t\t\t'class' => 'form-control required digits',\n\t\t\t\"label\" => \"Service Credit \" ,\n\t\t\t\"filters\" => array(\"StringTrim\",\"StripTags\"),\n\t\t\t\"validators\" => array(\n\t\t\t\t\t\t\t\tarray(\"NotEmpty\",true,array(\"messages\"=>\"Price is required \")),\n \t\t\t\t\t\t\t),\n \t\t));\n\t\t$this->addElement('select', 'service_parent_id', array (\n\t\t\t\t'class' => 'form-control required' ,\n\t\t\t\t\"required\"=>true,\n\t\t\t\t\"multioptions\"=>$servicelist,\n\t\t\t\t\"onchange\"=>\"getcategorylist(this.value)\",\n\t\t\t\t\"filters\" => array(\"StringTrim\",\"StripTags\",\"HtmlEntities\"),\n\t\t\t\t\n\t\t));\n\t\t$this->addElement('select', 'service_sub_parent_id', array (\n\t\t\t\t'class' => 'form-control required' ,\n\t\t\t\t\"required\"=>true,\n\t\t\t\t\"multioptions\"=>$caterories,\n\t\t\t\t\"filters\" => array(\"StringTrim\",\"StripTags\",\"HtmlEntities\"),\n\t\t\t\t\n\t\t));\n \t\t$this->submitButton();\n \t}", "public function saveSubclase(){\n \n $data_insert = [\n 'id_clases' =>$this->_id_clases,\n'subclase' =>$this->_subclase,\n \n ];\n return parent::save($data_insert);\n \n }", "public function store(Request $request)\n {\n $request->validate([\n 'name_en' => 'required',\n ],[\n 'name_en.required' => 'Sub Category Name is required!',\n ]);\n\n $data = new SubCategory();\n $data->name_bn = $request->name_bn;\n $data->category_id = $request->category_id;\n $data->name_en = $request->name_en;\n $data->order = $request->order;\n $data->slug_en = Str::slug($request->name_en);\n $data->slug_bn = preg_replace('/\\s+/u', '-', trim($request->name_bn));\n if ($request->has('is_active')){\n $data->is_active = true;\n }\n if ($request->has('top')){\n $data->top = true;\n }\n if ($request->file('icon')){\n $file = $request->file('icon');\n $filename = date('YmdHi').$file->getClientOriginalName();\n $file->move(public_path('uploads/admin/sub_categories'),$filename);\n $data->icon = $filename;\n }\n $data->save();\n return response()->json([\n 'success' => true,\n 'message' => 'Sub Category Created Successfully!!'\n ], 200);\n }", "function submit(){\n\t$parent_category = $this->uri->segment(4);\n\tif (!is_numeric($parent_category)){\n\t\t$parent_category = 0;\n\t}\n\n\t$this->form_validation->set_rules('category_name', 'Category Name', 'required');\n\n\tif ($this->form_validation->run() == FALSE){\n\t\t$this->create();\n\t} else {\n\n\t\t$update_id = $this->uri->segment(3);\n\n\t\tif ($update_id > 0){\n\t\t\t//This is an update\n\t\t\t$data = $this->get_data_from_post();\n\t\t\t$data['category_url'] = url_title($data['category_name']);\n\t\t\t$this->update($update_id, $data);\n\t\t\t$value = \"<p style = 'color: green;'>The category was successfully updated.</p>\";\n\t\t\t$parent_category = $update_id;\n\t\t} else {\n\t\t\t//Create new record\n\t\t\t$data = $this->get_data_from_post();\n\t\t\t$data['category_url'] = url_title($data['category_name']);\n\t\t\t$data['parent_category'] = $parent_category;\n\t\t\t$this->insert($data);\n\t\t\t$value = \"<p style = 'color: green;'>The category was successfully created.</p>\";\n\t\t\t$update_id = $this->get_max();\n\n\t\t\t$this->session->set_flashdata('category', $value);\n\t\t\t\n\t\t}\n\t\t//add flashdata\n\t\t$this->session->set_flashdata('category', $value);\t\n\n\t\tredirect ('store_categories/manage/'.$parent_category);\n\t\t\n\t}\n}", "public function store(Request $request)\n {\n // Input Validation\n $request->validate(\n [\n 'label' => 'required|max:255',\n 'category' => 'required',\n ]\n );\n\n $label = htmlspecialchars($request->label);\n $category = htmlspecialchars($request->category);\n\n //check is sub category exist in DB\n if (Sub_category::where('sub_category_label', htmlspecialchars($label))->where('sub_category_category_id', htmlspecialchars($category))->count() > 0) {\n\n //Flash Message\n flash_alert(\n __('alert.icon_error'), //Icon\n 'Gagal', //Alert Message \n 'Sub Category Already Exist' //Sub Alert Message\n );\n\n return redirect()->route('sub_category_create');\n }\n\n $sub_category_id = uniqid() . strtotime(now());\n\n $data = [\n 'sub_category_id' => $sub_category_id,\n 'sub_category_category_id' => $category,\n 'sub_category_label' => $label,\n ];\n\n //Insert Data\n Sub_category::create($data);\n\n //Flash Message\n flash_alert(\n __('alert.icon_success'), //Icon\n 'Sukses', //Alert Message \n 'Sub Category Added' //Sub Alert Message\n );\n\n return redirect()->route('sub_category');\n }", "public function save($data)\n\t{\n\t $input = Factory::getApplication()->input;\n\t\tJLoader::register('CategoriesHelper', JPATH_ADMINISTRATOR.\n\t\t\t'/components/com_categories/helpers/categories.php');\n\t\t// validate id\n\t\tif((int)$data['catid']>0)\n\t\t{\n\t\t\t$catid = CategoriesHelper::validateCategoryId\n\t\t\t\t($data['catid'], 'com_dinning_philosophers');\n\t\t\t// If catid and extension don't match, validate will return 0.\n\t\t\t// Let's create a new category to for this component.\n\t\t\tif($catid===0){\n\t\t\t $category = array();\n\t\t\t $category['id'] = $data['catid'];\n\t\t\t \n\t\t\t $categoryTable = Table::getInstance('Category');\n\t\t\t if (!$categoryTable->load($category))\n\t\t\t {\n\t\t\t $catid = 0;\n\t\t\t } else {\n\t\t\t $properties = $categoryTable->getProperties();\n\t\t\t unset($properties['id']);\n\t\t\t unset($properties['alias']);\n\t\t\t array_values($properties);\n\t\t\t // categories uses extension as an alias to identify\n\t\t\t // duplicates. Use unique extension.\n\t\t\t $properties['extension'] = 'com_dinning_philosophers';\n\t\t\t $catid = CategoriesHelper::createCategory($properties);\n\t\t\t }\n\t\t\t}\n\t\t\t$data['catid'] = $catid;\n\t\t}\n\t\t// Alter the alias for save as copy.\n\t\tif($input->get('task') == 'save2copy')\n\t\t{\n\t\t\t$origTable = clone $this-getTable();\n\t\t\t$origTable->load($input->getInt('id'));\n\t\t\tif($data['alias']==$origTable->alias)\n\t\t\t{\n\t\t\t\t$data['alias']='';\n\t\t\t}\n\t\t\t$data['published']=0;\n\t\t}\n\t\treturn parent::save($data);\n\t}", "public function insertCateDes($categoryNameSub,$categories_id,$languages_data_id){\n DB::table('categories_description')->insert([\n 'categories_name' => $categoryNameSub,\n 'categories_id' => $categories_id,\n 'language_id' => $languages_data_id\n ]);\n }", "public function store(Request $request)\n {\n $this->validate($request,[\n 'head_category' => 'required',\n 'category' => 'required',\n ]);\n\n $category = new Category;\n\n $category->cat_name = $request->category;\n $category->cat_slug = str_slug($request->category, '-');\n $category->level = 1;\n $category->parent_id = $request->head_category;\n \n $category->save();\n\n Session::flash('success','Your data is save.');\n \n return redirect()->route('subcategory.index');\n }", "function editSubUnderCategory()\n\t{\n\n\t\t$id=$_GET['prodid'];\n\n\t\tif(((int)$id)>0)\n\t\t{\n\t\t\t $sql='select * from products_table where product_id='.$id;\n\t\t\t\n\t\t\t$obj=new Bin_Query();\n\t\t\t\n\t\t\t$obj->executeQuery($sql);\n\t\t\t\n\t\t\t$sqlid=\"SELECT * FROM category_table where sub_category_parent_id='\".$obj->records[0]['sub_category_id'].\"' AND category_parent_id ='\".$obj->records[0]['category_id'].\"'\"; \n\t\t\t\n\t\t\t$query=new Bin_Query();\n\t\t\t\n\t\t\t$query->executeQuery($sqlid);\n\t\t\t\n\t\t\treturn Display_DManageProducts::displaySubUnderCategory($query->records,$obj->records[0]['sub_under_category_id']);\n\t\t\t\n\t }\n\n\n\t}", "public function store(Request $request)\n {\n // Insert a new subcategory from creation page\n $category = $request->category;\n $category = Category::find($category);\n $user = Auth::user();\n $subcategory = new Subcategory;\n $subcategory->uuid = (string) Str::uuid();\n $subcategory->name = $request['name'];\n $subcategory->description = $request['description'];\n $subcategory->created_by = $user->id;\n $subcategory->save();\n $subcategory->categories()->attach($category->id, array('subcategory_id' => $subcategory->id, 'category_id' => $category->id, 'uuid' => (string) Str::uuid()));\n $page = 'Subcategory';\n $subcategories = Subcategory::get();\n $categories = Category::get();\n // return $subcategory->created_by;\n return view('subcategories/index')\n ->with('page', $page)\n ->with('subcategories', $subcategories);\n }", "public function created(SubCategories $subCategories)\n {\n //\n }", "public function store(Request $request)\n {\n $this->validate($request, [\n 'subcategory_name' => 'required|unique:sub_categories',\n 'category_id' => 'required'\n ]);\n\n $subcategory = new SubCategory;\n $subcategory->subcategory_name = $request->subcategory_name;\n $subcategory->category_id = $request->category_id;\n $subcategory->save();\n\n Toastr::success($request->subcategory_name.' subcategory added successfully');\n return redirect()->back();\n\n }", "public function store(CreateSubcategoryAPIRequest $request)\n {\n $input = $request->all();\n\n $subcategories = $this->subcategoryRepository->create($input);\n\n return $this->sendResponse($subcategories->toArray(), 'Subcategory saved successfully');\n }", "public function storeCategory(array $data): void\n {\n }", "public\n\tfunction store( Request $request ) {\n\n\n\t\t$request->validate( [\n\n\t\t\t'parent_id' => 'required|not_in:0', 'title' => 'required|not_in:0',\n\t\t\t'subcat_id' => 'required|not_in:null',\n\n\t\t], [\n\n\t\t\t\"title.required\" => \"Please enter Childcategory name\"\n\n\t\t] );\n\n\t\t$input = $request->all();\n\t\t$data = new Grandcategory;\n\n\t\tif ( $file = $request->file( 'image' ) ) {\n\n\t\t\t$optimizeImage = Image::make( $file );\n\t\t\t$optimizePath = public_path() . '/images/grandcategory/';\n\t\t\t$image = time() . $file->getClientOriginalExtension();\n\t\t\t$optimizeImage->resize( 200, 200, function ( $constraint ) {\n\t\t\t\t$constraint->aspectRatio();\n\t\t\t} );\n\t\t\t$optimizeImage->save( $optimizePath . $image, 90 );\n\n\t\t\t$input[ 'image' ] = $image;\n\n\t\t}\n\n\t\t$input[ 'position' ] = ( Grandcategory::count() + 1 );\n\t\t$input[ 'description' ] = clean( $request->description );\n\t\t$input[ 'status' ] = isset( $request->status ) ? \"1\" : \"0\";\n\t\t$data->create( $input );\n\t\treturn redirect()->route( 'grandcategory.index' )->with( \"added\", \"Child Category Has Been Added\" );\n\t}", "function storeSecondaryCategories( $secondary_categories )\r\n\t{\r\n\t // delete all existing ones\r\n\t $db = $this->getDBO();\r\n\t $db->setQuery( \"DELETE FROM #__calendar_eventcategories WHERE `event_id` = '$this->event_id';\");\r\n\t $db->query();\r\n\t \r\n\t // save new ones\r\n\t JTable::addIncludePath( JPATH_ADMINISTRATOR . '/components/com_publications/tables' );\r\n\t foreach( $secondary_categories as $secondary_category)\r\n\t {\r\n\t $table = JTable::getInstance( 'EventCategories', 'CalendarTable' );\r\n\t $table->event_id = $this->event_id;\r\n\t $table->category_id = $secondary_category;\r\n\t $table->store();\r\n\t }\r\n\t}", "function _addCategory()\n\t{\n\t\t// Create categories for our component\n\t\t$basePath = JPATH_ADMINISTRATOR.'/components/com_categories';\n\t\trequire_once $basePath.'/models/category.php';\n\t\t$config\t\t= array('table_path' => $basePath.'/tables');\n\t\t$catmodel\t= new CategoriesModelCategory($config);\n\t\t$catData\t= array('id' => 0, 'parent_id' => 0, 'level' => 1, 'path' => 'uncategorized', 'extension' => 'com_sermonspeaker',\n\t\t\t\t\t\t'title' => 'Uncategorized', 'alias' => 'uncategorized', 'description' => '', 'published' => 1, 'language' => '*');\n\t\t$catmodel->save($catData);\n\t\t$id = $catmodel->getItem()->id;\n\n\t\t$db = JFactory::getDBO();\n\t\t// Updating the example data with 'Uncategorized'\n\t\t$query\t= $db->getQuery(true);\n\t\t$query->update('#__sermon_sermons');\n\t\t$query->set('catid = '.(int)$id);\n\t\t$query->where('catid = 0');\n\t\t$db->setQuery($query);\n\t\t$db->execute();\n\t\t// Speakers\n\t\t$query->update('#__sermon_speakers');\n\t\t$db->setQuery($query);\n\t\t$db->execute();\n\t\t// Series\n\t\t$query->update('#__sermon_series');\n\t\t$db->setQuery($query);\n\t\t$db->execute();\n\n\t\treturn;\n\t}", "public function update(Request $request, Subcategory $subcategory)\n {\n $categories = Category::all();\n\n $subcategory->name = request('name');\n foreach($categories as $category){\n if($category->name == request('cat')){\n $subcategory->categories_id = $category->id;\n }\n }\n $subcategory->save();\n\n return redirect('cms/categories')->with('success', 'Subcategory was updated succesfully');\n }", "public function insert($id = null){\n $sub_categories = null;\n if($id == null) $sub_categories = new sub_categories;\n else $sub_categories = sub_categories::find($id);\n $sub_categories->name = request()->name;\n $sub_categories->category_id = request()->category_id;\n $sub_categories->save();\n return redirect()->route('sub_categories.index');\n }", "public function createSubCategory() {\n //\n $publishedCategories = Category::where('publicationStatus', 1)->get();\n return view('admin.subcategory.createSubCategory', ['publishedCategories' => $publishedCategories]);\n }", "public function updated(SubCategories $subCategories)\n {\n //\n }", "public function addCategory(){ \n $cookies = new CookieModel();\n $cookie_id = $cookies -> read();\n if (! $cookie_id) $this->redirect('/');\n\n\t \t$name = $_REQUEST['name'];\n $father = $_REQUEST['father'];\n\t\t\t$form = M(\"categoryinfo\");\n\t\t\t$addnew['name'] = $name;\n $addnew['father'] = $father;\n\t\t\t$result = $form->add($addnew);\n\t\t\t$this->redirect('/index.php/Admin/dish');\n\t\t\t\t//else {$this->error('添加失败');}\n }", "public function category_update(){ \n\n\n if (!has_role($this->session->userdata('user_id'), 'CATEGORY_UPDATE')) {\n redirect(base_url('page_not_found'));\n }\n\n $data['parent'] = $this->input->post('parent');\n $data['last_modified'] = date(\"Y-m-d H:i:s\");\n $data['name'] = $this->input->post('name');\n \n if(!$this->category_model->is_parent_category($data['parent'])){\n\n $this->session->set_flashdata('category_save_failed', \"Failed to update sub category!!\");\n }else{\n\n \n $category_id = $this->input->post('cat_id');\n\n\n\n\n if($this->category_model->update_category($category_id, $data)){\n\n $this->logger\n ->user($this->session->userdata('user_id')) //Set UserID, who created this Action\n ->user_details($this->user_model->getUserInfoByIpAddress())\n ->type('category_update') //Entry type like, Post, Page, Entry\n ->id($category_id) //Entry ID\n ->token('UPDATE') //Token identify Action\n ->comment($this->session->userdata('name'). ' update a category.')\n ->log(); //Add Database Entry\n\n $this->session->set_flashdata('category_save_success', \"Category information Updated Successfully!!\");\n } else {\n $this->session->set_flashdata('category_save_failed', \"Category update fialied!!\");\n }\n }\n redirect(base_url('categories'));\n }", "public function category(){\n\n Excel::import(new ComponentsImport,'/imports/categories.csv');\n $cats = array_values(array_unique(Cache::get('category')));\n for($i=0;$i<count($cats);$i++){\n $sub = new Category();\n $sub->name = $cats[$i];\n $sub->save();\n }\n }", "public function save_category ($data) {\n\t\t$slug = \\Illuminate\\Support\\Str::slug($data->category, '-');\n\t\t$category = new Category();\n\t\t$category->category = $data->category;\n\t\t$category->slug = $slug;\n\t\t$category->description = $data->description;\n\n\t\t$category->save();\n\t\treturn true;\n\t}", "public function store(Request $request)\n {\n // dd($request);\n\n if(empty($request->id))\n {\n $validator=Validator::make($request->all(),[\n 'sub_cat_code'=>'required',\n 'cat_name'=>'required',\n 'sub_cat_name' => 'required',\n 'coa_code' => 'required',\n ],\n [\n 'sub_cat_code.required'=>'Sub Category Code Required',\n 'cat_name.required'=>'Category Name Required',\n 'sub_cat_name.required'=>'Sub Category Name Required',\n 'coa_code.required'=>'Account Code Required',\n ]);\n\n if($validator->fails())\n {\n return redirect('masters/sub-category')->withErrors($validator)->withInput();\n\n }\n\n $category = new SubCategory;\n\n $data['sub_cat_code'] = $request->sub_cat_code;\n $data['cat_name'] = $request->cat_name;\n $data['sub_cat_name'] = $request->sub_cat_name;\n $data['coa_code'] = $request->coa_code;\n $category->create($data);\n\n Session::flash('message', 'Successfully created Sub-Category!');\n\n } else {\n\n $data2 = $request->all();\n // dd($data2);\n $data2=request()->except(['_token']);\n\n $data2['sub_cat_code'] = $request->sub_cat_code;\n $data2['cat_name'] = $request->cat_name;\n $data2['sub_cat_name'] = $request->sub_cat_name;\n $data2['coa_code'] = $request->coa_code;\n\n SubCategory::where('id', $request->id)->update($data2);\n\n Session::flash('message','Sub-Category Successfully Updated.');\n\n }\n return redirect('masters/vw-sub-category');\n }", "function product_sub_category($param1 = '', $param2 = '')\n\t{\n\t\tif ($this->session->userdata('admin_login') != 1)\n\t\t\tredirect(base_url() . 'index.php?login');\n\t\tif ($param1 == 'create') {\n\t\t\t$data['name'] = $this->input->post('name');\n\t\t\t$data['description'] = $this->input->post('description');\n\t\t\t$data['category_id'] = $this->input->post('category_id');\n\t\t\t$this->db->insert('sub_category', $data);\n\t\t\t$this->session->set_flashdata('flash_message', translate('data_added_successfully'));\n\t\t\tredirect(base_url() . 'index.php?admin/product_sub_category', 'refresh');\n\t\t}\n\t\tif ($param1 == 'edit') {\n\t\t\t$data['name'] = $this->input->post('name');\n\t\t\t$data['description'] = $this->input->post('description');\n\t\t\t$data['category_id'] = $this->input->post('category_id');\n\t\t\t$this->db->where('sub_category_id', $param2);\n\t\t\t$this->db->update('sub_category', $data);\n\t\t\t$this->session->set_flashdata('flash_message', translate('informations_updated'));\n\t\t\tredirect(base_url() . 'index.php?admin/product_sub_category', 'refresh');\n\t\t}\n\t\tif ($param1 == 'delete') {\n\t\t\t$this->db->where('sub_category_id', $param2);\n\t\t\t$this->db->delete('sub_category');\n\t\t\t$this->session->set_flashdata('flash_message', translate('data_deleted'));\n\t\t\tredirect(base_url() . 'index.php?admin/product_sub_category', 'refresh');\n\t\t}\n\t\t$page_data['page_name'] = 'product_sub_category';\n\t\t$page_data['page_title'] = translate('product_sub_categories');\n\t\t$page_data['sub_categories'] = $this->db->get('sub_category')->result_array();\n\t\t$this->load->view('backend/index', $page_data);\n\t}", "function njp_categories_save($data)\n\t{\n\t\t$this->db->set('cat_name', $data['cat_name']);\n\t\t$this->db->set('court_type_id', (!empty($data['court_type_id']) ? $data['court_type_id'] : NULL ) );\n\t\t$this->db->set('cat_id', (!empty($data['cat_id']) ? $data['cat_id'] : NULL ) );\n\t\t$this->db->set('sorting', $data['sorting']);\n\t\t\n\t\tif ($data['id'] == 0 )\n\t\t{\n\t\t\t$status = $this->db->insert('categories_njp');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->db->where('id',$data['id']);\n\t\t\t$status = $this->db->update('categories_njp');\n\t\t}\n\t\t\n\t\t$status = $this->db->affected_rows();\n\t\treturn $status;\n\t}", "public function SaveGroupCategory() {\n\t\t\ttry {\n\t\t\t\t// Update any fields for controls that have been created\n\t\t\t\tif ($this->lstGroup) $this->objGroupCategory->GroupId = $this->lstGroup->SelectedValue;\n\t\t\t\tif ($this->calDateRefreshed) $this->objGroupCategory->DateRefreshed = $this->calDateRefreshed->DateTime;\n\t\t\t\tif ($this->txtProcessTimeMs) $this->objGroupCategory->ProcessTimeMs = $this->txtProcessTimeMs->Text;\n\n\t\t\t\t// Update any UniqueReverseReferences (if any) for controls that have been created for it\n\n\t\t\t\t// Save the GroupCategory object\n\t\t\t\t$this->objGroupCategory->Save();\n\n\t\t\t\t// Finally, update any ManyToManyReferences (if any)\n\t\t\t} catch (QCallerException $objExc) {\n\t\t\t\t$objExc->IncrementOffset();\n\t\t\t\tthrow $objExc;\n\t\t\t}\n\t\t}", "function store()\r\n {\r\n $db =& eZDB::globalDatabase();\r\n\r\n $db->begin( );\r\n\r\n $name = $db->escapeString( $this->Name );\r\n $description = $db->escapeString( $this->Description );\r\n\r\n if ( !isset( $this->ID ) )\r\n {\r\n $db->lock( \"eZImageCatalogue_Category\" );\r\n\r\n $this->ID = $db->nextID( \"eZImageCatalogue_Category\", \"ID\" );\r\n\r\n $db->query( \"INSERT INTO eZImageCatalogue_Category\r\n ( ID, Name, Description, UserID, ParentID, SectionID ) VALUES\r\n ( '$this->ID', '$name', '$description', '$this->UserID', '$this->ParentID', '$this->SectionID' )\" );\r\n $db->unlock();\r\n }\r\n else\r\n {\r\n $db->query( \"UPDATE eZImageCatalogue_Category SET\r\n Name='$name',\r\n Description='$description',\r\n UserID='$this->UserID',\r\n ParentID='$this->ParentID',\r\n SectionID='$this->SectionID' WHERE ID='$this->ID'\" );\r\n }\r\n\r\n\r\n if ( $dbError == true )\r\n $db->rollback( );\r\n else\r\n $db->commit();\r\n\r\n\r\n return true;\r\n }", "function save_extra_category_fileds( $term_id ) {\n\tif ( isset( $_POST['term_meta'] ) ) {\n\t\t$tag_id\t\t= $term_id;\n\t\t$term_meta\t= get_option( \"category_$tag_id\" );\n\t\t$cat_keys\t= array_keys( $_POST['term_meta'] );\n\t\tforeach ( $cat_keys as $key ) {\n\t\t\tif ( isset( $_POST['term_meta'][$key] ) ) {\n\t\t\t\t$term_meta[$key] = $_POST['term_meta'][$key];\n\t\t\t}\n\t\t}\n\t\t//save the option array\n\t\tupdate_option( \"category_$tag_id\", $term_meta );\n\t}\n}", "function dataSubCategory( $parentcategory, $gcntyn=false ){\n\n\tglobal $db, $sess;\n\n\t$arrfileurl = explode('/',$_SERVER['SCRIPT_FILENAME']);\n\tif(in_array(\"m\", $arrfileurl) || in_array(\"m2\", $arrfileurl)){\n\t\t$hidden = \"hidden_mobile=0\";\n\t} else {\n\t\t$hidden = \"hidden=0\";\n\t}\n\t# 카테고리 정보\n\tfor ($i=0;$i<2;$i++){\n\t\t$length = strlen($parentcategory) + 3;\n\t\t$query = \"\n\t\tselect\n\t\t\tcategory,catnm,sort,level,level_auth\n\t\tfrom\n\t\t\t\".GD_CATEGORY.\"\n\t\twhere\n\t\t\tcategory like '$parentcategory%'\n\t\t\tand length(category)=$length\n\t\t\";\n\t\tif ($GLOBALS[ici_admin] === false) $query .= \"and \".$hidden;\n\t\t$res = $db->query($query);\n\n\t\tif ($db->count_($res)) break;\n\t\telse if ($length>6) $parentcategory = substr($parentcategory,0,-3);\n\t}\n\n\t// 상품 개수 추출 및 상품분류 연결방식 전환 여부에 따른 처리\n\tif ( $gcntyn == true && _CATEGORY_NEW_METHOD_ === false ){\n\t\tif ($GLOBALS[ici_admin] === false) $where[] = \"a.\".$hidden;\n\t\t$where[] = \"a.category like '$parentcategory%'\";\n\t\t$where[] = \"open\";\n\t\tif ($GLOBALS['tpl']->var_['']['connInterpark']) $where[] = \"b.inpk_prdno!=''\";\n\n\t\t$query = \"\n\t\tselect\n\t\t\tleft(category,$length),count(distinct a.goodsno)\n\t\tfrom\n\t\t\t\".GD_GOODS_LINK.\" a,\n\t\t\t\".GD_GOODS.\" b\n\t\twhere\n\t\t\ta.goodsno = b.goodsno\n\t\t\tand \".implode(\" and \", $where).\"\n\t\tgroup by left(category,$length)\n\t\t\";\n\t\t$res2 = $db->query($query);\n\t\twhile ($data2=$db->fetch($res2)) $gcnt[$data2[0]] = $data2[1];\n\t}\n\n\t### 데이타 조작\n\t$i = 0;\n\twhile ($data=$db->fetch($res)){\n\t\t// 상품 개수 추출 및 상품분류 연결방식 전환 여부에 따른 처리\n\t\tif ($gcntyn == true && _CATEGORY_NEW_METHOD_ === true) {\n\t\t\t$where\t= array();\n\t\t\tif ($GLOBALS[ici_admin] === false) $where[] = \"gl.hidden=0\";\n\t\t\t$where[] = \"gl.category = '\".$data['category'].\"'\";\n\t\t\t$where[] = \"g.open = '1'\";\n\t\t\tif ($GLOBALS['tpl']->var_['']['connInterpark']) $where[] = \"g.inpk_prdno!=''\";\n\n\t\t\t$query = \"\n\t\t\tSELECT\n\t\t\t\tCOUNT(g.goodsno) as cnt\n\t\t\tFROM\n\t\t\t\t\".GD_GOODS.\" g\n\t\t\tINNER JOIN\n\t\t\t\t\".GD_GOODS_LINK.\" gl ON g.goodsno = gl.goodsno\n\t\t\tWHERE\n\t\t\t\t\".implode(\" AND \", $where).\"\n\t\t\t\";\n\n\t\t\t$res2 = $db->query($query);\n\t\t\twhile ($data2=$db->fetch($res2, 1)) $gcnt[$data['category']] = $data2['cnt'];\n\t\t}\n\n\t\t$member_auth = false;\n\t\tif($data['level']){//권한 설정되어 있는지 체크\n\t\t\tswitch($data['level_auth']){//권한체크\n\t\t\t\tcase '1': //모두숨김\n\t\t\t\t\tif( (!$sess['level'] ? 0 : $sess['level']) >= $data['level'] ) $member_auth = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault: $member_auth = true; break;\n\t\t\t}\n\t\t}\n\t\telse $member_auth = true;\n\n\t\tif($member_auth){\n\t\t\t$data['gcnt'] = $gcnt[ $data['category'] ];\n\t\t\t$cate[$data[sort]][] = $data;\n\t\t}\n\t}\n\n\t### 배열 순서 재정의\n\tif ($cate) $cate = resort($cate);\n\n\treturn $cate;\n}", "function showSubCategory()\n\t {\n\t\t\n\t\t $prolist=new Actions();\n\t\t $res=$prolist->fetchAll(\"category\");\n\t\t\t\t\t\t\n\t\t $parentdata=mysql_query(\"select * from category where cat_par_id='0'\");\n\t\t while($parent_sub_cat=mysql_fetch_array($parentdata))\n\t\t {\n\t\t\techo '<option value=\"'.$parent_sub_cat['cat_id'].'\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'.ucfirst($parent_sub_cat['cat_title']).'</option>';\n\t\t \t\t\t\n\t\t\t if(mysql_num_rows(mysql_query(\"select * from category where cat_par_id='\".$parent_sub_cat['cat_id'].\"'\"))>0)\n\t\t\t {\n\t\t\t\tActions::$r++;\n\t\t\t\tActions::viewCategory($parent_sub_cat['cat_id']);\n\t\t\t } \n\t\t\t \n\t\t }\t\t\t\t\t\t\n\t\t \n\t }", "public function run()\n {\n DB::table('subcategories')->insert([\n [\n 'category_id' => '1',\n 'subcategory' => 'Politic',\n 'label' => 'Featured',\n 'description' => 'Politic Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '1',\n 'subcategory' => 'World',\n 'label' => 'Featured',\n 'description' => 'World Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '1',\n 'subcategory' => 'Issues',\n 'label' => 'Featured',\n 'description' => 'Issues Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '1',\n 'subcategory' => 'Opinion',\n 'label' => 'Featured',\n 'description' => 'Opinion Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '1',\n 'subcategory' => 'Hot',\n 'label' => 'Featured',\n 'description' => 'Hot Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n\n [\n 'category_id' => '1',\n 'subcategory' => 'Regional',\n 'label' => 'Light News',\n 'description' => 'Regional Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '1',\n 'subcategory' => 'Profile',\n 'label' => 'Light News',\n 'description' => 'Profile Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '1',\n 'subcategory' => 'Debate',\n 'label' => 'Light News',\n 'description' => 'Debate Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '1',\n 'subcategory' => 'Interview',\n 'label' => 'Light News',\n 'description' => 'Interview Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n\n [\n 'category_id' => '1',\n 'subcategory' => 'Latest',\n 'label' => 'Headline',\n 'description' => 'Latest Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '1',\n 'subcategory' => 'Trending',\n 'label' => 'Headline',\n 'description' => 'Trending Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n\n [\n 'category_id' => '2',\n 'subcategory' => 'Finance',\n 'label' => 'Business',\n 'description' => 'Finance Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '2',\n 'subcategory' => 'Stock',\n 'label' => 'Business',\n 'description' => 'Stock Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '2',\n 'subcategory' => 'Micro Business',\n 'label' => 'Business',\n 'description' => 'Micro Business Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '2',\n 'subcategory' => 'Management',\n 'label' => 'Business',\n 'description' => 'Management Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '2',\n 'subcategory' => 'Strategy',\n 'label' => 'Business',\n 'description' => 'Strategy Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n\n [\n 'category_id' => '2',\n 'subcategory' => 'Government',\n 'label' => 'National',\n 'description' => 'Government Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '2',\n 'subcategory' => 'Market',\n 'label' => 'National',\n 'description' => 'Market Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '2',\n 'subcategory' => 'Exchange',\n 'label' => 'National',\n 'description' => 'Exchange Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '2',\n 'subcategory' => 'Export',\n 'label' => 'National',\n 'description' => 'Export Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '2',\n 'subcategory' => 'Import',\n 'label' => 'National',\n 'description' => 'Import Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n\n [\n 'category_id' => '2',\n 'subcategory' => 'Accounting',\n 'label' => 'Academic',\n 'description' => 'Accounting Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '2',\n 'subcategory' => 'Book',\n 'label' => 'Academic',\n 'description' => 'Book Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '2',\n 'subcategory' => 'Startup',\n 'label' => 'Academic',\n 'description' => 'Startup Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '2',\n 'subcategory' => 'Policy',\n 'label' => 'Academic',\n 'description' => 'Policy Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n\n [\n 'category_id' => '3',\n 'subcategory' => 'International',\n 'label' => 'Extravaganza',\n 'description' => 'International Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '3',\n 'subcategory' => 'Celebrities',\n 'label' => 'Extravaganza',\n 'description' => 'Celebrities Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '3',\n 'subcategory' => 'Film',\n 'label' => 'Extravaganza',\n 'description' => 'Film Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '3',\n 'subcategory' => 'Music',\n 'label' => 'Extravaganza',\n 'description' => 'Music Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '3',\n 'subcategory' => 'Game',\n 'label' => 'Extravaganza',\n 'description' => 'Game Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n\n [\n 'category_id' => '3',\n 'subcategory' => 'Jokes',\n 'label' => 'Daily',\n 'description' => 'Jokes Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '3',\n 'subcategory' => 'Lifestyle',\n 'label' => 'Daily',\n 'description' => 'Lifestyle Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '3',\n 'subcategory' => 'Vacation',\n 'label' => 'Daily',\n 'description' => 'Vacation Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '3',\n 'subcategory' => 'Festival',\n 'label' => 'Daily',\n 'description' => 'Festival Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n\n [\n 'category_id' => '3',\n 'subcategory' => 'Anime',\n 'label' => 'Hobby',\n 'description' => 'Anime Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '3',\n 'subcategory' => 'Handcraft',\n 'label' => 'Hobby',\n 'description' => 'Handcraft Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '3',\n 'subcategory' => 'Outdoor',\n 'label' => 'Hobby',\n 'description' => 'Outdoor Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '3',\n 'subcategory' => 'Collector',\n 'label' => 'Hobby',\n 'description' => 'Collector Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '3',\n 'subcategory' => 'Art',\n 'label' => 'Hobby',\n 'description' => 'Art Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n\n [\n 'category_id' => '3',\n 'subcategory' => 'K-Pop',\n 'label' => 'Other',\n 'description' => 'K-Pop Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '3',\n 'subcategory' => 'J-Pop',\n 'label' => 'Other',\n 'description' => 'J-Pop Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '3',\n 'subcategory' => 'Trend',\n 'label' => 'Other',\n 'description' => 'Trend Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '3',\n 'subcategory' => 'Party',\n 'label' => 'Other',\n 'description' => 'Party Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n\n [\n 'category_id' => '4',\n 'subcategory' => 'Soccer',\n 'label' => 'Popular',\n 'description' => 'Soccer Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '4',\n 'subcategory' => 'Tennis',\n 'label' => 'Popular',\n 'description' => 'Tennis Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '4',\n 'subcategory' => 'Moto GP',\n 'label' => 'Popular',\n 'description' => 'Moto GP Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '4',\n 'subcategory' => 'Formula 1',\n 'label' => 'Popular',\n 'description' => 'Formula 1 Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '4',\n 'subcategory' => 'Basket',\n 'label' => 'Popular',\n 'description' => 'Basket Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '4',\n 'subcategory' => 'Badminton',\n 'label' => 'Popular',\n 'description' => 'Badminton Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '4',\n 'subcategory' => 'Volley',\n 'label' => 'Popular',\n 'description' => 'Volley Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '4',\n 'subcategory' => 'Athletic',\n 'label' => 'Popular',\n 'description' => 'Athletic Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '4',\n 'subcategory' => 'Rally',\n 'label' => 'Popular',\n 'description' => 'Rally Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '4',\n 'subcategory' => 'Bicycle',\n 'label' => 'Popular',\n 'description' => 'Bicycle Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '4',\n 'subcategory' => 'Extreme Sport',\n 'label' => 'Popular',\n 'description' => 'Extreme Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '4',\n 'subcategory' => 'Freestyle',\n 'label' => 'Popular',\n 'description' => 'Freestyle Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n\n [\n 'category_id' => '4',\n 'subcategory' => 'World Cup',\n 'label' => 'Event',\n 'description' => 'World Cup Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '4',\n 'subcategory' => 'Olympic',\n 'label' => 'Event',\n 'description' => 'Olympic Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '4',\n 'subcategory' => 'Champion',\n 'label' => 'Event',\n 'description' => 'Champion Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '4',\n 'subcategory' => 'Schedule',\n 'label' => 'Event',\n 'description' => 'Schedule Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n\n [\n 'category_id' => '5',\n 'subcategory' => 'Medication',\n 'label' => 'Medic',\n 'description' => 'Medication Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '5',\n 'subcategory' => 'Disease',\n 'label' => 'Medic',\n 'description' => 'Disease Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '5',\n 'subcategory' => 'Symptom',\n 'label' => 'Medic',\n 'description' => 'Symptom Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '5',\n 'subcategory' => 'Knowledge',\n 'label' => 'Medic',\n 'description' => 'Knowledge Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '5',\n 'subcategory' => 'Drug',\n 'label' => 'Medic',\n 'description' => 'Drug Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n\n [\n 'category_id' => '5',\n 'subcategory' => 'Lifestyle',\n 'label' => 'Life',\n 'description' => 'Lifestyle Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '5',\n 'subcategory' => 'Exercise',\n 'label' => 'Life',\n 'description' => 'Exercise Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '5',\n 'subcategory' => 'Food',\n 'label' => 'Life',\n 'description' => 'Food Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '5',\n 'subcategory' => 'Diet',\n 'label' => 'Life',\n 'description' => 'Diet Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n\n [\n 'category_id' => '5',\n 'subcategory' => 'Ask Doctor',\n 'label' => 'Doctor',\n 'description' => 'Ask Doctor Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '5',\n 'subcategory' => 'Medical Journal',\n 'label' => 'Doctor',\n 'description' => 'Medical Journal Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '5',\n 'subcategory' => 'Hospital',\n 'label' => 'Doctor',\n 'description' => 'Hospital Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n\n [\n 'category_id' => '6',\n 'subcategory' => 'Discovery',\n 'label' => 'Knowledge',\n 'description' => 'Discovery Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '6',\n 'subcategory' => 'Research',\n 'label' => 'Knowledge',\n 'description' => 'Research Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '6',\n 'subcategory' => 'Astronomy',\n 'label' => 'Knowledge',\n 'description' => 'Astronomy Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '6',\n 'subcategory' => 'Human',\n 'label' => 'Knowledge',\n 'description' => 'Human Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '6',\n 'subcategory' => 'Earth',\n 'label' => 'Knowledge',\n 'description' => 'Earth Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '6',\n 'subcategory' => 'Language',\n 'label' => 'Knowledge',\n 'description' => 'Language Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '6',\n 'subcategory' => 'Chemistry',\n 'label' => 'Knowledge',\n 'description' => 'Chemistry Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '6',\n 'subcategory' => 'Biology',\n 'label' => 'Knowledge',\n 'description' => 'Biology Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '6',\n 'subcategory' => 'Physics',\n 'label' => 'Knowledge',\n 'description' => 'Physics Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '6',\n 'subcategory' => 'History',\n 'label' => 'Knowledge',\n 'description' => 'History Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n\n [\n 'category_id' => '6',\n 'subcategory' => 'Communication',\n 'label' => 'Engineering',\n 'description' => 'Communication Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '6',\n 'subcategory' => 'Construction',\n 'label' => 'Engineering',\n 'description' => 'Construction Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '6',\n 'subcategory' => 'Electrical',\n 'label' => 'Engineering',\n 'description' => 'Electrical Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '6',\n 'subcategory' => 'Otomotive',\n 'label' => 'Engineering',\n 'description' => 'Otomotive Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n\n [\n 'category_id' => '7',\n 'subcategory' => 'IT',\n 'label' => 'Computer',\n 'description' => 'IT Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '7',\n 'subcategory' => 'Gadget',\n 'label' => 'Computer',\n 'description' => 'Gadget Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '7',\n 'subcategory' => 'Software',\n 'label' => 'Computer',\n 'description' => 'Software Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '7',\n 'subcategory' => 'Hardware',\n 'label' => 'Computer',\n 'description' => 'Hardware Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '7',\n 'subcategory' => 'Internet',\n 'label' => 'Computer',\n 'description' => 'Internet Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n\n [\n 'category_id' => '7',\n 'subcategory' => 'Future',\n 'label' => 'Concept',\n 'description' => 'Future Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '7',\n 'subcategory' => 'Programming',\n 'label' => 'Concept',\n 'description' => 'Programming Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '7',\n 'subcategory' => 'Cyber Security',\n 'label' => 'Concept',\n 'description' => 'Cyber Security Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '7',\n 'subcategory' => 'UI Interaction',\n 'label' => 'Concept',\n 'description' => 'UI Interaction Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '7',\n 'subcategory' => 'Social Network',\n 'label' => 'Concept',\n 'description' => 'Social Network Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n\n [\n 'category_id' => '7',\n 'subcategory' => 'Blackberry',\n 'label' => 'Handheld',\n 'description' => 'Blackberry Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '7',\n 'subcategory' => 'Android',\n 'label' => 'Handheld',\n 'description' => 'Android Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '7',\n 'subcategory' => 'iOS',\n 'label' => 'Handheld',\n 'description' => 'iOS Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '7',\n 'subcategory' => 'Windows Phone',\n 'label' => 'Handheld',\n 'description' => 'Windows Phone Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n\n [\n 'category_id' => '8',\n 'subcategory' => 'School',\n 'label' => 'Education',\n 'description' => 'School Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '8',\n 'subcategory' => 'Homework',\n 'label' => 'Education',\n 'description' => 'Homework Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '8',\n 'subcategory' => 'Teacher',\n 'label' => 'Education',\n 'description' => 'Teacher Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '8',\n 'subcategory' => 'Extracurricular',\n 'label' => 'Education',\n 'description' => 'Extracurricular Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '8',\n 'subcategory' => 'OSIS',\n 'label' => 'Education',\n 'description' => 'OSIS Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '8',\n 'subcategory' => 'Quiz',\n 'label' => 'Exam',\n 'description' => 'Quiz Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '8',\n 'subcategory' => 'UTS',\n 'label' => 'Exam',\n 'description' => 'UTS Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '8',\n 'subcategory' => 'UAS',\n 'label' => 'Exam',\n 'description' => 'UAS Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '8',\n 'subcategory' => 'UNAS',\n 'label' => 'Exam',\n 'description' => 'UNAS Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '9',\n 'subcategory' => 'Socialite',\n 'label' => 'Modernizer',\n 'description' => 'Socialite Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '9',\n 'subcategory' => 'Daily Life',\n 'label' => 'Modernizer',\n 'description' => 'Daily Life Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '9',\n 'subcategory' => 'Hotspot',\n 'label' => 'Modernizer',\n 'description' => 'Hotspot Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '9',\n 'subcategory' => 'Shopping',\n 'label' => 'Modernizer',\n 'description' => 'Shopping Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '9',\n 'subcategory' => 'Cafe',\n 'label' => 'Modernizer',\n 'description' => 'Cafe Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '9',\n 'subcategory' => 'Concert',\n 'label' => 'Event',\n 'description' => 'Concert Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '9',\n 'subcategory' => 'Photoshot',\n 'label' => 'Event',\n 'description' => 'Photoshot Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '9',\n 'subcategory' => 'Selfie',\n 'label' => 'Event',\n 'description' => 'Selfie Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '9',\n 'subcategory' => 'Weekend',\n 'label' => 'Event',\n 'description' => 'Weekend Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n\n [\n 'category_id' => '10',\n 'subcategory' => 'Motivation',\n 'label' => 'Life',\n 'description' => 'Motivation Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '10',\n 'subcategory' => 'Family',\n 'label' => 'Life',\n 'description' => 'Family Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '10',\n 'subcategory' => 'Career',\n 'label' => 'Life',\n 'description' => 'Career Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '10',\n 'subcategory' => 'Friendship',\n 'label' => 'Life',\n 'description' => 'Friendship Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '10',\n 'subcategory' => 'Relationship',\n 'label' => 'Life',\n 'description' => 'Relationship Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n\n [\n 'category_id' => '10',\n 'subcategory' => 'Life Hack',\n 'label' => 'Miscellaneous',\n 'description' => 'Life Hack Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '10',\n 'subcategory' => 'The Lounge',\n 'label' => 'Miscellaneous',\n 'description' => 'The Lounge Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '10',\n 'subcategory' => 'Opinion',\n 'label' => 'Miscellaneous',\n 'description' => 'Opinion Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '10',\n 'subcategory' => 'Society',\n 'label' => 'Miscellaneous',\n 'description' => 'Society Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '10',\n 'subcategory' => 'Education',\n 'label' => 'Miscellaneous',\n 'description' => 'Education Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '10',\n 'subcategory' => 'Idea',\n 'label' => 'Miscellaneous',\n 'description' => 'Idea Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '10',\n 'subcategory' => 'Sharing',\n 'label' => 'Miscellaneous',\n 'description' => 'Sharing Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n [\n 'category_id' => '10',\n 'subcategory' => 'Others',\n 'label' => 'Miscellaneous',\n 'description' => 'Others Sub Category',\n 'created_at' => Carbon::now()->toDateTimeString(),\n 'updated_at' => Carbon::now()->toDateTimeString(),\n ],\n ]);\n\n }", "public function save_category_form( $term_id ) {\n\t\tif( $this->save_count < 1 ) :\n\n\t\t\t$id = $this->args['id'];\n\t\t\t$data = Database::get_row( $this->args['table'], 'cat_id', $term_id );\n\n\t\t\tforeach( $this->args['table']['structure'] as $name => $args ) {\n\t\t\t\t$data[$name] = isset( $_POST[$name] ) ? $_POST[$name] : $data[$name];\n\t\t\t}\n\n\t\t\tif( empty( $data['cat_id'] ) ) {\n\t\t\t\t$data['cat_id'] = $term_id;\n\t\t\t\tDatabase::insert_row( $this->args['table'], $data );\n\t\t\t} else {\n\t\t\t\tDatabase::update_row( $this->args['table'], 'cat_id', $term_id, $data );\n\t\t\t}\n\n\t\t\t$this->save_count++;\n\n\t\tendif;\n\n\t}", "public function sub_categories()\n\t{ \n\n\t\tif ($this->input->is_ajax_request()) {\n\t\t\t$main_cat_id = $_POST['main_cat_id'];\n\n\t\t\t$sub_categories = $this->cat_model->GetWhere(\"categories\", \"title\", \"ASC\", array('main_cat_id'=> $main_cat_id)); \n\n\t\t\tif (isset($sub_categories) && count($sub_categories) != 0) {\n\t\t\t\t$id=\"sub_cat_id\".$main_cat_id;\n\t\t\t\t$div=\"div_\".$main_cat_id;\n\t\t\t\techo '<select id=\"'.$id.'\" onclick=\"get_sub_category('.$main_cat_id.');\">';\n\t\t\t\techo '<option disabled selected>Select Sub category</option>';\n\n\t\t\t\tforeach ($sub_categories as $cat) {\t\t\t\t\n\t\t\t\t\techo '<option value=\"'.$cat->id.'\">'.$cat->title.'</option>';\n\t\t\t\t}\n\t\t\t\techo '</select><div id=\"'.$div.'\"> </div><br>';\n\n\n\t\t\t}\n\n\n\t\t} \n\t}", "public function sitestorecategoriesAction() {\n\n //GET NAVIGATION\n $this->view->navigation = $navigation = Engine_Api::_()->getApi('menus', 'core')\n ->getNavigation('sitestore_admin_main', array(), 'sitestore_admin_main_sitestorecategories');\n\n //GET TASK\n if (isset($_POST['task'])) {\n $task = $_POST['task'];\n } elseif (isset($_GET['task'])) {\n $task = $_GET['task'];\n } else {\n $task = \"main\";\n }\n\n //GET CATEGORIES TABLE\n $tableCategories = Engine_Api::_()->getDbTable('categories', 'sitestore');\n\n //GET CATEGORIES TABLE NAME\n $tableCategoriesName = $tableCategories->info('name');\n\n //GET STORE TABLE\n $tableStore = Engine_Api::_()->getDbtable('stores', 'sitestore');\n\n if ($task == \"savecat\") {\n //GET CATEGORY ID\n $cat_id = $_GET['cat_id'];\n\n $cat_title_withoutparse = $_GET['cat_title'];\n\n //GET CATEGORY TITLE\n $cat_title = Engine_Api::_()->sitestore()->parseString($_GET['cat_title']);\n\n //GET CATEGORY DEPENDANCY\n $cat_dependency = $_GET['cat_dependency'];\n $subcat_dependency = $_GET['subcat_dependency'];\n if ($cat_title == \"\") {\n if ($cat_id != \"new\") {\n if ($cat_dependency == 0) {\n $row_ids = Engine_Api::_()->getDbtable('categories', 'sitestore')->getSubCategories($cat_id);\n foreach ($row_ids as $values) {\n $tableCategories->delete(array('subcat_dependency = ?' => $values->category_id, 'cat_dependency = ?' => $values->category_id));\n $tableCategories->delete(array('category_id = ?' => $values->category_id));\n }\n\n $tableStore->update(array('category_id' => 0, 'subcategory_id' => 0), array('category_id = ?' => $cat_id));\n $tableCategories->delete(array('category_id = ?' => $cat_id));\n\n //START SITESTOREREVIEW CODE\n if (Engine_Api::_()->getDbtable('modules', 'core')->isModuleEnabled('sitestorereview')) {\n Engine_Api::_()->sitestorereview()->deleteCategory($cat_id);\n }\n //END SITESTOREREVIEW CODE\n } else {\n $tableCategories->update(array('category_name' => $cat_title), array('category_id = ?' => $cat_id, 'cat_dependency = ?' => $cat_dependency));\n $tableStore->update(array('category_id' => 0, 'subcategory_id' => 0), array('category_id = ?' => $cat_id));\n $tableCategories->delete(array('cat_dependency = ?' => $cat_id, 'subcat_dependency = ?' => $cat_id));\n $tableCategories->delete(array('category_id = ?' => $cat_id));\n }\n }\n //SEND AJAX CONFIRMATION\n echo \"<html><head><meta http-equiv='Content-Type' content='text/html; charset=UTF-8'><script type='text/javascript'>\";\n echo \"window.parent.removecat('$cat_id');\";\n echo \"</script></head><body></body></html>\";\n exit();\n } else {\n if ($cat_id == 'new') {\n $row_info = $tableCategories->fetchRow($tableCategories->select()->from($tableCategoriesName, 'max(cat_order) AS cat_order'));\n $cat_order = $row_info['cat_order'] + 1;\n $row = $tableCategories->createRow();\n $row->category_name = $cat_title_withoutparse;\n $row->cat_order = $cat_order;\n $row->cat_dependency = $cat_dependency;\n $row->subcat_dependency = $subcat_dependency;\n $newcat_id = $row->save();\n } else {\n $tableCategories->update(array('category_name' => $cat_title_withoutparse), array('category_id = ?' => $cat_id));\n $newcat_id = $cat_id;\n }\n\n //SEND AJAX CONFIRMATION\n echo \"<html><head><meta http-equiv='Content-Type' content='text/html; charset=UTF-8'><script type='text/javascript'>\";\n echo \"window.parent.savecat_result('$cat_id', '$newcat_id', '$cat_title', '$cat_dependency', '$subcat_dependency');\";\n echo \"</script></head><body></body></html>\";\n exit();\n }\n } elseif ($task == \"changeorder\") {\n $divId = $_GET['divId'];\n $sitestoreOrder = explode(\",\", $_GET['sitestoreorder']);\n //RESORT CATEGORIES\n if ($divId == \"categories\") {\n for ($i = 0; $i < count($sitestoreOrder); $i++) {\n $cat_id = substr($sitestoreOrder[$i], 4);\n $tableCategories->update(array('cat_order' => $i + 1), array('category_id = ?' => $cat_id));\n }\n } elseif (substr($divId, 0, 7) == \"subcats\") {\n for ($i = 0; $i < count($sitestoreOrder); $i++) {\n $cat_id = substr($sitestoreOrder[$i], 4);\n $tableCategories->update(array('cat_order' => $i + 1), array('category_id = ?' => $cat_id));\n }\n } elseif (substr($divId, 0, 11) == \"treesubcats\") {\n for ($i = 0; $i < count($sitestoreOrder); $i++) {\n $cat_id = substr($sitestoreOrder[$i], 4);\n $tableCategories->update(array('cat_order' => $i + 1), array('category_id = ?' => $cat_id));\n }\n }\n }\n\n $categories = array();\n $category_info = Engine_Api::_()->getDbTable('categories', 'sitestore')->getCategories(1);\n foreach ($category_info as $value) {\n $sub_cat_array = array();\n $subcategories = Engine_Api::_()->getDbtable('categories', 'sitestore')->getAllCategories($value->category_id, 'subcategory_id', 0, 'subcategory_id', null, 0, 0);\n foreach ($subcategories as $subresults) {\n $subsubcategories = Engine_Api::_()->getDbtable('categories', 'sitestore')->getAllCategories($subresults->category_id, 'subsubcategory_id', 0, 'subsubcategory_id', null, 0, 0);\n $treesubarrays[$subresults->category_id] = array();\n foreach ($subsubcategories as $subsubcategoriesvalues) {\n $treesubarray = array('tree_sub_cat_id' => $subsubcategoriesvalues->category_id,\n 'tree_sub_cat_name' => $subsubcategoriesvalues->category_name,\n 'order' => $subsubcategoriesvalues->cat_order,\n 'count' => $subsubcategoriesvalues->count,);\n $treesubarrays[$subresults->category_id][] = $treesubarray;\n }\n\n $tmp_array = array('sub_cat_id' => $subresults->category_id,\n 'sub_cat_name' => $subresults->category_name,\n 'tree_sub_cat' => $treesubarrays[$subresults->category_id],\n 'count' => $subresults->count,\n 'order' => $subresults->cat_order);\n $sub_cat_array[] = $tmp_array;\n }\n\n $category_array = array('category_id' => $value->category_id,\n 'category_name' => $value->category_name,\n 'order' => $value->cat_order,\n 'count' => $value->count,\n 'sub_categories' => $sub_cat_array);\n $categories[] = $category_array;\n }\n\n include APPLICATION_PATH . '/application/modules/Sitestore/controllers/license/license2.php';\n }", "public function save($data)\n\t{\n\t\t$this->db->set('cat_name', $data['cat_name']);\n\t\t$this->db->set('case_type_id', (!empty($data['case_type_id']) ? $data['case_type_id'] : NULL ) );\n\t\t$this->db->set('court_type_id', (!empty($data['court_type_id']) ? $data['court_type_id'] : NULL ) );\n\t\t$this->db->set('cat_id', (!empty($data['cat_id']) ? $data['cat_id'] : NULL ) );\n\t\t$this->db->set('active', $data['active']);\n\t\t$this->db->set('sorting', $data['sorting']);\n\t\t\n\t\tif ($data['id'] == 0 )\n\t\t{\n\t\t\t$status = $this->db->insert('categories');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->db->where('id',$data['id']);\n\t\t\t$status = $this->db->update('categories');\n\t\t}\n\t\t\n\t\t$status = $this->db->affected_rows();\n\t\treturn $status;\n\t}", "private function SaveData()\n {\n // loop tanks and save data\n foreach ($this->tanks AS $tank_id => $data) {\n // get category id from tank id\n $category_id_tank = $this->CreateCategoryByIdentifier($this->InstanceID, $tank_id, $data['Name']);\n\n // loop tank data and add variables to tank category\n $position = 0;\n foreach ($data AS $key => $value) {\n $this->CreateVariableByIdentifier($category_id_tank, $key, $value, $position);\n $position++;\n }\n }\n }", "public function store(Request $request)\n { $subcategory = new Subcategory();\n $subcategory->name = $request->name;\n $subcategory->category_id = $request->category;\n $subcategory->url = str_slug($request->name);\n if ($request->hasFile('picture')) {\n $picName = \"GRO\".uniqid().time().'.'.$request->picture->getClientOriginalExtension();\n $request->picture->move(public_path().'/uploads/', $picName);\n $subcategory->picture='uploads/'.$picName;\n }\n $subcategory->save();\n flash('Subcategory created successfully');\n return redirect('/');\n\n }", "public function store(Request $request)\n {\n // dd($request);\n $this->validate($request,\n [\n 'cat'=>'required',\n 'desc'=>'required',\n 'grp'=>'required',\n 'subcat'=>'required',\n\n ]);\n\n $subcatrec = new PackageSubcategory;\n $subcatrec->catid = $request->cat;\n $subcatrec->classid = $request->grp;\n $subcatrec->sub_title = $request->subcat;\n $subcatrec->sub_desc = $request->desc; \n $subcatrec->sub_authorid = Auth::user()->id;\n $subcatrec->save();\n\n return redirect()->route('subcategory.index',['success'=>'Sub-Category Added']);\n }", "public function store(Request $request)\n {\n // dd($request);\n $request->validate([\n \"name\" => \"required|min:5\",\n ]);\n // dd($request);\n // store\n $subcategory = new Subcategory;\n $subcategory->name = $request->name;\n $subcategory->category_id = $request->category;\n $subcategory->Save();\n\n // redirect\n return redirect()->route('subcategory.index');\n }", "function save_extra_category_fileds( $term_id ) {\n if ( isset( $_POST['Cat_meta'] ) ) {\n $t_id = $term_id;\n $cat_meta = get_option( \"category_$t_id\");\n $cat_keys = array_keys($_POST['Cat_meta']);\n foreach ($cat_keys as $key){\n if (isset($_POST['Cat_meta'][$key])){\n $cat_meta[$key] = $_POST['Cat_meta'][$key];\n }\n }\n //save the option array\n update_option( \"category_$t_id\", $cat_meta );\n }\n}", "function save_extra_category_fileds( $term_id ) {\n if ( isset( $_POST['Cat_meta'] ) ) {\n $t_id = $term_id;\n $cat_meta = get_option( \"category_$t_id\");\n $cat_keys = array_keys($_POST['Cat_meta']);\n foreach ($cat_keys as $key){\n if (isset($_POST['Cat_meta'][$key])){\n $cat_meta[$key] = $_POST['Cat_meta'][$key];\n }\n }\n //save the option array\n update_option( \"category_$t_id\", $cat_meta );\n }\n}", "protected function saveCategoryFromCategory($form){\n $data = $this->getRequest()->getPost();\n //@todo: validate the data\n $form->setData($data);\n if ($form->isValid()) {\n \n $this->category->exchangeArray($form->getData());\n $categoryTable = $this->getServiceLocator()->get(\"Category\\Model\\CategoryTable\");\n $this->category = $categoryTable->saveCategory($this->category);\n \n if($id = $this->category->getId()){\n $this->redirect()->toRoute('category_home');\n }\n }else{\n \n }\n }", "public function store(subcategoryRequest $request)\n {\n // return $request ;\n\n try{\n // save imag \n if($request->has('photo')){\n $file = $request->file('photo');\n $img_subcate = $request->subcaegory[0]['name'] . time() . '.' . $file->extension() ;\n $file -> move('image_subcategory' ,$img_subcate );\n }\n //end uploade image \n\n // save defualte lang in subcategory \n \n $sub_cate = collect($request->subcaegory);\n // filter defult lang \n $filter = $sub_cate->filter(function($value , $key){\n return $value['translation_lang'] == Config::get('app.locale');\n });\n DB::beginTransaction();\n $new_filter = array_values($filter->all());\n $subcate_id = subcategory::insertGetId([\n 'translation_lang'=> $new_filter[0]['translation_lang'],\n 'parent_id' => 0,\t\n 'category_id'=>$request->category_id ,\n 'translation_of'=>0\t,\n 'name'=> $new_filter[0]['name'],\t\n 'slug'=> $new_filter[0]['name'],\n 'photo'\t=> $img_subcate,\n 'active'=> $new_filter[0]['active'],\n ]);\n\n // end save defulte \n\n //save all date but not defulte \n \n $all_subcate = $sub_cate->filter(function($value , $key){\n return $value['translation_lang'] != Config::get('app.locale');\n });\n \n if(isset($all_subcate) && $all_subcate->count() > 0){\n foreach($all_subcate as $filte ){\n subcategory::insert([\n 'translation_lang'=> $filte['translation_lang'],\n 'parent_id' => 0,\t\n 'category_id'=>$request->category_id ,\n 'translation_of'=>$subcate_id\t,\n 'name'=> $filte['name'],\t\n 'slug'=> $filte['name'],\n 'photo'\t=> $img_subcate,\n 'active'=> $filte['active'],\n ]);\n }\n }\n\n //end save all data \n DB::commit();\n return redirect()->route('subcategory.index')->with('success' , 'تم اضافة قسم فرعي جديد بنجاح ');\n \n }catch(\\Exception $ex){\n // return $ex ;\n DB::rollBack();\n return redirect()->route('subcategory.index')->with('error' , 'هناك خطا يرجا اعادة المحاولة ');\n }\n }", "function get_sub_category() {\r\n if(!isset($_POST['category_id'])){\r\n echo json_encode(array('status'=>false, 'message'=>\"category_id field is required!!\", 'data'=>blank_json()));\r\n die;\r\n }\r\n $category_id=$this->input->post('category_id');\r\n if(isset($_POST['last_count'])){\r\n $last_count = $_POST['last_count'];\r\n }else{\r\n $last_count = 0;\r\n }\r\n if($category_id==1 || $category_id==2 || $category_id==3 || $category_id==4){\r\n if($category_id==1){\r\n $table='fic_category';\r\n }\r\n if($category_id==2){\r\n $table='comm_category';\r\n }\r\n if($category_id==3){\r\n $table='competition_category';\r\n }\r\n if($category_id==4){\r\n $table='opendata_category';\r\n }\r\n $res = $this->CategoriesModel->get_subcategories($category_id,$table,$last_count);\r\n if (!empty($res)) {\r\n $i=0;\r\n foreach($res as $r){\r\n $res[$i]['root_id']=$category_id;\r\n $i++;\r\n }\r\n echo json_encode(array('status'=>true, 'message'=>\"Sub Categories list!\", 'data'=>$res));\r\n die;\r\n }\r\n echo json_encode(array('status'=>false, 'message'=>\"Sub Categories list not found!!\", 'data'=>array()));\r\n die;\r\n \r\n }else{\r\n echo json_encode(array('status'=>false, 'message'=>\"category_id is not valid!!\", 'data'=>blank_json()));\r\n }\r\n }", "public function subcategory($seo_url)\n {\n\n $login_model = $this->loadModel('Login');\n $this->view->isCaptchaNeeded = $login_model->isCaptchaNeeded();\n if(isset($_SESSION['user_id'])) {\n $user_info_model = $this->loadModel('UserInfo');\n $this->view->userInfo = $user_info_model->getUserInfo($_SESSION['user_id']);\n\n if (!isset($_SESSION['post_code']) AND $this->view->userInfo AND $this->view->userInfo->post_code) {\n $_SESSION['post_code'] = $this->view->userInfo->post_code . ' ' . $this->view->userInfo->city;\n }\n\n if (!isset($_SESSION['user_phone']) AND $this->view->userInfo AND $this->view->userInfo->phone) {\n $this->view->skip_phone = true;\n }\n\n if (!isset($_SESSION['first_name']) AND $this->view->userInfo AND $this->view->userInfo->first_name) {\n $this->view->skip_name = true;\n }\n }\n\n\n $subcategory_model = $this->loadModel('Subcategory');\n $this->view->seo_url = $seo_url;\n $this->view->subcategory = $subcategory_model->getSubcategoryByName($seo_url);\n if(!$this->view->subcategory) {\n header('location: ' . URL .subcategory_SEO . '/');\n }\n $this->view->meta_title = $this->view->subcategory->meta_title;\n $this->view->meta_descr = $this->view->subcategory->meta_descr;\n $this->view->meta_keywords = $this->view->subcategory->meta_keywords;\n $this->view->render('subcategory_view/index');\n }", "public function add_acct_sub_category(){\n\t\t//restricted this area, only for admin\n\t\tpermittedArea();\n\t\t\t//Get Decision who in online?\n\t\t$user = loggedInUserData();\n\t\t$userID = $user['user_id'];\n\t\tif($user['role'] == 'admin')\n\t\t{\n\t\t\t$data['ledger1'] = $this->db->get_where('acct_categories', ['category_type' => 'Main']);\n\t\t\t\n\t\t}\n\t\t\n\t\tif($this->input->post())\n\t\t{\n\t\t\tif($this->input->post('submit') != 'add_acct_sub_category') die('Error! sorry');\n\n\t\t\t$this->form_validation->set_rules('category_type', 'Accounts Type', 'required|trim');\n\t\t\t$this->form_validation->set_rules('category_name', 'Category Name', 'required|trim');\n\t\t\t$this->form_validation->set_rules('visible', 'Access To Payspecifications', 'required|trim');\n\t\t\t\n\n\t\t\tif($this->form_validation->run() == true)\n\t\t\t{\n\t\t\t\t$insert = $this->ledger_model->add_acct_sub_category();\n\t\t\t\tif($insert)\n\t\t\t\t{\n\t\t\t\t\t$this->session->set_flashdata('successMsg', 'Sub-Accounts Created under Category Successfully...!!!');\n\t\t\t\t\tredirect(base_url('ledger'));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n//$mydata = $this->category_model->getmainCat();\n//echo \"<pre>\";\n//print_r($mydata);\n//echo \"</pre>\";\n//$data['row'] = $mydata;\n\t//$this->load->view('add_acct_sub_category',$data);\n\t//---$this->load->view('add_acct_sub_category');\n\t\ttheme('add_acct_sub_category', $data);\n\t}", "public function store(Request $request)\n {\n\n if (Subcategory::where('category_name', '=', $request->input(\"categoryname\"))->count() > 0) {\n return redirect('admin/category/createsubcategory')->withErrors(\"Category already exists\");\n }else{\n\n if ( Input::hasFile('categoryimage') ):\n $target_path = \"public/uploads/categoryimages/\";\n $validextensions = array(\"jpeg\", \"jpg\", \"png\");\n $ext = explode('.', basename($_FILES['categoryimage']['name']));\n $target_path = $target_path . $_FILES['categoryimage']['name'];\n move_uploaded_file($_FILES['categoryimage']['tmp_name'], $target_path);\n endif;\n\n $category = new Subcategory();\n $category->cat_id=$request->input(\"categoryid\");\n $category->category_name=$request->input(\"categoryname\");\n $category->category_image= (Input::hasFile('categoryimage')) ? $_FILES['categoryimage']['name'] : NULL ;\n $category->category_description=$request->input(\"categorydescription\");\n $category->created_at=date(\"Y-m-d H:i:s\");\n $category->updated_at=date(\"Y-m-d H:i:s\");\n $category->save();\n $categoryId = $category->id;\n return redirect()->back()->with('message', 'Category added Sucessfully !!!.');\n }\n }", "public function restored(SubCategories $subCategories)\n {\n //\n }", "public function saveAction()\n {\n\n if (!$this->request->isPost()) {\n return $this->dispatcher->forward(array(\n \"controller\" => \"article_categories\",\n \"action\" => \"index\"\n ));\n }\n\n $id = $this->request->getPost(\"id\");\n\n $category = ArticleCategories::findFirstByid($id);\n if (!$category) {\n $this->flash->error(\"category does not exist \" . $id);\n return $this->dispatcher->forward(array(\n \"controller\" => \"article_categories\",\n \"action\" => \"index\"\n ));\n }\n\n $category->id = $this->request->getPost(\"id\");\n $category->name = $this->request->getPost(\"name\");\n $category->description = $this->request->getPost(\"description\");\n \n\n if (!$category->save()) {\n\n foreach ($category->getMessages() as $message) {\n $this->flash->error($message);\n }\n\n return $this->dispatcher->forward(array(\n \"controller\" => \"article_categories\",\n \"action\" => \"edit\",\n \"params\" => array($category->id)\n ));\n }\n\n $this->flash->success(\"category was updated successfully\");\n return $this->dispatcher->forward(array(\n \"controller\" => \"article_categories\",\n \"action\" => \"index\"\n ));\n\n }", "public function postStore()\n\t{\n\t\t$response['status'] = 'error';\n\t\t$response['message'] = trans('categories.not_created');\n\n\t\tif ( ! empty($_POST))\n\t\t{\n\t\t\t$error = FALSE;\n\n\t\t\tif (empty(trim(Input::get('title'))))\n\t\t\t{\n\t\t\t\t$response['message'] = trans('categories.title_required');\n\t\t\t\t$error = TRUE;\n\t\t\t}\n\n\t\t\t$category_level = Input::get('level');\n\t\t\t$parent = Input::get('parent');\n\t\t\tif ( ! empty($category_level) && in_array($category_level, ['1', '2']))\n\t\t\t{\n\t\t\t\tif (empty($parent))\n\t\t\t\t{\n\t\t\t\t\t$response['message'] = trans('categories.parent_required');\n\t\t\t\t\t$error = TRUE;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($error === FALSE)\n\t\t\t{\n\t\t\t\t$data = [\n\t\t\t\t\t'title' => trim(Input::get('title')),\n\t\t\t\t\t'description' => Input::get('description'),\n\t\t\t\t\t'level' => $category_level,\n\t\t\t\t\t'parent' => $parent,\n\t\t\t\t\t'size_group' => Input::get('size_group'),\n\t\t\t\t\t'position' => Input::get('position'),\n\t\t\t\t\t'visible' => Input::get('visible'),\n\t\t\t\t\t'active' => Input::get('active'),\n\t\t\t\t\t'page_title' => Input::get('page_title'),\n\t\t\t\t\t'meta_description' => Input::get('meta_description'),\n\t\t\t\t\t'meta_keywords' => Input::get('meta_keywords'),\n\t\t\t\t];\n\n\t\t\t\tif (($id = Model_Categories::createCategory($data)) > 0)\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\t//Manage Friendly URL\n\t\t\t\t\t\tModel_Categories::setURL($id, Input::get('friendly_url'));\n\n\t\t\t\t\t\t$response['status'] = 'success';\n\t\t\t\t\t\t$response['message'] = trans('categories.created');\n\t\t\t\t\t\t$response['category_id'] = $id;\n\t\t\t\t\t} catch (Exception $e)\n\t\t\t\t\t{\n\t\t\t\t\t\t$response['message'] = $e;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$response['message'] = trans('categories.not_created');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn response()->json($response);\n\t}", "function addCategory() {\n var_dump($this->request->data);\n if ($this->request->is('post') || $this->request->is('put')) {\n $ci = $this->CategoryItem->create();\n var_dump($ci);\n if ($this->CategoryItem->save($this->request->data)) {\n $this->Session->setFlash(__('The %s has been saved', __('link')), 'flash/success');\n } else {\n $this->Session->setFlash(__('The %s could not be saved. Please, try again.', __('link')), 'flash/failure');\n }\n// $this->redirect(array('action' => 'edit', $this->Item->id));\n } else {\n $this->redirect(array('action' => 'index'));\n }\n }" ]
[ "0.7122877", "0.7028975", "0.70189935", "0.69578034", "0.6935387", "0.692066", "0.6655768", "0.6572077", "0.6556841", "0.6540793", "0.65405697", "0.6494302", "0.64942795", "0.64868104", "0.6478652", "0.6391975", "0.6387141", "0.6371994", "0.6350344", "0.6349655", "0.63416207", "0.6336262", "0.63210654", "0.63186765", "0.62872374", "0.6251544", "0.6250783", "0.6240468", "0.6232401", "0.6221998", "0.6213369", "0.6195507", "0.6190277", "0.6188477", "0.61698914", "0.6165911", "0.6164988", "0.6161318", "0.61566085", "0.6150847", "0.61405903", "0.6137891", "0.6137521", "0.61339635", "0.6133835", "0.610793", "0.6104163", "0.60915184", "0.608992", "0.6086447", "0.60857797", "0.6080472", "0.6065665", "0.6041037", "0.6026737", "0.6021802", "0.60166734", "0.6008216", "0.6005335", "0.5995646", "0.5986432", "0.59855", "0.59828866", "0.5982819", "0.597995", "0.5976896", "0.5965107", "0.5960471", "0.59520704", "0.5926233", "0.5917959", "0.59170717", "0.5894944", "0.5893388", "0.58908355", "0.58744943", "0.5867649", "0.5859269", "0.5857762", "0.5847449", "0.584594", "0.5844412", "0.58395004", "0.58304316", "0.58256847", "0.58211786", "0.58009946", "0.5786726", "0.5777773", "0.5777773", "0.5773516", "0.5772134", "0.57660097", "0.57656914", "0.5759521", "0.57500625", "0.57455367", "0.5744277", "0.57404864", "0.5736821" ]
0.6645719
7
Construct the factory class.
public function __construct(Manager $manager) { $this->manager = $manager; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function newFactory()\n {\n //\n }", "public static function factory()\r\n {\r\n return parent::factory(__CLASS__);\r\n }", "public function construct() {\n\n }", "public function construct()\n\t\t{\n\t\t}", "public static function factory()\n {\n return new self;\n }", "public function getFactory() {}", "public static function create() {}", "public static function create() {}", "public static function create() {}", "public function create(){\r\n\treturn new $this->class();\r\n }", "static function create(): self;", "public function create() {\n $class_name = $this->getOption('className');\n return new $class_name();\n }", "public static function factory($flags = null, $class_name = null) {}", "public static function factory($flags = null, $class_name = null) {}", "public function newInstance();", "public function newInstance();", "protected static function newFactory()\n {\n return ExampleFactory::new();\n }", "public function getFactory()\n {\n return new Factory();\n }", "public static function create() {\n $factory = new static();\n return $factory->createFlo();\n }", "public static abstract function createInstance();", "public static function factory() {\n\t\tstatic $instance;\n\n\t\tif ( ! $instance ) {\n\t\t\t$instance = new self();\n\t\t\t$instance->setup();\n\t\t}\n\n\t\treturn $instance;\n\t}", "protected static function newFactory()\n {\n return TypeFactory::new();\n }", "function _construct(){ }", "protected function construct(){\n\n }", "public static function factory()\n {\n $class = get_called_class();\n $object = new $class();\n foreach (static::getDefaults() as $field => $value) {\n $object->{$field} = $value;\n }\n return $object;\n }", "static public function factory($config) {}", "function _construct() {\n \t\n\t\t\n\t}", "public function make() {}", "public static function init() {\n\t\treturn Factory::get_instance( self::class );\n\t}", "public abstract function make();", "public function fn_construct_class() {\n\t}", "protected function getClassInfoFactory() {}", "public function make($factory);", "abstract function create();", "protected function createFactory()\n {\n $factory = Str::studly(class_basename($this->argument('name')));\n\n $this->call('make:factory', [\n 'name' => \"{$factory}Factory\",\n '--model' => $this->qualifyClass($this->getNameInput()),\n ]);\n }", "abstract protected function construct($params);", "abstract protected function create ();", "static function factory()\n {\n if (self::$_instance == NULL) {\n self::$_instance = new self();\n }\n return self::$_instance;\n }", "function __construct($service) {\n // return new $class;\n }", "protected static function newFactory()\n {\n return StateFactory::new();\n }", "function __constructor(){}", "protected static function newFactory()\n {\n return LoanFactory::new();\n }", "public static function create() {\n\t\treturn new self();\n\t}", "public function __construct() {\r\n\t\t$this->daoFactory = new DaoFactory ();\r\n\t\t$this->daoFactory->initDbResources ();\r\n\t\t$this->appUserDao = $this->daoFactory->getAppUserDao ();\r\n\t\t$this->coreAuthenticationFactory = new CoreAuthenticationFactory ( $this->appUserDao );\r\n\t\t$this->validationFactory = new ValidationFactory ();\r\n\t\t$this->appName = APP_NAME;\r\n\t\t$this->baseUrl = \"http://\" . BASE_URL;\r\n\t}", "public function create() {\n\t \n }", "public function create()\n {\n return new $this->class;\n }", "static public function createFactory(array $inputs)\n\t{\n\t\t$registries = [];\n\t\tforeach($inputs as $input)\n\t\t{\n\t\t\t$registries[static::factoryType($input['identifier'], $input['type'])] = $input['class'];\n\t\t}\n\t\t\n\t\treturn new Factory($registries);\t\n\t}", "public function __construct()\n\t{\n\t\t// If there is no sharedFactoryInstance, prepare it\n\t\tif (is_null(self::$sharedFactoryInstance))\n\t\t{\n\t\t\t// @codeCoverageIgnoreStart\n\t\t\tself::$sharedFactoryInstance = $this;\n\t $this->config = new Config();\n\t $this->logger = new Logger();\n\t $this->events = new Events();\n\t $this->libraries = new Libraries();\n\t $this->helpers = new Helpers();\n\t $this->plugins = new Plugins();\n\n\t return;\n\t\t}\n\t\t// @codeCoverageIgnoreEnd\n\n\t\t// Otherwise, copy the existing instances\n\t\t$x = self::getInstance();\n\t\tforeach ($x as $key => $value)\n\t\t{\n\t\t $this->{$key} = $value;\n\t\t}\n\n\t\treturn;\n\t}", "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 }", "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 function make();", "static public function factory($config)\n {\n }", "public static function init() {\n $class = __CLASS__;\n new $class;\n }", "public static function newFactory()\n {\n return OrderFactory::new();\n }", "public function getConstructor() {}", "protected abstract function __construct();", "public function getFactory(): Factory;", "public static function create()\n\t{\n\t\treturn new self;\n\t}", "public function newInstance()\n {\n return $this->newInstanceArgs(func_get_args());\n }", "protected static function newFactory(): Factory\n {\n return OrderPaymentFactory::new();\n }", "public static function newFactory()\n {\n return PhoneFactory::new();\n }", "public static function factory() {\n\t\tstatic $instance = false;\n\t\tif ( ! $instance ) {\n\t\t\t$instance = new self();\n\t\t\t$instance->setup();\n\t\t}\n\t\treturn $instance;\n\t}", "public function __construct()\n {\n parent::__construct();\n $this->fileClassFactory = new FileFactory();\n }", "protected function create() {\n\t}", "protected static function newFactory()\n {\n return PostFactory::new();\n }", "protected function createFactory()\n {\n $factory = Str::studly($this->argument('name'));\n\n $this->call(FactoryMakeCommand::class, [\n 'name' => \"{$factory}Factory\",\n '--model' => $this->qualifyClass($this->getNameInput()),\n ]);\n }", "public static function create()\n\t\t{\n\t\t\treturn new self();\n\t\t}", "final private function __construct() {\n\t\t\t}", "private function __construct() {\n \n trace('***** Creating new '.__CLASS__.' object. *****');\n \n }", "public static function create() {\n return new self();\n }", "static public function create()\n\t{\n\t\treturn new static;\n\t}", "public function __construct()\n {\n // Init security library object\n $this->securityLibObj = new SecurityLib();\n\n // Init exception library object\n $this->utilityLibObj = new UtilityLib();\n\n // Init dateTimeLibObj library object\n $this->dateTimeLibObj = new DateTimeLib();\n\n // Init StaticDataConfig model object\n $this->staticDataObj = new StaticDataConfig();\n }", "public function __construct()\n {\n // Init security library object\n $this->securityLibObj = new SecurityLib();\n\n // Init exception library object\n $this->utilityLibObj = new UtilityLib();\n\n // Init dateTimeLibObj library object\n $this->dateTimeLibObj = new DateTimeLib();\n\n // Init StaticDataConfig model object\n $this->staticDataObj = new StaticDataConfig();\n }", "public abstract function createInstance($parameters);", "static public function create()\n {\n return new static();\n }", "public static function create(): self\n {\n return new self();\n }", "public static function create(): self\n {\n return new self();\n }", "public function __construct()\n {\n $this->factories = array_combine(\n [\n Container::class,\n ContainerInterface::class,\n DefaultContainer::class,\n ],\n array_fill(0, 3, function (Container $c) {\n return $c;\n })\n );\n }", "public static function init()\n {\n return new self();\n }", "public static function make() {\n return new self();\n }", "public static function newFactory()\n {\n return PriceFactory::new();\n }", "public function _construct()\n\t{\n\n\t}" ]
[ "0.757677", "0.7526373", "0.72985935", "0.7284462", "0.7192799", "0.717194", "0.7158661", "0.7158661", "0.7158661", "0.7028923", "0.6976304", "0.6953736", "0.69053113", "0.69053113", "0.6884043", "0.6884043", "0.68712914", "0.6854846", "0.68022263", "0.6780199", "0.67793477", "0.67669684", "0.6766537", "0.67646843", "0.6754947", "0.67499155", "0.6738146", "0.67265016", "0.6720734", "0.67083937", "0.6695389", "0.6681266", "0.6664875", "0.6658445", "0.6594179", "0.6584895", "0.6578822", "0.6560399", "0.6555878", "0.6555729", "0.65296835", "0.65261704", "0.652263", "0.6513572", "0.6508339", "0.6503234", "0.6501503", "0.64602035", "0.64598835", "0.64598835", "0.64598835", "0.64598835", "0.64598835", "0.64598835", "0.64598835", "0.64598835", "0.64598835", "0.64598835", "0.64598835", "0.64598835", "0.64598835", "0.64598835", "0.64598835", "0.64598835", "0.64598835", "0.64598835", "0.64598835", "0.64598835", "0.64598835", "0.64597493", "0.6456543", "0.64417034", "0.64402235", "0.64349616", "0.6427851", "0.64228207", "0.6407905", "0.64026606", "0.6401307", "0.6398267", "0.63974863", "0.63934296", "0.63877153", "0.6380702", "0.63709927", "0.63666266", "0.6366359", "0.636475", "0.63583267", "0.6341163", "0.63392127", "0.63392127", "0.633682", "0.633669", "0.6332515", "0.6332515", "0.63256925", "0.6324187", "0.6316859", "0.63132244", "0.63116735" ]
0.0
-1